@vc-shell/framework 2.2.0-pr260.a8bd3a7 → 2.2.0-pr261.11c6306

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 (72) hide show
  1. package/dist/ai-agent/index.js +3 -3
  2. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-qC6yOtWU.js +1380 -0
  3. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-qC6yOtWU.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-BneMFPUI.js} +368 -246
  5. package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-BneMFPUI.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-ChAZE3ab.js} +6901 -6742
  7. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-ChAZE3ab.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-DGx3smxP.js} +1485 -1606
  9. package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-DGx3smxP.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-Vlgchlib.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-Vlgchlib.js.map} +1 -1
  12. package/dist/chunks/{index-CvSe3hjU.js → index-BuToNK4r.js} +2 -2
  13. package/dist/chunks/{index-CvSe3hjU.js.map → index-BuToNK4r.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/useKeyboardShortcuts/format.d.ts +11 -0
  25. package/dist/core/composables/useKeyboardShortcuts/format.d.ts.map +1 -0
  26. package/dist/core/composables/useKeyboardShortcuts/hotkey.d.ts +14 -0
  27. package/dist/core/composables/useKeyboardShortcuts/hotkey.d.ts.map +1 -0
  28. package/dist/core/composables/useKeyboardShortcuts/index.d.ts +23 -0
  29. package/dist/core/composables/useKeyboardShortcuts/index.d.ts.map +1 -0
  30. package/dist/core/composables/useKeyboardShortcuts/match.d.ts +14 -0
  31. package/dist/core/composables/useKeyboardShortcuts/match.d.ts.map +1 -0
  32. package/dist/core/plugins/ai-agent/components/VcAiAgentPanel.vue.d.ts.map +1 -1
  33. package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts.map +1 -1
  34. package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts.map +1 -1
  35. package/dist/core/types/index.d.ts +12 -0
  36. package/dist/core/types/index.d.ts.map +1 -1
  37. package/dist/dashboard/index.js +1 -1
  38. package/dist/framework.js +350 -341
  39. package/dist/framework.js.map +1 -1
  40. package/dist/index.css +1 -1
  41. package/dist/locales/de.js +4 -1
  42. package/dist/locales/en.js +4 -1
  43. package/dist/locales/en.json +4 -1
  44. package/dist/locales/types.d.ts +3 -0
  45. package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts +22 -0
  46. package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts.map +1 -0
  47. package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/vc-blade-navigation-new.vue.d.ts.map +1 -1
  48. package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
  49. package/dist/test-helpers.d.ts.map +1 -1
  50. package/dist/tsconfig.tsbuildinfo +1 -1
  51. package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
  52. package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts +1 -1
  53. package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts.map +1 -1
  54. package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
  55. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ShortcutKbd.vue.d.ts +11 -0
  56. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ShortcutKbd.vue.d.ts.map +1 -0
  57. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts.map +1 -1
  58. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/toolbar-button-props.d.ts +2 -0
  59. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/toolbar-button-props.d.ts.map +1 -1
  60. package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +1 -1
  61. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts +1 -1
  62. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts.map +1 -1
  63. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  64. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  65. package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
  66. package/dist/ui/index.js +20 -20
  67. package/package.json +4 -4
  68. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cx8_DCu_.js +0 -1124
  69. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cx8_DCu_.js.map +0 -1
  70. package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D2KmNhhl.js.map +0 -1
  71. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-DmHoLXKj.js.map +0 -1
  72. 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 H, markRaw as q, createBlock as N, resolveDynamicComponent as F, createElementVNode as M, mergeProps as $, createCommentVNode as D, resolveComponent as k, inject as Y, toValue as X, useId as Z, onBeforeUnmount as Q, withKeys as ee, renderSlot as L, Teleport as te, unref as re, createVNode as ne, Transition as se, withCtx as ae } from "vue";
2
+ import { a as ie } from "./vendor-vueuse-core-BFa9je5E.js";
3
+ import { j as oe } from "./vendor-vueuse-shared-kZH3-Km1.js";
4
+ import { L as le } from "./vendor-lucide-vue-next-CwUrzD6N.js";
5
+ import { a as ue, u as he } from "./vendor-floating-ui-vue-sCrhit51.js";
6
+ import { o as ce, f as de, s as fe, b as pe } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
7
+ const me = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
8
+ function ve(i, e) {
9
+ if (typeof e == "string" && me.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 = ve;
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 be 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 Ye 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 Xe 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 Ze 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 Qe 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 et 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 tt 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 rt 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 nt 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 st 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 at 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 it 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 ot 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 xe 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 lt 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 ut 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 ge = /* @__PURE__ */ ((i) => (i.AppMenu = "AppMenu", i.MainMenu = "MainMenu", i.Hidden = "Hidden", i))(ge || {}), Ee = /* @__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))(Ee || {}), Ue = /* @__PURE__ */ ((i) => (i.Detached = "Detached", i.Unchanged = "Unchanged", i.Added = "Added", i.Deleted = "Deleted", i.Modified = "Modified", i))(Ue || {}), ye = /* @__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))(ye || {}), Se = /* @__PURE__ */ ((i) => (i.Info = "Info", i.Warning = "Warning", i.Debug = "Debug", i.Error = "Error", i))(Se || {}), Te = /* @__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))(Te || {}), _e = /* @__PURE__ */ ((i) => (i.Ascending = "Ascending", i.Descending = "Descending", i))(_e || {});
3228
+ class Pe 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 Pe(i, e, t, n, null);
3242
3244
  }
3243
- const D = {
3245
+ const K = {
3244
3246
  debug: 0,
3245
3247
  info: 1,
3246
3248
  warn: 2,
3247
3249
  error: 3,
3248
3250
  none: 4
3249
- }, he = {
3251
+ }, we = {
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 = { ...we }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? K[r] >= K[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 ht = E(), ct = {
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"), Oe = "externalSignIn", Ae = () => {
3309
+ const i = new be(), e = ie(
3310
+ Oe,
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,32 @@ 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
+ }, B = "vc_auth_data", m = E("use-user");
3356
+ function je() {
3355
3357
  try {
3356
- const i = localStorage.getItem(M);
3358
+ const i = localStorage.getItem(B);
3357
3359
  if (i)
3358
3360
  return JSON.parse(i);
3359
3361
  } catch (i) {
3360
- f.error("Failed to read auth data from storage:", i);
3362
+ m.error("Failed to read auth data from storage:", i);
3361
3363
  }
3362
3364
  return null;
3363
3365
  }
3364
- function B(i) {
3366
+ function W(i) {
3365
3367
  try {
3366
- f.debug("storeAuthData - Saving:", i), localStorage.setItem(M, JSON.stringify(i)), f.debug("storeAuthData - Saved successfully");
3368
+ m.debug("storeAuthData - Saving:", i), localStorage.setItem(B, JSON.stringify(i)), m.debug("storeAuthData - Saved successfully");
3367
3369
  } catch (e) {
3368
- f.error("Failed to store auth data:", e);
3370
+ m.error("Failed to store auth data:", e);
3369
3371
  }
3370
3372
  }
3371
- function pe() {
3373
+ function Re() {
3372
3374
  try {
3373
- localStorage.removeItem(M);
3375
+ localStorage.removeItem(B);
3374
3376
  } catch (i) {
3375
- f.error("Failed to clear auth data:", i);
3377
+ m.error("Failed to clear auth data:", i);
3376
3378
  }
3377
3379
  }
3378
- async function L(i) {
3380
+ async function V(i) {
3379
3381
  try {
3380
3382
  const e = new URLSearchParams(i).toString(), t = await fetch("/connect/token", {
3381
3383
  method: "POST",
@@ -3386,13 +3388,13 @@ async function L(i) {
3386
3388
  });
3387
3389
  if (!t.ok) {
3388
3390
  const h = await t.text();
3389
- return f.error("fetchToken - HTTP error:", t.status, t.statusText, h), null;
3391
+ return m.error("fetchToken - HTTP error:", t.status, t.statusText, h), null;
3390
3392
  }
3391
3393
  const n = await t.json();
3392
- f.debug("fetchToken - Response:", n);
3394
+ m.debug("fetchToken - Response:", n);
3393
3395
  const r = n.access_token, s = n.refresh_token, o = n.expires_in;
3394
3396
  if (n.error || !r)
3395
- return f.error("fetchToken - Error:", n.error_description || n.error || "No access token"), null;
3397
+ return m.error("fetchToken - Error:", n.error_description || n.error || "No access token"), null;
3396
3398
  const l = o ? Date.now() + o * 1e3 : null;
3397
3399
  return {
3398
3400
  token: r,
@@ -3401,16 +3403,16 @@ async function L(i) {
3401
3403
  expires_at: l
3402
3404
  };
3403
3405
  } catch (e) {
3404
- return f.error("fetchToken - Exception:", e), null;
3406
+ return m.error("fetchToken - Exception:", e), null;
3405
3407
  }
3406
3408
  }
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) {
3409
+ function Ce() {
3410
+ const i = S(!1), e = S(), t = S(null), { storage: n, signOut: r } = Ae(), s = new xe(), o = u(() => e.value?.userName != null);
3411
+ async function l(c, d) {
3410
3412
  let p = !1;
3411
3413
  try {
3412
3414
  i.value = !0, p = await s.validatePasswordResetToken(c, {
3413
- token: m
3415
+ token: d
3414
3416
  });
3415
3417
  } catch {
3416
3418
  } finally {
@@ -3421,38 +3423,38 @@ function me() {
3421
3423
  async function h(c) {
3422
3424
  return s.validatePassword(c);
3423
3425
  }
3424
- async function x(c, m, p) {
3426
+ async function b(c, d, p) {
3425
3427
  return s.resetPasswordByToken(c, {
3426
- newPassword: m,
3428
+ newPassword: d,
3427
3429
  token: p
3428
3430
  });
3429
3431
  }
3430
- async function I(c, m) {
3431
- f.debug("signIn - Entry point");
3432
+ async function C(c, d) {
3433
+ m.debug("signIn - Entry point");
3432
3434
  try {
3433
3435
  i.value = !0;
3434
- const p = await s.login({ userName: c, password: m });
3435
- if (f.debug("signIn - Cookie login completed:", p), !p.succeeded)
3436
+ const p = await s.login({ userName: c, password: d });
3437
+ if (m.debug("signIn - Cookie login completed:", p), !p.succeeded)
3436
3438
  return p;
3437
- f.debug("signIn - Requesting token...");
3438
- const v = await L({
3439
+ m.debug("signIn - Requesting token...");
3440
+ const v = await V({
3439
3441
  grant_type: "password",
3440
3442
  username: c,
3441
- password: m,
3443
+ password: d,
3442
3444
  scope: "offline_access"
3443
3445
  });
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;
3446
+ v && (t.value = v, W(t.value), m.debug("signIn - Token saved:", t.value));
3447
+ const j = await s.getCurrentUser();
3448
+ if (j)
3449
+ return e.value = j, p;
3448
3450
  throw { succeeded: !1 };
3449
3451
  } catch (p) {
3450
- f.error("signIn failed:", p);
3452
+ m.error("signIn failed:", p);
3451
3453
  let v = p.message;
3452
3454
  if (p.response)
3453
3455
  try {
3454
- const y = JSON.parse(p.response);
3455
- v = y.errorDescription || y.errors?.[0]?.description || y.error || v;
3456
+ const j = JSON.parse(p.response);
3457
+ v = j.errorDescription || j.errors?.[0]?.description || j.error || v;
3456
3458
  } catch {
3457
3459
  }
3458
3460
  return { succeeded: !1, error: v, status: p.status };
@@ -3460,41 +3462,41 @@ function me() {
3460
3462
  i.value = !1;
3461
3463
  }
3462
3464
  }
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();
3465
+ async function w() {
3466
+ m.debug("signOut - Entry point"), e.value = void 0, Re(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : s.logout();
3465
3467
  }
3466
3468
  let U = null;
3467
- async function w() {
3469
+ async function O() {
3468
3470
  return U || (U = (async () => {
3469
- f.debug("loadUser - Entry point");
3471
+ m.debug("loadUser - Entry point");
3470
3472
  try {
3471
3473
  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);
3474
+ const [c] = await Promise.all([s.getCurrentUser(), f()]);
3475
+ e.value = c, performance.mark("vc:auth-done"), m.debug("User details loaded:", e.value);
3474
3476
  } catch (c) {
3475
- f.error("loadUser failed:", c);
3477
+ m.error("loadUser failed:", c);
3476
3478
  } finally {
3477
3479
  i.value = !1, U = null;
3478
3480
  }
3479
3481
  return { ...e.value };
3480
3482
  })(), U);
3481
3483
  }
3482
- async function z(c) {
3484
+ async function I(c) {
3483
3485
  try {
3484
3486
  return i.value = !0, await s.requestPasswordReset(c), { succeeded: !0 };
3485
- } catch (m) {
3486
- return { succeeded: !1, error: m };
3487
+ } catch (d) {
3488
+ return { succeeded: !1, error: d };
3487
3489
  } finally {
3488
3490
  i.value = !1;
3489
3491
  }
3490
3492
  }
3491
- async function A(c, m) {
3493
+ async function A(c, d) {
3492
3494
  let p;
3493
3495
  try {
3494
3496
  i.value = !0;
3495
3497
  const v = {
3496
3498
  oldPassword: c,
3497
- newPassword: m
3499
+ newPassword: d
3498
3500
  };
3499
3501
  p = await s.changeCurrentUserPassword(v);
3500
3502
  } catch (v) {
@@ -3508,32 +3510,32 @@ function me() {
3508
3510
  let c = null;
3509
3511
  try {
3510
3512
  c = await s.getLoginTypes();
3511
- } catch (m) {
3512
- throw f.error("getLoginType failed:", m), m;
3513
+ } catch (d) {
3514
+ throw m.error("getLoginType failed:", d), d;
3513
3515
  }
3514
3516
  return c;
3515
3517
  }
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:", {
3518
+ const z = 60 * 1e3;
3519
+ async function f() {
3520
+ if (m.debug("getAccessToken - Entry point"), t.value || (t.value = je()), !t.value)
3521
+ return m.debug("getAccessToken - No auth data available"), null;
3522
+ const c = Date.now(), d = t.value.expires_at, p = d ? c >= d - z : !1;
3523
+ if (m.debug("getAccessToken - Token status:", {
3522
3524
  hasToken: !!t.value.access_token,
3523
- expiresAt: m ? new Date(m).toISOString() : "not set",
3525
+ expiresAt: d ? new Date(d).toISOString() : "not set",
3524
3526
  now: new Date(c).toISOString(),
3525
3527
  shouldRefresh: p,
3526
3528
  hasRefreshToken: !!t.value.refresh_token
3527
3529
  }), p && t.value.refresh_token) {
3528
- f.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
3529
- const v = await L({
3530
+ m.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
3531
+ const v = await V({
3530
3532
  grant_type: "refresh_token",
3531
3533
  refresh_token: t.value.refresh_token,
3532
3534
  scope: "offline_access"
3533
3535
  });
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:", {
3536
+ v ? (v.refresh_token = v.refresh_token ?? t.value.refresh_token, t.value = v, W(t.value), m.debug("getAccessToken - Token refreshed successfully, new expiry:", {
3535
3537
  expiresAt: v.expires_at ? new Date(v.expires_at).toISOString() : "not set"
3536
- })) : f.warn("getAccessToken - Failed to refresh token, returning existing token");
3538
+ })) : m.warn("getAccessToken - Failed to refresh token, returning existing token");
3537
3539
  }
3538
3540
  return t.value?.access_token ?? t.value?.token ?? null;
3539
3541
  }
@@ -3542,20 +3544,20 @@ function me() {
3542
3544
  loading: u(() => i.value),
3543
3545
  isAdministrator: u(() => e.value?.isAdministrator),
3544
3546
  isAuthenticated: o,
3545
- loadUser: w,
3546
- signIn: I,
3547
- signOut: O,
3547
+ loadUser: O,
3548
+ signIn: C,
3549
+ signOut: w,
3548
3550
  validateToken: l,
3549
3551
  validatePassword: h,
3550
- resetPasswordByToken: x,
3551
- requestPasswordReset: z,
3552
+ resetPasswordByToken: b,
3553
+ requestPasswordReset: I,
3552
3554
  changeUserPassword: A,
3553
3555
  getLoginType: _,
3554
- getAccessToken: d
3556
+ getAccessToken: f
3555
3557
  };
3556
3558
  }
3557
- const ve = Y(me), Le = () => {
3558
- const i = ve();
3559
+ const Ie = oe(Ce), dt = () => {
3560
+ const i = Ie();
3559
3561
  return {
3560
3562
  user: i.user,
3561
3563
  loading: i.loading,
@@ -3565,7 +3567,7 @@ const ve = Y(me), Le = () => {
3565
3567
  signOut: i.signOut,
3566
3568
  getAccessToken: i.getAccessToken
3567
3569
  };
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({
3570
+ }, ft = Symbol("BladeStack"), pt = Symbol("BladeMessaging"), mt = Symbol("BladeDescriptor"), vt = Symbol("BladeMaximized"), bt = Symbol("BladeRenderingState"), xt = Symbol("BladeData"), gt = Symbol("BladeBanners"), Et = Symbol("BladeBackButton"), Ut = Symbol("NotificationStore"), yt = Symbol("WidgetService"), St = Symbol("DashboardService"), Tt = Symbol("MenuService"), _t = Symbol("SettingsMenuService"), Pt = Symbol("AppBarWidgetService"), wt = Symbol("AppBarMobileButtonsService"), Ot = Symbol("LanguageService"), At = Symbol("ToolbarService"), jt = Symbol("DynamicModules"), Rt = Symbol("ModulesReady"), Ct = Symbol("ModulesLoadError"), ze = Symbol("AppRootElement"), It = Symbol("EmbeddedMode"), zt = Symbol("ShellIndicators"), $t = Symbol("AiAgentService"), Nt = Symbol("IsMobile"), Gt = Symbol("IsDesktop"), kt = Symbol("IsPhone"), Jt = Symbol("IsTablet"), Ft = Symbol("IsTouch"), Mt = Symbol("BladeRoutes"), Dt = Symbol("InternalRoutes"), Bt = Symbol("CloseSettingsMenu"), Lt = Symbol("BladeContext"), Kt = Symbol("WidgetScope"), Wt = Symbol("BladeForm"), Vt = Symbol("BladeLoading"), $e = /* @__PURE__ */ P({
3569
3571
  __name: "vc-material-icon",
3570
3572
  props: {
3571
3573
  icon: {},
@@ -3576,19 +3578,19 @@ const ve = Y(me), Le = () => {
3576
3578
  },
3577
3579
  setup(i) {
3578
3580
  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([
3581
+ return G(() => {
3582
+ }), (r, s) => (g(), y("span", {
3583
+ class: T([
3582
3584
  "vc-material-icon",
3583
3585
  "material-symbols-" + i.type,
3584
3586
  !t.value && `vc-material-icon--${i.size}`,
3585
3587
  i.variant ? `vc-material-icon--${i.variant}` : ""
3586
3588
  ]),
3587
- style: C(n.value),
3589
+ style: R(n.value),
3588
3590
  "aria-hidden": "true"
3589
- }, W(i.icon), 7));
3591
+ }, H(i.icon), 7));
3590
3592
  }
3591
- }), xe = /* @__PURE__ */ T({
3593
+ }), Ne = /* @__PURE__ */ P({
3592
3594
  __name: "vc-bootstrap-icon",
3593
3595
  props: {
3594
3596
  icon: {},
@@ -3598,21 +3600,21 @@ const ve = Y(me), Le = () => {
3598
3600
  },
3599
3601
  setup(i) {
3600
3602
  const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
3601
- R(() => {
3603
+ G(() => {
3602
3604
  });
3603
3605
  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([
3606
+ return (s, o) => (g(), y("i", {
3607
+ class: T([
3606
3608
  "vc-bootstrap-icon",
3607
3609
  !t.value && `vc-bootstrap-icon--${i.size}`,
3608
3610
  r.value,
3609
3611
  i.variant ? `vc-bootstrap-icon--${i.variant}` : ""
3610
3612
  ]),
3611
- style: C(n.value),
3613
+ style: R(n.value),
3612
3614
  "aria-hidden": "true"
3613
3615
  }, null, 6));
3614
3616
  }
3615
- }), ge = /* @__PURE__ */ T({
3617
+ }), Ge = /* @__PURE__ */ P({
3616
3618
  __name: "vc-lucide-icon",
3617
3619
  props: {
3618
3620
  icon: {},
@@ -3622,35 +3624,35 @@ const ve = Y(me), Le = () => {
3622
3624
  customSize: {}
3623
3625
  },
3624
3626
  setup(i) {
3625
- const e = g("vc-lucide-icon"), t = i, n = u(() => typeof t.customSize == "number" && t.customSize > 0), r = u(() => {
3627
+ const e = E("vc-lucide-icon"), t = i, n = u(() => typeof t.customSize == "number" && t.customSize > 0), r = u(() => {
3626
3628
  if (!t.icon) return "HelpCircleIcon";
3627
3629
  let l = t.icon;
3628
3630
  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
3631
  }), 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);
3632
+ const l = r.value, h = le[l];
3633
+ return !h || typeof h != "object" && typeof h != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : q(h);
3632
3634
  }), o = u(() => n.value && t.customSize ? {
3633
3635
  width: `${t.customSize}px`,
3634
3636
  height: `${t.customSize}px`
3635
3637
  } : {});
3636
- return (l, h) => s.value ? (E(), J(F(s.value), {
3638
+ return (l, h) => s.value ? (g(), N(F(s.value), {
3637
3639
  key: 0,
3638
3640
  "stroke-width": t.strokeWidth,
3639
- class: P([
3641
+ class: T([
3640
3642
  "vc-lucide-icon",
3641
3643
  !n.value && `vc-lucide-icon--${i.size}`,
3642
3644
  i.variant ? `vc-lucide-icon--${i.variant}` : ""
3643
3645
  ]),
3644
- style: C(o.value),
3646
+ style: R(o.value),
3645
3647
  "aria-hidden": "true"
3646
- }, null, 8, ["stroke-width", "class", "style"])) : (E(), S("span", {
3648
+ }, null, 8, ["stroke-width", "class", "style"])) : (g(), y("span", {
3647
3649
  key: 1,
3648
- class: P(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
3650
+ class: T(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
3649
3651
  }, [...h[0] || (h[0] = [
3650
- V("i", { class: "vc-lucide-icon__fallback" }, null, -1)
3652
+ M("i", { class: "vc-lucide-icon__fallback" }, null, -1)
3651
3653
  ])], 2));
3652
3654
  }
3653
- }), Ee = /* @__PURE__ */ T({
3655
+ }), ke = /* @__PURE__ */ P({
3654
3656
  __name: "vc-fontawesome-icon",
3655
3657
  props: {
3656
3658
  icon: {},
@@ -3660,21 +3662,21 @@ const ve = Y(me), Le = () => {
3660
3662
  },
3661
3663
  setup(i) {
3662
3664
  const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
3663
- R(() => {
3665
+ G(() => {
3664
3666
  });
3665
3667
  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([
3668
+ return (s, o) => (g(), y("i", {
3669
+ class: T([
3668
3670
  "vc-fa-icon",
3669
3671
  !t.value && `vc-fa-icon--${i.size}`,
3670
3672
  r.value,
3671
3673
  i.variant ? `vc-fa-icon--${i.variant}` : ""
3672
3674
  ]),
3673
- style: C(n.value),
3675
+ style: R(n.value),
3674
3676
  "aria-hidden": "true"
3675
3677
  }, null, 6));
3676
3678
  }
3677
- }), Ue = ["xlink:href"], Se = /* @__PURE__ */ T({
3679
+ }), Je = ["xlink:href"], Fe = /* @__PURE__ */ P({
3678
3680
  inheritAttrs: !1,
3679
3681
  __name: "vc-svg-icon",
3680
3682
  props: {
@@ -3699,18 +3701,18 @@ const ve = Y(me), Le = () => {
3699
3701
  const s = {};
3700
3702
  return e.customSize && (s.width = `${e.customSize}px`, s.height = `${e.customSize}px`), e.strokeWidth && (s.strokeWidth = `${e.strokeWidth}`), s;
3701
3703
  });
3702
- return (s, o) => (E(), S("svg", j({
3704
+ return (s, o) => (g(), y("svg", $({
3703
3705
  xmlns: "http://www.w3.org/2000/svg",
3704
3706
  class: ["vc-svg-icon", !t.value && `vc-svg-icon--${i.size}`, i.variant ? `vc-svg-icon--${i.variant}` : ""],
3705
3707
  style: r.value
3706
3708
  }, s.$attrs), [
3707
- n.value ? (E(), S("use", {
3709
+ n.value ? (g(), y("use", {
3708
3710
  key: 0,
3709
3711
  "xlink:href": n.value
3710
- }, null, 8, Ue)) : q("", !0)
3712
+ }, null, 8, Je)) : D("", !0)
3711
3713
  ], 16));
3712
3714
  }
3713
- }), ye = ["aria-hidden", "aria-label", "role"], Ot = /* @__PURE__ */ T({
3715
+ }), Me = ["aria-hidden", "aria-label", "role"], qt = /* @__PURE__ */ P({
3714
3716
  __name: "vc-icon",
3715
3717
  props: {
3716
3718
  icon: { default: "lucide-square" },
@@ -3723,7 +3725,7 @@ const ve = Y(me), Le = () => {
3723
3725
  },
3724
3726
  setup(i) {
3725
3727
  const e = i;
3726
- R(() => {
3728
+ G(() => {
3727
3729
  });
3728
3730
  const t = {
3729
3731
  xs: 12,
@@ -3739,42 +3741,42 @@ const ve = Y(me), Le = () => {
3739
3741
  if (n.value === "material" && e.icon.startsWith("material-"))
3740
3742
  return e.icon.replace(/^material-/, "");
3741
3743
  if (n.value === "lucide" && e.icon.startsWith("lucide-")) {
3742
- const d = e.icon.replace(/^lucide-/, "");
3743
- return d.endsWith("Icon") ? d : `${d}Icon`;
3744
+ const f = e.icon.replace(/^lucide-/, "");
3745
+ return f.endsWith("Icon") ? f : `${f}Icon`;
3744
3746
  }
3745
3747
  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(() => {
3748
+ }), s = u(() => n.value === "material"), o = u(() => n.value === "bootstrap"), l = u(() => n.value === "lucide"), h = u(() => n.value === "fontawesome"), b = u(() => {
3747
3749
  if (typeof e.icon != "string")
3748
3750
  return !0;
3749
3751
  if (["fontawesome", "bootstrap"].includes(n.value) || n.value === "material" && e.icon.startsWith("material-") || n.value === "lucide" && e.icon.startsWith("lucide-"))
3750
3752
  return !1;
3751
3753
  if (l.value)
3752
3754
  try {
3753
- const d = typeof r.value == "string" ? r.value : String(r.value);
3754
- return G(d) !== d;
3755
+ const f = typeof r.value == "string" ? r.value : String(r.value);
3756
+ return k(f) !== f;
3755
3757
  } catch {
3756
3758
  return !1;
3757
3759
  }
3758
3760
  try {
3759
- return G(e.icon) !== e.icon;
3761
+ return k(e.icon) !== e.icon;
3760
3762
  } catch {
3761
3763
  return !1;
3762
3764
  }
3763
- }), I = u(() => {
3765
+ }), C = u(() => {
3764
3766
  if (typeof e.icon != "string")
3765
- return K(e.icon);
3767
+ return q(e.icon);
3766
3768
  if (["fontawesome", "bootstrap", "material"].includes(n.value))
3767
3769
  return "i";
3768
3770
  try {
3769
- const d = typeof r.value == "string" ? r.value : String(r.value), c = G(d);
3770
- return c !== d ? c : "i";
3771
+ const f = typeof r.value == "string" ? r.value : String(r.value), c = k(f);
3772
+ return c !== f ? c : "i";
3771
3773
  } catch {
3772
3774
  return "i";
3773
3775
  }
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 ? {
3776
+ }), w = u(() => s.value ? $e : o.value ? Ne : l.value ? Ge : h.value ? ke : _.value ? Fe : b.value ? C.value : "i"), U = u(() => e.customSize ? e.customSize : t[e.size]), O = u(() => {
3777
+ const f = {};
3778
+ return b.value && e.customSize && (f.width = `${e.customSize}px`, f.height = `${e.customSize}px`), f;
3779
+ }), I = u(() => e.customSize ? {
3778
3780
  fontSize: `${e.customSize}px`
3779
3781
  } : {}), A = u(() => s.value ? {
3780
3782
  icon: typeof r.value == "string" ? r.value.replace(/-outlined$|-rounded$|-sharp$/, "") : r.value,
@@ -3806,117 +3808,237 @@ const ve = Y(me), Le = () => {
3806
3808
  customSize: e.customSize
3807
3809
  // Set custom size without scaling
3808
3810
  } : _.value ? {
3809
- icon: $.value,
3811
+ icon: z.value,
3810
3812
  size: e.size,
3811
3813
  variant: e.variant,
3812
3814
  customSize: e.customSize,
3813
3815
  basePath: e.basePath
3814
- } : x.value ? {
3816
+ } : b.value ? {
3815
3817
  size: e.size,
3816
3818
  width: U.value,
3817
3819
  height: U.value,
3818
3820
  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({
3821
+ } : {}), _ = u(() => n.value === "svg"), z = u(() => !_.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
3822
+ return (f, c) => i.useContainer ? (g(), y("div", $({
3821
3823
  key: 0,
3822
3824
  class: ["vc-icon-container", `vc-icon-container--${i.size}`],
3823
- style: z.value,
3825
+ style: I.value,
3824
3826
  "aria-hidden": i.ariaLabel ? void 0 : "true",
3825
3827
  "aria-label": i.ariaLabel || void 0,
3826
3828
  role: i.ariaLabel ? "img" : void 0
3827
- }, d.$attrs), [
3828
- (E(), J(F(O.value), j({
3829
+ }, f.$attrs), [
3830
+ (g(), N(F(w.value), $({
3829
3831
  class: [
3830
3832
  "vc-icon",
3831
3833
  `vc-icon--${i.size}`,
3832
3834
  i.variant ? `vc-icon--${i.variant}` : "",
3833
- !x.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
3835
+ !b.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
3834
3836
  ],
3835
- style: w.value
3837
+ style: O.value
3836
3838
  }, A.value), null, 16, ["class", "style"]))
3837
- ], 16, ye)) : (E(), J(F(O.value), j({
3839
+ ], 16, Me)) : (g(), N(F(w.value), $({
3838
3840
  key: 1,
3839
3841
  class: [
3840
3842
  "vc-icon",
3841
3843
  `vc-icon--${i.size}`,
3842
3844
  i.variant ? `vc-icon--${i.variant}` : "",
3843
- !x.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
3845
+ !b.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
3844
3846
  ],
3845
- style: w.value,
3847
+ style: O.value,
3846
3848
  "aria-hidden": i.ariaLabel ? void 0 : "true",
3847
3849
  "aria-label": i.ariaLabel || void 0,
3848
3850
  role: i.ariaLabel ? "img" : void 0
3849
- }, { ...A.value, ...d.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
3851
+ }, { ...A.value, ...f.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
3852
+ }
3853
+ });
3854
+ function De(i = {}) {
3855
+ const e = Y(ze, void 0);
3856
+ return {
3857
+ teleportTarget: u(() => {
3858
+ const n = i.to ? X(i.to) : void 0;
3859
+ if (n)
3860
+ return n;
3861
+ if (e?.value)
3862
+ return e.value;
3863
+ if (i.fallbackToBody !== !1)
3864
+ return "body";
3865
+ })
3866
+ };
3867
+ }
3868
+ const Be = ["aria-describedby"], Ht = /* @__PURE__ */ P({
3869
+ __name: "vc-tooltip",
3870
+ props: {
3871
+ placement: { default: "bottom" },
3872
+ offset: { default: () => ({
3873
+ crossAxis: 0,
3874
+ mainAxis: 8
3875
+ }) },
3876
+ delay: { default: 0 },
3877
+ arrow: { type: Boolean, default: !0 },
3878
+ variant: { default: "default" },
3879
+ maxWidth: { default: 240 },
3880
+ disabled: { type: Boolean, default: !1 }
3881
+ },
3882
+ setup(i) {
3883
+ const e = i, t = `vc-tooltip-${Z()}`, n = S(!1), r = S(null), s = S(null), o = S(null), l = S(null);
3884
+ let h = null;
3885
+ const { teleportTarget: b } = De(), C = u(() => {
3886
+ const d = [
3887
+ ce({
3888
+ mainAxis: e.offset?.mainAxis ?? 8,
3889
+ crossAxis: e.offset?.crossAxis ?? 0
3890
+ }),
3891
+ de({ padding: 8 }),
3892
+ fe({ padding: 8 })
3893
+ ];
3894
+ return e.arrow && d.push(ue({ element: o, padding: 4 })), d;
3895
+ }), {
3896
+ floatingStyles: w,
3897
+ placement: U,
3898
+ middlewareData: O
3899
+ } = he(r, s, {
3900
+ placement: u(() => e.placement),
3901
+ whileElementsMounted: pe,
3902
+ middleware: C
3903
+ }), I = u(() => typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth), A = u(() => ({
3904
+ ...w.value,
3905
+ maxWidth: I.value
3906
+ })), _ = u(() => U.value.split("-")[0]), z = u(() => {
3907
+ const d = O.value.arrow;
3908
+ if (!d) return {};
3909
+ const p = {};
3910
+ d.x != null && (p.left = `${d.x}px`), d.y != null && (p.top = `${d.y}px`);
3911
+ const v = { top: "bottom", right: "left", bottom: "top", left: "right" }[_.value];
3912
+ return p[v] = `${-8 / 2}px`, p;
3913
+ }), f = () => {
3914
+ e.disabled || (e.delay > 0 ? h = setTimeout(() => {
3915
+ n.value = !0;
3916
+ }, e.delay) : n.value = !0);
3917
+ }, c = () => {
3918
+ h && (clearTimeout(h), h = null), n.value = !1;
3919
+ };
3920
+ return Q(() => {
3921
+ h && (clearTimeout(h), h = null);
3922
+ }), (d, p) => (g(), y("div", {
3923
+ ref_key: "target",
3924
+ ref: l,
3925
+ class: "vc-tooltip",
3926
+ onMouseenter: f,
3927
+ onMouseleave: c,
3928
+ onFocusin: f,
3929
+ onFocusout: c,
3930
+ onKeydown: ee(c, ["escape"])
3931
+ }, [
3932
+ M("div", {
3933
+ ref_key: "tooltipCompRef",
3934
+ ref: r,
3935
+ class: "vc-tooltip__trigger",
3936
+ "aria-describedby": n.value ? t : void 0
3937
+ }, [
3938
+ L(d.$slots, "default")
3939
+ ], 8, Be),
3940
+ (g(), N(te, { to: re(b) }, [
3941
+ ne(se, { name: "vc-tooltip-fade" }, {
3942
+ default: ae(() => [
3943
+ n.value && !i.disabled && d.$slots.tooltip ? (g(), y("div", {
3944
+ key: 0,
3945
+ id: t,
3946
+ ref_key: "tooltipRef",
3947
+ ref: s,
3948
+ role: "tooltip",
3949
+ style: R(A.value),
3950
+ class: T(["vc-tooltip__wrapper", `vc-tooltip__wrapper--${i.variant}`])
3951
+ }, [
3952
+ i.arrow ? (g(), y("div", {
3953
+ key: 0,
3954
+ ref_key: "arrowRef",
3955
+ ref: o,
3956
+ class: T(["vc-tooltip__arrow", `vc-tooltip__arrow--${i.variant}`]),
3957
+ style: R(z.value)
3958
+ }, null, 6)) : D("", !0),
3959
+ M("div", {
3960
+ class: T(["vc-tooltip__body", `vc-tooltip__body--${i.variant}`])
3961
+ }, [
3962
+ L(d.$slots, "tooltip")
3963
+ ], 2)
3964
+ ], 6)) : D("", !0)
3965
+ ]),
3966
+ _: 3
3967
+ })
3968
+ ], 8, ["to"]))
3969
+ ], 544));
3850
3970
  }
3851
3971
  });
3852
3972
  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,
3916
- Le as u,
3917
- re as v,
3918
- ct as w,
3919
- Ae as x,
3920
- b as y,
3921
- je as z
3973
+ Dt as $,
3974
+ $t as A,
3975
+ mt as B,
3976
+ x as C,
3977
+ Ze as D,
3978
+ It as E,
3979
+ Et as F,
3980
+ Vt as G,
3981
+ vt as H,
3982
+ kt as I,
3983
+ bt as J,
3984
+ Qe as K,
3985
+ Ot as L,
3986
+ Rt as M,
3987
+ Ut as N,
3988
+ Bt as O,
3989
+ St as P,
3990
+ et as Q,
3991
+ tt as R,
3992
+ lt as S,
3993
+ At as T,
3994
+ jt as U,
3995
+ rt as V,
3996
+ yt as W,
3997
+ Ee as X,
3998
+ Ue as Y,
3999
+ be as Z,
4000
+ qt as _,
4001
+ Ht as a,
4002
+ nt as a0,
4003
+ ye as a1,
4004
+ st as a2,
4005
+ at as a3,
4006
+ Ct as a4,
4007
+ it as a5,
4008
+ Se as a6,
4009
+ ot as a7,
4010
+ xe as a8,
4011
+ Te as a9,
4012
+ ut as aa,
4013
+ zt as ab,
4014
+ _e as ac,
4015
+ Ce as ad,
4016
+ Ie as ae,
4017
+ ht as af,
4018
+ ct as ag,
4019
+ ft as b,
4020
+ E as c,
4021
+ pt as d,
4022
+ gt as e,
4023
+ xt as f,
4024
+ dt as g,
4025
+ Kt as h,
4026
+ Lt as i,
4027
+ Ae as j,
4028
+ Wt as k,
4029
+ Jt as l,
4030
+ Nt as m,
4031
+ Gt as n,
4032
+ Ft as o,
4033
+ Mt as p,
4034
+ Pt as q,
4035
+ Tt as r,
4036
+ _t as s,
4037
+ Pe as t,
4038
+ De as u,
4039
+ wt as v,
4040
+ Ye as w,
4041
+ ge as x,
4042
+ ze as y,
4043
+ Xe as z
3922
4044
  };