@vc-shell/framework 2.0.9 → 2.0.10-pr240.41fca76

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 (34) 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-CThvtYtw.js} +432 -419
  3. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-Y09G7Gnw.js.map → VcAiAgentPanel.vue_vue_type_style_index_0_lang-CThvtYtw.js.map} +1 -1
  4. package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-f4mGxHKh.js → VcTableAdapter.vue_vue_type_style_index_0_lang-BPdYvdcC.js} +5753 -5613
  5. package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-BPdYvdcC.js.map +1 -0
  6. package/dist/chunks/{index-B78ceaW1.js → index-0btrtSam.js} +1 -1
  7. package/dist/chunks/{index-B78ceaW1.js.map → index-0btrtSam.js.map} +1 -1
  8. package/dist/core/blade-navigation/table-query-state/createBladeQueryState.d.ts +20 -0
  9. package/dist/core/blade-navigation/table-query-state/createBladeQueryState.d.ts.map +1 -0
  10. package/dist/core/blade-navigation/table-query-state/index.d.ts +4 -0
  11. package/dist/core/blade-navigation/table-query-state/index.d.ts.map +1 -0
  12. package/dist/core/blade-navigation/table-query-state/serialization.d.ts +12 -0
  13. package/dist/core/blade-navigation/table-query-state/serialization.d.ts.map +1 -0
  14. package/dist/core/blade-navigation/table-query-state/types.d.ts +24 -0
  15. package/dist/core/blade-navigation/table-query-state/types.d.ts.map +1 -0
  16. package/dist/core/blade-navigation/types/index.d.ts +6 -0
  17. package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
  18. package/dist/core/blade-navigation/useBladeStack.d.ts.map +1 -1
  19. package/dist/framework.js +10 -10
  20. package/dist/index.css +1 -1
  21. package/dist/scripts/check-locales.cjs +0 -0
  22. package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/vc-blade-navigation-new.vue.d.ts.map +1 -1
  23. package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
  24. package/dist/tsconfig.tsbuildinfo +1 -1
  25. package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts +3 -3
  26. package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
  27. package/dist/ui/components/organisms/vc-data-table/components/DataTableHeader.vue.d.ts.map +1 -1
  28. package/dist/ui/components/organisms/vc-data-table/components/HeaderTitle.vue.d.ts +12 -0
  29. package/dist/ui/components/organisms/vc-data-table/components/HeaderTitle.vue.d.ts.map +1 -0
  30. package/dist/ui/components/organisms/vc-data-table/composables/useTableQueryPersistence.d.ts +23 -0
  31. package/dist/ui/components/organisms/vc-data-table/composables/useTableQueryPersistence.d.ts.map +1 -0
  32. package/dist/ui/index.js +2 -2
  33. package/package.json +4 -4
  34. package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-f4mGxHKh.js.map +0 -1
@@ -1,5 +1,5 @@
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";
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
3
  import { u as De } from "./vendor-vueuse-core-CEdpDfzx.js";
4
4
  import { j as Me } from "./vendor-vueuse-shared-BlCOXw5g.js";
5
5
  import { L as Le } from "./vendor-lucide-vue-next-CwUrzD6N.js";
@@ -3241,7 +3241,7 @@ class tt extends Error {
3241
3241
  function s(i, e, t, n, r) {
3242
3242
  throw r ?? new tt(i, e, t, n, null);
3243
3243
  }
3244
- const xe = {
3244
+ const ye = {
3245
3245
  debug: 0,
3246
3246
  info: 1,
3247
3247
  warn: 2,
@@ -3252,8 +3252,8 @@ const xe = {
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 N(i) {
3256
+ const e = { ...rt }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? ye[r] >= ye[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) => N(i ? `${i}:${r}` : r),
3286
3286
  /**
3287
3287
  * Set the log level for this logger instance
3288
3288
  */
@@ -3297,14 +3297,14 @@ 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 = () => {
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
3308
  const i = new Ve(), e = De(
3309
3309
  nt,
3310
3310
  {},
@@ -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 pe.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 pe.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
+ pe.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");
3354
+ }, be = "vc_auth_data", w = N("use-user");
3355
3355
  function st() {
3356
3356
  try {
3357
- const i = localStorage.getItem(me);
3357
+ const i = localStorage.getItem(be);
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 _e(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(be, 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
3372
  function it() {
3373
3373
  try {
3374
- localStorage.removeItem(me);
3374
+ localStorage.removeItem(be);
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 Ue(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
3408
  function ot() {
3409
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;
3410
+ async function l(m, S) {
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: S
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, S, T) {
3426
3426
  return a.resetPasswordByToken(m, {
3427
- newPassword: T,
3428
- token: U
3427
+ newPassword: S,
3428
+ token: T
3429
3429
  });
3430
3430
  }
3431
- async function g(m, T) {
3432
- C.debug("signIn - Entry point");
3431
+ async function g(m, S) {
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: S });
3436
+ if (w.debug("signIn - Cookie login completed:", T), !T.succeeded)
3437
+ return T;
3438
+ w.debug("signIn - Requesting token...");
3439
+ const P = await Ue({
3440
3440
  grant_type: "password",
3441
3441
  username: m,
3442
- password: T,
3442
+ password: S,
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, _e(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, it(), 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
- const [m] = await Promise.all([a.getCurrentUser(), b()]);
3474
- e.value = m, performance.mark("vc:auth-done"), C.debug("User details loaded:", e.value);
3473
+ const [m] = await Promise.all([a.getCurrentUser(), x()]);
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 (S) {
3487
+ return { succeeded: !1, error: S };
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, S) {
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: S
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 (S) {
3513
+ throw w.error("getLoginType failed:", S), S;
3514
3514
  }
3515
3515
  return m;
3516
3516
  }
3517
3517
  const D = 60 * 1e3;
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:", {
3518
+ async function x() {
3519
+ if (w.debug("getAccessToken - Entry point"), t.value || (t.value = st()), !t.value)
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;
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: S ? new Date(S).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 Ue({
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, _e(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,16 +3543,16 @@ 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,
3555
- getAccessToken: b
3554
+ getLoginType: z,
3555
+ getAccessToken: x
3556
3556
  };
3557
3557
  }
3558
3558
  const lt = Me(ot), ut = () => {
@@ -3566,7 +3566,7 @@ 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
+ }, 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 = {
3570
3570
  url: "",
3571
3571
  title: "Virto OZ",
3572
3572
  width: 362,
@@ -3580,12 +3580,12 @@ const lt = Me(ot), ut = () => {
3580
3580
  }, rn = {
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");
3583
+ }, bt = "ai-agent-toggle", xt = "lucide-sparkles", Et = "AI Assistant", ne = N("ai-agent-panel");
3584
3584
  function yt() {
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", ne.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, ne.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", ne.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", ne.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 me = N("ai-agent-context");
3612
+ function Te(i) {
3613
3613
  return i ? {
3614
3614
  id: i.id,
3615
3615
  name: i.name,
@@ -3619,8 +3619,8 @@ function _e(i) {
3619
3619
  }
3620
3620
  function _t(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) => {
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 });
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 });
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: Te(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: re(l.value),
3650
+ suggestions: p.value ? re(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: Te(t()),
3658
3658
  contextType: c.value,
3659
- items: ee(l.value),
3660
- suggestions: p.value ? ee(p.value) : void 0,
3659
+ items: re(l.value),
3660
+ suggestions: p.value ? re(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");
3667
+ const V = N("ai-agent-transport");
3668
3668
  function Ut(i) {
3669
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) {
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,7 +3759,7 @@ function Ut(i) {
3759
3759
  }
3760
3760
  };
3761
3761
  }
3762
- const re = $("ai-agent-service");
3762
+ const ae = N("ai-agent-service");
3763
3763
  function Tt(i) {
3764
3764
  const {
3765
3765
  userGetter: e,
@@ -3778,23 +3778,23 @@ function Tt(i) {
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 }), ae.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 }), 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(
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
+ }, x = (m, S, T, P) => {
3814
+ const { cleared: F } = g.setContextData(m, S, 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
+ }), ae.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, S) => {
3840
+ h.sendToIframe({ type: m, payload: S });
3841
3841
  },
3842
3842
  onMessage: h.onMessage,
3843
3843
  // Internal API
@@ -3845,26 +3845,26 @@ function Tt(i) {
3845
3845
  _setIframeRef: D,
3846
3846
  _startListening: h.startListening,
3847
3847
  _stopListening: h.stopListening,
3848
- _setContextData: b
3848
+ _setContextData: x
3849
3849
  };
3850
3850
  }
3851
- let Ie, Re, je, St;
3851
+ let je, $e, Ne, St;
3852
3852
  function nn(i) {
3853
- Ie = i;
3853
+ je = i;
3854
3854
  }
3855
3855
  function an(i) {
3856
- Re = i;
3856
+ $e = i;
3857
3857
  }
3858
3858
  function sn(i) {
3859
- je = i;
3859
+ Ne = i;
3860
3860
  }
3861
3861
  function on(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 = Ce(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 = Ce(r.url);
3877
3877
  l && (a += `/${l}`), r.param && (a += `/${r.param}`);
3878
3878
  }
3879
3879
  const o = {};
@@ -3889,21 +3889,21 @@ function ln(i, e) {
3889
3889
  param: t[2]
3890
3890
  };
3891
3891
  }
3892
- function Te(i) {
3892
+ function Ce(i) {
3893
3893
  if (i)
3894
3894
  return i.replace(/^\/+|\/+$/g, "") || void 0;
3895
3895
  }
3896
- function Se(i) {
3896
+ function we(i) {
3897
3897
  const e = i.currentRoute.value.params;
3898
3898
  return Object.values(e).find((t) => typeof t == "string" && t) || "";
3899
3899
  }
3900
3900
  function Ct(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(we(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(we(i), e.blades.value);
3907
3907
  i.replace({ path: r, query: a });
3908
3908
  }
3909
3909
  return { syncUrlPush: t, syncUrlReplace: n };
@@ -3914,21 +3914,21 @@ function I(i) {
3914
3914
  ${wt}`);
3915
3915
  }
3916
3916
  function At() {
3917
- const i = (Q() ? L(Oe, void 0) : void 0) ?? Re, e = (Q() ? L(ct, void 0) : void 0) ?? je;
3917
+ const i = (te() ? J(Re, void 0) : void 0) ?? $e, e = (te() ? J(ct, void 0) : void 0) ?? Ne;
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 = te() ? J(ht, void 0) : void 0, a = te() ? J(ft, 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 b = je?.router;
3927
+ return b && (o = Ct(b, 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));
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
3930
  let O = !1;
3931
- function N(E) {
3931
+ function z(b) {
3932
3932
  if (O) {
3933
3933
  console.warn(
3934
3934
  "[vc-shell] provideBladeData() called more than once in the same blade. Only the first call takes effect."
@@ -3936,87 +3936,87 @@ function At() {
3936
3936
  return;
3937
3937
  }
3938
3938
  O = !0;
3939
- const B = ke(E) ? E : G(E);
3940
- Ce(dt, B);
3939
+ const B = ke(b) ? b : G(b);
3940
+ Ae(dt, B);
3941
3941
  }
3942
- async function D(E) {
3943
- const { isWorkspace: B, ...ue } = E;
3942
+ async function D(b) {
3943
+ const { isWorkspace: B, ...de } = b;
3944
3944
  if (B)
3945
- await t.openWorkspace(ue);
3945
+ await t.openWorkspace(de);
3946
3946
  else {
3947
- const be = r?.value.id;
3948
- be ? await t.openBlade({ ...ue, parentId: be }) : await t.openBlade(ue);
3947
+ const Ee = r?.value.id;
3948
+ Ee ? await t.openBlade({ ...de, parentId: Ee }) : await t.openBlade(de);
3949
3949
  }
3950
3950
  t.activeBlade.value?.url && l()?.syncUrlPush();
3951
3951
  }
3952
- async function b() {
3952
+ async function x() {
3953
3953
  r || I("closeSelf()");
3954
- const E = await t.closeBlade(r.value.id);
3955
- return E || l()?.syncUrlReplace(), E;
3954
+ const b = await t.closeBlade(r.value.id);
3955
+ return b || l()?.syncUrlReplace(), b;
3956
3956
  }
3957
3957
  async function m() {
3958
3958
  r || I("closeChildren()"), await t.closeChildren(r.value.id), l()?.syncUrlReplace();
3959
3959
  }
3960
- async function T(E) {
3960
+ async function S(b) {
3961
3961
  r || I("replaceWith()"), await t.replaceCurrentBlade({
3962
- ...E,
3962
+ ...b,
3963
3963
  parentId: r.value.parentId
3964
3964
  }), t.activeBlade.value?.url && l()?.syncUrlReplace();
3965
3965
  }
3966
- async function U(E) {
3966
+ async function T(b) {
3967
3967
  r || I("coverWith()"), await t.coverCurrentBlade({
3968
- ...E,
3968
+ ...b,
3969
3969
  parentId: r.value.parentId
3970
3970
  }), t.activeBlade.value?.url && l()?.syncUrlPush();
3971
3971
  }
3972
- async function A(E, B) {
3973
- return r || I("callParent()"), n.callParent(r.value.id, E, B);
3972
+ async function P(b, B) {
3973
+ return r || I("callParent()"), n.callParent(r.value.id, b, B);
3974
3974
  }
3975
- function F(E) {
3976
- r || I("exposeToChildren()"), n.exposeToChildren(r.value.id, E);
3975
+ function F(b) {
3976
+ r || I("exposeToChildren()"), n.exposeToChildren(r.value.id, b);
3977
3977
  }
3978
- function le(E) {
3979
- r || I("onBeforeClose()"), t.registerBeforeClose(r.value.id, E);
3978
+ function ce(b) {
3979
+ r || I("onBeforeClose()"), t.registerBeforeClose(r.value.id, b);
3980
3980
  }
3981
- function u(E) {
3982
- r || I("setError()"), t.setBladeError(r.value.id, E);
3981
+ function he(b) {
3982
+ r || I("setError()"), t.setBladeError(r.value.id, b);
3983
3983
  }
3984
- function f() {
3984
+ function u() {
3985
3985
  r || I("clearError()"), t.clearBladeError(r.value.id);
3986
3986
  }
3987
- let v = 0;
3988
- function _(E) {
3987
+ let f = 0;
3988
+ function v(b) {
3989
3989
  a || I("addBanner()");
3990
- const B = `banner-${r.value.id}-${++v}`;
3990
+ const B = `banner-${r.value.id}-${++f}`;
3991
3991
  return a.value.push({
3992
- ...E,
3992
+ ...b,
3993
3993
  id: B,
3994
- dismissible: E.dismissible ?? !1
3994
+ dismissible: b.dismissible ?? !1
3995
3995
  }), B;
3996
3996
  }
3997
- function P(E) {
3998
- a || I("removeBanner()"), a.value = a.value.filter((B) => B.id !== E);
3997
+ function y(b) {
3998
+ a || I("removeBanner()"), a.value = a.value.filter((B) => B.id !== b);
3999
3999
  }
4000
- function z() {
4001
- a || I("clearBanners()"), a.value = a.value.filter((E) => E._system);
4000
+ function U() {
4001
+ a || I("clearBanners()"), a.value = a.value.filter((b) => b._system);
4002
4002
  }
4003
- let V = !1, ge = !1;
4004
- function Ne(E) {
4005
- if (r || I("onActivated()"), V) {
4003
+ let $ = !1, M = !1;
4004
+ function Y(b) {
4005
+ if (r || I("onActivated()"), $) {
4006
4006
  console.warn("[useBlade] onActivated() already registered in this blade.");
4007
4007
  return;
4008
4008
  }
4009
- V = !0, H(w, (B) => {
4010
- B && E();
4009
+ $ = !0, Z(A, (B) => {
4010
+ B && b();
4011
4011
  });
4012
4012
  }
4013
- function ze(E) {
4014
- if (r || I("onDeactivated()"), ge) {
4013
+ function W(b) {
4014
+ if (r || I("onDeactivated()"), M) {
4015
4015
  console.warn("[useBlade] onDeactivated() already registered in this blade.");
4016
4016
  return;
4017
4017
  }
4018
- ge = !0, H(w, (B) => {
4019
- B || E();
4018
+ M = !0, Z(A, (B) => {
4019
+ B || b();
4020
4020
  });
4021
4021
  }
4022
4022
  return {
@@ -4024,29 +4024,29 @@ function At() {
4024
4024
  param: p,
4025
4025
  options: g,
4026
4026
  query: h,
4027
- closable: y,
4028
- expanded: w,
4029
- name: x,
4030
- provideBladeData: N,
4027
+ closable: _,
4028
+ expanded: A,
4029
+ name: E,
4030
+ provideBladeData: z,
4031
4031
  openBlade: D,
4032
- closeSelf: b,
4032
+ closeSelf: x,
4033
4033
  closeChildren: m,
4034
- replaceWith: T,
4035
- coverWith: U,
4036
- callParent: A,
4034
+ replaceWith: S,
4035
+ coverWith: T,
4036
+ callParent: P,
4037
4037
  exposeToChildren: F,
4038
- onBeforeClose: le,
4039
- onActivated: Ne,
4040
- onDeactivated: ze,
4041
- setError: u,
4042
- clearError: f,
4043
- addBanner: _,
4044
- removeBanner: P,
4045
- clearBanners: z
4038
+ onBeforeClose: ce,
4039
+ onActivated: Y,
4040
+ onDeactivated: W,
4041
+ setError: he,
4042
+ clearError: u,
4043
+ addBanner: v,
4044
+ removeBanner: y,
4045
+ clearBanners: U
4046
4046
  };
4047
4047
  }
4048
4048
  let Pt = 0;
4049
- function ne() {
4049
+ function se() {
4050
4050
  return `blade_${++Pt}_${Math.random().toString(36).slice(2, 8)}`;
4051
4051
  }
4052
4052
  function un(i, e) {
@@ -4070,11 +4070,11 @@ function un(i, e) {
4070
4070
  }
4071
4071
  return !1;
4072
4072
  }
4073
- function y(u) {
4073
+ function _(u) {
4074
4074
  for (const f of u)
4075
4075
  a.get(f.id)?.(), p(f.id);
4076
4076
  }
4077
- async function w(u) {
4077
+ async function A(u) {
4078
4078
  if (o.value?.name === u.name) return;
4079
4079
  const v = i.getBlade(u.name);
4080
4080
  if (!v)
@@ -4083,9 +4083,9 @@ function un(i, e) {
4083
4083
  console.warn(`[BladeStack] Access denied to workspace '${u.name}'`);
4084
4084
  return;
4085
4085
  }
4086
- y([...t.value]);
4087
- const _ = {
4088
- id: ne(),
4086
+ _([...t.value]);
4087
+ const y = {
4088
+ id: se(),
4089
4089
  name: u.name,
4090
4090
  url: g(u.name),
4091
4091
  // workspace blades don't have param when opened first
@@ -4093,23 +4093,23 @@ function un(i, e) {
4093
4093
  options: u.options,
4094
4094
  visible: !0
4095
4095
  };
4096
- t.value = [_], u.onOpen && r.set(_.id, u.onOpen), u.onClose && a.set(_.id, u.onClose), u.onOpen?.();
4096
+ t.value = [y], u.onOpen && r.set(y.id, u.onOpen), u.onClose && a.set(y.id, u.onClose), u.onOpen?.();
4097
4097
  }
4098
- async function x(u) {
4098
+ async function E(u) {
4099
4099
  if (!i.getBlade(u.name))
4100
4100
  throw new Error(`[BladeStack] Blade '${u.name}' not found in registry`);
4101
4101
  const f = u.parentId ?? c.value?.id ?? o.value?.id;
4102
4102
  if (!f)
4103
4103
  throw new Error("[BladeStack] Cannot open blade: no parent blade found");
4104
- const v = t.value.findIndex((z) => z.id === f);
4104
+ const v = t.value.findIndex(($) => $.id === f);
4105
4105
  if (v === -1)
4106
4106
  throw new Error(`[BladeStack] Parent blade '${f}' not found in stack`);
4107
- const _ = t.value.slice(v + 1);
4108
- if (_.length > 0 && await h(_))
4107
+ const y = t.value.slice(v + 1);
4108
+ if (y.length > 0 && await h(y))
4109
4109
  return;
4110
- y(_);
4111
- const P = {
4112
- id: ne(),
4110
+ _(y);
4111
+ const U = {
4112
+ id: se(),
4113
4113
  name: u.name,
4114
4114
  url: g(u.name),
4115
4115
  param: u.param,
@@ -4118,37 +4118,37 @@ function un(i, e) {
4118
4118
  parentId: f,
4119
4119
  visible: !0
4120
4120
  };
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?.();
4121
+ 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
4122
  }
4123
4123
  async function O(u) {
4124
- const f = t.value.findIndex((z) => z.id === u);
4124
+ const f = t.value.findIndex(($) => $.id === u);
4125
4125
  if (f === -1 || f === 0) return !1;
4126
4126
  const v = t.value.slice(f);
4127
4127
  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;
4128
+ _(v), t.value = t.value.slice(0, f);
4129
+ const U = t.value.length - 1;
4130
+ if (U > 0 && !t.value[U].visible) {
4131
+ const $ = [...t.value];
4132
+ $[U] = { ...$[U], visible: !0 }, t.value = $;
4133
4133
  }
4134
4134
  return !1;
4135
4135
  }
4136
- async function N(u) {
4136
+ async function z(u) {
4137
4137
  const f = c.value;
4138
4138
  if (!f)
4139
4139
  throw new Error("[BladeStack] No active blade to replace");
4140
4140
  if (!i.getBlade(u.name))
4141
4141
  throw new Error(`[BladeStack] Blade '${u.name}' not found in registry`);
4142
- const v = t.value.findIndex((V) => V.id === f.id);
4142
+ const v = t.value.findIndex((M) => M.id === f.id);
4143
4143
  if (v === -1)
4144
4144
  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(_);
4145
+ const y = t.value.slice(v + 1);
4146
+ if (y.length > 0) {
4147
+ if (await h(y)) return;
4148
+ _(y);
4149
4149
  }
4150
- const P = {
4151
- id: ne(),
4150
+ const U = {
4151
+ id: se(),
4152
4152
  name: u.name,
4153
4153
  url: g(u.name),
4154
4154
  param: u.param,
@@ -4157,9 +4157,9 @@ function un(i, e) {
4157
4157
  parentId: f.parentId,
4158
4158
  visible: !0
4159
4159
  };
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?.();
4160
+ _([f]);
4161
+ const $ = [...t.value.slice(0, v), U, ...t.value.slice(v + 1)];
4162
+ t.value = $, u.onOpen && r.set(U.id, u.onOpen), u.onClose && a.set(U.id, u.onClose), u.onOpen?.();
4163
4163
  }
4164
4164
  async function D(u) {
4165
4165
  const f = c.value;
@@ -4167,16 +4167,16 @@ function un(i, e) {
4167
4167
  throw new Error("[BladeStack] No active blade to cover");
4168
4168
  if (!i.getBlade(u.name))
4169
4169
  throw new Error(`[BladeStack] Blade '${u.name}' not found in registry`);
4170
- const v = t.value.findIndex((V) => V.id === f.id);
4170
+ const v = t.value.findIndex((M) => M.id === f.id);
4171
4171
  if (v === -1)
4172
4172
  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(_);
4173
+ const y = t.value.slice(v + 1);
4174
+ if (y.length > 0) {
4175
+ if (await h(y)) return;
4176
+ _(y);
4177
4177
  }
4178
- const P = {
4179
- id: ne(),
4178
+ const U = {
4179
+ id: se(),
4180
4180
  name: u.name,
4181
4181
  url: g(u.name),
4182
4182
  param: u.param,
@@ -4184,40 +4184,52 @@ function un(i, e) {
4184
4184
  options: u.options,
4185
4185
  parentId: f.id,
4186
4186
  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?.();
4187
+ }, $ = t.value.slice(0, v);
4188
+ $.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
4189
  }
4190
- async function b(u) {
4191
- const f = t.value.findIndex((P) => P.id === u);
4190
+ async function x(u) {
4191
+ const f = t.value.findIndex((U) => U.id === u);
4192
4192
  if (f === -1) return;
4193
4193
  const v = t.value.slice(f + 1);
4194
- v.length === 0 || await h(v) || (y(v), t.value = t.value.slice(0, f + 1));
4194
+ v.length === 0 || await h(v) || (_(v), t.value = t.value.slice(0, f + 1));
4195
4195
  }
4196
4196
  function m(u, f) {
4197
4197
  n.set(u, f);
4198
4198
  }
4199
- function T(u) {
4199
+ function S(u) {
4200
4200
  n.delete(u);
4201
4201
  }
4202
- function U(u, f) {
4203
- const v = t.value.findIndex((P) => P.id === u);
4202
+ function T(u, f) {
4203
+ const v = t.value.findIndex((U) => U.id === u);
4204
4204
  if (v === -1) return;
4205
- const _ = [...t.value];
4206
- _[v] = { ..._[v], error: f }, t.value = _;
4205
+ const y = [...t.value];
4206
+ y[v] = { ...y[v], error: f }, t.value = y;
4207
4207
  }
4208
- function A(u) {
4209
- const f = t.value.findIndex((_) => _.id === u);
4208
+ function P(u) {
4209
+ const f = t.value.findIndex((y) => y.id === u);
4210
4210
  if (f === -1) return;
4211
4211
  const v = [...t.value];
4212
4212
  v[f] = { ...v[f], error: void 0 }, t.value = v;
4213
4213
  }
4214
4214
  function F(u, f) {
4215
- const v = t.value.findIndex((P) => P.id === u);
4215
+ const v = t.value.findIndex((U) => U.id === u);
4216
4216
  if (v === -1 || t.value[v].title === f) return;
4217
- const _ = [...t.value];
4218
- _[v] = { ..._[v], title: f }, t.value = _;
4217
+ const y = [...t.value];
4218
+ y[v] = { ...y[v], title: f }, t.value = y;
4219
+ }
4220
+ function ce(u, f) {
4221
+ const v = t.value.findIndex((W) => W.id === u);
4222
+ if (v === -1) return;
4223
+ 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;
4226
+ const $ = Object.keys(y), M = Object.keys(U);
4227
+ if ($.length === M.length && M.every((W) => y[W] === U[W]))
4228
+ return;
4229
+ const Y = [...t.value];
4230
+ Y[v] = { ...Y[v], query: U }, t.value = Y;
4219
4231
  }
4220
- function le(u) {
4232
+ function he(u) {
4221
4233
  for (const f of t.value)
4222
4234
  p(f.id);
4223
4235
  t.value = u;
@@ -4226,29 +4238,30 @@ function un(i, e) {
4226
4238
  workspace: o,
4227
4239
  blades: l,
4228
4240
  activeBlade: c,
4229
- openWorkspace: w,
4230
- openBlade: x,
4241
+ openWorkspace: A,
4242
+ openBlade: E,
4231
4243
  closeBlade: O,
4232
- closeChildren: b,
4233
- replaceCurrentBlade: N,
4244
+ closeChildren: x,
4245
+ replaceCurrentBlade: z,
4234
4246
  coverCurrentBlade: D,
4235
4247
  registerBeforeClose: m,
4236
- unregisterBeforeClose: T,
4237
- setBladeError: U,
4238
- clearBladeError: A,
4248
+ unregisterBeforeClose: S,
4249
+ setBladeError: T,
4250
+ clearBladeError: P,
4239
4251
  setBladeTitle: F,
4240
- _restoreStack: le
4252
+ updateBladeQuery: ce,
4253
+ _restoreStack: he
4241
4254
  };
4242
4255
  }
4243
4256
  function Ot() {
4244
- const i = L(Oe);
4257
+ const i = J(Re);
4245
4258
  if (!i)
4246
4259
  throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
4247
4260
  return i;
4248
4261
  }
4249
- const q = $("use-ai-agent");
4262
+ const H = N("use-ai-agent");
4250
4263
  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({
4264
+ const e = J(pt), { user: t, getAccessToken: n } = ut(), { openBlade: r } = At(), { blades: a, activeBlade: o } = Ot(), l = i?.isEmbedded, c = Tt({
4252
4265
  userGetter: () => {
4253
4266
  if (t.value)
4254
4267
  return {
@@ -4270,18 +4283,18 @@ function cn(i) {
4270
4283
  },
4271
4284
  localeGetter: () => e?.currentLocale.value ?? "en",
4272
4285
  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);
4286
+ navigateToBlade: (g, h, _) => {
4287
+ r({ name: g, param: h, options: _ }).then(() => {
4288
+ H.debug(`Navigated to blade: ${g}`);
4289
+ }).catch((A) => {
4290
+ H.warn(`Blade not found or cannot be opened: ${g}`, A);
4278
4291
  });
4279
4292
  },
4280
4293
  initialConfig: i?.config,
4281
4294
  isEmbedded: l
4282
4295
  });
4283
- if (Ce(ve, c), q.debug("AiAgentService provided"), i?.addGlobalToolbarButton ?? !0) {
4284
- const g = L(mt, null);
4296
+ if (Ae(xe, c), H.debug("AiAgentService provided"), i?.addGlobalToolbarButton ?? !0) {
4297
+ const g = J(mt, null);
4285
4298
  g ? (g.registerToolbarItem(
4286
4299
  {
4287
4300
  id: bt,
@@ -4293,14 +4306,14 @@ function cn(i) {
4293
4306
  },
4294
4307
  "*"
4295
4308
  // Wildcard for all blades
4296
- ), q.debug("Global AI toolbar button registered with wildcard '*'")) : q.warn("Toolbar service not available, AI button not registered");
4309
+ ), H.debug("Global AI toolbar button registered with wildcard '*'")) : H.warn("Toolbar service not available, AI button not registered");
4297
4310
  }
4298
4311
  return c;
4299
4312
  }
4300
4313
  function hn() {
4301
- const i = L(ve);
4314
+ const i = J(xe);
4302
4315
  if (!i) {
4303
- q.error("AiAgentService not found. Did you forget to call provideAiAgentService()?");
4316
+ H.error("AiAgentService not found. Did you forget to call provideAiAgentService()?");
4304
4317
  return;
4305
4318
  }
4306
4319
  return {
@@ -4346,7 +4359,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4346
4359
  y1: "0",
4347
4360
  x2: "99",
4348
4361
  y2: "108"
4349
- }, $e = /* @__PURE__ */ M({
4362
+ }, ze = /* @__PURE__ */ L({
4350
4363
  __name: "VcVirtoOzLogo",
4351
4364
  props: {
4352
4365
  width: { default: 22 },
@@ -4355,7 +4368,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4355
4368
  },
4356
4369
  setup(i) {
4357
4370
  const e = d(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
4358
- return (t, n) => (S(), j("svg", {
4371
+ return (t, n) => (C(), j("svg", {
4359
4372
  width: i.width,
4360
4373
  height: i.height,
4361
4374
  viewBox: "0 0 99 108",
@@ -4367,7 +4380,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4367
4380
  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
4381
  fill: "white"
4369
4382
  }, null, -1)),
4370
- i.animated ? (S(), j("path", jt)) : (S(), j("g", {
4383
+ i.animated ? (C(), j("path", jt)) : (C(), j("g", {
4371
4384
  key: 0,
4372
4385
  "clip-path": `url(#${e.value})`
4373
4386
  }, [...n[0] || (n[0] = [
@@ -4419,19 +4432,19 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4419
4432
  fill: "#6C6C6C"
4420
4433
  }, null, -1)),
4421
4434
  R("defs", null, [
4422
- i.animated ? Z("", !0) : (S(), j("clipPath", {
4435
+ i.animated ? X("", !0) : (C(), j("clipPath", {
4423
4436
  key: 0,
4424
4437
  id: e.value
4425
4438
  }, [...n[1] || (n[1] = [
4426
4439
  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
4440
  ])], 8, $t)),
4428
- i.animated ? (S(), j("linearGradient", Nt, [...n[2] || (n[2] = [
4441
+ i.animated ? (C(), j("linearGradient", Nt, [...n[2] || (n[2] = [
4429
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)
4430
- ])])) : Z("", !0)
4443
+ ])])) : X("", !0)
4431
4444
  ])
4432
4445
  ], 8, It));
4433
4446
  }
4434
- }), zt = /* @__PURE__ */ M({
4447
+ }), zt = /* @__PURE__ */ L({
4435
4448
  __name: "vc-material-icon",
4436
4449
  props: {
4437
4450
  icon: {},
@@ -4442,19 +4455,19 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4442
4455
  },
4443
4456
  setup(i) {
4444
4457
  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(() => {
4446
- }), (r, a) => (S(), j("span", {
4447
- class: K([
4458
+ return ue(() => {
4459
+ }), (r, a) => (C(), j("span", {
4460
+ class: q([
4448
4461
  "vc-material-icon",
4449
4462
  "material-symbols-" + i.type,
4450
4463
  !t.value && `vc-material-icon--${i.size}`,
4451
4464
  i.variant ? `vc-material-icon--${i.variant}` : ""
4452
4465
  ]),
4453
- style: Y(n.value),
4466
+ style: ee(n.value),
4454
4467
  "aria-hidden": "true"
4455
- }, pe(i.icon), 7));
4468
+ }, ge(i.icon), 7));
4456
4469
  }
4457
- }), Bt = /* @__PURE__ */ M({
4470
+ }), Bt = /* @__PURE__ */ L({
4458
4471
  __name: "vc-bootstrap-icon",
4459
4472
  props: {
4460
4473
  icon: {},
@@ -4464,21 +4477,21 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4464
4477
  },
4465
4478
  setup(i) {
4466
4479
  const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
4467
- oe(() => {
4480
+ ue(() => {
4468
4481
  });
4469
4482
  const r = d(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
4470
- return (a, o) => (S(), j("i", {
4471
- class: K([
4483
+ return (a, o) => (C(), j("i", {
4484
+ class: q([
4472
4485
  "vc-bootstrap-icon",
4473
4486
  !t.value && `vc-bootstrap-icon--${i.size}`,
4474
4487
  r.value,
4475
4488
  i.variant ? `vc-bootstrap-icon--${i.variant}` : ""
4476
4489
  ]),
4477
- style: Y(n.value),
4490
+ style: ee(n.value),
4478
4491
  "aria-hidden": "true"
4479
4492
  }, null, 6));
4480
4493
  }
4481
- }), kt = /* @__PURE__ */ M({
4494
+ }), kt = /* @__PURE__ */ L({
4482
4495
  __name: "vc-lucide-icon",
4483
4496
  props: {
4484
4497
  icon: {},
@@ -4488,35 +4501,35 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4488
4501
  customSize: {}
4489
4502
  },
4490
4503
  setup(i) {
4491
- const e = $("vc-lucide-icon"), t = i, n = d(() => typeof t.customSize == "number" && t.customSize > 0), r = d(() => {
4504
+ const e = N("vc-lucide-icon"), t = i, n = d(() => typeof t.customSize == "number" && t.customSize > 0), r = d(() => {
4492
4505
  if (!t.icon) return "HelpCircleIcon";
4493
4506
  let l = t.icon;
4494
4507
  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
4508
  }), a = d(() => {
4496
4509
  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);
4510
+ return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : Pe(c);
4498
4511
  }), o = d(() => n.value && t.customSize ? {
4499
4512
  width: `${t.customSize}px`,
4500
4513
  height: `${t.customSize}px`
4501
4514
  } : {});
4502
- return (l, c) => a.value ? (S(), X(fe(a.value), {
4515
+ return (l, c) => a.value ? (C(), Q(ve(a.value), {
4503
4516
  key: 0,
4504
4517
  "stroke-width": t.strokeWidth,
4505
- class: K([
4518
+ class: q([
4506
4519
  "vc-lucide-icon",
4507
4520
  !n.value && `vc-lucide-icon--${i.size}`,
4508
4521
  i.variant ? `vc-lucide-icon--${i.variant}` : ""
4509
4522
  ]),
4510
- style: Y(o.value),
4523
+ style: ee(o.value),
4511
4524
  "aria-hidden": "true"
4512
- }, null, 8, ["stroke-width", "class", "style"])) : (S(), j("span", {
4525
+ }, null, 8, ["stroke-width", "class", "style"])) : (C(), j("span", {
4513
4526
  key: 1,
4514
- class: K(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
4527
+ class: q(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
4515
4528
  }, [...c[0] || (c[0] = [
4516
4529
  R("i", { class: "vc-lucide-icon__fallback" }, null, -1)
4517
4530
  ])], 2));
4518
4531
  }
4519
- }), Gt = /* @__PURE__ */ M({
4532
+ }), Gt = /* @__PURE__ */ L({
4520
4533
  __name: "vc-fontawesome-icon",
4521
4534
  props: {
4522
4535
  icon: {},
@@ -4526,21 +4539,21 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4526
4539
  },
4527
4540
  setup(i) {
4528
4541
  const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
4529
- oe(() => {
4542
+ ue(() => {
4530
4543
  });
4531
4544
  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
- return (a, o) => (S(), j("i", {
4533
- class: K([
4545
+ return (a, o) => (C(), j("i", {
4546
+ class: q([
4534
4547
  "vc-fa-icon",
4535
4548
  !t.value && `vc-fa-icon--${i.size}`,
4536
4549
  r.value,
4537
4550
  i.variant ? `vc-fa-icon--${i.variant}` : ""
4538
4551
  ]),
4539
- style: Y(n.value),
4552
+ style: ee(n.value),
4540
4553
  "aria-hidden": "true"
4541
4554
  }, null, 6));
4542
4555
  }
4543
- }), Ft = ["xlink:href"], Dt = /* @__PURE__ */ M({
4556
+ }), Ft = ["xlink:href"], Dt = /* @__PURE__ */ L({
4544
4557
  inheritAttrs: !1,
4545
4558
  __name: "vc-svg-icon",
4546
4559
  props: {
@@ -4565,18 +4578,18 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4565
4578
  const a = {};
4566
4579
  return e.customSize && (a.width = `${e.customSize}px`, a.height = `${e.customSize}px`), e.strokeWidth && (a.strokeWidth = `${e.strokeWidth}`), a;
4567
4580
  });
4568
- return (a, o) => (S(), j("svg", ae({
4581
+ return (a, o) => (C(), j("svg", ie({
4569
4582
  xmlns: "http://www.w3.org/2000/svg",
4570
4583
  class: ["vc-svg-icon", !t.value && `vc-svg-icon--${i.size}`, i.variant ? `vc-svg-icon--${i.variant}` : ""],
4571
4584
  style: r.value
4572
4585
  }, a.$attrs), [
4573
- n.value ? (S(), j("use", {
4586
+ n.value ? (C(), j("use", {
4574
4587
  key: 0,
4575
4588
  "xlink:href": n.value
4576
- }, null, 8, Ft)) : Z("", !0)
4589
+ }, null, 8, Ft)) : X("", !0)
4577
4590
  ], 16));
4578
4591
  }
4579
- }), Mt = ["aria-hidden", "aria-label", "role"], ie = /* @__PURE__ */ M({
4592
+ }), Mt = ["aria-hidden", "aria-label", "role"], le = /* @__PURE__ */ L({
4580
4593
  __name: "vc-icon",
4581
4594
  props: {
4582
4595
  icon: { default: "lucide-square" },
@@ -4589,7 +4602,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4589
4602
  },
4590
4603
  setup(i) {
4591
4604
  const e = i;
4592
- oe(() => {
4605
+ ue(() => {
4593
4606
  });
4594
4607
  const t = {
4595
4608
  xs: 12,
@@ -4605,8 +4618,8 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4605
4618
  if (n.value === "material" && e.icon.startsWith("material-"))
4606
4619
  return e.icon.replace(/^material-/, "");
4607
4620
  if (n.value === "lucide" && e.icon.startsWith("lucide-")) {
4608
- const b = e.icon.replace(/^lucide-/, "");
4609
- return b.endsWith("Icon") ? b : `${b}Icon`;
4621
+ const x = e.icon.replace(/^lucide-/, "");
4622
+ return x.endsWith("Icon") ? x : `${x}Icon`;
4610
4623
  }
4611
4624
  return e.icon;
4612
4625
  }), a = d(() => n.value === "material"), o = d(() => n.value === "bootstrap"), l = d(() => n.value === "lucide"), c = d(() => n.value === "fontawesome"), p = d(() => {
@@ -4616,31 +4629,31 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4616
4629
  return !1;
4617
4630
  if (l.value)
4618
4631
  try {
4619
- const b = typeof r.value == "string" ? r.value : String(r.value);
4620
- return ce(b) !== b;
4632
+ const x = typeof r.value == "string" ? r.value : String(r.value);
4633
+ return fe(x) !== x;
4621
4634
  } catch {
4622
4635
  return !1;
4623
4636
  }
4624
4637
  try {
4625
- return ce(e.icon) !== e.icon;
4638
+ return fe(e.icon) !== e.icon;
4626
4639
  } catch {
4627
4640
  return !1;
4628
4641
  }
4629
4642
  }), g = d(() => {
4630
4643
  if (typeof e.icon != "string")
4631
- return we(e.icon);
4644
+ return Pe(e.icon);
4632
4645
  if (["fontawesome", "bootstrap", "material"].includes(n.value))
4633
4646
  return "i";
4634
4647
  try {
4635
- const b = typeof r.value == "string" ? r.value : String(r.value), m = ce(b);
4636
- return m !== b ? m : "i";
4648
+ const x = typeof r.value == "string" ? r.value : String(r.value), m = fe(x);
4649
+ return m !== x ? m : "i";
4637
4650
  } catch {
4638
4651
  return "i";
4639
4652
  }
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(() => {
4641
- const b = {};
4642
- return p.value && e.customSize && (b.width = `${e.customSize}px`, b.height = `${e.customSize}px`), b;
4643
- }), x = d(() => e.customSize ? {
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;
4656
+ }), E = d(() => e.customSize ? {
4644
4657
  fontSize: `${e.customSize}px`
4645
4658
  } : {}), O = d(() => a.value ? {
4646
4659
  icon: typeof r.value == "string" ? r.value.replace(/-outlined$|-rounded$|-sharp$/, "") : r.value,
@@ -4671,7 +4684,7 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4671
4684
  variant: e.variant,
4672
4685
  customSize: e.customSize
4673
4686
  // Set custom size without scaling
4674
- } : N.value ? {
4687
+ } : z.value ? {
4675
4688
  icon: D.value,
4676
4689
  size: e.size,
4677
4690
  variant: e.variant,
@@ -4679,28 +4692,28 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4679
4692
  basePath: e.basePath
4680
4693
  } : p.value ? {
4681
4694
  size: e.size,
4682
- width: y.value,
4683
- height: y.value,
4695
+ width: _.value,
4696
+ height: _.value,
4684
4697
  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({
4698
+ } : {}), 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({
4687
4700
  key: 0,
4688
4701
  class: ["vc-icon-container", `vc-icon-container--${i.size}`],
4689
- style: x.value,
4702
+ style: E.value,
4690
4703
  "aria-hidden": i.ariaLabel ? void 0 : "true",
4691
4704
  "aria-label": i.ariaLabel || void 0,
4692
4705
  role: i.ariaLabel ? "img" : void 0
4693
- }, b.$attrs), [
4694
- (S(), X(fe(h.value), ae({
4706
+ }, x.$attrs), [
4707
+ (C(), Q(ve(h.value), ie({
4695
4708
  class: [
4696
4709
  "vc-icon",
4697
4710
  `vc-icon--${i.size}`,
4698
4711
  i.variant ? `vc-icon--${i.variant}` : "",
4699
4712
  !p.value && !a.value && !l.value && !o.value && !c.value ? i.icon.toLowerCase() : ""
4700
4713
  ],
4701
- style: w.value
4714
+ style: A.value
4702
4715
  }, O.value), null, 16, ["class", "style"]))
4703
- ], 16, Mt)) : (S(), X(fe(h.value), ae({
4716
+ ], 16, Mt)) : (C(), Q(ve(h.value), ie({
4704
4717
  key: 1,
4705
4718
  class: [
4706
4719
  "vc-icon",
@@ -4708,13 +4721,13 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4708
4721
  i.variant ? `vc-icon--${i.variant}` : "",
4709
4722
  !p.value && !a.value && !l.value && !o.value && !c.value ? i.icon.toLowerCase() : ""
4710
4723
  ],
4711
- style: w.value,
4724
+ style: A.value,
4712
4725
  "aria-hidden": i.ariaLabel ? void 0 : "true",
4713
4726
  "aria-label": i.ariaLabel || void 0,
4714
4727
  role: i.ariaLabel ? "img" : void 0
4715
- }, { ...O.value, ...b.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
4728
+ }, { ...O.value, ...x.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
4716
4729
  }
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({
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({
4718
4731
  __name: "VcAiAgentHeader",
4719
4732
  props: {
4720
4733
  title: {},
@@ -4723,9 +4736,9 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4723
4736
  },
4724
4737
  emits: ["close", "expand", "collapse"],
4725
4738
  setup(i) {
4726
- return (e, t) => (S(), j("div", Lt, [
4739
+ return (e, t) => (C(), j("div", Lt, [
4727
4740
  R("div", Jt, [
4728
- W($e, {
4741
+ K(ze, {
4729
4742
  width: 22,
4730
4743
  height: 24,
4731
4744
  "show-dots": ""
@@ -4733,31 +4746,31 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4733
4746
  ]),
4734
4747
  R("div", Wt, [
4735
4748
  R("div", Vt, [
4736
- R("div", Kt, pe(i.title), 1)
4749
+ R("div", Kt, ge(i.title), 1)
4737
4750
  ])
4738
4751
  ]),
4739
4752
  R("div", qt, [
4740
- i.isExpanded ? (S(), j("div", {
4753
+ i.isExpanded ? (C(), j("div", {
4741
4754
  key: 0,
4742
4755
  class: "vc-ai-agent-header__button",
4743
4756
  title: "Collapse",
4744
4757
  onClick: t[0] || (t[0] = (n) => e.$emit("collapse"))
4745
4758
  }, [
4746
- W(se(ie), { icon: "lucide-minus" })
4747
- ])) : (S(), j("div", {
4759
+ K(oe(le), { icon: "lucide-minus" })
4760
+ ])) : (C(), j("div", {
4748
4761
  key: 1,
4749
4762
  class: "vc-ai-agent-header__button",
4750
4763
  title: "Expand",
4751
4764
  onClick: t[1] || (t[1] = (n) => e.$emit("expand"))
4752
4765
  }, [
4753
- W(se(ie), { icon: "lucide-panel-top" })
4766
+ K(oe(le), { icon: "lucide-panel-top" })
4754
4767
  ])),
4755
4768
  R("div", {
4756
4769
  class: "vc-ai-agent-header__button",
4757
4770
  title: "Close",
4758
4771
  onClick: t[2] || (t[2] = (n) => e.$emit("close"))
4759
4772
  }, [
4760
- W(se(ie), { icon: "lucide-x" })
4773
+ K(oe(le), { icon: "lucide-x" })
4761
4774
  ])
4762
4775
  ])
4763
4776
  ]));
@@ -4765,37 +4778,37 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4765
4778
  }), Zt = { class: "vc-ai-agent-loader" }, Xt = { class: "vc-ai-agent-loader__content" }, Yt = { class: "vc-ai-agent-loader__logo" }, Qt = {
4766
4779
  key: 0,
4767
4780
  class: "vc-ai-agent-loader__text"
4768
- }, er = /* @__PURE__ */ M({
4781
+ }, er = /* @__PURE__ */ L({
4769
4782
  __name: "VcAiAgentLoader",
4770
4783
  props: {
4771
4784
  text: {}
4772
4785
  },
4773
4786
  setup(i) {
4774
- return (e, t) => (S(), j("div", Zt, [
4787
+ return (e, t) => (C(), j("div", Zt, [
4775
4788
  R("div", Xt, [
4776
4789
  R("div", Yt, [
4777
- W($e, {
4790
+ K(ze, {
4778
4791
  width: 80,
4779
4792
  height: 87,
4780
4793
  animated: ""
4781
4794
  })
4782
4795
  ]),
4783
- i.text ? (S(), j("p", Qt, pe(i.text), 1)) : Z("", !0)
4796
+ i.text ? (C(), j("p", Qt, ge(i.text), 1)) : X("", !0)
4784
4797
  ])
4785
4798
  ]));
4786
4799
  }
4787
4800
  }), tr = { class: "vc-ai-agent-iframe" }, rr = ["src"], nr = {
4788
4801
  key: 1,
4789
4802
  class: "vc-ai-agent-iframe__placeholder"
4790
- }, ar = /* @__PURE__ */ M({
4803
+ }, ar = /* @__PURE__ */ L({
4791
4804
  __name: "VcAiAgentIframe",
4792
4805
  props: {
4793
4806
  url: {}
4794
4807
  },
4795
4808
  emits: ["iframe-ready"],
4796
4809
  setup(i, { emit: e }) {
4797
- const t = $("ai-agent-iframe"), n = i, r = e, a = G(null), o = G(!0);
4798
- H(
4810
+ const t = N("ai-agent-iframe"), n = i, r = e, a = G(null), o = G(!0);
4811
+ Z(
4799
4812
  a,
4800
4813
  (c) => {
4801
4814
  c && r("iframe-ready", c);
@@ -4805,32 +4818,32 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4805
4818
  const l = () => {
4806
4819
  o.value = !1, t.debug("Iframe loaded");
4807
4820
  };
4808
- return H(
4821
+ return Z(
4809
4822
  () => n.url,
4810
4823
  () => {
4811
4824
  o.value = !0;
4812
4825
  }
4813
- ), (c, p) => (S(), j("div", tr, [
4814
- W(Ae, { name: "fade" }, {
4815
- default: Pe(() => [
4816
- o.value && i.url ? (S(), X(er, {
4826
+ ), (c, p) => (C(), j("div", tr, [
4827
+ K(Oe, { name: "fade" }, {
4828
+ default: Ie(() => [
4829
+ o.value && i.url ? (C(), Q(er, {
4817
4830
  key: 0,
4818
4831
  text: c.$t("AI_AGENT.LOADING")
4819
- }, null, 8, ["text"])) : Z("", !0)
4832
+ }, null, 8, ["text"])) : X("", !0)
4820
4833
  ]),
4821
4834
  _: 1
4822
4835
  }),
4823
- i.url ? (S(), j("iframe", {
4836
+ i.url ? (C(), j("iframe", {
4824
4837
  key: 0,
4825
4838
  ref_key: "iframeRef",
4826
4839
  ref: a,
4827
4840
  src: i.url,
4828
- class: K(["vc-ai-agent-iframe__frame", { "vc-ai-agent-iframe__frame--loading": o.value }]),
4841
+ class: q(["vc-ai-agent-iframe__frame", { "vc-ai-agent-iframe__frame--loading": o.value }]),
4829
4842
  sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
4830
4843
  allow: "clipboard-read; clipboard-write",
4831
4844
  onLoad: l
4832
- }, null, 42, rr)) : (S(), j("div", nr, [
4833
- W(se(ie), {
4845
+ }, null, 42, rr)) : (C(), j("div", nr, [
4846
+ K(oe(le), {
4834
4847
  icon: "lucide-sparkles",
4835
4848
  size: "xl",
4836
4849
  class: "vc-ai-agent-iframe__placeholder-icon"
@@ -4839,30 +4852,30 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4839
4852
  ]))
4840
4853
  ]));
4841
4854
  }
4842
- }), sr = { class: "vc-ai-agent-panel__content" }, fn = /* @__PURE__ */ M({
4855
+ }), sr = { class: "vc-ai-agent-panel__content" }, fn = /* @__PURE__ */ L({
4843
4856
  __name: "VcAiAgentPanel",
4844
4857
  setup(i) {
4845
- const e = L(ve), t = L(vt, !1);
4858
+ const e = J(xe), t = J(vt, !1);
4846
4859
  e || console.error("[VcAiAgentPanel] AiAgentService not provided");
4847
4860
  const n = d(
4848
4861
  () => e?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
4849
4862
  ), r = d(() => !t && (e?.isOpen.value ?? !1)), a = d(() => e?.isExpanded.value ?? !1), o = d(() => e?.totalItemsCount.value ?? 0), l = d(() => ({
4850
4863
  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);
4864
+ })), c = () => e?.closePanel(), p = () => e?.expandPanel(), g = () => e?.collapsePanel(), h = (_) => {
4865
+ e?._setIframeRef(_);
4853
4866
  };
4854
4867
  return Fe(() => {
4855
4868
  e?._setIframeRef(null);
4856
- }), (y, w) => (S(), X(Ae, { name: "ai-panel-slide" }, {
4857
- default: Pe(() => [
4858
- r.value ? (S(), j("div", {
4869
+ }), (_, A) => (C(), Q(Oe, { name: "ai-panel-slide" }, {
4870
+ default: Ie(() => [
4871
+ r.value ? (C(), j("div", {
4859
4872
  key: 0,
4860
- class: K(["vc-ai-agent-panel", {
4873
+ class: q(["vc-ai-agent-panel", {
4861
4874
  "vc-ai-agent-panel--expanded": a.value
4862
4875
  }]),
4863
- style: Y(l.value)
4876
+ style: ee(l.value)
4864
4877
  }, [
4865
- W(Ht, {
4878
+ K(Ht, {
4866
4879
  title: n.value.title,
4867
4880
  "is-expanded": a.value,
4868
4881
  "items-count": o.value,
@@ -4871,12 +4884,12 @@ const It = ["width", "height"], Rt = ["clip-path"], jt = {
4871
4884
  onCollapse: g
4872
4885
  }, null, 8, ["title", "is-expanded", "items-count"]),
4873
4886
  R("div", sr, [
4874
- W(ar, {
4887
+ K(ar, {
4875
4888
  url: n.value.url,
4876
4889
  onIframeReady: h
4877
4890
  }, null, 8, ["url"])
4878
4891
  ])
4879
- ], 6)) : Z("", !0)
4892
+ ], 6)) : X("", !0)
4880
4893
  ]),
4881
4894
  _: 1
4882
4895
  }));
@@ -4910,7 +4923,7 @@ export {
4910
4923
  Fr as X,
4911
4924
  fr as Y,
4912
4925
  k as Z,
4913
- ie as _,
4926
+ le as _,
4914
4927
  fn as a,
4915
4928
  Pr as a0,
4916
4929
  ft as a1,
@@ -4949,12 +4962,12 @@ export {
4949
4962
  wr as ax,
4950
4963
  Ot as ay,
4951
4964
  ut as az,
4952
- ve as b,
4965
+ xe as b,
4953
4966
  dn as c,
4954
- $ as d,
4955
- Ue as e,
4967
+ N as d,
4968
+ Se as e,
4956
4969
  un as f,
4957
- Oe as g,
4970
+ Re as g,
4958
4971
  ct as h,
4959
4972
  sn as i,
4960
4973
  nn as j,
@@ -4964,13 +4977,13 @@ export {
4964
4977
  At as n,
4965
4978
  at as o,
4966
4979
  ln as p,
4967
- Ie as q,
4968
- Re as r,
4980
+ je as q,
4981
+ $e as r,
4969
4982
  an as s,
4970
4983
  St as t,
4971
4984
  hn as u,
4972
- je as v,
4973
- Se as w,
4985
+ Ne as v,
4986
+ we as w,
4974
4987
  Ct as x,
4975
4988
  Yr as y,
4976
4989
  Wr as z