@vc-shell/framework 2.0.0-alpha.12 → 2.0.0-alpha.15

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 (39) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/VcTableAdapter.css +1 -1
  3. package/dist/ai-agent/index.js +2 -2
  4. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-DdyWhitN.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-B4GDIm57.js} +939 -948
  5. package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-DC948i43.js → VcTableAdapter.vue_vue_type_style_index_0_lang-CdlLNeu6.js} +2717 -2717
  6. package/dist/chunks/{index-w6KNzNbs.js → index-C981z9CQ.js} +1 -1
  7. package/dist/chunks/{index-nypcvCTu.js → index-DO3YFNu1.js} +2 -2
  8. package/dist/chunks/{vc-toast.vue_vue_type_style_index_0_lang-DcqdH5V3.js → vc-toast.vue_vue_type_style_index_0_lang-DEWdfXsK.js} +1 -1
  9. package/dist/core/blade-navigation/types/index.d.ts +2 -2
  10. package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
  11. package/dist/core/composables/useBlade/index.d.ts +1 -1
  12. package/dist/core/composables/useBlade/index.d.ts.map +1 -1
  13. package/dist/core/notifications/store.d.ts +1 -1
  14. package/dist/core/notifications/store.d.ts.map +1 -1
  15. package/dist/core/notifications/toast-controller.d.ts +1 -1
  16. package/dist/core/notifications/toast-controller.d.ts.map +1 -1
  17. package/dist/framework.js +1191 -1195
  18. package/dist/index.css +2 -2
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/modules/assets/components/assets-details/assets-details.vue.d.ts +1 -3
  22. package/dist/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
  23. package/dist/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +1 -3
  24. package/dist/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
  25. package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
  26. package/dist/tsconfig.tsbuildinfo +1 -1
  27. package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
  28. package/dist/ui/components/organisms/vc-blade/_internal/composables/useToolbarRegistration.d.ts +2 -2
  29. package/dist/ui/components/organisms/vc-blade/_internal/composables/useToolbarRegistration.d.ts.map +1 -1
  30. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarMobile.vue.d.ts.map +1 -1
  31. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  32. package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
  33. package/dist/ui/components/organisms/vc-table/components/mobile/PullToRefresh.vue.d.ts.map +1 -1
  34. package/dist/ui/index.js +3 -3
  35. package/globals-augments.d.ts +33 -0
  36. package/globals.d.ts +12 -29
  37. package/package.json +6 -4
  38. package/shims-vue.d.ts +16 -0
  39. package/typings/shims-vue.d.ts +38 -0
@@ -1,20 +1,20 @@
1
- import { defineComponent as F, computed as g, onMounted as Je, openBlock as A, createElementBlock as U, normalizeStyle as Te, normalizeClass as q, toDisplayString as pe, markRaw as Jr, createBlock as G, resolveDynamicComponent as Ye, createElementVNode as $, mergeProps as Ce, createCommentVNode as W, resolveComponent as qe, inject as M, unref as L, renderSlot as xe, ref as j, watch as X, nextTick as re, onBeforeUnmount as Ut, toValue as oe, getCurrentInstance as ut, withKeys as wr, withModifiers as It, Teleport as ps, createVNode as V, Transition as Dt, withCtx as me, withDirectives as Bt, Fragment as Xe, renderList as Rt, createTextVNode as Sr, toRef as $r, reactive as ms, createApp as vs, onErrorCaptured as ys, shallowRef as Jt, provide as Ke, watchEffect as gs, vShow as bs, h as ws, warn as Ss, createStaticVNode as xs, onUnmounted as As } from "vue";
2
- import { o as zr, s as Is, c as Le } from "./vendor-lodash-es-QnNVqiqU.js";
3
- import { u as Cs, a as Es, o as Os } from "./vendor-vueuse-core-CPOkeLul.js";
4
- import { u as Ts, j as Lr, k as Ps } from "./vendor-vueuse-shared-Byno6iDO.js";
5
- import { c as Ns, u as ks } from "./vendor-vue-i18n-BSCeQYoP.js";
6
- import { useRouter as js, RouterView as Us } from "vue-router";
7
- import { C as Ds } from "./vendor-microsoft-applicationinsights-core-js-DYtaESwI.js";
8
- import { v as Fr, O as Bs } from "./vendor-vueuse-components-C3DWJalC.js";
9
- import { u as Rs } from "./vendor-floating-ui-vue-sCrhit51.js";
10
- import { f as Js, s as $s, o as xr, b as zs } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
1
+ import { defineComponent as F, computed as y, onMounted as Je, openBlock as A, createElementBlock as U, normalizeStyle as Te, normalizeClass as q, toDisplayString as pe, markRaw as Jr, createBlock as G, resolveDynamicComponent as Ye, createElementVNode as $, mergeProps as Ce, createCommentVNode as W, resolveComponent as qe, inject as M, unref as L, renderSlot as xe, ref as j, watch as X, nextTick as re, onBeforeUnmount as Ut, toValue as oe, getCurrentInstance as ut, withKeys as wr, withModifiers as It, Teleport as ps, createVNode as V, Transition as Dt, withCtx as me, withDirectives as Bt, Fragment as Xe, renderList as Rt, createTextVNode as Sr, toRef as $r, reactive as ms, createApp as vs, onErrorCaptured as ys, shallowRef as Jt, provide as Ke, vShow as gs, h as bs, warn as ws, createStaticVNode as Ss, onUnmounted as xs } from "vue";
2
+ import { o as zr, s as As, c as Le } from "./vendor-lodash-es-QnNVqiqU.js";
3
+ import { u as Is, a as Cs, o as Es } from "./vendor-vueuse-core-CPOkeLul.js";
4
+ import { u as Os, j as Lr, k as Ts } from "./vendor-vueuse-shared-Byno6iDO.js";
5
+ import { c as Ps, u as Ns } from "./vendor-vue-i18n-BSCeQYoP.js";
6
+ import { useRouter as ks, RouterView as js } from "vue-router";
7
+ import { C as Us } from "./vendor-microsoft-applicationinsights-core-js-DYtaESwI.js";
8
+ import { v as Fr, O as Ds } from "./vendor-vueuse-components-C3DWJalC.js";
9
+ import { u as Bs } from "./vendor-floating-ui-vue-sCrhit51.js";
10
+ import { f as Rs, s as Js, o as xr, b as $s } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
11
11
  import { defineRule as Pe } from "vee-validate";
12
12
  import { a as Ar } from "./vendor-vee-validate-rules-4oWUZPpG.js";
13
- import { _ as Ls } from "./vendor-cypress-signalr-mock-itnm2wpA.js";
14
- import { H as Fs, L as Ms } from "./vendor-microsoft-signalr-Bgpbb4fW.js";
13
+ import { _ as zs } from "./vendor-cypress-signalr-mock-itnm2wpA.js";
14
+ import { H as Ls, L as Fs } from "./vendor-microsoft-signalr-Bgpbb4fW.js";
15
15
  import "./ExtensionPoint.vue_vue_type_style_index_0_lang-DM_3_2DK.js";
16
- import { L as Gs } from "./vendor-lucide-vue-next-CwUrzD6N.js";
17
- const Ws = /* @__PURE__ */ F({
16
+ import { L as Ms } from "./vendor-lucide-vue-next-CwUrzD6N.js";
17
+ const Gs = /* @__PURE__ */ F({
18
18
  __name: "vc-material-icon",
19
19
  props: {
20
20
  icon: {},
@@ -24,7 +24,7 @@ const Ws = /* @__PURE__ */ F({
24
24
  customSize: {}
25
25
  },
26
26
  setup(n) {
27
- const e = n, t = g(() => typeof e.customSize == "number" && e.customSize > 0), s = g(
27
+ const e = n, t = y(() => typeof e.customSize == "number" && e.customSize > 0), s = y(
28
28
  () => e.customSize ? { fontSize: `${e.customSize}px` } : void 0
29
29
  );
30
30
  return Je(() => {
@@ -39,7 +39,7 @@ const Ws = /* @__PURE__ */ F({
39
39
  "aria-hidden": "true"
40
40
  }, pe(n.icon), 7));
41
41
  }
42
- }), qs = /* @__PURE__ */ F({
42
+ }), Ws = /* @__PURE__ */ F({
43
43
  __name: "vc-bootstrap-icon",
44
44
  props: {
45
45
  icon: {},
@@ -48,12 +48,12 @@ const Ws = /* @__PURE__ */ F({
48
48
  customSize: {}
49
49
  },
50
50
  setup(n) {
51
- const e = n, t = g(() => typeof e.customSize == "number" && e.customSize > 0), s = g(
51
+ const e = n, t = y(() => typeof e.customSize == "number" && e.customSize > 0), s = y(
52
52
  () => e.customSize ? { fontSize: `${e.customSize}px` } : void 0
53
53
  );
54
54
  Je(() => {
55
55
  });
56
- const r = g(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
56
+ const r = y(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
57
57
  return (i, o) => (A(), U("i", {
58
58
  class: q([
59
59
  "vc-bootstrap-icon",
@@ -66,7 +66,7 @@ const Ws = /* @__PURE__ */ F({
66
66
  }, null, 6));
67
67
  }
68
68
  });
69
- function Ks() {
69
+ function qs() {
70
70
  return Math.random().toString(36).substring(2, 9);
71
71
  }
72
72
  const Ir = {
@@ -75,13 +75,13 @@ const Ir = {
75
75
  warn: 2,
76
76
  error: 3,
77
77
  none: 4
78
- }, Hs = {
78
+ }, Ks = {
79
79
  level: "warn",
80
80
  prefix: "@vc-shell/framework",
81
81
  enabled: !0
82
82
  };
83
83
  function R(n) {
84
- const e = { ...Hs }, t = n ? `[${e.prefix}#${n}]` : `[${e.prefix}]`, s = (r) => e.enabled ? Ir[r] >= Ir[e.level] : !1;
84
+ const e = { ...Ks }, t = n ? `[${e.prefix}#${n}]` : `[${e.prefix}]`, s = (r) => e.enabled ? Ir[r] >= Ir[e.level] : !1;
85
85
  return {
86
86
  /**
87
87
  * Log debug messages (only in development)
@@ -125,7 +125,7 @@ function R(n) {
125
125
  }
126
126
  };
127
127
  }
128
- const sl = R(), il = {
128
+ const rl = R(), sl = {
129
129
  core: R("core"),
130
130
  ui: R("ui"),
131
131
  shared: R("shared"),
@@ -147,17 +147,17 @@ class se extends Error {
147
147
  };
148
148
  }
149
149
  }
150
- class nl extends se {
150
+ class il extends se {
151
151
  constructor(e, t) {
152
152
  super(e, "VALIDATION_ERROR", t), this.name = "ValidationError";
153
153
  }
154
154
  }
155
- class ol extends se {
155
+ class nl extends se {
156
156
  constructor(e, t) {
157
157
  super(e, "SERVICE_ERROR", t), this.name = "ServiceError";
158
158
  }
159
159
  }
160
- class Vs extends se {
160
+ class Hs extends se {
161
161
  constructor(e, t) {
162
162
  super(`${e} not provided. Make sure to call the corresponding 'provide' function.`, "INJECTION_ERROR", {
163
163
  serviceName: e,
@@ -165,7 +165,7 @@ class Vs extends se {
165
165
  }), this.name = "InjectionError";
166
166
  }
167
167
  }
168
- class ll extends se {
168
+ class ol extends se {
169
169
  constructor(e, t, s) {
170
170
  super(`Failed to register '${e}': ${t}`, "REGISTRATION_ERROR", {
171
171
  componentName: e,
@@ -173,7 +173,7 @@ class ll extends se {
173
173
  }), this.name = "RegistrationError";
174
174
  }
175
175
  }
176
- class ul extends se {
176
+ class ll extends se {
177
177
  constructor(e, t, s) {
178
178
  super(e, "BLADE_ERROR", {
179
179
  bladeId: t,
@@ -181,7 +181,7 @@ class ul extends se {
181
181
  }), this.name = "BladeError";
182
182
  }
183
183
  }
184
- class cl extends se {
184
+ class ul extends se {
185
185
  constructor(e, t, s) {
186
186
  super(`Failed to load module '${e}': ${t}`, "MODULE_LOAD_ERROR", {
187
187
  moduleId: e,
@@ -189,11 +189,11 @@ class cl extends se {
189
189
  }), this.name = "ModuleLoadError";
190
190
  }
191
191
  }
192
- function Zs(n) {
192
+ function Vs(n) {
193
193
  return n instanceof se;
194
194
  }
195
- function al(n, e = "UNKNOWN_ERROR") {
196
- return Zs(n) ? n : n instanceof Error ? new se(n.message, e, {
195
+ function cl(n, e = "UNKNOWN_ERROR") {
196
+ return Vs(n) ? n : n instanceof Error ? new se(n.message, e, {
197
197
  originalError: n.name,
198
198
  stack: n.stack
199
199
  }) : new se(String(n), e);
@@ -232,7 +232,7 @@ function Ct(n) {
232
232
  }
233
233
  return new we("An unknown error occurred.", String(n), n);
234
234
  }
235
- const Ys = /* @__PURE__ */ F({
235
+ const Zs = /* @__PURE__ */ F({
236
236
  __name: "vc-lucide-icon",
237
237
  props: {
238
238
  icon: {},
@@ -242,14 +242,14 @@ const Ys = /* @__PURE__ */ F({
242
242
  customSize: {}
243
243
  },
244
244
  setup(n) {
245
- const e = R("vc-lucide-icon"), t = n, s = g(() => typeof t.customSize == "number" && t.customSize > 0), r = g(() => {
245
+ const e = R("vc-lucide-icon"), t = n, s = y(() => typeof t.customSize == "number" && t.customSize > 0), r = y(() => {
246
246
  if (!t.icon) return "HelpCircleIcon";
247
247
  let u = t.icon;
248
248
  return u.startsWith("lucide-") && (u = u.substring(7)), u.toLowerCase().endsWith("icon") && (u = u.slice(0, -4)), u.includes("-") && (u = u.split("-").map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")), u.charAt(0).toUpperCase() + u.slice(1) + "Icon";
249
- }), i = g(() => {
250
- const u = r.value, c = Gs[u];
249
+ }), i = y(() => {
250
+ const u = r.value, c = Ms[u];
251
251
  return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${u}`), null) : Jr(c);
252
- }), o = g(() => s.value && t.customSize ? {
252
+ }), o = y(() => s.value && t.customSize ? {
253
253
  width: `${t.customSize}px`,
254
254
  height: `${t.customSize}px`
255
255
  } : {});
@@ -270,7 +270,7 @@ const Ys = /* @__PURE__ */ F({
270
270
  $("i", { class: "vc-lucide-icon__fallback" }, null, -1)
271
271
  ])], 2));
272
272
  }
273
- }), Xs = /* @__PURE__ */ F({
273
+ }), Ys = /* @__PURE__ */ F({
274
274
  __name: "vc-fontawesome-icon",
275
275
  props: {
276
276
  icon: {},
@@ -279,12 +279,12 @@ const Ys = /* @__PURE__ */ F({
279
279
  customSize: {}
280
280
  },
281
281
  setup(n) {
282
- const e = n, t = g(() => typeof e.customSize == "number" && e.customSize > 0), s = g(
282
+ const e = n, t = y(() => typeof e.customSize == "number" && e.customSize > 0), s = y(
283
283
  () => e.customSize ? { fontSize: `${e.customSize}px` } : void 0
284
284
  );
285
285
  Je(() => {
286
286
  });
287
- const r = g(() => 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}`);
287
+ const r = y(() => 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}`);
288
288
  return (i, o) => (A(), U("i", {
289
289
  class: q([
290
290
  "vc-fa-icon",
@@ -296,7 +296,7 @@ const Ys = /* @__PURE__ */ F({
296
296
  "aria-hidden": "true"
297
297
  }, null, 6));
298
298
  }
299
- }), Qs = ["xlink:href"], _s = /* @__PURE__ */ F({
299
+ }), Xs = ["xlink:href"], Qs = /* @__PURE__ */ F({
300
300
  inheritAttrs: !1,
301
301
  __name: "vc-svg-icon",
302
302
  props: {
@@ -308,7 +308,7 @@ const Ys = /* @__PURE__ */ F({
308
308
  strokeWidth: {}
309
309
  },
310
310
  setup(n) {
311
- const e = n, t = g(() => typeof e.customSize == "number" && e.customSize > 0), s = g(() => {
311
+ const e = n, t = y(() => typeof e.customSize == "number" && e.customSize > 0), s = y(() => {
312
312
  if (e.icon.startsWith("/") || e.icon.includes("://") || e.icon.startsWith("#"))
313
313
  return e.icon;
314
314
  const i = e.icon.indexOf("#");
@@ -317,7 +317,7 @@ const Ys = /* @__PURE__ */ F({
317
317
  return `${e.basePath}/${o}${u}`;
318
318
  }
319
319
  return `${e.basePath}/${e.icon}`;
320
- }), r = g(() => {
320
+ }), r = y(() => {
321
321
  const i = {};
322
322
  return e.customSize && (i.width = `${e.customSize}px`, i.height = `${e.customSize}px`), e.strokeWidth && (i.strokeWidth = `${e.strokeWidth}`), i;
323
323
  });
@@ -329,10 +329,10 @@ const Ys = /* @__PURE__ */ F({
329
329
  s.value ? (A(), U("use", {
330
330
  key: 0,
331
331
  "xlink:href": s.value
332
- }, null, 8, Qs)) : W("", !0)
332
+ }, null, 8, Xs)) : W("", !0)
333
333
  ], 16));
334
334
  }
335
- }), ei = ["aria-hidden", "aria-label", "role"], ie = /* @__PURE__ */ F({
335
+ }), _s = ["aria-hidden", "aria-label", "role"], ie = /* @__PURE__ */ F({
336
336
  __name: "vc-icon",
337
337
  props: {
338
338
  icon: { default: "lucide-square" },
@@ -355,25 +355,25 @@ const Ys = /* @__PURE__ */ F({
355
355
  xl: 22,
356
356
  xxl: 30,
357
357
  xxxl: 64
358
- }, s = g(() => typeof e.icon != "string" ? "custom" : e.icon.startsWith("fa-") || e.icon.includes("fa-") ? "fontawesome" : e.icon.startsWith("bi-") ? "bootstrap" : e.icon.startsWith("lucide-") ? "lucide" : e.icon.startsWith("material-") ? "material" : e.icon.startsWith("svg:") ? "svg" : e.icon.endsWith("Icon") ? "lucide" : "custom"), r = g(() => {
358
+ }, s = y(() => typeof e.icon != "string" ? "custom" : e.icon.startsWith("fa-") || e.icon.includes("fa-") ? "fontawesome" : e.icon.startsWith("bi-") ? "bootstrap" : e.icon.startsWith("lucide-") ? "lucide" : e.icon.startsWith("material-") ? "material" : e.icon.startsWith("svg:") ? "svg" : e.icon.endsWith("Icon") ? "lucide" : "custom"), r = y(() => {
359
359
  if (typeof e.icon != "string")
360
360
  return e.icon;
361
361
  if (s.value === "material" && e.icon.startsWith("material-"))
362
362
  return e.icon.replace(/^material-/, "");
363
363
  if (s.value === "lucide" && e.icon.startsWith("lucide-")) {
364
- const b = e.icon.replace(/^lucide-/, "");
365
- return b.endsWith("Icon") ? b : `${b}Icon`;
364
+ const g = e.icon.replace(/^lucide-/, "");
365
+ return g.endsWith("Icon") ? g : `${g}Icon`;
366
366
  }
367
367
  return e.icon;
368
- }), i = g(() => s.value === "material"), o = g(() => s.value === "bootstrap"), u = g(() => s.value === "lucide"), c = g(() => s.value === "fontawesome"), h = g(() => {
368
+ }), i = y(() => s.value === "material"), o = y(() => s.value === "bootstrap"), u = y(() => s.value === "lucide"), c = y(() => s.value === "fontawesome"), h = y(() => {
369
369
  if (typeof e.icon != "string")
370
370
  return !0;
371
371
  if (["fontawesome", "bootstrap"].includes(s.value) || s.value === "material" && e.icon.startsWith("material-") || s.value === "lucide" && e.icon.startsWith("lucide-"))
372
372
  return !1;
373
373
  if (u.value)
374
374
  try {
375
- const b = typeof r.value == "string" ? r.value : String(r.value);
376
- return qe(b) !== b;
375
+ const g = typeof r.value == "string" ? r.value : String(r.value);
376
+ return qe(g) !== g;
377
377
  } catch {
378
378
  return !1;
379
379
  }
@@ -382,23 +382,23 @@ const Ys = /* @__PURE__ */ F({
382
382
  } catch {
383
383
  return !1;
384
384
  }
385
- }), a = g(() => {
385
+ }), a = y(() => {
386
386
  if (typeof e.icon != "string")
387
387
  return Jr(e.icon);
388
388
  if (["fontawesome", "bootstrap", "material"].includes(s.value))
389
389
  return "i";
390
390
  try {
391
- const b = typeof r.value == "string" ? r.value : String(r.value), N = qe(b);
392
- return N !== b ? N : "i";
391
+ const g = typeof r.value == "string" ? r.value : String(r.value), N = qe(g);
392
+ return N !== g ? N : "i";
393
393
  } catch {
394
394
  return "i";
395
395
  }
396
- }), m = g(() => i.value ? Ws : o.value ? qs : u.value ? Ys : c.value ? Xs : E.value ? _s : h.value ? a.value : "i"), d = g(() => e.customSize ? e.customSize : t[e.size]), p = g(() => {
397
- const b = {};
398
- return h.value && e.customSize && (b.width = `${e.customSize}px`, b.height = `${e.customSize}px`), b;
399
- }), y = g(() => e.customSize ? {
396
+ }), m = y(() => i.value ? Gs : o.value ? Ws : u.value ? Zs : c.value ? Ys : T.value ? Qs : h.value ? a.value : "i"), d = y(() => e.customSize ? e.customSize : t[e.size]), p = y(() => {
397
+ const g = {};
398
+ return h.value && e.customSize && (g.width = `${e.customSize}px`, g.height = `${e.customSize}px`), g;
399
+ }), b = y(() => e.customSize ? {
400
400
  fontSize: `${e.customSize}px`
401
- } : {}), T = g(() => i.value ? {
401
+ } : {}), O = y(() => i.value ? {
402
402
  icon: typeof r.value == "string" ? r.value.replace(/-outlined$|-rounded$|-sharp$/, "") : r.value,
403
403
  size: e.size,
404
404
  variant: e.variant,
@@ -427,8 +427,8 @@ const Ys = /* @__PURE__ */ F({
427
427
  variant: e.variant,
428
428
  customSize: e.customSize
429
429
  // Set custom size without scaling
430
- } : E.value ? {
431
- icon: S.value,
430
+ } : T.value ? {
431
+ icon: x.value,
432
432
  size: e.size,
433
433
  variant: e.variant,
434
434
  customSize: e.customSize,
@@ -438,15 +438,15 @@ const Ys = /* @__PURE__ */ F({
438
438
  width: d.value,
439
439
  height: d.value,
440
440
  color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
441
- } : {}), E = g(() => s.value === "svg"), S = g(() => !E.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
442
- return (b, N) => n.useContainer ? (A(), U("div", Ce({
441
+ } : {}), T = y(() => s.value === "svg"), x = y(() => !T.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
442
+ return (g, N) => n.useContainer ? (A(), U("div", Ce({
443
443
  key: 0,
444
444
  class: ["vc-icon-container", `vc-icon-container--${n.size}`],
445
- style: y.value,
445
+ style: b.value,
446
446
  "aria-hidden": n.ariaLabel ? void 0 : "true",
447
447
  "aria-label": n.ariaLabel || void 0,
448
448
  role: n.ariaLabel ? "img" : void 0
449
- }, b.$attrs), [
449
+ }, g.$attrs), [
450
450
  (A(), G(Ye(m.value), Ce({
451
451
  class: [
452
452
  "vc-icon",
@@ -455,8 +455,8 @@ const Ys = /* @__PURE__ */ F({
455
455
  !h.value && !i.value && !u.value && !o.value && !c.value ? n.icon.toLowerCase() : ""
456
456
  ],
457
457
  style: p.value
458
- }, T.value), null, 16, ["class", "style"]))
459
- ], 16, ei)) : (A(), G(Ye(m.value), Ce({
458
+ }, O.value), null, 16, ["class", "style"]))
459
+ ], 16, _s)) : (A(), G(Ye(m.value), Ce({
460
460
  key: 1,
461
461
  class: [
462
462
  "vc-icon",
@@ -468,12 +468,12 @@ const Ys = /* @__PURE__ */ F({
468
468
  "aria-hidden": n.ariaLabel ? void 0 : "true",
469
469
  "aria-label": n.ariaLabel || void 0,
470
470
  role: n.ariaLabel ? "img" : void 0
471
- }, { ...T.value, ...b.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
471
+ }, { ...O.value, ...g.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
472
472
  }
473
- }), ti = Symbol("vc-button-group"), ri = ["type", "disabled", "aria-label", "aria-busy", "aria-pressed"], si = {
473
+ }), ei = Symbol("vc-button-group"), ti = ["type", "disabled", "aria-label", "aria-busy", "aria-pressed"], ri = {
474
474
  key: 2,
475
475
  class: "vc-button__title"
476
- }, ii = /* @__PURE__ */ F({
476
+ }, si = /* @__PURE__ */ F({
477
477
  __name: "vc-button",
478
478
  props: {
479
479
  icon: {},
@@ -493,10 +493,10 @@ const Ys = /* @__PURE__ */ F({
493
493
  const t = {
494
494
  base: "default",
495
495
  xs: "sm"
496
- }, s = n, r = e, i = M(ti, null), o = g(() => {
496
+ }, s = n, r = e, i = M(ei, null), o = y(() => {
497
497
  const h = i?.size?.value ?? s.size;
498
498
  return t[h] ?? h;
499
- }), u = g(() => [
499
+ }), u = y(() => [
500
500
  "vc-button",
501
501
  {
502
502
  [`vc-button-${s.variant}`]: s.variant,
@@ -530,10 +530,10 @@ const Ys = /* @__PURE__ */ F({
530
530
  icon: n.icon,
531
531
  size: n.iconSize
532
532
  }, null, 8, ["class", "icon", "size"])) : W("", !0),
533
- h.$slots.default ? (A(), U("span", si, [
533
+ h.$slots.default ? (A(), U("span", ri, [
534
534
  xe(h.$slots, "default")
535
535
  ])) : W("", !0)
536
- ], 10, ri));
536
+ ], 10, ti));
537
537
  }
538
538
  });
539
539
  function Cr(n) {
@@ -546,7 +546,7 @@ function gt(n) {
546
546
  const e = getComputedStyle(n), t = e.columnGap || e.gap || "0px";
547
547
  return parseFloat(t) || 0;
548
548
  }
549
- function ni(n) {
549
+ function ii(n) {
550
550
  const {
551
551
  containerRef: e,
552
552
  items: t,
@@ -554,23 +554,23 @@ function ni(n) {
554
554
  moreButtonWidth: r,
555
555
  calculationStrategy: i = "forward",
556
556
  initialItemWidth: o = 50
557
- } = n, { width: u } = Cs(e), c = j(/* @__PURE__ */ new Map()), h = j(null), a = j(0), m = j([]), d = j([]), p = g(() => d.value.length > 0);
558
- let y = null;
559
- const T = /* @__PURE__ */ new Set(), E = () => h.value ?? r, S = () => {
557
+ } = n, { width: u } = Is(e), c = j(/* @__PURE__ */ new Map()), h = j(null), a = j(0), m = j([]), d = j([]), p = y(() => d.value.length > 0);
558
+ let b = null;
559
+ const O = /* @__PURE__ */ new Set(), T = () => h.value ?? r, x = () => {
560
560
  if (!e.value) return;
561
561
  const f = e.value.querySelector("[data-more-button]");
562
562
  if (f) {
563
563
  const v = Cr(f);
564
564
  v > 0 && (h.value = v);
565
565
  }
566
- }, b = (f) => {
566
+ }, g = (f) => {
567
567
  const v = s(f);
568
568
  return c.value.get(v) || o;
569
569
  }, N = (f, v) => {
570
570
  let w = 0;
571
571
  const I = [], D = [], J = a.value;
572
572
  for (const K of f) {
573
- const ue = b(K), ce = I.length > 0 ? J : 0;
573
+ const ue = g(K), ce = I.length > 0 ? J : 0;
574
574
  w + ce + ue <= v ? (I.push(K), w += ce + ue) : D.push(K);
575
575
  }
576
576
  return { visible: I, hidden: D };
@@ -584,13 +584,13 @@ function ni(n) {
584
584
  const f = a.value, v = i === "reverse" ? [...t.value].reverse() : t.value;
585
585
  let w = N(v, u.value);
586
586
  if (w.hidden.length > 0) {
587
- const I = E(), D = w.visible.length > 0 ? f : 0;
587
+ const I = T(), D = w.visible.length > 0 ? f : 0;
588
588
  w = N(v, u.value - I - D);
589
589
  }
590
590
  i === "reverse" ? (m.value = w.visible.reverse(), d.value = w.hidden.reverse()) : (m.value = w.visible, d.value = w.hidden);
591
- }, O = () => {
591
+ }, E = () => {
592
592
  if (!e.value) return;
593
- a.value = gt(e.value), S(), e.value.querySelectorAll("[data-item-key]").forEach((v) => {
593
+ a.value = gt(e.value), x(), e.value.querySelectorAll("[data-item-key]").forEach((v) => {
594
594
  const w = v.getAttribute("data-item-key");
595
595
  if (w) {
596
596
  const I = Cr(v);
@@ -601,8 +601,8 @@ function ni(n) {
601
601
  const f = new Set(t.value.map(s));
602
602
  for (const v of c.value.keys())
603
603
  f.has(v) || c.value.delete(v);
604
- }, x = () => {
605
- y || (y = new ResizeObserver((f) => {
604
+ }, S = () => {
605
+ b || (b = new ResizeObserver((f) => {
606
606
  let v = !1;
607
607
  for (const w of f) {
608
608
  const I = w.target;
@@ -617,13 +617,13 @@ function ni(n) {
617
617
  if (!e.value) return;
618
618
  const f = e.value.querySelectorAll("[data-item-key]"), v = /* @__PURE__ */ new Set();
619
619
  f.forEach((w) => {
620
- v.add(w), T.has(w) || (y?.observe(w), T.add(w));
620
+ v.add(w), O.has(w) || (b?.observe(w), O.add(w));
621
621
  });
622
- for (const w of T)
623
- v.has(w) || (y?.unobserve(w), T.delete(w));
624
- O();
622
+ for (const w of O)
623
+ v.has(w) || (b?.unobserve(w), O.delete(w));
624
+ E();
625
625
  });
626
- }, k = Ts(() => {
626
+ }, k = Os(() => {
627
627
  e.value && (a.value = gt(e.value)), C();
628
628
  }, 50);
629
629
  return X(u, () => {
@@ -631,41 +631,41 @@ function ni(n) {
631
631
  }), X(p, (f) => {
632
632
  f && re(() => {
633
633
  const v = h.value;
634
- S(), h.value !== null && h.value !== v && C();
634
+ x(), h.value !== null && h.value !== v && C();
635
635
  });
636
636
  }), X(
637
637
  () => t.value.map(s).join("\0"),
638
638
  () => {
639
639
  P(), re(() => {
640
- x();
640
+ S();
641
641
  });
642
642
  }
643
643
  ), Je(() => {
644
644
  re(() => {
645
- O(), x();
645
+ E(), S();
646
646
  });
647
647
  }), Ut(() => {
648
- y && (y.disconnect(), y = null), T.clear();
648
+ b && (b.disconnect(), b = null), O.clear();
649
649
  }), {
650
650
  visibleItems: m,
651
651
  hiddenItems: d,
652
652
  showMoreButton: p,
653
653
  recalculate: () => {
654
654
  re(() => {
655
- O();
655
+ E();
656
656
  });
657
657
  },
658
658
  // Export function for updating observer
659
- updateObserver: x
659
+ updateObserver: S
660
660
  };
661
661
  }
662
- function oi(n, e, t = {}) {
663
- const s = g(() => oe(t.placement) ?? "bottom"), r = g(() => oe(t.strategy) ?? "absolute"), i = g(() => {
662
+ function ni(n, e, t = {}) {
663
+ const s = y(() => oe(t.placement) ?? "bottom"), r = y(() => oe(t.strategy) ?? "absolute"), i = y(() => {
664
664
  const c = oe(t.middleware);
665
665
  if (c?.length)
666
666
  return c;
667
667
  const h = [];
668
- oe(t.enableFlip) !== !1 && h.push(Js({ padding: t.shiftPadding ?? 8 })), oe(t.enableShift) !== !1 && h.push($s({ padding: t.shiftPadding ?? 8 }));
668
+ oe(t.enableFlip) !== !1 && h.push(Rs({ padding: t.shiftPadding ?? 8 })), oe(t.enableShift) !== !1 && h.push(Js({ padding: t.shiftPadding ?? 8 }));
669
669
  const a = oe(t.offset);
670
670
  return typeof a == "number" ? h.push(xr(a)) : h.push(
671
671
  xr({
@@ -674,12 +674,12 @@ function oi(n, e, t = {}) {
674
674
  alignmentAxis: a?.alignmentAxis
675
675
  })
676
676
  ), h;
677
- }), o = Rs(n, e, {
677
+ }), o = Bs(n, e, {
678
678
  placement: s,
679
679
  strategy: r,
680
- whileElementsMounted: oe(t.autoUpdate) === !1 ? void 0 : zs,
680
+ whileElementsMounted: oe(t.autoUpdate) === !1 ? void 0 : $s,
681
681
  middleware: i
682
- }), u = g(() => ({
682
+ }), u = y(() => ({
683
683
  position: r.value,
684
684
  top: `${o.y.value ?? 0}px`,
685
685
  left: `${o.x.value ?? 0}px`
@@ -691,11 +691,11 @@ function oi(n, e, t = {}) {
691
691
  resolvedStrategy: r
692
692
  };
693
693
  }
694
- const $t = Symbol("BladeStack"), Mr = Symbol("BladeMessaging"), zt = Symbol("BladeDescriptor"), hl = Symbol("BladeData"), fl = Symbol("NavigationViewLocation"), li = Symbol("BladeInstance"), ui = Symbol("BladeBackButton"), dl = Symbol("NotificationTemplates"), ci = Symbol("NotificationStore"), pl = Symbol("WidgetService"), ml = Symbol("DashboardService"), vl = Symbol("GlobalSearch"), yl = Symbol("MenuService"), gl = Symbol("SettingsMenuService"), bl = Symbol("AppBarWidgetService"), wl = Symbol("AppBarMobileButtonsService"), ai = Symbol("LanguageService"), hi = Symbol("ToolbarService"), Sl = Symbol("WidgetId"), xl = Symbol("DynamicModules"), Al = Symbol("ModulesReady"), Il = Symbol("ModulesLoadError"), fi = Symbol("AppRootElement"), di = Symbol("EmbeddedMode"), Cl = Symbol("ShellIndicators"), ct = Symbol("AiAgentService"), pi = Symbol("IsMobile"), El = Symbol("IsDesktop"), Ol = Symbol("IsPhone"), Tl = Symbol("IsTablet"), Pl = Symbol("IsTouch"), Nl = Symbol("BladeRoutes"), kl = Symbol("InternalRoutes"), jl = Symbol("CloseSettingsMenu"), Ul = Symbol("BladeContext");
695
- function mi(n = {}) {
696
- const e = M(fi, void 0);
694
+ const $t = Symbol("BladeStack"), Mr = Symbol("BladeMessaging"), zt = Symbol("BladeDescriptor"), al = Symbol("BladeData"), hl = Symbol("NavigationViewLocation"), oi = Symbol("BladeInstance"), li = Symbol("BladeBackButton"), fl = Symbol("NotificationTemplates"), ui = Symbol("NotificationStore"), dl = Symbol("WidgetService"), pl = Symbol("DashboardService"), ml = Symbol("GlobalSearch"), vl = Symbol("MenuService"), yl = Symbol("SettingsMenuService"), gl = Symbol("AppBarWidgetService"), bl = Symbol("AppBarMobileButtonsService"), ci = Symbol("LanguageService"), ai = Symbol("ToolbarService"), wl = Symbol("WidgetId"), Sl = Symbol("DynamicModules"), xl = Symbol("ModulesReady"), Al = Symbol("ModulesLoadError"), hi = Symbol("AppRootElement"), fi = Symbol("EmbeddedMode"), Il = Symbol("ShellIndicators"), ct = Symbol("AiAgentService"), Gr = Symbol("IsMobile"), Cl = Symbol("IsDesktop"), El = Symbol("IsPhone"), Ol = Symbol("IsTablet"), Tl = Symbol("IsTouch"), Pl = Symbol("BladeRoutes"), Nl = Symbol("InternalRoutes"), kl = Symbol("CloseSettingsMenu"), jl = Symbol("BladeContext");
695
+ function di(n = {}) {
696
+ const e = M(hi, void 0);
697
697
  return {
698
- teleportTarget: g(() => {
698
+ teleportTarget: y(() => {
699
699
  const s = n.to ? oe(n.to) : void 0;
700
700
  if (s)
701
701
  return s;
@@ -706,7 +706,7 @@ function mi(n = {}) {
706
706
  })
707
707
  };
708
708
  }
709
- const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
709
+ const pi = ["title"], mi = ["title"], vi = /* @__PURE__ */ F({
710
710
  __name: "vc-breadcrumbs-item",
711
711
  props: {
712
712
  current: { type: Boolean },
@@ -718,7 +718,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
718
718
  },
719
719
  emits: ["click"],
720
720
  setup(n, { emit: e }) {
721
- const t = n, s = e, r = g(() => oe(t.title) ?? "");
721
+ const t = n, s = e, r = y(() => oe(t.title) ?? "");
722
722
  function i() {
723
723
  t.current || (t.clickHandler && typeof t.clickHandler == "function" ? t.clickHandler(t.id) : s("click"));
724
724
  }
@@ -736,7 +736,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
736
736
  $("span", {
737
737
  class: "vc-breadcrumbs-item__title",
738
738
  title: r.value
739
- }, pe(r.value), 9, vi)
739
+ }, pe(r.value), 9, pi)
740
740
  ], 2)) : (A(), U("button", {
741
741
  key: 1,
742
742
  type: "button",
@@ -752,16 +752,16 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
752
752
  $("span", {
753
753
  class: "vc-breadcrumbs-item__title",
754
754
  title: r.value
755
- }, pe(r.value), 9, yi)
755
+ }, pe(r.value), 9, mi)
756
756
  ], 2));
757
757
  }
758
- }), bi = { class: "vc-dropdown" }, wi = ["aria-expanded", "aria-haspopup", "onKeydown"], Si = ["role", "aria-activedescendant"], xi = {
758
+ }), yi = { class: "vc-dropdown" }, gi = ["aria-expanded", "aria-haspopup", "onKeydown"], bi = ["role", "aria-activedescendant"], wi = {
759
759
  key: 0,
760
760
  class: "vc-dropdown__items-container"
761
- }, Ai = ["id", "role", "aria-selected", "onClick"], Ii = {
761
+ }, Si = ["id", "role", "aria-selected", "onClick"], xi = {
762
762
  key: 1,
763
763
  class: "vc-dropdown__empty"
764
- }, Ci = /* @__PURE__ */ F({
764
+ }, Ai = /* @__PURE__ */ F({
765
765
  __name: "vc-dropdown",
766
766
  props: {
767
767
  modelValue: { type: Boolean, default: !1 },
@@ -790,33 +790,33 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
790
790
  },
791
791
  emits: ["update:modelValue", "item-click", "open", "close"],
792
792
  setup(n, { emit: e }) {
793
- const t = n, s = e, o = `vc-dropdown-${ut()?.uid ?? Math.round(Math.random() * 1e4)}`, u = M("isMobile", j(!1)), c = j(null), h = j(null), a = j(-1), { teleportTarget: m } = mi({
794
- to: g(() => t.teleportTo)
795
- }), d = g(() => t.teleport ?? t.floating), p = g({
793
+ const t = n, s = e, o = `vc-dropdown-${ut()?.uid ?? Math.round(Math.random() * 1e4)}`, u = M(Gr, j(!1)), c = j(null), h = j(null), a = j(-1), { teleportTarget: m } = di({
794
+ to: y(() => t.teleportTo)
795
+ }), d = y(() => t.teleport ?? t.floating), p = y({
796
796
  get: () => t.modelValue,
797
797
  set: (B) => s("update:modelValue", B)
798
- }), { x: y, y: T, resolvedPlacement: E, resolvedStrategy: S } = oi(c, h, {
799
- placement: g(() => t.placement),
800
- strategy: g(() => t.floating ? "fixed" : "absolute"),
801
- offset: g(() => t.offset),
802
- autoUpdate: g(() => t.floating)
803
- }), b = g(() => [
798
+ }), { x: b, y: O, resolvedPlacement: T, resolvedStrategy: x } = ni(c, h, {
799
+ placement: y(() => t.placement),
800
+ strategy: y(() => t.floating ? "fixed" : "absolute"),
801
+ offset: y(() => t.offset),
802
+ autoUpdate: y(() => t.floating)
803
+ }), g = y(() => [
804
804
  {
805
805
  "vc-dropdown__dropdown--mobile": u.value,
806
806
  "vc-dropdown__dropdown--floating": t.floating
807
807
  },
808
808
  `vc-dropdown__dropdown--${t.variant}`,
809
- `vc-dropdown__dropdown--${E.value}`
810
- ]), N = g(() => t.floating ? {
811
- position: S.value,
812
- top: `${T.value ?? 0}px`,
813
- left: `${y.value ?? 0}px`,
809
+ `vc-dropdown__dropdown--${T.value}`
810
+ ]), N = y(() => t.floating ? {
811
+ position: x.value,
812
+ top: `${O.value ?? 0}px`,
813
+ left: `${b.value ?? 0}px`,
814
814
  zIndex: t.zIndex,
815
815
  width: "max-content"
816
- } : {}), C = g(() => t.maxHeight ? typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight : ""), O = g(() => t.role === "listbox" ? "option" : "menuitem"), P = g(() => {
816
+ } : {}), C = y(() => t.maxHeight ? typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight : ""), E = y(() => t.role === "listbox" ? "option" : "menuitem"), P = y(() => {
817
817
  if (!(a.value < 0 || a.value >= t.items.length))
818
818
  return f(a.value);
819
- }), x = [
819
+ }), S = [
820
820
  () => {
821
821
  t.closeOnClickOutside && D("outside");
822
822
  },
@@ -911,7 +911,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
911
911
  { deep: !0 }
912
912
  ), Ut(() => {
913
913
  document.removeEventListener("keydown", yt);
914
- }), (B, _) => (A(), U("div", bi, [
914
+ }), (B, _) => (A(), U("div", yi, [
915
915
  B.$slots.trigger ? (A(), U("div", {
916
916
  key: 0,
917
917
  ref_key: "referenceEl",
@@ -933,7 +933,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
933
933
  open: w,
934
934
  close: I
935
935
  })
936
- ], 40, wi)) : W("", !0),
936
+ ], 40, gi)) : W("", !0),
937
937
  (A(), G(ps, {
938
938
  to: L(m),
939
939
  defer: "",
@@ -949,7 +949,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
949
949
  id: o,
950
950
  ref_key: "floatingEl",
951
951
  ref: h,
952
- class: q(["vc-dropdown__dropdown", b.value]),
952
+ class: q(["vc-dropdown__dropdown", g.value]),
953
953
  style: Te({
954
954
  maxHeight: C.value,
955
955
  ...N.value
@@ -966,7 +966,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
966
966
  items: n.items,
967
967
  close: I
968
968
  }, () => [
969
- n.items.length ? (A(), U("div", xi, [
969
+ n.items.length ? (A(), U("div", wi, [
970
970
  (A(!0), U(Xe, null, Rt(n.items, (ne, Ne) => (A(), U("div", {
971
971
  id: f(Ne),
972
972
  key: v(ne, Ne),
@@ -976,9 +976,9 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
976
976
  "vc-dropdown__item--active": n.isItemActive?.(ne),
977
977
  "vc-dropdown__item--focused": a.value === Ne
978
978
  }]),
979
- role: O.value,
979
+ role: E.value,
980
980
  "aria-selected": n.role === "listbox" ? !!n.isItemActive?.(ne) : void 0,
981
- onClick: (Lo) => K(ne, Ne)
981
+ onClick: (zo) => K(ne, Ne)
982
982
  }, [
983
983
  xe(B.$slots, "item", {
984
984
  item: ne,
@@ -986,16 +986,16 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
986
986
  }, () => [
987
987
  Sr(pe(n.itemText?.(ne)), 1)
988
988
  ])
989
- ], 10, Ai))), 128))
990
- ])) : (A(), U("div", Ii, [
989
+ ], 10, Si))), 128))
990
+ ])) : (A(), U("div", xi, [
991
991
  xe(B.$slots, "empty", {}, () => [
992
992
  Sr(pe(n.emptyText), 1)
993
993
  ])
994
994
  ]))
995
995
  ])
996
996
  ], 2)
997
- ], 46, Si)), [
998
- [L(Fr), x]
997
+ ], 46, bi)), [
998
+ [L(Fr), S]
999
999
  ]) : W("", !0)
1000
1000
  ]),
1001
1001
  _: 3
@@ -1003,10 +1003,10 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
1003
1003
  ], 8, ["to", "disabled"]))
1004
1004
  ]));
1005
1005
  }
1006
- }), Ei = {
1006
+ }), Ii = {
1007
1007
  key: 2,
1008
1008
  class: "vc-dropdown-item__icon-placeholder"
1009
- }, Oi = { class: "vc-dropdown-item__title" }, Ti = /* @__PURE__ */ F({
1009
+ }, Ci = { class: "vc-dropdown-item__title" }, Ei = /* @__PURE__ */ F({
1010
1010
  __name: "VcDropdownItem",
1011
1011
  props: {
1012
1012
  title: {},
@@ -1031,19 +1031,19 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
1031
1031
  icon: n.icon,
1032
1032
  size: "xs",
1033
1033
  class: "vc-dropdown-item__icon"
1034
- }, null, 8, ["icon"])) : (A(), U("span", Ei)),
1035
- $("span", Oi, pe(n.title), 1)
1034
+ }, null, 8, ["icon"])) : (A(), U("span", Ii)),
1035
+ $("span", Ci, pe(n.title), 1)
1036
1036
  ], 2));
1037
1037
  }
1038
- }), Pi = {
1038
+ }), Oi = {
1039
1039
  key: 0,
1040
1040
  "aria-label": "Breadcrumb",
1041
1041
  class: "vc-breadcrumbs"
1042
- }, Ni = ["data-item-key"], ki = {
1042
+ }, Ti = ["data-item-key"], Pi = {
1043
1043
  key: 0,
1044
1044
  class: "vc-breadcrumbs__item-separator",
1045
1045
  "aria-hidden": "true"
1046
- }, ji = 36, Ui = 60, Di = /* @__PURE__ */ F({
1046
+ }, Ni = 36, ki = 60, ji = /* @__PURE__ */ F({
1047
1047
  __name: "vc-breadcrumbs",
1048
1048
  props: {
1049
1049
  items: { default: () => [] },
@@ -1052,14 +1052,14 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
1052
1052
  collapsed: { type: Boolean, default: !1 }
1053
1053
  },
1054
1054
  setup(n) {
1055
- const e = n, t = j(null), s = j(!1), r = ni({
1055
+ const e = n, t = j(null), s = j(!1), r = ii({
1056
1056
  containerRef: t,
1057
1057
  items: $r(e, "items"),
1058
1058
  getItemKey: (m) => m.id,
1059
- moreButtonWidth: ji,
1059
+ moreButtonWidth: Ni,
1060
1060
  calculationStrategy: "reverse",
1061
- initialItemWidth: Ui
1062
- }), i = g(() => e.collapsed ? [] : r.visibleItems.value), o = g(() => e.collapsed ? e.items : r.hiddenItems.value), u = g(() => o.value.length > 0), c = r.recalculate;
1061
+ initialItemWidth: ki
1062
+ }), i = y(() => e.collapsed ? [] : r.visibleItems.value), o = y(() => e.collapsed ? e.items : r.hiddenItems.value), u = y(() => o.value.length > 0), c = r.recalculate;
1063
1063
  function h() {
1064
1064
  s.value = !s.value;
1065
1065
  }
@@ -1068,7 +1068,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
1068
1068
  }
1069
1069
  return re(c), (m, d) => {
1070
1070
  const p = qe("VcButton");
1071
- return n.items && n.items.length ? (A(), U("nav", Pi, [
1071
+ return n.items && n.items.length ? (A(), U("nav", Oi, [
1072
1072
  $("ol", {
1073
1073
  ref_key: "contentRef",
1074
1074
  ref: t,
@@ -1076,7 +1076,7 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
1076
1076
  "vc-breadcrumbs__content--separated": n.separated
1077
1077
  }])
1078
1078
  }, [
1079
- u.value ? (A(), G(L(Ci), {
1079
+ u.value ? (A(), G(L(Ai), {
1080
1080
  key: 0,
1081
1081
  items: o.value,
1082
1082
  "model-value": s.value,
@@ -1087,12 +1087,12 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
1087
1087
  mainAxis: 10
1088
1088
  },
1089
1089
  onItemClick: a,
1090
- "onUpdate:modelValue": d[0] || (d[0] = (y) => s.value = y)
1090
+ "onUpdate:modelValue": d[0] || (d[0] = (b) => s.value = b)
1091
1091
  }, {
1092
- trigger: me(({ isActive: y }) => [
1092
+ trigger: me(({ isActive: b }) => [
1093
1093
  xe(m.$slots, "trigger", {
1094
1094
  click: h,
1095
- isActive: y
1095
+ isActive: b
1096
1096
  }, () => [
1097
1097
  V(p, {
1098
1098
  text: "",
@@ -1100,36 +1100,36 @@ const vi = ["title"], yi = ["title"], gi = /* @__PURE__ */ F({
1100
1100
  "icon-size": "xl",
1101
1101
  "data-more-button": "",
1102
1102
  class: q(["vc-breadcrumbs__expand-button", {
1103
- "vc-breadcrumbs__expand-button--active": y
1103
+ "vc-breadcrumbs__expand-button--active": b
1104
1104
  }]),
1105
1105
  onClick: h
1106
1106
  }, null, 8, ["class"])
1107
1107
  ])
1108
1108
  ]),
1109
- item: me(({ item: y, click: T }) => [
1110
- V(Ti, {
1111
- title: typeof y.title == "string" ? y.title : y.title?.value ?? "",
1112
- icon: y.icon,
1113
- onClick: T
1109
+ item: me(({ item: b, click: O }) => [
1110
+ V(Ei, {
1111
+ title: typeof b.title == "string" ? b.title : b.title?.value ?? "",
1112
+ icon: b.icon,
1113
+ onClick: O
1114
1114
  }, null, 8, ["title", "icon", "onClick"])
1115
1115
  ]),
1116
1116
  _: 3
1117
1117
  }, 8, ["items", "model-value"])) : W("", !0),
1118
- (A(!0), U(Xe, null, Rt(i.value, (y, T) => (A(), U(Xe, {
1119
- key: y?.id ?? `breadcrumb-item-${T}`
1118
+ (A(!0), U(Xe, null, Rt(i.value, (b, O) => (A(), U(Xe, {
1119
+ key: b?.id ?? `breadcrumb-item-${O}`
1120
1120
  }, [
1121
- y && y.title ? (A(), U("li", {
1121
+ b && b.title ? (A(), U("li", {
1122
1122
  key: 0,
1123
1123
  class: "vc-breadcrumbs__item-wrapper",
1124
- "data-item-key": y.id
1124
+ "data-item-key": b.id
1125
1125
  }, [
1126
- n.separated && T !== 0 ? (A(), U("span", ki, " / ")) : W("", !0),
1127
- V(gi, Ce({ class: "vc-breadcrumbs__item" }, { ref_for: !0 }, y, {
1128
- current: T === i.value.length - 1,
1129
- "aria-current": T === i.value.length - 1 ? "page" : void 0,
1126
+ n.separated && O !== 0 ? (A(), U("span", Pi, " / ")) : W("", !0),
1127
+ V(vi, Ce({ class: "vc-breadcrumbs__item" }, { ref_for: !0 }, b, {
1128
+ current: O === i.value.length - 1,
1129
+ "aria-current": O === i.value.length - 1 ? "page" : void 0,
1130
1130
  variant: n.variant
1131
1131
  }), null, 16, ["current", "aria-current", "variant"])
1132
- ], 8, Ni)) : W("", !0)
1132
+ ], 8, Ti)) : W("", !0)
1133
1133
  ], 64))), 128))
1134
1134
  ], 2)
1135
1135
  ])) : W("", !0);
@@ -1151,7 +1151,7 @@ class Q {
1151
1151
  return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
1152
1152
  }
1153
1153
  }
1154
- class Bi extends Q {
1154
+ class Ui extends Q {
1155
1155
  http;
1156
1156
  baseUrl;
1157
1157
  jsonParseReviver = void 0;
@@ -1256,7 +1256,7 @@ class Bi extends Q {
1256
1256
  }) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
1257
1257
  }
1258
1258
  }
1259
- class Dl extends Q {
1259
+ class Ul extends Q {
1260
1260
  http;
1261
1261
  baseUrl;
1262
1262
  jsonParseReviver = void 0;
@@ -1291,7 +1291,7 @@ class Dl extends Q {
1291
1291
  }) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
1292
1292
  }
1293
1293
  }
1294
- class Bl extends Q {
1294
+ class Dl extends Q {
1295
1295
  http;
1296
1296
  baseUrl;
1297
1297
  jsonParseReviver = void 0;
@@ -1344,7 +1344,7 @@ class Bl extends Q {
1344
1344
  }) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
1345
1345
  }
1346
1346
  }
1347
- class Rl extends Q {
1347
+ class Bl extends Q {
1348
1348
  http;
1349
1349
  baseUrl;
1350
1350
  jsonParseReviver = void 0;
@@ -1518,7 +1518,7 @@ class Rl extends Q {
1518
1518
  }) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
1519
1519
  }
1520
1520
  }
1521
- class Jl extends Q {
1521
+ class Rl extends Q {
1522
1522
  http;
1523
1523
  baseUrl;
1524
1524
  jsonParseReviver = void 0;
@@ -1575,7 +1575,7 @@ class Jl extends Q {
1575
1575
  }) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
1576
1576
  }
1577
1577
  }
1578
- class $l extends Q {
1578
+ class Jl extends Q {
1579
1579
  http;
1580
1580
  baseUrl;
1581
1581
  jsonParseReviver = void 0;
@@ -1853,7 +1853,7 @@ class $l extends Q {
1853
1853
  }) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
1854
1854
  }
1855
1855
  }
1856
- class zl extends Q {
1856
+ class $l extends Q {
1857
1857
  http;
1858
1858
  baseUrl;
1859
1859
  jsonParseReviver = void 0;
@@ -1884,7 +1884,7 @@ class zl extends Q {
1884
1884
  }) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
1885
1885
  }
1886
1886
  }
1887
- class Ll extends Q {
1887
+ class zl extends Q {
1888
1888
  http;
1889
1889
  baseUrl;
1890
1890
  jsonParseReviver = void 0;
@@ -1989,7 +1989,7 @@ class Ll extends Q {
1989
1989
  }) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
1990
1990
  }
1991
1991
  }
1992
- class Fl extends Q {
1992
+ class Ll extends Q {
1993
1993
  http;
1994
1994
  baseUrl;
1995
1995
  jsonParseReviver = void 0;
@@ -2241,7 +2241,7 @@ class Fl extends Q {
2241
2241
  }) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
2242
2242
  }
2243
2243
  }
2244
- class Ml extends Q {
2244
+ class Fl extends Q {
2245
2245
  http;
2246
2246
  baseUrl;
2247
2247
  jsonParseReviver = void 0;
@@ -2343,7 +2343,7 @@ class Ml extends Q {
2343
2343
  }) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
2344
2344
  }
2345
2345
  }
2346
- class Ri extends Q {
2346
+ class Di extends Q {
2347
2347
  http;
2348
2348
  baseUrl;
2349
2349
  jsonParseReviver = void 0;
@@ -2398,7 +2398,7 @@ class Ri extends Q {
2398
2398
  }) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
2399
2399
  }
2400
2400
  }
2401
- class Ji extends Q {
2401
+ class Bi extends Q {
2402
2402
  http;
2403
2403
  baseUrl;
2404
2404
  jsonParseReviver = void 0;
@@ -3417,7 +3417,7 @@ class Ji extends Q {
3417
3417
  }) : t === 401 ? e.text().then((r) => l("Unauthorized", t, r, s)) : t === 403 ? e.text().then((r) => l("Forbidden", t, r, s)) : t !== 200 && t !== 204 ? e.text().then((r) => l("An unexpected server error occurred.", t, r, s)) : Promise.resolve(null);
3418
3418
  }
3419
3419
  }
3420
- class Gl extends Q {
3420
+ class Ml extends Q {
3421
3421
  http;
3422
3422
  baseUrl;
3423
3423
  jsonParseReviver = void 0;
@@ -3659,7 +3659,7 @@ class Ft {
3659
3659
  return e = typeof e == "object" ? e : {}, e.loginProvider = this.loginProvider, e.providerKey = this.providerKey, e;
3660
3660
  }
3661
3661
  }
3662
- class Gr {
3662
+ class Wr {
3663
3663
  operationTypes;
3664
3664
  startDate;
3665
3665
  endDate;
@@ -3702,7 +3702,7 @@ class Gr {
3702
3702
  }
3703
3703
  static fromJS(e) {
3704
3704
  e = typeof e == "object" ? e : {};
3705
- let t = new Gr();
3705
+ let t = new Wr();
3706
3706
  return t.init(e), t;
3707
3707
  }
3708
3708
  toJSON(e) {
@@ -3773,7 +3773,7 @@ class Gt {
3773
3773
  return e = typeof e == "object" ? e : {}, e.userName = this.userName, e.oldPassword = this.oldPassword, e.newPassword = this.newPassword, e;
3774
3774
  }
3775
3775
  }
3776
- class Wr {
3776
+ class qr {
3777
3777
  entityNames;
3778
3778
  modifiedSince;
3779
3779
  constructor(e) {
@@ -3792,7 +3792,7 @@ class Wr {
3792
3792
  }
3793
3793
  static fromJS(e) {
3794
3794
  e = typeof e == "object" ? e : {};
3795
- let t = new Wr();
3795
+ let t = new qr();
3796
3796
  return t.init(e), t;
3797
3797
  }
3798
3798
  toJSON(e) {
@@ -3923,7 +3923,7 @@ class Qe {
3923
3923
  return e.label = this.label, e.name = this.name, e.nameClaimType = this.nameClaimType, e.roleClaimType = this.roleClaimType, e;
3924
3924
  }
3925
3925
  }
3926
- class qr {
3926
+ class Kr {
3927
3927
  token;
3928
3928
  constructor(e) {
3929
3929
  if (e)
@@ -3935,7 +3935,7 @@ class qr {
3935
3935
  }
3936
3936
  static fromJS(e) {
3937
3937
  e = typeof e == "object" ? e : {};
3938
- let t = new qr();
3938
+ let t = new Kr();
3939
3939
  return t.init(e), t;
3940
3940
  }
3941
3941
  toJSON(e) {
@@ -4121,7 +4121,7 @@ class Vt {
4121
4121
  return e = typeof e == "object" ? e : {}, e.locale = this.locale, e.name = this.name, e;
4122
4122
  }
4123
4123
  }
4124
- class Kr {
4124
+ class Hr {
4125
4125
  propertyId;
4126
4126
  responseGroup;
4127
4127
  objectType;
@@ -4158,7 +4158,7 @@ class Kr {
4158
4158
  }
4159
4159
  static fromJS(e) {
4160
4160
  e = typeof e == "object" ? e : {};
4161
- let t = new Kr();
4161
+ let t = new Hr();
4162
4162
  return t.init(e), t;
4163
4163
  }
4164
4164
  toJSON(e) {
@@ -4250,7 +4250,7 @@ class Yt {
4250
4250
  return e = typeof e == "object" ? e : {}, e.objectType = this.objectType, e.objectId = this.objectId, e.locale = this.locale, e.value = this.value, e.valueId = this.valueId, e.valueType = this.valueType, e.propertyId = this.propertyId, e.propertyName = this.propertyName, e;
4251
4251
  }
4252
4252
  }
4253
- class Hr {
4253
+ class Vr {
4254
4254
  typeName;
4255
4255
  responseGroup;
4256
4256
  objectType;
@@ -4287,7 +4287,7 @@ class Hr {
4287
4287
  }
4288
4288
  static fromJS(e) {
4289
4289
  e = typeof e == "object" ? e : {};
4290
- let t = new Hr();
4290
+ let t = new Vr();
4291
4291
  return t.init(e), t;
4292
4292
  }
4293
4293
  toJSON(e) {
@@ -4333,7 +4333,7 @@ class Xt {
4333
4333
  return e;
4334
4334
  }
4335
4335
  }
4336
- var $i = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.Html = "Html", n.Image = "Image", n))($i || {}), zi = /* @__PURE__ */ ((n) => (n.Detached = "Detached", n.Unchanged = "Unchanged", n.Added = "Added", n.Deleted = "Deleted", n.Modified = "Modified", n))(zi || {});
4336
+ var Ri = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.Html = "Html", n.Image = "Image", n))(Ri || {}), Ji = /* @__PURE__ */ ((n) => (n.Detached = "Detached", n.Unchanged = "Unchanged", n.Added = "Added", n.Deleted = "Deleted", n.Modified = "Modified", n))(Ji || {});
4337
4337
  class Qt {
4338
4338
  authenticationType;
4339
4339
  displayName;
@@ -4442,7 +4442,7 @@ class et {
4442
4442
  return e = typeof e == "object" ? e : {}, e.valueKind = this.valueKind, e;
4443
4443
  }
4444
4444
  }
4445
- var Li = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.Object = "Object", n.Array = "Array", n.String = "String", n.Number = "Number", n.True = "True", n.False = "False", n.Null = "Null", n))(Li || {});
4445
+ var $i = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.Object = "Object", n.Array = "Array", n.String = "String", n.Number = "Number", n.True = "True", n.False = "False", n.Null = "Null", n))($i || {});
4446
4446
  class tr {
4447
4447
  key;
4448
4448
  value;
@@ -4817,7 +4817,7 @@ class rt {
4817
4817
  return e.errorCount = this.errorCount, e.serverId = this.serverId, e.creator = this.creator, e.created = this.created ? this.created.toISOString() : void 0, e.isNew = this.isNew, e.notifyType = this.notifyType, e.description = this.description, e.title = this.title, e.repeatCount = this.repeatCount, e.id = this.id, e;
4818
4818
  }
4819
4819
  }
4820
- class Vr {
4820
+ class Zr {
4821
4821
  responseGroup;
4822
4822
  objectType;
4823
4823
  objectTypes;
@@ -4853,7 +4853,7 @@ class Vr {
4853
4853
  }
4854
4854
  static fromJS(e) {
4855
4855
  e = typeof e == "object" ? e : {};
4856
- let t = new Vr();
4856
+ let t = new Zr();
4857
4857
  return t.init(e), t;
4858
4858
  }
4859
4859
  toJSON(e) {
@@ -5172,7 +5172,7 @@ class mt {
5172
5172
  return e = typeof e == "object" ? e : {}, e.message = this.message, e.level = this.level, e;
5173
5173
  }
5174
5174
  }
5175
- var Fi = /* @__PURE__ */ ((n) => (n.Info = "Info", n.Warning = "Warning", n.Debug = "Debug", n.Error = "Error", n))(Fi || {});
5175
+ var zi = /* @__PURE__ */ ((n) => (n.Info = "Info", n.Warning = "Warning", n.Debug = "Debug", n.Error = "Error", n))(zi || {});
5176
5176
  class Re {
5177
5177
  serverId;
5178
5178
  creator;
@@ -5295,7 +5295,7 @@ class nt {
5295
5295
  return e;
5296
5296
  }
5297
5297
  }
5298
- class Zr {
5298
+ class Yr {
5299
5299
  token;
5300
5300
  newPassword;
5301
5301
  forcePasswordChangeOnNextSignIn;
@@ -5309,7 +5309,7 @@ class Zr {
5309
5309
  }
5310
5310
  static fromJS(e) {
5311
5311
  e = typeof e == "object" ? e : {};
5312
- let t = new Zr();
5312
+ let t = new Yr();
5313
5313
  return t.init(e), t;
5314
5314
  }
5315
5315
  toJSON(e) {
@@ -5350,7 +5350,7 @@ class Oe {
5350
5350
  return e.id = this.id, e.name = this.name, e.normalizedName = this.normalizedName, e.concurrencyStamp = this.concurrencyStamp, e;
5351
5351
  }
5352
5352
  }
5353
- class Yr {
5353
+ class Xr {
5354
5354
  responseGroup;
5355
5355
  objectType;
5356
5356
  objectTypes;
@@ -5386,7 +5386,7 @@ class Yr {
5386
5386
  }
5387
5387
  static fromJS(e) {
5388
5388
  e = typeof e == "object" ? e : {};
5389
- let t = new Yr();
5389
+ let t = new Xr();
5390
5390
  return t.init(e), t;
5391
5391
  }
5392
5392
  toJSON(e) {
@@ -5492,7 +5492,7 @@ class dr {
5492
5492
  return e = typeof e == "object" ? e : {}, e.major = this.major, e.minor = this.minor, e.patch = this.patch, e.prerelease = this.prerelease, e;
5493
5493
  }
5494
5494
  }
5495
- var Mi = /* @__PURE__ */ ((n) => (n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.SecureString = "SecureString", n.Json = "Json", n.PositiveInteger = "PositiveInteger", n))(Mi || {});
5495
+ var Li = /* @__PURE__ */ ((n) => (n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.SecureString = "SecureString", n.Json = "Json", n.PositiveInteger = "PositiveInteger", n))(Li || {});
5496
5496
  class pr {
5497
5497
  succeeded;
5498
5498
  isLockedOut;
@@ -5515,7 +5515,7 @@ class pr {
5515
5515
  return e = typeof e == "object" ? e : {}, e.succeeded = this.succeeded, e.isLockedOut = this.isLockedOut, e.isNotAllowed = this.isNotAllowed, e.requiresTwoFactor = this.requiresTwoFactor, e;
5516
5516
  }
5517
5517
  }
5518
- var Gi = /* @__PURE__ */ ((n) => (n.Ascending = "Ascending", n.Descending = "Descending", n))(Gi || {});
5518
+ var Fi = /* @__PURE__ */ ((n) => (n.Ascending = "Ascending", n.Descending = "Descending", n))(Fi || {});
5519
5519
  class le {
5520
5520
  sortColumn;
5521
5521
  sortDirection;
@@ -5536,7 +5536,7 @@ class le {
5536
5536
  return e = typeof e == "object" ? e : {}, e.sortColumn = this.sortColumn, e.sortDirection = this.sortDirection, e;
5537
5537
  }
5538
5538
  }
5539
- class Xr {
5539
+ class Qr {
5540
5540
  userId;
5541
5541
  roleId;
5542
5542
  constructor(e) {
@@ -5549,7 +5549,7 @@ class Xr {
5549
5549
  }
5550
5550
  static fromJS(e) {
5551
5551
  e = typeof e == "object" ? e : {};
5552
- let t = new Xr();
5552
+ let t = new Qr();
5553
5553
  return t.init(e), t;
5554
5554
  }
5555
5555
  toJSON(e) {
@@ -5674,7 +5674,7 @@ class ot {
5674
5674
  return e = typeof e == "object" ? e : {}, e.locked = this.locked, e;
5675
5675
  }
5676
5676
  }
5677
- class Qr {
5677
+ class _r {
5678
5678
  memberId;
5679
5679
  memberIds;
5680
5680
  modifiedSinceDate;
@@ -5724,7 +5724,7 @@ class Qr {
5724
5724
  }
5725
5725
  static fromJS(e) {
5726
5726
  e = typeof e == "object" ? e : {};
5727
- let t = new Qr();
5727
+ let t = new _r();
5728
5728
  return t.init(e), t;
5729
5729
  }
5730
5730
  toJSON(e) {
@@ -5789,7 +5789,7 @@ class yr {
5789
5789
  return e;
5790
5790
  }
5791
5791
  }
5792
- class _r {
5792
+ class es {
5793
5793
  token;
5794
5794
  constructor(e) {
5795
5795
  if (e)
@@ -5801,14 +5801,14 @@ class _r {
5801
5801
  }
5802
5802
  static fromJS(e) {
5803
5803
  e = typeof e == "object" ? e : {};
5804
- let t = new _r();
5804
+ let t = new es();
5805
5805
  return t.init(e), t;
5806
5806
  }
5807
5807
  toJSON(e) {
5808
5808
  return e = typeof e == "object" ? e : {}, e.token = this.token, e;
5809
5809
  }
5810
5810
  }
5811
- class es {
5811
+ class ts {
5812
5812
  tokenProvider;
5813
5813
  purpose;
5814
5814
  token;
@@ -5822,14 +5822,14 @@ class es {
5822
5822
  }
5823
5823
  static fromJS(e) {
5824
5824
  e = typeof e == "object" ? e : {};
5825
- let t = new es();
5825
+ let t = new ts();
5826
5826
  return t.init(e), t;
5827
5827
  }
5828
5828
  toJSON(e) {
5829
5829
  return e = typeof e == "object" ? e : {}, e.tokenProvider = this.tokenProvider, e.purpose = this.purpose, e.token = this.token, e;
5830
5830
  }
5831
5831
  }
5832
- class ts {
5832
+ class rs {
5833
5833
  grant_type;
5834
5834
  scope;
5835
5835
  username;
@@ -5850,7 +5850,7 @@ class ts {
5850
5850
  }
5851
5851
  static fromJS(e) {
5852
5852
  e = typeof e == "object" ? e : {};
5853
- let t = new ts();
5853
+ let t = new rs();
5854
5854
  return t.init(e), t;
5855
5855
  }
5856
5856
  toJSON(e) {
@@ -5860,8 +5860,8 @@ class ts {
5860
5860
  return e.grant_type = this.grant_type, e.scope = this.scope, e.username = this.username, e.password = this.password, e.storeId = this.storeId, e.user_id = this.user_id, e;
5861
5861
  }
5862
5862
  }
5863
- var Wi = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.Html = "Html", n.Image = "Image", n))(Wi || {}), qi = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.Html = "Html", n.Image = "Image", n))(qi || {}), Ki = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.Html = "Html", n.Image = "Image", n))(Ki || {}), Hi = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.Object = "Object", n.Array = "Array", n.String = "String", n.Number = "Number", n.True = "True", n.False = "False", n.Null = "Null", n))(Hi || {}), Vi = /* @__PURE__ */ ((n) => (n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.SecureString = "SecureString", n.Json = "Json", n.PositiveInteger = "PositiveInteger", n))(Vi || {}), Zi = /* @__PURE__ */ ((n) => (n.Detached = "Detached", n.Unchanged = "Unchanged", n.Added = "Added", n.Deleted = "Deleted", n.Modified = "Modified", n))(Zi || {}), Yi = /* @__PURE__ */ ((n) => (n.Info = "Info", n.Warning = "Warning", n.Debug = "Debug", n.Error = "Error", n))(Yi || {}), Xi = /* @__PURE__ */ ((n) => (n.Ascending = "Ascending", n.Descending = "Descending", n))(Xi || {});
5864
- class Qi extends Error {
5863
+ var Mi = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.Html = "Html", n.Image = "Image", n))(Mi || {}), Gi = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.Html = "Html", n.Image = "Image", n))(Gi || {}), Wi = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.Html = "Html", n.Image = "Image", n))(Wi || {}), qi = /* @__PURE__ */ ((n) => (n.Undefined = "Undefined", n.Object = "Object", n.Array = "Array", n.String = "String", n.Number = "Number", n.True = "True", n.False = "False", n.Null = "Null", n))(qi || {}), Ki = /* @__PURE__ */ ((n) => (n.ShortText = "ShortText", n.LongText = "LongText", n.Integer = "Integer", n.Decimal = "Decimal", n.DateTime = "DateTime", n.Boolean = "Boolean", n.SecureString = "SecureString", n.Json = "Json", n.PositiveInteger = "PositiveInteger", n))(Ki || {}), Hi = /* @__PURE__ */ ((n) => (n.Detached = "Detached", n.Unchanged = "Unchanged", n.Added = "Added", n.Deleted = "Deleted", n.Modified = "Modified", n))(Hi || {}), Vi = /* @__PURE__ */ ((n) => (n.Info = "Info", n.Warning = "Warning", n.Debug = "Debug", n.Error = "Error", n))(Vi || {}), Zi = /* @__PURE__ */ ((n) => (n.Ascending = "Ascending", n.Descending = "Descending", n))(Zi || {});
5864
+ class Yi extends Error {
5865
5865
  message;
5866
5866
  status;
5867
5867
  response;
@@ -5876,11 +5876,11 @@ class Qi extends Error {
5876
5876
  }
5877
5877
  }
5878
5878
  function l(n, e, t, s, r) {
5879
- throw r ?? new Qi(n, e, t, s, null);
5879
+ throw r ?? new Yi(n, e, t, s, null);
5880
5880
  }
5881
- const bt = R("use-external-provider"), _i = "externalSignIn", en = () => {
5882
- const n = new Bi(), e = Es(
5883
- _i,
5881
+ const bt = R("use-external-provider"), Xi = "externalSignIn", Qi = () => {
5882
+ const n = new Ui(), e = Cs(
5883
+ Xi,
5884
5884
  {},
5885
5885
  {
5886
5886
  listenToStorageChanges: !0,
@@ -5926,7 +5926,7 @@ const bt = R("use-external-provider"), _i = "externalSignIn", en = () => {
5926
5926
  getProviders: i
5927
5927
  };
5928
5928
  }, gr = "vc_auth_data", z = R("use-user"), ae = j();
5929
- function tn() {
5929
+ function _i() {
5930
5930
  try {
5931
5931
  const n = localStorage.getItem(gr);
5932
5932
  if (n)
@@ -5943,7 +5943,7 @@ function Er(n) {
5943
5943
  z.error("Failed to store auth data:", e);
5944
5944
  }
5945
5945
  }
5946
- function rn() {
5946
+ function en() {
5947
5947
  try {
5948
5948
  localStorage.removeItem(gr);
5949
5949
  } catch (n) {
@@ -5979,12 +5979,12 @@ async function Or(n) {
5979
5979
  return z.error("fetchToken - Exception:", e), null;
5980
5980
  }
5981
5981
  }
5982
- function rs() {
5983
- const n = j(!1), e = j(null), { storage: t, signOut: s } = en(), r = new Ji(), i = g(() => ae.value?.userName != null);
5984
- async function o(b, N) {
5982
+ function ss() {
5983
+ const n = j(!1), e = j(null), { storage: t, signOut: s } = Qi(), r = new Bi(), i = y(() => ae.value?.userName != null);
5984
+ async function o(g, N) {
5985
5985
  let C = !1;
5986
5986
  try {
5987
- n.value = !0, C = await r.validatePasswordResetToken(b, {
5987
+ n.value = !0, C = await r.validatePasswordResetToken(g, {
5988
5988
  token: N
5989
5989
  });
5990
5990
  } catch {
@@ -5993,50 +5993,50 @@ function rs() {
5993
5993
  }
5994
5994
  return C;
5995
5995
  }
5996
- async function u(b) {
5997
- return r.validatePassword(b);
5996
+ async function u(g) {
5997
+ return r.validatePassword(g);
5998
5998
  }
5999
- async function c(b, N, C) {
6000
- return r.resetPasswordByToken(b, {
5999
+ async function c(g, N, C) {
6000
+ return r.resetPasswordByToken(g, {
6001
6001
  newPassword: N,
6002
6002
  token: C
6003
6003
  });
6004
6004
  }
6005
- async function h(b, N) {
6005
+ async function h(g, N) {
6006
6006
  z.debug("signIn - Entry point");
6007
6007
  try {
6008
6008
  n.value = !0;
6009
- const C = await r.login(new lr({ userName: b, password: N }));
6009
+ const C = await r.login(new lr({ userName: g, password: N }));
6010
6010
  if (z.debug("signIn - Cookie login completed:", C), !C.succeeded)
6011
6011
  return C;
6012
6012
  z.debug("signIn - Requesting token...");
6013
- const O = await Or({
6013
+ const E = await Or({
6014
6014
  grant_type: "password",
6015
- username: b,
6015
+ username: g,
6016
6016
  password: N,
6017
6017
  scope: "offline_access"
6018
6018
  });
6019
- O && (e.value = O, Er(e.value), z.debug("signIn - Token saved:", e.value));
6019
+ E && (e.value = E, Er(e.value), z.debug("signIn - Token saved:", e.value));
6020
6020
  const P = await r.getCurrentUser();
6021
6021
  if (P)
6022
6022
  return ae.value = P, C;
6023
6023
  throw { succeeded: !1 };
6024
6024
  } catch (C) {
6025
6025
  z.error("signIn failed:", C);
6026
- let O = C.message;
6026
+ let E = C.message;
6027
6027
  if (C.response)
6028
6028
  try {
6029
6029
  const P = JSON.parse(C.response);
6030
- O = P.errorDescription || P.errors?.[0]?.description || P.error || O;
6030
+ E = P.errorDescription || P.errors?.[0]?.description || P.error || E;
6031
6031
  } catch {
6032
6032
  }
6033
- return { succeeded: !1, error: O, status: C.status };
6033
+ return { succeeded: !1, error: E, status: C.status };
6034
6034
  } finally {
6035
6035
  n.value = !1;
6036
6036
  }
6037
6037
  }
6038
6038
  async function a() {
6039
- z.debug("signOut - Entry point"), ae.value = void 0, rn(), e.value = null, t.value?.providerType ? await s(t.value.providerType) : r.logout();
6039
+ z.debug("signOut - Entry point"), ae.value = void 0, en(), e.value = null, t.value?.providerType ? await s(t.value.providerType) : r.logout();
6040
6040
  }
6041
6041
  let m = null;
6042
6042
  async function d() {
@@ -6044,81 +6044,81 @@ function rs() {
6044
6044
  z.debug("loadUser - Entry point");
6045
6045
  try {
6046
6046
  n.value = !0, performance.mark("vc:auth-start");
6047
- const [b] = await Promise.all([
6047
+ const [g] = await Promise.all([
6048
6048
  r.getCurrentUser(),
6049
- S()
6049
+ x()
6050
6050
  ]);
6051
- ae.value = b, performance.mark("vc:auth-done"), z.debug("User details loaded:", ae.value);
6052
- } catch (b) {
6053
- z.error("loadUser failed:", b);
6051
+ ae.value = g, performance.mark("vc:auth-done"), z.debug("User details loaded:", ae.value);
6052
+ } catch (g) {
6053
+ z.error("loadUser failed:", g);
6054
6054
  } finally {
6055
6055
  n.value = !1, m = null;
6056
6056
  }
6057
6057
  return { ...ae.value };
6058
6058
  })(), m);
6059
6059
  }
6060
- async function p(b) {
6060
+ async function p(g) {
6061
6061
  try {
6062
- return n.value = !0, await r.requestPasswordReset(b), { succeeded: !0 };
6062
+ return n.value = !0, await r.requestPasswordReset(g), { succeeded: !0 };
6063
6063
  } catch (N) {
6064
6064
  return { succeeded: !1, error: N };
6065
6065
  } finally {
6066
6066
  n.value = !1;
6067
6067
  }
6068
6068
  }
6069
- async function y(b, N) {
6069
+ async function b(g, N) {
6070
6070
  let C;
6071
6071
  try {
6072
6072
  n.value = !0;
6073
- const O = new Gt({
6074
- oldPassword: b,
6073
+ const E = new Gt({
6074
+ oldPassword: g,
6075
6075
  newPassword: N
6076
6076
  });
6077
- C = await r.changeCurrentUserPassword(O);
6078
- } catch (O) {
6079
- return { succeeded: !1, errors: [O.message] };
6077
+ C = await r.changeCurrentUserPassword(E);
6078
+ } catch (E) {
6079
+ return { succeeded: !1, errors: [E.message] };
6080
6080
  } finally {
6081
6081
  n.value = !1;
6082
6082
  }
6083
6083
  return C;
6084
6084
  }
6085
- async function T() {
6086
- let b = null;
6085
+ async function O() {
6086
+ let g = null;
6087
6087
  try {
6088
- b = await r.getLoginTypes();
6088
+ g = await r.getLoginTypes();
6089
6089
  } catch (N) {
6090
6090
  throw z.error("getLoginType failed:", N), N;
6091
6091
  }
6092
- return b;
6092
+ return g;
6093
6093
  }
6094
- const E = 60 * 1e3;
6095
- async function S() {
6096
- if (z.debug("getAccessToken - Entry point"), e.value || (e.value = tn()), !e.value)
6094
+ const T = 60 * 1e3;
6095
+ async function x() {
6096
+ if (z.debug("getAccessToken - Entry point"), e.value || (e.value = _i()), !e.value)
6097
6097
  return z.debug("getAccessToken - No auth data available"), null;
6098
- const b = Date.now(), N = e.value.expires_at, C = N ? b >= N - E : !1;
6098
+ const g = Date.now(), N = e.value.expires_at, C = N ? g >= N - T : !1;
6099
6099
  if (z.debug("getAccessToken - Token status:", {
6100
6100
  hasToken: !!e.value.access_token,
6101
6101
  expiresAt: N ? new Date(N).toISOString() : "not set",
6102
- now: new Date(b).toISOString(),
6102
+ now: new Date(g).toISOString(),
6103
6103
  shouldRefresh: C,
6104
6104
  hasRefreshToken: !!e.value.refresh_token
6105
6105
  }), C && e.value.refresh_token) {
6106
6106
  z.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
6107
- const O = await Or({
6107
+ const E = await Or({
6108
6108
  grant_type: "refresh_token",
6109
6109
  refresh_token: e.value.refresh_token,
6110
6110
  scope: "offline_access"
6111
6111
  });
6112
- O ? (O.refresh_token = O.refresh_token ?? e.value.refresh_token, e.value = O, Er(e.value), z.debug("getAccessToken - Token refreshed successfully, new expiry:", {
6113
- expiresAt: O.expires_at ? new Date(O.expires_at).toISOString() : "not set"
6112
+ E ? (E.refresh_token = E.refresh_token ?? e.value.refresh_token, e.value = E, Er(e.value), z.debug("getAccessToken - Token refreshed successfully, new expiry:", {
6113
+ expiresAt: E.expires_at ? new Date(E.expires_at).toISOString() : "not set"
6114
6114
  })) : z.warn("getAccessToken - Failed to refresh token, returning existing token");
6115
6115
  }
6116
6116
  return e.value?.access_token ?? e.value?.token ?? null;
6117
6117
  }
6118
6118
  return {
6119
- user: g(() => ae.value),
6120
- loading: g(() => n.value),
6121
- isAdministrator: g(() => ae.value?.isAdministrator),
6119
+ user: y(() => ae.value),
6120
+ loading: y(() => n.value),
6121
+ isAdministrator: y(() => ae.value?.isAdministrator),
6122
6122
  isAuthenticated: i,
6123
6123
  loadUser: d,
6124
6124
  signIn: h,
@@ -6127,13 +6127,13 @@ function rs() {
6127
6127
  validatePassword: u,
6128
6128
  resetPasswordByToken: c,
6129
6129
  requestPasswordReset: p,
6130
- changeUserPassword: y,
6131
- getLoginType: T,
6132
- getAccessToken: S
6130
+ changeUserPassword: b,
6131
+ getLoginType: O,
6132
+ getAccessToken: x
6133
6133
  };
6134
6134
  }
6135
- const sn = Lr(() => {
6136
- const n = rs();
6135
+ const tn = Lr(() => {
6136
+ const n = ss();
6137
6137
  return {
6138
6138
  user: n.user,
6139
6139
  loading: n.loading,
@@ -6143,14 +6143,14 @@ const sn = Lr(() => {
6143
6143
  signOut: n.signOut,
6144
6144
  getAccessToken: n.getAccessToken
6145
6145
  };
6146
- }), nn = {
6146
+ }), rn = {
6147
6147
  info: 5e3,
6148
6148
  warning: 8e3,
6149
6149
  error: !1,
6150
6150
  // persistent
6151
6151
  critical: !1
6152
6152
  // persistent
6153
- }, on = ["IndexProgressPushNotification"], ln = Symbol("NotificationContainerState"), un = R("notification-instance"), te = {
6153
+ }, sn = ["IndexProgressPushNotification"], nn = Symbol("NotificationContainerState"), on = R("notification-instance"), te = {
6154
6154
  "top-center": void 0,
6155
6155
  "top-right": void 0,
6156
6156
  "top-left": void 0,
@@ -6158,7 +6158,7 @@ const sn = Lr(() => {
6158
6158
  "bottom-right": void 0,
6159
6159
  "bottom-left": void 0
6160
6160
  };
6161
- function cn() {
6161
+ function ln() {
6162
6162
  function n(r, i, o) {
6163
6163
  document.getElementById(i) && (te[o] = r);
6164
6164
  }
@@ -6169,7 +6169,7 @@ function cn() {
6169
6169
  te[u]?.unmount(), document.getElementById(`notification-${u}`)?.remove(), te[u] = void 0;
6170
6170
  }), Object.values(te).some((o) => o !== void 0) || document.querySelector(".notification")?.remove());
6171
6171
  } catch (i) {
6172
- un.error("Failed to unmount notification component:", i);
6172
+ on.error("Failed to unmount notification component:", i);
6173
6173
  }
6174
6174
  }
6175
6175
  function t() {
@@ -6194,8 +6194,8 @@ const Se = R("notification-container"), Y = {
6194
6194
  "bottom-center": j([]),
6195
6195
  "bottom-right": j([]),
6196
6196
  "bottom-left": j([])
6197
- }, { clearContainer: an, unmountComponent: hn, saveInstance: fn, getInstanceByPosition: Tr } = cn();
6198
- function dn() {
6197
+ }, { clearContainer: un, unmountComponent: cn, saveInstance: an, getInstanceByPosition: Tr } = ln();
6198
+ function hn() {
6199
6199
  const n = ms({
6200
6200
  timeout: 3e3,
6201
6201
  pauseOnHover: !0,
@@ -6218,12 +6218,12 @@ function dn() {
6218
6218
  async function i(c) {
6219
6219
  const h = c.position || n.position;
6220
6220
  if (!Tr(h)) {
6221
- const m = r(h), { default: d } = await import("./index-nypcvCTu.js"), p = vs(d, {
6221
+ const m = r(h), { default: d } = await import("./index-DO3YFNu1.js"), p = vs(d, {
6222
6222
  ...c,
6223
6223
  position: h
6224
6224
  // Pass the position to the component
6225
6225
  });
6226
- p.provide(ln, { notificationContainers: Y, actions: u }), p.mount(m), fn(p, m.id, h);
6226
+ p.provide(nn, { notificationContainers: Y, actions: u }), p.mount(m), an(p, m.id, h);
6227
6227
  }
6228
6228
  re(() => {
6229
6229
  c.updateId ? u.update(c) : u.add(c);
@@ -6243,15 +6243,15 @@ function dn() {
6243
6243
  if (c) {
6244
6244
  let h, a;
6245
6245
  Object.entries(Y).forEach(([m, d]) => {
6246
- const p = d.value.find((y) => y.notificationId === c);
6246
+ const p = d.value.find((b) => b.notificationId === c);
6247
6247
  p && (h = p, a = m);
6248
- }), a && (Y[a].value = Y[a].value.filter((m) => m.notificationId !== c), Y[a].value.length === 0 && hn(a), re(() => {
6248
+ }), a && (Y[a].value = Y[a].value.filter((m) => m.notificationId !== c), Y[a].value.length === 0 && cn(a), re(() => {
6249
6249
  h?.onClose && typeof h?.onClose == "function" && h.onClose(h.payload);
6250
6250
  }));
6251
6251
  }
6252
6252
  },
6253
6253
  clear() {
6254
- an(), Object.values(Y).forEach((c) => {
6254
+ un(), Object.values(Y).forEach((c) => {
6255
6255
  c.value = [];
6256
6256
  });
6257
6257
  },
@@ -6268,12 +6268,12 @@ function dn() {
6268
6268
  if (c.updateId) {
6269
6269
  let h, a, m;
6270
6270
  if (Object.entries(Y).forEach(([d, p]) => {
6271
- const y = p.value.find((T) => T.notificationId === c.notificationId);
6272
- y && (h = y, a = p, m = d);
6271
+ const b = p.value.find((O) => O.notificationId === c.notificationId);
6272
+ b && (h = b, a = p, m = d);
6273
6273
  }), h && a) {
6274
6274
  if (Se.debug(`Updating notification ${c.notificationId} in position ${m}`), c.position && c.position !== m) {
6275
6275
  a.value = a.value.filter(
6276
- (y) => y.notificationId !== c.notificationId
6276
+ (b) => b.notificationId !== c.notificationId
6277
6277
  );
6278
6278
  const d = {
6279
6279
  ...h,
@@ -6283,8 +6283,8 @@ function dn() {
6283
6283
  } else
6284
6284
  Se.debug("Standard update of notification properties"), Object.keys(c).forEach((d) => {
6285
6285
  if (d !== "updateId" && d !== "notificationId") {
6286
- const p = d, y = c[p];
6287
- h && y !== void 0 && (h[p] = y);
6286
+ const p = d, b = c[p];
6287
+ h && b !== void 0 && (h[p] = b);
6288
6288
  }
6289
6289
  });
6290
6290
  return !0;
@@ -6305,19 +6305,19 @@ function dn() {
6305
6305
  getNotificationsByPosition: t,
6306
6306
  appendInstance: i,
6307
6307
  getNotification: s,
6308
- generateNotificationId: Ks,
6308
+ generateNotificationId: qs,
6309
6309
  hasNotification: o
6310
6310
  };
6311
6311
  }
6312
6312
  const Ue = R("notification"), {
6313
6313
  defaultOptions: Ee,
6314
6314
  actions: de,
6315
- getNotification: pn,
6315
+ getNotification: fn,
6316
6316
  getAllNotifications: Et,
6317
- appendInstance: mn,
6317
+ appendInstance: dn,
6318
6318
  generateNotificationId: Ot,
6319
- hasNotification: vn
6320
- } = dn();
6319
+ hasNotification: pn
6320
+ } = hn();
6321
6321
  function $e(n, e) {
6322
6322
  return e = Ce(
6323
6323
  Ee,
@@ -6325,7 +6325,7 @@ function $e(n, e) {
6325
6325
  ), (!e.notificationId || typeof e.notificationId != "string" && typeof e.notificationId != "number") && (e.notificationId = Ot()), e = {
6326
6326
  ...e,
6327
6327
  content: n
6328
- }, mn(e), e.notificationId;
6328
+ }, dn(e), e.notificationId;
6329
6329
  }
6330
6330
  const Z = (n, e) => $e(n, { ...e, type: "default" });
6331
6331
  Z.error = (n, e) => $e(n, { ...e, type: "error" });
@@ -6338,9 +6338,9 @@ Z.remove = (n) => {
6338
6338
  n ? de.dismiss(n) : de.clear();
6339
6339
  };
6340
6340
  Z.update = (n, e) => {
6341
- if (!vn(n))
6341
+ if (!pn(n))
6342
6342
  return Ue.warn(`Cannot update: notification with ID ${n} not found`), n;
6343
- const t = pn(String(n));
6343
+ const t = fn(String(n));
6344
6344
  if (t)
6345
6345
  if (e.position && e.position !== t.position) {
6346
6346
  const s = {
@@ -6397,14 +6397,14 @@ Z.debug = () => {
6397
6397
  defaultOptions: Ee
6398
6398
  };
6399
6399
  };
6400
- const yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6400
+ const mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6401
6401
  __proto__: null,
6402
6402
  notification: Z
6403
6403
  }, Symbol.toStringTag, { value: "Module" }));
6404
- function gn(n, e) {
6404
+ function vn(n, e) {
6405
6405
  return n.severity ? typeof n.severity == "function" ? n.severity(e) : n.severity : "info";
6406
6406
  }
6407
- function bn(n, e) {
6407
+ function yn(n, e) {
6408
6408
  const t = n.notifyType ?? "unknown";
6409
6409
  if (e.groupBy) {
6410
6410
  const s = n[e.groupBy] ?? "default";
@@ -6412,119 +6412,113 @@ function bn(n, e) {
6412
6412
  }
6413
6413
  return `${t}::${n.id}`;
6414
6414
  }
6415
- const wn = (n) => !!n.finished;
6416
- function Sn() {
6415
+ const gn = (n) => !!n.finished;
6416
+ function bn() {
6417
6417
  const n = /* @__PURE__ */ new Map();
6418
- function e(r, i, o) {
6418
+ function e(r, i) {
6419
6419
  if (!i.toast || i.toast.mode === "silent") return;
6420
- const u = gn(i.toast, r);
6421
- i.toast.mode === "auto" ? t(r, u, i, o) : i.toast.mode === "progress" && s(r, u, i, o);
6420
+ const o = vn(i.toast, r);
6421
+ i.toast.mode === "auto" ? t(r, o, i) : i.toast.mode === "progress" && s(r, o, i);
6422
6422
  }
6423
- function t(r, i, o, u) {
6424
- const c = o.toast && typeof o.toast != "boolean" && o.toast.timeout != null ? o.toast.timeout : nn[i];
6423
+ function t(r, i, o) {
6424
+ const u = o.toast && typeof o.toast != "boolean" && o.toast.timeout != null ? o.toast.timeout : rn[i];
6425
6425
  Z(r.title ?? "", {
6426
- timeout: c,
6427
- type: i === "critical" ? "error" : i === "info" ? "default" : i,
6428
- onClose() {
6429
- u?.(r);
6430
- }
6426
+ timeout: u,
6427
+ type: i === "critical" ? "error" : i === "info" ? "default" : i
6431
6428
  });
6432
6429
  }
6433
- function s(r, i, o, u) {
6434
- const c = o.toast, h = bn(r, o);
6435
- if ((c.isComplete ?? wn)(r)) {
6436
- const d = n.get(h);
6437
- if (d) {
6438
- const p = c.completedType?.(r) ?? "success";
6439
- Z.update(d.toastId, {
6440
- type: p,
6430
+ function s(r, i, o) {
6431
+ const u = o.toast, c = yn(r, o);
6432
+ if ((u.isComplete ?? gn)(r)) {
6433
+ const m = n.get(c);
6434
+ if (m) {
6435
+ const d = u.completedType?.(r) ?? "success";
6436
+ Z.update(m.toastId, {
6437
+ type: d,
6441
6438
  timeout: 5e3,
6442
- content: r.title ?? "",
6443
- onClose() {
6444
- u?.(r);
6445
- }
6446
- }), n.delete(h);
6439
+ content: r.title ?? ""
6440
+ }), n.delete(c);
6447
6441
  }
6448
6442
  return;
6449
6443
  }
6450
- const m = n.get(h);
6451
- if (m)
6452
- Z.update(m.toastId, {
6444
+ const a = n.get(c);
6445
+ if (a)
6446
+ Z.update(a.toastId, {
6453
6447
  content: r.title ?? ""
6454
6448
  });
6455
6449
  else {
6456
- const d = Z(r.title ?? "", {
6450
+ const m = Z(r.title ?? "", {
6457
6451
  timeout: !1,
6458
6452
  type: i === "critical" ? "error" : i === "info" ? "default" : i
6459
6453
  });
6460
- d != null && n.set(h, { toastId: d });
6454
+ m != null && n.set(c, { toastId: m });
6461
6455
  }
6462
6456
  }
6463
6457
  return { handle: e };
6464
6458
  }
6465
6459
  const Pr = R("notification-store");
6466
- function xn(n) {
6460
+ function wn(n) {
6467
6461
  const e = /* @__PURE__ */ new Map(), t = j([]), s = j([]), r = /* @__PURE__ */ new Map();
6468
6462
  let i = 0;
6469
- const o = Sn().handle, u = new Ri(), c = g(() => t.value.filter((S) => S.isNew).length), h = g(() => c.value > 0);
6470
- function a(S, b) {
6471
- e.set(S, b);
6463
+ const o = bn().handle, u = new Di(), c = y(() => t.value.filter((x) => x.isNew).length), h = y(() => c.value > 0);
6464
+ function a(x, g) {
6465
+ e.set(x, g);
6472
6466
  }
6473
- function m(S) {
6474
- if (S.notifyType && on.includes(S.notifyType))
6467
+ function m(x) {
6468
+ if (x.notifyType && sn.includes(x.notifyType))
6475
6469
  return;
6476
- let b = S.isNew;
6477
- const N = t.value.findIndex((P) => P.id === S.id);
6470
+ let g = x.isNew;
6471
+ const N = t.value.findIndex((P) => P.id === x.id);
6478
6472
  if (N !== -1) {
6479
6473
  const P = t.value[N];
6480
- b = P.isNew, Object.assign(P, S), P.isNew = b;
6474
+ g = P.isNew, Object.assign(P, x), P.isNew = g;
6481
6475
  } else
6482
- t.value.push(new Re(S));
6483
- const C = s.value.findIndex((P) => P.id === S.id);
6476
+ t.value.push(new Re(x));
6477
+ const C = s.value.findIndex((P) => P.id === x.id);
6484
6478
  if (C !== -1) {
6485
6479
  const P = s.value[C];
6486
- Object.assign(P, S), P.isNew = b;
6480
+ Object.assign(P, x), P.isNew = g;
6487
6481
  } else
6488
- s.value.push(new Re(S));
6489
- const O = S.notifyType ? e.get(S.notifyType) : void 0;
6490
- if (O && b && o(S, O, d), b && S.notifyType)
6482
+ s.value.push(new Re(x));
6483
+ const E = x.notifyType ? e.get(x.notifyType) : void 0;
6484
+ if (E && g && o(x, E), g && x.notifyType)
6491
6485
  for (const P of r.values())
6492
- P.types.includes(S.notifyType) && (P.filter && !P.filter(S) || P.handler?.(S));
6486
+ P.types.includes(x.notifyType) && (P.filter && !P.filter(x) || P.handler?.(x));
6493
6487
  }
6494
- function d(S) {
6495
- const b = t.value.find((C) => C.id === S.id);
6496
- b && (b.isNew = !1);
6497
- const N = s.value.find((C) => C.id === S.id);
6488
+ function d(x) {
6489
+ const g = t.value.find((C) => C.id === x.id);
6490
+ g && (g.isNew = !1);
6491
+ const N = s.value.find((C) => C.id === x.id);
6498
6492
  N && (N.isNew = !1);
6499
6493
  }
6500
6494
  async function p() {
6501
- t.value.forEach((S) => {
6502
- S.isNew = !1;
6503
- }), s.value.forEach((S) => {
6504
- S.isNew = !1;
6495
+ t.value.forEach((x) => {
6496
+ x.isNew = !1;
6497
+ }), s.value.forEach((x) => {
6498
+ x.isNew = !1;
6505
6499
  });
6506
6500
  try {
6507
6501
  await u.markAllAsRead();
6508
- } catch (S) {
6509
- Pr.error("markAllAsRead failed:", S);
6502
+ } catch (x) {
6503
+ Pr.error("markAllAsRead failed:", x);
6510
6504
  }
6511
6505
  }
6512
- async function y(S = 10) {
6506
+ async function b(x = 10) {
6513
6507
  try {
6514
- const b = new hr({ take: S }), N = await u.searchPushNotification(b);
6508
+ const g = new hr({ take: x }), N = await u.searchPushNotification(g);
6515
6509
  t.value = N.notifyEvents ?? [];
6516
- } catch (b) {
6517
- throw Pr.error("loadHistory failed:", b), b;
6510
+ } catch (g) {
6511
+ throw Pr.error("loadHistory failed:", g), g;
6518
6512
  }
6519
6513
  }
6520
- function T(S) {
6521
- const b = ++i;
6522
- return r.set(b, { id: b, ...S }), () => {
6523
- r.delete(b);
6514
+ function O(x) {
6515
+ const g = ++i;
6516
+ return r.set(g, { id: g, ...x }), () => {
6517
+ r.delete(g);
6524
6518
  };
6525
6519
  }
6526
- function E(S) {
6527
- return t.value.filter((b) => b.notifyType === S);
6520
+ function T(x) {
6521
+ return t.value.filter((g) => g.notifyType === x);
6528
6522
  }
6529
6523
  return {
6530
6524
  // State
@@ -6539,36 +6533,36 @@ function xn(n) {
6539
6533
  ingest: m,
6540
6534
  markAsRead: d,
6541
6535
  markAllAsRead: p,
6542
- loadHistory: y,
6543
- subscribe: T,
6544
- getByType: E
6536
+ loadHistory: b,
6537
+ subscribe: O,
6538
+ getByType: T
6545
6539
  };
6546
6540
  }
6547
6541
  let Fe = null;
6548
- function An() {
6542
+ function Sn() {
6549
6543
  if (ut()) {
6550
- const n = M(ci, null);
6544
+ const n = M(ui, null);
6551
6545
  if (n)
6552
6546
  return Fe = n, n;
6553
6547
  }
6554
- return Fe || (Fe = xn()), Fe;
6548
+ return Fe || (Fe = wn()), Fe;
6555
6549
  }
6556
6550
  const He = /* @__PURE__ */ new WeakMap();
6557
- function Wl(n, e, t) {
6551
+ function Gl(n, e, t) {
6558
6552
  He.set(n, { timerId: e, notifId: t });
6559
6553
  }
6560
- function In(n) {
6554
+ function xn(n) {
6561
6555
  if (n && typeof n == "object") {
6562
6556
  const e = He.get(n), t = "originalError" in n && n.originalError && typeof n.originalError == "object" ? n.originalError : void 0, s = e ?? (t ? He.get(t) : void 0), r = e ? n : t;
6563
6557
  if (s && r)
6564
- return clearTimeout(s.timerId), Promise.resolve().then(() => yn).then(({ notification: i }) => {
6558
+ return clearTimeout(s.timerId), Promise.resolve().then(() => mn).then(({ notification: i }) => {
6565
6559
  i.remove(s.notifId);
6566
6560
  }), He.delete(r), !0;
6567
6561
  }
6568
6562
  return !1;
6569
6563
  }
6570
6564
  const vt = Lr(() => {
6571
- const n = rs();
6565
+ const n = ss();
6572
6566
  return {
6573
6567
  user: n.user,
6574
6568
  loading: n.loading,
@@ -6585,7 +6579,7 @@ const vt = Lr(() => {
6585
6579
  signOut: n.signOut
6586
6580
  };
6587
6581
  }), wt = j([]);
6588
- function Cn() {
6582
+ function An() {
6589
6583
  const { user: n } = vt();
6590
6584
  n.value && (wt.value = n.value?.permissions ?? []);
6591
6585
  function e(t) {
@@ -6601,15 +6595,15 @@ function Cn() {
6601
6595
  hasAccess: e
6602
6596
  };
6603
6597
  }
6604
- const En = Symbol("AppInsightsOptions"), On = Symbol("AppInsightsInstance");
6605
- function Tn() {
6606
- const n = M(On, null), { user: e } = vt(), t = M(En, void 0);
6598
+ const In = Symbol("AppInsightsOptions"), Cn = Symbol("AppInsightsInstance");
6599
+ function En() {
6600
+ const n = M(Cn, null), { user: e } = vt(), t = M(In, void 0);
6607
6601
  function s() {
6608
6602
  const r = t?.appName ? `[${t.appName}] ` : "", i = (c) => `${r}${c.name}`;
6609
6603
  function o(c) {
6610
6604
  if (!n) return;
6611
6605
  const h = i(c);
6612
- n.context.telemetryTrace.traceID = Ds(), n.context.telemetryTrace.name = c.name, n.startTrackPage(h);
6606
+ n.context.telemetryTrace.traceID = Us(), n.context.telemetryTrace.name = c.name, n.startTrackPage(h);
6613
6607
  }
6614
6608
  function u(c) {
6615
6609
  if (!n) return;
@@ -6629,9 +6623,9 @@ function Tn() {
6629
6623
  appInsights: n
6630
6624
  };
6631
6625
  }
6632
- const Pn = R("use-error-handler");
6633
- function Nn(n) {
6634
- const e = j(null), t = ut(), { appInsights: s } = Tn(), { user: r } = vt(), i = j(!1);
6626
+ const On = R("use-error-handler");
6627
+ function Tn(n) {
6628
+ const e = j(null), t = ut(), { appInsights: s } = En(), { user: r } = vt(), i = j(!1);
6635
6629
  function o() {
6636
6630
  e.value = null, t && t.emit("reset");
6637
6631
  }
@@ -6646,7 +6640,7 @@ function Nn(n) {
6646
6640
  userId: r.value?.id ?? "",
6647
6641
  userName: r.value?.userName ?? ""
6648
6642
  }
6649
- }), Pn.error("Captured Error:", c.originalError), t && t.emit("error", c), re(() => {
6643
+ }), On.error("Captured Error:", c.originalError), t && t.emit("error", c), re(() => {
6650
6644
  i.value = !1;
6651
6645
  }), !n;
6652
6646
  }), {
@@ -6654,15 +6648,15 @@ function Nn(n) {
6654
6648
  reset: o
6655
6649
  };
6656
6650
  }
6657
- function kn(n) {
6651
+ function Pn(n) {
6658
6652
  const e = R(`${n.name}-bus`), t = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set();
6659
6653
  function r(d) {
6660
6654
  const p = n.getKey(d);
6661
- t.set(p, d), s.size > 0 && a((y) => {
6655
+ t.set(p, d), s.size > 0 && a((b) => {
6662
6656
  try {
6663
- n.registerIntoService(y, d);
6664
- } catch (T) {
6665
- e.warn(`Failed to live-register item (key=${p}):`, T);
6657
+ n.registerIntoService(b, d);
6658
+ } catch (O) {
6659
+ e.warn(`Failed to live-register item (key=${p}):`, O);
6666
6660
  }
6667
6661
  });
6668
6662
  }
@@ -6670,24 +6664,24 @@ function kn(n) {
6670
6664
  t.delete(d), n.unregisterFromService && s.size > 0 && s.forEach((p) => {
6671
6665
  try {
6672
6666
  n.unregisterFromService(p, d);
6673
- } catch (y) {
6674
- e.warn(`Failed to live-unregister item (id=${d}):`, y);
6667
+ } catch (b) {
6668
+ e.warn(`Failed to live-unregister item (id=${d}):`, b);
6675
6669
  }
6676
6670
  });
6677
6671
  }
6678
6672
  function o(d) {
6679
- for (const [p, y] of t)
6680
- d(y) && t.delete(p);
6673
+ for (const [p, b] of t)
6674
+ d(b) && t.delete(p);
6681
6675
  }
6682
6676
  function u() {
6683
6677
  return Array.from(t.values());
6684
6678
  }
6685
6679
  function c(d) {
6686
- s.add(d), t.forEach((p, y) => {
6680
+ s.add(d), t.forEach((p, b) => {
6687
6681
  try {
6688
6682
  n.registerIntoService(d, p);
6689
- } catch (T) {
6690
- e.warn(`Failed to replay item (key=${y}):`, T);
6683
+ } catch (O) {
6684
+ e.warn(`Failed to replay item (key=${b}):`, O);
6691
6685
  }
6692
6686
  });
6693
6687
  }
@@ -6717,39 +6711,39 @@ function kn(n) {
6717
6711
  function lt(n) {
6718
6712
  return n.id !== void 0 ? `id:${String(n.id)}` : n.routeId ? `route:${n.routeId}` : n.url ? `url:${n.url}` : n.groupConfig?.id ? `gc:${n.groupConfig.id}:${n.title}` : n.group ? `g:${n.group}:${n.title}` : `hash:${JSON.stringify(zr(n, "title"))}`;
6719
6713
  }
6720
- const ze = j(/* @__PURE__ */ new Map()), ve = kn({
6714
+ const ze = j(/* @__PURE__ */ new Map()), ve = Pn({
6721
6715
  name: "menu-service",
6722
6716
  getKey: lt,
6723
6717
  registerIntoService: (n, e) => n.addMenuItem(e)
6724
6718
  });
6725
- function ql(n) {
6719
+ function Wl(n) {
6726
6720
  ve.preregister(n);
6727
6721
  }
6728
- function Kl(n) {
6722
+ function ql(n) {
6729
6723
  ve.removePreregistered((e) => br(e, n)), ve.broadcast((e) => e.removeMenuItem(n));
6730
6724
  }
6731
- function Hl(n, e) {
6725
+ function Kl(n, e) {
6732
6726
  ze.value.set(n, e), ve.broadcast((t) => {
6733
6727
  t.menuBadges.value.set(n, e);
6734
6728
  });
6735
6729
  }
6736
- function Vl(n) {
6730
+ function Hl(n) {
6737
6731
  const e = ve.getFirstInstance();
6738
6732
  return e ? e.menuBadges.value.get(n) : ze.value.get(n);
6739
6733
  }
6740
- function Zl(n) {
6734
+ function Vl(n) {
6741
6735
  ze.value.delete(n), ve.broadcast((e) => {
6742
6736
  e.menuBadges.value.delete(n);
6743
6737
  });
6744
6738
  }
6745
- function Yl() {
6739
+ function Zl() {
6746
6740
  return ve.getFirstInstance()?.menuBadges ?? ze;
6747
6741
  }
6748
- const Tt = 1 / 0, jn = 1 / 0;
6742
+ const Tt = 1 / 0, Nn = 1 / 0;
6749
6743
  function br(n, e) {
6750
6744
  return lt(n) === lt(e);
6751
6745
  }
6752
- function Un(n) {
6746
+ function kn(n) {
6753
6747
  return n.groupConfig ? {
6754
6748
  groupId: n.groupConfig.id,
6755
6749
  groupTitle: n.groupConfig.title || n.groupConfig.id,
@@ -6757,22 +6751,22 @@ function Un(n) {
6757
6751
  groupPriority: n.groupConfig.priority,
6758
6752
  groupPermissions: n.groupConfig.permissions
6759
6753
  } : {
6760
- groupId: "group_" + Is(n.group),
6754
+ groupId: "group_" + As(n.group),
6761
6755
  groupTitle: n.group,
6762
6756
  groupIcon: n.groupIcon,
6763
6757
  groupPriority: n.priority,
6764
6758
  groupPermissions: void 0
6765
6759
  };
6766
6760
  }
6767
- function Dn(n, e) {
6761
+ function jn(n, e) {
6768
6762
  return (n.priority ?? Tt) - (e.priority ?? Tt);
6769
6763
  }
6770
- function Bn(n, e) {
6771
- const t = (s) => s.inGroupPriority ?? s.priority ?? jn;
6764
+ function Un(n, e) {
6765
+ const t = (s) => s.inGroupPriority ?? s.priority ?? Nn;
6772
6766
  return t(n) - t(e);
6773
6767
  }
6774
- function Rn(n, e) {
6775
- const t = Un(n), s = {
6768
+ function Dn(n, e) {
6769
+ const t = kn(n), s = {
6776
6770
  ...zr(n, ["group", "groupIcon", "groupPriority", "groupConfig"])
6777
6771
  }, r = e.get(t.groupId);
6778
6772
  if (r) {
@@ -6798,18 +6792,18 @@ function Rn(n, e) {
6798
6792
  function Nr(n) {
6799
6793
  const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
6800
6794
  for (const s of n)
6801
- s.group || s.groupConfig ? Rn(s, e) : s.title && t.set(lt(s), { ...s });
6802
- return Jn([...e.values(), ...t.values()]);
6795
+ s.group || s.groupConfig ? Dn(s, e) : s.title && t.set(lt(s), { ...s });
6796
+ return Bn([...e.values(), ...t.values()]);
6803
6797
  }
6804
- function Jn(n) {
6798
+ function Bn(n) {
6805
6799
  return n.map(
6806
6800
  (e) => ({
6807
6801
  ...e,
6808
- children: e.children ? [...e.children].sort(Bn) : void 0
6802
+ children: e.children ? [...e.children].sort(Un) : void 0
6809
6803
  })
6810
- ).sort(Dn);
6804
+ ).sort(jn);
6811
6805
  }
6812
- function Xl() {
6806
+ function Yl() {
6813
6807
  const n = j([]);
6814
6808
  let e = [];
6815
6809
  const t = j(new Map(ze.value));
@@ -6828,14 +6822,14 @@ function Xl() {
6828
6822
  };
6829
6823
  return ve.replayInto(i), i;
6830
6824
  }
6831
- const be = Ns({
6825
+ const be = Ps({
6832
6826
  legacy: !1,
6833
6827
  globalInjection: !0,
6834
6828
  locale: "en",
6835
6829
  fallbackLocale: "en",
6836
6830
  formatFallbackMessages: !0
6837
- }), $n = R("use-breadcrumbs");
6838
- function zn() {
6831
+ }), Rn = R("use-breadcrumbs");
6832
+ function Jn() {
6839
6833
  const n = Jt([]);
6840
6834
  function e(r) {
6841
6835
  const i = n.value.findIndex((o) => o.id === r);
@@ -6848,7 +6842,7 @@ function zn() {
6848
6842
  try {
6849
6843
  await r.clickHandler(u) !== !1 && e(u);
6850
6844
  } catch (c) {
6851
- $n.error("Breadcrumb click handler failed:", c);
6845
+ Rn.error("Breadcrumb click handler failed:", c);
6852
6846
  }
6853
6847
  } : void 0
6854
6848
  }, o = n.value.findIndex((u) => u.id === i.id);
@@ -6862,16 +6856,16 @@ function zn() {
6862
6856
  n.value = n.value.filter((i) => !r.includes(i.id));
6863
6857
  }
6864
6858
  return {
6865
- breadcrumbs: g(() => n.value),
6859
+ breadcrumbs: y(() => n.value),
6866
6860
  push: t,
6867
6861
  remove: s
6868
6862
  };
6869
6863
  }
6870
- const ke = R("blade-registry"), Ln = Symbol("BladeRegistry");
6864
+ const ke = R("blade-registry"), $n = Symbol("BladeRegistry");
6871
6865
  function kr(n) {
6872
6866
  return !(!n || typeof n != "function" && typeof n != "object");
6873
6867
  }
6874
- function Ql(n) {
6868
+ function Xl(n) {
6875
6869
  const e = Jt(/* @__PURE__ */ new Map()), t = /* @__PURE__ */ new Map();
6876
6870
  function s(a) {
6877
6871
  return a.startsWith("/") ? a : `/${a}`;
@@ -6891,8 +6885,8 @@ function Ql(n) {
6891
6885
  );
6892
6886
  ke.warn(`Blade '${a}' is already registered. Overwriting (allowOverwrite=true).`);
6893
6887
  }
6894
- const y = n.component(a);
6895
- (!y || y !== m.component) && (y && y !== m.component && (ke.warn(
6888
+ const b = n.component(a);
6889
+ (!b || b !== m.component) && (b && b !== m.component && (ke.warn(
6896
6890
  `Global component '${a}' already exists and is different. Overwriting with new blade component.`
6897
6891
  ), ke.warn(
6898
6892
  `Global component '${a}' already exists and is different. Overwriting with new blade component.`
@@ -6926,7 +6920,7 @@ function Ql(n) {
6926
6920
  }
6927
6921
  return {
6928
6922
  ...{
6929
- registeredBladesMap: g(
6923
+ registeredBladesMap: y(
6930
6924
  () => e.value
6931
6925
  ),
6932
6926
  getBlade: i,
@@ -6936,15 +6930,15 @@ function Ql(n) {
6936
6930
  _registerBladeFn: r
6937
6931
  };
6938
6932
  }
6939
- function ss() {
6940
- const n = M(Ln);
6933
+ function is() {
6934
+ const n = M($n);
6941
6935
  if (!n)
6942
6936
  throw new Error(
6943
6937
  "useBladeRegistry must be used after createBladeRegistry is called and provided with BladeRegistryKey."
6944
6938
  );
6945
6939
  return n;
6946
6940
  }
6947
- const Fn = F({
6941
+ const zn = F({
6948
6942
  name: "ErrorInterceptor",
6949
6943
  props: {
6950
6944
  capture: {
@@ -6961,17 +6955,17 @@ const Fn = F({
6961
6955
  }
6962
6956
  },
6963
6957
  setup(n, { slots: e }) {
6964
- const t = M(zt, void 0), s = M($t, void 0), r = !!(t && s), { error: i, reset: o } = Nn(r || n.capture);
6958
+ const t = M(zt, void 0), s = M($t, void 0), r = !!(t && s), { error: i, reset: o } = Tn(r || n.capture);
6965
6959
  return r && X(i, (u) => {
6966
6960
  const c = t.value.id;
6967
- u ? (In(u), s.setBladeError(c, u)) : s.clearBladeError(c);
6961
+ u ? (xn(u), s.setBladeError(c, u)) : s.clearBladeError(c);
6968
6962
  }), () => e.default?.({
6969
6963
  error: i.value,
6970
6964
  reset: o
6971
6965
  });
6972
6966
  }
6973
- }), Mn = Fn;
6974
- function Gn(n) {
6967
+ }), Ln = zn;
6968
+ function Fn(n) {
6975
6969
  const e = /* @__PURE__ */ new Map();
6976
6970
  function t(i, o) {
6977
6971
  e.set(i, o);
@@ -7000,7 +6994,7 @@ function Gn(n) {
7000
6994
  cleanup: r
7001
6995
  };
7002
6996
  }
7003
- function is() {
6997
+ function ns() {
7004
6998
  const n = M(Mr);
7005
6999
  if (!n)
7006
7000
  throw new Error(
@@ -7008,12 +7002,146 @@ function is() {
7008
7002
  );
7009
7003
  return n;
7010
7004
  }
7011
- let Wn = 0;
7005
+ const os = /* @__PURE__ */ F({
7006
+ __name: "vc-blade-slot",
7007
+ props: {
7008
+ descriptor: {},
7009
+ closable: { type: Boolean },
7010
+ expanded: { type: Boolean },
7011
+ visible: { type: Boolean },
7012
+ breadcrumbs: {},
7013
+ backButton: {}
7014
+ },
7015
+ emits: ["close", "parentCall"],
7016
+ setup(n, { emit: e }) {
7017
+ const t = n, s = e, r = is(), i = j(!1), o = j(), u = y(() => r.getBladeComponent(t.descriptor.name));
7018
+ Ke(
7019
+ zt,
7020
+ y(() => t.descriptor)
7021
+ ), Ke(
7022
+ oi,
7023
+ y(() => ({
7024
+ id: t.descriptor.id,
7025
+ param: t.descriptor.param,
7026
+ options: t.descriptor.options,
7027
+ expandable: t.closable,
7028
+ // expandable when there are multiple blades
7029
+ maximized: i.value,
7030
+ error: t.descriptor.error ?? null,
7031
+ navigation: void 0,
7032
+ // No longer VNode-based
7033
+ breadcrumbs: t.breadcrumbs,
7034
+ title: t.descriptor.title
7035
+ }))
7036
+ ), Ke(
7037
+ li,
7038
+ y(() => t.backButton)
7039
+ );
7040
+ const c = ns();
7041
+ X(
7042
+ o,
7043
+ (p) => {
7044
+ if (!p) return;
7045
+ const b = {};
7046
+ for (const O of Object.keys(p))
7047
+ typeof p[O] == "function" && (b[O] = p[O]);
7048
+ Object.keys(b).length > 0 && c.exposeToChildren(t.descriptor.id, b);
7049
+ },
7050
+ { flush: "post" }
7051
+ ), Ut(() => {
7052
+ c.cleanup(t.descriptor.id);
7053
+ });
7054
+ function h() {
7055
+ s("close", t.descriptor.id);
7056
+ }
7057
+ function a(p) {
7058
+ s("parentCall", p, t.descriptor.id);
7059
+ }
7060
+ function m() {
7061
+ i.value = !0;
7062
+ }
7063
+ function d() {
7064
+ i.value = !1;
7065
+ }
7066
+ return (p, b) => (A(), G(L(Ln), { capture: !0 }, {
7067
+ default: me(({ error: O, reset: T }) => [
7068
+ u.value ? Bt((A(), G(Ye(u.value), {
7069
+ key: 0,
7070
+ ref_key: "bladeInstanceRef",
7071
+ ref: o,
7072
+ param: n.descriptor.param,
7073
+ options: n.descriptor.options,
7074
+ closable: n.closable,
7075
+ expanded: n.expanded,
7076
+ "onClose:blade": h,
7077
+ "onParent:call": a,
7078
+ "onExpand:blade": m,
7079
+ "onCollapse:blade": d,
7080
+ onVnodeUnmounted: T
7081
+ }, null, 40, ["param", "options", "closable", "expanded", "onVnodeUnmounted"])), [
7082
+ [gs, n.visible]
7083
+ ]) : W("", !0)
7084
+ ]),
7085
+ _: 1
7086
+ }));
7087
+ }
7088
+ }), Mn = /* @__PURE__ */ F({
7089
+ __name: "vc-mobile-back-button",
7090
+ props: {
7091
+ breadcrumbs: {},
7092
+ onBack: { type: Function }
7093
+ },
7094
+ setup(n) {
7095
+ const e = n, t = j(), s = j(!1), r = () => {
7096
+ e.onBack();
7097
+ };
7098
+ Es(
7099
+ t,
7100
+ () => {
7101
+ s.value = !0;
7102
+ },
7103
+ { delay: 500 }
7104
+ );
7105
+ const i = () => {
7106
+ s.value = !1;
7107
+ };
7108
+ return (o, u) => Bt((A(), G(ji, {
7109
+ items: n.breadcrumbs,
7110
+ collapsed: ""
7111
+ }, {
7112
+ trigger: me(({ click: c }) => [
7113
+ V(L(Ds), {
7114
+ as: "button",
7115
+ onTrigger: c
7116
+ }, {
7117
+ default: me(() => [
7118
+ V(L(si), {
7119
+ ref_key: "buttonRef",
7120
+ ref: t,
7121
+ icon: "lucide-arrow-left",
7122
+ "icon-class": "tw-text-neutrals-500",
7123
+ "icon-size": "l",
7124
+ text: "",
7125
+ onClick: r,
7126
+ onContextmenu: u[0] || (u[0] = It(() => {
7127
+ }, ["prevent"]))
7128
+ }, null, 512)
7129
+ ]),
7130
+ _: 1
7131
+ }, 8, ["onTrigger"])
7132
+ ]),
7133
+ _: 1
7134
+ }, 8, ["items"])), [
7135
+ [L(Fr), i]
7136
+ ]);
7137
+ }
7138
+ });
7139
+ let Gn = 0;
7012
7140
  function Me() {
7013
- return `blade_${++Wn}_${Math.random().toString(36).slice(2, 8)}`;
7141
+ return `blade_${++Gn}_${Math.random().toString(36).slice(2, 8)}`;
7014
7142
  }
7015
- function qn(n, e) {
7016
- const t = j([]), s = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = g(() => t.value[0]), u = g(() => t.value), c = g(() => {
7143
+ function Wn(n, e) {
7144
+ const t = j([]), s = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = y(() => t.value[0]), u = y(() => t.value), c = y(() => {
7017
7145
  for (let f = t.value.length - 1; f >= 0; f--)
7018
7146
  if (t.value[f].visible) return t.value[f];
7019
7147
  });
@@ -7058,7 +7186,7 @@ function qn(n, e) {
7058
7186
  };
7059
7187
  t.value = [I], f.onOpen && r.set(I.id, f.onOpen), f.onClose && i.set(I.id, f.onClose), f.onOpen?.();
7060
7188
  }
7061
- async function y(f) {
7189
+ async function b(f) {
7062
7190
  if (!n.getBlade(f.name))
7063
7191
  throw new Error(`[BladeStack] Blade '${f.name}' not found in registry`);
7064
7192
  const v = f.parentId ?? c.value?.id ?? o.value?.id;
@@ -7083,7 +7211,7 @@ function qn(n, e) {
7083
7211
  };
7084
7212
  t.value = [...t.value.slice(0, w + 1), D], f.onOpen && r.set(D.id, f.onOpen), f.onClose && i.set(D.id, f.onClose), f.onOpen?.();
7085
7213
  }
7086
- async function T(f) {
7214
+ async function O(f) {
7087
7215
  const v = t.value.findIndex((J) => J.id === f);
7088
7216
  if (v === -1 || v === 0) return !1;
7089
7217
  const w = t.value.slice(v);
@@ -7096,7 +7224,7 @@ function qn(n, e) {
7096
7224
  }
7097
7225
  return !1;
7098
7226
  }
7099
- async function E(f) {
7227
+ async function T(f) {
7100
7228
  const v = c.value;
7101
7229
  if (!v)
7102
7230
  throw new Error("[BladeStack] No active blade to replace");
@@ -7124,7 +7252,7 @@ function qn(n, e) {
7124
7252
  const J = [...t.value.slice(0, w), D, ...t.value.slice(w + 1)];
7125
7253
  t.value = J, f.onOpen && r.set(D.id, f.onOpen), f.onClose && i.set(D.id, f.onClose), f.onOpen?.();
7126
7254
  }
7127
- async function S(f) {
7255
+ async function x(f) {
7128
7256
  const v = c.value;
7129
7257
  if (!v)
7130
7258
  throw new Error("[BladeStack] No active blade to cover");
@@ -7150,7 +7278,7 @@ function qn(n, e) {
7150
7278
  }, J = t.value.slice(0, w);
7151
7279
  J.push({ ...v, visible: !1 }), J.push(D), t.value = J, f.onOpen && r.set(D.id, f.onOpen), f.onClose && i.set(D.id, f.onClose), f.onOpen?.();
7152
7280
  }
7153
- async function b(f) {
7281
+ async function g(f) {
7154
7282
  const v = t.value.findIndex((D) => D.id === f);
7155
7283
  if (v === -1) return;
7156
7284
  const w = t.value.slice(v + 1);
@@ -7162,7 +7290,7 @@ function qn(n, e) {
7162
7290
  function C(f) {
7163
7291
  s.delete(f);
7164
7292
  }
7165
- function O(f, v) {
7293
+ function E(f, v) {
7166
7294
  const w = t.value.findIndex((D) => D.id === f);
7167
7295
  if (w === -1) return;
7168
7296
  const I = [...t.value];
@@ -7174,7 +7302,7 @@ function qn(n, e) {
7174
7302
  const w = [...t.value];
7175
7303
  w[v] = { ...w[v], error: void 0 }, t.value = w;
7176
7304
  }
7177
- function x(f, v) {
7305
+ function S(f, v) {
7178
7306
  const w = t.value.findIndex((D) => D.id === f);
7179
7307
  if (w === -1 || t.value[w].title === v) return;
7180
7308
  const I = [...t.value];
@@ -7190,162 +7318,25 @@ function qn(n, e) {
7190
7318
  blades: u,
7191
7319
  activeBlade: c,
7192
7320
  openWorkspace: p,
7193
- openBlade: y,
7194
- closeBlade: T,
7195
- closeChildren: b,
7196
- replaceCurrentBlade: E,
7197
- coverCurrentBlade: S,
7321
+ openBlade: b,
7322
+ closeBlade: O,
7323
+ closeChildren: g,
7324
+ replaceCurrentBlade: T,
7325
+ coverCurrentBlade: x,
7198
7326
  registerBeforeClose: N,
7199
7327
  unregisterBeforeClose: C,
7200
- setBladeError: O,
7328
+ setBladeError: E,
7201
7329
  clearBladeError: P,
7202
- setBladeTitle: x,
7330
+ setBladeTitle: S,
7203
7331
  _restoreStack: k
7204
7332
  };
7205
7333
  }
7206
- function ns() {
7334
+ function qn() {
7207
7335
  const n = M($t);
7208
7336
  if (!n)
7209
7337
  throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
7210
7338
  return n;
7211
7339
  }
7212
- const os = /* @__PURE__ */ F({
7213
- __name: "vc-blade-slot",
7214
- props: {
7215
- descriptor: {},
7216
- closable: { type: Boolean },
7217
- expanded: { type: Boolean },
7218
- visible: { type: Boolean },
7219
- breadcrumbs: {},
7220
- backButton: {}
7221
- },
7222
- emits: ["close", "parentCall"],
7223
- setup(n, { emit: e }) {
7224
- const t = n, s = e, r = ss(), i = ns(), o = j(!1), u = j(), c = g(() => r.getBladeComponent(t.descriptor.name));
7225
- Ke(
7226
- zt,
7227
- g(() => t.descriptor)
7228
- ), Ke(
7229
- li,
7230
- g(() => ({
7231
- id: t.descriptor.id,
7232
- param: t.descriptor.param,
7233
- options: t.descriptor.options,
7234
- expandable: t.closable,
7235
- // expandable when there are multiple blades
7236
- maximized: o.value,
7237
- error: t.descriptor.error ?? null,
7238
- navigation: void 0,
7239
- // No longer VNode-based
7240
- breadcrumbs: t.breadcrumbs,
7241
- title: u.value?.title
7242
- }))
7243
- ), Ke(
7244
- ui,
7245
- g(() => t.backButton)
7246
- );
7247
- const h = is();
7248
- X(
7249
- u,
7250
- (y) => {
7251
- if (!y) return;
7252
- const T = {};
7253
- for (const E of Object.keys(y))
7254
- typeof y[E] == "function" && (T[E] = y[E]);
7255
- Object.keys(T).length > 0 && h.exposeToChildren(t.descriptor.id, T);
7256
- },
7257
- { flush: "post" }
7258
- ), Ut(() => {
7259
- h.cleanup(t.descriptor.id);
7260
- }), gs(() => {
7261
- const y = u.value?.title;
7262
- y !== void 0 && i.setBladeTitle(t.descriptor.id, y);
7263
- });
7264
- function a() {
7265
- s("close", t.descriptor.id);
7266
- }
7267
- function m(y) {
7268
- s("parentCall", y, t.descriptor.id);
7269
- }
7270
- function d() {
7271
- o.value = !0;
7272
- }
7273
- function p() {
7274
- o.value = !1;
7275
- }
7276
- return (y, T) => (A(), G(L(Mn), { capture: !0 }, {
7277
- default: me(({ error: E, reset: S }) => [
7278
- c.value ? Bt((A(), G(Ye(c.value), {
7279
- key: 0,
7280
- ref_key: "bladeInstanceRef",
7281
- ref: u,
7282
- param: n.descriptor.param,
7283
- options: n.descriptor.options,
7284
- closable: n.closable,
7285
- expanded: n.expanded,
7286
- "onClose:blade": a,
7287
- "onParent:call": m,
7288
- "onExpand:blade": d,
7289
- "onCollapse:blade": p,
7290
- onVnodeUnmounted: S
7291
- }, null, 40, ["param", "options", "closable", "expanded", "onVnodeUnmounted"])), [
7292
- [bs, n.visible]
7293
- ]) : W("", !0)
7294
- ]),
7295
- _: 1
7296
- }));
7297
- }
7298
- }), Kn = /* @__PURE__ */ F({
7299
- __name: "vc-mobile-back-button",
7300
- props: {
7301
- breadcrumbs: {},
7302
- onBack: { type: Function }
7303
- },
7304
- setup(n) {
7305
- const e = n, t = j(), s = j(!1), r = () => {
7306
- e.onBack();
7307
- };
7308
- Os(
7309
- t,
7310
- () => {
7311
- s.value = !0;
7312
- },
7313
- { delay: 500 }
7314
- );
7315
- const i = () => {
7316
- s.value = !1;
7317
- };
7318
- return (o, u) => Bt((A(), G(Di, {
7319
- items: n.breadcrumbs,
7320
- collapsed: ""
7321
- }, {
7322
- trigger: me(({ click: c }) => [
7323
- V(L(Bs), {
7324
- as: "button",
7325
- onTrigger: c
7326
- }, {
7327
- default: me(() => [
7328
- V(L(ii), {
7329
- ref_key: "buttonRef",
7330
- ref: t,
7331
- icon: "lucide-arrow-left",
7332
- "icon-class": "tw-text-neutrals-500",
7333
- "icon-size": "l",
7334
- text: "",
7335
- onClick: r,
7336
- onContextmenu: u[0] || (u[0] = It(() => {
7337
- }, ["prevent"]))
7338
- }, null, 512)
7339
- ]),
7340
- _: 1
7341
- }, 8, ["onTrigger"])
7342
- ]),
7343
- _: 1
7344
- }, 8, ["items"])), [
7345
- [L(Fr), i]
7346
- ]);
7347
- }
7348
- });
7349
7340
  function Pt(n, e) {
7350
7341
  if (e.length === 0)
7351
7342
  return { path: n ? `/${n}` : "/", query: {} };
@@ -7366,7 +7357,7 @@ function Pt(n, e) {
7366
7357
  u.visible && u.query && Object.assign(o, u.query);
7367
7358
  return { path: i || "/", query: o };
7368
7359
  }
7369
- function Hn(n, e) {
7360
+ function Kn(n, e) {
7370
7361
  let t = n.split("/").filter(Boolean);
7371
7362
  return e && t.length > 0 && t[0] === e && (t = t.slice(1)), t.length === 0 ? {} : {
7372
7363
  workspaceUrl: t[0],
@@ -7393,22 +7384,22 @@ function ls(n, e) {
7393
7384
  }
7394
7385
  return { syncUrlPush: t, syncUrlReplace: s };
7395
7386
  }
7396
- const Vn = ["aria-label"], Zn = {
7387
+ const Hn = ["aria-label"], Vn = {
7397
7388
  key: 1,
7398
7389
  class: "tw-overflow-hidden tw-flex tw-grow tw-basis-0 tw-relative tw-min-w-0"
7399
7390
  }, Ur = /* @__PURE__ */ F({
7400
7391
  __name: "vc-blade-navigation-new",
7401
7392
  setup(n) {
7402
- const { t: e } = ks(), t = ns(), s = is(), r = js(), { breadcrumbs: i, push: o, remove: u } = zn(), { syncUrlReplace: c } = ls(r, t), h = g(() => t.blades.value), a = g(() => t.activeBlade.value), m = g(() => h.value.length > 0), d = g(() => h.value.filter((O) => O.visible).length), p = M(pi), y = M(ct, void 0), T = g(() => y?.isExpanded.value ?? !1), E = g(() => p.value || T.value ? 1 : 2);
7403
- function S(O, P) {
7404
- return O.visible ? P >= d.value - E.value : !1;
7393
+ const { t: e } = Ns(), t = qn(), s = ns(), r = ks(), { breadcrumbs: i, push: o, remove: u } = Jn(), { syncUrlReplace: c } = ls(r, t), h = y(() => t.blades.value), a = y(() => t.activeBlade.value), m = y(() => h.value.length > 0), d = y(() => h.value.filter((E) => E.visible).length), p = M(Gr), b = M(ct, void 0), O = y(() => b?.isExpanded.value ?? !1), T = y(() => p.value || O.value ? 1 : 2);
7394
+ function x(E, P) {
7395
+ return E.visible ? P >= d.value - T.value : !1;
7405
7396
  }
7406
- Ps(
7397
+ Ts(
7407
7398
  h,
7408
- (O) => {
7409
- i.value.forEach((P) => P && u([P.id])), O.filter((P) => P.visible).forEach((P, x) => {
7399
+ (E) => {
7400
+ i.value.forEach((P) => P && u([P.id])), E.filter((P) => P.visible).forEach((P, S) => {
7410
7401
  o({
7411
- id: x.toString(),
7402
+ id: S.toString(),
7412
7403
  title: $r({ title: P.name }, "title"),
7413
7404
  clickHandler: async (k) => {
7414
7405
  const f = parseInt(k), w = h.value.filter((I) => I.visible)[f + 1];
@@ -7428,48 +7419,48 @@ const Vn = ["aria-label"], Zn = {
7428
7419
  debounce: 10
7429
7420
  }
7430
7421
  );
7431
- async function b(O) {
7432
- await t.closeBlade(O) || c();
7422
+ async function g(E) {
7423
+ await t.closeBlade(E) || c();
7433
7424
  }
7434
- async function N(O, P) {
7425
+ async function N(E, P) {
7435
7426
  try {
7436
- const x = await s.callParent(P, O.method, O.args);
7437
- O.callback?.(x);
7438
- } catch (x) {
7439
- console.warn("[VcBladeNavigation] Parent call failed:", x);
7427
+ const S = await s.callParent(P, E.method, E.args);
7428
+ E.callback?.(S);
7429
+ } catch (S) {
7430
+ console.warn("[VcBladeNavigation] Parent call failed:", S);
7440
7431
  }
7441
7432
  }
7442
- function C(O) {
7443
- if (!(O <= 0))
7444
- return ws(Kn, {
7445
- breadcrumbs: i.value.slice(0, O),
7433
+ function C(E) {
7434
+ if (!(E <= 0))
7435
+ return bs(Mn, {
7436
+ breadcrumbs: i.value.slice(0, E),
7446
7437
  onBack: async () => {
7447
- const P = h.value[O];
7438
+ const P = h.value[E];
7448
7439
  P && (await t.closeBlade(P.id) || c());
7449
7440
  }
7450
7441
  });
7451
7442
  }
7452
- return (O, P) => (A(), U("div", {
7443
+ return (E, P) => (A(), U("div", {
7453
7444
  class: "vc-blade-navigation tw-flex tw-flex-col tw-grow tw-basis-0 tw-min-w-0 tw-overflow-hidden",
7454
7445
  role: "region",
7455
7446
  "aria-label": L(e)("COMPONENTS.ORGANISMS.BLADE_NAVIGATION.ARIA_LABEL")
7456
7447
  }, [
7457
- m.value ? (A(), U("div", Zn, [
7458
- (A(!0), U(Xe, null, Rt(h.value, (x, k) => (A(), G(L(os), {
7459
- key: x.id,
7460
- descriptor: x,
7448
+ m.value ? (A(), U("div", Vn, [
7449
+ (A(!0), U(Xe, null, Rt(h.value, (S, k) => (A(), G(L(os), {
7450
+ key: S.id,
7451
+ descriptor: S,
7461
7452
  closable: k > 0,
7462
- expanded: x.id === a.value?.id,
7463
- visible: S(x, k),
7453
+ expanded: S.id === a.value?.id,
7454
+ visible: x(S, k),
7464
7455
  breadcrumbs: L(i).slice(0, k),
7465
7456
  "back-button": d.value > 1 ? C(k) : void 0,
7466
- onClose: b,
7457
+ onClose: g,
7467
7458
  onParentCall: N
7468
7459
  }, null, 8, ["descriptor", "closable", "expanded", "visible", "breadcrumbs", "back-button"]))), 128))
7469
- ])) : (A(), G(L(Us), { key: 0 }))
7470
- ], 8, Vn));
7460
+ ])) : (A(), G(L(js), { key: 0 }))
7461
+ ], 8, Hn));
7471
7462
  }
7472
- }), Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7463
+ }), Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7473
7464
  __proto__: null,
7474
7465
  VcBladeNavigation: Ur,
7475
7466
  VcBladeNavigationV2: Ur,
@@ -7482,7 +7473,7 @@ function St(n, e) {
7482
7473
  Object.keys(Ar).forEach((n) => {
7483
7474
  Pe(n, Ar[n]);
7484
7475
  });
7485
- const Xn = (n, [e, t]) => {
7476
+ const Yn = (n, [e, t]) => {
7486
7477
  if (!n?.files || !n.files?.length)
7487
7478
  return !0;
7488
7479
  const s = (o, u, c) => {
@@ -7505,8 +7496,8 @@ const Xn = (n, [e, t]) => {
7505
7496
  return u === !1 || typeof u == "string" ? u : !0;
7506
7497
  });
7507
7498
  };
7508
- Pe("mindimensions", Xn);
7509
- const Qn = (n, [e]) => {
7499
+ Pe("mindimensions", Yn);
7500
+ const Xn = (n, [e]) => {
7510
7501
  if (!n?.files || !n.files?.length)
7511
7502
  return !0;
7512
7503
  const t = e * 1e3, s = (u) => u.size > t, r = [];
@@ -7514,30 +7505,30 @@ const Qn = (n, [e]) => {
7514
7505
  r.push(n.files[u]);
7515
7506
  return r.map((u) => s(u)).find((u) => u === !0) ? be.global.t("messages.file_weight", { size: e }) : !0;
7516
7507
  };
7517
- Pe("fileWeight", Qn);
7508
+ Pe("fileWeight", Xn);
7518
7509
  const us = (n, [e], t, s) => {
7519
7510
  if (!n || typeof n == "string" && !n.length)
7520
7511
  return !0;
7521
7512
  let r, i;
7522
7513
  return n instanceof Date && (r = n), e instanceof Date && (i = e), typeof n == "string" && (r = new Date(n)), typeof e == "string" && (i = new Date(e)), r?.getTime && r?.getTime() > 0 && i?.getTime && i?.getTime() > 0 && t(i.getTime(), r.getTime()) ? s : !0;
7523
- }, _n = (n, [e]) => us(n, [e], (t, s) => t < s, be.global.t("messages.before"));
7524
- Pe("before", _n);
7525
- const eo = (n, [e]) => us(n, [e], (t, s) => t > s, be.global.t("messages.after"));
7526
- Pe("after", eo);
7527
- const to = (n) => Number.isSafeInteger(parseInt(n)) ? !0 : be.global.t("messages.bigint");
7528
- Pe("bigint", to);
7529
- const kt = R("signalR"), je = j(), ro = Symbol("updateSignalRCreator");
7514
+ }, Qn = (n, [e]) => us(n, [e], (t, s) => t < s, be.global.t("messages.before"));
7515
+ Pe("before", Qn);
7516
+ const _n = (n, [e]) => us(n, [e], (t, s) => t > s, be.global.t("messages.after"));
7517
+ Pe("after", _n);
7518
+ const eo = (n) => Number.isSafeInteger(parseInt(n)) ? !0 : be.global.t("messages.bigint");
7519
+ Pe("bigint", eo);
7520
+ const kt = R("signalR"), je = j(), to = Symbol("updateSignalRCreator");
7530
7521
  function Dr(n, e, t) {
7531
7522
  n.off("SendSystemEvents"), t && (kt.debug("Setup handler for creator: ", t), n.on("SendSystemEvents", (s) => {
7532
7523
  s.creator === t && e.ingest(s);
7533
7524
  }));
7534
7525
  }
7535
- const _l = {
7526
+ const Ql = {
7536
7527
  install(n, e) {
7537
7528
  je.value = e?.creator;
7538
- const t = An(), { isAuthenticated: s } = vt();
7529
+ const t = Sn(), { isAuthenticated: s } = vt();
7539
7530
  let r = !1;
7540
- const i = Ls("pushNotificationHub", { enableForVitest: !0 }) ?? new Fs().withUrl("/pushNotificationHub").withAutomaticReconnect().configureLogging(Ms.Information).build(), o = () => {
7531
+ const i = zs("pushNotificationHub", { enableForVitest: !0 }) ?? new Ls().withUrl("/pushNotificationHub").withAutomaticReconnect().configureLogging(Fs.Information).build(), o = () => {
7541
7532
  i.start().then(() => {
7542
7533
  kt.info("Connected."), Dr(i, t, je.value);
7543
7534
  }).catch((c) => {
@@ -7565,12 +7556,12 @@ const _l = {
7565
7556
  { immediate: !0 }
7566
7557
  ), n.config.globalProperties.$updateSignalRCreator = (c) => {
7567
7558
  je.value = c;
7568
- }, n.provide(ro, (c) => {
7559
+ }, n.provide(to, (c) => {
7569
7560
  je.value = c;
7570
7561
  });
7571
7562
  }
7572
7563
  };
7573
- async function so(n, e, t, s, r, i) {
7564
+ async function ro(n, e, t, s, r, i) {
7574
7565
  if (!t.workspaceUrl) return !1;
7575
7566
  const o = e.getBladeByRoute(t.workspaceUrl);
7576
7567
  if (!o)
@@ -7604,13 +7595,13 @@ async function so(n, e, t, s, r, i) {
7604
7595
  }
7605
7596
  return !1;
7606
7597
  }
7607
- async function io(n, e, t, s, r) {
7598
+ async function so(n, e, t, s, r) {
7608
7599
  if (!n.matched.some((a) => a.meta?.root)) return;
7609
7600
  if (!n.matched.some((a) => a.meta?.bladeCatchAll)) {
7610
7601
  e.blades.value.length > 0 && e._restoreStack([]);
7611
7602
  return;
7612
7603
  }
7613
- const o = Object.values(n.params)?.[0] || "", u = Hn(n.path, o);
7604
+ const o = Object.values(n.params)?.[0] || "", u = Kn(n.path, o);
7614
7605
  if (!u.workspaceUrl) {
7615
7606
  e.blades.value.length > 0 && e._restoreStack([]);
7616
7607
  return;
@@ -7618,23 +7609,23 @@ async function io(n, e, t, s, r) {
7618
7609
  const c = Object.fromEntries(
7619
7610
  Object.entries(n.params).filter(([, a]) => typeof a == "string")
7620
7611
  );
7621
- if (await so(e, t, u, s, r, c)) {
7612
+ if (await ro(e, t, u, s, r, c)) {
7622
7613
  const { path: a, query: m } = Pt(o, e.blades.value);
7623
7614
  return { path: a, query: m, replace: !0 };
7624
7615
  }
7625
7616
  }
7626
7617
  let cs, as, hs, fs;
7627
- const eu = {
7618
+ const _l = {
7628
7619
  install(n, e) {
7629
7620
  const { router: t } = e;
7630
- Object.entries(Yn).forEach(([h, a]) => {
7621
+ Object.entries(Zn).forEach(([h, a]) => {
7631
7622
  n.component(h, a);
7632
7623
  }), cs = {
7633
7624
  router: e.router
7634
7625
  };
7635
7626
  const r = n.runWithContext(() => {
7636
7627
  try {
7637
- return ss();
7628
+ return is();
7638
7629
  } catch {
7639
7630
  console.warn(
7640
7631
  "[BladeNavigationPlugin] BladeRegistry not yet available. BladeStack will be created but URL restoration may be deferred."
@@ -7646,16 +7637,16 @@ const eu = {
7646
7637
  console.error("[BladeNavigationPlugin] BladeRegistry is required but not found.");
7647
7638
  return;
7648
7639
  }
7649
- const { hasAccess: i } = n.runWithContext(() => Cn()), o = qn(r, i);
7640
+ const { hasAccess: i } = n.runWithContext(() => An()), o = Wn(r, i);
7650
7641
  n.provide($t, o), as = o;
7651
- const u = Gn(o);
7642
+ const u = Fn(o);
7652
7643
  n.provide(Mr, u), hs = u, fs = r;
7653
7644
  const c = t.getRoutes().find((h) => h.meta?.root);
7654
7645
  c && t.addRoute(c.name, {
7655
7646
  path: ":pathMatch(.*)*",
7656
7647
  component: { render: () => null },
7657
7648
  meta: { bladeCatchAll: !0 }
7658
- }), t.beforeEach((h) => io(h, o, r, i, t));
7649
+ }), t.beforeEach((h) => so(h, o, r, i, t));
7659
7650
  }
7660
7651
  }, xt = R("use-blade-navigation-adapter"), jt = /* @__PURE__ */ new Set();
7661
7652
  function ye(n, e) {
@@ -7684,10 +7675,10 @@ function Br(n, e, t) {
7684
7675
  };
7685
7676
  }
7686
7677
  let Ve, Ze;
7687
- function tu() {
7678
+ function eu() {
7688
7679
  Ve = void 0, Ze = void 0, jt.clear();
7689
7680
  }
7690
- function no() {
7681
+ function io() {
7691
7682
  const n = as, e = hs, t = fs;
7692
7683
  if (!n || !e)
7693
7684
  throw new Error(
@@ -7698,12 +7689,12 @@ function no() {
7698
7689
  throw new Error(
7699
7690
  "[@vc-shell/framework#useBladeNavigation] Vue Router instance is not available."
7700
7691
  );
7701
- return Ve || (Ve = g(() => {
7692
+ return Ve || (Ve = y(() => {
7702
7693
  const r = n.activeBlade.value?.id;
7703
7694
  return n.blades.value.map(
7704
7695
  (i, o) => Br(i, o, r)
7705
7696
  );
7706
- })), Ze || (Ze = g(() => {
7697
+ })), Ze || (Ze = y(() => {
7707
7698
  const r = n.workspace.value;
7708
7699
  if (r)
7709
7700
  return Br(r, 0, n.activeBlade.value?.id);
@@ -7716,7 +7707,7 @@ function no() {
7716
7707
  activeWorkspace: Ze
7717
7708
  };
7718
7709
  }
7719
- function oo(n) {
7710
+ function no(n) {
7720
7711
  if (!n)
7721
7712
  throw new Error("Blade cannot be null or undefined.");
7722
7713
  if (typeof n == "object" && "name" in n && typeof n.name == "string")
@@ -7724,7 +7715,7 @@ function oo(n) {
7724
7715
  const e = n;
7725
7716
  return e.name || e.__name || "UnknownBlade";
7726
7717
  }
7727
- function lo() {
7718
+ function oo() {
7728
7719
  const {
7729
7720
  bladeStack: n,
7730
7721
  messaging: e,
@@ -7732,27 +7723,27 @@ function lo() {
7732
7723
  router: s,
7733
7724
  blades: r,
7734
7725
  activeWorkspace: i
7735
- } = no(), o = ut() ? M(zt, void 0) : void 0, { syncUrlPush: u, syncUrlReplace: c } = ls(s, n);
7726
+ } = io(), o = ut() ? M(zt, void 0) : void 0, { syncUrlPush: u, syncUrlReplace: c } = ls(s, n);
7736
7727
  function h() {
7737
7728
  return o ? o.value.id : n.activeBlade.value?.id;
7738
7729
  }
7739
- function a(x) {
7730
+ function a(S) {
7740
7731
  const k = n.blades.value;
7741
- if (x >= 0 && x < k.length)
7742
- return k[x].id;
7732
+ if (S >= 0 && S < k.length)
7733
+ return k[S].id;
7743
7734
  }
7744
- async function m(x, k) {
7735
+ async function m(S, k) {
7745
7736
  const v = {
7746
- name: oo(x.blade),
7747
- param: x.param,
7748
- options: x.options,
7749
- onOpen: x.onOpen,
7750
- onClose: x.onClose,
7751
- replaceCurrentBlade: x.replaceCurrentBlade
7737
+ name: no(S.blade),
7738
+ param: S.param,
7739
+ options: S.options,
7740
+ onOpen: S.onOpen,
7741
+ onClose: S.onClose,
7742
+ replaceCurrentBlade: S.replaceCurrentBlade
7752
7743
  };
7753
7744
  if (k)
7754
7745
  await n.openWorkspace(v);
7755
- else if (x.replaceCurrentBlade)
7746
+ else if (S.replaceCurrentBlade)
7756
7747
  await n.coverCurrentBlade(v);
7757
7748
  else {
7758
7749
  const I = h();
@@ -7760,20 +7751,20 @@ function lo() {
7760
7751
  }
7761
7752
  n.activeBlade.value?.url && u();
7762
7753
  }
7763
- async function d(x) {
7754
+ async function d(S) {
7764
7755
  ye(
7765
7756
  "closeBlade(index)",
7766
7757
  "useBlade().closeSelf()"
7767
7758
  );
7768
- const k = a(x);
7759
+ const k = a(S);
7769
7760
  if (!k)
7770
- return xt.error(`closeBlade: No blade found at index ${x}.`), !1;
7761
+ return xt.error(`closeBlade: No blade found at index ${S}.`), !1;
7771
7762
  const f = await n.closeBlade(k);
7772
7763
  return f || c(), f;
7773
7764
  }
7774
7765
  function p() {
7775
7766
  ye("goToRoot()");
7776
- const x = s.getRoutes(), k = x.find((w) => w.meta?.root), f = x.find((w) => w.aliasOf?.path === k?.path) || k;
7767
+ const S = s.getRoutes(), k = S.find((w) => w.meta?.root), f = S.find((w) => w.aliasOf?.path === k?.path) || k;
7777
7768
  if (f?.name)
7778
7769
  return {
7779
7770
  name: f.name,
@@ -7782,7 +7773,7 @@ function lo() {
7782
7773
  const v = Nt(s);
7783
7774
  return { path: v ? `/${v}` : "/" };
7784
7775
  }
7785
- async function y(x, k) {
7776
+ async function b(S, k) {
7786
7777
  ye(
7787
7778
  "onParentCall(args, index)",
7788
7779
  "useBlade().callParent(method, args)"
@@ -7797,46 +7788,46 @@ function lo() {
7797
7788
  try {
7798
7789
  const v = await e.callParent(
7799
7790
  f,
7800
- x.method,
7801
- x.args
7791
+ S.method,
7792
+ S.args
7802
7793
  );
7803
- typeof x.callback == "function" && x.callback(v);
7794
+ typeof S.callback == "function" && S.callback(v);
7804
7795
  } catch (v) {
7805
7796
  xt.error(
7806
- `onParentCall: Failed to call parent method "${x.method}":`,
7797
+ `onParentCall: Failed to call parent method "${S.method}":`,
7807
7798
  v
7808
7799
  );
7809
7800
  }
7810
7801
  }
7811
- function T(x) {
7802
+ function O(S) {
7812
7803
  ye(
7813
7804
  "onBeforeClose(cb)",
7814
7805
  "useBlade().onBeforeClose(guard)"
7815
7806
  );
7816
7807
  const k = h();
7817
7808
  if (!k) {
7818
- Ss("onBeforeClose: Could not determine current blade.");
7809
+ ws("onBeforeClose: Could not determine current blade.");
7819
7810
  return;
7820
7811
  }
7821
- n.registerBeforeClose(k, async () => await x() === !1);
7812
+ n.registerBeforeClose(k, async () => await S() === !1);
7822
7813
  }
7823
- function E(x) {
7814
+ function T(S) {
7824
7815
  return t.getBladeComponent(
7825
- x
7816
+ S
7826
7817
  );
7827
7818
  }
7828
- function S(x) {
7819
+ function x(S) {
7829
7820
  ye(
7830
7821
  "routeResolver",
7831
7822
  "plugin-v2 handles URL resolution automatically"
7832
7823
  );
7833
7824
  }
7834
- function b(x) {
7825
+ function g(S) {
7835
7826
  ye("setNavigationQuery");
7836
7827
  const k = n.workspace.value;
7837
7828
  if (!k) return;
7838
7829
  const f = k.name.toLowerCase(), v = {};
7839
- for (const [w, I] of Object.entries(x))
7830
+ for (const [w, I] of Object.entries(S))
7840
7831
  I != null && (v[`${f}_${w}`] = String(I));
7841
7832
  s.options.history.replace(
7842
7833
  decodeURIComponent(
@@ -7848,9 +7839,9 @@ function lo() {
7848
7839
  }
7849
7840
  function N() {
7850
7841
  ye("getNavigationQuery");
7851
- const x = n.workspace.value;
7852
- if (!x) return;
7853
- const k = x.name.toLowerCase(), f = new URLSearchParams(
7842
+ const S = n.workspace.value;
7843
+ if (!S) return;
7844
+ const k = S.name.toLowerCase(), f = new URLSearchParams(
7854
7845
  window.location.hash.split("?")[1] || ""
7855
7846
  ), v = {};
7856
7847
  for (const [w, I] of f.entries())
@@ -7860,23 +7851,23 @@ function lo() {
7860
7851
  }
7861
7852
  return Object.keys(v).length > 0 ? v : void 0;
7862
7853
  }
7863
- function C(x, k) {
7864
- const f = a(x);
7854
+ function C(S, k) {
7855
+ const f = a(S);
7865
7856
  f && n.setBladeError(f, k);
7866
7857
  }
7867
- function O(x) {
7868
- const k = a(x);
7858
+ function E(S) {
7859
+ const k = a(S);
7869
7860
  k && n.clearBladeError(k);
7870
7861
  }
7871
- const P = g(() => {
7862
+ const P = y(() => {
7872
7863
  if (!o) return;
7873
- const x = o.value;
7864
+ const S = o.value;
7874
7865
  return {
7875
- idx: n.blades.value.findIndex((v) => v.id === x.id),
7876
- instance: x.title != null ? { title: x.title } : void 0,
7877
- isVisible: x.visible,
7866
+ idx: n.blades.value.findIndex((v) => v.id === S.id),
7867
+ instance: S.title != null ? { title: S.title } : void 0,
7868
+ isVisible: S.visible,
7878
7869
  error: j(
7879
- x.error ? new Error(String(x.error)) : null
7870
+ S.error ? new Error(String(S.error)) : null
7880
7871
  )
7881
7872
  };
7882
7873
  });
@@ -7886,26 +7877,26 @@ function lo() {
7886
7877
  openBlade: m,
7887
7878
  closeBlade: d,
7888
7879
  goToRoot: p,
7889
- onParentCall: y,
7890
- onBeforeClose: T,
7891
- resolveBladeByName: E,
7892
- routeResolver: S,
7893
- setNavigationQuery: b,
7880
+ onParentCall: b,
7881
+ onBeforeClose: O,
7882
+ resolveBladeByName: T,
7883
+ routeResolver: x,
7884
+ setNavigationQuery: g,
7894
7885
  getNavigationQuery: N,
7895
7886
  setBladeError: C,
7896
- clearBladeError: O,
7887
+ clearBladeError: E,
7897
7888
  currentBladeNavigationData: P
7898
7889
  };
7899
7890
  }
7900
- const uo = {
7891
+ const lo = {
7901
7892
  url: "",
7902
7893
  title: "Virto OZ",
7903
7894
  width: 362,
7904
7895
  expandedWidth: 500,
7905
7896
  allowedOrigins: ["*"]
7906
- }, ru = "APP_AI_AGENT_URL", co = "ai-agent-toggle", ao = "lucide-sparkles", ho = "AI Assistant", Ge = R("ai-agent-panel");
7907
- function fo() {
7908
- const n = j("closed"), e = j(!1), t = g(() => n.value !== "closed"), s = g(() => n.value === "expanded"), r = () => {
7897
+ }, tu = "APP_AI_AGENT_URL", uo = "ai-agent-toggle", co = "lucide-sparkles", ao = "AI Assistant", Ge = R("ai-agent-panel");
7898
+ function ho() {
7899
+ const n = j("closed"), e = j(!1), t = y(() => n.value !== "closed"), s = y(() => n.value === "expanded"), r = () => {
7909
7900
  n.value === "closed" && (n.value = "open", Ge.debug("Panel opened"));
7910
7901
  }, i = () => {
7911
7902
  n.value = "closed", e.value = !1, Ge.debug("Panel closed, reset initialized state");
@@ -7940,10 +7931,10 @@ function Rr(n) {
7940
7931
  param: n.param
7941
7932
  } : { id: "unknown", name: "unknown", title: "Unknown" };
7942
7933
  }
7943
- function po(n) {
7934
+ function fo(n) {
7944
7935
  const { userGetter: e, bladeGetter: t, localeGetter: s, tokenGetter: r } = n, i = j(/* @__PURE__ */ new Map()), o = () => {
7945
- const y = t();
7946
- return y ? i.value.get(y.id) ?? {
7936
+ const b = t();
7937
+ return b ? i.value.get(b.id) ?? {
7947
7938
  items: [],
7948
7939
  type: "list",
7949
7940
  suggestions: void 0
@@ -7952,18 +7943,18 @@ function po(n) {
7952
7943
  type: "list",
7953
7944
  suggestions: void 0
7954
7945
  };
7955
- }, u = g(() => o().items), c = g(() => o().type), h = g(() => o().suggestions), a = g(() => u.value.length);
7946
+ }, u = y(() => o().items), c = y(() => o().type), h = y(() => o().suggestions), a = y(() => u.value.length);
7956
7947
  return {
7957
7948
  contextItems: u,
7958
7949
  contextType: c,
7959
7950
  contextSuggestions: h,
7960
7951
  totalItemsCount: a,
7961
- setContextData: (y, T, E, S) => {
7962
- const b = t()?.id || S;
7963
- return b ? y.length === 0 && !E ? (i.value.delete(b), At.debug(`Context cleared for blade: ${b}`), { cleared: !0 }) : (i.value.set(b, { items: y, type: T, suggestions: E }), At.debug(`Context set for blade: ${b}, items: ${y.length}, type: ${T}`), { cleared: !1 }) : (At.warn("Cannot set context data: no blade id available"), { cleared: !1 });
7952
+ setContextData: (b, O, T, x) => {
7953
+ const g = t()?.id || x;
7954
+ return g ? b.length === 0 && !T ? (i.value.delete(g), At.debug(`Context cleared for blade: ${g}`), { cleared: !0 }) : (i.value.set(g, { items: b, type: O, suggestions: T }), At.debug(`Context set for blade: ${g}, items: ${b.length}, type: ${O}`), { cleared: !1 }) : (At.warn("Cannot set context data: no blade id available"), { cleared: !1 });
7964
7955
  },
7965
7956
  buildInitPayload: async () => {
7966
- const y = r ? await r() ?? void 0 : void 0;
7957
+ const b = r ? await r() ?? void 0 : void 0;
7967
7958
  return {
7968
7959
  userId: e()?.id || "",
7969
7960
  locale: s(),
@@ -7971,24 +7962,24 @@ function po(n) {
7971
7962
  contextType: c.value,
7972
7963
  items: Le(u.value),
7973
7964
  suggestions: h.value ? Le(h.value) : void 0,
7974
- accessToken: y
7965
+ accessToken: b
7975
7966
  };
7976
7967
  },
7977
7968
  buildUpdatePayload: async () => {
7978
- const y = r ? await r() ?? void 0 : void 0;
7969
+ const b = r ? await r() ?? void 0 : void 0;
7979
7970
  return {
7980
7971
  blade: Rr(t()),
7981
7972
  contextType: c.value,
7982
7973
  items: Le(u.value),
7983
7974
  suggestions: h.value ? Le(h.value) : void 0,
7984
7975
  locale: s(),
7985
- accessToken: y
7976
+ accessToken: b
7986
7977
  };
7987
7978
  }
7988
7979
  };
7989
7980
  }
7990
7981
  const H = R("ai-agent-transport");
7991
- function mo(n) {
7982
+ function po(n) {
7992
7983
  try {
7993
7984
  const e = atob(n.content), t = new Array(e.length);
7994
7985
  for (let o = 0; o < e.length; o++)
@@ -7999,86 +7990,86 @@ function mo(n) {
7999
7990
  H.error("Failed to download file:", e);
8000
7991
  }
8001
7992
  }
8002
- function vo(n) {
7993
+ function mo(n) {
8003
7994
  const { getConfig: e, isEmbedded: t, navigateToBlade: s, reloadBlade: r } = n, i = Jt(null), o = j(!1), u = j(!1), c = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
8004
- function m(p, y) {
7995
+ function m(p, b) {
8005
7996
  switch (p) {
8006
7997
  case "PREVIEW_CHANGES": {
8007
- const E = y;
8008
- h.size === 0 && H.warn("No preview changes handlers registered!"), h.forEach((S) => {
7998
+ const T = b;
7999
+ h.size === 0 && H.warn("No preview changes handlers registered!"), h.forEach((x) => {
8009
8000
  try {
8010
- S(E);
8011
- } catch (b) {
8012
- H.error("Error in preview handler:", b);
8001
+ x(T);
8002
+ } catch (g) {
8003
+ H.error("Error in preview handler:", g);
8013
8004
  }
8014
8005
  });
8015
8006
  break;
8016
8007
  }
8017
8008
  case "NAVIGATE_TO_APP": {
8018
- const E = y;
8019
- s && E?.bladeName && (s(E.bladeName, E.param, E.options), H.debug(`Navigation requested to: ${E.bladeName}`));
8009
+ const T = b;
8010
+ s && T?.bladeName && (s(T.bladeName, T.param, T.options), H.debug(`Navigation requested to: ${T.bladeName}`));
8020
8011
  break;
8021
8012
  }
8022
8013
  case "RELOAD_BLADE":
8023
8014
  r && (r(), H.debug("Blade reload requested"));
8024
8015
  break;
8025
8016
  case "DOWNLOAD_FILE": {
8026
- const E = y;
8027
- E && mo(E);
8017
+ const T = b;
8018
+ T && po(T);
8028
8019
  break;
8029
8020
  }
8030
8021
  case "APPLY_CHANGES": {
8031
- const E = y;
8032
- H.warn("APPLY_CHANGES received but not implemented:", E?.changes);
8022
+ const T = b;
8023
+ H.warn("APPLY_CHANGES received but not implemented:", T?.changes);
8033
8024
  break;
8034
8025
  }
8035
8026
  case "CHAT_ERROR": {
8036
- const E = y;
8037
- H.error(`Chatbot error [${E?.code}]: ${E?.message}`);
8027
+ const T = b;
8028
+ H.error(`Chatbot error [${T?.code}]: ${T?.message}`);
8038
8029
  break;
8039
8030
  }
8040
8031
  }
8041
- const T = {
8032
+ const O = {
8042
8033
  type: p,
8043
- payload: y,
8034
+ payload: b,
8044
8035
  timestamp: Date.now()
8045
8036
  };
8046
- c.forEach((E) => {
8037
+ c.forEach((T) => {
8047
8038
  try {
8048
- E(T);
8049
- } catch (S) {
8050
- H.error("Handler error:", S);
8039
+ T(O);
8040
+ } catch (x) {
8041
+ H.error("Handler error:", x);
8051
8042
  }
8052
8043
  });
8053
8044
  }
8054
8045
  function d(p) {
8055
- const T = e().allowedOrigins || ["*"];
8056
- if (!T.includes("*") && !T.includes(p.origin))
8046
+ const O = e().allowedOrigins || ["*"];
8047
+ if (!O.includes("*") && !O.includes(p.origin))
8057
8048
  return;
8058
- const E = p.data;
8059
- if (!(!E?.type || typeof E.type != "string"))
8060
- switch (H.debug(`Message received: ${E.type}`), E.type) {
8049
+ const T = p.data;
8050
+ if (!(!T?.type || typeof T.type != "string"))
8051
+ switch (H.debug(`Message received: ${T.type}`), T.type) {
8061
8052
  // Embedded: parent forwards chat messages wrapped in AI_CHAT_MESSAGE
8062
8053
  case "AI_CHAT_MESSAGE": {
8063
8054
  if (t) {
8064
- const S = E.payload;
8065
- S?.type && m(S.type, S.payload);
8055
+ const x = T.payload;
8056
+ x?.type && m(x.type, x.payload);
8066
8057
  }
8067
8058
  return;
8068
8059
  }
8069
8060
  // Normal: chatbot signals it's ready
8070
8061
  case "CHAT_READY":
8071
- a.forEach((S) => {
8062
+ a.forEach((x) => {
8072
8063
  try {
8073
- S();
8074
- } catch (b) {
8075
- H.error("ChatReady handler error:", b);
8064
+ x();
8065
+ } catch (g) {
8066
+ H.error("ChatReady handler error:", g);
8076
8067
  }
8077
8068
  });
8078
8069
  break;
8079
8070
  // Normal: direct chat protocol messages
8080
8071
  default:
8081
- m(E.type, E.payload);
8072
+ m(T.type, T.payload);
8082
8073
  break;
8083
8074
  }
8084
8075
  }
@@ -8094,8 +8085,8 @@ function vo(n) {
8094
8085
  H.warn("Cannot send message: iframe not available");
8095
8086
  return;
8096
8087
  }
8097
- const T = e().allowedOrigins?.[0] || "*";
8098
- i.value.contentWindow.postMessage(p, T), H.debug(`Sent to iframe: ${p.type}`);
8088
+ const O = e().allowedOrigins?.[0] || "*";
8089
+ i.value.contentWindow.postMessage(p, O), H.debug(`Sent to iframe: ${p.type}`);
8099
8090
  },
8100
8091
  sendToParent(p) {
8101
8092
  if (!window.parent || window.parent === window) {
@@ -8128,7 +8119,7 @@ function vo(n) {
8128
8119
  };
8129
8120
  }
8130
8121
  const We = R("ai-agent-service");
8131
- function yo(n) {
8122
+ function vo(n) {
8132
8123
  const {
8133
8124
  userGetter: e,
8134
8125
  bladeGetter: t,
@@ -8138,21 +8129,21 @@ function yo(n) {
8138
8129
  reloadBlade: o,
8139
8130
  initialConfig: u,
8140
8131
  isEmbedded: c = !1
8141
- } = n, h = j({ ...uo, ...u }), a = fo(), m = po({
8132
+ } = n, h = j({ ...lo, ...u }), a = ho(), m = fo({
8142
8133
  userGetter: e,
8143
8134
  bladeGetter: t,
8144
8135
  localeGetter: s,
8145
8136
  tokenGetter: r
8146
- }), d = vo({
8137
+ }), d = mo({
8147
8138
  getConfig: () => h.value,
8148
8139
  isEmbedded: c,
8149
8140
  navigateToBlade: i,
8150
8141
  reloadBlade: o
8151
- }), p = g(() => ({
8142
+ }), p = y(() => ({
8152
8143
  user: e(),
8153
8144
  currentBlade: t(),
8154
8145
  items: m.contextItems.value
8155
- })), y = async () => {
8146
+ })), b = async () => {
8156
8147
  if (d.pendingInitContext.value && d.iframeRef.value?.contentWindow) {
8157
8148
  d.pendingInitContext.value = !1, a.isInitialized.value = !0;
8158
8149
  const C = await m.buildInitPayload();
@@ -8163,7 +8154,7 @@ function yo(n) {
8163
8154
  d.iframeRef.value?.contentWindow ? (a.isInitialized.value = !0, m.buildInitPayload().then((C) => {
8164
8155
  d.sendToIframe({ type: "INIT_CONTEXT", payload: C }), We.info("Chatbot ready, sent INIT_CONTEXT");
8165
8156
  })) : (d.pendingInitContext.value = !0, We.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
8166
- }), X(d.iframeRef, () => y()), X(
8157
+ }), X(d.iframeRef, () => b()), X(
8167
8158
  () => ({ currentBlade: p.value.currentBlade, items: p.value.items }),
8168
8159
  async () => {
8169
8160
  if (c) {
@@ -8178,10 +8169,10 @@ function yo(n) {
8178
8169
  },
8179
8170
  { deep: !0 }
8180
8171
  );
8181
- const T = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : a.open(), E = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : a.close(), S = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : a.toggle(), b = (C) => {
8182
- d.setIframeRef(C), y();
8183
- }, N = (C, O, P, x) => {
8184
- const { cleared: k } = m.setContextData(C, O, P, x);
8172
+ const O = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : a.open(), T = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : a.close(), x = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : a.toggle(), g = (C) => {
8173
+ d.setIframeRef(C), b();
8174
+ }, N = (C, E, P, S) => {
8175
+ const { cleared: k } = m.setContextData(C, E, P, S);
8185
8176
  c && k && d.sendToParent({ type: "AI_CONTEXT_CLEAR" });
8186
8177
  };
8187
8178
  return d.startListening(), c && (d.sendToParent({
@@ -8192,13 +8183,13 @@ function yo(n) {
8192
8183
  panelState: a.panelState,
8193
8184
  config: h,
8194
8185
  context: p,
8195
- isOpen: g(() => !c && a.isOpen.value),
8186
+ isOpen: y(() => !c && a.isOpen.value),
8196
8187
  isExpanded: a.isExpanded,
8197
8188
  totalItemsCount: m.totalItemsCount,
8198
8189
  // Panel control
8199
- openPanel: T,
8200
- closePanel: E,
8201
- togglePanel: S,
8190
+ openPanel: O,
8191
+ closePanel: T,
8192
+ togglePanel: x,
8202
8193
  expandPanel: () => a.expand(),
8203
8194
  collapsePanel: () => a.collapse(),
8204
8195
  // Configuration
@@ -8206,13 +8197,13 @@ function yo(n) {
8206
8197
  h.value = { ...h.value, ...C };
8207
8198
  },
8208
8199
  // Communication
8209
- sendMessage: (C, O) => {
8210
- d.sendToIframe({ type: C, payload: O });
8200
+ sendMessage: (C, E) => {
8201
+ d.sendToIframe({ type: C, payload: E });
8211
8202
  },
8212
8203
  onMessage: d.onMessage,
8213
8204
  // Internal API
8214
8205
  iframeRef: d.iframeRef,
8215
- _setIframeRef: b,
8206
+ _setIframeRef: g,
8216
8207
  _startListening: d.startListening,
8217
8208
  _stopListening: d.stopListening,
8218
8209
  _setContextData: N,
@@ -8220,8 +8211,8 @@ function yo(n) {
8220
8211
  };
8221
8212
  }
8222
8213
  const ge = R("use-ai-agent");
8223
- function su(n) {
8224
- const e = M(ai), { user: t, getAccessToken: s } = sn(), { blades: r, openBlade: i, resolveBladeByName: o } = lo(), u = n?.isEmbedded, c = yo({
8214
+ function ru(n) {
8215
+ const e = M(ci), { user: t, getAccessToken: s } = tn(), { blades: r, openBlade: i, resolveBladeByName: o } = oo(), u = n?.isEmbedded, c = vo({
8225
8216
  userGetter: () => {
8226
8217
  if (t.value)
8227
8218
  return {
@@ -8255,12 +8246,12 @@ function su(n) {
8255
8246
  isEmbedded: u
8256
8247
  });
8257
8248
  if (Ke(ct, c), ge.debug("AiAgentService provided"), n?.addGlobalToolbarButton ?? !0) {
8258
- const a = M(hi, null);
8249
+ const a = M(ai, null);
8259
8250
  a ? (a.registerToolbarItem(
8260
8251
  {
8261
- id: co,
8262
- icon: ao,
8263
- title: ho,
8252
+ id: uo,
8253
+ icon: co,
8254
+ title: ao,
8264
8255
  clickHandler: () => {
8265
8256
  c.togglePanel();
8266
8257
  }
@@ -8271,10 +8262,10 @@ function su(n) {
8271
8262
  }
8272
8263
  return c;
8273
8264
  }
8274
- function iu() {
8265
+ function su() {
8275
8266
  const n = M(ct);
8276
8267
  if (!n)
8277
- throw ge.error("AiAgentService not found. Did you forget to call provideAiAgentService()?"), new Vs("AiAgentService");
8268
+ throw ge.error("AiAgentService not found. Did you forget to call provideAiAgentService()?"), new Hs("AiAgentService");
8278
8269
  return {
8279
8270
  // State
8280
8271
  panelState: n.panelState,
@@ -8296,7 +8287,7 @@ function iu() {
8296
8287
  onMessage: n.onMessage
8297
8288
  };
8298
8289
  }
8299
- function nu(n) {
8290
+ function iu(n) {
8300
8291
  return {
8301
8292
  id: "ai-agent-toggle",
8302
8293
  icon: n?.icon ?? "lucide-sparkles",
@@ -8306,11 +8297,11 @@ function nu(n) {
8306
8297
  }
8307
8298
  };
8308
8299
  }
8309
- const go = ["width", "height"], bo = ["clip-path"], wo = {
8300
+ const yo = ["width", "height"], go = ["clip-path"], bo = {
8310
8301
  key: 1,
8311
8302
  d: "M72.9199 46.4165C73.2527 46.9495 73.5831 47.4996 73.9092 48.0679C78.4022 55.8976 79.0605 66.3551 76.7793 76.6079C74.5635 86.5668 69.6096 96.1504 62.9795 102.692L58.1514 105.48C52.5725 108.701 45.699 108.701 40.1201 105.48L21.665 94.8247C29.1398 95.4723 37.0781 94.4072 44.3848 91.9233C54.5984 88.4512 63.7463 82.1497 68.6807 73.6548C75.124 62.5619 75.4351 53.2694 72.9199 46.4165ZM56.5205 29.5093C65.5697 29.5331 75.1259 33.9964 83.0215 40.8853C89.9848 46.9608 95.5441 54.8286 98.2715 62.9478V71.9058C98.2715 78.3478 94.8348 84.301 89.2559 87.522L69.4658 98.9468C74.0688 92.6731 77.4601 84.9996 79.207 77.1479C81.5723 66.517 80.9666 55.3703 76.0654 46.8296C69.6817 35.7054 61.7917 30.789 54.6006 29.5396C55.2271 29.5179 55.867 29.5076 56.5205 29.5093ZM0 50.688C3.16812 57.476 8.04614 63.7935 13.8389 68.853C21.9305 75.9204 31.9368 80.6465 41.7578 80.6724C54.5833 80.706 62.7851 76.3308 67.4629 70.728C67.1684 71.2812 66.8584 71.8408 66.5303 72.4058C61.9844 80.2318 53.417 86.2251 43.584 89.5679C34.4355 92.6779 24.3375 93.4401 15.6328 91.3423L9.01562 87.522C3.43667 84.301 0 78.3478 0 71.9058V50.688ZM26.7559 10.1313C22.5672 16.2131 19.6599 23.483 18.2695 30.9126C16.3077 41.3962 17.3358 52.3558 22.2188 60.8647C28.6034 71.9905 36.4946 76.9061 43.6865 78.1548C43.0594 78.1765 42.4188 78.1868 41.7646 78.1851C32.7113 78.1612 23.2602 73.7801 15.4746 66.98C8.2197 60.6434 2.52684 52.3035 0 43.7075V35.9897C6.33247e-05 29.5479 3.43687 23.5955 9.01562 20.3745L26.7559 10.1313ZM51.2432 31.6978C54.0287 31.7659 57.0796 32.4389 60.1875 33.9976C58.8529 33.7029 57.5584 33.677 56.3965 33.9722L57.0088 36.3833C58.4774 36.0102 60.6741 36.4134 63.0332 37.8237C65.3553 39.212 67.6865 41.4953 69.375 44.5923C70.7081 47.0376 71.6489 50.015 71.8535 53.4839C71.4414 52.1828 70.818 51.0505 69.9824 50.1929L68.2012 51.9282C69.2585 53.0135 70.0076 55.1176 69.9658 57.8657C69.9246 60.5708 69.1121 63.731 67.2744 66.7417C65.8225 69.1203 63.7129 71.4251 60.8086 73.3374C61.7311 72.329 62.4012 71.2217 62.7266 70.0679L60.333 69.3931C59.9218 70.8514 58.4742 72.5523 56.0732 73.8901C53.71 75.207 50.5672 76.0837 47.041 75.9976C44.2551 75.9294 41.204 75.2549 38.0957 73.6958C39.4307 73.9907 40.7254 74.0184 41.8877 73.7231L41.2754 71.312C39.8069 71.6851 37.6101 71.2818 35.251 69.8716C32.9289 68.4834 30.5977 66.2 28.9092 63.103C27.5754 60.6565 26.6337 57.6775 26.4297 54.2065C26.8418 55.5096 27.4661 56.6438 28.3027 57.5024L30.084 55.7661C29.0267 54.6807 28.2775 52.5767 28.3193 49.8286C28.3606 47.1236 29.173 43.9633 31.0107 40.9526C32.4621 38.5751 34.5702 36.2706 37.4727 34.3589C36.5514 35.3666 35.8827 36.4736 35.5576 37.6265L37.9512 38.3013C38.3625 36.8429 39.8101 35.142 42.2109 33.8042C44.5742 32.4874 47.717 31.6116 51.2432 31.6978ZM40.1201 2.4165C45.6991 -0.804509 52.5724 -0.804509 58.1514 2.4165L75.6777 12.5356C68.4683 12.0708 60.8765 13.1991 53.8691 15.6333C43.6671 19.1774 34.5353 25.5492 29.6035 34.0396C23.1612 45.1305 22.8486 54.4223 25.3623 61.2749C25.0301 60.7429 24.7004 60.1936 24.375 59.6265C19.8639 51.765 18.8286 41.4457 20.7139 31.3706C22.4486 22.1007 26.633 13.1734 32.6709 6.71631L40.1201 2.4165ZM54.6855 17.9829C63.3703 14.966 72.9092 14.0715 81.3008 15.7817L89.2559 20.3745C94.8346 23.5955 98.2714 29.5479 98.2715 35.9897V56.4692C95.0606 49.9731 90.2759 43.9144 84.6562 39.0112C76.4636 31.8632 66.3524 27.0488 56.5273 27.0229C43.6978 26.9893 35.4935 31.3659 30.8164 36.9712C31.1117 36.4161 31.4247 35.8554 31.7539 35.2886C36.3024 27.4582 44.8633 21.395 54.6855 17.9829Z",
8312
8303
  fill: "url(#virto-oz-gradient-animated)"
8313
- }, So = ["id"], xo = {
8304
+ }, wo = ["id"], So = {
8314
8305
  key: 1,
8315
8306
  id: "virto-oz-gradient-animated",
8316
8307
  gradientUnits: "userSpaceOnUse",
@@ -8326,7 +8317,7 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
8326
8317
  animated: { type: Boolean, default: !1 }
8327
8318
  },
8328
8319
  setup(n) {
8329
- const e = g(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
8320
+ const e = y(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
8330
8321
  return (t, s) => (A(), U("svg", {
8331
8322
  width: n.width,
8332
8323
  height: n.height,
@@ -8339,7 +8330,7 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
8339
8330
  d: "M40.1199 2.41576C45.6989 -0.805254 52.5724 -0.805253 58.1514 2.41576L89.2556 20.3738C94.8345 23.5948 98.2713 29.5475 98.2713 35.9895V71.9055C98.2713 78.3475 94.8345 84.3002 89.2556 87.5212L58.1514 105.479C52.5724 108.7 45.6989 108.7 40.1199 105.479L9.01574 87.5212C3.43678 84.3002 0 78.3475 0 71.9055V35.9895C0 29.5475 3.43678 23.5948 9.01574 20.3738L40.1199 2.41576Z",
8340
8331
  fill: "white"
8341
8332
  }, null, -1)),
8342
- n.animated ? (A(), U("path", wo)) : (A(), U("g", {
8333
+ n.animated ? (A(), U("path", bo)) : (A(), U("g", {
8343
8334
  key: 0,
8344
8335
  "clip-path": `url(#${e.value})`
8345
8336
  }, [...s[0] || (s[0] = [
@@ -8356,7 +8347,7 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
8356
8347
  })
8357
8348
  ])
8358
8349
  ], -1)
8359
- ])], 8, bo)),
8350
+ ])], 8, go)),
8360
8351
  s[4] || (s[4] = $("path", {
8361
8352
  d: "M72.1266 54.0945C72.1266 60.0873 74.3028 71.0379 60.6238 82.8517C65.2871 73.0587 55.8339 77.1002 49.1209 77.1002C36.4152 77.1002 26.1152 66.8002 26.1152 54.0945C26.1152 41.3889 36.4152 31.0889 49.1209 31.0889C61.8266 31.0889 72.1266 41.3889 72.1266 54.0945Z",
8362
8353
  fill: "white"
@@ -8388,14 +8379,14 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
8388
8379
  id: e.value
8389
8380
  }, [...s[1] || (s[1] = [
8390
8381
  $("path", { d: "M72.9199 46.4165C73.2527 46.9495 73.5831 47.4996 73.9092 48.0679C78.4022 55.8976 79.0605 66.3551 76.7793 76.6079C74.5635 86.5668 69.6096 96.1504 62.9795 102.692L58.1514 105.48C52.5725 108.701 45.699 108.701 40.1201 105.48L21.665 94.8247C29.1398 95.4723 37.0781 94.4072 44.3848 91.9233C54.5984 88.4512 63.7463 82.1497 68.6807 73.6548C75.124 62.5619 75.4351 53.2694 72.9199 46.4165ZM56.5205 29.5093C65.5697 29.5331 75.1259 33.9964 83.0215 40.8853C89.9848 46.9608 95.5441 54.8286 98.2715 62.9478V71.9058C98.2715 78.3478 94.8348 84.301 89.2559 87.522L69.4658 98.9468C74.0688 92.6731 77.4601 84.9996 79.207 77.1479C81.5723 66.517 80.9666 55.3703 76.0654 46.8296C69.6817 35.7054 61.7917 30.789 54.6006 29.5396C55.2271 29.5179 55.867 29.5076 56.5205 29.5093ZM0 50.688C3.16812 57.476 8.04614 63.7935 13.8389 68.853C21.9305 75.9204 31.9368 80.6465 41.7578 80.6724C54.5833 80.706 62.7851 76.3308 67.4629 70.728C67.1684 71.2812 66.8584 71.8408 66.5303 72.4058C61.9844 80.2318 53.417 86.2251 43.584 89.5679C34.4355 92.6779 24.3375 93.4401 15.6328 91.3423L9.01562 87.522C3.43667 84.301 0 78.3478 0 71.9058V50.688ZM26.7559 10.1313C22.5672 16.2131 19.6599 23.483 18.2695 30.9126C16.3077 41.3962 17.3358 52.3558 22.2188 60.8647C28.6034 71.9905 36.4946 76.9061 43.6865 78.1548C43.0594 78.1765 42.4188 78.1868 41.7646 78.1851C32.7113 78.1612 23.2602 73.7801 15.4746 66.98C8.2197 60.6434 2.52684 52.3035 0 43.7075V35.9897C6.33247e-05 29.5479 3.43687 23.5955 9.01562 20.3745L26.7559 10.1313ZM51.2432 31.6978C54.0287 31.7659 57.0796 32.4389 60.1875 33.9976C58.8529 33.7029 57.5584 33.677 56.3965 33.9722L57.0088 36.3833C58.4774 36.0102 60.6741 36.4134 63.0332 37.8237C65.3553 39.212 67.6865 41.4953 69.375 44.5923C70.7081 47.0376 71.6489 50.015 71.8535 53.4839C71.4414 52.1828 70.818 51.0505 69.9824 50.1929L68.2012 51.9282C69.2585 53.0135 70.0076 55.1176 69.9658 57.8657C69.9246 60.5708 69.1121 63.731 67.2744 66.7417C65.8225 69.1203 63.7129 71.4251 60.8086 73.3374C61.7311 72.329 62.4012 71.2217 62.7266 70.0679L60.333 69.3931C59.9218 70.8514 58.4742 72.5523 56.0732 73.8901C53.71 75.207 50.5672 76.0837 47.041 75.9976C44.2551 75.9294 41.204 75.2549 38.0957 73.6958C39.4307 73.9907 40.7254 74.0184 41.8877 73.7231L41.2754 71.312C39.8069 71.6851 37.6101 71.2818 35.251 69.8716C32.9289 68.4834 30.5977 66.2 28.9092 63.103C27.5754 60.6565 26.6337 57.6775 26.4297 54.2065C26.8418 55.5096 27.4661 56.6438 28.3027 57.5024L30.084 55.7661C29.0267 54.6807 28.2775 52.5767 28.3193 49.8286C28.3606 47.1236 29.173 43.9633 31.0107 40.9526C32.4621 38.5751 34.5702 36.2706 37.4727 34.3589C36.5514 35.3666 35.8827 36.4736 35.5576 37.6265L37.9512 38.3013C38.3625 36.8429 39.8101 35.142 42.2109 33.8042C44.5742 32.4874 47.717 31.6116 51.2432 31.6978ZM40.1201 2.4165C45.6991 -0.804509 52.5724 -0.804509 58.1514 2.4165L75.6777 12.5356C68.4683 12.0708 60.8765 13.1991 53.8691 15.6333C43.6671 19.1774 34.5353 25.5492 29.6035 34.0396C23.1612 45.1305 22.8486 54.4223 25.3623 61.2749C25.0301 60.7429 24.7004 60.1936 24.375 59.6265C19.8639 51.765 18.8286 41.4457 20.7139 31.3706C22.4486 22.1007 26.633 13.1734 32.6709 6.71631L40.1201 2.4165ZM54.6855 17.9829C63.3703 14.966 72.9092 14.0715 81.3008 15.7817L89.2559 20.3745C94.8346 23.5955 98.2714 29.5479 98.2715 35.9897V56.4692C95.0606 49.9731 90.2759 43.9144 84.6562 39.0112C76.4636 31.8632 66.3524 27.0488 56.5273 27.0229C43.6978 26.9893 35.4935 31.3659 30.8164 36.9712C31.1117 36.4161 31.4247 35.8554 31.7539 35.2886C36.3024 27.4582 44.8633 21.395 54.6855 17.9829Z" }, null, -1)
8391
- ])], 8, So)),
8392
- n.animated ? (A(), U("linearGradient", xo, [...s[2] || (s[2] = [
8393
- xs('<stop offset="0%" stop-color="#FF9533"><animate attributeName="stop-color" values="#FF9533;#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8;#FF9533" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="25%" stop-color="#FF4FBB"><animate attributeName="stop-color" values="#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8;#FF9533;#FF4FBB" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="50%" stop-color="#EAFF4F"><animate attributeName="stop-color" values="#EAFF4F;#1C91FC;#9A2DF8;#FF9533;#FF4FBB;#EAFF4F" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="75%" stop-color="#1C91FC"><animate attributeName="stop-color" values="#1C91FC;#9A2DF8;#FF9533;#FF4FBB;#EAFF4F;#1C91FC" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="100%" stop-color="#9A2DF8"><animate attributeName="stop-color" values="#9A2DF8;#FF9533;#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8" dur="4s" repeatCount="indefinite"></animate></stop>', 5)
8382
+ ])], 8, wo)),
8383
+ n.animated ? (A(), U("linearGradient", So, [...s[2] || (s[2] = [
8384
+ Ss('<stop offset="0%" stop-color="#FF9533"><animate attributeName="stop-color" values="#FF9533;#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8;#FF9533" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="25%" stop-color="#FF4FBB"><animate attributeName="stop-color" values="#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8;#FF9533;#FF4FBB" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="50%" stop-color="#EAFF4F"><animate attributeName="stop-color" values="#EAFF4F;#1C91FC;#9A2DF8;#FF9533;#FF4FBB;#EAFF4F" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="75%" stop-color="#1C91FC"><animate attributeName="stop-color" values="#1C91FC;#9A2DF8;#FF9533;#FF4FBB;#EAFF4F;#1C91FC" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="100%" stop-color="#9A2DF8"><animate attributeName="stop-color" values="#9A2DF8;#FF9533;#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8" dur="4s" repeatCount="indefinite"></animate></stop>', 5)
8394
8385
  ])])) : W("", !0)
8395
8386
  ])
8396
- ], 8, go));
8387
+ ], 8, yo));
8397
8388
  }
8398
- }), Ao = { class: "vc-ai-agent-header" }, Io = { class: "vc-ai-agent-header__icon" }, Co = { class: "vc-ai-agent-header__wrapper" }, Eo = { class: "vc-ai-agent-header__content" }, Oo = { class: "vc-ai-agent-header__title" }, To = { class: "vc-ai-agent-header__controls" }, Po = /* @__PURE__ */ F({
8389
+ }), xo = { class: "vc-ai-agent-header" }, Ao = { class: "vc-ai-agent-header__icon" }, Io = { class: "vc-ai-agent-header__wrapper" }, Co = { class: "vc-ai-agent-header__content" }, Eo = { class: "vc-ai-agent-header__title" }, Oo = { class: "vc-ai-agent-header__controls" }, To = /* @__PURE__ */ F({
8399
8390
  __name: "VcAiAgentHeader",
8400
8391
  props: {
8401
8392
  title: {},
@@ -8404,20 +8395,20 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
8404
8395
  },
8405
8396
  emits: ["close", "expand", "collapse"],
8406
8397
  setup(n) {
8407
- return (e, t) => (A(), U("div", Ao, [
8408
- $("div", Io, [
8398
+ return (e, t) => (A(), U("div", xo, [
8399
+ $("div", Ao, [
8409
8400
  V(ds, {
8410
8401
  width: 22,
8411
8402
  height: 24,
8412
8403
  "show-dots": ""
8413
8404
  })
8414
8405
  ]),
8415
- $("div", Co, [
8416
- $("div", Eo, [
8417
- $("div", Oo, pe(n.title), 1)
8406
+ $("div", Io, [
8407
+ $("div", Co, [
8408
+ $("div", Eo, pe(n.title), 1)
8418
8409
  ])
8419
8410
  ]),
8420
- $("div", To, [
8411
+ $("div", Oo, [
8421
8412
  n.isExpanded ? (A(), U("div", {
8422
8413
  key: 0,
8423
8414
  class: "vc-ai-agent-header__button",
@@ -8443,32 +8434,32 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
8443
8434
  ])
8444
8435
  ]));
8445
8436
  }
8446
- }), No = { class: "vc-ai-agent-loader" }, ko = { class: "vc-ai-agent-loader__content" }, jo = { class: "vc-ai-agent-loader__logo" }, Uo = {
8437
+ }), Po = { class: "vc-ai-agent-loader" }, No = { class: "vc-ai-agent-loader__content" }, ko = { class: "vc-ai-agent-loader__logo" }, jo = {
8447
8438
  key: 0,
8448
8439
  class: "vc-ai-agent-loader__text"
8449
- }, Do = /* @__PURE__ */ F({
8440
+ }, Uo = /* @__PURE__ */ F({
8450
8441
  __name: "VcAiAgentLoader",
8451
8442
  props: {
8452
8443
  text: {}
8453
8444
  },
8454
8445
  setup(n) {
8455
- return (e, t) => (A(), U("div", No, [
8456
- $("div", ko, [
8457
- $("div", jo, [
8446
+ return (e, t) => (A(), U("div", Po, [
8447
+ $("div", No, [
8448
+ $("div", ko, [
8458
8449
  V(ds, {
8459
8450
  width: 80,
8460
8451
  height: 87,
8461
8452
  animated: ""
8462
8453
  })
8463
8454
  ]),
8464
- n.text ? (A(), U("p", Uo, pe(n.text), 1)) : W("", !0)
8455
+ n.text ? (A(), U("p", jo, pe(n.text), 1)) : W("", !0)
8465
8456
  ])
8466
8457
  ]));
8467
8458
  }
8468
- }), Bo = { class: "vc-ai-agent-iframe" }, Ro = ["src"], Jo = {
8459
+ }), Do = { class: "vc-ai-agent-iframe" }, Bo = ["src"], Ro = {
8469
8460
  key: 1,
8470
8461
  class: "vc-ai-agent-iframe__placeholder"
8471
- }, $o = /* @__PURE__ */ F({
8462
+ }, Jo = /* @__PURE__ */ F({
8472
8463
  __name: "VcAiAgentIframe",
8473
8464
  props: {
8474
8465
  url: {}
@@ -8484,10 +8475,10 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
8484
8475
  };
8485
8476
  return X(() => s.url, () => {
8486
8477
  o.value = !0;
8487
- }), (c, h) => (A(), U("div", Bo, [
8478
+ }), (c, h) => (A(), U("div", Do, [
8488
8479
  V(Dt, { name: "fade" }, {
8489
8480
  default: me(() => [
8490
- o.value && n.url ? (A(), G(Do, {
8481
+ o.value && n.url ? (A(), G(Uo, {
8491
8482
  key: 0,
8492
8483
  text: c.$t("AI_AGENT.LOADING")
8493
8484
  }, null, 8, ["text"])) : W("", !0)
@@ -8503,7 +8494,7 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
8503
8494
  sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
8504
8495
  allow: "clipboard-read; clipboard-write",
8505
8496
  onLoad: u
8506
- }, null, 42, Ro)) : (A(), U("div", Jo, [
8497
+ }, null, 42, Bo)) : (A(), U("div", Ro, [
8507
8498
  V(L(ie), {
8508
8499
  icon: "lucide-sparkles",
8509
8500
  size: "xl",
@@ -8513,19 +8504,19 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
8513
8504
  ]))
8514
8505
  ]));
8515
8506
  }
8516
- }), zo = { class: "vc-ai-agent-panel__content" }, ou = /* @__PURE__ */ F({
8507
+ }), $o = { class: "vc-ai-agent-panel__content" }, nu = /* @__PURE__ */ F({
8517
8508
  __name: "VcAiAgentPanel",
8518
8509
  setup(n) {
8519
- const e = M(ct), t = M(di, !1);
8510
+ const e = M(ct), t = M(fi, !1);
8520
8511
  e || console.error("[VcAiAgentPanel] AiAgentService not provided");
8521
- const s = g(
8512
+ const s = y(
8522
8513
  () => e?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
8523
- ), r = g(() => !t && (e?.isOpen.value ?? !1)), i = g(() => e?.isExpanded.value ?? !1), o = g(() => e?.totalItemsCount.value ?? 0), u = g(() => ({
8514
+ ), r = y(() => !t && (e?.isOpen.value ?? !1)), i = y(() => e?.isExpanded.value ?? !1), o = y(() => e?.totalItemsCount.value ?? 0), u = y(() => ({
8524
8515
  width: i.value ? `${s.value.expandedWidth ?? 500}px` : `${s.value.width ?? 362}px`
8525
8516
  })), c = () => e?.closePanel(), h = () => e?.expandPanel(), a = () => e?.collapsePanel(), m = (d) => {
8526
8517
  e?._setIframeRef(d);
8527
8518
  };
8528
- return As(() => {
8519
+ return xs(() => {
8529
8520
  e?._setIframeRef(null);
8530
8521
  }), (d, p) => (A(), G(Dt, { name: "ai-panel-slide" }, {
8531
8522
  default: me(() => [
@@ -8536,7 +8527,7 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
8536
8527
  }]),
8537
8528
  style: Te(u.value)
8538
8529
  }, [
8539
- V(Po, {
8530
+ V(To, {
8540
8531
  title: s.value.title,
8541
8532
  "is-expanded": i.value,
8542
8533
  "items-count": o.value,
@@ -8544,8 +8535,8 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
8544
8535
  onExpand: h,
8545
8536
  onCollapse: a
8546
8537
  }, null, 8, ["title", "is-expanded", "items-count"]),
8547
- $("div", zo, [
8548
- V($o, {
8538
+ $("div", $o, [
8539
+ V(Jo, {
8549
8540
  url: s.value.url,
8550
8541
  onIframeReady: m
8551
8542
  }, null, 8, ["url"])
@@ -8557,105 +8548,105 @@ const go = ["width", "height"], bo = ["clip-path"], wo = {
8557
8548
  }
8558
8549
  });
8559
8550
  export {
8560
- On as $,
8561
- ru as A,
8562
- ti as B,
8563
- pi as C,
8564
- uo as D,
8565
- El as E,
8566
- en as F,
8567
- Ol as G,
8568
- Tl as H,
8569
- Vs as I,
8570
- Pl as J,
8571
- Nl as K,
8572
- ai as L,
8573
- dl as M,
8574
- ln as N,
8575
- bl as O,
8576
- yl as P,
8577
- Xl as Q,
8578
- gl as R,
8579
- Gl as S,
8580
- hi as T,
8581
- ci as U,
8582
- Ql as V,
8583
- Sl as W,
8584
- eu as X,
8585
- _l as Y,
8586
- En as Z,
8587
- Di as _,
8588
- ii as a,
8551
+ Cn as $,
8552
+ tu as A,
8553
+ ei as B,
8554
+ Gr as C,
8555
+ lo as D,
8556
+ Cl as E,
8557
+ Qi as F,
8558
+ El as G,
8559
+ Ol as H,
8560
+ Hs as I,
8561
+ Tl as J,
8562
+ Pl as K,
8563
+ ci as L,
8564
+ fl as M,
8565
+ nn as N,
8566
+ gl as O,
8567
+ vl as P,
8568
+ Yl as Q,
8569
+ yl as R,
8570
+ Ml as S,
8571
+ ai as T,
8572
+ ui as U,
8573
+ Xl as V,
8574
+ wl as W,
8575
+ _l as X,
8576
+ Ql as Y,
8577
+ In as Z,
8578
+ ji as _,
8579
+ si as a,
8589
8580
  rr as a$,
8590
- Tn as a0,
8591
- Qi as a1,
8592
- wl as a2,
8581
+ En as a0,
8582
+ Yi as a1,
8583
+ bl as a2,
8593
8584
  Lt as a3,
8594
- fi as a4,
8585
+ hi as a4,
8595
8586
  he as a5,
8596
8587
  Ft as a6,
8597
- Dl as a7,
8588
+ Ul as a7,
8598
8589
  Q as a8,
8599
- Bl as a9,
8590
+ Dl as a9,
8600
8591
  ht as aA,
8601
8592
  Vt as aB,
8602
- Kr as aC,
8593
+ Hr as aC,
8603
8594
  Zt as aD,
8604
8595
  ft as aE,
8605
8596
  Yt as aF,
8606
- Ki as aG,
8607
- Hr as aH,
8597
+ Wi as aG,
8598
+ Vr as aH,
8608
8599
  Xt as aI,
8609
- $i as aJ,
8610
- qi as aK,
8611
- di as aL,
8612
- zi as aM,
8613
- Mn as aN,
8614
- Bi as aO,
8600
+ Ri as aJ,
8601
+ Gi as aK,
8602
+ fi as aL,
8603
+ Ji as aM,
8604
+ Ln as aN,
8605
+ Ui as aO,
8615
8606
  Qt as aP,
8616
8607
  se as aQ,
8617
- vl as aR,
8608
+ ml as aR,
8618
8609
  _t as aS,
8619
8610
  _e as aT,
8620
- kl as aU,
8611
+ Nl as aU,
8621
8612
  er as aV,
8622
- zl as aW,
8613
+ $l as aW,
8623
8614
  et as aX,
8624
- Hi as aY,
8625
- Li as aZ,
8615
+ qi as aY,
8616
+ $i as aZ,
8626
8617
  tr as a_,
8627
- ui as aa,
8628
- hl as ab,
8629
- ul as ac,
8618
+ li as aa,
8619
+ al as ab,
8620
+ ll as ac,
8630
8621
  Mr as ad,
8631
8622
  $t as ae,
8632
- ts as af,
8633
- Rl as ag,
8634
- Gr as ah,
8623
+ rs as af,
8624
+ Bl as ag,
8625
+ Wr as ah,
8635
8626
  Mt as ai,
8636
8627
  Gt as aj,
8637
- Wr as ak,
8628
+ qr as ak,
8638
8629
  Wt as al,
8639
8630
  qt as am,
8640
8631
  at as an,
8641
8632
  Qe as ao,
8642
- jl as ap,
8643
- qr as aq,
8644
- ml as ar,
8645
- Jl as as,
8633
+ kl as ap,
8634
+ Kr as aq,
8635
+ pl as ar,
8636
+ Rl as as,
8646
8637
  Kt as at,
8647
8638
  we as au,
8648
- xl as av,
8639
+ Sl as av,
8649
8640
  Ht as aw,
8650
- Wi as ax,
8651
- $l as ay,
8641
+ Mi as ax,
8642
+ Jl as ay,
8652
8643
  De as az,
8653
- Ci as b,
8654
- eo as b$,
8644
+ Ai as b,
8645
+ _n as b$,
8655
8646
  sr as b0,
8656
8647
  ir as b1,
8657
8648
  nr as b2,
8658
- Ll as b3,
8649
+ zl as b3,
8659
8650
  or as b4,
8660
8651
  lr as b5,
8661
8652
  ur as b6,
@@ -8663,111 +8654,111 @@ export {
8663
8654
  fe as b8,
8664
8655
  tt as b9,
8665
8656
  Oe as bA,
8666
- Yr as bB,
8657
+ Xr as bB,
8667
8658
  fr as bC,
8668
- Ji as bD,
8659
+ Bi as bD,
8669
8660
  ee as bE,
8670
8661
  dr as bF,
8671
- ol as bG,
8672
- Mi as bH,
8673
- Cl as bI,
8662
+ nl as bG,
8663
+ Li as bH,
8664
+ Il as bI,
8674
8665
  pr as bJ,
8675
- Gi as bK,
8666
+ Fi as bK,
8676
8667
  le as bL,
8677
- Xi as bM,
8678
- Xr as bN,
8668
+ Zi as bM,
8669
+ Qr as bN,
8679
8670
  mr as bO,
8680
8671
  Ie as bP,
8681
8672
  vr as bQ,
8682
8673
  ot as bR,
8683
- Qr as bS,
8674
+ _r as bS,
8684
8675
  yr as bT,
8685
- _r as bU,
8686
- nl as bV,
8676
+ es as bU,
8677
+ il as bV,
8687
8678
  Ur as bW,
8688
8679
  os as bX,
8689
- es as bY,
8690
- rs as bZ,
8691
- tu as b_,
8692
- cl as ba,
8680
+ ts as bY,
8681
+ ss as bZ,
8682
+ eu as b_,
8683
+ ul as ba,
8693
8684
  rt as bb,
8694
- Fl as bc,
8695
- Il as bd,
8696
- Al as be,
8697
- fl as bf,
8698
- Vr as bg,
8685
+ Ll as bc,
8686
+ Al as bd,
8687
+ xl as be,
8688
+ hl as bf,
8689
+ Zr as bg,
8699
8690
  ar as bh,
8700
- Ml as bi,
8691
+ Fl as bi,
8701
8692
  Ae as bj,
8702
- Vi as bk,
8693
+ Ki as bk,
8703
8694
  Be as bl,
8704
8695
  st as bm,
8705
8696
  dt as bn,
8706
- Zi as bo,
8697
+ Hi as bo,
8707
8698
  pt as bp,
8708
8699
  it as bq,
8709
8700
  mt as br,
8710
- Fi as bs,
8711
- Yi as bt,
8701
+ zi as bs,
8702
+ Vi as bt,
8712
8703
  Re as bu,
8713
- Ri as bv,
8704
+ Di as bv,
8714
8705
  hr as bw,
8715
8706
  nt as bx,
8716
- ll as by,
8717
- Zr as bz,
8718
- Ti as c,
8719
- _n as c0,
8720
- to as c1,
8721
- Qn as c2,
8722
- Ks as c3,
8723
- Vl as c4,
8724
- Yl as c5,
8725
- Zs as c6,
8726
- sl as c7,
8727
- il as c8,
8728
- Xn as c9,
8729
- Zl as ca,
8730
- Kl as cb,
8731
- Hl as cc,
8732
- ro as cd,
8733
- is as ce,
8734
- ns as cf,
8735
- zn as cg,
8736
- dn as ch,
8737
- Nn as ci,
8738
- cn as cj,
8739
- sn as ck,
8740
- al as cl,
8707
+ ol as by,
8708
+ Yr as bz,
8709
+ Ei as c,
8710
+ Qn as c0,
8711
+ eo as c1,
8712
+ Xn as c2,
8713
+ qs as c3,
8714
+ Hl as c4,
8715
+ Zl as c5,
8716
+ Vs as c6,
8717
+ rl as c7,
8718
+ sl as c8,
8719
+ Yn as c9,
8720
+ Vl as ca,
8721
+ ql as cb,
8722
+ Kl as cc,
8723
+ to as cd,
8724
+ ns as ce,
8725
+ qn as cf,
8726
+ Jn as cg,
8727
+ hn as ch,
8728
+ Tn as ci,
8729
+ ln as cj,
8730
+ tn as ck,
8731
+ cl,
8741
8732
  ve as cm,
8742
- kn as cn,
8733
+ Pn as cn,
8743
8734
  as as co,
8744
8735
  hs as cp,
8745
8736
  cs as cq,
8746
8737
  ls as cr,
8747
- su as cs,
8738
+ ru as cs,
8748
8739
  St as ct,
8749
- yn as cu,
8740
+ mn as cu,
8750
8741
  ie as d,
8751
- oi as e,
8752
- mi as f,
8753
- ou as g,
8754
- nu as h,
8755
- iu as i,
8742
+ ni as e,
8743
+ di as f,
8744
+ nu as g,
8745
+ iu as h,
8746
+ su as i,
8756
8747
  ct as j,
8757
- li as k,
8748
+ oi as k,
8758
8749
  R as l,
8759
- An as m,
8760
- pl as n,
8750
+ Sn as m,
8751
+ dl as n,
8761
8752
  zt as o,
8762
8753
  Ct as p,
8763
- Ln as q,
8764
- ql as r,
8765
- Wl as s,
8754
+ $n as q,
8755
+ Wl as r,
8756
+ Gl as s,
8766
8757
  Z as t,
8767
- ni as u,
8758
+ ii as u,
8768
8759
  be as v,
8769
- Cn as w,
8770
- Ul as x,
8771
- lo as y,
8760
+ An as w,
8761
+ jl as x,
8762
+ oo as y,
8772
8763
  vt as z
8773
8764
  };