@vc-shell/framework 2.0.0-alpha.29 → 2.0.0-alpha.30

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 (27) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/ai-agent/index.js +2 -2
  3. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-Db771GeP.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-D3sixNg-.js} +1249 -1228
  4. package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-Ce5JuGln.js → VcTableAdapter.vue_vue_type_style_index_0_lang-CR4ei-0r.js} +6050 -5956
  5. package/dist/chunks/{index-DG6mwrja.js → index-BZeKYd8J.js} +1 -1
  6. package/dist/chunks/{index-WxG6Hq5V.js → index-BzpX90RF.js} +2 -2
  7. package/dist/chunks/{vc-toast.vue_vue_type_style_index_0_lang-CYlMO79c.js → vc-toast.vue_vue_type_style_index_0_lang-DsKZR5xz.js} +1 -1
  8. package/dist/core/blade-navigation/types/index.d.ts +27 -0
  9. package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
  10. package/dist/core/composables/useBlade/index.d.ts +5 -1
  11. package/dist/core/composables/useBlade/index.d.ts.map +1 -1
  12. package/dist/framework.js +104 -102
  13. package/dist/index.css +1 -1
  14. package/dist/injection-keys.d.ts.map +1 -1
  15. package/dist/locales/de.js +2 -1
  16. package/dist/locales/en.js +2 -1
  17. package/dist/locales/en.json +2 -1
  18. package/dist/locales/types.d.ts +1 -0
  19. package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
  20. package/dist/tsconfig.tsbuildinfo +1 -1
  21. package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.vue.d.ts.map +1 -1
  22. package/dist/ui/components/organisms/vc-blade/_internal/BladeStatusBanners.vue.d.ts.map +1 -1
  23. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  24. package/dist/ui/components/organisms/vc-data-table/components/DataTableHeader.vue.d.ts.map +1 -1
  25. package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileCard.vue.d.ts.map +1 -1
  26. package/dist/ui/index.js +3 -3
  27. package/package.json +4 -4
@@ -1,20 +1,20 @@
1
- import { defineComponent as L, computed as v, onMounted as Ie, openBlock as C, createElementBlock as R, normalizeStyle as Ce, normalizeClass as K, toDisplayString as he, markRaw as Ot, createBlock as J, resolveDynamicComponent as ze, createElementVNode as N, mergeProps as xe, createCommentVNode as H, resolveComponent as Ne, inject as F, unref as D, renderSlot as ye, ref as O, watch as X, nextTick as ne, onBeforeUnmount as at, toValue as le, getCurrentInstance as Ee, withKeys as ft, withModifiers as Xe, Teleport as qt, createVNode as Z, Transition as st, withCtx as fe, withDirectives as it, Fragment as Fe, renderList as ot, createTextVNode as pt, toRef as Rt, reactive as Zt, createApp as Yt, onErrorCaptured as Xt, shallowRef as lt, provide as Me, vShow as Vt, h as Qt, isRef as er, createStaticVNode as tr, onUnmounted as rr } from "vue";
2
- import { o as kt, s as nr, c as Oe } from "./vendor-lodash-es-BwHYzZ39.js";
3
- import { u as ar, a as sr, o as ir } from "./vendor-vueuse-core-CPOkeLul.js";
4
- import { u as or, j as Bt, k as lr } from "./vendor-vueuse-shared-Byno6iDO.js";
5
- import { c as ur, u as cr } from "./vendor-vue-i18n-BSCeQYoP.js";
6
- import { useRouter as dr, RouterView as hr } from "vue-router";
7
- import { C as fr } from "./vendor-microsoft-applicationinsights-core-js-DYtaESwI.js";
8
- import { v as $t, O as pr } from "./vendor-vueuse-components-C3DWJalC.js";
9
- import { u as mr } from "./vendor-floating-ui-vue-sCrhit51.js";
10
- import { f as vr, s as gr, o as mt, b as br } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
11
- import { defineRule as _e } from "vee-validate";
12
- import { a as vt } from "./vendor-vee-validate-rules-4oWUZPpG.js";
13
- import { _ as yr } from "./vendor-cypress-signalr-mock-itnm2wpA.js";
14
- import { H as xr, L as Er } from "./vendor-microsoft-signalr-Bgpbb4fW.js";
1
+ import { defineComponent as G, computed as v, onMounted as Te, openBlock as _, createElementBlock as R, normalizeStyle as _e, normalizeClass as q, toDisplayString as he, markRaw as Rt, createBlock as W, resolveDynamicComponent as Fe, createElementVNode as $, mergeProps as we, createCommentVNode as K, resolveComponent as je, inject as F, unref as D, renderSlot as xe, ref as O, watch as V, nextTick as ae, onBeforeUnmount as st, toValue as le, getCurrentInstance as me, withKeys as pt, withModifiers as Ve, Teleport as Yt, createVNode as Y, Transition as it, withCtx as fe, withDirectives as ot, Fragment as Me, renderList as lt, createTextVNode as mt, toRef as kt, reactive as Xt, createApp as Vt, onErrorCaptured as Qt, shallowRef as ut, provide as Ee, vShow as er, h as tr, isRef as rr, createStaticVNode as nr, onUnmounted as ar } from "vue";
2
+ import { o as Bt, s as sr, c as Re } from "./vendor-lodash-es-BwHYzZ39.js";
3
+ import { u as ir, a as or, o as lr } from "./vendor-vueuse-core-CPOkeLul.js";
4
+ import { u as ur, j as $t, k as cr } from "./vendor-vueuse-shared-Byno6iDO.js";
5
+ import { c as dr, u as hr } from "./vendor-vue-i18n-BSCeQYoP.js";
6
+ import { useRouter as fr, RouterView as pr } from "vue-router";
7
+ import { C as mr } from "./vendor-microsoft-applicationinsights-core-js-DYtaESwI.js";
8
+ import { v as Nt, O as vr } from "./vendor-vueuse-components-C3DWJalC.js";
9
+ import { u as gr } from "./vendor-floating-ui-vue-sCrhit51.js";
10
+ import { f as br, s as yr, o as vt, b as xr } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
11
+ import { defineRule as Se } from "vee-validate";
12
+ import { a as gt } from "./vendor-vee-validate-rules-4oWUZPpG.js";
13
+ import { _ as Er } from "./vendor-cypress-signalr-mock-itnm2wpA.js";
14
+ import { H as wr, L as Cr } from "./vendor-microsoft-signalr-Bgpbb4fW.js";
15
15
  import "./ExtensionPoint.vue_vue_type_style_index_0_lang-B1R06zHa.js";
16
- import { L as wr } from "./vendor-lucide-vue-next-CwUrzD6N.js";
17
- const Cr = /* @__PURE__ */ L({
16
+ import { L as _r } from "./vendor-lucide-vue-next-CwUrzD6N.js";
17
+ const Sr = /* @__PURE__ */ G({
18
18
  __name: "vc-material-icon",
19
19
  props: {
20
20
  icon: {},
@@ -25,19 +25,19 @@ const Cr = /* @__PURE__ */ L({
25
25
  },
26
26
  setup(s) {
27
27
  const e = s, t = v(() => typeof e.customSize == "number" && e.customSize > 0), n = v(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
28
- return Ie(() => {
29
- }), (r, a) => (C(), R("span", {
30
- class: K([
28
+ return Te(() => {
29
+ }), (r, a) => (_(), R("span", {
30
+ class: q([
31
31
  "vc-material-icon",
32
32
  "material-symbols-" + s.type,
33
33
  !t.value && `vc-material-icon--${s.size}`,
34
34
  s.variant ? `vc-material-icon--${s.variant}` : ""
35
35
  ]),
36
- style: Ce(n.value),
36
+ style: _e(n.value),
37
37
  "aria-hidden": "true"
38
38
  }, he(s.icon), 7));
39
39
  }
40
- }), _r = /* @__PURE__ */ L({
40
+ }), Ar = /* @__PURE__ */ G({
41
41
  __name: "vc-bootstrap-icon",
42
42
  props: {
43
43
  icon: {},
@@ -47,37 +47,37 @@ const Cr = /* @__PURE__ */ L({
47
47
  },
48
48
  setup(s) {
49
49
  const e = s, t = v(() => typeof e.customSize == "number" && e.customSize > 0), n = v(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
50
- Ie(() => {
50
+ Te(() => {
51
51
  });
52
52
  const r = v(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
53
- return (a, o) => (C(), R("i", {
54
- class: K([
53
+ return (a, o) => (_(), R("i", {
54
+ class: q([
55
55
  "vc-bootstrap-icon",
56
56
  !t.value && `vc-bootstrap-icon--${s.size}`,
57
57
  r.value,
58
58
  s.variant ? `vc-bootstrap-icon--${s.variant}` : ""
59
59
  ]),
60
- style: Ce(n.value),
60
+ style: _e(n.value),
61
61
  "aria-hidden": "true"
62
62
  }, null, 6));
63
63
  }
64
64
  });
65
- function Sr() {
65
+ function Ur() {
66
66
  return Math.random().toString(36).substring(2, 9);
67
67
  }
68
- const gt = {
68
+ const bt = {
69
69
  debug: 0,
70
70
  info: 1,
71
71
  warn: 2,
72
72
  error: 3,
73
73
  none: 4
74
- }, Ar = {
74
+ }, Ir = {
75
75
  level: "warn",
76
76
  prefix: "@vc-shell/framework",
77
77
  enabled: !0
78
78
  };
79
- function j(s) {
80
- const e = { ...Ar }, t = s ? `[${e.prefix}#${s}]` : `[${e.prefix}]`, n = (r) => e.enabled ? gt[r] >= gt[e.level] : !1;
79
+ function N(s) {
80
+ const e = { ...Ir }, t = s ? `[${e.prefix}#${s}]` : `[${e.prefix}]`, n = (r) => e.enabled ? bt[r] >= bt[e.level] : !1;
81
81
  return {
82
82
  /**
83
83
  * Log debug messages (only in development)
@@ -106,7 +106,7 @@ function j(s) {
106
106
  /**
107
107
  * Create a child logger with additional context
108
108
  */
109
- child: (r) => j(s ? `${s}:${r}` : r),
109
+ child: (r) => N(s ? `${s}:${r}` : r),
110
110
  /**
111
111
  * Set the log level for this logger instance
112
112
  */
@@ -121,17 +121,17 @@ function j(s) {
121
121
  }
122
122
  };
123
123
  }
124
- const Gs = j(), Js = {
125
- core: j("core"),
126
- ui: j("ui"),
127
- shared: j("shared"),
128
- plugins: j("plugins"),
129
- services: j("services"),
130
- composables: j("composables")
124
+ const Ws = N(), Hs = {
125
+ core: N("core"),
126
+ ui: N("ui"),
127
+ shared: N("shared"),
128
+ plugins: N("plugins"),
129
+ services: N("services"),
130
+ composables: N("composables")
131
131
  };
132
- class ae extends Error {
132
+ class se extends Error {
133
133
  constructor(e, t, n) {
134
- super(e), this.code = t, this.context = n, this.name = "FrameworkError", Error.captureStackTrace && Error.captureStackTrace(this, ae);
134
+ super(e), this.code = t, this.context = n, this.name = "FrameworkError", Error.captureStackTrace && Error.captureStackTrace(this, se);
135
135
  }
136
136
  toJSON() {
137
137
  return {
@@ -143,17 +143,17 @@ class ae extends Error {
143
143
  };
144
144
  }
145
145
  }
146
- class Ws extends ae {
146
+ class Ks extends se {
147
147
  constructor(e, t) {
148
148
  super(e, "VALIDATION_ERROR", t), this.name = "ValidationError";
149
149
  }
150
150
  }
151
- class Hs extends ae {
151
+ class qs extends se {
152
152
  constructor(e, t) {
153
153
  super(e, "SERVICE_ERROR", t), this.name = "ServiceError";
154
154
  }
155
155
  }
156
- class Ur extends ae {
156
+ class Tr extends se {
157
157
  constructor(e, t) {
158
158
  super(`${e} not provided. Make sure to call the corresponding 'provide' function.`, "INJECTION_ERROR", {
159
159
  serviceName: e,
@@ -161,7 +161,7 @@ class Ur extends ae {
161
161
  }), this.name = "InjectionError";
162
162
  }
163
163
  }
164
- class Ks extends ae {
164
+ class Zs extends se {
165
165
  constructor(e, t, n) {
166
166
  super(`Failed to register '${e}': ${t}`, "REGISTRATION_ERROR", {
167
167
  componentName: e,
@@ -169,7 +169,7 @@ class Ks extends ae {
169
169
  }), this.name = "RegistrationError";
170
170
  }
171
171
  }
172
- class qs extends ae {
172
+ class Ys extends se {
173
173
  constructor(e, t, n) {
174
174
  super(e, "BLADE_ERROR", {
175
175
  bladeId: t,
@@ -177,7 +177,7 @@ class qs extends ae {
177
177
  }), this.name = "BladeError";
178
178
  }
179
179
  }
180
- class Zs extends ae {
180
+ class Xs extends se {
181
181
  constructor(e, t, n) {
182
182
  super(`Failed to load module '${e}': ${t}`, "MODULE_LOAD_ERROR", {
183
183
  moduleId: e,
@@ -185,35 +185,35 @@ class Zs extends ae {
185
185
  }), this.name = "ModuleLoadError";
186
186
  }
187
187
  }
188
- function Ir(s) {
189
- return s instanceof ae;
188
+ function Pr(s) {
189
+ return s instanceof se;
190
190
  }
191
- function Ys(s, e = "UNKNOWN_ERROR") {
192
- return Ir(s) ? s : s instanceof Error ? new ae(s.message, e, {
191
+ function Vs(s, e = "UNKNOWN_ERROR") {
192
+ return Pr(s) ? s : s instanceof Error ? new se(s.message, e, {
193
193
  originalError: s.name,
194
194
  stack: s.stack
195
- }) : new ae(String(s), e);
195
+ }) : new se(String(s), e);
196
196
  }
197
- class ge extends Error {
197
+ class be extends Error {
198
198
  details;
199
199
  originalError;
200
200
  constructor(e, t, n) {
201
201
  super(e), this.name = "DisplayableError", this.details = t, this.originalError = n;
202
202
  }
203
203
  }
204
- function Ve(s) {
205
- if (s instanceof ge)
204
+ function Qe(s) {
205
+ if (s instanceof be)
206
206
  return s;
207
207
  if (s instanceof Error && "response" in s && s.response)
208
- return Ve(s.response);
208
+ return Qe(s.response);
209
209
  if (s instanceof Error)
210
- return new ge(s.message, s.stack || String(s), s);
210
+ return new be(s.message, s.stack || String(s), s);
211
211
  if (typeof s == "string")
212
212
  try {
213
213
  const e = JSON.parse(s);
214
- return Ve(e);
214
+ return Qe(e);
215
215
  } catch {
216
- return new ge(s, s, s);
216
+ return new be(s, s, s);
217
217
  }
218
218
  if (typeof s == "object" && s !== null) {
219
219
  const e = s;
@@ -221,14 +221,14 @@ function Ve(s) {
221
221
  const r = e.status, a = e.statusText || "Error", o = `${r}: ${a}`, u = e.data;
222
222
  let l = "";
223
223
  return u ? typeof u.exceptionMessage == "string" ? l = u.exceptionMessage : typeof u.message == "string" ? l = u.message : Array.isArray(u.errors) ? l = u.errors.join(`
224
- `) : typeof u == "string" ? l = u : l = JSON.stringify(u, null, 2) : l = JSON.stringify(e, null, 2), new ge(o, l, s);
224
+ `) : typeof u == "string" ? l = u : l = JSON.stringify(u, null, 2) : l = JSON.stringify(e, null, 2), new be(o, l, s);
225
225
  }
226
226
  const t = e.message || "An unexpected error occurred.", n = e.stack || JSON.stringify(e, null, 2);
227
- return new ge(t, n, s);
227
+ return new be(t, n, s);
228
228
  }
229
- return new ge("An unknown error occurred.", String(s), s);
229
+ return new be("An unknown error occurred.", String(s), s);
230
230
  }
231
- const Tr = /* @__PURE__ */ L({
231
+ const Or = /* @__PURE__ */ G({
232
232
  __name: "vc-lucide-icon",
233
233
  props: {
234
234
  icon: {},
@@ -238,35 +238,35 @@ const Tr = /* @__PURE__ */ L({
238
238
  customSize: {}
239
239
  },
240
240
  setup(s) {
241
- const e = j("vc-lucide-icon"), t = s, n = v(() => typeof t.customSize == "number" && t.customSize > 0), r = v(() => {
241
+ const e = N("vc-lucide-icon"), t = s, n = v(() => typeof t.customSize == "number" && t.customSize > 0), r = v(() => {
242
242
  if (!t.icon) return "HelpCircleIcon";
243
243
  let u = t.icon;
244
244
  return u.startsWith("lucide-") && (u = u.substring(7)), u.toLowerCase().endsWith("icon") && (u = u.slice(0, -4)), u.includes("-") && (u = u.split("-").map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")), u.charAt(0).toUpperCase() + u.slice(1) + "Icon";
245
245
  }), a = v(() => {
246
- const u = r.value, l = wr[u];
247
- return !l || typeof l != "object" && typeof l != "function" ? (e.warn(`Lucide icon not found: ${u}`), null) : Ot(l);
246
+ const u = r.value, l = _r[u];
247
+ return !l || typeof l != "object" && typeof l != "function" ? (e.warn(`Lucide icon not found: ${u}`), null) : Rt(l);
248
248
  }), o = v(() => n.value && t.customSize ? {
249
249
  width: `${t.customSize}px`,
250
250
  height: `${t.customSize}px`
251
251
  } : {});
252
- return (u, l) => a.value ? (C(), J(ze(a.value), {
252
+ return (u, l) => a.value ? (_(), W(Fe(a.value), {
253
253
  key: 0,
254
254
  "stroke-width": t.strokeWidth,
255
- class: K([
255
+ class: q([
256
256
  "vc-lucide-icon",
257
257
  !n.value && `vc-lucide-icon--${s.size}`,
258
258
  s.variant ? `vc-lucide-icon--${s.variant}` : ""
259
259
  ]),
260
- style: Ce(o.value),
260
+ style: _e(o.value),
261
261
  "aria-hidden": "true"
262
- }, null, 8, ["stroke-width", "class", "style"])) : (C(), R("span", {
262
+ }, null, 8, ["stroke-width", "class", "style"])) : (_(), R("span", {
263
263
  key: 1,
264
- class: K(["vc-lucide-icon", !n.value && `vc-lucide-icon--${s.size}`])
264
+ class: q(["vc-lucide-icon", !n.value && `vc-lucide-icon--${s.size}`])
265
265
  }, [...l[0] || (l[0] = [
266
- N("i", { class: "vc-lucide-icon__fallback" }, null, -1)
266
+ $("i", { class: "vc-lucide-icon__fallback" }, null, -1)
267
267
  ])], 2));
268
268
  }
269
- }), Pr = /* @__PURE__ */ L({
269
+ }), Rr = /* @__PURE__ */ G({
270
270
  __name: "vc-fontawesome-icon",
271
271
  props: {
272
272
  icon: {},
@@ -276,21 +276,21 @@ const Tr = /* @__PURE__ */ L({
276
276
  },
277
277
  setup(s) {
278
278
  const e = s, t = v(() => typeof e.customSize == "number" && e.customSize > 0), n = v(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
279
- Ie(() => {
279
+ Te(() => {
280
280
  });
281
281
  const r = v(() => 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}`);
282
- return (a, o) => (C(), R("i", {
283
- class: K([
282
+ return (a, o) => (_(), R("i", {
283
+ class: q([
284
284
  "vc-fa-icon",
285
285
  !t.value && `vc-fa-icon--${s.size}`,
286
286
  r.value,
287
287
  s.variant ? `vc-fa-icon--${s.variant}` : ""
288
288
  ]),
289
- style: Ce(n.value),
289
+ style: _e(n.value),
290
290
  "aria-hidden": "true"
291
291
  }, null, 6));
292
292
  }
293
- }), Or = ["xlink:href"], Rr = /* @__PURE__ */ L({
293
+ }), kr = ["xlink:href"], Br = /* @__PURE__ */ G({
294
294
  inheritAttrs: !1,
295
295
  __name: "vc-svg-icon",
296
296
  props: {
@@ -315,18 +315,18 @@ const Tr = /* @__PURE__ */ L({
315
315
  const a = {};
316
316
  return e.customSize && (a.width = `${e.customSize}px`, a.height = `${e.customSize}px`), e.strokeWidth && (a.strokeWidth = `${e.strokeWidth}`), a;
317
317
  });
318
- return (a, o) => (C(), R("svg", xe({
318
+ return (a, o) => (_(), R("svg", we({
319
319
  xmlns: "http://www.w3.org/2000/svg",
320
320
  class: ["vc-svg-icon", !t.value && `vc-svg-icon--${s.size}`, s.variant ? `vc-svg-icon--${s.variant}` : ""],
321
321
  style: r.value
322
322
  }, a.$attrs), [
323
- n.value ? (C(), R("use", {
323
+ n.value ? (_(), R("use", {
324
324
  key: 0,
325
325
  "xlink:href": n.value
326
- }, null, 8, Or)) : H("", !0)
326
+ }, null, 8, kr)) : K("", !0)
327
327
  ], 16));
328
328
  }
329
- }), kr = ["aria-hidden", "aria-label", "role"], se = /* @__PURE__ */ L({
329
+ }), $r = ["aria-hidden", "aria-label", "role"], oe = /* @__PURE__ */ G({
330
330
  __name: "vc-icon",
331
331
  props: {
332
332
  icon: { default: "lucide-square" },
@@ -339,7 +339,7 @@ const Tr = /* @__PURE__ */ L({
339
339
  },
340
340
  setup(s) {
341
341
  const e = s;
342
- Ie(() => {
342
+ Te(() => {
343
343
  });
344
344
  const t = {
345
345
  xs: 12,
@@ -355,8 +355,8 @@ const Tr = /* @__PURE__ */ L({
355
355
  if (n.value === "material" && e.icon.startsWith("material-"))
356
356
  return e.icon.replace(/^material-/, "");
357
357
  if (n.value === "lucide" && e.icon.startsWith("lucide-")) {
358
- const g = e.icon.replace(/^lucide-/, "");
359
- return g.endsWith("Icon") ? g : `${g}Icon`;
358
+ const b = e.icon.replace(/^lucide-/, "");
359
+ return b.endsWith("Icon") ? b : `${b}Icon`;
360
360
  }
361
361
  return e.icon;
362
362
  }), a = v(() => n.value === "material"), o = v(() => n.value === "bootstrap"), u = v(() => n.value === "lucide"), l = v(() => n.value === "fontawesome"), d = v(() => {
@@ -366,31 +366,31 @@ const Tr = /* @__PURE__ */ L({
366
366
  return !1;
367
367
  if (u.value)
368
368
  try {
369
- const g = typeof r.value == "string" ? r.value : String(r.value);
370
- return Ne(g) !== g;
369
+ const b = typeof r.value == "string" ? r.value : String(r.value);
370
+ return je(b) !== b;
371
371
  } catch {
372
372
  return !1;
373
373
  }
374
374
  try {
375
- return Ne(e.icon) !== e.icon;
375
+ return je(e.icon) !== e.icon;
376
376
  } catch {
377
377
  return !1;
378
378
  }
379
379
  }), c = v(() => {
380
380
  if (typeof e.icon != "string")
381
- return Ot(e.icon);
381
+ return Rt(e.icon);
382
382
  if (["fontawesome", "bootstrap", "material"].includes(n.value))
383
383
  return "i";
384
384
  try {
385
- const g = typeof r.value == "string" ? r.value : String(r.value), P = Ne(g);
386
- return P !== g ? P : "i";
385
+ const b = typeof r.value == "string" ? r.value : String(r.value), P = je(b);
386
+ return P !== b ? P : "i";
387
387
  } catch {
388
388
  return "i";
389
389
  }
390
- }), f = v(() => a.value ? Cr : o.value ? _r : u.value ? Tr : l.value ? Pr : A.value ? Rr : d.value ? c.value : "i"), h = v(() => e.customSize ? e.customSize : t[e.size]), m = v(() => {
391
- const g = {};
392
- return d.value && e.customSize && (g.width = `${e.customSize}px`, g.height = `${e.customSize}px`), g;
393
- }), b = v(() => e.customSize ? {
390
+ }), f = v(() => a.value ? Sr : o.value ? Ar : u.value ? Or : l.value ? Rr : U.value ? Br : d.value ? c.value : "i"), h = v(() => e.customSize ? e.customSize : t[e.size]), m = v(() => {
391
+ const b = {};
392
+ return d.value && e.customSize && (b.width = `${e.customSize}px`, b.height = `${e.customSize}px`), b;
393
+ }), g = v(() => e.customSize ? {
394
394
  fontSize: `${e.customSize}px`
395
395
  } : {}), S = v(() => a.value ? {
396
396
  icon: typeof r.value == "string" ? r.value.replace(/-outlined$|-rounded$|-sharp$/, "") : r.value,
@@ -421,7 +421,7 @@ const Tr = /* @__PURE__ */ L({
421
421
  variant: e.variant,
422
422
  customSize: e.customSize
423
423
  // Set custom size without scaling
424
- } : A.value ? {
424
+ } : U.value ? {
425
425
  icon: E.value,
426
426
  size: e.size,
427
427
  variant: e.variant,
@@ -432,16 +432,16 @@ const Tr = /* @__PURE__ */ L({
432
432
  width: h.value,
433
433
  height: h.value,
434
434
  color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
435
- } : {}), A = v(() => n.value === "svg"), E = v(() => !A.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
436
- return (g, P) => s.useContainer ? (C(), R("div", xe({
435
+ } : {}), U = v(() => n.value === "svg"), E = v(() => !U.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
436
+ return (b, P) => s.useContainer ? (_(), R("div", we({
437
437
  key: 0,
438
438
  class: ["vc-icon-container", `vc-icon-container--${s.size}`],
439
- style: b.value,
439
+ style: g.value,
440
440
  "aria-hidden": s.ariaLabel ? void 0 : "true",
441
441
  "aria-label": s.ariaLabel || void 0,
442
442
  role: s.ariaLabel ? "img" : void 0
443
- }, g.$attrs), [
444
- (C(), J(ze(f.value), xe({
443
+ }, b.$attrs), [
444
+ (_(), W(Fe(f.value), we({
445
445
  class: [
446
446
  "vc-icon",
447
447
  `vc-icon--${s.size}`,
@@ -450,7 +450,7 @@ const Tr = /* @__PURE__ */ L({
450
450
  ],
451
451
  style: m.value
452
452
  }, S.value), null, 16, ["class", "style"]))
453
- ], 16, kr)) : (C(), J(ze(f.value), xe({
453
+ ], 16, $r)) : (_(), W(Fe(f.value), we({
454
454
  key: 1,
455
455
  class: [
456
456
  "vc-icon",
@@ -462,12 +462,12 @@ const Tr = /* @__PURE__ */ L({
462
462
  "aria-hidden": s.ariaLabel ? void 0 : "true",
463
463
  "aria-label": s.ariaLabel || void 0,
464
464
  role: s.ariaLabel ? "img" : void 0
465
- }, { ...S.value, ...g.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
465
+ }, { ...S.value, ...b.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
466
466
  }
467
- }), Br = Symbol("vc-button-group"), $r = ["type", "disabled", "aria-label", "aria-busy", "aria-pressed"], Nr = {
467
+ }), Nr = Symbol("vc-button-group"), jr = ["type", "disabled", "aria-label", "aria-busy", "aria-pressed"], zr = {
468
468
  key: 2,
469
469
  class: "vc-button__title"
470
- }, jr = /* @__PURE__ */ L({
470
+ }, Fr = /* @__PURE__ */ G({
471
471
  __name: "vc-button",
472
472
  props: {
473
473
  icon: {},
@@ -487,7 +487,7 @@ const Tr = /* @__PURE__ */ L({
487
487
  const t = {
488
488
  base: "default",
489
489
  xs: "sm"
490
- }, n = s, r = e, a = F(Br, null), o = v(() => {
490
+ }, n = s, r = e, a = F(Nr, null), o = v(() => {
491
491
  const d = a?.size?.value ?? n.size;
492
492
  return t[d] ?? d;
493
493
  }), u = v(() => [
@@ -504,8 +504,8 @@ const Tr = /* @__PURE__ */ L({
504
504
  function l(d) {
505
505
  !n.disabled && !n.loading && (d.preventDefault(), r("click", d));
506
506
  }
507
- return (d, c) => (C(), R("button", {
508
- class: K(u.value),
507
+ return (d, c) => (_(), R("button", {
508
+ class: q(u.value),
509
509
  type: s.type,
510
510
  disabled: s.disabled || s.loading,
511
511
  "aria-label": s.ariaLabel,
@@ -513,34 +513,34 @@ const Tr = /* @__PURE__ */ L({
513
513
  "aria-pressed": s.selected || void 0,
514
514
  onClick: l
515
515
  }, [
516
- s.loading ? (C(), J(D(se), {
516
+ s.loading ? (_(), W(D(oe), {
517
517
  key: 0,
518
518
  icon: "lucide-loader-2",
519
519
  class: "vc-button__icon tw-animate-spin",
520
520
  size: s.iconSize
521
- }, null, 8, ["size"])) : s.icon ? (C(), J(D(se), {
521
+ }, null, 8, ["size"])) : s.icon ? (_(), W(D(oe), {
522
522
  key: 1,
523
- class: K(["vc-button--icon", s.iconClass]),
523
+ class: q(["vc-button--icon", s.iconClass]),
524
524
  icon: s.icon,
525
525
  size: s.iconSize
526
- }, null, 8, ["class", "icon", "size"])) : H("", !0),
527
- d.$slots.default ? (C(), R("span", Nr, [
528
- ye(d.$slots, "default")
529
- ])) : H("", !0)
530
- ], 10, $r));
526
+ }, null, 8, ["class", "icon", "size"])) : K("", !0),
527
+ d.$slots.default ? (_(), R("span", zr, [
528
+ xe(d.$slots, "default")
529
+ ])) : K("", !0)
530
+ ], 10, jr));
531
531
  }
532
532
  });
533
- function bt(s) {
533
+ function yt(s) {
534
534
  const e = s.style.flexShrink;
535
535
  s.style.flexShrink = "0";
536
536
  const t = getComputedStyle(s), n = s.offsetWidth + parseFloat(t.marginLeft || "0") + parseFloat(t.marginRight || "0");
537
537
  return s.style.flexShrink = e, n;
538
538
  }
539
- function He(s) {
539
+ function Ke(s) {
540
540
  const e = getComputedStyle(s), t = e.columnGap || e.gap || "0px";
541
541
  return parseFloat(t) || 0;
542
542
  }
543
- function zr(s) {
543
+ function Mr(s) {
544
544
  const {
545
545
  containerRef: e,
546
546
  items: t,
@@ -548,130 +548,130 @@ function zr(s) {
548
548
  moreButtonWidth: r,
549
549
  calculationStrategy: a = "forward",
550
550
  initialItemWidth: o = 50
551
- } = s, { width: u } = ar(e), l = O(/* @__PURE__ */ new Map()), d = O(null), c = O(0), f = O([]), h = O([]), m = v(() => h.value.length > 0);
552
- let b = null;
553
- const S = /* @__PURE__ */ new Set(), A = () => d.value ?? r, E = () => {
551
+ } = s, { width: u } = ir(e), l = O(/* @__PURE__ */ new Map()), d = O(null), c = O(0), f = O([]), h = O([]), m = v(() => h.value.length > 0);
552
+ let g = null;
553
+ const S = /* @__PURE__ */ new Set(), U = () => d.value ?? r, E = () => {
554
554
  if (!e.value) return;
555
555
  const p = e.value.querySelector("[data-more-button]");
556
556
  if (p) {
557
- const y = bt(p);
557
+ const y = yt(p);
558
558
  y > 0 && (d.value = y);
559
559
  }
560
- }, g = (p) => {
560
+ }, b = (p) => {
561
561
  const y = n(p);
562
562
  return l.value.get(y) || o;
563
563
  }, P = (p, y) => {
564
564
  let x = 0;
565
- const U = [], k = [], I = c.value;
566
- for (const $ of p) {
567
- const ee = g($), ie = U.length > 0 ? I : 0;
568
- x + ie + ee <= y ? (U.push($), x += ie + ee) : k.push($);
565
+ const I = [], k = [], j = c.value;
566
+ for (const J of p) {
567
+ const re = b(J), ie = I.length > 0 ? j : 0;
568
+ x + ie + re <= y ? (I.push(J), x += ie + re) : k.push(J);
569
569
  }
570
- return { visible: U, hidden: k };
571
- }, w = () => {
570
+ return { visible: I, hidden: k };
571
+ }, C = () => {
572
572
  if (!e.value || !t.value.length) return;
573
573
  if (u.value <= 0) {
574
574
  f.value = [...t.value], h.value = [];
575
575
  return;
576
576
  }
577
- c.value = He(e.value);
577
+ c.value = Ke(e.value);
578
578
  const p = c.value, y = a === "reverse" ? [...t.value].reverse() : t.value;
579
579
  let x = P(y, u.value);
580
580
  if (x.hidden.length > 0) {
581
- const U = A(), k = x.visible.length > 0 ? p : 0;
582
- x = P(y, u.value - U - k);
581
+ const I = U(), k = x.visible.length > 0 ? p : 0;
582
+ x = P(y, u.value - I - k);
583
583
  }
584
584
  a === "reverse" ? (f.value = x.visible.reverse(), h.value = x.hidden.reverse()) : (f.value = x.visible, h.value = x.hidden);
585
- }, _ = () => {
585
+ }, A = () => {
586
586
  if (!e.value) return;
587
- c.value = He(e.value), E(), e.value.querySelectorAll("[data-item-key]").forEach((y) => {
587
+ c.value = Ke(e.value), E(), e.value.querySelectorAll("[data-item-key]").forEach((y) => {
588
588
  const x = y.getAttribute("data-item-key");
589
589
  if (x) {
590
- const U = bt(y);
591
- U > 0 && l.value.set(x, U);
590
+ const I = yt(y);
591
+ I > 0 && l.value.set(x, I);
592
592
  }
593
- }), w();
593
+ }), C();
594
594
  }, T = () => {
595
595
  const p = new Set(t.value.map(n));
596
596
  for (const y of l.value.keys())
597
597
  p.has(y) || l.value.delete(y);
598
598
  }, M = () => {
599
- b || (b = new ResizeObserver((p) => {
599
+ g || (g = new ResizeObserver((p) => {
600
600
  let y = !1;
601
601
  for (const x of p) {
602
- const U = x.target;
603
- if (!U.isConnected) continue;
604
- const k = U.getAttribute("data-item-key");
602
+ const I = x.target;
603
+ if (!I.isConnected) continue;
604
+ const k = I.getAttribute("data-item-key");
605
605
  if (!k) continue;
606
- const I = getComputedStyle(U), $ = x.borderBoxSize?.[0]?.inlineSize, ie = ($ ?? U.offsetWidth) + parseFloat(I.marginLeft || "0") + parseFloat(I.marginRight || "0");
606
+ const j = getComputedStyle(I), J = x.borderBoxSize?.[0]?.inlineSize, ie = (J ?? I.offsetWidth) + parseFloat(j.marginLeft || "0") + parseFloat(j.marginRight || "0");
607
607
  ie > 0 && l.value.get(k) !== ie && (l.value.set(k, ie), y = !0);
608
608
  }
609
- y && w();
610
- })), ne(() => {
609
+ y && C();
610
+ })), ae(() => {
611
611
  if (!e.value) return;
612
612
  const p = e.value.querySelectorAll("[data-item-key]"), y = /* @__PURE__ */ new Set();
613
613
  p.forEach((x) => {
614
- y.add(x), S.has(x) || (b?.observe(x), S.add(x));
614
+ y.add(x), S.has(x) || (g?.observe(x), S.add(x));
615
615
  });
616
616
  for (const x of S)
617
- y.has(x) || (b?.unobserve(x), S.delete(x));
618
- _();
617
+ y.has(x) || (g?.unobserve(x), S.delete(x));
618
+ A();
619
619
  });
620
- }, W = or(() => {
621
- e.value && (c.value = He(e.value)), w();
620
+ }, H = ur(() => {
621
+ e.value && (c.value = Ke(e.value)), C();
622
622
  }, 50);
623
- return X(u, () => {
624
- W();
625
- }), X(m, (p) => {
626
- p && ne(() => {
623
+ return V(u, () => {
624
+ H();
625
+ }), V(m, (p) => {
626
+ p && ae(() => {
627
627
  const y = d.value;
628
- E(), d.value !== null && d.value !== y && w();
628
+ E(), d.value !== null && d.value !== y && C();
629
629
  });
630
- }), X(
630
+ }), V(
631
631
  () => t.value.map(n).join("\0"),
632
632
  () => {
633
- T(), ne(() => {
633
+ T(), ae(() => {
634
634
  M();
635
635
  });
636
636
  }
637
- ), Ie(() => {
638
- ne(() => {
639
- _(), M();
637
+ ), Te(() => {
638
+ ae(() => {
639
+ A(), M();
640
640
  });
641
- }), at(() => {
642
- b && (b.disconnect(), b = null), S.clear();
641
+ }), st(() => {
642
+ g && (g.disconnect(), g = null), S.clear();
643
643
  }), {
644
644
  visibleItems: f,
645
645
  hiddenItems: h,
646
646
  showMoreButton: m,
647
647
  recalculate: () => {
648
- ne(() => {
649
- _();
648
+ ae(() => {
649
+ A();
650
650
  });
651
651
  },
652
652
  // Export function for updating observer
653
653
  updateObserver: M
654
654
  };
655
655
  }
656
- function Fr(s, e, t = {}) {
656
+ function Dr(s, e, t = {}) {
657
657
  const n = v(() => le(t.placement) ?? "bottom"), r = v(() => le(t.strategy) ?? "absolute"), a = v(() => {
658
658
  const l = le(t.middleware);
659
659
  if (l?.length)
660
660
  return l;
661
661
  const d = [];
662
- le(t.enableFlip) !== !1 && d.push(vr({ padding: t.shiftPadding ?? 8 })), le(t.enableShift) !== !1 && d.push(gr({ padding: t.shiftPadding ?? 8 }));
662
+ le(t.enableFlip) !== !1 && d.push(br({ padding: t.shiftPadding ?? 8 })), le(t.enableShift) !== !1 && d.push(yr({ padding: t.shiftPadding ?? 8 }));
663
663
  const c = le(t.offset);
664
- return typeof c == "number" ? d.push(mt(c)) : d.push(
665
- mt({
664
+ return typeof c == "number" ? d.push(vt(c)) : d.push(
665
+ vt({
666
666
  mainAxis: c?.mainAxis ?? 0,
667
667
  crossAxis: c?.crossAxis ?? 0,
668
668
  alignmentAxis: c?.alignmentAxis
669
669
  })
670
670
  ), d;
671
- }), o = mr(s, e, {
671
+ }), o = gr(s, e, {
672
672
  placement: n,
673
673
  strategy: r,
674
- whileElementsMounted: le(t.autoUpdate) === !1 ? void 0 : br,
674
+ whileElementsMounted: le(t.autoUpdate) === !1 ? void 0 : xr,
675
675
  middleware: a
676
676
  }), u = v(() => ({
677
677
  position: r.value,
@@ -685,9 +685,9 @@ function Fr(s, e, t = {}) {
685
685
  resolvedStrategy: r
686
686
  };
687
687
  }
688
- const Ge = Symbol("BladeStack"), ut = Symbol("BladeMessaging"), ct = Symbol("BladeDescriptor"), Mr = Symbol("BladeData"), Xs = Symbol("NavigationViewLocation"), Dr = Symbol("BladeBackButton"), Vs = Symbol("NotificationTemplates"), Lr = Symbol("NotificationStore"), Qs = Symbol("WidgetService"), ei = Symbol("DashboardService"), ti = Symbol("GlobalSearch"), ri = Symbol("MenuService"), ni = Symbol("SettingsMenuService"), ai = Symbol("AppBarWidgetService"), si = Symbol("AppBarMobileButtonsService"), Gr = Symbol("LanguageService"), Jr = Symbol("ToolbarService"), ii = Symbol("DynamicModules"), oi = Symbol("ModulesReady"), li = Symbol("ModulesLoadError"), Wr = Symbol("AppRootElement"), Hr = Symbol("EmbeddedMode"), ui = Symbol("ShellIndicators"), Je = Symbol("AiAgentService"), Kr = Symbol("IsMobile"), qr = Symbol("IsDesktop"), Zr = Symbol("IsPhone"), Yr = Symbol("IsTablet"), Xr = Symbol("IsTouch"), ci = Symbol("BladeRoutes"), di = Symbol("InternalRoutes"), hi = Symbol("CloseSettingsMenu"), fi = Symbol("BladeContext"), pi = Symbol("WidgetScope");
689
- function Vr(s = {}) {
690
- const e = F(Wr, void 0);
688
+ const Ge = Symbol("BladeStack"), ct = Symbol("BladeMessaging"), dt = Symbol("BladeDescriptor"), Lr = Symbol("BladeMaximized"), Gr = Symbol("BladeData"), jt = Symbol("BladeBanners"), Qs = Symbol("NavigationViewLocation"), Jr = Symbol("BladeBackButton"), ei = Symbol("NotificationTemplates"), Wr = Symbol("NotificationStore"), ti = Symbol("WidgetService"), ri = Symbol("DashboardService"), ni = Symbol("GlobalSearch"), ai = Symbol("MenuService"), si = Symbol("SettingsMenuService"), ii = Symbol("AppBarWidgetService"), oi = Symbol("AppBarMobileButtonsService"), Hr = Symbol("LanguageService"), Kr = Symbol("ToolbarService"), li = Symbol("DynamicModules"), ui = Symbol("ModulesReady"), ci = Symbol("ModulesLoadError"), qr = Symbol("AppRootElement"), Zr = Symbol("EmbeddedMode"), di = Symbol("ShellIndicators"), Je = Symbol("AiAgentService"), Yr = Symbol("IsMobile"), Xr = Symbol("IsDesktop"), Vr = Symbol("IsPhone"), Qr = Symbol("IsTablet"), en = Symbol("IsTouch"), hi = Symbol("BladeRoutes"), fi = Symbol("InternalRoutes"), pi = Symbol("CloseSettingsMenu"), mi = Symbol("BladeContext"), vi = Symbol("WidgetScope");
689
+ function tn(s = {}) {
690
+ const e = F(qr, void 0);
691
691
  return {
692
692
  teleportTarget: v(() => {
693
693
  const n = s.to ? le(s.to) : void 0;
@@ -700,7 +700,7 @@ function Vr(s = {}) {
700
700
  })
701
701
  };
702
702
  }
703
- const Qr = ["title"], en = ["title"], tn = /* @__PURE__ */ L({
703
+ const rn = ["title"], nn = ["title"], an = /* @__PURE__ */ G({
704
704
  __name: "vc-breadcrumbs-item",
705
705
  props: {
706
706
  current: { type: Boolean },
@@ -716,56 +716,56 @@ const Qr = ["title"], en = ["title"], tn = /* @__PURE__ */ L({
716
716
  function a() {
717
717
  t.current || (t.clickHandler && typeof t.clickHandler == "function" ? t.clickHandler(t.id) : n("click"));
718
718
  }
719
- return (o, u) => s.current ? (C(), R("span", {
719
+ return (o, u) => s.current ? (_(), R("span", {
720
720
  key: 0,
721
- class: K(["vc-breadcrumbs-item vc-breadcrumbs-item--current", { "vc-breadcrumbs-item--light": s.variant === "light" }]),
721
+ class: q(["vc-breadcrumbs-item vc-breadcrumbs-item--current", { "vc-breadcrumbs-item--light": s.variant === "light" }]),
722
722
  "aria-current": "page"
723
723
  }, [
724
- s.icon ? (C(), J(D(se), {
724
+ s.icon ? (_(), W(D(oe), {
725
725
  key: 0,
726
726
  class: "vc-breadcrumbs-item__icon",
727
727
  icon: s.icon,
728
728
  size: "s"
729
- }, null, 8, ["icon"])) : H("", !0),
730
- N("span", {
729
+ }, null, 8, ["icon"])) : K("", !0),
730
+ $("span", {
731
731
  class: "vc-breadcrumbs-item__title",
732
732
  title: r.value
733
- }, he(r.value), 9, Qr)
734
- ], 2)) : (C(), R("button", {
733
+ }, he(r.value), 9, rn)
734
+ ], 2)) : (_(), R("button", {
735
735
  key: 1,
736
736
  type: "button",
737
- class: K(["vc-breadcrumbs-item", { "vc-breadcrumbs-item--light": s.variant === "light" }]),
737
+ class: q(["vc-breadcrumbs-item", { "vc-breadcrumbs-item--light": s.variant === "light" }]),
738
738
  onClick: a
739
739
  }, [
740
- s.icon ? (C(), J(D(se), {
740
+ s.icon ? (_(), W(D(oe), {
741
741
  key: 0,
742
742
  class: "vc-breadcrumbs-item__icon",
743
743
  icon: s.icon,
744
744
  size: "s"
745
- }, null, 8, ["icon"])) : H("", !0),
746
- N("span", {
745
+ }, null, 8, ["icon"])) : K("", !0),
746
+ $("span", {
747
747
  class: "vc-breadcrumbs-item__title",
748
748
  title: r.value
749
- }, he(r.value), 9, en)
749
+ }, he(r.value), 9, nn)
750
750
  ], 2));
751
751
  }
752
752
  });
753
- function Nt() {
753
+ function zt() {
754
754
  return {
755
- isMobile: F(Kr, O(!1)),
756
- isDesktop: F(qr, O(!0)),
757
- isPhone: F(Zr, O(!1)),
758
- isTablet: F(Yr, O(!1)),
759
- isTouch: F(Xr, !1)
755
+ isMobile: F(Yr, O(!1)),
756
+ isDesktop: F(Xr, O(!0)),
757
+ isPhone: F(Vr, O(!1)),
758
+ isTablet: F(Qr, O(!1)),
759
+ isTouch: F(en, !1)
760
760
  };
761
761
  }
762
- const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "onKeydown"], an = ["role", "aria-activedescendant"], sn = {
762
+ const sn = { class: "vc-dropdown" }, on = ["aria-expanded", "aria-haspopup", "onKeydown"], ln = ["role", "aria-activedescendant"], un = {
763
763
  key: 0,
764
764
  class: "vc-dropdown__items-container"
765
- }, on = ["id", "role", "aria-selected", "onClick"], ln = {
765
+ }, cn = ["id", "role", "aria-selected", "onClick"], dn = {
766
766
  key: 1,
767
767
  class: "vc-dropdown__empty"
768
- }, un = /* @__PURE__ */ L({
768
+ }, hn = /* @__PURE__ */ G({
769
769
  __name: "vc-dropdown",
770
770
  props: {
771
771
  modelValue: { type: Boolean, default: !1 },
@@ -794,30 +794,30 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
794
794
  },
795
795
  emits: ["update:modelValue", "item-click", "open", "close"],
796
796
  setup(s, { emit: e }) {
797
- const t = s, n = e, o = `vc-dropdown-${Ee()?.uid ?? Math.round(Math.random() * 1e4)}`, { isMobile: u } = Nt(), l = O(null), d = O(null), c = O(-1), { teleportTarget: f } = Vr({
797
+ const t = s, n = e, o = `vc-dropdown-${me()?.uid ?? Math.round(Math.random() * 1e4)}`, { isMobile: u } = zt(), l = O(null), d = O(null), c = O(-1), { teleportTarget: f } = tn({
798
798
  to: v(() => t.teleportTo)
799
799
  }), h = v(() => t.teleport ?? t.floating), m = v({
800
800
  get: () => t.modelValue,
801
- set: (B) => n("update:modelValue", B)
802
- }), { x: b, y: S, resolvedPlacement: A, resolvedStrategy: E } = Fr(l, d, {
801
+ set: (w) => n("update:modelValue", w)
802
+ }), { x: g, y: S, resolvedPlacement: U, resolvedStrategy: E } = Dr(l, d, {
803
803
  placement: v(() => t.placement),
804
804
  strategy: v(() => t.floating ? "fixed" : "absolute"),
805
805
  offset: v(() => t.offset),
806
806
  autoUpdate: v(() => t.floating)
807
- }), g = v(() => [
807
+ }), b = v(() => [
808
808
  {
809
809
  "vc-dropdown__dropdown--mobile": u.value,
810
810
  "vc-dropdown__dropdown--floating": t.floating
811
811
  },
812
812
  `vc-dropdown__dropdown--${t.variant}`,
813
- `vc-dropdown__dropdown--${A.value}`
813
+ `vc-dropdown__dropdown--${U.value}`
814
814
  ]), P = v(() => t.floating ? {
815
815
  position: E.value,
816
816
  top: `${S.value ?? 0}px`,
817
- left: `${b.value ?? 0}px`,
817
+ left: `${g.value ?? 0}px`,
818
818
  zIndex: t.zIndex,
819
819
  width: "max-content"
820
- } : {}), w = v(() => t.maxHeight ? typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight : ""), _ = v(() => t.role === "listbox" ? "option" : "menuitem"), T = v(() => {
820
+ } : {}), C = v(() => t.maxHeight ? typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight : ""), A = v(() => t.role === "listbox" ? "option" : "menuitem"), T = v(() => {
821
821
  if (!(c.value < 0 || c.value >= t.items.length))
822
822
  return p(c.value);
823
823
  }), M = [
@@ -826,97 +826,97 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
826
826
  },
827
827
  { ignore: [l] }
828
828
  ];
829
- function W() {
829
+ function H() {
830
830
  if (!t.items.length) {
831
831
  c.value = -1;
832
832
  return;
833
833
  }
834
- const B = t.isItemActive ? t.items.findIndex((te) => t.isItemActive?.(te)) : -1;
835
- c.value = B >= 0 ? B : 0;
834
+ const w = t.isItemActive ? t.items.findIndex((B) => t.isItemActive?.(B)) : -1;
835
+ c.value = w >= 0 ? w : 0;
836
836
  }
837
- function p(B) {
838
- return `${o}-item-${B}`;
837
+ function p(w) {
838
+ return `${o}-item-${w}`;
839
839
  }
840
- function y(B, te) {
841
- return t.itemKey ? t.itemKey(B, te) : te;
840
+ function y(w, B) {
841
+ return t.itemKey ? t.itemKey(w, B) : B;
842
842
  }
843
843
  function x() {
844
844
  m.value || (m.value = !0, n("open"));
845
845
  }
846
- function U() {
846
+ function I() {
847
847
  k("action");
848
848
  }
849
- function k(B) {
850
- m.value && (m.value = !1, n("close", B));
849
+ function k(w) {
850
+ m.value && (m.value = !1, n("close", w));
851
851
  }
852
- function I() {
852
+ function j() {
853
853
  m.value ? k("action") : x();
854
854
  }
855
- function $(B, te) {
856
- c.value = te, n("item-click", B), t.closeOnSelect && k("action");
855
+ function J(w, B) {
856
+ c.value = B, n("item-click", w), t.closeOnSelect && k("action");
857
857
  }
858
- function ee(B) {
859
- const te = t.items.length;
860
- if (!te) {
858
+ function re(w) {
859
+ const B = t.items.length;
860
+ if (!B) {
861
861
  c.value = -1;
862
862
  return;
863
863
  }
864
- const oe = (B % te + te) % te;
865
- c.value = oe;
864
+ const ee = (w % B + B) % B;
865
+ c.value = ee;
866
866
  }
867
- function ie(B) {
867
+ function ie(w) {
868
868
  if (m.value)
869
- switch (B.key) {
869
+ switch (w.key) {
870
870
  case "ArrowDown": {
871
- B.preventDefault(), ee(c.value + 1);
871
+ w.preventDefault(), re(c.value + 1);
872
872
  break;
873
873
  }
874
874
  case "ArrowUp": {
875
- B.preventDefault(), ee(c.value - 1);
875
+ w.preventDefault(), re(c.value - 1);
876
876
  break;
877
877
  }
878
878
  case "Home": {
879
- B.preventDefault(), ee(0);
879
+ w.preventDefault(), re(0);
880
880
  break;
881
881
  }
882
882
  case "End": {
883
- B.preventDefault(), ee(t.items.length - 1);
883
+ w.preventDefault(), re(t.items.length - 1);
884
884
  break;
885
885
  }
886
886
  case "Enter":
887
887
  case " ": {
888
888
  if (c.value < 0 || c.value >= t.items.length)
889
889
  return;
890
- B.preventDefault(), $(t.items[c.value], c.value);
890
+ w.preventDefault(), J(t.items[c.value], c.value);
891
891
  break;
892
892
  }
893
893
  case "Escape": {
894
894
  if (!t.closeOnEscape)
895
895
  return;
896
- B.preventDefault(), B.stopPropagation(), k("escape");
896
+ w.preventDefault(), w.stopPropagation(), k("escape");
897
897
  break;
898
898
  }
899
899
  }
900
900
  }
901
- function ve(B) {
902
- !t.closeOnEscape || !m.value || B.key !== "Escape" || k("escape");
901
+ function Ae(w) {
902
+ !t.closeOnEscape || !m.value || w.key !== "Escape" || k("escape");
903
903
  }
904
- return X(
904
+ return V(
905
905
  () => m.value,
906
- async (B) => {
907
- document.removeEventListener("keydown", ve), B && (W(), t.closeOnEscape && document.addEventListener("keydown", ve), t.autoFocusPanel && (await ne(), d.value?.focus()));
906
+ async (w) => {
907
+ document.removeEventListener("keydown", Ae), w && (H(), t.closeOnEscape && document.addEventListener("keydown", Ae), t.autoFocusPanel && (await ae(), d.value?.focus()));
908
908
  },
909
909
  { immediate: !0 }
910
- ), X(
910
+ ), V(
911
911
  () => t.items,
912
912
  () => {
913
- m.value && W();
913
+ m.value && H();
914
914
  },
915
915
  { deep: !0 }
916
- ), at(() => {
917
- document.removeEventListener("keydown", ve);
918
- }), (B, te) => (C(), R("div", rn, [
919
- B.$slots.trigger ? (C(), R("div", {
916
+ ), st(() => {
917
+ document.removeEventListener("keydown", Ae);
918
+ }), (w, B) => (_(), R("div", sn, [
919
+ w.$slots.trigger ? (_(), R("div", {
920
920
  key: 0,
921
921
  ref_key: "referenceEl",
922
922
  ref: l,
@@ -927,35 +927,35 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
927
927
  "aria-expanded": m.value,
928
928
  "aria-haspopup": s.role,
929
929
  onKeydown: [
930
- ft(Xe(I, ["prevent"]), ["enter"]),
931
- ft(Xe(I, ["prevent"]), ["space"])
930
+ pt(Ve(j, ["prevent"]), ["enter"]),
931
+ pt(Ve(j, ["prevent"]), ["space"])
932
932
  ]
933
933
  }, [
934
- ye(B.$slots, "trigger", {
934
+ xe(w.$slots, "trigger", {
935
935
  isActive: m.value,
936
- toggle: I,
936
+ toggle: j,
937
937
  open: x,
938
- close: U
938
+ close: I
939
939
  })
940
- ], 40, nn)) : H("", !0),
941
- (C(), J(qt, {
940
+ ], 40, on)) : K("", !0),
941
+ (_(), W(Yt, {
942
942
  to: D(f),
943
943
  defer: "",
944
944
  disabled: !h.value
945
945
  }, [
946
- Z(st, {
946
+ Y(it, {
947
947
  name: "vc-dropdown-transition",
948
948
  appear: ""
949
949
  }, {
950
950
  default: fe(() => [
951
- m.value ? it((C(), R("div", {
951
+ m.value ? ot((_(), R("div", {
952
952
  key: 0,
953
953
  id: o,
954
954
  ref_key: "floatingEl",
955
955
  ref: d,
956
- class: K(["vc-dropdown__dropdown", g.value]),
957
- style: Ce({
958
- maxHeight: w.value,
956
+ class: q(["vc-dropdown__dropdown", b.value]),
957
+ style: _e({
958
+ maxHeight: C.value,
959
959
  ...P.value
960
960
  }),
961
961
  role: s.role,
@@ -963,54 +963,54 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
963
963
  tabindex: "-1",
964
964
  onKeydown: ie
965
965
  }, [
966
- N("div", {
967
- class: K(["vc-dropdown__content", { "vc-dropdown__content--padded": s.padded }])
966
+ $("div", {
967
+ class: q(["vc-dropdown__content", { "vc-dropdown__content--padded": s.padded }])
968
968
  }, [
969
- ye(B.$slots, "items-container", {
969
+ xe(w.$slots, "items-container", {
970
970
  items: s.items,
971
- close: U
971
+ close: I
972
972
  }, () => [
973
- s.items.length ? (C(), R("div", sn, [
974
- (C(!0), R(Fe, null, ot(s.items, (oe, Se) => (C(), R("div", {
975
- id: p(Se),
976
- key: y(oe, Se),
977
- class: K(["vc-dropdown__item", {
973
+ s.items.length ? (_(), R("div", un, [
974
+ (_(!0), R(Me, null, lt(s.items, (ee, ge) => (_(), R("div", {
975
+ id: p(ge),
976
+ key: y(ee, ge),
977
+ class: q(["vc-dropdown__item", {
978
978
  "vc-dropdown__item--padded": s.padded,
979
979
  "vc-dropdown__item--mobile": D(u),
980
- "vc-dropdown__item--active": s.isItemActive?.(oe),
981
- "vc-dropdown__item--focused": c.value === Se
980
+ "vc-dropdown__item--active": s.isItemActive?.(ee),
981
+ "vc-dropdown__item--focused": c.value === ge
982
982
  }]),
983
- role: _.value,
984
- "aria-selected": s.role === "listbox" ? !!s.isItemActive?.(oe) : void 0,
985
- onClick: (As) => $(oe, Se)
983
+ role: A.value,
984
+ "aria-selected": s.role === "listbox" ? !!s.isItemActive?.(ee) : void 0,
985
+ onClick: (He) => J(ee, ge)
986
986
  }, [
987
- ye(B.$slots, "item", {
988
- item: oe,
989
- click: () => $(oe, Se)
987
+ xe(w.$slots, "item", {
988
+ item: ee,
989
+ click: () => J(ee, ge)
990
990
  }, () => [
991
- pt(he(s.itemText?.(oe)), 1)
991
+ mt(he(s.itemText?.(ee)), 1)
992
992
  ])
993
- ], 10, on))), 128))
994
- ])) : (C(), R("div", ln, [
995
- ye(B.$slots, "empty", {}, () => [
996
- pt(he(s.emptyText), 1)
993
+ ], 10, cn))), 128))
994
+ ])) : (_(), R("div", dn, [
995
+ xe(w.$slots, "empty", {}, () => [
996
+ mt(he(s.emptyText), 1)
997
997
  ])
998
998
  ]))
999
999
  ])
1000
1000
  ], 2)
1001
- ], 46, an)), [
1002
- [D($t), M]
1003
- ]) : H("", !0)
1001
+ ], 46, ln)), [
1002
+ [D(Nt), M]
1003
+ ]) : K("", !0)
1004
1004
  ]),
1005
1005
  _: 3
1006
1006
  })
1007
1007
  ], 8, ["to", "disabled"]))
1008
1008
  ]));
1009
1009
  }
1010
- }), cn = {
1010
+ }), fn = {
1011
1011
  key: 2,
1012
1012
  class: "vc-dropdown-item__icon-placeholder"
1013
- }, dn = { class: "vc-dropdown-item__title" }, hn = /* @__PURE__ */ L({
1013
+ }, pn = { class: "vc-dropdown-item__title" }, mn = /* @__PURE__ */ G({
1014
1014
  __name: "VcDropdownItem",
1015
1015
  props: {
1016
1016
  title: {},
@@ -1019,35 +1019,35 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
1019
1019
  disabled: { type: Boolean, default: !1 }
1020
1020
  },
1021
1021
  setup(s) {
1022
- return (e, t) => (C(), R("div", {
1023
- class: K(["vc-dropdown-item", {
1022
+ return (e, t) => (_(), R("div", {
1023
+ class: q(["vc-dropdown-item", {
1024
1024
  "vc-dropdown-item--active": s.active,
1025
1025
  "vc-dropdown-item--disabled": s.disabled
1026
1026
  }])
1027
1027
  }, [
1028
- s.active ? (C(), J(D(se), {
1028
+ s.active ? (_(), W(D(oe), {
1029
1029
  key: 0,
1030
1030
  icon: "lucide-check",
1031
1031
  size: "xs",
1032
1032
  class: "vc-dropdown-item__icon"
1033
- })) : s.icon ? (C(), J(D(se), {
1033
+ })) : s.icon ? (_(), W(D(oe), {
1034
1034
  key: 1,
1035
1035
  icon: s.icon,
1036
1036
  size: "xs",
1037
1037
  class: "vc-dropdown-item__icon"
1038
- }, null, 8, ["icon"])) : (C(), R("span", cn)),
1039
- N("span", dn, he(s.title), 1)
1038
+ }, null, 8, ["icon"])) : (_(), R("span", fn)),
1039
+ $("span", pn, he(s.title), 1)
1040
1040
  ], 2));
1041
1041
  }
1042
- }), fn = {
1042
+ }), vn = {
1043
1043
  key: 0,
1044
1044
  "aria-label": "Breadcrumb",
1045
1045
  class: "vc-breadcrumbs"
1046
- }, pn = ["data-item-key"], mn = {
1046
+ }, gn = ["data-item-key"], bn = {
1047
1047
  key: 0,
1048
1048
  class: "vc-breadcrumbs__item-separator",
1049
1049
  "aria-hidden": "true"
1050
- }, vn = 36, gn = 60, bn = /* @__PURE__ */ L({
1050
+ }, yn = 36, xn = 60, En = /* @__PURE__ */ G({
1051
1051
  __name: "vc-breadcrumbs",
1052
1052
  props: {
1053
1053
  items: { default: () => [] },
@@ -1056,13 +1056,13 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
1056
1056
  collapsed: { type: Boolean, default: !1 }
1057
1057
  },
1058
1058
  setup(s) {
1059
- const e = s, t = O(null), n = O(!1), r = zr({
1059
+ const e = s, t = O(null), n = O(!1), r = Mr({
1060
1060
  containerRef: t,
1061
- items: Rt(e, "items"),
1061
+ items: kt(e, "items"),
1062
1062
  getItemKey: (f) => f.id,
1063
- moreButtonWidth: vn,
1063
+ moreButtonWidth: yn,
1064
1064
  calculationStrategy: "reverse",
1065
- initialItemWidth: gn
1065
+ initialItemWidth: xn
1066
1066
  }), a = v(() => e.collapsed ? [] : r.visibleItems.value), o = v(() => e.collapsed ? e.items : r.hiddenItems.value), u = v(() => o.value.length > 0), l = r.recalculate;
1067
1067
  function d() {
1068
1068
  n.value = !n.value;
@@ -1070,17 +1070,17 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
1070
1070
  function c(f) {
1071
1071
  f.clickHandler?.(f.id);
1072
1072
  }
1073
- return ne(l), (f, h) => {
1074
- const m = Ne("VcButton");
1075
- return s.items && s.items.length ? (C(), R("nav", fn, [
1076
- N("ol", {
1073
+ return ae(l), (f, h) => {
1074
+ const m = je("VcButton");
1075
+ return s.items && s.items.length ? (_(), R("nav", vn, [
1076
+ $("ol", {
1077
1077
  ref_key: "contentRef",
1078
1078
  ref: t,
1079
- class: K(["vc-breadcrumbs__content", {
1079
+ class: q(["vc-breadcrumbs__content", {
1080
1080
  "vc-breadcrumbs__content--separated": s.separated
1081
1081
  }])
1082
1082
  }, [
1083
- u.value ? (C(), J(D(un), {
1083
+ u.value ? (_(), W(D(hn), {
1084
1084
  key: 0,
1085
1085
  items: o.value,
1086
1086
  "model-value": n.value,
@@ -1091,71 +1091,71 @@ const rn = { class: "vc-dropdown" }, nn = ["aria-expanded", "aria-haspopup", "on
1091
1091
  mainAxis: 10
1092
1092
  },
1093
1093
  onItemClick: c,
1094
- "onUpdate:modelValue": h[0] || (h[0] = (b) => n.value = b)
1094
+ "onUpdate:modelValue": h[0] || (h[0] = (g) => n.value = g)
1095
1095
  }, {
1096
- trigger: fe(({ isActive: b }) => [
1097
- ye(f.$slots, "trigger", {
1096
+ trigger: fe(({ isActive: g }) => [
1097
+ xe(f.$slots, "trigger", {
1098
1098
  click: d,
1099
- isActive: b
1099
+ isActive: g
1100
1100
  }, () => [
1101
- Z(m, {
1101
+ Y(m, {
1102
1102
  text: "",
1103
1103
  icon: "lucide-ellipsis-vertical",
1104
1104
  "icon-size": "xl",
1105
1105
  "data-more-button": "",
1106
- class: K(["vc-breadcrumbs__expand-button", {
1107
- "vc-breadcrumbs__expand-button--active": b
1106
+ class: q(["vc-breadcrumbs__expand-button", {
1107
+ "vc-breadcrumbs__expand-button--active": g
1108
1108
  }]),
1109
1109
  onClick: d
1110
1110
  }, null, 8, ["class"])
1111
1111
  ])
1112
1112
  ]),
1113
- item: fe(({ item: b, click: S }) => [
1114
- Z(hn, {
1115
- title: typeof b.title == "string" ? b.title : b.title?.value ?? "",
1116
- icon: b.icon,
1113
+ item: fe(({ item: g, click: S }) => [
1114
+ Y(mn, {
1115
+ title: typeof g.title == "string" ? g.title : g.title?.value ?? "",
1116
+ icon: g.icon,
1117
1117
  onClick: S
1118
1118
  }, null, 8, ["title", "icon", "onClick"])
1119
1119
  ]),
1120
1120
  _: 3
1121
- }, 8, ["items", "model-value"])) : H("", !0),
1122
- (C(!0), R(Fe, null, ot(a.value, (b, S) => (C(), R(Fe, {
1123
- key: b?.id ?? `breadcrumb-item-${S}`
1121
+ }, 8, ["items", "model-value"])) : K("", !0),
1122
+ (_(!0), R(Me, null, lt(a.value, (g, S) => (_(), R(Me, {
1123
+ key: g?.id ?? `breadcrumb-item-${S}`
1124
1124
  }, [
1125
- b && b.title ? (C(), R("li", {
1125
+ g && g.title ? (_(), R("li", {
1126
1126
  key: 0,
1127
1127
  class: "vc-breadcrumbs__item-wrapper",
1128
- "data-item-key": b.id
1128
+ "data-item-key": g.id
1129
1129
  }, [
1130
- s.separated && S !== 0 ? (C(), R("span", mn, " / ")) : H("", !0),
1131
- Z(tn, xe({ class: "vc-breadcrumbs__item" }, { ref_for: !0 }, b, {
1130
+ s.separated && S !== 0 ? (_(), R("span", bn, " / ")) : K("", !0),
1131
+ Y(an, we({ class: "vc-breadcrumbs__item" }, { ref_for: !0 }, g, {
1132
1132
  current: S === a.value.length - 1,
1133
1133
  "aria-current": S === a.value.length - 1 ? "page" : void 0,
1134
1134
  variant: s.variant
1135
1135
  }), null, 16, ["current", "aria-current", "variant"])
1136
- ], 8, pn)) : H("", !0)
1136
+ ], 8, gn)) : K("", !0)
1137
1137
  ], 64))), 128))
1138
1138
  ], 2)
1139
- ])) : H("", !0);
1139
+ ])) : K("", !0);
1140
1140
  };
1141
1141
  }
1142
- }), yn = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
1143
- function xn(s, e) {
1144
- if (typeof e == "string" && yn.test(e)) {
1142
+ }), wn = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
1143
+ function Cn(s, e) {
1144
+ if (typeof e == "string" && wn.test(e)) {
1145
1145
  const t = new Date(e);
1146
1146
  if (!isNaN(t.getTime()))
1147
1147
  return t;
1148
1148
  }
1149
1149
  return e;
1150
1150
  }
1151
- class V {
1151
+ class Q {
1152
1152
  authToken = "";
1153
1153
  /**
1154
1154
  * JSON parse reviver for converting date strings to Date objects.
1155
1155
  * Subclasses use this when parsing API responses.
1156
1156
  * The dateReviver function is defined in File.Header.liquid template.
1157
1157
  */
1158
- jsonParseReviver = xn;
1158
+ jsonParseReviver = Cn;
1159
1159
  constructor() {
1160
1160
  }
1161
1161
  // Enforce always return empty string as baseUrl
@@ -1169,7 +1169,7 @@ class V {
1169
1169
  return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
1170
1170
  }
1171
1171
  }
1172
- class En extends V {
1172
+ class _n extends Q {
1173
1173
  http;
1174
1174
  baseUrl;
1175
1175
  constructor(e, t) {
@@ -1276,7 +1276,7 @@ class En extends V {
1276
1276
  }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1277
1277
  }
1278
1278
  }
1279
- class mi extends V {
1279
+ class gi extends Q {
1280
1280
  http;
1281
1281
  baseUrl;
1282
1282
  constructor(e, t) {
@@ -1306,7 +1306,7 @@ class mi extends V {
1306
1306
  }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1307
1307
  }
1308
1308
  }
1309
- class vi extends V {
1309
+ class bi extends Q {
1310
1310
  http;
1311
1311
  baseUrl;
1312
1312
  constructor(e, t) {
@@ -1448,7 +1448,7 @@ class vi extends V {
1448
1448
  }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1449
1449
  }
1450
1450
  }
1451
- class gi extends V {
1451
+ class yi extends Q {
1452
1452
  http;
1453
1453
  baseUrl;
1454
1454
  constructor(e, t) {
@@ -1624,7 +1624,7 @@ class gi extends V {
1624
1624
  }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1625
1625
  }
1626
1626
  }
1627
- class bi extends V {
1627
+ class xi extends Q {
1628
1628
  http;
1629
1629
  baseUrl;
1630
1630
  constructor(e, t) {
@@ -1653,7 +1653,7 @@ class bi extends V {
1653
1653
  }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1654
1654
  }
1655
1655
  }
1656
- class yi extends V {
1656
+ class Ei extends Q {
1657
1657
  http;
1658
1658
  baseUrl;
1659
1659
  constructor(e, t) {
@@ -1705,7 +1705,7 @@ class yi extends V {
1705
1705
  }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1706
1706
  }
1707
1707
  }
1708
- class xi extends V {
1708
+ class wi extends Q {
1709
1709
  http;
1710
1710
  baseUrl;
1711
1711
  constructor(e, t) {
@@ -1980,7 +1980,7 @@ class xi extends V {
1980
1980
  }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1981
1981
  }
1982
1982
  }
1983
- class Ei extends V {
1983
+ class Ci extends Q {
1984
1984
  http;
1985
1985
  baseUrl;
1986
1986
  constructor(e, t) {
@@ -2013,7 +2013,7 @@ class Ei extends V {
2013
2013
  }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2014
2014
  }
2015
2015
  }
2016
- class wi extends V {
2016
+ class _i extends Q {
2017
2017
  http;
2018
2018
  baseUrl;
2019
2019
  constructor(e, t) {
@@ -2117,7 +2117,7 @@ class wi extends V {
2117
2117
  }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2118
2118
  }
2119
2119
  }
2120
- class Ci extends V {
2120
+ class Si extends Q {
2121
2121
  http;
2122
2122
  baseUrl;
2123
2123
  constructor(e, t) {
@@ -2383,7 +2383,7 @@ class Ci extends V {
2383
2383
  }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2384
2384
  }
2385
2385
  }
2386
- class _i extends V {
2386
+ class Ai extends Q {
2387
2387
  http;
2388
2388
  baseUrl;
2389
2389
  constructor(e, t) {
@@ -2485,7 +2485,7 @@ class _i extends V {
2485
2485
  }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2486
2486
  }
2487
2487
  }
2488
- class wn extends V {
2488
+ class Sn extends Q {
2489
2489
  http;
2490
2490
  baseUrl;
2491
2491
  constructor(e, t) {
@@ -2541,7 +2541,7 @@ class wn extends V {
2541
2541
  }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2542
2542
  }
2543
2543
  }
2544
- class Cn extends V {
2544
+ class An extends Q {
2545
2545
  http;
2546
2546
  baseUrl;
2547
2547
  constructor(e, t) {
@@ -3650,7 +3650,7 @@ class Cn extends V {
3650
3650
  }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3651
3651
  }
3652
3652
  }
3653
- class Si extends V {
3653
+ class Ui extends Q {
3654
3654
  http;
3655
3655
  baseUrl;
3656
3656
  constructor(e, t) {
@@ -3778,8 +3778,8 @@ class Si extends V {
3778
3778
  }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3779
3779
  }
3780
3780
  }
3781
- var _n = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(_n || {}), Sn = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))(Sn || {}), An = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.Object = "Object", s.Array = "Array", s.String = "String", s.Number = "Number", s.True = "True", s.False = "False", s.Null = "Null", s))(An || {}), Un = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(Un || {}), In = /* @__PURE__ */ ((s) => (s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.SecureString = "SecureString", s.Json = "Json", s.PositiveInteger = "PositiveInteger", s))(In || {}), Tn = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(Tn || {}), Pn = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(Pn || {}), On = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(On || {}), Rn = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(Rn || {}), kn = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.Object = "Object", s.Array = "Array", s.String = "String", s.Number = "Number", s.True = "True", s.False = "False", s.Null = "Null", s))(kn || {}), Bn = /* @__PURE__ */ ((s) => (s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.SecureString = "SecureString", s.Json = "Json", s.PositiveInteger = "PositiveInteger", s))(Bn || {}), $n = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))($n || {}), Nn = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(Nn || {}), jn = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(jn || {});
3782
- class zn extends Error {
3781
+ var Un = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(Un || {}), In = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))(In || {}), Tn = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.Object = "Object", s.Array = "Array", s.String = "String", s.Number = "Number", s.True = "True", s.False = "False", s.Null = "Null", s))(Tn || {}), Pn = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(Pn || {}), On = /* @__PURE__ */ ((s) => (s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.SecureString = "SecureString", s.Json = "Json", s.PositiveInteger = "PositiveInteger", s))(On || {}), Rn = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(Rn || {}), kn = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(kn || {}), Bn = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(Bn || {}), $n = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))($n || {}), Nn = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.Object = "Object", s.Array = "Array", s.String = "String", s.Number = "Number", s.True = "True", s.False = "False", s.Null = "Null", s))(Nn || {}), jn = /* @__PURE__ */ ((s) => (s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.SecureString = "SecureString", s.Json = "Json", s.PositiveInteger = "PositiveInteger", s))(jn || {}), zn = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))(zn || {}), Fn = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(Fn || {}), Mn = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(Mn || {});
3782
+ class Dn extends Error {
3783
3783
  message;
3784
3784
  status;
3785
3785
  response;
@@ -3794,11 +3794,11 @@ class zn extends Error {
3794
3794
  }
3795
3795
  }
3796
3796
  function i(s, e, t, n, r) {
3797
- throw r ?? new zn(s, e, t, n, null);
3797
+ throw r ?? new Dn(s, e, t, n, null);
3798
3798
  }
3799
- const Ke = j("use-external-provider"), Fn = "externalSignIn", Mn = () => {
3800
- const s = new En(), e = sr(
3801
- Fn,
3799
+ const qe = N("use-external-provider"), Ln = "externalSignIn", Gn = () => {
3800
+ const s = new _n(), e = or(
3801
+ Ln,
3802
3802
  {},
3803
3803
  {
3804
3804
  listenToStorageChanges: !0,
@@ -3817,7 +3817,7 @@ const Ke = j("use-external-provider"), Fn = "externalSignIn", Mn = () => {
3817
3817
  const d = new URL("/externalsignin", u);
3818
3818
  d.searchParams.set("authenticationType", o), d.searchParams.set("returnUrl", l), e.value = { providerType: o }, window.location.assign(d);
3819
3819
  } catch (u) {
3820
- throw Ke.error("External sign-in failed:", u), u;
3820
+ throw qe.error("External sign-in failed:", u), u;
3821
3821
  }
3822
3822
  }
3823
3823
  async function r(o) {
@@ -3825,7 +3825,7 @@ const Ke = j("use-external-provider"), Fn = "externalSignIn", Mn = () => {
3825
3825
  const u = window.location.origin, l = window.location.pathname ?? "/", d = new URL("/externalsignin/signout", u);
3826
3826
  d.searchParams.set("authenticationType", o), d.searchParams.set("returnUrl", l), e.value = {}, window.location.assign(d);
3827
3827
  } catch (u) {
3828
- throw Ke.error("External sign-out failed:", u), u;
3828
+ throw qe.error("External sign-out failed:", u), u;
3829
3829
  }
3830
3830
  }
3831
3831
  async function a() {
@@ -3833,7 +3833,7 @@ const Ke = j("use-external-provider"), Fn = "externalSignIn", Mn = () => {
3833
3833
  try {
3834
3834
  o = await s.getExternalLoginProviders();
3835
3835
  } catch (u) {
3836
- Ke.error("Failed to get external login providers:", u);
3836
+ qe.error("Failed to get external login providers:", u);
3837
3837
  }
3838
3838
  return o;
3839
3839
  }
@@ -3843,10 +3843,10 @@ const Ke = j("use-external-provider"), Fn = "externalSignIn", Mn = () => {
3843
3843
  signOut: r,
3844
3844
  getProviders: a
3845
3845
  };
3846
- }, dt = "vc_auth_data", z = j("use-user"), ue = O();
3847
- function Dn() {
3846
+ }, ht = "vc_auth_data", z = N("use-user"), ue = O();
3847
+ function Jn() {
3848
3848
  try {
3849
- const s = localStorage.getItem(dt);
3849
+ const s = localStorage.getItem(ht);
3850
3850
  if (s)
3851
3851
  return JSON.parse(s);
3852
3852
  } catch (s) {
@@ -3854,21 +3854,21 @@ function Dn() {
3854
3854
  }
3855
3855
  return null;
3856
3856
  }
3857
- function yt(s) {
3857
+ function xt(s) {
3858
3858
  try {
3859
- z.debug("storeAuthData - Saving:", s), localStorage.setItem(dt, JSON.stringify(s)), z.debug("storeAuthData - Saved successfully");
3859
+ z.debug("storeAuthData - Saving:", s), localStorage.setItem(ht, JSON.stringify(s)), z.debug("storeAuthData - Saved successfully");
3860
3860
  } catch (e) {
3861
3861
  z.error("Failed to store auth data:", e);
3862
3862
  }
3863
3863
  }
3864
- function Ln() {
3864
+ function Wn() {
3865
3865
  try {
3866
- localStorage.removeItem(dt);
3866
+ localStorage.removeItem(ht);
3867
3867
  } catch (s) {
3868
3868
  z.error("Failed to clear auth data:", s);
3869
3869
  }
3870
3870
  }
3871
- async function xt(s) {
3871
+ async function Et(s) {
3872
3872
  try {
3873
3873
  const e = new URLSearchParams(s).toString(), t = await fetch("/connect/token", {
3874
3874
  method: "POST",
@@ -3897,64 +3897,64 @@ async function xt(s) {
3897
3897
  return z.error("fetchToken - Exception:", e), null;
3898
3898
  }
3899
3899
  }
3900
- function jt() {
3901
- const s = O(!1), e = O(null), { storage: t, signOut: n } = Mn(), r = new Cn(), a = v(() => ue.value?.userName != null);
3902
- async function o(g, P) {
3903
- let w = !1;
3900
+ function Ft() {
3901
+ const s = O(!1), e = O(null), { storage: t, signOut: n } = Gn(), r = new An(), a = v(() => ue.value?.userName != null);
3902
+ async function o(b, P) {
3903
+ let C = !1;
3904
3904
  try {
3905
- s.value = !0, w = await r.validatePasswordResetToken(g, {
3905
+ s.value = !0, C = await r.validatePasswordResetToken(b, {
3906
3906
  token: P
3907
3907
  });
3908
3908
  } catch {
3909
3909
  } finally {
3910
3910
  s.value = !1;
3911
3911
  }
3912
- return w;
3912
+ return C;
3913
3913
  }
3914
- async function u(g) {
3915
- return r.validatePassword(g);
3914
+ async function u(b) {
3915
+ return r.validatePassword(b);
3916
3916
  }
3917
- async function l(g, P, w) {
3918
- return r.resetPasswordByToken(g, {
3917
+ async function l(b, P, C) {
3918
+ return r.resetPasswordByToken(b, {
3919
3919
  newPassword: P,
3920
- token: w
3920
+ token: C
3921
3921
  });
3922
3922
  }
3923
- async function d(g, P) {
3923
+ async function d(b, P) {
3924
3924
  z.debug("signIn - Entry point");
3925
3925
  try {
3926
3926
  s.value = !0;
3927
- const w = await r.login({ userName: g, password: P });
3928
- if (z.debug("signIn - Cookie login completed:", w), !w.succeeded)
3929
- return w;
3927
+ const C = await r.login({ userName: b, password: P });
3928
+ if (z.debug("signIn - Cookie login completed:", C), !C.succeeded)
3929
+ return C;
3930
3930
  z.debug("signIn - Requesting token...");
3931
- const _ = await xt({
3931
+ const A = await Et({
3932
3932
  grant_type: "password",
3933
- username: g,
3933
+ username: b,
3934
3934
  password: P,
3935
3935
  scope: "offline_access"
3936
3936
  });
3937
- _ && (e.value = _, yt(e.value), z.debug("signIn - Token saved:", e.value));
3937
+ A && (e.value = A, xt(e.value), z.debug("signIn - Token saved:", e.value));
3938
3938
  const T = await r.getCurrentUser();
3939
3939
  if (T)
3940
- return ue.value = T, w;
3940
+ return ue.value = T, C;
3941
3941
  throw { succeeded: !1 };
3942
- } catch (w) {
3943
- z.error("signIn failed:", w);
3944
- let _ = w.message;
3945
- if (w.response)
3942
+ } catch (C) {
3943
+ z.error("signIn failed:", C);
3944
+ let A = C.message;
3945
+ if (C.response)
3946
3946
  try {
3947
- const T = JSON.parse(w.response);
3948
- _ = T.errorDescription || T.errors?.[0]?.description || T.error || _;
3947
+ const T = JSON.parse(C.response);
3948
+ A = T.errorDescription || T.errors?.[0]?.description || T.error || A;
3949
3949
  } catch {
3950
3950
  }
3951
- return { succeeded: !1, error: _, status: w.status };
3951
+ return { succeeded: !1, error: A, status: C.status };
3952
3952
  } finally {
3953
3953
  s.value = !1;
3954
3954
  }
3955
3955
  }
3956
3956
  async function c() {
3957
- z.debug("signOut - Entry point"), ue.value = void 0, Ln(), e.value = null, t.value?.providerType ? await n(t.value.providerType) : r.logout();
3957
+ z.debug("signOut - Entry point"), ue.value = void 0, Wn(), e.value = null, t.value?.providerType ? await n(t.value.providerType) : r.logout();
3958
3958
  }
3959
3959
  let f = null;
3960
3960
  async function h() {
@@ -3962,70 +3962,70 @@ function jt() {
3962
3962
  z.debug("loadUser - Entry point");
3963
3963
  try {
3964
3964
  s.value = !0, performance.mark("vc:auth-start");
3965
- const [g] = await Promise.all([r.getCurrentUser(), E()]);
3966
- ue.value = g, performance.mark("vc:auth-done"), z.debug("User details loaded:", ue.value);
3967
- } catch (g) {
3968
- z.error("loadUser failed:", g);
3965
+ const [b] = await Promise.all([r.getCurrentUser(), E()]);
3966
+ ue.value = b, performance.mark("vc:auth-done"), z.debug("User details loaded:", ue.value);
3967
+ } catch (b) {
3968
+ z.error("loadUser failed:", b);
3969
3969
  } finally {
3970
3970
  s.value = !1, f = null;
3971
3971
  }
3972
3972
  return { ...ue.value };
3973
3973
  })(), f);
3974
3974
  }
3975
- async function m(g) {
3975
+ async function m(b) {
3976
3976
  try {
3977
- return s.value = !0, await r.requestPasswordReset(g), { succeeded: !0 };
3977
+ return s.value = !0, await r.requestPasswordReset(b), { succeeded: !0 };
3978
3978
  } catch (P) {
3979
3979
  return { succeeded: !1, error: P };
3980
3980
  } finally {
3981
3981
  s.value = !1;
3982
3982
  }
3983
3983
  }
3984
- async function b(g, P) {
3985
- let w;
3984
+ async function g(b, P) {
3985
+ let C;
3986
3986
  try {
3987
3987
  s.value = !0;
3988
- const _ = {
3989
- oldPassword: g,
3988
+ const A = {
3989
+ oldPassword: b,
3990
3990
  newPassword: P
3991
3991
  };
3992
- w = await r.changeCurrentUserPassword(_);
3993
- } catch (_) {
3994
- return { succeeded: !1, errors: [_.message] };
3992
+ C = await r.changeCurrentUserPassword(A);
3993
+ } catch (A) {
3994
+ return { succeeded: !1, errors: [A.message] };
3995
3995
  } finally {
3996
3996
  s.value = !1;
3997
3997
  }
3998
- return w;
3998
+ return C;
3999
3999
  }
4000
4000
  async function S() {
4001
- let g = null;
4001
+ let b = null;
4002
4002
  try {
4003
- g = await r.getLoginTypes();
4003
+ b = await r.getLoginTypes();
4004
4004
  } catch (P) {
4005
4005
  throw z.error("getLoginType failed:", P), P;
4006
4006
  }
4007
- return g;
4007
+ return b;
4008
4008
  }
4009
- const A = 60 * 1e3;
4009
+ const U = 60 * 1e3;
4010
4010
  async function E() {
4011
- if (z.debug("getAccessToken - Entry point"), e.value || (e.value = Dn()), !e.value)
4011
+ if (z.debug("getAccessToken - Entry point"), e.value || (e.value = Jn()), !e.value)
4012
4012
  return z.debug("getAccessToken - No auth data available"), null;
4013
- const g = Date.now(), P = e.value.expires_at, w = P ? g >= P - A : !1;
4013
+ const b = Date.now(), P = e.value.expires_at, C = P ? b >= P - U : !1;
4014
4014
  if (z.debug("getAccessToken - Token status:", {
4015
4015
  hasToken: !!e.value.access_token,
4016
4016
  expiresAt: P ? new Date(P).toISOString() : "not set",
4017
- now: new Date(g).toISOString(),
4018
- shouldRefresh: w,
4017
+ now: new Date(b).toISOString(),
4018
+ shouldRefresh: C,
4019
4019
  hasRefreshToken: !!e.value.refresh_token
4020
- }), w && e.value.refresh_token) {
4020
+ }), C && e.value.refresh_token) {
4021
4021
  z.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
4022
- const _ = await xt({
4022
+ const A = await Et({
4023
4023
  grant_type: "refresh_token",
4024
4024
  refresh_token: e.value.refresh_token,
4025
4025
  scope: "offline_access"
4026
4026
  });
4027
- _ ? (_.refresh_token = _.refresh_token ?? e.value.refresh_token, e.value = _, yt(e.value), z.debug("getAccessToken - Token refreshed successfully, new expiry:", {
4028
- expiresAt: _.expires_at ? new Date(_.expires_at).toISOString() : "not set"
4027
+ A ? (A.refresh_token = A.refresh_token ?? e.value.refresh_token, e.value = A, xt(e.value), z.debug("getAccessToken - Token refreshed successfully, new expiry:", {
4028
+ expiresAt: A.expires_at ? new Date(A.expires_at).toISOString() : "not set"
4029
4029
  })) : z.warn("getAccessToken - Failed to refresh token, returning existing token");
4030
4030
  }
4031
4031
  return e.value?.access_token ?? e.value?.token ?? null;
@@ -4042,13 +4042,13 @@ function jt() {
4042
4042
  validatePassword: u,
4043
4043
  resetPasswordByToken: l,
4044
4044
  requestPasswordReset: m,
4045
- changeUserPassword: b,
4045
+ changeUserPassword: g,
4046
4046
  getLoginType: S,
4047
4047
  getAccessToken: E
4048
4048
  };
4049
4049
  }
4050
- const Gn = Bt(() => {
4051
- const s = jt();
4050
+ const Hn = $t(() => {
4051
+ const s = Ft();
4052
4052
  return {
4053
4053
  user: s.user,
4054
4054
  loading: s.loading,
@@ -4058,14 +4058,14 @@ const Gn = Bt(() => {
4058
4058
  signOut: s.signOut,
4059
4059
  getAccessToken: s.getAccessToken
4060
4060
  };
4061
- }), Jn = {
4061
+ }), Kn = {
4062
4062
  info: 5e3,
4063
4063
  warning: 8e3,
4064
4064
  error: !1,
4065
4065
  // persistent
4066
4066
  critical: !1
4067
4067
  // persistent
4068
- }, Ai = Symbol("NotificationContext"), Wn = ["IndexProgressPushNotification"], Hn = Symbol("NotificationContainerState"), Kn = j("notification-instance"), re = {
4068
+ }, Ii = Symbol("NotificationContext"), qn = ["IndexProgressPushNotification"], Zn = Symbol("NotificationContainerState"), Yn = N("notification-instance"), ne = {
4069
4069
  "top-center": void 0,
4070
4070
  "top-right": void 0,
4071
4071
  "top-left": void 0,
@@ -4073,27 +4073,27 @@ const Gn = Bt(() => {
4073
4073
  "bottom-right": void 0,
4074
4074
  "bottom-left": void 0
4075
4075
  };
4076
- function qn() {
4076
+ function Xn() {
4077
4077
  function s(r, a, o) {
4078
- document.getElementById(a) && (re[o] = r);
4078
+ document.getElementById(a) && (ne[o] = r);
4079
4079
  }
4080
4080
  function e(r) {
4081
4081
  try {
4082
- r ? re[r] && (re[r]?.unmount(), document.getElementById(`notification-${r}`)?.remove(), re[r] = void 0) : (Object.keys(re).forEach((o) => {
4082
+ r ? ne[r] && (ne[r]?.unmount(), document.getElementById(`notification-${r}`)?.remove(), ne[r] = void 0) : (Object.keys(ne).forEach((o) => {
4083
4083
  const u = o;
4084
- re[u]?.unmount(), document.getElementById(`notification-${u}`)?.remove(), re[u] = void 0;
4085
- }), Object.values(re).some((o) => o !== void 0) || document.querySelector(".notification")?.remove());
4084
+ ne[u]?.unmount(), document.getElementById(`notification-${u}`)?.remove(), ne[u] = void 0;
4085
+ }), Object.values(ne).some((o) => o !== void 0) || document.querySelector(".notification")?.remove());
4086
4086
  } catch (a) {
4087
- Kn.error("Failed to unmount notification component:", a);
4087
+ Yn.error("Failed to unmount notification component:", a);
4088
4088
  }
4089
4089
  }
4090
4090
  function t() {
4091
- Object.keys(re).forEach((r) => {
4092
- re[r] && e(r);
4091
+ Object.keys(ne).forEach((r) => {
4092
+ ne[r] && e(r);
4093
4093
  });
4094
4094
  }
4095
4095
  function n(r) {
4096
- return re[r];
4096
+ return ne[r];
4097
4097
  }
4098
4098
  return {
4099
4099
  saveInstance: s,
@@ -4102,25 +4102,25 @@ function qn() {
4102
4102
  getInstanceByPosition: n
4103
4103
  };
4104
4104
  }
4105
- const be = j("notification-container"), Q = {
4105
+ const ye = N("notification-container"), te = {
4106
4106
  "top-center": O([]),
4107
4107
  "top-right": O([]),
4108
4108
  "top-left": O([]),
4109
4109
  "bottom-center": O([]),
4110
4110
  "bottom-right": O([]),
4111
4111
  "bottom-left": O([])
4112
- }, { clearContainer: Zn, unmountComponent: Yn, saveInstance: Xn, getInstanceByPosition: Et } = qn();
4113
- function Vn() {
4114
- const s = Zt({
4112
+ }, { clearContainer: Vn, unmountComponent: Qn, saveInstance: ea, getInstanceByPosition: wt } = Xn();
4113
+ function ta() {
4114
+ const s = Xt({
4115
4115
  timeout: 3e3,
4116
4116
  pauseOnHover: !0,
4117
4117
  position: "top-center"
4118
4118
  });
4119
4119
  function e() {
4120
- return Object.values(Q).flatMap((l) => l.value);
4120
+ return Object.values(te).flatMap((l) => l.value);
4121
4121
  }
4122
4122
  function t(l) {
4123
- return Q[l].value;
4123
+ return te[l].value;
4124
4124
  }
4125
4125
  function n(l) {
4126
4126
  return e().find((d) => d.notificationId === l);
@@ -4132,15 +4132,15 @@ function Vn() {
4132
4132
  }
4133
4133
  async function a(l) {
4134
4134
  const d = l.position || s.position;
4135
- if (!Et(d)) {
4136
- const f = r(d), { default: h } = await import("./index-WxG6Hq5V.js"), m = Yt(h, {
4135
+ if (!wt(d)) {
4136
+ const f = r(d), { default: h } = await import("./index-BzpX90RF.js"), m = Vt(h, {
4137
4137
  ...l,
4138
4138
  position: d
4139
4139
  // Pass the position to the component
4140
4140
  });
4141
- m.provide(Hn, { notificationContainers: Q, actions: u }), m.mount(f), Xn(m, f.id, d);
4141
+ m.provide(Zn, { notificationContainers: te, actions: u }), m.mount(f), ea(m, f.id, d);
4142
4142
  }
4143
- ne(() => {
4143
+ ae(() => {
4144
4144
  l.updateId ? u.update(l) : u.add(l);
4145
4145
  });
4146
4146
  }
@@ -4149,62 +4149,62 @@ function Vn() {
4149
4149
  }
4150
4150
  const u = {
4151
4151
  add(l) {
4152
- const d = l.position || s.position, c = Q[d];
4153
- c.value.find((f) => f.notificationId === l.notificationId) || ne(() => {
4152
+ const d = l.position || s.position, c = te[d];
4153
+ c.value.find((f) => f.notificationId === l.notificationId) || ae(() => {
4154
4154
  c.value.push(l), l.onOpen && typeof l?.onOpen == "function" && l.onOpen(l.payload);
4155
4155
  });
4156
4156
  },
4157
4157
  remove(l) {
4158
4158
  if (l) {
4159
4159
  let d, c;
4160
- Object.entries(Q).forEach(([f, h]) => {
4161
- const m = h.value.find((b) => b.notificationId === l);
4160
+ Object.entries(te).forEach(([f, h]) => {
4161
+ const m = h.value.find((g) => g.notificationId === l);
4162
4162
  m && (d = m, c = f);
4163
- }), c && (Q[c].value = Q[c].value.filter((f) => f.notificationId !== l), Q[c].value.length === 0 && Yn(c), ne(() => {
4163
+ }), c && (te[c].value = te[c].value.filter((f) => f.notificationId !== l), te[c].value.length === 0 && Qn(c), ae(() => {
4164
4164
  d?.onClose && typeof d?.onClose == "function" && d.onClose(d.payload);
4165
4165
  }));
4166
4166
  }
4167
4167
  },
4168
4168
  clear() {
4169
- Zn(), Object.values(Q).forEach((l) => {
4169
+ Vn(), Object.values(te).forEach((l) => {
4170
4170
  l.value = [];
4171
4171
  });
4172
4172
  },
4173
4173
  dismiss(l) {
4174
4174
  if (!l) return;
4175
4175
  let d = !1;
4176
- Object.values(Q).forEach((c) => {
4176
+ Object.values(te).forEach((c) => {
4177
4177
  c.value.forEach((f) => {
4178
4178
  f.notificationId === l && (f.dismissing = !0, d = !0);
4179
4179
  });
4180
- }), d || be.debug(`dismiss: notification ${l} not found`);
4180
+ }), d || ye.debug(`dismiss: notification ${l} not found`);
4181
4181
  },
4182
4182
  update(l) {
4183
4183
  if (l.updateId) {
4184
4184
  let d, c, f;
4185
- if (Object.entries(Q).forEach(([h, m]) => {
4186
- const b = m.value.find((S) => S.notificationId === l.notificationId);
4187
- b && (d = b, c = m, f = h);
4185
+ if (Object.entries(te).forEach(([h, m]) => {
4186
+ const g = m.value.find((S) => S.notificationId === l.notificationId);
4187
+ g && (d = g, c = m, f = h);
4188
4188
  }), d && c) {
4189
- if (be.debug(`Updating notification ${l.notificationId} in position ${f}`), l.position && l.position !== f) {
4189
+ if (ye.debug(`Updating notification ${l.notificationId} in position ${f}`), l.position && l.position !== f) {
4190
4190
  c.value = c.value.filter(
4191
- (b) => b.notificationId !== l.notificationId
4191
+ (g) => g.notificationId !== l.notificationId
4192
4192
  );
4193
4193
  const h = {
4194
4194
  ...d,
4195
4195
  ...l
4196
4196
  }, m = l.position;
4197
- Et(m) ? (be.debug(`Adding to existing container for position ${m}`), Q[m].value.push(h)) : (be.debug(`Creating new container for position ${m}`), a(h));
4197
+ wt(m) ? (ye.debug(`Adding to existing container for position ${m}`), te[m].value.push(h)) : (ye.debug(`Creating new container for position ${m}`), a(h));
4198
4198
  } else
4199
- be.debug("Standard update of notification properties"), Object.keys(l).forEach((h) => {
4199
+ ye.debug("Standard update of notification properties"), Object.keys(l).forEach((h) => {
4200
4200
  if (h !== "updateId" && h !== "notificationId") {
4201
- const m = h, b = l[m];
4202
- d && b !== void 0 && (d[m] = b);
4201
+ const m = h, g = l[m];
4202
+ d && g !== void 0 && (d[m] = g);
4203
4203
  }
4204
4204
  });
4205
4205
  return !0;
4206
4206
  } else
4207
- return be.warn(`Notification with ID ${l.notificationId} not found for update`), !1;
4207
+ return ye.warn(`Notification with ID ${l.notificationId} not found for update`), !1;
4208
4208
  }
4209
4209
  return !1;
4210
4210
  },
@@ -4214,48 +4214,48 @@ function Vn() {
4214
4214
  };
4215
4215
  return {
4216
4216
  defaultOptions: s,
4217
- notificationContainers: Q,
4217
+ notificationContainers: te,
4218
4218
  actions: u,
4219
4219
  getAllNotifications: e,
4220
4220
  getNotificationsByPosition: t,
4221
4221
  appendInstance: a,
4222
4222
  getNotification: n,
4223
- generateNotificationId: Sr,
4223
+ generateNotificationId: Ur,
4224
4224
  hasNotification: o
4225
4225
  };
4226
4226
  }
4227
- const Ue = j("notification"), {
4228
- defaultOptions: we,
4227
+ const Ie = N("notification"), {
4228
+ defaultOptions: Ce,
4229
4229
  actions: de,
4230
- getNotification: Qn,
4231
- getAllNotifications: Qe,
4232
- appendInstance: ea,
4233
- generateNotificationId: et,
4234
- hasNotification: ta
4235
- } = Vn();
4236
- function Te(s, e) {
4237
- return e = xe(
4238
- we,
4230
+ getNotification: ra,
4231
+ getAllNotifications: et,
4232
+ appendInstance: na,
4233
+ generateNotificationId: tt,
4234
+ hasNotification: aa
4235
+ } = ta();
4236
+ function Pe(s, e) {
4237
+ return e = we(
4238
+ Ce,
4239
4239
  e
4240
- ), (!e.notificationId || typeof e.notificationId != "string" && typeof e.notificationId != "number") && (e.notificationId = et()), e = {
4240
+ ), (!e.notificationId || typeof e.notificationId != "string" && typeof e.notificationId != "number") && (e.notificationId = tt()), e = {
4241
4241
  ...e,
4242
4242
  content: s
4243
- }, ea(e), e.notificationId;
4243
+ }, na(e), e.notificationId;
4244
4244
  }
4245
- const Y = (s, e) => Te(s, { ...e, type: "default" });
4246
- Y.error = (s, e) => Te(s, { ...e, type: "error" });
4247
- Y.warning = (s, e) => Te(s, { ...e, type: "warning" });
4248
- Y.success = (s, e) => Te(s, { ...e, type: "success" });
4249
- Y.clearAll = () => {
4245
+ const X = (s, e) => Pe(s, { ...e, type: "default" });
4246
+ X.error = (s, e) => Pe(s, { ...e, type: "error" });
4247
+ X.warning = (s, e) => Pe(s, { ...e, type: "warning" });
4248
+ X.success = (s, e) => Pe(s, { ...e, type: "success" });
4249
+ X.clearAll = () => {
4250
4250
  de.clear();
4251
4251
  };
4252
- Y.remove = (s) => {
4252
+ X.remove = (s) => {
4253
4253
  s ? de.dismiss(s) : de.clear();
4254
4254
  };
4255
- Y.update = (s, e) => {
4256
- if (!ta(s))
4257
- return Ue.warn(`Cannot update: notification with ID ${s} not found`), s;
4258
- const t = Qn(String(s));
4255
+ X.update = (s, e) => {
4256
+ if (!aa(s))
4257
+ return Ie.warn(`Cannot update: notification with ID ${s} not found`), s;
4258
+ const t = ra(String(s));
4259
4259
  if (t)
4260
4260
  if (e.position && e.position !== t.position) {
4261
4261
  const n = {
@@ -4263,42 +4263,42 @@ Y.update = (s, e) => {
4263
4263
  // Copy all current properties
4264
4264
  ...e,
4265
4265
  // Apply new properties
4266
- updateId: et(),
4266
+ updateId: tt(),
4267
4267
  // Mark as update
4268
4268
  notificationId: s
4269
4269
  // Keep the original ID
4270
4270
  };
4271
4271
  let r;
4272
4272
  if (e.content !== void 0 ? (r = e.content, delete n.content) : t.content && (r = t.content, delete n.content), r)
4273
- return de.remove(s), Te(r, n);
4273
+ return de.remove(s), Pe(r, n);
4274
4274
  } else {
4275
4275
  const n = {
4276
4276
  ...e,
4277
- updateId: et(),
4277
+ updateId: tt(),
4278
4278
  notificationId: s
4279
4279
  };
4280
4280
  return e.content !== void 0, de.update(n), s;
4281
4281
  }
4282
4282
  return s;
4283
4283
  };
4284
- Y.setPosition = (s) => {
4285
- we.position = s;
4284
+ X.setPosition = (s) => {
4285
+ Ce.position = s;
4286
4286
  };
4287
- Y.clearPosition = (s) => {
4288
- Qe().filter(
4289
- (t) => (t.position || we.position) === s
4287
+ X.clearPosition = (s) => {
4288
+ et().filter(
4289
+ (t) => (t.position || Ce.position) === s
4290
4290
  ).forEach((t) => {
4291
4291
  t.notificationId && de.dismiss(t.notificationId);
4292
4292
  });
4293
4293
  };
4294
- Y.debug = () => {
4295
- Object.entries(we).forEach(([e, t]) => {
4296
- Ue.debug(`Default option ${e}: `, t);
4294
+ X.debug = () => {
4295
+ Object.entries(Ce).forEach(([e, t]) => {
4296
+ Ie.debug(`Default option ${e}: `, t);
4297
4297
  }), Object.entries(de).forEach(([e]) => {
4298
- Ue.debug(`Available action: ${e}`);
4298
+ Ie.debug(`Available action: ${e}`);
4299
4299
  });
4300
- const s = Qe().reduce((e, t) => {
4301
- const n = t.position || we.position;
4300
+ const s = et().reduce((e, t) => {
4301
+ const n = t.position || Ce.position;
4302
4302
  return e[n] || (e[n] = []), e[n].push({
4303
4303
  id: t.notificationId || "unknown",
4304
4304
  type: t.type,
@@ -4306,20 +4306,20 @@ Y.debug = () => {
4306
4306
  }), e;
4307
4307
  }, {});
4308
4308
  return Object.entries(s).forEach(([e, t]) => {
4309
- Ue.debug(`Position ${e}: ${t.length} notifications`), t.forEach((n) => Ue.debug(` - ${n.id} (${n.type}): ${n.content}`));
4309
+ Ie.debug(`Position ${e}: ${t.length} notifications`), t.forEach((n) => Ie.debug(` - ${n.id} (${n.type}): ${n.content}`));
4310
4310
  }), {
4311
- active: Qe(),
4312
- defaultOptions: we
4311
+ active: et(),
4312
+ defaultOptions: Ce
4313
4313
  };
4314
4314
  };
4315
- const ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4315
+ const sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4316
4316
  __proto__: null,
4317
- notification: Y
4317
+ notification: X
4318
4318
  }, Symbol.toStringTag, { value: "Module" }));
4319
- function na(s, e) {
4319
+ function ia(s, e) {
4320
4320
  return s.severity ? typeof s.severity == "function" ? s.severity(e) : s.severity : "info";
4321
4321
  }
4322
- function aa(s, e) {
4322
+ function oa(s, e) {
4323
4323
  const t = s.notifyType ?? "unknown";
4324
4324
  if (e.groupBy) {
4325
4325
  const n = s[e.groupBy] ?? "default";
@@ -4327,28 +4327,28 @@ function aa(s, e) {
4327
4327
  }
4328
4328
  return `${t}::${s.id}`;
4329
4329
  }
4330
- const sa = (s) => !!s.finished;
4331
- function ia() {
4330
+ const la = (s) => !!s.finished;
4331
+ function ua() {
4332
4332
  const s = /* @__PURE__ */ new Map();
4333
4333
  function e(r, a) {
4334
4334
  if (!a.toast || a.toast.mode === "silent") return;
4335
- const o = na(a.toast, r);
4335
+ const o = ia(a.toast, r);
4336
4336
  a.toast.mode === "auto" ? t(r, o, a) : a.toast.mode === "progress" && n(r, o, a);
4337
4337
  }
4338
4338
  function t(r, a, o) {
4339
- const u = o.toast && typeof o.toast != "boolean" && o.toast.timeout != null ? o.toast.timeout : Jn[a];
4340
- Y(r.title ?? "", {
4339
+ const u = o.toast && typeof o.toast != "boolean" && o.toast.timeout != null ? o.toast.timeout : Kn[a];
4340
+ X(r.title ?? "", {
4341
4341
  timeout: u,
4342
4342
  type: a === "critical" ? "error" : a === "info" ? "default" : a
4343
4343
  });
4344
4344
  }
4345
4345
  function n(r, a, o) {
4346
- const u = o.toast, l = aa(r, o);
4347
- if ((u.isComplete ?? sa)(r)) {
4346
+ const u = o.toast, l = oa(r, o);
4347
+ if ((u.isComplete ?? la)(r)) {
4348
4348
  const f = s.get(l);
4349
4349
  if (f) {
4350
4350
  const h = u.completedType?.(r) ?? "success";
4351
- Y.update(f.toastId, {
4351
+ X.update(f.toastId, {
4352
4352
  type: h,
4353
4353
  timeout: 5e3,
4354
4354
  content: r.title ?? ""
@@ -4358,11 +4358,11 @@ function ia() {
4358
4358
  }
4359
4359
  const c = s.get(l);
4360
4360
  if (c)
4361
- Y.update(c.toastId, {
4361
+ X.update(c.toastId, {
4362
4362
  content: r.title ?? ""
4363
4363
  });
4364
4364
  else {
4365
- const f = Y(r.title ?? "", {
4365
+ const f = X(r.title ?? "", {
4366
4366
  timeout: !1,
4367
4367
  type: a === "critical" ? "error" : a === "info" ? "default" : a
4368
4368
  });
@@ -4371,39 +4371,39 @@ function ia() {
4371
4371
  }
4372
4372
  return { handle: e };
4373
4373
  }
4374
- const wt = j("notification-store");
4375
- function oa(s) {
4374
+ const Ct = N("notification-store");
4375
+ function ca(s) {
4376
4376
  const e = /* @__PURE__ */ new Map(), t = O([]), n = O([]), r = /* @__PURE__ */ new Map();
4377
4377
  let a = 0;
4378
- const o = ia().handle, u = new wn(), l = v(() => t.value.filter((E) => E.isNew).length), d = v(() => l.value > 0);
4379
- function c(E, g) {
4380
- e.set(E, g);
4378
+ const o = ua().handle, u = new Sn(), l = v(() => t.value.filter((E) => E.isNew).length), d = v(() => l.value > 0);
4379
+ function c(E, b) {
4380
+ e.set(E, b);
4381
4381
  }
4382
4382
  function f(E) {
4383
- if (E.notifyType && Wn.includes(E.notifyType))
4383
+ if (E.notifyType && qn.includes(E.notifyType))
4384
4384
  return;
4385
- let g = E.isNew;
4385
+ let b = E.isNew;
4386
4386
  const P = t.value.findIndex((T) => T.id === E.id);
4387
4387
  if (P !== -1) {
4388
4388
  const T = t.value[P];
4389
- g = T.isNew, Object.assign(T, E), T.isNew = g;
4389
+ b = T.isNew, Object.assign(T, E), T.isNew = b;
4390
4390
  } else
4391
4391
  t.value.push({ ...E });
4392
- const w = n.value.findIndex((T) => T.id === E.id);
4393
- if (w !== -1) {
4394
- const T = n.value[w];
4395
- Object.assign(T, E), T.isNew = g;
4392
+ const C = n.value.findIndex((T) => T.id === E.id);
4393
+ if (C !== -1) {
4394
+ const T = n.value[C];
4395
+ Object.assign(T, E), T.isNew = b;
4396
4396
  } else
4397
4397
  n.value.push({ ...E });
4398
- const _ = E.notifyType ? e.get(E.notifyType) : void 0;
4399
- if (_ && g && o(E, _), g && E.notifyType)
4398
+ const A = E.notifyType ? e.get(E.notifyType) : void 0;
4399
+ if (A && b && o(E, A), b && E.notifyType)
4400
4400
  for (const T of r.values())
4401
4401
  T.types.includes(E.notifyType) && (T.filter && !T.filter(E) || T.handler?.(E));
4402
4402
  }
4403
4403
  function h(E) {
4404
- const g = t.value.find((w) => w.id === E.id);
4405
- g && (g.isNew = !1);
4406
- const P = n.value.find((w) => w.id === E.id);
4404
+ const b = t.value.find((C) => C.id === E.id);
4405
+ b && (b.isNew = !1);
4406
+ const P = n.value.find((C) => C.id === E.id);
4407
4407
  P && (P.isNew = !1);
4408
4408
  }
4409
4409
  async function m() {
@@ -4415,25 +4415,25 @@ function oa(s) {
4415
4415
  try {
4416
4416
  await u.markAllAsRead();
4417
4417
  } catch (E) {
4418
- wt.error("markAllAsRead failed:", E);
4418
+ Ct.error("markAllAsRead failed:", E);
4419
4419
  }
4420
4420
  }
4421
- async function b(E = 10) {
4421
+ async function g(E = 10) {
4422
4422
  try {
4423
- const g = { take: E }, P = await u.searchPushNotification(g);
4423
+ const b = { take: E }, P = await u.searchPushNotification(b);
4424
4424
  t.value = P.notifyEvents ?? [];
4425
- } catch (g) {
4426
- throw wt.error("loadHistory failed:", g), g;
4425
+ } catch (b) {
4426
+ throw Ct.error("loadHistory failed:", b), b;
4427
4427
  }
4428
4428
  }
4429
4429
  function S(E) {
4430
- const g = ++a;
4431
- return r.set(g, { id: g, ...E }), () => {
4432
- r.delete(g);
4430
+ const b = ++a;
4431
+ return r.set(b, { id: b, ...E }), () => {
4432
+ r.delete(b);
4433
4433
  };
4434
4434
  }
4435
- function A(E) {
4436
- return t.value.filter((g) => g.notifyType === E);
4435
+ function U(E) {
4436
+ return t.value.filter((b) => b.notifyType === E);
4437
4437
  }
4438
4438
  return {
4439
4439
  // State
@@ -4448,36 +4448,36 @@ function oa(s) {
4448
4448
  ingest: f,
4449
4449
  markAsRead: h,
4450
4450
  markAllAsRead: m,
4451
- loadHistory: b,
4451
+ loadHistory: g,
4452
4452
  subscribe: S,
4453
- getByType: A
4453
+ getByType: U
4454
4454
  };
4455
4455
  }
4456
- let Re = null;
4457
- function la() {
4458
- if (Ee()) {
4459
- const s = F(Lr, null);
4456
+ let ke = null;
4457
+ function da() {
4458
+ if (me()) {
4459
+ const s = F(Wr, null);
4460
4460
  if (s)
4461
- return Re = s, s;
4461
+ return ke = s, s;
4462
4462
  }
4463
- return Re || (Re = oa()), Re;
4463
+ return ke || (ke = ca()), ke;
4464
4464
  }
4465
- const je = /* @__PURE__ */ new WeakMap();
4466
- function Ui(s, e, t) {
4467
- je.set(s, { timerId: e, notifId: t });
4465
+ const ze = /* @__PURE__ */ new WeakMap();
4466
+ function Ti(s, e, t) {
4467
+ ze.set(s, { timerId: e, notifId: t });
4468
4468
  }
4469
- function ua(s) {
4469
+ function ha(s) {
4470
4470
  if (s && typeof s == "object") {
4471
- const e = je.get(s), t = "originalError" in s && s.originalError && typeof s.originalError == "object" ? s.originalError : void 0, n = e ?? (t ? je.get(t) : void 0), r = e ? s : t;
4471
+ const e = ze.get(s), t = "originalError" in s && s.originalError && typeof s.originalError == "object" ? s.originalError : void 0, n = e ?? (t ? ze.get(t) : void 0), r = e ? s : t;
4472
4472
  if (n && r)
4473
- return clearTimeout(n.timerId), Promise.resolve().then(() => ra).then(({ notification: a }) => {
4473
+ return clearTimeout(n.timerId), Promise.resolve().then(() => sa).then(({ notification: a }) => {
4474
4474
  a.remove(n.notifId);
4475
- }), je.delete(r), !0;
4475
+ }), ze.delete(r), !0;
4476
4476
  }
4477
4477
  return !1;
4478
4478
  }
4479
- const We = Bt(() => {
4480
- const s = jt();
4479
+ const We = $t(() => {
4480
+ const s = Ft();
4481
4481
  return {
4482
4482
  user: s.user,
4483
4483
  loading: s.loading,
@@ -4494,7 +4494,7 @@ const We = Bt(() => {
4494
4494
  signOut: s.signOut
4495
4495
  };
4496
4496
  });
4497
- function ca() {
4497
+ function fa() {
4498
4498
  const { user: s } = We();
4499
4499
  function e(t) {
4500
4500
  const n = s.value?.permissions ?? [];
@@ -4510,15 +4510,15 @@ function ca() {
4510
4510
  hasAccess: e
4511
4511
  };
4512
4512
  }
4513
- const da = Symbol("AppInsightsOptions"), ha = Symbol("AppInsightsInstance");
4514
- function fa() {
4515
- const s = F(ha, null), { user: e } = We(), t = F(da, void 0);
4513
+ const pa = Symbol("AppInsightsOptions"), ma = Symbol("AppInsightsInstance");
4514
+ function va() {
4515
+ const s = F(ma, null), { user: e } = We(), t = F(pa, void 0);
4516
4516
  function n() {
4517
4517
  const r = t?.appName ? `[${t.appName}] ` : "", a = (l) => `${r}${l.name}`;
4518
4518
  function o(l) {
4519
4519
  if (!s) return;
4520
4520
  const d = a(l);
4521
- s.context.telemetryTrace.traceID = fr(), s.context.telemetryTrace.name = l.name, s.startTrackPage(d);
4521
+ s.context.telemetryTrace.traceID = mr(), s.context.telemetryTrace.name = l.name, s.startTrackPage(d);
4522
4522
  }
4523
4523
  function u(l) {
4524
4524
  if (!s) return;
@@ -4538,24 +4538,24 @@ function fa() {
4538
4538
  appInsights: s
4539
4539
  };
4540
4540
  }
4541
- const pa = j("use-error-handler");
4542
- function ma(s) {
4543
- const e = O(null), t = Ee(), { appInsights: n } = fa(), { user: r } = We(), a = O(!1);
4541
+ const ga = N("use-error-handler");
4542
+ function ba(s) {
4543
+ const e = O(null), t = me(), { appInsights: n } = va(), { user: r } = We(), a = O(!1);
4544
4544
  function o() {
4545
4545
  e.value = null, t && t.emit("reset");
4546
4546
  }
4547
- return Xt((u) => {
4547
+ return Qt((u) => {
4548
4548
  if (a.value)
4549
4549
  return !s;
4550
4550
  a.value = !0;
4551
- const l = Ve(u);
4551
+ const l = Qe(u);
4552
4552
  return e.value = l, n && n.trackException({
4553
4553
  exception: l,
4554
4554
  properties: {
4555
4555
  userId: r.value?.id ?? "",
4556
4556
  userName: r.value?.userName ?? ""
4557
4557
  }
4558
- }), pa.error("Captured Error:", l.originalError), t && t.emit("error", l), ne(() => {
4558
+ }), ga.error("Captured Error:", l.originalError), t && t.emit("error", l), ae(() => {
4559
4559
  a.value = !1;
4560
4560
  }), !s;
4561
4561
  }), {
@@ -4563,13 +4563,13 @@ function ma(s) {
4563
4563
  reset: o
4564
4564
  };
4565
4565
  }
4566
- function va(s) {
4567
- const e = j(`${s.name}-bus`), t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set();
4566
+ function ya(s) {
4567
+ const e = N(`${s.name}-bus`), t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set();
4568
4568
  function r(h) {
4569
4569
  const m = s.getKey(h);
4570
- t.set(m, h), n.size > 0 && c((b) => {
4570
+ t.set(m, h), n.size > 0 && c((g) => {
4571
4571
  try {
4572
- s.registerIntoService(b, h);
4572
+ s.registerIntoService(g, h);
4573
4573
  } catch (S) {
4574
4574
  e.warn(`Failed to live-register item (key=${m}):`, S);
4575
4575
  }
@@ -4579,24 +4579,24 @@ function va(s) {
4579
4579
  t.delete(h), s.unregisterFromService && n.size > 0 && n.forEach((m) => {
4580
4580
  try {
4581
4581
  s.unregisterFromService(m, h);
4582
- } catch (b) {
4583
- e.warn(`Failed to live-unregister item (id=${h}):`, b);
4582
+ } catch (g) {
4583
+ e.warn(`Failed to live-unregister item (id=${h}):`, g);
4584
4584
  }
4585
4585
  });
4586
4586
  }
4587
4587
  function o(h) {
4588
- for (const [m, b] of t)
4589
- h(b) && t.delete(m);
4588
+ for (const [m, g] of t)
4589
+ h(g) && t.delete(m);
4590
4590
  }
4591
4591
  function u() {
4592
4592
  return Array.from(t.values());
4593
4593
  }
4594
4594
  function l(h) {
4595
- n.add(h), t.forEach((m, b) => {
4595
+ n.add(h), t.forEach((m, g) => {
4596
4596
  try {
4597
4597
  s.registerIntoService(h, m);
4598
4598
  } catch (S) {
4599
- e.warn(`Failed to replay item (key=${b}):`, S);
4599
+ e.warn(`Failed to replay item (key=${g}):`, S);
4600
4600
  }
4601
4601
  });
4602
4602
  }
@@ -4624,41 +4624,41 @@ function va(s) {
4624
4624
  };
4625
4625
  }
4626
4626
  function De(s) {
4627
- return s.id !== void 0 ? `id:${String(s.id)}` : s.routeId ? `route:${s.routeId}` : s.url ? `url:${s.url}` : s.groupConfig?.id ? `gc:${s.groupConfig.id}:${s.title}` : s.group ? `g:${s.group}:${s.title}` : `hash:${JSON.stringify(kt(s, "title"))}`;
4627
+ return s.id !== void 0 ? `id:${String(s.id)}` : s.routeId ? `route:${s.routeId}` : s.url ? `url:${s.url}` : s.groupConfig?.id ? `gc:${s.groupConfig.id}:${s.title}` : s.group ? `g:${s.group}:${s.title}` : `hash:${JSON.stringify(Bt(s, "title"))}`;
4628
4628
  }
4629
- const Pe = O(/* @__PURE__ */ new Map()), pe = va({
4629
+ const Oe = O(/* @__PURE__ */ new Map()), pe = ya({
4630
4630
  name: "menu-service",
4631
4631
  getKey: De,
4632
4632
  registerIntoService: (s, e) => s.addMenuItem(e)
4633
4633
  });
4634
- function ga(s) {
4634
+ function xa(s) {
4635
4635
  pe.preregister(s);
4636
4636
  }
4637
- function Ii(s) {
4638
- pe.removePreregistered((e) => ht(e, s)), pe.broadcast((e) => e.removeMenuItem(s));
4637
+ function Pi(s) {
4638
+ pe.removePreregistered((e) => ft(e, s)), pe.broadcast((e) => e.removeMenuItem(s));
4639
4639
  }
4640
- function Ti(s, e) {
4641
- Pe.value.set(s, e), pe.broadcast((t) => {
4640
+ function Oi(s, e) {
4641
+ Oe.value.set(s, e), pe.broadcast((t) => {
4642
4642
  t.menuBadges.value.set(s, e);
4643
4643
  });
4644
4644
  }
4645
- function Pi(s) {
4645
+ function Ri(s) {
4646
4646
  const e = pe.getFirstInstance();
4647
- return e ? e.menuBadges.value.get(s) : Pe.value.get(s);
4647
+ return e ? e.menuBadges.value.get(s) : Oe.value.get(s);
4648
4648
  }
4649
- function Oi(s) {
4650
- Pe.value.delete(s), pe.broadcast((e) => {
4649
+ function ki(s) {
4650
+ Oe.value.delete(s), pe.broadcast((e) => {
4651
4651
  e.menuBadges.value.delete(s);
4652
4652
  });
4653
4653
  }
4654
- function Ri() {
4655
- return pe.getFirstInstance()?.menuBadges ?? Pe;
4654
+ function Bi() {
4655
+ return pe.getFirstInstance()?.menuBadges ?? Oe;
4656
4656
  }
4657
- const tt = 1 / 0, ba = 1 / 0;
4658
- function ht(s, e) {
4657
+ const rt = 1 / 0, Ea = 1 / 0;
4658
+ function ft(s, e) {
4659
4659
  return De(s) === De(e);
4660
4660
  }
4661
- function ya(s) {
4661
+ function wa(s) {
4662
4662
  return s.groupConfig ? {
4663
4663
  groupId: s.groupConfig.id,
4664
4664
  groupTitle: s.groupConfig.title || s.groupConfig.id,
@@ -4666,26 +4666,26 @@ function ya(s) {
4666
4666
  groupPriority: s.groupConfig.priority,
4667
4667
  groupPermissions: s.groupConfig.permissions
4668
4668
  } : {
4669
- groupId: "group_" + nr(s.group),
4669
+ groupId: "group_" + sr(s.group),
4670
4670
  groupTitle: s.group,
4671
4671
  groupIcon: s.groupIcon,
4672
4672
  groupPriority: s.priority,
4673
4673
  groupPermissions: void 0
4674
4674
  };
4675
4675
  }
4676
- function xa(s, e) {
4677
- return (s.priority ?? tt) - (e.priority ?? tt);
4676
+ function Ca(s, e) {
4677
+ return (s.priority ?? rt) - (e.priority ?? rt);
4678
4678
  }
4679
- function Ea(s, e) {
4680
- const t = (n) => n.inGroupPriority ?? n.priority ?? ba;
4679
+ function _a(s, e) {
4680
+ const t = (n) => n.inGroupPriority ?? n.priority ?? Ea;
4681
4681
  return t(s) - t(e);
4682
4682
  }
4683
- function wa(s, e) {
4684
- const t = ya(s), n = {
4685
- ...kt(s, ["group", "groupIcon", "groupPriority", "groupConfig"])
4683
+ function Sa(s, e) {
4684
+ const t = wa(s), n = {
4685
+ ...Bt(s, ["group", "groupIcon", "groupPriority", "groupConfig"])
4686
4686
  }, r = e.get(t.groupId);
4687
4687
  if (r) {
4688
- const a = [...r.children ?? []], o = a.findIndex((u) => ht(u, n));
4688
+ const a = [...r.children ?? []], o = a.findIndex((u) => ft(u, n));
4689
4689
  o > -1 ? a[o] = n : a.push(n), e.set(t.groupId, {
4690
4690
  ...r,
4691
4691
  children: a,
@@ -4700,34 +4700,34 @@ function wa(s, e) {
4700
4700
  groupIcon: t.groupIcon ?? "",
4701
4701
  title: t.groupTitle,
4702
4702
  children: [n],
4703
- priority: t.groupPriority ?? s.priority ?? tt,
4703
+ priority: t.groupPriority ?? s.priority ?? rt,
4704
4704
  permissions: t.groupPermissions
4705
4705
  });
4706
4706
  }
4707
- function Ct(s) {
4707
+ function _t(s) {
4708
4708
  const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
4709
4709
  for (const n of s)
4710
- n.group || n.groupConfig ? wa(n, e) : n.title && t.set(De(n), { ...n });
4711
- return Ca([...e.values(), ...t.values()]);
4710
+ n.group || n.groupConfig ? Sa(n, e) : n.title && t.set(De(n), { ...n });
4711
+ return Aa([...e.values(), ...t.values()]);
4712
4712
  }
4713
- function Ca(s) {
4713
+ function Aa(s) {
4714
4714
  return s.map(
4715
4715
  (e) => ({
4716
4716
  ...e,
4717
- children: e.children ? [...e.children].sort(Ea) : void 0
4717
+ children: e.children ? [...e.children].sort(_a) : void 0
4718
4718
  })
4719
- ).sort(xa);
4719
+ ).sort(Ca);
4720
4720
  }
4721
- function ki() {
4721
+ function $i() {
4722
4722
  const s = O([]);
4723
4723
  let e = [];
4724
- const t = O(new Map(Pe.value));
4724
+ const t = O(new Map(Oe.value));
4725
4725
  function n(o) {
4726
- e.push(o), s.value = Ct(e);
4726
+ e.push(o), s.value = _t(e);
4727
4727
  }
4728
4728
  function r(o) {
4729
4729
  const u = e.length;
4730
- e = e.filter((l) => !ht(l, o)), e.length !== u && (s.value = Ct(e));
4730
+ e = e.filter((l) => !ft(l, o)), e.length !== u && (s.value = _t(e));
4731
4731
  }
4732
4732
  const a = {
4733
4733
  addMenuItem: n,
@@ -4737,15 +4737,15 @@ function ki() {
4737
4737
  };
4738
4738
  return pe.replayInto(a), a;
4739
4739
  }
4740
- const me = ur({
4740
+ const ve = dr({
4741
4741
  legacy: !1,
4742
4742
  globalInjection: !0,
4743
4743
  locale: "en",
4744
4744
  fallbackLocale: "en",
4745
4745
  formatFallbackMessages: !0
4746
- }), _a = j("use-breadcrumbs");
4747
- function Sa() {
4748
- const s = lt([]);
4746
+ }), Ua = N("use-breadcrumbs");
4747
+ function Ia() {
4748
+ const s = ut([]);
4749
4749
  function e(r) {
4750
4750
  const a = s.value.findIndex((o) => o.id === r);
4751
4751
  a !== -1 && (s.value = s.value.slice(0, a + 1));
@@ -4757,7 +4757,7 @@ function Sa() {
4757
4757
  try {
4758
4758
  await r.clickHandler(u) !== !1 && e(u);
4759
4759
  } catch (l) {
4760
- _a.error("Breadcrumb click handler failed:", l);
4760
+ Ua.error("Breadcrumb click handler failed:", l);
4761
4761
  }
4762
4762
  } : void 0
4763
4763
  }, o = s.value.findIndex((u) => u.id === a.id);
@@ -4777,21 +4777,21 @@ function Sa() {
4777
4777
  };
4778
4778
  }
4779
4779
  const Le = /* @__PURE__ */ new Map();
4780
- function Bi(s, e) {
4780
+ function Ni(s, e) {
4781
4781
  Le.has(s) && console.warn(`[defineBlade] Duplicate blade name: "${s}". Overwriting.`), Le.set(s, e);
4782
4782
  }
4783
- function Aa(s) {
4783
+ function Ta(s) {
4784
4784
  return Le.get(s);
4785
4785
  }
4786
- function $i() {
4786
+ function ji() {
4787
4787
  return Le;
4788
4788
  }
4789
- const qe = j("blade-registry"), Ua = Symbol("BladeRegistry");
4790
- function _t(s) {
4789
+ const Ze = N("blade-registry"), Pa = Symbol("BladeRegistry");
4790
+ function St(s) {
4791
4791
  return !(!s || typeof s != "function" && typeof s != "object");
4792
4792
  }
4793
- function Ni(s) {
4794
- const e = lt(/* @__PURE__ */ new Map()), t = /* @__PURE__ */ new Map();
4793
+ function zi(s) {
4794
+ const e = ut(/* @__PURE__ */ new Map()), t = /* @__PURE__ */ new Map();
4795
4795
  function n(c) {
4796
4796
  return c.startsWith("/") ? c : `/${c}`;
4797
4797
  }
@@ -4800,32 +4800,32 @@ function Ni(s) {
4800
4800
  throw new Error("BladeRegistry: Blade name must be a non-empty string");
4801
4801
  if (!f?.component)
4802
4802
  throw new Error(`BladeRegistry: Registration data must include a component for blade '${c}'`);
4803
- if (!_t(f.component))
4803
+ if (!St(f.component))
4804
4804
  throw new Error(`BladeRegistry: Invalid component provided for blade '${c}'`);
4805
- const m = Aa(c), b = f.component, S = m?.url ?? f.route, A = m?.isWorkspace ?? f.isWorkspace ?? !1, E = m?.routable ?? f.routable !== !1, g = m?.permissions ?? f.permissions, P = m?.menuItem ?? b.menuItem, w = new Map(e.value);
4806
- if (w.has(c)) {
4805
+ const m = Ta(c), g = f.component, S = m?.url ?? f.route, U = m?.isWorkspace ?? f.isWorkspace ?? !1, E = m?.routable ?? f.routable !== !1, b = m?.permissions ?? f.permissions, P = m?.menuItem ?? g.menuItem, C = new Map(e.value);
4806
+ if (C.has(c)) {
4807
4807
  if (!h)
4808
4808
  throw new Error(
4809
4809
  `BladeRegistry: Blade '${c}' is already registered. Use allowOverwrite=true if intentional (e.g. dynamic module hot-reload).`
4810
4810
  );
4811
- qe.warn(`Blade '${c}' is already registered. Overwriting (allowOverwrite=true).`);
4811
+ Ze.warn(`Blade '${c}' is already registered. Overwriting (allowOverwrite=true).`);
4812
4812
  }
4813
- const _ = s.component(c);
4814
- (!_ || _ !== b) && (_ && _ !== b && qe.warn(
4813
+ const A = s.component(c);
4814
+ (!A || A !== g) && (A && A !== g && Ze.warn(
4815
4815
  `Global component '${c}' already exists and is different. Overwriting with new blade component.`
4816
- ), s.component(c, b));
4816
+ ), s.component(c, g));
4817
4817
  const T = {
4818
- component: b,
4818
+ component: g,
4819
4819
  route: S,
4820
- isWorkspace: A,
4820
+ isWorkspace: U,
4821
4821
  routable: E,
4822
- permissions: g
4822
+ permissions: b
4823
4823
  };
4824
- w.set(c, T), e.value = w, S && t.set(n(S), c), S && P && ga({
4824
+ C.set(c, T), e.value = C, S && t.set(n(S), c), S && P && xa({
4825
4825
  ...P,
4826
4826
  url: S,
4827
4827
  routeId: c,
4828
- permissions: g || P.permissions
4828
+ permissions: b || P.permissions
4829
4829
  });
4830
4830
  }
4831
4831
  function a(c) {
@@ -4840,10 +4840,10 @@ function Ni(s) {
4840
4840
  return f.component;
4841
4841
  try {
4842
4842
  const h = s._context.components[c];
4843
- if (h && _t(h))
4843
+ if (h && St(h))
4844
4844
  return h;
4845
4845
  } catch (h) {
4846
- qe.warn(`Error accessing global component '${c}':`, h);
4846
+ Ze.warn(`Error accessing global component '${c}':`, h);
4847
4847
  }
4848
4848
  }
4849
4849
  function u(c) {
@@ -4864,15 +4864,15 @@ function Ni(s) {
4864
4864
  _registerBladeFn: r
4865
4865
  };
4866
4866
  }
4867
- function zt() {
4868
- const s = F(Ua);
4867
+ function Mt() {
4868
+ const s = F(Pa);
4869
4869
  if (!s)
4870
4870
  throw new Error(
4871
4871
  "useBladeRegistry must be used after createBladeRegistry is called and provided with BladeRegistryKey."
4872
4872
  );
4873
4873
  return s;
4874
4874
  }
4875
- const Ia = L({
4875
+ const Oa = G({
4876
4876
  name: "ErrorInterceptor",
4877
4877
  props: {
4878
4878
  capture: {
@@ -4889,17 +4889,17 @@ const Ia = L({
4889
4889
  }
4890
4890
  },
4891
4891
  setup(s, { slots: e }) {
4892
- const t = F(ct, void 0), n = F(Ge, void 0), r = !!(t && n), { error: a, reset: o } = ma(r || s.capture);
4893
- return r && X(a, (u) => {
4892
+ const t = F(dt, void 0), n = F(Ge, void 0), r = !!(t && n), { error: a, reset: o } = ba(r || s.capture);
4893
+ return r && V(a, (u) => {
4894
4894
  const l = t.value.id;
4895
- u ? (ua(u), n.setBladeError(l, u)) : n.clearBladeError(l);
4895
+ u ? (ha(u), n.setBladeError(l, u)) : n.clearBladeError(l);
4896
4896
  }), () => e.default?.({
4897
4897
  error: a.value,
4898
4898
  reset: o
4899
4899
  });
4900
4900
  }
4901
- }), Ta = Ia;
4902
- function Pa(s) {
4901
+ }), Ra = Oa;
4902
+ function ka(s) {
4903
4903
  const e = /* @__PURE__ */ new Map();
4904
4904
  function t(a, o) {
4905
4905
  e.set(a, o);
@@ -4928,13 +4928,13 @@ function Pa(s) {
4928
4928
  cleanup: r
4929
4929
  };
4930
4930
  }
4931
- function Ft() {
4932
- const s = F(ut);
4931
+ function Dt() {
4932
+ const s = F(ct);
4933
4933
  if (!s)
4934
4934
  throw new Error("[useBladeMessaging] BladeMessaging not found. Ensure BladeNavigationPlugin is installed.");
4935
4935
  return s;
4936
4936
  }
4937
- const Mt = /* @__PURE__ */ L({
4937
+ const Lt = /* @__PURE__ */ G({
4938
4938
  __name: "vc-blade-slot",
4939
4939
  props: {
4940
4940
  descriptor: {},
@@ -4946,67 +4946,67 @@ const Mt = /* @__PURE__ */ L({
4946
4946
  },
4947
4947
  emits: ["close", "parentCall"],
4948
4948
  setup(s, { emit: e }) {
4949
- const t = s, n = e, r = zt(), a = O(!1), o = O(), u = v(() => r.getBladeComponent(t.descriptor.name));
4950
- Me(
4951
- ct,
4949
+ const t = s, n = e, r = Mt(), a = O(!1), o = O([]), u = O(), l = v(() => r.getBladeComponent(t.descriptor.name));
4950
+ Ee(
4951
+ dt,
4952
4952
  v(() => ({
4953
4953
  ...t.descriptor,
4954
4954
  maximized: a.value,
4955
4955
  breadcrumbs: t.breadcrumbs
4956
4956
  }))
4957
- ), Me(
4958
- Dr,
4957
+ ), Ee(Lr, a), Ee(jt, o), Ee(
4958
+ Jr,
4959
4959
  v(() => t.backButton)
4960
4960
  );
4961
- const l = Ft();
4962
- X(
4963
- o,
4964
- (m) => {
4965
- if (!m) return;
4966
- const b = {};
4967
- for (const S of Object.keys(m))
4968
- typeof m[S] == "function" && (b[S] = m[S]);
4969
- Object.keys(b).length > 0 && l.exposeToChildren(t.descriptor.id, b);
4961
+ const d = Dt();
4962
+ V(
4963
+ u,
4964
+ (g) => {
4965
+ if (!g) return;
4966
+ const S = {};
4967
+ for (const U of Object.keys(g))
4968
+ typeof g[U] == "function" && (S[U] = g[U]);
4969
+ Object.keys(S).length > 0 && d.exposeToChildren(t.descriptor.id, S);
4970
4970
  },
4971
4971
  { flush: "post" }
4972
- ), at(() => {
4973
- l.cleanup(t.descriptor.id);
4972
+ ), st(() => {
4973
+ d.cleanup(t.descriptor.id);
4974
4974
  });
4975
- function d() {
4975
+ function c() {
4976
4976
  n("close", t.descriptor.id);
4977
4977
  }
4978
- function c(m) {
4979
- n("parentCall", m, t.descriptor.id);
4978
+ function f(g) {
4979
+ n("parentCall", g, t.descriptor.id);
4980
4980
  }
4981
- function f() {
4981
+ function h() {
4982
4982
  a.value = !0;
4983
4983
  }
4984
- function h() {
4984
+ function m() {
4985
4985
  a.value = !1;
4986
4986
  }
4987
- return (m, b) => (C(), J(D(Ta), { capture: !0 }, {
4988
- default: fe(({ error: S, reset: A }) => [
4989
- u.value ? it((C(), J(ze(u.value), {
4987
+ return (g, S) => (_(), W(D(Ra), { capture: !0 }, {
4988
+ default: fe(({ error: U, reset: E }) => [
4989
+ l.value ? ot((_(), W(Fe(l.value), {
4990
4990
  key: 0,
4991
4991
  ref_key: "bladeInstanceRef",
4992
- ref: o,
4992
+ ref: u,
4993
4993
  param: s.descriptor.param,
4994
4994
  options: s.descriptor.options,
4995
4995
  closable: s.closable,
4996
4996
  expanded: s.expanded,
4997
- "onClose:blade": d,
4998
- "onParent:call": c,
4999
- "onExpand:blade": f,
5000
- "onCollapse:blade": h,
5001
- onVnodeUnmounted: A
4997
+ "onClose:blade": c,
4998
+ "onParent:call": f,
4999
+ "onExpand:blade": h,
5000
+ "onCollapse:blade": m,
5001
+ onVnodeUnmounted: E
5002
5002
  }, null, 40, ["param", "options", "closable", "expanded", "onVnodeUnmounted"])), [
5003
- [Vt, s.visible]
5004
- ]) : H("", !0)
5003
+ [er, s.visible]
5004
+ ]) : K("", !0)
5005
5005
  ]),
5006
5006
  _: 1
5007
5007
  }));
5008
5008
  }
5009
- }), Oa = /* @__PURE__ */ L({
5009
+ }), Ba = /* @__PURE__ */ G({
5010
5010
  __name: "vc-mobile-back-button",
5011
5011
  props: {
5012
5012
  breadcrumbs: {},
@@ -5016,7 +5016,7 @@ const Mt = /* @__PURE__ */ L({
5016
5016
  const e = s, t = O(), n = O(!1), r = () => {
5017
5017
  e.onBack();
5018
5018
  };
5019
- ir(
5019
+ lr(
5020
5020
  t,
5021
5021
  () => {
5022
5022
  n.value = !0;
@@ -5026,17 +5026,17 @@ const Mt = /* @__PURE__ */ L({
5026
5026
  const a = () => {
5027
5027
  n.value = !1;
5028
5028
  };
5029
- return (o, u) => it((C(), J(bn, {
5029
+ return (o, u) => ot((_(), W(En, {
5030
5030
  items: s.breadcrumbs,
5031
5031
  collapsed: ""
5032
5032
  }, {
5033
5033
  trigger: fe(({ click: l }) => [
5034
- Z(D(pr), {
5034
+ Y(D(vr), {
5035
5035
  as: "button",
5036
5036
  onTrigger: l
5037
5037
  }, {
5038
5038
  default: fe(() => [
5039
- Z(D(jr), {
5039
+ Y(D(Fr), {
5040
5040
  ref_key: "buttonRef",
5041
5041
  ref: t,
5042
5042
  icon: "lucide-arrow-left",
@@ -5044,7 +5044,7 @@ const Mt = /* @__PURE__ */ L({
5044
5044
  "icon-size": "l",
5045
5045
  text: "",
5046
5046
  onClick: r,
5047
- onContextmenu: u[0] || (u[0] = Xe(() => {
5047
+ onContextmenu: u[0] || (u[0] = Ve(() => {
5048
5048
  }, ["prevent"]))
5049
5049
  }, null, 512)
5050
5050
  ]),
@@ -5053,15 +5053,15 @@ const Mt = /* @__PURE__ */ L({
5053
5053
  ]),
5054
5054
  _: 1
5055
5055
  }, 8, ["items"])), [
5056
- [D($t), a]
5056
+ [D(Nt), a]
5057
5057
  ]);
5058
5058
  }
5059
5059
  });
5060
- let Ra = 0;
5061
- function ke() {
5062
- return `blade_${++Ra}_${Math.random().toString(36).slice(2, 8)}`;
5060
+ let $a = 0;
5061
+ function Be() {
5062
+ return `blade_${++$a}_${Math.random().toString(36).slice(2, 8)}`;
5063
5063
  }
5064
- function ka(s, e) {
5064
+ function Na(s, e) {
5065
5065
  const t = O([]), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = v(() => t.value[0]), u = v(() => t.value), l = v(() => {
5066
5066
  for (let p = t.value.length - 1; p >= 0; p--)
5067
5067
  if (t.value[p].visible) return t.value[p];
@@ -5096,8 +5096,8 @@ function ka(s, e) {
5096
5096
  return;
5097
5097
  }
5098
5098
  h([...t.value]);
5099
- const U = {
5100
- id: ke(),
5099
+ const I = {
5100
+ id: Be(),
5101
5101
  name: p.name,
5102
5102
  url: c(p.name),
5103
5103
  // workspace blades don't have param when opened first
@@ -5105,23 +5105,23 @@ function ka(s, e) {
5105
5105
  options: p.options,
5106
5106
  visible: !0
5107
5107
  };
5108
- t.value = [U], p.onOpen && r.set(U.id, p.onOpen), p.onClose && a.set(U.id, p.onClose), p.onOpen?.();
5108
+ t.value = [I], p.onOpen && r.set(I.id, p.onOpen), p.onClose && a.set(I.id, p.onClose), p.onOpen?.();
5109
5109
  }
5110
- async function b(p) {
5110
+ async function g(p) {
5111
5111
  if (!s.getBlade(p.name))
5112
5112
  throw new Error(`[BladeStack] Blade '${p.name}' not found in registry`);
5113
5113
  const y = p.parentId ?? l.value?.id ?? o.value?.id;
5114
5114
  if (!y)
5115
5115
  throw new Error("[BladeStack] Cannot open blade: no parent blade found");
5116
- const x = t.value.findIndex((I) => I.id === y);
5116
+ const x = t.value.findIndex((j) => j.id === y);
5117
5117
  if (x === -1)
5118
5118
  throw new Error(`[BladeStack] Parent blade '${y}' not found in stack`);
5119
- const U = t.value.slice(x + 1);
5120
- if (U.length > 0 && await f(U))
5119
+ const I = t.value.slice(x + 1);
5120
+ if (I.length > 0 && await f(I))
5121
5121
  return;
5122
- h(U);
5122
+ h(I);
5123
5123
  const k = {
5124
- id: ke(),
5124
+ id: Be(),
5125
5125
  name: p.name,
5126
5126
  url: c(p.name),
5127
5127
  param: p.param,
@@ -5133,34 +5133,34 @@ function ka(s, e) {
5133
5133
  t.value = [...t.value.slice(0, x + 1), k], p.onOpen && r.set(k.id, p.onOpen), p.onClose && a.set(k.id, p.onClose), p.onOpen?.();
5134
5134
  }
5135
5135
  async function S(p) {
5136
- const y = t.value.findIndex((I) => I.id === p);
5136
+ const y = t.value.findIndex((j) => j.id === p);
5137
5137
  if (y === -1 || y === 0) return !1;
5138
5138
  const x = t.value.slice(y);
5139
5139
  if (await f(x)) return !0;
5140
5140
  h(x), t.value = t.value.slice(0, y);
5141
5141
  const k = t.value.length - 1;
5142
5142
  if (k > 0 && !t.value[k].visible) {
5143
- const I = [...t.value];
5144
- I[k] = { ...I[k], visible: !0 }, t.value = I;
5143
+ const j = [...t.value];
5144
+ j[k] = { ...j[k], visible: !0 }, t.value = j;
5145
5145
  }
5146
5146
  return !1;
5147
5147
  }
5148
- async function A(p) {
5148
+ async function U(p) {
5149
5149
  const y = l.value;
5150
5150
  if (!y)
5151
5151
  throw new Error("[BladeStack] No active blade to replace");
5152
5152
  if (!s.getBlade(p.name))
5153
5153
  throw new Error(`[BladeStack] Blade '${p.name}' not found in registry`);
5154
- const x = t.value.findIndex(($) => $.id === y.id);
5154
+ const x = t.value.findIndex((J) => J.id === y.id);
5155
5155
  if (x === -1)
5156
5156
  throw new Error(`[BladeStack] Active blade '${y.id}' not found in stack`);
5157
- const U = t.value.slice(x + 1);
5158
- if (U.length > 0) {
5159
- if (await f(U)) return;
5160
- h(U);
5157
+ const I = t.value.slice(x + 1);
5158
+ if (I.length > 0) {
5159
+ if (await f(I)) return;
5160
+ h(I);
5161
5161
  }
5162
5162
  const k = {
5163
- id: ke(),
5163
+ id: Be(),
5164
5164
  name: p.name,
5165
5165
  url: c(p.name),
5166
5166
  param: p.param,
@@ -5170,8 +5170,8 @@ function ka(s, e) {
5170
5170
  visible: !0
5171
5171
  };
5172
5172
  h([y]);
5173
- const I = [...t.value.slice(0, x), k, ...t.value.slice(x + 1)];
5174
- t.value = I, p.onOpen && r.set(k.id, p.onOpen), p.onClose && a.set(k.id, p.onClose), p.onOpen?.();
5173
+ const j = [...t.value.slice(0, x), k, ...t.value.slice(x + 1)];
5174
+ t.value = j, p.onOpen && r.set(k.id, p.onOpen), p.onClose && a.set(k.id, p.onClose), p.onOpen?.();
5175
5175
  }
5176
5176
  async function E(p) {
5177
5177
  const y = l.value;
@@ -5179,16 +5179,16 @@ function ka(s, e) {
5179
5179
  throw new Error("[BladeStack] No active blade to cover");
5180
5180
  if (!s.getBlade(p.name))
5181
5181
  throw new Error(`[BladeStack] Blade '${p.name}' not found in registry`);
5182
- const x = t.value.findIndex(($) => $.id === y.id);
5182
+ const x = t.value.findIndex((J) => J.id === y.id);
5183
5183
  if (x === -1)
5184
5184
  throw new Error(`[BladeStack] Active blade '${y.id}' not found in stack`);
5185
- const U = t.value.slice(x + 1);
5186
- if (U.length > 0) {
5187
- if (await f(U)) return;
5188
- h(U);
5185
+ const I = t.value.slice(x + 1);
5186
+ if (I.length > 0) {
5187
+ if (await f(I)) return;
5188
+ h(I);
5189
5189
  }
5190
5190
  const k = {
5191
- id: ke(),
5191
+ id: Be(),
5192
5192
  name: p.name,
5193
5193
  url: c(p.name),
5194
5194
  param: p.param,
@@ -5196,10 +5196,10 @@ function ka(s, e) {
5196
5196
  options: p.options,
5197
5197
  parentId: y.id,
5198
5198
  visible: !0
5199
- }, I = t.value.slice(0, x);
5200
- I.push({ ...y, visible: !1 }), I.push(k), t.value = I, p.onOpen && r.set(k.id, p.onOpen), p.onClose && a.set(k.id, p.onClose), p.onOpen?.();
5199
+ }, j = t.value.slice(0, x);
5200
+ j.push({ ...y, visible: !1 }), j.push(k), t.value = j, p.onOpen && r.set(k.id, p.onOpen), p.onClose && a.set(k.id, p.onClose), p.onOpen?.();
5201
5201
  }
5202
- async function g(p) {
5202
+ async function b(p) {
5203
5203
  const y = t.value.findIndex((k) => k.id === p);
5204
5204
  if (y === -1) return;
5205
5205
  const x = t.value.slice(y + 1);
@@ -5208,17 +5208,17 @@ function ka(s, e) {
5208
5208
  function P(p, y) {
5209
5209
  n.set(p, y);
5210
5210
  }
5211
- function w(p) {
5211
+ function C(p) {
5212
5212
  n.delete(p);
5213
5213
  }
5214
- function _(p, y) {
5214
+ function A(p, y) {
5215
5215
  const x = t.value.findIndex((k) => k.id === p);
5216
5216
  if (x === -1) return;
5217
- const U = [...t.value];
5218
- U[x] = { ...U[x], error: y }, t.value = U;
5217
+ const I = [...t.value];
5218
+ I[x] = { ...I[x], error: y }, t.value = I;
5219
5219
  }
5220
5220
  function T(p) {
5221
- const y = t.value.findIndex((U) => U.id === p);
5221
+ const y = t.value.findIndex((I) => I.id === p);
5222
5222
  if (y === -1) return;
5223
5223
  const x = [...t.value];
5224
5224
  x[y] = { ...x[y], error: void 0 }, t.value = x;
@@ -5226,10 +5226,10 @@ function ka(s, e) {
5226
5226
  function M(p, y) {
5227
5227
  const x = t.value.findIndex((k) => k.id === p);
5228
5228
  if (x === -1 || t.value[x].title === y) return;
5229
- const U = [...t.value];
5230
- U[x] = { ...U[x], title: y }, t.value = U;
5229
+ const I = [...t.value];
5230
+ I[x] = { ...I[x], title: y }, t.value = I;
5231
5231
  }
5232
- function W(p) {
5232
+ function H(p) {
5233
5233
  for (const y of t.value)
5234
5234
  d(y.id);
5235
5235
  t.value = p;
@@ -5239,29 +5239,29 @@ function ka(s, e) {
5239
5239
  blades: u,
5240
5240
  activeBlade: l,
5241
5241
  openWorkspace: m,
5242
- openBlade: b,
5242
+ openBlade: g,
5243
5243
  closeBlade: S,
5244
- closeChildren: g,
5245
- replaceCurrentBlade: A,
5244
+ closeChildren: b,
5245
+ replaceCurrentBlade: U,
5246
5246
  coverCurrentBlade: E,
5247
5247
  registerBeforeClose: P,
5248
- unregisterBeforeClose: w,
5249
- setBladeError: _,
5248
+ unregisterBeforeClose: C,
5249
+ setBladeError: A,
5250
5250
  clearBladeError: T,
5251
5251
  setBladeTitle: M,
5252
- _restoreStack: W
5252
+ _restoreStack: H
5253
5253
  };
5254
5254
  }
5255
- function Dt() {
5255
+ function Gt() {
5256
5256
  const s = F(Ge);
5257
5257
  if (!s)
5258
5258
  throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
5259
5259
  return s;
5260
5260
  }
5261
- function rt(s, e) {
5261
+ function nt(s, e) {
5262
5262
  if (e.length === 0)
5263
5263
  return { path: s ? `/${s}` : "/", query: {} };
5264
- const t = e[0], n = St(t.url);
5264
+ const t = e[0], n = At(t.url);
5265
5265
  let r;
5266
5266
  for (let u = e.length - 1; u >= 1; u--)
5267
5267
  if (e[u].visible) {
@@ -5270,7 +5270,7 @@ function rt(s, e) {
5270
5270
  }
5271
5271
  let a = s ? `/${s}` : "";
5272
5272
  if (n && (a += `/${n}`), r) {
5273
- const u = St(r.url);
5273
+ const u = At(r.url);
5274
5274
  u && (a += `/${u}`), r.param && (a += `/${r.param}`);
5275
5275
  }
5276
5276
  const o = {};
@@ -5278,7 +5278,7 @@ function rt(s, e) {
5278
5278
  u.visible && u.query && Object.assign(o, u.query);
5279
5279
  return { path: a || "/", query: o };
5280
5280
  }
5281
- function Ba(s, e) {
5281
+ function ja(s, e) {
5282
5282
  let t = s.split("/").filter(Boolean);
5283
5283
  return e && t.length > 0 && t[0] === e && (t = t.slice(1)), t.length === 0 ? {} : {
5284
5284
  workspaceUrl: t[0],
@@ -5286,47 +5286,47 @@ function Ba(s, e) {
5286
5286
  param: t[2]
5287
5287
  };
5288
5288
  }
5289
- function St(s) {
5289
+ function At(s) {
5290
5290
  if (s)
5291
5291
  return s.replace(/^\/+|\/+$/g, "") || void 0;
5292
5292
  }
5293
- function At(s) {
5293
+ function Ut(s) {
5294
5294
  const e = s.currentRoute.value.params;
5295
5295
  return Object.values(e).find((t) => typeof t == "string" && t) || "";
5296
5296
  }
5297
- function Lt(s, e) {
5297
+ function Jt(s, e) {
5298
5298
  function t() {
5299
- const { path: r, query: a } = rt(At(s), e.blades.value);
5299
+ const { path: r, query: a } = nt(Ut(s), e.blades.value);
5300
5300
  s.push({ path: r, query: a });
5301
5301
  }
5302
5302
  function n() {
5303
- const { path: r, query: a } = rt(At(s), e.blades.value);
5303
+ const { path: r, query: a } = nt(Ut(s), e.blades.value);
5304
5304
  s.replace({ path: r, query: a });
5305
5305
  }
5306
5306
  return { syncUrlPush: t, syncUrlReplace: n };
5307
5307
  }
5308
- const $a = ["aria-label"], Na = {
5308
+ const za = ["aria-label"], Fa = {
5309
5309
  key: 1,
5310
5310
  class: "tw-overflow-hidden tw-flex tw-grow tw-basis-0 tw-relative tw-min-w-0"
5311
- }, Ut = /* @__PURE__ */ L({
5311
+ }, It = /* @__PURE__ */ G({
5312
5312
  __name: "vc-blade-navigation-new",
5313
5313
  setup(s) {
5314
- const { t: e } = cr(), t = Dt(), n = Ft(), r = dr(), { breadcrumbs: a, push: o, remove: u } = Sa(), { syncUrlReplace: l } = Lt(r, t), d = v(() => t.blades.value), c = v(() => t.activeBlade.value), f = v(() => d.value.length > 0), h = v(() => d.value.filter((_) => _.visible).length), { isMobile: m } = Nt(), b = F(Je, void 0), S = v(() => b?.isExpanded.value ?? !1), A = v(() => m.value || S.value ? 1 : 2);
5315
- function E(_, T) {
5316
- return _.visible ? T >= h.value - A.value : !1;
5314
+ const { t: e } = hr(), t = Gt(), n = Dt(), r = fr(), { breadcrumbs: a, push: o, remove: u } = Ia(), { syncUrlReplace: l } = Jt(r, t), d = v(() => t.blades.value), c = v(() => t.activeBlade.value), f = v(() => d.value.length > 0), h = v(() => d.value.filter((A) => A.visible).length), { isMobile: m } = zt(), g = F(Je, void 0), S = v(() => g?.isExpanded.value ?? !1), U = v(() => m.value || S.value ? 1 : 2);
5315
+ function E(A, T) {
5316
+ return A.visible ? T >= h.value - U.value : !1;
5317
5317
  }
5318
- lr(
5318
+ cr(
5319
5319
  d,
5320
- (_) => {
5321
- a.value.forEach((T) => T && u([T.id])), _.filter((T) => T.visible).forEach((T, M) => {
5320
+ (A) => {
5321
+ a.value.forEach((T) => T && u([T.id])), A.filter((T) => T.visible).forEach((T, M) => {
5322
5322
  o({
5323
5323
  id: M.toString(),
5324
- title: Rt({ title: T.name }, "title"),
5325
- clickHandler: async (W) => {
5326
- const p = parseInt(W), x = d.value.filter((U) => U.visible)[p + 1];
5324
+ title: kt({ title: T.name }, "title"),
5325
+ clickHandler: async (H) => {
5326
+ const p = parseInt(H), x = d.value.filter((I) => I.visible)[p + 1];
5327
5327
  if (x) {
5328
- const U = await t.closeBlade(x.id);
5329
- return U || l(), !U;
5328
+ const I = await t.closeBlade(x.id);
5329
+ return I || l(), !I;
5330
5330
  }
5331
5331
  return !0;
5332
5332
  }
@@ -5340,61 +5340,61 @@ const $a = ["aria-label"], Na = {
5340
5340
  debounce: 10
5341
5341
  }
5342
5342
  );
5343
- async function g(_) {
5344
- await t.closeBlade(_) || l();
5343
+ async function b(A) {
5344
+ await t.closeBlade(A) || l();
5345
5345
  }
5346
- async function P(_, T) {
5346
+ async function P(A, T) {
5347
5347
  try {
5348
- const M = await n.callParent(T, _.method, _.args);
5349
- _.callback?.(M);
5348
+ const M = await n.callParent(T, A.method, A.args);
5349
+ A.callback?.(M);
5350
5350
  } catch (M) {
5351
5351
  console.warn("[VcBladeNavigation] Parent call failed:", M);
5352
5352
  }
5353
5353
  }
5354
- function w(_) {
5355
- if (!(_ <= 0))
5356
- return Qt(Oa, {
5357
- breadcrumbs: a.value.slice(0, _),
5354
+ function C(A) {
5355
+ if (!(A <= 0))
5356
+ return tr(Ba, {
5357
+ breadcrumbs: a.value.slice(0, A),
5358
5358
  onBack: async () => {
5359
- const T = d.value[_];
5359
+ const T = d.value[A];
5360
5360
  T && (await t.closeBlade(T.id) || l());
5361
5361
  }
5362
5362
  });
5363
5363
  }
5364
- return (_, T) => (C(), R("div", {
5364
+ return (A, T) => (_(), R("div", {
5365
5365
  class: "vc-blade-navigation tw-flex tw-flex-col tw-grow tw-basis-0 tw-min-w-0 tw-overflow-hidden",
5366
5366
  role: "region",
5367
5367
  "aria-label": D(e)("COMPONENTS.ORGANISMS.BLADE_NAVIGATION.ARIA_LABEL")
5368
5368
  }, [
5369
- f.value ? (C(), R("div", Na, [
5370
- (C(!0), R(Fe, null, ot(d.value, (M, W) => (C(), J(D(Mt), {
5369
+ f.value ? (_(), R("div", Fa, [
5370
+ (_(!0), R(Me, null, lt(d.value, (M, H) => (_(), W(D(Lt), {
5371
5371
  key: M.id,
5372
5372
  descriptor: M,
5373
- closable: W > 0,
5373
+ closable: H > 0,
5374
5374
  expanded: M.id === c.value?.id,
5375
- visible: E(M, W),
5376
- breadcrumbs: D(a).slice(0, W),
5377
- "back-button": h.value > 1 ? w(W) : void 0,
5378
- onClose: g,
5375
+ visible: E(M, H),
5376
+ breadcrumbs: D(a).slice(0, H),
5377
+ "back-button": h.value > 1 ? C(H) : void 0,
5378
+ onClose: b,
5379
5379
  onParentCall: P
5380
5380
  }, null, 8, ["descriptor", "closable", "expanded", "visible", "breadcrumbs", "back-button"]))), 128))
5381
- ])) : (C(), J(D(hr), { key: 0 }))
5382
- ], 8, $a));
5381
+ ])) : (_(), W(D(pr), { key: 0 }))
5382
+ ], 8, za));
5383
5383
  }
5384
- }), ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5384
+ }), Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5385
5385
  __proto__: null,
5386
- VcBladeNavigation: Ut,
5387
- VcBladeNavigationV2: Ut,
5388
- VcBladeSlot: Mt
5386
+ VcBladeNavigation: It,
5387
+ VcBladeNavigationV2: It,
5388
+ VcBladeSlot: Lt
5389
5389
  }, Symbol.toStringTag, { value: "Module" }));
5390
- function Ze(s, e) {
5390
+ function Ye(s, e) {
5391
5391
  const t = s.getRoutes(), n = t.find((a) => a.meta?.root), r = t.find((a) => a.aliasOf?.path === n?.path) ?? n;
5392
5392
  r?.name && s.replace({ name: r.name, params: e });
5393
5393
  }
5394
- Object.keys(vt).forEach((s) => {
5395
- _e(s, vt[s]);
5394
+ Object.keys(gt).forEach((s) => {
5395
+ Se(s, gt[s]);
5396
5396
  });
5397
- const za = (s, [e, t]) => {
5397
+ const Da = (s, [e, t]) => {
5398
5398
  if (!s?.files || !s.files?.length)
5399
5399
  return !0;
5400
5400
  const n = (o, u, l) => {
@@ -5403,13 +5403,13 @@ const za = (s, [e, t]) => {
5403
5403
  const f = new Image();
5404
5404
  f.onerror = () => c(!1), f.onload = () => {
5405
5405
  const h = f.width >= Number(u) && f.height >= Number(l);
5406
- c(h ? !0 : me.global.t("messages.min_dimensions.error", { width: u, height: l }));
5406
+ c(h ? !0 : ve.global.t("messages.min_dimensions.error", { width: u, height: l }));
5407
5407
  }, f.src = d.createObjectURL(o);
5408
5408
  });
5409
5409
  }, r = [], a = s.files;
5410
5410
  for (let o = 0; o < a.length; o++) {
5411
5411
  if (!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(a[o].name))
5412
- return Promise.resolve(me.global.t("messages.min_dimensions.not_image_error"));
5412
+ return Promise.resolve(ve.global.t("messages.min_dimensions.not_image_error"));
5413
5413
  r.push(a[o]);
5414
5414
  }
5415
5415
  return Promise.all(r.map((o) => n(o, e, t))).then((o) => {
@@ -5417,43 +5417,43 @@ const za = (s, [e, t]) => {
5417
5417
  return u === !1 || typeof u == "string" ? u : !0;
5418
5418
  });
5419
5419
  };
5420
- _e("mindimensions", za);
5421
- const Fa = (s, [e]) => {
5420
+ Se("mindimensions", Da);
5421
+ const La = (s, [e]) => {
5422
5422
  if (!s?.files || !s.files?.length)
5423
5423
  return !0;
5424
5424
  const t = e * 1e3, n = (u) => u.size > t, r = [];
5425
5425
  for (let u = 0; u < s.files.length; u++)
5426
5426
  r.push(s.files[u]);
5427
- return r.map((u) => n(u)).find((u) => u === !0) ? me.global.t("messages.file_weight", { size: e }) : !0;
5427
+ return r.map((u) => n(u)).find((u) => u === !0) ? ve.global.t("messages.file_weight", { size: e }) : !0;
5428
5428
  };
5429
- _e("fileWeight", Fa);
5430
- const Gt = (s, [e], t, n) => {
5429
+ Se("fileWeight", La);
5430
+ const Wt = (s, [e], t, n) => {
5431
5431
  if (!s || typeof s == "string" && !s.length)
5432
5432
  return !0;
5433
5433
  let r, a;
5434
5434
  return s instanceof Date && (r = s), e instanceof Date && (a = e), typeof s == "string" && (r = new Date(s)), typeof e == "string" && (a = new Date(e)), r?.getTime && r?.getTime() > 0 && a?.getTime && a?.getTime() > 0 && t(a.getTime(), r.getTime()) ? n : !0;
5435
- }, Ma = (s, [e]) => Gt(s, [e], (t, n) => t < n, me.global.t("messages.before"));
5436
- _e("before", Ma);
5437
- const Da = (s, [e]) => Gt(s, [e], (t, n) => t > n, me.global.t("messages.after"));
5438
- _e("after", Da);
5439
- const La = (s) => Number.isSafeInteger(parseInt(s)) ? !0 : me.global.t("messages.bigint");
5440
- _e("bigint", La);
5441
- const nt = j("signalR"), Ae = O(), Ga = Symbol("updateSignalRCreator");
5442
- function It(s, e, t) {
5443
- s.off("SendSystemEvents"), t && (nt.debug("Setup handler for creator: ", t), s.on("SendSystemEvents", (n) => {
5435
+ }, Ga = (s, [e]) => Wt(s, [e], (t, n) => t < n, ve.global.t("messages.before"));
5436
+ Se("before", Ga);
5437
+ const Ja = (s, [e]) => Wt(s, [e], (t, n) => t > n, ve.global.t("messages.after"));
5438
+ Se("after", Ja);
5439
+ const Wa = (s) => Number.isSafeInteger(parseInt(s)) ? !0 : ve.global.t("messages.bigint");
5440
+ Se("bigint", Wa);
5441
+ const at = N("signalR"), Ue = O(), Ha = Symbol("updateSignalRCreator");
5442
+ function Tt(s, e, t) {
5443
+ s.off("SendSystemEvents"), t && (at.debug("Setup handler for creator: ", t), s.on("SendSystemEvents", (n) => {
5444
5444
  n.creator === t && e.ingest(n);
5445
5445
  }));
5446
5446
  }
5447
- const ji = {
5447
+ const Fi = {
5448
5448
  install(s, e) {
5449
- Ae.value = e?.creator;
5450
- const t = la(), { isAuthenticated: n } = We();
5449
+ Ue.value = e?.creator;
5450
+ const t = da(), { isAuthenticated: n } = We();
5451
5451
  let r = !1;
5452
- const a = yr("pushNotificationHub", { enableForVitest: !0 }) ?? new xr().withUrl("/pushNotificationHub").withAutomaticReconnect().configureLogging(Er.Information).build(), o = () => {
5452
+ const a = Er("pushNotificationHub", { enableForVitest: !0 }) ?? new wr().withUrl("/pushNotificationHub").withAutomaticReconnect().configureLogging(Cr.Information).build(), o = () => {
5453
5453
  a.start().then(() => {
5454
- nt.info("Connected."), It(a, t, Ae.value);
5454
+ at.info("Connected."), Tt(a, t, Ue.value);
5455
5455
  }).catch((l) => {
5456
- nt.error("Connection Error: ", l), setTimeout(() => o(), 5e3);
5456
+ at.error("Connection Error: ", l), setTimeout(() => o(), 5e3);
5457
5457
  });
5458
5458
  };
5459
5459
  async function u() {
@@ -5463,36 +5463,36 @@ const ji = {
5463
5463
  r && o();
5464
5464
  }), a.on("Send", (l) => {
5465
5465
  t.ingest(l);
5466
- }), X(
5467
- Ae,
5466
+ }), V(
5467
+ Ue,
5468
5468
  (l) => {
5469
- l && a.state === "Connected" && It(a, t, l);
5469
+ l && a.state === "Connected" && Tt(a, t, l);
5470
5470
  },
5471
5471
  { immediate: !0 }
5472
- ), X(
5472
+ ), V(
5473
5473
  n,
5474
5474
  async (l) => {
5475
5475
  l ? (r = !0, o()) : (r = !1, await u());
5476
5476
  },
5477
5477
  { immediate: !0 }
5478
5478
  ), s.config.globalProperties.$updateSignalRCreator = (l) => {
5479
- Ae.value = l;
5480
- }, s.provide(Ga, (l) => {
5481
- Ae.value = l;
5479
+ Ue.value = l;
5480
+ }, s.provide(Ha, (l) => {
5481
+ Ue.value = l;
5482
5482
  });
5483
5483
  }
5484
5484
  };
5485
- async function Ja(s, e, t, n, r, a) {
5485
+ async function Ka(s, e, t, n, r, a) {
5486
5486
  if (!t.workspaceUrl) return !1;
5487
5487
  const o = e.getBladeByRoute(t.workspaceUrl);
5488
5488
  if (!o)
5489
- return console.warn(`[restoreFromUrl] No workspace blade found for URL segment '${t.workspaceUrl}'`), r && Ze(r, a), !1;
5489
+ return console.warn(`[restoreFromUrl] No workspace blade found for URL segment '${t.workspaceUrl}'`), r && Ye(r, a), !1;
5490
5490
  if (!o.data.isWorkspace)
5491
5491
  return console.warn(
5492
5492
  `[restoreFromUrl] Blade '${o.name}' matched URL '${t.workspaceUrl}' but is not a workspace`
5493
- ), r && Ze(r, a), !1;
5493
+ ), r && Ye(r, a), !1;
5494
5494
  if (n && o.data.permissions && !n(o.data.permissions))
5495
- return console.warn(`[restoreFromUrl] Access denied to workspace '${o.name}'`), Y.error(me.global.t("PERMISSION_MESSAGES.ACCESS_RESTRICTED"), { timeout: 3e3 }), r && Ze(r, a), !1;
5495
+ return console.warn(`[restoreFromUrl] Access denied to workspace '${o.name}'`), X.error(ve.global.t("PERMISSION_MESSAGES.ACCESS_RESTRICTED"), { timeout: 3e3 }), r && Ye(r, a), !1;
5496
5496
  if (s.workspace.value?.name !== o.name && await s.openWorkspace({ name: o.name }), t.bladeUrl) {
5497
5497
  const l = e.getBladeByRoute(t.bladeUrl);
5498
5498
  if (l) {
@@ -5510,7 +5510,7 @@ async function Ja(s, e, t, n, r, a) {
5510
5510
  }
5511
5511
  return !1;
5512
5512
  }
5513
- async function Tt(s) {
5513
+ async function Pt(s) {
5514
5514
  for (; s.blades.value.length > 1; ) {
5515
5515
  const e = s.blades.value, t = e[e.length - 1];
5516
5516
  if (await s.closeBlade(t.id) || s.blades.value.length >= e.length)
@@ -5518,31 +5518,31 @@ async function Tt(s) {
5518
5518
  }
5519
5519
  return s.blades.value.length > 0 && s._restoreStack([]), !0;
5520
5520
  }
5521
- async function Wa(s, e, t, n, r) {
5521
+ async function qa(s, e, t, n, r) {
5522
5522
  if (!s.matched.some((c) => c.meta?.root)) return;
5523
5523
  if (!s.matched.some((c) => c.meta?.bladeCatchAll))
5524
- return e.blades.value.length > 0 && !await Tt(e) ? !1 : void 0;
5525
- const o = Object.values(s.params)?.[0] || "", u = Ba(s.path, o);
5524
+ return e.blades.value.length > 0 && !await Pt(e) ? !1 : void 0;
5525
+ const o = Object.values(s.params)?.[0] || "", u = ja(s.path, o);
5526
5526
  if (!u.workspaceUrl)
5527
- return e.blades.value.length > 0 && !await Tt(e) ? !1 : void 0;
5527
+ return e.blades.value.length > 0 && !await Pt(e) ? !1 : void 0;
5528
5528
  const l = Object.fromEntries(Object.entries(s.params).filter(([, c]) => typeof c == "string"));
5529
- if (await Ja(e, t, u, n, r, l)) {
5530
- const { path: c, query: f } = rt(o, e.blades.value);
5529
+ if (await Ka(e, t, u, n, r, l)) {
5530
+ const { path: c, query: f } = nt(o, e.blades.value);
5531
5531
  return { path: c, query: f, replace: !0 };
5532
5532
  }
5533
5533
  }
5534
- let Jt, Wt, Ht, Ha;
5535
- const zi = {
5534
+ let Ht, Kt, qt, Za;
5535
+ const Mi = {
5536
5536
  install(s, e) {
5537
5537
  const { router: t } = e;
5538
- Object.entries(ja).forEach(([d, c]) => {
5538
+ Object.entries(Ma).forEach(([d, c]) => {
5539
5539
  s.component(d, c);
5540
- }), Jt = {
5540
+ }), Ht = {
5541
5541
  router: e.router
5542
5542
  };
5543
5543
  const r = s.runWithContext(() => {
5544
5544
  try {
5545
- return zt();
5545
+ return Mt();
5546
5546
  } catch {
5547
5547
  console.warn(
5548
5548
  "[BladeNavigationPlugin] BladeRegistry not yet available. BladeStack will be created but URL restoration may be deferred."
@@ -5554,155 +5554,174 @@ const zi = {
5554
5554
  console.error("[BladeNavigationPlugin] BladeRegistry is required but not found.");
5555
5555
  return;
5556
5556
  }
5557
- const { hasAccess: a } = s.runWithContext(() => ca()), o = ka(r, a);
5558
- s.provide(Ge, o), Wt = o;
5559
- const u = Pa(o);
5560
- s.provide(ut, u), Ht = u, Ha = r;
5557
+ const { hasAccess: a } = s.runWithContext(() => fa()), o = Na(r, a);
5558
+ s.provide(Ge, o), Kt = o;
5559
+ const u = ka(o);
5560
+ s.provide(ct, u), qt = u, Za = r;
5561
5561
  const l = t.getRoutes().find((d) => d.meta?.root);
5562
5562
  l && t.addRoute(l.name, {
5563
5563
  path: ":pathMatch(.*)*",
5564
5564
  component: { render: () => null },
5565
5565
  meta: { bladeCatchAll: !0 }
5566
- }), t.beforeEach((d) => Wa(d, o, r, a, t));
5566
+ }), t.beforeEach((d) => qa(d, o, r, a, t));
5567
5567
  }
5568
- }, Ka = "useBlade() was called outside a blade. Navigation methods (openBlade) work everywhere, but blade-specific methods require the component to be rendered inside VcBladeSlot.";
5569
- function G(s) {
5568
+ }, Ya = "useBlade() was called outside a blade. Navigation methods (openBlade) work everywhere, but blade-specific methods require the component to be rendered inside VcBladeSlot.";
5569
+ function L(s) {
5570
5570
  throw new Error(`[vc-shell] ${s} requires blade context.
5571
- ${Ka}`);
5571
+ ${Ya}`);
5572
5572
  }
5573
- function qa() {
5574
- const s = (Ee() ? F(Ge, void 0) : void 0) ?? Wt, e = (Ee() ? F(ut, void 0) : void 0) ?? Ht;
5573
+ function Xa() {
5574
+ const s = (me() ? F(Ge, void 0) : void 0) ?? Kt, e = (me() ? F(ct, void 0) : void 0) ?? qt;
5575
5575
  if (!s || !e)
5576
5576
  throw new Error(
5577
5577
  "[vc-shell] useBlade() failed: BladeStack or BladeMessaging not available. Ensure BladeNavigationPlugin (plugin-v2) is installed."
5578
5578
  );
5579
- const t = s, n = e, r = Ee() ? F(ct, void 0) : void 0;
5580
- let a;
5581
- function o() {
5582
- if (a) return a;
5583
- const I = Jt?.router;
5584
- return I && (a = Lt(I, t)), a;
5585
- }
5586
- const u = v(() => (r || G("id"), r.value.id)), l = v(() => (r || G("param"), r.value.param)), d = v(() => (r || G("options"), r.value.options)), c = v(() => (r || G("query"), r.value.query)), f = v(() => (r || G("closable"), r.value.parentId !== void 0)), h = v(() => (r || G("expanded"), t.activeBlade.value?.id === r.value.id)), m = v(() => (r || G("name"), r.value.name));
5587
- let b = !1;
5588
- function S(I) {
5589
- if (b) {
5579
+ const t = s, n = e, r = me() ? F(dt, void 0) : void 0, a = me() ? F(jt, void 0) : void 0;
5580
+ let o;
5581
+ function u() {
5582
+ if (o) return o;
5583
+ const w = Ht?.router;
5584
+ return w && (o = Jt(w, t)), o;
5585
+ }
5586
+ const l = v(() => (r || L("id"), r.value.id)), d = v(() => (r || L("param"), r.value.param)), c = v(() => (r || L("options"), r.value.options)), f = v(() => (r || L("query"), r.value.query)), h = v(() => (r || L("closable"), r.value.parentId !== void 0)), m = v(() => (r || L("expanded"), t.activeBlade.value?.id === r.value.id)), g = v(() => (r || L("name"), r.value.name));
5587
+ let S = !1;
5588
+ function U(w) {
5589
+ if (S) {
5590
5590
  console.warn(
5591
5591
  "[vc-shell] provideBladeData() called more than once in the same blade. Only the first call takes effect."
5592
5592
  );
5593
5593
  return;
5594
5594
  }
5595
- b = !0;
5596
- const $ = er(I) ? I : O(I);
5597
- Me(Mr, $);
5595
+ S = !0;
5596
+ const B = rr(w) ? w : O(w);
5597
+ Ee(Gr, B);
5598
5598
  }
5599
- async function A(I) {
5600
- const { isWorkspace: $, ...ee } = I;
5601
- if ($)
5599
+ async function E(w) {
5600
+ const { isWorkspace: B, ...ee } = w;
5601
+ if (B)
5602
5602
  await t.openWorkspace(ee);
5603
5603
  else {
5604
- const ve = r?.value.id;
5605
- ve ? await t.openBlade({ ...ee, parentId: ve }) : await t.openBlade(ee);
5604
+ const He = r?.value.id;
5605
+ He ? await t.openBlade({ ...ee, parentId: He }) : await t.openBlade(ee);
5606
5606
  }
5607
- t.activeBlade.value?.url && o()?.syncUrlPush();
5607
+ t.activeBlade.value?.url && u()?.syncUrlPush();
5608
5608
  }
5609
- async function E() {
5610
- r || G("closeSelf()");
5611
- const I = await t.closeBlade(r.value.id);
5612
- return I || o()?.syncUrlReplace(), I;
5609
+ async function b() {
5610
+ r || L("closeSelf()");
5611
+ const w = await t.closeBlade(r.value.id);
5612
+ return w || u()?.syncUrlReplace(), w;
5613
5613
  }
5614
- async function g() {
5615
- r || G("closeChildren()"), await t.closeChildren(r.value.id), o()?.syncUrlReplace();
5614
+ async function P() {
5615
+ r || L("closeChildren()"), await t.closeChildren(r.value.id), u()?.syncUrlReplace();
5616
5616
  }
5617
- async function P(I) {
5618
- r || G("replaceWith()"), await t.replaceCurrentBlade({
5619
- ...I,
5617
+ async function C(w) {
5618
+ r || L("replaceWith()"), await t.replaceCurrentBlade({
5619
+ ...w,
5620
5620
  parentId: r.value.parentId
5621
- }), t.activeBlade.value?.url && o()?.syncUrlReplace();
5621
+ }), t.activeBlade.value?.url && u()?.syncUrlReplace();
5622
5622
  }
5623
- async function w(I) {
5624
- r || G("coverWith()"), await t.coverCurrentBlade({
5625
- ...I,
5623
+ async function A(w) {
5624
+ r || L("coverWith()"), await t.coverCurrentBlade({
5625
+ ...w,
5626
5626
  parentId: r.value.parentId
5627
- }), t.activeBlade.value?.url && o()?.syncUrlPush();
5627
+ }), t.activeBlade.value?.url && u()?.syncUrlPush();
5628
+ }
5629
+ async function T(w, B) {
5630
+ return r || L("callParent()"), n.callParent(r.value.id, w, B);
5628
5631
  }
5629
- async function _(I, $) {
5630
- return r || G("callParent()"), n.callParent(r.value.id, I, $);
5632
+ function M(w) {
5633
+ r || L("exposeToChildren()"), n.exposeToChildren(r.value.id, w);
5631
5634
  }
5632
- function T(I) {
5633
- r || G("exposeToChildren()"), n.exposeToChildren(r.value.id, I);
5635
+ function H(w) {
5636
+ r || L("onBeforeClose()"), t.registerBeforeClose(r.value.id, w);
5634
5637
  }
5635
- function M(I) {
5636
- r || G("onBeforeClose()"), t.registerBeforeClose(r.value.id, I);
5638
+ function p(w) {
5639
+ r || L("setError()"), t.setBladeError(r.value.id, w);
5637
5640
  }
5638
- function W(I) {
5639
- r || G("setError()"), t.setBladeError(r.value.id, I);
5641
+ function y() {
5642
+ r || L("clearError()"), t.clearBladeError(r.value.id);
5640
5643
  }
5641
- function p() {
5642
- r || G("clearError()"), t.clearBladeError(r.value.id);
5644
+ let x = 0;
5645
+ function I(w) {
5646
+ a || L("addBanner()");
5647
+ const B = `banner-${r.value.id}-${++x}`;
5648
+ return a.value.push({
5649
+ ...w,
5650
+ id: B,
5651
+ dismissible: w.dismissible ?? !1
5652
+ }), B;
5643
5653
  }
5644
- let y = !1, x = !1;
5645
- function U(I) {
5646
- if (r || G("onActivated()"), y) {
5654
+ function k(w) {
5655
+ a || L("removeBanner()"), a.value = a.value.filter((B) => B.id !== w);
5656
+ }
5657
+ function j() {
5658
+ a || L("clearBanners()"), a.value = a.value.filter((w) => w._system);
5659
+ }
5660
+ let J = !1, re = !1;
5661
+ function ie(w) {
5662
+ if (r || L("onActivated()"), J) {
5647
5663
  console.warn("[useBlade] onActivated() already registered in this blade.");
5648
5664
  return;
5649
5665
  }
5650
- y = !0, X(h, ($) => {
5651
- $ && I();
5666
+ J = !0, V(m, (B) => {
5667
+ B && w();
5652
5668
  });
5653
5669
  }
5654
- function k(I) {
5655
- if (r || G("onDeactivated()"), x) {
5670
+ function Ae(w) {
5671
+ if (r || L("onDeactivated()"), re) {
5656
5672
  console.warn("[useBlade] onDeactivated() already registered in this blade.");
5657
5673
  return;
5658
5674
  }
5659
- x = !0, X(h, ($) => {
5660
- $ || I();
5675
+ re = !0, V(m, (B) => {
5676
+ B || w();
5661
5677
  });
5662
5678
  }
5663
5679
  return {
5664
- id: u,
5665
- param: l,
5666
- options: d,
5667
- query: c,
5668
- closable: f,
5669
- expanded: h,
5670
- name: m,
5671
- provideBladeData: S,
5672
- openBlade: A,
5673
- closeSelf: E,
5674
- closeChildren: g,
5675
- replaceWith: P,
5676
- coverWith: w,
5677
- callParent: _,
5678
- exposeToChildren: T,
5679
- onBeforeClose: M,
5680
- onActivated: U,
5681
- onDeactivated: k,
5682
- setError: W,
5683
- clearError: p
5680
+ id: l,
5681
+ param: d,
5682
+ options: c,
5683
+ query: f,
5684
+ closable: h,
5685
+ expanded: m,
5686
+ name: g,
5687
+ provideBladeData: U,
5688
+ openBlade: E,
5689
+ closeSelf: b,
5690
+ closeChildren: P,
5691
+ replaceWith: C,
5692
+ coverWith: A,
5693
+ callParent: T,
5694
+ exposeToChildren: M,
5695
+ onBeforeClose: H,
5696
+ onActivated: ie,
5697
+ onDeactivated: Ae,
5698
+ setError: p,
5699
+ clearError: y,
5700
+ addBanner: I,
5701
+ removeBanner: k,
5702
+ clearBanners: j
5684
5703
  };
5685
5704
  }
5686
- const Za = {
5705
+ const Va = {
5687
5706
  url: "",
5688
5707
  title: "Virto OZ",
5689
5708
  width: 362,
5690
5709
  expandedWidth: 500,
5691
5710
  allowedOrigins: ["*"]
5692
- }, Fi = "APP_AI_AGENT_URL", Mi = {
5711
+ }, Di = "APP_AI_AGENT_URL", Li = {
5693
5712
  EMBEDDED_APP_READY: "EMBEDDED_APP_READY",
5694
5713
  AI_TOGGLE_PANEL: "AI_TOGGLE_PANEL",
5695
5714
  AI_CONTEXT_UPDATE: "AI_CONTEXT_UPDATE",
5696
5715
  AI_CONTEXT_CLEAR: "AI_CONTEXT_CLEAR"
5697
- }, Di = {
5716
+ }, Gi = {
5698
5717
  EMBEDDED_HOST_READY: "EMBEDDED_HOST_READY",
5699
5718
  AI_CHAT_MESSAGE: "AI_CHAT_MESSAGE"
5700
- }, Ya = "ai-agent-toggle", Xa = "lucide-sparkles", Va = "AI Assistant", Be = j("ai-agent-panel");
5701
- function Qa() {
5719
+ }, Qa = "ai-agent-toggle", es = "lucide-sparkles", ts = "AI Assistant", $e = N("ai-agent-panel");
5720
+ function rs() {
5702
5721
  const s = O("closed"), e = O(!1), t = v(() => s.value !== "closed"), n = v(() => s.value === "expanded"), r = () => {
5703
- s.value === "closed" && (s.value = "open", Be.debug("Panel opened"));
5722
+ s.value === "closed" && (s.value = "open", $e.debug("Panel opened"));
5704
5723
  }, a = () => {
5705
- s.value = "closed", e.value = !1, Be.debug("Panel closed, reset initialized state");
5724
+ s.value = "closed", e.value = !1, $e.debug("Panel closed, reset initialized state");
5706
5725
  };
5707
5726
  return {
5708
5727
  panelState: s,
@@ -5715,18 +5734,18 @@ function Qa() {
5715
5734
  s.value === "closed" ? r() : a();
5716
5735
  },
5717
5736
  expand: () => {
5718
- s.value === "open" && (s.value = "expanded", Be.debug("Panel expanded"));
5737
+ s.value === "open" && (s.value = "expanded", $e.debug("Panel expanded"));
5719
5738
  },
5720
5739
  collapse: () => {
5721
- s.value === "expanded" && (s.value = "open", Be.debug("Panel collapsed"));
5740
+ s.value === "expanded" && (s.value = "open", $e.debug("Panel collapsed"));
5722
5741
  },
5723
5742
  resetInitialized: () => {
5724
5743
  e.value = !1;
5725
5744
  }
5726
5745
  };
5727
5746
  }
5728
- const Ye = j("ai-agent-context");
5729
- function Pt(s) {
5747
+ const Xe = N("ai-agent-context");
5748
+ function Ot(s) {
5730
5749
  return s ? {
5731
5750
  id: s.id,
5732
5751
  name: s.name,
@@ -5734,10 +5753,10 @@ function Pt(s) {
5734
5753
  param: s.param
5735
5754
  } : { id: "unknown", name: "unknown", title: "Unknown" };
5736
5755
  }
5737
- function es(s) {
5756
+ function ns(s) {
5738
5757
  const { userGetter: e, bladeGetter: t, localeGetter: n, tokenGetter: r } = s, a = O(/* @__PURE__ */ new Map()), o = () => {
5739
- const b = t();
5740
- return b ? a.value.get(b.id) ?? {
5758
+ const g = t();
5759
+ return g ? a.value.get(g.id) ?? {
5741
5760
  items: [],
5742
5761
  type: "list",
5743
5762
  suggestions: void 0
@@ -5752,96 +5771,96 @@ function es(s) {
5752
5771
  contextType: l,
5753
5772
  contextSuggestions: d,
5754
5773
  totalItemsCount: c,
5755
- setContextData: (b, S, A, E) => {
5756
- const g = t()?.id || E;
5757
- return g ? b.length === 0 && !A ? (a.value.delete(g), Ye.debug(`Context cleared for blade: ${g}`), { cleared: !0 }) : (a.value.set(g, { items: b, type: S, suggestions: A }), Ye.debug(`Context set for blade: ${g}, items: ${b.length}, type: ${S}`), { cleared: !1 }) : (Ye.warn("Cannot set context data: no blade id available"), { cleared: !1 });
5774
+ setContextData: (g, S, U, E) => {
5775
+ const b = t()?.id || E;
5776
+ return b ? g.length === 0 && !U ? (a.value.delete(b), Xe.debug(`Context cleared for blade: ${b}`), { cleared: !0 }) : (a.value.set(b, { items: g, type: S, suggestions: U }), Xe.debug(`Context set for blade: ${b}, items: ${g.length}, type: ${S}`), { cleared: !1 }) : (Xe.warn("Cannot set context data: no blade id available"), { cleared: !1 });
5758
5777
  },
5759
5778
  buildInitPayload: async () => {
5760
- const b = r ? await r() ?? void 0 : void 0;
5779
+ const g = r ? await r() ?? void 0 : void 0;
5761
5780
  return {
5762
5781
  userId: e()?.id || "",
5763
5782
  locale: n(),
5764
- blade: Pt(t()),
5783
+ blade: Ot(t()),
5765
5784
  contextType: l.value,
5766
- items: Oe(u.value),
5767
- suggestions: d.value ? Oe(d.value) : void 0,
5768
- accessToken: b
5785
+ items: Re(u.value),
5786
+ suggestions: d.value ? Re(d.value) : void 0,
5787
+ accessToken: g
5769
5788
  };
5770
5789
  },
5771
5790
  buildUpdatePayload: async () => {
5772
- const b = r ? await r() ?? void 0 : void 0;
5791
+ const g = r ? await r() ?? void 0 : void 0;
5773
5792
  return {
5774
- blade: Pt(t()),
5793
+ blade: Ot(t()),
5775
5794
  contextType: l.value,
5776
- items: Oe(u.value),
5777
- suggestions: d.value ? Oe(d.value) : void 0,
5795
+ items: Re(u.value),
5796
+ suggestions: d.value ? Re(d.value) : void 0,
5778
5797
  locale: n(),
5779
- accessToken: b
5798
+ accessToken: g
5780
5799
  };
5781
5800
  }
5782
5801
  };
5783
5802
  }
5784
- const q = j("ai-agent-transport");
5785
- function ts(s) {
5803
+ const Z = N("ai-agent-transport");
5804
+ function as(s) {
5786
5805
  try {
5787
5806
  const e = atob(s.content), t = new Array(e.length);
5788
5807
  for (let o = 0; o < e.length; o++)
5789
5808
  t[o] = e.charCodeAt(o);
5790
5809
  const n = new Blob([new Uint8Array(t)], { type: s.contentType }), r = URL.createObjectURL(n), a = document.createElement("a");
5791
- a.href = r, a.download = s.filename, document.body.appendChild(a), a.click(), document.body.removeChild(a), URL.revokeObjectURL(r), q.debug(`File downloaded: ${s.filename}`);
5810
+ a.href = r, a.download = s.filename, document.body.appendChild(a), a.click(), document.body.removeChild(a), URL.revokeObjectURL(r), Z.debug(`File downloaded: ${s.filename}`);
5792
5811
  } catch (e) {
5793
- q.error("Failed to download file:", e);
5812
+ Z.error("Failed to download file:", e);
5794
5813
  }
5795
5814
  }
5796
- function rs(s) {
5797
- const { getConfig: e, isEmbedded: t, navigateToBlade: n, reloadBlade: r } = s, a = lt(null), o = O(!1), u = O(!1), l = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
5798
- function f(m, b) {
5815
+ function ss(s) {
5816
+ const { getConfig: e, isEmbedded: t, navigateToBlade: n, reloadBlade: r } = s, a = ut(null), o = O(!1), u = O(!1), l = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
5817
+ function f(m, g) {
5799
5818
  switch (m) {
5800
5819
  case "PREVIEW_CHANGES": {
5801
- const A = b;
5802
- d.size === 0 && q.warn("No preview changes handlers registered!"), d.forEach((E) => {
5820
+ const U = g;
5821
+ d.size === 0 && Z.warn("No preview changes handlers registered!"), d.forEach((E) => {
5803
5822
  try {
5804
- E(A);
5805
- } catch (g) {
5806
- q.error("Error in preview handler:", g);
5823
+ E(U);
5824
+ } catch (b) {
5825
+ Z.error("Error in preview handler:", b);
5807
5826
  }
5808
5827
  });
5809
5828
  break;
5810
5829
  }
5811
5830
  case "NAVIGATE_TO_APP": {
5812
- const A = b;
5813
- n && A?.bladeName && (n(A.bladeName, A.param, A.options), q.debug(`Navigation requested to: ${A.bladeName}`));
5831
+ const U = g;
5832
+ n && U?.bladeName && (n(U.bladeName, U.param, U.options), Z.debug(`Navigation requested to: ${U.bladeName}`));
5814
5833
  break;
5815
5834
  }
5816
5835
  case "RELOAD_BLADE":
5817
- r && (r(), q.debug("Blade reload requested"));
5836
+ r && (r(), Z.debug("Blade reload requested"));
5818
5837
  break;
5819
5838
  case "DOWNLOAD_FILE": {
5820
- const A = b;
5821
- A && ts(A);
5839
+ const U = g;
5840
+ U && as(U);
5822
5841
  break;
5823
5842
  }
5824
5843
  case "APPLY_CHANGES": {
5825
- const A = b;
5826
- q.warn("APPLY_CHANGES received but not implemented:", A?.changes);
5844
+ const U = g;
5845
+ Z.warn("APPLY_CHANGES received but not implemented:", U?.changes);
5827
5846
  break;
5828
5847
  }
5829
5848
  case "CHAT_ERROR": {
5830
- const A = b;
5831
- q.error(`Chatbot error [${A?.code}]: ${A?.message}`);
5849
+ const U = g;
5850
+ Z.error(`Chatbot error [${U?.code}]: ${U?.message}`);
5832
5851
  break;
5833
5852
  }
5834
5853
  }
5835
5854
  const S = {
5836
5855
  type: m,
5837
- payload: b,
5856
+ payload: g,
5838
5857
  timestamp: Date.now()
5839
5858
  };
5840
- l.forEach((A) => {
5859
+ l.forEach((U) => {
5841
5860
  try {
5842
- A(S);
5861
+ U(S);
5843
5862
  } catch (E) {
5844
- q.error("Handler error:", E);
5863
+ Z.error("Handler error:", E);
5845
5864
  }
5846
5865
  });
5847
5866
  }
@@ -5849,13 +5868,13 @@ function rs(s) {
5849
5868
  const S = e().allowedOrigins || ["*"];
5850
5869
  if (!S.includes("*") && !S.includes(m.origin))
5851
5870
  return;
5852
- const A = m.data;
5853
- if (!(!A?.type || typeof A.type != "string"))
5854
- switch (q.debug(`Message received: ${A.type}`), A.type) {
5871
+ const U = m.data;
5872
+ if (!(!U?.type || typeof U.type != "string"))
5873
+ switch (Z.debug(`Message received: ${U.type}`), U.type) {
5855
5874
  // Embedded: parent forwards chat messages wrapped in AI_CHAT_MESSAGE
5856
5875
  case "AI_CHAT_MESSAGE": {
5857
5876
  if (t) {
5858
- const E = A.payload;
5877
+ const E = U.payload;
5859
5878
  E?.type && f(E.type, E.payload);
5860
5879
  }
5861
5880
  return;
@@ -5865,14 +5884,14 @@ function rs(s) {
5865
5884
  c.forEach((E) => {
5866
5885
  try {
5867
5886
  E();
5868
- } catch (g) {
5869
- q.error("ChatReady handler error:", g);
5887
+ } catch (b) {
5888
+ Z.error("ChatReady handler error:", b);
5870
5889
  }
5871
5890
  });
5872
5891
  break;
5873
5892
  // Normal: direct chat protocol messages
5874
5893
  default:
5875
- f(A.type, A.payload);
5894
+ f(U.type, U.payload);
5876
5895
  break;
5877
5896
  }
5878
5897
  }
@@ -5881,22 +5900,22 @@ function rs(s) {
5881
5900
  pendingInitContext: o,
5882
5901
  isListenerRegistered: u,
5883
5902
  setIframeRef(m) {
5884
- a.value = m, q.debug("Iframe ref set:", m ? "available" : "null");
5903
+ a.value = m, Z.debug("Iframe ref set:", m ? "available" : "null");
5885
5904
  },
5886
5905
  sendToIframe(m) {
5887
5906
  if (!a.value?.contentWindow) {
5888
- q.warn("Cannot send message: iframe not available");
5907
+ Z.warn("Cannot send message: iframe not available");
5889
5908
  return;
5890
5909
  }
5891
5910
  const S = e().allowedOrigins?.[0] || "*";
5892
- a.value.contentWindow.postMessage(m, S), q.debug(`Sent to iframe: ${m.type}`);
5911
+ a.value.contentWindow.postMessage(m, S), Z.debug(`Sent to iframe: ${m.type}`);
5893
5912
  },
5894
5913
  sendToParent(m) {
5895
5914
  if (!window.parent || window.parent === window) {
5896
- q.warn("Cannot send to parent: not in iframe");
5915
+ Z.warn("Cannot send to parent: not in iframe");
5897
5916
  return;
5898
5917
  }
5899
- window.parent.postMessage(m, "*"), q.debug(`Sent to parent: ${m.type}`);
5918
+ window.parent.postMessage(m, "*"), Z.debug(`Sent to parent: ${m.type}`);
5900
5919
  },
5901
5920
  startListening() {
5902
5921
  u.value || (window.addEventListener("message", h), u.value = !0);
@@ -5921,8 +5940,8 @@ function rs(s) {
5921
5940
  }
5922
5941
  };
5923
5942
  }
5924
- const $e = j("ai-agent-service");
5925
- function ns(s) {
5943
+ const Ne = N("ai-agent-service");
5944
+ function is(s) {
5926
5945
  const {
5927
5946
  userGetter: e,
5928
5947
  bladeGetter: t,
@@ -5932,12 +5951,12 @@ function ns(s) {
5932
5951
  reloadBlade: o,
5933
5952
  initialConfig: u,
5934
5953
  isEmbedded: l = !1
5935
- } = s, d = O({ ...Za, ...u }), c = Qa(), f = es({
5954
+ } = s, d = O({ ...Va, ...u }), c = rs(), f = ns({
5936
5955
  userGetter: e,
5937
5956
  bladeGetter: t,
5938
5957
  localeGetter: n,
5939
5958
  tokenGetter: r
5940
- }), h = rs({
5959
+ }), h = ss({
5941
5960
  getConfig: () => d.value,
5942
5961
  isEmbedded: l,
5943
5962
  navigateToBlade: a,
@@ -5946,42 +5965,42 @@ function ns(s) {
5946
5965
  user: e(),
5947
5966
  currentBlade: t(),
5948
5967
  items: f.contextItems.value
5949
- })), b = async () => {
5968
+ })), g = async () => {
5950
5969
  if (h.pendingInitContext.value && h.iframeRef.value?.contentWindow) {
5951
5970
  h.pendingInitContext.value = !1, c.isInitialized.value = !0;
5952
- const w = await f.buildInitPayload();
5953
- h.sendToIframe({ type: "INIT_CONTEXT", payload: w }), $e.debug("Flushed pending INIT_CONTEXT");
5971
+ const C = await f.buildInitPayload();
5972
+ h.sendToIframe({ type: "INIT_CONTEXT", payload: C }), Ne.debug("Flushed pending INIT_CONTEXT");
5954
5973
  }
5955
5974
  };
5956
5975
  h.onChatReady(() => {
5957
- h.iframeRef.value?.contentWindow ? (c.isInitialized.value = !0, f.buildInitPayload().then((w) => {
5958
- h.sendToIframe({ type: "INIT_CONTEXT", payload: w }), $e.info("Chatbot ready, sent INIT_CONTEXT");
5959
- })) : (h.pendingInitContext.value = !0, $e.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
5960
- }), X(h.iframeRef, () => b()), X(
5976
+ h.iframeRef.value?.contentWindow ? (c.isInitialized.value = !0, f.buildInitPayload().then((C) => {
5977
+ h.sendToIframe({ type: "INIT_CONTEXT", payload: C }), Ne.info("Chatbot ready, sent INIT_CONTEXT");
5978
+ })) : (h.pendingInitContext.value = !0, Ne.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
5979
+ }), V(h.iframeRef, () => g()), V(
5961
5980
  () => ({ currentBlade: m.value.currentBlade, items: m.value.items }),
5962
5981
  async () => {
5963
5982
  if (l) {
5964
- const w = await f.buildInitPayload();
5965
- h.sendToParent({ type: "AI_CONTEXT_UPDATE", payload: w });
5983
+ const C = await f.buildInitPayload();
5984
+ h.sendToParent({ type: "AI_CONTEXT_UPDATE", payload: C });
5966
5985
  return;
5967
5986
  }
5968
5987
  if (c.isOpen.value && c.isInitialized.value && h.iframeRef.value?.contentWindow) {
5969
- const w = await f.buildUpdatePayload();
5970
- h.sendToIframe({ type: "UPDATE_CONTEXT", payload: w });
5988
+ const C = await f.buildUpdatePayload();
5989
+ h.sendToIframe({ type: "UPDATE_CONTEXT", payload: C });
5971
5990
  }
5972
5991
  },
5973
5992
  { deep: !0 }
5974
5993
  );
5975
- const S = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : c.open(), A = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : c.close(), E = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : c.toggle(), g = (w) => {
5976
- h.setIframeRef(w), b();
5977
- }, P = (w, _, T, M) => {
5978
- const { cleared: W } = f.setContextData(w, _, T, M);
5979
- l && W && h.sendToParent({ type: "AI_CONTEXT_CLEAR" });
5994
+ const S = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : c.open(), U = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : c.close(), E = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : c.toggle(), b = (C) => {
5995
+ h.setIframeRef(C), g();
5996
+ }, P = (C, A, T, M) => {
5997
+ const { cleared: H } = f.setContextData(C, A, T, M);
5998
+ l && H && h.sendToParent({ type: "AI_CONTEXT_CLEAR" });
5980
5999
  };
5981
6000
  return h.startListening(), l && (h.sendToParent({
5982
6001
  type: "EMBEDDED_APP_READY",
5983
6002
  payload: { supportedFeatures: ["ai-agent"] }
5984
- }), $e.info("Embedded mode: sent EMBEDDED_APP_READY to parent")), {
6003
+ }), Ne.info("Embedded mode: sent EMBEDDED_APP_READY to parent")), {
5985
6004
  // State
5986
6005
  panelState: c.panelState,
5987
6006
  config: d,
@@ -5991,31 +6010,31 @@ function ns(s) {
5991
6010
  totalItemsCount: f.totalItemsCount,
5992
6011
  // Panel control
5993
6012
  openPanel: S,
5994
- closePanel: A,
6013
+ closePanel: U,
5995
6014
  togglePanel: E,
5996
6015
  expandPanel: () => c.expand(),
5997
6016
  collapsePanel: () => c.collapse(),
5998
6017
  // Configuration
5999
- setConfig: (w) => {
6000
- d.value = { ...d.value, ...w };
6018
+ setConfig: (C) => {
6019
+ d.value = { ...d.value, ...C };
6001
6020
  },
6002
6021
  // Communication
6003
- sendMessage: (w, _) => {
6004
- h.sendToIframe({ type: w, payload: _ });
6022
+ sendMessage: (C, A) => {
6023
+ h.sendToIframe({ type: C, payload: A });
6005
6024
  },
6006
6025
  onMessage: h.onMessage,
6007
6026
  // Internal API
6008
6027
  iframeRef: h.iframeRef,
6009
- _setIframeRef: g,
6028
+ _setIframeRef: b,
6010
6029
  _startListening: h.startListening,
6011
6030
  _stopListening: h.stopListening,
6012
6031
  _setContextData: P,
6013
6032
  _onPreviewChanges: h.onPreviewChanges
6014
6033
  };
6015
6034
  }
6016
- const ce = j("use-ai-agent");
6017
- function Li(s) {
6018
- const e = F(Gr), { user: t, getAccessToken: n } = Gn(), { openBlade: r } = qa(), { blades: a, activeBlade: o, replaceCurrentBlade: u } = Dt(), l = s?.isEmbedded, d = ns({
6035
+ const ce = N("use-ai-agent");
6036
+ function Ji(s) {
6037
+ const e = F(Hr), { user: t, getAccessToken: n } = Hn(), { openBlade: r } = Xa(), { blades: a, activeBlade: o, replaceCurrentBlade: u } = Gt(), l = s?.isEmbedded, d = is({
6019
6038
  userGetter: () => {
6020
6039
  if (t.value)
6021
6040
  return {
@@ -6040,8 +6059,8 @@ function Li(s) {
6040
6059
  navigateToBlade: (f, h, m) => {
6041
6060
  r({ name: f, param: h, options: m }).then(() => {
6042
6061
  ce.debug(`Navigated to blade: ${f}`);
6043
- }).catch((b) => {
6044
- ce.warn(`Blade not found or cannot be opened: ${f}`, b);
6062
+ }).catch((g) => {
6063
+ ce.warn(`Blade not found or cannot be opened: ${f}`, g);
6045
6064
  });
6046
6065
  },
6047
6066
  reloadBlade: () => {
@@ -6060,13 +6079,13 @@ function Li(s) {
6060
6079
  initialConfig: s?.config,
6061
6080
  isEmbedded: l
6062
6081
  });
6063
- if (Me(Je, d), ce.debug("AiAgentService provided"), s?.addGlobalToolbarButton ?? !0) {
6064
- const f = F(Jr, null);
6082
+ if (Ee(Je, d), ce.debug("AiAgentService provided"), s?.addGlobalToolbarButton ?? !0) {
6083
+ const f = F(Kr, null);
6065
6084
  f ? (f.registerToolbarItem(
6066
6085
  {
6067
- id: Ya,
6068
- icon: Xa,
6069
- title: Va,
6086
+ id: Qa,
6087
+ icon: es,
6088
+ title: ts,
6070
6089
  clickHandler: () => {
6071
6090
  d.togglePanel();
6072
6091
  }
@@ -6077,10 +6096,10 @@ function Li(s) {
6077
6096
  }
6078
6097
  return d;
6079
6098
  }
6080
- function Gi() {
6099
+ function Wi() {
6081
6100
  const s = F(Je);
6082
6101
  if (!s)
6083
- throw ce.error("AiAgentService not found. Did you forget to call provideAiAgentService()?"), new Ur("AiAgentService");
6102
+ throw ce.error("AiAgentService not found. Did you forget to call provideAiAgentService()?"), new Tr("AiAgentService");
6084
6103
  return {
6085
6104
  // State
6086
6105
  panelState: s.panelState,
@@ -6102,7 +6121,7 @@ function Gi() {
6102
6121
  onMessage: s.onMessage
6103
6122
  };
6104
6123
  }
6105
- function Ji(s) {
6124
+ function Hi(s) {
6106
6125
  return {
6107
6126
  id: "ai-agent-toggle",
6108
6127
  icon: s?.icon ?? "lucide-sparkles",
@@ -6112,11 +6131,11 @@ function Ji(s) {
6112
6131
  }
6113
6132
  };
6114
6133
  }
6115
- const as = ["width", "height"], ss = ["clip-path"], is = {
6134
+ const os = ["width", "height"], ls = ["clip-path"], us = {
6116
6135
  key: 1,
6117
6136
  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",
6118
6137
  fill: "url(#virto-oz-gradient-animated)"
6119
- }, os = ["id"], ls = {
6138
+ }, cs = ["id"], ds = {
6120
6139
  key: 1,
6121
6140
  id: "virto-oz-gradient-animated",
6122
6141
  gradientUnits: "userSpaceOnUse",
@@ -6124,7 +6143,7 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
6124
6143
  y1: "0",
6125
6144
  x2: "99",
6126
6145
  y2: "108"
6127
- }, Kt = /* @__PURE__ */ L({
6146
+ }, Zt = /* @__PURE__ */ G({
6128
6147
  __name: "VcVirtoOzLogo",
6129
6148
  props: {
6130
6149
  width: { default: 22 },
@@ -6133,7 +6152,7 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
6133
6152
  },
6134
6153
  setup(s) {
6135
6154
  const e = v(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
6136
- return (t, n) => (C(), R("svg", {
6155
+ return (t, n) => (_(), R("svg", {
6137
6156
  width: s.width,
6138
6157
  height: s.height,
6139
6158
  viewBox: "0 0 99 108",
@@ -6141,22 +6160,22 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
6141
6160
  xmlns: "http://www.w3.org/2000/svg",
6142
6161
  class: "vc-virto-oz-logo"
6143
6162
  }, [
6144
- n[3] || (n[3] = N("path", {
6163
+ n[3] || (n[3] = $("path", {
6145
6164
  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",
6146
6165
  fill: "white"
6147
6166
  }, null, -1)),
6148
- s.animated ? (C(), R("path", is)) : (C(), R("g", {
6167
+ s.animated ? (_(), R("path", us)) : (_(), R("g", {
6149
6168
  key: 0,
6150
6169
  "clip-path": `url(#${e.value})`
6151
6170
  }, [...n[0] || (n[0] = [
6152
- N("g", { transform: "matrix(0 -0.161514 0.160417 0 49.1357 53.9479)" }, [
6153
- N("foreignObject", {
6171
+ $("g", { transform: "matrix(0 -0.161514 0.160417 0 49.1357 53.9479)" }, [
6172
+ $("foreignObject", {
6154
6173
  x: "-334.01",
6155
6174
  y: "-334.01",
6156
6175
  width: "668.02",
6157
6176
  height: "668.02"
6158
6177
  }, [
6159
- N("div", {
6178
+ $("div", {
6160
6179
  xmlns: "http://www.w3.org/1999/xhtml",
6161
6180
  style: { background: `conic-gradient(
6162
6181
  from 90deg,
@@ -6170,46 +6189,46 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
6170
6189
  })
6171
6190
  ])
6172
6191
  ], -1)
6173
- ])], 8, ss)),
6174
- n[4] || (n[4] = N("path", {
6192
+ ])], 8, ls)),
6193
+ n[4] || (n[4] = $("path", {
6175
6194
  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",
6176
6195
  fill: "white"
6177
6196
  }, null, -1)),
6178
- n[5] || (n[5] = N("ellipse", {
6197
+ n[5] || (n[5] = $("ellipse", {
6179
6198
  cx: "49.12",
6180
6199
  cy: "54.09",
6181
6200
  rx: "4.05",
6182
6201
  ry: "4.05",
6183
6202
  fill: "#6C6C6C"
6184
6203
  }, null, -1)),
6185
- n[6] || (n[6] = N("ellipse", {
6204
+ n[6] || (n[6] = $("ellipse", {
6186
6205
  cx: "60.62",
6187
6206
  cy: "54.09",
6188
6207
  rx: "4.05",
6189
6208
  ry: "4.05",
6190
6209
  fill: "#6C6C6C"
6191
6210
  }, null, -1)),
6192
- n[7] || (n[7] = N("ellipse", {
6211
+ n[7] || (n[7] = $("ellipse", {
6193
6212
  cx: "37.62",
6194
6213
  cy: "54.09",
6195
6214
  rx: "4.05",
6196
6215
  ry: "4.05",
6197
6216
  fill: "#6C6C6C"
6198
6217
  }, null, -1)),
6199
- N("defs", null, [
6200
- s.animated ? H("", !0) : (C(), R("clipPath", {
6218
+ $("defs", null, [
6219
+ s.animated ? K("", !0) : (_(), R("clipPath", {
6201
6220
  key: 0,
6202
6221
  id: e.value
6203
6222
  }, [...n[1] || (n[1] = [
6204
- N("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)
6205
- ])], 8, os)),
6206
- s.animated ? (C(), R("linearGradient", ls, [...n[2] || (n[2] = [
6207
- tr('<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)
6208
- ])])) : H("", !0)
6223
+ $("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)
6224
+ ])], 8, cs)),
6225
+ s.animated ? (_(), R("linearGradient", ds, [...n[2] || (n[2] = [
6226
+ nr('<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)
6227
+ ])])) : K("", !0)
6209
6228
  ])
6210
- ], 8, as));
6229
+ ], 8, os));
6211
6230
  }
6212
- }), us = { class: "vc-ai-agent-header" }, cs = { class: "vc-ai-agent-header__icon" }, ds = { class: "vc-ai-agent-header__wrapper" }, hs = { class: "vc-ai-agent-header__content" }, fs = { class: "vc-ai-agent-header__title" }, ps = { class: "vc-ai-agent-header__controls" }, ms = /* @__PURE__ */ L({
6231
+ }), hs = { class: "vc-ai-agent-header" }, fs = { class: "vc-ai-agent-header__icon" }, ps = { class: "vc-ai-agent-header__wrapper" }, ms = { class: "vc-ai-agent-header__content" }, vs = { class: "vc-ai-agent-header__title" }, gs = { class: "vc-ai-agent-header__controls" }, bs = /* @__PURE__ */ G({
6213
6232
  __name: "VcAiAgentHeader",
6214
6233
  props: {
6215
6234
  title: {},
@@ -6218,79 +6237,79 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
6218
6237
  },
6219
6238
  emits: ["close", "expand", "collapse"],
6220
6239
  setup(s) {
6221
- return (e, t) => (C(), R("div", us, [
6222
- N("div", cs, [
6223
- Z(Kt, {
6240
+ return (e, t) => (_(), R("div", hs, [
6241
+ $("div", fs, [
6242
+ Y(Zt, {
6224
6243
  width: 22,
6225
6244
  height: 24,
6226
6245
  "show-dots": ""
6227
6246
  })
6228
6247
  ]),
6229
- N("div", ds, [
6230
- N("div", hs, [
6231
- N("div", fs, he(s.title), 1)
6248
+ $("div", ps, [
6249
+ $("div", ms, [
6250
+ $("div", vs, he(s.title), 1)
6232
6251
  ])
6233
6252
  ]),
6234
- N("div", ps, [
6235
- s.isExpanded ? (C(), R("div", {
6253
+ $("div", gs, [
6254
+ s.isExpanded ? (_(), R("div", {
6236
6255
  key: 0,
6237
6256
  class: "vc-ai-agent-header__button",
6238
6257
  title: "Collapse",
6239
6258
  onClick: t[0] || (t[0] = (n) => e.$emit("collapse"))
6240
6259
  }, [
6241
- Z(D(se), { icon: "lucide-minus" })
6242
- ])) : (C(), R("div", {
6260
+ Y(D(oe), { icon: "lucide-minus" })
6261
+ ])) : (_(), R("div", {
6243
6262
  key: 1,
6244
6263
  class: "vc-ai-agent-header__button",
6245
6264
  title: "Expand",
6246
6265
  onClick: t[1] || (t[1] = (n) => e.$emit("expand"))
6247
6266
  }, [
6248
- Z(D(se), { icon: "lucide-panel-top" })
6267
+ Y(D(oe), { icon: "lucide-panel-top" })
6249
6268
  ])),
6250
- N("div", {
6269
+ $("div", {
6251
6270
  class: "vc-ai-agent-header__button",
6252
6271
  title: "Close",
6253
6272
  onClick: t[2] || (t[2] = (n) => e.$emit("close"))
6254
6273
  }, [
6255
- Z(D(se), { icon: "lucide-x" })
6274
+ Y(D(oe), { icon: "lucide-x" })
6256
6275
  ])
6257
6276
  ])
6258
6277
  ]));
6259
6278
  }
6260
- }), vs = { class: "vc-ai-agent-loader" }, gs = { class: "vc-ai-agent-loader__content" }, bs = { class: "vc-ai-agent-loader__logo" }, ys = {
6279
+ }), ys = { class: "vc-ai-agent-loader" }, xs = { class: "vc-ai-agent-loader__content" }, Es = { class: "vc-ai-agent-loader__logo" }, ws = {
6261
6280
  key: 0,
6262
6281
  class: "vc-ai-agent-loader__text"
6263
- }, xs = /* @__PURE__ */ L({
6282
+ }, Cs = /* @__PURE__ */ G({
6264
6283
  __name: "VcAiAgentLoader",
6265
6284
  props: {
6266
6285
  text: {}
6267
6286
  },
6268
6287
  setup(s) {
6269
- return (e, t) => (C(), R("div", vs, [
6270
- N("div", gs, [
6271
- N("div", bs, [
6272
- Z(Kt, {
6288
+ return (e, t) => (_(), R("div", ys, [
6289
+ $("div", xs, [
6290
+ $("div", Es, [
6291
+ Y(Zt, {
6273
6292
  width: 80,
6274
6293
  height: 87,
6275
6294
  animated: ""
6276
6295
  })
6277
6296
  ]),
6278
- s.text ? (C(), R("p", ys, he(s.text), 1)) : H("", !0)
6297
+ s.text ? (_(), R("p", ws, he(s.text), 1)) : K("", !0)
6279
6298
  ])
6280
6299
  ]));
6281
6300
  }
6282
- }), Es = { class: "vc-ai-agent-iframe" }, ws = ["src"], Cs = {
6301
+ }), _s = { class: "vc-ai-agent-iframe" }, Ss = ["src"], As = {
6283
6302
  key: 1,
6284
6303
  class: "vc-ai-agent-iframe__placeholder"
6285
- }, _s = /* @__PURE__ */ L({
6304
+ }, Us = /* @__PURE__ */ G({
6286
6305
  __name: "VcAiAgentIframe",
6287
6306
  props: {
6288
6307
  url: {}
6289
6308
  },
6290
6309
  emits: ["iframe-ready"],
6291
6310
  setup(s, { emit: e }) {
6292
- const t = j("ai-agent-iframe"), n = s, r = e, a = O(null), o = O(!0);
6293
- X(
6311
+ const t = N("ai-agent-iframe"), n = s, r = e, a = O(null), o = O(!0);
6312
+ V(
6294
6313
  a,
6295
6314
  (l) => {
6296
6315
  l && r("iframe-ready", l);
@@ -6300,44 +6319,44 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
6300
6319
  const u = () => {
6301
6320
  o.value = !1, t.debug("Iframe loaded");
6302
6321
  };
6303
- return X(
6322
+ return V(
6304
6323
  () => n.url,
6305
6324
  () => {
6306
6325
  o.value = !0;
6307
6326
  }
6308
- ), (l, d) => (C(), R("div", Es, [
6309
- Z(st, { name: "fade" }, {
6327
+ ), (l, d) => (_(), R("div", _s, [
6328
+ Y(it, { name: "fade" }, {
6310
6329
  default: fe(() => [
6311
- o.value && s.url ? (C(), J(xs, {
6330
+ o.value && s.url ? (_(), W(Cs, {
6312
6331
  key: 0,
6313
6332
  text: l.$t("AI_AGENT.LOADING")
6314
- }, null, 8, ["text"])) : H("", !0)
6333
+ }, null, 8, ["text"])) : K("", !0)
6315
6334
  ]),
6316
6335
  _: 1
6317
6336
  }),
6318
- s.url ? (C(), R("iframe", {
6337
+ s.url ? (_(), R("iframe", {
6319
6338
  key: 0,
6320
6339
  ref_key: "iframeRef",
6321
6340
  ref: a,
6322
6341
  src: s.url,
6323
- class: K(["vc-ai-agent-iframe__frame", { "vc-ai-agent-iframe__frame--loading": o.value }]),
6342
+ class: q(["vc-ai-agent-iframe__frame", { "vc-ai-agent-iframe__frame--loading": o.value }]),
6324
6343
  sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
6325
6344
  allow: "clipboard-read; clipboard-write",
6326
6345
  onLoad: u
6327
- }, null, 42, ws)) : (C(), R("div", Cs, [
6328
- Z(D(se), {
6346
+ }, null, 42, Ss)) : (_(), R("div", As, [
6347
+ Y(D(oe), {
6329
6348
  icon: "lucide-sparkles",
6330
6349
  size: "xl",
6331
6350
  class: "vc-ai-agent-iframe__placeholder-icon"
6332
6351
  }),
6333
- d[0] || (d[0] = N("p", { class: "vc-ai-agent-iframe__placeholder-text" }, "AI Agent URL not configured", -1))
6352
+ d[0] || (d[0] = $("p", { class: "vc-ai-agent-iframe__placeholder-text" }, "AI Agent URL not configured", -1))
6334
6353
  ]))
6335
6354
  ]));
6336
6355
  }
6337
- }), Ss = { class: "vc-ai-agent-panel__content" }, Wi = /* @__PURE__ */ L({
6356
+ }), Is = { class: "vc-ai-agent-panel__content" }, Ki = /* @__PURE__ */ G({
6338
6357
  __name: "VcAiAgentPanel",
6339
6358
  setup(s) {
6340
- const e = F(Je), t = F(Hr, !1);
6359
+ const e = F(Je), t = F(Zr, !1);
6341
6360
  e || console.error("[VcAiAgentPanel] AiAgentService not provided");
6342
6361
  const n = v(
6343
6362
  () => e?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
@@ -6346,18 +6365,18 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
6346
6365
  })), l = () => e?.closePanel(), d = () => e?.expandPanel(), c = () => e?.collapsePanel(), f = (h) => {
6347
6366
  e?._setIframeRef(h);
6348
6367
  };
6349
- return rr(() => {
6368
+ return ar(() => {
6350
6369
  e?._setIframeRef(null);
6351
- }), (h, m) => (C(), J(st, { name: "ai-panel-slide" }, {
6370
+ }), (h, m) => (_(), W(it, { name: "ai-panel-slide" }, {
6352
6371
  default: fe(() => [
6353
- r.value ? (C(), R("div", {
6372
+ r.value ? (_(), R("div", {
6354
6373
  key: 0,
6355
- class: K(["vc-ai-agent-panel", {
6374
+ class: q(["vc-ai-agent-panel", {
6356
6375
  "vc-ai-agent-panel--expanded": a.value
6357
6376
  }]),
6358
- style: Ce(u.value)
6377
+ style: _e(u.value)
6359
6378
  }, [
6360
- Z(ms, {
6379
+ Y(bs, {
6361
6380
  title: n.value.title,
6362
6381
  "is-expanded": a.value,
6363
6382
  "items-count": o.value,
@@ -6365,168 +6384,170 @@ const as = ["width", "height"], ss = ["clip-path"], is = {
6365
6384
  onExpand: d,
6366
6385
  onCollapse: c
6367
6386
  }, null, 8, ["title", "is-expanded", "items-count"]),
6368
- N("div", Ss, [
6369
- Z(_s, {
6387
+ $("div", Is, [
6388
+ Y(Us, {
6370
6389
  url: n.value.url,
6371
6390
  onIframeReady: f
6372
6391
  }, null, 8, ["url"])
6373
6392
  ])
6374
- ], 6)) : H("", !0)
6393
+ ], 6)) : K("", !0)
6375
6394
  ]),
6376
6395
  _: 1
6377
6396
  }));
6378
6397
  }
6379
6398
  });
6380
6399
  export {
6381
- ai as $,
6382
- Fi as A,
6383
- Br as B,
6384
- Nt as C,
6385
- Za as D,
6386
- Mi as E,
6387
- Mn as F,
6388
- Jt as G,
6389
- Di as H,
6390
- Ur as I,
6391
- Wt as J,
6392
- Ha as K,
6393
- Ht as L,
6394
- At as M,
6395
- Hn as N,
6396
- Lt as O,
6397
- Gr as P,
6398
- Zr as Q,
6399
- Yr as R,
6400
- Si as S,
6401
- Kr as T,
6402
- qr as U,
6403
- Xr as V,
6404
- Qs as W,
6405
- ci as X,
6406
- Vs as Y,
6407
- Jr as Z,
6408
- bn as _,
6409
- jr as a,
6410
- Ut as a$,
6411
- ri as a0,
6412
- ki as a1,
6413
- ni as a2,
6414
- Lr as a3,
6415
- Ni as a4,
6416
- zi as a5,
6417
- ji as a6,
6418
- da as a7,
6419
- ha as a8,
6420
- fa as a9,
6421
- En as aA,
6422
- ae as aB,
6423
- ti as aC,
6424
- di as aD,
6425
- Ei as aE,
6426
- kn as aF,
6427
- An as aG,
6428
- wi as aH,
6429
- Zs as aI,
6430
- Ci as aJ,
6431
- li as aK,
6432
- oi as aL,
6433
- Xs as aM,
6434
- _i as aN,
6435
- Bn as aO,
6436
- $n as aP,
6437
- Un as aQ,
6438
- Nn as aR,
6439
- wn as aS,
6440
- Ks as aT,
6441
- Cn as aU,
6442
- Hs as aV,
6443
- In as aW,
6444
- ui as aX,
6445
- Tn as aY,
6446
- jn as aZ,
6447
- Ws as a_,
6448
- zn as aa,
6449
- si as ab,
6450
- Wr as ac,
6451
- mi as ad,
6452
- V as ae,
6453
- vi as af,
6454
- Dr as ag,
6455
- Mr as ah,
6456
- qs as ai,
6457
- ut as aj,
6458
- Ge as ak,
6459
- gi as al,
6460
- hi as am,
6461
- ei as an,
6462
- bi as ao,
6463
- yi as ap,
6464
- ge as aq,
6465
- ii as ar,
6466
- Pn as as,
6467
- xi as at,
6468
- Rn as au,
6469
- _n as av,
6470
- On as aw,
6471
- Hr as ax,
6472
- Sn as ay,
6473
- Ta as az,
6474
- un as b,
6475
- Mt as b0,
6476
- jt as b1,
6477
- ga as b2,
6478
- Da as b3,
6479
- Ma as b4,
6480
- La as b5,
6481
- Fa as b6,
6482
- Sr as b7,
6483
- $i as b8,
6484
- Aa as b9,
6485
- Pi as ba,
6486
- Ri as bb,
6487
- Ir as bc,
6488
- Gs as bd,
6489
- Js as be,
6490
- za as bf,
6491
- Oi as bg,
6492
- Ii as bh,
6493
- Ti as bi,
6494
- Ga as bj,
6495
- Ft as bk,
6496
- Dt as bl,
6497
- Sa as bm,
6498
- Vn as bn,
6499
- ma as bo,
6500
- qn as bp,
6501
- Gn as bq,
6502
- Ys as br,
6503
- pe as bs,
6504
- va as bt,
6505
- Li as bu,
6506
- Ze as bv,
6507
- ra as bw,
6508
- hn as c,
6509
- se as d,
6510
- Fr as e,
6511
- Vr as f,
6512
- Wi as g,
6513
- Ji as h,
6514
- Gi as i,
6400
+ ii as $,
6401
+ Di as A,
6402
+ Nr as B,
6403
+ zt as C,
6404
+ Va as D,
6405
+ Li as E,
6406
+ Gn as F,
6407
+ Ht as G,
6408
+ Gi as H,
6409
+ Tr as I,
6410
+ Kt as J,
6411
+ Za as K,
6412
+ qt as L,
6413
+ Ut as M,
6414
+ Zn as N,
6415
+ Jt as O,
6416
+ Hr as P,
6417
+ Vr as Q,
6418
+ Qr as R,
6419
+ Ui as S,
6420
+ Yr as T,
6421
+ Xr as U,
6422
+ en as V,
6423
+ ti as W,
6424
+ hi as X,
6425
+ ei as Y,
6426
+ Kr as Z,
6427
+ En as _,
6428
+ Fr as a,
6429
+ Mn as a$,
6430
+ ai as a0,
6431
+ $i as a1,
6432
+ si as a2,
6433
+ Wr as a3,
6434
+ zi as a4,
6435
+ Mi as a5,
6436
+ Fi as a6,
6437
+ pa as a7,
6438
+ ma as a8,
6439
+ va as a9,
6440
+ In as aA,
6441
+ Ra as aB,
6442
+ _n as aC,
6443
+ se as aD,
6444
+ ni as aE,
6445
+ fi as aF,
6446
+ Ci as aG,
6447
+ Nn as aH,
6448
+ Tn as aI,
6449
+ _i as aJ,
6450
+ Xs as aK,
6451
+ Si as aL,
6452
+ ci as aM,
6453
+ ui as aN,
6454
+ Qs as aO,
6455
+ Ai as aP,
6456
+ jn as aQ,
6457
+ zn as aR,
6458
+ Pn as aS,
6459
+ Fn as aT,
6460
+ Sn as aU,
6461
+ Zs as aV,
6462
+ An as aW,
6463
+ qs as aX,
6464
+ On as aY,
6465
+ di as aZ,
6466
+ Rn as a_,
6467
+ Dn as aa,
6468
+ oi as ab,
6469
+ qr as ac,
6470
+ gi as ad,
6471
+ Q as ae,
6472
+ bi as af,
6473
+ Jr as ag,
6474
+ jt as ah,
6475
+ Gr as ai,
6476
+ Ys as aj,
6477
+ Lr as ak,
6478
+ ct as al,
6479
+ Ge as am,
6480
+ yi as an,
6481
+ pi as ao,
6482
+ ri as ap,
6483
+ xi as aq,
6484
+ Ei as ar,
6485
+ be as as,
6486
+ li as at,
6487
+ kn as au,
6488
+ wi as av,
6489
+ $n as aw,
6490
+ Un as ax,
6491
+ Bn as ay,
6492
+ Zr as az,
6493
+ hn as b,
6494
+ Ks as b0,
6495
+ It as b1,
6496
+ Lt as b2,
6497
+ Ft as b3,
6498
+ xa as b4,
6499
+ Ja as b5,
6500
+ Ga as b6,
6501
+ Wa as b7,
6502
+ La as b8,
6503
+ Ur as b9,
6504
+ ji as ba,
6505
+ Ta as bb,
6506
+ Ri as bc,
6507
+ Bi as bd,
6508
+ Pr as be,
6509
+ Ws as bf,
6510
+ Hs as bg,
6511
+ Da as bh,
6512
+ ki as bi,
6513
+ Pi as bj,
6514
+ Oi as bk,
6515
+ Ha as bl,
6516
+ Dt as bm,
6517
+ Gt as bn,
6518
+ Ia as bo,
6519
+ ta as bp,
6520
+ ba as bq,
6521
+ Xn as br,
6522
+ Hn as bs,
6523
+ Vs as bt,
6524
+ pe as bu,
6525
+ ya as bv,
6526
+ Ji as bw,
6527
+ Ye as bx,
6528
+ sa as by,
6529
+ mn as c,
6530
+ oe as d,
6531
+ Dr as e,
6532
+ tn as f,
6533
+ Ki as g,
6534
+ Hi as h,
6535
+ Wi as i,
6515
6536
  Je as j,
6516
- ct as k,
6517
- j as l,
6518
- la as m,
6519
- Ai as n,
6520
- Ua as o,
6521
- Ve as p,
6522
- Y as q,
6523
- me as r,
6524
- Ui as s,
6525
- ca as t,
6526
- zr as u,
6527
- pi as v,
6528
- fi as w,
6529
- Bi as x,
6530
- qa as y,
6537
+ dt as k,
6538
+ N as l,
6539
+ da as m,
6540
+ Ii as n,
6541
+ Pa as o,
6542
+ Qe as p,
6543
+ X as q,
6544
+ ve as r,
6545
+ Ti as s,
6546
+ fa as t,
6547
+ Mr as u,
6548
+ vi as v,
6549
+ mi as w,
6550
+ Ni as x,
6551
+ Xa as y,
6531
6552
  We as z
6532
6553
  };