@vc-shell/framework 2.2.0-pr261.333ed7f → 2.2.0-pr262.f0b25b6

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 (74) hide show
  1. package/dist/ai-agent/index.js +3 -3
  2. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-IxvmIZ32.js +1124 -0
  3. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-IxvmIZ32.js.map +1 -0
  4. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-CMiP0Wb2.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-CcI_W_Vm.js} +147 -134
  5. package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-CcI_W_Vm.js.map +1 -0
  6. package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-De4Zl55K.js → VcScheduler.vue_vue_type_script_setup_true_lang-Ch_TVK_C.js} +6671 -6974
  7. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-Ch_TVK_C.js.map +1 -0
  8. package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-BhVdbaHJ.js → VcScheduler.vue_vue_type_style_index_0_lang-CL468dK2.js} +583 -578
  9. package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-CL468dK2.js.map +1 -0
  10. package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-rP8wKB3g.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-YOlFZMoP.js} +2 -2
  11. package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-rP8wKB3g.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-YOlFZMoP.js.map} +1 -1
  12. package/dist/chunks/{index-Cu6xEItF.js → index-CI1U6XgH.js} +2 -2
  13. package/dist/chunks/{index-Cu6xEItF.js.map → index-CI1U6XgH.js.map} +1 -1
  14. package/dist/chunks/{vendor-vueuse-components-CoR2FSn3.js → vendor-vueuse-components-BW7i7Uhb.js} +1 -1
  15. package/dist/chunks/{vendor-vueuse-components-CoR2FSn3.js.map → vendor-vueuse-components-BW7i7Uhb.js.map} +1 -1
  16. package/dist/chunks/{vendor-vueuse-core-BFa9je5E.js → vendor-vueuse-core-BYWoPpF_.js} +82 -83
  17. package/dist/chunks/{vendor-vueuse-core-BFa9je5E.js.map → vendor-vueuse-core-BYWoPpF_.js.map} +1 -1
  18. package/dist/chunks/{vendor-vueuse-shared-kZH3-Km1.js → vendor-vueuse-shared-BlCOXw5g.js} +2 -2
  19. package/dist/chunks/{vendor-vueuse-shared-kZH3-Km1.js.map → vendor-vueuse-shared-BlCOXw5g.js.map} +1 -1
  20. package/dist/core/blade-navigation/types/index.d.ts +0 -8
  21. package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
  22. package/dist/core/composables/index.d.ts +0 -1
  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/useUser/index.d.ts.map +1 -1
  26. package/dist/core/interceptors/index.d.ts.map +1 -1
  27. package/dist/core/plugins/ai-agent/components/VcAiAgentPanel.vue.d.ts.map +1 -1
  28. package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts.map +1 -1
  29. package/dist/core/types/index.d.ts +0 -12
  30. package/dist/core/types/index.d.ts.map +1 -1
  31. package/dist/core/utilities/sessionExpiration.d.ts +30 -0
  32. package/dist/core/utilities/sessionExpiration.d.ts.map +1 -0
  33. package/dist/dashboard/index.js +1 -1
  34. package/dist/framework.js +797 -806
  35. package/dist/framework.js.map +1 -1
  36. package/dist/index.css +1 -1
  37. package/dist/locales/de.js +1 -4
  38. package/dist/locales/en.js +1 -4
  39. package/dist/locales/en.json +1 -4
  40. package/dist/locales/types.d.ts +0 -3
  41. package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/vc-blade-navigation-new.vue.d.ts.map +1 -1
  42. package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
  43. package/dist/shell/components/error-interceptor/interceptor.d.ts.map +1 -1
  44. package/dist/test-helpers.d.ts.map +1 -1
  45. package/dist/tsconfig.tsbuildinfo +1 -1
  46. package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
  47. package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts.map +1 -1
  48. package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
  49. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts.map +1 -1
  50. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/toolbar-button-props.d.ts +0 -2
  51. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/toolbar-button-props.d.ts.map +1 -1
  52. package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
  53. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  54. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  55. package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
  56. package/dist/ui/index.js +3 -3
  57. package/package.json +4 -4
  58. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CaaJs50g.js +0 -1162
  59. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CaaJs50g.js.map +0 -1
  60. package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-CMiP0Wb2.js.map +0 -1
  61. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-De4Zl55K.js.map +0 -1
  62. package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BhVdbaHJ.js.map +0 -1
  63. package/dist/core/composables/useKeyboardShortcuts/format.d.ts +0 -11
  64. package/dist/core/composables/useKeyboardShortcuts/format.d.ts.map +0 -1
  65. package/dist/core/composables/useKeyboardShortcuts/hotkey.d.ts +0 -14
  66. package/dist/core/composables/useKeyboardShortcuts/hotkey.d.ts.map +0 -1
  67. package/dist/core/composables/useKeyboardShortcuts/index.d.ts +0 -23
  68. package/dist/core/composables/useKeyboardShortcuts/index.d.ts.map +0 -1
  69. package/dist/core/composables/useKeyboardShortcuts/match.d.ts +0 -14
  70. package/dist/core/composables/useKeyboardShortcuts/match.d.ts.map +0 -1
  71. package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts +0 -22
  72. package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts.map +0 -1
  73. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ShortcutKbd.vue.d.ts +0 -11
  74. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ShortcutKbd.vue.d.ts.map +0 -1
@@ -1,10 +1,10 @@
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 { a as H } from "./vendor-vueuse-core-BFa9je5E.js";
3
- import { j as Y } from "./vendor-vueuse-shared-kZH3-Km1.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 N, computed as u, defineComponent as T, onMounted as R, openBlock as E, createElementBlock as S, normalizeStyle as C, normalizeClass as P, toDisplayString as V, markRaw as W, createBlock as J, resolveDynamicComponent as F, createElementVNode as q, mergeProps as j, createCommentVNode as H, resolveComponent as G } from "vue";
2
+ import { u as Y } from "./vendor-vueuse-core-BYWoPpF_.js";
3
+ import { j as X } from "./vendor-vueuse-shared-BlCOXw5g.js";
4
+ import { L as Z } from "./vendor-lucide-vue-next-CwUrzD6N.js";
5
+ const Q = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
6
+ function ee(i, e) {
7
+ if (typeof e == "string" && Q.test(e)) {
8
8
  const t = new Date(e);
9
9
  if (!isNaN(t.getTime()))
10
10
  return t;
@@ -18,7 +18,7 @@ class b {
18
18
  * Subclasses use this when parsing API responses.
19
19
  * The dateReviver function is defined in File.Header.liquid template.
20
20
  */
21
- jsonParseReviver = Q;
21
+ jsonParseReviver = ee;
22
22
  constructor() {
23
23
  }
24
24
  // Enforce always return empty string as baseUrl
@@ -32,7 +32,7 @@ class b {
32
32
  return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
33
33
  }
34
34
  }
35
- class ee extends b {
35
+ class te extends b {
36
36
  http;
37
37
  baseUrl;
38
38
  constructor(e, t) {
@@ -139,7 +139,7 @@ class ee extends b {
139
139
  }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
140
140
  }
141
141
  }
142
- class we extends b {
142
+ class je extends b {
143
143
  http;
144
144
  baseUrl;
145
145
  constructor(e, t) {
@@ -208,7 +208,7 @@ class we extends b {
208
208
  }) : 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
209
  }
210
210
  }
211
- class Ae extends b {
211
+ class Re extends b {
212
212
  http;
213
213
  baseUrl;
214
214
  constructor(e, t) {
@@ -238,7 +238,7 @@ class Ae extends b {
238
238
  }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
239
239
  }
240
240
  }
241
- class je extends b {
241
+ class Ce extends b {
242
242
  http;
243
243
  baseUrl;
244
244
  constructor(e, t) {
@@ -380,7 +380,7 @@ class je extends b {
380
380
  }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
381
381
  }
382
382
  }
383
- class Re extends b {
383
+ class Ie extends b {
384
384
  http;
385
385
  baseUrl;
386
386
  constructor(e, t) {
@@ -581,7 +581,7 @@ class Re extends b {
581
581
  }) : 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
582
  }
583
583
  }
584
- class Ce extends b {
584
+ class ze extends b {
585
585
  http;
586
586
  baseUrl;
587
587
  constructor(e, t) {
@@ -610,7 +610,7 @@ class Ce extends b {
610
610
  }) : 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
611
  }
612
612
  }
613
- class Ie extends b {
613
+ class $e extends b {
614
614
  http;
615
615
  baseUrl;
616
616
  constructor(e, t) {
@@ -662,7 +662,7 @@ class Ie extends b {
662
662
  }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
663
663
  }
664
664
  }
665
- class ze extends b {
665
+ class Ne extends b {
666
666
  http;
667
667
  baseUrl;
668
668
  constructor(e, t) {
@@ -937,7 +937,7 @@ class ze extends b {
937
937
  }) : 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
938
  }
939
939
  }
940
- class $e extends b {
940
+ class Ge extends b {
941
941
  http;
942
942
  baseUrl;
943
943
  constructor(e, t) {
@@ -970,7 +970,7 @@ class $e extends b {
970
970
  }) : 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
971
  }
972
972
  }
973
- class Ne extends b {
973
+ class ke extends b {
974
974
  http;
975
975
  baseUrl;
976
976
  constructor(e, t) {
@@ -1074,7 +1074,7 @@ class Ne extends b {
1074
1074
  }) : 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
1075
  }
1076
1076
  }
1077
- class Ge extends b {
1077
+ class Je extends b {
1078
1078
  http;
1079
1079
  baseUrl;
1080
1080
  constructor(e, t) {
@@ -1530,7 +1530,7 @@ class Ge extends b {
1530
1530
  }) : 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
1531
  }
1532
1532
  }
1533
- class ke extends b {
1533
+ class Fe extends b {
1534
1534
  http;
1535
1535
  baseUrl;
1536
1536
  constructor(e, t) {
@@ -1632,7 +1632,7 @@ class ke extends b {
1632
1632
  }) : 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
1633
  }
1634
1634
  }
1635
- class Je extends b {
1635
+ class Me extends b {
1636
1636
  http;
1637
1637
  baseUrl;
1638
1638
  constructor(e, t) {
@@ -1688,7 +1688,7 @@ class Je extends b {
1688
1688
  }) : 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
1689
  }
1690
1690
  }
1691
- class te extends b {
1691
+ class re extends b {
1692
1692
  http;
1693
1693
  baseUrl;
1694
1694
  constructor(e, t) {
@@ -2825,7 +2825,7 @@ class te extends b {
2825
2825
  }) : 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
2826
  }
2827
2827
  }
2828
- class Fe extends b {
2828
+ class De extends b {
2829
2829
  http;
2830
2830
  baseUrl;
2831
2831
  constructor(e, t) {
@@ -2953,7 +2953,7 @@ class Fe extends b {
2953
2953
  }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2954
2954
  }
2955
2955
  }
2956
- class Me extends b {
2956
+ class Be extends b {
2957
2957
  http;
2958
2958
  baseUrl;
2959
2959
  constructor(e, t) {
@@ -3222,8 +3222,8 @@ class Me extends b {
3222
3222
  }) : 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
3223
  }
3224
3224
  }
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 {
3225
+ var ne = /* @__PURE__ */ ((i) => (i.AppMenu = "AppMenu", i.MainMenu = "MainMenu", i.Hidden = "Hidden", i))(ne || {}), se = /* @__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))(se || {}), ae = /* @__PURE__ */ ((i) => (i.Detached = "Detached", i.Unchanged = "Unchanged", i.Added = "Added", i.Deleted = "Deleted", i.Modified = "Modified", i))(ae || {}), ie = /* @__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))(ie || {}), oe = /* @__PURE__ */ ((i) => (i.Info = "Info", i.Warning = "Warning", i.Debug = "Debug", i.Error = "Error", i))(oe || {}), le = /* @__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))(le || {}), ue = /* @__PURE__ */ ((i) => (i.Ascending = "Ascending", i.Descending = "Descending", i))(ue || {});
3226
+ class he extends Error {
3227
3227
  message;
3228
3228
  status;
3229
3229
  response;
@@ -3238,21 +3238,21 @@ class ue extends Error {
3238
3238
  }
3239
3239
  }
3240
3240
  function a(i, e, t, n, r) {
3241
- throw r ?? new ue(i, e, t, n, null);
3241
+ throw r ?? new he(i, e, t, n, null);
3242
3242
  }
3243
- const D = {
3243
+ const B = {
3244
3244
  debug: 0,
3245
3245
  info: 1,
3246
3246
  warn: 2,
3247
3247
  error: 3,
3248
3248
  none: 4
3249
- }, he = {
3249
+ }, ce = {
3250
3250
  level: "warn",
3251
3251
  prefix: "@vc-shell/framework",
3252
3252
  enabled: !0
3253
3253
  };
3254
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;
3255
+ const e = { ...ce }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? B[r] >= B[e.level] : !1;
3256
3256
  return {
3257
3257
  /**
3258
3258
  * Log debug messages (only in development)
@@ -3296,16 +3296,16 @@ function g(i) {
3296
3296
  }
3297
3297
  };
3298
3298
  }
3299
- const De = g(), Be = {
3299
+ const Le = g(), Ke = {
3300
3300
  core: g("core"),
3301
3301
  ui: g("ui"),
3302
3302
  shared: g("shared"),
3303
3303
  plugins: g("plugins"),
3304
3304
  services: g("services"),
3305
3305
  composables: g("composables")
3306
- }, k = g("use-external-provider"), ce = "externalSignIn", de = () => {
3307
- const i = new ee(), e = H(
3308
- ce,
3306
+ }, k = g("use-external-provider"), de = "externalSignIn", fe = () => {
3307
+ const i = new te(), e = Y(
3308
+ de,
3309
3309
  {},
3310
3310
  {
3311
3311
  listenToStorageChanges: !0,
@@ -3350,10 +3350,21 @@ const De = g(), Be = {
3350
3350
  signOut: r,
3351
3351
  getProviders: s
3352
3352
  };
3353
- }, M = "vc_auth_data", f = g("use-user");
3354
- function fe() {
3353
+ };
3354
+ let M = !1;
3355
+ function We() {
3356
+ M = !0;
3357
+ }
3358
+ function Ve() {
3359
+ return M;
3360
+ }
3361
+ function pe() {
3362
+ M = !1;
3363
+ }
3364
+ const D = "vc_auth_data", f = g("use-user");
3365
+ function me() {
3355
3366
  try {
3356
- const i = localStorage.getItem(M);
3367
+ const i = localStorage.getItem(D);
3357
3368
  if (i)
3358
3369
  return JSON.parse(i);
3359
3370
  } catch (i) {
@@ -3361,21 +3372,21 @@ function fe() {
3361
3372
  }
3362
3373
  return null;
3363
3374
  }
3364
- function B(i) {
3375
+ function L(i) {
3365
3376
  try {
3366
- f.debug("storeAuthData - Saving:", i), localStorage.setItem(M, JSON.stringify(i)), f.debug("storeAuthData - Saved successfully");
3377
+ f.debug("storeAuthData - Saving:", i), localStorage.setItem(D, JSON.stringify(i)), f.debug("storeAuthData - Saved successfully");
3367
3378
  } catch (e) {
3368
3379
  f.error("Failed to store auth data:", e);
3369
3380
  }
3370
3381
  }
3371
- function pe() {
3382
+ function ve() {
3372
3383
  try {
3373
- localStorage.removeItem(M);
3384
+ localStorage.removeItem(D);
3374
3385
  } catch (i) {
3375
3386
  f.error("Failed to clear auth data:", i);
3376
3387
  }
3377
3388
  }
3378
- async function L(i) {
3389
+ async function K(i) {
3379
3390
  try {
3380
3391
  const e = new URLSearchParams(i).toString(), t = await fetch("/connect/token", {
3381
3392
  method: "POST",
@@ -3404,8 +3415,8 @@ async function L(i) {
3404
3415
  return f.error("fetchToken - Exception:", e), null;
3405
3416
  }
3406
3417
  }
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);
3418
+ function be() {
3419
+ const i = N(!1), e = N(), t = N(null), { storage: n, signOut: r } = fe(), s = new re(), o = u(() => e.value?.userName != null);
3409
3420
  async function l(c, m) {
3410
3421
  let p = !1;
3411
3422
  try {
@@ -3430,18 +3441,18 @@ function me() {
3430
3441
  async function I(c, m) {
3431
3442
  f.debug("signIn - Entry point");
3432
3443
  try {
3433
- i.value = !0;
3444
+ i.value = !0, pe();
3434
3445
  const p = await s.login({ userName: c, password: m });
3435
3446
  if (f.debug("signIn - Cookie login completed:", p), !p.succeeded)
3436
3447
  return p;
3437
3448
  f.debug("signIn - Requesting token...");
3438
- const v = await L({
3449
+ const v = await K({
3439
3450
  grant_type: "password",
3440
3451
  username: c,
3441
3452
  password: m,
3442
3453
  scope: "offline_access"
3443
3454
  });
3444
- v && (t.value = v, B(t.value), f.debug("signIn - Token saved:", t.value));
3455
+ v && (t.value = v, L(t.value), f.debug("signIn - Token saved:", t.value));
3445
3456
  const y = await s.getCurrentUser();
3446
3457
  if (y)
3447
3458
  return e.value = y, p;
@@ -3461,7 +3472,7 @@ function me() {
3461
3472
  }
3462
3473
  }
3463
3474
  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();
3475
+ f.debug("signOut - Entry point"), e.value = void 0, ve(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : s.logout();
3465
3476
  }
3466
3477
  let U = null;
3467
3478
  async function w() {
@@ -3515,7 +3526,7 @@ function me() {
3515
3526
  }
3516
3527
  const $ = 60 * 1e3;
3517
3528
  async function d() {
3518
- if (f.debug("getAccessToken - Entry point"), t.value || (t.value = fe()), !t.value)
3529
+ if (f.debug("getAccessToken - Entry point"), t.value || (t.value = me()), !t.value)
3519
3530
  return f.debug("getAccessToken - No auth data available"), null;
3520
3531
  const c = Date.now(), m = t.value.expires_at, p = m ? c >= m - $ : !1;
3521
3532
  if (f.debug("getAccessToken - Token status:", {
@@ -3526,12 +3537,12 @@ function me() {
3526
3537
  hasRefreshToken: !!t.value.refresh_token
3527
3538
  }), p && t.value.refresh_token) {
3528
3539
  f.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
3529
- const v = await L({
3540
+ const v = await K({
3530
3541
  grant_type: "refresh_token",
3531
3542
  refresh_token: t.value.refresh_token,
3532
3543
  scope: "offline_access"
3533
3544
  });
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:", {
3545
+ v ? (v.refresh_token = v.refresh_token ?? t.value.refresh_token, t.value = v, L(t.value), f.debug("getAccessToken - Token refreshed successfully, new expiry:", {
3535
3546
  expiresAt: v.expires_at ? new Date(v.expires_at).toISOString() : "not set"
3536
3547
  })) : f.warn("getAccessToken - Failed to refresh token, returning existing token");
3537
3548
  }
@@ -3554,8 +3565,8 @@ function me() {
3554
3565
  getAccessToken: d
3555
3566
  };
3556
3567
  }
3557
- const ve = Y(me), Le = () => {
3558
- const i = ve();
3568
+ const xe = X(be), qe = () => {
3569
+ const i = xe();
3559
3570
  return {
3560
3571
  user: i.user,
3561
3572
  loading: i.loading,
@@ -3565,7 +3576,7 @@ const ve = Y(me), Le = () => {
3565
3576
  signOut: i.signOut,
3566
3577
  getAccessToken: i.getAccessToken
3567
3578
  };
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({
3579
+ }, He = Symbol("BladeStack"), Ye = Symbol("BladeMessaging"), Xe = Symbol("BladeDescriptor"), Ze = Symbol("BladeMaximized"), Qe = Symbol("BladeRenderingState"), et = Symbol("BladeData"), tt = Symbol("BladeBanners"), rt = Symbol("BladeBackButton"), nt = Symbol("NotificationStore"), st = Symbol("WidgetService"), at = Symbol("DashboardService"), it = Symbol("MenuService"), ot = Symbol("SettingsMenuService"), lt = Symbol("AppBarWidgetService"), ut = Symbol("AppBarMobileButtonsService"), ht = Symbol("LanguageService"), ct = Symbol("ToolbarService"), dt = Symbol("DynamicModules"), ft = Symbol("ModulesReady"), pt = Symbol("ModulesLoadError"), mt = Symbol("AppRootElement"), vt = Symbol("EmbeddedMode"), bt = Symbol("ShellIndicators"), xt = Symbol("AiAgentService"), gt = Symbol("IsMobile"), Et = Symbol("IsDesktop"), Ut = Symbol("IsPhone"), St = Symbol("IsTablet"), yt = Symbol("IsTouch"), Tt = Symbol("BladeRoutes"), _t = Symbol("InternalRoutes"), Pt = Symbol("CloseSettingsMenu"), Ot = Symbol("BladeContext"), wt = Symbol("WidgetScope"), At = Symbol("BladeForm"), jt = Symbol("BladeLoading"), ge = /* @__PURE__ */ T({
3569
3580
  __name: "vc-material-icon",
3570
3581
  props: {
3571
3582
  icon: {},
@@ -3586,9 +3597,9 @@ const ve = Y(me), Le = () => {
3586
3597
  ]),
3587
3598
  style: C(n.value),
3588
3599
  "aria-hidden": "true"
3589
- }, W(i.icon), 7));
3600
+ }, V(i.icon), 7));
3590
3601
  }
3591
- }), xe = /* @__PURE__ */ T({
3602
+ }), Ee = /* @__PURE__ */ T({
3592
3603
  __name: "vc-bootstrap-icon",
3593
3604
  props: {
3594
3605
  icon: {},
@@ -3612,7 +3623,7 @@ const ve = Y(me), Le = () => {
3612
3623
  "aria-hidden": "true"
3613
3624
  }, null, 6));
3614
3625
  }
3615
- }), ge = /* @__PURE__ */ T({
3626
+ }), Ue = /* @__PURE__ */ T({
3616
3627
  __name: "vc-lucide-icon",
3617
3628
  props: {
3618
3629
  icon: {},
@@ -3627,8 +3638,8 @@ const ve = Y(me), Le = () => {
3627
3638
  let l = t.icon;
3628
3639
  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
3640
  }), 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);
3641
+ const l = r.value, h = Z[l];
3642
+ return !h || typeof h != "object" && typeof h != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : W(h);
3632
3643
  }), o = u(() => n.value && t.customSize ? {
3633
3644
  width: `${t.customSize}px`,
3634
3645
  height: `${t.customSize}px`
@@ -3647,10 +3658,10 @@ const ve = Y(me), Le = () => {
3647
3658
  key: 1,
3648
3659
  class: P(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
3649
3660
  }, [...h[0] || (h[0] = [
3650
- V("i", { class: "vc-lucide-icon__fallback" }, null, -1)
3661
+ q("i", { class: "vc-lucide-icon__fallback" }, null, -1)
3651
3662
  ])], 2));
3652
3663
  }
3653
- }), Ee = /* @__PURE__ */ T({
3664
+ }), Se = /* @__PURE__ */ T({
3654
3665
  __name: "vc-fontawesome-icon",
3655
3666
  props: {
3656
3667
  icon: {},
@@ -3674,7 +3685,7 @@ const ve = Y(me), Le = () => {
3674
3685
  "aria-hidden": "true"
3675
3686
  }, null, 6));
3676
3687
  }
3677
- }), Ue = ["xlink:href"], Se = /* @__PURE__ */ T({
3688
+ }), ye = ["xlink:href"], Te = /* @__PURE__ */ T({
3678
3689
  inheritAttrs: !1,
3679
3690
  __name: "vc-svg-icon",
3680
3691
  props: {
@@ -3707,10 +3718,10 @@ const ve = Y(me), Le = () => {
3707
3718
  n.value ? (E(), S("use", {
3708
3719
  key: 0,
3709
3720
  "xlink:href": n.value
3710
- }, null, 8, Ue)) : q("", !0)
3721
+ }, null, 8, ye)) : H("", !0)
3711
3722
  ], 16));
3712
3723
  }
3713
- }), ye = ["aria-hidden", "aria-label", "role"], Ot = /* @__PURE__ */ T({
3724
+ }), _e = ["aria-hidden", "aria-label", "role"], Rt = /* @__PURE__ */ T({
3714
3725
  __name: "vc-icon",
3715
3726
  props: {
3716
3727
  icon: { default: "lucide-square" },
@@ -3762,7 +3773,7 @@ const ve = Y(me), Le = () => {
3762
3773
  }
3763
3774
  }), I = u(() => {
3764
3775
  if (typeof e.icon != "string")
3765
- return K(e.icon);
3776
+ return W(e.icon);
3766
3777
  if (["fontawesome", "bootstrap", "material"].includes(n.value))
3767
3778
  return "i";
3768
3779
  try {
@@ -3771,7 +3782,7 @@ const ve = Y(me), Le = () => {
3771
3782
  } catch {
3772
3783
  return "i";
3773
3784
  }
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(() => {
3785
+ }), O = u(() => s.value ? ge : o.value ? Ee : l.value ? Ue : h.value ? Se : _.value ? Te : x.value ? I.value : "i"), U = u(() => e.customSize ? e.customSize : t[e.size]), w = u(() => {
3775
3786
  const d = {};
3776
3787
  return x.value && e.customSize && (d.width = `${e.customSize}px`, d.height = `${e.customSize}px`), d;
3777
3788
  }), z = u(() => e.customSize ? {
@@ -3834,7 +3845,7 @@ const ve = Y(me), Le = () => {
3834
3845
  ],
3835
3846
  style: w.value
3836
3847
  }, A.value), null, 16, ["class", "style"]))
3837
- ], 16, ye)) : (E(), J(F(O.value), j({
3848
+ ], 16, _e)) : (E(), J(F(O.value), j({
3838
3849
  key: 1,
3839
3850
  class: [
3840
3851
  "vc-icon",
@@ -3850,73 +3861,75 @@ const ve = Y(me), Le = () => {
3850
3861
  }
3851
3862
  });
3852
3863
  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,
3864
+ _t as $,
3865
+ xt as A,
3866
+ Xe as B,
3867
+ b as C,
3868
+ Ce as D,
3869
+ vt as E,
3870
+ rt as F,
3871
+ jt as G,
3872
+ Ze as H,
3873
+ Ut as I,
3874
+ Qe as J,
3875
+ Ie as K,
3876
+ ht as L,
3877
+ ft as M,
3878
+ nt as N,
3879
+ Pt as O,
3880
+ at as P,
3881
+ ze as Q,
3882
+ $e as R,
3883
+ De as S,
3884
+ ct as T,
3885
+ dt as U,
3886
+ Ne as V,
3887
+ st as W,
3888
+ se as X,
3889
+ ae as Y,
3890
+ te as Z,
3891
+ Rt as _,
3892
+ He as a,
3893
+ Ge as a0,
3894
+ ie as a1,
3895
+ ke as a2,
3896
+ Je as a3,
3897
+ pt as a4,
3898
+ Fe as a5,
3899
+ oe as a6,
3900
+ Me as a7,
3901
+ re as a8,
3902
+ le as a9,
3903
+ Be as aa,
3904
+ bt as ab,
3905
+ ue as ac,
3906
+ be as ad,
3907
+ xe as ae,
3908
+ Le as af,
3909
+ Ke as ag,
3910
+ Ye as b,
3898
3911
  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,
3912
+ tt as d,
3913
+ et as e,
3914
+ wt as f,
3915
+ Ot as g,
3916
+ fe as h,
3917
+ Ve as i,
3918
+ At as j,
3919
+ St as k,
3920
+ gt as l,
3921
+ We as m,
3909
3922
  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
3923
+ yt as o,
3924
+ Tt as p,
3925
+ lt as q,
3926
+ it as r,
3927
+ ot as s,
3928
+ he as t,
3929
+ qe as u,
3930
+ ut as v,
3931
+ je as w,
3932
+ ne as x,
3933
+ mt as y,
3934
+ Re as z
3922
3935
  };