mgv-backoffice 1.37.0 → 1.40.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.
Files changed (47) hide show
  1. package/README.md +147 -4
  2. package/dist/components/BaseAuthLayout.vue.d.ts +27 -0
  3. package/dist/components/BaseBooleanBadge.vue.d.ts +12 -0
  4. package/dist/components/BaseCard.vue.d.ts +33 -0
  5. package/dist/components/BaseDetailList.vue.d.ts +13 -0
  6. package/dist/components/BaseField.vue.d.ts +38 -0
  7. package/dist/components/BasePageHeader.vue.d.ts +3 -0
  8. package/dist/components/BaseSearchSelect.vue.d.ts +41 -0
  9. package/dist/components/BaseStatCard.vue.d.ts +33 -0
  10. package/dist/components/BaseTable.vue.d.ts +3 -0
  11. package/dist/components/BaseToggle.vue.d.ts +33 -0
  12. package/dist/index.d.ts +9 -0
  13. package/dist/types/detail.d.ts +10 -0
  14. package/dist/ui-lib.css +1 -1
  15. package/dist/ui-lib.js +1388 -881
  16. package/dist/ui-lib.umd.cjs +1 -1
  17. package/package.json +1 -1
  18. package/src/components/BaseAuthLayout.test.ts +48 -0
  19. package/src/components/BaseAuthLayout.vue +50 -0
  20. package/src/components/BaseBooleanBadge.vue +33 -0
  21. package/src/components/BaseBreadcrumb.vue +68 -68
  22. package/src/components/BaseButton.vue +1 -1
  23. package/src/components/BaseCard.test.ts +55 -0
  24. package/src/components/BaseCard.vue +48 -0
  25. package/src/components/BaseDetailList.test.ts +36 -0
  26. package/src/components/BaseDetailList.vue +43 -0
  27. package/src/components/BaseField.vue +47 -0
  28. package/src/components/BaseInput.test.ts +1 -1
  29. package/src/components/BaseInput.vue +46 -46
  30. package/src/components/BaseLogo.test.ts +26 -0
  31. package/src/components/BaseLogo.vue +7 -1
  32. package/src/components/BasePageHeader.vue +13 -2
  33. package/src/components/BaseSearchSelect.test.ts +117 -0
  34. package/src/components/BaseSearchSelect.vue +318 -0
  35. package/src/components/BaseSelect.test.ts +3 -3
  36. package/src/components/BaseSelect.vue +62 -46
  37. package/src/components/BaseStatCard.test.ts +40 -0
  38. package/src/components/BaseStatCard.vue +103 -0
  39. package/src/components/BaseTable.test.ts +69 -55
  40. package/src/components/BaseTable.vue +62 -50
  41. package/src/components/BaseToggle.test.ts +39 -0
  42. package/src/components/BaseToggle.vue +73 -0
  43. package/src/components/Pagination.test.ts +93 -85
  44. package/src/components/Pagination.vue +87 -82
  45. package/src/index.ts +9 -0
  46. package/src/style.css +58 -58
  47. package/src/types/detail.ts +10 -0
package/dist/ui-lib.js CHANGED
@@ -1,37 +1,37 @@
1
- import { Fragment as e, Teleport as t, Text as n, Transition as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createStaticVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, effectScope as m, guardReactiveProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as x, onScopeDispose as S, onUnmounted as C, openBlock as w, reactive as T, readonly as ee, ref as E, renderList as D, renderSlot as O, resolveComponent as k, resolveDynamicComponent as A, toDisplayString as j, unref as M, useSlots as te, vModelCheckbox as ne, vModelDynamic as re, vModelText as ie, vShow as ae, watch as N, withCtx as P, withDirectives as F, withKeys as oe, withModifiers as I } from "vue";
2
- import { ArrowDownIcon as se, ArrowUpIcon as ce, Bars3Icon as le, BellIcon as ue, CheckCircleIcon as de, ChevronDoubleLeftIcon as fe, ChevronDoubleRightIcon as pe, ChevronDownIcon as me, ChevronRightIcon as he, ClipboardDocumentCheckIcon as ge, ClipboardDocumentIcon as _e, DocumentDuplicateIcon as ve, ExclamationCircleIcon as ye, ExclamationTriangleIcon as be, FolderIcon as xe, InformationCircleIcon as Se, MagnifyingGlassIcon as Ce, MinusIcon as we, MoonIcon as Te, SunIcon as Ee, XMarkIcon as De } from "@heroicons/vue/24/outline";
3
- import { HomeIcon as Oe } from "@heroicons/vue/24/solid";
4
- import { useRoute as ke, useRouter as Ae } from "vue-router";
1
+ import { Fragment as e, Teleport as t, Text as n, Transition as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createStaticVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, effectScope as m, guardReactiveProps as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, onScopeDispose as C, onUnmounted as w, openBlock as T, reactive as E, readonly as D, ref as O, renderList as k, renderSlot as A, resolveComponent as j, resolveDynamicComponent as M, toDisplayString as N, unref as P, useId as ee, useSlots as F, vModelCheckbox as te, vModelDynamic as ne, vModelText as re, vShow as ie, watch as I, withCtx as L, withDirectives as R, withKeys as ae, withModifiers as z } from "vue";
2
+ import { ArrowDownIcon as oe, ArrowUpIcon as se, Bars3Icon as ce, BellIcon as le, CheckCircleIcon as ue, CheckIcon as de, ChevronDoubleLeftIcon as fe, ChevronDoubleRightIcon as pe, ChevronDownIcon as me, ChevronRightIcon as he, ClipboardDocumentCheckIcon as ge, ClipboardDocumentIcon as _e, DocumentDuplicateIcon as ve, ExclamationCircleIcon as ye, ExclamationTriangleIcon as be, FolderIcon as xe, InformationCircleIcon as Se, MagnifyingGlassIcon as Ce, MinusIcon as we, MoonIcon as Te, SunIcon as Ee, XMarkIcon as B } from "@heroicons/vue/24/outline";
3
+ import { HomeIcon as De } from "@heroicons/vue/24/solid";
4
+ import { RouterLink as Oe, useRoute as ke, useRouter as Ae } from "vue-router";
5
5
  import { VueDatePicker as je } from "@vuepic/vue-datepicker";
6
6
  //#region src/enums/AlertEnum.ts
7
- var L = /* @__PURE__ */ function(e) {
7
+ var V = /* @__PURE__ */ function(e) {
8
8
  return e.WARNING = "WARNING", e.ERROR = "ERROR", e.SUCCESS = "SUCCESS", e.INFO = "INFO", e;
9
- }({}), R = E(!1), Me = !1, z = "mgv-theme";
9
+ }({}), H = O(!1), Me = !1, U = "mgv-theme";
10
10
  function Ne(e) {
11
11
  if (Me) {
12
- e !== z && console.warn(`[ui-lib] useTheme: storage key "${e}" ignored — theme already initialized with "${z}". Call initTheme({ storageKey }) before mounting any component.`);
12
+ e !== U && console.warn(`[ui-lib] useTheme: storage key "${e}" ignored — theme already initialized with "${U}". Call initTheme({ storageKey }) before mounting any component.`);
13
13
  return;
14
14
  }
15
- if (Me = !0, z = e, typeof window < "u") {
16
- let e = window.localStorage?.getItem(z);
17
- e ? R.value = e === "dark" : typeof window.matchMedia == "function" && (R.value = window.matchMedia("(prefers-color-scheme: dark)").matches);
15
+ if (Me = !0, U = e, typeof window < "u") {
16
+ let e = window.localStorage?.getItem(U);
17
+ e ? H.value = e === "dark" : typeof window.matchMedia == "function" && (H.value = window.matchMedia("(prefers-color-scheme: dark)").matches);
18
18
  }
19
19
  typeof document < "u" && m(!0).run(() => {
20
- N(R, (e) => {
21
- document.documentElement.classList.toggle("dark", e), window.localStorage?.setItem(z, e ? "dark" : "light");
20
+ I(H, (e) => {
21
+ document.documentElement.classList.toggle("dark", e), window.localStorage?.setItem(U, e ? "dark" : "light");
22
22
  }, { immediate: !0 });
23
23
  });
24
24
  }
25
25
  function Pe(e) {
26
- Ne(e?.storageKey ?? z);
26
+ Ne(e?.storageKey ?? U);
27
27
  }
28
- function B(e) {
29
- Ne(e?.storageKey ?? z);
28
+ function W(e) {
29
+ Ne(e?.storageKey ?? U);
30
30
  function t() {
31
- R.value = !R.value;
31
+ H.value = !H.value;
32
32
  }
33
33
  return {
34
- isDark: R,
34
+ isDark: H,
35
35
  toggleTheme: t
36
36
  };
37
37
  }
@@ -44,54 +44,54 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
44
44
  __name: "BaseAlert",
45
45
  props: {
46
46
  title: { default: "" },
47
- color: { default: L.ERROR },
47
+ color: { default: V.ERROR },
48
48
  compact: {
49
49
  type: Boolean,
50
50
  default: !1
51
51
  }
52
52
  },
53
53
  setup(e) {
54
- let t = e, { isDark: n } = B(), r = {
55
- [L.ERROR]: {
54
+ let t = e, { isDark: n } = W(), r = {
55
+ [V.ERROR]: {
56
56
  light: "bg-red-50 border-red-200 text-red-700",
57
57
  dark: "bg-red-500/10 border-red-500/30 text-red-300"
58
58
  },
59
- [L.WARNING]: {
59
+ [V.WARNING]: {
60
60
  light: "bg-amber-50 border-amber-200 text-amber-700",
61
61
  dark: "bg-amber-500/10 border-amber-500/30 text-amber-300"
62
62
  },
63
- [L.SUCCESS]: {
63
+ [V.SUCCESS]: {
64
64
  light: "bg-emerald-50 border-emerald-200 text-emerald-700",
65
65
  dark: "bg-emerald-500/10 border-emerald-500/30 text-emerald-300"
66
66
  },
67
- [L.INFO]: {
67
+ [V.INFO]: {
68
68
  light: "bg-sky-50 border-sky-200 text-sky-700",
69
69
  dark: "bg-sky-500/10 border-sky-500/30 text-sky-300"
70
70
  }
71
71
  }, l = i(() => n.value ? r[t.color].dark : r[t.color].light), u = i(() => {
72
72
  switch (t.color) {
73
- case L.SUCCESS: return de;
74
- case L.WARNING: return be;
75
- case L.INFO: return Se;
73
+ case V.SUCCESS: return ue;
74
+ case V.WARNING: return be;
75
+ case V.INFO: return Se;
76
76
  default: return ye;
77
77
  }
78
78
  }), d = i(() => {
79
79
  switch (t.color) {
80
- case L.SUCCESS: return "text-emerald-500";
81
- case L.WARNING: return "text-amber-500";
82
- case L.INFO: return "text-sky-500";
80
+ case V.SUCCESS: return "text-emerald-500";
81
+ case V.WARNING: return "text-amber-500";
82
+ case V.INFO: return "text-sky-500";
83
83
  default: return "text-red-500";
84
84
  }
85
85
  });
86
- return (t, n) => (w(), s("div", {
86
+ return (t, n) => (T(), s("div", {
87
87
  role: "alert",
88
- class: _(["flex gap-3 mb-4 rounded-lg border text-sm transition-colors", [e.compact ? "items-start px-3 py-2 text-xs" : "items-start p-4", l.value]])
89
- }, [(w(), a(A(u.value), {
90
- class: _(["shrink-0", [e.compact ? "w-4 h-4 mt-px" : "w-5 h-5 mt-0.5", d.value]]),
88
+ class: v(["flex gap-3 mb-4 rounded-lg border text-sm transition-colors", [e.compact ? "items-start px-3 py-2 text-xs" : "items-start p-4", l.value]])
89
+ }, [(T(), a(M(u.value), {
90
+ class: v(["shrink-0", [e.compact ? "w-4 h-4 mt-px" : "w-5 h-5 mt-0.5", d.value]]),
91
91
  "aria-hidden": "true"
92
- }, null, 8, ["class"])), c("div", Fe, [e.title ? (w(), s("p", Ie, j(e.title), 1)) : o("", !0), O(t.$slots, "default")])], 2));
92
+ }, null, 8, ["class"])), c("div", Fe, [e.title ? (T(), s("p", Ie, N(e.title), 1)) : o("", !0), A(t.$slots, "default")])], 2));
93
93
  }
94
- }), V = /* @__PURE__ */ function(e) {
94
+ }), G = /* @__PURE__ */ function(e) {
95
95
  return e.NONE = "NONE", e.RED = "RED", e.YELLOW = "YELLOW", e.BLACK = "BLACK", e.GRAY = "GRAY", e.GREEN = "GREEN", e.BLUE = "BLUE", e;
96
96
  }({}), Re = "bg-red-100 text-red-700 border-red-200", ze = /* @__PURE__ */ p({
97
97
  __name: "BaseBadge",
@@ -100,24 +100,24 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
100
100
  required: !1
101
101
  } },
102
102
  setup(e) {
103
- let t = te(), r = i(() => !!t.default), a = () => (t.default?.() ?? []).map((e) => e.type === n && typeof e.children == "string" ? d(e.children.replace(/_/g, " ")) : e), c = e, l = {
104
- [V.RED]: "bg-red-100 text-red-700 border-red-200",
105
- [V.GREEN]: "bg-green-100 text-green-700 border-green-200",
106
- [V.BLUE]: "bg-blue-100 text-blue-700 border-blue-200",
107
- [V.YELLOW]: "bg-yellow-100 text-yellow-700 border-yellow-200",
108
- [V.GRAY]: "bg-gray-100 text-gray-700 border-gray-200",
109
- [V.BLACK]: "bg-gray-800 text-gray-100 border-gray-700",
110
- [V.NONE]: "bg-gray-50 text-gray-600 border-gray-200"
103
+ let t = F(), r = i(() => !!t.default), a = () => (t.default?.() ?? []).map((e) => e.type === n && typeof e.children == "string" ? d(e.children.replace(/_/g, " ")) : e), c = e, l = {
104
+ [G.RED]: "bg-red-100 text-red-700 border-red-200",
105
+ [G.GREEN]: "bg-green-100 text-green-700 border-green-200",
106
+ [G.BLUE]: "bg-blue-100 text-blue-700 border-blue-200",
107
+ [G.YELLOW]: "bg-yellow-100 text-yellow-700 border-yellow-200",
108
+ [G.GRAY]: "bg-gray-100 text-gray-700 border-gray-200",
109
+ [G.BLACK]: "bg-gray-800 text-gray-100 border-gray-700",
110
+ [G.NONE]: "bg-gray-50 text-gray-600 border-gray-200"
111
111
  }, u = i(() => `inline-flex items-center gap-1 font-semibold text-xs leading-none px-3 py-1.5 rounded-full border ${c.color && l[c.color] || Re}`);
112
- return (e, t) => r.value ? (w(), s("span", {
112
+ return (e, t) => r.value ? (T(), s("span", {
113
113
  key: 0,
114
- class: _(u.value)
114
+ class: v(u.value)
115
115
  }, [f(a)], 2)) : o("", !0);
116
116
  }
117
117
  }), Be = {
118
- 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",
118
+ class: "flex overflow-x-auto px-5 py-3 text-gray-700 border border-slate-200 rounded-xl bg-white shadow-sm dark:bg-slate-900 dark:border-slate-700",
119
119
  "aria-label": "Breadcrumb"
120
- }, Ve = { class: "inline-flex items-center space-x-1 md:space-x-3" }, He = {
120
+ }, Ve = { class: "inline-flex items-center whitespace-nowrap space-x-1 md:space-x-3" }, He = {
121
121
  class: "inline-flex items-center",
122
122
  style: { "margin-left": "0" }
123
123
  }, Ue = /* @__PURE__ */ p({
@@ -144,29 +144,29 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
144
144
  }));
145
145
  });
146
146
  return (t, n) => {
147
- let i = k("router-link");
148
- return w(), s("nav", Be, [c("ol", Ve, [c("li", He, [f(i, {
147
+ let i = j("router-link");
148
+ return T(), s("nav", Be, [c("ol", Ve, [c("li", He, [f(i, {
149
149
  to: "/",
150
150
  class: "inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600 dark:text-gray-400 dark:hover:text-white transition-colors rounded focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500"
151
151
  }, {
152
- default: P(() => [f(M(Oe), { class: "h-4 w-4 text-gray-500 mr-2" }), n[0] ||= d(" Home ", -1)]),
152
+ default: L(() => [f(P(De), { class: "h-4 w-4 text-gray-500 mr-2" }), n[0] ||= d(" Home ", -1)]),
153
153
  _: 1
154
- })]), (w(!0), s(e, null, D(r.value, (e, t) => (w(), s("li", {
154
+ })]), (T(!0), s(e, null, k(r.value, (e, t) => (T(), s("li", {
155
155
  key: t,
156
156
  class: "inline-flex items-center",
157
157
  style: { "margin-left": "0" }
158
- }, [f(M(he), { class: "h-4 w-4 text-gray-500" }), f(i, {
158
+ }, [f(P(he), { class: "h-4 w-4 text-gray-500" }), f(i, {
159
159
  to: e.url,
160
160
  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 transition-colors rounded focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500"
161
161
  }, {
162
- default: P(() => [d(j(e.name), 1)]),
162
+ default: L(() => [d(N(e.name), 1)]),
163
163
  _: 2
164
164
  }, 1032, ["to"])]))), 128))])]);
165
165
  };
166
166
  }
167
- }), H = /* @__PURE__ */ function(e) {
167
+ }), K = /* @__PURE__ */ function(e) {
168
168
  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;
169
- }({}), U = /* @__PURE__ */ function(e) {
169
+ }({}), q = /* @__PURE__ */ function(e) {
170
170
  return e.EXTRA_SMALL = "EXTRA_SMALL", e.SMALL = "SMALL", e.BASE = "BASE", e.LARGE = "LARGE", e.EXTRA_LARGE = "EXTRA_LARGE", e;
171
171
  }({}), We = [
172
172
  "type",
@@ -178,7 +178,7 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
178
178
  }, Ke = { key: 1 }, qe = { key: 2 }, Je = ["type", "disabled"], Ye = {
179
179
  key: 0,
180
180
  class: "inline-flex items-center"
181
- }, Xe = { key: 1 }, Ze = { key: 2 }, W = /* @__PURE__ */ p({
181
+ }, Xe = { key: 1 }, Ze = { key: 2 }, Qe = /* @__PURE__ */ p({
182
182
  __name: "BaseButton",
183
183
  props: {
184
184
  description: {
@@ -188,7 +188,7 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
188
188
  color: {
189
189
  type: String,
190
190
  required: !1,
191
- default: H.BLUE
191
+ default: K.GREEN
192
192
  },
193
193
  to: {
194
194
  type: String,
@@ -232,103 +232,103 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
232
232
  }
233
233
  },
234
234
  setup(e) {
235
- let { isDark: t } = B(), n = e;
235
+ let { isDark: t } = W(), n = e;
236
236
  function r() {
237
237
  let e = {
238
- [H.BLUE]: {
238
+ [K.BLUE]: {
239
239
  light: "text-blue-700 border-blue-300 hover:bg-blue-50",
240
240
  dark: "text-blue-400 border-blue-500/40 hover:bg-blue-500/10"
241
241
  },
242
- [H.GREEN]: {
242
+ [K.GREEN]: {
243
243
  light: "text-green-700 border-green-300 hover:bg-green-50",
244
244
  dark: "text-green-400 border-green-500/40 hover:bg-green-500/10"
245
245
  },
246
- [H.EMERALD]: {
246
+ [K.EMERALD]: {
247
247
  light: "text-emerald-700 border-emerald-300 hover:bg-emerald-50",
248
248
  dark: "text-emerald-400 border-emerald-500/40 hover:bg-emerald-500/10"
249
249
  },
250
- [H.RED]: {
250
+ [K.RED]: {
251
251
  light: "text-red-700 border-red-300 hover:bg-red-50",
252
252
  dark: "text-red-400 border-red-500/40 hover:bg-red-500/10"
253
253
  },
254
- [H.YELLOW]: {
254
+ [K.YELLOW]: {
255
255
  light: "text-yellow-700 border-yellow-300 hover:bg-yellow-50",
256
256
  dark: "text-yellow-400 border-yellow-500/40 hover:bg-yellow-500/10"
257
257
  },
258
- [H.PURPLE]: {
258
+ [K.PURPLE]: {
259
259
  light: "text-purple-700 border-purple-300 hover:bg-purple-50",
260
260
  dark: "text-purple-400 border-purple-500/40 hover:bg-purple-500/10"
261
261
  },
262
- [H.SKY]: {
262
+ [K.SKY]: {
263
263
  light: "text-sky-700 border-sky-300 hover:bg-sky-50",
264
264
  dark: "text-sky-400 border-sky-500/40 hover:bg-sky-500/10"
265
265
  },
266
- [H.AMBER]: {
266
+ [K.AMBER]: {
267
267
  light: "text-amber-700 border-amber-300 hover:bg-amber-50",
268
268
  dark: "text-amber-400 border-amber-500/40 hover:bg-amber-500/10"
269
269
  },
270
- [H.GRAY]: {
270
+ [K.GRAY]: {
271
271
  light: "text-gray-700 border-gray-300 hover:bg-gray-50",
272
272
  dark: "text-gray-300 border-gray-600 hover:bg-gray-800"
273
273
  },
274
- [H.DARK]: {
274
+ [K.DARK]: {
275
275
  light: "text-gray-700 border-gray-300 hover:bg-gray-50",
276
276
  dark: "text-gray-300 border-gray-600 hover:bg-gray-800"
277
277
  },
278
- [H.WHITE]: {
278
+ [K.WHITE]: {
279
279
  light: "text-gray-700 border-gray-300 hover:bg-gray-50",
280
280
  dark: "text-gray-300 border-gray-600 hover:bg-gray-800"
281
281
  }
282
- }, r = e[n.color] ?? e[H.BLUE], i = t.value ? r.dark : r.light;
282
+ }, r = e[n.color] ?? e[K.BLUE], i = t.value ? r.dark : r.light;
283
283
  return n.isDisable || n.isLoading ? `border bg-transparent ${i} opacity-50 cursor-not-allowed` : `focus:outline-none focus-visible:ring-2 focus-visible:ring-current border bg-transparent ${i}`;
284
284
  }
285
285
  function i() {
286
286
  let e = {
287
- [H.BLUE]: {
287
+ [K.BLUE]: {
288
288
  light: "text-blue-600 hover:bg-blue-50",
289
289
  dark: "text-blue-400 hover:bg-blue-500/10"
290
290
  },
291
- [H.GREEN]: {
291
+ [K.GREEN]: {
292
292
  light: "text-green-600 hover:bg-green-50",
293
293
  dark: "text-green-400 hover:bg-green-500/10"
294
294
  },
295
- [H.EMERALD]: {
295
+ [K.EMERALD]: {
296
296
  light: "text-emerald-600 hover:bg-emerald-50",
297
297
  dark: "text-emerald-400 hover:bg-emerald-500/10"
298
298
  },
299
- [H.SKY]: {
299
+ [K.SKY]: {
300
300
  light: "text-sky-600 hover:bg-sky-50",
301
301
  dark: "text-sky-400 hover:bg-sky-500/10"
302
302
  },
303
- [H.RED]: {
303
+ [K.RED]: {
304
304
  light: "text-red-500 hover:bg-red-50",
305
305
  dark: "text-red-400 hover:bg-red-500/10"
306
306
  },
307
- [H.AMBER]: {
307
+ [K.AMBER]: {
308
308
  light: "text-amber-700 hover:bg-amber-50",
309
309
  dark: "text-amber-300 hover:bg-amber-500/10"
310
310
  },
311
- [H.YELLOW]: {
311
+ [K.YELLOW]: {
312
312
  light: "text-yellow-600 hover:bg-yellow-50",
313
313
  dark: "text-yellow-400 hover:bg-yellow-500/10"
314
314
  },
315
- [H.PURPLE]: {
315
+ [K.PURPLE]: {
316
316
  light: "text-purple-600 hover:bg-purple-50",
317
317
  dark: "text-purple-400 hover:bg-purple-500/10"
318
318
  },
319
- [H.GRAY]: {
319
+ [K.GRAY]: {
320
320
  light: "text-gray-500 hover:bg-gray-100",
321
321
  dark: "text-gray-400 hover:bg-gray-800"
322
322
  },
323
- [H.DARK]: {
323
+ [K.DARK]: {
324
324
  light: "text-gray-500 hover:bg-gray-100",
325
325
  dark: "text-gray-400 hover:bg-gray-800"
326
326
  },
327
- [H.WHITE]: {
327
+ [K.WHITE]: {
328
328
  light: "text-gray-500 hover:bg-gray-100",
329
329
  dark: "text-gray-400 hover:bg-gray-800"
330
330
  }
331
- }, r = e[n.color] ?? e[H.GRAY], i = t.value ? r.dark : r.light;
331
+ }, r = e[n.color] ?? e[K.GRAY], i = t.value ? r.dark : r.light;
332
332
  return n.isDisable || n.isLoading ? `bg-transparent ${i} opacity-60 cursor-not-allowed` : `focus:outline-none focus-visible:ring-2 focus-visible:ring-current bg-transparent ${i} cursor-pointer`;
333
333
  }
334
334
  function l() {
@@ -336,37 +336,37 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
336
336
  e || (t += " cursor-pointer");
337
337
  let a;
338
338
  switch (n.color) {
339
- case H.BLUE:
339
+ case K.BLUE:
340
340
  a = 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";
341
341
  break;
342
- case H.WHITE:
342
+ case K.WHITE:
343
343
  a = 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";
344
344
  break;
345
- case H.DARK:
345
+ case K.DARK:
346
346
  a = 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";
347
347
  break;
348
- case H.GREEN:
348
+ case K.GREEN:
349
349
  a = 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";
350
350
  break;
351
- case H.EMERALD:
351
+ case K.EMERALD:
352
352
  a = 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";
353
353
  break;
354
- case H.RED:
354
+ case K.RED:
355
355
  a = 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";
356
356
  break;
357
- case H.YELLOW:
357
+ case K.YELLOW:
358
358
  a = 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";
359
359
  break;
360
- case H.PURPLE:
360
+ case K.PURPLE:
361
361
  a = 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";
362
362
  break;
363
- case H.SKY:
363
+ case K.SKY:
364
364
  a = 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";
365
365
  break;
366
- case H.AMBER:
366
+ case K.AMBER:
367
367
  a = 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";
368
368
  break;
369
- case H.GRAY:
369
+ case K.GRAY:
370
370
  a = 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";
371
371
  break;
372
372
  default: a = 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";
@@ -374,37 +374,37 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
374
374
  n.outline && (a = r()), n.ghost && (a = i());
375
375
  let o = "px-5 py-2.5 mr-2 mb-2 text-sm";
376
376
  switch (n.size) {
377
- case U.EXTRA_SMALL:
377
+ case q.EXTRA_SMALL:
378
378
  o = "px-3 py-2 text-xs";
379
379
  break;
380
- case U.SMALL:
380
+ case q.SMALL:
381
381
  o = "px-3 py-2 text-sm";
382
382
  break;
383
- case U.BASE:
383
+ case q.BASE:
384
384
  o = "px-5 py-2.5 text-sm";
385
385
  break;
386
- case U.LARGE:
386
+ case q.LARGE:
387
387
  o = "px-5 py-3 text-base";
388
388
  break;
389
- case U.EXTRA_LARGE: o = "px-6 py-3.5 text-base";
389
+ case q.EXTRA_LARGE: o = "px-6 py-3.5 text-base";
390
390
  }
391
391
  let s = "rounded-lg";
392
392
  return n.isRounded && (s = "rounded-full"), t + " " + o + " " + a + " font-medium " + s;
393
393
  }
394
394
  return (t, r) => {
395
- let i = k("router-link");
396
- return e.to ? (w(), a(i, {
395
+ let i = j("router-link");
396
+ return e.to ? (T(), a(i, {
397
397
  key: 0,
398
398
  to: e.to,
399
399
  custom: ""
400
400
  }, {
401
- default: P(({ navigate: i }) => [c("button", {
401
+ default: L(({ navigate: i }) => [c("button", {
402
402
  type: n.type,
403
- class: _(l()),
403
+ class: v(l()),
404
404
  disabled: e.isDisable || e.isLoading,
405
405
  onClick: i
406
406
  }, [
407
- e.isLoading ? (w(), s("div", Ge, [...r[0] ||= [c("svg", {
407
+ e.isLoading ? (T(), s("div", Ge, [...r[0] ||= [c("svg", {
408
408
  "aria-hidden": "true",
409
409
  role: "status",
410
410
  class: "inline w-4 h-4 me-3 animate-spin",
@@ -418,18 +418,18 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
418
418
  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",
419
419
  fill: "currentColor"
420
420
  })], -1)]])) : o("", !0),
421
- e.iconLeft ? o("", !0) : (w(), s("span", Ke, j(e.description), 1)),
422
- O(t.$slots, "default"),
423
- e.iconLeft ? (w(), s("span", qe, j(e.description), 1)) : o("", !0)
421
+ e.iconLeft ? o("", !0) : (T(), s("span", Ke, N(e.description), 1)),
422
+ A(t.$slots, "default"),
423
+ e.iconLeft ? (T(), s("span", qe, N(e.description), 1)) : o("", !0)
424
424
  ], 10, We)]),
425
425
  _: 3
426
- }, 8, ["to"])) : (w(), s("button", {
426
+ }, 8, ["to"])) : (T(), s("button", {
427
427
  key: 1,
428
428
  type: n.type,
429
- class: _(l()),
429
+ class: v(l()),
430
430
  disabled: e.isDisable || e.isLoading
431
431
  }, [
432
- e.isLoading ? (w(), s("div", Ye, [...r[1] ||= [c("svg", {
432
+ e.isLoading ? (T(), s("div", Ye, [...r[1] ||= [c("svg", {
433
433
  "aria-hidden": "true",
434
434
  role: "status",
435
435
  class: "inline w-4 h-4 me-3 animate-spin",
@@ -443,234 +443,234 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
443
443
  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",
444
444
  fill: "currentColor"
445
445
  })], -1)]])) : o("", !0),
446
- e.iconLeft ? o("", !0) : (w(), s("span", Xe, j(e.description), 1)),
447
- O(t.$slots, "default"),
448
- e.iconLeft ? (w(), s("span", Ze, j(e.description), 1)) : o("", !0)
446
+ e.iconLeft ? o("", !0) : (T(), s("span", Xe, N(e.description), 1)),
447
+ A(t.$slots, "default"),
448
+ e.iconLeft ? (T(), s("span", Ze, N(e.description), 1)) : o("", !0)
449
449
  ], 10, Je));
450
450
  };
451
451
  }
452
- }), Qe = /* @__PURE__ */ function(e) {
452
+ }), $e = /* @__PURE__ */ function(e) {
453
453
  return e.BASE = "BASE", e.BASE_SHORTER = "BASE_SHORTER", e.SQUARE = "SQUARE", e;
454
- }({}), $e = {
454
+ }({}), et = {
455
455
  key: 0,
456
456
  class: "h-px my-8 bg-gray-200 border-0 dark:bg-gray-700"
457
- }, et = {
457
+ }, tt = {
458
458
  key: 1,
459
459
  class: "w-48 h-1 mx-auto my-4 bg-gray-100 border-0 rounded md:my-10 dark:bg-gray-700"
460
- }, tt = {
460
+ }, nt = {
461
461
  key: 2,
462
462
  class: "w-8 h-8 mx-auto my-8 bg-gray-200 border-0 rounded md:my-12 dark:bg-gray-700"
463
- }, nt = /* @__PURE__ */ p({
463
+ }, rt = /* @__PURE__ */ p({
464
464
  __name: "BaseLine",
465
465
  props: { mode: {
466
466
  type: String,
467
467
  required: !1,
468
- default: Qe.BASE
468
+ default: $e.BASE
469
469
  } },
470
470
  setup(t) {
471
- return (n, r) => (w(), s(e, null, [
472
- t.mode === M(Qe).BASE ? (w(), s("hr", $e)) : o("", !0),
473
- t.mode === M(Qe).BASE_SHORTER ? (w(), s("hr", et)) : o("", !0),
474
- t.mode === M(Qe).SQUARE ? (w(), s("hr", tt)) : o("", !0)
471
+ return (n, r) => (T(), s(e, null, [
472
+ t.mode === P($e).BASE ? (T(), s("hr", et)) : o("", !0),
473
+ t.mode === P($e).BASE_SHORTER ? (T(), s("hr", tt)) : o("", !0),
474
+ t.mode === P($e).SQUARE ? (T(), s("hr", nt)) : o("", !0)
475
475
  ], 64));
476
476
  }
477
- }), G = /* @__PURE__ */ function(e) {
477
+ }), J = /* @__PURE__ */ function(e) {
478
478
  return e.SMALL = "SMALL", e.MEDIUM = "MEDIUM", e.LARGE = "LARGE", e;
479
- }({}), rt = G, it = ["height", "width"], at = /* @__PURE__ */ p({
479
+ }({}), it = J, at = ["height", "width"], ot = ["id"], st = ["id", "href"], ct = ["id", "href"], lt = ["id", "href"], ut = ["id", "href"], dt = ["id", "href"], ft = ["id", "href"], pt = ["id", "href"], mt = ["id", "href"], ht = ["id", "href"], gt = ["id"], _t = ["fill"], vt = ["fill"], yt = ["fill"], bt = ["fill"], xt = ["fill"], St = ["fill"], Ct = ["fill"], wt = ["fill"], Tt = ["fill"], Et = ["fill"], Dt = /* @__PURE__ */ p({
480
480
  __name: "BaseLogo",
481
481
  props: { size: {
482
482
  type: String,
483
483
  required: !1,
484
- default: G.MEDIUM
484
+ default: J.MEDIUM
485
485
  } },
486
486
  setup(e) {
487
- let t = e;
488
- function n() {
487
+ let t = `logo-${ee()}`, n = e;
488
+ function r() {
489
489
  let e = "";
490
- switch (t.size) {
491
- case G.SMALL:
490
+ switch (n.size) {
491
+ case J.SMALL:
492
492
  e = "50px";
493
493
  break;
494
- case G.MEDIUM:
494
+ case J.MEDIUM:
495
495
  e = "100px";
496
496
  break;
497
- case G.LARGE: e = "150px";
497
+ case J.LARGE: e = "150px";
498
498
  }
499
499
  return e;
500
500
  }
501
- return (e, t) => {
502
- let r = k("router-link");
503
- return w(), a(r, {
501
+ return (e, n) => {
502
+ let i = j("router-link");
503
+ return T(), a(i, {
504
504
  to: "/",
505
505
  class: "flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white"
506
506
  }, {
507
- default: P(() => [(w(), s("svg", {
508
- height: n(),
509
- width: n(),
507
+ default: L(() => [(T(), s("svg", {
508
+ height: r(),
509
+ width: r(),
510
510
  viewBox: "33.6 130.6 499.7 242.9",
511
511
  xmlns: "http://www.w3.org/2000/svg",
512
512
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
513
- }, [...t[0] ||= [
514
- c("linearGradient", { id: "a" }, [c("stop", {
513
+ }, [
514
+ c("linearGradient", { id: `${t}-a` }, [...n[0] ||= [c("stop", {
515
515
  offset: ".085",
516
516
  "stop-color": "#469e43"
517
- }), c("stop", {
517
+ }, null, -1), c("stop", {
518
518
  offset: "1",
519
519
  "stop-color": "#132d13"
520
- })], -1),
520
+ }, null, -1)]], 8, ot),
521
521
  c("linearGradient", {
522
- id: "b",
522
+ id: `${t}-b`,
523
523
  gradientUnits: "userSpaceOnUse",
524
524
  x1: "64.863",
525
525
  x2: "64.863",
526
- "xlink:href": "#a",
526
+ href: `#${t}-a`,
527
527
  y1: "288.291",
528
528
  y2: "369.4"
529
- }, null, -1),
529
+ }, null, 8, st),
530
530
  c("linearGradient", {
531
- id: "c",
531
+ id: `${t}-c`,
532
532
  gradientUnits: "userSpaceOnUse",
533
533
  x1: "138.367",
534
534
  x2: "138.367",
535
- "xlink:href": "#a",
535
+ href: `#${t}-a`,
536
536
  y1: "308.454",
537
537
  y2: "370.601"
538
- }, null, -1),
538
+ }, null, 8, ct),
539
539
  c("linearGradient", {
540
- id: "d",
540
+ id: `${t}-d`,
541
541
  gradientUnits: "userSpaceOnUse",
542
542
  x1: "195.475",
543
543
  x2: "195.475",
544
- "xlink:href": "#a",
544
+ href: `#${t}-a`,
545
545
  y1: "288.291",
546
546
  y2: "369.85"
547
- }, null, -1),
547
+ }, null, 8, lt),
548
548
  c("linearGradient", {
549
- id: "e",
549
+ id: `${t}-e`,
550
550
  gradientUnits: "userSpaceOnUse",
551
551
  x1: "249.634",
552
552
  x2: "249.634",
553
- "xlink:href": "#a",
553
+ href: `#${t}-a`,
554
554
  y1: "307.312",
555
555
  y2: "369.511"
556
- }, null, -1),
556
+ }, null, 8, ut),
557
557
  c("linearGradient", {
558
- id: "f",
558
+ id: `${t}-f`,
559
559
  gradientUnits: "userSpaceOnUse",
560
560
  x1: "302.884",
561
561
  x2: "302.884",
562
- "xlink:href": "#a",
562
+ href: `#${t}-a`,
563
563
  y1: "288.291",
564
564
  y2: "367.857"
565
- }, null, -1),
565
+ }, null, 8, dt),
566
566
  c("linearGradient", {
567
- id: "g",
567
+ id: `${t}-g`,
568
568
  gradientUnits: "userSpaceOnUse",
569
569
  x1: "354.118",
570
570
  x2: "354.118",
571
- "xlink:href": "#a",
571
+ href: `#${t}-a`,
572
572
  y1: "307.312",
573
573
  y2: "369.511"
574
- }, null, -1),
574
+ }, null, 8, ft),
575
575
  c("linearGradient", {
576
- id: "h",
576
+ id: `${t}-h`,
577
577
  gradientUnits: "userSpaceOnUse",
578
578
  x1: "428.02",
579
579
  x2: "428.02",
580
- "xlink:href": "#a",
580
+ href: `#${t}-a`,
581
581
  y1: "306.156",
582
582
  y2: "367.742"
583
- }, null, -1),
583
+ }, null, 8, pt),
584
584
  c("linearGradient", {
585
- id: "i",
585
+ id: `${t}-i`,
586
586
  gradientUnits: "userSpaceOnUse",
587
587
  x1: "502.066",
588
588
  x2: "502.066",
589
- "xlink:href": "#a",
589
+ href: `#${t}-a`,
590
590
  y1: "288.291",
591
591
  y2: "369.4"
592
- }, null, -1),
592
+ }, null, 8, mt),
593
593
  c("linearGradient", {
594
- id: "j",
594
+ id: `${t}-j`,
595
595
  gradientUnits: "userSpaceOnUse",
596
596
  x1: "283.264",
597
597
  x2: "283.264",
598
- "xlink:href": "#a",
598
+ href: `#${t}-a`,
599
599
  y1: "131.629",
600
600
  y2: "232.559"
601
- }, null, -1),
601
+ }, null, 8, ht),
602
602
  c("linearGradient", {
603
- id: "k",
603
+ id: `${t}-k`,
604
604
  gradientUnits: "userSpaceOnUse",
605
605
  x1: "283.46",
606
606
  x2: "283.46",
607
607
  y1: "202.275",
608
608
  y2: "183.785"
609
- }, [c("stop", {
609
+ }, [...n[1] ||= [c("stop", {
610
610
  offset: "0",
611
611
  "stop-color": "#969799",
612
612
  "stop-opacity": "0"
613
- }), c("stop", {
613
+ }, null, -1), c("stop", {
614
614
  offset: "1",
615
615
  "stop-color": "#808183"
616
- })], -1),
616
+ }, null, -1)]], 8, gt),
617
617
  c("path", {
618
618
  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",
619
- fill: "url(#b)"
620
- }, null, -1),
619
+ fill: `url(#${t}-b)`
620
+ }, null, 8, _t),
621
621
  c("path", {
622
622
  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",
623
- fill: "url(#c)"
624
- }, null, -1),
623
+ fill: `url(#${t}-c)`
624
+ }, null, 8, vt),
625
625
  c("path", {
626
626
  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",
627
- fill: "url(#d)"
628
- }, null, -1),
627
+ fill: `url(#${t}-d)`
628
+ }, null, 8, yt),
629
629
  c("path", {
630
630
  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",
631
- fill: "url(#e)"
632
- }, null, -1),
631
+ fill: `url(#${t}-e)`
632
+ }, null, 8, bt),
633
633
  c("path", {
634
634
  d: "m296.4 288.3h13v79.6h-13z",
635
- fill: "url(#f)"
636
- }, null, -1),
635
+ fill: `url(#${t}-f)`
636
+ }, null, 8, xt),
637
637
  c("path", {
638
638
  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",
639
- fill: "url(#g)"
640
- }, null, -1),
639
+ fill: `url(#${t}-g)`
640
+ }, null, 8, St),
641
641
  c("path", {
642
642
  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",
643
- fill: "url(#h)"
644
- }, null, -1),
643
+ fill: `url(#${t}-h)`
644
+ }, null, 8, Ct),
645
645
  c("path", {
646
646
  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",
647
- fill: "url(#i)"
648
- }, null, -1),
647
+ fill: `url(#${t}-i)`
648
+ }, null, 8, wt),
649
649
  c("path", {
650
650
  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",
651
- fill: "url(#j)"
652
- }, null, -1),
651
+ fill: `url(#${t}-j)`
652
+ }, null, 8, Tt),
653
653
  c("path", {
654
654
  d: "m281.7 183.8h3.6v18.5h-3.6z",
655
- fill: "url(#k)"
656
- }, null, -1)
657
- ]], 8, it))]),
655
+ fill: `url(#${t}-k)`
656
+ }, null, 8, Et)
657
+ ], 8, at))]),
658
658
  _: 1
659
659
  });
660
660
  };
661
661
  }
662
- }), ot = /* @__PURE__ */ function(e) {
662
+ }), Ot = /* @__PURE__ */ function(e) {
663
663
  return e.DELETE = "DELETE", e.SUCCESS = "SUCCESS", e;
664
- }({}), st = {
664
+ }({}), kt = {
665
665
  key: 0,
666
666
  class: "p-6 text-center"
667
- }, ct = { class: "flex justify-center" }, lt = {
667
+ }, At = { class: "flex justify-center" }, jt = {
668
668
  key: 1,
669
669
  class: "p-6 text-center"
670
- }, ut = {
670
+ }, Mt = {
671
671
  key: 0,
672
672
  class: "mb-5 text-sm text-gray-500"
673
- }, dt = { class: "flex justify-center" }, ft = /* @__PURE__ */ p({
673
+ }, Nt = { class: "flex justify-center" }, Pt = /* @__PURE__ */ p({
674
674
  __name: "BaseModal",
675
675
  props: {
676
676
  title: {
@@ -689,7 +689,7 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
689
689
  mode: {
690
690
  type: String,
691
691
  required: !1,
692
- default: ot.SUCCESS
692
+ default: Ot.SUCCESS
693
693
  }
694
694
  },
695
695
  emits: ["closeModal", "confirmModal"],
@@ -698,11 +698,11 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
698
698
  function a(e) {
699
699
  e.key === "Escape" && r("closeModal");
700
700
  }
701
- return x(() => {
701
+ return S(() => {
702
702
  document.addEventListener("keydown", a);
703
- }), C(() => {
703
+ }), w(() => {
704
704
  document.removeEventListener("keydown", a);
705
- }), (n, r) => (w(), s(e, null, [c("div", {
705
+ }), (n, r) => (T(), s(e, null, [c("div", {
706
706
  class: "fixed inset-0 w-full h-screen bg-black/75 z-40",
707
707
  onClick: r[0] ||= (e) => n.$emit("closeModal")
708
708
  }), c("div", {
@@ -710,37 +710,37 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
710
710
  role: "dialog",
711
711
  "aria-modal": "true",
712
712
  "aria-labelledby": i
713
- }, [t.mode === M(ot).DELETE ? (w(), s("div", st, [
714
- f(M(ye), { class: "w-12 h-12 text-gray-400 mx-auto mb-4" }),
713
+ }, [t.mode === P(Ot).DELETE ? (T(), s("div", kt, [
714
+ f(P(ye), { class: "w-12 h-12 text-gray-400 mx-auto mb-4" }),
715
715
  c("h3", {
716
716
  id: i,
717
717
  class: "mb-5 text-lg font-normal text-gray-500 dark:text-gray-400"
718
- }, " Are you sure you want to delete this " + j(t.title) + "? ", 1),
719
- c("div", ct, [f(W, {
720
- color: M(H).RED,
718
+ }, " Are you sure you want to delete this " + N(t.title) + "? ", 1),
719
+ c("div", At, [f(Qe, {
720
+ color: P(K).RED,
721
721
  onClick: r[1] ||= (e) => n.$emit("confirmModal"),
722
722
  description: "Yes, I'm sure"
723
- }, null, 8, ["color"]), f(W, {
724
- color: M(H).WHITE,
723
+ }, null, 8, ["color"]), f(Qe, {
724
+ color: P(K).WHITE,
725
725
  onClick: r[2] ||= (e) => n.$emit("closeModal"),
726
726
  description: "No, cancel"
727
727
  }, null, 8, ["color"])])
728
- ])) : (w(), s("div", lt, [
729
- f(M(de), { class: "w-12 h-12 text-green-500 mx-auto mb-4" }),
728
+ ])) : (T(), s("div", jt, [
729
+ f(P(ue), { class: "w-12 h-12 text-green-500 mx-auto mb-4" }),
730
730
  c("h3", {
731
731
  id: i,
732
732
  class: "mb-2 text-lg font-medium text-gray-900"
733
- }, j(t.title), 1),
734
- t.description ? (w(), s("p", ut, j(t.description), 1)) : o("", !0),
735
- O(n.$slots, "default"),
736
- c("div", dt, [f(W, {
737
- color: M(H).BLUE,
733
+ }, N(t.title), 1),
734
+ t.description ? (T(), s("p", Mt, N(t.description), 1)) : o("", !0),
735
+ A(n.$slots, "default"),
736
+ c("div", Nt, [f(Qe, {
737
+ color: P(K).BLUE,
738
738
  onClick: r[3] ||= (e) => n.$emit("closeModal"),
739
739
  description: "OK"
740
740
  }, null, 8, ["color"])])
741
741
  ]))])], 64));
742
742
  }
743
- }), pt = /* @__PURE__ */ p({
743
+ }), Ft = /* @__PURE__ */ p({
744
744
  __name: "BaseRow",
745
745
  props: { bgColor: {
746
746
  type: String,
@@ -752,9 +752,9 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
752
752
  function n() {
753
753
  return "block p-8 border border-gray-200 rounded-xl shadow-sm dark:bg-gray-800 dark:border-gray-700 " + t.bgColor;
754
754
  }
755
- return (e, t) => (w(), s("div", { class: _(n()) }, [O(e.$slots, "default")], 2));
755
+ return (e, t) => (T(), s("div", { class: v(n()) }, [A(e.$slots, "default")], 2));
756
756
  }
757
- }), mt = /* @__PURE__ */ p({
757
+ }), It = /* @__PURE__ */ p({
758
758
  __name: "BaseSpinner",
759
759
  props: {
760
760
  size: { default: "sm" },
@@ -776,17 +776,17 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
776
776
  red: "border-t-red-500",
777
777
  amber: "border-t-amber-500"
778
778
  })[t.color]);
779
- return (e, t) => (w(), s("div", {
780
- class: _(["border-gray-200 rounded-full animate-spin", [n.value, r.value]]),
779
+ return (e, t) => (T(), s("div", {
780
+ class: v(["border-gray-200 rounded-full animate-spin", [n.value, r.value]]),
781
781
  role: "status",
782
782
  "aria-label": "Loading"
783
783
  }, null, 2));
784
784
  }
785
- }), K = /* @__PURE__ */ function(e) {
785
+ }), Y = /* @__PURE__ */ function(e) {
786
786
  return e.SUCCESS = "SUCCESS", e.WARNING = "WARNING", e.ERROR = "ERROR", e;
787
- }({}), q = /* @__PURE__ */ function(e) {
787
+ }({}), X = /* @__PURE__ */ function(e) {
788
788
  return e.TOP_LEFT = "TOP_LEFT", e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e.BOTTOM_RIGHT = "BOTTOM_RIGHT", e;
789
- }({}), ht = { 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" }, gt = { class: "ml-3 text-sm font-normal" }, _t = /* @__PURE__ */ p({
789
+ }({}), Lt = { 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" }, Rt = { class: "ml-3 text-sm font-normal" }, zt = /* @__PURE__ */ p({
790
790
  __name: "BaseToast",
791
791
  props: {
792
792
  mode: {
@@ -805,7 +805,7 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
805
805
  positioning: {
806
806
  type: String,
807
807
  required: !1,
808
- default: q.TOP_RIGHT
808
+ default: X.TOP_RIGHT
809
809
  },
810
810
  duration: {
811
811
  type: Number,
@@ -814,25 +814,25 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
814
814
  }
815
815
  },
816
816
  setup(e) {
817
- let t = e, n = E(!0), r = null;
817
+ let t = e, n = O(!0), r = null;
818
818
  function i() {
819
819
  n.value = !1, r &&= (clearTimeout(r), null);
820
820
  }
821
- x(() => {
821
+ S(() => {
822
822
  r = setTimeout(() => n.value = !1, t.duration);
823
- }), C(() => {
823
+ }), w(() => {
824
824
  r && clearTimeout(r);
825
825
  });
826
826
  function a() {
827
827
  let e = "";
828
828
  switch (t.mode) {
829
- case K.ERROR:
829
+ case Y.ERROR:
830
830
  e = "text-red-500 bg-red-100 dark:bg-red-800 dark:text-red-200";
831
831
  break;
832
- case K.SUCCESS:
832
+ case Y.SUCCESS:
833
833
  e = "text-green-500 bg-green-100 dark:bg-green-800 dark:text-green-200";
834
834
  break;
835
- case K.WARNING:
835
+ case Y.WARNING:
836
836
  e = "text-orange-500 bg-orange-100 dark:bg-orange-700 dark:text-orange-200";
837
837
  break;
838
838
  default: e = "text-gray-500 bg-gray-100 dark:bg-gray-800 dark:text-gray-200";
@@ -842,46 +842,46 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
842
842
  function l() {
843
843
  let e = "top-5 right-5";
844
844
  switch (t.positioning) {
845
- case q.BOTTOM_LEFT:
845
+ case X.BOTTOM_LEFT:
846
846
  e = "bottom-5 left-5";
847
847
  break;
848
- case q.TOP_LEFT:
848
+ case X.TOP_LEFT:
849
849
  e = "top-5 left-5";
850
850
  break;
851
- case q.TOP_RIGHT:
851
+ case X.TOP_RIGHT:
852
852
  e = "top-5 right-5";
853
853
  break;
854
- case q.BOTTOM_RIGHT: e = "bottom-5 right-5";
854
+ case X.BOTTOM_RIGHT: e = "bottom-5 right-5";
855
855
  }
856
856
  return "fixed flex items-center w-full max-w-md p-4 space-x-4 divide-x rounded-lg " + e;
857
857
  }
858
- return (t, r) => n.value ? (w(), s("div", {
858
+ return (t, r) => n.value ? (T(), s("div", {
859
859
  key: 0,
860
860
  id: "toast-top-right",
861
- class: _(l()),
861
+ class: v(l()),
862
862
  role: "alert"
863
- }, [c("div", ht, [
864
- e.mode == M(K).ERROR ? (w(), s("div", {
863
+ }, [c("div", Lt, [
864
+ e.mode == P(Y).ERROR ? (T(), s("div", {
865
865
  key: 0,
866
- class: _(a())
867
- }, [f(M(ye), { class: "h-6 w-6 text-red-500" }), r[0] ||= c("span", { class: "sr-only" }, "Error icon", -1)], 2)) : e.mode == M(K).SUCCESS ? (w(), s("div", {
866
+ class: v(a())
867
+ }, [f(P(ye), { class: "h-6 w-6 text-red-500" }), r[0] ||= c("span", { class: "sr-only" }, "Error icon", -1)], 2)) : e.mode == P(Y).SUCCESS ? (T(), s("div", {
868
868
  key: 1,
869
- class: _(a())
870
- }, [f(M(de), { class: "h-6 w-6 text-green-500" }), r[1] ||= c("span", { class: "sr-only" }, "Check icon", -1)], 2)) : e.mode == M(K).WARNING ? (w(), s("div", {
869
+ class: v(a())
870
+ }, [f(P(ue), { class: "h-6 w-6 text-green-500" }), r[1] ||= c("span", { class: "sr-only" }, "Check icon", -1)], 2)) : e.mode == P(Y).WARNING ? (T(), s("div", {
871
871
  key: 2,
872
- class: _(a())
873
- }, [f(M(be), { class: "h-6 w-6 text-yellow-500" }), r[2] ||= c("span", { class: "sr-only" }, "Warning icon", -1)], 2)) : o("", !0),
874
- c("div", gt, j(e.description), 1),
875
- e.hasCloseIcon ? (w(), s("button", {
872
+ class: v(a())
873
+ }, [f(P(be), { class: "h-6 w-6 text-yellow-500" }), r[2] ||= c("span", { class: "sr-only" }, "Warning icon", -1)], 2)) : o("", !0),
874
+ c("div", Rt, N(e.description), 1),
875
+ e.hasCloseIcon ? (T(), s("button", {
876
876
  key: 3,
877
877
  type: "button",
878
878
  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",
879
879
  "aria-label": "Close",
880
880
  onClick: i
881
- }, [r[3] ||= c("span", { class: "sr-only" }, "Close", -1), f(M(De), { class: "h-6 w-6 text-gray-500" })])) : o("", !0)
881
+ }, [r[3] ||= c("span", { class: "sr-only" }, "Close", -1), f(P(B), { class: "h-6 w-6 text-gray-500" })])) : o("", !0)
882
882
  ])], 2)) : o("", !0);
883
883
  }
884
- }), vt = { class: "w-13" }, yt = /* @__PURE__ */ p({
884
+ }), Bt = { class: "w-13" }, Vt = /* @__PURE__ */ p({
885
885
  __name: "ColoredSquares",
886
886
  props: { color: {
887
887
  type: String,
@@ -898,29 +898,29 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
898
898
  "bg-yellow-300",
899
899
  "bg-purple-300",
900
900
  "bg-pink-300"
901
- ], r = E(n[Math.floor(Math.random() * n.length)]);
901
+ ], r = O(n[Math.floor(Math.random() * n.length)]);
902
902
  function i() {
903
903
  let e = "font-bold text-xs mr-2 px-2.5 py-0.5 rounded-full", n = "gray";
904
904
  switch (t.color) {
905
- case V.GREEN:
905
+ case G.GREEN:
906
906
  n = "green";
907
907
  break;
908
- case V.RED:
908
+ case G.RED:
909
909
  n = "red";
910
910
  break;
911
- case V.BLUE:
911
+ case G.BLUE:
912
912
  n = "blue";
913
913
  break;
914
- case V.YELLOW:
914
+ case G.YELLOW:
915
915
  n = "yellow";
916
916
  break;
917
- case V.NONE: return e;
917
+ case G.NONE: return e;
918
918
  }
919
919
  return e + " bg-" + n + "-100 text-" + n + "-800";
920
920
  }
921
- return (e, t) => (w(), s("div", vt, [c("div", { class: _(["border border-gray-300 relative aspect-square rounded-lg bg-white shadow-sm overflow-hidden flex items-center justify-center text-center", i()]) }, [O(e.$slots, "default"), c("div", { class: _(["absolute bottom-0 left-0 h-1 w-full", r.value]) }, null, 2)], 2)]));
921
+ return (e, t) => (T(), s("div", Bt, [c("div", { class: v(["border border-gray-300 relative aspect-square rounded-lg bg-white shadow-sm overflow-hidden flex items-center justify-center text-center", i()]) }, [A(e.$slots, "default"), c("div", { class: v(["absolute bottom-0 left-0 h-1 w-full", r.value]) }, null, 2)], 2)]));
922
922
  }
923
- }), bt = { class: "flex items-start justify-between" }, xt = { class: "min-w-0" }, St = /* @__PURE__ */ p({
923
+ }), Ht = { class: "flex items-start justify-between" }, Ut = { class: "min-w-0" }, Wt = /* @__PURE__ */ p({
924
924
  __name: "EarningsCard",
925
925
  props: {
926
926
  title: { default: "TOTAL EARNINGS" },
@@ -972,27 +972,27 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
972
972
  minimumFractionDigits: n.decimals,
973
973
  maximumFractionDigits: n.decimals
974
974
  }));
975
- return (n, r) => (w(), s("div", { class: _(["relative rounded-xl border-2 border-dashed bg-white dark:bg-slate-800", [d.value.border, t.compact ? "p-3" : "p-6"]]) }, [t.badge ? (w(), s("div", {
975
+ return (n, r) => (T(), s("div", { class: v(["relative rounded-xl border-2 border-dashed bg-white dark:bg-slate-800", [d.value.border, t.compact ? "p-3" : "p-6"]]) }, [t.badge ? (T(), s("div", {
976
976
  key: 0,
977
- class: _(["absolute right-4 top-4 rounded-md px-3 py-1 text-xs font-bold tracking-wide", d.value.badge])
978
- }, j(t.badge), 3)) : o("", !0), c("div", bt, [c("div", xt, [
979
- c("p", { class: _(["font-bold tracking-wide text-gray-800 dark:text-slate-200", t.compact ? "pr-8 text-xs" : "text-sm"]) }, j(t.title), 3),
980
- c("p", { class: _(["mt-1 font-bold truncate", [d.value.amount, t.compact ? "text-lg" : "text-4xl"]]) }, j(f.value), 3),
981
- c("p", { class: _(["mt-1 font-medium", [d.value.subtitle, t.compact ? "text-xs" : "text-sm"]]) }, j(t.subtitle), 3)
982
- ]), c("div", { class: _(["flex items-center justify-center", [d.value.iconBox, t.compact ? "absolute right-2 top-2 h-6 w-6 rounded-lg" : "mt-6 h-12 w-12 rounded-xl"]]) }, [(w(), s("svg", {
983
- class: _([d.value.icon, t.compact ? "h-3.5 w-3.5" : "h-6 w-6"]),
977
+ class: v(["absolute right-4 top-4 rounded-md px-3 py-1 text-xs font-bold tracking-wide", d.value.badge])
978
+ }, N(t.badge), 3)) : o("", !0), c("div", Ht, [c("div", Ut, [
979
+ c("p", { class: v(["font-bold tracking-wide text-gray-800 dark:text-slate-200", t.compact ? "pr-8 text-xs" : "text-sm"]) }, N(t.title), 3),
980
+ c("p", { class: v(["mt-1 font-bold truncate", [d.value.amount, t.compact ? "text-lg" : "text-4xl"]]) }, N(f.value), 3),
981
+ c("p", { class: v(["mt-1 font-medium", [d.value.subtitle, t.compact ? "text-xs" : "text-sm"]]) }, N(t.subtitle), 3)
982
+ ]), c("div", { class: v(["flex items-center justify-center", [d.value.iconBox, t.compact ? "absolute right-2 top-2 h-6 w-6 rounded-lg" : "mt-6 h-12 w-12 rounded-xl"]]) }, [(T(), s("svg", {
983
+ class: v([d.value.icon, t.compact ? "h-3.5 w-3.5" : "h-6 w-6"]),
984
984
  viewBox: "0 0 24 24",
985
985
  fill: "none",
986
986
  stroke: "currentColor",
987
987
  "stroke-width": "2.5",
988
988
  "stroke-linecap": "round",
989
989
  "stroke-linejoin": "round"
990
- }, [l.value ? (w(), s(e, { key: 0 }, [r[0] ||= c("polyline", { points: "22 17 13.5 8.5 8.5 13.5 2 7" }, null, -1), r[1] ||= c("polyline", { points: "16 17 22 17 22 11" }, null, -1)], 64)) : (w(), s(e, { key: 1 }, [r[2] ||= c("polyline", { points: "22 7 13.5 15.5 8.5 10.5 2 17" }, null, -1), r[3] ||= c("polyline", { points: "16 7 22 7 22 13" }, null, -1)], 64))], 2))], 2)])], 2));
990
+ }, [l.value ? (T(), s(e, { key: 0 }, [r[0] ||= c("polyline", { points: "22 17 13.5 8.5 8.5 13.5 2 7" }, null, -1), r[1] ||= c("polyline", { points: "16 17 22 17 22 11" }, null, -1)], 64)) : (T(), s(e, { key: 1 }, [r[2] ||= c("polyline", { points: "22 7 13.5 15.5 8.5 10.5 2 17" }, null, -1), r[3] ||= c("polyline", { points: "16 7 22 7 22 13" }, null, -1)], 64))], 2))], 2)])], 2));
991
991
  }
992
- }), Ct = {
992
+ }), Gt = {
993
993
  key: 0,
994
994
  class: "font-bold text-green-800 dark:text-green-400"
995
- }, wt = { key: 0 }, Tt = { key: 0 }, Et = "font-bold", Dt = /* @__PURE__ */ p({
995
+ }, Kt = { key: 0 }, qt = { key: 0 }, Jt = "font-bold", Yt = /* @__PURE__ */ p({
996
996
  __name: "EuroAmount",
997
997
  props: {
998
998
  amount: {
@@ -1012,20 +1012,20 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
1012
1012
  },
1013
1013
  setup(t) {
1014
1014
  let n = t, r = i(() => n.amount !== null && n.amount !== void 0), a = i(() => r.value && n.amount < 0), c = i(() => n.beforeAmount === null || n.beforeAmount === void 0 ? !1 : n.amount < n.beforeAmount), l = i(() => a.value || c.value), u = i(() => !a.value && !c.value && n.beforeAmount !== null && n.beforeAmount !== void 0);
1015
- return (n, i) => (w(), s(e, null, [r.value && u.value ? (w(), s("span", Ct, [d(j(t.amount) + " ", 1), t.showCurrency ? (w(), s("span", wt, "€")) : o("", !0)])) : o("", !0), r.value && !u.value ? (w(), s("span", {
1015
+ return (n, i) => (T(), s(e, null, [r.value && u.value ? (T(), s("span", Gt, [d(N(t.amount) + " ", 1), t.showCurrency ? (T(), s("span", Kt, "€")) : o("", !0)])) : o("", !0), r.value && !u.value ? (T(), s("span", {
1016
1016
  key: 1,
1017
- class: _([Et, l.value ? "text-red-800 dark:text-red-400" : "text-gray-800 dark:text-gray-200"])
1018
- }, [d(j(t.amount) + " ", 1), t.showCurrency ? (w(), s("span", Tt, "€")) : o("", !0)], 2)) : o("", !0)], 64));
1017
+ class: v([Jt, l.value ? "text-red-800 dark:text-red-400" : "text-gray-800 dark:text-gray-200"])
1018
+ }, [d(N(t.amount) + " ", 1), t.showCurrency ? (T(), s("span", qt, "€")) : o("", !0)], 2)) : o("", !0)], 64));
1019
1019
  }
1020
- }), Ot = { "aria-label": "Pagination" }, kt = { class: "flex list-none p-0 m-0" }, At = [
1020
+ }), Xt = { "aria-label": "Pagination" }, Zt = { class: "flex list-none p-0 m-0" }, Qt = [
1021
1021
  "aria-current",
1022
1022
  "aria-label",
1023
1023
  "onClick"
1024
- ], jt = {
1024
+ ], $t = {
1025
1025
  key: 1,
1026
1026
  "aria-hidden": "true",
1027
1027
  class: "inline-block border border-gray-300 dark:border-gray-600 rounded-lg p-3 text-black dark:text-gray-200 cursor-not-allowed"
1028
- }, Mt = /* @__PURE__ */ p({
1028
+ }, en = /* @__PURE__ */ p({
1029
1029
  __name: "Pagination",
1030
1030
  props: {
1031
1031
  totalItems: {
@@ -1039,7 +1039,7 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
1039
1039
  },
1040
1040
  emits: ["page-changed"],
1041
1041
  setup(t, { emit: n }) {
1042
- let r = t, i = E(1), a = E(0), o = E([]), l = n;
1042
+ let r = t, i = O(1), a = O(0), o = O([]), l = n;
1043
1043
  function u(e) {
1044
1044
  if (a.value <= 5) {
1045
1045
  o.value = Array.from({ length: a.value }, (e, t) => t + 1);
@@ -1053,30 +1053,31 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
1053
1053
  function d(e) {
1054
1054
  e === i.value || e < 1 || e > a.value || (i.value = e, u(e), l("page-changed", e));
1055
1055
  }
1056
- return N(() => [r.totalItems, r.itemsPerPage], () => {
1057
- a.value = Math.ceil(r.totalItems / r.itemsPerPage), i.value > a.value && (i.value = Math.max(1, a.value)), u(i.value);
1058
- }, { immediate: !0 }), (t, n) => (w(), s("nav", Ot, [c("ul", kt, [(w(!0), s(e, null, D(o.value, (e, t) => (w(), s("li", {
1056
+ return I(() => [r.totalItems, r.itemsPerPage], () => {
1057
+ let e = Number(r.itemsPerPage) > 0 ? Number(r.itemsPerPage) : 20, t = Number(r.totalItems) > 0 ? Number(r.totalItems) : 0;
1058
+ a.value = Math.ceil(t / e), i.value > a.value && (i.value = Math.max(1, a.value)), u(i.value);
1059
+ }, { immediate: !0 }), (t, n) => (T(), s("nav", Xt, [c("ul", Zt, [(T(!0), s(e, null, k(o.value, (e, t) => (T(), s("li", {
1059
1060
  key: t,
1060
1061
  class: "mr-1"
1061
- }, [e === 0 ? (w(), s("span", jt, "...")) : (w(), s("button", {
1062
+ }, [e === 0 ? (T(), s("span", $t, "...")) : (T(), s("button", {
1062
1063
  key: 0,
1063
1064
  type: "button",
1064
1065
  "aria-current": e === i.value ? "page" : void 0,
1065
1066
  "aria-label": `Go to page ${e}`,
1066
1067
  onClick: (t) => d(e),
1067
- class: _(["inline-block min-w-[44px] border border-gray-300 dark:border-gray-600 rounded-lg p-3 text-black dark:text-gray-200 cursor-pointer transition-colors hover:bg-gray-300 dark:hover:bg-gray-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", { "active font-bold bg-gray-200 dark:bg-gray-700": e === i.value }])
1068
- }, j(e), 11, At))]))), 128))])]));
1068
+ class: v(["inline-block min-w-[44px] border border-gray-300 dark:border-gray-600 rounded-lg p-3 text-black dark:text-gray-200 cursor-pointer transition-colors hover:bg-gray-300 dark:hover:bg-gray-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", { "active font-bold bg-gray-200 dark:bg-gray-700": e === i.value }])
1069
+ }, N(e), 11, Qt))]))), 128))])]));
1069
1070
  }
1070
- }), Nt = { key: 0 }, Pt = {
1071
+ }), tn = { key: 0 }, nn = {
1071
1072
  key: 0,
1072
1073
  class: "flex items-center space-x-2"
1073
- }, Ft = {
1074
+ }, rn = {
1074
1075
  key: 1,
1075
1076
  class: "flex items-center space-x-2"
1076
- }, It = {
1077
+ }, an = {
1077
1078
  key: 2,
1078
1079
  class: "flex items-center space-x-2"
1079
- }, Lt = /* @__PURE__ */ p({
1080
+ }, on = /* @__PURE__ */ p({
1080
1081
  __name: "TrendArrow",
1081
1082
  props: {
1082
1083
  number: {
@@ -1090,23 +1091,23 @@ var Fe = { class: "min-w-0 flex-1" }, Ie = {
1090
1091
  },
1091
1092
  setup(e) {
1092
1093
  let t = e, n = i(() => t.number !== null && t.number !== void 0 && t.number < 0), r = i(() => t.number === 0);
1093
- return (i, a) => e.number !== null && e.number !== void 0 ? (w(), s("div", Nt, [n.value ? (w(), s("span", Pt, [f(ze, { color: M(V).RED }, {
1094
- default: P(() => [d(j(e.number) + j(t.icon), 1)]),
1094
+ return (i, a) => e.number !== null && e.number !== void 0 ? (T(), s("div", tn, [n.value ? (T(), s("span", nn, [f(ze, { color: P(G).RED }, {
1095
+ default: L(() => [d(N(e.number) + N(t.icon), 1)]),
1095
1096
  _: 1
1096
- }, 8, ["color"]), f(M(se), { class: "h-5 w-5 text-red-500" })])) : r.value ? (w(), s("span", Ft, [f(ze, { color: M(V).GRAY }, {
1097
- default: P(() => [d(j(e.number) + j(t.icon), 1)]),
1097
+ }, 8, ["color"]), f(P(oe), { class: "h-5 w-5 text-red-500" })])) : r.value ? (T(), s("span", rn, [f(ze, { color: P(G).GRAY }, {
1098
+ default: L(() => [d(N(e.number) + N(t.icon), 1)]),
1098
1099
  _: 1
1099
- }, 8, ["color"]), f(M(we), { class: "h-5 w-5 text-gray-400" })])) : (w(), s("span", It, [f(ze, { color: M(V).GREEN }, {
1100
- default: P(() => [d(j(e.number) + j(t.icon), 1)]),
1100
+ }, 8, ["color"]), f(P(we), { class: "h-5 w-5 text-gray-400" })])) : (T(), s("span", an, [f(ze, { color: P(G).GREEN }, {
1101
+ default: L(() => [d(N(e.number) + N(t.icon), 1)]),
1101
1102
  _: 1
1102
- }, 8, ["color"]), f(M(ce), { class: "h-5 w-5 text-green-500" })]))])) : o("", !0);
1103
+ }, 8, ["color"]), f(P(se), { class: "h-5 w-5 text-green-500" })]))])) : o("", !0);
1103
1104
  }
1104
1105
  });
1105
1106
  //#endregion
1106
1107
  //#region src/composables/useThemeClasses.ts
1107
- function J() {
1108
- let { isDark: e } = B();
1109
- return T({
1108
+ function Z() {
1109
+ let { isDark: e } = W();
1110
+ return E({
1110
1111
  card: i(() => e.value ? "bg-gray-800 border-gray-700" : "bg-white border-gray-200"),
1111
1112
  cardAlt: i(() => e.value ? "bg-gray-900 border-gray-700" : "bg-white border-gray-200"),
1112
1113
  pageBg: i(() => e.value ? "bg-gray-900" : "bg-gray-50"),
@@ -1132,15 +1133,15 @@ function J() {
1132
1133
  }
1133
1134
  //#endregion
1134
1135
  //#region src/composables/useEscapeKey.ts
1135
- function Rt(e) {
1136
+ function sn(e) {
1136
1137
  function t(t) {
1137
1138
  t.key === "Escape" && e();
1138
1139
  }
1139
- x(() => document.addEventListener("keydown", t)), b(() => document.removeEventListener("keydown", t));
1140
+ S(() => document.addEventListener("keydown", t)), x(() => document.removeEventListener("keydown", t));
1140
1141
  }
1141
1142
  //#endregion
1142
1143
  //#region src/components/BaseModalShell.vue?vue&type=script&setup=true&lang.ts
1143
- var zt = { class: "flex items-start gap-4 min-w-0" }, Bt = { class: "flex-1 min-w-0" }, Vt = { class: "p-6 overflow-y-auto flex-1" }, Ht = { class: "p-6" }, Ut = { class: "flex items-start gap-4" }, Wt = { class: "flex-1" }, Gt = { class: "mt-4" }, Kt = { class: "mt-6 flex gap-3 justify-end" }, qt = /* @__PURE__ */ p({
1144
+ var cn = { class: "flex items-start gap-4 min-w-0" }, ln = { class: "flex-1 min-w-0" }, un = { class: "p-6 overflow-y-auto flex-1" }, dn = { class: "p-6" }, fn = { class: "flex items-start gap-4" }, pn = { class: "flex-1" }, mn = { class: "mt-4" }, hn = { class: "mt-6 flex gap-3 justify-end" }, gn = /* @__PURE__ */ p({
1144
1145
  __name: "BaseModalShell",
1145
1146
  props: {
1146
1147
  title: {},
@@ -1160,55 +1161,55 @@ var zt = { class: "flex items-start gap-4 min-w-0" }, Bt = { class: "flex-1 min-
1160
1161
  },
1161
1162
  emits: ["cancel", "backdrop"],
1162
1163
  setup(e, { emit: n }) {
1163
- let r = e, l = n, { isDark: u } = B(), d = J(), f = `modal-title-${Math.random().toString(36).slice(2, 9)}`, p = i(() => u.value ? "bg-gray-900 border border-gray-700" : "bg-white border border-gray-200"), m = i(() => r.iconBgClass || (u.value ? "bg-emerald-900/30" : "bg-emerald-50"));
1164
+ let r = e, l = n, { isDark: u } = W(), d = Z(), f = `modal-title-${Math.random().toString(36).slice(2, 9)}`, p = i(() => u.value ? "bg-gray-900 border border-gray-700" : "bg-white border border-gray-200"), m = i(() => r.iconBgClass || (u.value ? "bg-emerald-900/30" : "bg-emerald-50"));
1164
1165
  function h() {
1165
1166
  l("backdrop"), r.manualClose || l("cancel");
1166
1167
  }
1167
- return Rt(() => {
1168
+ return sn(() => {
1168
1169
  r.manualClose || l("cancel");
1169
- }), (n, r) => (w(), a(t, { to: "body" }, [c("div", {
1170
+ }), (n, r) => (T(), a(t, { to: "body" }, [c("div", {
1170
1171
  class: "fixed inset-0 z-50 flex items-center justify-center bg-black/50",
1171
1172
  role: "dialog",
1172
1173
  "aria-modal": "true",
1173
1174
  "aria-labelledby": f,
1174
1175
  onClick: h
1175
- }, [e.scrollable ? (w(), s("div", {
1176
+ }, [e.scrollable ? (T(), s("div", {
1176
1177
  key: 0,
1177
- class: _(["relative w-full mx-4 rounded-lg shadow-xl max-h-[90vh] flex flex-col", [e.maxWidthClass, p.value]]),
1178
- onClick: r[0] ||= I(() => {}, ["stop"])
1178
+ class: v(["relative w-full mx-4 rounded-lg shadow-xl max-h-[90vh] flex flex-col", [e.maxWidthClass, p.value]]),
1179
+ onClick: r[0] ||= z(() => {}, ["stop"])
1179
1180
  }, [
1180
- c("div", { class: _(["flex items-start justify-between gap-4 p-6 border-b shrink-0", M(d).border]) }, [c("div", zt, [O(n.$slots, "icon", {}, () => [c("div", { class: _(["flex-shrink-0 flex h-12 w-12 items-center justify-center rounded-full", m.value]) }, [(w(), a(A(e.icon), {
1181
- class: _(["h-6 w-6", e.iconClass]),
1181
+ c("div", { class: v(["flex items-start justify-between gap-4 p-6 border-b shrink-0", P(d).border]) }, [c("div", cn, [A(n.$slots, "icon", {}, () => [c("div", { class: v(["flex-shrink-0 flex h-12 w-12 items-center justify-center rounded-full", m.value]) }, [(T(), a(M(e.icon), {
1182
+ class: v(["h-6 w-6", e.iconClass]),
1182
1183
  "aria-hidden": "true"
1183
- }, null, 8, ["class"]))], 2)]), c("div", Bt, [c("h3", {
1184
+ }, null, 8, ["class"]))], 2)]), c("div", ln, [c("h3", {
1184
1185
  id: f,
1185
- class: _(["text-lg font-medium", M(d).primaryText])
1186
- }, j(e.title), 3), e.subtitle ? (w(), s("p", {
1186
+ class: v(["text-lg font-medium", P(d).primaryText])
1187
+ }, N(e.title), 3), e.subtitle ? (T(), s("p", {
1187
1188
  key: 0,
1188
- class: _(["text-sm mt-1 break-all", M(d).mutedText])
1189
- }, j(e.subtitle), 3)) : o("", !0)])]), O(n.$slots, "header-actions")], 2),
1190
- c("div", Vt, [O(n.$slots, "default")]),
1191
- n.$slots.footer ? (w(), s("div", {
1189
+ class: v(["text-sm mt-1 break-all", P(d).mutedText])
1190
+ }, N(e.subtitle), 3)) : o("", !0)])]), A(n.$slots, "header-actions")], 2),
1191
+ c("div", un, [A(n.$slots, "default")]),
1192
+ n.$slots.footer ? (T(), s("div", {
1192
1193
  key: 0,
1193
- class: _(["flex gap-3 justify-end p-6 border-t shrink-0", M(d).border])
1194
- }, [O(n.$slots, "footer")], 2)) : o("", !0)
1195
- ], 2)) : (w(), s("div", {
1194
+ class: v(["flex gap-3 justify-end p-6 border-t shrink-0", P(d).border])
1195
+ }, [A(n.$slots, "footer")], 2)) : o("", !0)
1196
+ ], 2)) : (T(), s("div", {
1196
1197
  key: 1,
1197
- class: _(["relative w-full mx-4 rounded-lg shadow-xl", [e.maxWidthClass, p.value]]),
1198
- onClick: r[1] ||= I(() => {}, ["stop"])
1199
- }, [c("div", Ht, [
1200
- c("div", Ut, [O(n.$slots, "icon", {}, () => [c("div", { class: _(["flex-shrink-0 flex h-12 w-12 items-center justify-center rounded-full", m.value]) }, [(w(), a(A(e.icon), {
1201
- class: _(["h-6 w-6", e.iconClass]),
1198
+ class: v(["relative w-full mx-4 rounded-lg shadow-xl", [e.maxWidthClass, p.value]]),
1199
+ onClick: r[1] ||= z(() => {}, ["stop"])
1200
+ }, [c("div", dn, [
1201
+ c("div", fn, [A(n.$slots, "icon", {}, () => [c("div", { class: v(["flex-shrink-0 flex h-12 w-12 items-center justify-center rounded-full", m.value]) }, [(T(), a(M(e.icon), {
1202
+ class: v(["h-6 w-6", e.iconClass]),
1202
1203
  "aria-hidden": "true"
1203
- }, null, 8, ["class"]))], 2)]), c("div", Wt, [c("h3", {
1204
+ }, null, 8, ["class"]))], 2)]), c("div", pn, [c("h3", {
1204
1205
  id: f,
1205
- class: _(["text-lg font-medium", M(d).primaryText])
1206
- }, j(e.title), 3)])]),
1207
- c("div", Gt, [O(n.$slots, "default")]),
1208
- c("div", Kt, [O(n.$slots, "footer")])
1206
+ class: v(["text-lg font-medium", P(d).primaryText])
1207
+ }, N(e.title), 3)])]),
1208
+ c("div", mn, [A(n.$slots, "default")]),
1209
+ c("div", hn, [A(n.$slots, "footer")])
1209
1210
  ])], 2))])]));
1210
1211
  }
1211
- }), Jt = ["aria-expanded"], Yt = { class: "flex items-center gap-3" }, Xt = /* @__PURE__ */ p({
1212
+ }), _n = ["aria-expanded"], vn = { class: "flex items-center gap-3" }, yn = /* @__PURE__ */ p({
1212
1213
  __name: "BaseCollapsibleSection",
1213
1214
  props: {
1214
1215
  title: {},
@@ -1218,17 +1219,17 @@ var zt = { class: "flex items-start gap-4 min-w-0" }, Bt = { class: "flex-1 min-
1218
1219
  },
1219
1220
  emits: ["toggle"],
1220
1221
  setup(e, { emit: t }) {
1221
- let n = e, r = t, { isDark: a } = B(), l = J(), u = i(() => a.value ? "text-gray-100" : "text-gray-700"), d = i(() => a.value ? "bg-gray-800/50 hover:bg-gray-800 border-gray-700" : "bg-gray-50 hover:bg-gray-100 border-gray-200"), f = i(() => a.value ? "bg-emerald-500/15 text-emerald-400" : "bg-emerald-50 text-emerald-700"), p = i(() => n.bodyClass === void 0 ? a.value ? "bg-gray-800" : "bg-white" : n.bodyClass);
1222
- return (t, n) => (w(), s("section", { class: _(["rounded-xl border transition-colors", M(l).cardAlt]) }, [c("button", {
1222
+ let n = e, r = t, { isDark: a } = W(), l = Z(), u = i(() => a.value ? "text-gray-100" : "text-gray-700"), d = i(() => a.value ? "bg-gray-800/50 hover:bg-gray-800 border-gray-700" : "bg-gray-50 hover:bg-gray-100 border-gray-200"), f = i(() => a.value ? "bg-emerald-500/15 text-emerald-400" : "bg-emerald-50 text-emerald-700"), p = i(() => n.bodyClass === void 0 ? a.value ? "bg-gray-800" : "bg-white" : n.bodyClass);
1223
+ return (t, n) => (T(), s("section", { class: v(["rounded-xl border transition-colors", P(l).cardAlt]) }, [c("button", {
1223
1224
  type: "button",
1224
- class: _(["w-full flex items-center justify-between p-4 text-left transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-emerald-500", [d.value, e.collapsed ? "rounded-xl" : "rounded-t-xl"]]),
1225
+ class: v(["w-full flex items-center justify-between p-4 text-left transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-emerald-500", [d.value, e.collapsed ? "rounded-xl" : "rounded-t-xl"]]),
1225
1226
  "aria-expanded": !e.collapsed,
1226
1227
  onClick: n[0] ||= (e) => r("toggle")
1227
- }, [c("div", Yt, [c("h2", { class: _(["text-base font-semibold", u.value]) }, j(e.title), 3), e.badge ? (w(), s("span", {
1228
+ }, [c("div", vn, [c("h2", { class: v(["text-base font-semibold", u.value]) }, N(e.title), 3), e.badge ? (T(), s("span", {
1228
1229
  key: 0,
1229
- class: _(["text-xs px-2 py-0.5 rounded-full", f.value])
1230
- }, j(e.badge), 3)) : o("", !0)]), (w(), s("svg", {
1231
- class: _(["w-5 h-5 transition-transform", [e.collapsed ? "" : "rotate-180", M(l).dimTextAlt]]),
1230
+ class: v(["text-xs px-2 py-0.5 rounded-full", f.value])
1231
+ }, N(e.badge), 3)) : o("", !0)]), (T(), s("svg", {
1232
+ class: v(["w-5 h-5 transition-transform", [e.collapsed ? "" : "rotate-180", P(l).dimTextAlt]]),
1232
1233
  fill: "none",
1233
1234
  viewBox: "0 0 24 24",
1234
1235
  stroke: "currentColor",
@@ -1238,15 +1239,15 @@ var zt = { class: "flex items-start gap-4 min-w-0" }, Bt = { class: "flex-1 min-
1238
1239
  "stroke-linecap": "round",
1239
1240
  "stroke-linejoin": "round",
1240
1241
  d: "M19 9l-7 7-7-7"
1241
- }, null, -1)]], 2))], 10, Jt), F(c("div", { class: _(["p-6 border-t rounded-b-xl", [M(l).border, p.value]]) }, [O(t.$slots, "default")], 2), [[ae, !e.collapsed]])], 2));
1242
+ }, null, -1)]], 2))], 10, _n), R(c("div", { class: v(["p-6 border-t rounded-b-xl", [P(l).border, p.value]]) }, [A(t.$slots, "default")], 2), [[ie, !e.collapsed]])], 2));
1242
1243
  }
1243
- }), Zt = ["disabled"], Qt = ["disabled"], $t = {
1244
+ }), bn = ["disabled"], xn = ["disabled"], Sn = {
1244
1245
  key: 0,
1245
1246
  class: "w-4 h-4 animate-spin",
1246
1247
  fill: "none",
1247
1248
  viewBox: "0 0 24 24",
1248
1249
  "aria-hidden": "true"
1249
- }, en = /* @__PURE__ */ p({
1250
+ }, Cn = /* @__PURE__ */ p({
1250
1251
  __name: "BaseConfirmModal",
1251
1252
  props: {
1252
1253
  title: {},
@@ -1262,32 +1263,32 @@ var zt = { class: "flex items-start gap-4 min-w-0" }, Bt = { class: "flex-1 min-
1262
1263
  },
1263
1264
  emits: ["confirm", "cancel"],
1264
1265
  setup(e, { emit: t }) {
1265
- let n = e, r = t, { isDark: i } = B(), l = J();
1266
+ let n = e, r = t, { isDark: i } = W(), l = Z();
1266
1267
  function u() {
1267
1268
  n.submitting || r("confirm");
1268
1269
  }
1269
1270
  function f() {
1270
1271
  n.submitting || r("cancel");
1271
1272
  }
1272
- return (t, n) => (w(), a(qt, {
1273
+ return (t, n) => (T(), a(gn, {
1273
1274
  title: e.title,
1274
- icon: M(be),
1275
- "icon-bg-class": e.variant === "danger" ? M(i) ? "bg-red-900/30" : "bg-red-50" : M(i) ? "bg-amber-900/30" : "bg-amber-50",
1275
+ icon: P(be),
1276
+ "icon-bg-class": e.variant === "danger" ? P(i) ? "bg-red-900/30" : "bg-red-50" : P(i) ? "bg-amber-900/30" : "bg-amber-50",
1276
1277
  "icon-class": e.variant === "danger" ? "text-red-600" : "text-amber-600",
1277
1278
  "manual-close": e.submitting,
1278
1279
  onCancel: f
1279
1280
  }, {
1280
- footer: P(() => [c("button", {
1281
+ footer: L(() => [c("button", {
1281
1282
  type: "button",
1282
1283
  disabled: e.submitting,
1283
- class: _(["inline-flex items-center justify-center px-4 py-2 border rounded-md shadow-sm text-sm font-medium transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", [M(l).ghostButton, e.submitting ? "opacity-60 cursor-not-allowed" : "cursor-pointer"]]),
1284
+ class: v(["inline-flex items-center justify-center px-4 py-2 border rounded-md shadow-sm text-sm font-medium transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", [P(l).ghostButton, e.submitting ? "opacity-60 cursor-not-allowed" : "cursor-pointer"]]),
1284
1285
  onClick: f
1285
- }, j(e.cancelText), 11, Zt), c("button", {
1286
+ }, N(e.cancelText), 11, bn), c("button", {
1286
1287
  type: "button",
1287
1288
  disabled: e.submitting,
1288
- class: _(["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 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2", [e.variant === "danger" ? "focus-visible:ring-red-500" : "focus-visible:ring-emerald-500", 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"]]),
1289
+ class: v(["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 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2", [e.variant === "danger" ? "focus-visible:ring-red-500" : "focus-visible:ring-emerald-500", 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"]]),
1289
1290
  onClick: u
1290
- }, [e.submitting ? (w(), s("svg", $t, [...n[0] ||= [c("circle", {
1291
+ }, [e.submitting ? (T(), s("svg", Sn, [...n[0] ||= [c("circle", {
1291
1292
  class: "opacity-25",
1292
1293
  cx: "12",
1293
1294
  cy: "12",
@@ -1298,8 +1299,8 @@ var zt = { class: "flex items-start gap-4 min-w-0" }, Bt = { class: "flex-1 min-
1298
1299
  class: "opacity-75",
1299
1300
  fill: "currentColor",
1300
1301
  d: "M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"
1301
- }, null, -1)]])) : o("", !0), d(" " + j(e.submitting ? e.submittingText : e.confirmText), 1)], 10, Qt)]),
1302
- default: P(() => [O(t.$slots, "message", {}, () => [c("p", { class: _(["text-sm", M(i) ? "text-gray-300" : "text-gray-600"]) }, j(e.message), 3)]), O(t.$slots, "default")]),
1302
+ }, null, -1)]])) : o("", !0), d(" " + N(e.submitting ? e.submittingText : e.confirmText), 1)], 10, xn)]),
1303
+ default: L(() => [A(t.$slots, "message", {}, () => [c("p", { class: v(["text-sm", P(i) ? "text-gray-300" : "text-gray-600"]) }, N(e.message), 3)]), A(t.$slots, "default")]),
1303
1304
  _: 3
1304
1305
  }, 8, [
1305
1306
  "title",
@@ -1309,7 +1310,7 @@ var zt = { class: "flex items-start gap-4 min-w-0" }, Bt = { class: "flex-1 min-
1309
1310
  "manual-close"
1310
1311
  ]));
1311
1312
  }
1312
- }), tn = { class: "mt-4" }, nn = ["placeholder"], rn = ["disabled"], an = /* @__PURE__ */ p({
1313
+ }), wn = { class: "mt-4" }, Tn = ["placeholder"], En = ["disabled"], Dn = /* @__PURE__ */ p({
1313
1314
  __name: "BaseTextInputModal",
1314
1315
  props: {
1315
1316
  title: {},
@@ -1327,9 +1328,9 @@ var zt = { class: "flex items-start gap-4 min-w-0" }, Bt = { class: "flex-1 min-
1327
1328
  },
1328
1329
  emits: ["confirm", "cancel"],
1329
1330
  setup(e, { emit: t }) {
1330
- let n = e, r = t, { isDark: i } = B(), o = J(), s = E(n.initialValue), u = E(null);
1331
- x(async () => {
1332
- await g(), u.value?.focus();
1331
+ let n = e, r = t, { isDark: i } = W(), o = Z(), s = O(n.initialValue), u = O(null);
1332
+ S(async () => {
1333
+ await _(), u.value?.focus();
1333
1334
  });
1334
1335
  function d() {
1335
1336
  s.value.trim() && !n.submitting && r("confirm", s.value.trim());
@@ -1340,39 +1341,39 @@ var zt = { class: "flex items-start gap-4 min-w-0" }, Bt = { class: "flex-1 min-
1340
1341
  function p() {
1341
1342
  s.value.trim() === (n.initialValue ?? "").trim() && f();
1342
1343
  }
1343
- return Rt(f), (t, n) => (w(), a(qt, {
1344
+ return sn(f), (t, n) => (T(), a(gn, {
1344
1345
  title: e.title,
1345
- icon: M(ve),
1346
+ icon: P(ve),
1346
1347
  "manual-close": "",
1347
1348
  onBackdrop: p
1348
1349
  }, l({
1349
- footer: P(() => [c("button", {
1350
+ footer: L(() => [c("button", {
1350
1351
  type: "button",
1351
- class: _(["inline-flex items-center justify-center px-4 py-2 border rounded-md shadow-sm text-sm font-medium transition-colors duration-150 cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", M(o).ghostButton]),
1352
+ class: v(["inline-flex items-center justify-center px-4 py-2 border rounded-md shadow-sm text-sm font-medium transition-colors duration-150 cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", P(o).ghostButton]),
1352
1353
  onClick: f
1353
- }, j(e.cancelText), 3), c("button", {
1354
+ }, N(e.cancelText), 3), c("button", {
1354
1355
  type: "button",
1355
1356
  disabled: !s.value.trim() || e.submitting,
1356
- class: _(["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 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:ring-offset-2", [!s.value.trim() || e.submitting ? "bg-emerald-400 cursor-not-allowed" : "bg-emerald-600 hover:bg-emerald-700 cursor-pointer"]]),
1357
+ class: v(["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 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:ring-offset-2", [!s.value.trim() || e.submitting ? "bg-emerald-400 cursor-not-allowed" : "bg-emerald-600 hover:bg-emerald-700 cursor-pointer"]]),
1357
1358
  onClick: d
1358
- }, j(e.submitting ? e.submittingText : e.confirmText), 11, rn)]),
1359
- default: P(() => [c("p", { class: _(["text-sm", M(i) ? "text-gray-300" : "text-gray-600"]) }, j(e.message), 3), c("div", tn, [c("label", { class: _(["block text-sm font-medium mb-1", M(o).label]) }, j(e.inputLabel), 3), F(c("input", {
1359
+ }, N(e.submitting ? e.submittingText : e.confirmText), 11, En)]),
1360
+ default: L(() => [c("p", { class: v(["text-sm", P(i) ? "text-gray-300" : "text-gray-600"]) }, N(e.message), 3), c("div", wn, [c("label", { class: v(["block text-sm font-medium mb-1", P(o).label]) }, N(e.inputLabel), 3), R(c("input", {
1360
1361
  ref_key: "nameInput",
1361
1362
  ref: u,
1362
1363
  "onUpdate:modelValue": n[0] ||= (e) => s.value = e,
1363
1364
  type: "text",
1364
1365
  placeholder: e.placeholder,
1365
- class: _(["w-full px-3 py-2 rounded-md border text-sm transition-colors", M(i) ? "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"]),
1366
- onKeyup: oe(d, ["enter"])
1367
- }, null, 42, nn), [[ie, s.value]])])]),
1366
+ class: v(["w-full px-3 py-2 rounded-md border text-sm transition-colors", P(i) ? "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"]),
1367
+ onKeyup: ae(d, ["enter"])
1368
+ }, null, 42, Tn), [[re, s.value]])])]),
1368
1369
  _: 2
1369
1370
  }, [t.$slots.icon ? {
1370
1371
  name: "icon",
1371
- fn: P(() => [O(t.$slots, "icon")]),
1372
+ fn: L(() => [A(t.$slots, "icon")]),
1372
1373
  key: "0"
1373
1374
  } : void 0]), 1032, ["title", "icon"]));
1374
1375
  }
1375
- }), on = { class: "flex items-center justify-center min-h-[60vh]" }, sn = { class: "text-center px-6" }, cn = /* @__PURE__ */ p({
1376
+ }), On = { class: "flex items-center justify-center min-h-[60vh]" }, kn = { class: "text-center px-6" }, An = /* @__PURE__ */ p({
1376
1377
  __name: "BaseNotFoundPage",
1377
1378
  props: {
1378
1379
  code: { default: "404" },
@@ -1381,33 +1382,33 @@ var zt = { class: "flex items-start gap-4 min-w-0" }, Bt = { class: "flex-1 min-
1381
1382
  homeLabel: { default: "Go home" }
1382
1383
  },
1383
1384
  setup(e) {
1384
- let t = e, n = Ae(), { isDark: r } = B(), i = J();
1385
+ let t = e, n = Ae(), { isDark: r } = W(), i = Z();
1385
1386
  function a() {
1386
1387
  n.push({ name: t.homeRouteName });
1387
1388
  }
1388
- return (t, n) => (w(), s("div", on, [c("div", sn, [
1389
- f(M(be), { class: _(["w-16 h-16 mx-auto mb-4", M(i).illustration]) }, null, 8, ["class"]),
1390
- c("h1", { class: _(["text-4xl font-bold mb-2", M(r) ? "text-gray-200" : "text-gray-800"]) }, j(e.code), 3),
1391
- c("p", { class: _(["text-lg mb-6", M(i).dimTextAlt]) }, j(e.message), 3),
1389
+ return (t, n) => (T(), s("div", On, [c("div", kn, [
1390
+ f(P(be), { class: v(["w-16 h-16 mx-auto mb-4", P(i).illustration]) }, null, 8, ["class"]),
1391
+ c("h1", { class: v(["text-4xl font-bold mb-2", P(r) ? "text-gray-200" : "text-gray-800"]) }, N(e.code), 3),
1392
+ c("p", { class: v(["text-lg mb-6", P(i).dimTextAlt]) }, N(e.message), 3),
1392
1393
  c("button", {
1393
1394
  onClick: a,
1394
- class: _(["inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium text-white transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:ring-offset-2", M(r) ? "bg-emerald-600 hover:bg-emerald-500" : "bg-emerald-600 hover:bg-emerald-700"])
1395
- }, j(e.homeLabel), 3)
1395
+ class: v(["inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium text-white transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:ring-offset-2", P(r) ? "bg-emerald-600 hover:bg-emerald-500" : "bg-emerald-600 hover:bg-emerald-700"])
1396
+ }, N(e.homeLabel), 3)
1396
1397
  ])]));
1397
1398
  }
1398
- }), ln = E(!1);
1399
- function un() {
1399
+ }), jn = O(!1);
1400
+ function Mn() {
1400
1401
  function e() {
1401
- ln.value = !0;
1402
+ jn.value = !0;
1402
1403
  }
1403
1404
  function t() {
1404
- ln.value = !1;
1405
+ jn.value = !1;
1405
1406
  }
1406
1407
  function n() {
1407
- ln.value = !ln.value;
1408
+ jn.value = !jn.value;
1408
1409
  }
1409
1410
  return {
1410
- mobileOpen: ln,
1411
+ mobileOpen: jn,
1411
1412
  open: e,
1412
1413
  close: t,
1413
1414
  toggle: n
@@ -1415,30 +1416,30 @@ function un() {
1415
1416
  }
1416
1417
  //#endregion
1417
1418
  //#region src/composables/useSidebarCollapse.ts
1418
- var Y = E(!1), dn = !1, fn = "mgv-sidebar-collapsed";
1419
- function pn(e) {
1420
- if (!dn && (dn = !0, fn = e, typeof window < "u")) {
1421
- let e = window.localStorage?.getItem(fn);
1422
- e && (Y.value = e === "true"), m(!0).run(() => {
1423
- N(Y, (e) => {
1424
- window.localStorage?.setItem(fn, String(e));
1419
+ var Q = O(!1), Nn = !1, Pn = "mgv-sidebar-collapsed";
1420
+ function Fn(e) {
1421
+ if (!Nn && (Nn = !0, Pn = e, typeof window < "u")) {
1422
+ let e = window.localStorage?.getItem(Pn);
1423
+ e && (Q.value = e === "true"), m(!0).run(() => {
1424
+ I(Q, (e) => {
1425
+ window.localStorage?.setItem(Pn, String(e));
1425
1426
  });
1426
1427
  });
1427
1428
  }
1428
1429
  }
1429
- function mn(e) {
1430
- pn(e?.storageKey ?? fn);
1430
+ function In(e) {
1431
+ Fn(e?.storageKey ?? Pn);
1431
1432
  function t() {
1432
- Y.value = !0;
1433
+ Q.value = !0;
1433
1434
  }
1434
1435
  function n() {
1435
- Y.value = !1;
1436
+ Q.value = !1;
1436
1437
  }
1437
1438
  function r() {
1438
- Y.value = !Y.value;
1439
+ Q.value = !Q.value;
1439
1440
  }
1440
1441
  return {
1441
- collapsed: Y,
1442
+ collapsed: Q,
1442
1443
  collapse: t,
1443
1444
  expand: n,
1444
1445
  toggle: r
@@ -1446,45 +1447,45 @@ function mn(e) {
1446
1447
  }
1447
1448
  //#endregion
1448
1449
  //#region src/composables/useNotifications.ts
1449
- var X = E([]), Z = E(!1), hn = i(() => X.value.filter((e) => !e.read).length);
1450
- function gn() {
1450
+ var $ = O([]), Ln = O(!1), Rn = i(() => $.value.filter((e) => !e.read).length);
1451
+ function zn() {
1451
1452
  function e() {
1452
- Z.value = !0;
1453
+ Ln.value = !0;
1453
1454
  }
1454
1455
  function t() {
1455
- Z.value = !1;
1456
+ Ln.value = !1;
1456
1457
  }
1457
1458
  function n() {
1458
- Z.value = !Z.value;
1459
+ Ln.value = !Ln.value;
1459
1460
  }
1460
1461
  function r(e) {
1461
- X.value = e;
1462
+ $.value = e;
1462
1463
  }
1463
1464
  function i(e) {
1464
- X.value = [e, ...X.value];
1465
+ $.value = [e, ...$.value];
1465
1466
  }
1466
1467
  function a(e) {
1467
- X.value = X.value.filter((t) => t.id !== e);
1468
+ $.value = $.value.filter((t) => t.id !== e);
1468
1469
  }
1469
1470
  function o(e) {
1470
- X.value = X.value.map((t) => t.id === e ? {
1471
+ $.value = $.value.map((t) => t.id === e ? {
1471
1472
  ...t,
1472
1473
  read: !0
1473
1474
  } : t);
1474
1475
  }
1475
1476
  function s() {
1476
- X.value = X.value.map((e) => e.read ? e : {
1477
+ $.value = $.value.map((e) => e.read ? e : {
1477
1478
  ...e,
1478
1479
  read: !0
1479
1480
  });
1480
1481
  }
1481
1482
  function c() {
1482
- X.value = [];
1483
+ $.value = [];
1483
1484
  }
1484
1485
  return {
1485
- notifications: X,
1486
- unreadCount: hn,
1487
- open: Z,
1486
+ notifications: $,
1487
+ unreadCount: Rn,
1488
+ open: Ln,
1488
1489
  openPanel: e,
1489
1490
  closePanel: t,
1490
1491
  togglePanel: n,
@@ -1498,22 +1499,22 @@ function gn() {
1498
1499
  }
1499
1500
  //#endregion
1500
1501
  //#region src/components/BaseSidebar.vue?vue&type=script&setup=true&lang.ts
1501
- var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }, yn = { class: "flex-1 overflow-y-auto px-3 space-y-6" }, bn = { class: "space-y-0.5" }, xn = [
1502
+ var Bn = ["aria-label", "aria-expanded"], Vn = { class: "flex flex-col h-full" }, Hn = { class: "flex-1 overflow-y-auto px-3 space-y-6" }, Un = { class: "space-y-0.5" }, Wn = [
1502
1503
  "aria-current",
1503
1504
  "title",
1504
1505
  "onClick"
1505
- ], Sn = ["aria-label"], Cn = { class: "relative shrink-0" }, wn = {
1506
+ ], Gn = ["aria-label"], Kn = { class: "relative shrink-0" }, qn = {
1506
1507
  key: 0,
1507
1508
  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"
1508
- }, Tn = [
1509
+ }, Jn = [
1509
1510
  "title",
1510
1511
  "aria-label",
1511
1512
  "aria-pressed"
1512
- ], En = [
1513
+ ], Yn = [
1513
1514
  "title",
1514
1515
  "aria-label",
1515
1516
  "aria-pressed"
1516
- ], Dn = /*#__PURE__*/ ((e, t) => {
1517
+ ], Xn = /*#__PURE__*/ ((e, t) => {
1517
1518
  let n = e.__vccOpts || e;
1518
1519
  for (let [e, r] of t) n[e] = r;
1519
1520
  return n;
@@ -1538,151 +1539,151 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
1538
1539
  }
1539
1540
  },
1540
1541
  setup(t) {
1541
- let n = t, r = Ae(), l = ke(), { isDark: u, toggleTheme: p } = B(), { mobileOpen: m, close: h, toggle: v } = un(), { collapsed: y, toggle: b } = mn(), { unreadCount: x, togglePanel: S } = gn(), C = i(() => n.collapsible && y.value), T = E(null), ee = null;
1542
- N(m, async (e) => {
1543
- e ? (ee = document.activeElement instanceof HTMLElement ? document.activeElement : null, await g(), T.value?.focus()) : (ee?.focus(), ee = null);
1542
+ let n = t, r = Ae(), l = ke(), { isDark: u, toggleTheme: p } = W(), { mobileOpen: m, close: h, toggle: g } = Mn(), { collapsed: y, toggle: b } = In(), { unreadCount: x, togglePanel: S } = zn(), C = i(() => n.collapsible && y.value), w = O(null), E = null;
1543
+ I(m, async (e) => {
1544
+ e ? (E = document.activeElement instanceof HTMLElement ? document.activeElement : null, await _(), w.value?.focus()) : (E?.focus(), E = null);
1544
1545
  });
1545
- function k() {
1546
+ function D() {
1546
1547
  r.push({ name: n.homeRouteName }), h();
1547
1548
  }
1548
- function te(e) {
1549
+ function j(e) {
1549
1550
  return l.name === e;
1550
1551
  }
1551
- function ne(e) {
1552
+ function ee(e) {
1552
1553
  r.push({ name: e }), h();
1553
1554
  }
1554
- return (n, r) => (w(), s("div", null, [
1555
- c("div", { class: _(["mobile-topbar fixed top-0 inset-x-0 z-30 flex items-center justify-between px-4 py-3 border-b transition-colors", M(u) ? "bg-gray-900 border-gray-800" : "bg-white border-gray-200"]) }, [c("button", {
1555
+ return (n, r) => (T(), s("div", null, [
1556
+ c("div", { class: v(["mobile-topbar fixed top-0 inset-x-0 z-30 flex items-center justify-between px-4 py-3 border-b transition-colors", P(u) ? "bg-gray-900 border-gray-800" : "bg-white border-gray-200"]) }, [c("button", {
1556
1557
  type: "button",
1557
- onClick: k,
1558
+ onClick: D,
1558
1559
  class: "cursor-pointer rounded focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500",
1559
1560
  "aria-label": "Go to home"
1560
- }, [O(n.$slots, "logo", { size: 28 }, void 0, !0)]), c("button", {
1561
+ }, [A(n.$slots, "logo", { size: 28 }, void 0, !0)]), c("button", {
1561
1562
  type: "button",
1562
- onClick: r[0] ||= (...e) => M(v) && M(v)(...e),
1563
- class: _(["p-2 rounded-lg cursor-pointer transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", M(u) ? "text-gray-400 hover:bg-gray-800" : "text-gray-600 hover:bg-gray-100"]),
1564
- "aria-label": M(m) ? "Close navigation menu" : "Open navigation menu",
1565
- "aria-expanded": M(m)
1566
- }, [M(m) ? (w(), a(M(De), {
1563
+ onClick: r[0] ||= (...e) => P(g) && P(g)(...e),
1564
+ class: v(["p-2 rounded-lg cursor-pointer transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", P(u) ? "text-gray-400 hover:bg-gray-800" : "text-gray-600 hover:bg-gray-100"]),
1565
+ "aria-label": P(m) ? "Close navigation menu" : "Open navigation menu",
1566
+ "aria-expanded": P(m)
1567
+ }, [P(m) ? (T(), a(P(B), {
1567
1568
  key: 1,
1568
1569
  class: "w-6 h-6",
1569
1570
  "aria-hidden": "true"
1570
- })) : (w(), a(M(le), {
1571
+ })) : (T(), a(P(ce), {
1571
1572
  key: 0,
1572
1573
  class: "w-6 h-6",
1573
1574
  "aria-hidden": "true"
1574
- }))], 10, _n)], 2),
1575
- M(m) ? (w(), s("div", {
1575
+ }))], 10, Bn)], 2),
1576
+ P(m) ? (T(), s("div", {
1576
1577
  key: 0,
1577
1578
  class: "mobile-overlay fixed inset-0 z-40 bg-black/50",
1578
1579
  "aria-hidden": "true",
1579
- onClick: r[1] ||= (...e) => M(h) && M(h)(...e)
1580
+ onClick: r[1] ||= (...e) => P(h) && P(h)(...e)
1580
1581
  })) : o("", !0),
1581
1582
  c("aside", {
1582
1583
  role: "navigation",
1583
1584
  "aria-label": "Main navigation",
1584
- class: _(["fixed top-0 left-0 h-screen w-60 flex flex-col border-r transition-all duration-300 lg:pointer-events-auto", [
1585
- M(u) ? "bg-gray-900 border-gray-800" : "bg-white border-gray-200",
1586
- M(m) ? "translate-x-0 z-50" : "-translate-x-full max-lg:pointer-events-none lg:translate-x-0 z-50",
1587
- t.collapsible && M(y) ? "lg:w-16" : "lg:w-60"
1585
+ class: v(["fixed top-0 left-0 h-screen w-60 flex flex-col border-r transition-all duration-300 lg:pointer-events-auto", [
1586
+ P(u) ? "bg-gray-900 border-gray-800" : "bg-white border-gray-200",
1587
+ P(m) ? "translate-x-0 z-50" : "-translate-x-full max-lg:pointer-events-none lg:translate-x-0 z-50",
1588
+ t.collapsible && P(y) ? "lg:w-16" : "lg:w-60"
1588
1589
  ]])
1589
- }, [c("div", vn, [
1590
- c("div", { class: _(["px-5 pt-5 pb-4 flex items-center justify-center relative", { "lg:px-2": C.value }]) }, [c("button", {
1590
+ }, [c("div", Vn, [
1591
+ c("div", { class: v(["px-5 pt-5 pb-4 flex items-center justify-center relative", { "lg:px-2": C.value }]) }, [c("button", {
1591
1592
  type: "button",
1592
- onClick: k,
1593
+ onClick: D,
1593
1594
  class: "cursor-pointer rounded focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500",
1594
1595
  "aria-label": "Go to home"
1595
- }, [O(n.$slots, "logo", { size: C.value ? 36 : 52 }, void 0, !0)]), c("button", {
1596
+ }, [A(n.$slots, "logo", { size: C.value ? 36 : 52 }, void 0, !0)]), c("button", {
1596
1597
  ref_key: "closeMobileButton",
1597
- ref: T,
1598
+ ref: w,
1598
1599
  type: "button",
1599
- onClick: r[2] ||= (...e) => M(h) && M(h)(...e),
1600
- class: _(["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", M(u) ? "text-gray-400 hover:bg-gray-800" : "text-gray-500 hover:bg-gray-100"]),
1600
+ onClick: r[2] ||= (...e) => P(h) && P(h)(...e),
1601
+ class: v(["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", P(u) ? "text-gray-400 hover:bg-gray-800" : "text-gray-500 hover:bg-gray-100"]),
1601
1602
  "aria-label": "Close navigation menu"
1602
- }, [f(M(De), {
1603
+ }, [f(P(B), {
1603
1604
  class: "w-5 h-5",
1604
1605
  "aria-hidden": "true"
1605
1606
  })], 2)], 2),
1606
- c("nav", yn, [(w(!0), s(e, null, D(t.sections, (t) => (w(), s("div", { key: t.title }, [c("p", { class: _(["px-2 mb-2 text-[10px] font-semibold uppercase tracking-wider text-gray-500", { "lg:hidden": C.value }]) }, j(t.title), 3), c("ul", bn, [(w(!0), s(e, null, D(t.items, (e) => (w(), s("li", { key: e.name }, [c("button", {
1607
+ c("nav", Hn, [(T(!0), s(e, null, k(t.sections, (t) => (T(), s("div", { key: t.title }, [c("p", { class: v(["px-2 mb-2 text-[10px] font-semibold uppercase tracking-wider text-gray-500", { "lg:hidden": C.value }]) }, N(t.title), 3), c("ul", Un, [(T(!0), s(e, null, k(t.items, (e) => (T(), s("li", { key: e.name }, [c("button", {
1607
1608
  type: "button",
1608
- "aria-current": te(e.name) ? "page" : void 0,
1609
+ "aria-current": j(e.name) ? "page" : void 0,
1609
1610
  title: C.value ? e.label : void 0,
1610
- onClick: (t) => ne(e.name),
1611
- class: _(["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", [te(e.name) ? M(u) ? "bg-emerald-500/15 text-emerald-300" : "bg-emerald-50 text-emerald-700" : M(u) ? "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": C.value }]])
1612
- }, [(w(), a(A(e.icon), { class: "w-[18px] h-[18px] shrink-0" })), c("span", { class: _({ "lg:hidden": C.value }) }, j(e.label), 3)], 10, xn)]))), 128))])]))), 128))]),
1613
- c("div", { class: _(["px-4 py-4 border-t transition-colors space-y-3", M(u) ? "border-gray-800" : "border-gray-200"]) }, [
1614
- t.showNotifications ? (w(), s("button", {
1611
+ onClick: (t) => ee(e.name),
1612
+ class: v(["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", [j(e.name) ? P(u) ? "bg-emerald-500/15 text-emerald-300" : "bg-emerald-50 text-emerald-700" : P(u) ? "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": C.value }]])
1613
+ }, [(T(), a(M(e.icon), { class: "w-[18px] h-[18px] shrink-0" })), c("span", { class: v({ "lg:hidden": C.value }) }, N(e.label), 3)], 10, Wn)]))), 128))])]))), 128))]),
1614
+ c("div", { class: v(["px-4 py-4 border-t transition-colors space-y-3", P(u) ? "border-gray-800" : "border-gray-200"]) }, [
1615
+ t.showNotifications ? (T(), s("button", {
1615
1616
  key: 0,
1616
1617
  type: "button",
1617
- onClick: r[3] ||= (...e) => M(S) && M(S)(...e),
1618
+ onClick: r[3] ||= (...e) => P(S) && P(S)(...e),
1618
1619
  title: "Notifications",
1619
- "aria-label": M(x) > 0 ? `Notifications, ${M(x)} unread` : "Notifications",
1620
- class: _(["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", [M(u) ? "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": C.value }]])
1621
- }, [c("span", Cn, [f(M(ue), {
1620
+ "aria-label": P(x) > 0 ? `Notifications, ${P(x)} unread` : "Notifications",
1621
+ class: v(["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", [P(u) ? "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": C.value }]])
1622
+ }, [c("span", Kn, [f(P(le), {
1622
1623
  class: "w-[18px] h-[18px]",
1623
1624
  "aria-hidden": "true"
1624
- }), M(x) > 0 ? (w(), s("span", wn, j(M(x) > 99 ? "99+" : M(x)), 1)) : o("", !0)]), c("span", { class: _({ "lg:hidden": C.value }) }, "Notifications", 2)], 10, Sn)) : o("", !0),
1625
- t.showThemeToggle ? (w(), s("button", {
1625
+ }), P(x) > 0 ? (T(), s("span", qn, N(P(x) > 99 ? "99+" : P(x)), 1)) : o("", !0)]), c("span", { class: v({ "lg:hidden": C.value }) }, "Notifications", 2)], 10, Gn)) : o("", !0),
1626
+ t.showThemeToggle ? (T(), s("button", {
1626
1627
  key: 1,
1627
1628
  type: "button",
1628
- onClick: r[4] ||= (...e) => M(p) && M(p)(...e),
1629
- title: M(u) ? "Switch to light mode" : "Switch to dark mode",
1630
- "aria-label": M(u) ? "Switch to light mode" : "Switch to dark mode",
1631
- "aria-pressed": M(u),
1632
- class: _(["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", [M(u) ? "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": C.value }]])
1629
+ onClick: r[4] ||= (...e) => P(p) && P(p)(...e),
1630
+ title: P(u) ? "Switch to light mode" : "Switch to dark mode",
1631
+ "aria-label": P(u) ? "Switch to light mode" : "Switch to dark mode",
1632
+ "aria-pressed": P(u),
1633
+ class: v(["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", [P(u) ? "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": C.value }]])
1633
1634
  }, [
1634
- (w(), a(A(M(u) ? M(Ee) : M(Te)), {
1635
- class: _(["hidden w-[18px] h-[18px] shrink-0", { "lg:block": C.value }]),
1635
+ (T(), a(M(P(u) ? P(Ee) : P(Te)), {
1636
+ class: v(["hidden w-[18px] h-[18px] shrink-0", { "lg:block": C.value }]),
1636
1637
  "aria-hidden": "true"
1637
1638
  }, null, 8, ["class"])),
1638
- c("span", { class: _({ "lg:hidden": C.value }) }, j(M(u) ? "Switch to light" : "Switch to dark"), 3),
1639
- c("span", { class: _(["ml-auto relative w-9 h-5 rounded-full transition-colors", [M(u) ? "bg-emerald-600" : "bg-gray-300", { "lg:hidden": C.value }]]) }, [c("span", { class: _(["absolute top-0.5 left-0.5 w-4 h-4 rounded-full bg-white shadow-sm transition-transform duration-300", M(u) ? "translate-x-4" : "translate-x-0"]) }, null, 2)], 2)
1640
- ], 10, Tn)) : o("", !0),
1641
- t.collapsible ? (w(), s("button", {
1639
+ c("span", { class: v({ "lg:hidden": C.value }) }, N(P(u) ? "Switch to light" : "Switch to dark"), 3),
1640
+ c("span", { class: v(["ml-auto relative w-9 h-5 rounded-full transition-colors", [P(u) ? "bg-emerald-600" : "bg-gray-300", { "lg:hidden": C.value }]]) }, [c("span", { class: v(["absolute top-0.5 left-0.5 w-4 h-4 rounded-full bg-white shadow-sm transition-transform duration-300", P(u) ? "translate-x-4" : "translate-x-0"]) }, null, 2)], 2)
1641
+ ], 10, Jn)) : o("", !0),
1642
+ t.collapsible ? (T(), s("button", {
1642
1643
  key: 2,
1643
1644
  type: "button",
1644
- onClick: r[5] ||= (...e) => M(b) && M(b)(...e),
1645
- title: M(y) ? "Expand sidebar" : "Collapse sidebar",
1646
- "aria-label": M(y) ? "Expand sidebar" : "Collapse sidebar",
1647
- "aria-pressed": M(y),
1648
- class: _(["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", [M(u) ? "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": C.value }]])
1649
- }, [(w(), a(A(M(y) ? M(pe) : M(fe)), {
1645
+ onClick: r[5] ||= (...e) => P(b) && P(b)(...e),
1646
+ title: P(y) ? "Expand sidebar" : "Collapse sidebar",
1647
+ "aria-label": P(y) ? "Expand sidebar" : "Collapse sidebar",
1648
+ "aria-pressed": P(y),
1649
+ class: v(["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", [P(u) ? "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": C.value }]])
1650
+ }, [(T(), a(M(P(y) ? P(pe) : P(fe)), {
1650
1651
  class: "w-[18px] h-[18px] shrink-0",
1651
1652
  "aria-hidden": "true"
1652
- })), c("span", { class: _({ "lg:hidden": C.value }) }, "Collapse", 2)], 10, En)) : o("", !0),
1653
- c("div", { class: _({ "lg:hidden": C.value }) }, [O(n.$slots, "status", {}, void 0, !0)], 2),
1654
- c("div", { class: _({ "lg:hidden": C.value }) }, [O(n.$slots, "footer", {}, () => [t.appName || t.version ? (w(), s("div", {
1653
+ })), c("span", { class: v({ "lg:hidden": C.value }) }, "Collapse", 2)], 10, Yn)) : o("", !0),
1654
+ c("div", { class: v({ "lg:hidden": C.value }) }, [A(n.$slots, "status", {}, void 0, !0)], 2),
1655
+ c("div", { class: v({ "lg:hidden": C.value }) }, [A(n.$slots, "footer", {}, () => [t.appName || t.version ? (T(), s("div", {
1655
1656
  key: 0,
1656
- class: _(["flex items-center justify-center gap-2 text-xs", (M(u), "text-gray-500")])
1657
+ class: v(["flex items-center justify-center gap-2 text-xs", (P(u), "text-gray-500")])
1657
1658
  }, [c("span", null, [
1658
- d(j(t.appName), 1),
1659
- t.appName && t.version ? (w(), s(e, { key: 0 }, [d(j(" "))], 64)) : o("", !0),
1660
- t.version ? (w(), s(e, { key: 1 }, [d("v" + j(t.version), 1)], 64)) : o("", !0)
1659
+ d(N(t.appName), 1),
1660
+ t.appName && t.version ? (T(), s(e, { key: 0 }, [d(N(" "))], 64)) : o("", !0),
1661
+ t.version ? (T(), s(e, { key: 1 }, [d("v" + N(t.version), 1)], 64)) : o("", !0)
1661
1662
  ])], 2)) : o("", !0)], !0)], 2)
1662
1663
  ], 2)
1663
1664
  ])], 2)
1664
1665
  ]));
1665
1666
  }
1666
- }), [["__scopeId", "data-v-bfce9dd7"]]), On = {
1667
+ }), [["__scopeId", "data-v-bfce9dd7"]]), Zn = {
1667
1668
  key: 1,
1668
1669
  class: "mt-4 flex justify-center py-6"
1669
- }, kn = {
1670
+ }, Qn = {
1670
1671
  key: 2,
1671
1672
  class: "mt-4 text-sm text-red-500",
1672
1673
  role: "alert"
1673
- }, An = {
1674
+ }, $n = {
1674
1675
  key: 3,
1675
1676
  class: "mt-4"
1676
- }, jn = { class: "relative" }, Mn = ["placeholder"], Nn = {
1677
+ }, er = { class: "relative" }, tr = ["placeholder"], nr = {
1677
1678
  key: 4,
1678
1679
  class: "mt-3 max-h-64 overflow-y-auto"
1679
- }, Pn = ["aria-pressed", "onClick"], Fn = { class: "flex-1 min-w-0" }, In = {
1680
+ }, rr = ["aria-pressed", "onClick"], ir = { class: "flex-1 min-w-0" }, ar = {
1680
1681
  key: 0,
1681
1682
  class: "text-center py-6"
1682
- }, Ln = {
1683
+ }, or = {
1683
1684
  key: 1,
1684
1685
  class: "text-center py-6"
1685
- }, Rn = ["disabled"], zn = ["disabled"], Bn = /* @__PURE__ */ p({
1686
+ }, sr = ["disabled"], cr = ["disabled"], lr = /* @__PURE__ */ p({
1686
1687
  __name: "BaseEntityPickerModal",
1687
1688
  props: {
1688
1689
  title: {},
@@ -1704,10 +1705,10 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
1704
1705
  },
1705
1706
  emits: ["confirm", "cancel"],
1706
1707
  setup(t, { emit: n }) {
1707
- let r = t, u = n, { isDark: d } = B(), p = J(), m = E([]), h = E(!1), v = E(""), y = E(null), b = E(""), S = E(null), C = i(() => {
1708
+ let r = t, u = n, { isDark: d } = W(), p = Z(), m = O([]), h = O(!1), g = O(""), y = O(null), b = O(""), x = O(null), C = i(() => {
1708
1709
  let e = r.loader ? m.value : r.items;
1709
1710
  return r.excludeId ? e.filter((e) => e.id !== r.excludeId) : e;
1710
- }), T = i(() => C.value.filter((e) => e.label.toLowerCase().includes(b.value.toLowerCase()))), ee = {
1711
+ }), w = i(() => C.value.filter((e) => e.label.toLowerCase().includes(b.value.toLowerCase()))), E = {
1711
1712
  emerald: {
1712
1713
  iconBg: "bg-emerald-50",
1713
1714
  iconText: "text-emerald-600",
@@ -1753,7 +1754,7 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
1753
1754
  confirmActive: "bg-amber-600 hover:bg-amber-700 cursor-pointer",
1754
1755
  confirmDisabled: "bg-amber-400 cursor-not-allowed"
1755
1756
  }
1756
- }, k = {
1757
+ }, D = {
1757
1758
  emerald: {
1758
1759
  iconBg: "bg-emerald-900/30",
1759
1760
  iconText: "text-emerald-400",
@@ -1799,74 +1800,74 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
1799
1800
  confirmActive: "bg-amber-600 hover:bg-amber-700 cursor-pointer",
1800
1801
  confirmDisabled: "bg-amber-400 cursor-not-allowed"
1801
1802
  }
1802
- }, A = i(() => (d.value ? k : ee)[r.variant]);
1803
- x(async () => {
1803
+ }, j = i(() => (d.value ? D : E)[r.variant]);
1804
+ S(async () => {
1804
1805
  if (r.loader) {
1805
1806
  h.value = !0;
1806
1807
  try {
1807
1808
  m.value = await r.loader();
1808
1809
  } catch {
1809
- v.value = "Failed to load items";
1810
+ g.value = "Failed to load items";
1810
1811
  } finally {
1811
1812
  h.value = !1;
1812
1813
  }
1813
1814
  }
1814
- await g(), S.value?.focus();
1815
+ await _(), x.value?.focus();
1815
1816
  });
1816
- function te() {
1817
+ function M() {
1817
1818
  y.value && !r.submitting && u("confirm", y.value);
1818
1819
  }
1819
- function ne() {
1820
+ function ee() {
1820
1821
  r.submitting || u("cancel");
1821
1822
  }
1822
- return (n, r) => (w(), a(qt, {
1823
+ return (n, r) => (T(), a(gn, {
1823
1824
  title: t.title,
1824
- icon: M(xe),
1825
- "icon-bg-class": A.value.iconBg,
1826
- "icon-class": A.value.iconText,
1825
+ icon: P(xe),
1826
+ "icon-bg-class": j.value.iconBg,
1827
+ "icon-class": j.value.iconText,
1827
1828
  "manual-close": t.submitting,
1828
- onCancel: ne
1829
+ onCancel: ee
1829
1830
  }, l({
1830
- footer: P(() => [c("button", {
1831
+ footer: L(() => [c("button", {
1831
1832
  type: "button",
1832
1833
  disabled: t.submitting,
1833
- class: _(["inline-flex items-center justify-center px-4 py-2 border rounded-md shadow-sm text-sm font-medium transition-colors duration-150 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", M(p).ghostButton]),
1834
- onClick: ne
1835
- }, j(t.cancelText), 11, Rn), c("button", {
1834
+ class: v(["inline-flex items-center justify-center px-4 py-2 border rounded-md shadow-sm text-sm font-medium transition-colors duration-150 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", P(p).ghostButton]),
1835
+ onClick: ee
1836
+ }, N(t.cancelText), 11, sr), c("button", {
1836
1837
  type: "button",
1837
1838
  disabled: !y.value || t.submitting,
1838
- class: _(["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 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:ring-offset-2", !y.value || t.submitting ? A.value.confirmDisabled : A.value.confirmActive]),
1839
- onClick: te
1840
- }, j(t.submitting ? t.submittingText : t.confirmText), 11, zn)]),
1841
- default: P(() => [
1842
- t.message ? (w(), s("p", {
1839
+ class: v(["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 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:ring-offset-2", !y.value || t.submitting ? j.value.confirmDisabled : j.value.confirmActive]),
1840
+ onClick: M
1841
+ }, N(t.submitting ? t.submittingText : t.confirmText), 11, cr)]),
1842
+ default: L(() => [
1843
+ t.message ? (T(), s("p", {
1843
1844
  key: 0,
1844
- class: _(["text-sm", M(d) ? "text-gray-300" : "text-gray-600"])
1845
- }, j(t.message), 3)) : o("", !0),
1846
- h.value ? (w(), s("div", On, [f(mt, { color: "emerald" })])) : v.value ? (w(), s("div", kn, j(v.value), 1)) : o("", !0),
1847
- !h.value && !v.value && C.value.length > 0 ? (w(), s("div", An, [c("div", jn, [f(M(Ce), {
1848
- class: _(["absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4", M(p).dimText]),
1845
+ class: v(["text-sm", P(d) ? "text-gray-300" : "text-gray-600"])
1846
+ }, N(t.message), 3)) : o("", !0),
1847
+ h.value ? (T(), s("div", Zn, [f(It, { color: "emerald" })])) : g.value ? (T(), s("div", Qn, N(g.value), 1)) : o("", !0),
1848
+ !h.value && !g.value && C.value.length > 0 ? (T(), s("div", $n, [c("div", er, [f(P(Ce), {
1849
+ class: v(["absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4", P(p).dimText]),
1849
1850
  "aria-hidden": "true"
1850
- }, null, 8, ["class"]), F(c("input", {
1851
+ }, null, 8, ["class"]), R(c("input", {
1851
1852
  ref_key: "searchInputRef",
1852
- ref: S,
1853
+ ref: x,
1853
1854
  "onUpdate:modelValue": r[0] ||= (e) => b.value = e,
1854
1855
  type: "text",
1855
1856
  placeholder: t.searchPlaceholder,
1856
- class: _(["w-full pl-9 pr-3 py-2 text-sm rounded-md border outline-none transition-colors", [M(d) ? "bg-gray-800 border-gray-600 text-gray-200 placeholder-gray-500" : "bg-white border-gray-300 text-gray-700 placeholder-gray-400", A.value.inputFocus]])
1857
- }, null, 10, Mn), [[ie, b.value]])])])) : o("", !0),
1858
- !h.value && !v.value ? (w(), s("div", Nn, [(w(!0), s(e, null, D(T.value, (e) => (w(), s("button", {
1857
+ class: v(["w-full pl-9 pr-3 py-2 text-sm rounded-md border outline-none transition-colors", [P(d) ? "bg-gray-800 border-gray-600 text-gray-200 placeholder-gray-500" : "bg-white border-gray-300 text-gray-700 placeholder-gray-400", j.value.inputFocus]])
1858
+ }, null, 10, tr), [[re, b.value]])])])) : o("", !0),
1859
+ !h.value && !g.value ? (T(), s("div", nr, [(T(!0), s(e, null, k(w.value, (e) => (T(), s("button", {
1859
1860
  key: e.id,
1860
1861
  type: "button",
1861
1862
  "aria-pressed": y.value === e.id,
1862
- class: _(["w-full text-left flex items-center gap-3 px-3 py-2.5 rounded-lg cursor-pointer transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-emerald-500", [y.value === e.id ? A.value.selectedRow : M(d) ? "hover:bg-gray-800 border border-transparent" : "hover:bg-gray-50 border border-transparent"]]),
1863
+ class: v(["w-full text-left flex items-center gap-3 px-3 py-2.5 rounded-lg cursor-pointer transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-emerald-500", [y.value === e.id ? j.value.selectedRow : P(d) ? "hover:bg-gray-800 border border-transparent" : "hover:bg-gray-50 border border-transparent"]]),
1863
1864
  onClick: (t) => y.value = e.id
1864
1865
  }, [
1865
- f(M(xe), { class: _(["w-5 h-5 flex-shrink-0", M(p).dimText]) }, null, 8, ["class"]),
1866
- c("div", Fn, [c("p", { class: _(["text-sm font-medium truncate", M(p).bodyText]) }, j(e.label), 3)]),
1867
- y.value === e.id ? (w(), s("div", {
1866
+ f(P(xe), { class: v(["w-5 h-5 flex-shrink-0", P(p).dimText]) }, null, 8, ["class"]),
1867
+ c("div", ir, [c("p", { class: v(["text-sm font-medium truncate", P(p).bodyText]) }, N(e.label), 3)]),
1868
+ y.value === e.id ? (T(), s("div", {
1868
1869
  key: 0,
1869
- class: _(["w-5 h-5 rounded-full flex items-center justify-center", A.value.checkBg])
1870
+ class: v(["w-5 h-5 rounded-full flex items-center justify-center", j.value.checkBg])
1870
1871
  }, [...r[1] ||= [c("svg", {
1871
1872
  class: "w-3 h-3 text-white",
1872
1873
  fill: "none",
@@ -1879,12 +1880,12 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
1879
1880
  "stroke-linejoin": "round",
1880
1881
  d: "M5 13l4 4L19 7"
1881
1882
  })], -1)]], 2)) : o("", !0)
1882
- ], 10, Pn))), 128)), C.value.length === 0 ? (w(), s("div", In, [c("p", { class: _(["text-sm", M(p).dimText]) }, j(t.emptyMessage), 3)])) : T.value.length === 0 ? (w(), s("div", Ln, [c("p", { class: _(["text-sm", M(p).dimText]) }, j(t.noMatchMessage), 3)])) : o("", !0)])) : o("", !0)
1883
+ ], 10, rr))), 128)), C.value.length === 0 ? (T(), s("div", ar, [c("p", { class: v(["text-sm", P(p).dimText]) }, N(t.emptyMessage), 3)])) : w.value.length === 0 ? (T(), s("div", or, [c("p", { class: v(["text-sm", P(p).dimText]) }, N(t.noMatchMessage), 3)])) : o("", !0)])) : o("", !0)
1883
1884
  ]),
1884
1885
  _: 2
1885
1886
  }, [n.$slots.icon ? {
1886
1887
  name: "icon",
1887
- fn: P(() => [O(n.$slots, "icon")]),
1888
+ fn: L(() => [A(n.$slots, "icon")]),
1888
1889
  key: "0"
1889
1890
  } : void 0]), 1032, [
1890
1891
  "title",
@@ -1894,10 +1895,10 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
1894
1895
  "manual-close"
1895
1896
  ]));
1896
1897
  }
1897
- }), Vn = {
1898
+ }), ur = {
1898
1899
  href: "#main-content",
1899
1900
  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"
1900
- }, Hn = ["inert"], Un = /* @__PURE__ */ p({
1901
+ }, dr = ["inert"], fr = /* @__PURE__ */ p({
1901
1902
  __name: "BaseAppLayout",
1902
1903
  props: {
1903
1904
  showSidebar: {
@@ -1907,19 +1908,23 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
1907
1908
  skipLinkLabel: { default: "Skip to main content" }
1908
1909
  },
1909
1910
  setup(e) {
1910
- let t = e, { isDark: n } = B(), { mobileOpen: r } = un(), { collapsed: a } = mn(), l = i(() => t.showSidebar);
1911
- return (t, i) => (w(), s("div", { class: _(["min-h-screen transition-colors duration-300", M(n) ? "bg-gray-950 text-gray-100" : "bg-gray-50 text-gray-800"]) }, [
1912
- c("a", Vn, j(e.skipLinkLabel), 1),
1913
- l.value ? O(t.$slots, "sidebar", {}, void 0, void 0, 0) : o("", !0),
1911
+ let t = e, { isDark: n } = W(), { mobileOpen: r } = Mn(), { collapsed: a } = In(), l = i(() => t.showSidebar);
1912
+ return (t, i) => (T(), s("div", { class: v(["min-h-screen transition-colors duration-300", P(n) ? "bg-gray-950 text-gray-100" : "bg-gray-50 text-gray-800"]) }, [
1913
+ c("a", ur, N(e.skipLinkLabel), 1),
1914
+ l.value ? A(t.$slots, "sidebar", {}, void 0, void 0, 0) : o("", !0),
1914
1915
  c("main", {
1915
1916
  id: "main-content",
1916
1917
  tabindex: "-1",
1917
- inert: l.value && M(r) ? !0 : void 0,
1918
- class: _(["transition-all duration-300", l.value ? M(a) ? "pt-14 lg:pt-0 lg:ml-16" : "pt-14 lg:pt-0 lg:ml-60" : ""])
1919
- }, [O(t.$slots, "default")], 10, Hn)
1918
+ inert: l.value && P(r) ? !0 : void 0,
1919
+ class: v(["transition-all duration-300", l.value ? P(a) ? "pt-14 lg:pt-0 lg:ml-16" : "pt-14 lg:pt-0 lg:ml-60" : ""])
1920
+ }, [A(t.$slots, "default")], 10, dr)
1920
1921
  ], 2));
1921
1922
  }
1922
- }), Wn = { class: "flex items-center gap-3 min-w-0" }, Gn = { class: "flex items-center gap-2" }, Kn = /* @__PURE__ */ p({
1923
+ }), pr = { class: "flex items-center gap-3 min-w-0" }, mr = {
1924
+ key: 0,
1925
+ class: "absolute left-0 top-[0.14em] h-[1.1em] w-1 rounded-full bg-gradient-to-b from-emerald-400 to-emerald-600",
1926
+ "aria-hidden": "true"
1927
+ }, hr = { class: "flex items-center gap-2" }, gr = /* @__PURE__ */ p({
1923
1928
  __name: "BasePageHeader",
1924
1929
  props: {
1925
1930
  title: {},
@@ -1927,10 +1932,14 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
1927
1932
  iconColor: { default: "emerald" },
1928
1933
  maxWidthClass: { default: "max-w-4xl" },
1929
1934
  align: { default: "center" },
1930
- marginClass: { default: "mb-8" }
1935
+ marginClass: { default: "mb-8" },
1936
+ accent: {
1937
+ type: Boolean,
1938
+ default: !1
1939
+ }
1931
1940
  },
1932
1941
  setup(e) {
1933
- let t = e, { isDark: n } = B(), r = J(), a = i(() => {
1942
+ let t = e, { isDark: n } = W(), r = Z(), a = i(() => {
1934
1943
  let e = {
1935
1944
  emerald: {
1936
1945
  dark: "bg-emerald-500/10",
@@ -1971,19 +1980,19 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
1971
1980
  }[t.iconColor];
1972
1981
  return n.value ? e.dark : e.light;
1973
1982
  });
1974
- return (t, n) => (w(), s("header", { class: _(e.maxWidthClass ? ["mx-auto px-4 sm:px-6", e.maxWidthClass] : void 0) }, [c("div", { class: _(["flex flex-wrap justify-between gap-3", [e.align === "end" ? "items-end" : "items-center", e.marginClass]]) }, [c("div", Wn, [t.$slots.icon ? (w(), s("div", {
1983
+ return (t, n) => (T(), s("header", { class: v(e.maxWidthClass ? ["mx-auto px-4 sm:px-6", e.maxWidthClass] : void 0) }, [c("div", { class: v(["flex flex-wrap justify-between gap-3", [e.align === "end" ? "items-end" : "items-center", e.marginClass]]) }, [c("div", pr, [t.$slots.icon ? (T(), s("div", {
1975
1984
  key: 0,
1976
- class: _(["w-10 h-10 rounded-lg flex items-center justify-center", a.value])
1977
- }, [O(t.$slots, "icon", { iconClass: l.value })], 2)) : o("", !0), c("div", null, [c("h1", { class: _(["text-2xl font-bold", M(r).primaryTextSoft]) }, j(e.title), 3), e.subtitle || t.$slots.subtitle ? (w(), s("p", {
1985
+ class: v(["w-10 h-10 rounded-lg flex items-center justify-center", a.value])
1986
+ }, [A(t.$slots, "icon", { iconClass: l.value })], 2)) : o("", !0), c("div", null, [c("h1", { class: v(["text-2xl font-bold", [P(r).primaryTextSoft, e.accent ? "relative pl-3.5 tracking-tight" : ""]]) }, [e.accent ? (T(), s("span", mr)) : o("", !0), d(" " + N(e.title), 1)], 2), e.subtitle || t.$slots.subtitle ? (T(), s("p", {
1978
1987
  key: 0,
1979
- class: _(["text-sm", M(r).dimTextAlt])
1980
- }, [O(t.$slots, "subtitle", {}, () => [d(j(e.subtitle), 1)])], 2)) : o("", !0)])]), c("div", Gn, [O(t.$slots, "actions")])], 2)], 2));
1988
+ class: v(["max-w-[72ch] text-sm", P(r).dimTextAlt])
1989
+ }, [A(t.$slots, "subtitle", {}, () => [d(N(e.subtitle), 1)])], 2)) : o("", !0)])]), c("div", hr, [A(t.$slots, "actions")])], 2)], 2));
1981
1990
  }
1982
- }), qn = [
1991
+ }), _r = [
1983
1992
  "type",
1984
1993
  "disabled",
1985
1994
  "title"
1986
- ], Jn = { key: 0 }, Yn = /* @__PURE__ */ p({
1995
+ ], vr = { key: 0 }, yr = /* @__PURE__ */ p({
1987
1996
  __name: "BaseToolbarButton",
1988
1997
  props: {
1989
1998
  label: { default: "" },
@@ -1997,7 +2006,7 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
1997
2006
  },
1998
2007
  emits: ["click"],
1999
2008
  setup(e) {
2000
- let t = e, { isDark: n } = B(), r = {
2009
+ let t = e, { isDark: n } = W(), r = {
2001
2010
  neutral: "px-3 py-2 rounded-lg font-medium disabled:opacity-50",
2002
2011
  danger: "px-3 py-2 rounded-lg font-medium disabled:opacity-50",
2003
2012
  ghost: "h-9 px-4 rounded-md font-semibold disabled:opacity-40 disabled:hover:bg-slate-50 dark:disabled:hover:bg-slate-900"
@@ -2018,20 +2027,20 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2018
2027
  }[t.variant];
2019
2028
  return [r[t.variant], n.value ? e.dark : e.light];
2020
2029
  });
2021
- return (t, n) => (w(), s("button", {
2030
+ return (t, n) => (T(), s("button", {
2022
2031
  type: e.type,
2023
2032
  disabled: e.disabled,
2024
2033
  title: e.title,
2025
- class: _(["inline-flex shrink-0 items-center gap-2 text-sm border transition-colors cursor-pointer disabled:cursor-not-allowed whitespace-nowrap focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", a.value]),
2034
+ class: v(["inline-flex shrink-0 items-center gap-2 text-sm border transition-colors cursor-pointer disabled:cursor-not-allowed whitespace-nowrap focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", a.value]),
2026
2035
  onClick: n[0] ||= (e) => t.$emit("click", e)
2027
- }, [O(t.$slots, "icon", { iconClass: "w-4 h-4" }), e.label ? (w(), s("span", Jn, j(e.label), 1)) : o("", !0)], 10, qn));
2036
+ }, [A(t.$slots, "icon", { iconClass: "w-4 h-4" }), e.label ? (T(), s("span", vr, N(e.label), 1)) : o("", !0)], 10, _r));
2028
2037
  }
2029
- }), Xn = [
2038
+ }), br = [
2030
2039
  "type",
2031
2040
  "disabled",
2032
2041
  "title",
2033
2042
  "aria-label"
2034
- ], Zn = { key: 0 }, Qn = /* @__PURE__ */ p({
2043
+ ], xr = { key: 0 }, Sr = /* @__PURE__ */ p({
2035
2044
  __name: "BaseActionButton",
2036
2045
  props: {
2037
2046
  label: { default: "" },
@@ -2050,7 +2059,7 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2050
2059
  },
2051
2060
  emits: ["click"],
2052
2061
  setup(e) {
2053
- let t = e, { isDark: n } = B(), r = i(() => {
2062
+ let t = e, { isDark: n } = W(), r = i(() => {
2054
2063
  let e = {
2055
2064
  emerald: {
2056
2065
  dark: "text-emerald-400 hover:bg-emerald-500/10",
@@ -2123,16 +2132,16 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2123
2132
  }[t.color];
2124
2133
  return n.value ? e.dark : e.light;
2125
2134
  }), c = i(() => t.disabled ? `${a.value} opacity-50 cursor-not-allowed` : `${r.value} cursor-pointer`);
2126
- return (t, n) => (w(), s("button", {
2135
+ return (t, n) => (T(), s("button", {
2127
2136
  type: e.type,
2128
2137
  disabled: e.disabled,
2129
2138
  title: e.title,
2130
2139
  "aria-label": e.ariaLabel,
2131
- class: _(["inline-flex items-center justify-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-current", [e.fullWidth ? "flex-1" : "", c.value]]),
2140
+ class: v(["inline-flex items-center justify-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-current", [e.fullWidth ? "flex-1" : "", c.value]]),
2132
2141
  onClick: n[0] ||= (e) => t.$emit("click", e)
2133
- }, [O(t.$slots, "icon", { iconClass: "w-4 h-4" }), e.label ? (w(), s("span", Zn, j(e.label), 1)) : o("", !0)], 10, Xn));
2142
+ }, [A(t.$slots, "icon", { iconClass: "w-4 h-4" }), e.label ? (T(), s("span", xr, N(e.label), 1)) : o("", !0)], 10, br));
2134
2143
  }
2135
- }), $n = ["title", "aria-label"], er = /* @__PURE__ */ p({
2144
+ }), Cr = ["title", "aria-label"], wr = /* @__PURE__ */ p({
2136
2145
  __name: "BaseCopyButton",
2137
2146
  props: {
2138
2147
  text: {},
@@ -2143,7 +2152,7 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2143
2152
  },
2144
2153
  emits: ["copied", "error"],
2145
2154
  setup(e, { emit: t }) {
2146
- let n = e, r = t, { isDark: o } = B(), c = E(!1), l = null, u = i(() => c.value ? "Copied!" : n.label ? `Copy ${n.label}` : "Copy"), d = i(() => n.label ? `Copy ${n.label}` : "Copy"), f = i(() => n.variant === "bordered" ? `inline-flex items-center justify-center w-9 h-9 rounded-lg border transition-colors cursor-pointer shrink-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 ${c.value ? o.value ? "border-emerald-500/40 bg-emerald-500/10 text-emerald-400" : "border-emerald-300 bg-emerald-50 text-emerald-600" : o.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 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 ${o.value ? "text-gray-400 hover:text-emerald-300 hover:bg-emerald-500/10" : "text-gray-500 hover:text-emerald-600 hover:bg-emerald-50"}`);
2155
+ let n = e, r = t, { isDark: o } = W(), c = O(!1), l = null, u = i(() => c.value ? "Copied!" : n.label ? `Copy ${n.label}` : "Copy"), d = i(() => n.label ? `Copy ${n.label}` : "Copy"), f = i(() => n.variant === "bordered" ? `inline-flex items-center justify-center w-9 h-9 rounded-lg border transition-colors cursor-pointer shrink-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 ${c.value ? o.value ? "border-emerald-500/40 bg-emerald-500/10 text-emerald-400" : "border-emerald-300 bg-emerald-50 text-emerald-600" : o.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 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 ${o.value ? "text-gray-400 hover:text-emerald-300 hover:bg-emerald-500/10" : "text-gray-500 hover:text-emerald-600 hover:bg-emerald-50"}`);
2147
2156
  async function p(e) {
2148
2157
  try {
2149
2158
  if (navigator.clipboard?.writeText) {
@@ -2165,36 +2174,36 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2165
2174
  r("error", e);
2166
2175
  }
2167
2176
  }
2168
- return C(() => {
2177
+ return w(() => {
2169
2178
  l && clearTimeout(l);
2170
- }), (t, n) => (w(), s("button", {
2179
+ }), (t, n) => (T(), s("button", {
2171
2180
  type: "button",
2172
2181
  title: u.value,
2173
2182
  "aria-label": d.value,
2174
- class: _(f.value),
2183
+ class: v(f.value),
2175
2184
  onClick: m
2176
- }, [c.value ? (w(), a(M(ge), {
2185
+ }, [c.value ? (T(), a(P(ge), {
2177
2186
  key: 0,
2178
- class: _(e.iconClass),
2187
+ class: v(e.iconClass),
2179
2188
  "aria-hidden": "true"
2180
- }, null, 8, ["class"])) : (w(), a(M(_e), {
2189
+ }, null, 8, ["class"])) : (T(), a(P(_e), {
2181
2190
  key: 1,
2182
- class: _(e.iconClass),
2191
+ class: v(e.iconClass),
2183
2192
  "aria-hidden": "true"
2184
- }, null, 8, ["class"]))], 10, $n));
2193
+ }, null, 8, ["class"]))], 10, Cr));
2185
2194
  }
2186
- }), tr = ["disabled", "aria-busy"], nr = {
2195
+ }), Tr = ["disabled", "aria-busy"], Er = {
2187
2196
  key: 0,
2188
2197
  class: "w-5 h-5 animate-spin shrink-0",
2189
2198
  viewBox: "0 0 24 24",
2190
2199
  fill: "none",
2191
2200
  "aria-hidden": "true"
2192
- }, rr = {
2201
+ }, Dr = {
2193
2202
  key: 1,
2194
2203
  class: "w-5 h-5 shrink-0",
2195
2204
  viewBox: "0 0 48 48",
2196
2205
  "aria-hidden": "true"
2197
- }, ir = /* @__PURE__ */ p({
2206
+ }, Or = /* @__PURE__ */ p({
2198
2207
  __name: "BaseGoogleSignInButton",
2199
2208
  props: {
2200
2209
  label: { default: "Sign in with Google" },
@@ -2213,17 +2222,17 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2213
2222
  },
2214
2223
  emits: ["click"],
2215
2224
  setup(e, { emit: t }) {
2216
- let n = e, r = t, { isDark: a } = B(), o = i(() => n.disabled || n.loading);
2225
+ let n = e, r = t, { isDark: a } = W(), o = i(() => n.disabled || n.loading);
2217
2226
  function l() {
2218
2227
  o.value || r("click");
2219
2228
  }
2220
- return (t, n) => (w(), s("button", {
2229
+ return (t, n) => (T(), s("button", {
2221
2230
  type: "button",
2222
2231
  disabled: o.value,
2223
2232
  "aria-busy": e.loading,
2224
2233
  onClick: l,
2225
- class: _(["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" : "", M(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"]])
2226
- }, [e.loading ? (w(), s("svg", nr, [...n[0] ||= [c("circle", {
2234
+ class: v(["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" : "", P(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"]])
2235
+ }, [e.loading ? (T(), s("svg", Er, [...n[0] ||= [c("circle", {
2227
2236
  class: "opacity-25",
2228
2237
  cx: "12",
2229
2238
  cy: "12",
@@ -2234,18 +2243,18 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2234
2243
  class: "opacity-75",
2235
2244
  fill: "currentColor",
2236
2245
  d: "M4 12a8 8 0 0 1 8-8V0C5.4 0 0 5.4 0 12h4z"
2237
- }, null, -1)]])) : (w(), s("svg", rr, [...n[1] ||= [u("<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)]])), c("span", null, j(e.label), 1)], 10, tr));
2246
+ }, null, -1)]])) : (T(), s("svg", Dr, [...n[1] ||= [u("<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)]])), c("span", null, N(e.label), 1)], 10, Tr));
2238
2247
  }
2239
- }), ar = {
2248
+ }), kr = {
2240
2249
  key: 0,
2241
2250
  class: "flex justify-center mb-6"
2242
- }, or = { class: "mb-6 text-center" }, sr = { class: "flex items-center gap-3 my-5" }, cr = ["disabled"], lr = { class: "flex items-center justify-between mb-1.5" }, ur = { class: "relative" }, dr = ["type", "disabled"], fr = ["aria-label", "aria-pressed"], pr = ["disabled"], mr = ["disabled", "aria-busy"], hr = {
2251
+ }, Ar = { class: "mb-6 text-center" }, jr = { class: "flex items-center gap-3 my-5" }, Mr = ["disabled"], Nr = { class: "flex items-center justify-between mb-1.5" }, Pr = { class: "relative" }, Fr = ["type", "disabled"], Ir = ["aria-label", "aria-pressed"], Lr = ["disabled"], Rr = ["disabled", "aria-busy"], zr = {
2243
2252
  key: 0,
2244
2253
  class: "w-4 h-4 animate-spin",
2245
2254
  viewBox: "0 0 24 24",
2246
2255
  fill: "none",
2247
2256
  "aria-hidden": "true"
2248
- }, gr = /* @__PURE__ */ p({
2257
+ }, Br = /* @__PURE__ */ p({
2249
2258
  __name: "BaseLoginForm",
2250
2259
  props: {
2251
2260
  title: { default: "Sign in" },
@@ -2271,87 +2280,87 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2271
2280
  },
2272
2281
  emits: ["submit", "google-sign-in"],
2273
2282
  setup(t, { emit: n }) {
2274
- let r = t, a = n, { isDark: l } = B(), u = J(), p = E(""), m = E(""), h = E(!1), g = E(!1), v = i(() => r.loading || r.googleLoading);
2283
+ let r = t, a = n, { isDark: l } = W(), u = Z(), p = O(""), m = O(""), h = O(!1), g = O(!1), _ = i(() => r.loading || r.googleLoading);
2275
2284
  function y() {
2276
- v.value || a("submit", {
2285
+ _.value || a("submit", {
2277
2286
  email: p.value,
2278
2287
  password: m.value,
2279
2288
  ...r.showRemember ? { remember: h.value } : {}
2280
2289
  });
2281
2290
  }
2282
- return (n, r) => (w(), s("div", { class: _(["w-full max-w-sm mx-auto rounded-xl border shadow-sm p-6 sm:p-8", M(u).card]) }, [
2283
- n.$slots.logo ? (w(), s("div", ar, [O(n.$slots, "logo")])) : o("", !0),
2284
- c("div", or, [c("h1", { class: _(["text-xl font-semibold", M(u).primaryText]) }, j(t.title), 3), t.subtitle ? (w(), s("p", {
2291
+ return (n, r) => (T(), s("div", { class: v(["w-full max-w-sm mx-auto rounded-xl border shadow-sm p-6 sm:p-8", P(u).card]) }, [
2292
+ n.$slots.logo ? (T(), s("div", kr, [A(n.$slots, "logo")])) : o("", !0),
2293
+ c("div", Ar, [c("h1", { class: v(["text-xl font-semibold", P(u).primaryText]) }, N(t.title), 3), t.subtitle ? (T(), s("p", {
2285
2294
  key: 0,
2286
- class: _(["mt-1 text-sm", M(u).mutedText])
2287
- }, j(t.subtitle), 3)) : o("", !0)]),
2288
- t.error ? (w(), s("div", {
2295
+ class: v(["mt-1 text-sm", P(u).mutedText])
2296
+ }, N(t.subtitle), 3)) : o("", !0)]),
2297
+ t.error ? (T(), s("div", {
2289
2298
  key: 1,
2290
2299
  role: "alert",
2291
- class: _(["mb-4 rounded-lg border px-3 py-2 text-sm", M(l) ? "bg-red-500/10 border-red-500/30 text-red-300" : "bg-red-50 border-red-200 text-red-700"])
2292
- }, j(t.error), 3)) : o("", !0),
2293
- t.showGoogle ? (w(), s(e, { key: 2 }, [f(ir, {
2300
+ class: v(["mb-4 rounded-lg border px-3 py-2 text-sm", P(l) ? "bg-red-500/10 border-red-500/30 text-red-300" : "bg-red-50 border-red-200 text-red-700"])
2301
+ }, N(t.error), 3)) : o("", !0),
2302
+ t.showGoogle ? (T(), s(e, { key: 2 }, [f(Or, {
2294
2303
  loading: t.googleLoading,
2295
2304
  disabled: t.loading,
2296
2305
  onClick: r[0] ||= (e) => a("google-sign-in")
2297
- }, null, 8, ["loading", "disabled"]), c("div", sr, [
2298
- c("span", { class: _(["h-px flex-1", M(l) ? "bg-gray-700" : "bg-gray-200"]) }, null, 2),
2299
- c("span", { class: _(["text-xs uppercase tracking-wider", M(u).dimTextAlt]) }, "or", 2),
2300
- c("span", { class: _(["h-px flex-1", M(l) ? "bg-gray-700" : "bg-gray-200"]) }, null, 2)
2306
+ }, null, 8, ["loading", "disabled"]), c("div", jr, [
2307
+ c("span", { class: v(["h-px flex-1", P(l) ? "bg-gray-700" : "bg-gray-200"]) }, null, 2),
2308
+ c("span", { class: v(["text-xs uppercase tracking-wider", P(u).dimTextAlt]) }, "or", 2),
2309
+ c("span", { class: v(["h-px flex-1", P(l) ? "bg-gray-700" : "bg-gray-200"]) }, null, 2)
2301
2310
  ])], 64)) : o("", !0),
2302
2311
  c("form", {
2303
2312
  class: "space-y-4",
2304
- onSubmit: I(y, ["prevent"])
2313
+ onSubmit: z(y, ["prevent"])
2305
2314
  }, [
2306
2315
  c("div", null, [c("label", {
2307
2316
  for: "login-email",
2308
- class: _(["block mb-1.5 text-sm font-medium", M(u).label])
2309
- }, " Email ", 2), F(c("input", {
2317
+ class: v(["block mb-1.5 text-sm font-medium", P(u).label])
2318
+ }, " Email ", 2), R(c("input", {
2310
2319
  id: "login-email",
2311
2320
  "onUpdate:modelValue": r[1] ||= (e) => p.value = e,
2312
2321
  type: "email",
2313
2322
  name: "email",
2314
2323
  autocomplete: "email",
2315
2324
  required: "",
2316
- disabled: v.value,
2325
+ disabled: _.value,
2317
2326
  placeholder: "you@example.com",
2318
- class: _(["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", M(u).inputWithPlaceholder])
2319
- }, null, 10, cr), [[ie, p.value]])]),
2320
- c("div", null, [c("div", lr, [c("label", {
2327
+ class: v(["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", P(u).inputWithPlaceholder])
2328
+ }, null, 10, Mr), [[re, p.value]])]),
2329
+ c("div", null, [c("div", Nr, [c("label", {
2321
2330
  for: "login-password",
2322
- class: _(["block text-sm font-medium", M(u).label])
2323
- }, " Password ", 2), O(n.$slots, "forgot")]), c("div", ur, [F(c("input", {
2331
+ class: v(["block text-sm font-medium", P(u).label])
2332
+ }, " Password ", 2), A(n.$slots, "forgot")]), c("div", Pr, [R(c("input", {
2324
2333
  id: "login-password",
2325
2334
  "onUpdate:modelValue": r[2] ||= (e) => m.value = e,
2326
2335
  type: g.value ? "text" : "password",
2327
2336
  name: "password",
2328
2337
  autocomplete: "current-password",
2329
2338
  required: "",
2330
- disabled: v.value,
2339
+ disabled: _.value,
2331
2340
  placeholder: "••••••••",
2332
- class: _(["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", M(u).inputWithPlaceholder])
2333
- }, null, 10, dr), [[re, m.value]]), c("button", {
2341
+ class: v(["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", P(u).inputWithPlaceholder])
2342
+ }, null, 10, Fr), [[ne, m.value]]), c("button", {
2334
2343
  type: "button",
2335
2344
  onClick: r[3] ||= (e) => g.value = !g.value,
2336
2345
  "aria-label": g.value ? "Hide password" : "Show password",
2337
2346
  "aria-pressed": g.value,
2338
- class: _(["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", M(u).mutedText])
2339
- }, j(g.value ? "Hide" : "Show"), 11, fr)])]),
2340
- t.showRemember ? (w(), s("label", {
2347
+ class: v(["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", P(u).mutedText])
2348
+ }, N(g.value ? "Hide" : "Show"), 11, Ir)])]),
2349
+ t.showRemember ? (T(), s("label", {
2341
2350
  key: 0,
2342
- class: _(["flex items-center gap-2 text-sm cursor-pointer select-none", M(u).bodyText])
2343
- }, [F(c("input", {
2351
+ class: v(["flex items-center gap-2 text-sm cursor-pointer select-none", P(u).bodyText])
2352
+ }, [R(c("input", {
2344
2353
  "onUpdate:modelValue": r[4] ||= (e) => h.value = e,
2345
2354
  type: "checkbox",
2346
- disabled: v.value,
2355
+ disabled: _.value,
2347
2356
  class: "w-4 h-4 rounded border-gray-300 text-emerald-600 focus:ring-emerald-500"
2348
- }, null, 8, pr), [[ne, h.value]]), r[5] ||= d(" Remember me ", -1)], 2)) : o("", !0),
2357
+ }, null, 8, Lr), [[te, h.value]]), r[5] ||= d(" Remember me ", -1)], 2)) : o("", !0),
2349
2358
  c("button", {
2350
2359
  type: "submit",
2351
- disabled: v.value,
2360
+ disabled: _.value,
2352
2361
  "aria-busy": t.loading,
2353
2362
  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"
2354
- }, [t.loading ? (w(), s("svg", hr, [...r[6] ||= [c("circle", {
2363
+ }, [t.loading ? (T(), s("svg", zr, [...r[6] ||= [c("circle", {
2355
2364
  class: "opacity-25",
2356
2365
  cx: "12",
2357
2366
  cy: "12",
@@ -2362,18 +2371,18 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2362
2371
  class: "opacity-75",
2363
2372
  fill: "currentColor",
2364
2373
  d: "M4 12a8 8 0 0 1 8-8V0C5.4 0 0 5.4 0 12h4z"
2365
- }, null, -1)]])) : o("", !0), d(" " + j(t.submitLabel), 1)], 8, mr)
2374
+ }, null, -1)]])) : o("", !0), d(" " + N(t.submitLabel), 1)], 8, Rr)
2366
2375
  ], 32),
2367
- n.$slots.footer ? (w(), s("div", {
2376
+ n.$slots.footer ? (T(), s("div", {
2368
2377
  key: 3,
2369
- class: _(["mt-6 text-center text-sm", M(u).mutedText])
2370
- }, [O(n.$slots, "footer")], 2)) : o("", !0)
2378
+ class: v(["mt-6 text-center text-sm", P(u).mutedText])
2379
+ }, [A(n.$slots, "footer")], 2)) : o("", !0)
2371
2380
  ], 2));
2372
2381
  }
2373
- }), _r = ["aria-label"], vr = { class: "flex-1 overflow-y-auto" }, yr = {
2382
+ }), Vr = ["aria-label"], Hr = { class: "flex-1 overflow-y-auto" }, Ur = {
2374
2383
  key: 0,
2375
2384
  class: "flex flex-col items-center justify-center text-center px-6 py-16 gap-3"
2376
- }, br = ["onClick"], xr = { class: "min-w-0 flex-1" }, Sr = { class: "flex items-baseline justify-between gap-2" }, Cr = /* @__PURE__ */ p({
2385
+ }, Wr = ["onClick"], Gr = { class: "min-w-0 flex-1" }, Kr = { class: "flex items-baseline justify-between gap-2" }, qr = /* @__PURE__ */ p({
2377
2386
  __name: "BaseNotificationPanel",
2378
2387
  props: {
2379
2388
  title: { default: "Notifications" },
@@ -2385,28 +2394,28 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2385
2394
  },
2386
2395
  emits: ["select"],
2387
2396
  setup(n, { emit: l }) {
2388
- let u = l, { isDark: p } = B(), m = J(), { notifications: h, unreadCount: g, open: v, closePanel: y, markAllRead: b, markRead: x } = gn(), S = {
2397
+ let u = l, { isDark: p } = W(), m = Z(), { notifications: h, unreadCount: g, open: _, closePanel: y, markAllRead: b, markRead: x } = zn(), S = {
2389
2398
  info: "bg-sky-500",
2390
2399
  success: "bg-emerald-500",
2391
2400
  warning: "bg-amber-500",
2392
2401
  error: "bg-red-500"
2393
2402
  }, C = i(() => h.value.length);
2394
- function T(e) {
2403
+ function w(e) {
2395
2404
  x(e), u("select", e);
2396
2405
  }
2397
- return Rt(() => {
2398
- v.value && y();
2399
- }), (i, l) => (w(), a(t, { to: "body" }, [f(r, {
2406
+ return sn(() => {
2407
+ _.value && y();
2408
+ }), (i, l) => (T(), a(t, { to: "body" }, [f(r, {
2400
2409
  "enter-active-class": "transition-opacity duration-200",
2401
2410
  "enter-from-class": "opacity-0",
2402
2411
  "leave-active-class": "transition-opacity duration-200",
2403
2412
  "leave-to-class": "opacity-0"
2404
2413
  }, {
2405
- default: P(() => [M(v) ? (w(), s("div", {
2414
+ default: L(() => [P(_) ? (T(), s("div", {
2406
2415
  key: 0,
2407
2416
  class: "fixed inset-0 z-[60] bg-black/50",
2408
2417
  "aria-hidden": "true",
2409
- onClick: l[0] ||= (...e) => M(y) && M(y)(...e)
2418
+ onClick: l[0] ||= (...e) => P(y) && P(y)(...e)
2410
2419
  })) : o("", !0)]),
2411
2420
  _: 1
2412
2421
  }), f(r, {
@@ -2415,55 +2424,55 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2415
2424
  "leave-active-class": "transition-transform duration-300 ease-in",
2416
2425
  "leave-to-class": "-translate-x-full"
2417
2426
  }, {
2418
- default: P(() => [M(v) ? (w(), s("aside", {
2427
+ default: L(() => [P(_) ? (T(), s("aside", {
2419
2428
  key: 0,
2420
2429
  role: "dialog",
2421
2430
  "aria-modal": "true",
2422
2431
  "aria-label": n.title,
2423
- class: _(["fixed top-0 left-0 z-[70] h-screen w-full max-w-sm flex flex-col border-r shadow-xl", M(p) ? "bg-gray-900 border-gray-800" : "bg-white border-gray-200"])
2432
+ class: v(["fixed top-0 left-0 z-[70] h-screen w-full max-w-sm flex flex-col border-r shadow-xl", P(p) ? "bg-gray-900 border-gray-800" : "bg-white border-gray-200"])
2424
2433
  }, [
2425
- c("div", { class: _(["flex items-center justify-between gap-3 px-5 py-4 border-b shrink-0", M(m).border]) }, [c("h2", { class: _(["text-lg font-semibold flex items-center gap-2", M(m).primaryText]) }, [d(j(n.title) + " ", 1), c("span", { class: _(["text-sm font-normal", M(m).dimTextAlt]) }, "— " + j(C.value), 3)], 2), c("button", {
2434
+ c("div", { class: v(["flex items-center justify-between gap-3 px-5 py-4 border-b shrink-0", P(m).border]) }, [c("h2", { class: v(["text-lg font-semibold flex items-center gap-2", P(m).primaryText]) }, [d(N(n.title) + " ", 1), c("span", { class: v(["text-sm font-normal", P(m).dimTextAlt]) }, "— " + N(C.value), 3)], 2), c("button", {
2426
2435
  type: "button",
2427
- onClick: l[1] ||= (...e) => M(y) && M(y)(...e),
2436
+ onClick: l[1] ||= (...e) => P(y) && P(y)(...e),
2428
2437
  "aria-label": "Close notifications",
2429
- class: _(["p-1.5 rounded-lg cursor-pointer transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", M(p) ? "text-gray-400 hover:bg-gray-800" : "text-gray-500 hover:bg-gray-100"])
2430
- }, [f(M(De), {
2438
+ class: v(["p-1.5 rounded-lg cursor-pointer transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", P(p) ? "text-gray-400 hover:bg-gray-800" : "text-gray-500 hover:bg-gray-100"])
2439
+ }, [f(P(B), {
2431
2440
  class: "w-5 h-5",
2432
2441
  "aria-hidden": "true"
2433
2442
  })], 2)], 2),
2434
- n.showMarkAllRead && M(g) > 0 ? (w(), s("div", {
2443
+ n.showMarkAllRead && P(g) > 0 ? (T(), s("div", {
2435
2444
  key: 0,
2436
- class: _(["px-5 py-2 border-b shrink-0 flex justify-end", M(m).border])
2445
+ class: v(["px-5 py-2 border-b shrink-0 flex justify-end", P(m).border])
2437
2446
  }, [c("button", {
2438
2447
  type: "button",
2439
- onClick: l[2] ||= (...e) => M(b) && M(b)(...e),
2440
- class: _(["text-xs font-medium cursor-pointer transition-colors focus:outline-none focus-visible:underline", M(m).emeraldText])
2448
+ onClick: l[2] ||= (...e) => P(b) && P(b)(...e),
2449
+ class: v(["text-xs font-medium cursor-pointer transition-colors focus:outline-none focus-visible:underline", P(m).emeraldText])
2441
2450
  }, " Mark all as read ", 2)], 2)) : o("", !0),
2442
- c("div", vr, [C.value === 0 ? (w(), s("div", yr, [f(M(ue), {
2443
- class: _(["w-10 h-10", M(m).illustration]),
2451
+ c("div", Hr, [C.value === 0 ? (T(), s("div", Ur, [f(P(le), {
2452
+ class: v(["w-10 h-10", P(m).illustration]),
2444
2453
  "aria-hidden": "true"
2445
- }, null, 8, ["class"]), c("p", { class: _(["text-sm", M(m).mutedText]) }, j(n.emptyText), 3)])) : (w(), s("ul", {
2454
+ }, null, 8, ["class"]), c("p", { class: v(["text-sm", P(m).mutedText]) }, N(n.emptyText), 3)])) : (T(), s("ul", {
2446
2455
  key: 1,
2447
- class: _(["divide-y", M(p) ? "divide-gray-800" : "divide-gray-100"])
2448
- }, [(w(!0), s(e, null, D(M(h), (e) => (w(), s("li", { key: e.id }, [c("button", {
2456
+ class: v(["divide-y", P(p) ? "divide-gray-800" : "divide-gray-100"])
2457
+ }, [(T(!0), s(e, null, k(P(h), (e) => (T(), s("li", { key: e.id }, [c("button", {
2449
2458
  type: "button",
2450
- onClick: (t) => T(e.id),
2451
- class: _(["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 ? "" : M(p) ? "bg-emerald-500/5" : "bg-emerald-50/60", M(p) ? "hover:bg-gray-800" : "hover:bg-gray-50"]])
2459
+ onClick: (t) => w(e.id),
2460
+ class: v(["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 ? "" : P(p) ? "bg-emerald-500/5" : "bg-emerald-50/60", P(p) ? "hover:bg-gray-800" : "hover:bg-gray-50"]])
2452
2461
  }, [c("span", {
2453
- class: _(["mt-1.5 w-2 h-2 rounded-full shrink-0", e.read ? M(p) ? "bg-gray-700" : "bg-gray-300" : S[e.type ?? "info"]]),
2462
+ class: v(["mt-1.5 w-2 h-2 rounded-full shrink-0", e.read ? P(p) ? "bg-gray-700" : "bg-gray-300" : S[e.type ?? "info"]]),
2454
2463
  "aria-hidden": "true"
2455
- }, null, 2), c("span", xr, [c("span", Sr, [c("span", { class: _(["text-sm truncate", [e.read ? "font-medium" : "font-semibold", M(m).primaryTextSoft]]) }, j(e.title), 3), e.time ? (w(), s("span", {
2464
+ }, null, 2), c("span", Gr, [c("span", Kr, [c("span", { class: v(["text-sm truncate", [e.read ? "font-medium" : "font-semibold", P(m).primaryTextSoft]]) }, N(e.title), 3), e.time ? (T(), s("span", {
2456
2465
  key: 0,
2457
- class: _(["text-xs shrink-0", M(m).dimText])
2458
- }, j(e.time), 3)) : o("", !0)]), e.message ? (w(), s("span", {
2466
+ class: v(["text-xs shrink-0", P(m).dimText])
2467
+ }, N(e.time), 3)) : o("", !0)]), e.message ? (T(), s("span", {
2459
2468
  key: 0,
2460
- class: _(["mt-0.5 block text-sm", M(m).mutedText])
2461
- }, j(e.message), 3)) : o("", !0)])], 10, br)]))), 128))], 2))])
2462
- ], 10, _r)) : o("", !0)]),
2469
+ class: v(["mt-0.5 block text-sm", P(m).mutedText])
2470
+ }, N(e.message), 3)) : o("", !0)])], 10, Wr)]))), 128))], 2))])
2471
+ ], 10, Vr)) : o("", !0)]),
2463
2472
  _: 1
2464
2473
  })]));
2465
2474
  }
2466
- }), wr = ["disabled"], Tr = /* @__PURE__ */ p({
2475
+ }), Jr = ["disabled"], Yr = /* @__PURE__ */ p({
2467
2476
  __name: "BaseChipButton",
2468
2477
  props: {
2469
2478
  size: { default: "sm" },
@@ -2474,37 +2483,37 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2474
2483
  },
2475
2484
  emits: ["click"],
2476
2485
  setup(e, { emit: t }) {
2477
- let n = t, { isDark: r } = B();
2478
- return (t, i) => (w(), s("button", {
2486
+ let n = t, { isDark: r } = W();
2487
+ return (t, i) => (T(), s("button", {
2479
2488
  type: "button",
2480
2489
  disabled: e.disabled,
2481
- class: _(["inline-flex items-center gap-1 font-medium rounded-md border transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", [e.size === "xs" ? "text-xs px-2 py-0.5" : "text-xs px-2.5 py-1", M(r) ? "text-emerald-300 border-emerald-700 bg-emerald-900/30 hover:bg-emerald-800/50" : "text-emerald-700 border-emerald-200 bg-emerald-50 hover:bg-emerald-100"]]),
2490
+ class: v(["inline-flex items-center gap-1 font-medium rounded-md border transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", [e.size === "xs" ? "text-xs px-2 py-0.5" : "text-xs px-2.5 py-1", P(r) ? "text-emerald-300 border-emerald-700 bg-emerald-900/30 hover:bg-emerald-800/50" : "text-emerald-700 border-emerald-200 bg-emerald-50 hover:bg-emerald-100"]]),
2482
2491
  onClick: i[0] ||= (e) => n("click")
2483
- }, [O(t.$slots, "default")], 10, wr));
2492
+ }, [A(t.$slots, "default")], 10, Jr));
2484
2493
  }
2485
- }), Er = /* @__PURE__ */ p({
2494
+ }), Xr = /* @__PURE__ */ p({
2486
2495
  __name: "BaseRemoveButton",
2487
2496
  emits: ["click"],
2488
2497
  setup(e, { emit: t }) {
2489
2498
  let n = t;
2490
- return (e, t) => (w(), s("button", {
2499
+ return (e, t) => (T(), s("button", {
2491
2500
  type: "button",
2492
2501
  class: "px-2 text-lg leading-none text-red-400 hover:text-red-600 transition-colors cursor-pointer rounded focus:outline-none focus-visible:ring-2 focus-visible:ring-red-400 disabled:cursor-not-allowed disabled:text-gray-400 disabled:hover:text-gray-400",
2493
2502
  onClick: t[0] ||= (e) => n("click")
2494
2503
  }, " × "));
2495
2504
  }
2496
- }), Dr = { class: "relative flex h-2 w-2" }, Or = {
2505
+ }), Zr = { class: "relative flex h-2 w-2" }, Qr = {
2497
2506
  key: 0,
2498
2507
  class: "animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75",
2499
2508
  "aria-hidden": "true"
2500
- }, kr = /* @__PURE__ */ p({
2509
+ }, $r = /* @__PURE__ */ p({
2501
2510
  __name: "BaseStatusPill",
2502
2511
  props: {
2503
2512
  status: {},
2504
2513
  label: {}
2505
2514
  },
2506
2515
  setup(e) {
2507
- let t = e, { isDark: n } = B(), r = i(() => {
2516
+ let t = e, { isDark: n } = W(), r = i(() => {
2508
2517
  switch (t.status) {
2509
2518
  case "ok": return n.value ? "bg-emerald-500/10 text-emerald-400" : "bg-emerald-50 text-emerald-700";
2510
2519
  case "error": return n.value ? "bg-red-500/10 text-red-400" : "bg-red-50 text-red-700";
@@ -2517,13 +2526,13 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2517
2526
  default: return "bg-gray-400";
2518
2527
  }
2519
2528
  });
2520
- return (t, n) => (w(), s("div", { class: _(["flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs", r.value]) }, [c("span", Dr, [e.status === "ok" ? (w(), s("span", Or)) : o("", !0), c("span", { class: _(["relative inline-flex rounded-full h-2 w-2", a.value]) }, null, 2)]), d(" " + j(e.label), 1)], 2));
2529
+ return (t, n) => (T(), s("div", { class: v(["flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs", r.value]) }, [c("span", Zr, [e.status === "ok" ? (T(), s("span", Qr)) : o("", !0), c("span", { class: v(["relative inline-flex rounded-full h-2 w-2", a.value]) }, null, 2)]), d(" " + N(e.label), 1)], 2));
2521
2530
  }
2522
- }), Ar = { class: "text-sm font-medium" }, jr = [
2531
+ }), ei = { class: "text-sm font-medium" }, ti = [
2523
2532
  "accept",
2524
2533
  "multiple",
2525
2534
  "disabled"
2526
- ], Mr = /* @__PURE__ */ p({
2535
+ ], ni = /* @__PURE__ */ p({
2527
2536
  __name: "BaseFileDropzone",
2528
2537
  props: {
2529
2538
  label: {},
@@ -2540,7 +2549,7 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2540
2549
  },
2541
2550
  emits: ["files"],
2542
2551
  setup(e, { emit: t }) {
2543
- let n = e, r = t, { isDark: i } = B(), a = E(!1);
2552
+ let n = e, r = t, { isDark: i } = W(), a = O(!1);
2544
2553
  function l(e) {
2545
2554
  let t = e.target, n = Array.from(t.files ?? []);
2546
2555
  t.value = "", n.length && r("files", n);
@@ -2553,13 +2562,13 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2553
2562
  let t = Array.from(e.dataTransfer?.files ?? []);
2554
2563
  t.length && r("files", n.multiple ? t : t.slice(0, 1));
2555
2564
  }
2556
- return (t, n) => (w(), s("label", {
2557
- class: _(["flex flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed px-6 py-10 text-center transition-colors", [e.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer", a.value ? M(i) ? "border-emerald-500 text-emerald-400" : "border-emerald-500 text-emerald-600" : M(i) ? "border-gray-700 hover:border-emerald-500 text-gray-400 hover:text-emerald-400" : "border-gray-300 hover:border-emerald-500 text-gray-500 hover:text-emerald-600"]]),
2558
- onDragover: I(u, ["prevent"]),
2559
- onDragleave: n[0] ||= I((e) => a.value = !1, ["prevent"]),
2560
- onDrop: I(d, ["prevent"])
2565
+ return (t, n) => (T(), s("label", {
2566
+ class: v(["flex flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed px-6 py-10 text-center transition-colors", [e.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer", a.value ? P(i) ? "border-emerald-500 text-emerald-400" : "border-emerald-500 text-emerald-600" : P(i) ? "border-gray-700 hover:border-emerald-500 text-gray-400 hover:text-emerald-400" : "border-gray-300 hover:border-emerald-500 text-gray-500 hover:text-emerald-600"]]),
2567
+ onDragover: z(u, ["prevent"]),
2568
+ onDragleave: n[0] ||= z((e) => a.value = !1, ["prevent"]),
2569
+ onDrop: z(d, ["prevent"])
2561
2570
  }, [
2562
- O(t.$slots, "icon", {}, () => [n[1] ||= c("svg", {
2571
+ A(t.$slots, "icon", {}, () => [n[1] ||= c("svg", {
2563
2572
  class: "w-10 h-10",
2564
2573
  fill: "none",
2565
2574
  viewBox: "0 0 24 24",
@@ -2571,11 +2580,11 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2571
2580
  "stroke-linejoin": "round",
2572
2581
  d: "M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m6.75 12-3-3m0 0-3 3m3-3v6m-1.5-15H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"
2573
2582
  })], -1)]),
2574
- c("p", Ar, j(e.label), 1),
2575
- e.hint ? (w(), s("p", {
2583
+ c("p", ei, N(e.label), 1),
2584
+ e.hint ? (T(), s("p", {
2576
2585
  key: 0,
2577
- class: _(["text-xs", M(i) ? "text-gray-500" : "text-gray-400"])
2578
- }, j(e.hint), 3)) : o("", !0),
2586
+ class: v(["text-xs", P(i) ? "text-gray-500" : "text-gray-400"])
2587
+ }, N(e.hint), 3)) : o("", !0),
2579
2588
  c("input", {
2580
2589
  type: "file",
2581
2590
  class: "hidden",
@@ -2583,10 +2592,10 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2583
2592
  multiple: e.multiple,
2584
2593
  disabled: e.disabled,
2585
2594
  onChange: l
2586
- }, null, 40, jr)
2595
+ }, null, 40, ti)
2587
2596
  ], 34));
2588
2597
  }
2589
- }), Nr = /* @__PURE__ */ p({
2598
+ }), ri = /* @__PURE__ */ p({
2590
2599
  __name: "BaseCodeBlock",
2591
2600
  props: {
2592
2601
  code: {},
@@ -2595,7 +2604,7 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2595
2604
  maxHeightClass: { default: "" }
2596
2605
  },
2597
2606
  setup(e) {
2598
- let t = e, { isDark: n } = B(), r = {
2607
+ let t = e, { isDark: n } = W(), r = {
2599
2608
  soft: {
2600
2609
  dark: "bg-gray-800/70 text-gray-300",
2601
2610
  light: "bg-gray-100 text-gray-700"
@@ -2611,13 +2620,13 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2611
2620
  let e = r[t.variant];
2612
2621
  return n.value ? e.dark : e.light;
2613
2622
  }), c = i(() => a[t.size]);
2614
- return (t, n) => (w(), s("pre", { class: _(["font-mono overflow-auto", [
2623
+ return (t, n) => (T(), s("pre", { class: v(["font-mono overflow-auto", [
2615
2624
  c.value,
2616
2625
  o.value,
2617
2626
  e.maxHeightClass
2618
- ]]) }, j(e.code), 3));
2627
+ ]]) }, N(e.code), 3));
2619
2628
  }
2620
- }), Pr = ["value", "type"], Q = /* @__PURE__ */ p({
2629
+ }), ii = ["value", "type"], ai = /* @__PURE__ */ p({
2621
2630
  __name: "BaseInput",
2622
2631
  props: {
2623
2632
  modelValue: { default: "" },
@@ -2634,14 +2643,15 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2634
2643
  function r(e) {
2635
2644
  n("update:modelValue", e.target.value);
2636
2645
  }
2637
- return (t, n) => (w(), s("input", {
2646
+ return (t, n) => (T(), s("input", {
2638
2647
  value: e.modelValue,
2639
2648
  type: e.type,
2640
- class: _(["rounded border border-slate-300 dark:border-slate-600 bg-slate-50 dark:bg-slate-900 text-slate-900 dark:text-slate-100 text-sm placeholder:text-slate-400 dark:placeholder:text-slate-500 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:border-emerald-500 disabled:opacity-60 disabled:cursor-not-allowed", [e.block ? "w-full" : "", e.size === "sm" ? "px-2 py-1.5" : "px-3 py-2"]]),
2649
+ class: v(["rounded-lg border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-900 text-slate-900 dark:text-slate-100 text-sm placeholder:text-slate-400 dark:placeholder:text-slate-500 transition-colors hover:border-slate-400 dark:hover:border-slate-500 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/40 focus-visible:border-emerald-500 disabled:opacity-60 disabled:cursor-not-allowed", [e.block ? "w-full" : "", e.size === "sm" ? "px-2 py-1.5" : "px-3 py-2"]]),
2641
2650
  onInput: r
2642
- }, null, 42, Pr));
2651
+ }, null, 42, ii));
2643
2652
  }
2644
- }), Fr = ["value"], Ir = /* @__PURE__ */ p({
2653
+ }), oi = ["value"], si = /* @__PURE__ */ p({
2654
+ inheritAttrs: !1,
2645
2655
  __name: "BaseSelect",
2646
2656
  props: {
2647
2657
  modelValue: { default: void 0 },
@@ -2657,17 +2667,20 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2657
2667
  function r(e) {
2658
2668
  n("update:modelValue", e.target.value);
2659
2669
  }
2660
- return (t, n) => (w(), s("select", {
2670
+ return (t, n) => (T(), s("div", { class: v(["relative", e.block ? "w-full" : "inline-block"]) }, [c("select", g(t.$attrs, {
2661
2671
  value: e.modelValue,
2662
- class: _(["rounded border border-slate-300 dark:border-slate-600 bg-slate-50 dark:bg-slate-900 text-slate-900 dark:text-slate-100 text-sm cursor-pointer transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:border-emerald-500 disabled:opacity-60 disabled:cursor-not-allowed", [e.block ? "w-full" : "", e.size === "md" ? "px-3 py-2" : "px-2 py-1.5"]]),
2672
+ class: ["w-full appearance-none bg-none rounded-lg border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-900 text-slate-900 dark:text-slate-100 text-sm cursor-pointer transition-colors hover:border-slate-400 dark:hover:border-slate-500 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/40 focus-visible:border-emerald-500 disabled:opacity-60 disabled:cursor-not-allowed", e.size === "md" ? "py-2 pl-3 pr-9" : "py-1.5 pl-2.5 pr-8"],
2663
2673
  onChange: r
2664
- }, [O(t.$slots, "default")], 42, Fr));
2674
+ }), [A(t.$slots, "default")], 16, oi), f(P(me), {
2675
+ class: v(["pointer-events-none absolute top-1/2 h-4 w-4 -translate-y-1/2 text-slate-500 dark:text-slate-400", e.size === "md" ? "right-3" : "right-2.5"]),
2676
+ "aria-hidden": "true"
2677
+ }, null, 8, ["class"])], 2));
2665
2678
  }
2666
- }), Lr = [
2679
+ }), ci = [
2667
2680
  "disabled",
2668
2681
  "aria-label",
2669
2682
  "aria-expanded"
2670
- ], Rr = ["aria-label"], zr = ["aria-selected", "title"], Br = ["disabled", "onClick"], Vr = /* @__PURE__ */ p({
2683
+ ], li = ["aria-label"], ui = ["aria-selected", "title"], di = ["disabled", "onClick"], fi = /* @__PURE__ */ p({
2671
2684
  __name: "BaseDropdown",
2672
2685
  props: {
2673
2686
  options: {},
@@ -2688,7 +2701,7 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2688
2701
  },
2689
2702
  emits: ["update:modelValue"],
2690
2703
  setup(t, { emit: n }) {
2691
- let r = t, a = n, l = E(!1), u = E(null), d = i(() => r.options.find((e) => e.value === r.modelValue) ?? null), p = i(() => {
2704
+ let r = t, a = n, l = O(!1), u = O(null), d = i(() => r.options.find((e) => e.value === r.modelValue) ?? null), p = i(() => {
2692
2705
  let e = "flex items-center justify-between gap-2 text-left transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed ";
2693
2706
  if (r.triggerClass) return e + r.triggerClass;
2694
2707
  let t = r.size === "sm" ? "px-3 py-2" : "px-4 py-2.5";
@@ -2703,33 +2716,33 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2703
2716
  function g(e) {
2704
2717
  e.disabled || (a("update:modelValue", e.value), l.value = !1);
2705
2718
  }
2706
- Rt(() => {
2719
+ sn(() => {
2707
2720
  l.value = !1;
2708
2721
  });
2709
- function v(e) {
2722
+ function _(e) {
2710
2723
  l.value && u.value && !u.value.contains(e.target) && (l.value = !1);
2711
2724
  }
2712
- return x(() => document.addEventListener("click", v)), b(() => document.removeEventListener("click", v)), (n, r) => (w(), s("div", {
2725
+ return S(() => document.addEventListener("click", _)), x(() => document.removeEventListener("click", _)), (n, r) => (T(), s("div", {
2713
2726
  ref_key: "rootEl",
2714
2727
  ref: u,
2715
- class: _(t.block ? "relative w-full" : "relative inline-block")
2728
+ class: v(t.block ? "relative w-full" : "relative inline-block")
2716
2729
  }, [c("button", {
2717
2730
  type: "button",
2718
- class: _([p.value, t.block ? "w-full" : ""]),
2731
+ class: v([p.value, t.block ? "w-full" : ""]),
2719
2732
  disabled: t.disabled,
2720
2733
  "aria-label": t.ariaLabel || void 0,
2721
2734
  "aria-haspopup": "listbox",
2722
2735
  "aria-expanded": l.value,
2723
2736
  onClick: h
2724
- }, [c("span", { class: _(["min-w-0 truncate", d.value ? "" : "text-slate-400 dark:text-slate-500"]) }, j(d.value ? d.value.label : t.placeholder), 3), f(M(me), {
2725
- class: _(["shrink-0 transition-transform", [t.chevronClass, l.value ? "rotate-180" : ""]]),
2737
+ }, [c("span", { class: v(["min-w-0 truncate", d.value ? "" : "text-slate-400 dark:text-slate-500"]) }, N(d.value ? d.value.label : t.placeholder), 3), f(P(me), {
2738
+ class: v(["shrink-0 transition-transform", [t.chevronClass, l.value ? "rotate-180" : ""]]),
2726
2739
  "aria-hidden": "true"
2727
- }, null, 8, ["class"])], 10, Lr), l.value ? (w(), s("ul", {
2740
+ }, null, 8, ["class"])], 10, ci), l.value ? (T(), s("ul", {
2728
2741
  key: 0,
2729
2742
  role: "listbox",
2730
2743
  "aria-label": t.ariaLabel || t.placeholder,
2731
2744
  class: "absolute z-20 mt-1 w-full min-w-max max-w-xs max-h-60 overflow-auto rounded-lg border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-900 py-1 shadow-lg focus:outline-none"
2732
- }, [(w(!0), s(e, null, D(t.options, (e) => (w(), s("li", {
2745
+ }, [(T(!0), s(e, null, k(t.options, (e) => (T(), s("li", {
2733
2746
  key: String(e.value),
2734
2747
  role: "option",
2735
2748
  "aria-selected": e.value === t.modelValue,
@@ -2737,15 +2750,15 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2737
2750
  }, [c("button", {
2738
2751
  type: "button",
2739
2752
  disabled: e.disabled,
2740
- class: _(m(e)),
2753
+ class: v(m(e)),
2741
2754
  onClick: (t) => g(e)
2742
- }, j(e.label), 11, Br)], 8, zr))), 128))], 8, Rr)) : o("", !0)], 2));
2755
+ }, N(e.label), 11, di)], 8, ui))), 128))], 8, li)) : o("", !0)], 2));
2743
2756
  }
2744
- }), Hr = ["role", "aria-label"], Ur = [
2757
+ }), pi = ["role", "aria-label"], mi = [
2745
2758
  "aria-pressed",
2746
2759
  "title",
2747
2760
  "onClick"
2748
- ], Wr = "bg-slate-50 dark:bg-slate-900 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-800", Gr = /* @__PURE__ */ p({
2761
+ ], hi = "bg-slate-50 dark:bg-slate-900 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-800", gi = /* @__PURE__ */ p({
2749
2762
  __name: "BaseSegmentedControl",
2750
2763
  props: {
2751
2764
  options: {},
@@ -2762,22 +2775,22 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2762
2775
  let r = t, a = n, o = i(() => r.variant === "toolbar" ? "inline-flex h-9 divide-x divide-slate-300 dark:divide-slate-600 rounded-md border border-slate-300 dark:border-slate-600 overflow-hidden" : "inline-flex rounded border border-slate-300 dark:border-slate-600 overflow-hidden"), c = i(() => r.variant === "toolbar" ? "flex items-center px-3.5 text-xs font-semibold uppercase tracking-wide transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-emerald-500" : `${r.variant === "wide" ? "px-4 py-2" : "px-3 py-2"} text-sm font-medium transition-colors cursor-pointer border-l first:border-l-0 border-slate-300 dark:border-slate-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-emerald-500`), l = i(() => r.variant === "wide" ? "bg-emerald-600 text-white" : "bg-emerald-500 text-white");
2763
2776
  function u(e) {
2764
2777
  let t = e.value === r.modelValue;
2765
- return r.optionClass ? r.optionClass(e, t) : t ? l.value : Wr;
2778
+ return r.optionClass ? r.optionClass(e, t) : t ? l.value : hi;
2766
2779
  }
2767
- return (n, r) => (w(), s("div", {
2780
+ return (n, r) => (T(), s("div", {
2768
2781
  role: t.ariaLabel ? "group" : void 0,
2769
2782
  "aria-label": t.ariaLabel || void 0,
2770
- class: _(o.value)
2771
- }, [(w(!0), s(e, null, D(t.options, (e) => (w(), s("button", {
2783
+ class: v(o.value)
2784
+ }, [(T(!0), s(e, null, k(t.options, (e) => (T(), s("button", {
2772
2785
  key: String(e.value),
2773
2786
  type: "button",
2774
- class: _([c.value, u(e)]),
2787
+ class: v([c.value, u(e)]),
2775
2788
  "aria-pressed": e.value === t.modelValue,
2776
2789
  title: e.title,
2777
2790
  onClick: (t) => a("update:modelValue", e.value)
2778
- }, j(e.label), 11, Ur))), 128))], 10, Hr));
2791
+ }, N(e.label), 11, mi))), 128))], 10, pi));
2779
2792
  }
2780
- }), Kr = { class: "w-full text-sm" }, qr = { class: "bg-slate-50 dark:bg-slate-800/60 text-slate-600 dark:text-slate-300" }, Jr = { class: "text-left" }, Yr = { key: 0 }, Xr = ["colspan"], Zr = /* @__PURE__ */ p({
2793
+ }), _i = { class: "w-full text-sm" }, vi = { class: "bg-slate-50 dark:bg-slate-800/60 text-slate-600 dark:text-slate-300" }, yi = { class: "text-left border-b border-slate-200 dark:border-slate-700" }, bi = { class: "divide-y divide-slate-200 dark:divide-slate-700 [&>tr]:transition-colors [&>tr:hover]:bg-slate-50 dark:[&>tr:hover]:bg-slate-800/40" }, xi = { key: 0 }, Si = ["colspan"], Ci = "overflow-x-auto rounded-xl border border-slate-200 bg-white shadow-sm dark:border-slate-700 dark:bg-slate-900", wi = /* @__PURE__ */ p({
2781
2794
  __name: "BaseTable",
2782
2795
  props: {
2783
2796
  columns: {},
@@ -2785,27 +2798,31 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2785
2798
  type: Boolean,
2786
2799
  default: !1
2787
2800
  },
2788
- emptyText: { default: "No rows." }
2801
+ emptyText: { default: "No rows." },
2802
+ card: {
2803
+ type: Boolean,
2804
+ default: !1
2805
+ }
2789
2806
  },
2790
2807
  setup(t) {
2791
- return (n, r) => (w(), s("table", Kr, [c("thead", qr, [c("tr", Jr, [(w(!0), s(e, null, D(t.columns, (e, t) => (w(), s("th", {
2808
+ return (n, r) => (T(), s("div", { class: v(t.card ? Ci : void 0) }, [c("table", _i, [c("thead", vi, [c("tr", yi, [(T(!0), s(e, null, k(t.columns, (e, t) => (T(), s("th", {
2792
2809
  key: t,
2793
- class: _(["px-4 py-3", e.align === "right" ? "text-right" : ""])
2794
- }, j(e.label), 3))), 128))])]), c("tbody", null, [t.empty ? (w(), s("tr", Yr, [c("td", {
2810
+ class: v(["px-4 py-3", e.align === "right" ? "text-right" : ""])
2811
+ }, N(e.label), 3))), 128))])]), c("tbody", bi, [t.empty ? (T(), s("tr", xi, [c("td", {
2795
2812
  colspan: t.columns.length,
2796
2813
  class: "px-4 py-12 text-center text-slate-500"
2797
- }, [O(n.$slots, "empty", {}, () => [d(j(t.emptyText), 1)])], 8, Xr)])) : o("", !0), O(n.$slots, "default")])]));
2814
+ }, [A(n.$slots, "empty", {}, () => [d(N(t.emptyText), 1)])], 8, Si)])) : o("", !0), A(n.$slots, "default")])])], 2));
2798
2815
  }
2799
- }), Qr = { class: "grid gap-3 md:grid-cols-2" }, $r = {
2816
+ }), Ti = { class: "grid gap-3 md:grid-cols-2" }, Ei = {
2800
2817
  key: 0,
2801
2818
  class: "block text-[11px] uppercase tracking-wide text-slate-500 mb-1"
2802
- }, ei = ["value"], ti = {
2819
+ }, Di = ["value"], Oi = {
2803
2820
  key: 2,
2804
2821
  class: "flex items-center gap-2 mt-4"
2805
- }, ni = ["checked", "onChange"], ri = { class: "text-sm text-slate-900 dark:text-slate-100" }, ii = {
2822
+ }, ki = ["checked", "onChange"], Ai = { class: "text-sm text-slate-900 dark:text-slate-100" }, ji = {
2806
2823
  key: 4,
2807
2824
  class: "text-[11px] text-slate-400 mt-1"
2808
- }, ai = /* @__PURE__ */ p({
2825
+ }, Mi = /* @__PURE__ */ p({
2809
2826
  __name: "BaseSpecFields",
2810
2827
  props: {
2811
2828
  specs: {},
@@ -2832,24 +2849,24 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2832
2849
  let t = e.clipboardData?.getData("text") ?? "";
2833
2850
  /^-?\d*$/.test(t.trim()) || e.preventDefault();
2834
2851
  }
2835
- return (n, f) => (w(), s("div", Qr, [(w(!0), s(e, null, D(t.specs, (f) => (w(), s("div", { key: f.key }, [
2836
- f.type === "boolean" ? o("", !0) : (w(), s("label", $r, j(f.label), 1)),
2837
- f.type === "select" ? (w(), a(Ir, {
2852
+ return (n, f) => (T(), s("div", Ti, [(T(!0), s(e, null, k(t.specs, (f) => (T(), s("div", { key: f.key }, [
2853
+ f.type === "boolean" ? o("", !0) : (T(), s("label", Ei, N(f.label), 1)),
2854
+ f.type === "select" ? (T(), a(si, {
2838
2855
  key: 1,
2839
2856
  modelValue: String(t.params[f.key] ?? ""),
2840
2857
  "onUpdate:modelValue": (e) => r("update", f.key, e)
2841
2858
  }, {
2842
- default: P(() => [(w(!0), s(e, null, D(f.options ?? [], (e) => (w(), s("option", {
2859
+ default: L(() => [(T(!0), s(e, null, k(f.options ?? [], (e) => (T(), s("option", {
2843
2860
  key: e,
2844
2861
  value: e
2845
- }, j(e), 9, ei))), 128))]),
2862
+ }, N(e), 9, Di))), 128))]),
2846
2863
  _: 2
2847
- }, 1032, ["modelValue", "onUpdate:modelValue"])) : f.type === "boolean" ? (w(), s("label", ti, [c("input", {
2864
+ }, 1032, ["modelValue", "onUpdate:modelValue"])) : f.type === "boolean" ? (T(), s("label", Oi, [c("input", {
2848
2865
  checked: !!t.params[f.key],
2849
2866
  type: "checkbox",
2850
2867
  class: "h-4 w-4",
2851
2868
  onChange: (e) => i(f.key, e)
2852
- }, null, 40, ni), c("span", ri, j(f.label), 1)])) : (w(), a(Q, {
2869
+ }, null, 40, ki), c("span", Ai, N(f.label), 1)])) : (T(), a(ai, {
2853
2870
  key: 3,
2854
2871
  modelValue: t.params[f.key],
2855
2872
  type: "number",
@@ -2868,11 +2885,11 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2868
2885
  "onPaste",
2869
2886
  "onUpdate:modelValue"
2870
2887
  ])),
2871
- f.help ? (w(), s("p", ii, j(f.help), 1)) : o("", !0),
2872
- O(n.$slots, "after", { spec: f })
2888
+ f.help ? (T(), s("p", ji, N(f.help), 1)) : o("", !0),
2889
+ A(n.$slots, "after", { spec: f })
2873
2890
  ]))), 128))]));
2874
2891
  }
2875
- }), oi = { class: "mt-1.5 space-y-0.5 px-1" }, si = { class: "text-slate-400 dark:text-slate-500" }, ci = /* @__PURE__ */ p({
2892
+ }), Ni = { class: "mt-1.5 space-y-0.5 px-1" }, Pi = { class: "text-slate-400 dark:text-slate-500" }, Fi = /* @__PURE__ */ p({
2876
2893
  __name: "BaseStatBreakdown",
2877
2894
  props: {
2878
2895
  items: {},
@@ -2891,16 +2908,16 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2891
2908
  function i(e) {
2892
2909
  return !n.signed || e == null ? "text-slate-500 dark:text-slate-400" : e >= 0 ? "text-emerald-600 dark:text-emerald-400" : "text-red-600 dark:text-red-400";
2893
2910
  }
2894
- return (n, a) => (w(), s("div", oi, [(w(!0), s(e, null, D(t.items, (e) => (w(), s("div", {
2911
+ return (n, a) => (T(), s("div", Ni, [(T(!0), s(e, null, k(t.items, (e) => (T(), s("div", {
2895
2912
  key: e.label,
2896
2913
  class: "flex items-center justify-between text-[11px]"
2897
- }, [c("span", si, j(e.label), 1), c("span", { class: _(["font-mono tabular-nums font-medium", i(e.value)]) }, j(r(e.value)), 3)]))), 128))]));
2914
+ }, [c("span", Pi, N(e.label), 1), c("span", { class: v(["font-mono tabular-nums font-medium", i(e.value)]) }, N(r(e.value)), 3)]))), 128))]));
2898
2915
  }
2899
- }), li = [
2916
+ }), Ii = [
2900
2917
  "disabled",
2901
2918
  "title",
2902
2919
  "aria-pressed"
2903
- ], ui = /* @__PURE__ */ p({
2920
+ ], Li = /* @__PURE__ */ p({
2904
2921
  __name: "BaseFilterChip",
2905
2922
  props: {
2906
2923
  label: { default: "" },
@@ -2929,21 +2946,21 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2929
2946
  red: "border-red-500 bg-red-500 text-white hover:bg-red-600 focus-visible:ring-red-500",
2930
2947
  slate: "border-slate-600 bg-slate-600 text-white hover:bg-slate-700 focus-visible:ring-emerald-500"
2931
2948
  };
2932
- return (r, i) => (w(), s("button", {
2949
+ return (r, i) => (T(), s("button", {
2933
2950
  type: "button",
2934
2951
  disabled: e.disabled,
2935
2952
  title: e.title,
2936
2953
  "aria-pressed": e.active,
2937
- class: _(["whitespace-nowrap rounded-md border px-3 text-sm font-semibold text-center transition-colors focus:outline-none focus-visible:ring-2 disabled:opacity-50 disabled:cursor-not-allowed", e.active ? n[e.color] : t[e.color]])
2938
- }, [O(r.$slots, "default", {}, () => [d(j(e.label), 1)])], 10, li));
2954
+ class: v(["whitespace-nowrap rounded-md border px-3 text-sm font-semibold text-center transition-colors focus:outline-none focus-visible:ring-2 disabled:opacity-50 disabled:cursor-not-allowed", e.active ? n[e.color] : t[e.color]])
2955
+ }, [A(r.$slots, "default", {}, () => [d(N(e.label), 1)])], 10, Ii));
2939
2956
  }
2940
- }), di = { class: "flex items-center justify-between mb-4" }, fi = { class: "text-lg font-semibold text-slate-900 dark:text-slate-100" }, pi = {
2957
+ }), Ri = { class: "flex items-center justify-between mb-4" }, zi = { class: "text-lg font-semibold text-slate-900 dark:text-slate-100" }, Bi = {
2941
2958
  key: 0,
2942
2959
  class: "text-xs text-slate-500 dark:text-slate-400"
2943
- }, mi = {
2960
+ }, Vi = {
2944
2961
  key: 0,
2945
2962
  class: "inline-flex items-center gap-2 text-xs text-slate-500"
2946
- }, hi = { class: "grid gap-4 md:grid-cols-2" }, gi = { class: "md:col-span-2" }, _i = ["for"], vi = { class: "md:col-span-2" }, yi = ["for"], bi = { class: "text-[11px] text-slate-500 mt-1" }, xi = { class: "md:col-span-2" }, Si = ["for"], Ci = { class: "md:col-span-2" }, wi = ["for"], Ti = { class: "md:col-span-2" }, Ei = "placeholder:text-slate-400 dark:placeholder:text-slate-500 font-mono", Di = /* @__PURE__ */ p({
2963
+ }, Hi = { class: "grid gap-4 md:grid-cols-2" }, Ui = { class: "md:col-span-2" }, Wi = ["for"], Gi = { class: "md:col-span-2" }, Ki = ["for"], qi = { class: "text-[11px] text-slate-500 mt-1" }, Ji = { class: "md:col-span-2" }, Yi = ["for"], Xi = { class: "md:col-span-2" }, Zi = ["for"], Qi = { class: "md:col-span-2" }, $i = "placeholder:text-slate-400 dark:placeholder:text-slate-500 font-mono", ea = /* @__PURE__ */ p({
2947
2964
  __name: "BaseCredentialsForm",
2948
2965
  props: {
2949
2966
  title: {},
@@ -2969,7 +2986,7 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2969
2986
  "load-error"
2970
2987
  ],
2971
2988
  setup(t, { expose: n, emit: r }) {
2972
- let i = t, l = r, u = E(!1), p = E(!1), m = T({
2989
+ let i = t, l = r, u = O(!1), p = O(!1), m = E({
2973
2990
  keyId: "",
2974
2991
  secretKey: "",
2975
2992
  baseUrl: i.defaults.baseUrl,
@@ -2986,7 +3003,7 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
2986
3003
  function g(e) {
2987
3004
  return !e || !e.trim();
2988
3005
  }
2989
- async function v() {
3006
+ async function _() {
2990
3007
  if (!u.value) {
2991
3008
  if (g(m.keyId)) {
2992
3009
  l("error", i.requiredKeyMessage);
@@ -3016,76 +3033,76 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
3016
3033
  }
3017
3034
  }
3018
3035
  }
3019
- return x(h), n({ load: h }), (n, r) => (w(), a(pt, { class: "!p-6" }, {
3020
- default: P(() => [
3021
- c("div", di, [c("div", null, [c("h2", fi, j(t.title), 1), t.subtitle ? (w(), s("p", pi, j(t.subtitle), 1)) : o("", !0)]), u.value ? (w(), s("span", mi, [f(mt, { class: "!h-4 !w-4" }), r[4] ||= d(" Saving… ", -1)])) : o("", !0)]),
3022
- c("div", hi, [
3023
- c("div", gi, [c("label", {
3036
+ return S(h), n({ load: h }), (n, r) => (T(), a(Ft, { class: "!p-6" }, {
3037
+ default: L(() => [
3038
+ c("div", Ri, [c("div", null, [c("h2", zi, N(t.title), 1), t.subtitle ? (T(), s("p", Bi, N(t.subtitle), 1)) : o("", !0)]), u.value ? (T(), s("span", Vi, [f(It, { class: "!h-4 !w-4" }), r[4] ||= d(" Saving… ", -1)])) : o("", !0)]),
3039
+ c("div", Hi, [
3040
+ c("div", Ui, [c("label", {
3024
3041
  for: `${t.idPrefix}-key-id`,
3025
3042
  class: "block text-xs uppercase tracking-wide text-slate-500 mb-1"
3026
- }, j(t.keyLabel), 9, _i), f(Q, {
3043
+ }, N(t.keyLabel), 9, Wi), f(ai, {
3027
3044
  id: `${t.idPrefix}-key-id`,
3028
3045
  modelValue: m.keyId,
3029
3046
  "onUpdate:modelValue": r[0] ||= (e) => m.keyId = e,
3030
3047
  type: "text",
3031
3048
  autocomplete: "off",
3032
3049
  placeholder: t.keyPlaceholder,
3033
- class: _(Ei)
3050
+ class: v($i)
3034
3051
  }, null, 8, [
3035
3052
  "id",
3036
3053
  "modelValue",
3037
3054
  "placeholder"
3038
3055
  ])]),
3039
- c("div", vi, [
3056
+ c("div", Gi, [
3040
3057
  c("label", {
3041
3058
  for: `${t.idPrefix}-secret`,
3042
3059
  class: "block text-xs uppercase tracking-wide text-slate-500 mb-1"
3043
- }, j(t.secretLabel), 9, yi),
3044
- f(Q, {
3060
+ }, N(t.secretLabel), 9, Ki),
3061
+ f(ai, {
3045
3062
  id: `${t.idPrefix}-secret`,
3046
3063
  modelValue: m.secretKey,
3047
3064
  "onUpdate:modelValue": r[1] ||= (e) => m.secretKey = e,
3048
3065
  type: "password",
3049
3066
  autocomplete: "new-password",
3050
3067
  placeholder: p.value ? "•••••••• (unchanged — type to replace)" : t.secretPlaceholder,
3051
- class: _(Ei)
3068
+ class: v($i)
3052
3069
  }, null, 8, [
3053
3070
  "id",
3054
3071
  "modelValue",
3055
3072
  "placeholder"
3056
3073
  ]),
3057
- c("p", bi, [p.value ? (w(), s(e, { key: 0 }, [d(j(t.secretSetHint), 1)], 64)) : O(n.$slots, "no-secret-hint", {}, () => [d(j(t.permissionsHint), 1)], void 0, 1)])
3074
+ c("p", qi, [p.value ? (T(), s(e, { key: 0 }, [d(N(t.secretSetHint), 1)], 64)) : A(n.$slots, "no-secret-hint", {}, () => [d(N(t.permissionsHint), 1)], void 0, 1)])
3058
3075
  ]),
3059
- c("div", xi, [
3076
+ c("div", Ji, [
3060
3077
  c("label", {
3061
3078
  for: `${t.idPrefix}-base-url`,
3062
3079
  class: "block text-xs uppercase tracking-wide text-slate-500 mb-1"
3063
- }, "Base URL (trading)", 8, Si),
3064
- f(Q, {
3080
+ }, "Base URL (trading)", 8, Yi),
3081
+ f(ai, {
3065
3082
  id: `${t.idPrefix}-base-url`,
3066
3083
  modelValue: m.baseUrl,
3067
3084
  "onUpdate:modelValue": r[2] ||= (e) => m.baseUrl = e,
3068
3085
  type: "text",
3069
- class: _(Ei)
3086
+ class: v($i)
3070
3087
  }, null, 8, ["id", "modelValue"]),
3071
- O(n.$slots, "base-url-extra", { form: m })
3088
+ A(n.$slots, "base-url-extra", { form: m })
3072
3089
  ]),
3073
- c("div", Ci, [c("label", {
3090
+ c("div", Xi, [c("label", {
3074
3091
  for: `${t.idPrefix}-data-url`,
3075
3092
  class: "block text-xs uppercase tracking-wide text-slate-500 mb-1"
3076
- }, "Data URL (market data)", 8, wi), f(Q, {
3093
+ }, "Data URL (market data)", 8, Zi), f(ai, {
3077
3094
  id: `${t.idPrefix}-data-url`,
3078
3095
  modelValue: m.dataUrl,
3079
3096
  "onUpdate:modelValue": r[3] ||= (e) => m.dataUrl = e,
3080
3097
  type: "text",
3081
- class: _(Ei)
3098
+ class: v($i)
3082
3099
  }, null, 8, ["id", "modelValue"])]),
3083
- c("div", Ti, [f(W, {
3084
- color: M(H).GREEN,
3100
+ c("div", Qi, [f(Qe, {
3101
+ color: P(K).GREEN,
3085
3102
  description: t.saveLabel,
3086
3103
  isDisable: u.value,
3087
3104
  isLoading: u.value,
3088
- onClick: v
3105
+ onClick: _
3089
3106
  }, null, 8, [
3090
3107
  "color",
3091
3108
  "description",
@@ -3093,21 +3110,21 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
3093
3110
  "isLoading"
3094
3111
  ])])
3095
3112
  ]),
3096
- O(n.$slots, "footer")
3113
+ A(n.$slots, "footer")
3097
3114
  ]),
3098
3115
  _: 3
3099
3116
  }));
3100
3117
  }
3101
- }), Oi = {
3118
+ }), ta = {
3102
3119
  key: 0,
3103
3120
  class: "text-sm text-slate-500 dark:text-slate-400"
3104
- }, ki = { class: "mb-3 flex flex-wrap items-center gap-2" }, Ai = { class: "relative min-w-[200px] flex-1" }, ji = ["placeholder"], Mi = {
3121
+ }, na = { class: "mb-3 flex flex-wrap items-center gap-2" }, ra = { class: "relative min-w-[200px] flex-1" }, ia = ["placeholder"], aa = {
3105
3122
  key: 0,
3106
3123
  class: "text-sm text-slate-500 dark:text-slate-400"
3107
- }, Ni = {
3124
+ }, oa = {
3108
3125
  key: 1,
3109
3126
  class: "flex flex-wrap gap-2"
3110
- }, Pi = ["title", "onClick"], Fi = "h-9 rounded-md border border-slate-300 dark:border-slate-600 bg-slate-50 dark:bg-slate-900 text-slate-900 dark:text-slate-100 text-sm focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", Ii = "\0all", Li = /* @__PURE__ */ p({
3127
+ }, sa = ["title", "onClick"], ca = "h-9 rounded-md border border-slate-300 dark:border-slate-600 bg-slate-50 dark:bg-slate-900 text-slate-900 dark:text-slate-100 text-sm focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", la = "\0all", ua = /* @__PURE__ */ p({
3111
3128
  __name: "BasePillPickerModal",
3112
3129
  props: {
3113
3130
  title: {},
@@ -3129,11 +3146,11 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
3129
3146
  },
3130
3147
  emits: ["pick", "close"],
3131
3148
  setup(t, { emit: n }) {
3132
- let r = t, l = n, u = i(() => r.icon ?? Ce), d = E(""), p = E(Ii), m = i(() => r.groups && r.groups.length > 0 ? [{
3133
- value: Ii,
3149
+ let r = t, l = n, u = i(() => r.icon ?? Ce), d = O(""), p = O(la), m = i(() => r.groups && r.groups.length > 0 ? [{
3150
+ value: la,
3134
3151
  label: r.allLabel
3135
- }, ...r.groups] : []), h = i(() => r.items.filter((e) => (p.value === Ii || e.group === p.value) && e.label.toLowerCase().includes(d.value.trim().toLowerCase())));
3136
- return (n, r) => (w(), a(qt, {
3152
+ }, ...r.groups] : []), h = i(() => r.items.filter((e) => (p.value === la || e.group === p.value) && e.label.toLowerCase().includes(d.value.trim().toLowerCase())));
3153
+ return (n, r) => (T(), a(gn, {
3137
3154
  title: t.title,
3138
3155
  icon: u.value,
3139
3156
  subtitle: t.subtitle,
@@ -3141,32 +3158,32 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
3141
3158
  "max-width-class": t.maxWidthClass,
3142
3159
  onCancel: r[4] ||= (e) => l("close")
3143
3160
  }, {
3144
- footer: P(() => [f(Yn, {
3161
+ footer: L(() => [f(yr, {
3145
3162
  variant: "ghost",
3146
3163
  label: t.closeText,
3147
3164
  onClick: r[3] ||= (e) => l("close")
3148
3165
  }, null, 8, ["label"])]),
3149
- default: P(() => [t.items.length === 0 ? (w(), s("p", Oi, j(t.emptyMessage), 1)) : (w(), s(e, { key: 1 }, [c("div", ki, [c("div", Ai, [
3150
- f(M(Ce), { class: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400" }),
3151
- F(c("input", {
3166
+ default: L(() => [t.items.length === 0 ? (T(), s("p", ta, N(t.emptyMessage), 1)) : (T(), s(e, { key: 1 }, [c("div", na, [c("div", ra, [
3167
+ f(P(Ce), { class: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400" }),
3168
+ R(c("input", {
3152
3169
  "onUpdate:modelValue": r[0] ||= (e) => d.value = e,
3153
3170
  type: "text",
3154
3171
  placeholder: t.searchPlaceholder,
3155
3172
  autocomplete: "off",
3156
- class: _([
3157
- Fi,
3173
+ class: v([
3174
+ ca,
3158
3175
  "w-full pl-9 pr-8 placeholder:text-slate-400 dark:placeholder:text-slate-500",
3159
3176
  t.mono ? "font-mono" : ""
3160
3177
  ])
3161
- }, null, 10, ji), [[ie, d.value]]),
3162
- d.value ? (w(), s("button", {
3178
+ }, null, 10, ia), [[re, d.value]]),
3179
+ d.value ? (T(), s("button", {
3163
3180
  key: 0,
3164
3181
  type: "button",
3165
3182
  "aria-label": "Clear the filter",
3166
3183
  class: "absolute right-2 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 dark:hover:text-slate-200",
3167
3184
  onClick: r[1] ||= (e) => d.value = ""
3168
3185
  }, " ✕ ")) : o("", !0)
3169
- ]), m.value.length > 0 ? (w(), a(Gr, {
3186
+ ]), m.value.length > 0 ? (T(), a(gi, {
3170
3187
  key: 0,
3171
3188
  modelValue: p.value,
3172
3189
  "onUpdate:modelValue": r[2] ||= (e) => p.value = e,
@@ -3176,13 +3193,13 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
3176
3193
  "modelValue",
3177
3194
  "options",
3178
3195
  "aria-label"
3179
- ])) : o("", !0)]), h.value.length === 0 ? (w(), s("p", Mi, j(t.noMatchMessage), 1)) : (w(), s("div", Ni, [(w(!0), s(e, null, D(h.value, (e) => (w(), s("button", {
3196
+ ])) : o("", !0)]), h.value.length === 0 ? (T(), s("p", aa, N(t.noMatchMessage), 1)) : (T(), s("div", oa, [(T(!0), s(e, null, k(h.value, (e) => (T(), s("button", {
3180
3197
  key: e.id,
3181
3198
  type: "button",
3182
3199
  title: e.title,
3183
- class: _(["h-8 shrink-0 rounded-md border border-slate-300 dark:border-slate-600 bg-slate-50 dark:bg-slate-900 px-3 text-sm text-slate-700 dark:text-slate-200 transition-colors hover:border-emerald-500 hover:bg-emerald-50 hover:text-emerald-700 dark:hover:bg-emerald-500/10 dark:hover:text-emerald-400 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", t.mono ? "font-mono" : ""]),
3200
+ class: v(["h-8 shrink-0 rounded-md border border-slate-300 dark:border-slate-600 bg-slate-50 dark:bg-slate-900 px-3 text-sm text-slate-700 dark:text-slate-200 transition-colors hover:border-emerald-500 hover:bg-emerald-50 hover:text-emerald-700 dark:hover:bg-emerald-500/10 dark:hover:text-emerald-400 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500", t.mono ? "font-mono" : ""]),
3184
3201
  onClick: (t) => l("pick", e)
3185
- }, j(e.label), 11, Pi))), 128))]))], 64))]),
3202
+ }, N(e.label), 11, sa))), 128))]))], 64))]),
3186
3203
  _: 1
3187
3204
  }, 8, [
3188
3205
  "title",
@@ -3191,7 +3208,7 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
3191
3208
  "max-width-class"
3192
3209
  ]));
3193
3210
  }
3194
- }), Ri = ["aria-label"], zi = ["title"], Bi = { class: "text-[10px] tabular-nums text-slate-400 dark:text-slate-500" }, Vi = ["title"], Hi = /* @__PURE__ */ p({
3211
+ }), da = ["aria-label"], fa = ["title"], pa = { class: "text-[10px] tabular-nums text-slate-400 dark:text-slate-500" }, ma = ["title"], ha = /* @__PURE__ */ p({
3195
3212
  __name: "BaseBarDistribution",
3196
3213
  props: {
3197
3214
  bars: {},
@@ -3203,27 +3220,27 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
3203
3220
  },
3204
3221
  setup(t) {
3205
3222
  let n = t, r = i(() => Math.max(1, ...n.bars.map((e) => e.count))), a = (e) => Math.max(3, Math.round(e.count / r.value * n.maxBarHeight)), o = (e) => `${n.titlePrefix ? `${n.titlePrefix} ` : ""}${e.label}: ${e.count} ${n.countNoun}${e.count === 1 ? "" : "s"}`;
3206
- return (n, r) => (w(), s("div", {
3223
+ return (n, r) => (T(), s("div", {
3207
3224
  class: "flex items-end gap-1.5 overflow-x-auto pb-1",
3208
3225
  role: "img",
3209
3226
  "aria-label": t.ariaLabel
3210
- }, [(w(!0), s(e, null, D(t.bars, (e) => (w(), s("div", {
3227
+ }, [(T(!0), s(e, null, k(t.bars, (e) => (T(), s("div", {
3211
3228
  key: e.label,
3212
3229
  class: "flex min-w-7 flex-1 flex-col items-center gap-0.5",
3213
3230
  title: o(e)
3214
3231
  }, [
3215
- c("span", Bi, j(e.count), 1),
3232
+ c("span", pa, N(e.count), 1),
3216
3233
  c("div", {
3217
- class: _(["w-full max-w-8 rounded-t", t.barClass]),
3218
- style: y({ height: `${a(e)}px` })
3234
+ class: v(["w-full max-w-8 rounded-t", t.barClass]),
3235
+ style: b({ height: `${a(e)}px` })
3219
3236
  }, null, 6),
3220
3237
  c("span", {
3221
3238
  class: "max-w-full truncate font-mono text-[10px] text-slate-500 dark:text-slate-400",
3222
3239
  title: e.label
3223
- }, j(e.label), 9, Vi)
3224
- ], 8, zi))), 128))], 8, Ri));
3240
+ }, N(e.label), 9, ma)
3241
+ ], 8, fa))), 128))], 8, da));
3225
3242
  }
3226
- }), Ui = /* @__PURE__ */ p({
3243
+ }), ga = /* @__PURE__ */ p({
3227
3244
  __name: "BaseDateTimePicker",
3228
3245
  props: {
3229
3246
  modelValue: { default: null },
@@ -3245,7 +3262,7 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
3245
3262
  },
3246
3263
  emits: ["update:modelValue"],
3247
3264
  setup(e, { emit: t }) {
3248
- let n = e, r = t, { isDark: o } = B(), s = i(() => ({
3265
+ let n = e, r = t, { isDark: o } = W(), s = i(() => ({
3249
3266
  enableTimePicker: n.mode !== "date",
3250
3267
  is24: n.is24,
3251
3268
  ...n.timeConfig
@@ -3254,18 +3271,18 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
3254
3271
  let e = n.is24 ? "HH:mm" : "hh:mm a";
3255
3272
  return n.mode === "date" ? { input: "dd/MM/yyyy" } : n.mode === "time" ? { input: e } : { input: `dd/MM/yyyy ${e}` };
3256
3273
  });
3257
- return (t, n) => (w(), a(M(je), {
3274
+ return (t, n) => (T(), a(P(je), {
3258
3275
  "model-value": e.modelValue,
3259
- dark: M(o),
3276
+ dark: P(o),
3260
3277
  "time-picker": e.mode === "time",
3261
3278
  "time-config": s.value,
3262
3279
  formats: c.value,
3263
3280
  "auto-apply": e.autoApply,
3264
3281
  teleport: e.teleport,
3265
3282
  "onUpdate:modelValue": n[0] ||= (e) => r("update:modelValue", e)
3266
- }, l({ _: 2 }, [D(t.$slots, (e, n) => ({
3283
+ }, l({ _: 2 }, [k(t.$slots, (e, n) => ({
3267
3284
  name: n,
3268
- fn: P((e) => [O(t.$slots, n, v(h(e ?? {})))])
3285
+ fn: L((e) => [A(t.$slots, n, y(h(e ?? {})))])
3269
3286
  }))]), 1032, [
3270
3287
  "model-value",
3271
3288
  "dark",
@@ -3276,32 +3293,522 @@ var _n = ["aria-label", "aria-expanded"], vn = { class: "flex flex-col h-full" }
3276
3293
  "teleport"
3277
3294
  ]));
3278
3295
  }
3296
+ }), _a = { class: "flex min-w-0 flex-1 flex-wrap items-center gap-1" }, va = { class: "truncate" }, ya = [
3297
+ "aria-label",
3298
+ "disabled",
3299
+ "onClick"
3300
+ ], ba = [
3301
+ "disabled",
3302
+ "readonly",
3303
+ "aria-label",
3304
+ "aria-expanded",
3305
+ "aria-activedescendant",
3306
+ "placeholder"
3307
+ ], xa = ["aria-multiselectable"], Sa = [
3308
+ "id",
3309
+ "aria-selected",
3310
+ "aria-disabled",
3311
+ "title",
3312
+ "onMouseenter",
3313
+ "onClick"
3314
+ ], Ca = { class: "truncate" }, wa = {
3315
+ key: 0,
3316
+ class: "px-3 py-2 text-sm text-slate-500 dark:text-slate-400"
3317
+ }, Ta = /* @__PURE__ */ p({
3318
+ __name: "BaseSearchSelect",
3319
+ props: {
3320
+ options: {},
3321
+ modelValue: { default: null },
3322
+ multiple: {
3323
+ type: Boolean,
3324
+ default: !1
3325
+ },
3326
+ placeholder: { default: "Select" },
3327
+ searchable: {
3328
+ type: Boolean,
3329
+ default: !0
3330
+ },
3331
+ clearable: {
3332
+ type: Boolean,
3333
+ default: !0
3334
+ },
3335
+ block: {
3336
+ type: Boolean,
3337
+ default: !0
3338
+ },
3339
+ disabled: {
3340
+ type: Boolean,
3341
+ default: !1
3342
+ },
3343
+ ariaLabel: { default: "" },
3344
+ noResultsText: { default: "No matches." },
3345
+ emptyText: { default: "No options." }
3346
+ },
3347
+ emits: ["update:modelValue"],
3348
+ setup(t, { emit: n }) {
3349
+ let r = t, l = n, u = O(null), d = O(null), p = O(!1), m = O(""), h = O(-1), g = `search-select-${ee()}`, y = i(() => {
3350
+ let e = r.modelValue;
3351
+ return Array.isArray(e) ? [...e] : e == null || e === "" ? [] : [e];
3352
+ }), b = i(() => y.value.map((e) => r.options.find((t) => t.value === e)).filter((e) => !!e)), C = i(() => y.value.length > 0), w = i(() => !r.multiple && b.value.length > 0), E = i(() => w.value ? b.value[0].label : r.multiple && C.value ? "" : r.placeholder), D = i(() => {
3353
+ let e = m.value.trim().toLowerCase();
3354
+ return e ? r.options.filter((t) => t.label.toLowerCase().includes(e)) : [...r.options];
3355
+ });
3356
+ I(D, (e) => {
3357
+ h.value = e.findIndex((e) => !e.disabled);
3358
+ });
3359
+ function A(e) {
3360
+ return y.value.includes(e.value);
3361
+ }
3362
+ function j(e, t) {
3363
+ return e.disabled ? "cursor-not-allowed text-slate-400 dark:text-slate-600" : A(e) ? t === h.value ? "bg-emerald-600 text-white" : "bg-emerald-500 text-white" : t === h.value ? "bg-slate-100 text-slate-900 dark:bg-slate-800 dark:text-slate-100" : "text-slate-700 dark:text-slate-200";
3364
+ }
3365
+ function M() {
3366
+ r.disabled || p.value || (p.value = !0, h.value = D.value.findIndex((e) => !e.disabled));
3367
+ }
3368
+ function F() {
3369
+ p.value = !1, m.value = "";
3370
+ }
3371
+ function te(e) {
3372
+ r.disabled || (e.target !== d.value && e.preventDefault(), p.value && e.target !== d.value ? F() : (d.value?.focus(), M()));
3373
+ }
3374
+ function ne(e) {
3375
+ if (!e.disabled) {
3376
+ if (r.multiple) {
3377
+ let t = A(e) ? y.value.filter((t) => t !== e.value) : [...y.value, e.value];
3378
+ l("update:modelValue", t), m.value = "", _(() => d.value?.focus());
3379
+ } else l("update:modelValue", e.value), F(), d.value?.blur();
3380
+ }
3381
+ }
3382
+ function L(e) {
3383
+ l("update:modelValue", y.value.filter((t) => t !== e.value));
3384
+ }
3385
+ function ae() {
3386
+ l("update:modelValue", r.multiple ? [] : null), m.value = "";
3387
+ }
3388
+ function oe(e) {
3389
+ let t = D.value;
3390
+ if (t.length === 0) return;
3391
+ let n = h.value;
3392
+ for (let r = 0; r < t.length && (n = (n + e + t.length) % t.length, t[n].disabled); r++);
3393
+ h.value = n, _(() => document.getElementById(`${g}-${n}`)?.scrollIntoView?.({ block: "nearest" }));
3394
+ }
3395
+ function se(e) {
3396
+ switch (e.key) {
3397
+ case "ArrowDown":
3398
+ e.preventDefault(), p.value ? oe(1) : M();
3399
+ break;
3400
+ case "ArrowUp":
3401
+ e.preventDefault(), p.value ? oe(-1) : M();
3402
+ break;
3403
+ case "Enter":
3404
+ p.value && h.value >= 0 && (e.preventDefault(), ne(D.value[h.value]));
3405
+ break;
3406
+ case "Escape":
3407
+ p.value && (e.preventDefault(), F());
3408
+ break;
3409
+ case "Tab":
3410
+ F();
3411
+ break;
3412
+ case "Backspace": r.multiple && m.value === "" && b.value.length && L(b.value[b.value.length - 1]);
3413
+ }
3414
+ }
3415
+ function ce(e) {
3416
+ p.value && u.value && !u.value.contains(e.target) && F();
3417
+ }
3418
+ return S(() => document.addEventListener("mousedown", ce)), x(() => document.removeEventListener("mousedown", ce)), (n, r) => (T(), s("div", {
3419
+ ref_key: "rootEl",
3420
+ ref: u,
3421
+ class: v(t.block ? "relative w-full" : "relative inline-block min-w-48")
3422
+ }, [c("div", {
3423
+ class: v(["flex min-h-[38px] items-center gap-1.5 rounded-lg border bg-white px-3 py-1.5 text-sm transition-colors dark:bg-slate-900", [p.value ? "border-emerald-500 ring-2 ring-emerald-500/30" : "border-slate-300 hover:border-slate-400 dark:border-slate-600 dark:hover:border-slate-500", t.disabled ? "cursor-not-allowed opacity-60" : "cursor-text"]]),
3424
+ onMousedown: te
3425
+ }, [
3426
+ c("div", _a, [(T(!0), s(e, null, k(b.value, (e) => R((T(), s("span", {
3427
+ key: String(e.value),
3428
+ class: "inline-flex max-w-full items-center gap-1 rounded-md bg-emerald-50 py-0.5 pl-2 pr-1 text-xs font-medium text-emerald-700 dark:bg-emerald-500/15 dark:text-emerald-300"
3429
+ }, [c("span", va, N(e.label), 1), c("button", {
3430
+ type: "button",
3431
+ class: "rounded p-0.5 hover:bg-emerald-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 dark:hover:bg-emerald-500/25",
3432
+ "aria-label": `Remove ${e.label}`,
3433
+ disabled: t.disabled,
3434
+ onMousedown: r[0] ||= z(() => {}, ["stop", "prevent"]),
3435
+ onClick: z((t) => L(e), ["stop"])
3436
+ }, [f(P(B), {
3437
+ class: "h-3 w-3",
3438
+ "aria-hidden": "true"
3439
+ })], 40, ya)])), [[ie, t.multiple]])), 128)), R(c("input", {
3440
+ ref_key: "inputEl",
3441
+ ref: d,
3442
+ "onUpdate:modelValue": r[1] ||= (e) => m.value = e,
3443
+ type: "text",
3444
+ role: "combobox",
3445
+ autocomplete: "off",
3446
+ disabled: t.disabled,
3447
+ readonly: !t.searchable,
3448
+ "aria-label": t.ariaLabel || t.placeholder,
3449
+ "aria-autocomplete": "list",
3450
+ "aria-expanded": p.value,
3451
+ "aria-controls": g,
3452
+ "aria-activedescendant": p.value && h.value >= 0 ? `${g}-${h.value}` : void 0,
3453
+ placeholder: E.value,
3454
+ class: v(["min-w-16 flex-1 border-0 bg-transparent p-0 py-0.5 text-sm text-slate-900 outline-none focus:ring-0 dark:text-slate-100 disabled:cursor-not-allowed", w.value ? "placeholder:text-slate-900 dark:placeholder:text-slate-100" : "placeholder:text-slate-400 dark:placeholder:text-slate-500"]),
3455
+ onFocus: M,
3456
+ onInput: M,
3457
+ onKeydown: se
3458
+ }, null, 42, ba), [[re, m.value]])]),
3459
+ t.clearable && C.value && !t.disabled ? (T(), s("button", {
3460
+ key: 0,
3461
+ type: "button",
3462
+ class: "shrink-0 rounded p-0.5 text-slate-400 hover:text-slate-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 dark:hover:text-slate-200",
3463
+ "aria-label": "Clear selection",
3464
+ onMousedown: r[2] ||= z(() => {}, ["stop", "prevent"]),
3465
+ onClick: z(ae, ["stop"])
3466
+ }, [f(P(B), {
3467
+ class: "h-4 w-4",
3468
+ "aria-hidden": "true"
3469
+ })], 32)) : o("", !0),
3470
+ f(P(me), {
3471
+ class: v(["h-4 w-4 shrink-0 text-slate-500 transition-transform dark:text-slate-400", p.value ? "rotate-180" : ""]),
3472
+ "aria-hidden": "true"
3473
+ }, null, 8, ["class"])
3474
+ ], 34), p.value ? (T(), s("ul", {
3475
+ key: 0,
3476
+ id: g,
3477
+ role: "listbox",
3478
+ "aria-multiselectable": t.multiple || void 0,
3479
+ class: "absolute z-30 mt-1 max-h-60 w-full overflow-auto rounded-lg border border-slate-200 bg-white py-1 shadow-lg dark:border-slate-700 dark:bg-slate-900"
3480
+ }, [(T(!0), s(e, null, k(D.value, (e, t) => (T(), s("li", {
3481
+ id: `${g}-${t}`,
3482
+ key: String(e.value),
3483
+ role: "option",
3484
+ "aria-selected": A(e),
3485
+ "aria-disabled": e.disabled || void 0,
3486
+ title: e.title,
3487
+ class: v(["flex cursor-pointer items-center justify-between gap-2 px-3 py-2 text-left text-sm", j(e, t)]),
3488
+ onMousedown: r[3] ||= z(() => {}, ["prevent"]),
3489
+ onMouseenter: (e) => h.value = t,
3490
+ onClick: (t) => ne(e)
3491
+ }, [c("span", Ca, N(e.label), 1), A(e) ? (T(), a(P(de), {
3492
+ key: 0,
3493
+ class: "h-4 w-4 shrink-0",
3494
+ "aria-hidden": "true"
3495
+ })) : o("", !0)], 42, Sa))), 128)), D.value.length === 0 ? (T(), s("li", wa, N(t.options.length === 0 ? t.emptyText : t.noResultsText), 1)) : o("", !0)], 8, xa)) : o("", !0)], 2));
3496
+ }
3497
+ }), Ea = { class: "rounded-xl border border-slate-200 bg-white text-left shadow-sm dark:border-slate-700 dark:bg-slate-900" }, Da = {
3498
+ key: 0,
3499
+ class: "flex flex-wrap items-center justify-between gap-3 border-b border-slate-200 px-5 py-3 dark:border-slate-700"
3500
+ }, Oa = { class: "min-w-0" }, ka = {
3501
+ key: 0,
3502
+ class: "text-base font-semibold text-slate-900 dark:text-slate-100"
3503
+ }, Aa = {
3504
+ key: 1,
3505
+ class: "text-sm text-slate-500 dark:text-slate-400"
3506
+ }, ja = {
3507
+ key: 0,
3508
+ class: "flex items-center gap-2"
3509
+ }, Ma = {
3510
+ key: 1,
3511
+ class: "flex flex-wrap items-center justify-end gap-2 border-t border-slate-200 px-5 py-3 dark:border-slate-700"
3512
+ }, Na = /* @__PURE__ */ p({
3513
+ __name: "BaseCard",
3514
+ props: {
3515
+ title: { default: "" },
3516
+ subtitle: { default: "" },
3517
+ padding: { default: "md" }
3518
+ },
3519
+ setup(e) {
3520
+ return (t, n) => (T(), s("section", Ea, [
3521
+ e.title || e.subtitle || t.$slots.actions ? (T(), s("header", Da, [c("div", Oa, [e.title ? (T(), s("h2", ka, N(e.title), 1)) : o("", !0), e.subtitle ? (T(), s("p", Aa, N(e.subtitle), 1)) : o("", !0)]), t.$slots.actions ? (T(), s("div", ja, [A(t.$slots, "actions")])) : o("", !0)])) : o("", !0),
3522
+ c("div", { class: v(e.padding === "sm" ? "p-4" : e.padding === "none" ? "" : "p-5") }, [A(t.$slots, "default")], 2),
3523
+ t.$slots.footer ? (T(), s("footer", Ma, [A(t.$slots, "footer")])) : o("", !0)
3524
+ ]));
3525
+ }
3526
+ }), Pa = ["for"], Fa = {
3527
+ key: 0,
3528
+ class: "ml-0.5 text-red-500",
3529
+ "aria-hidden": "true"
3530
+ }, Ia = {
3531
+ key: 1,
3532
+ class: "mt-1 text-xs font-medium text-red-600 dark:text-red-400",
3533
+ role: "alert"
3534
+ }, La = {
3535
+ key: 2,
3536
+ class: "mt-1 text-xs text-slate-500 dark:text-slate-400"
3537
+ }, Ra = /* @__PURE__ */ p({
3538
+ __name: "BaseField",
3539
+ props: {
3540
+ label: { default: "" },
3541
+ labelFor: { default: "" },
3542
+ required: {
3543
+ type: Boolean,
3544
+ default: !1
3545
+ },
3546
+ error: { default: "" },
3547
+ hint: { default: "" },
3548
+ compact: {
3549
+ type: Boolean,
3550
+ default: !1
3551
+ },
3552
+ grow: {
3553
+ type: Boolean,
3554
+ default: !1
3555
+ }
3556
+ },
3557
+ setup(e) {
3558
+ return (t, n) => (T(), s("div", { class: v([e.grow ? "min-w-48 flex-1" : "", "text-left"]) }, [
3559
+ e.label ? (T(), s("label", {
3560
+ key: 0,
3561
+ for: e.labelFor || void 0,
3562
+ class: v(["mb-1 block", e.compact ? "text-xs uppercase tracking-wide text-slate-500 dark:text-slate-400" : "text-sm font-medium text-slate-700 dark:text-slate-200"])
3563
+ }, [d(N(e.label), 1), e.required ? (T(), s("span", Fa, "*")) : o("", !0)], 10, Pa)) : o("", !0),
3564
+ A(t.$slots, "default"),
3565
+ e.error ? (T(), s("p", Ia, N(e.error), 1)) : e.hint ? (T(), s("p", La, N(e.hint), 1)) : o("", !0)
3566
+ ], 2));
3567
+ }
3568
+ }), za = { class: "flex items-start justify-between gap-3" }, Ba = { class: "min-w-0 text-left" }, Va = { class: "truncate text-sm font-bold tracking-wide text-gray-800 dark:text-slate-200" }, Ha = /* @__PURE__ */ p({
3569
+ __name: "BaseStatCard",
3570
+ props: {
3571
+ title: {},
3572
+ value: { default: "" },
3573
+ subtitle: { default: "" },
3574
+ accent: { default: "emerald" },
3575
+ to: { default: void 0 }
3576
+ },
3577
+ setup(e) {
3578
+ let t = e, n = {
3579
+ emerald: {
3580
+ border: "border-emerald-300 dark:border-emerald-700",
3581
+ value: "text-emerald-500 dark:text-emerald-400",
3582
+ subtitle: "text-emerald-500 dark:text-emerald-400",
3583
+ iconBox: "bg-emerald-50 dark:bg-emerald-900/30",
3584
+ icon: "text-emerald-500"
3585
+ },
3586
+ sky: {
3587
+ border: "border-sky-300 dark:border-sky-700",
3588
+ value: "text-sky-500 dark:text-sky-400",
3589
+ subtitle: "text-sky-500 dark:text-sky-400",
3590
+ iconBox: "bg-sky-50 dark:bg-sky-900/30",
3591
+ icon: "text-sky-500"
3592
+ },
3593
+ amber: {
3594
+ border: "border-amber-300 dark:border-amber-700",
3595
+ value: "text-amber-500 dark:text-amber-400",
3596
+ subtitle: "text-amber-500 dark:text-amber-400",
3597
+ iconBox: "bg-amber-50 dark:bg-amber-900/30",
3598
+ icon: "text-amber-500"
3599
+ },
3600
+ red: {
3601
+ border: "border-red-300 dark:border-red-700",
3602
+ value: "text-red-500 dark:text-red-400",
3603
+ subtitle: "text-red-500 dark:text-red-400",
3604
+ iconBox: "bg-red-50 dark:bg-red-900/30",
3605
+ icon: "text-red-500"
3606
+ },
3607
+ slate: {
3608
+ border: "border-slate-300 dark:border-slate-600",
3609
+ value: "text-slate-700 dark:text-slate-200",
3610
+ subtitle: "text-slate-500 dark:text-slate-400",
3611
+ iconBox: "bg-slate-100 dark:bg-slate-700/50",
3612
+ icon: "text-slate-500 dark:text-slate-300"
3613
+ }
3614
+ }, r = i(() => n[t.accent]);
3615
+ return (t, n) => (T(), a(M(e.to ? P(Oe) : "div"), g(e.to ? { to: e.to } : {}, { class: ["relative block rounded-xl border-2 border-dashed bg-white p-5 transition-colors dark:bg-slate-800", [r.value.border, e.to ? "hover:bg-slate-50 dark:hover:bg-slate-700/60 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500" : ""]] }), {
3616
+ default: L(() => [c("div", za, [c("div", Ba, [
3617
+ c("p", Va, N(e.title), 1),
3618
+ c("p", { class: v(["mt-1 truncate text-3xl font-bold", r.value.value]) }, N(e.value), 3),
3619
+ e.subtitle ? (T(), s("p", {
3620
+ key: 0,
3621
+ class: v(["mt-1 text-sm font-medium", r.value.subtitle])
3622
+ }, N(e.subtitle), 3)) : o("", !0),
3623
+ A(t.$slots, "default")
3624
+ ]), t.$slots.icon ? (T(), s("div", {
3625
+ key: 0,
3626
+ class: v(["flex h-12 w-12 shrink-0 items-center justify-center rounded-xl", r.value.iconBox])
3627
+ }, [A(t.$slots, "icon", { iconClass: `h-6 w-6 ${r.value.icon}` })], 2)) : o("", !0)])]),
3628
+ _: 3
3629
+ }, 16, ["class"]));
3630
+ }
3631
+ }), Ua = [
3632
+ "aria-checked",
3633
+ "aria-label",
3634
+ "disabled"
3635
+ ], Wa = {
3636
+ key: 0,
3637
+ class: "text-sm font-medium text-slate-700 dark:text-slate-200"
3638
+ }, Ga = /* @__PURE__ */ p({
3639
+ __name: "BaseToggle",
3640
+ props: {
3641
+ modelValue: {
3642
+ type: Boolean,
3643
+ default: !1
3644
+ },
3645
+ label: { default: "" },
3646
+ ariaLabel: { default: "" },
3647
+ color: { default: "emerald" },
3648
+ offTone: { default: "slate" },
3649
+ disabled: {
3650
+ type: Boolean,
3651
+ default: !1
3652
+ }
3653
+ },
3654
+ emits: ["update:modelValue", "change"],
3655
+ setup(e, { emit: t }) {
3656
+ let n = e, r = t, i = {
3657
+ emerald: "bg-emerald-500",
3658
+ red: "bg-red-600",
3659
+ sky: "bg-sky-500",
3660
+ amber: "bg-amber-500"
3661
+ };
3662
+ function a() {
3663
+ if (n.disabled) return;
3664
+ let e = !n.modelValue;
3665
+ r("update:modelValue", e), r("change", e);
3666
+ }
3667
+ return (t, n) => (T(), s("label", { class: v(["inline-flex items-center gap-3 select-none", e.disabled ? "cursor-not-allowed opacity-60" : "cursor-pointer"]) }, [c("button", {
3668
+ type: "button",
3669
+ role: "switch",
3670
+ "aria-checked": e.modelValue,
3671
+ "aria-label": e.label ? void 0 : e.ariaLabel || void 0,
3672
+ disabled: e.disabled,
3673
+ class: v(["relative inline-flex h-6 w-11 shrink-0 items-center rounded-full transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-slate-900 disabled:cursor-not-allowed", e.modelValue ? i[e.color] : e.offTone === "red" ? "bg-red-200 dark:bg-red-900/50" : "bg-slate-200 dark:bg-slate-700"]),
3674
+ onClick: a
3675
+ }, [c("span", {
3676
+ class: v(["inline-block h-5 w-5 rounded-full bg-white shadow ring-1 ring-black/5 transition-transform", e.modelValue ? "translate-x-[22px]" : "translate-x-0.5"]),
3677
+ "aria-hidden": "true"
3678
+ }, null, 2)], 10, Ua), e.label ? (T(), s("span", Wa, N(e.label), 1)) : o("", !0)], 2));
3679
+ }
3680
+ }), Ka = { class: "flex min-h-screen w-full flex-col items-center justify-center bg-slate-50 px-4 py-10 dark:bg-slate-950" }, qa = { class: "mb-6 flex justify-center" }, Ja = {
3681
+ key: 0,
3682
+ class: "mb-1 text-2xl font-bold tracking-tight text-slate-900 dark:text-slate-100"
3683
+ }, Ya = {
3684
+ key: 1,
3685
+ class: "text-sm text-slate-500 dark:text-slate-400"
3686
+ }, Xa = {
3687
+ key: 2,
3688
+ class: "mt-6 border-t border-slate-200 pt-4 text-center text-sm text-slate-500 dark:border-slate-700 dark:text-slate-400"
3689
+ }, Za = /* @__PURE__ */ p({
3690
+ __name: "BaseAuthLayout",
3691
+ props: {
3692
+ title: { default: "" },
3693
+ subtitle: { default: "" },
3694
+ wide: {
3695
+ type: Boolean,
3696
+ default: !1
3697
+ }
3698
+ },
3699
+ setup(e) {
3700
+ return (t, n) => (T(), s("div", Ka, [c("div", qa, [A(t.$slots, "logo", {}, () => [f(Dt, { size: P(J).MEDIUM }, null, 8, ["size"])])]), c("div", { class: v(["w-full rounded-xl border border-slate-200 bg-white p-6 text-left shadow-sm sm:p-8 dark:border-slate-700 dark:bg-slate-900", e.wide ? "max-w-3xl" : "max-w-md"]) }, [
3701
+ e.title ? (T(), s("h1", Ja, N(e.title), 1)) : o("", !0),
3702
+ e.subtitle ? (T(), s("p", Ya, N(e.subtitle), 1)) : o("", !0),
3703
+ c("div", { class: v(e.title || e.subtitle ? "mt-6" : "") }, [A(t.$slots, "default")], 2),
3704
+ t.$slots.footer ? (T(), s("div", Xa, [A(t.$slots, "footer")])) : o("", !0)
3705
+ ], 2)]));
3706
+ }
3707
+ });
3708
+ //#endregion
3709
+ //#region node_modules/@heroicons/vue/20/solid/esm/CheckCircleIcon.js
3710
+ function Qa(e, t) {
3711
+ return T(), s("svg", {
3712
+ xmlns: "http://www.w3.org/2000/svg",
3713
+ viewBox: "0 0 20 20",
3714
+ fill: "currentColor",
3715
+ "aria-hidden": "true",
3716
+ "data-slot": "icon"
3717
+ }, [c("path", {
3718
+ "fill-rule": "evenodd",
3719
+ d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",
3720
+ "clip-rule": "evenodd"
3721
+ })]);
3722
+ }
3723
+ //#endregion
3724
+ //#region node_modules/@heroicons/vue/20/solid/esm/XCircleIcon.js
3725
+ function $a(e, t) {
3726
+ return T(), s("svg", {
3727
+ xmlns: "http://www.w3.org/2000/svg",
3728
+ viewBox: "0 0 20 20",
3729
+ fill: "currentColor",
3730
+ "aria-hidden": "true",
3731
+ "data-slot": "icon"
3732
+ }, [c("path", {
3733
+ "fill-rule": "evenodd",
3734
+ d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z",
3735
+ "clip-rule": "evenodd"
3736
+ })]);
3737
+ }
3738
+ //#endregion
3739
+ //#region src/components/BaseBooleanBadge.vue
3740
+ var eo = /* @__PURE__ */ p({
3741
+ __name: "BaseBooleanBadge",
3742
+ props: {
3743
+ value: {
3744
+ type: [Boolean, null],
3745
+ default: !1
3746
+ },
3747
+ trueLabel: { default: "Yes" },
3748
+ falseLabel: { default: "No" }
3749
+ },
3750
+ setup(e) {
3751
+ return (t, n) => (T(), s("span", { class: v(["inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium ring-1 ring-inset", e.value ? "bg-emerald-50 text-emerald-700 ring-emerald-600/20 dark:bg-emerald-500/10 dark:text-emerald-300 dark:ring-emerald-400/30" : "bg-slate-100 text-slate-600 ring-slate-500/20 dark:bg-slate-700/50 dark:text-slate-300 dark:ring-slate-400/20"]) }, [e.value ? (T(), a(P(Qa), {
3752
+ key: 0,
3753
+ class: "h-3.5 w-3.5",
3754
+ "aria-hidden": "true"
3755
+ })) : (T(), a(P($a), {
3756
+ key: 1,
3757
+ class: "h-3.5 w-3.5",
3758
+ "aria-hidden": "true"
3759
+ })), d(" " + N(e.value ? e.trueLabel : e.falseLabel), 1)], 2));
3760
+ }
3761
+ }), to = { class: "text-xs uppercase tracking-wide text-slate-500 dark:text-slate-400" }, no = ["href"], ro = {
3762
+ key: 1,
3763
+ class: "text-slate-400 dark:text-slate-500"
3764
+ }, io = /* @__PURE__ */ p({
3765
+ __name: "BaseDetailList",
3766
+ props: {
3767
+ items: {},
3768
+ columns: { default: 2 },
3769
+ emptyText: { default: "—" }
3770
+ },
3771
+ setup(t) {
3772
+ function n(e) {
3773
+ return e == null || e === "";
3774
+ }
3775
+ return (r, i) => (T(), s("dl", { class: v(["grid grid-cols-1 gap-x-6 gap-y-4 text-left", t.columns === 2 ? "sm:grid-cols-2" : t.columns === 3 ? "sm:grid-cols-2 lg:grid-cols-3" : ""]) }, [(T(!0), s(e, null, k(t.items, (r) => (T(), s("div", {
3776
+ key: r.label,
3777
+ class: "min-w-0"
3778
+ }, [c("dt", to, N(r.label), 1), c("dd", { class: v(["mt-1 break-words text-sm text-slate-900 dark:text-slate-100", r.mono ? "font-mono" : ""]) }, [r.href && !n(r.value) ? (T(), s("a", {
3779
+ key: 0,
3780
+ href: r.href,
3781
+ target: "_blank",
3782
+ rel: "noopener noreferrer",
3783
+ class: "text-emerald-600 hover:underline dark:text-emerald-400"
3784
+ }, N(r.value), 9, no)) : n(r.value) ? (T(), s("span", ro, N(t.emptyText), 1)) : (T(), s(e, { key: 2 }, [d(N(r.value), 1)], 64))], 2)]))), 128))], 2));
3785
+ }
3279
3786
  });
3280
3787
  //#endregion
3281
3788
  //#region src/composables/useDebounce.ts
3282
- function Wi(e, t = 300) {
3283
- let n = E(e.value), r = null;
3284
- return N(e, (e) => {
3789
+ function ao(e, t = 300) {
3790
+ let n = O(e.value), r = null;
3791
+ return I(e, (e) => {
3285
3792
  r && clearTimeout(r), r = setTimeout(() => {
3286
3793
  n.value = e, r = null;
3287
3794
  }, t);
3288
- }), S(() => {
3795
+ }), C(() => {
3289
3796
  r &&= (clearTimeout(r), null);
3290
3797
  }), n;
3291
3798
  }
3292
3799
  //#endregion
3293
3800
  //#region src/composables/useToast.ts
3294
- function Gi(e = 3e3) {
3295
- let t = E(!1), n = E(""), r = E(K.SUCCESS), i = null;
3801
+ function oo(e = 3e3) {
3802
+ let t = O(!1), n = O(""), r = O(Y.SUCCESS), i = null;
3296
3803
  function a() {
3297
3804
  i &&= (clearTimeout(i), null);
3298
3805
  }
3299
- function o(o, s = K.SUCCESS, c = e) {
3806
+ function o(o, s = Y.SUCCESS, c = e) {
3300
3807
  n.value = o, r.value = s, t.value = !0, a(), i = setTimeout(() => {
3301
3808
  t.value = !1, i = null;
3302
3809
  }, c);
3303
3810
  }
3304
- return S(() => {
3811
+ return C(() => {
3305
3812
  a();
3306
3813
  }), {
3307
3814
  showToast: t,
@@ -3312,7 +3819,7 @@ function Gi(e = 3e3) {
3312
3819
  }
3313
3820
  //#endregion
3314
3821
  //#region src/composables/useQueryParamSync.ts
3315
- function Ki() {
3822
+ function so() {
3316
3823
  let e = ke(), t = Ae();
3317
3824
  function n(t) {
3318
3825
  let n = e.query[t];
@@ -3334,8 +3841,8 @@ function Ki() {
3334
3841
  }
3335
3842
  //#endregion
3336
3843
  //#region src/composables/useFieldClasses.ts
3337
- function qi() {
3338
- let { isDark: e } = B(), t = i(() => e.value ? "text-gray-300" : "text-gray-600"), n = i(() => e.value ? "bg-gray-800 border-gray-600 text-gray-100 placeholder-gray-500 focus:ring-emerald-500 focus:border-emerald-500" : "bg-white border-gray-300 text-gray-800 focus:ring-emerald-500 focus:border-emerald-500");
3844
+ function co() {
3845
+ let { isDark: e } = W(), t = i(() => e.value ? "text-gray-300" : "text-gray-600"), n = i(() => e.value ? "bg-gray-800 border-gray-600 text-gray-100 placeholder-gray-500 focus:ring-emerald-500 focus:border-emerald-500" : "bg-white border-gray-300 text-gray-800 focus:ring-emerald-500 focus:border-emerald-500");
3339
3846
  function r(t) {
3340
3847
  return t == null || String(t).trim() === "" ? e.value ? "bg-gray-800 border-red-500 text-gray-100 placeholder-gray-500 focus:ring-red-500 focus:border-red-500 ring-1 ring-red-500/30" : "bg-white border-red-400 text-gray-800 focus:ring-red-500 focus:border-red-500 ring-1 ring-red-400/30" : n.value;
3341
3848
  }
@@ -3347,8 +3854,8 @@ function qi() {
3347
3854
  }
3348
3855
  //#endregion
3349
3856
  //#region src/composables/usePolling.ts
3350
- function Ji(e, t, n = {}) {
3351
- let { immediate: r = !0, pauseWhenHidden: i = !0 } = n, a = null, o = E(!1), s = !1;
3857
+ function lo(e, t, n = {}) {
3858
+ let { immediate: r = !0, pauseWhenHidden: i = !0 } = n, a = null, o = O(!1), s = !1;
3352
3859
  function c() {
3353
3860
  a === null && t !== null && (a = setInterval(() => void e(), t));
3354
3861
  }
@@ -3370,74 +3877,74 @@ function Ji(e, t, n = {}) {
3370
3877
  o.value = !1, l(), s = !0;
3371
3878
  }
3372
3879
  }
3373
- return x(() => {
3880
+ return S(() => {
3374
3881
  u(), i && document.addEventListener("visibilitychange", f);
3375
- }), C(() => {
3882
+ }), w(() => {
3376
3883
  d(), i && document.removeEventListener("visibilitychange", f);
3377
3884
  }), {
3378
3885
  start: u,
3379
3886
  stop: d,
3380
- active: ee(o)
3887
+ active: D(o)
3381
3888
  };
3382
3889
  }
3383
3890
  //#endregion
3384
3891
  //#region src/enums/BaseBadgeEnum.ts
3385
- var Yi = /* @__PURE__ */ function(e) {
3892
+ var uo = /* @__PURE__ */ function(e) {
3386
3893
  return e.WIN = "WIN", e.LOSE = "LOSE", e;
3387
3894
  }({});
3388
3895
  //#endregion
3389
3896
  //#region src/utils/util.ts
3390
- function Xi(e) {
3897
+ function fo(e) {
3391
3898
  let t = "red";
3392
3899
  switch (e) {
3393
- case L.ERROR:
3900
+ case V.ERROR:
3394
3901
  t = "red";
3395
3902
  break;
3396
- case L.SUCCESS:
3903
+ case V.SUCCESS:
3397
3904
  t = "green";
3398
3905
  break;
3399
- case L.INFO:
3906
+ case V.INFO:
3400
3907
  t = "gray";
3401
3908
  break;
3402
- case L.WARNING: t = "yellow";
3909
+ case V.WARNING: t = "yellow";
3403
3910
  }
3404
3911
  return t;
3405
3912
  }
3406
- function Zi(e) {
3913
+ function po(e) {
3407
3914
  let t = "red";
3408
3915
  switch (e) {
3409
- case V.GREEN:
3916
+ case G.GREEN:
3410
3917
  t = "green";
3411
3918
  break;
3412
- case V.RED:
3919
+ case G.RED:
3413
3920
  t = "red";
3414
3921
  break;
3415
- case V.BLUE:
3922
+ case G.BLUE:
3416
3923
  t = "blue";
3417
3924
  break;
3418
- case V.YELLOW:
3925
+ case G.YELLOW:
3419
3926
  t = "yellow";
3420
3927
  break;
3421
- case V.BLACK:
3928
+ case G.BLACK:
3422
3929
  t = "black";
3423
3930
  break;
3424
- case V.GRAY:
3931
+ case G.GRAY:
3425
3932
  t = "gray";
3426
3933
  break;
3427
- case V.NONE: t = "";
3934
+ case G.NONE: t = "";
3428
3935
  }
3429
3936
  return t;
3430
3937
  }
3431
3938
  //#endregion
3432
3939
  //#region src/utils/httpColors.ts
3433
- var Qi = {
3940
+ var mo = {
3434
3941
  GET: "bg-blue-600",
3435
3942
  POST: "bg-emerald-600",
3436
3943
  PUT: "bg-amber-600",
3437
3944
  DELETE: "bg-red-600",
3438
3945
  PATCH: "bg-purple-600",
3439
3946
  HEAD: "bg-gray-600"
3440
- }, $i = {
3947
+ }, ho = {
3441
3948
  GET: "bg-blue-500",
3442
3949
  POST: "bg-green-500",
3443
3950
  PUT: "bg-yellow-500",
@@ -3445,39 +3952,39 @@ var Qi = {
3445
3952
  PATCH: "bg-purple-500",
3446
3953
  HEAD: "bg-gray-500"
3447
3954
  };
3448
- function ea(e) {
3449
- return e ? Qi[e.toUpperCase()] ?? "bg-gray-600" : "bg-gray-600";
3955
+ function go(e) {
3956
+ return e ? mo[e.toUpperCase()] ?? "bg-gray-600" : "bg-gray-600";
3450
3957
  }
3451
- function ta(e) {
3452
- return e ? $i[e.toUpperCase()] ?? "bg-gray-500" : "bg-gray-500";
3958
+ function _o(e) {
3959
+ return e ? ho[e.toUpperCase()] ?? "bg-gray-500" : "bg-gray-500";
3453
3960
  }
3454
- function na(e) {
3961
+ function vo(e) {
3455
3962
  let t = e ?? 0;
3456
3963
  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";
3457
3964
  }
3458
- function ra(e, t) {
3965
+ function yo(e, t) {
3459
3966
  let n = (e || "ANY").toUpperCase();
3460
3967
  return n === "GET" ? t ? "bg-blue-500/15 text-blue-400" : "bg-blue-100 text-blue-700" : n === "POST" ? t ? "bg-emerald-500/15 text-emerald-400" : "bg-emerald-100 text-emerald-700" : n === "PUT" ? t ? "bg-amber-500/15 text-amber-400" : "bg-amber-100 text-amber-700" : n === "DELETE" ? t ? "bg-red-500/15 text-red-400" : "bg-red-100 text-red-700" : n === "PATCH" ? t ? "bg-purple-500/15 text-purple-400" : "bg-purple-100 text-purple-700" : n === "HEAD" ? t ? "bg-sky-500/15 text-sky-400" : "bg-sky-100 text-sky-700" : t ? "bg-gray-500/15 text-gray-400" : "bg-gray-100 text-gray-600";
3461
3968
  }
3462
- function ia(e, t) {
3969
+ function bo(e, t) {
3463
3970
  let n = e ?? 200;
3464
3971
  return n >= 200 && n < 300 ? t ? "bg-emerald-500/15 text-emerald-300" : "bg-emerald-100 text-emerald-700" : n >= 300 && n < 400 ? t ? "bg-sky-500/15 text-sky-300" : "bg-sky-100 text-sky-700" : n >= 400 && n < 500 ? t ? "bg-amber-500/15 text-amber-300" : "bg-amber-100 text-amber-700" : n >= 500 && n < 600 ? t ? "bg-red-500/15 text-red-300" : "bg-red-100 text-red-700" : t ? "bg-gray-800 text-gray-400" : "bg-gray-100 text-gray-600";
3465
3972
  }
3466
- function aa(e, t) {
3973
+ function xo(e, t) {
3467
3974
  let n = e ?? 200;
3468
3975
  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";
3469
3976
  }
3470
3977
  //#endregion
3471
3978
  //#region src/utils/kvRows.ts
3472
- function oa(e) {
3979
+ function So(e) {
3473
3980
  return !(e.key ?? "").trim() || e.matcherType === "absent" ? !1 : !(e.value ?? "").trim();
3474
3981
  }
3475
- function sa(e) {
3982
+ function Co(e) {
3476
3983
  return e.matcherType === "absent" || !(e.value ?? "").trim() ? !1 : !(e.key ?? "").trim();
3477
3984
  }
3478
3985
  //#endregion
3479
3986
  //#region src/utils/sanitizeHtml.ts
3480
- var ca = /* @__PURE__ */ new Set([
3987
+ var wo = /* @__PURE__ */ new Set([
3481
3988
  "A",
3482
3989
  "B",
3483
3990
  "STRONG",
@@ -3492,7 +3999,7 @@ var ca = /* @__PURE__ */ new Set([
3492
3999
  "LI",
3493
4000
  "SPAN",
3494
4001
  "DIV"
3495
- ]), la = /* @__PURE__ */ new Set([
4002
+ ]), To = /* @__PURE__ */ new Set([
3496
4003
  "SCRIPT",
3497
4004
  "STYLE",
3498
4005
  "IFRAME",
@@ -3500,53 +4007,53 @@ var ca = /* @__PURE__ */ new Set([
3500
4007
  "EMBED",
3501
4008
  "NOSCRIPT",
3502
4009
  "TEMPLATE"
3503
- ]), ua = { A: /* @__PURE__ */ new Set(["href", "title"]) };
3504
- function da(e) {
4010
+ ]), Eo = { A: /* @__PURE__ */ new Set(["href", "title"]) };
4011
+ function Do(e) {
3505
4012
  let t = e.trim().toLowerCase();
3506
4013
  return t.startsWith("http://") || t.startsWith("https://") || t.startsWith("mailto:") || t.startsWith("tel:") || t.startsWith("/") || t.startsWith("#") || t === "";
3507
4014
  }
3508
- function fa(e) {
4015
+ function Oo(e) {
3509
4016
  if (e.nodeType !== Node.ELEMENT_NODE) return;
3510
4017
  let t = e, n = t.tagName.toUpperCase();
3511
- if (!ca.has(n)) {
3512
- la.has(n) ? t.remove() : t.replaceWith(document.createTextNode(t.textContent ?? ""));
4018
+ if (!wo.has(n)) {
4019
+ To.has(n) ? t.remove() : t.replaceWith(document.createTextNode(t.textContent ?? ""));
3513
4020
  return;
3514
4021
  }
3515
- let r = ua[n] ?? /* @__PURE__ */ new Set();
4022
+ let r = Eo[n] ?? /* @__PURE__ */ new Set();
3516
4023
  for (let e of Array.from(t.attributes)) {
3517
4024
  if (!r.has(e.name.toLowerCase())) {
3518
4025
  t.removeAttribute(e.name);
3519
4026
  continue;
3520
4027
  }
3521
- n === "A" && e.name.toLowerCase() === "href" && !da(e.value) && t.removeAttribute(e.name);
4028
+ n === "A" && e.name.toLowerCase() === "href" && !Do(e.value) && t.removeAttribute(e.name);
3522
4029
  }
3523
4030
  n === "A" && t.hasAttribute("href") && (t.setAttribute("rel", "noopener noreferrer"), t.setAttribute("target", "_blank"));
3524
- for (let e of Array.from(t.childNodes)) fa(e);
4031
+ for (let e of Array.from(t.childNodes)) Oo(e);
3525
4032
  }
3526
- function pa(e) {
4033
+ function ko(e) {
3527
4034
  if (!e) return "";
3528
4035
  let t = new DOMParser().parseFromString(`<div>${e}</div>`, "text/html").body.firstElementChild;
3529
4036
  if (!t) return "";
3530
- for (let e of Array.from(t.childNodes)) fa(e);
4037
+ for (let e of Array.from(t.childNodes)) Oo(e);
3531
4038
  return t.innerHTML;
3532
4039
  }
3533
4040
  //#endregion
3534
4041
  //#region src/utils/format.ts
3535
- var $ = "—";
3536
- function ma(e, t = 4) {
3537
- if (e == null || typeof e == "string" && e.trim() === "") return $;
4042
+ var Ao = "—";
4043
+ function jo(e, t = 4) {
4044
+ if (e == null || typeof e == "string" && e.trim() === "") return Ao;
3538
4045
  let n = typeof e == "string" ? Number(e) : e;
3539
4046
  return isFinite(n) ? n.toLocaleString(void 0, {
3540
4047
  minimumFractionDigits: t,
3541
4048
  maximumFractionDigits: t
3542
- }) : $;
4049
+ }) : Ao;
3543
4050
  }
3544
- function ha(e) {
3545
- if (e == null || e === "") return $;
4051
+ function Mo(e) {
4052
+ if (e == null || e === "") return Ao;
3546
4053
  let t = new Date(e);
3547
4054
  return isNaN(t.getTime()) ? String(e) : t.toLocaleString();
3548
4055
  }
3549
- function ga(e) {
4056
+ function No(e) {
3550
4057
  return new Date(e).toLocaleString(void 0, {
3551
4058
  month: "short",
3552
4059
  day: "numeric",
@@ -3554,13 +4061,13 @@ function ga(e) {
3554
4061
  minute: "2-digit"
3555
4062
  });
3556
4063
  }
3557
- function _a(e) {
4064
+ function Po(e) {
3558
4065
  return new Date(e).toLocaleDateString(void 0, {
3559
4066
  month: "short",
3560
4067
  day: "numeric"
3561
4068
  });
3562
4069
  }
3563
- function va(e) {
4070
+ function Fo(e) {
3564
4071
  try {
3565
4072
  return new Date(e).toLocaleString(void 0, {
3566
4073
  year: "numeric",
@@ -3576,7 +4083,7 @@ function va(e) {
3576
4083
  return String(e);
3577
4084
  }
3578
4085
  }
3579
- function ya(e) {
4086
+ function Io(e) {
3580
4087
  if (!isFinite(e) || e === 0) return e.toFixed(2);
3581
4088
  let t = Math.abs(e), n = 2;
3582
4089
  return t < 1e-4 ? n = 8 : t < .01 ? n = 6 : t < 1 ? n = 4 : t < 100 && (n = 3), e.toLocaleString(void 0, {
@@ -3584,14 +4091,14 @@ function ya(e) {
3584
4091
  maximumFractionDigits: n
3585
4092
  });
3586
4093
  }
3587
- function ba(e, t = 2) {
4094
+ function Lo(e, t = 2) {
3588
4095
  return `${e >= 0 ? "+" : ""}${e.toFixed(t)}%`;
3589
4096
  }
3590
- function xa(e) {
4097
+ function Ro(e) {
3591
4098
  return `${e < 0 ? "-" : "+"}$${Math.abs(e).toFixed(2)}`;
3592
4099
  }
3593
- function Sa(e) {
3594
- if (e == null || e === "") return $;
4100
+ function zo(e) {
4101
+ if (e == null || e === "") return Ao;
3595
4102
  let t = new Date(e);
3596
4103
  return isNaN(t.getTime()) ? String(e) : t.toLocaleDateString("en-US", {
3597
4104
  year: "numeric",
@@ -3599,8 +4106,8 @@ function Sa(e) {
3599
4106
  day: "numeric"
3600
4107
  });
3601
4108
  }
3602
- function Ca(e) {
3603
- if (e == null || e === "") return $;
4109
+ function Bo(e) {
4110
+ if (e == null || e === "") return Ao;
3604
4111
  let t = new Date(e);
3605
4112
  return isNaN(t.getTime()) ? String(e) : t.toLocaleDateString("en-US", {
3606
4113
  year: "numeric",
@@ -3610,22 +4117,22 @@ function Ca(e) {
3610
4117
  minute: "2-digit"
3611
4118
  });
3612
4119
  }
3613
- function wa(e) {
4120
+ function Vo(e) {
3614
4121
  if (typeof e != "number" || !isFinite(e) || e <= 0) return "";
3615
4122
  let t = e / 1e3, n = t < 1 ? 3 : 2;
3616
4123
  return `= ${t.toFixed(n)} s`;
3617
4124
  }
3618
- function Ta(e) {
4125
+ function Ho(e) {
3619
4126
  return e ? e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(1)} KB` : `${(e / 1048576).toFixed(1)} MB` : "";
3620
4127
  }
3621
- function Ea(e) {
4128
+ function Uo(e) {
3622
4129
  try {
3623
4130
  return JSON.stringify(JSON.parse(e), null, 2);
3624
4131
  } catch {
3625
4132
  return e;
3626
4133
  }
3627
4134
  }
3628
- function Da(e) {
4135
+ function Wo(e) {
3629
4136
  if (e == null) return "";
3630
4137
  if (typeof e == "string") return e;
3631
4138
  try {
@@ -3634,14 +4141,14 @@ function Da(e) {
3634
4141
  return String(e);
3635
4142
  }
3636
4143
  }
3637
- function Oa(e, t = 2) {
3638
- if (e == null || !isFinite(e)) return $;
4144
+ function Go(e, t = 2) {
4145
+ if (e == null || !isFinite(e)) return Ao;
3639
4146
  let n = Math.floor(Math.max(0, e) / 6e4), r = Math.floor(n / 1440), i = Math.floor(n % 1440 / 60), a = n % 60, o = [];
3640
4147
  return r > 0 && o.push(`${r}d`), (r > 0 || i > 0) && o.push(`${i}h`), o.push(`${a}m`), o.slice(0, t).join(" ");
3641
4148
  }
3642
4149
  //#endregion
3643
4150
  //#region src/utils/validate.ts
3644
- function ka(e) {
4151
+ function Ko(e) {
3645
4152
  let t = (e ?? "").trim();
3646
4153
  if (!t) return !1;
3647
4154
  try {
@@ -3651,7 +4158,7 @@ function ka(e) {
3651
4158
  return !1;
3652
4159
  }
3653
4160
  }
3654
- function Aa(e) {
4161
+ function qo(e) {
3655
4162
  if (!e.trim()) return !0;
3656
4163
  try {
3657
4164
  return JSON.parse(e), !0;
@@ -3659,7 +4166,7 @@ function Aa(e) {
3659
4166
  return !1;
3660
4167
  }
3661
4168
  }
3662
- function ja(e) {
4169
+ function Jo(e) {
3663
4170
  if (!e.trim()) return !0;
3664
4171
  try {
3665
4172
  return !new DOMParser().parseFromString(e, "application/xml").getElementsByTagName("parsererror").length;
@@ -3667,7 +4174,7 @@ function ja(e) {
3667
4174
  return !1;
3668
4175
  }
3669
4176
  }
3670
- function Ma(e) {
4177
+ function Yo(e) {
3671
4178
  if (!e.trim()) return !0;
3672
4179
  let t = e.replace(/\s+/g, "");
3673
4180
  if (!t) return !0;
@@ -3680,7 +4187,7 @@ function Ma(e) {
3680
4187
  }
3681
4188
  //#endregion
3682
4189
  //#region src/utils/specForm.ts
3683
- function Na(e, t) {
4190
+ function Xo(e, t) {
3684
4191
  let n = {};
3685
4192
  if (!e) return n;
3686
4193
  for (let r of e) {
@@ -3689,7 +4196,7 @@ function Na(e, t) {
3689
4196
  }
3690
4197
  return n;
3691
4198
  }
3692
- function Pa(e, t) {
4199
+ function Zo(e, t) {
3693
4200
  if (!e) return null;
3694
4201
  for (let n of e) if (n.type === "decimal" || n.type === "integer") {
3695
4202
  let e = t[n.key], r = e === "" || e == null;
@@ -3700,7 +4207,7 @@ function Pa(e, t) {
3700
4207
  }
3701
4208
  //#endregion
3702
4209
  //#region src/utils/pnl.ts
3703
- function Fa(e) {
4210
+ function Qo(e) {
3704
4211
  if (e.buyPrice == null || e.lastPrice == null || e.filledQty == null) return {
3705
4212
  pnlUsd: null,
3706
4213
  pnlPct: null
@@ -3715,4 +4222,4 @@ function Fa(e) {
3715
4222
  };
3716
4223
  }
3717
4224
  //#endregion
3718
- export { L as AlertEnum, Qn as BaseActionButton, Le as BaseAlert, Un as BaseAppLayout, ze as BaseBadge, Yi as BaseBadgeEnum, Hi as BaseBarDistribution, Ue as BaseBreadcrumb, W as BaseButton, H as BaseButtonEnum, U as BaseButtonSizeEnum, Tr as BaseChipButton, Nr as BaseCodeBlock, Xt as BaseCollapsibleSection, en as BaseConfirmModal, er as BaseCopyButton, Di as BaseCredentialsForm, Ui as BaseDateTimePicker, Vr as BaseDropdown, Bn as BaseEntityPickerModal, Mr as BaseFileDropzone, ui as BaseFilterChip, ir as BaseGoogleSignInButton, Q as BaseInput, nt as BaseLine, rt as BaseLoginEnum, gr as BaseLoginForm, at as BaseLogo, G as BaseLogoEnum, ft as BaseModal, ot as BaseModalEnum, qt as BaseModalShell, cn as BaseNotFoundPage, Cr as BaseNotificationPanel, Kn as BasePageHeader, Li as BasePillPickerModal, Er as BaseRemoveButton, pt as BaseRow, Gr as BaseSegmentedControl, Ir as BaseSelect, Dn as BaseSidebar, ai as BaseSpecFields, mt as BaseSpinner, ci as BaseStatBreakdown, kr as BaseStatusPill, Zr as BaseTable, an as BaseTextInputModal, _t as BaseToast, K as BaseToastEnum, Yn as BaseToolbarButton, yt as ColoredSquares, V as ColorsEnums, St as EarningsCard, Dt as EuroAmount, Qe as LineEnum, Mt as Pagination, q as PositioningEnum, Lt as TrendArrow, Na as buildSpecParams, Fa as computePnL, Pa as firstInvalidNumericSpec, Ta as fmtBytes, Sa as fmtCalendarDate, Ca as fmtCalendarDateTime, ha as fmtDate, _a as fmtDateShort, ga as fmtDateTime, va as fmtDateTimeMs, Oa as fmtDuration, wa as fmtMsAsSeconds, ma as fmtNumber, ba as fmtPct, ya as fmtPrice, xa as fmtUsd, Ea as formatJson, Xi as getBaseColor, Zi as getBaseColorOf, Pe as initTheme, da as isSafeHref, ka as isValidAbsoluteUrl, Ma as isValidBase64, Aa as isValidJson, ja as isValidXml, ta as methodBadgeBright, ea as methodBadgeSolid, ra as methodBadgeTinted, sa as rowKeyMissing, oa as rowValueMissing, pa as sanitizeHtml, ia as statusBadgeSoft, na as statusBadgeSolid, aa as statusBadgeTinted, Da as stringifyValue, Wi as useDebouncedRef, Rt as useEscapeKey, qi as useFieldClasses, un as useMobileSidebar, gn as useNotifications, Ji as usePolling, Ki as useQueryParamSync, mn as useSidebarCollapse, B as useTheme, J as useThemeClasses, Gi as useToast };
4225
+ export { V as AlertEnum, Sr as BaseActionButton, Le as BaseAlert, fr as BaseAppLayout, Za as BaseAuthLayout, ze as BaseBadge, uo as BaseBadgeEnum, ha as BaseBarDistribution, eo as BaseBooleanBadge, Ue as BaseBreadcrumb, Qe as BaseButton, K as BaseButtonEnum, q as BaseButtonSizeEnum, Na as BaseCard, Yr as BaseChipButton, ri as BaseCodeBlock, yn as BaseCollapsibleSection, Cn as BaseConfirmModal, wr as BaseCopyButton, ea as BaseCredentialsForm, ga as BaseDateTimePicker, io as BaseDetailList, fi as BaseDropdown, lr as BaseEntityPickerModal, Ra as BaseField, ni as BaseFileDropzone, Li as BaseFilterChip, Or as BaseGoogleSignInButton, ai as BaseInput, rt as BaseLine, it as BaseLoginEnum, Br as BaseLoginForm, Dt as BaseLogo, J as BaseLogoEnum, Pt as BaseModal, Ot as BaseModalEnum, gn as BaseModalShell, An as BaseNotFoundPage, qr as BaseNotificationPanel, gr as BasePageHeader, ua as BasePillPickerModal, Xr as BaseRemoveButton, Ft as BaseRow, Ta as BaseSearchSelect, gi as BaseSegmentedControl, si as BaseSelect, Xn as BaseSidebar, Mi as BaseSpecFields, It as BaseSpinner, Fi as BaseStatBreakdown, Ha as BaseStatCard, $r as BaseStatusPill, wi as BaseTable, Dn as BaseTextInputModal, zt as BaseToast, Y as BaseToastEnum, Ga as BaseToggle, yr as BaseToolbarButton, Vt as ColoredSquares, G as ColorsEnums, Wt as EarningsCard, Yt as EuroAmount, $e as LineEnum, en as Pagination, X as PositioningEnum, on as TrendArrow, Xo as buildSpecParams, Qo as computePnL, Zo as firstInvalidNumericSpec, Ho as fmtBytes, zo as fmtCalendarDate, Bo as fmtCalendarDateTime, Mo as fmtDate, Po as fmtDateShort, No as fmtDateTime, Fo as fmtDateTimeMs, Go as fmtDuration, Vo as fmtMsAsSeconds, jo as fmtNumber, Lo as fmtPct, Io as fmtPrice, Ro as fmtUsd, Uo as formatJson, fo as getBaseColor, po as getBaseColorOf, Pe as initTheme, Do as isSafeHref, Ko as isValidAbsoluteUrl, Yo as isValidBase64, qo as isValidJson, Jo as isValidXml, _o as methodBadgeBright, go as methodBadgeSolid, yo as methodBadgeTinted, Co as rowKeyMissing, So as rowValueMissing, ko as sanitizeHtml, bo as statusBadgeSoft, vo as statusBadgeSolid, xo as statusBadgeTinted, Wo as stringifyValue, ao as useDebouncedRef, sn as useEscapeKey, co as useFieldClasses, Mn as useMobileSidebar, zn as useNotifications, lo as usePolling, so as useQueryParamSync, In as useSidebarCollapse, W as useTheme, Z as useThemeClasses, oo as useToast };