@vc-shell/framework 2.5.0-pr330.76c5b90 → 2.5.0-pr333.50c07fa

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.
package/dist/framework.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { b as ya, c as Ba } from "./chunks/vendor-vueuse-core-_wFDcFkI.js";
2
- import { N as nt, O as se, P as q, Q as X, l as x, R as Pe, S as Ma, T as yt, p as st, q as $, n as Ae, A as ka, U as Va, W as Ua, X as Fa, V as Ee, Y as Wa, Z as Ha, $ as Ga, a0 as xa, a1 as $a, a2 as Ka, a3 as za, a4 as qa, a5 as Ya } from "./chunks/VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js";
2
+ import { N as st, O as se, P as q, Q as X, l as x, R as Pe, S as Ma, T as yt, p as ot, q as $, n as Ae, A as ka, U as Va, W as Ua, X as Fa, V as Ee, Y as Wa, Z as Ha, $ as Ga, a0 as xa, a1 as $a, a2 as Ka, a3 as za, a4 as qa, a5 as Ya } from "./chunks/VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js";
3
3
  import { B as Zl, a6 as Xl, a as Jl, _ as Ql, b as eu, c as tu, d as au, e as nu, f as su, g as ou, h as ru, i as iu, j as lu, k as uu, a7 as cu, a8 as du, a9 as Eu, aa as fu, ab as mu, ac as gu, ad as Su, m as pu, o as Au, r as Tu, s as hu, t as Lu, u as Ou, v as Ru, w as _u, x as Iu, y as vu, z as wu, ae as Cu, af as Pu, ag as bu, ah as Nu, ai as Du, aj as yu, ak as Bu, al as Mu, am as ku, an as Vu, ao as Uu, ap as Fu, aq as Wu, ar as Hu, as as Gu, at as xu, au as $u, av as Ku, aw as zu, ax as qu, ay as Yu, C as ju, az as Zu, aA as Xu, aB as Ju, aC as Qu, D as ec, aD as tc, aE as ac, aF as nc, aG as sc, aH as oc, aI as rc, aJ as ic, aK as lc, aL as uc, E as cc, F as dc, G as Ec, L as fc, aM as mc, H as gc, I as Sc, aN as pc, J as Ac, aO as Tc, aP as hc, aQ as Lc } from "./chunks/VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js";
4
- import { getCurrentScope as ot, onScopeDispose as rt, computed as C, inject as Q, watch as ae, defineComponent as H, openBlock as b, createBlock as D, createSlots as Oe, withCtx as A, renderSlot as Y, createElementVNode as U, normalizeClass as ja, createElementBlock as W, Fragment as ne, createVNode as I, unref as i, createTextVNode as M, toDisplayString as y, shallowReactive as Za, ref as N, readonly as Me, onMounted as Re, onBeforeMount as Xa, onBeforeUnmount as Ja, shallowRef as Qa, onUnmounted as en, provide as Bt, toValue as Mt, isRef as kt, normalizeStyle as Vt, createCommentVNode as z, withDirectives as tn, withModifiers as He, reactive as ie, createApp as an, nextTick as be, renderList as Fe, withKeys as it, mergeProps as re, getCurrentInstance as nn, warn as sn, h as ee, toRaw as on } from "vue";
5
- import { aS as me, aT as rn, aU as ln, aV as Ut, aW as Ge, aX as un, aY as cn, aZ as dn, a_ as En, a$ as fn, ab as mn, b0 as xe, b1 as gn, b2 as Sn, b3 as Ft, F as Wt, M as pn, Y as ge, W as $e, am as An, N as Tn, ai as hn, B as _e, a3 as Ht, E as Ln, b4 as On, b5 as Rn, an as ft, b6 as _n, b7 as In } from "./chunks/VcScheduler.vue_vue_type_script_setup_true_lang-_KPO9Orm.js";
6
- import { b8 as Rc, b9 as _c, C as Ic, ba as vc, bb as wc, bc as Cc, _ as Pc, bd as bc, be as Nc, S as Dc, bf as yc, bg as Bc, a as Mc, b as kc, c as Vc, d as Uc, e as Fc, f as Wc, T as Hc, g as Gc, h as xc, i as $c, j as Kc, k as zc, l as qc, m as Yc, bh as jc, bi as Zc, V as Xc, n as Jc, o as Qc, p as ed, q as td, r as ad, s as nd, t as sd, u as od, v as rd, w as id, x as ld, y as ud, z as cd, A as dd, D as Ed, bj as fd, bj as md, bk as gd, G as Sd, H as pd, I as Ad, J as Td, K as hd, L as Ld, O as Od, P as Rd, Q as _d, R as Id, U as vd, X as wd, Z as Cd, $ as Pd, a0 as bd, a1 as Nd, a2 as Dd, a4 as yd, a5 as Bd, a6 as Md, a7 as kd, a8 as Vd, a9 as Ud, aa as Fd, ac as Wd, ad as Hd, ae as Gd, af as xd, ag as $d, ah as Kd, aj as zd, ak as qd, al as Yd, ao as jd, ap as Zd, bl as Xd, aq as Jd, bm as Qd, bn as eE, bo as tE, bp as aE, bq as nE, br as sE, bs as oE, bt as rE, bu as iE, bv as lE, bw as uE, ar as cE, as as dE, at as EE, bx as fE, au as mE, av as gE, by as SE, aw as pE, ax as AE, ay as TE, az as hE, bz as LE, aA as OE, aB as RE, aC as _E, bA as IE, aD as vE, aE as wE, aF as CE, aG as PE, bB as bE, aH as NE, aI as DE, aJ as yE, aK as BE, aL as ME, aM as kE, aN as VE, aO as UE, aP as FE, aQ as WE, aR as HE, aq as GE } from "./chunks/VcScheduler.vue_vue_type_script_setup_true_lang-_KPO9Orm.js";
4
+ import { getCurrentScope as rt, onScopeDispose as it, computed as I, inject as Q, watch as ae, defineComponent as H, openBlock as b, createBlock as D, createSlots as Oe, withCtx as h, renderSlot as Y, createElementVNode as U, normalizeClass as ja, createElementBlock as W, Fragment as ne, createVNode as _, unref as i, createTextVNode as M, toDisplayString as y, shallowReactive as Za, ref as N, readonly as Me, onMounted as Re, onBeforeMount as Xa, onBeforeUnmount as Ja, shallowRef as Qa, onUnmounted as en, provide as Bt, toValue as Mt, isRef as kt, normalizeStyle as Vt, createCommentVNode as z, withDirectives as tn, withModifiers as He, reactive as ie, createApp as an, nextTick as be, renderList as Fe, withKeys as lt, mergeProps as re, getCurrentInstance as nn, warn as sn, h as ee, toRaw as on } from "vue";
5
+ import { aS as me, aT as rn, aU as ln, aV as Ut, aW as Ge, aX as un, aY as cn, aZ as dn, a_ as En, a$ as fn, ab as mn, b0 as xe, b1 as gn, b2 as Sn, b3 as Ft, F as Wt, M as pn, Y as ge, W as $e, am as An, N as Tn, ai as hn, B as _e, a3 as Ht, E as Ln, b4 as On, b5 as Rn, an as mt, b6 as _n, b7 as In } from "./chunks/VcScheduler.vue_vue_type_script_setup_true_lang-RHeDlcVB.js";
6
+ import { b8 as Rc, b9 as _c, C as Ic, ba as vc, bb as wc, bc as Cc, _ as Pc, bd as bc, be as Nc, S as Dc, bf as yc, bg as Bc, a as Mc, b as kc, c as Vc, d as Uc, e as Fc, f as Wc, T as Hc, g as Gc, h as xc, i as $c, j as Kc, k as zc, l as qc, m as Yc, bh as jc, bi as Zc, V as Xc, n as Jc, o as Qc, p as ed, q as td, r as ad, s as nd, t as sd, u as od, v as rd, w as id, x as ld, y as ud, z as cd, A as dd, D as Ed, bj as fd, bj as md, bk as gd, G as Sd, H as pd, I as Ad, J as Td, K as hd, L as Ld, O as Od, P as Rd, Q as _d, R as Id, U as vd, X as wd, Z as Cd, $ as Pd, a0 as bd, a1 as Nd, a2 as Dd, a4 as yd, a5 as Bd, a6 as Md, a7 as kd, a8 as Vd, a9 as Ud, aa as Fd, ac as Wd, ad as Hd, ae as Gd, af as xd, ag as $d, ah as Kd, aj as zd, ak as qd, al as Yd, ao as jd, ap as Zd, bl as Xd, aq as Jd, bm as Qd, bn as eE, bo as tE, bp as aE, bq as nE, br as sE, bs as oE, bt as rE, bu as iE, bv as lE, bw as uE, ar as cE, as as dE, at as EE, bx as fE, au as mE, av as gE, by as SE, aw as pE, ax as AE, ay as TE, az as hE, bz as LE, aA as OE, aB as RE, aC as _E, bA as IE, aD as vE, aE as wE, aF as CE, aG as PE, bB as bE, aH as NE, aI as DE, aJ as yE, aK as BE, aL as ME, aM as kE, aN as VE, aO as UE, aP as FE, aQ as WE, aR as HE, aq as GE } from "./chunks/VcScheduler.vue_vue_type_script_setup_true_lang-RHeDlcVB.js";
7
7
  import { _ as vn } from "./chunks/vendor-cypress-signalr-mock-itnm2wpA.js";
8
- import { c as k, b as wn, d as Cn, i as Qe, S as Pn, W as Gt, B as xt, h as bn, j as $t, m as Nn, k as Dn, l as Kt, n as yn, _ as Bn, L as Mn, I as kn, o as Vn, p as Un, q as Fn, r as Wn, s as Hn, T as Gn, t as xn, v as $n, w as Kn, x as zn } from "./chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
8
+ import { c as k, b as wn, d as Cn, i as et, S as Pn, W as Gt, B as xt, h as bn, j as $t, k as Nn, m as Dn, l as Kt, n as yn, _ as Bn, L as Mn, I as kn, o as Vn, p as Un, q as Fn, r as Wn, s as Hn, T as Gn, t as xn, v as $n, w as Kn, x as zn } from "./chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
9
9
  import { A as $E, y as KE, z as zE, C as qE, D as YE, F as jE, G as ZE, H as XE, J as JE, K as QE, e as ef, f as tf, O as af, P as nf, Q as sf, R as of, U as rf, V as lf, X as uf, Y as cf, Z as df, $ as Ef, a0 as ff, E as mf, a1 as gf, a2 as Sf, a3 as pf, a4 as Af, a5 as Tf, a6 as hf, a7 as Lf, a8 as Of, M as Rf, N as _f, a9 as If, aa as vf, ab as wf, ac as Cf, ad as Pf, ae as bf, af as Nf, ag as Df, a as yf, ah as Bf, ai as Mf, aj as kf, ak as Vf, u as Uf, g as Ff } from "./chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
10
10
  import { H as qn, L as Yn } from "./chunks/vendor-microsoft-signalr-Bgpbb4fW.js";
11
11
  import { a as jn } from "./chunks/index-DLsURdJp.js";
12
12
  import { u as Hf } from "./chunks/index-DLsURdJp.js";
13
- import { a as Zn, s as Xn, b as Jn, d as Qn, e as es, f as lt, g as ts, h as as, i as ns, j as ss } from "./chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-y-eKcMMU.js";
13
+ import { a as Zn, s as Xn, b as Jn, d as Qn, e as es, f as ut, g as ts, h as as, i as ns, j as ss } from "./chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-y-eKcMMU.js";
14
14
  import { A as xf, D as $f, E as Kf, H as zf, _ as qf, c as Yf, k as jf, l as Zf, m as Xf, n as Jf, o as Qf, p as em, u as tm, q as am, r as nm, t as sm } from "./chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-y-eKcMMU.js";
15
15
  import "./chunks/ExtensionPoint.vue_vue_type_style_index_0_lang-B1R06zHa.js";
16
16
  import "./chunks/vendor-dompurify-DpIUMBYC.js";
17
17
  import { u as le } from "./chunks/vendor-vue-i18n-LO-EJStU.js";
18
- import { useForm as ue, useIsFormValid as Ie, useIsFormDirty as ut, Field as Z } from "vee-validate";
18
+ import { useForm as ue, useIsFormValid as Ie, useIsFormDirty as ct, Field as Z } from "vee-validate";
19
19
  import { useRouter as ve } from "vue-router";
20
20
  import "./chunks/vendor-tiptap-starter-kit-ny-AoaO_.js";
21
21
  import "./chunks/vendor-tiptap-extension-underline-Bo1pXXDN.js";
@@ -116,11 +116,11 @@ function Al(e) {
116
116
  });
117
117
  }
118
118
  const As = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "svg", "gif"]);
119
- function ct(e) {
119
+ function dt(e) {
120
120
  return e.split(".").pop()?.toLowerCase();
121
121
  }
122
122
  function zt(e) {
123
- return e ? As.has(ct(e) ?? "") : !1;
123
+ return e ? As.has(dt(e) ?? "") : !1;
124
124
  }
125
125
  function qt(e, t = 2) {
126
126
  if (!e) return "0 Bytes";
@@ -144,15 +144,15 @@ const Ts = {
144
144
  };
145
145
  function Yt(e) {
146
146
  if (!e) return "var(--neutrals-400)";
147
- const t = ct(e) ?? "";
147
+ const t = dt(e) ?? "";
148
148
  return Ts[t] ?? "var(--neutrals-400)";
149
149
  }
150
150
  function jt(e) {
151
- return e ? (ct(e) ?? "FILE").toUpperCase() : "FILE";
151
+ return e ? (dt(e) ?? "FILE").toUpperCase() : "FILE";
152
152
  }
153
153
  const hs = {
154
154
  install(e) {
155
- const { hasAccess: t } = nt();
155
+ const { hasAccess: t } = st();
156
156
  e.config.globalProperties.$hasAccess = t;
157
157
  }
158
158
  };
@@ -162,10 +162,10 @@ function Tl(e) {
162
162
  filter: e.filter,
163
163
  handler: e.onMessage
164
164
  });
165
- ot() && rt(a);
166
- const n = C(
165
+ rt() && it(a);
166
+ const n = I(
167
167
  () => t.realtime.value.filter((r) => !(!r.notifyType || !e.types.includes(r.notifyType) || !r.isNew || e.filter && !e.filter(r)))
168
- ), s = C(() => n.value.length);
168
+ ), s = I(() => n.value.length);
169
169
  function o(r) {
170
170
  t.markAsRead(r);
171
171
  }
@@ -188,30 +188,40 @@ function Ll() {
188
188
  clearBroadcastFilter: e.clearBroadcastFilter
189
189
  };
190
190
  }
191
- const Zt = Symbol("NotificationContainerState"), mt = k("signalR"), Ls = {
191
+ const Zt = Symbol("NotificationContainerState"), Ke = k("signalR"), Ls = {
192
192
  install(e) {
193
193
  const t = me(), { isAuthenticated: a } = se();
194
194
  let n = !1;
195
- const s = vn("pushNotificationHub", { enableForVitest: !0 }) ?? new qn().withUrl("/pushNotificationHub").withAutomaticReconnect().configureLogging(Yn.Information).build(), o = () => {
195
+ const s = vn("pushNotificationHub", { enableForVitest: !0 }) ?? new qn().withUrl("/pushNotificationHub").withAutomaticReconnect().configureLogging(Yn.Information).build(), o = 5e3, r = 6e4;
196
+ let l = 0, c;
197
+ function u(f) {
198
+ return f instanceof Error && /\b401\b/.test(f.message);
199
+ }
200
+ const E = () => {
196
201
  s.start().then(() => {
197
- mt.info("Connected.");
198
- }).catch((l) => {
199
- mt.error("Connection Error: ", l), setTimeout(() => o(), 5e3);
202
+ l = 0, Ke.info("Connected.");
203
+ }).catch((f) => {
204
+ if (Ke.error("Connection Error: ", f), u(f)) {
205
+ Ke.warn("Not authenticated — stopping reconnect attempts until sign-in.");
206
+ return;
207
+ }
208
+ const d = Math.min(o * 2 ** l, r);
209
+ l++, c = setTimeout(() => E(), d);
200
210
  });
201
211
  };
202
- async function r() {
203
- await s.stop();
212
+ async function g() {
213
+ clearTimeout(c), c = void 0, await s.stop();
204
214
  }
205
215
  s.onclose(() => {
206
- n && o();
207
- }), s.on("Send", (l) => {
208
- t.ingest(l);
209
- }), s.on("SendSystemEvents", (l) => {
210
- t.ingest(l, { broadcast: !0 });
216
+ n && E();
217
+ }), s.on("Send", (f) => {
218
+ t.ingest(f);
219
+ }), s.on("SendSystemEvents", (f) => {
220
+ t.ingest(f, { broadcast: !0 });
211
221
  }), ae(
212
222
  a,
213
- async (l) => {
214
- l ? (n = !0, o()) : (n = !1, await r());
223
+ async (f) => {
224
+ f ? (n = !0, l = 0, E()) : (n = !1, await g());
215
225
  },
216
226
  { immediate: !0 }
217
227
  );
@@ -224,7 +234,7 @@ function Ol(e) {
224
234
  };
225
235
  }
226
236
  const Os = k("modularity");
227
- function dt(e) {
237
+ function Et(e) {
228
238
  const { blades: t, locales: a, notificationTemplates: n, notifications: s } = e;
229
239
  return {
230
240
  install(o) {
@@ -281,7 +291,7 @@ function dt(e) {
281
291
  };
282
292
  }
283
293
  function Rl(e, t, a, n) {
284
- return dt({
294
+ return Et({
285
295
  blades: e,
286
296
  locales: t,
287
297
  notificationTemplates: a
@@ -332,8 +342,8 @@ async function _s(e, t, a, n, s) {
332
342
  return t.blades.value.length > 0 && !await gt(t) ? !1 : void 0;
333
343
  const c = Object.fromEntries(Object.entries(e.params).filter(([, E]) => typeof E == "string"));
334
344
  if (await Rs(t, a, l, n, s, c)) {
335
- const { path: E, query: m } = cn(r, t.blades.value);
336
- return { path: E, query: m, replace: !0 };
345
+ const { path: E, query: g } = cn(r, t.blades.value);
346
+ return { path: E, query: g, replace: !0 };
337
347
  }
338
348
  }
339
349
  const Is = {
@@ -356,17 +366,17 @@ const Is = {
356
366
  console.error("[BladeNavigationPlugin] BladeRegistry is required but not found.");
357
367
  return;
358
368
  }
359
- const { hasAccess: o } = e.runWithContext(() => nt()), r = {}, l = fn(a, () => r.current), c = Zn(s, o, l);
369
+ const { hasAccess: o } = e.runWithContext(() => st()), r = {}, l = fn(a, () => r.current), c = Zn(s, o, l);
360
370
  r.current = c, e.provide(wn, c), Xn(c);
361
371
  const u = En(c);
362
372
  e.provide(Cn, u), Jn(u), es(s);
363
- const E = a.getRoutes().find((m) => m.meta?.root);
373
+ const E = a.getRoutes().find((g) => g.meta?.root);
364
374
  E && a.addRoute(E.name, {
365
375
  path: ":pathMatch(.*)*",
366
376
  component: { render: () => null },
367
377
  meta: { bladeCatchAll: !0 }
368
378
  }), a.beforeEach(
369
- (m) => l.suppressWhile(() => _s(m, c, s, o, a))
379
+ (g) => l.suppressWhile(() => _s(g, c, s, o, a))
370
380
  );
371
381
  }
372
382
  }, vs = {
@@ -422,7 +432,7 @@ const Is = {
422
432
  function _l(e) {
423
433
  return vs[e];
424
434
  }
425
- const Et = /* @__PURE__ */ H({
435
+ const ft = /* @__PURE__ */ H({
426
436
  __name: "vc-popup-base",
427
437
  props: {
428
438
  title: {},
@@ -449,10 +459,10 @@ const Et = /* @__PURE__ */ H({
449
459
  closable: e.closable,
450
460
  onClose: r[0] || (r[0] = (l) => o.$emit("close"))
451
461
  }, Oe({
452
- content: A(() => [
462
+ content: h(() => [
453
463
  Y(o.$slots, "default")
454
464
  ]),
455
- footer: A(({ close: l }) => [
465
+ footer: h(({ close: l }) => [
456
466
  Y(o.$slots, "footer", {
457
467
  close: l,
458
468
  confirm: () => s(l)
@@ -464,18 +474,18 @@ const Et = /* @__PURE__ */ H({
464
474
  }])
465
475
  }, [
466
476
  e.mode === "confirm" ? (b(), W(ne, { key: 0 }, [
467
- I(i(x), {
477
+ _(i(x), {
468
478
  text: e.confirmAsText,
469
479
  class: "vc-popup-base__confirm",
470
480
  onClick: (c) => s(l)
471
481
  }, {
472
- default: A(() => [
482
+ default: h(() => [
473
483
  M(y(e.confirmLabel), 1)
474
484
  ]),
475
485
  _: 1
476
486
  }, 8, ["text", "onClick"]),
477
- I(i(x), { onClick: l }, {
478
- default: A(() => [
487
+ _(i(x), { onClick: l }, {
488
+ default: h(() => [
479
489
  M(y(e.cancelLabel), 1)
480
490
  ]),
481
491
  _: 1
@@ -485,7 +495,7 @@ const Et = /* @__PURE__ */ H({
485
495
  class: "vc-popup-base__single",
486
496
  onClick: l
487
497
  }, {
488
- default: A(() => [
498
+ default: h(() => [
489
499
  M(y(e.actionLabel), 1)
490
500
  ]),
491
501
  _: 1
@@ -497,7 +507,7 @@ const Et = /* @__PURE__ */ H({
497
507
  }, [
498
508
  o.$slots.header ? {
499
509
  name: "header",
500
- fn: A(() => [
510
+ fn: h(() => [
501
511
  Y(o.$slots, "header")
502
512
  ]),
503
513
  key: "0"
@@ -511,7 +521,7 @@ const Et = /* @__PURE__ */ H({
511
521
  },
512
522
  emits: ["close", "confirm"],
513
523
  setup(e) {
514
- return (t, a) => (b(), D(Et, {
524
+ return (t, a) => (b(), D(ft, {
515
525
  variant: "warning",
516
526
  mode: "confirm",
517
527
  "confirm-label": t.$t("COMPONENTS.ORGANISMS.VC_POPUP.CONFIRM"),
@@ -521,14 +531,14 @@ const Et = /* @__PURE__ */ H({
521
531
  onClose: a[0] || (a[0] = (n) => t.$emit("close")),
522
532
  onConfirm: a[1] || (a[1] = (n) => t.$emit("confirm"))
523
533
  }, Oe({
524
- default: A(() => [
534
+ default: h(() => [
525
535
  Y(t.$slots, "default")
526
536
  ]),
527
537
  _: 2
528
538
  }, [
529
539
  t.$slots.header ? {
530
540
  name: "header",
531
- fn: A(() => [
541
+ fn: h(() => [
532
542
  Y(t.$slots, "header")
533
543
  ]),
534
544
  key: "0"
@@ -542,21 +552,21 @@ const Et = /* @__PURE__ */ H({
542
552
  },
543
553
  emits: ["close"],
544
554
  setup(e) {
545
- return (t, a) => (b(), D(Et, {
555
+ return (t, a) => (b(), D(ft, {
546
556
  variant: "error",
547
557
  mode: "acknowledge",
548
558
  "action-label": t.$t("COMPONENTS.ORGANISMS.VC_POPUP.OK"),
549
559
  title: e.title,
550
560
  onClose: a[0] || (a[0] = (n) => t.$emit("close"))
551
561
  }, Oe({
552
- default: A(() => [
562
+ default: h(() => [
553
563
  Y(t.$slots, "default")
554
564
  ]),
555
565
  _: 2
556
566
  }, [
557
567
  t.$slots.header ? {
558
568
  name: "header",
559
- fn: A(() => [
569
+ fn: h(() => [
560
570
  Y(t.$slots, "header")
561
571
  ]),
562
572
  key: "0"
@@ -570,21 +580,21 @@ const Et = /* @__PURE__ */ H({
570
580
  },
571
581
  emits: ["close"],
572
582
  setup(e) {
573
- return (t, a) => (b(), D(Et, {
583
+ return (t, a) => (b(), D(ft, {
574
584
  variant: "info",
575
585
  mode: "acknowledge",
576
586
  "action-label": t.$t("COMPONENTS.ORGANISMS.VC_POPUP.OK"),
577
587
  title: e.title,
578
588
  onClose: a[0] || (a[0] = (n) => t.$emit("close"))
579
589
  }, Oe({
580
- default: A(() => [
590
+ default: h(() => [
581
591
  Y(t.$slots, "default")
582
592
  ]),
583
593
  _: 2
584
594
  }, [
585
595
  t.$slots.header ? {
586
596
  name: "header",
587
- fn: A(() => [
597
+ fn: h(() => [
588
598
  Y(t.$slots, "header")
589
599
  ]),
590
600
  key: "0"
@@ -614,14 +624,14 @@ function Ds(e, t) {
614
624
  function ys(e, t = 0) {
615
625
  setTimeout(e, t);
616
626
  }
617
- const Ke = /* @__PURE__ */ new WeakMap();
627
+ const ze = /* @__PURE__ */ new WeakMap();
618
628
  function Bs(e) {
619
629
  return function(...t) {
620
- if (!Ke.has(e)) {
630
+ if (!ze.has(e)) {
621
631
  const a = e(...t);
622
- Ke.set(e, a);
632
+ ze.set(e, a);
623
633
  }
624
- return Ke.get(e);
634
+ return ze.get(e);
625
635
  };
626
636
  }
627
637
  function Ms(e, t) {
@@ -646,12 +656,12 @@ function vl(e) {
646
656
  a.length && (s = t.subscribe({
647
657
  types: a,
648
658
  handler: (r) => n?.(r)
649
- }), ot() && rt(() => s?.()));
650
- const o = C(() => a.length ? t.realtime.value.filter(
659
+ }), rt() && it(() => s?.()));
660
+ const o = I(() => a.length ? t.realtime.value.filter(
651
661
  (r) => r.isNew && r.notifyType != null && a.includes(r.notifyType)
652
662
  ) : []);
653
663
  return {
654
- notifications: C(() => ls(t.history.value, ["created"], ["desc"])),
664
+ notifications: I(() => ls(t.history.value, ["created"], ["desc"])),
655
665
  moduleNotifications: o,
656
666
  loadFromHistory: t.loadHistory,
657
667
  addNotification: t.ingest,
@@ -662,7 +672,7 @@ function vl(e) {
662
672
  }
663
673
  };
664
674
  }
665
- let ze;
675
+ let qe;
666
676
  const ks = k("use-async");
667
677
  function Xt(e, t) {
668
678
  const a = N(!1), n = N(null), s = t?.notify !== !1, o = t?.notifyTimeout ?? 8e3;
@@ -672,14 +682,14 @@ function Xt(e, t) {
672
682
  return await e(l, ...c);
673
683
  } catch (u) {
674
684
  const E = Pe(u);
675
- if (n.value = E, ks.error("Async action failed:", u), s && !Qe() && u && typeof u == "object") {
676
- const m = `async-error-${E.message.slice(0, 80)}`, f = setTimeout(async () => {
677
- ze || (ze = (await import("./chunks/VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js").then((S) => S.b0)).notification), ze.error(E.message, {
685
+ if (n.value = E, ks.error("Async action failed:", u), s && !et() && u && typeof u == "object") {
686
+ const g = `async-error-${E.message.slice(0, 80)}`, f = setTimeout(async () => {
687
+ qe || (qe = (await import("./chunks/VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js").then((S) => S.b0)).notification), qe.error(E.message, {
678
688
  timeout: o,
679
- notificationId: m
689
+ notificationId: g
680
690
  });
681
691
  }, 0);
682
- Ma(u, f, m);
692
+ Ma(u, f, g);
683
693
  }
684
694
  throw u;
685
695
  } finally {
@@ -701,7 +711,7 @@ function Vs(e) {
701
711
  };
702
712
  }
703
713
  function Jt(...e) {
704
- return C(() => e.some((t) => t.value));
714
+ return I(() => e.some((t) => t.value));
705
715
  }
706
716
  const Us = k("use-settings");
707
717
  function we() {
@@ -733,7 +743,7 @@ function we() {
733
743
  return Re(async () => {
734
744
  !e.value && !t.value && await s();
735
745
  }), {
736
- uiSettings: C(() => e.value ?? {}),
746
+ uiSettings: I(() => e.value ?? {}),
737
747
  applySettings: o,
738
748
  loading: Jt(n)
739
749
  };
@@ -757,7 +767,7 @@ function wl() {
757
767
  function o() {
758
768
  a = !0, s();
759
769
  }
760
- return ot() && rt(o), {
770
+ return rt() && it(o), {
761
771
  begin: n,
762
772
  invalidate: s,
763
773
  dispose: o,
@@ -827,7 +837,7 @@ function Cl() {
827
837
  upload: t,
828
838
  remove: a,
829
839
  edit: n,
830
- loading: C(() => e.value)
840
+ loading: I(() => e.value)
831
841
  };
832
842
  }
833
843
  const Gs = k("use-assets-manager"), xs = 4;
@@ -870,16 +880,16 @@ function Pl(e, t) {
870
880
  function s() {
871
881
  e.value = n.value;
872
882
  }
873
- const o = n, r = C(() => a.value), l = t.concurrency ?? xs, c = t.assetKey ?? "url";
874
- async function u(S, L) {
883
+ const o = n, r = I(() => a.value), l = t.concurrency ?? xs, c = t.assetKey ?? "url";
884
+ async function u(S, O) {
875
885
  try {
876
886
  a.value = !0;
877
- const T = Array.from(S), v = t.uploadPath(), O = (await Ks(
887
+ const T = Array.from(S), v = t.uploadPath(), C = (await Ks(
878
888
  T,
879
- (h, g) => $s(h, v, g, L),
889
+ (L, m) => $s(L, v, m, O),
880
890
  l
881
- )).filter((h) => h !== null);
882
- n.value = [...n.value, ...O], s();
891
+ )).filter((L) => L !== null);
892
+ n.value = [...n.value, ...C], s();
883
893
  } catch (T) {
884
894
  throw Gs.error("Upload failed:", T), T;
885
895
  } finally {
@@ -887,29 +897,29 @@ function Pl(e, t) {
887
897
  }
888
898
  }
889
899
  async function E(S) {
890
- await m([S]);
900
+ await g([S]);
891
901
  }
892
- async function m(S) {
902
+ async function g(S) {
893
903
  if (t.confirmRemove && !await t.confirmRemove())
894
904
  return;
895
- const L = new Set(S.map((T) => T[c]));
896
- n.value = n.value.filter((T) => !L.has(T[c])), s();
905
+ const O = new Set(S.map((T) => T[c]));
906
+ n.value = n.value.filter((T) => !O.has(T[c])), s();
897
907
  }
898
908
  function f(S) {
899
- n.value = S.map((L) => ({ ...L })), s();
909
+ n.value = S.map((O) => ({ ...O })), s();
900
910
  }
901
911
  function d(S) {
902
- const L = n.value.findIndex((T) => T[c] === S[c]);
903
- if (L !== -1) {
912
+ const O = n.value.findIndex((T) => T[c] === S[c]);
913
+ if (O !== -1) {
904
914
  const T = [...n.value];
905
- T[L] = { ...n.value[L], ...S }, n.value = T, s();
915
+ T[O] = { ...n.value[O], ...S }, n.value = T, s();
906
916
  }
907
917
  }
908
918
  return {
909
919
  items: o,
910
920
  upload: u,
911
921
  remove: E,
912
- removeMany: m,
922
+ removeMany: g,
913
923
  reorder: f,
914
924
  updateItem: d,
915
925
  loading: r
@@ -955,7 +965,7 @@ function bl() {
955
965
  e.value = e.value.filter((o) => !s.includes(o.id));
956
966
  }
957
967
  return {
958
- breadcrumbs: C(() => e.value),
968
+ breadcrumbs: I(() => e.value),
959
969
  push: a,
960
970
  remove: n
961
971
  };
@@ -1150,28 +1160,28 @@ function Nl(e) {
1150
1160
  if (u)
1151
1161
  return await t(u);
1152
1162
  });
1153
- async function o(u, E, m) {
1163
+ async function o(u, E, g) {
1154
1164
  if (!u) return;
1155
1165
  const f = await s({
1156
1166
  propertyIds: [u],
1157
1167
  keyword: E,
1158
1168
  skip: 0
1159
1169
  });
1160
- return !m || !f ? f : f.map((d) => {
1161
- const S = d.localizedValues?.find((L) => L.languageCode === m)?.value;
1170
+ return !g || !f ? f : f.map((d) => {
1171
+ const S = d.localizedValues?.find((O) => O.languageCode === g)?.value;
1162
1172
  return { ...d, value: S ?? d.alias };
1163
1173
  });
1164
1174
  }
1165
- async function r(u, E, m) {
1175
+ async function r(u, E, g) {
1166
1176
  if (!(!u || !a))
1167
- return await a(u, m);
1177
+ return await a(u, g);
1168
1178
  }
1169
1179
  function l(u, E) {
1170
1180
  return Tt(u).get(u, E);
1171
1181
  }
1172
1182
  function c(u) {
1173
- const { property: E, value: m, ...f } = u;
1174
- Tt(E).set(E, m, f);
1183
+ const { property: E, value: g, ...f } = u;
1184
+ Tt(E).set(E, g, f);
1175
1185
  }
1176
1186
  return {
1177
1187
  getPropertyValue: l,
@@ -1257,7 +1267,7 @@ function ro(e) {
1257
1267
  function Ml(e) {
1258
1268
  Bt(
1259
1269
  $t,
1260
- C(() => ro(Mt(e)))
1270
+ I(() => ro(Mt(e)))
1261
1271
  );
1262
1272
  }
1263
1273
  function kl() {
@@ -1303,7 +1313,7 @@ function Vl(e) {
1303
1313
  return {
1304
1314
  currentValue: n,
1305
1315
  pristineValue: a,
1306
- isModified: C(() => s.value),
1316
+ isModified: I(() => s.value),
1307
1317
  resetModificationState: o
1308
1318
  };
1309
1319
  }
@@ -1316,9 +1326,9 @@ const mo = /* @__PURE__ */ H({
1316
1326
  name: "AssetsDetails",
1317
1327
  __name: "assets-details",
1318
1328
  setup(e) {
1319
- const { options: t, closeSelf: a } = lt();
1329
+ const { options: t, closeSelf: a } = ut();
1320
1330
  ue({ validateOnMount: !1 });
1321
- const n = Ie(), s = ut(), { t: o } = le({ useScope: "global" }), r = N({ ...t.value?.asset }), l = C(() => t.value?.disabled), c = C({
1331
+ const n = Ie(), s = ct(), { t: o } = le({ useScope: "global" }), r = N({ ...t.value?.asset }), l = I(() => t.value?.disabled), c = I({
1322
1332
  get() {
1323
1333
  const f = r.value.name;
1324
1334
  if (!f) return "";
@@ -1328,10 +1338,10 @@ const mo = /* @__PURE__ */ H({
1328
1338
  set(f) {
1329
1339
  const d = r.value.name;
1330
1340
  if (!d) return;
1331
- const S = d.lastIndexOf("."), L = S > 0 ? d.slice(S) : "";
1332
- r.value.name = f ? f + L : "";
1341
+ const S = d.lastIndexOf("."), O = S > 0 ? d.slice(S) : "";
1342
+ r.value.name = f ? f + O : "";
1333
1343
  }
1334
- }), u = C(() => !s.value || !n.value), E = N([
1344
+ }), u = I(() => !s.value || !n.value), E = N([
1335
1345
  {
1336
1346
  id: "save",
1337
1347
  title: o("ASSETS.PAGES.DETAILS.TOOLBAR.SAVE"),
@@ -1339,7 +1349,7 @@ const mo = /* @__PURE__ */ H({
1339
1349
  async clickHandler() {
1340
1350
  t.value?.assetEditHandler && typeof t.value?.assetEditHandler == "function" && (await t.value?.assetEditHandler(r.value), a());
1341
1351
  },
1342
- disabled: C(() => u.value || l.value)
1352
+ disabled: I(() => u.value || l.value)
1343
1353
  },
1344
1354
  {
1345
1355
  id: "delete",
@@ -1348,24 +1358,24 @@ const mo = /* @__PURE__ */ H({
1348
1358
  async clickHandler() {
1349
1359
  t.value?.assetRemoveHandler && typeof t.value?.assetRemoveHandler == "function" && (await t.value?.assetRemoveHandler(r.value), a());
1350
1360
  },
1351
- disabled: C(() => l.value)
1361
+ disabled: I(() => l.value)
1352
1362
  }
1353
- ]), m = C(() => r.value?.typeId);
1363
+ ]), g = I(() => r.value?.typeId);
1354
1364
  return (f, d) => (b(), D(i(Wt), {
1355
1365
  title: i(t)?.asset?.name,
1356
1366
  subtitle: i(o)("ASSETS.PAGES.DETAILS.SUBTITLE"),
1357
1367
  "toolbar-items": E.value
1358
1368
  }, {
1359
- default: A(() => [
1369
+ default: h(() => [
1360
1370
  U("div", io, [
1361
1371
  U("div", lo, [
1362
- I(i(pn), { "no-padding": !0 }, {
1363
- default: A(() => [
1372
+ _(i(pn), { "no-padding": !0 }, {
1373
+ default: h(() => [
1364
1374
  U("div", uo, [
1365
- I(i(ge), null, {
1366
- default: A(() => [
1375
+ _(i(ge), null, {
1376
+ default: h(() => [
1367
1377
  U("div", co, [
1368
- i(zt)(r.value.name) ? (b(), D(i(st), {
1378
+ i(zt)(r.value.name) ? (b(), D(i(ot), {
1369
1379
  key: 0,
1370
1380
  src: r.value.url,
1371
1381
  size: "xl",
@@ -1378,16 +1388,16 @@ const mo = /* @__PURE__ */ H({
1378
1388
  }, y(i(jt)(r.value.name)), 5)
1379
1389
  ])),
1380
1390
  U("div", fo, [
1381
- I(i($e), {
1391
+ _(i($e), {
1382
1392
  label: i(o)("ASSETS.PAGES.DETAILS.FIELDS.SIZE"),
1383
1393
  "model-value": i(qt)(r.value.size)
1384
1394
  }, null, 8, ["label", "model-value"]),
1385
- I(i($e), {
1395
+ _(i($e), {
1386
1396
  label: i(o)("ASSETS.PAGES.DETAILS.FIELDS.CREATED_DATE"),
1387
1397
  "model-value": r.value.createdDate,
1388
1398
  type: "date-ago"
1389
1399
  }, null, 8, ["label", "model-value"]),
1390
- I(i($e), {
1400
+ _(i($e), {
1391
1401
  label: i(o)("ASSETS.PAGES.DETAILS.FIELDS.URL"),
1392
1402
  "model-value": r.value.url,
1393
1403
  "display-value": r.value.name,
@@ -1403,12 +1413,12 @@ const mo = /* @__PURE__ */ H({
1403
1413
  rules: "required",
1404
1414
  "model-value": r.value.name
1405
1415
  }, {
1406
- default: A(({ errorMessage: S, handleChange: L, errors: T }) => [
1407
- I(i($), {
1416
+ default: h(({ errorMessage: S, handleChange: O, errors: T }) => [
1417
+ _(i($), {
1408
1418
  modelValue: c.value,
1409
1419
  "onUpdate:modelValue": [
1410
1420
  d[0] || (d[0] = (v) => c.value = v),
1411
- L
1421
+ O
1412
1422
  ],
1413
1423
  class: "tw-mb-4",
1414
1424
  label: i(o)("ASSETS.PAGES.DETAILS.FIELDS.NAME.TITLE"),
@@ -1422,7 +1432,7 @@ const mo = /* @__PURE__ */ H({
1422
1432
  ]),
1423
1433
  _: 1
1424
1434
  }, 8, ["label", "model-value"])),
1425
- m.value === "Image" && !i(t)?.hiddenFields?.includes("altText") ? (b(), D(i($), {
1435
+ g.value === "Image" && !i(t)?.hiddenFields?.includes("altText") ? (b(), D(i($), {
1426
1436
  key: 1,
1427
1437
  modelValue: r.value.altText,
1428
1438
  "onUpdate:modelValue": d[1] || (d[1] = (S) => r.value.altText = S),
@@ -1458,32 +1468,32 @@ const mo = /* @__PURE__ */ H({
1458
1468
  }), go = mo, So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1459
1469
  __proto__: null,
1460
1470
  AssetsDetails: go
1461
- }, Symbol.toStringTag, { value: "Module" })), po = dt({ blades: So }), Ao = { class: "tw-flex tw-items-center tw-justify-center" };
1471
+ }, Symbol.toStringTag, { value: "Module" })), po = Et({ blades: So }), Ao = { class: "tw-flex tw-items-center tw-justify-center" };
1462
1472
  Ft("AssetsManager", {});
1463
1473
  const To = /* @__PURE__ */ H({
1464
1474
  name: "AssetsManager",
1465
1475
  __name: "assets-manager",
1466
1476
  setup(e) {
1467
- const t = k("assets-manager"), { options: a, openBlade: n } = lt(), { t: s } = le({ useScope: "global" }), o = C(() => a.value.manager), r = C(() => o.value.items.value ?? []), l = C(() => o.value.loading.value), c = C(() => a.value?.title || s("ASSETS_MANAGER.TITLE")), u = N(!1), E = N(), m = N([]), f = C(() => a.value?.disabled), d = N([
1477
+ const t = k("assets-manager"), { options: a, openBlade: n } = ut(), { t: s } = le({ useScope: "global" }), o = I(() => a.value.manager), r = I(() => o.value.items.value ?? []), l = I(() => o.value.loading.value), c = I(() => a.value?.title || s("ASSETS_MANAGER.TITLE")), u = N(!1), E = N(), g = N([]), f = I(() => a.value?.disabled), d = N([
1468
1478
  {
1469
1479
  id: "add",
1470
- title: C(() => s("ASSETS_MANAGER.TOOLBAR.ADD")),
1480
+ title: I(() => s("ASSETS_MANAGER.TOOLBAR.ADD")),
1471
1481
  icon: "lucide-plus",
1472
1482
  clickHandler() {
1473
1483
  w();
1474
1484
  },
1475
- disabled: C(() => f.value),
1476
- isVisible: C(() => !f.value)
1485
+ disabled: I(() => f.value),
1486
+ isVisible: I(() => !f.value)
1477
1487
  },
1478
1488
  {
1479
1489
  id: "delete",
1480
- title: C(() => s("ASSETS_MANAGER.TOOLBAR.DELETE")),
1490
+ title: I(() => s("ASSETS_MANAGER.TOOLBAR.DELETE")),
1481
1491
  icon: "lucide-trash-2",
1482
1492
  async clickHandler() {
1483
- await o.value.removeMany(m.value);
1493
+ await o.value.removeMany(g.value);
1484
1494
  },
1485
- disabled: C(() => !m.value.length || f.value),
1486
- isVisible: C(() => !f.value)
1495
+ disabled: I(() => !g.value.length || f.value),
1496
+ isVisible: I(() => !f.value)
1487
1497
  }
1488
1498
  ]);
1489
1499
  async function S(p) {
@@ -1492,7 +1502,7 @@ const To = /* @__PURE__ */ H({
1492
1502
  o.value.reorder(R);
1493
1503
  }
1494
1504
  }
1495
- function L() {
1505
+ function O() {
1496
1506
  f.value || (u.value = !0);
1497
1507
  }
1498
1508
  function T() {
@@ -1503,7 +1513,7 @@ const To = /* @__PURE__ */ H({
1503
1513
  const R = p.dataTransfer?.files;
1504
1514
  if (R && R.length)
1505
1515
  try {
1506
- await O(R);
1516
+ await C(R);
1507
1517
  } catch (P) {
1508
1518
  throw t.error("Failed to upload dropped files:", P), P;
1509
1519
  }
@@ -1513,7 +1523,7 @@ const To = /* @__PURE__ */ H({
1513
1523
  function w() {
1514
1524
  E.value.value = "", E.value.click();
1515
1525
  }
1516
- async function O(p) {
1526
+ async function C(p) {
1517
1527
  if (!p || p.length === 0) return;
1518
1528
  const R = new Set((r.value ?? []).map((B) => B.name).filter(Boolean)), P = new DataTransfer();
1519
1529
  for (const B of Array.from(p)) {
@@ -1533,16 +1543,16 @@ const To = /* @__PURE__ */ H({
1533
1543
  throw t.error("Failed to upload assets:", B), B;
1534
1544
  }
1535
1545
  }
1536
- async function h(p) {
1546
+ async function L(p) {
1537
1547
  const P = p.target.files;
1538
1548
  if (P && P.length)
1539
1549
  try {
1540
- await O(P);
1550
+ await C(P);
1541
1551
  } catch (B) {
1542
1552
  throw t.error("Failed to upload files:", B), B;
1543
1553
  }
1544
1554
  }
1545
- function g(p) {
1555
+ function m(p) {
1546
1556
  n({
1547
1557
  name: "AssetsDetails",
1548
1558
  options: {
@@ -1560,13 +1570,13 @@ const To = /* @__PURE__ */ H({
1560
1570
  t.error("Failed to open AssetsDetails blade:", R);
1561
1571
  });
1562
1572
  }
1563
- const _ = () => [
1573
+ const A = () => [
1564
1574
  {
1565
1575
  icon: "lucide-trash-2",
1566
- title: C(() => s("ASSETS_MANAGER.TABLE.ACTIONS.DELETE")),
1576
+ title: I(() => s("ASSETS_MANAGER.TABLE.ACTIONS.DELETE")),
1567
1577
  type: "danger",
1568
1578
  async clickHandler(p) {
1569
- await o.value.remove(p), m.value = [];
1579
+ await o.value.remove(p), g.value = [];
1570
1580
  }
1571
1581
  }
1572
1582
  ];
@@ -1575,21 +1585,21 @@ const To = /* @__PURE__ */ H({
1575
1585
  "toolbar-items": d.value,
1576
1586
  width: "70%"
1577
1587
  }, {
1578
- default: A(() => [
1588
+ default: h(() => [
1579
1589
  tn((b(), W("div", {
1580
1590
  class: "tw-relative tw-h-full tw-flex-1",
1581
- onDragover: He(L, ["prevent", "stop"]),
1591
+ onDragover: He(O, ["prevent", "stop"]),
1582
1592
  onDragleave: He(T, ["prevent"]),
1583
1593
  onDrop: He(v, ["prevent", "stop"])
1584
1594
  }, [
1585
- I(i(Tn), {
1586
- selection: m.value,
1587
- "onUpdate:selection": R[0] || (R[0] = (P) => m.value = P),
1595
+ _(i(Tn), {
1596
+ selection: g.value,
1597
+ "onUpdate:selection": R[0] || (R[0] = (P) => g.value = P),
1588
1598
  items: r.value,
1589
1599
  "state-key": "assets_manager",
1590
1600
  "reorderable-rows": !f.value,
1591
1601
  "selection-mode": f.value ? void 0 : "multiple",
1592
- "row-actions": f.value ? void 0 : _,
1602
+ "row-actions": f.value ? void 0 : A,
1593
1603
  "empty-state": {
1594
1604
  icon: "lucide-cloud-upload",
1595
1605
  title: p.$t("ASSETS_MANAGER.EMPTY.UPLOAD_ASSETS"),
@@ -1597,20 +1607,20 @@ const To = /* @__PURE__ */ H({
1597
1607
  actionHandler: w
1598
1608
  },
1599
1609
  class: "tw-h-full tw-w-full",
1600
- onRowClick: R[1] || (R[1] = ({ data: P }) => g(P)),
1610
+ onRowClick: R[1] || (R[1] = ({ data: P }) => m(P)),
1601
1611
  onRowReorder: S
1602
1612
  }, {
1603
- default: A(() => [
1604
- I(i(Ae), {
1613
+ default: h(() => [
1614
+ _(i(Ae), {
1605
1615
  id: "url",
1606
1616
  title: i(s)("ASSETS_MANAGER.TABLE.HEADER.IMAGE"),
1607
1617
  width: "10%",
1608
1618
  "always-visible": "",
1609
1619
  type: "image"
1610
1620
  }, {
1611
- body: A(({ data: P }) => [
1621
+ body: h(({ data: P }) => [
1612
1622
  U("div", Ao, [
1613
- i(zt)(P.name ?? "") ? (b(), D(i(st), {
1623
+ i(zt)(P.name ?? "") ? (b(), D(i(ot), {
1614
1624
  key: 0,
1615
1625
  bordered: !0,
1616
1626
  size: "s",
@@ -1626,35 +1636,35 @@ const To = /* @__PURE__ */ H({
1626
1636
  ]),
1627
1637
  _: 1
1628
1638
  }, 8, ["title"]),
1629
- I(i(Ae), {
1639
+ _(i(Ae), {
1630
1640
  id: "name",
1631
1641
  title: i(s)("ASSETS_MANAGER.TABLE.HEADER.NAME"),
1632
1642
  width: "20%",
1633
1643
  "always-visible": ""
1634
1644
  }, null, 8, ["title"]),
1635
- I(i(Ae), {
1645
+ _(i(Ae), {
1636
1646
  id: "size",
1637
1647
  title: i(s)("ASSETS_MANAGER.TABLE.HEADER.SIZE"),
1638
1648
  width: "20%",
1639
1649
  "always-visible": ""
1640
1650
  }, {
1641
- body: A(({ data: P }) => [
1651
+ body: h(({ data: P }) => [
1642
1652
  U("div", null, y(i(qt)(P.size ?? 0)), 1)
1643
1653
  ]),
1644
1654
  _: 1
1645
1655
  }, 8, ["title"]),
1646
- I(i(Ae), {
1656
+ _(i(Ae), {
1647
1657
  id: "sortOrder",
1648
1658
  title: i(s)("ASSETS_MANAGER.TABLE.HEADER.SORT_ORDER"),
1649
1659
  width: "25%",
1650
1660
  "always-visible": ""
1651
1661
  }, {
1652
- body: A(({ data: P }) => [
1662
+ body: h(({ data: P }) => [
1653
1663
  U("div", null, y(P.sortOrder), 1)
1654
1664
  ]),
1655
1665
  _: 1
1656
1666
  }, 8, ["title"]),
1657
- I(i(Ae), {
1667
+ _(i(Ae), {
1658
1668
  id: "createdDate",
1659
1669
  title: i(s)("ASSETS_MANAGER.TABLE.HEADER.CREATED_DATE"),
1660
1670
  width: "25%",
@@ -1674,7 +1684,7 @@ const To = /* @__PURE__ */ H({
1674
1684
  hidden: "",
1675
1685
  multiple: "",
1676
1686
  name: "assets_manager",
1677
- onChange: h
1687
+ onChange: L
1678
1688
  }, null, 544)
1679
1689
  ]),
1680
1690
  _: 1
@@ -1683,7 +1693,7 @@ const To = /* @__PURE__ */ H({
1683
1693
  }), ho = To, Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1684
1694
  __proto__: null,
1685
1695
  AssetsManager: ho
1686
- }, Symbol.toStringTag, { value: "Module" })), Oo = dt({ blades: Lo }), Ot = k("connection-status"), Rt = "vc-framework-offline-status", _t = N(!1), It = N(!0);
1696
+ }, Symbol.toStringTag, { value: "Module" })), Oo = Et({ blades: Lo }), Ot = k("connection-status"), Rt = "vc-framework-offline-status", _t = N(!1), It = N(!0);
1687
1697
  function ea() {
1688
1698
  if (!_t.value && typeof window < "u") {
1689
1699
  _t.value = !0;
@@ -1703,8 +1713,8 @@ function ea() {
1703
1713
  isOnline: Me(It)
1704
1714
  };
1705
1715
  }
1706
- const qe = k("slow-network"), Ro = 1e4, _o = ["slow-2g", "2g"];
1707
- let Ye = null;
1716
+ const Ye = k("slow-network"), Ro = 1e4, _o = ["slow-2g", "2g"];
1717
+ let je = null;
1708
1718
  const ta = "vc-framework-slow-network", Io = 3e3, vo = "Your network is slow or the server is taking longer than usual. Please be patient.";
1709
1719
  let te = null;
1710
1720
  function vt() {
@@ -1716,36 +1726,36 @@ function vt() {
1716
1726
  function wt() {
1717
1727
  q.remove(ta);
1718
1728
  }
1719
- const Ct = N(!1), ke = N(0), et = N(!1), Ve = /* @__PURE__ */ new Map(), tt = /* @__PURE__ */ new Set(), je = C(() => ke.value > 0 || et.value);
1729
+ const Ct = N(!1), ke = N(0), tt = N(!1), Ve = /* @__PURE__ */ new Map(), at = /* @__PURE__ */ new Set(), Ze = I(() => ke.value > 0 || tt.value);
1720
1730
  function wo(e) {
1721
1731
  const t = setTimeout(() => {
1722
- ke.value++, Ve.delete(e), tt.add(e);
1732
+ ke.value++, Ve.delete(e), at.add(e);
1723
1733
  }, Ro);
1724
1734
  Ve.set(e, t);
1725
1735
  }
1726
1736
  function Co(e) {
1727
1737
  const t = Ve.get(e);
1728
- t != null ? (clearTimeout(t), Ve.delete(e)) : tt.has(e) && (ke.value = Math.max(0, ke.value - 1), tt.delete(e));
1738
+ t != null ? (clearTimeout(t), Ve.delete(e)) : at.has(e) && (ke.value = Math.max(0, ke.value - 1), at.delete(e));
1729
1739
  }
1730
1740
  function aa() {
1731
1741
  if (!Ct.value && typeof window < "u") {
1732
1742
  Ct.value = !0;
1733
1743
  const e = navigator.connection;
1734
- e && (Ye = () => {
1744
+ e && (je = () => {
1735
1745
  const a = _o.includes(e.effectiveType);
1736
- a !== et.value && qe.info(`Connection type: ${e.effectiveType} → ${a ? "slow" : "normal"}`), et.value = a;
1737
- }, e.addEventListener("change", Ye), Ye());
1746
+ a !== tt.value && Ye.info(`Connection type: ${e.effectiveType} → ${a ? "slow" : "normal"}`), tt.value = a;
1747
+ }, e.addEventListener("change", je), je());
1738
1748
  const { isOnline: t } = ea();
1739
- ae(je, (a) => {
1740
- a ? (te != null && (clearTimeout(te), te = null), t.value && (qe.info("Slow network detected — showing notification"), vt())) : te = setTimeout(() => {
1741
- qe.info("Network recovered — hiding notification"), wt(), te = null;
1749
+ ae(Ze, (a) => {
1750
+ a ? (te != null && (clearTimeout(te), te = null), t.value && (Ye.info("Slow network detected — showing notification"), vt())) : te = setTimeout(() => {
1751
+ Ye.info("Network recovered — hiding notification"), wt(), te = null;
1742
1752
  }, Io);
1743
1753
  }), ae(t, (a) => {
1744
- a ? je.value && vt() : (te != null && (clearTimeout(te), te = null), wt());
1754
+ a ? Ze.value && vt() : (te != null && (clearTimeout(te), te = null), wt());
1745
1755
  });
1746
1756
  }
1747
1757
  return {
1748
- isSlowNetwork: je,
1758
+ isSlowNetwork: Ze,
1749
1759
  trackRequest: wo,
1750
1760
  untrackRequest: Co
1751
1761
  };
@@ -1789,47 +1799,60 @@ function No(e) {
1789
1799
  });
1790
1800
  });
1791
1801
  {
1792
- let E = function(O) {
1793
- const h = typeof O == "string" ? O : O instanceof Request ? O.url : O.toString();
1802
+ let E = function(m) {
1803
+ const A = typeof m == "string" ? m : m instanceof Request ? m.url : m.toString();
1794
1804
  try {
1795
- const g = new URL(h, window.location.origin);
1796
- return g.origin === window.location.origin && g.pathname.startsWith("/api/");
1805
+ const p = new URL(A, window.location.origin);
1806
+ return p.origin === window.location.origin && p.pathname.startsWith("/api/");
1797
1807
  } catch {
1798
1808
  return !1;
1799
1809
  }
1800
- };
1801
- const [m, f] = u;
1802
- if (!E(m))
1803
- return a(...u);
1804
- if (!navigator.onLine)
1805
- return Te.warn("Request blocked: browser is offline", m), Promise.reject(new Error("Network unavailable. Please check your connection."));
1806
- const d = String(++l);
1807
- o(d);
1808
- const S = new AbortController();
1809
- let L = !1;
1810
- const T = setTimeout(() => {
1811
- L = !0, S.abort();
1812
- }, 3e4), v = f?.signal, w = () => S.abort();
1813
- v?.aborted ? w() : v && v.addEventListener("abort", w, { once: !0 });
1814
- try {
1815
- const O = await a(m, {
1816
- ...f || {},
1817
- signal: S.signal
1818
- }), h = O.ok && bo(O);
1819
- if ((O.status === 401 || h) && !Qe() && s.value && (Nn(), n().catch((_) => {
1820
- Te.error("signOut failed after session expiry:", _);
1810
+ }, g = function(m) {
1811
+ const A = typeof m == "string" ? m : m instanceof Request ? m.url : m.toString();
1812
+ try {
1813
+ return new URL(A, window.location.origin).origin === window.location.origin;
1814
+ } catch {
1815
+ return !1;
1816
+ }
1817
+ }, f = function(m) {
1818
+ !m || et() || !s.value || (Dn(), n().catch((A) => {
1819
+ Te.error("signOut failed after session expiry:", A);
1821
1820
  }).finally(() => {
1822
1821
  Do(e), q.error(
1823
1822
  `Access Denied: Your session has expired or you do not have the necessary permissions.
1824
1823
  Please log in again or contact the administrator for assistance.`
1825
1824
  );
1826
- })), h && Qe())
1827
- throw new Dn();
1828
- return O;
1829
- } catch (O) {
1830
- throw L ? new Error("Request timed out. Please try again.") : O;
1825
+ }));
1826
+ };
1827
+ const [d, S] = u;
1828
+ if (!E(d)) {
1829
+ if (!g(d))
1830
+ return a(...u);
1831
+ const m = await a(...u);
1832
+ return f(m.status === 401), m;
1833
+ }
1834
+ if (!navigator.onLine)
1835
+ return Te.warn("Request blocked: browser is offline", d), Promise.reject(new Error("Network unavailable. Please check your connection."));
1836
+ const O = String(++l);
1837
+ o(O);
1838
+ const T = new AbortController();
1839
+ let v = !1;
1840
+ const w = setTimeout(() => {
1841
+ v = !0, T.abort();
1842
+ }, 3e4), C = S?.signal, L = () => T.abort();
1843
+ C?.aborted ? L() : C && C.addEventListener("abort", L, { once: !0 });
1844
+ try {
1845
+ const m = await a(d, {
1846
+ ...S || {},
1847
+ signal: T.signal
1848
+ }), A = m.ok && bo(m);
1849
+ if (f(m.status === 401 || A), A && et())
1850
+ throw new Nn();
1851
+ return m;
1852
+ } catch (m) {
1853
+ throw v ? new Error("Request timed out. Please try again.") : m;
1831
1854
  } finally {
1832
- r(d), clearTimeout(T), v && v.removeEventListener("abort", w);
1855
+ r(O), clearTimeout(w), C && C.removeEventListener("abort", L);
1833
1856
  }
1834
1857
  }
1835
1858
  });
@@ -1906,12 +1929,12 @@ const na = { THEMES: { LIGHT: "Light", DARK: "Dark" }, NOTIFICATIONS: { CLEAR_AL
1906
1929
  __proto__: null,
1907
1930
  de: ko,
1908
1931
  en: Bo
1909
- }, Symbol.toStringTag, { value: "Module" })), Ze = k("global-error-handler");
1932
+ }, Symbol.toStringTag, { value: "Module" })), Xe = k("global-error-handler");
1910
1933
  function Ne(e) {
1911
1934
  return e instanceof Error ? `${e.name}:${e.message}` : String(e);
1912
1935
  }
1913
1936
  const he = /* @__PURE__ */ new Map(), Pt = 3e3;
1914
- function Xe(e) {
1937
+ function Je(e) {
1915
1938
  const t = Ne(e), a = Date.now(), n = he.get(t);
1916
1939
  if (n && a - n < Pt) return !0;
1917
1940
  if (he.set(t, a), he.size > 50)
@@ -1922,8 +1945,8 @@ function Xe(e) {
1922
1945
  function Uo(e) {
1923
1946
  const t = e.config.errorHandler;
1924
1947
  if (e.config.errorHandler = (o, r, l) => {
1925
- if (Ze.error("Unhandled Vue error:", o, `
1926
- Info:`, l), !Xe(o)) {
1948
+ if (Xe.error("Unhandled Vue error:", o, `
1949
+ Info:`, l), !Je(o)) {
1927
1950
  const c = Pe(o);
1928
1951
  q.error(c.message, {
1929
1952
  timeout: 8e3,
@@ -1936,7 +1959,7 @@ Info:`, l), !Xe(o)) {
1936
1959
  if (a.__VC_GLOBAL_ERROR_HANDLERS_INSTALLED__) return;
1937
1960
  a.__VC_GLOBAL_ERROR_HANDLERS_INSTALLED__ = !0;
1938
1961
  const n = (o) => {
1939
- if (Ze.error("Unhandled rejection:", o.reason), !Xe(o.reason)) {
1962
+ if (Xe.error("Unhandled rejection:", o.reason), !Je(o.reason)) {
1940
1963
  const r = Pe(o.reason);
1941
1964
  q.error(r.message, {
1942
1965
  timeout: 8e3,
@@ -1946,7 +1969,7 @@ Info:`, l), !Xe(o)) {
1946
1969
  };
1947
1970
  window.addEventListener("unhandledrejection", n);
1948
1971
  const s = (o) => {
1949
- if (o.error && (Ze.error("Uncaught error:", o.error), !Xe(o.error))) {
1972
+ if (o.error && (Xe.error("Uncaught error:", o.error), !Je(o.error))) {
1950
1973
  const r = Pe(o.error);
1951
1974
  q.error(r.message, {
1952
1975
  timeout: 8e3,
@@ -2017,20 +2040,20 @@ function $o() {
2017
2040
  return t().find((E) => E.notificationId === u);
2018
2041
  }
2019
2042
  function s(u) {
2020
- const E = document.querySelector(".notification"), m = E || document.createElement("div"), f = `.notification__container[data-position="${u}"]`;
2043
+ const E = document.querySelector(".notification"), g = E || document.createElement("div"), f = `.notification__container[data-position="${u}"]`;
2021
2044
  let d = document.querySelector(f);
2022
- return d || (d = document.createElement("div"), d.className = "notification__container", d.id = `notification-${u}`, d.setAttribute("data-position", u), E || (m.className = "notification", document.body.appendChild(m)), m.appendChild(d)), d;
2045
+ return d || (d = document.createElement("div"), d.className = "notification__container", d.id = `notification-${u}`, d.setAttribute("data-position", u), E || (g.className = "notification", document.body.appendChild(g)), g.appendChild(d)), d;
2023
2046
  }
2024
2047
  const o = /* @__PURE__ */ new Map();
2025
2048
  async function r(u) {
2026
- const E = u.position || e.position, m = o.get(E);
2027
- if (m && await m, !bt(E)) {
2049
+ const E = u.position || e.position, g = o.get(E);
2050
+ if (g && await g, !bt(E)) {
2028
2051
  const f = (async () => {
2029
- const d = s(E), { default: S } = await Promise.resolve().then(() => Lr), L = an(S, {
2052
+ const d = s(E), { default: S } = await Promise.resolve().then(() => Lr), O = an(S, {
2030
2053
  ...u,
2031
2054
  position: E
2032
2055
  });
2033
- L.use(X), L.provide(Zt, { notificationContainers: G, actions: c }), L.mount(d), xo(L, d.id, E);
2056
+ O.use(X), O.provide(Zt, { notificationContainers: G, actions: c }), O.mount(d), xo(O, d.id, E);
2034
2057
  })();
2035
2058
  o.set(E, f), await f, o.delete(E);
2036
2059
  }
@@ -2043,18 +2066,18 @@ function $o() {
2043
2066
  }
2044
2067
  const c = {
2045
2068
  add(u) {
2046
- const E = u.position || e.position, m = G[E];
2047
- m.value.find((d) => d.notificationId === u.notificationId) || be(() => {
2048
- m.value.push(u), u.onOpen && typeof u?.onOpen == "function" && u.onOpen(u.payload);
2069
+ const E = u.position || e.position, g = G[E];
2070
+ g.value.find((d) => d.notificationId === u.notificationId) || be(() => {
2071
+ g.value.push(u), u.onOpen && typeof u?.onOpen == "function" && u.onOpen(u.payload);
2049
2072
  });
2050
2073
  },
2051
2074
  remove(u) {
2052
2075
  if (u) {
2053
- let E, m;
2076
+ let E, g;
2054
2077
  Object.entries(G).forEach(([f, d]) => {
2055
- const S = d.value.find((L) => L.notificationId === u);
2056
- S && (E = S, m = f);
2057
- }), m && (G[m].value = G[m].value.filter((f) => f.notificationId !== u), G[m].value.length === 0 && Go(m), be(() => {
2078
+ const S = d.value.find((O) => O.notificationId === u);
2079
+ S && (E = S, g = f);
2080
+ }), g && (G[g].value = G[g].value.filter((f) => f.notificationId !== u), G[g].value.length === 0 && Go(g), be(() => {
2058
2081
  E?.onClose && typeof E?.onClose == "function" && E.onClose(E.payload);
2059
2082
  }));
2060
2083
  }
@@ -2067,22 +2090,22 @@ function $o() {
2067
2090
  dismiss(u) {
2068
2091
  if (!u) return;
2069
2092
  let E = !1;
2070
- Object.values(G).forEach((m) => {
2071
- m.value.forEach((f) => {
2093
+ Object.values(G).forEach((g) => {
2094
+ g.value.forEach((f) => {
2072
2095
  f.notificationId === u && (f.dismissing = !0, E = !0);
2073
2096
  });
2074
2097
  }), E || de.debug(`dismiss: notification ${u} not found`);
2075
2098
  },
2076
2099
  update(u) {
2077
2100
  if (u.updateId) {
2078
- let E, m, f;
2101
+ let E, g, f;
2079
2102
  if (Object.entries(G).forEach(([d, S]) => {
2080
- const L = S.value.find((T) => T.notificationId === u.notificationId);
2081
- L && (E = L, m = S, f = d);
2082
- }), E && m) {
2103
+ const O = S.value.find((T) => T.notificationId === u.notificationId);
2104
+ O && (E = O, g = S, f = d);
2105
+ }), E && g) {
2083
2106
  if (de.debug(`Updating notification ${u.notificationId} in position ${f}`), u.position && u.position !== f) {
2084
- m.value = m.value.filter(
2085
- (L) => L.notificationId !== u.notificationId
2107
+ g.value = g.value.filter(
2108
+ (O) => O.notificationId !== u.notificationId
2086
2109
  );
2087
2110
  const d = {
2088
2111
  ...E,
@@ -2092,8 +2115,8 @@ function $o() {
2092
2115
  } else
2093
2116
  de.debug("Standard update of notification properties"), Object.keys(u).forEach((d) => {
2094
2117
  if (d !== "updateId" && d !== "notificationId") {
2095
- const S = d, L = u[S];
2096
- E && L !== void 0 && (E[S] = L);
2118
+ const S = d, O = u[S];
2119
+ E && O !== void 0 && (E[S] = O);
2097
2120
  }
2098
2121
  });
2099
2122
  return !0;
@@ -2129,12 +2152,12 @@ function Ko() {
2129
2152
  hasNotification: (t) => e.hasNotification(t)
2130
2153
  });
2131
2154
  }
2132
- const zo = "2.5.0-pr330.76c5b90";
2155
+ const zo = "2.5.0-pr333.50c07fa";
2133
2156
  function qo() {
2134
2157
  return {
2135
2158
  version: zo,
2136
- buildDate: "2026-08-28T10:10:11.698Z",
2137
- gitHash: "76c5b903b"
2159
+ buildDate: "2026-08-31T12:35:52.720Z",
2160
+ gitHash: "50c07fa41"
2138
2161
  };
2139
2162
  }
2140
2163
  function Yo(e = qo()) {
@@ -2155,7 +2178,7 @@ const jo = /* @__PURE__ */ H({
2155
2178
  },
2156
2179
  emits: ["close"],
2157
2180
  setup(e, { emit: t }) {
2158
- const a = e, n = t, { isMobile: s, isDesktop: o } = Fa(), r = C(() => a.render === "always" ? !0 : a.render === "mobile" ? s.value : o.value), l = C(() => a.isExpanded && r.value);
2181
+ const a = e, n = t, { isMobile: s, isDesktop: o } = Fa(), r = I(() => a.render === "always" ? !0 : a.render === "mobile" ? s.value : o.value), l = I(() => a.isExpanded && r.value);
2159
2182
  function c(u) {
2160
2183
  u || n("close");
2161
2184
  }
@@ -2168,15 +2191,15 @@ const jo = /* @__PURE__ */ H({
2168
2191
  teleport: !i(o),
2169
2192
  "onUpdate:modelValue": c
2170
2193
  }, Oe({
2171
- default: A(() => [
2194
+ default: h(() => [
2172
2195
  Y(u.$slots, "content")
2173
2196
  ]),
2174
2197
  _: 2
2175
2198
  }, [
2176
2199
  u.$slots.header ? {
2177
2200
  name: "header",
2178
- fn: A(({ close: m }) => [
2179
- Y(u.$slots, "header", { close: m })
2201
+ fn: h(({ close: g }) => [
2202
+ Y(u.$slots, "header", { close: g })
2180
2203
  ]),
2181
2204
  key: "0"
2182
2205
  } : void 0
@@ -2191,15 +2214,15 @@ const jo = /* @__PURE__ */ H({
2191
2214
  },
2192
2215
  emits: ["signIn"],
2193
2216
  setup(e) {
2194
- const t = e, a = C(() => t.logo && !t.logo.startsWith("data:image") && !t.logo.startsWith("http") ? new URL(t.logo, window.location.origin).toString() : t.logo);
2217
+ const t = e, a = I(() => t.logo && !t.logo.startsWith("data:image") && !t.logo.startsWith("http") ? new URL(t.logo, window.location.origin).toString() : t.logo);
2195
2218
  return (n, s) => (b(), D(i(x), {
2196
2219
  variant: "secondary",
2197
2220
  class: "vc-external-provider",
2198
2221
  onClick: s[0] || (s[0] = (o) => n.$emit("signIn"))
2199
2222
  }, {
2200
- default: A(() => [
2223
+ default: h(() => [
2201
2224
  U("div", Zo, [
2202
- I(i(st), {
2225
+ _(i(ot), {
2203
2226
  src: a.value,
2204
2227
  class: "vc-external-provider__icon",
2205
2228
  size: "xxs"
@@ -2256,109 +2279,109 @@ const nr = {
2256
2279
  ssoOnly: { type: Boolean }
2257
2280
  },
2258
2281
  setup(e) {
2259
- const t = k("login-page"), a = e, { t: n } = le({ useScope: "global" }), s = ve(), { validateField: o } = ue({ validateOnMount: !1 }), { uiSettings: r, loading: l } = we(), c = N({ succeeded: !0 }), { signIn: u, loading: E, user: m } = se(), { getProviders: f } = Kt(), d = Ie(), S = N(), L = N(!1);
2282
+ const t = k("login-page"), a = e, { t: n } = le({ useScope: "global" }), s = ve(), { validateField: o } = ue({ validateOnMount: !1 }), { uiSettings: r, loading: l } = we(), c = N({ succeeded: !0 }), { signIn: u, loading: E, user: g } = se(), { getProviders: f } = Kt(), d = Ie(), S = N(), O = N(!1);
2260
2283
  Re(async () => {
2261
- S.value = await f(), L.value = !0;
2284
+ S.value = await f(), O.value = !0;
2262
2285
  });
2263
- const T = C(() => ({
2286
+ const T = I(() => ({
2264
2287
  logo: l.value ? "" : r.value?.logo || a.logo
2265
2288
  })), v = ie({
2266
2289
  username: "",
2267
2290
  password: ""
2268
2291
  }), w = async () => {
2269
2292
  if (d.value) {
2270
- if (c.value.error = "", c.value = await u(v.username, v.password), c.value.succeeded && m.value?.passwordExpired) {
2293
+ if (c.value.error = "", c.value = await u(v.username, v.password), c.value.succeeded && g.value?.passwordExpired) {
2271
2294
  await s.push({ name: "ChangePassword" });
2272
2295
  return;
2273
2296
  }
2274
2297
  if (c.value.succeeded) {
2275
- const h = er(localStorage.getItem("redirectAfterLogin"));
2276
- localStorage.removeItem("redirectAfterLogin"), await s.push(h);
2298
+ const L = er(localStorage.getItem("redirectAfterLogin"));
2299
+ localStorage.removeItem("redirectAfterLogin"), await s.push(L);
2277
2300
  return;
2278
2301
  }
2279
2302
  c.value.error = tr(c.value, n), v.password = "", o("password");
2280
2303
  }
2281
- }, O = () => {
2304
+ }, C = () => {
2282
2305
  s.push({ name: "ForgotPassword" });
2283
2306
  };
2284
- return t.debug("Init login-page"), (h, g) => (b(), D(i(_e), {
2307
+ return t.debug("Init login-page"), (L, m) => (b(), D(i(_e), {
2285
2308
  logo: T.value.logo,
2286
2309
  background: e.background,
2287
- title: e.title || h.$t("LOGIN.TITLE"),
2288
- subtitle: e.subtitle || h.$t("LOGIN.SUBTITLE"),
2310
+ title: e.title || L.$t("LOGIN.TITLE"),
2311
+ subtitle: e.subtitle || L.$t("LOGIN.SUBTITLE"),
2289
2312
  class: "vc-login-page"
2290
2313
  }, {
2291
- default: A(() => [
2314
+ default: h(() => [
2292
2315
  S.value && S.value.length ? (b(), W("div", nr, [
2293
- I(Qo, { providers: S.value }, null, 8, ["providers"]),
2294
- e.ssoOnly ? z("", !0) : (b(), W("div", sr, y(h.$t("LOGIN.OR")), 1))
2316
+ _(Qo, { providers: S.value }, null, 8, ["providers"]),
2317
+ e.ssoOnly ? z("", !0) : (b(), W("div", sr, y(L.$t("LOGIN.OR")), 1))
2295
2318
  ])) : z("", !0),
2296
- e.ssoOnly && L.value && !S.value?.length ? (b(), D(i(Ee), {
2319
+ e.ssoOnly && O.value && !S.value?.length ? (b(), D(i(Ee), {
2297
2320
  key: 1,
2298
2321
  class: "tw-mt-4 tw-text-danger-500"
2299
2322
  }, {
2300
- default: A(() => [
2301
- M(y(h.$t("LOGIN.SSO_NO_PROVIDERS_ERROR")), 1)
2323
+ default: h(() => [
2324
+ M(y(L.$t("LOGIN.SSO_NO_PROVIDERS_ERROR")), 1)
2302
2325
  ]),
2303
2326
  _: 1
2304
2327
  })) : z("", !0),
2305
2328
  e.ssoOnly ? z("", !0) : (b(), W(ne, { key: 2 }, [
2306
- I(i(ge), {
2329
+ _(i(ge), {
2307
2330
  class: "tw-gap-5",
2308
2331
  onSubmit: w
2309
2332
  }, {
2310
- default: A(() => [
2311
- I(i(Z), {
2312
- label: h.$t("LOGIN.FIELDS.LOGIN.LABEL"),
2333
+ default: h(() => [
2334
+ _(i(Z), {
2335
+ label: L.$t("LOGIN.FIELDS.LOGIN.LABEL"),
2313
2336
  name: "username",
2314
2337
  "model-value": v.username,
2315
2338
  rules: "required"
2316
2339
  }, {
2317
- default: A(({ errorMessage: _, handleChange: p, errors: R }) => [
2318
- I(i($), {
2340
+ default: h(({ errorMessage: A, handleChange: p, errors: R }) => [
2341
+ _(i($), {
2319
2342
  ref: "loginField",
2320
2343
  modelValue: v.username,
2321
2344
  "onUpdate:modelValue": [
2322
- g[0] || (g[0] = (P) => v.username = P),
2345
+ m[0] || (m[0] = (P) => v.username = P),
2323
2346
  p
2324
2347
  ],
2325
- label: h.$t("LOGIN.FIELDS.LOGIN.LABEL"),
2326
- placeholder: h.$t("LOGIN.FIELDS.LOGIN.PLACEHOLDER"),
2348
+ label: L.$t("LOGIN.FIELDS.LOGIN.LABEL"),
2349
+ placeholder: L.$t("LOGIN.FIELDS.LOGIN.PLACEHOLDER"),
2327
2350
  autocomplete: "username",
2328
2351
  required: "",
2329
2352
  error: !!R.length,
2330
- "error-message": _
2353
+ "error-message": A
2331
2354
  }, null, 8, ["modelValue", "label", "placeholder", "error", "error-message", "onUpdate:modelValue"])
2332
2355
  ]),
2333
2356
  _: 1
2334
2357
  }, 8, ["label", "model-value"]),
2335
- I(i(Z), {
2336
- label: h.$t("LOGIN.FIELDS.PASSWORD.LABEL"),
2358
+ _(i(Z), {
2359
+ label: L.$t("LOGIN.FIELDS.PASSWORD.LABEL"),
2337
2360
  name: "password",
2338
2361
  "model-value": v.password,
2339
2362
  rules: "required"
2340
2363
  }, {
2341
- default: A(({ errorMessage: _, handleChange: p, errors: R }) => [
2342
- I(i($), {
2364
+ default: h(({ errorMessage: A, handleChange: p, errors: R }) => [
2365
+ _(i($), {
2343
2366
  ref: "passwordField",
2344
2367
  modelValue: v.password,
2345
2368
  "onUpdate:modelValue": [
2346
- g[1] || (g[1] = (P) => v.password = P),
2369
+ m[1] || (m[1] = (P) => v.password = P),
2347
2370
  p
2348
2371
  ],
2349
- label: h.$t("LOGIN.FIELDS.PASSWORD.LABEL"),
2350
- placeholder: h.$t("LOGIN.FIELDS.PASSWORD.PLACEHOLDER"),
2372
+ label: L.$t("LOGIN.FIELDS.PASSWORD.LABEL"),
2373
+ placeholder: L.$t("LOGIN.FIELDS.PASSWORD.PLACEHOLDER"),
2351
2374
  type: "password",
2352
2375
  autocomplete: "current-password",
2353
2376
  required: "",
2354
2377
  error: !!R.length,
2355
- "error-message": _,
2356
- onKeyup: it(w, ["enter"])
2378
+ "error-message": A,
2379
+ onKeyup: lt(w, ["enter"])
2357
2380
  }, null, 8, ["modelValue", "label", "placeholder", "error", "error-message", "onUpdate:modelValue"])
2358
2381
  ]),
2359
2382
  _: 1
2360
2383
  }, 8, ["label", "model-value"]),
2361
- I(i(x), {
2384
+ _(i(x), {
2362
2385
  variant: "primary",
2363
2386
  class: "tw-w-full",
2364
2387
  icon: "lucide-log-in",
@@ -2366,26 +2389,26 @@ const nr = {
2366
2389
  loading: i(E),
2367
2390
  onClick: w
2368
2391
  }, {
2369
- default: A(() => [
2370
- M(y(h.$t("LOGIN.BUTTON")), 1)
2392
+ default: h(() => [
2393
+ M(y(L.$t("LOGIN.BUTTON")), 1)
2371
2394
  ]),
2372
2395
  _: 1
2373
2396
  }, 8, ["disabled", "loading"]),
2374
- I(i(x), {
2397
+ _(i(x), {
2375
2398
  variant: "link",
2376
2399
  class: "tw-w-full tw-justify-center",
2377
2400
  type: "button",
2378
- onClick: O
2401
+ onClick: C
2379
2402
  }, {
2380
- default: A(() => [
2381
- M(y(h.$t("LOGIN.FORGOT_PASSWORD_BUTTON")), 1)
2403
+ default: h(() => [
2404
+ M(y(L.$t("LOGIN.FORGOT_PASSWORD_BUTTON")), 1)
2382
2405
  ]),
2383
2406
  _: 1
2384
2407
  })
2385
2408
  ]),
2386
2409
  _: 1
2387
2410
  }),
2388
- I(i(Ss), {
2411
+ _(i(Ss), {
2389
2412
  name: "auth:after-form",
2390
2413
  separator: "",
2391
2414
  "separator-class": "tw-border-t tw-border-[color:var(--login-separator)] tw-border-solid tw-pb-5",
@@ -2395,7 +2418,7 @@ const nr = {
2395
2418
  key: 0,
2396
2419
  class: "tw-mt-4 tw-text-danger-500"
2397
2420
  }, {
2398
- default: A(() => [
2421
+ default: h(() => [
2399
2422
  M(y(c.value.error), 1)
2400
2423
  ]),
2401
2424
  _: 1
@@ -2418,30 +2441,30 @@ const nr = {
2418
2441
  const s = Ie(), { uiSettings: o, loading: r } = we(), l = N(!1), c = N(""), u = N(!1), E = ie({
2419
2442
  loginOrEmail: ""
2420
2443
  });
2421
- let m;
2444
+ let g;
2422
2445
  if (t.composable && typeof t.composable == "function")
2423
- m = t.composable().forgotPassword;
2446
+ g = t.composable().forgotPassword;
2424
2447
  else {
2425
2448
  const { requestPasswordReset: T } = se();
2426
- m = async (v) => {
2449
+ g = async (v) => {
2427
2450
  await T(v.loginOrEmail);
2428
2451
  };
2429
2452
  }
2430
- const f = C(() => ({
2453
+ const f = I(() => ({
2431
2454
  logo: r.value ? "" : o.value?.logo || t.logo
2432
- })), d = C(() => {
2455
+ })), d = I(() => {
2433
2456
  const T = E.loginOrEmail, [v, w] = T.split("@");
2434
2457
  return !v || !w ? T : `${v.length > 2 ? v[0] + "***" + v[v.length - 1] : v[0] + "***"}@${w}`;
2435
2458
  }), S = async () => {
2436
- if (!(!s.value || !m))
2459
+ if (!(!s.value || !g))
2437
2460
  try {
2438
- l.value = !0, c.value = "", await m({ loginOrEmail: E.loginOrEmail }), u.value = !0;
2461
+ l.value = !0, c.value = "", await g({ loginOrEmail: E.loginOrEmail }), u.value = !0;
2439
2462
  } catch (T) {
2440
2463
  c.value = T instanceof Error ? T.message : String(T);
2441
2464
  } finally {
2442
2465
  l.value = !1;
2443
2466
  }
2444
- }, L = () => {
2467
+ }, O = () => {
2445
2468
  a.push({ name: "Login" });
2446
2469
  };
2447
2470
  return (T, v) => (b(), D(i(_e), {
@@ -2450,69 +2473,69 @@ const nr = {
2450
2473
  title: u.value ? i(n)("FORGOT_PASSWORD.SUCCESS_TITLE") : i(n)("FORGOT_PASSWORD.TITLE"),
2451
2474
  subtitle: u.value ? void 0 : i(n)("FORGOT_PASSWORD.SUBTITLE")
2452
2475
  }, {
2453
- default: A(() => [
2476
+ default: h(() => [
2454
2477
  u.value ? (b(), W(ne, { key: 1 }, [
2455
2478
  U("div", ir, [
2456
2479
  U("p", lr, y(i(n)("FORGOT_PASSWORD.SUCCESS_TEXT", { email: d.value })), 1)
2457
2480
  ]),
2458
- I(i(x), {
2481
+ _(i(x), {
2459
2482
  variant: "primary",
2460
2483
  class: "tw-w-full",
2461
- onClick: L
2484
+ onClick: O
2462
2485
  }, {
2463
- default: A(() => [
2486
+ default: h(() => [
2464
2487
  M(y(i(n)("FORGOT_PASSWORD.BACK_TO_LOGIN")), 1)
2465
2488
  ]),
2466
2489
  _: 1
2467
2490
  })
2468
2491
  ], 64)) : (b(), W(ne, { key: 0 }, [
2469
- I(i(ge), { onSubmit: S }, {
2470
- default: A(() => [
2471
- I(i(Z), {
2492
+ _(i(ge), { onSubmit: S }, {
2493
+ default: h(() => [
2494
+ _(i(Z), {
2472
2495
  label: i(n)("FORGOT_PASSWORD.FIELDS.EMAIL.LABEL"),
2473
2496
  name: "loginOrEmail",
2474
2497
  "model-value": E.loginOrEmail,
2475
2498
  rules: "required|email"
2476
2499
  }, {
2477
- default: A(({ errorMessage: w, handleChange: O, errors: h }) => [
2478
- I(i($), {
2500
+ default: h(({ errorMessage: w, handleChange: C, errors: L }) => [
2501
+ _(i($), {
2479
2502
  ref: "emailField",
2480
2503
  modelValue: E.loginOrEmail,
2481
2504
  "onUpdate:modelValue": [
2482
- v[0] || (v[0] = (g) => E.loginOrEmail = g),
2483
- O
2505
+ v[0] || (v[0] = (m) => E.loginOrEmail = m),
2506
+ C
2484
2507
  ],
2485
2508
  class: "tw-mb-6",
2486
2509
  label: i(n)("FORGOT_PASSWORD.FIELDS.EMAIL.LABEL"),
2487
2510
  placeholder: i(n)("FORGOT_PASSWORD.FIELDS.EMAIL.PLACEHOLDER"),
2488
2511
  required: "",
2489
- error: !!h.length,
2512
+ error: !!L.length,
2490
2513
  "error-message": w
2491
2514
  }, null, 8, ["modelValue", "label", "placeholder", "error", "error-message", "onUpdate:modelValue"])
2492
2515
  ]),
2493
2516
  _: 1
2494
2517
  }, 8, ["label", "model-value"]),
2495
- I(i(x), {
2518
+ _(i(x), {
2496
2519
  variant: "primary",
2497
2520
  class: "tw-w-full tw-mb-4",
2498
2521
  disabled: !i(s) || l.value,
2499
2522
  loading: l.value,
2500
2523
  onClick: S
2501
2524
  }, {
2502
- default: A(() => [
2525
+ default: h(() => [
2503
2526
  M(y(i(n)("FORGOT_PASSWORD.SEND_BUTTON")), 1)
2504
2527
  ]),
2505
2528
  _: 1
2506
2529
  }, 8, ["disabled", "loading"]),
2507
2530
  U("div", rr, [
2508
- I(i(x), {
2531
+ _(i(x), {
2509
2532
  variant: "link",
2510
2533
  icon: "lucide-arrow-left",
2511
2534
  "icon-size": "xs",
2512
2535
  type: "button",
2513
- onClick: L
2536
+ onClick: O
2514
2537
  }, {
2515
- default: A(() => [
2538
+ default: h(() => [
2516
2539
  M(y(i(n)("FORGOT_PASSWORD.BACK_TO_LOGIN")), 1)
2517
2540
  ]),
2518
2541
  _: 1
@@ -2525,7 +2548,7 @@ const nr = {
2525
2548
  key: 0,
2526
2549
  class: "tw-mt-3 tw-text-danger-500"
2527
2550
  }, {
2528
- default: A(() => [
2551
+ default: h(() => [
2529
2552
  M(y(c.value), 1)
2530
2553
  ]),
2531
2554
  _: 1
@@ -2545,7 +2568,7 @@ const nr = {
2545
2568
  background: { default: "/assets/background.jpg" }
2546
2569
  },
2547
2570
  setup(e) {
2548
- const t = e, { validateToken: a, validatePassword: n, resetPasswordByToken: s, signIn: o, loading: r } = se(), l = ve(), { t: c } = le({ useScope: "global" }), { validate: u } = ue({ validateOnMount: !1 }), { uiSettings: E, loading: m } = we(), f = ie({
2571
+ const t = e, { validateToken: a, validatePassword: n, resetPasswordByToken: s, signIn: o, loading: r } = se(), l = ve(), { t: c } = le({ useScope: "global" }), { validate: u } = ue({ validateOnMount: !1 }), { uiSettings: E, loading: g } = we(), f = ie({
2549
2572
  isValid: !1,
2550
2573
  tokenIsValid: !1,
2551
2574
  errors: [],
@@ -2555,23 +2578,23 @@ const nr = {
2555
2578
  Re(async () => {
2556
2579
  f.tokenIsValid = await a(t.userId, t.token), f.tokenIsValid || f.errors.push("Invalid-token");
2557
2580
  });
2558
- const d = C(() => r.value || !f.password || !f.confirmPassword || !f.isValid && f.tokenIsValid), S = async () => {
2581
+ const d = I(() => r.value || !f.password || !f.confirmPassword || !f.isValid && f.tokenIsValid), S = async () => {
2559
2582
  if (f.tokenIsValid) {
2560
2583
  const v = (await n(f.password)).errors;
2561
2584
  f.errors = v?.map((w) => w.code), f.confirmPassword !== f.password && f.errors.push("Repeat-password"), f.isValid = f.errors.length == 0;
2562
2585
  }
2563
- }, L = async () => {
2586
+ }, O = async () => {
2564
2587
  const { valid: v } = await u();
2565
2588
  if (v) {
2566
2589
  const w = await s(t.userId, f.password, t.token);
2567
2590
  if (w.succeeded) {
2568
- const O = await o(t.userName, f.password);
2569
- O.succeeded ? l.push("/") : f.errors = "error" in O && [O.error] || [];
2591
+ const C = await o(t.userName, f.password);
2592
+ C.succeeded ? l.push("/") : f.errors = "error" in C && [C.error] || [];
2570
2593
  } else
2571
2594
  f.errors = w.errors;
2572
2595
  }
2573
- }, T = C(() => ({
2574
- logo: m.value ? "" : E.value?.logo || t.logo
2596
+ }, T = I(() => ({
2597
+ logo: g.value ? "" : E.value?.logo || t.logo
2575
2598
  }));
2576
2599
  return (v, w) => (b(), D(i(_e), {
2577
2600
  logo: T.value.logo,
@@ -2579,27 +2602,27 @@ const nr = {
2579
2602
  title: i(c)("PASSWORDRESET.TITLE"),
2580
2603
  subtitle: i(c)("PASSWORDRESET.SUBTITLE")
2581
2604
  }, {
2582
- default: A(() => [
2605
+ default: h(() => [
2583
2606
  i(r) ? (b(), D(i(Ht), {
2584
2607
  key: 0,
2585
2608
  active: ""
2586
2609
  })) : z("", !0),
2587
- I(i(ge), null, {
2588
- default: A(() => [
2589
- I(i(Z), {
2610
+ _(i(ge), null, {
2611
+ default: h(() => [
2612
+ _(i(Z), {
2590
2613
  label: i(c)("PASSWORDRESET.FIELDS.PASSWORD.LABEL"),
2591
2614
  name: "password",
2592
2615
  "model-value": f.password,
2593
2616
  rules: "required"
2594
2617
  }, {
2595
- default: A(({ field: O, errorMessage: h, handleChange: g, errors: _ }) => [
2596
- I(i($), re(O, {
2618
+ default: h(({ field: C, errorMessage: L, handleChange: m, errors: A }) => [
2619
+ _(i($), re(C, {
2597
2620
  ref: "passwordField",
2598
2621
  modelValue: f.password,
2599
2622
  "onUpdate:modelValue": [
2600
2623
  w[0] || (w[0] = (p) => f.password = p),
2601
2624
  (p) => {
2602
- g(p), S();
2625
+ m(p), S();
2603
2626
  }
2604
2627
  ],
2605
2628
  class: "tw-mb-4",
@@ -2609,26 +2632,26 @@ const nr = {
2609
2632
  autocomplete: "new-password",
2610
2633
  disabled: !f.tokenIsValid,
2611
2634
  required: "",
2612
- error: !!_.length,
2613
- "error-message": h
2635
+ error: !!A.length,
2636
+ "error-message": L
2614
2637
  }), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-message", "onUpdate:modelValue"])
2615
2638
  ]),
2616
2639
  _: 1
2617
2640
  }, 8, ["label", "model-value"]),
2618
- I(i(Z), {
2641
+ _(i(Z), {
2619
2642
  label: i(c)("PASSWORDRESET.FIELDS.CONFIRM_PASSWORD.LABEL"),
2620
2643
  name: "confirm_password",
2621
2644
  "model-value": f.confirmPassword,
2622
2645
  rules: "required"
2623
2646
  }, {
2624
- default: A(({ field: O, errorMessage: h, handleChange: g, errors: _ }) => [
2625
- I(i($), re(O, {
2647
+ default: h(({ field: C, errorMessage: L, handleChange: m, errors: A }) => [
2648
+ _(i($), re(C, {
2626
2649
  ref: "confirmPasswordField",
2627
2650
  modelValue: f.confirmPassword,
2628
2651
  "onUpdate:modelValue": [
2629
2652
  w[1] || (w[1] = (p) => f.confirmPassword = p),
2630
2653
  (p) => {
2631
- g(p), S();
2654
+ m(p), S();
2632
2655
  }
2633
2656
  ],
2634
2657
  class: "tw-mb-6",
@@ -2638,31 +2661,31 @@ const nr = {
2638
2661
  type: "password",
2639
2662
  autocomplete: "new-password",
2640
2663
  required: "",
2641
- error: !!_.length,
2642
- "error-message": h,
2643
- onKeyup: it(L, ["enter"])
2664
+ error: !!A.length,
2665
+ "error-message": L,
2666
+ onKeyup: lt(O, ["enter"])
2644
2667
  }), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-message", "onUpdate:modelValue"])
2645
2668
  ]),
2646
2669
  _: 1
2647
2670
  }, 8, ["label", "model-value"]),
2648
- I(i(x), {
2671
+ _(i(x), {
2649
2672
  variant: "primary",
2650
2673
  class: "tw-w-full",
2651
2674
  disabled: d.value,
2652
2675
  loading: i(r),
2653
- onClick: L
2676
+ onClick: O
2654
2677
  }, {
2655
- default: A(() => [
2678
+ default: h(() => [
2656
2679
  M(y(i(c)("PASSWORDRESET.SAVE_PASSWORD")), 1)
2657
2680
  ]),
2658
2681
  _: 1
2659
2682
  }, 8, ["disabled", "loading"]),
2660
- (b(!0), W(ne, null, Fe(f.errors, (O) => (b(), D(i(Ee), {
2661
- key: O,
2683
+ (b(!0), W(ne, null, Fe(f.errors, (C) => (b(), D(i(Ee), {
2684
+ key: C,
2662
2685
  class: "tw-mt-3 tw-text-danger-500"
2663
2686
  }, {
2664
- default: A(() => [
2665
- M(y(i(c)(`PASSWORDRESET.ERRORS.${O}`)), 1)
2687
+ default: h(() => [
2688
+ M(y(i(c)(`PASSWORDRESET.ERRORS.${C}`)), 1)
2666
2689
  ]),
2667
2690
  _: 2
2668
2691
  }, 1024))), 128))
@@ -2684,41 +2707,41 @@ const nr = {
2684
2707
  },
2685
2708
  setup(e) {
2686
2709
  ue({ validateOnMount: !1 });
2687
- const t = e, { validateToken: a, validatePassword: n, resetPasswordByToken: s, signIn: o, loading: r } = se(), l = ve(), { t: c } = le({ useScope: "global" }), u = Ie(), E = ut(), { uiSettings: m, loading: f } = we(), d = ie({
2710
+ const t = e, { validateToken: a, validatePassword: n, resetPasswordByToken: s, signIn: o, loading: r } = se(), l = ve(), { t: c } = le({ useScope: "global" }), u = Ie(), E = ct(), { uiSettings: g, loading: f } = we(), d = ie({
2688
2711
  isValid: !1,
2689
2712
  tokenIsValid: !1,
2690
2713
  errors: [],
2691
2714
  password: "",
2692
2715
  confirmPassword: ""
2693
- }), S = C(() => !E.value || !u.value);
2716
+ }), S = I(() => !E.value || !u.value);
2694
2717
  Re(async () => {
2695
2718
  d.tokenIsValid = await a(t.userId, t.token), d.tokenIsValid || d.errors.push("Invalid-token");
2696
2719
  });
2697
- const L = async () => {
2720
+ const O = async () => {
2698
2721
  if (d.tokenIsValid) {
2699
2722
  const w = (await n(d.password)).errors;
2700
- d.errors = w?.map((O) => O.code), d.confirmPassword && d.confirmPassword !== d.password && d.errors.push("Repeat-password"), d.isValid = d.errors.length == 0 && !S.value;
2723
+ d.errors = w?.map((C) => C.code), d.confirmPassword && d.confirmPassword !== d.password && d.errors.push("Repeat-password"), d.isValid = d.errors.length == 0 && !S.value;
2701
2724
  }
2702
2725
  }, T = async () => {
2703
2726
  const w = await s(t.userId, d.password, t.token);
2704
2727
  w.succeeded ? (await o(t.userName, d.password)).succeeded && l.push("/") : d.errors = w.errors;
2705
- }, v = C(() => ({
2706
- logo: f.value ? "" : m.value?.logo || t.logo
2728
+ }, v = I(() => ({
2729
+ logo: f.value ? "" : g.value?.logo || t.logo
2707
2730
  }));
2708
- return (w, O) => (b(), D(i(_e), {
2731
+ return (w, C) => (b(), D(i(_e), {
2709
2732
  logo: v.value.logo,
2710
2733
  background: e.background,
2711
2734
  title: i(c)("INVITATION.TITLE"),
2712
2735
  subtitle: i(c)("INVITATION.SUBTITLE")
2713
2736
  }, {
2714
- default: A(() => [
2737
+ default: h(() => [
2715
2738
  i(r) ? (b(), D(i(Ht), {
2716
2739
  key: 0,
2717
2740
  active: ""
2718
2741
  })) : z("", !0),
2719
- I(i(ge), null, {
2720
- default: A(() => [
2721
- I(i($), {
2742
+ _(i(ge), null, {
2743
+ default: h(() => [
2744
+ _(i($), {
2722
2745
  class: "tw-mb-4",
2723
2746
  label: i(c)("INVITATION.FIELDS.EMAIL.LABEL"),
2724
2747
  "model-value": e.userName,
@@ -2726,20 +2749,20 @@ const nr = {
2726
2749
  autocomplete: "username",
2727
2750
  disabled: ""
2728
2751
  }, null, 8, ["label", "model-value"]),
2729
- I(i(Z), {
2752
+ _(i(Z), {
2730
2753
  label: i(c)("INVITATION.FIELDS.PASSWORD.LABEL"),
2731
2754
  "model-value": d.password,
2732
2755
  rules: "required",
2733
2756
  name: "password"
2734
2757
  }, {
2735
- default: A(({ field: h, errorMessage: g, handleChange: _, errors: p }) => [
2736
- I(i($), re(h, {
2758
+ default: h(({ field: L, errorMessage: m, handleChange: A, errors: p }) => [
2759
+ _(i($), re(L, {
2737
2760
  ref: "passwordField",
2738
2761
  modelValue: d.password,
2739
2762
  "onUpdate:modelValue": [
2740
- O[0] || (O[0] = (R) => d.password = R),
2763
+ C[0] || (C[0] = (R) => d.password = R),
2741
2764
  (R) => {
2742
- _(R), L();
2765
+ A(R), O();
2743
2766
  }
2744
2767
  ],
2745
2768
  class: "tw-mb-4",
@@ -2749,26 +2772,26 @@ const nr = {
2749
2772
  autocomplete: "new-password",
2750
2773
  disabled: !d.tokenIsValid,
2751
2774
  error: !!p.length,
2752
- "error-message": g,
2775
+ "error-message": m,
2753
2776
  required: ""
2754
2777
  }), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-message", "onUpdate:modelValue"])
2755
2778
  ]),
2756
2779
  _: 1
2757
2780
  }, 8, ["label", "model-value"]),
2758
- I(i(Z), {
2781
+ _(i(Z), {
2759
2782
  label: i(c)("INVITATION.FIELDS.CONFIRM_PASSWORD.LABEL"),
2760
2783
  "model-value": d.confirmPassword,
2761
2784
  rules: "required",
2762
2785
  name: "confirm_password"
2763
2786
  }, {
2764
- default: A(({ field: h, errorMessage: g, handleChange: _, errors: p }) => [
2765
- I(i($), re(h, {
2787
+ default: h(({ field: L, errorMessage: m, handleChange: A, errors: p }) => [
2788
+ _(i($), re(L, {
2766
2789
  ref: "confirmPasswordField",
2767
2790
  modelValue: d.confirmPassword,
2768
2791
  "onUpdate:modelValue": [
2769
- O[1] || (O[1] = (R) => d.confirmPassword = R),
2792
+ C[1] || (C[1] = (R) => d.confirmPassword = R),
2770
2793
  (R) => {
2771
- _(R), L();
2794
+ A(R), O();
2772
2795
  }
2773
2796
  ],
2774
2797
  class: "tw-mb-6",
@@ -2778,31 +2801,31 @@ const nr = {
2778
2801
  type: "password",
2779
2802
  autocomplete: "new-password",
2780
2803
  error: !!p.length,
2781
- "error-message": g,
2804
+ "error-message": m,
2782
2805
  required: "",
2783
- onKeyup: it(T, ["enter"])
2806
+ onKeyup: lt(T, ["enter"])
2784
2807
  }), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-message", "onUpdate:modelValue"])
2785
2808
  ]),
2786
2809
  _: 1
2787
2810
  }, 8, ["label", "model-value"]),
2788
- I(i(x), {
2811
+ _(i(x), {
2789
2812
  variant: "primary",
2790
2813
  class: "tw-w-full",
2791
2814
  disabled: i(r) || !d.isValid || !d.tokenIsValid,
2792
2815
  loading: i(r),
2793
2816
  onClick: T
2794
2817
  }, {
2795
- default: A(() => [
2818
+ default: h(() => [
2796
2819
  M(y(i(c)("INVITATION.ACCEPT_INVITATION")), 1)
2797
2820
  ]),
2798
2821
  _: 1
2799
2822
  }, 8, ["disabled", "loading"]),
2800
- (b(!0), W(ne, null, Fe(d.errors, (h) => (b(), D(i(Ee), {
2801
- key: h,
2823
+ (b(!0), W(ne, null, Fe(d.errors, (L) => (b(), D(i(Ee), {
2824
+ key: L,
2802
2825
  class: "tw-mt-3 tw-text-danger-500"
2803
2826
  }, {
2804
- default: A(() => [
2805
- M(y(i(c)(`INVITATION.ERRORS.${h}`)), 1)
2827
+ default: h(() => [
2828
+ M(y(i(c)(`INVITATION.ERRORS.${L}`)), 1)
2806
2829
  ]),
2807
2830
  _: 2
2808
2831
  }, 1024))), 128))
@@ -2824,18 +2847,18 @@ const nr = {
2824
2847
  background: {}
2825
2848
  },
2826
2849
  setup(e) {
2827
- const t = e, { t: a } = le({ useScope: "global" }), { changeUserPassword: n, loading: s, validatePassword: o, signOut: r } = se(), { uiSettings: l, loading: c } = we(), u = C(() => ({
2850
+ const t = e, { t: a } = le({ useScope: "global" }), { changeUserPassword: n, loading: s, validatePassword: o, signOut: r } = se(), { uiSettings: l, loading: c } = we(), u = I(() => ({
2828
2851
  logo: c.value ? "" : l.value?.logo || t.logo
2829
2852
  }));
2830
2853
  ue({ validateOnMount: !1 });
2831
- const E = Ie(), m = ut(), f = ve(), d = ie({
2854
+ const E = Ie(), g = ct(), f = ve(), d = ie({
2832
2855
  isValid: !1,
2833
2856
  errors: [],
2834
2857
  currentPassword: "",
2835
2858
  password: "",
2836
2859
  confirmPassword: ""
2837
- }), S = C(() => !m.value || !E.value);
2838
- async function L() {
2860
+ }), S = I(() => !g.value || !E.value);
2861
+ async function O() {
2839
2862
  await r(), await f.push("/login");
2840
2863
  }
2841
2864
  async function T() {
@@ -2845,48 +2868,48 @@ const nr = {
2845
2868
  function v() {
2846
2869
  be(async () => {
2847
2870
  if (d.password || d.confirmPassword) {
2848
- const w = (await o(d.password)).errors ?? [], O = ar({
2871
+ const w = (await o(d.password)).errors ?? [], C = ar({
2849
2872
  password: d.password,
2850
2873
  confirmPassword: d.confirmPassword,
2851
2874
  currentPassword: d.currentPassword
2852
2875
  });
2853
- d.errors = [...w, ...O], d.isValid = d.errors.length == 0;
2876
+ d.errors = [...w, ...C], d.isValid = d.errors.length == 0;
2854
2877
  }
2855
2878
  });
2856
2879
  }
2857
- return (w, O) => (b(), D(i(_e), {
2880
+ return (w, C) => (b(), D(i(_e), {
2858
2881
  logo: u.value.logo,
2859
2882
  background: e.background,
2860
2883
  title: e.forced ? i(a)("COMPONENTS.CHANGE_PASSWORD.TITLE_FORCED") : i(a)("COMPONENTS.CHANGE_PASSWORD.TITLE"),
2861
2884
  subtitle: e.forced ? i(a)("COMPONENTS.CHANGE_PASSWORD.SUBTITLE_FORCED") : void 0
2862
2885
  }, {
2863
- default: A(() => [
2886
+ default: h(() => [
2864
2887
  e.forced ? (b(), W("div", Er, [
2865
- I(i(Ln), {
2888
+ _(i(Ln), {
2866
2889
  variant: "info",
2867
2890
  icon: "lucide-lightbulb",
2868
2891
  "icon-size": "l"
2869
2892
  }, {
2870
- default: A(() => [
2893
+ default: h(() => [
2871
2894
  M(y(i(a)("COMPONENTS.CHANGE_PASSWORD.FORCED.LABEL")), 1)
2872
2895
  ]),
2873
2896
  _: 1
2874
2897
  })
2875
2898
  ])) : z("", !0),
2876
- I(i(ge), null, {
2877
- default: A(() => [
2878
- I(i(Z), {
2899
+ _(i(ge), null, {
2900
+ default: h(() => [
2901
+ _(i(Z), {
2879
2902
  label: i(a)("COMPONENTS.CHANGE_PASSWORD.CURRENT_PASSWORD.LABEL"),
2880
2903
  name: "current",
2881
2904
  rules: "required|min:6",
2882
2905
  "model-value": d.currentPassword
2883
2906
  }, {
2884
- default: A(({ field: h, errorMessage: g, errors: _ }) => [
2885
- I(i($), re(h, {
2907
+ default: h(({ field: L, errorMessage: m, errors: A }) => [
2908
+ _(i($), re(L, {
2886
2909
  ref: "passwordField",
2887
2910
  modelValue: d.currentPassword,
2888
2911
  "onUpdate:modelValue": [
2889
- O[0] || (O[0] = (p) => d.currentPassword = p),
2912
+ C[0] || (C[0] = (p) => d.currentPassword = p),
2890
2913
  v
2891
2914
  ],
2892
2915
  class: "tw-mb-4",
@@ -2895,24 +2918,24 @@ const nr = {
2895
2918
  type: "password",
2896
2919
  autocomplete: "current-password",
2897
2920
  required: "",
2898
- error: !!_.length,
2899
- "error-message": g
2921
+ error: !!A.length,
2922
+ "error-message": m
2900
2923
  }), null, 16, ["modelValue", "label", "placeholder", "error", "error-message"])
2901
2924
  ]),
2902
2925
  _: 1
2903
2926
  }, 8, ["label", "model-value"]),
2904
- I(i(Z), {
2927
+ _(i(Z), {
2905
2928
  label: i(a)("COMPONENTS.CHANGE_PASSWORD.NEW_PASSWORD.LABEL"),
2906
2929
  name: "new_pass",
2907
2930
  rules: "required|min:6",
2908
2931
  "model-value": d.password
2909
2932
  }, {
2910
- default: A(({ field: h, errorMessage: g, errors: _ }) => [
2911
- I(i($), re(h, {
2933
+ default: h(({ field: L, errorMessage: m, errors: A }) => [
2934
+ _(i($), re(L, {
2912
2935
  ref: "newPasswordField",
2913
2936
  modelValue: d.password,
2914
2937
  "onUpdate:modelValue": [
2915
- O[1] || (O[1] = (p) => d.password = p),
2938
+ C[1] || (C[1] = (p) => d.password = p),
2916
2939
  v
2917
2940
  ],
2918
2941
  class: "tw-mb-4",
@@ -2921,24 +2944,24 @@ const nr = {
2921
2944
  type: "password",
2922
2945
  autocomplete: "new-password",
2923
2946
  required: "",
2924
- error: !!_.length,
2925
- "error-message": g
2947
+ error: !!A.length,
2948
+ "error-message": m
2926
2949
  }), null, 16, ["modelValue", "label", "placeholder", "error", "error-message"])
2927
2950
  ]),
2928
2951
  _: 1
2929
2952
  }, 8, ["label", "model-value"]),
2930
- I(i(Z), {
2953
+ _(i(Z), {
2931
2954
  label: i(a)("COMPONENTS.CHANGE_PASSWORD.CONFIRM_PASSWORD.LABEL"),
2932
2955
  name: "confirm_pass",
2933
2956
  rules: "required|min:6",
2934
2957
  "model-value": d.confirmPassword
2935
2958
  }, {
2936
- default: A(({ field: h, errorMessage: g, errors: _ }) => [
2937
- I(i($), re(h, {
2959
+ default: h(({ field: L, errorMessage: m, errors: A }) => [
2960
+ _(i($), re(L, {
2938
2961
  ref: "confirmPasswordField",
2939
2962
  modelValue: d.confirmPassword,
2940
2963
  "onUpdate:modelValue": [
2941
- O[2] || (O[2] = (p) => d.confirmPassword = p),
2964
+ C[2] || (C[2] = (p) => d.confirmPassword = p),
2942
2965
  v
2943
2966
  ],
2944
2967
  class: "tw-mb-6",
@@ -2947,42 +2970,42 @@ const nr = {
2947
2970
  type: "password",
2948
2971
  autocomplete: "new-password",
2949
2972
  required: "",
2950
- error: !!_.length,
2951
- "error-message": g
2973
+ error: !!A.length,
2974
+ "error-message": m
2952
2975
  }), null, 16, ["modelValue", "label", "placeholder", "error", "error-message"])
2953
2976
  ]),
2954
2977
  _: 1
2955
2978
  }, 8, ["label", "model-value"]),
2956
2979
  U("div", fr, [
2957
- I(i(x), {
2980
+ _(i(x), {
2958
2981
  variant: "secondary",
2959
2982
  class: "tw-flex-1",
2960
- onClick: L
2983
+ onClick: O
2961
2984
  }, {
2962
- default: A(() => [
2985
+ default: h(() => [
2963
2986
  M(y(i(a)("COMPONENTS.CHANGE_PASSWORD.CANCEL")), 1)
2964
2987
  ]),
2965
2988
  _: 1
2966
2989
  }),
2967
- I(i(x), {
2990
+ _(i(x), {
2968
2991
  variant: "primary",
2969
2992
  class: "tw-flex-1",
2970
2993
  disabled: i(s) || !d.isValid || S.value,
2971
2994
  loading: i(s),
2972
2995
  onClick: T
2973
2996
  }, {
2974
- default: A(() => [
2997
+ default: h(() => [
2975
2998
  M(y(i(a)("COMPONENTS.CHANGE_PASSWORD.SAVE")), 1)
2976
2999
  ]),
2977
3000
  _: 1
2978
3001
  }, 8, ["disabled", "loading"])
2979
3002
  ]),
2980
- (b(!0), W(ne, null, Fe(d.errors, (h, g) => (b(), D(i(Ee), {
2981
- key: g,
3003
+ (b(!0), W(ne, null, Fe(d.errors, (L, m) => (b(), D(i(Ee), {
3004
+ key: m,
2982
3005
  class: "tw-mt-3 tw-text-danger-500"
2983
3006
  }, {
2984
- default: A(() => [
2985
- M(y(h.code ? i(a)(`COMPONENTS.CHANGE_PASSWORD.ERRORS.${h.code}`) : h), 1)
3007
+ default: h(() => [
3008
+ M(y(L.code ? i(a)(`COMPONENTS.CHANGE_PASSWORD.ERRORS.${L.code}`) : L), 1)
2986
3009
  ]),
2987
3010
  _: 2
2988
3011
  }, 1024))), 128))
@@ -2993,10 +3016,10 @@ const nr = {
2993
3016
  _: 1
2994
3017
  }, 8, ["logo", "background", "title", "subtitle"]));
2995
3018
  }
2996
- }), xl = mr, Je = k("use-blade-navigation-adapter"), at = /* @__PURE__ */ new Set();
3019
+ }), xl = mr, Qe = k("use-blade-navigation-adapter"), nt = /* @__PURE__ */ new Set();
2997
3020
  function oe(e, t) {
2998
- if (at.has(e)) return;
2999
- at.add(e);
3021
+ if (nt.has(e)) return;
3022
+ nt.add(e);
3000
3023
  const a = `[useBladeNavigation] "${e}" is deprecated.`;
3001
3024
  console.warn(t ? `${a} Use ${t} instead.` : a);
3002
3025
  }
@@ -3019,7 +3042,7 @@ function Nt(e, t, a) {
3019
3042
  }
3020
3043
  let De, ye;
3021
3044
  function $l() {
3022
- De = void 0, ye = void 0, at.clear();
3045
+ De = void 0, ye = void 0, nt.clear();
3023
3046
  }
3024
3047
  function gr() {
3025
3048
  const e = as, t = ss, a = ns;
@@ -3030,10 +3053,10 @@ function gr() {
3030
3053
  const n = ts?.router;
3031
3054
  if (!n)
3032
3055
  throw new Error("[@vc-shell/framework#useBladeNavigation] Vue Router instance is not available.");
3033
- return De || (De = C(() => {
3056
+ return De || (De = I(() => {
3034
3057
  const s = e.activeBlade.value?.id;
3035
3058
  return e.blades.value.map((o, r) => Nt(o, r, s));
3036
- })), ye || (ye = C(() => {
3059
+ })), ye || (ye = I(() => {
3037
3060
  const s = e.workspace.value;
3038
3061
  if (s)
3039
3062
  return Nt(s, 0, e.activeBlade.value?.id);
@@ -3067,37 +3090,37 @@ function Kl() {
3067
3090
  function l() {
3068
3091
  return r ? r.value.id : e.activeBlade.value?.id;
3069
3092
  }
3070
- function c(g) {
3071
- const _ = e.blades.value;
3072
- if (g >= 0 && g < _.length)
3073
- return _[g].id;
3093
+ function c(m) {
3094
+ const A = e.blades.value;
3095
+ if (m >= 0 && m < A.length)
3096
+ return A[m].id;
3074
3097
  }
3075
- async function u(g, _) {
3098
+ async function u(m, A) {
3076
3099
  const R = {
3077
- name: Sr(g.blade),
3078
- param: g.param,
3079
- options: g.options,
3080
- onOpen: g.onOpen,
3081
- onClose: g.onClose,
3082
- replaceCurrentBlade: g.replaceCurrentBlade
3100
+ name: Sr(m.blade),
3101
+ param: m.param,
3102
+ options: m.options,
3103
+ onOpen: m.onOpen,
3104
+ onClose: m.onClose,
3105
+ replaceCurrentBlade: m.replaceCurrentBlade
3083
3106
  };
3084
- if (_)
3107
+ if (A)
3085
3108
  await e.openWorkspace(R);
3086
- else if (g.replaceCurrentBlade)
3109
+ else if (m.replaceCurrentBlade)
3087
3110
  await e.coverCurrentBlade(R);
3088
3111
  else {
3089
3112
  const P = l();
3090
3113
  await e.openBlade({ ...R, parentId: P });
3091
3114
  }
3092
3115
  }
3093
- async function E(g) {
3116
+ async function E(m) {
3094
3117
  oe("closeBlade(index)", "useBlade().closeSelf()");
3095
- const _ = c(g);
3096
- return _ ? e.closeBlade(_) : (Je.error(`closeBlade: No blade found at index ${g}.`), !1);
3118
+ const A = c(m);
3119
+ return A ? e.closeBlade(A) : (Qe.error(`closeBlade: No blade found at index ${m}.`), !1);
3097
3120
  }
3098
- function m() {
3121
+ function g() {
3099
3122
  oe("goToRoot()");
3100
- const g = n.getRoutes(), _ = g.find((P) => P.meta?.root), p = _ ? g.find((P) => P.aliasOf?.path === _.path) ?? _ : void 0;
3123
+ const m = n.getRoutes(), A = m.find((P) => P.meta?.root), p = A ? m.find((P) => P.aliasOf?.path === A.path) ?? A : void 0;
3101
3124
  if (p?.name)
3102
3125
  return {
3103
3126
  name: p.name,
@@ -3106,72 +3129,72 @@ function Kl() {
3106
3129
  const R = On(n);
3107
3130
  return { path: R ? `/${R}` : "/" };
3108
3131
  }
3109
- async function f(g, _) {
3132
+ async function f(m, A) {
3110
3133
  oe("onParentCall(args, index)", "useBlade().callParent(method, args)");
3111
3134
  let p;
3112
- if (_ !== void 0 ? p = c(_) : p = l(), !p) {
3113
- Je.error("onParentCall: Could not determine caller blade.");
3135
+ if (A !== void 0 ? p = c(A) : p = l(), !p) {
3136
+ Qe.error("onParentCall: Could not determine caller blade.");
3114
3137
  return;
3115
3138
  }
3116
3139
  try {
3117
- const R = await t.callParent(p, g.method, g.args);
3118
- typeof g.callback == "function" && g.callback(R);
3140
+ const R = await t.callParent(p, m.method, m.args);
3141
+ typeof m.callback == "function" && m.callback(R);
3119
3142
  } catch (R) {
3120
- Je.error(`onParentCall: Failed to call parent method "${g.method}":`, R);
3143
+ Qe.error(`onParentCall: Failed to call parent method "${m.method}":`, R);
3121
3144
  }
3122
3145
  }
3123
- function d(g) {
3146
+ function d(m) {
3124
3147
  oe("onBeforeClose(cb)", "useBlade().onBeforeClose(guard)");
3125
- const _ = l();
3126
- if (!_) {
3148
+ const A = l();
3149
+ if (!A) {
3127
3150
  sn("onBeforeClose: Could not determine current blade.");
3128
3151
  return;
3129
3152
  }
3130
- e.registerBeforeClose(_, async () => await g() === !1);
3153
+ e.registerBeforeClose(A, async () => await m() === !1);
3131
3154
  }
3132
- function S(g) {
3133
- return a.getBladeComponent(g);
3155
+ function S(m) {
3156
+ return a.getBladeComponent(m);
3134
3157
  }
3135
- function L(g) {
3158
+ function O(m) {
3136
3159
  oe("routeResolver", "plugin-v2 handles URL resolution automatically");
3137
3160
  }
3138
- function T(g) {
3161
+ function T(m) {
3139
3162
  oe("setNavigationQuery");
3140
- const _ = e.workspace.value;
3141
- if (!_) return;
3142
- const p = _.name.toLowerCase(), [R, P] = Dt(window.location.hash), B = new URLSearchParams(P);
3163
+ const A = e.workspace.value;
3164
+ if (!A) return;
3165
+ const p = A.name.toLowerCase(), [R, P] = Dt(window.location.hash), B = new URLSearchParams(P);
3143
3166
  for (const K of [...B.keys()])
3144
3167
  K.startsWith(`${p}_`) && B.delete(K);
3145
- for (const [K, ce] of Object.entries(g))
3168
+ for (const [K, ce] of Object.entries(m))
3146
3169
  ce != null && B.set(`${p}_${K}`, String(ce));
3147
3170
  const V = B.toString();
3148
3171
  n.options.history.replace(V ? `${R}?${V}` : R);
3149
3172
  }
3150
3173
  function v() {
3151
3174
  oe("getNavigationQuery");
3152
- const g = e.workspace.value;
3153
- if (!g) return;
3154
- const _ = g.name.toLowerCase(), p = new URLSearchParams(Dt(window.location.hash)[1]), R = {};
3175
+ const m = e.workspace.value;
3176
+ if (!m) return;
3177
+ const A = m.name.toLowerCase(), p = new URLSearchParams(Dt(window.location.hash)[1]), R = {};
3155
3178
  for (const [P, B] of p.entries())
3156
- P.startsWith(`${_}_`) && (R[P.replace(`${_}_`, "")] = pr(B));
3179
+ P.startsWith(`${A}_`) && (R[P.replace(`${A}_`, "")] = pr(B));
3157
3180
  return Object.keys(R).length > 0 ? R : void 0;
3158
3181
  }
3159
- function w(g, _) {
3160
- const p = c(g);
3161
- p && e.setBladeError(p, _);
3182
+ function w(m, A) {
3183
+ const p = c(m);
3184
+ p && e.setBladeError(p, A);
3162
3185
  }
3163
- function O(g) {
3164
- const _ = c(g);
3165
- _ && e.clearBladeError(_);
3186
+ function C(m) {
3187
+ const A = c(m);
3188
+ A && e.clearBladeError(A);
3166
3189
  }
3167
- const h = C(() => {
3190
+ const L = I(() => {
3168
3191
  if (!r) return;
3169
- const g = r.value;
3192
+ const m = r.value;
3170
3193
  return {
3171
- idx: e.blades.value.findIndex((R) => R.id === g.id),
3172
- instance: g.title != null ? { title: g.title } : void 0,
3173
- isVisible: g.visible,
3174
- error: N(g.error ? new Error(String(g.error)) : null)
3194
+ idx: e.blades.value.findIndex((R) => R.id === m.id),
3195
+ instance: m.title != null ? { title: m.title } : void 0,
3196
+ isVisible: m.visible,
3197
+ error: N(m.error ? new Error(String(m.error)) : null)
3175
3198
  };
3176
3199
  });
3177
3200
  return {
@@ -3179,16 +3202,16 @@ function Kl() {
3179
3202
  activeWorkspace: o,
3180
3203
  openBlade: u,
3181
3204
  closeBlade: E,
3182
- goToRoot: m,
3205
+ goToRoot: g,
3183
3206
  onParentCall: f,
3184
3207
  onBeforeClose: d,
3185
3208
  resolveBladeByName: S,
3186
- routeResolver: L,
3209
+ routeResolver: O,
3187
3210
  setNavigationQuery: T,
3188
3211
  getNavigationQuery: v,
3189
3212
  setBladeError: w,
3190
- clearBladeError: O,
3191
- currentBladeNavigationData: h
3213
+ clearBladeError: C,
3214
+ currentBladeNavigationData: L
3192
3215
  };
3193
3216
  }
3194
3217
  function Ce(e) {
@@ -3212,20 +3235,20 @@ function zl(e) {
3212
3235
  autoBeforeUnload: s = !0,
3213
3236
  closeConfirmMessage: o,
3214
3237
  onRevert: r
3215
- } = e, { meta: l, setFieldError: c, errorBag: u } = ue({ validateOnMount: !1 }), E = N(J(t.value)), m = N(!1);
3238
+ } = e, { meta: l, setFieldError: c, errorBag: u } = ue({ validateOnMount: !1 }), E = N(J(t.value)), g = N(!1);
3216
3239
  ae(
3217
3240
  t,
3218
3241
  (w) => {
3219
- f.value && (m.value = !Ue(w, E.value));
3242
+ f.value && (g.value = !Ue(w, E.value));
3220
3243
  },
3221
3244
  { deep: !0 }
3222
3245
  );
3223
- const f = N(!1), d = C(() => f.value && m.value), S = C(() => !(!f.value || !l.value.valid || !m.value || a && !a.value));
3224
- function L() {
3225
- E.value = J(t.value), m.value = !1, f.value = !0;
3246
+ const f = N(!1), d = I(() => f.value && g.value), S = I(() => !(!f.value || !l.value.valid || !g.value || a && !a.value));
3247
+ function O() {
3248
+ E.value = J(t.value), g.value = !1, f.value = !0;
3226
3249
  }
3227
3250
  function T() {
3228
- f.value = !0, m.value = !Ue(t.value, E.value);
3251
+ f.value = !0, g.value = !Ue(t.value, E.value);
3229
3252
  }
3230
3253
  function v() {
3231
3254
  if (r)
@@ -3233,23 +3256,23 @@ function zl(e) {
3233
3256
  t.value = J(E.value);
3234
3257
  }
3235
3258
  if (s && zs(d), n !== !1) {
3236
- const { onBeforeClose: w } = lt(), { showConfirmation: O } = Rn();
3259
+ const { onBeforeClose: w } = ut(), { showConfirmation: C } = Rn();
3237
3260
  w(async () => {
3238
- let h;
3239
- if (typeof n == "object" ? h = n.value && d.value : h = d.value, h) {
3240
- const g = o ? Mt(o) : "You have unsaved changes. Are you sure you want to leave?";
3241
- return !await O(g);
3261
+ let L;
3262
+ if (typeof n == "object" ? L = n.value && d.value : L = d.value, L) {
3263
+ const m = o ? Mt(o) : "You have unsaved changes. Are you sure you want to leave?";
3264
+ return !await C(m);
3242
3265
  }
3243
3266
  return !1;
3244
3267
  });
3245
3268
  }
3246
3269
  return Bt(yn, { isModified: d, canSave: S }), {
3247
- setBaseline: L,
3270
+ setBaseline: O,
3248
3271
  markReady: T,
3249
3272
  revert: v,
3250
3273
  canSave: S,
3251
3274
  isModified: d,
3252
- isReady: C(() => f.value),
3275
+ isReady: I(() => f.value),
3253
3276
  formMeta: l,
3254
3277
  setFieldError: c,
3255
3278
  errorBag: u
@@ -3258,14 +3281,14 @@ function zl(e) {
3258
3281
  const Be = 14, Na = 3;
3259
3282
  function Ar(e, t, a) {
3260
3283
  const n = e.length, s = (u) => u !== void 0 && t.get(u) || 0, o = n > 0 ? e[n - 1] : void 0, r = s(o), l = e.map((u, E) => {
3261
- const m = n - 1 - E;
3284
+ const g = n - 1 - E;
3262
3285
  let f = 0;
3263
3286
  for (let S = E + 1; S < n; S++)
3264
3287
  f += s(e[S]);
3265
- const d = m * Be + f;
3288
+ const d = g * Be + f;
3266
3289
  return {
3267
- sonnerIndex: m,
3268
- zIndex: n - m,
3290
+ sonnerIndex: g,
3291
+ zIndex: n - g,
3269
3292
  offset: d,
3270
3293
  initialHeight: s(u)
3271
3294
  };
@@ -3276,8 +3299,8 @@ function Ar(e, t, a) {
3276
3299
  let E = 0;
3277
3300
  for (let d = 1; d < n; d++)
3278
3301
  E += s(e[d]);
3279
- const m = u * Be + E, f = s(e[0]);
3280
- c = m + f;
3302
+ const g = u * Be + E, f = s(e[0]);
3303
+ c = g + f;
3281
3304
  } else
3282
3305
  c = r + Math.min(n - 1, Na - 1) * Be;
3283
3306
  return { toasts: l, frontHeight: r, groupHeight: c };
@@ -3294,8 +3317,8 @@ function Tr() {
3294
3317
  }, 200));
3295
3318
  }
3296
3319
  const o = ie(/* @__PURE__ */ new Map());
3297
- function r(E, m) {
3298
- const f = Math.round(m);
3320
+ function r(E, g) {
3321
+ const f = Math.round(g);
3299
3322
  o.get(E) !== f && o.set(E, f);
3300
3323
  }
3301
3324
  function l(E) {
@@ -3375,7 +3398,7 @@ const hr = H({
3375
3398
  }
3376
3399
  },
3377
3400
  setup(e) {
3378
- const { notificationContainers: t, actions: a } = Q(Zt), n = C(() => t[e.position].value || []), {
3401
+ const { notificationContainers: t, actions: a } = Q(Zt), n = I(() => t[e.position].value || []), {
3379
3402
  expanded: s,
3380
3403
  heightsMap: o,
3381
3404
  expandStack: r,
@@ -3383,7 +3406,7 @@ const hr = H({
3383
3406
  reportHeight: c,
3384
3407
  forgetHeight: u,
3385
3408
  clearHeights: E,
3386
- setInteracting: m
3409
+ setInteracting: g
3387
3410
  } = Tr();
3388
3411
  function f(T) {
3389
3412
  return typeof T == "object" && (!!T?.render || !!T?.setup);
@@ -3394,14 +3417,14 @@ const hr = H({
3394
3417
  function S() {
3395
3418
  a.clear(), E();
3396
3419
  }
3397
- const L = C(() => (e.position || "top-center").startsWith("top"));
3420
+ const O = I(() => (e.position || "top-center").startsWith("top"));
3398
3421
  return () => {
3399
- const T = n.value, v = T.length, w = s.value || v <= 1, O = v > 1, h = Ar(
3422
+ const T = n.value, v = T.length, w = s.value || v <= 1, C = v > 1, L = Ar(
3400
3423
  T.map((p) => p.notificationId),
3401
3424
  o,
3402
3425
  w
3403
- ), g = T.map((p, R) => {
3404
- const { sonnerIndex: P, zIndex: B, offset: V, initialHeight: K } = h.toasts[R], ce = {
3426
+ ), m = T.map((p, R) => {
3427
+ const { sonnerIndex: P, zIndex: B, offset: V, initialHeight: K } = L.toasts[R], ce = {
3405
3428
  "--toasts-before": P,
3406
3429
  "--z-index": B,
3407
3430
  "--offset": `${V}px`,
@@ -3415,17 +3438,17 @@ const hr = H({
3415
3438
  expanded: w,
3416
3439
  visibleToasts: Na,
3417
3440
  style: ce
3418
- }, Da = p.content && f(p.content) ? ee(ft, { ...pe, content: ee(on(p.content)) }) : ee(ft, pe);
3441
+ }, Da = p.content && f(p.content) ? ee(mt, { ...pe, content: ee(on(p.content)) }) : ee(mt, pe);
3419
3442
  return ee("li", { key: p.notificationId, style: { display: "contents" } }, [Da]);
3420
3443
  });
3421
- let _ = null;
3422
- return O && (_ = ee(
3444
+ let A = null;
3445
+ return C && (A = ee(
3423
3446
  "li",
3424
3447
  {
3425
3448
  class: "notification__clear-all",
3426
3449
  style: {
3427
3450
  position: "absolute",
3428
- [L.value ? "top" : "bottom"]: "0",
3451
+ [O.value ? "top" : "bottom"]: "0",
3429
3452
  left: "var(--width, 356px)",
3430
3453
  "margin-left": "8px",
3431
3454
  "list-style": "none",
@@ -3453,23 +3476,23 @@ const hr = H({
3453
3476
  class: "notification__toast-group",
3454
3477
  "data-expanded": String(w),
3455
3478
  "data-position": e.position || "top-center",
3456
- "data-y-position": L.value ? "top" : "bottom",
3479
+ "data-y-position": O.value ? "top" : "bottom",
3457
3480
  style: {
3458
- "--front-toast-height": `${h.frontHeight}px`,
3481
+ "--front-toast-height": `${L.frontHeight}px`,
3459
3482
  "--gap": `${Be}px`,
3460
3483
  width: "var(--width, 356px)",
3461
- height: `${h.groupHeight}px`
3484
+ height: `${L.groupHeight}px`
3462
3485
  },
3463
3486
  onMouseenter: r,
3464
3487
  onMouseleave: l,
3465
3488
  onPointerdown: () => {
3466
- m(!0);
3489
+ g(!0);
3467
3490
  },
3468
3491
  onPointerup: () => {
3469
- m(!1);
3492
+ g(!1);
3470
3493
  }
3471
3494
  },
3472
- [...g, _]
3495
+ [...m, A]
3473
3496
  );
3474
3497
  };
3475
3498
  }
@@ -3560,7 +3583,7 @@ function Pr(e) {
3560
3583
  return localStorage.setItem("redirectAfterLogin", a.fullPath), { name: "Login" };
3561
3584
  }
3562
3585
  }), e.beforeEach((a, n) => {
3563
- const { hasAccess: s } = nt();
3586
+ const { hasAccess: s } = st();
3564
3587
  if (a.meta.permissions) {
3565
3588
  if (s(a.meta.permissions)) return !0;
3566
3589
  {
@@ -3771,7 +3794,7 @@ export {
3771
3794
  Cd as VcGallery,
3772
3795
  Ee as VcHint,
3773
3796
  Bn as VcIcon,
3774
- st as VcImage,
3797
+ ot as VcImage,
3775
3798
  Pd as VcImageTile,
3776
3799
  bd as VcImageUpload,
3777
3800
  $ as VcInput,
@@ -3806,7 +3829,7 @@ export {
3806
3829
  qd as VcSwitch,
3807
3830
  Yd as VcTable,
3808
3831
  An as VcTextarea,
3809
- ft as VcToast,
3832
+ mt as VcToast,
3810
3833
  yf as VcTooltip,
3811
3834
  jd as VcVideo,
3812
3835
  Zd as VcWidget,
@@ -3836,7 +3859,7 @@ export {
3836
3859
  Vu as createKeyedBackendRegistry,
3837
3860
  k as createLogger,
3838
3861
  ql as default,
3839
- dt as defineAppModule,
3862
+ Et as defineAppModule,
3840
3863
  Ml as defineBladeContext,
3841
3864
  Cm as defineExtensionPoint,
3842
3865
  Qd as detectThemePreset,
@@ -3919,7 +3942,7 @@ export {
3919
3942
  Xt as useAsync,
3920
3943
  gE as useBadge,
3921
3944
  zs as useBeforeUnload,
3922
- lt as useBlade,
3945
+ ut as useBlade,
3923
3946
  zl as useBladeForm,
3924
3947
  dc as useBladeLoading,
3925
3948
  SE as useBladeMessaging,
@@ -3959,7 +3982,7 @@ export {
3959
3982
  hl as useNotificationContext,
3960
3983
  me as useNotificationStore,
3961
3984
  vl as useNotifications,
3962
- nt as usePermissions,
3985
+ st as usePermissions,
3963
3986
  Rn as usePopup,
3964
3987
  Fa as useResponsive,
3965
3988
  Ac as useScrollArrows,