mgv-backoffice 1.19.0 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +158 -4
- package/dist/components/BaseGoogleSignInButton.vue.d.ts +22 -0
- package/dist/components/BaseLoginForm.vue.d.ts +51 -0
- package/dist/components/BaseNotificationPanel.vue.d.ts +19 -0
- package/dist/components/BaseSidebar.vue.d.ts +9 -3
- package/dist/components/EarningsCard.vue.d.ts +17 -6
- package/dist/composables/useNotifications.d.ts +29 -0
- package/dist/composables/useSidebarCollapse.d.ts +22 -0
- package/dist/index.d.ts +8 -0
- package/dist/types/auth.d.ts +11 -0
- package/dist/types/notification.d.ts +20 -0
- package/dist/ui-lib.css +1 -1
- package/dist/ui-lib.js +1102 -673
- package/dist/ui-lib.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/components/BaseAppLayout.vue +4 -1
- package/src/components/BaseGoogleSignInButton.vue +83 -0
- package/src/components/BaseLoginForm.test.ts +52 -0
- package/src/components/BaseLoginForm.vue +204 -0
- package/src/components/BaseNotificationPanel.vue +183 -0
- package/src/components/BaseSidebar.vue +140 -31
- package/src/components/EarningsCard.test.ts +57 -0
- package/src/components/EarningsCard.vue +55 -18
- package/src/composables/useNotifications.test.ts +64 -0
- package/src/composables/useNotifications.ts +81 -0
- package/src/composables/useSidebarCollapse.ts +64 -0
- package/src/index.ts +8 -0
- package/src/types/auth.ts +11 -0
- package/src/types/notification.ts +20 -0
package/dist/ui-lib.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { Fragment as e, Teleport as t,
|
|
2
|
-
import { ArrowDownIcon as
|
|
3
|
-
import { HomeIcon as
|
|
4
|
-
import { useRoute as
|
|
1
|
+
import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createStaticVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, effectScope as f, nextTick as p, normalizeClass as m, onBeforeUnmount as h, onMounted as g, onScopeDispose as _, onUnmounted as v, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveComponent as C, resolveDynamicComponent as w, toDisplayString as T, unref as E, useSlots as D, vModelCheckbox as O, vModelDynamic as k, vModelText as A, vShow as ee, watch as j, withCtx as M, withDirectives as N, withKeys as P, withModifiers as F } from "vue";
|
|
2
|
+
import { ArrowDownIcon as te, ArrowUpIcon as ne, Bars3Icon as re, BellIcon as ie, CheckCircleIcon as ae, ChevronDoubleLeftIcon as oe, ChevronDoubleRightIcon as se, ChevronRightIcon as ce, ClipboardDocumentCheckIcon as le, ClipboardDocumentIcon as ue, DocumentDuplicateIcon as de, ExclamationCircleIcon as fe, ExclamationTriangleIcon as pe, FolderIcon as me, InformationCircleIcon as he, MagnifyingGlassIcon as ge, MinusIcon as _e, MoonIcon as ve, SunIcon as ye, XMarkIcon as be } from "@heroicons/vue/24/outline";
|
|
3
|
+
import { HomeIcon as xe } from "@heroicons/vue/24/solid";
|
|
4
|
+
import { useRoute as Se, useRouter as Ce } from "vue-router";
|
|
5
5
|
//#region src/enums/AlertEnum.ts
|
|
6
|
-
var
|
|
6
|
+
var I = /* @__PURE__ */ function(e) {
|
|
7
7
|
return e.WARNING = "WARNING", e.ERROR = "ERROR", e.SUCCESS = "SUCCESS", e.INFO = "INFO", e;
|
|
8
|
-
}({}),
|
|
8
|
+
}({}), L = /* @__PURE__ */ function(e) {
|
|
9
9
|
return e.NONE = "NONE", e.RED = "RED", e.YELLOW = "YELLOW", e.BLACK = "BLACK", e.GRAY = "GRAY", e.GREEN = "GREEN", e.BLUE = "BLUE", e;
|
|
10
10
|
}({});
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/utils/util.ts
|
|
13
|
-
function
|
|
13
|
+
function we(e) {
|
|
14
14
|
let t = "red";
|
|
15
15
|
switch (e) {
|
|
16
|
-
case
|
|
16
|
+
case I.ERROR:
|
|
17
17
|
t = "red";
|
|
18
18
|
break;
|
|
19
|
-
case
|
|
19
|
+
case I.SUCCESS:
|
|
20
20
|
t = "green";
|
|
21
21
|
break;
|
|
22
|
-
case
|
|
22
|
+
case I.INFO:
|
|
23
23
|
t = "gray";
|
|
24
24
|
break;
|
|
25
|
-
case
|
|
25
|
+
case I.WARNING:
|
|
26
26
|
t = "yellow";
|
|
27
27
|
break;
|
|
28
28
|
}
|
|
29
29
|
return t;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Te(e) {
|
|
32
32
|
let t = "red";
|
|
33
33
|
switch (e) {
|
|
34
|
-
case
|
|
34
|
+
case L.GREEN:
|
|
35
35
|
t = "green";
|
|
36
36
|
break;
|
|
37
|
-
case
|
|
37
|
+
case L.RED:
|
|
38
38
|
t = "red";
|
|
39
39
|
break;
|
|
40
|
-
case
|
|
40
|
+
case L.BLUE:
|
|
41
41
|
t = "blue";
|
|
42
42
|
break;
|
|
43
|
-
case
|
|
43
|
+
case L.YELLOW:
|
|
44
44
|
t = "yellow";
|
|
45
45
|
break;
|
|
46
|
-
case
|
|
46
|
+
case L.BLACK:
|
|
47
47
|
t = "black";
|
|
48
48
|
break;
|
|
49
|
-
case
|
|
49
|
+
case L.GRAY:
|
|
50
50
|
t = "gray";
|
|
51
51
|
break;
|
|
52
|
-
case
|
|
52
|
+
case L.NONE:
|
|
53
53
|
t = "";
|
|
54
54
|
break;
|
|
55
55
|
}
|
|
@@ -57,7 +57,7 @@ function he(e) {
|
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/components/BaseAlert.vue?vue&type=script&setup=true&lang.ts
|
|
60
|
-
var
|
|
60
|
+
var Ee = { class: "font-medium pl-1" }, De = /* @__PURE__ */ d({
|
|
61
61
|
__name: "BaseAlert",
|
|
62
62
|
props: {
|
|
63
63
|
title: {
|
|
@@ -68,62 +68,62 @@ var ge = { class: "font-medium pl-1" }, _e = /* @__PURE__ */ l({
|
|
|
68
68
|
color: {
|
|
69
69
|
type: String,
|
|
70
70
|
required: !1,
|
|
71
|
-
default:
|
|
71
|
+
default: I.ERROR
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
setup(e) {
|
|
75
|
-
let t = e,
|
|
75
|
+
let t = e, n = r(() => {
|
|
76
76
|
switch (t.color) {
|
|
77
|
-
case
|
|
78
|
-
case
|
|
79
|
-
case
|
|
80
|
-
default: return
|
|
77
|
+
case I.SUCCESS: return ae;
|
|
78
|
+
case I.WARNING: return pe;
|
|
79
|
+
case I.INFO: return he;
|
|
80
|
+
default: return fe;
|
|
81
81
|
}
|
|
82
|
-
}),
|
|
82
|
+
}), a = r(() => {
|
|
83
83
|
switch (t.color) {
|
|
84
|
-
case
|
|
85
|
-
case
|
|
86
|
-
case
|
|
84
|
+
case I.SUCCESS: return "text-green-500";
|
|
85
|
+
case I.WARNING: return "text-yellow-500";
|
|
86
|
+
case I.INFO: return "text-gray-500";
|
|
87
87
|
default: return "text-red-500";
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
function c() {
|
|
91
|
-
let e =
|
|
91
|
+
let e = we(t.color);
|
|
92
92
|
return "flex items-center p-4 mb-4 text-sm text-" + e + "-800 border border-" + e + "-300 rounded-lg bg-" + e + "-50 dark:bg-gray-800 dark:text-" + e + "-400 dark:border-" + e + "-800";
|
|
93
93
|
}
|
|
94
|
-
return (t,
|
|
95
|
-
class:
|
|
94
|
+
return (t, r) => (y(), o("div", {
|
|
95
|
+
class: m(c()),
|
|
96
96
|
role: "alert"
|
|
97
|
-
}, [(
|
|
97
|
+
}, [(y(), i(w(n.value), { class: m(["w-6 h-6 flex-shrink-0", a.value]) }, null, 8, ["class"])), s("div", null, [s("span", Ee, T(e.title), 1)])], 2));
|
|
98
98
|
}
|
|
99
|
-
}),
|
|
99
|
+
}), Oe = "bg-red-100 text-red-700 border-red-200", ke = /* @__PURE__ */ d({
|
|
100
100
|
__name: "BaseBadge",
|
|
101
101
|
props: { color: {
|
|
102
102
|
type: String,
|
|
103
103
|
required: !1
|
|
104
104
|
} },
|
|
105
105
|
setup(e) {
|
|
106
|
-
let t =
|
|
107
|
-
[
|
|
108
|
-
[
|
|
109
|
-
[
|
|
110
|
-
[
|
|
111
|
-
[
|
|
112
|
-
[
|
|
113
|
-
[
|
|
114
|
-
}, c =
|
|
115
|
-
return (e, t) =>
|
|
106
|
+
let t = D(), n = r(() => !!t.default), i = e, s = {
|
|
107
|
+
[L.RED]: "bg-red-100 text-red-700 border-red-200",
|
|
108
|
+
[L.GREEN]: "bg-green-100 text-green-700 border-green-200",
|
|
109
|
+
[L.BLUE]: "bg-blue-100 text-blue-700 border-blue-200",
|
|
110
|
+
[L.YELLOW]: "bg-yellow-100 text-yellow-700 border-yellow-200",
|
|
111
|
+
[L.GRAY]: "bg-gray-100 text-gray-700 border-gray-200",
|
|
112
|
+
[L.BLACK]: "bg-gray-800 text-gray-100 border-gray-700",
|
|
113
|
+
[L.NONE]: "bg-gray-50 text-gray-600 border-gray-200"
|
|
114
|
+
}, c = r(() => `inline-flex items-center gap-1 font-semibold text-xs leading-none px-3 py-1.5 rounded-full border ${i.color && s[i.color] || Oe}`);
|
|
115
|
+
return (e, t) => n.value ? (y(), o("span", {
|
|
116
116
|
key: 0,
|
|
117
|
-
class:
|
|
118
|
-
}, [
|
|
117
|
+
class: m(c.value)
|
|
118
|
+
}, [S(e.$slots, "default")], 2)) : a("", !0);
|
|
119
119
|
}
|
|
120
|
-
}),
|
|
120
|
+
}), Ae = {
|
|
121
121
|
class: "flex px-5 py-3 text-gray-700 border border-gray-200 rounded-lg bg-gray-50 dark:bg-gray-800 dark:border-gray-700",
|
|
122
122
|
"aria-label": "Breadcrumb"
|
|
123
|
-
},
|
|
123
|
+
}, je = { class: "inline-flex items-center space-x-1 md:space-x-3" }, Me = {
|
|
124
124
|
class: "inline-flex items-center",
|
|
125
125
|
style: { "margin-left": "0" }
|
|
126
|
-
},
|
|
126
|
+
}, Ne = /* @__PURE__ */ d({
|
|
127
127
|
__name: "BaseBreadcrumb",
|
|
128
128
|
props: {
|
|
129
129
|
items: {
|
|
@@ -138,81 +138,81 @@ var ge = { class: "font-medium pl-1" }, _e = /* @__PURE__ */ l({
|
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
setup(t) {
|
|
141
|
-
let
|
|
142
|
-
if (
|
|
143
|
-
let e = (
|
|
141
|
+
let n = t, i = r(() => {
|
|
142
|
+
if (n.items && n.items.length > 0) return n.items;
|
|
143
|
+
let e = (n.path ?? (typeof window < "u" ? window.location.pathname : "/")).split("/").filter((e) => e !== ""), t = "";
|
|
144
144
|
return e.map((e) => (t += "/" + e, {
|
|
145
145
|
name: Number.isNaN(Number(e)) ? (e.charAt(0).toUpperCase() + e.slice(1)).replaceAll("-", " ") : e,
|
|
146
146
|
url: t
|
|
147
147
|
}));
|
|
148
148
|
});
|
|
149
149
|
return (t, n) => {
|
|
150
|
-
let r =
|
|
151
|
-
return
|
|
150
|
+
let r = C("router-link");
|
|
151
|
+
return y(), o("nav", Ae, [s("ol", je, [s("li", Me, [u(r, {
|
|
152
152
|
to: "/",
|
|
153
153
|
class: "inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600 dark:text-gray-400 dark:hover:text-white"
|
|
154
154
|
}, {
|
|
155
|
-
default:
|
|
155
|
+
default: M(() => [u(E(xe), { class: "h-4 w-4 text-gray-500 mr-2" }), n[0] ||= l(" Home ", -1)]),
|
|
156
156
|
_: 1
|
|
157
|
-
})]), (
|
|
157
|
+
})]), (y(!0), o(e, null, x(i.value, (e, t) => (y(), o("li", {
|
|
158
158
|
key: t,
|
|
159
159
|
class: "inline-flex items-center",
|
|
160
160
|
style: { "margin-left": "0" }
|
|
161
|
-
}, [
|
|
161
|
+
}, [u(E(ce), { class: "h-4 w-4 text-gray-500" }), u(r, {
|
|
162
162
|
to: e.url,
|
|
163
163
|
class: "ml-1 text-sm font-medium text-gray-700 hover:text-blue-600 md:ml-2 dark:text-gray-400 dark:hover:text-white"
|
|
164
164
|
}, {
|
|
165
|
-
default:
|
|
165
|
+
default: M(() => [l(T(e.name), 1)]),
|
|
166
166
|
_: 2
|
|
167
167
|
}, 1032, ["to"])]))), 128))])]);
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
}),
|
|
170
|
+
}), R = /* @__PURE__ */ function(e) {
|
|
171
171
|
return e.RED = "RED", e.BLUE = "BLUE", e.WHITE = "WHITE", e.DARK = "DARK", e.GREEN = "GREEN", e.EMERALD = "EMERALD", e.YELLOW = "YELLOW", e.PURPLE = "PURPLE", e.SKY = "SKY", e.GRAY = "GRAY", e.AMBER = "AMBER", e;
|
|
172
|
-
}({}),
|
|
172
|
+
}({}), z = /* @__PURE__ */ function(e) {
|
|
173
173
|
return e.EXTRA_SMALL = "EXTRA_SMALL", e.SMALL = "SMALL", e.BASE = "BASE", e.LARGE = "LARGE", e.EXTRA_LARGE = "EXTRA_LARGE", e;
|
|
174
|
-
}({}),
|
|
175
|
-
function
|
|
176
|
-
if (
|
|
177
|
-
e !==
|
|
174
|
+
}({}), B = b(!1), Pe = !1, V = "mgv-theme";
|
|
175
|
+
function Fe(e) {
|
|
176
|
+
if (Pe) {
|
|
177
|
+
e !== V && console.warn(`[ui-lib] useTheme: storage key "${e}" ignored — theme already initialized with "${V}". Call initTheme({ storageKey }) before mounting any component.`);
|
|
178
178
|
return;
|
|
179
179
|
}
|
|
180
|
-
if (
|
|
181
|
-
let e = window.localStorage?.getItem(
|
|
182
|
-
e ?
|
|
180
|
+
if (Pe = !0, V = e, typeof window < "u") {
|
|
181
|
+
let e = window.localStorage?.getItem(V);
|
|
182
|
+
e ? B.value = e === "dark" : typeof window.matchMedia == "function" && (B.value = window.matchMedia("(prefers-color-scheme: dark)").matches);
|
|
183
183
|
}
|
|
184
|
-
typeof document < "u" &&
|
|
185
|
-
|
|
186
|
-
document.documentElement.classList.toggle("dark", e), window.localStorage?.setItem(
|
|
184
|
+
typeof document < "u" && f(!0).run(() => {
|
|
185
|
+
j(B, (e) => {
|
|
186
|
+
document.documentElement.classList.toggle("dark", e), window.localStorage?.setItem(V, e ? "dark" : "light");
|
|
187
187
|
}, { immediate: !0 });
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
|
|
190
|
+
function Ie(e) {
|
|
191
|
+
Fe(e?.storageKey ?? V);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
193
|
+
function H(e) {
|
|
194
|
+
Fe(e?.storageKey ?? V);
|
|
195
195
|
function t() {
|
|
196
|
-
|
|
196
|
+
B.value = !B.value;
|
|
197
197
|
}
|
|
198
198
|
return {
|
|
199
|
-
isDark:
|
|
199
|
+
isDark: B,
|
|
200
200
|
toggleTheme: t
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
203
|
//#endregion
|
|
204
204
|
//#region src/components/BaseButton.vue?vue&type=script&setup=true&lang.ts
|
|
205
|
-
var
|
|
205
|
+
var Le = [
|
|
206
206
|
"type",
|
|
207
207
|
"disabled",
|
|
208
208
|
"onClick"
|
|
209
|
-
],
|
|
209
|
+
], Re = {
|
|
210
210
|
key: 0,
|
|
211
211
|
class: "inline-flex items-center"
|
|
212
|
-
},
|
|
212
|
+
}, ze = { key: 1 }, Be = { key: 2 }, Ve = ["type", "disabled"], He = {
|
|
213
213
|
key: 0,
|
|
214
214
|
class: "inline-flex items-center"
|
|
215
|
-
},
|
|
215
|
+
}, Ue = { key: 1 }, We = { key: 2 }, U = /* @__PURE__ */ d({
|
|
216
216
|
__name: "BaseButton",
|
|
217
217
|
props: {
|
|
218
218
|
description: {
|
|
@@ -222,7 +222,7 @@ var Ee = [
|
|
|
222
222
|
color: {
|
|
223
223
|
type: String,
|
|
224
224
|
required: !1,
|
|
225
|
-
default:
|
|
225
|
+
default: R.BLUE
|
|
226
226
|
},
|
|
227
227
|
to: {
|
|
228
228
|
type: String,
|
|
@@ -266,297 +266,297 @@ var Ee = [
|
|
|
266
266
|
}
|
|
267
267
|
},
|
|
268
268
|
setup(e) {
|
|
269
|
-
let { isDark: t } =
|
|
270
|
-
function
|
|
269
|
+
let { isDark: t } = H(), n = e;
|
|
270
|
+
function r() {
|
|
271
271
|
let e = {
|
|
272
|
-
[
|
|
272
|
+
[R.BLUE]: {
|
|
273
273
|
light: "text-blue-700 border-blue-300 hover:bg-blue-50",
|
|
274
274
|
dark: "text-blue-400 border-blue-500/40 hover:bg-blue-500/10"
|
|
275
275
|
},
|
|
276
|
-
[
|
|
276
|
+
[R.GREEN]: {
|
|
277
277
|
light: "text-green-700 border-green-300 hover:bg-green-50",
|
|
278
278
|
dark: "text-green-400 border-green-500/40 hover:bg-green-500/10"
|
|
279
279
|
},
|
|
280
|
-
[
|
|
280
|
+
[R.EMERALD]: {
|
|
281
281
|
light: "text-emerald-700 border-emerald-300 hover:bg-emerald-50",
|
|
282
282
|
dark: "text-emerald-400 border-emerald-500/40 hover:bg-emerald-500/10"
|
|
283
283
|
},
|
|
284
|
-
[
|
|
284
|
+
[R.RED]: {
|
|
285
285
|
light: "text-red-700 border-red-300 hover:bg-red-50",
|
|
286
286
|
dark: "text-red-400 border-red-500/40 hover:bg-red-500/10"
|
|
287
287
|
},
|
|
288
|
-
[
|
|
288
|
+
[R.YELLOW]: {
|
|
289
289
|
light: "text-yellow-700 border-yellow-300 hover:bg-yellow-50",
|
|
290
290
|
dark: "text-yellow-400 border-yellow-500/40 hover:bg-yellow-500/10"
|
|
291
291
|
},
|
|
292
|
-
[
|
|
292
|
+
[R.PURPLE]: {
|
|
293
293
|
light: "text-purple-700 border-purple-300 hover:bg-purple-50",
|
|
294
294
|
dark: "text-purple-400 border-purple-500/40 hover:bg-purple-500/10"
|
|
295
295
|
},
|
|
296
|
-
[
|
|
296
|
+
[R.SKY]: {
|
|
297
297
|
light: "text-sky-700 border-sky-300 hover:bg-sky-50",
|
|
298
298
|
dark: "text-sky-400 border-sky-500/40 hover:bg-sky-500/10"
|
|
299
299
|
},
|
|
300
|
-
[
|
|
300
|
+
[R.AMBER]: {
|
|
301
301
|
light: "text-amber-700 border-amber-300 hover:bg-amber-50",
|
|
302
302
|
dark: "text-amber-400 border-amber-500/40 hover:bg-amber-500/10"
|
|
303
303
|
},
|
|
304
|
-
[
|
|
304
|
+
[R.GRAY]: {
|
|
305
305
|
light: "text-gray-700 border-gray-300 hover:bg-gray-50",
|
|
306
306
|
dark: "text-gray-300 border-gray-600 hover:bg-gray-800"
|
|
307
307
|
},
|
|
308
|
-
[
|
|
308
|
+
[R.DARK]: {
|
|
309
309
|
light: "text-gray-700 border-gray-300 hover:bg-gray-50",
|
|
310
310
|
dark: "text-gray-300 border-gray-600 hover:bg-gray-800"
|
|
311
311
|
},
|
|
312
|
-
[
|
|
312
|
+
[R.WHITE]: {
|
|
313
313
|
light: "text-gray-700 border-gray-300 hover:bg-gray-50",
|
|
314
314
|
dark: "text-gray-300 border-gray-600 hover:bg-gray-800"
|
|
315
315
|
}
|
|
316
|
-
}, r = e[n.color] ?? e[
|
|
316
|
+
}, r = e[n.color] ?? e[R.BLUE], i = t.value ? r.dark : r.light;
|
|
317
317
|
return n.isDisable || n.isLoading ? `border bg-transparent ${i} opacity-50 cursor-not-allowed` : `focus:outline-none border bg-transparent ${i}`;
|
|
318
318
|
}
|
|
319
319
|
function c() {
|
|
320
320
|
let e = {
|
|
321
|
-
[
|
|
321
|
+
[R.BLUE]: {
|
|
322
322
|
light: "text-blue-600 hover:bg-blue-50",
|
|
323
323
|
dark: "text-blue-400 hover:bg-blue-500/10"
|
|
324
324
|
},
|
|
325
|
-
[
|
|
325
|
+
[R.GREEN]: {
|
|
326
326
|
light: "text-green-600 hover:bg-green-50",
|
|
327
327
|
dark: "text-green-400 hover:bg-green-500/10"
|
|
328
328
|
},
|
|
329
|
-
[
|
|
329
|
+
[R.EMERALD]: {
|
|
330
330
|
light: "text-emerald-600 hover:bg-emerald-50",
|
|
331
331
|
dark: "text-emerald-400 hover:bg-emerald-500/10"
|
|
332
332
|
},
|
|
333
|
-
[
|
|
333
|
+
[R.SKY]: {
|
|
334
334
|
light: "text-sky-600 hover:bg-sky-50",
|
|
335
335
|
dark: "text-sky-400 hover:bg-sky-500/10"
|
|
336
336
|
},
|
|
337
|
-
[
|
|
337
|
+
[R.RED]: {
|
|
338
338
|
light: "text-red-500 hover:bg-red-50",
|
|
339
339
|
dark: "text-red-400 hover:bg-red-500/10"
|
|
340
340
|
},
|
|
341
|
-
[
|
|
341
|
+
[R.AMBER]: {
|
|
342
342
|
light: "text-amber-700 hover:bg-amber-50",
|
|
343
343
|
dark: "text-amber-300 hover:bg-amber-500/10"
|
|
344
344
|
},
|
|
345
|
-
[
|
|
345
|
+
[R.YELLOW]: {
|
|
346
346
|
light: "text-yellow-600 hover:bg-yellow-50",
|
|
347
347
|
dark: "text-yellow-400 hover:bg-yellow-500/10"
|
|
348
348
|
},
|
|
349
|
-
[
|
|
349
|
+
[R.PURPLE]: {
|
|
350
350
|
light: "text-purple-600 hover:bg-purple-50",
|
|
351
351
|
dark: "text-purple-400 hover:bg-purple-500/10"
|
|
352
352
|
},
|
|
353
|
-
[
|
|
353
|
+
[R.GRAY]: {
|
|
354
354
|
light: "text-gray-500 hover:bg-gray-100",
|
|
355
355
|
dark: "text-gray-400 hover:bg-gray-800"
|
|
356
356
|
},
|
|
357
|
-
[
|
|
357
|
+
[R.DARK]: {
|
|
358
358
|
light: "text-gray-500 hover:bg-gray-100",
|
|
359
359
|
dark: "text-gray-400 hover:bg-gray-800"
|
|
360
360
|
},
|
|
361
|
-
[
|
|
361
|
+
[R.WHITE]: {
|
|
362
362
|
light: "text-gray-500 hover:bg-gray-100",
|
|
363
363
|
dark: "text-gray-400 hover:bg-gray-800"
|
|
364
364
|
}
|
|
365
|
-
}, r = e[n.color] ?? e[
|
|
365
|
+
}, r = e[n.color] ?? e[R.GRAY], i = t.value ? r.dark : r.light;
|
|
366
366
|
return n.isDisable || n.isLoading ? `bg-transparent ${i} opacity-60 cursor-not-allowed` : `focus:outline-none bg-transparent ${i} cursor-pointer`;
|
|
367
367
|
}
|
|
368
368
|
function l() {
|
|
369
369
|
let e = n.isDisable || n.isLoading, t;
|
|
370
370
|
switch (n.color) {
|
|
371
|
-
case
|
|
371
|
+
case R.BLUE:
|
|
372
372
|
t = e ? "text-white bg-blue-400 cursor-not-allowed" : "focus:outline-none text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300";
|
|
373
373
|
break;
|
|
374
|
-
case
|
|
374
|
+
case R.WHITE:
|
|
375
375
|
t = e ? "text-gray-900 bg-gray-200 border border-gray-200 cursor-not-allowed" : "focus:outline-none text-gray-900 bg-white border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-200";
|
|
376
376
|
break;
|
|
377
|
-
case
|
|
377
|
+
case R.DARK:
|
|
378
378
|
t = e ? "text-white bg-gray-400 cursor-not-allowed" : "focus:outline-none text-white bg-gray-800 hover:bg-gray-900 focus:ring-4 focus:ring-gray-300";
|
|
379
379
|
break;
|
|
380
|
-
case
|
|
380
|
+
case R.GREEN:
|
|
381
381
|
t = e ? "text-white bg-green-400 cursor-not-allowed" : "focus:outline-none text-white bg-green-700 hover:bg-green-800 focus:ring-4 focus:ring-green-300";
|
|
382
382
|
break;
|
|
383
|
-
case
|
|
383
|
+
case R.EMERALD:
|
|
384
384
|
t = e ? "text-white bg-emerald-400 cursor-not-allowed" : "focus:outline-none text-white bg-emerald-600 hover:bg-emerald-700 focus:ring-4 focus:ring-emerald-300";
|
|
385
385
|
break;
|
|
386
|
-
case
|
|
386
|
+
case R.RED:
|
|
387
387
|
t = e ? "text-white bg-red-400 cursor-not-allowed" : "focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300";
|
|
388
388
|
break;
|
|
389
|
-
case
|
|
389
|
+
case R.YELLOW:
|
|
390
390
|
t = e ? "text-white bg-yellow-300 cursor-not-allowed" : "focus:outline-none text-white bg-yellow-400 hover:bg-yellow-500 focus:ring-4 focus:ring-yellow-300";
|
|
391
391
|
break;
|
|
392
|
-
case
|
|
392
|
+
case R.PURPLE:
|
|
393
393
|
t = e ? "text-white bg-purple-400 cursor-not-allowed" : "focus:outline-none text-white bg-purple-700 hover:bg-purple-800 focus:ring-4 focus:ring-purple-300";
|
|
394
394
|
break;
|
|
395
|
-
case
|
|
395
|
+
case R.SKY:
|
|
396
396
|
t = e ? "text-white bg-sky-400 cursor-not-allowed" : "focus:outline-none text-white bg-sky-600 hover:bg-sky-700 focus:ring-4 focus:ring-sky-300";
|
|
397
397
|
break;
|
|
398
|
-
case
|
|
398
|
+
case R.AMBER:
|
|
399
399
|
t = e ? "text-white bg-amber-300 cursor-not-allowed" : "focus:outline-none text-white bg-amber-500 hover:bg-amber-600 focus:ring-4 focus:ring-amber-300";
|
|
400
400
|
break;
|
|
401
|
-
case
|
|
401
|
+
case R.GRAY:
|
|
402
402
|
t = e ? "text-white bg-gray-400 cursor-not-allowed" : "focus:outline-none text-white bg-gray-600 hover:bg-gray-700 focus:ring-4 focus:ring-gray-300";
|
|
403
403
|
break;
|
|
404
404
|
default:
|
|
405
405
|
t = e ? "text-white bg-blue-400 cursor-not-allowed" : "focus:outline-none text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300";
|
|
406
406
|
break;
|
|
407
407
|
}
|
|
408
|
-
n.outline && (t =
|
|
409
|
-
let
|
|
408
|
+
n.outline && (t = r()), n.ghost && (t = c());
|
|
409
|
+
let i = "px-5 py-2.5 mr-2 mb-2 text-sm";
|
|
410
410
|
switch (n.size) {
|
|
411
|
-
case
|
|
412
|
-
|
|
411
|
+
case z.EXTRA_SMALL:
|
|
412
|
+
i = "px-3 py-2 text-xs";
|
|
413
413
|
break;
|
|
414
|
-
case
|
|
415
|
-
|
|
414
|
+
case z.SMALL:
|
|
415
|
+
i = "px-3 py-2 text-sm";
|
|
416
416
|
break;
|
|
417
|
-
case
|
|
418
|
-
|
|
417
|
+
case z.BASE:
|
|
418
|
+
i = "px-5 py-2.5 text-sm";
|
|
419
419
|
break;
|
|
420
|
-
case
|
|
421
|
-
|
|
420
|
+
case z.LARGE:
|
|
421
|
+
i = "px-5 py-3 text-base";
|
|
422
422
|
break;
|
|
423
|
-
case
|
|
424
|
-
|
|
423
|
+
case z.EXTRA_LARGE:
|
|
424
|
+
i = "px-6 py-3.5 text-base";
|
|
425
425
|
break;
|
|
426
426
|
}
|
|
427
|
-
let
|
|
428
|
-
return n.isRounded && (
|
|
427
|
+
let a = "rounded-lg";
|
|
428
|
+
return n.isRounded && (a = "rounded-full"), "inline-flex items-center " + i + " " + t + " font-medium " + a;
|
|
429
429
|
}
|
|
430
|
-
return (t,
|
|
431
|
-
let c =
|
|
432
|
-
return e.to ? (
|
|
430
|
+
return (t, r) => {
|
|
431
|
+
let c = C("router-link");
|
|
432
|
+
return e.to ? (y(), i(c, {
|
|
433
433
|
key: 0,
|
|
434
434
|
to: e.to,
|
|
435
435
|
custom: ""
|
|
436
436
|
}, {
|
|
437
|
-
default:
|
|
437
|
+
default: M(({ navigate: i }) => [s("button", {
|
|
438
438
|
type: n.type,
|
|
439
|
-
class:
|
|
439
|
+
class: m(l()),
|
|
440
440
|
disabled: e.isDisable || e.isLoading,
|
|
441
|
-
onClick:
|
|
441
|
+
onClick: i
|
|
442
442
|
}, [
|
|
443
|
-
e.isLoading ? (
|
|
443
|
+
e.isLoading ? (y(), o("div", Re, [...r[0] ||= [s("svg", {
|
|
444
444
|
"aria-hidden": "true",
|
|
445
445
|
role: "status",
|
|
446
446
|
class: "inline w-4 h-4 me-3 animate-spin",
|
|
447
447
|
viewBox: "0 0 100 101",
|
|
448
448
|
fill: "none",
|
|
449
449
|
xmlns: "http://www.w3.org/2000/svg"
|
|
450
|
-
}, [
|
|
450
|
+
}, [s("path", {
|
|
451
451
|
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
452
452
|
fill: "#E5E7EB"
|
|
453
|
-
}),
|
|
453
|
+
}), s("path", {
|
|
454
454
|
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
455
455
|
fill: "currentColor"
|
|
456
|
-
})], -1)]])) :
|
|
457
|
-
e.iconLeft ?
|
|
458
|
-
|
|
459
|
-
e.iconLeft ? (
|
|
460
|
-
], 10,
|
|
456
|
+
})], -1)]])) : a("", !0),
|
|
457
|
+
e.iconLeft ? a("", !0) : (y(), o("span", ze, T(e.description), 1)),
|
|
458
|
+
S(t.$slots, "default"),
|
|
459
|
+
e.iconLeft ? (y(), o("span", Be, T(e.description), 1)) : a("", !0)
|
|
460
|
+
], 10, Le)]),
|
|
461
461
|
_: 3
|
|
462
|
-
}, 8, ["to"])) : (
|
|
462
|
+
}, 8, ["to"])) : (y(), o("button", {
|
|
463
463
|
key: 1,
|
|
464
464
|
type: n.type,
|
|
465
|
-
class:
|
|
465
|
+
class: m(l()),
|
|
466
466
|
disabled: e.isDisable || e.isLoading
|
|
467
467
|
}, [
|
|
468
|
-
e.isLoading ? (
|
|
468
|
+
e.isLoading ? (y(), o("div", He, [...r[1] ||= [s("svg", {
|
|
469
469
|
"aria-hidden": "true",
|
|
470
470
|
role: "status",
|
|
471
471
|
class: "inline w-4 h-4 me-3 animate-spin",
|
|
472
472
|
viewBox: "0 0 100 101",
|
|
473
473
|
fill: "none",
|
|
474
474
|
xmlns: "http://www.w3.org/2000/svg"
|
|
475
|
-
}, [
|
|
475
|
+
}, [s("path", {
|
|
476
476
|
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
477
477
|
fill: "#E5E7EB"
|
|
478
|
-
}),
|
|
478
|
+
}), s("path", {
|
|
479
479
|
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
480
480
|
fill: "currentColor"
|
|
481
|
-
})], -1)]])) :
|
|
482
|
-
e.iconLeft ?
|
|
483
|
-
|
|
484
|
-
e.iconLeft ? (
|
|
485
|
-
], 10,
|
|
481
|
+
})], -1)]])) : a("", !0),
|
|
482
|
+
e.iconLeft ? a("", !0) : (y(), o("span", Ue, T(e.description), 1)),
|
|
483
|
+
S(t.$slots, "default"),
|
|
484
|
+
e.iconLeft ? (y(), o("span", We, T(e.description), 1)) : a("", !0)
|
|
485
|
+
], 10, Ve));
|
|
486
486
|
};
|
|
487
487
|
}
|
|
488
|
-
}),
|
|
488
|
+
}), W = /* @__PURE__ */ function(e) {
|
|
489
489
|
return e.BASE = "BASE", e.BASE_SHORTER = "BASE_SHORTER", e.SQUARE = "SQUARE", e;
|
|
490
|
-
}({}),
|
|
490
|
+
}({}), Ge = {
|
|
491
491
|
key: 0,
|
|
492
492
|
class: "h-px my-8 bg-gray-200 border-0 dark:bg-gray-700"
|
|
493
|
-
},
|
|
493
|
+
}, Ke = {
|
|
494
494
|
key: 1,
|
|
495
495
|
class: "w-48 h-1 mx-auto my-4 bg-gray-100 border-0 rounded md:my-10 dark:bg-gray-700"
|
|
496
|
-
},
|
|
496
|
+
}, qe = {
|
|
497
497
|
key: 2,
|
|
498
498
|
class: "w-8 h-8 mx-auto my-8 bg-gray-200 border-0 rounded md:my-12 dark:bg-gray-700"
|
|
499
|
-
},
|
|
499
|
+
}, Je = /* @__PURE__ */ d({
|
|
500
500
|
__name: "BaseLine",
|
|
501
501
|
props: { mode: {
|
|
502
502
|
type: String,
|
|
503
503
|
required: !1,
|
|
504
|
-
default:
|
|
504
|
+
default: W.BASE
|
|
505
505
|
} },
|
|
506
506
|
setup(t) {
|
|
507
|
-
return (n, r) => (
|
|
508
|
-
t.mode ===
|
|
509
|
-
t.mode ===
|
|
510
|
-
t.mode ===
|
|
507
|
+
return (n, r) => (y(), o(e, null, [
|
|
508
|
+
t.mode === E(W).BASE ? (y(), o("hr", Ge)) : a("", !0),
|
|
509
|
+
t.mode === E(W).BASE_SHORTER ? (y(), o("hr", Ke)) : a("", !0),
|
|
510
|
+
t.mode === E(W).SQUARE ? (y(), o("hr", qe)) : a("", !0)
|
|
511
511
|
], 64));
|
|
512
512
|
}
|
|
513
|
-
}),
|
|
513
|
+
}), G = /* @__PURE__ */ function(e) {
|
|
514
514
|
return e.SMALL = "SMALL", e.MEDIUM = "MEDIUM", e.LARGE = "LARGE", e;
|
|
515
|
-
}({}),
|
|
515
|
+
}({}), Ye = G, Xe = ["height", "width"], Ze = /* @__PURE__ */ d({
|
|
516
516
|
__name: "BaseLogo",
|
|
517
517
|
props: { size: {
|
|
518
518
|
type: String,
|
|
519
519
|
required: !1,
|
|
520
|
-
default:
|
|
520
|
+
default: G.MEDIUM
|
|
521
521
|
} },
|
|
522
522
|
setup(e) {
|
|
523
523
|
let t = e;
|
|
524
524
|
function n() {
|
|
525
525
|
let e = "";
|
|
526
526
|
switch (t.size) {
|
|
527
|
-
case
|
|
527
|
+
case G.SMALL:
|
|
528
528
|
e = "50px";
|
|
529
529
|
break;
|
|
530
|
-
case
|
|
530
|
+
case G.MEDIUM:
|
|
531
531
|
e = "100px";
|
|
532
532
|
break;
|
|
533
|
-
case
|
|
533
|
+
case G.LARGE:
|
|
534
534
|
e = "150px";
|
|
535
535
|
break;
|
|
536
536
|
}
|
|
537
537
|
return e;
|
|
538
538
|
}
|
|
539
539
|
return (e, t) => {
|
|
540
|
-
let
|
|
541
|
-
return
|
|
540
|
+
let r = C("router-link");
|
|
541
|
+
return y(), i(r, {
|
|
542
542
|
to: "/",
|
|
543
543
|
class: "flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white"
|
|
544
544
|
}, {
|
|
545
|
-
default:
|
|
545
|
+
default: M(() => [(y(), o("svg", {
|
|
546
546
|
height: n(),
|
|
547
547
|
width: n(),
|
|
548
548
|
viewBox: "33.6 130.6 499.7 242.9",
|
|
549
549
|
xmlns: "http://www.w3.org/2000/svg",
|
|
550
550
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
551
551
|
}, [...t[0] ||= [
|
|
552
|
-
|
|
552
|
+
s("linearGradient", { id: "a" }, [s("stop", {
|
|
553
553
|
offset: ".085",
|
|
554
554
|
"stop-color": "#469e43"
|
|
555
|
-
}),
|
|
555
|
+
}), s("stop", {
|
|
556
556
|
offset: "1",
|
|
557
557
|
"stop-color": "#132d13"
|
|
558
558
|
})], -1),
|
|
559
|
-
|
|
559
|
+
s("linearGradient", {
|
|
560
560
|
id: "b",
|
|
561
561
|
gradientUnits: "userSpaceOnUse",
|
|
562
562
|
x1: "64.863",
|
|
@@ -565,7 +565,7 @@ var Ee = [
|
|
|
565
565
|
y1: "288.291",
|
|
566
566
|
y2: "369.4"
|
|
567
567
|
}, null, -1),
|
|
568
|
-
|
|
568
|
+
s("linearGradient", {
|
|
569
569
|
id: "c",
|
|
570
570
|
gradientUnits: "userSpaceOnUse",
|
|
571
571
|
x1: "138.367",
|
|
@@ -574,7 +574,7 @@ var Ee = [
|
|
|
574
574
|
y1: "308.454",
|
|
575
575
|
y2: "370.601"
|
|
576
576
|
}, null, -1),
|
|
577
|
-
|
|
577
|
+
s("linearGradient", {
|
|
578
578
|
id: "d",
|
|
579
579
|
gradientUnits: "userSpaceOnUse",
|
|
580
580
|
x1: "195.475",
|
|
@@ -583,7 +583,7 @@ var Ee = [
|
|
|
583
583
|
y1: "288.291",
|
|
584
584
|
y2: "369.85"
|
|
585
585
|
}, null, -1),
|
|
586
|
-
|
|
586
|
+
s("linearGradient", {
|
|
587
587
|
id: "e",
|
|
588
588
|
gradientUnits: "userSpaceOnUse",
|
|
589
589
|
x1: "249.634",
|
|
@@ -592,7 +592,7 @@ var Ee = [
|
|
|
592
592
|
y1: "307.312",
|
|
593
593
|
y2: "369.511"
|
|
594
594
|
}, null, -1),
|
|
595
|
-
|
|
595
|
+
s("linearGradient", {
|
|
596
596
|
id: "f",
|
|
597
597
|
gradientUnits: "userSpaceOnUse",
|
|
598
598
|
x1: "302.884",
|
|
@@ -601,7 +601,7 @@ var Ee = [
|
|
|
601
601
|
y1: "288.291",
|
|
602
602
|
y2: "367.857"
|
|
603
603
|
}, null, -1),
|
|
604
|
-
|
|
604
|
+
s("linearGradient", {
|
|
605
605
|
id: "g",
|
|
606
606
|
gradientUnits: "userSpaceOnUse",
|
|
607
607
|
x1: "354.118",
|
|
@@ -610,7 +610,7 @@ var Ee = [
|
|
|
610
610
|
y1: "307.312",
|
|
611
611
|
y2: "369.511"
|
|
612
612
|
}, null, -1),
|
|
613
|
-
|
|
613
|
+
s("linearGradient", {
|
|
614
614
|
id: "h",
|
|
615
615
|
gradientUnits: "userSpaceOnUse",
|
|
616
616
|
x1: "428.02",
|
|
@@ -619,7 +619,7 @@ var Ee = [
|
|
|
619
619
|
y1: "306.156",
|
|
620
620
|
y2: "367.742"
|
|
621
621
|
}, null, -1),
|
|
622
|
-
|
|
622
|
+
s("linearGradient", {
|
|
623
623
|
id: "i",
|
|
624
624
|
gradientUnits: "userSpaceOnUse",
|
|
625
625
|
x1: "502.066",
|
|
@@ -628,7 +628,7 @@ var Ee = [
|
|
|
628
628
|
y1: "288.291",
|
|
629
629
|
y2: "369.4"
|
|
630
630
|
}, null, -1),
|
|
631
|
-
|
|
631
|
+
s("linearGradient", {
|
|
632
632
|
id: "j",
|
|
633
633
|
gradientUnits: "userSpaceOnUse",
|
|
634
634
|
x1: "283.264",
|
|
@@ -637,78 +637,78 @@ var Ee = [
|
|
|
637
637
|
y1: "131.629",
|
|
638
638
|
y2: "232.559"
|
|
639
639
|
}, null, -1),
|
|
640
|
-
|
|
640
|
+
s("linearGradient", {
|
|
641
641
|
id: "k",
|
|
642
642
|
gradientUnits: "userSpaceOnUse",
|
|
643
643
|
x1: "283.46",
|
|
644
644
|
x2: "283.46",
|
|
645
645
|
y1: "202.275",
|
|
646
646
|
y2: "183.785"
|
|
647
|
-
}, [
|
|
647
|
+
}, [s("stop", {
|
|
648
648
|
offset: "0",
|
|
649
649
|
"stop-color": "#969799",
|
|
650
650
|
"stop-opacity": "0"
|
|
651
|
-
}),
|
|
651
|
+
}), s("stop", {
|
|
652
652
|
offset: "1",
|
|
653
653
|
"stop-color": "#808183"
|
|
654
654
|
})], -1),
|
|
655
|
-
|
|
655
|
+
s("path", {
|
|
656
656
|
d: "m65 307.2c-6.8 0-13.1 2.2-18.2 5.9v-24.8h-13.2v81.1h31.4c17.2 0 31.1-13.9 31.1-31.1s-13.9-31.1-31.1-31.1zm0 49.3h-18.2v-18.2c0-10.1 8.2-18.2 18.2-18.2 10.1 0 18.2 8.2 18.2 18.2.1 10.1-8.1 18.2-18.2 18.2z",
|
|
657
657
|
fill: "url(#b)"
|
|
658
658
|
}, null, -1),
|
|
659
|
-
|
|
659
|
+
s("path", {
|
|
660
660
|
d: "m168.8 343.9h-46.7c1.4 7.1 6.6 12 14.1 12.7 6.4.6 12.9.1 19.9.1v11.9c-15.2 4.9-33.3.5-42.1-10.4-3.8-4.7-17.3-34.7 11.5-47.4 39-11.4 45.3 22.4 43.3 33.1zm-14.2-12.7c-1.7-8.1-8.8-12.9-17.9-12.3-7.6.5-14 5.8-14.5 12.3z",
|
|
661
661
|
fill: "url(#c)"
|
|
662
662
|
}, null, -1),
|
|
663
|
-
|
|
663
|
+
s("path", {
|
|
664
664
|
d: "m195.5 320.2c0 10.5-.2 20 .1 29.6.2 5.8 4.4 8.4 13.2 8.6v10.5c-13.8 3.9-26.2-4.5-26.4-18-.2-18.7-.1-43.9-.1-62.6h14.1l-.3 18.5 12.7-.1v13.4h-13.3z",
|
|
665
665
|
fill: "url(#d)"
|
|
666
666
|
}, null, -1),
|
|
667
|
-
|
|
667
|
+
s("path", {
|
|
668
668
|
d: "m249.6 307.3c-17.2 0-31.1 13.9-31.1 31.1s13.9 31.1 31.1 31.1h31.1v-31.1c0-17.2-13.9-31.1-31.1-31.1zm18.6 49.7h-18.5c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5 18.5 8.3 18.5 18.5z",
|
|
669
669
|
fill: "url(#e)"
|
|
670
670
|
}, null, -1),
|
|
671
|
-
|
|
671
|
+
s("path", {
|
|
672
672
|
d: "m296.4 288.3h13v79.6h-13z",
|
|
673
673
|
fill: "url(#f)"
|
|
674
674
|
}, null, -1),
|
|
675
|
-
|
|
675
|
+
s("path", {
|
|
676
676
|
d: "m354.1 307.3c-17.2 0-31.1 13.9-31.1 31.1s13.9 31.1 31.1 31.1h31.1v-31.1c0-17.2-13.9-31.1-31.1-31.1zm18.6 49.7h-18.5c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5 18.5 8.3 18.5 18.5z",
|
|
677
677
|
fill: "url(#g)"
|
|
678
678
|
}, null, -1),
|
|
679
|
-
|
|
679
|
+
s("path", {
|
|
680
680
|
d: "m442.2 367.7c0-12.3.2-23.6 0-34.9-.2-3.4-3.6-13.8-14.1-13.4-10.3-.3-14.4 10-14.3 12.7.1 10.2.5 35.1.5 35.1l-13.6.1s-.3-25.7.2-36.2c.6-14.1 12.7-25 27.5-25 14.7 0 26.2 10.4 26.7 24.9.4 10.4.5 36.3.5 36.3z",
|
|
681
681
|
fill: "url(#h)"
|
|
682
682
|
}, null, -1),
|
|
683
|
-
|
|
683
|
+
s("path", {
|
|
684
684
|
d: "m501.9 307.2c6.8 0 13.1 2.2 18.2 5.9v-24.8h13.2v81.1h-31.4c-17.2 0-31.1-13.9-31.1-31.1s13.9-31.1 31.1-31.1zm0 49.3h18.2v-18.2c0-10.1-8.2-18.2-18.2-18.2-10.1 0-18.2 8.2-18.2 18.2 0 10.1 8.1 18.2 18.2 18.2z",
|
|
685
685
|
fill: "url(#i)"
|
|
686
686
|
}, null, -1),
|
|
687
|
-
|
|
687
|
+
s("path", {
|
|
688
688
|
d: "m309.2 180.6h-24v-24c0-12.6 10.2-24.1 22.8-25 14.8-1 27.1 11.3 26.1 26.1-.8 12.7-12.3 22.9-24.9 22.9zm-50.7-48.9c-14.8-1-27.1 11.3-26.1 26.1.8 12.6 12.4 22.8 25 22.8h23.9v-24c0-12.6-10.3-24.1-22.8-24.9zm50.7 51.9h-24v23.9c0 12.6 10.2 24.1 22.8 25 14.8 1 27.1-11.3 26.1-26.1-.8-12.6-12.3-22.8-24.9-22.8zm-52.4 0c-14 0-25.3 11.8-24.4 26 .8 12.2 10.7 22.1 22.9 22.9 14.2.9 26-10.4 26-24.4v-24.5z",
|
|
689
689
|
fill: "url(#j)"
|
|
690
690
|
}, null, -1),
|
|
691
|
-
|
|
691
|
+
s("path", {
|
|
692
692
|
d: "m281.7 183.8h3.6v18.5h-3.6z",
|
|
693
693
|
fill: "url(#k)"
|
|
694
694
|
}, null, -1)
|
|
695
|
-
]], 8,
|
|
695
|
+
]], 8, Xe))]),
|
|
696
696
|
_: 1
|
|
697
697
|
});
|
|
698
698
|
};
|
|
699
699
|
}
|
|
700
|
-
}),
|
|
700
|
+
}), Qe = /* @__PURE__ */ function(e) {
|
|
701
701
|
return e.DELETE = "DELETE", e.SUCCESS = "SUCCESS", e;
|
|
702
|
-
}({}),
|
|
702
|
+
}({}), $e = {
|
|
703
703
|
key: 0,
|
|
704
704
|
class: "p-6 text-center"
|
|
705
|
-
},
|
|
705
|
+
}, et = { class: "flex justify-center" }, tt = {
|
|
706
706
|
key: 1,
|
|
707
707
|
class: "p-6 text-center"
|
|
708
|
-
},
|
|
708
|
+
}, nt = {
|
|
709
709
|
key: 0,
|
|
710
710
|
class: "mb-5 text-sm text-gray-500"
|
|
711
|
-
},
|
|
711
|
+
}, rt = { class: "flex justify-center" }, it = /* @__PURE__ */ d({
|
|
712
712
|
__name: "BaseModal",
|
|
713
713
|
props: {
|
|
714
714
|
title: {
|
|
@@ -727,58 +727,58 @@ var Ee = [
|
|
|
727
727
|
mode: {
|
|
728
728
|
type: String,
|
|
729
729
|
required: !1,
|
|
730
|
-
default:
|
|
730
|
+
default: Qe.SUCCESS
|
|
731
731
|
}
|
|
732
732
|
},
|
|
733
733
|
emits: ["closeModal", "confirmModal"],
|
|
734
734
|
setup(t, { emit: n }) {
|
|
735
|
-
let r = n,
|
|
736
|
-
function
|
|
735
|
+
let r = n, i = `modal-title-${Math.random().toString(36).slice(2, 9)}`;
|
|
736
|
+
function c(e) {
|
|
737
737
|
e.key === "Escape" && r("closeModal");
|
|
738
738
|
}
|
|
739
|
-
return
|
|
740
|
-
document.addEventListener("keydown",
|
|
741
|
-
}),
|
|
742
|
-
document.removeEventListener("keydown",
|
|
743
|
-
}), (n, r) => (
|
|
739
|
+
return g(() => {
|
|
740
|
+
document.addEventListener("keydown", c);
|
|
741
|
+
}), v(() => {
|
|
742
|
+
document.removeEventListener("keydown", c);
|
|
743
|
+
}), (n, r) => (y(), o(e, null, [s("div", {
|
|
744
744
|
class: "fixed inset-0 w-full h-screen bg-black/75 z-40",
|
|
745
745
|
onClick: r[0] ||= (e) => n.$emit("closeModal")
|
|
746
|
-
}),
|
|
746
|
+
}), s("div", {
|
|
747
747
|
class: "fixed top-[20vh] left-1/2 -translate-x-1/2 w-96 z-50 rounded-xl shadow-lg bg-white overflow-hidden",
|
|
748
748
|
role: "dialog",
|
|
749
749
|
"aria-modal": "true",
|
|
750
|
-
"aria-labelledby":
|
|
751
|
-
}, [t.mode ===
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
id:
|
|
750
|
+
"aria-labelledby": i
|
|
751
|
+
}, [t.mode === E(Qe).DELETE ? (y(), o("div", $e, [
|
|
752
|
+
u(E(fe), { class: "w-12 h-12 text-gray-400 mx-auto mb-4" }),
|
|
753
|
+
s("h3", {
|
|
754
|
+
id: i,
|
|
755
755
|
class: "mb-5 text-lg font-normal text-gray-500 dark:text-gray-400"
|
|
756
|
-
}, " Are you sure you want to delete this " +
|
|
757
|
-
|
|
758
|
-
color:
|
|
756
|
+
}, " Are you sure you want to delete this " + T(t.title) + "? ", 1),
|
|
757
|
+
s("div", et, [u(U, {
|
|
758
|
+
color: E(R).RED,
|
|
759
759
|
onClick: r[1] ||= (e) => n.$emit("confirmModal"),
|
|
760
760
|
description: "Yes, I'm sure"
|
|
761
|
-
}, null, 8, ["color"]),
|
|
762
|
-
color:
|
|
761
|
+
}, null, 8, ["color"]), u(U, {
|
|
762
|
+
color: E(R).WHITE,
|
|
763
763
|
onClick: r[2] ||= (e) => n.$emit("closeModal"),
|
|
764
764
|
description: "No, cancel"
|
|
765
765
|
}, null, 8, ["color"])])
|
|
766
|
-
])) : (
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
id:
|
|
766
|
+
])) : (y(), o("div", tt, [
|
|
767
|
+
u(E(ae), { class: "w-12 h-12 text-green-500 mx-auto mb-4" }),
|
|
768
|
+
s("h3", {
|
|
769
|
+
id: i,
|
|
770
770
|
class: "mb-2 text-lg font-medium text-gray-900"
|
|
771
|
-
},
|
|
772
|
-
t.description ? (
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
color:
|
|
771
|
+
}, T(t.title), 1),
|
|
772
|
+
t.description ? (y(), o("p", nt, T(t.description), 1)) : a("", !0),
|
|
773
|
+
S(n.$slots, "default"),
|
|
774
|
+
s("div", rt, [u(U, {
|
|
775
|
+
color: E(R).BLUE,
|
|
776
776
|
onClick: r[3] ||= (e) => n.$emit("closeModal"),
|
|
777
777
|
description: "OK"
|
|
778
778
|
}, null, 8, ["color"])])
|
|
779
779
|
]))])], 64));
|
|
780
780
|
}
|
|
781
|
-
}),
|
|
781
|
+
}), at = /* @__PURE__ */ d({
|
|
782
782
|
__name: "BaseRow",
|
|
783
783
|
props: { bgColor: {
|
|
784
784
|
type: String,
|
|
@@ -790,21 +790,21 @@ var Ee = [
|
|
|
790
790
|
function n() {
|
|
791
791
|
return "block p-8 border border-gray-200 rounded-xl shadow-sm dark:bg-gray-800 dark:border-gray-700 " + t.bgColor;
|
|
792
792
|
}
|
|
793
|
-
return (e, t) => (
|
|
793
|
+
return (e, t) => (y(), o("div", { class: m(n()) }, [S(e.$slots, "default")], 2));
|
|
794
794
|
}
|
|
795
|
-
}),
|
|
795
|
+
}), ot = /* @__PURE__ */ d({
|
|
796
796
|
__name: "BaseSpinner",
|
|
797
797
|
props: {
|
|
798
798
|
size: { default: "sm" },
|
|
799
799
|
color: { default: "blue" }
|
|
800
800
|
},
|
|
801
801
|
setup(e) {
|
|
802
|
-
let t = e,
|
|
802
|
+
let t = e, n = r(() => ({
|
|
803
803
|
sm: "w-4 h-4 border-2",
|
|
804
804
|
md: "w-6 h-6 border-2",
|
|
805
805
|
lg: "w-8 h-8 border-4",
|
|
806
806
|
xl: "w-12 h-12 border-4"
|
|
807
|
-
})[t.size]), i =
|
|
807
|
+
})[t.size]), i = r(() => ({
|
|
808
808
|
blue: "border-t-blue-500",
|
|
809
809
|
emerald: "border-t-emerald-500",
|
|
810
810
|
sky: "border-t-sky-500",
|
|
@@ -814,17 +814,17 @@ var Ee = [
|
|
|
814
814
|
red: "border-t-red-500",
|
|
815
815
|
amber: "border-t-amber-500"
|
|
816
816
|
})[t.color]);
|
|
817
|
-
return (e, t) => (
|
|
818
|
-
class:
|
|
817
|
+
return (e, t) => (y(), o("div", {
|
|
818
|
+
class: m(["border-gray-200 rounded-full animate-spin", [n.value, i.value]]),
|
|
819
819
|
role: "status",
|
|
820
820
|
"aria-label": "Loading"
|
|
821
821
|
}, null, 2));
|
|
822
822
|
}
|
|
823
|
-
}),
|
|
823
|
+
}), K = /* @__PURE__ */ function(e) {
|
|
824
824
|
return e.SUCCESS = "SUCCESS", e.WARNING = "WARNING", e.ERROR = "ERROR", e;
|
|
825
|
-
}({}),
|
|
825
|
+
}({}), q = /* @__PURE__ */ function(e) {
|
|
826
826
|
return e.TOP_LEFT = "TOP_LEFT", e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e.BOTTOM_RIGHT = "BOTTOM_RIGHT", e;
|
|
827
|
-
}({}),
|
|
827
|
+
}({}), st = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800" }, ct = { class: "ml-3 text-sm font-normal" }, lt = /* @__PURE__ */ d({
|
|
828
828
|
__name: "BaseToast",
|
|
829
829
|
props: {
|
|
830
830
|
mode: {
|
|
@@ -843,7 +843,7 @@ var Ee = [
|
|
|
843
843
|
positioning: {
|
|
844
844
|
type: String,
|
|
845
845
|
required: !1,
|
|
846
|
-
default:
|
|
846
|
+
default: q.TOP_RIGHT
|
|
847
847
|
},
|
|
848
848
|
duration: {
|
|
849
849
|
type: Number,
|
|
@@ -852,25 +852,25 @@ var Ee = [
|
|
|
852
852
|
}
|
|
853
853
|
},
|
|
854
854
|
setup(e) {
|
|
855
|
-
let t = e, n =
|
|
856
|
-
function
|
|
855
|
+
let t = e, n = b(!0), r = null;
|
|
856
|
+
function i() {
|
|
857
857
|
n.value = !1, r &&= (clearTimeout(r), null);
|
|
858
858
|
}
|
|
859
|
-
|
|
859
|
+
g(() => {
|
|
860
860
|
r = setTimeout(() => n.value = !1, t.duration);
|
|
861
|
-
}),
|
|
861
|
+
}), v(() => {
|
|
862
862
|
r && clearTimeout(r);
|
|
863
863
|
});
|
|
864
|
-
function
|
|
864
|
+
function c() {
|
|
865
865
|
let e = "";
|
|
866
866
|
switch (t.mode) {
|
|
867
|
-
case
|
|
867
|
+
case K.ERROR:
|
|
868
868
|
e = "text-red-500 bg-red-100 dark:bg-red-800 dark:text-red-200";
|
|
869
869
|
break;
|
|
870
|
-
case
|
|
870
|
+
case K.SUCCESS:
|
|
871
871
|
e = "text-green-500 bg-green-100 dark:bg-green-800 dark:text-green-200";
|
|
872
872
|
break;
|
|
873
|
-
case
|
|
873
|
+
case K.WARNING:
|
|
874
874
|
e = "text-orange-500 bg-orange-100 dark:bg-orange-700 dark:text-orange-200";
|
|
875
875
|
break;
|
|
876
876
|
default:
|
|
@@ -879,51 +879,51 @@ var Ee = [
|
|
|
879
879
|
}
|
|
880
880
|
return "inline-flex items-center justify-center flex-shrink-0 w-8 h-8 rounded-lg " + e;
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function l() {
|
|
883
883
|
let e = "top-5 right-5";
|
|
884
884
|
switch (t.positioning) {
|
|
885
|
-
case
|
|
885
|
+
case q.BOTTOM_LEFT:
|
|
886
886
|
e = "bottom-5 left-5";
|
|
887
887
|
break;
|
|
888
|
-
case
|
|
888
|
+
case q.TOP_LEFT:
|
|
889
889
|
e = "top-5 left-5";
|
|
890
890
|
break;
|
|
891
|
-
case
|
|
891
|
+
case q.TOP_RIGHT:
|
|
892
892
|
e = "top-5 right-5";
|
|
893
893
|
break;
|
|
894
|
-
case
|
|
894
|
+
case q.BOTTOM_RIGHT:
|
|
895
895
|
e = "bottom-5 right-5";
|
|
896
896
|
break;
|
|
897
897
|
}
|
|
898
898
|
return "fixed flex items-center w-full max-w-md p-4 space-x-4 divide-x rounded-lg " + e;
|
|
899
899
|
}
|
|
900
|
-
return (t, r) => n.value ? (
|
|
900
|
+
return (t, r) => n.value ? (y(), o("div", {
|
|
901
901
|
key: 0,
|
|
902
902
|
id: "toast-top-right",
|
|
903
|
-
class:
|
|
903
|
+
class: m(l()),
|
|
904
904
|
role: "alert"
|
|
905
|
-
}, [
|
|
906
|
-
e.mode ==
|
|
905
|
+
}, [s("div", st, [
|
|
906
|
+
e.mode == E(K).ERROR ? (y(), o("div", {
|
|
907
907
|
key: 0,
|
|
908
|
-
class:
|
|
909
|
-
}, [
|
|
908
|
+
class: m(c())
|
|
909
|
+
}, [u(E(fe), { class: "h-6 w-6 text-red-500" }), r[0] ||= s("span", { class: "sr-only" }, "Error icon", -1)], 2)) : e.mode == E(K).SUCCESS ? (y(), o("div", {
|
|
910
910
|
key: 1,
|
|
911
|
-
class:
|
|
912
|
-
}, [
|
|
911
|
+
class: m(c())
|
|
912
|
+
}, [u(E(ae), { class: "h-6 w-6 text-green-500" }), r[1] ||= s("span", { class: "sr-only" }, "Check icon", -1)], 2)) : e.mode == E(K).WARNING ? (y(), o("div", {
|
|
913
913
|
key: 2,
|
|
914
|
-
class:
|
|
915
|
-
}, [
|
|
916
|
-
|
|
917
|
-
e.hasCloseIcon ? (
|
|
914
|
+
class: m(c())
|
|
915
|
+
}, [u(E(pe), { class: "h-6 w-6 text-yellow-500" }), r[2] ||= s("span", { class: "sr-only" }, "Warning icon", -1)], 2)) : a("", !0),
|
|
916
|
+
s("div", ct, T(e.description), 1),
|
|
917
|
+
e.hasCloseIcon ? (y(), o("button", {
|
|
918
918
|
key: 3,
|
|
919
919
|
type: "button",
|
|
920
920
|
class: "ml-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700 cursor-pointer",
|
|
921
921
|
"aria-label": "Close",
|
|
922
|
-
onClick:
|
|
923
|
-
}, [r[3] ||=
|
|
924
|
-
])], 2)) :
|
|
922
|
+
onClick: i
|
|
923
|
+
}, [r[3] ||= s("span", { class: "sr-only" }, "Close", -1), u(E(be), { class: "h-6 w-6 text-gray-500" })])) : a("", !0)
|
|
924
|
+
])], 2)) : a("", !0);
|
|
925
925
|
}
|
|
926
|
-
}),
|
|
926
|
+
}), ut = { class: "w-13" }, dt = /* @__PURE__ */ d({
|
|
927
927
|
__name: "ColoredSquares",
|
|
928
928
|
props: { color: {
|
|
929
929
|
type: String,
|
|
@@ -940,29 +940,29 @@ var Ee = [
|
|
|
940
940
|
"bg-yellow-300",
|
|
941
941
|
"bg-purple-300",
|
|
942
942
|
"bg-pink-300"
|
|
943
|
-
], r =
|
|
943
|
+
], r = b(n[Math.floor(Math.random() * n.length)]);
|
|
944
944
|
function i() {
|
|
945
945
|
let e = "gray";
|
|
946
946
|
switch (t.color) {
|
|
947
|
-
case
|
|
947
|
+
case L.GREEN:
|
|
948
948
|
e = "green";
|
|
949
949
|
break;
|
|
950
|
-
case
|
|
950
|
+
case L.RED:
|
|
951
951
|
e = "red";
|
|
952
952
|
break;
|
|
953
|
-
case
|
|
953
|
+
case L.BLUE:
|
|
954
954
|
e = "blue";
|
|
955
955
|
break;
|
|
956
|
-
case
|
|
956
|
+
case L.YELLOW:
|
|
957
957
|
e = "yellow";
|
|
958
958
|
break;
|
|
959
|
-
case
|
|
959
|
+
case L.NONE: return "font-bold text-xs mr-2 px-2.5 py-0.5 rounded-full";
|
|
960
960
|
}
|
|
961
961
|
return "font-bold text-xs mr-2 px-2.5 py-0.5 rounded-full bg-" + e + "-100 text-" + e + "-800";
|
|
962
962
|
}
|
|
963
|
-
return (e, t) => (
|
|
963
|
+
return (e, t) => (y(), o("div", ut, [s("div", { class: m(["border border-gray-300 relative aspect-square rounded-lg bg-white shadow-sm overflow-hidden flex items-center justify-center text-center", i()]) }, [S(e.$slots, "default"), s("div", { class: m(["absolute bottom-0 left-0 h-1 w-full", r.value]) }, null, 2)], 2)]));
|
|
964
964
|
}
|
|
965
|
-
}),
|
|
965
|
+
}), ft = { class: "flex items-start justify-between" }, pt = { class: "text-sm font-bold tracking-wide text-gray-800 dark:text-slate-200" }, mt = /* @__PURE__ */ d({
|
|
966
966
|
__name: "EarningsCard",
|
|
967
967
|
props: {
|
|
968
968
|
title: { default: "TOTAL EARNINGS" },
|
|
@@ -971,10 +971,14 @@ var Ee = [
|
|
|
971
971
|
badge: { default: "" },
|
|
972
972
|
currency: { default: "$" },
|
|
973
973
|
decimals: { default: 2 },
|
|
974
|
-
accent: { default: "orange" }
|
|
974
|
+
accent: { default: "orange" },
|
|
975
|
+
signed: {
|
|
976
|
+
type: Boolean,
|
|
977
|
+
default: !1
|
|
978
|
+
}
|
|
975
979
|
},
|
|
976
|
-
setup(
|
|
977
|
-
let
|
|
980
|
+
setup(t) {
|
|
981
|
+
let n = t, i = {
|
|
978
982
|
orange: {
|
|
979
983
|
border: "border-orange-300 dark:border-orange-700",
|
|
980
984
|
badge: "bg-orange-100 text-orange-500 dark:bg-orange-900/40 dark:text-orange-400",
|
|
@@ -990,35 +994,43 @@ var Ee = [
|
|
|
990
994
|
subtitle: "text-emerald-500 dark:text-emerald-400",
|
|
991
995
|
iconBox: "bg-emerald-50 dark:bg-emerald-900/30",
|
|
992
996
|
icon: "text-emerald-500"
|
|
997
|
+
},
|
|
998
|
+
red: {
|
|
999
|
+
border: "border-red-300 dark:border-red-700",
|
|
1000
|
+
badge: "bg-red-100 text-red-600 dark:bg-red-900/40 dark:text-red-400",
|
|
1001
|
+
amount: "text-red-500 dark:text-red-400",
|
|
1002
|
+
subtitle: "text-red-500 dark:text-red-400",
|
|
1003
|
+
iconBox: "bg-red-50 dark:bg-red-900/30",
|
|
1004
|
+
icon: "text-red-500"
|
|
993
1005
|
}
|
|
994
|
-
},
|
|
995
|
-
let e = Number
|
|
996
|
-
return
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
});
|
|
1001
|
-
return (
|
|
1006
|
+
}, c = r(() => {
|
|
1007
|
+
let e = Number(n.amount);
|
|
1008
|
+
return Number.isFinite(e) ? e : 0;
|
|
1009
|
+
}), l = r(() => n.signed && c.value < 0), u = r(() => l.value ? "red" : n.accent), d = r(() => i[u.value]), f = r(() => n.currency + c.value.toLocaleString("en-US", {
|
|
1010
|
+
minimumFractionDigits: n.decimals,
|
|
1011
|
+
maximumFractionDigits: n.decimals
|
|
1012
|
+
}));
|
|
1013
|
+
return (n, r) => (y(), o("div", { class: m(["relative rounded-xl border-2 border-dashed bg-white p-6 dark:bg-slate-800", d.value.border]) }, [t.badge ? (y(), o("div", {
|
|
1002
1014
|
key: 0,
|
|
1003
|
-
class:
|
|
1004
|
-
},
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
]),
|
|
1009
|
-
class:
|
|
1015
|
+
class: m(["absolute right-4 top-4 rounded-md px-3 py-1 text-xs font-bold tracking-wide", d.value.badge])
|
|
1016
|
+
}, T(t.badge), 3)) : a("", !0), s("div", ft, [s("div", null, [
|
|
1017
|
+
s("p", pt, T(t.title), 1),
|
|
1018
|
+
s("p", { class: m(["mt-1 text-4xl font-bold", d.value.amount]) }, T(f.value), 3),
|
|
1019
|
+
s("p", { class: m(["mt-1 text-sm font-medium", d.value.subtitle]) }, T(t.subtitle), 3)
|
|
1020
|
+
]), s("div", { class: m(["mt-6 flex h-12 w-12 items-center justify-center rounded-xl", d.value.iconBox]) }, [(y(), o("svg", {
|
|
1021
|
+
class: m(["h-6 w-6", d.value.icon]),
|
|
1010
1022
|
viewBox: "0 0 24 24",
|
|
1011
1023
|
fill: "none",
|
|
1012
1024
|
stroke: "currentColor",
|
|
1013
1025
|
"stroke-width": "2.5",
|
|
1014
1026
|
"stroke-linecap": "round",
|
|
1015
1027
|
"stroke-linejoin": "round"
|
|
1016
|
-
}, [
|
|
1028
|
+
}, [l.value ? (y(), o(e, { key: 0 }, [r[0] ||= s("polyline", { points: "22 17 13.5 8.5 8.5 13.5 2 7" }, null, -1), r[1] ||= s("polyline", { points: "16 17 22 17 22 11" }, null, -1)], 64)) : (y(), o(e, { key: 1 }, [r[2] ||= s("polyline", { points: "22 7 13.5 15.5 8.5 10.5 2 17" }, null, -1), r[3] ||= s("polyline", { points: "16 7 22 7 22 13" }, null, -1)], 64))], 2))], 2)])], 2));
|
|
1017
1029
|
}
|
|
1018
|
-
}),
|
|
1030
|
+
}), ht = {
|
|
1019
1031
|
key: 0,
|
|
1020
1032
|
class: "font-bold text-green-800"
|
|
1021
|
-
},
|
|
1033
|
+
}, gt = { key: 0 }, _t = { key: 0 }, vt = "font-bold", yt = /* @__PURE__ */ d({
|
|
1022
1034
|
__name: "EuroAmount",
|
|
1023
1035
|
props: {
|
|
1024
1036
|
amount: {
|
|
@@ -1037,16 +1049,16 @@ var Ee = [
|
|
|
1037
1049
|
}
|
|
1038
1050
|
},
|
|
1039
1051
|
setup(t) {
|
|
1040
|
-
let
|
|
1041
|
-
return (n, r) => (
|
|
1052
|
+
let n = t, i = r(() => n.amount !== null && n.amount !== void 0), s = r(() => i.value && n.amount < 0), c = r(() => n.beforeAmount === null || n.beforeAmount === void 0 ? !1 : n.amount < n.beforeAmount), u = r(() => s.value || c.value), d = r(() => !s.value && !c.value && !(n.beforeAmount === null || n.beforeAmount === void 0));
|
|
1053
|
+
return (n, r) => (y(), o(e, null, [i.value && d.value ? (y(), o("span", ht, [l(T(t.amount) + " ", 1), t.showCurrency ? (y(), o("span", gt, "€")) : a("", !0)])) : a("", !0), i.value && !d.value ? (y(), o("span", {
|
|
1042
1054
|
key: 1,
|
|
1043
|
-
class:
|
|
1044
|
-
}, [
|
|
1055
|
+
class: m([vt, u.value ? "text-red-800" : "text-gray-800"])
|
|
1056
|
+
}, [l(T(t.amount) + " ", 1), t.showCurrency ? (y(), o("span", _t, "€")) : a("", !0)], 2)) : a("", !0)], 64));
|
|
1045
1057
|
}
|
|
1046
|
-
}),
|
|
1058
|
+
}), bt = { class: "flex list-none p-0 m-0" }, xt = ["onClick", "onKeydown"], St = {
|
|
1047
1059
|
key: 1,
|
|
1048
1060
|
class: "inline-block border border-gray-300 rounded-lg p-3 text-black cursor-not-allowed"
|
|
1049
|
-
},
|
|
1061
|
+
}, Ct = /* @__PURE__ */ d({
|
|
1050
1062
|
__name: "Pagination",
|
|
1051
1063
|
props: {
|
|
1052
1064
|
totalItems: {
|
|
@@ -1060,44 +1072,44 @@ var Ee = [
|
|
|
1060
1072
|
},
|
|
1061
1073
|
emits: ["page-changed"],
|
|
1062
1074
|
setup(t, { emit: n }) {
|
|
1063
|
-
let r = t, i =
|
|
1075
|
+
let r = t, i = b(1), a = b(0), c = b([]), l = n;
|
|
1064
1076
|
function u(e) {
|
|
1065
|
-
if (
|
|
1066
|
-
c.value = Array.from({ length:
|
|
1077
|
+
if (a.value <= 5) {
|
|
1078
|
+
c.value = Array.from({ length: a.value }, (e, t) => t + 1);
|
|
1067
1079
|
return;
|
|
1068
1080
|
}
|
|
1069
|
-
let t = [], n = Math.max(1, e - 2), r = Math.min(
|
|
1081
|
+
let t = [], n = Math.max(1, e - 2), r = Math.min(a.value, e + 2);
|
|
1070
1082
|
n > 1 && (t.push(1), n > 2 && t.push(0));
|
|
1071
1083
|
for (let e = n; e <= r; e++) t.push(e);
|
|
1072
|
-
r <
|
|
1084
|
+
r < a.value && (r < a.value - 1 && t.push(0), t.push(a.value)), c.value = t;
|
|
1073
1085
|
}
|
|
1074
1086
|
function d(e) {
|
|
1075
|
-
e === i.value || e < 1 || e >
|
|
1087
|
+
e === i.value || e < 1 || e > a.value || (i.value = e, u(e), l("page-changed", e));
|
|
1076
1088
|
}
|
|
1077
|
-
return
|
|
1078
|
-
|
|
1079
|
-
}, { immediate: !0 }), (t, n) => (
|
|
1089
|
+
return j(() => [r.totalItems, r.itemsPerPage], () => {
|
|
1090
|
+
a.value = Math.ceil(r.totalItems / r.itemsPerPage), i.value > a.value && (i.value = Math.max(1, a.value)), u(i.value);
|
|
1091
|
+
}, { immediate: !0 }), (t, n) => (y(), o("div", null, [s("ul", bt, [(y(!0), o(e, null, x(c.value, (e, t) => (y(), o("li", {
|
|
1080
1092
|
key: t,
|
|
1081
1093
|
class: "mr-1"
|
|
1082
|
-
}, [e === 0 ? (
|
|
1094
|
+
}, [e === 0 ? (y(), o("span", St, "...")) : (y(), o("a", {
|
|
1083
1095
|
key: 0,
|
|
1084
1096
|
role: "button",
|
|
1085
1097
|
tabindex: "0",
|
|
1086
1098
|
onClick: (t) => d(e),
|
|
1087
|
-
onKeydown:
|
|
1088
|
-
class:
|
|
1089
|
-
},
|
|
1099
|
+
onKeydown: P((t) => d(e), ["enter"]),
|
|
1100
|
+
class: m(["inline-block border border-gray-300 rounded-lg p-3 no-underline text-black cursor-pointer hover:bg-gray-300", { "active font-bold bg-gray-200": e === i.value }])
|
|
1101
|
+
}, T(e), 43, xt))]))), 128))])]));
|
|
1090
1102
|
}
|
|
1091
|
-
}),
|
|
1103
|
+
}), wt = { key: 0 }, Tt = {
|
|
1092
1104
|
key: 0,
|
|
1093
1105
|
class: "flex items-center space-x-2"
|
|
1094
|
-
},
|
|
1106
|
+
}, Et = {
|
|
1095
1107
|
key: 1,
|
|
1096
1108
|
class: "flex items-center space-x-2"
|
|
1097
|
-
},
|
|
1109
|
+
}, Dt = {
|
|
1098
1110
|
key: 2,
|
|
1099
1111
|
class: "flex items-center space-x-2"
|
|
1100
|
-
},
|
|
1112
|
+
}, Ot = /* @__PURE__ */ d({
|
|
1101
1113
|
__name: "TrendArrow",
|
|
1102
1114
|
props: {
|
|
1103
1115
|
number: {
|
|
@@ -1110,58 +1122,58 @@ var Ee = [
|
|
|
1110
1122
|
}
|
|
1111
1123
|
},
|
|
1112
1124
|
setup(e) {
|
|
1113
|
-
let t = e,
|
|
1114
|
-
return (
|
|
1115
|
-
default:
|
|
1125
|
+
let t = e, n = r(() => t.number !== null && t.number !== void 0 && t.number < 0), i = r(() => t.number === 0);
|
|
1126
|
+
return (r, s) => e.number !== null && e.number !== void 0 ? (y(), o("div", wt, [n.value ? (y(), o("span", Tt, [u(ke, { color: E(L).RED }, {
|
|
1127
|
+
default: M(() => [l(T(e.number) + T(t.icon), 1)]),
|
|
1116
1128
|
_: 1
|
|
1117
|
-
}, 8, ["color"]),
|
|
1118
|
-
default:
|
|
1129
|
+
}, 8, ["color"]), u(E(te), { class: "h-5 w-5 text-red-500" })])) : i.value ? (y(), o("span", Et, [u(ke, { color: E(L).GRAY }, {
|
|
1130
|
+
default: M(() => [l(T(e.number) + T(t.icon), 1)]),
|
|
1119
1131
|
_: 1
|
|
1120
|
-
}, 8, ["color"]),
|
|
1121
|
-
default:
|
|
1132
|
+
}, 8, ["color"]), u(E(_e), { class: "h-5 w-5 text-gray-400" })])) : (y(), o("span", Dt, [u(ke, { color: E(L).GREEN }, {
|
|
1133
|
+
default: M(() => [l(T(e.number) + T(t.icon), 1)]),
|
|
1122
1134
|
_: 1
|
|
1123
|
-
}, 8, ["color"]),
|
|
1135
|
+
}, 8, ["color"]), u(E(ne), { class: "h-5 w-5 text-green-500" })]))])) : a("", !0);
|
|
1124
1136
|
}
|
|
1125
1137
|
});
|
|
1126
1138
|
//#endregion
|
|
1127
1139
|
//#region src/composables/useThemeClasses.ts
|
|
1128
|
-
function
|
|
1129
|
-
let { isDark: e } =
|
|
1140
|
+
function J() {
|
|
1141
|
+
let { isDark: e } = H();
|
|
1130
1142
|
return {
|
|
1131
|
-
card:
|
|
1132
|
-
cardAlt:
|
|
1133
|
-
pageBg:
|
|
1134
|
-
border:
|
|
1135
|
-
divider:
|
|
1136
|
-
primaryText:
|
|
1137
|
-
primaryTextSoft:
|
|
1138
|
-
bodyText:
|
|
1139
|
-
label:
|
|
1140
|
-
mutedText:
|
|
1141
|
-
subtleText:
|
|
1142
|
-
dimText:
|
|
1143
|
-
dimTextAlt:
|
|
1144
|
-
illustration:
|
|
1145
|
-
input:
|
|
1146
|
-
inputWithPlaceholder:
|
|
1147
|
-
ghostButton:
|
|
1148
|
-
emeraldText:
|
|
1149
|
-
amberText:
|
|
1150
|
-
amberTextStrong:
|
|
1151
|
-
redText:
|
|
1143
|
+
card: r(() => e.value ? "bg-gray-800 border-gray-700" : "bg-white border-gray-200"),
|
|
1144
|
+
cardAlt: r(() => e.value ? "bg-gray-900 border-gray-700" : "bg-white border-gray-200"),
|
|
1145
|
+
pageBg: r(() => e.value ? "bg-gray-900" : "bg-gray-50"),
|
|
1146
|
+
border: r(() => e.value ? "border-gray-700" : "border-gray-200"),
|
|
1147
|
+
divider: r(() => e.value ? "border-gray-800" : "border-gray-100"),
|
|
1148
|
+
primaryText: r(() => e.value ? "text-white" : "text-gray-900"),
|
|
1149
|
+
primaryTextSoft: r(() => e.value ? "text-gray-100" : "text-gray-800"),
|
|
1150
|
+
bodyText: r(() => e.value ? "text-gray-200" : "text-gray-700"),
|
|
1151
|
+
label: r(() => e.value ? "text-gray-300" : "text-gray-700"),
|
|
1152
|
+
mutedText: r(() => e.value ? "text-gray-400" : "text-gray-600"),
|
|
1153
|
+
subtleText: r(() => e.value ? "text-gray-500" : "text-gray-600"),
|
|
1154
|
+
dimText: r(() => e.value ? "text-gray-500" : "text-gray-400"),
|
|
1155
|
+
dimTextAlt: r(() => e.value ? "text-gray-400" : "text-gray-500"),
|
|
1156
|
+
illustration: r(() => e.value ? "text-gray-600" : "text-gray-300"),
|
|
1157
|
+
input: r(() => e.value ? "bg-gray-700 border-gray-600 text-white" : "bg-gray-50 border-gray-300 text-gray-900"),
|
|
1158
|
+
inputWithPlaceholder: r(() => e.value ? "bg-gray-700 border-gray-600 text-white placeholder-gray-400" : "bg-gray-50 border-gray-300 text-gray-900 placeholder-gray-500"),
|
|
1159
|
+
ghostButton: r(() => e.value ? "bg-gray-800 text-gray-200 border-gray-600 hover:bg-gray-700" : "bg-white text-gray-700 border-gray-300 hover:bg-gray-50"),
|
|
1160
|
+
emeraldText: r(() => e.value ? "text-emerald-400" : "text-emerald-600"),
|
|
1161
|
+
amberText: r(() => e.value ? "text-amber-400" : "text-amber-600"),
|
|
1162
|
+
amberTextStrong: r(() => e.value ? "text-amber-300" : "text-amber-700"),
|
|
1163
|
+
redText: r(() => e.value ? "text-red-400" : "text-red-500")
|
|
1152
1164
|
};
|
|
1153
1165
|
}
|
|
1154
1166
|
//#endregion
|
|
1155
1167
|
//#region src/composables/useEscapeKey.ts
|
|
1156
|
-
function
|
|
1168
|
+
function Y(e) {
|
|
1157
1169
|
function t(t) {
|
|
1158
1170
|
t.key === "Escape" && e();
|
|
1159
1171
|
}
|
|
1160
|
-
|
|
1172
|
+
g(() => document.addEventListener("keydown", t)), h(() => document.removeEventListener("keydown", t));
|
|
1161
1173
|
}
|
|
1162
1174
|
//#endregion
|
|
1163
1175
|
//#region src/components/BaseModalShell.vue?vue&type=script&setup=true&lang.ts
|
|
1164
|
-
var
|
|
1176
|
+
var kt = { class: "flex items-start gap-4 min-w-0" }, At = { class: "flex-1 min-w-0" }, jt = { class: "p-6 overflow-y-auto flex-1" }, Mt = { class: "p-6" }, Nt = { class: "flex items-start gap-4" }, Pt = { class: "flex-1" }, Ft = { class: "mt-4" }, It = { class: "mt-6 flex gap-3 justify-end" }, Lt = /* @__PURE__ */ d({
|
|
1165
1177
|
__name: "BaseModalShell",
|
|
1166
1178
|
props: {
|
|
1167
1179
|
title: {},
|
|
@@ -1177,50 +1189,50 @@ var vt = { class: "flex items-start gap-4 min-w-0" }, yt = { class: "flex-1 min-
|
|
|
1177
1189
|
subtitle: { default: "" }
|
|
1178
1190
|
},
|
|
1179
1191
|
emits: ["cancel", "backdrop"],
|
|
1180
|
-
setup(e, { emit:
|
|
1181
|
-
let c = e, l =
|
|
1192
|
+
setup(e, { emit: n }) {
|
|
1193
|
+
let c = e, l = n, { isDark: u } = H(), d = J(), f = `modal-title-${Math.random().toString(36).slice(2, 9)}`, p = r(() => u.value ? "bg-gray-900 border border-gray-700" : "bg-white border border-gray-200");
|
|
1182
1194
|
function h() {
|
|
1183
1195
|
l("backdrop"), c.manualClose || l("cancel");
|
|
1184
1196
|
}
|
|
1185
|
-
return
|
|
1197
|
+
return Y(() => {
|
|
1186
1198
|
c.manualClose || l("cancel");
|
|
1187
|
-
}), (n,
|
|
1199
|
+
}), (n, r) => (y(), i(t, { to: "body" }, [s("div", {
|
|
1188
1200
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/50",
|
|
1189
1201
|
role: "dialog",
|
|
1190
1202
|
"aria-modal": "true",
|
|
1191
|
-
"aria-labelledby":
|
|
1203
|
+
"aria-labelledby": f,
|
|
1192
1204
|
onClick: h
|
|
1193
|
-
}, [e.scrollable ? (
|
|
1205
|
+
}, [e.scrollable ? (y(), o("div", {
|
|
1194
1206
|
key: 0,
|
|
1195
|
-
class:
|
|
1196
|
-
onClick:
|
|
1207
|
+
class: m(["relative w-full mx-4 rounded-lg shadow-xl max-h-[90vh] flex flex-col", [e.maxWidthClass, p.value]]),
|
|
1208
|
+
onClick: r[0] ||= F(() => {}, ["stop"])
|
|
1197
1209
|
}, [
|
|
1198
|
-
|
|
1199
|
-
id:
|
|
1200
|
-
class:
|
|
1201
|
-
},
|
|
1210
|
+
s("div", { class: m(["flex items-start justify-between gap-4 p-6 border-b shrink-0", E(d).border]) }, [s("div", kt, [S(n.$slots, "icon"), s("div", At, [s("h3", {
|
|
1211
|
+
id: f,
|
|
1212
|
+
class: m(["text-lg font-medium", E(d).primaryText])
|
|
1213
|
+
}, T(e.title), 3), e.subtitle ? (y(), o("p", {
|
|
1202
1214
|
key: 0,
|
|
1203
|
-
class:
|
|
1204
|
-
},
|
|
1205
|
-
|
|
1206
|
-
n.$slots.footer ? (
|
|
1215
|
+
class: m(["text-sm mt-1 break-all", E(d).mutedText])
|
|
1216
|
+
}, T(e.subtitle), 3)) : a("", !0)])]), S(n.$slots, "header-actions")], 2),
|
|
1217
|
+
s("div", jt, [S(n.$slots, "default")]),
|
|
1218
|
+
n.$slots.footer ? (y(), o("div", {
|
|
1207
1219
|
key: 0,
|
|
1208
|
-
class:
|
|
1209
|
-
}, [
|
|
1210
|
-
], 2)) : (
|
|
1220
|
+
class: m(["flex gap-3 justify-end p-6 border-t shrink-0", E(d).border])
|
|
1221
|
+
}, [S(n.$slots, "footer")], 2)) : a("", !0)
|
|
1222
|
+
], 2)) : (y(), o("div", {
|
|
1211
1223
|
key: 1,
|
|
1212
|
-
class:
|
|
1213
|
-
onClick:
|
|
1214
|
-
}, [
|
|
1215
|
-
|
|
1216
|
-
id:
|
|
1217
|
-
class:
|
|
1218
|
-
},
|
|
1219
|
-
|
|
1220
|
-
|
|
1224
|
+
class: m(["relative w-full mx-4 rounded-lg shadow-xl", [e.maxWidthClass, p.value]]),
|
|
1225
|
+
onClick: r[1] ||= F(() => {}, ["stop"])
|
|
1226
|
+
}, [s("div", Mt, [
|
|
1227
|
+
s("div", Nt, [S(n.$slots, "icon"), s("div", Pt, [s("h3", {
|
|
1228
|
+
id: f,
|
|
1229
|
+
class: m(["text-lg font-medium", E(d).primaryText])
|
|
1230
|
+
}, T(e.title), 3)])]),
|
|
1231
|
+
s("div", Ft, [S(n.$slots, "default")]),
|
|
1232
|
+
s("div", It, [S(n.$slots, "footer")])
|
|
1221
1233
|
])], 2))])]));
|
|
1222
1234
|
}
|
|
1223
|
-
}),
|
|
1235
|
+
}), Rt = ["aria-expanded"], zt = { class: "flex items-center gap-3" }, Bt = /* @__PURE__ */ d({
|
|
1224
1236
|
__name: "BaseCollapsibleSection",
|
|
1225
1237
|
props: {
|
|
1226
1238
|
title: {},
|
|
@@ -1230,35 +1242,35 @@ var vt = { class: "flex items-start gap-4 min-w-0" }, yt = { class: "flex-1 min-
|
|
|
1230
1242
|
},
|
|
1231
1243
|
emits: ["toggle"],
|
|
1232
1244
|
setup(e, { emit: t }) {
|
|
1233
|
-
let
|
|
1234
|
-
return (t, n) => (
|
|
1245
|
+
let n = e, i = t, { isDark: c } = H(), l = J(), u = r(() => c.value ? "text-gray-100" : "text-gray-700"), d = r(() => c.value ? "bg-gray-800/50 hover:bg-gray-800 border-gray-700" : "bg-gray-50 hover:bg-gray-100 border-gray-200"), f = r(() => c.value ? "bg-emerald-500/15 text-emerald-400" : "bg-emerald-50 text-emerald-700"), p = r(() => n.bodyClass === void 0 ? c.value ? "bg-gray-800" : "bg-white" : n.bodyClass);
|
|
1246
|
+
return (t, n) => (y(), o("section", { class: m(["rounded-xl border overflow-hidden transition-colors", E(l).cardAlt]) }, [s("button", {
|
|
1235
1247
|
type: "button",
|
|
1236
|
-
class:
|
|
1248
|
+
class: m(["w-full flex items-center justify-between p-4 text-left transition-colors", d.value]),
|
|
1237
1249
|
"aria-expanded": !e.collapsed,
|
|
1238
|
-
onClick: n[0] ||= (e) =>
|
|
1239
|
-
}, [
|
|
1250
|
+
onClick: n[0] ||= (e) => i("toggle")
|
|
1251
|
+
}, [s("div", zt, [s("h2", { class: m(["text-base font-semibold", u.value]) }, T(e.title), 3), e.badge ? (y(), o("span", {
|
|
1240
1252
|
key: 0,
|
|
1241
|
-
class:
|
|
1242
|
-
},
|
|
1243
|
-
class:
|
|
1253
|
+
class: m(["text-xs px-2 py-0.5 rounded-full", f.value])
|
|
1254
|
+
}, T(e.badge), 3)) : a("", !0)]), (y(), o("svg", {
|
|
1255
|
+
class: m(["w-5 h-5 transition-transform", [e.collapsed ? "" : "rotate-180", E(l).dimTextAlt]]),
|
|
1244
1256
|
fill: "none",
|
|
1245
1257
|
viewBox: "0 0 24 24",
|
|
1246
1258
|
stroke: "currentColor",
|
|
1247
1259
|
"stroke-width": "2",
|
|
1248
1260
|
"aria-hidden": "true"
|
|
1249
|
-
}, [...n[1] ||= [
|
|
1261
|
+
}, [...n[1] ||= [s("path", {
|
|
1250
1262
|
"stroke-linecap": "round",
|
|
1251
1263
|
"stroke-linejoin": "round",
|
|
1252
1264
|
d: "M19 9l-7 7-7-7"
|
|
1253
|
-
}, null, -1)]], 2))], 10,
|
|
1265
|
+
}, null, -1)]], 2))], 10, Rt), N(s("div", { class: m(["p-6 border-t", [E(l).border, p.value]]) }, [S(t.$slots, "default")], 2), [[ee, !e.collapsed]])], 2));
|
|
1254
1266
|
}
|
|
1255
|
-
}),
|
|
1267
|
+
}), Vt = ["disabled"], Ht = ["disabled"], Ut = {
|
|
1256
1268
|
key: 0,
|
|
1257
1269
|
class: "w-4 h-4 animate-spin",
|
|
1258
1270
|
fill: "none",
|
|
1259
1271
|
viewBox: "0 0 24 24",
|
|
1260
1272
|
"aria-hidden": "true"
|
|
1261
|
-
},
|
|
1273
|
+
}, Wt = /* @__PURE__ */ d({
|
|
1262
1274
|
__name: "BaseConfirmModal",
|
|
1263
1275
|
props: {
|
|
1264
1276
|
title: {},
|
|
@@ -1274,49 +1286,49 @@ var vt = { class: "flex items-start gap-4 min-w-0" }, yt = { class: "flex-1 min-
|
|
|
1274
1286
|
},
|
|
1275
1287
|
emits: ["confirm", "cancel"],
|
|
1276
1288
|
setup(e, { emit: t }) {
|
|
1277
|
-
let n = e,
|
|
1278
|
-
function
|
|
1279
|
-
n.submitting ||
|
|
1289
|
+
let n = e, r = t, { isDark: c } = H(), d = J();
|
|
1290
|
+
function f() {
|
|
1291
|
+
n.submitting || r("confirm");
|
|
1280
1292
|
}
|
|
1281
|
-
function
|
|
1282
|
-
n.submitting ||
|
|
1293
|
+
function p() {
|
|
1294
|
+
n.submitting || r("cancel");
|
|
1283
1295
|
}
|
|
1284
|
-
return (t, n) => (
|
|
1296
|
+
return (t, n) => (y(), i(Lt, {
|
|
1285
1297
|
title: e.title,
|
|
1286
1298
|
"manual-close": e.submitting,
|
|
1287
|
-
onCancel:
|
|
1299
|
+
onCancel: p
|
|
1288
1300
|
}, {
|
|
1289
|
-
icon:
|
|
1290
|
-
class:
|
|
1301
|
+
icon: M(() => [s("div", { class: m(["flex-shrink-0 flex h-12 w-12 items-center justify-center rounded-full", [e.variant === "danger" ? E(c) ? "bg-red-900/30" : "bg-red-50" : E(c) ? "bg-amber-900/30" : "bg-amber-50"]]) }, [u(E(pe), {
|
|
1302
|
+
class: m(["h-6 w-6", e.variant === "danger" ? "text-red-600" : "text-amber-600"]),
|
|
1291
1303
|
"aria-hidden": "true"
|
|
1292
1304
|
}, null, 8, ["class"])], 2)]),
|
|
1293
|
-
footer:
|
|
1305
|
+
footer: M(() => [s("button", {
|
|
1294
1306
|
type: "button",
|
|
1295
1307
|
disabled: e.submitting,
|
|
1296
|
-
class:
|
|
1297
|
-
onClick:
|
|
1298
|
-
},
|
|
1308
|
+
class: m(["inline-flex items-center justify-center px-4 py-2 border rounded-md shadow-sm text-sm font-medium transition-colors duration-150", [E(d).ghostButton, e.submitting ? "opacity-60 cursor-not-allowed" : "cursor-pointer"]]),
|
|
1309
|
+
onClick: p
|
|
1310
|
+
}, T(e.cancelText), 11, Vt), s("button", {
|
|
1299
1311
|
type: "button",
|
|
1300
1312
|
disabled: e.submitting,
|
|
1301
|
-
class:
|
|
1302
|
-
onClick:
|
|
1303
|
-
}, [e.submitting ? (
|
|
1313
|
+
class: m(["inline-flex items-center justify-center gap-2 px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white transition-colors duration-150", [e.variant === "danger" ? e.submitting ? "bg-red-400 cursor-not-allowed" : "bg-red-600 hover:bg-red-700 cursor-pointer" : e.submitting ? "bg-emerald-400 cursor-not-allowed" : "bg-emerald-600 hover:bg-emerald-700 cursor-pointer"]]),
|
|
1314
|
+
onClick: f
|
|
1315
|
+
}, [e.submitting ? (y(), o("svg", Ut, [...n[0] ||= [s("circle", {
|
|
1304
1316
|
class: "opacity-25",
|
|
1305
1317
|
cx: "12",
|
|
1306
1318
|
cy: "12",
|
|
1307
1319
|
r: "10",
|
|
1308
1320
|
stroke: "currentColor",
|
|
1309
1321
|
"stroke-width": "4"
|
|
1310
|
-
}, null, -1),
|
|
1322
|
+
}, null, -1), s("path", {
|
|
1311
1323
|
class: "opacity-75",
|
|
1312
1324
|
fill: "currentColor",
|
|
1313
1325
|
d: "M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"
|
|
1314
|
-
}, null, -1)]])) :
|
|
1315
|
-
default:
|
|
1326
|
+
}, null, -1)]])) : a("", !0), l(" " + T(e.submitting ? e.submittingText : e.confirmText), 1)], 10, Ht)]),
|
|
1327
|
+
default: M(() => [S(t.$slots, "message", {}, () => [s("p", { class: m(["text-sm", E(c) ? "text-gray-300" : "text-gray-600"]) }, T(e.message), 3)]), S(t.$slots, "default")]),
|
|
1316
1328
|
_: 3
|
|
1317
1329
|
}, 8, ["title", "manual-close"]));
|
|
1318
1330
|
}
|
|
1319
|
-
}),
|
|
1331
|
+
}), Gt = { class: "mt-4" }, Kt = ["placeholder"], qt = ["disabled"], Jt = /* @__PURE__ */ d({
|
|
1320
1332
|
__name: "BaseTextInputModal",
|
|
1321
1333
|
props: {
|
|
1322
1334
|
title: {},
|
|
@@ -1334,51 +1346,51 @@ var vt = { class: "flex items-start gap-4 min-w-0" }, yt = { class: "flex-1 min-
|
|
|
1334
1346
|
},
|
|
1335
1347
|
emits: ["confirm", "cancel"],
|
|
1336
1348
|
setup(e, { emit: t }) {
|
|
1337
|
-
let n = e,
|
|
1338
|
-
|
|
1339
|
-
await
|
|
1349
|
+
let n = e, r = t, { isDark: a } = H(), o = J(), c = b(n.initialValue), l = b(null);
|
|
1350
|
+
g(async () => {
|
|
1351
|
+
await p(), l.value?.focus();
|
|
1340
1352
|
});
|
|
1341
|
-
function
|
|
1342
|
-
!
|
|
1353
|
+
function d() {
|
|
1354
|
+
!c.value.trim() || n.submitting || r("confirm", c.value.trim());
|
|
1343
1355
|
}
|
|
1344
|
-
function
|
|
1345
|
-
|
|
1356
|
+
function f() {
|
|
1357
|
+
r("cancel");
|
|
1346
1358
|
}
|
|
1347
|
-
function
|
|
1348
|
-
|
|
1359
|
+
function h() {
|
|
1360
|
+
c.value.trim() === (n.initialValue ?? "").trim() && f();
|
|
1349
1361
|
}
|
|
1350
|
-
return
|
|
1362
|
+
return Y(f), (t, n) => (y(), i(Lt, {
|
|
1351
1363
|
title: e.title,
|
|
1352
1364
|
"manual-close": "",
|
|
1353
|
-
onBackdrop:
|
|
1365
|
+
onBackdrop: h
|
|
1354
1366
|
}, {
|
|
1355
|
-
icon:
|
|
1367
|
+
icon: M(() => [S(t.$slots, "icon", {}, () => [s("div", { class: m(["flex-shrink-0 flex h-12 w-12 items-center justify-center rounded-full", E(a) ? "bg-emerald-900/30" : "bg-emerald-50"]) }, [u(E(de), {
|
|
1356
1368
|
class: "h-6 w-6 text-emerald-600",
|
|
1357
1369
|
"aria-hidden": "true"
|
|
1358
1370
|
})], 2)])]),
|
|
1359
|
-
footer:
|
|
1371
|
+
footer: M(() => [s("button", {
|
|
1360
1372
|
type: "button",
|
|
1361
|
-
class:
|
|
1362
|
-
onClick:
|
|
1363
|
-
},
|
|
1373
|
+
class: m(["inline-flex items-center justify-center px-4 py-2 border rounded-md shadow-sm text-sm font-medium transition-colors duration-150", E(o).ghostButton]),
|
|
1374
|
+
onClick: f
|
|
1375
|
+
}, T(e.cancelText), 3), s("button", {
|
|
1364
1376
|
type: "button",
|
|
1365
|
-
disabled: !
|
|
1366
|
-
class:
|
|
1367
|
-
onClick:
|
|
1368
|
-
},
|
|
1369
|
-
default:
|
|
1377
|
+
disabled: !c.value.trim() || e.submitting,
|
|
1378
|
+
class: m(["inline-flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white transition-colors duration-150", [!c.value.trim() || e.submitting ? "bg-emerald-400 cursor-not-allowed" : "bg-emerald-600 hover:bg-emerald-700 cursor-pointer"]]),
|
|
1379
|
+
onClick: d
|
|
1380
|
+
}, T(e.submitting ? e.submittingText : e.confirmText), 11, qt)]),
|
|
1381
|
+
default: M(() => [s("p", { class: m(["text-sm", E(a) ? "text-gray-300" : "text-gray-600"]) }, T(e.message), 3), s("div", Gt, [s("label", { class: m(["block text-sm font-medium mb-1", E(o).label]) }, T(e.inputLabel), 3), N(s("input", {
|
|
1370
1382
|
ref_key: "nameInput",
|
|
1371
|
-
ref:
|
|
1372
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1383
|
+
ref: l,
|
|
1384
|
+
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
1373
1385
|
type: "text",
|
|
1374
1386
|
placeholder: e.placeholder,
|
|
1375
|
-
class:
|
|
1376
|
-
onKeyup:
|
|
1377
|
-
}, null, 42,
|
|
1387
|
+
class: m(["w-full px-3 py-2 rounded-md border text-sm transition-colors", E(a) ? "bg-gray-800 border-gray-600 text-gray-100 placeholder-gray-500 focus:outline-none focus:border-emerald-500" : "bg-white border-gray-300 text-gray-900 placeholder-gray-400 focus:outline-none focus:border-emerald-500"]),
|
|
1388
|
+
onKeyup: P(d, ["enter"])
|
|
1389
|
+
}, null, 42, Kt), [[A, c.value]])])]),
|
|
1378
1390
|
_: 3
|
|
1379
1391
|
}, 8, ["title"]));
|
|
1380
1392
|
}
|
|
1381
|
-
}),
|
|
1393
|
+
}), Yt = { class: "flex items-center justify-center min-h-[60vh]" }, Xt = { class: "text-center px-6" }, Zt = /* @__PURE__ */ d({
|
|
1382
1394
|
__name: "BaseNotFoundPage",
|
|
1383
1395
|
props: {
|
|
1384
1396
|
code: { default: "404" },
|
|
@@ -1387,49 +1399,143 @@ var vt = { class: "flex items-start gap-4 min-w-0" }, yt = { class: "flex-1 min-
|
|
|
1387
1399
|
homeLabel: { default: "Go home" }
|
|
1388
1400
|
},
|
|
1389
1401
|
setup(e) {
|
|
1390
|
-
let t = e, n =
|
|
1391
|
-
function
|
|
1402
|
+
let t = e, n = Ce(), { isDark: r } = H(), i = J();
|
|
1403
|
+
function a() {
|
|
1392
1404
|
n.push({ name: t.homeRouteName });
|
|
1393
1405
|
}
|
|
1394
|
-
return (t, n) => (
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
onClick:
|
|
1400
|
-
class:
|
|
1401
|
-
},
|
|
1406
|
+
return (t, n) => (y(), o("div", Yt, [s("div", Xt, [
|
|
1407
|
+
u(E(pe), { class: m(["w-16 h-16 mx-auto mb-4", E(i).illustration]) }, null, 8, ["class"]),
|
|
1408
|
+
s("h1", { class: m(["text-4xl font-bold mb-2", E(r) ? "text-gray-200" : "text-gray-800"]) }, T(e.code), 3),
|
|
1409
|
+
s("p", { class: m(["text-lg mb-6", E(i).dimTextAlt]) }, T(e.message), 3),
|
|
1410
|
+
s("button", {
|
|
1411
|
+
onClick: a,
|
|
1412
|
+
class: m(["inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium text-white transition-colors cursor-pointer", E(r) ? "bg-emerald-600 hover:bg-emerald-500" : "bg-emerald-600 hover:bg-emerald-700"])
|
|
1413
|
+
}, T(e.homeLabel), 3)
|
|
1402
1414
|
])]));
|
|
1403
1415
|
}
|
|
1404
|
-
}),
|
|
1405
|
-
function
|
|
1416
|
+
}), X = b(!1);
|
|
1417
|
+
function Qt() {
|
|
1406
1418
|
function e() {
|
|
1407
|
-
|
|
1419
|
+
X.value = !0;
|
|
1408
1420
|
}
|
|
1409
1421
|
function t() {
|
|
1410
|
-
|
|
1422
|
+
X.value = !1;
|
|
1411
1423
|
}
|
|
1412
1424
|
function n() {
|
|
1413
|
-
|
|
1425
|
+
X.value = !X.value;
|
|
1414
1426
|
}
|
|
1415
1427
|
return {
|
|
1416
|
-
mobileOpen:
|
|
1428
|
+
mobileOpen: X,
|
|
1417
1429
|
open: e,
|
|
1418
1430
|
close: t,
|
|
1419
1431
|
toggle: n
|
|
1420
1432
|
};
|
|
1421
1433
|
}
|
|
1422
1434
|
//#endregion
|
|
1435
|
+
//#region src/composables/useSidebarCollapse.ts
|
|
1436
|
+
var Z = b(!1), $t = !1, en = "mgv-sidebar-collapsed";
|
|
1437
|
+
function tn(e) {
|
|
1438
|
+
if (!$t && ($t = !0, en = e, typeof window < "u")) {
|
|
1439
|
+
let e = window.localStorage?.getItem(en);
|
|
1440
|
+
e && (Z.value = e === "true"), f(!0).run(() => {
|
|
1441
|
+
j(Z, (e) => {
|
|
1442
|
+
window.localStorage?.setItem(en, String(e));
|
|
1443
|
+
});
|
|
1444
|
+
});
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
function nn(e) {
|
|
1448
|
+
tn(e?.storageKey ?? en);
|
|
1449
|
+
function t() {
|
|
1450
|
+
Z.value = !0;
|
|
1451
|
+
}
|
|
1452
|
+
function n() {
|
|
1453
|
+
Z.value = !1;
|
|
1454
|
+
}
|
|
1455
|
+
function r() {
|
|
1456
|
+
Z.value = !Z.value;
|
|
1457
|
+
}
|
|
1458
|
+
return {
|
|
1459
|
+
collapsed: Z,
|
|
1460
|
+
collapse: t,
|
|
1461
|
+
expand: n,
|
|
1462
|
+
toggle: r
|
|
1463
|
+
};
|
|
1464
|
+
}
|
|
1465
|
+
//#endregion
|
|
1466
|
+
//#region src/composables/useNotifications.ts
|
|
1467
|
+
var Q = b([]), $ = b(!1), rn = r(() => Q.value.filter((e) => !e.read).length);
|
|
1468
|
+
function an() {
|
|
1469
|
+
function e() {
|
|
1470
|
+
$.value = !0;
|
|
1471
|
+
}
|
|
1472
|
+
function t() {
|
|
1473
|
+
$.value = !1;
|
|
1474
|
+
}
|
|
1475
|
+
function n() {
|
|
1476
|
+
$.value = !$.value;
|
|
1477
|
+
}
|
|
1478
|
+
function r(e) {
|
|
1479
|
+
Q.value = e;
|
|
1480
|
+
}
|
|
1481
|
+
function i(e) {
|
|
1482
|
+
Q.value = [e, ...Q.value];
|
|
1483
|
+
}
|
|
1484
|
+
function a(e) {
|
|
1485
|
+
Q.value = Q.value.filter((t) => t.id !== e);
|
|
1486
|
+
}
|
|
1487
|
+
function o(e) {
|
|
1488
|
+
Q.value = Q.value.map((t) => t.id === e ? {
|
|
1489
|
+
...t,
|
|
1490
|
+
read: !0
|
|
1491
|
+
} : t);
|
|
1492
|
+
}
|
|
1493
|
+
function s() {
|
|
1494
|
+
Q.value = Q.value.map((e) => e.read ? e : {
|
|
1495
|
+
...e,
|
|
1496
|
+
read: !0
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1499
|
+
function c() {
|
|
1500
|
+
Q.value = [];
|
|
1501
|
+
}
|
|
1502
|
+
return {
|
|
1503
|
+
notifications: Q,
|
|
1504
|
+
unreadCount: rn,
|
|
1505
|
+
open: $,
|
|
1506
|
+
openPanel: e,
|
|
1507
|
+
closePanel: t,
|
|
1508
|
+
togglePanel: n,
|
|
1509
|
+
setNotifications: r,
|
|
1510
|
+
add: i,
|
|
1511
|
+
remove: a,
|
|
1512
|
+
markRead: o,
|
|
1513
|
+
markAllRead: s,
|
|
1514
|
+
clear: c
|
|
1515
|
+
};
|
|
1516
|
+
}
|
|
1517
|
+
//#endregion
|
|
1423
1518
|
//#region src/components/BaseSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
1424
|
-
var
|
|
1519
|
+
var on = ["aria-label", "aria-expanded"], sn = { class: "flex flex-col h-full" }, cn = { class: "flex-1 overflow-y-auto px-3 space-y-6" }, ln = { class: "space-y-0.5" }, un = [
|
|
1520
|
+
"aria-current",
|
|
1521
|
+
"title",
|
|
1522
|
+
"onClick"
|
|
1523
|
+
], dn = ["aria-label"], fn = { class: "relative shrink-0" }, pn = {
|
|
1524
|
+
key: 0,
|
|
1525
|
+
class: "absolute -top-1.5 -right-1.5 min-w-4 h-4 px-1 rounded-full bg-red-500 text-white text-[10px] font-semibold leading-4 text-center"
|
|
1526
|
+
}, mn = [
|
|
1527
|
+
"title",
|
|
1528
|
+
"aria-label",
|
|
1529
|
+
"aria-pressed"
|
|
1530
|
+
], hn = [
|
|
1425
1531
|
"title",
|
|
1426
1532
|
"aria-label",
|
|
1427
1533
|
"aria-pressed"
|
|
1428
|
-
],
|
|
1534
|
+
], gn = /*#__PURE__*/ ((e, t) => {
|
|
1429
1535
|
let n = e.__vccOpts || e;
|
|
1430
1536
|
for (let [e, r] of t) n[e] = r;
|
|
1431
1537
|
return n;
|
|
1432
|
-
})(/* @__PURE__ */
|
|
1538
|
+
})(/* @__PURE__ */ d({
|
|
1433
1539
|
__name: "BaseSidebar",
|
|
1434
1540
|
props: {
|
|
1435
1541
|
sections: {},
|
|
@@ -1439,119 +1545,162 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
1439
1545
|
showThemeToggle: {
|
|
1440
1546
|
type: Boolean,
|
|
1441
1547
|
default: !0
|
|
1548
|
+
},
|
|
1549
|
+
collapsible: {
|
|
1550
|
+
type: Boolean,
|
|
1551
|
+
default: !0
|
|
1552
|
+
},
|
|
1553
|
+
showNotifications: {
|
|
1554
|
+
type: Boolean,
|
|
1555
|
+
default: !1
|
|
1442
1556
|
}
|
|
1443
1557
|
},
|
|
1444
1558
|
setup(t) {
|
|
1445
|
-
let n = t,
|
|
1446
|
-
|
|
1447
|
-
e ? (
|
|
1559
|
+
let n = t, c = Ce(), d = Se(), { isDark: f, toggleTheme: h } = H(), { mobileOpen: g, close: _, toggle: v } = Qt(), { collapsed: C, toggle: D } = nn(), { unreadCount: O, togglePanel: k } = an(), A = r(() => n.collapsible && C.value), ee = b(null), M = null;
|
|
1560
|
+
j(g, async (e) => {
|
|
1561
|
+
e ? (M = document.activeElement instanceof HTMLElement ? document.activeElement : null, await p(), ee.value?.focus()) : (M?.focus(), M = null);
|
|
1448
1562
|
});
|
|
1449
|
-
function
|
|
1450
|
-
|
|
1563
|
+
function N() {
|
|
1564
|
+
c.push({ name: n.homeRouteName }), _();
|
|
1451
1565
|
}
|
|
1452
|
-
function
|
|
1453
|
-
return
|
|
1566
|
+
function P(e) {
|
|
1567
|
+
return d.name === e;
|
|
1454
1568
|
}
|
|
1455
|
-
function
|
|
1456
|
-
|
|
1569
|
+
function F(e) {
|
|
1570
|
+
c.push({ name: e }), _();
|
|
1457
1571
|
}
|
|
1458
|
-
return (n,
|
|
1459
|
-
|
|
1572
|
+
return (n, r) => (y(), o("div", null, [
|
|
1573
|
+
s("div", { class: m(["mobile-topbar fixed top-0 inset-x-0 z-30 flex items-center justify-between px-4 py-3 border-b transition-colors", E(f) ? "bg-gray-900 border-gray-800" : "bg-white border-gray-200"]) }, [s("button", {
|
|
1460
1574
|
type: "button",
|
|
1461
|
-
onClick:
|
|
1575
|
+
onClick: N,
|
|
1462
1576
|
class: "cursor-pointer",
|
|
1463
1577
|
"aria-label": "Go to home"
|
|
1464
|
-
}, [
|
|
1578
|
+
}, [S(n.$slots, "logo", { size: 28 }, void 0, !0)]), s("button", {
|
|
1465
1579
|
type: "button",
|
|
1466
|
-
onClick:
|
|
1467
|
-
class:
|
|
1468
|
-
"aria-label":
|
|
1469
|
-
"aria-expanded":
|
|
1470
|
-
}, [
|
|
1580
|
+
onClick: r[0] ||= (...e) => E(v) && E(v)(...e),
|
|
1581
|
+
class: m(["p-2 rounded-lg cursor-pointer", E(f) ? "text-gray-400 hover:bg-gray-800" : "text-gray-600 hover:bg-gray-100"]),
|
|
1582
|
+
"aria-label": E(g) ? "Close navigation menu" : "Open navigation menu",
|
|
1583
|
+
"aria-expanded": E(g)
|
|
1584
|
+
}, [E(g) ? (y(), i(E(be), {
|
|
1471
1585
|
key: 1,
|
|
1472
1586
|
class: "w-6 h-6",
|
|
1473
1587
|
"aria-hidden": "true"
|
|
1474
|
-
})) : (
|
|
1588
|
+
})) : (y(), i(E(re), {
|
|
1475
1589
|
key: 0,
|
|
1476
1590
|
class: "w-6 h-6",
|
|
1477
1591
|
"aria-hidden": "true"
|
|
1478
|
-
}))], 10,
|
|
1479
|
-
|
|
1592
|
+
}))], 10, on)], 2),
|
|
1593
|
+
E(g) ? (y(), o("div", {
|
|
1480
1594
|
key: 0,
|
|
1481
1595
|
class: "mobile-overlay fixed inset-0 z-40 bg-black/50",
|
|
1482
1596
|
"aria-hidden": "true",
|
|
1483
|
-
onClick:
|
|
1484
|
-
})) :
|
|
1485
|
-
|
|
1597
|
+
onClick: r[1] ||= (...e) => E(_) && E(_)(...e)
|
|
1598
|
+
})) : a("", !0),
|
|
1599
|
+
s("aside", {
|
|
1486
1600
|
role: "navigation",
|
|
1487
1601
|
"aria-label": "Main navigation",
|
|
1488
|
-
class:
|
|
1489
|
-
|
|
1490
|
-
|
|
1602
|
+
class: m(["fixed top-0 left-0 h-screen w-60 flex flex-col border-r transition-all duration-300 lg:pointer-events-auto", [
|
|
1603
|
+
E(f) ? "bg-gray-900 border-gray-800" : "bg-white border-gray-200",
|
|
1604
|
+
E(g) ? "translate-x-0 z-50" : "-translate-x-full max-lg:pointer-events-none lg:translate-x-0 z-50",
|
|
1605
|
+
t.collapsible && E(C) ? "lg:w-16" : "lg:w-60"
|
|
1606
|
+
]])
|
|
1607
|
+
}, [s("div", sn, [
|
|
1608
|
+
s("div", { class: m(["px-5 pt-5 pb-4 flex items-center justify-center relative", { "lg:px-2": A.value }]) }, [s("button", {
|
|
1491
1609
|
type: "button",
|
|
1492
|
-
onClick:
|
|
1610
|
+
onClick: N,
|
|
1493
1611
|
class: "cursor-pointer",
|
|
1494
1612
|
"aria-label": "Go to home"
|
|
1495
|
-
}, [
|
|
1613
|
+
}, [S(n.$slots, "logo", { size: A.value ? 36 : 52 }, void 0, !0)]), s("button", {
|
|
1496
1614
|
ref_key: "closeMobileButton",
|
|
1497
|
-
ref:
|
|
1615
|
+
ref: ee,
|
|
1498
1616
|
type: "button",
|
|
1499
|
-
onClick:
|
|
1500
|
-
class:
|
|
1617
|
+
onClick: r[2] ||= (...e) => E(_) && E(_)(...e),
|
|
1618
|
+
class: m(["lg:hidden p-1.5 rounded-lg cursor-pointer absolute right-3 top-4 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", E(f) ? "text-gray-400 hover:bg-gray-800" : "text-gray-500 hover:bg-gray-100"]),
|
|
1501
1619
|
"aria-label": "Close navigation menu"
|
|
1502
|
-
}, [
|
|
1620
|
+
}, [u(E(be), {
|
|
1503
1621
|
class: "w-5 h-5",
|
|
1504
1622
|
"aria-hidden": "true"
|
|
1505
|
-
})], 2)]),
|
|
1506
|
-
|
|
1623
|
+
})], 2)], 2),
|
|
1624
|
+
s("nav", cn, [(y(!0), o(e, null, x(t.sections, (t) => (y(), o("div", { key: t.title }, [s("p", { class: m(["px-2 mb-2 text-[10px] font-semibold uppercase tracking-wider text-gray-500", { "lg:hidden": A.value }]) }, T(t.title), 3), s("ul", ln, [(y(!0), o(e, null, x(t.items, (e) => (y(), o("li", { key: e.name }, [s("button", {
|
|
1507
1625
|
type: "button",
|
|
1508
|
-
"aria-current":
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1626
|
+
"aria-current": P(e.name) ? "page" : void 0,
|
|
1627
|
+
title: A.value ? e.label : void 0,
|
|
1628
|
+
onClick: (t) => F(e.name),
|
|
1629
|
+
class: m(["flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-colors w-full text-left cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", [P(e.name) ? E(f) ? "bg-emerald-500/15 text-emerald-300" : "bg-emerald-50 text-emerald-700" : E(f) ? "text-gray-400 hover:text-gray-100 hover:bg-gray-800" : "text-gray-600 hover:text-gray-900 hover:bg-gray-100", { "lg:justify-center": A.value }]])
|
|
1630
|
+
}, [(y(), i(w(e.icon), { class: "w-[18px] h-[18px] shrink-0" })), s("span", { class: m({ "lg:hidden": A.value }) }, T(e.label), 3)], 10, un)]))), 128))])]))), 128))]),
|
|
1631
|
+
s("div", { class: m(["px-4 py-4 border-t transition-colors space-y-3", E(f) ? "border-gray-800" : "border-gray-200"]) }, [
|
|
1632
|
+
t.showNotifications ? (y(), o("button", {
|
|
1514
1633
|
key: 0,
|
|
1515
1634
|
type: "button",
|
|
1516
|
-
onClick:
|
|
1517
|
-
title:
|
|
1518
|
-
"aria-label":
|
|
1519
|
-
"
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1635
|
+
onClick: r[3] ||= (...e) => E(k) && E(k)(...e),
|
|
1636
|
+
title: "Notifications",
|
|
1637
|
+
"aria-label": E(O) > 0 ? `Notifications, ${E(O)} unread` : "Notifications",
|
|
1638
|
+
class: m(["relative flex items-center gap-3 w-full px-3 py-2.5 rounded-lg text-sm font-medium transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", [E(f) ? "text-gray-400 hover:text-gray-100 hover:bg-gray-800" : "text-gray-600 hover:text-gray-900 hover:bg-gray-100", { "lg:justify-center": A.value }]])
|
|
1639
|
+
}, [s("span", fn, [u(E(ie), {
|
|
1640
|
+
class: "w-[18px] h-[18px]",
|
|
1641
|
+
"aria-hidden": "true"
|
|
1642
|
+
}), E(O) > 0 ? (y(), o("span", pn, T(E(O) > 99 ? "99+" : E(O)), 1)) : a("", !0)]), s("span", { class: m({ "lg:hidden": A.value }) }, "Notifications", 2)], 10, dn)) : a("", !0),
|
|
1643
|
+
t.showThemeToggle ? (y(), o("button", {
|
|
1644
|
+
key: 1,
|
|
1645
|
+
type: "button",
|
|
1646
|
+
onClick: r[4] ||= (...e) => E(h) && E(h)(...e),
|
|
1647
|
+
title: E(f) ? "Switch to light mode" : "Switch to dark mode",
|
|
1648
|
+
"aria-label": E(f) ? "Switch to light mode" : "Switch to dark mode",
|
|
1649
|
+
"aria-pressed": E(f),
|
|
1650
|
+
class: m(["flex items-center gap-3 w-full px-3 py-2.5 rounded-lg text-sm font-medium transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", [E(f) ? "text-gray-400 hover:text-gray-100 hover:bg-gray-800" : "text-gray-600 hover:text-gray-900 hover:bg-gray-100", { "lg:justify-center": A.value }]])
|
|
1651
|
+
}, [
|
|
1652
|
+
(y(), i(w(E(f) ? E(ye) : E(ve)), {
|
|
1653
|
+
class: m(["hidden w-[18px] h-[18px] shrink-0", { "lg:block": A.value }]),
|
|
1654
|
+
"aria-hidden": "true"
|
|
1655
|
+
}, null, 8, ["class"])),
|
|
1656
|
+
s("span", { class: m({ "lg:hidden": A.value }) }, T(E(f) ? "Switch to light" : "Switch to dark"), 3),
|
|
1657
|
+
s("span", { class: m(["ml-auto relative w-9 h-5 rounded-full transition-colors", [E(f) ? "bg-emerald-600" : "bg-gray-300", { "lg:hidden": A.value }]]) }, [s("span", { class: m(["absolute top-0.5 left-0.5 w-4 h-4 rounded-full bg-white shadow-sm transition-transform duration-300", E(f) ? "translate-x-4" : "translate-x-0"]) }, null, 2)], 2)
|
|
1658
|
+
], 10, mn)) : a("", !0),
|
|
1659
|
+
t.collapsible ? (y(), o("button", {
|
|
1660
|
+
key: 2,
|
|
1661
|
+
type: "button",
|
|
1662
|
+
onClick: r[5] ||= (...e) => E(D) && E(D)(...e),
|
|
1663
|
+
title: E(C) ? "Expand sidebar" : "Collapse sidebar",
|
|
1664
|
+
"aria-label": E(C) ? "Expand sidebar" : "Collapse sidebar",
|
|
1665
|
+
"aria-pressed": E(C),
|
|
1666
|
+
class: m(["hidden lg:flex items-center gap-3 w-full px-3 py-2.5 rounded-lg text-sm font-medium transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", [E(f) ? "text-gray-400 hover:text-gray-100 hover:bg-gray-800" : "text-gray-600 hover:text-gray-900 hover:bg-gray-100", { "lg:justify-center": A.value }]])
|
|
1667
|
+
}, [(y(), i(w(E(C) ? E(se) : E(oe)), {
|
|
1668
|
+
class: "w-[18px] h-[18px] shrink-0",
|
|
1669
|
+
"aria-hidden": "true"
|
|
1670
|
+
})), s("span", { class: m({ "lg:hidden": A.value }) }, "Collapse", 2)], 10, hn)) : a("", !0),
|
|
1671
|
+
s("div", { class: m({ "lg:hidden": A.value }) }, [S(n.$slots, "status", {}, void 0, !0)], 2),
|
|
1672
|
+
s("div", { class: m({ "lg:hidden": A.value }) }, [S(n.$slots, "footer", {}, () => [t.appName || t.version ? (y(), o("div", {
|
|
1524
1673
|
key: 0,
|
|
1525
|
-
class:
|
|
1526
|
-
}, [
|
|
1527
|
-
|
|
1528
|
-
t.appName && t.version ? (
|
|
1529
|
-
t.version ? (
|
|
1530
|
-
])], 2)) :
|
|
1674
|
+
class: m(["flex items-center justify-center gap-2 text-xs", (E(f), "text-gray-500")])
|
|
1675
|
+
}, [s("span", null, [
|
|
1676
|
+
l(T(t.appName), 1),
|
|
1677
|
+
t.appName && t.version ? (y(), o(e, { key: 0 }, [], 64)) : a("", !0),
|
|
1678
|
+
t.version ? (y(), o(e, { key: 1 }, [l("v" + T(t.version), 1)], 64)) : a("", !0)
|
|
1679
|
+
])], 2)) : a("", !0)], !0)], 2)
|
|
1531
1680
|
], 2)
|
|
1532
1681
|
])], 2)
|
|
1533
1682
|
]));
|
|
1534
1683
|
}
|
|
1535
|
-
}), [["__scopeId", "data-v-
|
|
1684
|
+
}), [["__scopeId", "data-v-6fca021f"]]), _n = {
|
|
1536
1685
|
key: 1,
|
|
1537
1686
|
class: "mt-4 flex justify-center py-6"
|
|
1538
|
-
},
|
|
1687
|
+
}, vn = {
|
|
1539
1688
|
key: 2,
|
|
1540
1689
|
class: "mt-4 text-sm text-red-500",
|
|
1541
1690
|
role: "alert"
|
|
1542
|
-
},
|
|
1691
|
+
}, yn = {
|
|
1543
1692
|
key: 3,
|
|
1544
1693
|
class: "mt-4"
|
|
1545
|
-
},
|
|
1694
|
+
}, bn = { class: "relative" }, xn = ["placeholder"], Sn = {
|
|
1546
1695
|
key: 4,
|
|
1547
1696
|
class: "mt-3 max-h-64 overflow-y-auto"
|
|
1548
|
-
},
|
|
1697
|
+
}, Cn = ["onClick"], wn = { class: "flex-1 min-w-0" }, Tn = {
|
|
1549
1698
|
key: 0,
|
|
1550
1699
|
class: "text-center py-6"
|
|
1551
|
-
},
|
|
1700
|
+
}, En = {
|
|
1552
1701
|
key: 1,
|
|
1553
1702
|
class: "text-center py-6"
|
|
1554
|
-
},
|
|
1703
|
+
}, Dn = ["disabled"], On = ["disabled"], kn = /* @__PURE__ */ d({
|
|
1555
1704
|
__name: "BaseEntityPickerModal",
|
|
1556
1705
|
props: {
|
|
1557
1706
|
title: {},
|
|
@@ -1572,11 +1721,11 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
1572
1721
|
}
|
|
1573
1722
|
},
|
|
1574
1723
|
emits: ["confirm", "cancel"],
|
|
1575
|
-
setup(t, { emit:
|
|
1576
|
-
let
|
|
1577
|
-
let e =
|
|
1578
|
-
return
|
|
1579
|
-
}),
|
|
1724
|
+
setup(t, { emit: n }) {
|
|
1725
|
+
let c = t, l = n, { isDark: d } = H(), f = J(), h = b([]), _ = b(!1), v = b(""), C = b(null), w = b(""), D = b(null), O = r(() => {
|
|
1726
|
+
let e = c.loader ? h.value : c.items;
|
|
1727
|
+
return c.excludeId ? e.filter((e) => e.id !== c.excludeId) : e;
|
|
1728
|
+
}), k = r(() => O.value.filter((e) => e.label.toLowerCase().includes(w.value.toLowerCase()))), ee = {
|
|
1580
1729
|
emerald: {
|
|
1581
1730
|
iconBg: "bg-emerald-50",
|
|
1582
1731
|
iconText: "text-emerald-600",
|
|
@@ -1622,7 +1771,7 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
1622
1771
|
confirmActive: "bg-amber-600 hover:bg-amber-700 cursor-pointer",
|
|
1623
1772
|
confirmDisabled: "bg-amber-400 cursor-not-allowed"
|
|
1624
1773
|
}
|
|
1625
|
-
},
|
|
1774
|
+
}, j = {
|
|
1626
1775
|
emerald: {
|
|
1627
1776
|
iconBg: "bg-emerald-900/30",
|
|
1628
1777
|
iconText: "text-emerald-400",
|
|
@@ -1668,94 +1817,94 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
1668
1817
|
confirmActive: "bg-amber-600 hover:bg-amber-700 cursor-pointer",
|
|
1669
1818
|
confirmDisabled: "bg-amber-400 cursor-not-allowed"
|
|
1670
1819
|
}
|
|
1671
|
-
},
|
|
1672
|
-
|
|
1673
|
-
if (
|
|
1674
|
-
|
|
1820
|
+
}, P = r(() => (d.value ? j : ee)[c.variant]);
|
|
1821
|
+
g(async () => {
|
|
1822
|
+
if (c.loader) {
|
|
1823
|
+
_.value = !0;
|
|
1675
1824
|
try {
|
|
1676
|
-
|
|
1825
|
+
h.value = await c.loader();
|
|
1677
1826
|
} catch {
|
|
1678
|
-
|
|
1827
|
+
v.value = "Failed to load items";
|
|
1679
1828
|
} finally {
|
|
1680
|
-
|
|
1829
|
+
_.value = !1;
|
|
1681
1830
|
}
|
|
1682
1831
|
}
|
|
1683
|
-
await
|
|
1832
|
+
await p(), D.value?.focus();
|
|
1684
1833
|
});
|
|
1685
|
-
function P() {
|
|
1686
|
-
!T.value || l.submitting || u("confirm", T.value);
|
|
1687
|
-
}
|
|
1688
1834
|
function F() {
|
|
1689
|
-
|
|
1835
|
+
!C.value || c.submitting || l("confirm", C.value);
|
|
1836
|
+
}
|
|
1837
|
+
function te() {
|
|
1838
|
+
c.submitting || l("cancel");
|
|
1690
1839
|
}
|
|
1691
|
-
return (n,
|
|
1840
|
+
return (n, r) => (y(), i(Lt, {
|
|
1692
1841
|
title: t.title,
|
|
1693
1842
|
"manual-close": t.submitting,
|
|
1694
|
-
onCancel:
|
|
1843
|
+
onCancel: te
|
|
1695
1844
|
}, {
|
|
1696
|
-
icon:
|
|
1697
|
-
class:
|
|
1845
|
+
icon: M(() => [S(n.$slots, "icon", {}, () => [s("div", { class: m(["flex-shrink-0 flex h-12 w-12 items-center justify-center rounded-full", P.value.iconBg]) }, [u(E(me), {
|
|
1846
|
+
class: m(["h-6 w-6", P.value.iconText]),
|
|
1698
1847
|
"aria-hidden": "true"
|
|
1699
1848
|
}, null, 8, ["class"])], 2)])]),
|
|
1700
|
-
footer:
|
|
1849
|
+
footer: M(() => [s("button", {
|
|
1701
1850
|
type: "button",
|
|
1702
1851
|
disabled: t.submitting,
|
|
1703
|
-
class:
|
|
1704
|
-
onClick:
|
|
1705
|
-
},
|
|
1852
|
+
class: m(["inline-flex items-center justify-center px-4 py-2 border rounded-md shadow-sm text-sm font-medium transition-colors duration-150 disabled:opacity-50 disabled:cursor-not-allowed", E(f).ghostButton]),
|
|
1853
|
+
onClick: te
|
|
1854
|
+
}, T(t.cancelText), 11, Dn), s("button", {
|
|
1706
1855
|
type: "button",
|
|
1707
|
-
disabled: !
|
|
1708
|
-
class:
|
|
1709
|
-
onClick:
|
|
1710
|
-
},
|
|
1711
|
-
default:
|
|
1712
|
-
t.message ? (
|
|
1856
|
+
disabled: !C.value || t.submitting,
|
|
1857
|
+
class: m(["inline-flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white transition-colors duration-150", !C.value || t.submitting ? P.value.confirmDisabled : P.value.confirmActive]),
|
|
1858
|
+
onClick: F
|
|
1859
|
+
}, T(t.submitting ? t.submittingText : t.confirmText), 11, On)]),
|
|
1860
|
+
default: M(() => [
|
|
1861
|
+
t.message ? (y(), o("p", {
|
|
1713
1862
|
key: 0,
|
|
1714
|
-
class:
|
|
1715
|
-
},
|
|
1716
|
-
|
|
1717
|
-
!
|
|
1718
|
-
class:
|
|
1863
|
+
class: m(["text-sm", E(d) ? "text-gray-300" : "text-gray-600"])
|
|
1864
|
+
}, T(t.message), 3)) : a("", !0),
|
|
1865
|
+
_.value ? (y(), o("div", _n, [u(ot, { color: "emerald" })])) : v.value ? (y(), o("div", vn, T(v.value), 1)) : a("", !0),
|
|
1866
|
+
!_.value && !v.value && O.value.length > 0 ? (y(), o("div", yn, [s("div", bn, [u(E(ge), {
|
|
1867
|
+
class: m(["absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4", E(f).dimText]),
|
|
1719
1868
|
"aria-hidden": "true"
|
|
1720
|
-
}, null, 8, ["class"]),
|
|
1869
|
+
}, null, 8, ["class"]), N(s("input", {
|
|
1721
1870
|
ref_key: "searchInputRef",
|
|
1722
|
-
ref:
|
|
1723
|
-
"onUpdate:modelValue":
|
|
1871
|
+
ref: D,
|
|
1872
|
+
"onUpdate:modelValue": r[0] ||= (e) => w.value = e,
|
|
1724
1873
|
type: "text",
|
|
1725
1874
|
placeholder: t.searchPlaceholder,
|
|
1726
|
-
class:
|
|
1727
|
-
}, null, 10,
|
|
1728
|
-
!
|
|
1875
|
+
class: m(["w-full pl-9 pr-3 py-2 text-sm rounded-md border outline-none transition-colors", [E(d) ? "bg-gray-800 border-gray-600 text-gray-200 placeholder-gray-500" : "bg-white border-gray-300 text-gray-700 placeholder-gray-400", P.value.inputFocus]])
|
|
1876
|
+
}, null, 10, xn), [[A, w.value]])])])) : a("", !0),
|
|
1877
|
+
!_.value && !v.value ? (y(), o("div", Sn, [(y(!0), o(e, null, x(k.value, (e) => (y(), o("div", {
|
|
1729
1878
|
key: e.id,
|
|
1730
|
-
class:
|
|
1731
|
-
onClick: (t) =>
|
|
1879
|
+
class: m(["flex items-center gap-3 px-3 py-2.5 rounded-lg cursor-pointer transition-colors", [C.value === e.id ? P.value.selectedRow : E(d) ? "hover:bg-gray-800 border border-transparent" : "hover:bg-gray-50 border border-transparent"]]),
|
|
1880
|
+
onClick: (t) => C.value = e.id
|
|
1732
1881
|
}, [
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1882
|
+
u(E(me), { class: m(["w-5 h-5 flex-shrink-0", E(f).dimText]) }, null, 8, ["class"]),
|
|
1883
|
+
s("div", wn, [s("p", { class: m(["text-sm font-medium truncate", E(f).bodyText]) }, T(e.label), 3)]),
|
|
1884
|
+
C.value === e.id ? (y(), o("div", {
|
|
1736
1885
|
key: 0,
|
|
1737
|
-
class:
|
|
1738
|
-
}, [...
|
|
1886
|
+
class: m(["w-5 h-5 rounded-full flex items-center justify-center", P.value.checkBg])
|
|
1887
|
+
}, [...r[1] ||= [s("svg", {
|
|
1739
1888
|
class: "w-3 h-3 text-white",
|
|
1740
1889
|
fill: "none",
|
|
1741
1890
|
viewBox: "0 0 24 24",
|
|
1742
1891
|
stroke: "currentColor",
|
|
1743
1892
|
"stroke-width": "3",
|
|
1744
1893
|
"aria-hidden": "true"
|
|
1745
|
-
}, [
|
|
1894
|
+
}, [s("path", {
|
|
1746
1895
|
"stroke-linecap": "round",
|
|
1747
1896
|
"stroke-linejoin": "round",
|
|
1748
1897
|
d: "M5 13l4 4L19 7"
|
|
1749
|
-
})], -1)]], 2)) :
|
|
1750
|
-
], 10,
|
|
1898
|
+
})], -1)]], 2)) : a("", !0)
|
|
1899
|
+
], 10, Cn))), 128)), O.value.length === 0 ? (y(), o("div", Tn, [s("p", { class: m(["text-sm", E(f).dimText]) }, T(t.emptyMessage), 3)])) : k.value.length === 0 ? (y(), o("div", En, [s("p", { class: m(["text-sm", E(f).dimText]) }, T(t.noMatchMessage), 3)])) : a("", !0)])) : a("", !0)
|
|
1751
1900
|
]),
|
|
1752
1901
|
_: 3
|
|
1753
1902
|
}, 8, ["title", "manual-close"]));
|
|
1754
1903
|
}
|
|
1755
|
-
}),
|
|
1904
|
+
}), An = {
|
|
1756
1905
|
href: "#main-content",
|
|
1757
1906
|
class: "sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[100] focus:px-3 focus:py-2 focus:rounded-md focus:bg-emerald-600 focus:text-white focus:shadow-lg"
|
|
1758
|
-
},
|
|
1907
|
+
}, jn = ["inert"], Mn = /* @__PURE__ */ d({
|
|
1759
1908
|
__name: "BaseAppLayout",
|
|
1760
1909
|
props: {
|
|
1761
1910
|
showSidebar: {
|
|
@@ -1765,19 +1914,19 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
1765
1914
|
skipLinkLabel: { default: "Skip to main content" }
|
|
1766
1915
|
},
|
|
1767
1916
|
setup(e) {
|
|
1768
|
-
let t = e, { isDark:
|
|
1769
|
-
return (t,
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1917
|
+
let t = e, { isDark: n } = H(), { mobileOpen: i } = Qt(), { collapsed: c } = nn(), l = r(() => t.showSidebar);
|
|
1918
|
+
return (t, r) => (y(), o("div", { class: m(["min-h-screen transition-colors duration-300", E(n) ? "bg-gray-950 text-gray-100" : "bg-gray-50 text-gray-800"]) }, [
|
|
1919
|
+
s("a", An, T(e.skipLinkLabel), 1),
|
|
1920
|
+
l.value ? S(t.$slots, "sidebar", { key: 0 }) : a("", !0),
|
|
1921
|
+
s("main", {
|
|
1773
1922
|
id: "main-content",
|
|
1774
1923
|
tabindex: "-1",
|
|
1775
|
-
inert:
|
|
1776
|
-
class:
|
|
1777
|
-
}, [
|
|
1924
|
+
inert: l.value && E(i) ? !0 : void 0,
|
|
1925
|
+
class: m(["transition-all duration-300", l.value ? E(c) ? "pt-14 lg:pt-0 lg:ml-16" : "pt-14 lg:pt-0 lg:ml-60" : ""])
|
|
1926
|
+
}, [S(t.$slots, "default")], 10, jn)
|
|
1778
1927
|
], 2));
|
|
1779
1928
|
}
|
|
1780
|
-
}),
|
|
1929
|
+
}), Nn = { class: "flex flex-wrap items-center justify-between gap-3 mb-8" }, Pn = { class: "flex items-center gap-3 min-w-0" }, Fn = { class: "flex items-center gap-2" }, In = /* @__PURE__ */ d({
|
|
1781
1930
|
__name: "BasePageHeader",
|
|
1782
1931
|
props: {
|
|
1783
1932
|
title: {},
|
|
@@ -1786,7 +1935,7 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
1786
1935
|
maxWidthClass: { default: "max-w-4xl" }
|
|
1787
1936
|
},
|
|
1788
1937
|
setup(e) {
|
|
1789
|
-
let t = e, { isDark:
|
|
1938
|
+
let t = e, { isDark: n } = H(), i = J(), c = r(() => {
|
|
1790
1939
|
let e = {
|
|
1791
1940
|
emerald: {
|
|
1792
1941
|
dark: "bg-emerald-500/10",
|
|
@@ -1805,8 +1954,8 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
1805
1954
|
light: "bg-amber-50"
|
|
1806
1955
|
}
|
|
1807
1956
|
}[t.iconColor];
|
|
1808
|
-
return
|
|
1809
|
-
}), l =
|
|
1957
|
+
return n.value ? e.dark : e.light;
|
|
1958
|
+
}), l = r(() => {
|
|
1810
1959
|
let e = {
|
|
1811
1960
|
emerald: {
|
|
1812
1961
|
dark: "text-emerald-400",
|
|
@@ -1825,18 +1974,18 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
1825
1974
|
light: "text-amber-600"
|
|
1826
1975
|
}
|
|
1827
1976
|
}[t.iconColor];
|
|
1828
|
-
return
|
|
1977
|
+
return n.value ? e.dark : e.light;
|
|
1829
1978
|
});
|
|
1830
|
-
return (t, n) => (
|
|
1979
|
+
return (t, n) => (y(), o("div", { class: m(["mx-auto px-4 sm:px-6", e.maxWidthClass]) }, [s("div", Nn, [s("div", Pn, [s("div", { class: m(["w-10 h-10 rounded-lg flex items-center justify-center", c.value]) }, [S(t.$slots, "icon", { iconClass: l.value })], 2), s("div", null, [s("h1", { class: m(["text-2xl font-bold", E(i).primaryTextSoft]) }, T(e.title), 3), e.subtitle ? (y(), o("p", {
|
|
1831
1980
|
key: 0,
|
|
1832
|
-
class:
|
|
1833
|
-
},
|
|
1981
|
+
class: m(["text-sm", E(i).dimTextAlt])
|
|
1982
|
+
}, T(e.subtitle), 3)) : a("", !0)])]), s("div", Fn, [S(t.$slots, "actions")])])], 2));
|
|
1834
1983
|
}
|
|
1835
|
-
}),
|
|
1984
|
+
}), Ln = [
|
|
1836
1985
|
"type",
|
|
1837
1986
|
"disabled",
|
|
1838
1987
|
"title"
|
|
1839
|
-
],
|
|
1988
|
+
], Rn = { key: 0 }, zn = /* @__PURE__ */ d({
|
|
1840
1989
|
__name: "BaseToolbarButton",
|
|
1841
1990
|
props: {
|
|
1842
1991
|
label: { default: "" },
|
|
@@ -1850,7 +1999,7 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
1850
1999
|
},
|
|
1851
2000
|
emits: ["click"],
|
|
1852
2001
|
setup(e) {
|
|
1853
|
-
let t = e, { isDark:
|
|
2002
|
+
let t = e, { isDark: n } = H(), i = r(() => {
|
|
1854
2003
|
let e = {
|
|
1855
2004
|
neutral: {
|
|
1856
2005
|
dark: "bg-gray-800 text-gray-100 border-gray-700 hover:bg-gray-700",
|
|
@@ -1861,22 +2010,22 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
1861
2010
|
light: "bg-red-600 text-white border-red-600 hover:bg-red-700"
|
|
1862
2011
|
}
|
|
1863
2012
|
}[t.variant];
|
|
1864
|
-
return
|
|
2013
|
+
return n.value ? e.dark : e.light;
|
|
1865
2014
|
});
|
|
1866
|
-
return (t, n) => (
|
|
2015
|
+
return (t, n) => (y(), o("button", {
|
|
1867
2016
|
type: e.type,
|
|
1868
2017
|
disabled: e.disabled,
|
|
1869
2018
|
title: e.title,
|
|
1870
|
-
class:
|
|
2019
|
+
class: m(["inline-flex shrink-0 items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium border transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed whitespace-nowrap", i.value]),
|
|
1871
2020
|
onClick: n[0] ||= (e) => t.$emit("click", e)
|
|
1872
|
-
}, [
|
|
2021
|
+
}, [S(t.$slots, "icon", { iconClass: "w-4 h-4" }), e.label ? (y(), o("span", Rn, T(e.label), 1)) : a("", !0)], 10, Ln));
|
|
1873
2022
|
}
|
|
1874
|
-
}),
|
|
2023
|
+
}), Bn = [
|
|
1875
2024
|
"type",
|
|
1876
2025
|
"disabled",
|
|
1877
2026
|
"title",
|
|
1878
2027
|
"aria-label"
|
|
1879
|
-
],
|
|
2028
|
+
], Vn = { key: 0 }, Hn = /* @__PURE__ */ d({
|
|
1880
2029
|
__name: "BaseActionButton",
|
|
1881
2030
|
props: {
|
|
1882
2031
|
label: { default: "" },
|
|
@@ -1895,7 +2044,7 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
1895
2044
|
},
|
|
1896
2045
|
emits: ["click"],
|
|
1897
2046
|
setup(e) {
|
|
1898
|
-
let t = e, { isDark:
|
|
2047
|
+
let t = e, { isDark: n } = H(), i = r(() => {
|
|
1899
2048
|
let e = {
|
|
1900
2049
|
emerald: {
|
|
1901
2050
|
dark: "text-emerald-400 hover:bg-emerald-500/10",
|
|
@@ -1930,8 +2079,8 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
1930
2079
|
light: "text-amber-700 hover:bg-amber-50"
|
|
1931
2080
|
}
|
|
1932
2081
|
}[t.color];
|
|
1933
|
-
return
|
|
1934
|
-
}), s =
|
|
2082
|
+
return n.value ? e.dark : e.light;
|
|
2083
|
+
}), s = r(() => {
|
|
1935
2084
|
let e = {
|
|
1936
2085
|
emerald: {
|
|
1937
2086
|
dark: "text-emerald-400",
|
|
@@ -1966,18 +2115,18 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
1966
2115
|
light: "text-amber-700"
|
|
1967
2116
|
}
|
|
1968
2117
|
}[t.color];
|
|
1969
|
-
return
|
|
1970
|
-
}), c =
|
|
1971
|
-
return (t, n) => (
|
|
2118
|
+
return n.value ? e.dark : e.light;
|
|
2119
|
+
}), c = r(() => t.disabled ? `${s.value} opacity-50 cursor-not-allowed` : `${i.value} cursor-pointer`);
|
|
2120
|
+
return (t, n) => (y(), o("button", {
|
|
1972
2121
|
type: e.type,
|
|
1973
2122
|
disabled: e.disabled,
|
|
1974
2123
|
title: e.title,
|
|
1975
2124
|
"aria-label": e.ariaLabel,
|
|
1976
|
-
class:
|
|
2125
|
+
class: m(["inline-flex items-center justify-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-colors", [e.fullWidth ? "flex-1" : "", c.value]]),
|
|
1977
2126
|
onClick: n[0] ||= (e) => t.$emit("click", e)
|
|
1978
|
-
}, [
|
|
2127
|
+
}, [S(t.$slots, "icon", { iconClass: "w-4 h-4" }), e.label ? (y(), o("span", Vn, T(e.label), 1)) : a("", !0)], 10, Bn));
|
|
1979
2128
|
}
|
|
1980
|
-
}),
|
|
2129
|
+
}), Un = ["title", "aria-label"], Wn = /* @__PURE__ */ d({
|
|
1981
2130
|
__name: "BaseCopyButton",
|
|
1982
2131
|
props: {
|
|
1983
2132
|
text: {},
|
|
@@ -1988,8 +2137,8 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
1988
2137
|
},
|
|
1989
2138
|
emits: ["copied", "error"],
|
|
1990
2139
|
setup(e, { emit: t }) {
|
|
1991
|
-
let
|
|
1992
|
-
async function
|
|
2140
|
+
let n = e, a = t, { isDark: s } = H(), c = b(!1), l = null, u = r(() => c.value ? "Copied!" : n.label ? `Copy ${n.label}` : "Copy"), d = r(() => n.label ? `Copy ${n.label}` : "Copy"), f = r(() => n.variant === "bordered" ? `inline-flex items-center justify-center w-9 h-9 rounded-lg border transition-colors cursor-pointer shrink-0 ${c.value ? s.value ? "border-emerald-500/40 bg-emerald-500/10 text-emerald-400" : "border-emerald-300 bg-emerald-50 text-emerald-600" : s.value ? "border-gray-600 text-gray-400 hover:text-gray-200 hover:bg-gray-800" : "border-gray-300 text-gray-400 hover:text-gray-600 hover:bg-gray-50"}` : `p-1 rounded transition-colors cursor-pointer ${s.value ? "text-gray-400 hover:text-emerald-300 hover:bg-emerald-500/10" : "text-gray-500 hover:text-emerald-600 hover:bg-emerald-50"}`);
|
|
2141
|
+
async function p(e) {
|
|
1993
2142
|
try {
|
|
1994
2143
|
if (navigator.clipboard?.writeText) {
|
|
1995
2144
|
await navigator.clipboard.writeText(e);
|
|
@@ -2003,57 +2152,337 @@ var Vt = ["aria-label", "aria-expanded"], Ht = { class: "flex flex-col h-full" }
|
|
|
2003
2152
|
}
|
|
2004
2153
|
async function h() {
|
|
2005
2154
|
try {
|
|
2006
|
-
await
|
|
2155
|
+
await p(n.text), c.value = !0, l && clearTimeout(l), l = setTimeout(() => {
|
|
2007
2156
|
c.value = !1;
|
|
2008
|
-
},
|
|
2157
|
+
}, n.resetMs), a("copied");
|
|
2009
2158
|
} catch (e) {
|
|
2010
|
-
|
|
2159
|
+
a("error", e);
|
|
2011
2160
|
}
|
|
2012
2161
|
}
|
|
2013
|
-
return
|
|
2162
|
+
return v(() => {
|
|
2014
2163
|
l && clearTimeout(l);
|
|
2015
|
-
}), (t, n) => (
|
|
2164
|
+
}), (t, n) => (y(), o("button", {
|
|
2016
2165
|
type: "button",
|
|
2017
2166
|
title: u.value,
|
|
2018
2167
|
"aria-label": d.value,
|
|
2019
|
-
class: f
|
|
2168
|
+
class: m(f.value),
|
|
2020
2169
|
onClick: h
|
|
2021
|
-
}, [c.value ? (
|
|
2170
|
+
}, [c.value ? (y(), i(E(le), {
|
|
2022
2171
|
key: 0,
|
|
2023
|
-
class:
|
|
2172
|
+
class: m(e.iconClass),
|
|
2024
2173
|
"aria-hidden": "true"
|
|
2025
|
-
}, null, 8, ["class"])) : (
|
|
2174
|
+
}, null, 8, ["class"])) : (y(), i(E(ue), {
|
|
2026
2175
|
key: 1,
|
|
2027
|
-
class:
|
|
2176
|
+
class: m(e.iconClass),
|
|
2028
2177
|
"aria-hidden": "true"
|
|
2029
|
-
}, null, 8, ["class"]))], 10,
|
|
2178
|
+
}, null, 8, ["class"]))], 10, Un));
|
|
2179
|
+
}
|
|
2180
|
+
}), Gn = ["disabled", "aria-busy"], Kn = {
|
|
2181
|
+
key: 0,
|
|
2182
|
+
class: "w-5 h-5 animate-spin shrink-0",
|
|
2183
|
+
viewBox: "0 0 24 24",
|
|
2184
|
+
fill: "none",
|
|
2185
|
+
"aria-hidden": "true"
|
|
2186
|
+
}, qn = {
|
|
2187
|
+
key: 1,
|
|
2188
|
+
class: "w-5 h-5 shrink-0",
|
|
2189
|
+
viewBox: "0 0 48 48",
|
|
2190
|
+
"aria-hidden": "true"
|
|
2191
|
+
}, Jn = /* @__PURE__ */ d({
|
|
2192
|
+
__name: "BaseGoogleSignInButton",
|
|
2193
|
+
props: {
|
|
2194
|
+
label: { default: "Sign in with Google" },
|
|
2195
|
+
loading: {
|
|
2196
|
+
type: Boolean,
|
|
2197
|
+
default: !1
|
|
2198
|
+
},
|
|
2199
|
+
disabled: {
|
|
2200
|
+
type: Boolean,
|
|
2201
|
+
default: !1
|
|
2202
|
+
},
|
|
2203
|
+
block: {
|
|
2204
|
+
type: Boolean,
|
|
2205
|
+
default: !0
|
|
2206
|
+
}
|
|
2207
|
+
},
|
|
2208
|
+
emits: ["click"],
|
|
2209
|
+
setup(e, { emit: t }) {
|
|
2210
|
+
let n = e, i = t, { isDark: a } = H(), l = r(() => n.disabled || n.loading);
|
|
2211
|
+
function u() {
|
|
2212
|
+
l.value || i("click");
|
|
2213
|
+
}
|
|
2214
|
+
return (t, n) => (y(), o("button", {
|
|
2215
|
+
type: "button",
|
|
2216
|
+
disabled: l.value,
|
|
2217
|
+
"aria-busy": e.loading,
|
|
2218
|
+
onClick: u,
|
|
2219
|
+
class: m(["inline-flex items-center justify-center gap-3 h-11 px-4 rounded-lg border text-sm font-medium transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 disabled:opacity-60 disabled:cursor-not-allowed", [e.block ? "w-full" : "", E(a) ? "bg-gray-900 border-gray-700 text-gray-100 hover:bg-gray-800" : "bg-white border-gray-300 text-gray-700 hover:bg-gray-50"]])
|
|
2220
|
+
}, [e.loading ? (y(), o("svg", Kn, [...n[0] ||= [s("circle", {
|
|
2221
|
+
class: "opacity-25",
|
|
2222
|
+
cx: "12",
|
|
2223
|
+
cy: "12",
|
|
2224
|
+
r: "10",
|
|
2225
|
+
stroke: "currentColor",
|
|
2226
|
+
"stroke-width": "4"
|
|
2227
|
+
}, null, -1), s("path", {
|
|
2228
|
+
class: "opacity-75",
|
|
2229
|
+
fill: "currentColor",
|
|
2230
|
+
d: "M4 12a8 8 0 0 1 8-8V0C5.4 0 0 5.4 0 12h4z"
|
|
2231
|
+
}, null, -1)]])) : (y(), o("svg", qn, [...n[1] ||= [c("<path fill=\"#EA4335\" d=\"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z\"></path><path fill=\"#4285F4\" d=\"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z\"></path><path fill=\"#FBBC05\" d=\"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z\"></path><path fill=\"#34A853\" d=\"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z\"></path><path fill=\"none\" d=\"M0 0h48v48H0z\"></path>", 5)]])), s("span", null, T(e.label), 1)], 10, Gn));
|
|
2232
|
+
}
|
|
2233
|
+
}), Yn = {
|
|
2234
|
+
key: 0,
|
|
2235
|
+
class: "flex justify-center mb-6"
|
|
2236
|
+
}, Xn = { class: "mb-6 text-center" }, Zn = { class: "flex items-center gap-3 my-5" }, Qn = ["disabled"], $n = { class: "flex items-center justify-between mb-1.5" }, er = { class: "relative" }, tr = ["type", "disabled"], nr = ["aria-label", "aria-pressed"], rr = ["disabled"], ir = ["disabled", "aria-busy"], ar = {
|
|
2237
|
+
key: 0,
|
|
2238
|
+
class: "w-4 h-4 animate-spin",
|
|
2239
|
+
viewBox: "0 0 24 24",
|
|
2240
|
+
fill: "none",
|
|
2241
|
+
"aria-hidden": "true"
|
|
2242
|
+
}, or = /* @__PURE__ */ d({
|
|
2243
|
+
__name: "BaseLoginForm",
|
|
2244
|
+
props: {
|
|
2245
|
+
title: { default: "Sign in" },
|
|
2246
|
+
subtitle: { default: "" },
|
|
2247
|
+
submitLabel: { default: "Sign in" },
|
|
2248
|
+
loading: {
|
|
2249
|
+
type: Boolean,
|
|
2250
|
+
default: !1
|
|
2251
|
+
},
|
|
2252
|
+
googleLoading: {
|
|
2253
|
+
type: Boolean,
|
|
2254
|
+
default: !1
|
|
2255
|
+
},
|
|
2256
|
+
error: { default: "" },
|
|
2257
|
+
showGoogle: {
|
|
2258
|
+
type: Boolean,
|
|
2259
|
+
default: !0
|
|
2260
|
+
},
|
|
2261
|
+
showRemember: {
|
|
2262
|
+
type: Boolean,
|
|
2263
|
+
default: !1
|
|
2264
|
+
}
|
|
2265
|
+
},
|
|
2266
|
+
emits: ["submit", "google-sign-in"],
|
|
2267
|
+
setup(t, { emit: n }) {
|
|
2268
|
+
let i = t, c = n, { isDark: d } = H(), f = J(), p = b(""), h = b(""), g = b(!1), _ = b(!1), v = r(() => i.loading || i.googleLoading);
|
|
2269
|
+
function x() {
|
|
2270
|
+
v.value || c("submit", {
|
|
2271
|
+
email: p.value,
|
|
2272
|
+
password: h.value,
|
|
2273
|
+
...i.showRemember ? { remember: g.value } : {}
|
|
2274
|
+
});
|
|
2275
|
+
}
|
|
2276
|
+
return (n, r) => (y(), o("div", { class: m(["w-full max-w-sm mx-auto rounded-xl border shadow-sm p-6 sm:p-8", E(f).card]) }, [
|
|
2277
|
+
n.$slots.logo ? (y(), o("div", Yn, [S(n.$slots, "logo")])) : a("", !0),
|
|
2278
|
+
s("div", Xn, [s("h1", { class: m(["text-xl font-semibold", E(f).primaryText]) }, T(t.title), 3), t.subtitle ? (y(), o("p", {
|
|
2279
|
+
key: 0,
|
|
2280
|
+
class: m(["mt-1 text-sm", E(f).mutedText])
|
|
2281
|
+
}, T(t.subtitle), 3)) : a("", !0)]),
|
|
2282
|
+
t.error ? (y(), o("div", {
|
|
2283
|
+
key: 1,
|
|
2284
|
+
role: "alert",
|
|
2285
|
+
class: m(["mb-4 rounded-lg border px-3 py-2 text-sm", E(d) ? "bg-red-500/10 border-red-500/30 text-red-300" : "bg-red-50 border-red-200 text-red-700"])
|
|
2286
|
+
}, T(t.error), 3)) : a("", !0),
|
|
2287
|
+
t.showGoogle ? (y(), o(e, { key: 2 }, [u(Jn, {
|
|
2288
|
+
loading: t.googleLoading,
|
|
2289
|
+
disabled: t.loading,
|
|
2290
|
+
onClick: r[0] ||= (e) => c("google-sign-in")
|
|
2291
|
+
}, null, 8, ["loading", "disabled"]), s("div", Zn, [
|
|
2292
|
+
s("span", { class: m(["h-px flex-1", E(d) ? "bg-gray-700" : "bg-gray-200"]) }, null, 2),
|
|
2293
|
+
s("span", { class: m(["text-xs uppercase tracking-wider", E(f).dimTextAlt]) }, "or", 2),
|
|
2294
|
+
s("span", { class: m(["h-px flex-1", E(d) ? "bg-gray-700" : "bg-gray-200"]) }, null, 2)
|
|
2295
|
+
])], 64)) : a("", !0),
|
|
2296
|
+
s("form", {
|
|
2297
|
+
class: "space-y-4",
|
|
2298
|
+
onSubmit: F(x, ["prevent"])
|
|
2299
|
+
}, [
|
|
2300
|
+
s("div", null, [s("label", {
|
|
2301
|
+
for: "login-email",
|
|
2302
|
+
class: m(["block mb-1.5 text-sm font-medium", E(f).label])
|
|
2303
|
+
}, " Email ", 2), N(s("input", {
|
|
2304
|
+
id: "login-email",
|
|
2305
|
+
"onUpdate:modelValue": r[1] ||= (e) => p.value = e,
|
|
2306
|
+
type: "email",
|
|
2307
|
+
name: "email",
|
|
2308
|
+
autocomplete: "email",
|
|
2309
|
+
required: "",
|
|
2310
|
+
disabled: v.value,
|
|
2311
|
+
placeholder: "you@example.com",
|
|
2312
|
+
class: m(["w-full h-11 px-3 rounded-lg border text-sm transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 disabled:opacity-60", E(f).inputWithPlaceholder])
|
|
2313
|
+
}, null, 10, Qn), [[A, p.value]])]),
|
|
2314
|
+
s("div", null, [s("div", $n, [s("label", {
|
|
2315
|
+
for: "login-password",
|
|
2316
|
+
class: m(["block text-sm font-medium", E(f).label])
|
|
2317
|
+
}, " Password ", 2), S(n.$slots, "forgot")]), s("div", er, [N(s("input", {
|
|
2318
|
+
id: "login-password",
|
|
2319
|
+
"onUpdate:modelValue": r[2] ||= (e) => h.value = e,
|
|
2320
|
+
type: _.value ? "text" : "password",
|
|
2321
|
+
name: "password",
|
|
2322
|
+
autocomplete: "current-password",
|
|
2323
|
+
required: "",
|
|
2324
|
+
disabled: v.value,
|
|
2325
|
+
placeholder: "••••••••",
|
|
2326
|
+
class: m(["w-full h-11 pl-3 pr-16 rounded-lg border text-sm transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 disabled:opacity-60", E(f).inputWithPlaceholder])
|
|
2327
|
+
}, null, 10, tr), [[k, h.value]]), s("button", {
|
|
2328
|
+
type: "button",
|
|
2329
|
+
onClick: r[3] ||= (e) => _.value = !_.value,
|
|
2330
|
+
"aria-label": _.value ? "Hide password" : "Show password",
|
|
2331
|
+
"aria-pressed": _.value,
|
|
2332
|
+
class: m(["absolute inset-y-0 right-0 px-3 text-xs font-medium cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 rounded-r-lg", E(f).mutedText])
|
|
2333
|
+
}, T(_.value ? "Hide" : "Show"), 11, nr)])]),
|
|
2334
|
+
t.showRemember ? (y(), o("label", {
|
|
2335
|
+
key: 0,
|
|
2336
|
+
class: m(["flex items-center gap-2 text-sm cursor-pointer select-none", E(f).bodyText])
|
|
2337
|
+
}, [N(s("input", {
|
|
2338
|
+
"onUpdate:modelValue": r[4] ||= (e) => g.value = e,
|
|
2339
|
+
type: "checkbox",
|
|
2340
|
+
disabled: v.value,
|
|
2341
|
+
class: "w-4 h-4 rounded border-gray-300 text-emerald-600 focus:ring-emerald-500"
|
|
2342
|
+
}, null, 8, rr), [[O, g.value]]), r[5] ||= l(" Remember me ", -1)], 2)) : a("", !0),
|
|
2343
|
+
s("button", {
|
|
2344
|
+
type: "submit",
|
|
2345
|
+
disabled: v.value,
|
|
2346
|
+
"aria-busy": t.loading,
|
|
2347
|
+
class: "inline-flex items-center justify-center gap-2 w-full h-11 px-4 rounded-lg text-sm font-semibold text-white bg-emerald-600 hover:bg-emerald-700 transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 disabled:opacity-60 disabled:cursor-not-allowed"
|
|
2348
|
+
}, [t.loading ? (y(), o("svg", ar, [...r[6] ||= [s("circle", {
|
|
2349
|
+
class: "opacity-25",
|
|
2350
|
+
cx: "12",
|
|
2351
|
+
cy: "12",
|
|
2352
|
+
r: "10",
|
|
2353
|
+
stroke: "currentColor",
|
|
2354
|
+
"stroke-width": "4"
|
|
2355
|
+
}, null, -1), s("path", {
|
|
2356
|
+
class: "opacity-75",
|
|
2357
|
+
fill: "currentColor",
|
|
2358
|
+
d: "M4 12a8 8 0 0 1 8-8V0C5.4 0 0 5.4 0 12h4z"
|
|
2359
|
+
}, null, -1)]])) : a("", !0), l(" " + T(t.submitLabel), 1)], 8, ir)
|
|
2360
|
+
], 32),
|
|
2361
|
+
n.$slots.footer ? (y(), o("div", {
|
|
2362
|
+
key: 3,
|
|
2363
|
+
class: m(["mt-6 text-center text-sm", E(f).mutedText])
|
|
2364
|
+
}, [S(n.$slots, "footer")], 2)) : a("", !0)
|
|
2365
|
+
], 2));
|
|
2366
|
+
}
|
|
2367
|
+
}), sr = ["aria-label"], cr = { class: "flex-1 overflow-y-auto" }, lr = {
|
|
2368
|
+
key: 0,
|
|
2369
|
+
class: "flex flex-col items-center justify-center text-center px-6 py-16 gap-3"
|
|
2370
|
+
}, ur = ["onClick"], dr = { class: "min-w-0 flex-1" }, fr = { class: "flex items-baseline justify-between gap-2" }, pr = /* @__PURE__ */ d({
|
|
2371
|
+
__name: "BaseNotificationPanel",
|
|
2372
|
+
props: {
|
|
2373
|
+
title: { default: "Notifications" },
|
|
2374
|
+
emptyText: { default: "You have no notifications." },
|
|
2375
|
+
showMarkAllRead: {
|
|
2376
|
+
type: Boolean,
|
|
2377
|
+
default: !0
|
|
2378
|
+
}
|
|
2379
|
+
},
|
|
2380
|
+
emits: ["select"],
|
|
2381
|
+
setup(c, { emit: d }) {
|
|
2382
|
+
let f = d, { isDark: p } = H(), h = J(), { notifications: g, unreadCount: _, open: v, closePanel: b, markAllRead: S, markRead: C } = an(), w = {
|
|
2383
|
+
info: "bg-sky-500",
|
|
2384
|
+
success: "bg-emerald-500",
|
|
2385
|
+
warning: "bg-amber-500",
|
|
2386
|
+
error: "bg-red-500"
|
|
2387
|
+
}, D = r(() => g.value.length);
|
|
2388
|
+
function O(e) {
|
|
2389
|
+
C(e), f("select", e);
|
|
2390
|
+
}
|
|
2391
|
+
return Y(() => {
|
|
2392
|
+
v.value && b();
|
|
2393
|
+
}), (r, d) => (y(), i(t, { to: "body" }, [u(n, {
|
|
2394
|
+
"enter-active-class": "transition-opacity duration-200",
|
|
2395
|
+
"enter-from-class": "opacity-0",
|
|
2396
|
+
"leave-active-class": "transition-opacity duration-200",
|
|
2397
|
+
"leave-to-class": "opacity-0"
|
|
2398
|
+
}, {
|
|
2399
|
+
default: M(() => [E(v) ? (y(), o("div", {
|
|
2400
|
+
key: 0,
|
|
2401
|
+
class: "fixed inset-0 z-[60] bg-black/50",
|
|
2402
|
+
"aria-hidden": "true",
|
|
2403
|
+
onClick: d[0] ||= (...e) => E(b) && E(b)(...e)
|
|
2404
|
+
})) : a("", !0)]),
|
|
2405
|
+
_: 1
|
|
2406
|
+
}), u(n, {
|
|
2407
|
+
"enter-active-class": "transition-transform duration-300 ease-out",
|
|
2408
|
+
"enter-from-class": "-translate-x-full",
|
|
2409
|
+
"leave-active-class": "transition-transform duration-300 ease-in",
|
|
2410
|
+
"leave-to-class": "-translate-x-full"
|
|
2411
|
+
}, {
|
|
2412
|
+
default: M(() => [E(v) ? (y(), o("aside", {
|
|
2413
|
+
key: 0,
|
|
2414
|
+
role: "dialog",
|
|
2415
|
+
"aria-modal": "true",
|
|
2416
|
+
"aria-label": c.title,
|
|
2417
|
+
class: m(["fixed top-0 left-0 z-[70] h-screen w-full max-w-sm flex flex-col border-r shadow-xl", E(p) ? "bg-gray-900 border-gray-800" : "bg-white border-gray-200"])
|
|
2418
|
+
}, [
|
|
2419
|
+
s("div", { class: m(["flex items-center justify-between gap-3 px-5 py-4 border-b shrink-0", E(h).border]) }, [s("h2", { class: m(["text-lg font-semibold flex items-center gap-2", E(h).primaryText]) }, [l(T(c.title) + " ", 1), s("span", { class: m(["text-sm font-normal", E(h).dimTextAlt]) }, "— " + T(D.value), 3)], 2), s("button", {
|
|
2420
|
+
type: "button",
|
|
2421
|
+
onClick: d[1] ||= (...e) => E(b) && E(b)(...e),
|
|
2422
|
+
"aria-label": "Close notifications",
|
|
2423
|
+
class: m(["p-1.5 rounded-lg cursor-pointer transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", E(p) ? "text-gray-400 hover:bg-gray-800" : "text-gray-500 hover:bg-gray-100"])
|
|
2424
|
+
}, [u(E(be), {
|
|
2425
|
+
class: "w-5 h-5",
|
|
2426
|
+
"aria-hidden": "true"
|
|
2427
|
+
})], 2)], 2),
|
|
2428
|
+
c.showMarkAllRead && E(_) > 0 ? (y(), o("div", {
|
|
2429
|
+
key: 0,
|
|
2430
|
+
class: m(["px-5 py-2 border-b shrink-0 flex justify-end", E(h).border])
|
|
2431
|
+
}, [s("button", {
|
|
2432
|
+
type: "button",
|
|
2433
|
+
onClick: d[2] ||= (...e) => E(S) && E(S)(...e),
|
|
2434
|
+
class: m(["text-xs font-medium cursor-pointer transition-colors focus:outline-none focus-visible:underline", E(h).emeraldText])
|
|
2435
|
+
}, " Mark all as read ", 2)], 2)) : a("", !0),
|
|
2436
|
+
s("div", cr, [D.value === 0 ? (y(), o("div", lr, [u(E(ie), {
|
|
2437
|
+
class: m(["w-10 h-10", E(h).illustration]),
|
|
2438
|
+
"aria-hidden": "true"
|
|
2439
|
+
}, null, 8, ["class"]), s("p", { class: m(["text-sm", E(h).mutedText]) }, T(c.emptyText), 3)])) : (y(), o("ul", {
|
|
2440
|
+
key: 1,
|
|
2441
|
+
class: m(["divide-y", E(p) ? "divide-gray-800" : "divide-gray-100"])
|
|
2442
|
+
}, [(y(!0), o(e, null, x(E(g), (e) => (y(), o("li", { key: e.id }, [s("button", {
|
|
2443
|
+
type: "button",
|
|
2444
|
+
onClick: (t) => O(e.id),
|
|
2445
|
+
class: m(["w-full text-left px-5 py-4 flex gap-3 transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-emerald-500", [e.read ? "" : E(p) ? "bg-emerald-500/5" : "bg-emerald-50/60", E(p) ? "hover:bg-gray-800" : "hover:bg-gray-50"]])
|
|
2446
|
+
}, [s("span", {
|
|
2447
|
+
class: m(["mt-1.5 w-2 h-2 rounded-full shrink-0", e.read ? E(p) ? "bg-gray-700" : "bg-gray-300" : w[e.type ?? "info"]]),
|
|
2448
|
+
"aria-hidden": "true"
|
|
2449
|
+
}, null, 2), s("span", dr, [s("span", fr, [s("span", { class: m(["text-sm truncate", [e.read ? "font-medium" : "font-semibold", E(h).primaryTextSoft]]) }, T(e.title), 3), e.time ? (y(), o("span", {
|
|
2450
|
+
key: 0,
|
|
2451
|
+
class: m(["text-xs shrink-0", E(h).dimText])
|
|
2452
|
+
}, T(e.time), 3)) : a("", !0)]), e.message ? (y(), o("span", {
|
|
2453
|
+
key: 0,
|
|
2454
|
+
class: m(["mt-0.5 block text-sm", E(h).mutedText])
|
|
2455
|
+
}, T(e.message), 3)) : a("", !0)])], 10, ur)]))), 128))], 2))])
|
|
2456
|
+
], 10, sr)) : a("", !0)]),
|
|
2457
|
+
_: 1
|
|
2458
|
+
})]));
|
|
2030
2459
|
}
|
|
2031
2460
|
});
|
|
2032
2461
|
//#endregion
|
|
2033
2462
|
//#region src/composables/useDebounce.ts
|
|
2034
|
-
function
|
|
2035
|
-
let n =
|
|
2036
|
-
return
|
|
2463
|
+
function mr(e, t = 300) {
|
|
2464
|
+
let n = b(e.value), r = null;
|
|
2465
|
+
return j(e, (e) => {
|
|
2037
2466
|
r && clearTimeout(r), r = setTimeout(() => {
|
|
2038
2467
|
n.value = e, r = null;
|
|
2039
2468
|
}, t);
|
|
2040
|
-
}),
|
|
2469
|
+
}), _(() => {
|
|
2041
2470
|
r &&= (clearTimeout(r), null);
|
|
2042
2471
|
}), n;
|
|
2043
2472
|
}
|
|
2044
2473
|
//#endregion
|
|
2045
2474
|
//#region src/composables/useToast.ts
|
|
2046
|
-
function
|
|
2047
|
-
let t =
|
|
2475
|
+
function hr(e = 3e3) {
|
|
2476
|
+
let t = b(!1), n = b(""), r = b(K.SUCCESS), i = null;
|
|
2048
2477
|
function a() {
|
|
2049
2478
|
i &&= (clearTimeout(i), null);
|
|
2050
2479
|
}
|
|
2051
|
-
function o(o, s =
|
|
2480
|
+
function o(o, s = K.SUCCESS, c = e) {
|
|
2052
2481
|
n.value = o, r.value = s, t.value = !0, a(), i = setTimeout(() => {
|
|
2053
2482
|
t.value = !1, i = null;
|
|
2054
2483
|
}, c);
|
|
2055
2484
|
}
|
|
2056
|
-
return
|
|
2485
|
+
return _(() => {
|
|
2057
2486
|
a();
|
|
2058
2487
|
}), {
|
|
2059
2488
|
showToast: t,
|
|
@@ -2064,16 +2493,16 @@ function En(e = 3e3) {
|
|
|
2064
2493
|
}
|
|
2065
2494
|
//#endregion
|
|
2066
2495
|
//#region src/enums/BaseBadgeEnum.ts
|
|
2067
|
-
var
|
|
2496
|
+
var gr = /* @__PURE__ */ function(e) {
|
|
2068
2497
|
return e.WIN = "WIN", e.LOSE = "LOSE", e;
|
|
2069
|
-
}({}),
|
|
2498
|
+
}({}), _r = {
|
|
2070
2499
|
GET: "bg-blue-600",
|
|
2071
2500
|
POST: "bg-emerald-600",
|
|
2072
2501
|
PUT: "bg-amber-600",
|
|
2073
2502
|
DELETE: "bg-red-600",
|
|
2074
2503
|
PATCH: "bg-purple-600",
|
|
2075
2504
|
HEAD: "bg-gray-600"
|
|
2076
|
-
},
|
|
2505
|
+
}, vr = {
|
|
2077
2506
|
GET: "bg-blue-500",
|
|
2078
2507
|
POST: "bg-green-500",
|
|
2079
2508
|
PUT: "bg-yellow-500",
|
|
@@ -2081,23 +2510,23 @@ var Dn = /* @__PURE__ */ function(e) {
|
|
|
2081
2510
|
PATCH: "bg-purple-500",
|
|
2082
2511
|
HEAD: "bg-gray-500"
|
|
2083
2512
|
};
|
|
2084
|
-
function
|
|
2085
|
-
return e ?
|
|
2513
|
+
function yr(e) {
|
|
2514
|
+
return e ? _r[e.toUpperCase()] ?? "bg-gray-600" : "bg-gray-600";
|
|
2086
2515
|
}
|
|
2087
|
-
function
|
|
2088
|
-
return e ?
|
|
2516
|
+
function br(e) {
|
|
2517
|
+
return e ? vr[e.toUpperCase()] ?? "bg-gray-500" : "bg-gray-500";
|
|
2089
2518
|
}
|
|
2090
|
-
function
|
|
2519
|
+
function xr(e) {
|
|
2091
2520
|
let t = e ?? 0;
|
|
2092
2521
|
return t >= 200 && t < 300 ? "bg-emerald-600" : t >= 300 && t < 400 ? "bg-blue-600" : t >= 400 && t < 500 ? "bg-amber-600" : t >= 500 ? "bg-red-600" : "bg-gray-600";
|
|
2093
2522
|
}
|
|
2094
|
-
function
|
|
2523
|
+
function Sr(e, t) {
|
|
2095
2524
|
let n = e ?? 200;
|
|
2096
2525
|
return t ? n >= 200 && n < 300 ? "bg-green-500/15 text-green-400" : n >= 300 && n < 400 ? "bg-blue-500/15 text-blue-400" : n >= 400 && n < 500 ? "bg-yellow-500/15 text-yellow-400" : "bg-red-500/15 text-red-400" : n >= 200 && n < 300 ? "bg-green-100 text-green-800" : n >= 300 && n < 400 ? "bg-blue-100 text-blue-800" : n >= 400 && n < 500 ? "bg-yellow-100 text-yellow-800" : "bg-red-100 text-red-800";
|
|
2097
2526
|
}
|
|
2098
2527
|
//#endregion
|
|
2099
2528
|
//#region src/utils/sanitizeHtml.ts
|
|
2100
|
-
var
|
|
2529
|
+
var Cr = /* @__PURE__ */ new Set([
|
|
2101
2530
|
"A",
|
|
2102
2531
|
"B",
|
|
2103
2532
|
"STRONG",
|
|
@@ -2112,7 +2541,7 @@ var Pn = /* @__PURE__ */ new Set([
|
|
|
2112
2541
|
"LI",
|
|
2113
2542
|
"SPAN",
|
|
2114
2543
|
"DIV"
|
|
2115
|
-
]),
|
|
2544
|
+
]), wr = /* @__PURE__ */ new Set([
|
|
2116
2545
|
"SCRIPT",
|
|
2117
2546
|
"STYLE",
|
|
2118
2547
|
"IFRAME",
|
|
@@ -2120,53 +2549,53 @@ var Pn = /* @__PURE__ */ new Set([
|
|
|
2120
2549
|
"EMBED",
|
|
2121
2550
|
"NOSCRIPT",
|
|
2122
2551
|
"TEMPLATE"
|
|
2123
|
-
]),
|
|
2124
|
-
function
|
|
2552
|
+
]), Tr = { A: /* @__PURE__ */ new Set(["href", "title"]) };
|
|
2553
|
+
function Er(e) {
|
|
2125
2554
|
let t = e.trim().toLowerCase();
|
|
2126
2555
|
return t.startsWith("http://") || t.startsWith("https://") || t.startsWith("mailto:") || t.startsWith("tel:") || t.startsWith("/") || t.startsWith("#") || t === "";
|
|
2127
2556
|
}
|
|
2128
|
-
function
|
|
2557
|
+
function Dr(e) {
|
|
2129
2558
|
if (e.nodeType !== Node.ELEMENT_NODE) return;
|
|
2130
2559
|
let t = e, n = t.tagName.toUpperCase();
|
|
2131
|
-
if (!
|
|
2132
|
-
|
|
2560
|
+
if (!Cr.has(n)) {
|
|
2561
|
+
wr.has(n) ? t.remove() : t.replaceWith(document.createTextNode(t.textContent ?? ""));
|
|
2133
2562
|
return;
|
|
2134
2563
|
}
|
|
2135
|
-
let r =
|
|
2564
|
+
let r = Tr[n] ?? /* @__PURE__ */ new Set();
|
|
2136
2565
|
for (let e of Array.from(t.attributes)) {
|
|
2137
2566
|
if (!r.has(e.name.toLowerCase())) {
|
|
2138
2567
|
t.removeAttribute(e.name);
|
|
2139
2568
|
continue;
|
|
2140
2569
|
}
|
|
2141
|
-
n === "A" && e.name.toLowerCase() === "href" && !
|
|
2570
|
+
n === "A" && e.name.toLowerCase() === "href" && !Er(e.value) && t.removeAttribute(e.name);
|
|
2142
2571
|
}
|
|
2143
2572
|
n === "A" && t.hasAttribute("href") && (t.setAttribute("rel", "noopener noreferrer"), t.setAttribute("target", "_blank"));
|
|
2144
|
-
for (let e of Array.from(t.childNodes))
|
|
2573
|
+
for (let e of Array.from(t.childNodes)) Dr(e);
|
|
2145
2574
|
}
|
|
2146
|
-
function
|
|
2575
|
+
function Or(e) {
|
|
2147
2576
|
if (!e) return "";
|
|
2148
2577
|
let t = new DOMParser().parseFromString(`<div>${e}</div>`, "text/html").body.firstElementChild;
|
|
2149
2578
|
if (!t) return "";
|
|
2150
|
-
for (let e of Array.from(t.childNodes))
|
|
2579
|
+
for (let e of Array.from(t.childNodes)) Dr(e);
|
|
2151
2580
|
return t.innerHTML;
|
|
2152
2581
|
}
|
|
2153
2582
|
//#endregion
|
|
2154
2583
|
//#region src/utils/format.ts
|
|
2155
|
-
var
|
|
2156
|
-
function
|
|
2157
|
-
if (e == null || typeof e == "string" && e.trim() === "") return
|
|
2584
|
+
var kr = "—";
|
|
2585
|
+
function Ar(e, t = 4) {
|
|
2586
|
+
if (e == null || typeof e == "string" && e.trim() === "") return kr;
|
|
2158
2587
|
let n = typeof e == "string" ? Number(e) : e;
|
|
2159
2588
|
return isFinite(n) ? n.toLocaleString(void 0, {
|
|
2160
2589
|
minimumFractionDigits: t,
|
|
2161
2590
|
maximumFractionDigits: t
|
|
2162
|
-
}) :
|
|
2591
|
+
}) : kr;
|
|
2163
2592
|
}
|
|
2164
|
-
function
|
|
2165
|
-
if (e == null || e === "") return
|
|
2593
|
+
function jr(e) {
|
|
2594
|
+
if (e == null || e === "") return kr;
|
|
2166
2595
|
let t = new Date(e);
|
|
2167
2596
|
return isNaN(t.getTime()) ? String(e) : t.toLocaleString();
|
|
2168
2597
|
}
|
|
2169
|
-
function
|
|
2598
|
+
function Mr(e) {
|
|
2170
2599
|
return new Date(e).toLocaleString(void 0, {
|
|
2171
2600
|
month: "short",
|
|
2172
2601
|
day: "numeric",
|
|
@@ -2174,13 +2603,13 @@ function Un(e) {
|
|
|
2174
2603
|
minute: "2-digit"
|
|
2175
2604
|
});
|
|
2176
2605
|
}
|
|
2177
|
-
function
|
|
2606
|
+
function Nr(e) {
|
|
2178
2607
|
return new Date(e).toLocaleDateString(void 0, {
|
|
2179
2608
|
month: "short",
|
|
2180
2609
|
day: "numeric"
|
|
2181
2610
|
});
|
|
2182
2611
|
}
|
|
2183
|
-
function
|
|
2612
|
+
function Pr(e) {
|
|
2184
2613
|
if (!isFinite(e) || e === 0) return e.toFixed(2);
|
|
2185
2614
|
let t = Math.abs(e), n = 2;
|
|
2186
2615
|
return t < 1e-4 ? n = 8 : t < .01 ? n = 6 : t < 1 ? n = 4 : t < 100 && (n = 3), e.toLocaleString(void 0, {
|
|
@@ -2188,15 +2617,15 @@ function Gn(e) {
|
|
|
2188
2617
|
maximumFractionDigits: n
|
|
2189
2618
|
});
|
|
2190
2619
|
}
|
|
2191
|
-
function
|
|
2620
|
+
function Fr(e, t = 2) {
|
|
2192
2621
|
return `${e >= 0 ? "+" : ""}${e.toFixed(t)}%`;
|
|
2193
2622
|
}
|
|
2194
|
-
function
|
|
2623
|
+
function Ir(e) {
|
|
2195
2624
|
return `${e < 0 ? "-" : "+"}$${Math.abs(e).toFixed(2)}`;
|
|
2196
2625
|
}
|
|
2197
2626
|
//#endregion
|
|
2198
2627
|
//#region src/utils/pnl.ts
|
|
2199
|
-
function
|
|
2628
|
+
function Lr(e) {
|
|
2200
2629
|
if (e.buyPrice == null || e.lastPrice == null || e.filledQty == null) return {
|
|
2201
2630
|
pnlUsd: null,
|
|
2202
2631
|
pnlPct: null
|
|
@@ -2211,4 +2640,4 @@ function Jn(e) {
|
|
|
2211
2640
|
};
|
|
2212
2641
|
}
|
|
2213
2642
|
//#endregion
|
|
2214
|
-
export {
|
|
2643
|
+
export { I as AlertEnum, Hn as BaseActionButton, De as BaseAlert, Mn as BaseAppLayout, ke as BaseBadge, gr as BaseBadgeEnum, Ne as BaseBreadcrumb, U as BaseButton, R as BaseButtonEnum, z as BaseButtonSizeEnum, Bt as BaseCollapsibleSection, Wt as BaseConfirmModal, Wn as BaseCopyButton, kn as BaseEntityPickerModal, Jn as BaseGoogleSignInButton, Je as BaseLine, Ye as BaseLoginEnum, or as BaseLoginForm, Ze as BaseLogo, G as BaseLogoEnum, it as BaseModal, Qe as BaseModalEnum, Lt as BaseModalShell, Zt as BaseNotFoundPage, pr as BaseNotificationPanel, In as BasePageHeader, at as BaseRow, gn as BaseSidebar, ot as BaseSpinner, Jt as BaseTextInputModal, lt as BaseToast, K as BaseToastEnum, zn as BaseToolbarButton, dt as ColoredSquares, L as ColorsEnums, mt as EarningsCard, yt as EuroAmount, W as LineEnum, Ct as Pagination, q as PositioningEnum, Ot as TrendArrow, Lr as computePnL, jr as fmtDate, Nr as fmtDateShort, Mr as fmtDateTime, Ar as fmtNumber, Fr as fmtPct, Pr as fmtPrice, Ir as fmtUsd, we as getBaseColor, Te as getBaseColorOf, Ie as initTheme, Er as isSafeHref, br as methodBadgeBright, yr as methodBadgeSolid, Or as sanitizeHtml, xr as statusBadgeSolid, Sr as statusBadgeTinted, mr as useDebouncedRef, Y as useEscapeKey, Qt as useMobileSidebar, an as useNotifications, nn as useSidebarCollapse, H as useTheme, J as useThemeClasses, hr as useToast };
|