@vc-shell/framework 2.0.10 → 2.0.11-pr247.04b969c

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 (48) hide show
  1. package/dist/ai-agent/index.js +2 -2
  2. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-Y09G7Gnw.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-D077_c8I.js} +574 -556
  3. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-Y09G7Gnw.js.map → VcAiAgentPanel.vue_vue_type_style_index_0_lang-D077_c8I.js.map} +1 -1
  4. package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-Cm8Tk8Hp.js → VcTableAdapter.vue_vue_type_style_index_0_lang-DbKOU25C.js} +5238 -5137
  5. package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-DbKOU25C.js.map +1 -0
  6. package/dist/chunks/{index-B78ceaW1.js → index-DELXU1qy.js} +1 -1
  7. package/dist/chunks/{index-B78ceaW1.js.map → index-DELXU1qy.js.map} +1 -1
  8. package/dist/core/blade-navigation/index.d.ts +2 -0
  9. package/dist/core/blade-navigation/index.d.ts.map +1 -1
  10. package/dist/core/blade-navigation/table-query-state/createBladeQueryState.d.ts +20 -0
  11. package/dist/core/blade-navigation/table-query-state/createBladeQueryState.d.ts.map +1 -0
  12. package/dist/core/blade-navigation/table-query-state/index.d.ts +5 -0
  13. package/dist/core/blade-navigation/table-query-state/index.d.ts.map +1 -0
  14. package/dist/core/blade-navigation/table-query-state/serialization.d.ts +12 -0
  15. package/dist/core/blade-navigation/table-query-state/serialization.d.ts.map +1 -0
  16. package/dist/core/blade-navigation/table-query-state/types.d.ts +24 -0
  17. package/dist/core/blade-navigation/table-query-state/types.d.ts.map +1 -0
  18. package/dist/core/blade-navigation/table-query-state/useTableQueryState.d.ts +20 -0
  19. package/dist/core/blade-navigation/table-query-state/useTableQueryState.d.ts.map +1 -0
  20. package/dist/core/blade-navigation/types/index.d.ts +6 -0
  21. package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
  22. package/dist/core/blade-navigation/useBladeStack.d.ts.map +1 -1
  23. package/dist/core/composables/useBlade/index.d.ts +2 -0
  24. package/dist/core/composables/useBlade/index.d.ts.map +1 -1
  25. package/dist/framework.js +709 -700
  26. package/dist/framework.js.map +1 -1
  27. package/dist/index.css +1 -1
  28. package/dist/scripts/check-locales.cjs +0 -0
  29. package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/vc-blade-navigation-new.vue.d.ts.map +1 -1
  30. package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
  31. package/dist/tsconfig.tsbuildinfo +1 -1
  32. package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts.map +1 -1
  33. package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
  34. package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +1 -1
  35. package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts.map +1 -1
  36. package/dist/ui/components/organisms/vc-data-table/composables/useTableSelectionV2.d.ts +6 -0
  37. package/dist/ui/components/organisms/vc-data-table/composables/useTableSelectionV2.d.ts.map +1 -1
  38. package/dist/ui/composables/index.d.ts +1 -0
  39. package/dist/ui/composables/index.d.ts.map +1 -1
  40. package/dist/ui/composables/useDataTablePagination.d.ts +7 -0
  41. package/dist/ui/composables/useDataTablePagination.d.ts.map +1 -1
  42. package/dist/ui/composables/useDataTableSort.d.ts +2 -0
  43. package/dist/ui/composables/useDataTableSort.d.ts.map +1 -1
  44. package/dist/ui/composables/useTableSearch.d.ts +18 -0
  45. package/dist/ui/composables/useTableSearch.d.ts.map +1 -0
  46. package/dist/ui/index.js +29 -28
  47. package/package.json +4 -4
  48. package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-Cm8Tk8Hp.js.map +0 -1
@@ -1,11 +1,11 @@
1
- import { ref as G, computed as d, shallowRef as Be, watch as H, getCurrentInstance as Q, inject as L, isRef as ke, provide as Ce, defineComponent as M, openBlock as S, createElementBlock as j, createElementVNode as R, createCommentVNode as Z, createStaticVNode as Ge, onMounted as oe, normalizeStyle as Y, normalizeClass as K, toDisplayString as pe, markRaw as we, createBlock as X, resolveDynamicComponent as fe, mergeProps as ae, resolveComponent as ce, createVNode as W, unref as se, Transition as Ae, withCtx as Pe, onUnmounted as Fe } from "vue";
2
- import { c as ee } from "./vendor-lodash-es-D2n90GJy.js";
3
- import { u as De } from "./vendor-vueuse-core-CEdpDfzx.js";
4
- import { j as Me } from "./vendor-vueuse-shared-BlCOXw5g.js";
5
- import { L as Le } from "./vendor-lucide-vue-next-CwUrzD6N.js";
6
- const Je = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
7
- function We(i, e) {
8
- if (typeof e == "string" && Je.test(e)) {
1
+ import { ref as G, computed as d, shallowRef as ke, watch as X, getCurrentInstance as re, inject as J, isRef as Ge, provide as Pe, defineComponent as L, openBlock as S, createElementBlock as j, createElementVNode as R, createCommentVNode as Y, createStaticVNode as Fe, onMounted as ce, normalizeStyle as te, normalizeClass as q, toDisplayString as be, markRaw as Oe, createBlock as ee, resolveDynamicComponent as ge, mergeProps as oe, resolveComponent as pe, createVNode as K, unref as le, Transition as Ie, withCtx as Re, onUnmounted as De } from "vue";
2
+ import { c as ne } from "./vendor-lodash-es-D2n90GJy.js";
3
+ import { u as Me } from "./vendor-vueuse-core-CEdpDfzx.js";
4
+ import { j as Le } from "./vendor-vueuse-shared-BlCOXw5g.js";
5
+ import { L as Je } from "./vendor-lucide-vue-next-CwUrzD6N.js";
6
+ const We = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
7
+ function Ve(i, e) {
8
+ if (typeof e == "string" && We.test(e)) {
9
9
  const t = new Date(e);
10
10
  if (!isNaN(t.getTime()))
11
11
  return t;
@@ -19,7 +19,7 @@ class k {
19
19
  * Subclasses use this when parsing API responses.
20
20
  * The dateReviver function is defined in File.Header.liquid template.
21
21
  */
22
- jsonParseReviver = We;
22
+ jsonParseReviver = Ve;
23
23
  constructor() {
24
24
  }
25
25
  // Enforce always return empty string as baseUrl
@@ -33,7 +33,7 @@ class k {
33
33
  return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
34
34
  }
35
35
  }
36
- class Ve extends k {
36
+ class Ke extends k {
37
37
  http;
38
38
  baseUrl;
39
39
  constructor(e, t) {
@@ -140,7 +140,7 @@ class Ve extends k {
140
140
  }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
141
141
  }
142
142
  }
143
- class dr extends k {
143
+ class fr extends k {
144
144
  http;
145
145
  baseUrl;
146
146
  constructor(e, t) {
@@ -209,7 +209,7 @@ class dr extends k {
209
209
  }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
210
210
  }
211
211
  }
212
- class fr extends k {
212
+ class pr extends k {
213
213
  http;
214
214
  baseUrl;
215
215
  constructor(e, t) {
@@ -239,7 +239,7 @@ class fr extends k {
239
239
  }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
240
240
  }
241
241
  }
242
- class pr extends k {
242
+ class mr extends k {
243
243
  http;
244
244
  baseUrl;
245
245
  constructor(e, t) {
@@ -381,7 +381,7 @@ class pr extends k {
381
381
  }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
382
382
  }
383
383
  }
384
- class mr extends k {
384
+ class vr extends k {
385
385
  http;
386
386
  baseUrl;
387
387
  constructor(e, t) {
@@ -582,7 +582,7 @@ class mr extends k {
582
582
  }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
583
583
  }
584
584
  }
585
- class vr extends k {
585
+ class gr extends k {
586
586
  http;
587
587
  baseUrl;
588
588
  constructor(e, t) {
@@ -611,7 +611,7 @@ class vr extends k {
611
611
  }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
612
612
  }
613
613
  }
614
- class gr extends k {
614
+ class br extends k {
615
615
  http;
616
616
  baseUrl;
617
617
  constructor(e, t) {
@@ -663,7 +663,7 @@ class gr extends k {
663
663
  }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
664
664
  }
665
665
  }
666
- class br extends k {
666
+ class xr extends k {
667
667
  http;
668
668
  baseUrl;
669
669
  constructor(e, t) {
@@ -938,7 +938,7 @@ class br extends k {
938
938
  }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
939
939
  }
940
940
  }
941
- class xr extends k {
941
+ class Er extends k {
942
942
  http;
943
943
  baseUrl;
944
944
  constructor(e, t) {
@@ -971,7 +971,7 @@ class xr extends k {
971
971
  }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
972
972
  }
973
973
  }
974
- class Er extends k {
974
+ class yr extends k {
975
975
  http;
976
976
  baseUrl;
977
977
  constructor(e, t) {
@@ -1075,7 +1075,7 @@ class Er extends k {
1075
1075
  }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1076
1076
  }
1077
1077
  }
1078
- class yr extends k {
1078
+ class _r extends k {
1079
1079
  http;
1080
1080
  baseUrl;
1081
1081
  constructor(e, t) {
@@ -1531,7 +1531,7 @@ class yr extends k {
1531
1531
  }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1532
1532
  }
1533
1533
  }
1534
- class _r extends k {
1534
+ class Ur extends k {
1535
1535
  http;
1536
1536
  baseUrl;
1537
1537
  constructor(e, t) {
@@ -1633,7 +1633,7 @@ class _r extends k {
1633
1633
  }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1634
1634
  }
1635
1635
  }
1636
- class Ur extends k {
1636
+ class Tr extends k {
1637
1637
  http;
1638
1638
  baseUrl;
1639
1639
  constructor(e, t) {
@@ -1689,7 +1689,7 @@ class Ur extends k {
1689
1689
  }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1690
1690
  }
1691
1691
  }
1692
- class Ke extends k {
1692
+ class qe extends k {
1693
1693
  http;
1694
1694
  baseUrl;
1695
1695
  constructor(e, t) {
@@ -2826,7 +2826,7 @@ class Ke extends k {
2826
2826
  }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2827
2827
  }
2828
2828
  }
2829
- class Tr extends k {
2829
+ class Cr extends k {
2830
2830
  http;
2831
2831
  baseUrl;
2832
2832
  constructor(e, t) {
@@ -3223,8 +3223,8 @@ class Sr extends k {
3223
3223
  }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3224
3224
  }
3225
3225
  }
3226
- var qe = /* @__PURE__ */ ((i) => (i.AppMenu = "AppMenu", i.MainMenu = "MainMenu", i.Hidden = "Hidden", i))(qe || {}), He = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.Html = "Html", i.Image = "Image", i))(He || {}), Ze = /* @__PURE__ */ ((i) => (i.Detached = "Detached", i.Unchanged = "Unchanged", i.Added = "Added", i.Deleted = "Deleted", i.Modified = "Modified", i))(Ze || {}), Xe = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.Object = "Object", i.Array = "Array", i.String = "String", i.Number = "Number", i.True = "True", i.False = "False", i.Null = "Null", i))(Xe || {}), Ye = /* @__PURE__ */ ((i) => (i.Info = "Info", i.Warning = "Warning", i.Debug = "Debug", i.Error = "Error", i))(Ye || {}), Qe = /* @__PURE__ */ ((i) => (i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.SecureString = "SecureString", i.Json = "Json", i.PositiveInteger = "PositiveInteger", i))(Qe || {}), et = /* @__PURE__ */ ((i) => (i.Ascending = "Ascending", i.Descending = "Descending", i))(et || {});
3227
- class tt extends Error {
3226
+ var He = /* @__PURE__ */ ((i) => (i.AppMenu = "AppMenu", i.MainMenu = "MainMenu", i.Hidden = "Hidden", i))(He || {}), Ze = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.Html = "Html", i.Image = "Image", i))(Ze || {}), Xe = /* @__PURE__ */ ((i) => (i.Detached = "Detached", i.Unchanged = "Unchanged", i.Added = "Added", i.Deleted = "Deleted", i.Modified = "Modified", i))(Xe || {}), Ye = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.Object = "Object", i.Array = "Array", i.String = "String", i.Number = "Number", i.True = "True", i.False = "False", i.Null = "Null", i))(Ye || {}), Qe = /* @__PURE__ */ ((i) => (i.Info = "Info", i.Warning = "Warning", i.Debug = "Debug", i.Error = "Error", i))(Qe || {}), et = /* @__PURE__ */ ((i) => (i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.SecureString = "SecureString", i.Json = "Json", i.PositiveInteger = "PositiveInteger", i))(et || {}), tt = /* @__PURE__ */ ((i) => (i.Ascending = "Ascending", i.Descending = "Descending", i))(tt || {});
3227
+ class rt extends Error {
3228
3228
  message;
3229
3229
  status;
3230
3230
  response;
@@ -3239,21 +3239,21 @@ class tt extends Error {
3239
3239
  }
3240
3240
  }
3241
3241
  function s(i, e, t, n, r) {
3242
- throw r ?? new tt(i, e, t, n, null);
3242
+ throw r ?? new rt(i, e, t, n, null);
3243
3243
  }
3244
- const xe = {
3244
+ const _e = {
3245
3245
  debug: 0,
3246
3246
  info: 1,
3247
3247
  warn: 2,
3248
3248
  error: 3,
3249
3249
  none: 4
3250
- }, rt = {
3250
+ }, nt = {
3251
3251
  level: "warn",
3252
3252
  prefix: "@vc-shell/framework",
3253
3253
  enabled: !0
3254
3254
  };
3255
- function $(i) {
3256
- const e = { ...rt }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? xe[r] >= xe[e.level] : !1;
3255
+ function B(i) {
3256
+ const e = { ...nt }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? _e[r] >= _e[e.level] : !1;
3257
3257
  return {
3258
3258
  /**
3259
3259
  * Log debug messages (only in development)
@@ -3282,7 +3282,7 @@ function $(i) {
3282
3282
  /**
3283
3283
  * Create a child logger with additional context
3284
3284
  */
3285
- child: (r) => $(i ? `${i}:${r}` : r),
3285
+ child: (r) => B(i ? `${i}:${r}` : r),
3286
3286
  /**
3287
3287
  * Set the log level for this logger instance
3288
3288
  */
@@ -3297,16 +3297,16 @@ function $(i) {
3297
3297
  }
3298
3298
  };
3299
3299
  }
3300
- const Cr = $(), wr = {
3301
- core: $("core"),
3302
- ui: $("ui"),
3303
- shared: $("shared"),
3304
- plugins: $("plugins"),
3305
- services: $("services"),
3306
- composables: $("composables")
3307
- }, he = $("use-external-provider"), nt = "externalSignIn", at = () => {
3308
- const i = new Ve(), e = De(
3309
- nt,
3300
+ const wr = B(), Ar = {
3301
+ core: B("core"),
3302
+ ui: B("ui"),
3303
+ shared: B("shared"),
3304
+ plugins: B("plugins"),
3305
+ services: B("services"),
3306
+ composables: B("composables")
3307
+ }, me = B("use-external-provider"), at = "externalSignIn", st = () => {
3308
+ const i = new Ke(), e = Me(
3309
+ at,
3310
3310
  {},
3311
3311
  {
3312
3312
  listenToStorageChanges: !0,
@@ -3325,7 +3325,7 @@ const Cr = $(), wr = {
3325
3325
  const p = new URL("/externalsignin", l);
3326
3326
  p.searchParams.set("authenticationType", o), p.searchParams.set("returnUrl", c), e.value = { providerType: o }, window.location.assign(p);
3327
3327
  } catch (l) {
3328
- throw he.error("External sign-in failed:", l), l;
3328
+ throw me.error("External sign-in failed:", l), l;
3329
3329
  }
3330
3330
  }
3331
3331
  async function r(o) {
@@ -3333,7 +3333,7 @@ const Cr = $(), wr = {
3333
3333
  const l = window.location.origin, c = window.location.pathname ?? "/", p = new URL("/externalsignin/signout", l);
3334
3334
  p.searchParams.set("authenticationType", o), p.searchParams.set("returnUrl", c), e.value = {}, window.location.assign(p);
3335
3335
  } catch (l) {
3336
- throw he.error("External sign-out failed:", l), l;
3336
+ throw me.error("External sign-out failed:", l), l;
3337
3337
  }
3338
3338
  }
3339
3339
  async function a() {
@@ -3341,7 +3341,7 @@ const Cr = $(), wr = {
3341
3341
  try {
3342
3342
  o = await i.getExternalLoginProviders();
3343
3343
  } catch (l) {
3344
- he.error("Failed to get external login providers:", l);
3344
+ me.error("Failed to get external login providers:", l);
3345
3345
  }
3346
3346
  return o;
3347
3347
  }
@@ -3351,32 +3351,32 @@ const Cr = $(), wr = {
3351
3351
  signOut: r,
3352
3352
  getProviders: a
3353
3353
  };
3354
- }, me = "vc_auth_data", C = $("use-user");
3355
- function st() {
3354
+ }, xe = "vc_auth_data", w = B("use-user");
3355
+ function it() {
3356
3356
  try {
3357
- const i = localStorage.getItem(me);
3357
+ const i = localStorage.getItem(xe);
3358
3358
  if (i)
3359
3359
  return JSON.parse(i);
3360
3360
  } catch (i) {
3361
- C.error("Failed to read auth data from storage:", i);
3361
+ w.error("Failed to read auth data from storage:", i);
3362
3362
  }
3363
3363
  return null;
3364
3364
  }
3365
- function Ee(i) {
3365
+ function Ue(i) {
3366
3366
  try {
3367
- C.debug("storeAuthData - Saving:", i), localStorage.setItem(me, JSON.stringify(i)), C.debug("storeAuthData - Saved successfully");
3367
+ w.debug("storeAuthData - Saving:", i), localStorage.setItem(xe, JSON.stringify(i)), w.debug("storeAuthData - Saved successfully");
3368
3368
  } catch (e) {
3369
- C.error("Failed to store auth data:", e);
3369
+ w.error("Failed to store auth data:", e);
3370
3370
  }
3371
3371
  }
3372
- function it() {
3372
+ function ot() {
3373
3373
  try {
3374
- localStorage.removeItem(me);
3374
+ localStorage.removeItem(xe);
3375
3375
  } catch (i) {
3376
- C.error("Failed to clear auth data:", i);
3376
+ w.error("Failed to clear auth data:", i);
3377
3377
  }
3378
3378
  }
3379
- async function ye(i) {
3379
+ async function Te(i) {
3380
3380
  try {
3381
3381
  const e = new URLSearchParams(i).toString(), t = await fetch("/connect/token", {
3382
3382
  method: "POST",
@@ -3387,13 +3387,13 @@ async function ye(i) {
3387
3387
  });
3388
3388
  if (!t.ok) {
3389
3389
  const c = await t.text();
3390
- return C.error("fetchToken - HTTP error:", t.status, t.statusText, c), null;
3390
+ return w.error("fetchToken - HTTP error:", t.status, t.statusText, c), null;
3391
3391
  }
3392
3392
  const n = await t.json();
3393
- C.debug("fetchToken - Response:", n);
3393
+ w.debug("fetchToken - Response:", n);
3394
3394
  const r = n.access_token, a = n.refresh_token, o = n.expires_in;
3395
3395
  if (n.error || !r)
3396
- return C.error("fetchToken - Error:", n.error_description || n.error || "No access token"), null;
3396
+ return w.error("fetchToken - Error:", n.error_description || n.error || "No access token"), null;
3397
3397
  const l = o ? Date.now() + o * 1e3 : null;
3398
3398
  return {
3399
3399
  token: r,
@@ -3402,139 +3402,139 @@ async function ye(i) {
3402
3402
  expires_at: l
3403
3403
  };
3404
3404
  } catch (e) {
3405
- return C.error("fetchToken - Exception:", e), null;
3405
+ return w.error("fetchToken - Exception:", e), null;
3406
3406
  }
3407
3407
  }
3408
- function ot() {
3409
- const i = G(!1), e = G(), t = G(null), { storage: n, signOut: r } = at(), a = new Ke(), o = d(() => e.value?.userName != null);
3410
- async function l(m, T) {
3411
- let U = !1;
3408
+ function lt() {
3409
+ const i = G(!1), e = G(), t = G(null), { storage: n, signOut: r } = st(), a = new qe(), o = d(() => e.value?.userName != null);
3410
+ async function l(m, C) {
3411
+ let T = !1;
3412
3412
  try {
3413
- i.value = !0, U = await a.validatePasswordResetToken(m, {
3414
- token: T
3413
+ i.value = !0, T = await a.validatePasswordResetToken(m, {
3414
+ token: C
3415
3415
  });
3416
3416
  } catch {
3417
3417
  } finally {
3418
3418
  i.value = !1;
3419
3419
  }
3420
- return U;
3420
+ return T;
3421
3421
  }
3422
3422
  async function c(m) {
3423
3423
  return a.validatePassword(m);
3424
3424
  }
3425
- async function p(m, T, U) {
3425
+ async function p(m, C, T) {
3426
3426
  return a.resetPasswordByToken(m, {
3427
- newPassword: T,
3428
- token: U
3427
+ newPassword: C,
3428
+ token: T
3429
3429
  });
3430
3430
  }
3431
- async function g(m, T) {
3432
- C.debug("signIn - Entry point");
3431
+ async function g(m, C) {
3432
+ w.debug("signIn - Entry point");
3433
3433
  try {
3434
3434
  i.value = !0;
3435
- const U = await a.login({ userName: m, password: T });
3436
- if (C.debug("signIn - Cookie login completed:", U), !U.succeeded)
3437
- return U;
3438
- C.debug("signIn - Requesting token...");
3439
- const A = await ye({
3435
+ const T = await a.login({ userName: m, password: C });
3436
+ if (w.debug("signIn - Cookie login completed:", T), !T.succeeded)
3437
+ return T;
3438
+ w.debug("signIn - Requesting token...");
3439
+ const P = await Te({
3440
3440
  grant_type: "password",
3441
3441
  username: m,
3442
- password: T,
3442
+ password: C,
3443
3443
  scope: "offline_access"
3444
3444
  });
3445
- A && (t.value = A, Ee(t.value), C.debug("signIn - Token saved:", t.value));
3445
+ P && (t.value = P, Ue(t.value), w.debug("signIn - Token saved:", t.value));
3446
3446
  const F = await a.getCurrentUser();
3447
3447
  if (F)
3448
- return e.value = F, U;
3448
+ return e.value = F, T;
3449
3449
  throw { succeeded: !1 };
3450
- } catch (U) {
3451
- C.error("signIn failed:", U);
3452
- let A = U.message;
3453
- if (U.response)
3450
+ } catch (T) {
3451
+ w.error("signIn failed:", T);
3452
+ let P = T.message;
3453
+ if (T.response)
3454
3454
  try {
3455
- const F = JSON.parse(U.response);
3456
- A = F.errorDescription || F.errors?.[0]?.description || F.error || A;
3455
+ const F = JSON.parse(T.response);
3456
+ P = F.errorDescription || F.errors?.[0]?.description || F.error || P;
3457
3457
  } catch {
3458
3458
  }
3459
- return { succeeded: !1, error: A, status: U.status };
3459
+ return { succeeded: !1, error: P, status: T.status };
3460
3460
  } finally {
3461
3461
  i.value = !1;
3462
3462
  }
3463
3463
  }
3464
3464
  async function h() {
3465
- C.debug("signOut - Entry point"), e.value = void 0, it(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : a.logout();
3465
+ w.debug("signOut - Entry point"), e.value = void 0, ot(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : a.logout();
3466
3466
  }
3467
- let y = null;
3468
- async function w() {
3469
- return y || (y = (async () => {
3470
- C.debug("loadUser - Entry point");
3467
+ let _ = null;
3468
+ async function A() {
3469
+ return _ || (_ = (async () => {
3470
+ w.debug("loadUser - Entry point");
3471
3471
  try {
3472
3472
  i.value = !0, performance.mark("vc:auth-start");
3473
3473
  const [m] = await Promise.all([a.getCurrentUser(), b()]);
3474
- e.value = m, performance.mark("vc:auth-done"), C.debug("User details loaded:", e.value);
3474
+ e.value = m, performance.mark("vc:auth-done"), w.debug("User details loaded:", e.value);
3475
3475
  } catch (m) {
3476
- C.error("loadUser failed:", m);
3476
+ w.error("loadUser failed:", m);
3477
3477
  } finally {
3478
- i.value = !1, y = null;
3478
+ i.value = !1, _ = null;
3479
3479
  }
3480
3480
  return { ...e.value };
3481
- })(), y);
3481
+ })(), _);
3482
3482
  }
3483
- async function x(m) {
3483
+ async function E(m) {
3484
3484
  try {
3485
3485
  return i.value = !0, await a.requestPasswordReset(m), { succeeded: !0 };
3486
- } catch (T) {
3487
- return { succeeded: !1, error: T };
3486
+ } catch (C) {
3487
+ return { succeeded: !1, error: C };
3488
3488
  } finally {
3489
3489
  i.value = !1;
3490
3490
  }
3491
3491
  }
3492
- async function O(m, T) {
3493
- let U;
3492
+ async function O(m, C) {
3493
+ let T;
3494
3494
  try {
3495
3495
  i.value = !0;
3496
- const A = {
3496
+ const P = {
3497
3497
  oldPassword: m,
3498
- newPassword: T
3498
+ newPassword: C
3499
3499
  };
3500
- U = await a.changeCurrentUserPassword(A);
3501
- } catch (A) {
3502
- return { succeeded: !1, errors: [A.message] };
3500
+ T = await a.changeCurrentUserPassword(P);
3501
+ } catch (P) {
3502
+ return { succeeded: !1, errors: [P.message] };
3503
3503
  } finally {
3504
3504
  i.value = !1;
3505
3505
  }
3506
- return U;
3506
+ return T;
3507
3507
  }
3508
- async function N() {
3508
+ async function z() {
3509
3509
  let m = null;
3510
3510
  try {
3511
3511
  m = await a.getLoginTypes();
3512
- } catch (T) {
3513
- throw C.error("getLoginType failed:", T), T;
3512
+ } catch (C) {
3513
+ throw w.error("getLoginType failed:", C), C;
3514
3514
  }
3515
3515
  return m;
3516
3516
  }
3517
3517
  const D = 60 * 1e3;
3518
3518
  async function b() {
3519
- if (C.debug("getAccessToken - Entry point"), t.value || (t.value = st()), !t.value)
3520
- return C.debug("getAccessToken - No auth data available"), null;
3521
- const m = Date.now(), T = t.value.expires_at, U = T ? m >= T - D : !1;
3522
- if (C.debug("getAccessToken - Token status:", {
3519
+ if (w.debug("getAccessToken - Entry point"), t.value || (t.value = it()), !t.value)
3520
+ return w.debug("getAccessToken - No auth data available"), null;
3521
+ const m = Date.now(), C = t.value.expires_at, T = C ? m >= C - D : !1;
3522
+ if (w.debug("getAccessToken - Token status:", {
3523
3523
  hasToken: !!t.value.access_token,
3524
- expiresAt: T ? new Date(T).toISOString() : "not set",
3524
+ expiresAt: C ? new Date(C).toISOString() : "not set",
3525
3525
  now: new Date(m).toISOString(),
3526
- shouldRefresh: U,
3526
+ shouldRefresh: T,
3527
3527
  hasRefreshToken: !!t.value.refresh_token
3528
- }), U && t.value.refresh_token) {
3529
- C.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
3530
- const A = await ye({
3528
+ }), T && t.value.refresh_token) {
3529
+ w.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
3530
+ const P = await Te({
3531
3531
  grant_type: "refresh_token",
3532
3532
  refresh_token: t.value.refresh_token,
3533
3533
  scope: "offline_access"
3534
3534
  });
3535
- A ? (A.refresh_token = A.refresh_token ?? t.value.refresh_token, t.value = A, Ee(t.value), C.debug("getAccessToken - Token refreshed successfully, new expiry:", {
3536
- expiresAt: A.expires_at ? new Date(A.expires_at).toISOString() : "not set"
3537
- })) : C.warn("getAccessToken - Failed to refresh token, returning existing token");
3535
+ P ? (P.refresh_token = P.refresh_token ?? t.value.refresh_token, t.value = P, Ue(t.value), w.debug("getAccessToken - Token refreshed successfully, new expiry:", {
3536
+ expiresAt: P.expires_at ? new Date(P.expires_at).toISOString() : "not set"
3537
+ })) : w.warn("getAccessToken - Failed to refresh token, returning existing token");
3538
3538
  }
3539
3539
  return t.value?.access_token ?? t.value?.token ?? null;
3540
3540
  }
@@ -3543,20 +3543,20 @@ function ot() {
3543
3543
  loading: d(() => i.value),
3544
3544
  isAdministrator: d(() => e.value?.isAdministrator),
3545
3545
  isAuthenticated: o,
3546
- loadUser: w,
3546
+ loadUser: A,
3547
3547
  signIn: g,
3548
3548
  signOut: h,
3549
3549
  validateToken: l,
3550
3550
  validatePassword: c,
3551
3551
  resetPasswordByToken: p,
3552
- requestPasswordReset: x,
3552
+ requestPasswordReset: E,
3553
3553
  changeUserPassword: O,
3554
- getLoginType: N,
3554
+ getLoginType: z,
3555
3555
  getAccessToken: b
3556
3556
  };
3557
3557
  }
3558
- const lt = Me(ot), ut = () => {
3559
- const i = lt();
3558
+ const ut = Le(lt), ct = () => {
3559
+ const i = ut();
3560
3560
  return {
3561
3561
  user: i.user,
3562
3562
  loading: i.loading,
@@ -3566,26 +3566,26 @@ const lt = Me(ot), ut = () => {
3566
3566
  signOut: i.signOut,
3567
3567
  getAccessToken: i.getAccessToken
3568
3568
  };
3569
- }, Oe = Symbol("BladeStack"), ct = Symbol("BladeMessaging"), ht = Symbol("BladeDescriptor"), Ar = Symbol("BladeMaximized"), dt = Symbol("BladeData"), ft = Symbol("BladeBanners"), Pr = Symbol("BladeBackButton"), Or = Symbol("NotificationStore"), Ir = Symbol("WidgetService"), Rr = Symbol("DashboardService"), jr = Symbol("MenuService"), $r = Symbol("SettingsMenuService"), Nr = Symbol("AppBarWidgetService"), zr = Symbol("AppBarMobileButtonsService"), pt = Symbol("LanguageService"), mt = Symbol("ToolbarService"), Br = Symbol("DynamicModules"), kr = Symbol("ModulesReady"), Gr = Symbol("ModulesLoadError"), Fr = Symbol("AppRootElement"), vt = Symbol("EmbeddedMode"), Dr = Symbol("ShellIndicators"), ve = Symbol("AiAgentService"), Mr = Symbol("IsMobile"), Lr = Symbol("IsDesktop"), Jr = Symbol("IsPhone"), Wr = Symbol("IsTablet"), Vr = Symbol("IsTouch"), Kr = Symbol("BladeRoutes"), qr = Symbol("InternalRoutes"), Hr = Symbol("CloseSettingsMenu"), Zr = Symbol("BladeContext"), Xr = Symbol("WidgetScope"), Yr = Symbol("BladeForm"), Qr = Symbol("BladeLoading"), gt = {
3569
+ }, je = Symbol("BladeStack"), ht = Symbol("BladeMessaging"), dt = Symbol("BladeDescriptor"), Pr = Symbol("BladeMaximized"), ft = Symbol("BladeData"), pt = Symbol("BladeBanners"), Or = Symbol("BladeBackButton"), Ir = Symbol("NotificationStore"), Rr = Symbol("WidgetService"), jr = Symbol("DashboardService"), $r = Symbol("MenuService"), Nr = Symbol("SettingsMenuService"), zr = Symbol("AppBarWidgetService"), Br = Symbol("AppBarMobileButtonsService"), mt = Symbol("LanguageService"), vt = Symbol("ToolbarService"), kr = Symbol("DynamicModules"), Gr = Symbol("ModulesReady"), Fr = Symbol("ModulesLoadError"), Dr = Symbol("AppRootElement"), gt = Symbol("EmbeddedMode"), Mr = Symbol("ShellIndicators"), Ee = Symbol("AiAgentService"), Lr = Symbol("IsMobile"), Jr = Symbol("IsDesktop"), Wr = Symbol("IsPhone"), Vr = Symbol("IsTablet"), Kr = Symbol("IsTouch"), qr = Symbol("BladeRoutes"), Hr = Symbol("InternalRoutes"), Zr = Symbol("CloseSettingsMenu"), Xr = Symbol("BladeContext"), Yr = Symbol("WidgetScope"), Qr = Symbol("BladeForm"), en = Symbol("BladeLoading"), bt = {
3570
3570
  url: "",
3571
3571
  title: "Virto OZ",
3572
3572
  width: 362,
3573
3573
  expandedWidth: 500,
3574
3574
  allowedOrigins: ["*"]
3575
- }, en = "APP_AI_AGENT_URL", tn = {
3575
+ }, tn = "APP_AI_AGENT_URL", rn = {
3576
3576
  EMBEDDED_APP_READY: "EMBEDDED_APP_READY",
3577
3577
  AI_TOGGLE_PANEL: "AI_TOGGLE_PANEL",
3578
3578
  AI_CONTEXT_UPDATE: "AI_CONTEXT_UPDATE",
3579
3579
  AI_CONTEXT_CLEAR: "AI_CONTEXT_CLEAR"
3580
- }, rn = {
3580
+ }, nn = {
3581
3581
  EMBEDDED_HOST_READY: "EMBEDDED_HOST_READY",
3582
3582
  AI_CHAT_MESSAGE: "AI_CHAT_MESSAGE"
3583
- }, bt = "ai-agent-toggle", xt = "lucide-sparkles", Et = "AI Assistant", te = $("ai-agent-panel");
3584
- function yt() {
3583
+ }, xt = "ai-agent-toggle", Et = "lucide-sparkles", yt = "AI Assistant", ae = B("ai-agent-panel");
3584
+ function _t() {
3585
3585
  const i = G("closed"), e = G(!1), t = d(() => i.value !== "closed"), n = d(() => i.value === "expanded"), r = () => {
3586
- i.value === "closed" && (i.value = "open", te.debug("Panel opened"));
3586
+ i.value === "closed" && (i.value = "open", ae.debug("Panel opened"));
3587
3587
  }, a = () => {
3588
- i.value = "closed", e.value = !1, te.debug("Panel closed, reset initialized state");
3588
+ i.value = "closed", e.value = !1, ae.debug("Panel closed, reset initialized state");
3589
3589
  };
3590
3590
  return {
3591
3591
  panelState: i,
@@ -3598,18 +3598,18 @@ function yt() {
3598
3598
  i.value === "closed" ? r() : a();
3599
3599
  },
3600
3600
  expand: () => {
3601
- i.value === "open" && (i.value = "expanded", te.debug("Panel expanded"));
3601
+ i.value === "open" && (i.value = "expanded", ae.debug("Panel expanded"));
3602
3602
  },
3603
3603
  collapse: () => {
3604
- i.value === "expanded" && (i.value = "open", te.debug("Panel collapsed"));
3604
+ i.value === "expanded" && (i.value = "open", ae.debug("Panel collapsed"));
3605
3605
  },
3606
3606
  resetInitialized: () => {
3607
3607
  e.value = !1;
3608
3608
  }
3609
3609
  };
3610
3610
  }
3611
- const de = $("ai-agent-context");
3612
- function _e(i) {
3611
+ const ve = B("ai-agent-context");
3612
+ function Ce(i) {
3613
3613
  return i ? {
3614
3614
  id: i.id,
3615
3615
  name: i.name,
@@ -3617,10 +3617,10 @@ function _e(i) {
3617
3617
  param: i.param
3618
3618
  } : { id: "unknown", name: "unknown", title: "Unknown" };
3619
3619
  }
3620
- function _t(i) {
3620
+ function Ut(i) {
3621
3621
  const { userGetter: e, bladeGetter: t, localeGetter: n, tokenGetter: r } = i, a = G(/* @__PURE__ */ new Map()), o = () => {
3622
- const x = t();
3623
- return x ? a.value.get(x.id) ?? {
3622
+ const E = t();
3623
+ return E ? a.value.get(E.id) ?? {
3624
3624
  items: [],
3625
3625
  type: "list",
3626
3626
  suggestions: void 0
@@ -3635,70 +3635,70 @@ function _t(i) {
3635
3635
  contextType: c,
3636
3636
  contextSuggestions: p,
3637
3637
  totalItemsCount: g,
3638
- setContextData: (x, O, N, D) => {
3638
+ setContextData: (E, O, z, D) => {
3639
3639
  const b = t()?.id || D;
3640
- return b ? x.length === 0 && !N ? (a.value.delete(b), de.debug(`Context cleared for blade: ${b}`), { cleared: !0 }) : (a.value.set(b, { items: x, type: O, suggestions: N }), de.debug(`Context set for blade: ${b}, items: ${x.length}, type: ${O}`), { cleared: !1 }) : (de.warn("Cannot set context data: no blade id available"), { cleared: !1 });
3640
+ return b ? E.length === 0 && !z ? (a.value.delete(b), ve.debug(`Context cleared for blade: ${b}`), { cleared: !0 }) : (a.value.set(b, { items: E, type: O, suggestions: z }), ve.debug(`Context set for blade: ${b}, items: ${E.length}, type: ${O}`), { cleared: !1 }) : (ve.warn("Cannot set context data: no blade id available"), { cleared: !1 });
3641
3641
  },
3642
3642
  buildInitPayload: async () => {
3643
- const x = r ? await r() ?? void 0 : void 0;
3643
+ const E = r ? await r() ?? void 0 : void 0;
3644
3644
  return {
3645
3645
  userId: e()?.id || "",
3646
3646
  locale: n(),
3647
- blade: _e(t()),
3647
+ blade: Ce(t()),
3648
3648
  contextType: c.value,
3649
- items: ee(l.value),
3650
- suggestions: p.value ? ee(p.value) : void 0,
3651
- accessToken: x
3649
+ items: ne(l.value),
3650
+ suggestions: p.value ? ne(p.value) : void 0,
3651
+ accessToken: E
3652
3652
  };
3653
3653
  },
3654
3654
  buildUpdatePayload: async () => {
3655
- const x = r ? await r() ?? void 0 : void 0;
3655
+ const E = r ? await r() ?? void 0 : void 0;
3656
3656
  return {
3657
- blade: _e(t()),
3657
+ blade: Ce(t()),
3658
3658
  contextType: c.value,
3659
- items: ee(l.value),
3660
- suggestions: p.value ? ee(p.value) : void 0,
3659
+ items: ne(l.value),
3660
+ suggestions: p.value ? ne(p.value) : void 0,
3661
3661
  locale: n(),
3662
- accessToken: x
3662
+ accessToken: E
3663
3663
  };
3664
3664
  }
3665
3665
  };
3666
3666
  }
3667
- const J = $("ai-agent-transport");
3668
- function Ut(i) {
3669
- const { getConfig: e, isEmbedded: t, navigateToBlade: n } = i, r = Be(null), a = G(!1), o = G(!1), l = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
3670
- function p(h, y) {
3667
+ const V = B("ai-agent-transport");
3668
+ function Tt(i) {
3669
+ const { getConfig: e, isEmbedded: t, navigateToBlade: n } = i, r = ke(null), a = G(!1), o = G(!1), l = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
3670
+ function p(h, _) {
3671
3671
  switch (h) {
3672
3672
  case "NAVIGATE_TO_APP": {
3673
- const x = y;
3674
- n && x?.bladeName && (n(x.bladeName, x.param, x.options), J.debug(`Navigation requested to: ${x.bladeName}`));
3673
+ const E = _;
3674
+ n && E?.bladeName && (n(E.bladeName, E.param, E.options), V.debug(`Navigation requested to: ${E.bladeName}`));
3675
3675
  break;
3676
3676
  }
3677
3677
  }
3678
- const w = {
3678
+ const A = {
3679
3679
  type: h,
3680
- payload: y,
3680
+ payload: _,
3681
3681
  timestamp: Date.now()
3682
3682
  };
3683
- l.forEach((x) => {
3683
+ l.forEach((E) => {
3684
3684
  try {
3685
- x(w);
3685
+ E(A);
3686
3686
  } catch (O) {
3687
- J.error("Handler error:", O);
3687
+ V.error("Handler error:", O);
3688
3688
  }
3689
3689
  });
3690
3690
  }
3691
3691
  function g(h) {
3692
- const w = e().allowedOrigins || ["*"];
3693
- if (!w.includes("*") && !w.includes(h.origin))
3692
+ const A = e().allowedOrigins || ["*"];
3693
+ if (!A.includes("*") && !A.includes(h.origin))
3694
3694
  return;
3695
- const x = h.data;
3696
- if (!(!x?.type || typeof x.type != "string"))
3697
- switch (J.debug(`Message received: ${x.type}`), x.type) {
3695
+ const E = h.data;
3696
+ if (!(!E?.type || typeof E.type != "string"))
3697
+ switch (V.debug(`Message received: ${E.type}`), E.type) {
3698
3698
  // Embedded: parent forwards chat messages wrapped in AI_CHAT_MESSAGE
3699
3699
  case "AI_CHAT_MESSAGE": {
3700
3700
  if (t) {
3701
- const O = x.payload;
3701
+ const O = E.payload;
3702
3702
  O?.type && p(O.type, O.payload);
3703
3703
  }
3704
3704
  return;
@@ -3708,14 +3708,14 @@ function Ut(i) {
3708
3708
  c.forEach((O) => {
3709
3709
  try {
3710
3710
  O();
3711
- } catch (N) {
3712
- J.error("ChatReady handler error:", N);
3711
+ } catch (z) {
3712
+ V.error("ChatReady handler error:", z);
3713
3713
  }
3714
3714
  });
3715
3715
  break;
3716
3716
  // Normal: direct chat protocol messages
3717
3717
  default:
3718
- p(x.type, x.payload);
3718
+ p(E.type, E.payload);
3719
3719
  break;
3720
3720
  }
3721
3721
  }
@@ -3724,22 +3724,22 @@ function Ut(i) {
3724
3724
  pendingInitContext: a,
3725
3725
  isListenerRegistered: o,
3726
3726
  setIframeRef(h) {
3727
- r.value = h, J.debug("Iframe ref set:", h ? "available" : "null");
3727
+ r.value = h, V.debug("Iframe ref set:", h ? "available" : "null");
3728
3728
  },
3729
3729
  sendToIframe(h) {
3730
3730
  if (!r.value?.contentWindow) {
3731
- J.warn("Cannot send message: iframe not available");
3731
+ V.warn("Cannot send message: iframe not available");
3732
3732
  return;
3733
3733
  }
3734
- const w = e().allowedOrigins?.[0] || "*";
3735
- r.value.contentWindow.postMessage(h, w), J.debug(`Sent to iframe: ${h.type}`);
3734
+ const A = e().allowedOrigins?.[0] || "*";
3735
+ r.value.contentWindow.postMessage(h, A), V.debug(`Sent to iframe: ${h.type}`);
3736
3736
  },
3737
3737
  sendToParent(h) {
3738
3738
  if (!window.parent || window.parent === window) {
3739
- J.warn("Cannot send to parent: not in iframe");
3739
+ V.warn("Cannot send to parent: not in iframe");
3740
3740
  return;
3741
3741
  }
3742
- window.parent.postMessage(h, "*"), J.debug(`Sent to parent: ${h.type}`);
3742
+ window.parent.postMessage(h, "*"), V.debug(`Sent to parent: ${h.type}`);
3743
3743
  },
3744
3744
  startListening() {
3745
3745
  o.value || (window.addEventListener("message", g), o.value = !0);
@@ -3759,8 +3759,8 @@ function Ut(i) {
3759
3759
  }
3760
3760
  };
3761
3761
  }
3762
- const re = $("ai-agent-service");
3763
- function Tt(i) {
3762
+ const se = B("ai-agent-service");
3763
+ function Ct(i) {
3764
3764
  const {
3765
3765
  userGetter: e,
3766
3766
  bladeGetter: t,
@@ -3769,32 +3769,32 @@ function Tt(i) {
3769
3769
  navigateToBlade: a,
3770
3770
  initialConfig: o,
3771
3771
  isEmbedded: l = !1
3772
- } = i, c = G({ ...gt, ...o }), p = yt(), g = _t({
3772
+ } = i, c = G({ ...bt, ...o }), p = _t(), g = Ut({
3773
3773
  userGetter: e,
3774
3774
  bladeGetter: t,
3775
3775
  localeGetter: n,
3776
3776
  tokenGetter: r
3777
- }), h = Ut({
3777
+ }), h = Tt({
3778
3778
  getConfig: () => c.value,
3779
3779
  isEmbedded: l,
3780
3780
  navigateToBlade: a
3781
- }), y = d(() => ({
3781
+ }), _ = d(() => ({
3782
3782
  user: e(),
3783
3783
  currentBlade: t(),
3784
3784
  items: g.contextItems.value
3785
- })), w = async () => {
3785
+ })), A = async () => {
3786
3786
  if (h.pendingInitContext.value && h.iframeRef.value?.contentWindow) {
3787
3787
  h.pendingInitContext.value = !1, p.isInitialized.value = !0;
3788
3788
  const m = await g.buildInitPayload();
3789
- h.sendToIframe({ type: "INIT_CONTEXT", payload: m }), re.debug("Flushed pending INIT_CONTEXT");
3789
+ h.sendToIframe({ type: "INIT_CONTEXT", payload: m }), se.debug("Flushed pending INIT_CONTEXT");
3790
3790
  }
3791
3791
  };
3792
3792
  h.onChatReady(() => {
3793
3793
  h.iframeRef.value?.contentWindow ? (p.isInitialized.value = !0, g.buildInitPayload().then((m) => {
3794
- h.sendToIframe({ type: "INIT_CONTEXT", payload: m }), re.info("Chatbot ready, sent INIT_CONTEXT");
3795
- })) : (h.pendingInitContext.value = !0, re.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
3796
- }), H(h.iframeRef, () => w()), H(
3797
- () => ({ currentBlade: y.value.currentBlade, items: y.value.items }),
3794
+ h.sendToIframe({ type: "INIT_CONTEXT", payload: m }), se.info("Chatbot ready, sent INIT_CONTEXT");
3795
+ })) : (h.pendingInitContext.value = !0, se.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
3796
+ }), X(h.iframeRef, () => A()), X(
3797
+ () => ({ currentBlade: _.value.currentBlade, items: _.value.items }),
3798
3798
  async () => {
3799
3799
  if (l) {
3800
3800
  const m = await g.buildInitPayload();
@@ -3808,27 +3808,27 @@ function Tt(i) {
3808
3808
  },
3809
3809
  { deep: !0 }
3810
3810
  );
3811
- const x = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.open(), O = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.close(), N = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.toggle(), D = (m) => {
3812
- h.setIframeRef(m), w();
3813
- }, b = (m, T, U, A) => {
3814
- const { cleared: F } = g.setContextData(m, T, U, A);
3811
+ const E = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.open(), O = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.close(), z = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.toggle(), D = (m) => {
3812
+ h.setIframeRef(m), A();
3813
+ }, b = (m, C, T, P) => {
3814
+ const { cleared: F } = g.setContextData(m, C, T, P);
3815
3815
  l && F && h.sendToParent({ type: "AI_CONTEXT_CLEAR" });
3816
3816
  };
3817
3817
  return h.startListening(), l && (h.sendToParent({
3818
3818
  type: "EMBEDDED_APP_READY",
3819
3819
  payload: { supportedFeatures: ["ai-agent"] }
3820
- }), re.info("Embedded mode: sent EMBEDDED_APP_READY to parent")), {
3820
+ }), se.info("Embedded mode: sent EMBEDDED_APP_READY to parent")), {
3821
3821
  // State
3822
3822
  panelState: p.panelState,
3823
3823
  config: c,
3824
- context: y,
3824
+ context: _,
3825
3825
  isOpen: d(() => !l && p.isOpen.value),
3826
3826
  isExpanded: p.isExpanded,
3827
3827
  totalItemsCount: g.totalItemsCount,
3828
3828
  // Panel control
3829
- openPanel: x,
3829
+ openPanel: E,
3830
3830
  closePanel: O,
3831
- togglePanel: N,
3831
+ togglePanel: z,
3832
3832
  expandPanel: () => p.expand(),
3833
3833
  collapsePanel: () => p.collapse(),
3834
3834
  // Configuration
@@ -3836,8 +3836,8 @@ function Tt(i) {
3836
3836
  c.value = { ...c.value, ...m };
3837
3837
  },
3838
3838
  // Communication
3839
- sendMessage: (m, T) => {
3840
- h.sendToIframe({ type: m, payload: T });
3839
+ sendMessage: (m, C) => {
3840
+ h.sendToIframe({ type: m, payload: C });
3841
3841
  },
3842
3842
  onMessage: h.onMessage,
3843
3843
  // Internal API
@@ -3848,23 +3848,23 @@ function Tt(i) {
3848
3848
  _setContextData: b
3849
3849
  };
3850
3850
  }
3851
- let Ie, Re, je, St;
3852
- function nn(i) {
3853
- Ie = i;
3854
- }
3851
+ let $e, Ne, ze, St;
3855
3852
  function an(i) {
3856
- Re = i;
3853
+ $e = i;
3857
3854
  }
3858
3855
  function sn(i) {
3859
- je = i;
3856
+ Ne = i;
3860
3857
  }
3861
3858
  function on(i) {
3859
+ ze = i;
3860
+ }
3861
+ function ln(i) {
3862
3862
  St = i;
3863
3863
  }
3864
- function Ue(i, e) {
3864
+ function Se(i, e) {
3865
3865
  if (e.length === 0)
3866
3866
  return { path: i ? `/${i}` : "/", query: {} };
3867
- const t = e[0], n = Te(t.url);
3867
+ const t = e[0], n = we(t.url);
3868
3868
  let r;
3869
3869
  for (let l = e.length - 1; l >= 1; l--)
3870
3870
  if (e[l].visible) {
@@ -3873,7 +3873,7 @@ function Ue(i, e) {
3873
3873
  }
3874
3874
  let a = i ? `/${i}` : "";
3875
3875
  if (n && (a += `/${n}`), r) {
3876
- const l = Te(r.url);
3876
+ const l = we(r.url);
3877
3877
  l && (a += `/${l}`), r.param && (a += `/${r.param}`);
3878
3878
  }
3879
3879
  const o = {};
@@ -3881,7 +3881,7 @@ function Ue(i, e) {
3881
3881
  l.visible && l.query && Object.assign(o, l.query);
3882
3882
  return { path: a || "/", query: o };
3883
3883
  }
3884
- function ln(i, e) {
3884
+ function un(i, e) {
3885
3885
  let t = i.split("/").filter(Boolean);
3886
3886
  return e && t.length > 0 && t[0] === e && (t = t.slice(1)), t.length === 0 ? {} : {
3887
3887
  workspaceUrl: t[0],
@@ -3889,167 +3889,172 @@ function ln(i, e) {
3889
3889
  param: t[2]
3890
3890
  };
3891
3891
  }
3892
- function Te(i) {
3892
+ function we(i) {
3893
3893
  if (i)
3894
3894
  return i.replace(/^\/+|\/+$/g, "") || void 0;
3895
3895
  }
3896
- function Se(i) {
3896
+ function Ae(i) {
3897
3897
  const e = i.currentRoute.value.params;
3898
3898
  return Object.values(e).find((t) => typeof t == "string" && t) || "";
3899
3899
  }
3900
- function Ct(i, e) {
3900
+ function wt(i, e) {
3901
3901
  function t() {
3902
- const { path: r, query: a } = Ue(Se(i), e.blades.value);
3902
+ const { path: r, query: a } = Se(Ae(i), e.blades.value);
3903
3903
  i.push({ path: r, query: a });
3904
3904
  }
3905
3905
  function n() {
3906
- const { path: r, query: a } = Ue(Se(i), e.blades.value);
3906
+ const { path: r, query: a } = Se(Ae(i), e.blades.value);
3907
3907
  i.replace({ path: r, query: a });
3908
3908
  }
3909
3909
  return { syncUrlPush: t, syncUrlReplace: n };
3910
3910
  }
3911
- const wt = "useBlade() was called outside a blade. Navigation methods (openBlade) work everywhere, but blade-specific methods require the component to be rendered inside VcBladeSlot.";
3911
+ const At = "useBlade() was called outside a blade. Navigation methods (openBlade) work everywhere, but blade-specific methods require the component to be rendered inside VcBladeSlot.";
3912
3912
  function I(i) {
3913
3913
  throw new Error(`[vc-shell] ${i} requires blade context.
3914
- ${wt}`);
3914
+ ${At}`);
3915
3915
  }
3916
- function At() {
3917
- const i = (Q() ? L(Oe, void 0) : void 0) ?? Re, e = (Q() ? L(ct, void 0) : void 0) ?? je;
3916
+ function Pt() {
3917
+ const i = (re() ? J(je, void 0) : void 0) ?? Ne, e = (re() ? J(ht, void 0) : void 0) ?? ze;
3918
3918
  if (!i || !e)
3919
3919
  throw new Error(
3920
3920
  "[vc-shell] useBlade() failed: BladeStack or BladeMessaging not available. Ensure BladeNavigationPlugin (plugin-v2) is installed."
3921
3921
  );
3922
- const t = i, n = e, r = Q() ? L(ht, void 0) : void 0, a = Q() ? L(ft, void 0) : void 0;
3922
+ const t = i, n = e, r = re() ? J(dt, void 0) : void 0, a = re() ? J(pt, void 0) : void 0;
3923
3923
  let o;
3924
3924
  function l() {
3925
3925
  if (o) return o;
3926
- const E = Ie?.router;
3927
- return E && (o = Ct(E, t)), o;
3926
+ const x = $e?.router;
3927
+ return x && (o = wt(x, t)), o;
3928
3928
  }
3929
- const c = d(() => (r || I("id"), r.value.id)), p = d(() => (r || I("param"), r.value.param)), g = d(() => (r || I("options"), r.value.options)), h = d(() => (r || I("query"), r.value.query)), y = d(() => (r || I("closable"), r.value.parentId !== void 0)), w = d(() => (r || I("expanded"), t.activeBlade.value?.id === r.value.id)), x = d(() => (r || I("name"), r.value.name));
3930
- let O = !1;
3931
- function N(E) {
3932
- if (O) {
3929
+ const c = d(() => (r || I("id"), r.value.id)), p = d(() => (r || I("param"), r.value.param)), g = d(() => (r || I("options"), r.value.options)), h = d(() => (r || I("query"), r.value.query)), _ = d(() => (r || I("closable"), r.value.parentId !== void 0)), A = d(() => (r || I("expanded"), t.activeBlade.value?.id === r.value.id)), E = d(() => (r || I("name"), r.value.name)), O = d(() => {
3930
+ if (!r) return;
3931
+ const x = r.value.id;
3932
+ return t.blades.value.find((N) => N.parentId === x)?.param;
3933
+ });
3934
+ let z = !1;
3935
+ function D(x) {
3936
+ if (z) {
3933
3937
  console.warn(
3934
3938
  "[vc-shell] provideBladeData() called more than once in the same blade. Only the first call takes effect."
3935
3939
  );
3936
3940
  return;
3937
3941
  }
3938
- O = !0;
3939
- const B = ke(E) ? E : G(E);
3940
- Ce(dt, B);
3941
- }
3942
- async function D(E) {
3943
- const { isWorkspace: B, ...ue } = E;
3944
- if (B)
3945
- await t.openWorkspace(ue);
3942
+ z = !0;
3943
+ const N = Ge(x) ? x : G(x);
3944
+ Pe(ft, N);
3945
+ }
3946
+ async function b(x) {
3947
+ const { isWorkspace: N, ...fe } = x;
3948
+ if (N)
3949
+ await t.openWorkspace(fe);
3946
3950
  else {
3947
- const be = r?.value.id;
3948
- be ? await t.openBlade({ ...ue, parentId: be }) : await t.openBlade(ue);
3951
+ const ye = r?.value.id;
3952
+ ye ? await t.openBlade({ ...fe, parentId: ye }) : await t.openBlade(fe);
3949
3953
  }
3950
3954
  t.activeBlade.value?.url && l()?.syncUrlPush();
3951
3955
  }
3952
- async function b() {
3956
+ async function m() {
3953
3957
  r || I("closeSelf()");
3954
- const E = await t.closeBlade(r.value.id);
3955
- return E || l()?.syncUrlReplace(), E;
3958
+ const x = await t.closeBlade(r.value.id);
3959
+ return x || l()?.syncUrlReplace(), x;
3956
3960
  }
3957
- async function m() {
3961
+ async function C() {
3958
3962
  r || I("closeChildren()"), await t.closeChildren(r.value.id), l()?.syncUrlReplace();
3959
3963
  }
3960
- async function T(E) {
3964
+ async function T(x) {
3961
3965
  r || I("replaceWith()"), await t.replaceCurrentBlade({
3962
- ...E,
3966
+ ...x,
3963
3967
  parentId: r.value.parentId
3964
3968
  }), t.activeBlade.value?.url && l()?.syncUrlReplace();
3965
3969
  }
3966
- async function U(E) {
3970
+ async function P(x) {
3967
3971
  r || I("coverWith()"), await t.coverCurrentBlade({
3968
- ...E,
3972
+ ...x,
3969
3973
  parentId: r.value.parentId
3970
3974
  }), t.activeBlade.value?.url && l()?.syncUrlPush();
3971
3975
  }
3972
- async function A(E, B) {
3973
- return r || I("callParent()"), n.callParent(r.value.id, E, B);
3976
+ async function F(x, N) {
3977
+ return r || I("callParent()"), n.callParent(r.value.id, x, N);
3974
3978
  }
3975
- function F(E) {
3976
- r || I("exposeToChildren()"), n.exposeToChildren(r.value.id, E);
3979
+ function he(x) {
3980
+ r || I("exposeToChildren()"), n.exposeToChildren(r.value.id, x);
3977
3981
  }
3978
- function le(E) {
3979
- r || I("onBeforeClose()"), t.registerBeforeClose(r.value.id, E);
3982
+ function de(x) {
3983
+ r || I("onBeforeClose()"), t.registerBeforeClose(r.value.id, x);
3980
3984
  }
3981
- function u(E) {
3982
- r || I("setError()"), t.setBladeError(r.value.id, E);
3985
+ function u(x) {
3986
+ r || I("setError()"), t.setBladeError(r.value.id, x);
3983
3987
  }
3984
3988
  function f() {
3985
3989
  r || I("clearError()"), t.clearBladeError(r.value.id);
3986
3990
  }
3987
3991
  let v = 0;
3988
- function _(E) {
3992
+ function y(x) {
3989
3993
  a || I("addBanner()");
3990
- const B = `banner-${r.value.id}-${++v}`;
3994
+ const N = `banner-${r.value.id}-${++v}`;
3991
3995
  return a.value.push({
3992
- ...E,
3993
- id: B,
3994
- dismissible: E.dismissible ?? !1
3995
- }), B;
3996
+ ...x,
3997
+ id: N,
3998
+ dismissible: x.dismissible ?? !1
3999
+ }), N;
3996
4000
  }
3997
- function P(E) {
3998
- a || I("removeBanner()"), a.value = a.value.filter((B) => B.id !== E);
4001
+ function U(x) {
4002
+ a || I("removeBanner()"), a.value = a.value.filter((N) => N.id !== x);
3999
4003
  }
4000
- function z() {
4001
- a || I("clearBanners()"), a.value = a.value.filter((E) => E._system);
4004
+ function $() {
4005
+ a || I("clearBanners()"), a.value = a.value.filter((x) => x._system);
4002
4006
  }
4003
- let V = !1, ge = !1;
4004
- function Ne(E) {
4005
- if (r || I("onActivated()"), V) {
4007
+ let M = !1, H = !1;
4008
+ function W(x) {
4009
+ if (r || I("onActivated()"), M) {
4006
4010
  console.warn("[useBlade] onActivated() already registered in this blade.");
4007
4011
  return;
4008
4012
  }
4009
- V = !0, H(w, (B) => {
4010
- B && E();
4013
+ M = !0, X(A, (N) => {
4014
+ N && x();
4011
4015
  });
4012
4016
  }
4013
- function ze(E) {
4014
- if (r || I("onDeactivated()"), ge) {
4017
+ function Q(x) {
4018
+ if (r || I("onDeactivated()"), H) {
4015
4019
  console.warn("[useBlade] onDeactivated() already registered in this blade.");
4016
4020
  return;
4017
4021
  }
4018
- ge = !0, H(w, (B) => {
4019
- B || E();
4022
+ H = !0, X(A, (N) => {
4023
+ N || x();
4020
4024
  });
4021
4025
  }
4022
4026
  return {
4023
4027
  id: c,
4024
4028
  param: p,
4029
+ activeChildParam: O,
4025
4030
  options: g,
4026
4031
  query: h,
4027
- closable: y,
4028
- expanded: w,
4029
- name: x,
4030
- provideBladeData: N,
4031
- openBlade: D,
4032
- closeSelf: b,
4033
- closeChildren: m,
4032
+ closable: _,
4033
+ expanded: A,
4034
+ name: E,
4035
+ provideBladeData: D,
4036
+ openBlade: b,
4037
+ closeSelf: m,
4038
+ closeChildren: C,
4034
4039
  replaceWith: T,
4035
- coverWith: U,
4036
- callParent: A,
4037
- exposeToChildren: F,
4038
- onBeforeClose: le,
4039
- onActivated: Ne,
4040
- onDeactivated: ze,
4040
+ coverWith: P,
4041
+ callParent: F,
4042
+ exposeToChildren: he,
4043
+ onBeforeClose: de,
4044
+ onActivated: W,
4045
+ onDeactivated: Q,
4041
4046
  setError: u,
4042
4047
  clearError: f,
4043
- addBanner: _,
4044
- removeBanner: P,
4045
- clearBanners: z
4048
+ addBanner: y,
4049
+ removeBanner: U,
4050
+ clearBanners: $
4046
4051
  };
4047
4052
  }
4048
- let Pt = 0;
4049
- function ne() {
4050
- return `blade_${++Pt}_${Math.random().toString(36).slice(2, 8)}`;
4053
+ let Ot = 0;
4054
+ function ie() {
4055
+ return `blade_${++Ot}_${Math.random().toString(36).slice(2, 8)}`;
4051
4056
  }
4052
- function un(i, e) {
4057
+ function cn(i, e) {
4053
4058
  const t = G([]), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = d(() => t.value[0]), l = d(() => t.value), c = d(() => {
4054
4059
  for (let u = t.value.length - 1; u >= 0; u--)
4055
4060
  if (t.value[u].visible) return t.value[u];
@@ -4070,11 +4075,11 @@ function un(i, e) {
4070
4075
  }
4071
4076
  return !1;
4072
4077
  }
4073
- function y(u) {
4078
+ function _(u) {
4074
4079
  for (const f of u)
4075
4080
  a.get(f.id)?.(), p(f.id);
4076
4081
  }
4077
- async function w(u) {
4082
+ async function A(u) {
4078
4083
  if (o.value?.name === u.name) return;
4079
4084
  const v = i.getBlade(u.name);
4080
4085
  if (!v)
@@ -4083,9 +4088,9 @@ function un(i, e) {
4083
4088
  console.warn(`[BladeStack] Access denied to workspace '${u.name}'`);
4084
4089
  return;
4085
4090
  }
4086
- y([...t.value]);
4087
- const _ = {
4088
- id: ne(),
4091
+ _([...t.value]);
4092
+ const y = {
4093
+ id: ie(),
4089
4094
  name: u.name,
4090
4095
  url: g(u.name),
4091
4096
  // workspace blades don't have param when opened first
@@ -4093,23 +4098,23 @@ function un(i, e) {
4093
4098
  options: u.options,
4094
4099
  visible: !0
4095
4100
  };
4096
- t.value = [_], u.onOpen && r.set(_.id, u.onOpen), u.onClose && a.set(_.id, u.onClose), u.onOpen?.();
4101
+ t.value = [y], u.onOpen && r.set(y.id, u.onOpen), u.onClose && a.set(y.id, u.onClose), u.onOpen?.();
4097
4102
  }
4098
- async function x(u) {
4103
+ async function E(u) {
4099
4104
  if (!i.getBlade(u.name))
4100
4105
  throw new Error(`[BladeStack] Blade '${u.name}' not found in registry`);
4101
4106
  const f = u.parentId ?? c.value?.id ?? o.value?.id;
4102
4107
  if (!f)
4103
4108
  throw new Error("[BladeStack] Cannot open blade: no parent blade found");
4104
- const v = t.value.findIndex((z) => z.id === f);
4109
+ const v = t.value.findIndex(($) => $.id === f);
4105
4110
  if (v === -1)
4106
4111
  throw new Error(`[BladeStack] Parent blade '${f}' not found in stack`);
4107
- const _ = t.value.slice(v + 1);
4108
- if (_.length > 0 && await h(_))
4112
+ const y = t.value.slice(v + 1);
4113
+ if (y.length > 0 && await h(y))
4109
4114
  return;
4110
- y(_);
4111
- const P = {
4112
- id: ne(),
4115
+ _(y);
4116
+ const U = {
4117
+ id: ie(),
4113
4118
  name: u.name,
4114
4119
  url: g(u.name),
4115
4120
  param: u.param,
@@ -4118,37 +4123,37 @@ function un(i, e) {
4118
4123
  parentId: f,
4119
4124
  visible: !0
4120
4125
  };
4121
- t.value = [...t.value.slice(0, v + 1), P], u.onOpen && r.set(P.id, u.onOpen), u.onClose && a.set(P.id, u.onClose), u.onOpen?.();
4126
+ t.value = [...t.value.slice(0, v + 1), U], u.onOpen && r.set(U.id, u.onOpen), u.onClose && a.set(U.id, u.onClose), u.onOpen?.();
4122
4127
  }
4123
4128
  async function O(u) {
4124
- const f = t.value.findIndex((z) => z.id === u);
4129
+ const f = t.value.findIndex(($) => $.id === u);
4125
4130
  if (f === -1 || f === 0) return !1;
4126
4131
  const v = t.value.slice(f);
4127
4132
  if (await h(v)) return !0;
4128
- y(v), t.value = t.value.slice(0, f);
4129
- const P = t.value.length - 1;
4130
- if (P > 0 && !t.value[P].visible) {
4131
- const z = [...t.value];
4132
- z[P] = { ...z[P], visible: !0 }, t.value = z;
4133
+ _(v), t.value = t.value.slice(0, f);
4134
+ const U = t.value.length - 1;
4135
+ if (U > 0 && !t.value[U].visible) {
4136
+ const $ = [...t.value];
4137
+ $[U] = { ...$[U], visible: !0 }, t.value = $;
4133
4138
  }
4134
4139
  return !1;
4135
4140
  }
4136
- async function N(u) {
4141
+ async function z(u) {
4137
4142
  const f = c.value;
4138
4143
  if (!f)
4139
4144
  throw new Error("[BladeStack] No active blade to replace");
4140
4145
  if (!i.getBlade(u.name))
4141
4146
  throw new Error(`[BladeStack] Blade '${u.name}' not found in registry`);
4142
- const v = t.value.findIndex((V) => V.id === f.id);
4147
+ const v = t.value.findIndex((M) => M.id === f.id);
4143
4148
  if (v === -1)
4144
4149
  throw new Error(`[BladeStack] Active blade '${f.id}' not found in stack`);
4145
- const _ = t.value.slice(v + 1);
4146
- if (_.length > 0) {
4147
- if (await h(_)) return;
4148
- y(_);
4150
+ const y = t.value.slice(v + 1);
4151
+ if (y.length > 0) {
4152
+ if (await h(y)) return;
4153
+ _(y);
4149
4154
  }
4150
- const P = {
4151
- id: ne(),
4155
+ const U = {
4156
+ id: ie(),
4152
4157
  name: u.name,
4153
4158
  url: g(u.name),
4154
4159
  param: u.param,
@@ -4157,9 +4162,9 @@ function un(i, e) {
4157
4162
  parentId: f.parentId,
4158
4163
  visible: !0
4159
4164
  };
4160
- y([f]);
4161
- const z = [...t.value.slice(0, v), P, ...t.value.slice(v + 1)];
4162
- t.value = z, u.onOpen && r.set(P.id, u.onOpen), u.onClose && a.set(P.id, u.onClose), u.onOpen?.();
4165
+ _([f]);
4166
+ const $ = [...t.value.slice(0, v), U, ...t.value.slice(v + 1)];
4167
+ t.value = $, u.onOpen && r.set(U.id, u.onOpen), u.onClose && a.set(U.id, u.onClose), u.onOpen?.();
4163
4168
  }
4164
4169
  async function D(u) {
4165
4170
  const f = c.value;
@@ -4167,16 +4172,16 @@ function un(i, e) {
4167
4172
  throw new Error("[BladeStack] No active blade to cover");
4168
4173
  if (!i.getBlade(u.name))
4169
4174
  throw new Error(`[BladeStack] Blade '${u.name}' not found in registry`);
4170
- const v = t.value.findIndex((V) => V.id === f.id);
4175
+ const v = t.value.findIndex((M) => M.id === f.id);
4171
4176
  if (v === -1)
4172
4177
  throw new Error(`[BladeStack] Active blade '${f.id}' not found in stack`);
4173
- const _ = t.value.slice(v + 1);
4174
- if (_.length > 0) {
4175
- if (await h(_)) return;
4176
- y(_);
4178
+ const y = t.value.slice(v + 1);
4179
+ if (y.length > 0) {
4180
+ if (await h(y)) return;
4181
+ _(y);
4177
4182
  }
4178
- const P = {
4179
- id: ne(),
4183
+ const U = {
4184
+ id: ie(),
4180
4185
  name: u.name,
4181
4186
  url: g(u.name),
4182
4187
  param: u.param,
@@ -4184,40 +4189,52 @@ function un(i, e) {
4184
4189
  options: u.options,
4185
4190
  parentId: f.id,
4186
4191
  visible: !0
4187
- }, z = t.value.slice(0, v);
4188
- z.push({ ...f, visible: !1 }), z.push(P), t.value = z, u.onOpen && r.set(P.id, u.onOpen), u.onClose && a.set(P.id, u.onClose), u.onOpen?.();
4192
+ }, $ = t.value.slice(0, v);
4193
+ $.push({ ...f, visible: !1 }), $.push(U), t.value = $, u.onOpen && r.set(U.id, u.onOpen), u.onClose && a.set(U.id, u.onClose), u.onOpen?.();
4189
4194
  }
4190
4195
  async function b(u) {
4191
- const f = t.value.findIndex((P) => P.id === u);
4196
+ const f = t.value.findIndex((U) => U.id === u);
4192
4197
  if (f === -1) return;
4193
4198
  const v = t.value.slice(f + 1);
4194
- v.length === 0 || await h(v) || (y(v), t.value = t.value.slice(0, f + 1));
4199
+ v.length === 0 || await h(v) || (_(v), t.value = t.value.slice(0, f + 1));
4195
4200
  }
4196
4201
  function m(u, f) {
4197
4202
  n.set(u, f);
4198
4203
  }
4199
- function T(u) {
4204
+ function C(u) {
4200
4205
  n.delete(u);
4201
4206
  }
4202
- function U(u, f) {
4203
- const v = t.value.findIndex((P) => P.id === u);
4207
+ function T(u, f) {
4208
+ const v = t.value.findIndex((U) => U.id === u);
4204
4209
  if (v === -1) return;
4205
- const _ = [...t.value];
4206
- _[v] = { ..._[v], error: f }, t.value = _;
4210
+ const y = [...t.value];
4211
+ y[v] = { ...y[v], error: f }, t.value = y;
4207
4212
  }
4208
- function A(u) {
4209
- const f = t.value.findIndex((_) => _.id === u);
4213
+ function P(u) {
4214
+ const f = t.value.findIndex((y) => y.id === u);
4210
4215
  if (f === -1) return;
4211
4216
  const v = [...t.value];
4212
4217
  v[f] = { ...v[f], error: void 0 }, t.value = v;
4213
4218
  }
4214
4219
  function F(u, f) {
4215
- const v = t.value.findIndex((P) => P.id === u);
4220
+ const v = t.value.findIndex((U) => U.id === u);
4216
4221
  if (v === -1 || t.value[v].title === f) return;
4217
- const _ = [...t.value];
4218
- _[v] = { ..._[v], title: f }, t.value = _;
4222
+ const y = [...t.value];
4223
+ y[v] = { ...y[v], title: f }, t.value = y;
4224
+ }
4225
+ function he(u, f) {
4226
+ const v = t.value.findIndex((W) => W.id === u);
4227
+ if (v === -1) return;
4228
+ const y = t.value[v].query ?? {}, U = { ...y };
4229
+ for (const [W, Q] of Object.entries(f))
4230
+ Q === "" || Q == null ? delete U[W] : U[W] = Q;
4231
+ const $ = Object.keys(y), M = Object.keys(U);
4232
+ if ($.length === M.length && M.every((W) => y[W] === U[W]))
4233
+ return;
4234
+ const H = [...t.value];
4235
+ H[v] = { ...H[v], query: U }, t.value = H;
4219
4236
  }
4220
- function le(u) {
4237
+ function de(u) {
4221
4238
  for (const f of t.value)
4222
4239
  p(f.id);
4223
4240
  t.value = u;
@@ -4226,29 +4243,30 @@ function un(i, e) {
4226
4243
  workspace: o,
4227
4244
  blades: l,
4228
4245
  activeBlade: c,
4229
- openWorkspace: w,
4230
- openBlade: x,
4246
+ openWorkspace: A,
4247
+ openBlade: E,
4231
4248
  closeBlade: O,
4232
4249
  closeChildren: b,
4233
- replaceCurrentBlade: N,
4250
+ replaceCurrentBlade: z,
4234
4251
  coverCurrentBlade: D,
4235
4252
  registerBeforeClose: m,
4236
- unregisterBeforeClose: T,
4237
- setBladeError: U,
4238
- clearBladeError: A,
4253
+ unregisterBeforeClose: C,
4254
+ setBladeError: T,
4255
+ clearBladeError: P,
4239
4256
  setBladeTitle: F,
4240
- _restoreStack: le
4257
+ updateBladeQuery: he,
4258
+ _restoreStack: de
4241
4259
  };
4242
4260
  }
4243
- function Ot() {
4244
- const i = L(Oe);
4261
+ function It() {
4262
+ const i = J(je);
4245
4263
  if (!i)
4246
4264
  throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
4247
4265
  return i;
4248
4266
  }
4249
- const q = $("use-ai-agent");
4250
- function cn(i) {
4251
- const e = L(pt), { user: t, getAccessToken: n } = ut(), { openBlade: r } = At(), { blades: a, activeBlade: o } = Ot(), l = i?.isEmbedded, c = Tt({
4267
+ const Z = B("use-ai-agent");
4268
+ function hn(i) {
4269
+ const e = J(mt), { user: t, getAccessToken: n } = ct(), { openBlade: r } = Pt(), { blades: a, activeBlade: o } = It(), l = i?.isEmbedded, c = Ct({
4252
4270
  userGetter: () => {
4253
4271
  if (t.value)
4254
4272
  return {
@@ -4270,37 +4288,37 @@ function cn(i) {
4270
4288
  },
4271
4289
  localeGetter: () => e?.currentLocale.value ?? "en",
4272
4290
  tokenGetter: n,
4273
- navigateToBlade: (g, h, y) => {
4274
- r({ name: g, param: h, options: y }).then(() => {
4275
- q.debug(`Navigated to blade: ${g}`);
4276
- }).catch((w) => {
4277
- q.warn(`Blade not found or cannot be opened: ${g}`, w);
4291
+ navigateToBlade: (g, h, _) => {
4292
+ r({ name: g, param: h, options: _ }).then(() => {
4293
+ Z.debug(`Navigated to blade: ${g}`);
4294
+ }).catch((A) => {
4295
+ Z.warn(`Blade not found or cannot be opened: ${g}`, A);
4278
4296
  });
4279
4297
  },
4280
4298
  initialConfig: i?.config,
4281
4299
  isEmbedded: l
4282
4300
  });
4283
- if (Ce(ve, c), q.debug("AiAgentService provided"), i?.addGlobalToolbarButton ?? !0) {
4284
- const g = L(mt, null);
4301
+ if (Pe(Ee, c), Z.debug("AiAgentService provided"), i?.addGlobalToolbarButton ?? !0) {
4302
+ const g = J(vt, null);
4285
4303
  g ? (g.registerToolbarItem(
4286
4304
  {
4287
- id: bt,
4288
- icon: xt,
4289
- title: Et,
4305
+ id: xt,
4306
+ icon: Et,
4307
+ title: yt,
4290
4308
  clickHandler: () => {
4291
4309
  c.togglePanel();
4292
4310
  }
4293
4311
  },
4294
4312
  "*"
4295
4313
  // Wildcard for all blades
4296
- ), q.debug("Global AI toolbar button registered with wildcard '*'")) : q.warn("Toolbar service not available, AI button not registered");
4314
+ ), Z.debug("Global AI toolbar button registered with wildcard '*'")) : Z.warn("Toolbar service not available, AI button not registered");
4297
4315
  }
4298
4316
  return c;
4299
4317
  }
4300
- function hn() {
4301
- const i = L(ve);
4318
+ function dn() {
4319
+ const i = J(Ee);
4302
4320
  if (!i) {
4303
- q.error("AiAgentService not found. Did you forget to call provideAiAgentService()?");
4321
+ Z.error("AiAgentService not found. Did you forget to call provideAiAgentService()?");
4304
4322
  return;
4305
4323
  }
4306
4324
  return {
@@ -4324,7 +4342,7 @@ function hn() {
4324
4342
  onMessage: i.onMessage
4325
4343
  };
4326
4344
  }
4327
- function dn(i) {
4345
+ function fn(i) {
4328
4346
  return {
4329
4347
  id: "ai-agent-toggle",
4330
4348
  icon: i?.icon ?? "lucide-sparkles",
@@ -4334,11 +4352,11 @@ function dn(i) {
4334
4352
  }
4335
4353
  };
4336
4354
  }
4337
- const It = ["width", "height"], Rt = ["clip-path"], jt = {
4355
+ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
4338
4356
  key: 1,
4339
4357
  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",
4340
4358
  fill: "url(#virto-oz-gradient-animated)"
4341
- }, $t = ["id"], Nt = {
4359
+ }, Nt = ["id"], zt = {
4342
4360
  key: 1,
4343
4361
  id: "virto-oz-gradient-animated",
4344
4362
  gradientUnits: "userSpaceOnUse",
@@ -4346,7 +4364,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4346
4364
  y1: "0",
4347
4365
  x2: "99",
4348
4366
  y2: "108"
4349
- }, $e = /* @__PURE__ */ M({
4367
+ }, Be = /* @__PURE__ */ L({
4350
4368
  __name: "VcVirtoOzLogo",
4351
4369
  props: {
4352
4370
  width: { default: 22 },
@@ -4367,7 +4385,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4367
4385
  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",
4368
4386
  fill: "white"
4369
4387
  }, null, -1)),
4370
- i.animated ? (S(), j("path", jt)) : (S(), j("g", {
4388
+ i.animated ? (S(), j("path", $t)) : (S(), j("g", {
4371
4389
  key: 0,
4372
4390
  "clip-path": `url(#${e.value})`
4373
4391
  }, [...n[0] || (n[0] = [
@@ -4392,7 +4410,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4392
4410
  })
4393
4411
  ])
4394
4412
  ], -1)
4395
- ])], 8, Rt)),
4413
+ ])], 8, jt)),
4396
4414
  n[4] || (n[4] = R("path", {
4397
4415
  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",
4398
4416
  fill: "white"
@@ -4419,19 +4437,19 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4419
4437
  fill: "#6C6C6C"
4420
4438
  }, null, -1)),
4421
4439
  R("defs", null, [
4422
- i.animated ? Z("", !0) : (S(), j("clipPath", {
4440
+ i.animated ? Y("", !0) : (S(), j("clipPath", {
4423
4441
  key: 0,
4424
4442
  id: e.value
4425
4443
  }, [...n[1] || (n[1] = [
4426
4444
  R("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)
4427
- ])], 8, $t)),
4428
- i.animated ? (S(), j("linearGradient", Nt, [...n[2] || (n[2] = [
4429
- Ge('<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)
4430
- ])])) : Z("", !0)
4445
+ ])], 8, Nt)),
4446
+ i.animated ? (S(), j("linearGradient", zt, [...n[2] || (n[2] = [
4447
+ Fe('<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)
4448
+ ])])) : Y("", !0)
4431
4449
  ])
4432
- ], 8, It));
4450
+ ], 8, Rt));
4433
4451
  }
4434
- }), zt = /* @__PURE__ */ M({
4452
+ }), Bt = /* @__PURE__ */ L({
4435
4453
  __name: "vc-material-icon",
4436
4454
  props: {
4437
4455
  icon: {},
@@ -4442,19 +4460,19 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4442
4460
  },
4443
4461
  setup(i) {
4444
4462
  const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
4445
- return oe(() => {
4463
+ return ce(() => {
4446
4464
  }), (r, a) => (S(), j("span", {
4447
- class: K([
4465
+ class: q([
4448
4466
  "vc-material-icon",
4449
4467
  "material-symbols-" + i.type,
4450
4468
  !t.value && `vc-material-icon--${i.size}`,
4451
4469
  i.variant ? `vc-material-icon--${i.variant}` : ""
4452
4470
  ]),
4453
- style: Y(n.value),
4471
+ style: te(n.value),
4454
4472
  "aria-hidden": "true"
4455
- }, pe(i.icon), 7));
4473
+ }, be(i.icon), 7));
4456
4474
  }
4457
- }), Bt = /* @__PURE__ */ M({
4475
+ }), kt = /* @__PURE__ */ L({
4458
4476
  __name: "vc-bootstrap-icon",
4459
4477
  props: {
4460
4478
  icon: {},
@@ -4464,21 +4482,21 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4464
4482
  },
4465
4483
  setup(i) {
4466
4484
  const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
4467
- oe(() => {
4485
+ ce(() => {
4468
4486
  });
4469
4487
  const r = d(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
4470
4488
  return (a, o) => (S(), j("i", {
4471
- class: K([
4489
+ class: q([
4472
4490
  "vc-bootstrap-icon",
4473
4491
  !t.value && `vc-bootstrap-icon--${i.size}`,
4474
4492
  r.value,
4475
4493
  i.variant ? `vc-bootstrap-icon--${i.variant}` : ""
4476
4494
  ]),
4477
- style: Y(n.value),
4495
+ style: te(n.value),
4478
4496
  "aria-hidden": "true"
4479
4497
  }, null, 6));
4480
4498
  }
4481
- }), kt = /* @__PURE__ */ M({
4499
+ }), Gt = /* @__PURE__ */ L({
4482
4500
  __name: "vc-lucide-icon",
4483
4501
  props: {
4484
4502
  icon: {},
@@ -4488,35 +4506,35 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4488
4506
  customSize: {}
4489
4507
  },
4490
4508
  setup(i) {
4491
- const e = $("vc-lucide-icon"), t = i, n = d(() => typeof t.customSize == "number" && t.customSize > 0), r = d(() => {
4509
+ const e = B("vc-lucide-icon"), t = i, n = d(() => typeof t.customSize == "number" && t.customSize > 0), r = d(() => {
4492
4510
  if (!t.icon) return "HelpCircleIcon";
4493
4511
  let l = t.icon;
4494
4512
  return l.startsWith("lucide-") && (l = l.substring(7)), l.toLowerCase().endsWith("icon") && (l = l.slice(0, -4)), l.includes("-") && (l = l.split("-").map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")), l.charAt(0).toUpperCase() + l.slice(1) + "Icon";
4495
4513
  }), a = d(() => {
4496
- const l = r.value, c = Le[l];
4497
- return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : we(c);
4514
+ const l = r.value, c = Je[l];
4515
+ return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : Oe(c);
4498
4516
  }), o = d(() => n.value && t.customSize ? {
4499
4517
  width: `${t.customSize}px`,
4500
4518
  height: `${t.customSize}px`
4501
4519
  } : {});
4502
- return (l, c) => a.value ? (S(), X(fe(a.value), {
4520
+ return (l, c) => a.value ? (S(), ee(ge(a.value), {
4503
4521
  key: 0,
4504
4522
  "stroke-width": t.strokeWidth,
4505
- class: K([
4523
+ class: q([
4506
4524
  "vc-lucide-icon",
4507
4525
  !n.value && `vc-lucide-icon--${i.size}`,
4508
4526
  i.variant ? `vc-lucide-icon--${i.variant}` : ""
4509
4527
  ]),
4510
- style: Y(o.value),
4528
+ style: te(o.value),
4511
4529
  "aria-hidden": "true"
4512
4530
  }, null, 8, ["stroke-width", "class", "style"])) : (S(), j("span", {
4513
4531
  key: 1,
4514
- class: K(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
4532
+ class: q(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
4515
4533
  }, [...c[0] || (c[0] = [
4516
4534
  R("i", { class: "vc-lucide-icon__fallback" }, null, -1)
4517
4535
  ])], 2));
4518
4536
  }
4519
- }), Gt = /* @__PURE__ */ M({
4537
+ }), Ft = /* @__PURE__ */ L({
4520
4538
  __name: "vc-fontawesome-icon",
4521
4539
  props: {
4522
4540
  icon: {},
@@ -4526,21 +4544,21 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4526
4544
  },
4527
4545
  setup(i) {
4528
4546
  const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
4529
- oe(() => {
4547
+ ce(() => {
4530
4548
  });
4531
4549
  const r = d(() => 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}`);
4532
4550
  return (a, o) => (S(), j("i", {
4533
- class: K([
4551
+ class: q([
4534
4552
  "vc-fa-icon",
4535
4553
  !t.value && `vc-fa-icon--${i.size}`,
4536
4554
  r.value,
4537
4555
  i.variant ? `vc-fa-icon--${i.variant}` : ""
4538
4556
  ]),
4539
- style: Y(n.value),
4557
+ style: te(n.value),
4540
4558
  "aria-hidden": "true"
4541
4559
  }, null, 6));
4542
4560
  }
4543
- }), Ft = ["xlink:href"], Dt = /* @__PURE__ */ M({
4561
+ }), Dt = ["xlink:href"], Mt = /* @__PURE__ */ L({
4544
4562
  inheritAttrs: !1,
4545
4563
  __name: "vc-svg-icon",
4546
4564
  props: {
@@ -4565,7 +4583,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4565
4583
  const a = {};
4566
4584
  return e.customSize && (a.width = `${e.customSize}px`, a.height = `${e.customSize}px`), e.strokeWidth && (a.strokeWidth = `${e.strokeWidth}`), a;
4567
4585
  });
4568
- return (a, o) => (S(), j("svg", ae({
4586
+ return (a, o) => (S(), j("svg", oe({
4569
4587
  xmlns: "http://www.w3.org/2000/svg",
4570
4588
  class: ["vc-svg-icon", !t.value && `vc-svg-icon--${i.size}`, i.variant ? `vc-svg-icon--${i.variant}` : ""],
4571
4589
  style: r.value
@@ -4573,10 +4591,10 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4573
4591
  n.value ? (S(), j("use", {
4574
4592
  key: 0,
4575
4593
  "xlink:href": n.value
4576
- }, null, 8, Ft)) : Z("", !0)
4594
+ }, null, 8, Dt)) : Y("", !0)
4577
4595
  ], 16));
4578
4596
  }
4579
- }), Mt = ["aria-hidden", "aria-label", "role"], ie = /* @__PURE__ */ M({
4597
+ }), Lt = ["aria-hidden", "aria-label", "role"], ue = /* @__PURE__ */ L({
4580
4598
  __name: "vc-icon",
4581
4599
  props: {
4582
4600
  icon: { default: "lucide-square" },
@@ -4589,7 +4607,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4589
4607
  },
4590
4608
  setup(i) {
4591
4609
  const e = i;
4592
- oe(() => {
4610
+ ce(() => {
4593
4611
  });
4594
4612
  const t = {
4595
4613
  xs: 12,
@@ -4617,30 +4635,30 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4617
4635
  if (l.value)
4618
4636
  try {
4619
4637
  const b = typeof r.value == "string" ? r.value : String(r.value);
4620
- return ce(b) !== b;
4638
+ return pe(b) !== b;
4621
4639
  } catch {
4622
4640
  return !1;
4623
4641
  }
4624
4642
  try {
4625
- return ce(e.icon) !== e.icon;
4643
+ return pe(e.icon) !== e.icon;
4626
4644
  } catch {
4627
4645
  return !1;
4628
4646
  }
4629
4647
  }), g = d(() => {
4630
4648
  if (typeof e.icon != "string")
4631
- return we(e.icon);
4649
+ return Oe(e.icon);
4632
4650
  if (["fontawesome", "bootstrap", "material"].includes(n.value))
4633
4651
  return "i";
4634
4652
  try {
4635
- const b = typeof r.value == "string" ? r.value : String(r.value), m = ce(b);
4653
+ const b = typeof r.value == "string" ? r.value : String(r.value), m = pe(b);
4636
4654
  return m !== b ? m : "i";
4637
4655
  } catch {
4638
4656
  return "i";
4639
4657
  }
4640
- }), h = d(() => a.value ? zt : o.value ? Bt : l.value ? kt : c.value ? Gt : N.value ? Dt : p.value ? g.value : "i"), y = d(() => e.customSize ? e.customSize : t[e.size]), w = d(() => {
4658
+ }), h = d(() => a.value ? Bt : o.value ? kt : l.value ? Gt : c.value ? Ft : z.value ? Mt : p.value ? g.value : "i"), _ = d(() => e.customSize ? e.customSize : t[e.size]), A = d(() => {
4641
4659
  const b = {};
4642
4660
  return p.value && e.customSize && (b.width = `${e.customSize}px`, b.height = `${e.customSize}px`), b;
4643
- }), x = d(() => e.customSize ? {
4661
+ }), E = d(() => e.customSize ? {
4644
4662
  fontSize: `${e.customSize}px`
4645
4663
  } : {}), O = d(() => a.value ? {
4646
4664
  icon: typeof r.value == "string" ? r.value.replace(/-outlined$|-rounded$|-sharp$/, "") : r.value,
@@ -4671,7 +4689,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4671
4689
  variant: e.variant,
4672
4690
  customSize: e.customSize
4673
4691
  // Set custom size without scaling
4674
- } : N.value ? {
4692
+ } : z.value ? {
4675
4693
  icon: D.value,
4676
4694
  size: e.size,
4677
4695
  variant: e.variant,
@@ -4679,28 +4697,28 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4679
4697
  basePath: e.basePath
4680
4698
  } : p.value ? {
4681
4699
  size: e.size,
4682
- width: y.value,
4683
- height: y.value,
4700
+ width: _.value,
4701
+ height: _.value,
4684
4702
  color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
4685
- } : {}), N = d(() => n.value === "svg"), D = d(() => !N.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
4686
- return (b, m) => i.useContainer ? (S(), j("div", ae({
4703
+ } : {}), z = d(() => n.value === "svg"), D = d(() => !z.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
4704
+ return (b, m) => i.useContainer ? (S(), j("div", oe({
4687
4705
  key: 0,
4688
4706
  class: ["vc-icon-container", `vc-icon-container--${i.size}`],
4689
- style: x.value,
4707
+ style: E.value,
4690
4708
  "aria-hidden": i.ariaLabel ? void 0 : "true",
4691
4709
  "aria-label": i.ariaLabel || void 0,
4692
4710
  role: i.ariaLabel ? "img" : void 0
4693
4711
  }, b.$attrs), [
4694
- (S(), X(fe(h.value), ae({
4712
+ (S(), ee(ge(h.value), oe({
4695
4713
  class: [
4696
4714
  "vc-icon",
4697
4715
  `vc-icon--${i.size}`,
4698
4716
  i.variant ? `vc-icon--${i.variant}` : "",
4699
4717
  !p.value && !a.value && !l.value && !o.value && !c.value ? i.icon.toLowerCase() : ""
4700
4718
  ],
4701
- style: w.value
4719
+ style: A.value
4702
4720
  }, O.value), null, 16, ["class", "style"]))
4703
- ], 16, Mt)) : (S(), X(fe(h.value), ae({
4721
+ ], 16, Lt)) : (S(), ee(ge(h.value), oe({
4704
4722
  key: 1,
4705
4723
  class: [
4706
4724
  "vc-icon",
@@ -4708,13 +4726,13 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4708
4726
  i.variant ? `vc-icon--${i.variant}` : "",
4709
4727
  !p.value && !a.value && !l.value && !o.value && !c.value ? i.icon.toLowerCase() : ""
4710
4728
  ],
4711
- style: w.value,
4729
+ style: A.value,
4712
4730
  "aria-hidden": i.ariaLabel ? void 0 : "true",
4713
4731
  "aria-label": i.ariaLabel || void 0,
4714
4732
  role: i.ariaLabel ? "img" : void 0
4715
4733
  }, { ...O.value, ...b.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
4716
4734
  }
4717
- }), Lt = { class: "vc-ai-agent-header" }, Jt = { class: "vc-ai-agent-header__icon" }, Wt = { class: "vc-ai-agent-header__wrapper" }, Vt = { class: "vc-ai-agent-header__content" }, Kt = { class: "vc-ai-agent-header__title" }, qt = { class: "vc-ai-agent-header__controls" }, Ht = /* @__PURE__ */ M({
4735
+ }), Jt = { class: "vc-ai-agent-header" }, Wt = { class: "vc-ai-agent-header__icon" }, Vt = { class: "vc-ai-agent-header__wrapper" }, Kt = { class: "vc-ai-agent-header__content" }, qt = { class: "vc-ai-agent-header__title" }, Ht = { class: "vc-ai-agent-header__controls" }, Zt = /* @__PURE__ */ L({
4718
4736
  __name: "VcAiAgentHeader",
4719
4737
  props: {
4720
4738
  title: {},
@@ -4723,79 +4741,79 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4723
4741
  },
4724
4742
  emits: ["close", "expand", "collapse"],
4725
4743
  setup(i) {
4726
- return (e, t) => (S(), j("div", Lt, [
4727
- R("div", Jt, [
4728
- W($e, {
4744
+ return (e, t) => (S(), j("div", Jt, [
4745
+ R("div", Wt, [
4746
+ K(Be, {
4729
4747
  width: 22,
4730
4748
  height: 24,
4731
4749
  "show-dots": ""
4732
4750
  })
4733
4751
  ]),
4734
- R("div", Wt, [
4735
- R("div", Vt, [
4736
- R("div", Kt, pe(i.title), 1)
4752
+ R("div", Vt, [
4753
+ R("div", Kt, [
4754
+ R("div", qt, be(i.title), 1)
4737
4755
  ])
4738
4756
  ]),
4739
- R("div", qt, [
4757
+ R("div", Ht, [
4740
4758
  i.isExpanded ? (S(), j("div", {
4741
4759
  key: 0,
4742
4760
  class: "vc-ai-agent-header__button",
4743
4761
  title: "Collapse",
4744
4762
  onClick: t[0] || (t[0] = (n) => e.$emit("collapse"))
4745
4763
  }, [
4746
- W(se(ie), { icon: "lucide-minus" })
4764
+ K(le(ue), { icon: "lucide-minus" })
4747
4765
  ])) : (S(), j("div", {
4748
4766
  key: 1,
4749
4767
  class: "vc-ai-agent-header__button",
4750
4768
  title: "Expand",
4751
4769
  onClick: t[1] || (t[1] = (n) => e.$emit("expand"))
4752
4770
  }, [
4753
- W(se(ie), { icon: "lucide-panel-top" })
4771
+ K(le(ue), { icon: "lucide-panel-top" })
4754
4772
  ])),
4755
4773
  R("div", {
4756
4774
  class: "vc-ai-agent-header__button",
4757
4775
  title: "Close",
4758
4776
  onClick: t[2] || (t[2] = (n) => e.$emit("close"))
4759
4777
  }, [
4760
- W(se(ie), { icon: "lucide-x" })
4778
+ K(le(ue), { icon: "lucide-x" })
4761
4779
  ])
4762
4780
  ])
4763
4781
  ]));
4764
4782
  }
4765
- }), Zt = { class: "vc-ai-agent-loader" }, Xt = { class: "vc-ai-agent-loader__content" }, Yt = { class: "vc-ai-agent-loader__logo" }, Qt = {
4783
+ }), Xt = { class: "vc-ai-agent-loader" }, Yt = { class: "vc-ai-agent-loader__content" }, Qt = { class: "vc-ai-agent-loader__logo" }, er = {
4766
4784
  key: 0,
4767
4785
  class: "vc-ai-agent-loader__text"
4768
- }, er = /* @__PURE__ */ M({
4786
+ }, tr = /* @__PURE__ */ L({
4769
4787
  __name: "VcAiAgentLoader",
4770
4788
  props: {
4771
4789
  text: {}
4772
4790
  },
4773
4791
  setup(i) {
4774
- return (e, t) => (S(), j("div", Zt, [
4775
- R("div", Xt, [
4776
- R("div", Yt, [
4777
- W($e, {
4792
+ return (e, t) => (S(), j("div", Xt, [
4793
+ R("div", Yt, [
4794
+ R("div", Qt, [
4795
+ K(Be, {
4778
4796
  width: 80,
4779
4797
  height: 87,
4780
4798
  animated: ""
4781
4799
  })
4782
4800
  ]),
4783
- i.text ? (S(), j("p", Qt, pe(i.text), 1)) : Z("", !0)
4801
+ i.text ? (S(), j("p", er, be(i.text), 1)) : Y("", !0)
4784
4802
  ])
4785
4803
  ]));
4786
4804
  }
4787
- }), tr = { class: "vc-ai-agent-iframe" }, rr = ["src"], nr = {
4805
+ }), rr = { class: "vc-ai-agent-iframe" }, nr = ["src"], ar = {
4788
4806
  key: 1,
4789
4807
  class: "vc-ai-agent-iframe__placeholder"
4790
- }, ar = /* @__PURE__ */ M({
4808
+ }, sr = /* @__PURE__ */ L({
4791
4809
  __name: "VcAiAgentIframe",
4792
4810
  props: {
4793
4811
  url: {}
4794
4812
  },
4795
4813
  emits: ["iframe-ready"],
4796
4814
  setup(i, { emit: e }) {
4797
- const t = $("ai-agent-iframe"), n = i, r = e, a = G(null), o = G(!0);
4798
- H(
4815
+ const t = B("ai-agent-iframe"), n = i, r = e, a = G(null), o = G(!0);
4816
+ X(
4799
4817
  a,
4800
4818
  (c) => {
4801
4819
  c && r("iframe-ready", c);
@@ -4805,18 +4823,18 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4805
4823
  const l = () => {
4806
4824
  o.value = !1, t.debug("Iframe loaded");
4807
4825
  };
4808
- return H(
4826
+ return X(
4809
4827
  () => n.url,
4810
4828
  () => {
4811
4829
  o.value = !0;
4812
4830
  }
4813
- ), (c, p) => (S(), j("div", tr, [
4814
- W(Ae, { name: "fade" }, {
4815
- default: Pe(() => [
4816
- o.value && i.url ? (S(), X(er, {
4831
+ ), (c, p) => (S(), j("div", rr, [
4832
+ K(Ie, { name: "fade" }, {
4833
+ default: Re(() => [
4834
+ o.value && i.url ? (S(), ee(tr, {
4817
4835
  key: 0,
4818
4836
  text: c.$t("AI_AGENT.LOADING")
4819
- }, null, 8, ["text"])) : Z("", !0)
4837
+ }, null, 8, ["text"])) : Y("", !0)
4820
4838
  ]),
4821
4839
  _: 1
4822
4840
  }),
@@ -4825,12 +4843,12 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4825
4843
  ref_key: "iframeRef",
4826
4844
  ref: a,
4827
4845
  src: i.url,
4828
- class: K(["vc-ai-agent-iframe__frame", { "vc-ai-agent-iframe__frame--loading": o.value }]),
4846
+ class: q(["vc-ai-agent-iframe__frame", { "vc-ai-agent-iframe__frame--loading": o.value }]),
4829
4847
  sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
4830
4848
  allow: "clipboard-read; clipboard-write",
4831
4849
  onLoad: l
4832
- }, null, 42, rr)) : (S(), j("div", nr, [
4833
- W(se(ie), {
4850
+ }, null, 42, nr)) : (S(), j("div", ar, [
4851
+ K(le(ue), {
4834
4852
  icon: "lucide-sparkles",
4835
4853
  size: "xl",
4836
4854
  class: "vc-ai-agent-iframe__placeholder-icon"
@@ -4839,30 +4857,30 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4839
4857
  ]))
4840
4858
  ]));
4841
4859
  }
4842
- }), sr = { class: "vc-ai-agent-panel__content" }, fn = /* @__PURE__ */ M({
4860
+ }), ir = { class: "vc-ai-agent-panel__content" }, pn = /* @__PURE__ */ L({
4843
4861
  __name: "VcAiAgentPanel",
4844
4862
  setup(i) {
4845
- const e = L(ve), t = L(vt, !1);
4863
+ const e = J(Ee), t = J(gt, !1);
4846
4864
  e || console.error("[VcAiAgentPanel] AiAgentService not provided");
4847
4865
  const n = d(
4848
4866
  () => e?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
4849
4867
  ), r = d(() => !t && (e?.isOpen.value ?? !1)), a = d(() => e?.isExpanded.value ?? !1), o = d(() => e?.totalItemsCount.value ?? 0), l = d(() => ({
4850
4868
  width: a.value ? `${n.value.expandedWidth ?? 500}px` : `${n.value.width ?? 362}px`
4851
- })), c = () => e?.closePanel(), p = () => e?.expandPanel(), g = () => e?.collapsePanel(), h = (y) => {
4852
- e?._setIframeRef(y);
4869
+ })), c = () => e?.closePanel(), p = () => e?.expandPanel(), g = () => e?.collapsePanel(), h = (_) => {
4870
+ e?._setIframeRef(_);
4853
4871
  };
4854
- return Fe(() => {
4872
+ return De(() => {
4855
4873
  e?._setIframeRef(null);
4856
- }), (y, w) => (S(), X(Ae, { name: "ai-panel-slide" }, {
4857
- default: Pe(() => [
4874
+ }), (_, A) => (S(), ee(Ie, { name: "ai-panel-slide" }, {
4875
+ default: Re(() => [
4858
4876
  r.value ? (S(), j("div", {
4859
4877
  key: 0,
4860
- class: K(["vc-ai-agent-panel", {
4878
+ class: q(["vc-ai-agent-panel", {
4861
4879
  "vc-ai-agent-panel--expanded": a.value
4862
4880
  }]),
4863
- style: Y(l.value)
4881
+ style: te(l.value)
4864
4882
  }, [
4865
- W(Ht, {
4883
+ K(Zt, {
4866
4884
  title: n.value.title,
4867
4885
  "is-expanded": a.value,
4868
4886
  "items-count": o.value,
@@ -4870,108 +4888,108 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4870
4888
  onExpand: p,
4871
4889
  onCollapse: g
4872
4890
  }, null, 8, ["title", "is-expanded", "items-count"]),
4873
- R("div", sr, [
4874
- W(ar, {
4891
+ R("div", ir, [
4892
+ K(sr, {
4875
4893
  url: n.value.url,
4876
4894
  onIframeReady: h
4877
4895
  }, null, 8, ["url"])
4878
4896
  ])
4879
- ], 6)) : Z("", !0)
4897
+ ], 6)) : Y("", !0)
4880
4898
  ]),
4881
4899
  _: 1
4882
4900
  }));
4883
4901
  }
4884
4902
  });
4885
4903
  export {
4886
- pr as $,
4887
- en as A,
4888
- ht as B,
4889
- Mr as C,
4890
- gt as D,
4891
- tn as E,
4892
- Lr as F,
4893
- Vr as G,
4894
- rn as H,
4895
- Jr as I,
4896
- Kr as J,
4897
- Nr as K,
4898
- pt as L,
4899
- kr as M,
4900
- jr as N,
4901
- $r as O,
4902
- Or as P,
4903
- tt as Q,
4904
- zr as R,
4905
- Tr as S,
4906
- mt as T,
4907
- dr as U,
4908
- qe as V,
4909
- Ir as W,
4910
- Fr as X,
4911
- fr as Y,
4904
+ mr as $,
4905
+ tn as A,
4906
+ dt as B,
4907
+ Lr as C,
4908
+ bt as D,
4909
+ rn as E,
4910
+ Jr as F,
4911
+ Kr as G,
4912
+ nn as H,
4913
+ Wr as I,
4914
+ qr as J,
4915
+ zr as K,
4916
+ mt as L,
4917
+ Gr as M,
4918
+ $r as N,
4919
+ Nr as O,
4920
+ Ir as P,
4921
+ rt as Q,
4922
+ Br as R,
4923
+ Cr as S,
4924
+ vt as T,
4925
+ fr as U,
4926
+ He as V,
4927
+ Rr as W,
4928
+ Dr as X,
4929
+ pr as Y,
4912
4930
  k as Z,
4913
- ie as _,
4914
- fn as a,
4915
- Pr as a0,
4916
- ft as a1,
4917
- dt as a2,
4918
- Qr as a3,
4919
- Ar as a4,
4920
- mr as a5,
4921
- Hr as a6,
4922
- Rr as a7,
4923
- vr as a8,
4924
- gr as a9,
4925
- cn as aA,
4926
- Br as aa,
4927
- br as ab,
4928
- He as ac,
4929
- vt as ad,
4930
- Ze as ae,
4931
- Ve as af,
4932
- qr as ag,
4933
- xr as ah,
4934
- Xe as ai,
4935
- Er as aj,
4936
- yr as ak,
4937
- Gr as al,
4938
- _r as am,
4939
- Ye as an,
4940
- Ur as ao,
4941
- Ke as ap,
4942
- Qe as aq,
4931
+ ue as _,
4932
+ pn as a,
4933
+ Or as a0,
4934
+ pt as a1,
4935
+ ft as a2,
4936
+ en as a3,
4937
+ Pr as a4,
4938
+ vr as a5,
4939
+ Zr as a6,
4940
+ jr as a7,
4941
+ gr as a8,
4942
+ br as a9,
4943
+ hn as aA,
4944
+ kr as aa,
4945
+ xr as ab,
4946
+ Ze as ac,
4947
+ gt as ad,
4948
+ Xe as ae,
4949
+ Ke as af,
4950
+ Hr as ag,
4951
+ Er as ah,
4952
+ Ye as ai,
4953
+ yr as aj,
4954
+ _r as ak,
4955
+ Fr as al,
4956
+ Ur as am,
4957
+ Qe as an,
4958
+ Tr as ao,
4959
+ qe as ap,
4960
+ et as aq,
4943
4961
  Sr as ar,
4944
- Dr as as,
4945
- et as at,
4946
- ot as au,
4947
- lt as av,
4948
- Cr as aw,
4949
- wr as ax,
4950
- Ot as ay,
4951
- ut as az,
4952
- ve as b,
4953
- dn as c,
4954
- $ as d,
4955
- Ue as e,
4956
- un as f,
4957
- Oe as g,
4958
- ct as h,
4959
- sn as i,
4960
- nn as j,
4961
- on as k,
4962
- Xr as l,
4963
- Zr as m,
4964
- At as n,
4965
- at as o,
4966
- ln as p,
4967
- Ie as q,
4968
- Re as r,
4969
- an as s,
4962
+ Mr as as,
4963
+ tt as at,
4964
+ lt as au,
4965
+ ut as av,
4966
+ wr as aw,
4967
+ Ar as ax,
4968
+ It as ay,
4969
+ ct as az,
4970
+ Ee as b,
4971
+ fn as c,
4972
+ B as d,
4973
+ Se as e,
4974
+ cn as f,
4975
+ je as g,
4976
+ ht as h,
4977
+ on as i,
4978
+ an as j,
4979
+ ln as k,
4980
+ Yr as l,
4981
+ Xr as m,
4982
+ Pt as n,
4983
+ st as o,
4984
+ un as p,
4985
+ $e as q,
4986
+ Ne as r,
4987
+ sn as s,
4970
4988
  St as t,
4971
- hn as u,
4972
- je as v,
4973
- Se as w,
4974
- Ct as x,
4975
- Yr as y,
4976
- Wr as z
4989
+ dn as u,
4990
+ ze as v,
4991
+ Ae as w,
4992
+ wt as x,
4993
+ Qr as y,
4994
+ Vr as z
4977
4995
  };