@vc-shell/framework 2.0.10-pr245.4d2a6c5 → 2.0.10-pr246.07f48ce

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/ai-agent/index.js +2 -2
  2. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-CThvtYtw.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-D077_c8I.js} +431 -426
  3. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-CThvtYtw.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-BA4FEAgZ.js → VcTableAdapter.vue_vue_type_style_index_0_lang-B3154ZmD.js} +2277 -2281
  5. package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-B3154ZmD.js.map +1 -0
  6. package/dist/chunks/{index-0btrtSam.js → index-DELXU1qy.js} +1 -1
  7. package/dist/chunks/{index-0btrtSam.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/index.d.ts +1 -0
  11. package/dist/core/blade-navigation/table-query-state/index.d.ts.map +1 -1
  12. package/dist/core/blade-navigation/table-query-state/useTableQueryState.d.ts +20 -0
  13. package/dist/core/blade-navigation/table-query-state/useTableQueryState.d.ts.map +1 -0
  14. package/dist/core/composables/useBlade/index.d.ts +2 -0
  15. package/dist/core/composables/useBlade/index.d.ts.map +1 -1
  16. package/dist/framework.js +708 -700
  17. package/dist/framework.js.map +1 -1
  18. package/dist/tsconfig.tsbuildinfo +1 -1
  19. package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts +3 -3
  20. package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
  21. package/dist/ui/components/organisms/vc-data-table/composables/useTableQueryPersistence.d.ts +8 -7
  22. package/dist/ui/components/organisms/vc-data-table/composables/useTableQueryPersistence.d.ts.map +1 -1
  23. package/dist/ui/composables/useDataTablePagination.d.ts +5 -0
  24. package/dist/ui/composables/useDataTablePagination.d.ts.map +1 -1
  25. package/dist/ui/index.js +2 -2
  26. package/package.json +4 -4
  27. package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-BA4FEAgZ.js.map +0 -1
@@ -1,11 +1,11 @@
1
- import { ref as G, computed as d, shallowRef as Be, watch as Z, getCurrentInstance as te, inject as J, isRef as ke, provide as Ae, defineComponent as L, openBlock as C, createElementBlock as j, createElementVNode as R, createCommentVNode as X, createStaticVNode as Ge, onMounted as ue, normalizeStyle as ee, normalizeClass as q, toDisplayString as ge, markRaw as Pe, createBlock as Q, resolveDynamicComponent as ve, mergeProps as ie, resolveComponent as fe, createVNode as K, unref as oe, Transition as Oe, withCtx as Ie, onUnmounted as Fe } from "vue";
2
- import { c as re } 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 ye = {
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 N(i) {
3256
- const e = { ...rt }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? ye[r] >= ye[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 N(i) {
3282
3282
  /**
3283
3283
  * Create a child logger with additional context
3284
3284
  */
3285
- child: (r) => N(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 N(i) {
3297
3297
  }
3298
3298
  };
3299
3299
  }
3300
- const Cr = N(), wr = {
3301
- core: N("core"),
3302
- ui: N("ui"),
3303
- shared: N("shared"),
3304
- plugins: N("plugins"),
3305
- services: N("services"),
3306
- composables: N("composables")
3307
- }, pe = N("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 = N(), 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 pe.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 = N(), 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 pe.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 = N(), wr = {
3341
3341
  try {
3342
3342
  o = await i.getExternalLoginProviders();
3343
3343
  } catch (l) {
3344
- pe.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,10 +3351,10 @@ const Cr = N(), wr = {
3351
3351
  signOut: r,
3352
3352
  getProviders: a
3353
3353
  };
3354
- }, be = "vc_auth_data", w = N("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(be);
3357
+ const i = localStorage.getItem(xe);
3358
3358
  if (i)
3359
3359
  return JSON.parse(i);
3360
3360
  } catch (i) {
@@ -3362,21 +3362,21 @@ function st() {
3362
3362
  }
3363
3363
  return null;
3364
3364
  }
3365
- function _e(i) {
3365
+ function Ue(i) {
3366
3366
  try {
3367
- w.debug("storeAuthData - Saving:", i), localStorage.setItem(be, JSON.stringify(i)), w.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
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(be);
3374
+ localStorage.removeItem(xe);
3375
3375
  } catch (i) {
3376
3376
  w.error("Failed to clear auth data:", i);
3377
3377
  }
3378
3378
  }
3379
- async function Ue(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",
@@ -3405,13 +3405,13 @@ async function Ue(i) {
3405
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, S) {
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
3411
  let T = !1;
3412
3412
  try {
3413
3413
  i.value = !0, T = await a.validatePasswordResetToken(m, {
3414
- token: S
3414
+ token: C
3415
3415
  });
3416
3416
  } catch {
3417
3417
  } finally {
@@ -3422,27 +3422,27 @@ function ot() {
3422
3422
  async function c(m) {
3423
3423
  return a.validatePassword(m);
3424
3424
  }
3425
- async function p(m, S, T) {
3425
+ async function p(m, C, T) {
3426
3426
  return a.resetPasswordByToken(m, {
3427
- newPassword: S,
3427
+ newPassword: C,
3428
3428
  token: T
3429
3429
  });
3430
3430
  }
3431
- async function g(m, S) {
3431
+ async function g(m, C) {
3432
3432
  w.debug("signIn - Entry point");
3433
3433
  try {
3434
3434
  i.value = !0;
3435
- const T = await a.login({ userName: m, password: S });
3435
+ const T = await a.login({ userName: m, password: C });
3436
3436
  if (w.debug("signIn - Cookie login completed:", T), !T.succeeded)
3437
3437
  return T;
3438
3438
  w.debug("signIn - Requesting token...");
3439
- const P = await Ue({
3439
+ const P = await Te({
3440
3440
  grant_type: "password",
3441
3441
  username: m,
3442
- password: S,
3442
+ password: C,
3443
3443
  scope: "offline_access"
3444
3444
  });
3445
- P && (t.value = P, _e(t.value), w.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
3448
  return e.value = F, T;
@@ -3462,7 +3462,7 @@ function ot() {
3462
3462
  }
3463
3463
  }
3464
3464
  async function h() {
3465
- w.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
3467
  let _ = null;
3468
3468
  async function A() {
@@ -3470,7 +3470,7 @@ function ot() {
3470
3470
  w.debug("loadUser - Entry point");
3471
3471
  try {
3472
3472
  i.value = !0, performance.mark("vc:auth-start");
3473
- const [m] = await Promise.all([a.getCurrentUser(), x()]);
3473
+ const [m] = await Promise.all([a.getCurrentUser(), b()]);
3474
3474
  e.value = m, performance.mark("vc:auth-done"), w.debug("User details loaded:", e.value);
3475
3475
  } catch (m) {
3476
3476
  w.error("loadUser failed:", m);
@@ -3483,19 +3483,19 @@ function ot() {
3483
3483
  async function E(m) {
3484
3484
  try {
3485
3485
  return i.value = !0, await a.requestPasswordReset(m), { succeeded: !0 };
3486
- } catch (S) {
3487
- return { succeeded: !1, error: S };
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, S) {
3492
+ async function O(m, C) {
3493
3493
  let T;
3494
3494
  try {
3495
3495
  i.value = !0;
3496
3496
  const P = {
3497
3497
  oldPassword: m,
3498
- newPassword: S
3498
+ newPassword: C
3499
3499
  };
3500
3500
  T = await a.changeCurrentUserPassword(P);
3501
3501
  } catch (P) {
@@ -3509,30 +3509,30 @@ function ot() {
3509
3509
  let m = null;
3510
3510
  try {
3511
3511
  m = await a.getLoginTypes();
3512
- } catch (S) {
3513
- throw w.error("getLoginType failed:", S), S;
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
- async function x() {
3519
- if (w.debug("getAccessToken - Entry point"), t.value || (t.value = st()), !t.value)
3518
+ async function b() {
3519
+ if (w.debug("getAccessToken - Entry point"), t.value || (t.value = it()), !t.value)
3520
3520
  return w.debug("getAccessToken - No auth data available"), null;
3521
- const m = Date.now(), S = t.value.expires_at, T = S ? m >= S - D : !1;
3521
+ const m = Date.now(), C = t.value.expires_at, T = C ? m >= C - D : !1;
3522
3522
  if (w.debug("getAccessToken - Token status:", {
3523
3523
  hasToken: !!t.value.access_token,
3524
- expiresAt: S ? new Date(S).toISOString() : "not set",
3524
+ expiresAt: C ? new Date(C).toISOString() : "not set",
3525
3525
  now: new Date(m).toISOString(),
3526
3526
  shouldRefresh: T,
3527
3527
  hasRefreshToken: !!t.value.refresh_token
3528
3528
  }), T && t.value.refresh_token) {
3529
3529
  w.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
3530
- const P = await Ue({
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
- P ? (P.refresh_token = P.refresh_token ?? t.value.refresh_token, t.value = P, _e(t.value), w.debug("getAccessToken - Token refreshed successfully, new expiry:", {
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
3536
  expiresAt: P.expires_at ? new Date(P.expires_at).toISOString() : "not set"
3537
3537
  })) : w.warn("getAccessToken - Failed to refresh token, returning existing token");
3538
3538
  }
@@ -3552,11 +3552,11 @@ function ot() {
3552
3552
  requestPasswordReset: E,
3553
3553
  changeUserPassword: O,
3554
3554
  getLoginType: z,
3555
- getAccessToken: x
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
- }, Re = 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"), xe = 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", ne = N("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", ne.debug("Panel opened"));
3586
+ i.value === "closed" && (i.value = "open", ae.debug("Panel opened"));
3587
3587
  }, a = () => {
3588
- i.value = "closed", e.value = !1, ne.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", ne.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", ne.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 me = N("ai-agent-context");
3612
- function Te(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,7 +3617,7 @@ function Te(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
3622
  const E = t();
3623
3623
  return E ? a.value.get(E.id) ?? {
@@ -3636,37 +3636,37 @@ function _t(i) {
3636
3636
  contextSuggestions: p,
3637
3637
  totalItemsCount: g,
3638
3638
  setContextData: (E, O, z, D) => {
3639
- const x = t()?.id || D;
3640
- return x ? E.length === 0 && !z ? (a.value.delete(x), me.debug(`Context cleared for blade: ${x}`), { cleared: !0 }) : (a.value.set(x, { items: E, type: O, suggestions: z }), me.debug(`Context set for blade: ${x}, items: ${E.length}, type: ${O}`), { cleared: !1 }) : (me.warn("Cannot set context data: no blade id available"), { cleared: !1 });
3639
+ const b = t()?.id || D;
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
3643
  const E = r ? await r() ?? void 0 : void 0;
3644
3644
  return {
3645
3645
  userId: e()?.id || "",
3646
3646
  locale: n(),
3647
- blade: Te(t()),
3647
+ blade: Ce(t()),
3648
3648
  contextType: c.value,
3649
- items: re(l.value),
3650
- suggestions: p.value ? re(p.value) : void 0,
3649
+ items: ne(l.value),
3650
+ suggestions: p.value ? ne(p.value) : void 0,
3651
3651
  accessToken: E
3652
3652
  };
3653
3653
  },
3654
3654
  buildUpdatePayload: async () => {
3655
3655
  const E = r ? await r() ?? void 0 : void 0;
3656
3656
  return {
3657
- blade: Te(t()),
3657
+ blade: Ce(t()),
3658
3658
  contextType: c.value,
3659
- items: re(l.value),
3660
- suggestions: p.value ? re(p.value) : void 0,
3659
+ items: ne(l.value),
3660
+ suggestions: p.value ? ne(p.value) : void 0,
3661
3661
  locale: n(),
3662
3662
  accessToken: E
3663
3663
  };
3664
3664
  }
3665
3665
  };
3666
3666
  }
3667
- const V = N("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();
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
3670
  function p(h, _) {
3671
3671
  switch (h) {
3672
3672
  case "NAVIGATE_TO_APP": {
@@ -3759,8 +3759,8 @@ function Ut(i) {
3759
3759
  }
3760
3760
  };
3761
3761
  }
3762
- const ae = N("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,12 +3769,12 @@ 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
@@ -3786,14 +3786,14 @@ function Tt(i) {
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 }), ae.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 }), ae.info("Chatbot ready, sent INIT_CONTEXT");
3795
- })) : (h.pendingInitContext.value = !0, ae.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
3796
- }), Z(h.iframeRef, () => A()), Z(
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
3797
  () => ({ currentBlade: _.value.currentBlade, items: _.value.items }),
3798
3798
  async () => {
3799
3799
  if (l) {
@@ -3810,14 +3810,14 @@ function Tt(i) {
3810
3810
  );
3811
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
3812
  h.setIframeRef(m), A();
3813
- }, x = (m, S, T, P) => {
3814
- const { cleared: F } = g.setContextData(m, S, T, P);
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
- }), ae.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,
@@ -3836,8 +3836,8 @@ function Tt(i) {
3836
3836
  c.value = { ...c.value, ...m };
3837
3837
  },
3838
3838
  // Communication
3839
- sendMessage: (m, S) => {
3840
- h.sendToIframe({ type: m, payload: S });
3839
+ sendMessage: (m, C) => {
3840
+ h.sendToIframe({ type: m, payload: C });
3841
3841
  },
3842
3842
  onMessage: h.onMessage,
3843
3843
  // Internal API
@@ -3845,13 +3845,10 @@ function Tt(i) {
3845
3845
  _setIframeRef: D,
3846
3846
  _startListening: h.startListening,
3847
3847
  _stopListening: h.stopListening,
3848
- _setContextData: x
3848
+ _setContextData: b
3849
3849
  };
3850
3850
  }
3851
- let je, $e, Ne, St;
3852
- function nn(i) {
3853
- je = i;
3854
- }
3851
+ let $e, Ne, ze, St;
3855
3852
  function an(i) {
3856
3853
  $e = i;
3857
3854
  }
@@ -3859,12 +3856,15 @@ function sn(i) {
3859
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
3864
  function Se(i, e) {
3865
3865
  if (e.length === 0)
3866
3866
  return { path: i ? `/${i}` : "/", query: {} };
3867
- const t = e[0], n = Ce(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 Se(i, e) {
3873
3873
  }
3874
3874
  let a = i ? `/${i}` : "";
3875
3875
  if (n && (a += `/${n}`), r) {
3876
- const l = Ce(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 Se(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 Ce(i) {
3892
+ function we(i) {
3893
3893
  if (i)
3894
3894
  return i.replace(/^\/+|\/+$/g, "") || void 0;
3895
3895
  }
3896
- function we(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 } = Se(we(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 } = Se(we(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 = (te() ? J(Re, void 0) : void 0) ?? $e, e = (te() ? J(ct, void 0) : void 0) ?? Ne;
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 = te() ? J(ht, void 0) : void 0, a = te() ? J(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 b = je?.router;
3927
- return b && (o = Ct(b, 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)), _ = 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));
3930
- let O = !1;
3931
- function z(b) {
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(b) ? b : G(b);
3940
- Ae(dt, B);
3941
- }
3942
- async function D(b) {
3943
- const { isWorkspace: B, ...de } = b;
3944
- if (B)
3945
- await t.openWorkspace(de);
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 Ee = r?.value.id;
3948
- Ee ? await t.openBlade({ ...de, parentId: Ee }) : await t.openBlade(de);
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 x() {
3956
+ async function m() {
3953
3957
  r || I("closeSelf()");
3954
- const b = await t.closeBlade(r.value.id);
3955
- return b || l()?.syncUrlReplace(), b;
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 S(b) {
3964
+ async function T(x) {
3961
3965
  r || I("replaceWith()"), await t.replaceCurrentBlade({
3962
- ...b,
3966
+ ...x,
3963
3967
  parentId: r.value.parentId
3964
3968
  }), t.activeBlade.value?.url && l()?.syncUrlReplace();
3965
3969
  }
3966
- async function T(b) {
3970
+ async function P(x) {
3967
3971
  r || I("coverWith()"), await t.coverCurrentBlade({
3968
- ...b,
3972
+ ...x,
3969
3973
  parentId: r.value.parentId
3970
3974
  }), t.activeBlade.value?.url && l()?.syncUrlPush();
3971
3975
  }
3972
- async function P(b, B) {
3973
- return r || I("callParent()"), n.callParent(r.value.id, b, B);
3976
+ async function F(x, N) {
3977
+ return r || I("callParent()"), n.callParent(r.value.id, x, N);
3974
3978
  }
3975
- function F(b) {
3976
- r || I("exposeToChildren()"), n.exposeToChildren(r.value.id, b);
3979
+ function he(x) {
3980
+ r || I("exposeToChildren()"), n.exposeToChildren(r.value.id, x);
3977
3981
  }
3978
- function ce(b) {
3979
- r || I("onBeforeClose()"), t.registerBeforeClose(r.value.id, b);
3982
+ function de(x) {
3983
+ r || I("onBeforeClose()"), t.registerBeforeClose(r.value.id, x);
3980
3984
  }
3981
- function he(b) {
3982
- r || I("setError()"), t.setBladeError(r.value.id, b);
3985
+ function u(x) {
3986
+ r || I("setError()"), t.setBladeError(r.value.id, x);
3983
3987
  }
3984
- function u() {
3988
+ function f() {
3985
3989
  r || I("clearError()"), t.clearBladeError(r.value.id);
3986
3990
  }
3987
- let f = 0;
3988
- function v(b) {
3991
+ let v = 0;
3992
+ function y(x) {
3989
3993
  a || I("addBanner()");
3990
- const B = `banner-${r.value.id}-${++f}`;
3994
+ const N = `banner-${r.value.id}-${++v}`;
3991
3995
  return a.value.push({
3992
- ...b,
3993
- id: B,
3994
- dismissible: b.dismissible ?? !1
3995
- }), B;
3996
+ ...x,
3997
+ id: N,
3998
+ dismissible: x.dismissible ?? !1
3999
+ }), N;
3996
4000
  }
3997
- function y(b) {
3998
- a || I("removeBanner()"), a.value = a.value.filter((B) => B.id !== b);
4001
+ function U(x) {
4002
+ a || I("removeBanner()"), a.value = a.value.filter((N) => N.id !== x);
3999
4003
  }
4000
- function U() {
4001
- a || I("clearBanners()"), a.value = a.value.filter((b) => b._system);
4004
+ function $() {
4005
+ a || I("clearBanners()"), a.value = a.value.filter((x) => x._system);
4002
4006
  }
4003
- let $ = !1, M = !1;
4004
- function Y(b) {
4005
- if (r || I("onActivated()"), $) {
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
- $ = !0, Z(A, (B) => {
4010
- B && b();
4013
+ M = !0, X(A, (N) => {
4014
+ N && x();
4011
4015
  });
4012
4016
  }
4013
- function W(b) {
4014
- if (r || I("onDeactivated()"), M) {
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
- M = !0, Z(A, (B) => {
4019
- B || b();
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
4032
  closable: _,
4028
4033
  expanded: A,
4029
4034
  name: E,
4030
- provideBladeData: z,
4031
- openBlade: D,
4032
- closeSelf: x,
4033
- closeChildren: m,
4034
- replaceWith: S,
4035
- coverWith: T,
4036
- callParent: P,
4037
- exposeToChildren: F,
4038
- onBeforeClose: ce,
4039
- onActivated: Y,
4040
- onDeactivated: W,
4041
- setError: he,
4042
- clearError: u,
4043
- addBanner: v,
4044
- removeBanner: y,
4045
- clearBanners: U
4035
+ provideBladeData: D,
4036
+ openBlade: b,
4037
+ closeSelf: m,
4038
+ closeChildren: C,
4039
+ replaceWith: T,
4040
+ coverWith: P,
4041
+ callParent: F,
4042
+ exposeToChildren: he,
4043
+ onBeforeClose: de,
4044
+ onActivated: W,
4045
+ onDeactivated: Q,
4046
+ setError: u,
4047
+ clearError: f,
4048
+ addBanner: y,
4049
+ removeBanner: U,
4050
+ clearBanners: $
4046
4051
  };
4047
4052
  }
4048
- let Pt = 0;
4049
- function se() {
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];
@@ -4085,7 +4090,7 @@ function un(i, e) {
4085
4090
  }
4086
4091
  _([...t.value]);
4087
4092
  const y = {
4088
- id: se(),
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
@@ -4109,7 +4114,7 @@ function un(i, e) {
4109
4114
  return;
4110
4115
  _(y);
4111
4116
  const U = {
4112
- id: se(),
4117
+ id: ie(),
4113
4118
  name: u.name,
4114
4119
  url: g(u.name),
4115
4120
  param: u.param,
@@ -4148,7 +4153,7 @@ function un(i, e) {
4148
4153
  _(y);
4149
4154
  }
4150
4155
  const U = {
4151
- id: se(),
4156
+ id: ie(),
4152
4157
  name: u.name,
4153
4158
  url: g(u.name),
4154
4159
  param: u.param,
@@ -4176,7 +4181,7 @@ function un(i, e) {
4176
4181
  _(y);
4177
4182
  }
4178
4183
  const U = {
4179
- id: se(),
4184
+ id: ie(),
4180
4185
  name: u.name,
4181
4186
  url: g(u.name),
4182
4187
  param: u.param,
@@ -4187,7 +4192,7 @@ function un(i, e) {
4187
4192
  }, $ = t.value.slice(0, v);
4188
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
- async function x(u) {
4195
+ async function b(u) {
4191
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);
@@ -4196,7 +4201,7 @@ function un(i, e) {
4196
4201
  function m(u, f) {
4197
4202
  n.set(u, f);
4198
4203
  }
4199
- function S(u) {
4204
+ function C(u) {
4200
4205
  n.delete(u);
4201
4206
  }
4202
4207
  function T(u, f) {
@@ -4217,19 +4222,19 @@ function un(i, e) {
4217
4222
  const y = [...t.value];
4218
4223
  y[v] = { ...y[v], title: f }, t.value = y;
4219
4224
  }
4220
- function ce(u, f) {
4225
+ function he(u, f) {
4221
4226
  const v = t.value.findIndex((W) => W.id === u);
4222
4227
  if (v === -1) return;
4223
4228
  const y = t.value[v].query ?? {}, U = { ...y };
4224
- for (const [W, b] of Object.entries(f))
4225
- b === "" || b == null ? delete U[W] : U[W] = b;
4229
+ for (const [W, Q] of Object.entries(f))
4230
+ Q === "" || Q == null ? delete U[W] : U[W] = Q;
4226
4231
  const $ = Object.keys(y), M = Object.keys(U);
4227
4232
  if ($.length === M.length && M.every((W) => y[W] === U[W]))
4228
4233
  return;
4229
- const Y = [...t.value];
4230
- Y[v] = { ...Y[v], query: U }, t.value = Y;
4234
+ const H = [...t.value];
4235
+ H[v] = { ...H[v], query: U }, t.value = H;
4231
4236
  }
4232
- function he(u) {
4237
+ function de(u) {
4233
4238
  for (const f of t.value)
4234
4239
  p(f.id);
4235
4240
  t.value = u;
@@ -4241,27 +4246,27 @@ function un(i, e) {
4241
4246
  openWorkspace: A,
4242
4247
  openBlade: E,
4243
4248
  closeBlade: O,
4244
- closeChildren: x,
4249
+ closeChildren: b,
4245
4250
  replaceCurrentBlade: z,
4246
4251
  coverCurrentBlade: D,
4247
4252
  registerBeforeClose: m,
4248
- unregisterBeforeClose: S,
4253
+ unregisterBeforeClose: C,
4249
4254
  setBladeError: T,
4250
4255
  clearBladeError: P,
4251
4256
  setBladeTitle: F,
4252
- updateBladeQuery: ce,
4253
- _restoreStack: he
4257
+ updateBladeQuery: he,
4258
+ _restoreStack: de
4254
4259
  };
4255
4260
  }
4256
- function Ot() {
4257
- const i = J(Re);
4261
+ function It() {
4262
+ const i = J(je);
4258
4263
  if (!i)
4259
4264
  throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
4260
4265
  return i;
4261
4266
  }
4262
- const H = N("use-ai-agent");
4263
- function cn(i) {
4264
- const e = J(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({
4265
4270
  userGetter: () => {
4266
4271
  if (t.value)
4267
4272
  return {
@@ -4285,35 +4290,35 @@ function cn(i) {
4285
4290
  tokenGetter: n,
4286
4291
  navigateToBlade: (g, h, _) => {
4287
4292
  r({ name: g, param: h, options: _ }).then(() => {
4288
- H.debug(`Navigated to blade: ${g}`);
4293
+ Z.debug(`Navigated to blade: ${g}`);
4289
4294
  }).catch((A) => {
4290
- H.warn(`Blade not found or cannot be opened: ${g}`, A);
4295
+ Z.warn(`Blade not found or cannot be opened: ${g}`, A);
4291
4296
  });
4292
4297
  },
4293
4298
  initialConfig: i?.config,
4294
4299
  isEmbedded: l
4295
4300
  });
4296
- if (Ae(xe, c), H.debug("AiAgentService provided"), i?.addGlobalToolbarButton ?? !0) {
4297
- const g = J(mt, null);
4301
+ if (Pe(Ee, c), Z.debug("AiAgentService provided"), i?.addGlobalToolbarButton ?? !0) {
4302
+ const g = J(vt, null);
4298
4303
  g ? (g.registerToolbarItem(
4299
4304
  {
4300
- id: bt,
4301
- icon: xt,
4302
- title: Et,
4305
+ id: xt,
4306
+ icon: Et,
4307
+ title: yt,
4303
4308
  clickHandler: () => {
4304
4309
  c.togglePanel();
4305
4310
  }
4306
4311
  },
4307
4312
  "*"
4308
4313
  // Wildcard for all blades
4309
- ), H.debug("Global AI toolbar button registered with wildcard '*'")) : H.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");
4310
4315
  }
4311
4316
  return c;
4312
4317
  }
4313
- function hn() {
4314
- const i = J(xe);
4318
+ function dn() {
4319
+ const i = J(Ee);
4315
4320
  if (!i) {
4316
- H.error("AiAgentService not found. Did you forget to call provideAiAgentService()?");
4321
+ Z.error("AiAgentService not found. Did you forget to call provideAiAgentService()?");
4317
4322
  return;
4318
4323
  }
4319
4324
  return {
@@ -4337,7 +4342,7 @@ function hn() {
4337
4342
  onMessage: i.onMessage
4338
4343
  };
4339
4344
  }
4340
- function dn(i) {
4345
+ function fn(i) {
4341
4346
  return {
4342
4347
  id: "ai-agent-toggle",
4343
4348
  icon: i?.icon ?? "lucide-sparkles",
@@ -4347,11 +4352,11 @@ function dn(i) {
4347
4352
  }
4348
4353
  };
4349
4354
  }
4350
- const It = ["width", "height"], Rt = ["clip-path"], jt = {
4355
+ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
4351
4356
  key: 1,
4352
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",
4353
4358
  fill: "url(#virto-oz-gradient-animated)"
4354
- }, $t = ["id"], Nt = {
4359
+ }, Nt = ["id"], zt = {
4355
4360
  key: 1,
4356
4361
  id: "virto-oz-gradient-animated",
4357
4362
  gradientUnits: "userSpaceOnUse",
@@ -4359,7 +4364,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4359
4364
  y1: "0",
4360
4365
  x2: "99",
4361
4366
  y2: "108"
4362
- }, ze = /* @__PURE__ */ L({
4367
+ }, Be = /* @__PURE__ */ L({
4363
4368
  __name: "VcVirtoOzLogo",
4364
4369
  props: {
4365
4370
  width: { default: 22 },
@@ -4368,7 +4373,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4368
4373
  },
4369
4374
  setup(i) {
4370
4375
  const e = d(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
4371
- return (t, n) => (C(), j("svg", {
4376
+ return (t, n) => (S(), j("svg", {
4372
4377
  width: i.width,
4373
4378
  height: i.height,
4374
4379
  viewBox: "0 0 99 108",
@@ -4380,7 +4385,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4380
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",
4381
4386
  fill: "white"
4382
4387
  }, null, -1)),
4383
- i.animated ? (C(), j("path", jt)) : (C(), j("g", {
4388
+ i.animated ? (S(), j("path", $t)) : (S(), j("g", {
4384
4389
  key: 0,
4385
4390
  "clip-path": `url(#${e.value})`
4386
4391
  }, [...n[0] || (n[0] = [
@@ -4405,7 +4410,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4405
4410
  })
4406
4411
  ])
4407
4412
  ], -1)
4408
- ])], 8, Rt)),
4413
+ ])], 8, jt)),
4409
4414
  n[4] || (n[4] = R("path", {
4410
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",
4411
4416
  fill: "white"
@@ -4432,19 +4437,19 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4432
4437
  fill: "#6C6C6C"
4433
4438
  }, null, -1)),
4434
4439
  R("defs", null, [
4435
- i.animated ? X("", !0) : (C(), j("clipPath", {
4440
+ i.animated ? Y("", !0) : (S(), j("clipPath", {
4436
4441
  key: 0,
4437
4442
  id: e.value
4438
4443
  }, [...n[1] || (n[1] = [
4439
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)
4440
- ])], 8, $t)),
4441
- i.animated ? (C(), j("linearGradient", Nt, [...n[2] || (n[2] = [
4442
- 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)
4443
- ])])) : X("", !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)
4444
4449
  ])
4445
- ], 8, It));
4450
+ ], 8, Rt));
4446
4451
  }
4447
- }), zt = /* @__PURE__ */ L({
4452
+ }), Bt = /* @__PURE__ */ L({
4448
4453
  __name: "vc-material-icon",
4449
4454
  props: {
4450
4455
  icon: {},
@@ -4455,19 +4460,19 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4455
4460
  },
4456
4461
  setup(i) {
4457
4462
  const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
4458
- return ue(() => {
4459
- }), (r, a) => (C(), j("span", {
4463
+ return ce(() => {
4464
+ }), (r, a) => (S(), j("span", {
4460
4465
  class: q([
4461
4466
  "vc-material-icon",
4462
4467
  "material-symbols-" + i.type,
4463
4468
  !t.value && `vc-material-icon--${i.size}`,
4464
4469
  i.variant ? `vc-material-icon--${i.variant}` : ""
4465
4470
  ]),
4466
- style: ee(n.value),
4471
+ style: te(n.value),
4467
4472
  "aria-hidden": "true"
4468
- }, ge(i.icon), 7));
4473
+ }, be(i.icon), 7));
4469
4474
  }
4470
- }), Bt = /* @__PURE__ */ L({
4475
+ }), kt = /* @__PURE__ */ L({
4471
4476
  __name: "vc-bootstrap-icon",
4472
4477
  props: {
4473
4478
  icon: {},
@@ -4477,21 +4482,21 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4477
4482
  },
4478
4483
  setup(i) {
4479
4484
  const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
4480
- ue(() => {
4485
+ ce(() => {
4481
4486
  });
4482
4487
  const r = d(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
4483
- return (a, o) => (C(), j("i", {
4488
+ return (a, o) => (S(), j("i", {
4484
4489
  class: q([
4485
4490
  "vc-bootstrap-icon",
4486
4491
  !t.value && `vc-bootstrap-icon--${i.size}`,
4487
4492
  r.value,
4488
4493
  i.variant ? `vc-bootstrap-icon--${i.variant}` : ""
4489
4494
  ]),
4490
- style: ee(n.value),
4495
+ style: te(n.value),
4491
4496
  "aria-hidden": "true"
4492
4497
  }, null, 6));
4493
4498
  }
4494
- }), kt = /* @__PURE__ */ L({
4499
+ }), Gt = /* @__PURE__ */ L({
4495
4500
  __name: "vc-lucide-icon",
4496
4501
  props: {
4497
4502
  icon: {},
@@ -4501,18 +4506,18 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4501
4506
  customSize: {}
4502
4507
  },
4503
4508
  setup(i) {
4504
- const e = N("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(() => {
4505
4510
  if (!t.icon) return "HelpCircleIcon";
4506
4511
  let l = t.icon;
4507
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";
4508
4513
  }), a = d(() => {
4509
- const l = r.value, c = Le[l];
4510
- return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : Pe(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);
4511
4516
  }), o = d(() => n.value && t.customSize ? {
4512
4517
  width: `${t.customSize}px`,
4513
4518
  height: `${t.customSize}px`
4514
4519
  } : {});
4515
- return (l, c) => a.value ? (C(), Q(ve(a.value), {
4520
+ return (l, c) => a.value ? (S(), ee(ge(a.value), {
4516
4521
  key: 0,
4517
4522
  "stroke-width": t.strokeWidth,
4518
4523
  class: q([
@@ -4520,16 +4525,16 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4520
4525
  !n.value && `vc-lucide-icon--${i.size}`,
4521
4526
  i.variant ? `vc-lucide-icon--${i.variant}` : ""
4522
4527
  ]),
4523
- style: ee(o.value),
4528
+ style: te(o.value),
4524
4529
  "aria-hidden": "true"
4525
- }, null, 8, ["stroke-width", "class", "style"])) : (C(), j("span", {
4530
+ }, null, 8, ["stroke-width", "class", "style"])) : (S(), j("span", {
4526
4531
  key: 1,
4527
4532
  class: q(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
4528
4533
  }, [...c[0] || (c[0] = [
4529
4534
  R("i", { class: "vc-lucide-icon__fallback" }, null, -1)
4530
4535
  ])], 2));
4531
4536
  }
4532
- }), Gt = /* @__PURE__ */ L({
4537
+ }), Ft = /* @__PURE__ */ L({
4533
4538
  __name: "vc-fontawesome-icon",
4534
4539
  props: {
4535
4540
  icon: {},
@@ -4539,21 +4544,21 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4539
4544
  },
4540
4545
  setup(i) {
4541
4546
  const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
4542
- ue(() => {
4547
+ ce(() => {
4543
4548
  });
4544
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}`);
4545
- return (a, o) => (C(), j("i", {
4550
+ return (a, o) => (S(), j("i", {
4546
4551
  class: q([
4547
4552
  "vc-fa-icon",
4548
4553
  !t.value && `vc-fa-icon--${i.size}`,
4549
4554
  r.value,
4550
4555
  i.variant ? `vc-fa-icon--${i.variant}` : ""
4551
4556
  ]),
4552
- style: ee(n.value),
4557
+ style: te(n.value),
4553
4558
  "aria-hidden": "true"
4554
4559
  }, null, 6));
4555
4560
  }
4556
- }), Ft = ["xlink:href"], Dt = /* @__PURE__ */ L({
4561
+ }), Dt = ["xlink:href"], Mt = /* @__PURE__ */ L({
4557
4562
  inheritAttrs: !1,
4558
4563
  __name: "vc-svg-icon",
4559
4564
  props: {
@@ -4578,18 +4583,18 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4578
4583
  const a = {};
4579
4584
  return e.customSize && (a.width = `${e.customSize}px`, a.height = `${e.customSize}px`), e.strokeWidth && (a.strokeWidth = `${e.strokeWidth}`), a;
4580
4585
  });
4581
- return (a, o) => (C(), j("svg", ie({
4586
+ return (a, o) => (S(), j("svg", oe({
4582
4587
  xmlns: "http://www.w3.org/2000/svg",
4583
4588
  class: ["vc-svg-icon", !t.value && `vc-svg-icon--${i.size}`, i.variant ? `vc-svg-icon--${i.variant}` : ""],
4584
4589
  style: r.value
4585
4590
  }, a.$attrs), [
4586
- n.value ? (C(), j("use", {
4591
+ n.value ? (S(), j("use", {
4587
4592
  key: 0,
4588
4593
  "xlink:href": n.value
4589
- }, null, 8, Ft)) : X("", !0)
4594
+ }, null, 8, Dt)) : Y("", !0)
4590
4595
  ], 16));
4591
4596
  }
4592
- }), Mt = ["aria-hidden", "aria-label", "role"], le = /* @__PURE__ */ L({
4597
+ }), Lt = ["aria-hidden", "aria-label", "role"], ue = /* @__PURE__ */ L({
4593
4598
  __name: "vc-icon",
4594
4599
  props: {
4595
4600
  icon: { default: "lucide-square" },
@@ -4602,7 +4607,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4602
4607
  },
4603
4608
  setup(i) {
4604
4609
  const e = i;
4605
- ue(() => {
4610
+ ce(() => {
4606
4611
  });
4607
4612
  const t = {
4608
4613
  xs: 12,
@@ -4618,8 +4623,8 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4618
4623
  if (n.value === "material" && e.icon.startsWith("material-"))
4619
4624
  return e.icon.replace(/^material-/, "");
4620
4625
  if (n.value === "lucide" && e.icon.startsWith("lucide-")) {
4621
- const x = e.icon.replace(/^lucide-/, "");
4622
- return x.endsWith("Icon") ? x : `${x}Icon`;
4626
+ const b = e.icon.replace(/^lucide-/, "");
4627
+ return b.endsWith("Icon") ? b : `${b}Icon`;
4623
4628
  }
4624
4629
  return e.icon;
4625
4630
  }), a = d(() => n.value === "material"), o = d(() => n.value === "bootstrap"), l = d(() => n.value === "lucide"), c = d(() => n.value === "fontawesome"), p = d(() => {
@@ -4629,30 +4634,30 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4629
4634
  return !1;
4630
4635
  if (l.value)
4631
4636
  try {
4632
- const x = typeof r.value == "string" ? r.value : String(r.value);
4633
- return fe(x) !== x;
4637
+ const b = typeof r.value == "string" ? r.value : String(r.value);
4638
+ return pe(b) !== b;
4634
4639
  } catch {
4635
4640
  return !1;
4636
4641
  }
4637
4642
  try {
4638
- return fe(e.icon) !== e.icon;
4643
+ return pe(e.icon) !== e.icon;
4639
4644
  } catch {
4640
4645
  return !1;
4641
4646
  }
4642
4647
  }), g = d(() => {
4643
4648
  if (typeof e.icon != "string")
4644
- return Pe(e.icon);
4649
+ return Oe(e.icon);
4645
4650
  if (["fontawesome", "bootstrap", "material"].includes(n.value))
4646
4651
  return "i";
4647
4652
  try {
4648
- const x = typeof r.value == "string" ? r.value : String(r.value), m = fe(x);
4649
- return m !== x ? m : "i";
4653
+ const b = typeof r.value == "string" ? r.value : String(r.value), m = pe(b);
4654
+ return m !== b ? m : "i";
4650
4655
  } catch {
4651
4656
  return "i";
4652
4657
  }
4653
- }), h = d(() => a.value ? zt : o.value ? Bt : l.value ? kt : c.value ? Gt : z.value ? Dt : p.value ? g.value : "i"), _ = d(() => e.customSize ? e.customSize : t[e.size]), A = d(() => {
4654
- const x = {};
4655
- return p.value && e.customSize && (x.width = `${e.customSize}px`, x.height = `${e.customSize}px`), x;
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(() => {
4659
+ const b = {};
4660
+ return p.value && e.customSize && (b.width = `${e.customSize}px`, b.height = `${e.customSize}px`), b;
4656
4661
  }), E = d(() => e.customSize ? {
4657
4662
  fontSize: `${e.customSize}px`
4658
4663
  } : {}), O = d(() => a.value ? {
@@ -4696,15 +4701,15 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4696
4701
  height: _.value,
4697
4702
  color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
4698
4703
  } : {}), z = d(() => n.value === "svg"), D = d(() => !z.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
4699
- return (x, m) => i.useContainer ? (C(), j("div", ie({
4704
+ return (b, m) => i.useContainer ? (S(), j("div", oe({
4700
4705
  key: 0,
4701
4706
  class: ["vc-icon-container", `vc-icon-container--${i.size}`],
4702
4707
  style: E.value,
4703
4708
  "aria-hidden": i.ariaLabel ? void 0 : "true",
4704
4709
  "aria-label": i.ariaLabel || void 0,
4705
4710
  role: i.ariaLabel ? "img" : void 0
4706
- }, x.$attrs), [
4707
- (C(), Q(ve(h.value), ie({
4711
+ }, b.$attrs), [
4712
+ (S(), ee(ge(h.value), oe({
4708
4713
  class: [
4709
4714
  "vc-icon",
4710
4715
  `vc-icon--${i.size}`,
@@ -4713,7 +4718,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4713
4718
  ],
4714
4719
  style: A.value
4715
4720
  }, O.value), null, 16, ["class", "style"]))
4716
- ], 16, Mt)) : (C(), Q(ve(h.value), ie({
4721
+ ], 16, Lt)) : (S(), ee(ge(h.value), oe({
4717
4722
  key: 1,
4718
4723
  class: [
4719
4724
  "vc-icon",
@@ -4725,9 +4730,9 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4725
4730
  "aria-hidden": i.ariaLabel ? void 0 : "true",
4726
4731
  "aria-label": i.ariaLabel || void 0,
4727
4732
  role: i.ariaLabel ? "img" : void 0
4728
- }, { ...O.value, ...x.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
4733
+ }, { ...O.value, ...b.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
4729
4734
  }
4730
- }), 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__ */ L({
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({
4731
4736
  __name: "VcAiAgentHeader",
4732
4737
  props: {
4733
4738
  title: {},
@@ -4736,79 +4741,79 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4736
4741
  },
4737
4742
  emits: ["close", "expand", "collapse"],
4738
4743
  setup(i) {
4739
- return (e, t) => (C(), j("div", Lt, [
4740
- R("div", Jt, [
4741
- K(ze, {
4744
+ return (e, t) => (S(), j("div", Jt, [
4745
+ R("div", Wt, [
4746
+ K(Be, {
4742
4747
  width: 22,
4743
4748
  height: 24,
4744
4749
  "show-dots": ""
4745
4750
  })
4746
4751
  ]),
4747
- R("div", Wt, [
4748
- R("div", Vt, [
4749
- R("div", Kt, ge(i.title), 1)
4752
+ R("div", Vt, [
4753
+ R("div", Kt, [
4754
+ R("div", qt, be(i.title), 1)
4750
4755
  ])
4751
4756
  ]),
4752
- R("div", qt, [
4753
- i.isExpanded ? (C(), j("div", {
4757
+ R("div", Ht, [
4758
+ i.isExpanded ? (S(), j("div", {
4754
4759
  key: 0,
4755
4760
  class: "vc-ai-agent-header__button",
4756
4761
  title: "Collapse",
4757
4762
  onClick: t[0] || (t[0] = (n) => e.$emit("collapse"))
4758
4763
  }, [
4759
- K(oe(le), { icon: "lucide-minus" })
4760
- ])) : (C(), j("div", {
4764
+ K(le(ue), { icon: "lucide-minus" })
4765
+ ])) : (S(), j("div", {
4761
4766
  key: 1,
4762
4767
  class: "vc-ai-agent-header__button",
4763
4768
  title: "Expand",
4764
4769
  onClick: t[1] || (t[1] = (n) => e.$emit("expand"))
4765
4770
  }, [
4766
- K(oe(le), { icon: "lucide-panel-top" })
4771
+ K(le(ue), { icon: "lucide-panel-top" })
4767
4772
  ])),
4768
4773
  R("div", {
4769
4774
  class: "vc-ai-agent-header__button",
4770
4775
  title: "Close",
4771
4776
  onClick: t[2] || (t[2] = (n) => e.$emit("close"))
4772
4777
  }, [
4773
- K(oe(le), { icon: "lucide-x" })
4778
+ K(le(ue), { icon: "lucide-x" })
4774
4779
  ])
4775
4780
  ])
4776
4781
  ]));
4777
4782
  }
4778
- }), 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 = {
4779
4784
  key: 0,
4780
4785
  class: "vc-ai-agent-loader__text"
4781
- }, er = /* @__PURE__ */ L({
4786
+ }, tr = /* @__PURE__ */ L({
4782
4787
  __name: "VcAiAgentLoader",
4783
4788
  props: {
4784
4789
  text: {}
4785
4790
  },
4786
4791
  setup(i) {
4787
- return (e, t) => (C(), j("div", Zt, [
4788
- R("div", Xt, [
4789
- R("div", Yt, [
4790
- K(ze, {
4792
+ return (e, t) => (S(), j("div", Xt, [
4793
+ R("div", Yt, [
4794
+ R("div", Qt, [
4795
+ K(Be, {
4791
4796
  width: 80,
4792
4797
  height: 87,
4793
4798
  animated: ""
4794
4799
  })
4795
4800
  ]),
4796
- i.text ? (C(), j("p", Qt, ge(i.text), 1)) : X("", !0)
4801
+ i.text ? (S(), j("p", er, be(i.text), 1)) : Y("", !0)
4797
4802
  ])
4798
4803
  ]));
4799
4804
  }
4800
- }), tr = { class: "vc-ai-agent-iframe" }, rr = ["src"], nr = {
4805
+ }), rr = { class: "vc-ai-agent-iframe" }, nr = ["src"], ar = {
4801
4806
  key: 1,
4802
4807
  class: "vc-ai-agent-iframe__placeholder"
4803
- }, ar = /* @__PURE__ */ L({
4808
+ }, sr = /* @__PURE__ */ L({
4804
4809
  __name: "VcAiAgentIframe",
4805
4810
  props: {
4806
4811
  url: {}
4807
4812
  },
4808
4813
  emits: ["iframe-ready"],
4809
4814
  setup(i, { emit: e }) {
4810
- const t = N("ai-agent-iframe"), n = i, r = e, a = G(null), o = G(!0);
4811
- Z(
4815
+ const t = B("ai-agent-iframe"), n = i, r = e, a = G(null), o = G(!0);
4816
+ X(
4812
4817
  a,
4813
4818
  (c) => {
4814
4819
  c && r("iframe-ready", c);
@@ -4818,22 +4823,22 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4818
4823
  const l = () => {
4819
4824
  o.value = !1, t.debug("Iframe loaded");
4820
4825
  };
4821
- return Z(
4826
+ return X(
4822
4827
  () => n.url,
4823
4828
  () => {
4824
4829
  o.value = !0;
4825
4830
  }
4826
- ), (c, p) => (C(), j("div", tr, [
4827
- K(Oe, { name: "fade" }, {
4828
- default: Ie(() => [
4829
- o.value && i.url ? (C(), Q(er, {
4831
+ ), (c, p) => (S(), j("div", rr, [
4832
+ K(Ie, { name: "fade" }, {
4833
+ default: Re(() => [
4834
+ o.value && i.url ? (S(), ee(tr, {
4830
4835
  key: 0,
4831
4836
  text: c.$t("AI_AGENT.LOADING")
4832
- }, null, 8, ["text"])) : X("", !0)
4837
+ }, null, 8, ["text"])) : Y("", !0)
4833
4838
  ]),
4834
4839
  _: 1
4835
4840
  }),
4836
- i.url ? (C(), j("iframe", {
4841
+ i.url ? (S(), j("iframe", {
4837
4842
  key: 0,
4838
4843
  ref_key: "iframeRef",
4839
4844
  ref: a,
@@ -4842,8 +4847,8 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4842
4847
  sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
4843
4848
  allow: "clipboard-read; clipboard-write",
4844
4849
  onLoad: l
4845
- }, null, 42, rr)) : (C(), j("div", nr, [
4846
- K(oe(le), {
4850
+ }, null, 42, nr)) : (S(), j("div", ar, [
4851
+ K(le(ue), {
4847
4852
  icon: "lucide-sparkles",
4848
4853
  size: "xl",
4849
4854
  class: "vc-ai-agent-iframe__placeholder-icon"
@@ -4852,10 +4857,10 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4852
4857
  ]))
4853
4858
  ]));
4854
4859
  }
4855
- }), sr = { class: "vc-ai-agent-panel__content" }, fn = /* @__PURE__ */ L({
4860
+ }), ir = { class: "vc-ai-agent-panel__content" }, pn = /* @__PURE__ */ L({
4856
4861
  __name: "VcAiAgentPanel",
4857
4862
  setup(i) {
4858
- const e = J(xe), t = J(vt, !1);
4863
+ const e = J(Ee), t = J(gt, !1);
4859
4864
  e || console.error("[VcAiAgentPanel] AiAgentService not provided");
4860
4865
  const n = d(
4861
4866
  () => e?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
@@ -4864,18 +4869,18 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4864
4869
  })), c = () => e?.closePanel(), p = () => e?.expandPanel(), g = () => e?.collapsePanel(), h = (_) => {
4865
4870
  e?._setIframeRef(_);
4866
4871
  };
4867
- return Fe(() => {
4872
+ return De(() => {
4868
4873
  e?._setIframeRef(null);
4869
- }), (_, A) => (C(), Q(Oe, { name: "ai-panel-slide" }, {
4870
- default: Ie(() => [
4871
- r.value ? (C(), j("div", {
4874
+ }), (_, A) => (S(), ee(Ie, { name: "ai-panel-slide" }, {
4875
+ default: Re(() => [
4876
+ r.value ? (S(), j("div", {
4872
4877
  key: 0,
4873
4878
  class: q(["vc-ai-agent-panel", {
4874
4879
  "vc-ai-agent-panel--expanded": a.value
4875
4880
  }]),
4876
- style: ee(l.value)
4881
+ style: te(l.value)
4877
4882
  }, [
4878
- K(Ht, {
4883
+ K(Zt, {
4879
4884
  title: n.value.title,
4880
4885
  "is-expanded": a.value,
4881
4886
  "items-count": o.value,
@@ -4883,108 +4888,108 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4883
4888
  onExpand: p,
4884
4889
  onCollapse: g
4885
4890
  }, null, 8, ["title", "is-expanded", "items-count"]),
4886
- R("div", sr, [
4887
- K(ar, {
4891
+ R("div", ir, [
4892
+ K(sr, {
4888
4893
  url: n.value.url,
4889
4894
  onIframeReady: h
4890
4895
  }, null, 8, ["url"])
4891
4896
  ])
4892
- ], 6)) : X("", !0)
4897
+ ], 6)) : Y("", !0)
4893
4898
  ]),
4894
4899
  _: 1
4895
4900
  }));
4896
4901
  }
4897
4902
  });
4898
4903
  export {
4899
- pr as $,
4900
- en as A,
4901
- ht as B,
4902
- Mr as C,
4903
- gt as D,
4904
- tn as E,
4905
- Lr as F,
4906
- Vr as G,
4907
- rn as H,
4908
- Jr as I,
4909
- Kr as J,
4910
- Nr as K,
4911
- pt as L,
4912
- kr as M,
4913
- jr as N,
4914
- $r as O,
4915
- Or as P,
4916
- tt as Q,
4917
- zr as R,
4918
- Tr as S,
4919
- mt as T,
4920
- dr as U,
4921
- qe as V,
4922
- Ir as W,
4923
- Fr as X,
4924
- 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,
4925
4930
  k as Z,
4926
- le as _,
4927
- fn as a,
4928
- Pr as a0,
4929
- ft as a1,
4930
- dt as a2,
4931
- Qr as a3,
4932
- Ar as a4,
4933
- mr as a5,
4934
- Hr as a6,
4935
- Rr as a7,
4936
- vr as a8,
4937
- gr as a9,
4938
- cn as aA,
4939
- Br as aa,
4940
- br as ab,
4941
- He as ac,
4942
- vt as ad,
4943
- Ze as ae,
4944
- Ve as af,
4945
- qr as ag,
4946
- xr as ah,
4947
- Xe as ai,
4948
- Er as aj,
4949
- yr as ak,
4950
- Gr as al,
4951
- _r as am,
4952
- Ye as an,
4953
- Ur as ao,
4954
- Ke as ap,
4955
- 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,
4956
4961
  Sr as ar,
4957
- Dr as as,
4958
- et as at,
4959
- ot as au,
4960
- lt as av,
4961
- Cr as aw,
4962
- wr as ax,
4963
- Ot as ay,
4964
- ut as az,
4965
- xe as b,
4966
- dn as c,
4967
- N as d,
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,
4968
4973
  Se as e,
4969
- un as f,
4970
- Re as g,
4971
- ct as h,
4972
- sn as i,
4973
- nn as j,
4974
- on as k,
4975
- Xr as l,
4976
- Zr as m,
4977
- At as n,
4978
- at as o,
4979
- ln as p,
4980
- je as q,
4981
- $e as r,
4982
- an as s,
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,
4983
4988
  St as t,
4984
- hn as u,
4985
- Ne as v,
4986
- we as w,
4987
- Ct as x,
4988
- Yr as y,
4989
- 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
4990
4995
  };