@vc-shell/framework 2.2.0-pr263.f4e6550 → 2.3.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 (78) hide show
  1. package/dist/ai-agent/index.js +3 -3
  2. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cm_izaFs.js +1380 -0
  3. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cm_izaFs.js.map +1 -0
  4. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-D2KmNhhl.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-DrGobYkj.js} +381 -246
  5. package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-DrGobYkj.js.map +1 -0
  6. package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-DmHoLXKj.js → VcScheduler.vue_vue_type_script_setup_true_lang-BHufGxno.js} +6901 -6742
  7. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-BHufGxno.js.map +1 -0
  8. package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-DR8wrtyB.js → VcScheduler.vue_vue_type_style_index_0_lang-Iu3FiU-0.js} +1471 -1587
  9. package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-Iu3FiU-0.js.map +1 -0
  10. package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-DvM1DXj8.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-DlE4KIvq.js} +68 -68
  11. package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-DvM1DXj8.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-DlE4KIvq.js.map} +1 -1
  12. package/dist/chunks/{index-CvSe3hjU.js → index-C-SEYj46.js} +2 -2
  13. package/dist/chunks/{index-CvSe3hjU.js.map → index-C-SEYj46.js.map} +1 -1
  14. package/dist/chunks/{vendor-vueuse-components-BW7i7Uhb.js → vendor-vueuse-components-CoR2FSn3.js} +1 -1
  15. package/dist/chunks/{vendor-vueuse-components-BW7i7Uhb.js.map → vendor-vueuse-components-CoR2FSn3.js.map} +1 -1
  16. package/dist/chunks/{vendor-vueuse-core-BYWoPpF_.js → vendor-vueuse-core-BFa9je5E.js} +83 -82
  17. package/dist/chunks/{vendor-vueuse-core-BYWoPpF_.js.map → vendor-vueuse-core-BFa9je5E.js.map} +1 -1
  18. package/dist/chunks/{vendor-vueuse-shared-BlCOXw5g.js → vendor-vueuse-shared-kZH3-Km1.js} +2 -2
  19. package/dist/chunks/{vendor-vueuse-shared-BlCOXw5g.js.map → vendor-vueuse-shared-kZH3-Km1.js.map} +1 -1
  20. package/dist/core/blade-navigation/types/index.d.ts +8 -0
  21. package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
  22. package/dist/core/composables/index.d.ts +1 -0
  23. package/dist/core/composables/index.d.ts.map +1 -1
  24. package/dist/core/composables/useAsync/index.d.ts.map +1 -1
  25. package/dist/core/composables/useKeyboardShortcuts/format.d.ts +11 -0
  26. package/dist/core/composables/useKeyboardShortcuts/format.d.ts.map +1 -0
  27. package/dist/core/composables/useKeyboardShortcuts/hotkey.d.ts +14 -0
  28. package/dist/core/composables/useKeyboardShortcuts/hotkey.d.ts.map +1 -0
  29. package/dist/core/composables/useKeyboardShortcuts/index.d.ts +23 -0
  30. package/dist/core/composables/useKeyboardShortcuts/index.d.ts.map +1 -0
  31. package/dist/core/composables/useKeyboardShortcuts/match.d.ts +14 -0
  32. package/dist/core/composables/useKeyboardShortcuts/match.d.ts.map +1 -0
  33. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  34. package/dist/core/interceptors/index.d.ts.map +1 -1
  35. package/dist/core/plugins/ai-agent/components/VcAiAgentPanel.vue.d.ts.map +1 -1
  36. package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts.map +1 -1
  37. package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts.map +1 -1
  38. package/dist/core/types/index.d.ts +12 -0
  39. package/dist/core/types/index.d.ts.map +1 -1
  40. package/dist/core/utilities/sessionExpiration.d.ts +30 -0
  41. package/dist/core/utilities/sessionExpiration.d.ts.map +1 -0
  42. package/dist/dashboard/index.js +1 -1
  43. package/dist/framework.js +653 -644
  44. package/dist/framework.js.map +1 -1
  45. package/dist/index.css +1 -1
  46. package/dist/locales/de.js +4 -1
  47. package/dist/locales/en.js +4 -1
  48. package/dist/locales/en.json +4 -1
  49. package/dist/locales/types.d.ts +3 -0
  50. package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts +22 -0
  51. package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts.map +1 -0
  52. package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/vc-blade-navigation-new.vue.d.ts.map +1 -1
  53. package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
  54. package/dist/shell/components/error-interceptor/interceptor.d.ts.map +1 -1
  55. package/dist/test-helpers.d.ts.map +1 -1
  56. package/dist/tsconfig.tsbuildinfo +1 -1
  57. package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
  58. package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts +1 -1
  59. package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts.map +1 -1
  60. package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
  61. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ShortcutKbd.vue.d.ts +11 -0
  62. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ShortcutKbd.vue.d.ts.map +1 -0
  63. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts.map +1 -1
  64. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/toolbar-button-props.d.ts +2 -0
  65. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/toolbar-button-props.d.ts.map +1 -1
  66. package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +1 -1
  67. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts +1 -1
  68. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts.map +1 -1
  69. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  70. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  71. package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
  72. package/dist/ui/index.js +20 -20
  73. package/package.json +4 -4
  74. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cx8_DCu_.js +0 -1124
  75. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cx8_DCu_.js.map +0 -1
  76. package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D2KmNhhl.js.map +0 -1
  77. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-DmHoLXKj.js.map +0 -1
  78. package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-DR8wrtyB.js.map +0 -1
@@ -1,24 +1,26 @@
1
- import { ref as N, computed as u, defineComponent as T, onMounted as R, openBlock as E, createElementBlock as S, normalizeStyle as C, normalizeClass as P, toDisplayString as W, markRaw as K, createBlock as J, resolveDynamicComponent as F, createElementVNode as V, mergeProps as j, createCommentVNode as q, resolveComponent as G } from "vue";
2
- import { u as H } from "./vendor-vueuse-core-BYWoPpF_.js";
3
- import { j as Y } from "./vendor-vueuse-shared-BlCOXw5g.js";
4
- import { L as X } from "./vendor-lucide-vue-next-CwUrzD6N.js";
5
- const Z = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
6
- function Q(i, e) {
7
- if (typeof e == "string" && Z.test(e)) {
1
+ import { ref as S, computed as u, defineComponent as P, onMounted as G, openBlock as g, createElementBlock as y, normalizeStyle as R, normalizeClass as T, toDisplayString as Y, markRaw as H, createBlock as N, resolveDynamicComponent as F, createElementVNode as M, mergeProps as $, createCommentVNode as D, resolveComponent as k, inject as X, toValue as Z, useId as Q, onBeforeUnmount as ee, withKeys as te, renderSlot as K, Teleport as re, unref as ne, createVNode as se, Transition as ae, withCtx as ie } from "vue";
2
+ import { a as oe } from "./vendor-vueuse-core-BFa9je5E.js";
3
+ import { j as le } from "./vendor-vueuse-shared-kZH3-Km1.js";
4
+ import { L as ue } from "./vendor-lucide-vue-next-CwUrzD6N.js";
5
+ import { a as he, u as ce } from "./vendor-floating-ui-vue-sCrhit51.js";
6
+ import { o as de, f as fe, s as pe, b as me } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
7
+ const ve = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
8
+ function be(i, e) {
9
+ if (typeof e == "string" && ve.test(e)) {
8
10
  const t = new Date(e);
9
11
  if (!isNaN(t.getTime()))
10
12
  return t;
11
13
  }
12
14
  return e;
13
15
  }
14
- class b {
16
+ class x {
15
17
  authToken = "";
16
18
  /**
17
19
  * JSON parse reviver for converting date strings to Date objects.
18
20
  * Subclasses use this when parsing API responses.
19
21
  * The dateReviver function is defined in File.Header.liquid template.
20
22
  */
21
- jsonParseReviver = Q;
23
+ jsonParseReviver = be;
22
24
  constructor() {
23
25
  }
24
26
  // Enforce always return empty string as baseUrl
@@ -32,7 +34,7 @@ class b {
32
34
  return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
33
35
  }
34
36
  }
35
- class ee extends b {
37
+ class xe extends x {
36
38
  http;
37
39
  baseUrl;
38
40
  constructor(e, t) {
@@ -139,7 +141,7 @@ class ee extends b {
139
141
  }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
140
142
  }
141
143
  }
142
- class we extends b {
144
+ class Ze extends x {
143
145
  http;
144
146
  baseUrl;
145
147
  constructor(e, t) {
@@ -208,7 +210,7 @@ class we extends b {
208
210
  }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
209
211
  }
210
212
  }
211
- class Ae extends b {
213
+ class Qe extends x {
212
214
  http;
213
215
  baseUrl;
214
216
  constructor(e, t) {
@@ -238,7 +240,7 @@ class Ae extends b {
238
240
  }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
239
241
  }
240
242
  }
241
- class je extends b {
243
+ class et extends x {
242
244
  http;
243
245
  baseUrl;
244
246
  constructor(e, t) {
@@ -380,7 +382,7 @@ class je extends b {
380
382
  }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
381
383
  }
382
384
  }
383
- class Re extends b {
385
+ class tt extends x {
384
386
  http;
385
387
  baseUrl;
386
388
  constructor(e, t) {
@@ -581,7 +583,7 @@ class Re extends b {
581
583
  }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
582
584
  }
583
585
  }
584
- class Ce extends b {
586
+ class rt extends x {
585
587
  http;
586
588
  baseUrl;
587
589
  constructor(e, t) {
@@ -610,7 +612,7 @@ class Ce extends b {
610
612
  }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
611
613
  }
612
614
  }
613
- class Ie extends b {
615
+ class nt extends x {
614
616
  http;
615
617
  baseUrl;
616
618
  constructor(e, t) {
@@ -662,7 +664,7 @@ class Ie extends b {
662
664
  }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
663
665
  }
664
666
  }
665
- class ze extends b {
667
+ class st extends x {
666
668
  http;
667
669
  baseUrl;
668
670
  constructor(e, t) {
@@ -937,7 +939,7 @@ class ze extends b {
937
939
  }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
938
940
  }
939
941
  }
940
- class $e extends b {
942
+ class at extends x {
941
943
  http;
942
944
  baseUrl;
943
945
  constructor(e, t) {
@@ -970,7 +972,7 @@ class $e extends b {
970
972
  }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
971
973
  }
972
974
  }
973
- class Ne extends b {
975
+ class it extends x {
974
976
  http;
975
977
  baseUrl;
976
978
  constructor(e, t) {
@@ -1074,7 +1076,7 @@ class Ne extends b {
1074
1076
  }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1075
1077
  }
1076
1078
  }
1077
- class Ge extends b {
1079
+ class ot extends x {
1078
1080
  http;
1079
1081
  baseUrl;
1080
1082
  constructor(e, t) {
@@ -1530,7 +1532,7 @@ class Ge extends b {
1530
1532
  }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1531
1533
  }
1532
1534
  }
1533
- class ke extends b {
1535
+ class lt extends x {
1534
1536
  http;
1535
1537
  baseUrl;
1536
1538
  constructor(e, t) {
@@ -1632,7 +1634,7 @@ class ke extends b {
1632
1634
  }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1633
1635
  }
1634
1636
  }
1635
- class Je extends b {
1637
+ class ut extends x {
1636
1638
  http;
1637
1639
  baseUrl;
1638
1640
  constructor(e, t) {
@@ -1688,7 +1690,7 @@ class Je extends b {
1688
1690
  }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1689
1691
  }
1690
1692
  }
1691
- class te extends b {
1693
+ class ge extends x {
1692
1694
  http;
1693
1695
  baseUrl;
1694
1696
  constructor(e, t) {
@@ -2825,7 +2827,7 @@ class te extends b {
2825
2827
  }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2826
2828
  }
2827
2829
  }
2828
- class Fe extends b {
2830
+ class ht extends x {
2829
2831
  http;
2830
2832
  baseUrl;
2831
2833
  constructor(e, t) {
@@ -2953,7 +2955,7 @@ class Fe extends b {
2953
2955
  }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2954
2956
  }
2955
2957
  }
2956
- class Me extends b {
2958
+ class ct extends x {
2957
2959
  http;
2958
2960
  baseUrl;
2959
2961
  constructor(e, t) {
@@ -3222,8 +3224,8 @@ class Me extends b {
3222
3224
  }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3223
3225
  }
3224
3226
  }
3225
- var re = /* @__PURE__ */ ((i) => (i.AppMenu = "AppMenu", i.MainMenu = "MainMenu", i.Hidden = "Hidden", i))(re || {}), ne = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.Html = "Html", i.Image = "Image", i))(ne || {}), se = /* @__PURE__ */ ((i) => (i.Detached = "Detached", i.Unchanged = "Unchanged", i.Added = "Added", i.Deleted = "Deleted", i.Modified = "Modified", i))(se || {}), ae = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.Object = "Object", i.Array = "Array", i.String = "String", i.Number = "Number", i.True = "True", i.False = "False", i.Null = "Null", i))(ae || {}), ie = /* @__PURE__ */ ((i) => (i.Info = "Info", i.Warning = "Warning", i.Debug = "Debug", i.Error = "Error", i))(ie || {}), oe = /* @__PURE__ */ ((i) => (i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.SecureString = "SecureString", i.Json = "Json", i.PositiveInteger = "PositiveInteger", i))(oe || {}), le = /* @__PURE__ */ ((i) => (i.Ascending = "Ascending", i.Descending = "Descending", i))(le || {});
3226
- class ue extends Error {
3227
+ var Ee = /* @__PURE__ */ ((i) => (i.AppMenu = "AppMenu", i.MainMenu = "MainMenu", i.Hidden = "Hidden", i))(Ee || {}), Ue = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.Html = "Html", i.Image = "Image", i))(Ue || {}), ye = /* @__PURE__ */ ((i) => (i.Detached = "Detached", i.Unchanged = "Unchanged", i.Added = "Added", i.Deleted = "Deleted", i.Modified = "Modified", i))(ye || {}), Se = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.Object = "Object", i.Array = "Array", i.String = "String", i.Number = "Number", i.True = "True", i.False = "False", i.Null = "Null", i))(Se || {}), Te = /* @__PURE__ */ ((i) => (i.Info = "Info", i.Warning = "Warning", i.Debug = "Debug", i.Error = "Error", i))(Te || {}), _e = /* @__PURE__ */ ((i) => (i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.SecureString = "SecureString", i.Json = "Json", i.PositiveInteger = "PositiveInteger", i))(_e || {}), Pe = /* @__PURE__ */ ((i) => (i.Ascending = "Ascending", i.Descending = "Descending", i))(Pe || {});
3228
+ class we extends Error {
3227
3229
  message;
3228
3230
  status;
3229
3231
  response;
@@ -3238,21 +3240,21 @@ class ue extends Error {
3238
3240
  }
3239
3241
  }
3240
3242
  function a(i, e, t, n, r) {
3241
- throw r ?? new ue(i, e, t, n, null);
3243
+ throw r ?? new we(i, e, t, n, null);
3242
3244
  }
3243
- const D = {
3245
+ const W = {
3244
3246
  debug: 0,
3245
3247
  info: 1,
3246
3248
  warn: 2,
3247
3249
  error: 3,
3248
3250
  none: 4
3249
- }, he = {
3251
+ }, Oe = {
3250
3252
  level: "warn",
3251
3253
  prefix: "@vc-shell/framework",
3252
3254
  enabled: !0
3253
3255
  };
3254
- function g(i) {
3255
- const e = { ...he }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? D[r] >= D[e.level] : !1;
3256
+ function E(i) {
3257
+ const e = { ...Oe }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? W[r] >= W[e.level] : !1;
3256
3258
  return {
3257
3259
  /**
3258
3260
  * Log debug messages (only in development)
@@ -3281,7 +3283,7 @@ function g(i) {
3281
3283
  /**
3282
3284
  * Create a child logger with additional context
3283
3285
  */
3284
- child: (r) => g(i ? `${i}:${r}` : r),
3286
+ child: (r) => E(i ? `${i}:${r}` : r),
3285
3287
  /**
3286
3288
  * Set the log level for this logger instance
3287
3289
  */
@@ -3296,16 +3298,16 @@ function g(i) {
3296
3298
  }
3297
3299
  };
3298
3300
  }
3299
- const De = g(), Be = {
3300
- core: g("core"),
3301
- ui: g("ui"),
3302
- shared: g("shared"),
3303
- plugins: g("plugins"),
3304
- services: g("services"),
3305
- composables: g("composables")
3306
- }, k = g("use-external-provider"), ce = "externalSignIn", de = () => {
3307
- const i = new ee(), e = H(
3308
- ce,
3301
+ const dt = E(), ft = {
3302
+ core: E("core"),
3303
+ ui: E("ui"),
3304
+ shared: E("shared"),
3305
+ plugins: E("plugins"),
3306
+ services: E("services"),
3307
+ composables: E("composables")
3308
+ }, J = E("use-external-provider"), Ae = "externalSignIn", je = () => {
3309
+ const i = new xe(), e = oe(
3310
+ Ae,
3309
3311
  {},
3310
3312
  {
3311
3313
  listenToStorageChanges: !0,
@@ -3321,18 +3323,18 @@ const De = g(), Be = {
3321
3323
  const l = window.location.origin, h = window.location.pathname ?? t() ?? "/";
3322
3324
  if (!o)
3323
3325
  throw new Error("The parameter 'authenticationType' cannot be null or undefined.");
3324
- const x = new URL("/externalsignin", l);
3325
- x.searchParams.set("authenticationType", o), x.searchParams.set("returnUrl", h), e.value = { providerType: o }, window.location.assign(x);
3326
+ const b = new URL("/externalsignin", l);
3327
+ b.searchParams.set("authenticationType", o), b.searchParams.set("returnUrl", h), e.value = { providerType: o }, window.location.assign(b);
3326
3328
  } catch (l) {
3327
- throw k.error("External sign-in failed:", l), l;
3329
+ throw J.error("External sign-in failed:", l), l;
3328
3330
  }
3329
3331
  }
3330
3332
  async function r(o) {
3331
3333
  try {
3332
- const l = window.location.origin, h = window.location.pathname ?? "/", x = new URL("/externalsignin/signout", l);
3333
- x.searchParams.set("authenticationType", o), x.searchParams.set("returnUrl", h), e.value = {}, window.location.assign(x);
3334
+ const l = window.location.origin, h = window.location.pathname ?? "/", b = new URL("/externalsignin/signout", l);
3335
+ b.searchParams.set("authenticationType", o), b.searchParams.set("returnUrl", h), e.value = {}, window.location.assign(b);
3334
3336
  } catch (l) {
3335
- throw k.error("External sign-out failed:", l), l;
3337
+ throw J.error("External sign-out failed:", l), l;
3336
3338
  }
3337
3339
  }
3338
3340
  async function s() {
@@ -3340,7 +3342,7 @@ const De = g(), Be = {
3340
3342
  try {
3341
3343
  o = await i.getExternalLoginProviders();
3342
3344
  } catch (l) {
3343
- k.error("Failed to get external login providers:", l);
3345
+ J.error("Failed to get external login providers:", l);
3344
3346
  }
3345
3347
  return o;
3346
3348
  }
@@ -3350,32 +3352,43 @@ const De = g(), Be = {
3350
3352
  signOut: r,
3351
3353
  getProviders: s
3352
3354
  };
3353
- }, M = "vc_auth_data", f = g("use-user");
3354
- function fe() {
3355
+ };
3356
+ let B = !1;
3357
+ function pt() {
3358
+ B = !0;
3359
+ }
3360
+ function mt() {
3361
+ return B;
3362
+ }
3363
+ function Re() {
3364
+ B = !1;
3365
+ }
3366
+ const L = "vc_auth_data", m = E("use-user");
3367
+ function Ce() {
3355
3368
  try {
3356
- const i = localStorage.getItem(M);
3369
+ const i = localStorage.getItem(L);
3357
3370
  if (i)
3358
3371
  return JSON.parse(i);
3359
3372
  } catch (i) {
3360
- f.error("Failed to read auth data from storage:", i);
3373
+ m.error("Failed to read auth data from storage:", i);
3361
3374
  }
3362
3375
  return null;
3363
3376
  }
3364
- function B(i) {
3377
+ function V(i) {
3365
3378
  try {
3366
- f.debug("storeAuthData - Saving:", i), localStorage.setItem(M, JSON.stringify(i)), f.debug("storeAuthData - Saved successfully");
3379
+ m.debug("storeAuthData - Saving:", i), localStorage.setItem(L, JSON.stringify(i)), m.debug("storeAuthData - Saved successfully");
3367
3380
  } catch (e) {
3368
- f.error("Failed to store auth data:", e);
3381
+ m.error("Failed to store auth data:", e);
3369
3382
  }
3370
3383
  }
3371
- function pe() {
3384
+ function Ie() {
3372
3385
  try {
3373
- localStorage.removeItem(M);
3386
+ localStorage.removeItem(L);
3374
3387
  } catch (i) {
3375
- f.error("Failed to clear auth data:", i);
3388
+ m.error("Failed to clear auth data:", i);
3376
3389
  }
3377
3390
  }
3378
- async function L(i) {
3391
+ async function q(i) {
3379
3392
  try {
3380
3393
  const e = new URLSearchParams(i).toString(), t = await fetch("/connect/token", {
3381
3394
  method: "POST",
@@ -3386,13 +3399,13 @@ async function L(i) {
3386
3399
  });
3387
3400
  if (!t.ok) {
3388
3401
  const h = await t.text();
3389
- return f.error("fetchToken - HTTP error:", t.status, t.statusText, h), null;
3402
+ return m.error("fetchToken - HTTP error:", t.status, t.statusText, h), null;
3390
3403
  }
3391
3404
  const n = await t.json();
3392
- f.debug("fetchToken - Response:", n);
3405
+ m.debug("fetchToken - Response:", n);
3393
3406
  const r = n.access_token, s = n.refresh_token, o = n.expires_in;
3394
3407
  if (n.error || !r)
3395
- return f.error("fetchToken - Error:", n.error_description || n.error || "No access token"), null;
3408
+ return m.error("fetchToken - Error:", n.error_description || n.error || "No access token"), null;
3396
3409
  const l = o ? Date.now() + o * 1e3 : null;
3397
3410
  return {
3398
3411
  token: r,
@@ -3401,16 +3414,16 @@ async function L(i) {
3401
3414
  expires_at: l
3402
3415
  };
3403
3416
  } catch (e) {
3404
- return f.error("fetchToken - Exception:", e), null;
3417
+ return m.error("fetchToken - Exception:", e), null;
3405
3418
  }
3406
3419
  }
3407
- function me() {
3408
- const i = N(!1), e = N(), t = N(null), { storage: n, signOut: r } = de(), s = new te(), o = u(() => e.value?.userName != null);
3409
- async function l(c, m) {
3420
+ function ze() {
3421
+ const i = S(!1), e = S(), t = S(null), { storage: n, signOut: r } = je(), s = new ge(), o = u(() => e.value?.userName != null);
3422
+ async function l(c, d) {
3410
3423
  let p = !1;
3411
3424
  try {
3412
3425
  i.value = !0, p = await s.validatePasswordResetToken(c, {
3413
- token: m
3426
+ token: d
3414
3427
  });
3415
3428
  } catch {
3416
3429
  } finally {
@@ -3421,38 +3434,38 @@ function me() {
3421
3434
  async function h(c) {
3422
3435
  return s.validatePassword(c);
3423
3436
  }
3424
- async function x(c, m, p) {
3437
+ async function b(c, d, p) {
3425
3438
  return s.resetPasswordByToken(c, {
3426
- newPassword: m,
3439
+ newPassword: d,
3427
3440
  token: p
3428
3441
  });
3429
3442
  }
3430
- async function I(c, m) {
3431
- f.debug("signIn - Entry point");
3443
+ async function C(c, d) {
3444
+ m.debug("signIn - Entry point");
3432
3445
  try {
3433
- i.value = !0;
3434
- const p = await s.login({ userName: c, password: m });
3435
- if (f.debug("signIn - Cookie login completed:", p), !p.succeeded)
3446
+ i.value = !0, Re();
3447
+ const p = await s.login({ userName: c, password: d });
3448
+ if (m.debug("signIn - Cookie login completed:", p), !p.succeeded)
3436
3449
  return p;
3437
- f.debug("signIn - Requesting token...");
3438
- const v = await L({
3450
+ m.debug("signIn - Requesting token...");
3451
+ const v = await q({
3439
3452
  grant_type: "password",
3440
3453
  username: c,
3441
- password: m,
3454
+ password: d,
3442
3455
  scope: "offline_access"
3443
3456
  });
3444
- v && (t.value = v, B(t.value), f.debug("signIn - Token saved:", t.value));
3445
- const y = await s.getCurrentUser();
3446
- if (y)
3447
- return e.value = y, p;
3457
+ v && (t.value = v, V(t.value), m.debug("signIn - Token saved:", t.value));
3458
+ const j = await s.getCurrentUser();
3459
+ if (j)
3460
+ return e.value = j, p;
3448
3461
  throw { succeeded: !1 };
3449
3462
  } catch (p) {
3450
- f.error("signIn failed:", p);
3463
+ m.error("signIn failed:", p);
3451
3464
  let v = p.message;
3452
3465
  if (p.response)
3453
3466
  try {
3454
- const y = JSON.parse(p.response);
3455
- v = y.errorDescription || y.errors?.[0]?.description || y.error || v;
3467
+ const j = JSON.parse(p.response);
3468
+ v = j.errorDescription || j.errors?.[0]?.description || j.error || v;
3456
3469
  } catch {
3457
3470
  }
3458
3471
  return { succeeded: !1, error: v, status: p.status };
@@ -3460,41 +3473,41 @@ function me() {
3460
3473
  i.value = !1;
3461
3474
  }
3462
3475
  }
3463
- async function O() {
3464
- f.debug("signOut - Entry point"), e.value = void 0, pe(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : s.logout();
3476
+ async function w() {
3477
+ m.debug("signOut - Entry point"), e.value = void 0, Ie(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : s.logout();
3465
3478
  }
3466
3479
  let U = null;
3467
- async function w() {
3480
+ async function O() {
3468
3481
  return U || (U = (async () => {
3469
- f.debug("loadUser - Entry point");
3482
+ m.debug("loadUser - Entry point");
3470
3483
  try {
3471
3484
  i.value = !0, performance.mark("vc:auth-start");
3472
- const [c] = await Promise.all([s.getCurrentUser(), d()]);
3473
- e.value = c, performance.mark("vc:auth-done"), f.debug("User details loaded:", e.value);
3485
+ const [c] = await Promise.all([s.getCurrentUser(), f()]);
3486
+ e.value = c, performance.mark("vc:auth-done"), m.debug("User details loaded:", e.value);
3474
3487
  } catch (c) {
3475
- f.error("loadUser failed:", c);
3488
+ m.error("loadUser failed:", c);
3476
3489
  } finally {
3477
3490
  i.value = !1, U = null;
3478
3491
  }
3479
3492
  return { ...e.value };
3480
3493
  })(), U);
3481
3494
  }
3482
- async function z(c) {
3495
+ async function I(c) {
3483
3496
  try {
3484
3497
  return i.value = !0, await s.requestPasswordReset(c), { succeeded: !0 };
3485
- } catch (m) {
3486
- return { succeeded: !1, error: m };
3498
+ } catch (d) {
3499
+ return { succeeded: !1, error: d };
3487
3500
  } finally {
3488
3501
  i.value = !1;
3489
3502
  }
3490
3503
  }
3491
- async function A(c, m) {
3504
+ async function A(c, d) {
3492
3505
  let p;
3493
3506
  try {
3494
3507
  i.value = !0;
3495
3508
  const v = {
3496
3509
  oldPassword: c,
3497
- newPassword: m
3510
+ newPassword: d
3498
3511
  };
3499
3512
  p = await s.changeCurrentUserPassword(v);
3500
3513
  } catch (v) {
@@ -3508,32 +3521,32 @@ function me() {
3508
3521
  let c = null;
3509
3522
  try {
3510
3523
  c = await s.getLoginTypes();
3511
- } catch (m) {
3512
- throw f.error("getLoginType failed:", m), m;
3524
+ } catch (d) {
3525
+ throw m.error("getLoginType failed:", d), d;
3513
3526
  }
3514
3527
  return c;
3515
3528
  }
3516
- const $ = 60 * 1e3;
3517
- async function d() {
3518
- if (f.debug("getAccessToken - Entry point"), t.value || (t.value = fe()), !t.value)
3519
- return f.debug("getAccessToken - No auth data available"), null;
3520
- const c = Date.now(), m = t.value.expires_at, p = m ? c >= m - $ : !1;
3521
- if (f.debug("getAccessToken - Token status:", {
3529
+ const z = 60 * 1e3;
3530
+ async function f() {
3531
+ if (m.debug("getAccessToken - Entry point"), t.value || (t.value = Ce()), !t.value)
3532
+ return m.debug("getAccessToken - No auth data available"), null;
3533
+ const c = Date.now(), d = t.value.expires_at, p = d ? c >= d - z : !1;
3534
+ if (m.debug("getAccessToken - Token status:", {
3522
3535
  hasToken: !!t.value.access_token,
3523
- expiresAt: m ? new Date(m).toISOString() : "not set",
3536
+ expiresAt: d ? new Date(d).toISOString() : "not set",
3524
3537
  now: new Date(c).toISOString(),
3525
3538
  shouldRefresh: p,
3526
3539
  hasRefreshToken: !!t.value.refresh_token
3527
3540
  }), p && t.value.refresh_token) {
3528
- f.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
3529
- const v = await L({
3541
+ m.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
3542
+ const v = await q({
3530
3543
  grant_type: "refresh_token",
3531
3544
  refresh_token: t.value.refresh_token,
3532
3545
  scope: "offline_access"
3533
3546
  });
3534
- v ? (v.refresh_token = v.refresh_token ?? t.value.refresh_token, t.value = v, B(t.value), f.debug("getAccessToken - Token refreshed successfully, new expiry:", {
3547
+ v ? (v.refresh_token = v.refresh_token ?? t.value.refresh_token, t.value = v, V(t.value), m.debug("getAccessToken - Token refreshed successfully, new expiry:", {
3535
3548
  expiresAt: v.expires_at ? new Date(v.expires_at).toISOString() : "not set"
3536
- })) : f.warn("getAccessToken - Failed to refresh token, returning existing token");
3549
+ })) : m.warn("getAccessToken - Failed to refresh token, returning existing token");
3537
3550
  }
3538
3551
  return t.value?.access_token ?? t.value?.token ?? null;
3539
3552
  }
@@ -3542,20 +3555,20 @@ function me() {
3542
3555
  loading: u(() => i.value),
3543
3556
  isAdministrator: u(() => e.value?.isAdministrator),
3544
3557
  isAuthenticated: o,
3545
- loadUser: w,
3546
- signIn: I,
3547
- signOut: O,
3558
+ loadUser: O,
3559
+ signIn: C,
3560
+ signOut: w,
3548
3561
  validateToken: l,
3549
3562
  validatePassword: h,
3550
- resetPasswordByToken: x,
3551
- requestPasswordReset: z,
3563
+ resetPasswordByToken: b,
3564
+ requestPasswordReset: I,
3552
3565
  changeUserPassword: A,
3553
3566
  getLoginType: _,
3554
- getAccessToken: d
3567
+ getAccessToken: f
3555
3568
  };
3556
3569
  }
3557
- const ve = Y(me), Le = () => {
3558
- const i = ve();
3570
+ const $e = le(ze), vt = () => {
3571
+ const i = $e();
3559
3572
  return {
3560
3573
  user: i.user,
3561
3574
  loading: i.loading,
@@ -3565,7 +3578,7 @@ const ve = Y(me), Le = () => {
3565
3578
  signOut: i.signOut,
3566
3579
  getAccessToken: i.getAccessToken
3567
3580
  };
3568
- }, Ke = Symbol("BladeStack"), We = Symbol("BladeMessaging"), Ve = Symbol("BladeDescriptor"), qe = Symbol("BladeMaximized"), He = Symbol("BladeRenderingState"), Ye = Symbol("BladeData"), Xe = Symbol("BladeBanners"), Ze = Symbol("BladeBackButton"), Qe = Symbol("NotificationStore"), et = Symbol("WidgetService"), tt = Symbol("DashboardService"), rt = Symbol("MenuService"), nt = Symbol("SettingsMenuService"), st = Symbol("AppBarWidgetService"), at = Symbol("AppBarMobileButtonsService"), it = Symbol("LanguageService"), ot = Symbol("ToolbarService"), lt = Symbol("DynamicModules"), ut = Symbol("ModulesReady"), ht = Symbol("ModulesLoadError"), ct = Symbol("AppRootElement"), dt = Symbol("EmbeddedMode"), ft = Symbol("ShellIndicators"), pt = Symbol("AiAgentService"), mt = Symbol("IsMobile"), vt = Symbol("IsDesktop"), bt = Symbol("IsPhone"), xt = Symbol("IsTablet"), gt = Symbol("IsTouch"), Et = Symbol("BladeRoutes"), Ut = Symbol("InternalRoutes"), St = Symbol("CloseSettingsMenu"), yt = Symbol("BladeContext"), Tt = Symbol("WidgetScope"), _t = Symbol("BladeForm"), Pt = Symbol("BladeLoading"), be = /* @__PURE__ */ T({
3581
+ }, bt = Symbol("BladeStack"), xt = Symbol("BladeMessaging"), gt = Symbol("BladeDescriptor"), Et = Symbol("BladeMaximized"), Ut = Symbol("BladeRenderingState"), yt = Symbol("BladeData"), St = Symbol("BladeBanners"), Tt = Symbol("BladeBackButton"), _t = Symbol("NotificationStore"), Pt = Symbol("WidgetService"), wt = Symbol("DashboardService"), Ot = Symbol("MenuService"), At = Symbol("SettingsMenuService"), jt = Symbol("AppBarWidgetService"), Rt = Symbol("AppBarMobileButtonsService"), Ct = Symbol("LanguageService"), It = Symbol("ToolbarService"), zt = Symbol("DynamicModules"), $t = Symbol("ModulesReady"), Nt = Symbol("ModulesLoadError"), Ne = Symbol("AppRootElement"), Gt = Symbol("EmbeddedMode"), kt = Symbol("ShellIndicators"), Jt = Symbol("AiAgentService"), Ft = Symbol("IsMobile"), Mt = Symbol("IsDesktop"), Dt = Symbol("IsPhone"), Bt = Symbol("IsTablet"), Lt = Symbol("IsTouch"), Kt = Symbol("BladeRoutes"), Wt = Symbol("InternalRoutes"), Vt = Symbol("CloseSettingsMenu"), qt = Symbol("BladeContext"), Ht = Symbol("WidgetScope"), Yt = Symbol("BladeForm"), Xt = Symbol("BladeLoading"), Ge = /* @__PURE__ */ P({
3569
3582
  __name: "vc-material-icon",
3570
3583
  props: {
3571
3584
  icon: {},
@@ -3576,19 +3589,19 @@ const ve = Y(me), Le = () => {
3576
3589
  },
3577
3590
  setup(i) {
3578
3591
  const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
3579
- return R(() => {
3580
- }), (r, s) => (E(), S("span", {
3581
- class: P([
3592
+ return G(() => {
3593
+ }), (r, s) => (g(), y("span", {
3594
+ class: T([
3582
3595
  "vc-material-icon",
3583
3596
  "material-symbols-" + i.type,
3584
3597
  !t.value && `vc-material-icon--${i.size}`,
3585
3598
  i.variant ? `vc-material-icon--${i.variant}` : ""
3586
3599
  ]),
3587
- style: C(n.value),
3600
+ style: R(n.value),
3588
3601
  "aria-hidden": "true"
3589
- }, W(i.icon), 7));
3602
+ }, Y(i.icon), 7));
3590
3603
  }
3591
- }), xe = /* @__PURE__ */ T({
3604
+ }), ke = /* @__PURE__ */ P({
3592
3605
  __name: "vc-bootstrap-icon",
3593
3606
  props: {
3594
3607
  icon: {},
@@ -3598,21 +3611,21 @@ const ve = Y(me), Le = () => {
3598
3611
  },
3599
3612
  setup(i) {
3600
3613
  const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
3601
- R(() => {
3614
+ G(() => {
3602
3615
  });
3603
3616
  const r = u(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
3604
- return (s, o) => (E(), S("i", {
3605
- class: P([
3617
+ return (s, o) => (g(), y("i", {
3618
+ class: T([
3606
3619
  "vc-bootstrap-icon",
3607
3620
  !t.value && `vc-bootstrap-icon--${i.size}`,
3608
3621
  r.value,
3609
3622
  i.variant ? `vc-bootstrap-icon--${i.variant}` : ""
3610
3623
  ]),
3611
- style: C(n.value),
3624
+ style: R(n.value),
3612
3625
  "aria-hidden": "true"
3613
3626
  }, null, 6));
3614
3627
  }
3615
- }), ge = /* @__PURE__ */ T({
3628
+ }), Je = /* @__PURE__ */ P({
3616
3629
  __name: "vc-lucide-icon",
3617
3630
  props: {
3618
3631
  icon: {},
@@ -3622,35 +3635,35 @@ const ve = Y(me), Le = () => {
3622
3635
  customSize: {}
3623
3636
  },
3624
3637
  setup(i) {
3625
- const e = g("vc-lucide-icon"), t = i, n = u(() => typeof t.customSize == "number" && t.customSize > 0), r = u(() => {
3638
+ const e = E("vc-lucide-icon"), t = i, n = u(() => typeof t.customSize == "number" && t.customSize > 0), r = u(() => {
3626
3639
  if (!t.icon) return "HelpCircleIcon";
3627
3640
  let l = t.icon;
3628
3641
  return l.startsWith("lucide-") && (l = l.substring(7)), l.toLowerCase().endsWith("icon") && (l = l.slice(0, -4)), l.includes("-") && (l = l.split("-").map((h) => h.charAt(0).toUpperCase() + h.slice(1)).join("")), l.charAt(0).toUpperCase() + l.slice(1) + "Icon";
3629
3642
  }), s = u(() => {
3630
- const l = r.value, h = X[l];
3631
- return !h || typeof h != "object" && typeof h != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : K(h);
3643
+ const l = r.value, h = ue[l];
3644
+ return !h || typeof h != "object" && typeof h != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : H(h);
3632
3645
  }), o = u(() => n.value && t.customSize ? {
3633
3646
  width: `${t.customSize}px`,
3634
3647
  height: `${t.customSize}px`
3635
3648
  } : {});
3636
- return (l, h) => s.value ? (E(), J(F(s.value), {
3649
+ return (l, h) => s.value ? (g(), N(F(s.value), {
3637
3650
  key: 0,
3638
3651
  "stroke-width": t.strokeWidth,
3639
- class: P([
3652
+ class: T([
3640
3653
  "vc-lucide-icon",
3641
3654
  !n.value && `vc-lucide-icon--${i.size}`,
3642
3655
  i.variant ? `vc-lucide-icon--${i.variant}` : ""
3643
3656
  ]),
3644
- style: C(o.value),
3657
+ style: R(o.value),
3645
3658
  "aria-hidden": "true"
3646
- }, null, 8, ["stroke-width", "class", "style"])) : (E(), S("span", {
3659
+ }, null, 8, ["stroke-width", "class", "style"])) : (g(), y("span", {
3647
3660
  key: 1,
3648
- class: P(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
3661
+ class: T(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
3649
3662
  }, [...h[0] || (h[0] = [
3650
- V("i", { class: "vc-lucide-icon__fallback" }, null, -1)
3663
+ M("i", { class: "vc-lucide-icon__fallback" }, null, -1)
3651
3664
  ])], 2));
3652
3665
  }
3653
- }), Ee = /* @__PURE__ */ T({
3666
+ }), Fe = /* @__PURE__ */ P({
3654
3667
  __name: "vc-fontawesome-icon",
3655
3668
  props: {
3656
3669
  icon: {},
@@ -3660,21 +3673,21 @@ const ve = Y(me), Le = () => {
3660
3673
  },
3661
3674
  setup(i) {
3662
3675
  const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
3663
- R(() => {
3676
+ G(() => {
3664
3677
  });
3665
3678
  const r = u(() => e.icon.startsWith("fas ") || e.icon.startsWith("far ") || e.icon.startsWith("fal ") || e.icon.startsWith("fab ") || e.icon.startsWith("fad ") ? e.icon : e.icon.startsWith("fa-") ? `fas ${e.icon}` : e.icon.includes("fa-") ? e.icon : `fas fa-${e.icon}`);
3666
- return (s, o) => (E(), S("i", {
3667
- class: P([
3679
+ return (s, o) => (g(), y("i", {
3680
+ class: T([
3668
3681
  "vc-fa-icon",
3669
3682
  !t.value && `vc-fa-icon--${i.size}`,
3670
3683
  r.value,
3671
3684
  i.variant ? `vc-fa-icon--${i.variant}` : ""
3672
3685
  ]),
3673
- style: C(n.value),
3686
+ style: R(n.value),
3674
3687
  "aria-hidden": "true"
3675
3688
  }, null, 6));
3676
3689
  }
3677
- }), Ue = ["xlink:href"], Se = /* @__PURE__ */ T({
3690
+ }), Me = ["xlink:href"], De = /* @__PURE__ */ P({
3678
3691
  inheritAttrs: !1,
3679
3692
  __name: "vc-svg-icon",
3680
3693
  props: {
@@ -3699,18 +3712,18 @@ const ve = Y(me), Le = () => {
3699
3712
  const s = {};
3700
3713
  return e.customSize && (s.width = `${e.customSize}px`, s.height = `${e.customSize}px`), e.strokeWidth && (s.strokeWidth = `${e.strokeWidth}`), s;
3701
3714
  });
3702
- return (s, o) => (E(), S("svg", j({
3715
+ return (s, o) => (g(), y("svg", $({
3703
3716
  xmlns: "http://www.w3.org/2000/svg",
3704
3717
  class: ["vc-svg-icon", !t.value && `vc-svg-icon--${i.size}`, i.variant ? `vc-svg-icon--${i.variant}` : ""],
3705
3718
  style: r.value
3706
3719
  }, s.$attrs), [
3707
- n.value ? (E(), S("use", {
3720
+ n.value ? (g(), y("use", {
3708
3721
  key: 0,
3709
3722
  "xlink:href": n.value
3710
- }, null, 8, Ue)) : q("", !0)
3723
+ }, null, 8, Me)) : D("", !0)
3711
3724
  ], 16));
3712
3725
  }
3713
- }), ye = ["aria-hidden", "aria-label", "role"], Ot = /* @__PURE__ */ T({
3726
+ }), Be = ["aria-hidden", "aria-label", "role"], Zt = /* @__PURE__ */ P({
3714
3727
  __name: "vc-icon",
3715
3728
  props: {
3716
3729
  icon: { default: "lucide-square" },
@@ -3723,7 +3736,7 @@ const ve = Y(me), Le = () => {
3723
3736
  },
3724
3737
  setup(i) {
3725
3738
  const e = i;
3726
- R(() => {
3739
+ G(() => {
3727
3740
  });
3728
3741
  const t = {
3729
3742
  xs: 12,
@@ -3739,42 +3752,42 @@ const ve = Y(me), Le = () => {
3739
3752
  if (n.value === "material" && e.icon.startsWith("material-"))
3740
3753
  return e.icon.replace(/^material-/, "");
3741
3754
  if (n.value === "lucide" && e.icon.startsWith("lucide-")) {
3742
- const d = e.icon.replace(/^lucide-/, "");
3743
- return d.endsWith("Icon") ? d : `${d}Icon`;
3755
+ const f = e.icon.replace(/^lucide-/, "");
3756
+ return f.endsWith("Icon") ? f : `${f}Icon`;
3744
3757
  }
3745
3758
  return e.icon;
3746
- }), s = u(() => n.value === "material"), o = u(() => n.value === "bootstrap"), l = u(() => n.value === "lucide"), h = u(() => n.value === "fontawesome"), x = u(() => {
3759
+ }), s = u(() => n.value === "material"), o = u(() => n.value === "bootstrap"), l = u(() => n.value === "lucide"), h = u(() => n.value === "fontawesome"), b = u(() => {
3747
3760
  if (typeof e.icon != "string")
3748
3761
  return !0;
3749
3762
  if (["fontawesome", "bootstrap"].includes(n.value) || n.value === "material" && e.icon.startsWith("material-") || n.value === "lucide" && e.icon.startsWith("lucide-"))
3750
3763
  return !1;
3751
3764
  if (l.value)
3752
3765
  try {
3753
- const d = typeof r.value == "string" ? r.value : String(r.value);
3754
- return G(d) !== d;
3766
+ const f = typeof r.value == "string" ? r.value : String(r.value);
3767
+ return k(f) !== f;
3755
3768
  } catch {
3756
3769
  return !1;
3757
3770
  }
3758
3771
  try {
3759
- return G(e.icon) !== e.icon;
3772
+ return k(e.icon) !== e.icon;
3760
3773
  } catch {
3761
3774
  return !1;
3762
3775
  }
3763
- }), I = u(() => {
3776
+ }), C = u(() => {
3764
3777
  if (typeof e.icon != "string")
3765
- return K(e.icon);
3778
+ return H(e.icon);
3766
3779
  if (["fontawesome", "bootstrap", "material"].includes(n.value))
3767
3780
  return "i";
3768
3781
  try {
3769
- const d = typeof r.value == "string" ? r.value : String(r.value), c = G(d);
3770
- return c !== d ? c : "i";
3782
+ const f = typeof r.value == "string" ? r.value : String(r.value), c = k(f);
3783
+ return c !== f ? c : "i";
3771
3784
  } catch {
3772
3785
  return "i";
3773
3786
  }
3774
- }), O = u(() => s.value ? be : o.value ? xe : l.value ? ge : h.value ? Ee : _.value ? Se : x.value ? I.value : "i"), U = u(() => e.customSize ? e.customSize : t[e.size]), w = u(() => {
3775
- const d = {};
3776
- return x.value && e.customSize && (d.width = `${e.customSize}px`, d.height = `${e.customSize}px`), d;
3777
- }), z = u(() => e.customSize ? {
3787
+ }), w = u(() => s.value ? Ge : o.value ? ke : l.value ? Je : h.value ? Fe : _.value ? De : b.value ? C.value : "i"), U = u(() => e.customSize ? e.customSize : t[e.size]), O = u(() => {
3788
+ const f = {};
3789
+ return b.value && e.customSize && (f.width = `${e.customSize}px`, f.height = `${e.customSize}px`), f;
3790
+ }), I = u(() => e.customSize ? {
3778
3791
  fontSize: `${e.customSize}px`
3779
3792
  } : {}), A = u(() => s.value ? {
3780
3793
  icon: typeof r.value == "string" ? r.value.replace(/-outlined$|-rounded$|-sharp$/, "") : r.value,
@@ -3806,117 +3819,239 @@ const ve = Y(me), Le = () => {
3806
3819
  customSize: e.customSize
3807
3820
  // Set custom size without scaling
3808
3821
  } : _.value ? {
3809
- icon: $.value,
3822
+ icon: z.value,
3810
3823
  size: e.size,
3811
3824
  variant: e.variant,
3812
3825
  customSize: e.customSize,
3813
3826
  basePath: e.basePath
3814
- } : x.value ? {
3827
+ } : b.value ? {
3815
3828
  size: e.size,
3816
3829
  width: U.value,
3817
3830
  height: U.value,
3818
3831
  color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
3819
- } : {}), _ = u(() => n.value === "svg"), $ = u(() => !_.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
3820
- return (d, c) => i.useContainer ? (E(), S("div", j({
3832
+ } : {}), _ = u(() => n.value === "svg"), z = u(() => !_.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
3833
+ return (f, c) => i.useContainer ? (g(), y("div", $({
3821
3834
  key: 0,
3822
3835
  class: ["vc-icon-container", `vc-icon-container--${i.size}`],
3823
- style: z.value,
3836
+ style: I.value,
3824
3837
  "aria-hidden": i.ariaLabel ? void 0 : "true",
3825
3838
  "aria-label": i.ariaLabel || void 0,
3826
3839
  role: i.ariaLabel ? "img" : void 0
3827
- }, d.$attrs), [
3828
- (E(), J(F(O.value), j({
3840
+ }, f.$attrs), [
3841
+ (g(), N(F(w.value), $({
3829
3842
  class: [
3830
3843
  "vc-icon",
3831
3844
  `vc-icon--${i.size}`,
3832
3845
  i.variant ? `vc-icon--${i.variant}` : "",
3833
- !x.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
3846
+ !b.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
3834
3847
  ],
3835
- style: w.value
3848
+ style: O.value
3836
3849
  }, A.value), null, 16, ["class", "style"]))
3837
- ], 16, ye)) : (E(), J(F(O.value), j({
3850
+ ], 16, Be)) : (g(), N(F(w.value), $({
3838
3851
  key: 1,
3839
3852
  class: [
3840
3853
  "vc-icon",
3841
3854
  `vc-icon--${i.size}`,
3842
3855
  i.variant ? `vc-icon--${i.variant}` : "",
3843
- !x.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
3856
+ !b.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
3844
3857
  ],
3845
- style: w.value,
3858
+ style: O.value,
3846
3859
  "aria-hidden": i.ariaLabel ? void 0 : "true",
3847
3860
  "aria-label": i.ariaLabel || void 0,
3848
3861
  role: i.ariaLabel ? "img" : void 0
3849
- }, { ...A.value, ...d.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
3862
+ }, { ...A.value, ...f.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
3863
+ }
3864
+ });
3865
+ function Le(i = {}) {
3866
+ const e = X(Ne, void 0);
3867
+ return {
3868
+ teleportTarget: u(() => {
3869
+ const n = i.to ? Z(i.to) : void 0;
3870
+ if (n)
3871
+ return n;
3872
+ if (e?.value)
3873
+ return e.value;
3874
+ if (i.fallbackToBody !== !1)
3875
+ return "body";
3876
+ })
3877
+ };
3878
+ }
3879
+ const Ke = ["aria-describedby"], Qt = /* @__PURE__ */ P({
3880
+ __name: "vc-tooltip",
3881
+ props: {
3882
+ placement: { default: "bottom" },
3883
+ offset: { default: () => ({
3884
+ crossAxis: 0,
3885
+ mainAxis: 8
3886
+ }) },
3887
+ delay: { default: 0 },
3888
+ arrow: { type: Boolean, default: !0 },
3889
+ variant: { default: "default" },
3890
+ maxWidth: { default: 240 },
3891
+ disabled: { type: Boolean, default: !1 }
3892
+ },
3893
+ setup(i) {
3894
+ const e = i, t = `vc-tooltip-${Q()}`, n = S(!1), r = S(null), s = S(null), o = S(null), l = S(null);
3895
+ let h = null;
3896
+ const { teleportTarget: b } = Le(), C = u(() => {
3897
+ const d = [
3898
+ de({
3899
+ mainAxis: e.offset?.mainAxis ?? 8,
3900
+ crossAxis: e.offset?.crossAxis ?? 0
3901
+ }),
3902
+ fe({ padding: 8 }),
3903
+ pe({ padding: 8 })
3904
+ ];
3905
+ return e.arrow && d.push(he({ element: o, padding: 4 })), d;
3906
+ }), {
3907
+ floatingStyles: w,
3908
+ placement: U,
3909
+ middlewareData: O
3910
+ } = ce(r, s, {
3911
+ placement: u(() => e.placement),
3912
+ whileElementsMounted: me,
3913
+ middleware: C
3914
+ }), I = u(() => typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth), A = u(() => ({
3915
+ ...w.value,
3916
+ maxWidth: I.value
3917
+ })), _ = u(() => U.value.split("-")[0]), z = u(() => {
3918
+ const d = O.value.arrow;
3919
+ if (!d) return {};
3920
+ const p = {};
3921
+ d.x != null && (p.left = `${d.x}px`), d.y != null && (p.top = `${d.y}px`);
3922
+ const v = { top: "bottom", right: "left", bottom: "top", left: "right" }[_.value];
3923
+ return p[v] = `${-8 / 2}px`, p;
3924
+ }), f = () => {
3925
+ e.disabled || (e.delay > 0 ? h = setTimeout(() => {
3926
+ n.value = !0;
3927
+ }, e.delay) : n.value = !0);
3928
+ }, c = () => {
3929
+ h && (clearTimeout(h), h = null), n.value = !1;
3930
+ };
3931
+ return ee(() => {
3932
+ h && (clearTimeout(h), h = null);
3933
+ }), (d, p) => (g(), y("div", {
3934
+ ref_key: "target",
3935
+ ref: l,
3936
+ class: "vc-tooltip",
3937
+ onMouseenter: f,
3938
+ onMouseleave: c,
3939
+ onFocusin: f,
3940
+ onFocusout: c,
3941
+ onKeydown: te(c, ["escape"])
3942
+ }, [
3943
+ M("div", {
3944
+ ref_key: "tooltipCompRef",
3945
+ ref: r,
3946
+ class: "vc-tooltip__trigger",
3947
+ "aria-describedby": n.value ? t : void 0
3948
+ }, [
3949
+ K(d.$slots, "default")
3950
+ ], 8, Ke),
3951
+ (g(), N(re, { to: ne(b) }, [
3952
+ se(ae, { name: "vc-tooltip-fade" }, {
3953
+ default: ie(() => [
3954
+ n.value && !i.disabled && d.$slots.tooltip ? (g(), y("div", {
3955
+ key: 0,
3956
+ id: t,
3957
+ ref_key: "tooltipRef",
3958
+ ref: s,
3959
+ role: "tooltip",
3960
+ style: R(A.value),
3961
+ class: T(["vc-tooltip__wrapper", `vc-tooltip__wrapper--${i.variant}`])
3962
+ }, [
3963
+ i.arrow ? (g(), y("div", {
3964
+ key: 0,
3965
+ ref_key: "arrowRef",
3966
+ ref: o,
3967
+ class: T(["vc-tooltip__arrow", `vc-tooltip__arrow--${i.variant}`]),
3968
+ style: R(z.value)
3969
+ }, null, 6)) : D("", !0),
3970
+ M("div", {
3971
+ class: T(["vc-tooltip__body", `vc-tooltip__body--${i.variant}`])
3972
+ }, [
3973
+ K(d.$slots, "tooltip")
3974
+ ], 2)
3975
+ ], 6)) : D("", !0)
3976
+ ]),
3977
+ _: 3
3978
+ })
3979
+ ], 8, ["to"]))
3980
+ ], 544));
3850
3981
  }
3851
3982
  });
3852
3983
  export {
3853
- ae as $,
3854
- pt as A,
3855
- Ve as B,
3856
- Ze as C,
3857
- Pt as D,
3858
- dt as E,
3859
- qe as F,
3860
- He as G,
3861
- Re as H,
3862
- bt as I,
3863
- St as J,
3864
- tt as K,
3865
- it as L,
3866
- ut as M,
3867
- Qe as N,
3868
- Ce as O,
3869
- Ie as P,
3870
- lt as Q,
3871
- ze as R,
3872
- Fe as S,
3873
- ot as T,
3874
- ne as U,
3875
- se as V,
3876
- et as W,
3877
- ee as X,
3878
- Ut as Y,
3879
- $e as Z,
3880
- Ot as _,
3881
- Ke as a,
3882
- Ne as a0,
3883
- Ge as a1,
3884
- ht as a2,
3885
- ke as a3,
3886
- ie as a4,
3887
- Je as a5,
3888
- te as a6,
3889
- oe as a7,
3890
- Me as a8,
3891
- ft as a9,
3892
- le as aa,
3893
- me as ab,
3894
- ve as ac,
3895
- De as ad,
3896
- Be as ae,
3897
- We as b,
3898
- g as c,
3899
- Xe as d,
3900
- Ye as e,
3901
- Tt as f,
3902
- yt as g,
3903
- de as h,
3904
- _t as i,
3905
- xt as j,
3906
- mt as k,
3907
- vt as l,
3908
- gt as m,
3909
- Et as n,
3910
- st as o,
3911
- rt as p,
3912
- nt as q,
3913
- ue as r,
3914
- at as s,
3915
- we as t,
3984
+ ye as $,
3985
+ Jt as A,
3986
+ gt as B,
3987
+ Ne as C,
3988
+ Qe as D,
3989
+ Gt as E,
3990
+ x as F,
3991
+ et as G,
3992
+ Tt as H,
3993
+ Dt as I,
3994
+ Xt as J,
3995
+ Et as K,
3996
+ Ct as L,
3997
+ $t as M,
3998
+ _t as N,
3999
+ Ut as O,
4000
+ tt as P,
4001
+ Vt as Q,
4002
+ wt as R,
4003
+ ht as S,
4004
+ It as T,
4005
+ rt as U,
4006
+ nt as V,
4007
+ Pt as W,
4008
+ zt as X,
4009
+ st as Y,
4010
+ Ue as Z,
4011
+ Zt as _,
4012
+ Qt as a,
4013
+ xe as a0,
4014
+ Wt as a1,
4015
+ at as a2,
4016
+ Se as a3,
4017
+ it as a4,
4018
+ ot as a5,
4019
+ Nt as a6,
4020
+ lt as a7,
4021
+ Te as a8,
4022
+ ut as a9,
4023
+ ge as aa,
4024
+ _e as ab,
4025
+ ct as ac,
4026
+ kt as ad,
4027
+ Pe as ae,
4028
+ ze as af,
4029
+ $e as ag,
4030
+ dt as ah,
4031
+ ft as ai,
4032
+ bt as b,
4033
+ E as c,
4034
+ xt as d,
4035
+ St as e,
4036
+ yt as f,
4037
+ vt as g,
4038
+ Ht as h,
4039
+ mt as i,
4040
+ qt as j,
4041
+ je as k,
4042
+ Yt as l,
4043
+ pt as m,
4044
+ Bt as n,
4045
+ Ft as o,
4046
+ Mt as p,
4047
+ Lt as q,
4048
+ Kt as r,
4049
+ jt as s,
4050
+ Ot as t,
3916
4051
  Le as u,
3917
- re as v,
3918
- ct as w,
3919
- Ae as x,
3920
- b as y,
3921
- je as z
4052
+ At as v,
4053
+ we as w,
4054
+ Rt as x,
4055
+ Ze as y,
4056
+ Ee as z
3922
4057
  };