@vc-shell/framework 2.6.3-rc.0-pr384.f7327e1 → 2.6.3-rc.0-pr385.8196892

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.
@@ -1,11 +1,11 @@
1
- import { mergeProps as ne, computed as I, toValue as ye, inject as J, useId as ln, ref as S, onBeforeUnmount as rt, reactive as Ze, provide as Et, getCurrentScope as on, onScopeDispose as rn, getCurrentInstance as We, onErrorCaptured as sn, nextTick as $e, defineComponent as F, watch as G, unref as s, openBlock as f, createElementBlock as y, normalizeClass as H, createBlock as P, createCommentVNode as $, renderSlot as x, createElementVNode as C, toDisplayString as M, Fragment as Be, renderList as st, normalizeStyle as Ve, resolveDynamicComponent as ut, withCtx as w, withKeys as Q, withModifiers as Y, createVNode as T, watchEffect as tt, shallowReactive as nt, markRaw as at, createSlots as re, createTextVNode as _, Transition as Pe, withDirectives as ct, vModelText as un, useAttrs as Lt, vModelDynamic as cn, onMounted as je, onUnmounted as Bt, Teleport as dn, normalizeProps as Ae, guardReactiveProps as Ne } from "vue";
2
- import { c as me, ai as fn, P as vn, x as gn, t as mn, q as pn, I as bn, s as yn, r as hn, B as Ct, b as kn, i as Sn, _ as K, T as xt, a as Tt, X as In, y as $n, u as wn } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-BO4n-ICh.js";
3
- import { defineRule as Ce, Field as On } from "vee-validate";
1
+ import { mergeProps as ee, computed as $, toValue as be, inject as Y, useId as ln, ref as S, onBeforeUnmount as rt, reactive as Ze, provide as Et, getCurrentScope as on, onScopeDispose as rn, getCurrentInstance as We, onErrorCaptured as sn, nextTick as Ie, defineComponent as z, watch as j, unref as r, openBlock as f, createElementBlock as y, normalizeClass as W, createBlock as P, createCommentVNode as w, renderSlot as T, createElementVNode as x, toDisplayString as A, Fragment as Le, renderList as st, normalizeStyle as Ve, resolveDynamicComponent as ut, withCtx as O, withKeys as X, withModifiers as G, createVNode as M, watchEffect as tt, shallowReactive as nt, markRaw as at, createSlots as oe, createTextVNode as Z, Transition as Pe, withDirectives as ct, vModelText as un, useAttrs as Lt, vModelDynamic as cn, onMounted as je, onUnmounted as Bt, Teleport as dn, normalizeProps as Ae, guardReactiveProps as Ne } from "vue";
2
+ import { c as ge, ai as fn, P as vn, x as gn, t as mn, q as pn, I as bn, s as yn, r as hn, B as Ct, b as kn, i as Sn, _ as U, T as xt, a as Tt, X as In, y as $n, u as wn } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-BO4n-ICh.js";
3
+ import { defineRule as Be, Field as On } from "vee-validate";
4
4
  import { a as kt } from "./vendor-vee-validate-rules-4oWUZPpG.js";
5
5
  import { a as Rt, s as En, c as Ln, b as Qe, e as De } from "./vendor-lodash-es-D2n90GJy.js";
6
6
  import { X as Bn } from "./vendor-microsoft-applicationinsights-core-js-CR3vyuZc.js";
7
7
  import { d as Mt, e as Cn, f as xn, g as Tn } from "./vendor-vueuse-core-BwXFv1rx.js";
8
- import { c as Rn, u as Oe } from "./vendor-vue-i18n-LO-EJStU.js";
8
+ import { c as Rn, u as we } from "./vendor-vue-i18n-LO-EJStU.js";
9
9
  import { j as Mn } from "./vendor-vueuse-shared-BPTQMqzb.js";
10
10
  import { k as An } from "./vendor-tiptap-core-CZbeo7XQ.js";
11
11
  import "./vendor-tiptap-extension-text-style-Bc6nvmn0.js";
@@ -15,9 +15,9 @@ import { u as Pn } from "./vendor-floating-ui-vue-sCrhit51.js";
15
15
  import { f as At, s as Nt, o as lt, b as Fn } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
16
16
  import { v as zn } from "./vendor-vueuse-components-BTQXlUpM.js";
17
17
  import { p as Dt } from "./vendor-dompurify-DpIUMBYC.js";
18
- import { S as Ie, h as qn, T as Un } from "./vendor-date-fns-C-55OMpS.js";
18
+ import { S as Se, h as qn, T as Un } from "./vendor-date-fns-C-55OMpS.js";
19
19
  import { t as Kn } from "./vendor-truncate-html-ChA1T5zy.js";
20
- const we = Rn({
20
+ const $e = Rn({
21
21
  legacy: !1,
22
22
  globalInjection: !0,
23
23
  locale: "en",
@@ -27,9 +27,9 @@ const we = Rn({
27
27
  function ot() {
28
28
  return Math.random().toString(36).substring(2, 9);
29
29
  }
30
- class se extends Error {
30
+ class ie extends Error {
31
31
  constructor(t, n, a) {
32
- super(t), this.code = n, this.context = a, this.name = "FrameworkError", Error.captureStackTrace && Error.captureStackTrace(this, se);
32
+ super(t), this.code = n, this.context = a, this.name = "FrameworkError", Error.captureStackTrace && Error.captureStackTrace(this, ie);
33
33
  }
34
34
  toJSON() {
35
35
  return {
@@ -41,17 +41,17 @@ class se extends Error {
41
41
  };
42
42
  }
43
43
  }
44
- class Fi extends se {
44
+ class Fi extends ie {
45
45
  constructor(t, n) {
46
46
  super(t, "VALIDATION_ERROR", n), this.name = "ValidationError";
47
47
  }
48
48
  }
49
- class zi extends se {
49
+ class zi extends ie {
50
50
  constructor(t, n) {
51
51
  super(t, "SERVICE_ERROR", n), this.name = "ServiceError";
52
52
  }
53
53
  }
54
- class Wn extends se {
54
+ class Wn extends ie {
55
55
  constructor(t, n) {
56
56
  super(`${t} not provided. Make sure to call the corresponding 'provide' function.`, "INJECTION_ERROR", {
57
57
  serviceName: t,
@@ -59,7 +59,7 @@ class Wn extends se {
59
59
  }), this.name = "InjectionError";
60
60
  }
61
61
  }
62
- class qi extends se {
62
+ class qi extends ie {
63
63
  constructor(t, n, a) {
64
64
  super(`Failed to register '${t}': ${n}`, "REGISTRATION_ERROR", {
65
65
  componentName: t,
@@ -67,7 +67,7 @@ class qi extends se {
67
67
  }), this.name = "RegistrationError";
68
68
  }
69
69
  }
70
- class Ui extends se {
70
+ class Ui extends ie {
71
71
  constructor(t, n, a) {
72
72
  super(t, "BLADE_ERROR", {
73
73
  bladeId: n,
@@ -75,7 +75,7 @@ class Ui extends se {
75
75
  }), this.name = "BladeError";
76
76
  }
77
77
  }
78
- class Ki extends se {
78
+ class Ki extends ie {
79
79
  constructor(t, n, a) {
80
80
  super(`Failed to load module '${t}': ${n}`, "MODULE_LOAD_ERROR", {
81
81
  moduleId: t,
@@ -84,15 +84,15 @@ class Ki extends se {
84
84
  }
85
85
  }
86
86
  function jn(e) {
87
- return e instanceof se;
87
+ return e instanceof ie;
88
88
  }
89
89
  function Wi(e, t = "UNKNOWN_ERROR") {
90
- return jn(e) ? e : e instanceof Error ? new se(e.message, t, {
90
+ return jn(e) ? e : e instanceof Error ? new ie(e.message, t, {
91
91
  originalError: e.name,
92
92
  stack: e.stack
93
- }) : new se(String(e), t);
93
+ }) : new ie(String(e), t);
94
94
  }
95
- class he extends Error {
95
+ class ye extends Error {
96
96
  details;
97
97
  originalError;
98
98
  constructor(t, n, a) {
@@ -103,7 +103,7 @@ function Hn(e) {
103
103
  return e instanceof Error && typeof e.status == "number" && typeof e.response == "string";
104
104
  }
105
105
  function qe(e) {
106
- if (e instanceof he)
106
+ if (e instanceof ye)
107
107
  return e;
108
108
  if (Hn(e)) {
109
109
  const { status: t, response: n } = e;
@@ -111,32 +111,32 @@ function qe(e) {
111
111
  return qe(JSON.parse(n));
112
112
  } catch {
113
113
  const a = `${t}: ${e.message || "Error"}`;
114
- return new he(a, n || e.message, e);
114
+ return new ye(a, n || e.message, e);
115
115
  }
116
116
  }
117
117
  if (e instanceof Error && "response" in e && e.response)
118
118
  return qe(e.response);
119
119
  if (e instanceof Error)
120
- return new he(e.message, e.stack || String(e), e);
120
+ return new ye(e.message, e.stack || String(e), e);
121
121
  if (typeof e == "string")
122
122
  try {
123
123
  const t = JSON.parse(e);
124
124
  return qe(t);
125
125
  } catch {
126
- return new he(e, e, e);
126
+ return new ye(e, e, e);
127
127
  }
128
128
  if (typeof e == "object" && e !== null) {
129
129
  const t = e;
130
130
  if ("status" in t && "data" in t) {
131
- const o = t.status, i = t.statusText || "Error", l = `${o}: ${i}`, r = t.data;
131
+ const o = t.status, i = t.statusText || "Error", l = `${o}: ${i}`, s = t.data;
132
132
  let u = "";
133
- return r ? typeof r.exceptionMessage == "string" ? u = r.exceptionMessage : typeof r.message == "string" ? u = r.message : Array.isArray(r.errors) ? u = r.errors.join(`
134
- `) : typeof r == "string" ? u = r : u = JSON.stringify(r, null, 2) : u = JSON.stringify(t, null, 2), new he(l, u, e);
133
+ return s ? typeof s.exceptionMessage == "string" ? u = s.exceptionMessage : typeof s.message == "string" ? u = s.message : Array.isArray(s.errors) ? u = s.errors.join(`
134
+ `) : typeof s == "string" ? u = s : u = JSON.stringify(s, null, 2) : u = JSON.stringify(t, null, 2), new ye(l, u, e);
135
135
  }
136
136
  const n = t.message || "An unexpected error occurred.", a = t.stack || JSON.stringify(t, null, 2);
137
- return new he(n, a, e);
137
+ return new ye(n, a, e);
138
138
  }
139
- return new he("An unknown error occurred.", String(e), e);
139
+ return new ye("An unknown error occurred.", String(e), e);
140
140
  }
141
141
  const Gn = [
142
142
  ["LLLL", "PPPp"],
@@ -163,18 +163,18 @@ function Jn(e) {
163
163
  t = t.replace(n, a);
164
164
  return t;
165
165
  }
166
- const ve = /* @__PURE__ */ new Map();
167
- ve.set("en-US", Ie);
168
- ve.set("en", Ie);
166
+ const fe = /* @__PURE__ */ new Map();
167
+ fe.set("en-US", Se);
168
+ fe.set("en", Se);
169
169
  async function Xn(e) {
170
- if (ve.has(e))
171
- return ve.get(e);
170
+ if (fe.has(e))
171
+ return fe.get(e);
172
172
  try {
173
173
  const t = await import(
174
174
  /* @vite-ignore */
175
175
  `date-fns/locale/${e}`
176
- ), n = e.replace("-", ""), a = t.default ?? t[n] ?? Ie;
177
- return ve.set(e, a), a;
176
+ ), n = e.replace("-", ""), a = t.default ?? t[n] ?? Se;
177
+ return fe.set(e, a), a;
178
178
  } catch {
179
179
  const t = e.split("-")[0];
180
180
  if (t !== e)
@@ -182,15 +182,15 @@ async function Xn(e) {
182
182
  const n = await import(
183
183
  /* @vite-ignore */
184
184
  `date-fns/locale/${t}`
185
- ), a = n.default ?? n[t] ?? Ie;
186
- return ve.set(e, a), a;
185
+ ), a = n.default ?? n[t] ?? Se;
186
+ return fe.set(e, a), a;
187
187
  } catch {
188
188
  }
189
- return ve.set(e, Ie), Ie;
189
+ return fe.set(e, Se), Se;
190
190
  }
191
191
  }
192
192
  function Vt(e) {
193
- return ve.has(e) ? ve.get(e) : (Xn(e), Ie);
193
+ return fe.has(e) ? fe.get(e) : (Xn(e), Se);
194
194
  }
195
195
  function Pt(e) {
196
196
  if (e == null || e === "") return null;
@@ -210,7 +210,7 @@ function Qn(e, t, n) {
210
210
  const o = Jn(t), i = n ? Vt(n) : void 0;
211
211
  return qn(a, o, { locale: i });
212
212
  }
213
- const _n = me("color-utils");
213
+ const _n = ge("color-utils");
214
214
  function ea(e) {
215
215
  if (!e || typeof e != "string")
216
216
  return null;
@@ -237,8 +237,8 @@ function na(e, t) {
237
237
  const n = e.lastIndexOf("/"), a = e.indexOf("?", n), i = (a > -1 ? e.slice(n + 1, a) : e.slice(n + 1)).lastIndexOf(".");
238
238
  if (i <= 0)
239
239
  return e;
240
- const l = n + 1 + i, r = e.slice(0, l), u = e.slice(l);
241
- return `${r}_${t}${u}`;
240
+ const l = n + 1 + i, s = e.slice(0, l), u = e.slice(l);
241
+ return `${s}_${t}${u}`;
242
242
  }
243
243
  function ji(e) {
244
244
  return e <= 64 ? "64x64" : e <= 128 ? "128x128" : e <= 168 ? "168x168" : e <= 216 ? "216x216" : e <= 348 ? "348x348" : "lg";
@@ -306,17 +306,17 @@ function la() {
306
306
  hasAccess: t
307
307
  };
308
308
  }
309
- const Se = me("notification"), be = aa();
309
+ const ke = ge("notification"), pe = aa();
310
310
  function oa(e) {
311
- be.register(e);
311
+ pe.register(e);
312
312
  }
313
313
  function Fe(e, t) {
314
- const n = be.get();
314
+ const n = pe.get();
315
315
  if (!n) {
316
- Se.debug("Backend not yet registered — notification call ignored.");
316
+ ke.debug("Backend not yet registered — notification call ignored.");
317
317
  return;
318
318
  }
319
- return t = ne(
319
+ return t = ee(
320
320
  n.defaultOptions,
321
321
  t
322
322
  ), (!t.notificationId || typeof t.notificationId != "string" && typeof t.notificationId != "number") && (t.notificationId = ot()), t = {
@@ -324,22 +324,22 @@ function Fe(e, t) {
324
324
  content: e
325
325
  }, n.appendInstance(t), t.notificationId;
326
326
  }
327
- const ce = (e, t) => Fe(e, { ...t, type: "default" });
328
- ce.error = (e, t) => Fe(e, { ...t, type: "error" });
329
- ce.warning = (e, t) => Fe(e, { ...t, type: "warning" });
330
- ce.success = (e, t) => Fe(e, { ...t, type: "success" });
331
- ce.clearAll = () => {
332
- be.get()?.actions.clear();
327
+ const ue = (e, t) => Fe(e, { ...t, type: "default" });
328
+ ue.error = (e, t) => Fe(e, { ...t, type: "error" });
329
+ ue.warning = (e, t) => Fe(e, { ...t, type: "warning" });
330
+ ue.success = (e, t) => Fe(e, { ...t, type: "success" });
331
+ ue.clearAll = () => {
332
+ pe.get()?.actions.clear();
333
333
  };
334
- ce.remove = (e) => {
335
- const t = be.get();
334
+ ue.remove = (e) => {
335
+ const t = pe.get();
336
336
  t && (e ? t.actions.dismiss(e) : t.actions.clear());
337
337
  };
338
- ce.update = (e, t) => {
339
- const n = be.get();
338
+ ue.update = (e, t) => {
339
+ const n = pe.get();
340
340
  if (!n) return e;
341
341
  if (!n.hasNotification(e))
342
- return Se.warn(`Cannot update: notification with ID ${e} not found`), e;
342
+ return ke.warn(`Cannot update: notification with ID ${e} not found`), e;
343
343
  const a = n.getNotification(String(e));
344
344
  if (a)
345
345
  if (t.position && t.position !== a.position) {
@@ -362,25 +362,25 @@ ce.update = (e, t) => {
362
362
  }
363
363
  return e;
364
364
  };
365
- ce.setPosition = (e) => {
366
- const t = be.get();
365
+ ue.setPosition = (e) => {
366
+ const t = pe.get();
367
367
  t && (t.defaultOptions.position = e);
368
368
  };
369
- ce.clearPosition = (e) => {
370
- const t = be.get();
369
+ ue.clearPosition = (e) => {
370
+ const t = pe.get();
371
371
  if (!t) return;
372
372
  t.getAllNotifications().filter((a) => (a.position || t.defaultOptions.position) === e).forEach((a) => {
373
373
  a.notificationId && t.actions.dismiss(a.notificationId);
374
374
  });
375
375
  };
376
- ce.debug = () => {
377
- const e = be.get();
376
+ ue.debug = () => {
377
+ const e = pe.get();
378
378
  if (!e)
379
- return Se.debug("Backend not registered"), { active: [], defaultOptions: {} };
379
+ return ke.debug("Backend not registered"), { active: [], defaultOptions: {} };
380
380
  Object.entries(e.defaultOptions).forEach(([n, a]) => {
381
- Se.debug(`Default option ${n}: `, a);
381
+ ke.debug(`Default option ${n}: `, a);
382
382
  }), Object.entries(e.actions).forEach(([n]) => {
383
- Se.debug(`Available action: ${n}`);
383
+ ke.debug(`Available action: ${n}`);
384
384
  });
385
385
  const t = e.getAllNotifications().reduce((n, a) => {
386
386
  const o = a.position || e.defaultOptions.position;
@@ -391,7 +391,7 @@ ce.debug = () => {
391
391
  }), n;
392
392
  }, {});
393
393
  return Object.entries(t).forEach(([n, a]) => {
394
- Se.debug(`Position ${n}: ${a.length} notifications`), a.forEach((o) => Se.debug(` - ${o.id} (${o.type}): ${o.content}`));
394
+ ke.debug(`Position ${n}: ${a.length} notifications`), a.forEach((o) => ke.debug(` - ${o.id} (${o.type}): ${o.content}`));
395
395
  }), {
396
396
  active: e.getAllNotifications(),
397
397
  defaultOptions: e.defaultOptions
@@ -399,17 +399,17 @@ ce.debug = () => {
399
399
  };
400
400
  const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
401
401
  __proto__: null,
402
- notification: ce,
402
+ notification: ue,
403
403
  setNotificationBackend: oa
404
404
  }, Symbol.toStringTag, { value: "Module" }));
405
405
  function ra(e, t, n = {}) {
406
- const a = I(() => ye(n.placement) ?? "bottom"), o = I(() => ye(n.strategy) ?? "absolute"), i = I(() => {
407
- const u = ye(n.middleware);
406
+ const a = $(() => be(n.placement) ?? "bottom"), o = $(() => be(n.strategy) ?? "absolute"), i = $(() => {
407
+ const u = be(n.middleware);
408
408
  if (u?.length)
409
409
  return u;
410
410
  const v = [];
411
- ye(n.enableFlip) !== !1 && v.push(At({ padding: n.shiftPadding ?? 8 })), ye(n.enableShift) !== !1 && v.push(Nt({ padding: n.shiftPadding ?? 8 }));
412
- const m = ye(n.offset);
411
+ be(n.enableFlip) !== !1 && v.push(At({ padding: n.shiftPadding ?? 8 })), be(n.enableShift) !== !1 && v.push(Nt({ padding: n.shiftPadding ?? 8 }));
412
+ const m = be(n.offset);
413
413
  return typeof m == "number" ? v.push(lt(m)) : v.push(
414
414
  lt({
415
415
  mainAxis: m?.mainAxis ?? 0,
@@ -420,23 +420,23 @@ function ra(e, t, n = {}) {
420
420
  }), l = Pn(e, t, {
421
421
  placement: a,
422
422
  strategy: o,
423
- whileElementsMounted: ye(n.autoUpdate) === !1 ? void 0 : Fn,
423
+ whileElementsMounted: be(n.autoUpdate) === !1 ? void 0 : Fn,
424
424
  middleware: i
425
- }), r = I(() => ({
425
+ }), s = $(() => ({
426
426
  position: o.value,
427
427
  top: `${l.y.value ?? 0}px`,
428
428
  left: `${l.x.value ?? 0}px`
429
429
  }));
430
430
  return {
431
431
  ...l,
432
- floatingStyle: r,
432
+ floatingStyle: s,
433
433
  resolvedPlacement: a,
434
434
  resolvedStrategy: o
435
435
  };
436
436
  }
437
437
  const sa = Symbol("vc-input-group-context");
438
438
  function He(e) {
439
- const t = J(sa, null), n = ln(), a = I(() => `vc-field-${n}`), o = I(() => `${a.value}-label`), i = I(() => `${a.value}-error`), l = I(() => `${a.value}-hint`), r = I(() => !!e.error || !!e.errorMessage || !!t?.invalid.value), u = I(() => !!e.disabled || !!t?.disabled.value), v = I(() => t?.name.value || e.name), m = I(() => e.required ? !0 : void 0), g = I(() => {
439
+ const t = Y(sa, null), n = ln(), a = $(() => `vc-field-${n}`), o = $(() => `${a.value}-label`), i = $(() => `${a.value}-error`), l = $(() => `${a.value}-hint`), s = $(() => !!e.error || !!e.errorMessage || !!t?.invalid.value), u = $(() => !!e.disabled || !!t?.disabled.value), v = $(() => t?.name.value || e.name), m = $(() => e.required ? !0 : void 0), g = $(() => {
440
440
  const d = /* @__PURE__ */ new Set();
441
441
  return t?.describedBy.value && t.describedBy.value.split(/\s+/).forEach((c) => d.add(c)), e.errorMessage && d.add(i.value), e.hint && d.add(l.value), d.size ? Array.from(d).join(" ") : void 0;
442
442
  });
@@ -445,7 +445,7 @@ function He(e) {
445
445
  labelId: o,
446
446
  errorId: i,
447
447
  hintId: l,
448
- invalid: r,
448
+ invalid: s,
449
449
  resolvedDisabled: u,
450
450
  resolvedName: v,
451
451
  ariaRequired: m,
@@ -468,7 +468,7 @@ function ua(e, t = {}) {
468
468
  }
469
469
  a.value = v.scrollTop > 0, o.value = !Ft(v);
470
470
  }
471
- function r(v) {
471
+ function s(v) {
472
472
  u();
473
473
  const m = e.value;
474
474
  if (!m) return;
@@ -485,21 +485,21 @@ function ua(e, t = {}) {
485
485
  }), {
486
486
  canScrollUp: a,
487
487
  canScrollDown: o,
488
- startScroll: r,
488
+ startScroll: s,
489
489
  stopScroll: u,
490
490
  updateScrollState: l
491
491
  };
492
492
  }
493
- function Ee() {
494
- return J(vn, S(!1));
493
+ function Oe() {
494
+ return Y(vn, S(!1));
495
495
  }
496
496
  Object.keys(kt).forEach((e) => {
497
- Ce(e, kt[e]);
497
+ Be(e, kt[e]);
498
498
  });
499
499
  const ca = (e, [t, n]) => {
500
500
  if (!e?.files || !e.files?.length)
501
501
  return !0;
502
- const a = (l, r, u) => {
502
+ const a = (l, s, u) => {
503
503
  const v = window.URL || window.webkitURL;
504
504
  return new Promise((m) => {
505
505
  const g = new Image(), d = v.createObjectURL(l);
@@ -507,49 +507,49 @@ const ca = (e, [t, n]) => {
507
507
  v.revokeObjectURL(d), m(!1);
508
508
  }, g.onload = () => {
509
509
  v.revokeObjectURL(d);
510
- const c = g.width >= Number(r) && g.height >= Number(u);
511
- m(c ? !0 : we.global.t("messages.min_dimensions.error", { width: r, height: u }));
510
+ const c = g.width >= Number(s) && g.height >= Number(u);
511
+ m(c ? !0 : $e.global.t("messages.min_dimensions.error", { width: s, height: u }));
512
512
  }, g.src = d;
513
513
  });
514
514
  }, o = [], i = e.files;
515
515
  for (let l = 0; l < i.length; l++) {
516
516
  if (!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(i[l].name))
517
- return Promise.resolve(we.global.t("messages.min_dimensions.not_image_error"));
517
+ return Promise.resolve($e.global.t("messages.min_dimensions.not_image_error"));
518
518
  o.push(i[l]);
519
519
  }
520
520
  return Promise.all(o.map((l) => a(l, t, n))).then((l) => {
521
- const r = l.find((u) => u !== !0);
522
- return r === !1 || typeof r == "string" ? r : !0;
521
+ const s = l.find((u) => u !== !0);
522
+ return s === !1 || typeof s == "string" ? s : !0;
523
523
  });
524
524
  };
525
- Ce("mindimensions", ca);
525
+ Be("mindimensions", ca);
526
526
  const da = (e, [t]) => {
527
527
  if (!e?.files || !e.files?.length)
528
528
  return !0;
529
- const n = t * 1e3, a = (r) => r.size > n, o = [];
530
- for (let r = 0; r < e.files.length; r++)
531
- o.push(e.files[r]);
532
- return o.map((r) => a(r)).find((r) => r === !0) ? we.global.t("messages.file_weight", { size: t }) : !0;
529
+ const n = t * 1e3, a = (s) => s.size > n, o = [];
530
+ for (let s = 0; s < e.files.length; s++)
531
+ o.push(e.files[s]);
532
+ return o.map((s) => a(s)).find((s) => s === !0) ? $e.global.t("messages.file_weight", { size: t }) : !0;
533
533
  };
534
- Ce("fileWeight", da);
534
+ Be("fileWeight", da);
535
535
  const zt = (e, [t], n, a) => {
536
536
  if (!e || typeof e == "string" && !e.length)
537
537
  return !0;
538
538
  let o, i;
539
539
  return e instanceof Date && (o = e), t instanceof Date && (i = t), typeof e == "string" && (o = new Date(e)), typeof t == "string" && (i = new Date(t)), o?.getTime && o?.getTime() > 0 && i?.getTime && i?.getTime() > 0 && n(i.getTime(), o.getTime()) ? a : !0;
540
- }, fa = (e, [t]) => zt(e, [t], (n, a) => n < a, we.global.t("messages.before"));
541
- Ce("before", fa);
542
- const va = (e, [t]) => zt(e, [t], (n, a) => n > a, we.global.t("messages.after"));
543
- Ce("after", va);
544
- const ga = (e) => Number.isSafeInteger(parseInt(e)) ? !0 : we.global.t("messages.bigint");
545
- Ce("bigint", ga);
546
- function xe(e) {
547
- const t = me(`${e.name}-bus`), n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
540
+ }, fa = (e, [t]) => zt(e, [t], (n, a) => n < a, $e.global.t("messages.before"));
541
+ Be("before", fa);
542
+ const va = (e, [t]) => zt(e, [t], (n, a) => n > a, $e.global.t("messages.after"));
543
+ Be("after", va);
544
+ const ga = (e) => Number.isSafeInteger(parseInt(e)) ? !0 : $e.global.t("messages.bigint");
545
+ Be("bigint", ga);
546
+ function Ce(e) {
547
+ const t = ge(`${e.name}-bus`), n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
548
548
  function o(d) {
549
549
  const c = e.getKey(d);
550
- n.set(c, d), a.size > 0 && m((p) => {
550
+ n.set(c, d), a.size > 0 && m((b) => {
551
551
  try {
552
- e.registerIntoService(p, d);
552
+ e.registerIntoService(b, d);
553
553
  } catch (h) {
554
554
  t.warn(`Failed to live-register item (key=${c}):`, h);
555
555
  }
@@ -559,24 +559,24 @@ function xe(e) {
559
559
  n.delete(d), e.unregisterFromService && a.size > 0 && a.forEach((c) => {
560
560
  try {
561
561
  e.unregisterFromService(c, d);
562
- } catch (p) {
563
- t.warn(`Failed to live-unregister item (id=${d}):`, p);
562
+ } catch (b) {
563
+ t.warn(`Failed to live-unregister item (id=${d}):`, b);
564
564
  }
565
565
  });
566
566
  }
567
567
  function l(d) {
568
- for (const [c, p] of n)
569
- d(p) && n.delete(c);
568
+ for (const [c, b] of n)
569
+ d(b) && n.delete(c);
570
570
  }
571
- function r() {
571
+ function s() {
572
572
  return Array.from(n.values());
573
573
  }
574
574
  function u(d) {
575
- a.add(d), n.forEach((c, p) => {
575
+ a.add(d), n.forEach((c, b) => {
576
576
  try {
577
577
  e.registerIntoService(d, c);
578
578
  } catch (h) {
579
- t.warn(`Failed to replay item (key=${p}):`, h);
579
+ t.warn(`Failed to replay item (key=${b}):`, h);
580
580
  }
581
581
  });
582
582
  }
@@ -593,7 +593,7 @@ function xe(e) {
593
593
  preregister: o,
594
594
  unregister: i,
595
595
  removePreregistered: l,
596
- getPreregistered: r,
596
+ getPreregistered: s,
597
597
  replayInto: u,
598
598
  dispose: v,
599
599
  broadcast: m,
@@ -617,27 +617,27 @@ function qt(e) {
617
617
  a.set(d, c - 1);
618
618
  }
619
619
  function l(d, c) {
620
- const p = c.toLowerCase();
621
- t[p] || (t[p] = []);
622
- const h = t[p].find((b) => b.id === d.id);
620
+ const b = c.toLowerCase();
621
+ t[b] || (t[b] = []);
622
+ const h = t[b].find((p) => p.id === d.id);
623
623
  if (h) {
624
- Object.assign(h, d, { bladeId: p });
624
+ Object.assign(h, d, { bladeId: b });
625
625
  return;
626
626
  }
627
- const E = { ...d, bladeId: p };
628
- t[p].push(E), n.push(e.createRegistration(p, E)), o(d.id);
627
+ const E = { ...d, bladeId: b };
628
+ t[b].push(E), n.push(e.createRegistration(b, E)), o(d.id);
629
629
  }
630
- function r(d, c) {
631
- const p = c.toLowerCase(), h = t[p];
630
+ function s(d, c) {
631
+ const b = c.toLowerCase(), h = t[b];
632
632
  if (h) {
633
- const b = h.findIndex((O) => O.id === d);
634
- if (b !== -1) {
635
- const [O] = h.splice(b, 1);
636
- O && i(O.id);
633
+ const p = h.findIndex((I) => I.id === d);
634
+ if (p !== -1) {
635
+ const [I] = h.splice(p, 1);
636
+ I && i(I.id);
637
637
  }
638
638
  }
639
639
  const E = n.findIndex(
640
- (b) => e.getRegistrationBladeId(b) === p && e.getRegistrationItemId(b) === d
640
+ (p) => e.getRegistrationBladeId(p) === b && e.getRegistrationItemId(p) === d
641
641
  );
642
642
  E !== -1 && n.splice(E, 1);
643
643
  }
@@ -646,14 +646,14 @@ function qt(e) {
646
646
  return [...t[c] || []];
647
647
  }
648
648
  function v(d) {
649
- const c = d.toLowerCase(), p = t[c];
650
- p && (p.forEach((E) => i(E.id)), delete t[c]), n.map((E, b) => e.getRegistrationBladeId(E) === c ? b : -1).filter((E) => E !== -1).reverse().forEach((E) => {
649
+ const c = d.toLowerCase(), b = t[c];
650
+ b && (b.forEach((E) => i(E.id)), delete t[c]), n.map((E, p) => e.getRegistrationBladeId(E) === c ? p : -1).filter((E) => E !== -1).reverse().forEach((E) => {
651
651
  n.splice(E, 1);
652
652
  });
653
653
  }
654
- function m(d, c, p) {
655
- const h = c.toLowerCase(), E = t[h]?.find((b) => b.id === d);
656
- E && Object.assign(E, p, { bladeId: h });
654
+ function m(d, c, b) {
655
+ const h = c.toLowerCase(), E = t[h]?.find((p) => p.id === d);
656
+ E && Object.assign(E, b, { bladeId: h });
657
657
  }
658
658
  function g(d) {
659
659
  return a.has(d);
@@ -662,7 +662,7 @@ function qt(e) {
662
662
  registry: t,
663
663
  registrations: n,
664
664
  register: l,
665
- unregister: r,
665
+ unregister: s,
666
666
  get: u,
667
667
  clear: v,
668
668
  update: m,
@@ -670,10 +670,10 @@ function qt(e) {
670
670
  };
671
671
  }
672
672
  function ma(e) {
673
- const t = S(/* @__PURE__ */ new Map()), n = I(() => Array.from(t.value.values()).sort((i, l) => (i.order ?? 0) - (l.order ?? 0)));
673
+ const t = S(/* @__PURE__ */ new Map()), n = $(() => Array.from(t.value.values()).sort((i, l) => (i.order ?? 0) - (l.order ?? 0)));
674
674
  function a(i) {
675
- const l = e.getId(i) || crypto.randomUUID(), r = e.createItem(i, t.value.size);
676
- return t.value.set(l, { ...r, id: l }), l;
675
+ const l = e.getId(i) || crypto.randomUUID(), s = e.createItem(i, t.value.size);
676
+ return t.value.set(l, { ...s, id: l }), l;
677
677
  }
678
678
  function o(i) {
679
679
  t.value.delete(i);
@@ -699,33 +699,33 @@ function Ut(e) {
699
699
  function Ke(e) {
700
700
  return e.id !== void 0 ? `id:${String(e.id)}` : e.routeId ? `route:${e.routeId}` : e.url ? `url:${e.url}` : e.groupConfig?.id ? `gc:${e.groupConfig.id}:${e.title}` : e.group ? `g:${e.group}:${e.title}` : `hash:${JSON.stringify(Rt(e, "title"))}`;
701
701
  }
702
- const ze = S(/* @__PURE__ */ new Map()), ge = xe({
702
+ const ze = S(/* @__PURE__ */ new Map()), ve = Ce({
703
703
  name: "menu-service",
704
704
  getKey: Ke,
705
705
  registerIntoService: (e, t) => e.addMenuItem(t)
706
706
  });
707
707
  function Gi(e) {
708
- ge.preregister(e);
708
+ ve.preregister(e);
709
709
  }
710
710
  function Yi(e) {
711
- ge.removePreregistered((t) => ft(t, e)), ge.broadcast((t) => t.removeMenuItem(e));
711
+ ve.removePreregistered((t) => ft(t, e)), ve.broadcast((t) => t.removeMenuItem(e));
712
712
  }
713
713
  function Ji(e, t) {
714
- ze.value.set(e, t), ge.broadcast((n) => {
714
+ ze.value.set(e, t), ve.broadcast((n) => {
715
715
  n.menuBadges.value.set(e, t);
716
716
  });
717
717
  }
718
718
  function Xi(e) {
719
- const t = ge.getFirstInstance();
719
+ const t = ve.getFirstInstance();
720
720
  return t ? t.menuBadges.value.get(e) : ze.value.get(e);
721
721
  }
722
722
  function Zi(e) {
723
- ze.value.delete(e), ge.broadcast((t) => {
723
+ ze.value.delete(e), ve.broadcast((t) => {
724
724
  t.menuBadges.value.delete(e);
725
725
  });
726
726
  }
727
727
  function Qi() {
728
- return ge.getFirstInstance()?.menuBadges ?? ze;
728
+ return ve.getFirstInstance()?.menuBadges ?? ze;
729
729
  }
730
730
  const it = 1 / 0, pa = 1 / 0;
731
731
  function ft(e, t) {
@@ -758,7 +758,7 @@ function ka(e, t) {
758
758
  ...Rt(e, ["group", "groupIcon", "groupPriority", "groupConfig"])
759
759
  }, o = t.get(n.groupId);
760
760
  if (o) {
761
- const i = [...o.children ?? []], l = i.findIndex((r) => ft(r, a));
761
+ const i = [...o.children ?? []], l = i.findIndex((s) => ft(s, a));
762
762
  l > -1 ? i[l] = a : i.push(a), t.set(n.groupId, {
763
763
  ...o,
764
764
  children: i,
@@ -799,8 +799,8 @@ function Ia() {
799
799
  t.push(l), e.value = It(t);
800
800
  }
801
801
  function o(l) {
802
- const r = t.length;
803
- t = t.filter((u) => !ft(u, l)), t.length !== r && (e.value = It(t));
802
+ const s = t.length;
803
+ t = t.filter((u) => !ft(u, l)), t.length !== s && (e.value = It(t));
804
804
  }
805
805
  const i = {
806
806
  addMenuItem: a,
@@ -808,32 +808,32 @@ function Ia() {
808
808
  removeMenuItem: o,
809
809
  menuBadges: n
810
810
  };
811
- return ge.replayInto(i), i;
811
+ return ve.replayInto(i), i;
812
812
  }
813
813
  function Ge(e) {
814
814
  const { key: t, create: n, bus: a, name: o, onMissing: i } = e;
815
815
  function l() {
816
- const u = J(t, null);
816
+ const u = Y(t, null);
817
817
  if (u)
818
818
  return u;
819
819
  const v = n();
820
820
  return Et(t, v), on() && rn(() => a.dispose(v)), v;
821
821
  }
822
- function r() {
823
- const u = J(t, null);
822
+ function s() {
823
+ const u = Y(t, null);
824
824
  if (!u)
825
825
  throw i?.(), new Wn(o);
826
826
  return u;
827
827
  }
828
828
  return {
829
829
  provide: l,
830
- use: r
830
+ use: s
831
831
  };
832
832
  }
833
- const $a = me("use-menu-service"), Kt = Ge({
833
+ const $a = ge("use-menu-service"), Kt = Ge({
834
834
  key: gn,
835
835
  create: Ia,
836
- bus: ge,
836
+ bus: ve,
837
837
  name: "MenuService",
838
838
  onMissing: () => $a.error("Menu service not found in current context. Injection chain:", We())
839
839
  });
@@ -845,16 +845,16 @@ function er() {
845
845
  }
846
846
  function Ye() {
847
847
  return {
848
- isMobile: J(hn, S(!1)),
849
- isDesktop: J(yn, S(!0)),
850
- isPhone: J(bn, S(!1)),
851
- isTablet: J(pn, S(!1)),
852
- isTouch: J(mn, !1)
848
+ isMobile: Y(hn, S(!1)),
849
+ isDesktop: Y(yn, S(!0)),
850
+ isPhone: Y(bn, S(!1)),
851
+ isTablet: Y(pn, S(!1)),
852
+ isTouch: Y(mn, !1)
853
853
  };
854
854
  }
855
855
  const wa = Symbol("AppInsightsOptions"), Oa = Symbol("AppInsightsInstance");
856
856
  function Ea() {
857
- const e = J(Oa, null), { user: t } = dt(), n = J(wa, void 0);
857
+ const e = Y(Oa, null), { user: t } = dt(), n = Y(wa, void 0);
858
858
  function a() {
859
859
  const o = n?.appName ? `[${n.appName}] ` : "", i = (u) => `${o}${u.name}`;
860
860
  function l(u) {
@@ -862,7 +862,7 @@ function Ea() {
862
862
  const v = i(u);
863
863
  e.context.telemetryTrace.traceID = Bn(), e.context.telemetryTrace.name = u.name, e.startTrackPage(v);
864
864
  }
865
- function r(u) {
865
+ function s(u) {
866
866
  if (!e) return;
867
867
  const v = i(u), m = location.protocol + "//" + location.host + u.fullPath;
868
868
  e.stopTrackPage(v, m, {
@@ -872,7 +872,7 @@ function Ea() {
872
872
  }
873
873
  return {
874
874
  beforeEach: l,
875
- afterEach: r
875
+ afterEach: s
876
876
  };
877
877
  }
878
878
  return {
@@ -880,24 +880,24 @@ function Ea() {
880
880
  appInsights: e
881
881
  };
882
882
  }
883
- const La = me("use-error-handler");
883
+ const La = ge("use-error-handler");
884
884
  function Ba(e) {
885
885
  const t = S(null), n = We(), { appInsights: a } = Ea(), { user: o } = dt(), i = S(!1);
886
886
  function l() {
887
887
  t.value = null, n && n.emit("reset");
888
888
  }
889
- return sn((r) => {
889
+ return sn((s) => {
890
890
  if (i.value)
891
891
  return !e;
892
892
  i.value = !0;
893
- const u = qe(r);
893
+ const u = qe(s);
894
894
  return t.value = u, a && a.trackException({
895
895
  exception: u,
896
896
  properties: {
897
897
  userId: o.value?.id ?? "",
898
898
  userName: o.value?.userName ?? ""
899
899
  }
900
- }), La.error("Captured Error:", u.originalError), n && n.emit("error", u), $e(() => {
900
+ }), La.error("Captured Error:", u.originalError), n && n.emit("error", u), Ie(() => {
901
901
  i.value = !1;
902
902
  }), !e;
903
903
  }), {
@@ -919,7 +919,7 @@ function Ca(e) {
919
919
  }
920
920
  return !1;
921
921
  }
922
- const nr = F({
922
+ const nr = z({
923
923
  name: "ErrorInterceptor",
924
924
  props: {
925
925
  capture: {
@@ -936,13 +936,13 @@ const nr = F({
936
936
  }
937
937
  },
938
938
  setup(e, { slots: t }) {
939
- const n = J(Ct, void 0), a = J(kn, void 0), o = !!(n && a), { error: i, reset: l } = Ba(o || e.capture);
940
- return o && G(i, (r) => {
939
+ const n = Y(Ct, void 0), a = Y(kn, void 0), o = !!(n && a), { error: i, reset: l } = Ba(o || e.capture);
940
+ return o && j(i, (s) => {
941
941
  const u = n.value.id;
942
- if (r) {
943
- if (Ca(r), Sn())
942
+ if (s) {
943
+ if (Ca(s), Sn())
944
944
  return;
945
- a.setBladeError(u, r);
945
+ a.setBladeError(u, s);
946
946
  } else
947
947
  a.clearBladeError(u);
948
948
  }), () => t.default?.({
@@ -953,7 +953,7 @@ const nr = F({
953
953
  }), xa = Symbol("vc-button-group"), Ta = ["type", "disabled", "aria-disabled", "aria-label", "aria-busy", "aria-pressed"], Ra = {
954
954
  key: 2,
955
955
  class: "vc-button__title"
956
- }, Ma = /* @__PURE__ */ F({
956
+ }, Ma = /* @__PURE__ */ z({
957
957
  __name: "vc-button",
958
958
  props: {
959
959
  icon: {},
@@ -973,18 +973,18 @@ const nr = F({
973
973
  const n = {
974
974
  base: "default",
975
975
  xs: "sm"
976
- }, a = e, o = Ee(), i = t, l = J(xa, null), r = I(() => {
976
+ }, a = e, o = Oe(), i = t, l = Y(xa, null), s = $(() => {
977
977
  const c = l?.size?.value ?? a.size;
978
978
  return n[c] ?? c;
979
- }), u = S(null), v = I(() => a.disabled || a.loading), m = S(!1);
980
- G(v, (c) => {
979
+ }), u = S(null), v = $(() => a.disabled || a.loading), m = S(!1);
980
+ j(v, (c) => {
981
981
  m.value = c && u.value === document.activeElement;
982
982
  });
983
- const g = I(() => [
983
+ const g = $(() => [
984
984
  "vc-button",
985
985
  {
986
986
  [`vc-button-${a.variant}`]: a.variant,
987
- [`vc-button--${r.value}`]: r.value,
987
+ [`vc-button--${s.value}`]: s.value,
988
988
  "vc-button--selected": a.selected,
989
989
  "vc-button--text": a.text,
990
990
  "vc-button--disabled": v.value,
@@ -994,37 +994,37 @@ const nr = F({
994
994
  function d(c) {
995
995
  c.preventDefault(), !v.value && i("click", c);
996
996
  }
997
- return (c, p) => s(o) ? $("", !0) : (f(), y("button", {
997
+ return (c, b) => r(o) ? w("", !0) : (f(), y("button", {
998
998
  key: 0,
999
999
  ref_key: "buttonRef",
1000
1000
  ref: u,
1001
- class: H(g.value),
1001
+ class: W(g.value),
1002
1002
  type: e.type,
1003
1003
  disabled: v.value && !m.value,
1004
1004
  "aria-disabled": m.value || void 0,
1005
1005
  "aria-label": e.ariaLabel,
1006
1006
  "aria-busy": e.loading || void 0,
1007
1007
  "aria-pressed": e.selected || void 0,
1008
- onBlur: p[0] || (p[0] = (h) => m.value = !1),
1008
+ onBlur: b[0] || (b[0] = (h) => m.value = !1),
1009
1009
  onClick: d
1010
1010
  }, [
1011
- e.loading ? (f(), P(s(K), {
1011
+ e.loading ? (f(), P(r(U), {
1012
1012
  key: 0,
1013
1013
  icon: "lucide-loader-2",
1014
1014
  class: "vc-button__icon tw-animate-spin",
1015
1015
  size: e.iconSize
1016
- }, null, 8, ["size"])) : e.icon ? (f(), P(s(K), {
1016
+ }, null, 8, ["size"])) : e.icon ? (f(), P(r(U), {
1017
1017
  key: 1,
1018
- class: H(["vc-button--icon", e.iconClass]),
1018
+ class: W(["vc-button--icon", e.iconClass]),
1019
1019
  icon: e.icon,
1020
1020
  size: e.iconSize
1021
- }, null, 8, ["class", "icon", "size"])) : $("", !0),
1021
+ }, null, 8, ["class", "icon", "size"])) : w("", !0),
1022
1022
  c.$slots.default ? (f(), y("span", Ra, [
1023
- x(c.$slots, "default")
1024
- ])) : $("", !0)
1023
+ T(c.$slots, "default")
1024
+ ])) : w("", !0)
1025
1025
  ], 42, Ta));
1026
1026
  }
1027
- }), vt = xe({
1027
+ }), vt = Ce({
1028
1028
  name: "toolbar-service",
1029
1029
  getKey: (e) => `${e.bladeId.toLowerCase()}::${e.toolbarItem.id}`,
1030
1030
  registerIntoService: (e, t) => e.registerToolbarItem(t.toolbarItem, t.bladeId)
@@ -1038,33 +1038,33 @@ function ar(e, t) {
1038
1038
  }
1039
1039
  function Wt() {
1040
1040
  const e = qt({
1041
- createRegistration: (r, u) => ({ bladeId: r, toolbarItem: u }),
1042
- getRegistrationBladeId: (r) => r.bladeId,
1043
- getRegistrationItemId: (r) => r.toolbarItem.id
1044
- }), t = (r, u) => {
1045
- e.register(r, u);
1046
- }, n = (r, u) => {
1047
- e.unregister(r, u);
1048
- }, a = (r) => {
1049
- const u = r ? r.toLowerCase() : "", v = e.get(u), m = e.get("*"), g = [...v], d = new Set(g.map((c) => c.id));
1041
+ createRegistration: (s, u) => ({ bladeId: s, toolbarItem: u }),
1042
+ getRegistrationBladeId: (s) => s.bladeId,
1043
+ getRegistrationItemId: (s) => s.toolbarItem.id
1044
+ }), t = (s, u) => {
1045
+ e.register(s, u);
1046
+ }, n = (s, u) => {
1047
+ e.unregister(s, u);
1048
+ }, a = (s) => {
1049
+ const u = s ? s.toLowerCase() : "", v = e.get(u), m = e.get("*"), g = [...v], d = new Set(g.map((c) => c.id));
1050
1050
  return m.forEach((c) => {
1051
1051
  d.has(c.id) || g.push(c);
1052
1052
  }), [...g];
1053
- }, o = (r) => {
1054
- e.clear(r);
1053
+ }, o = (s) => {
1054
+ e.clear(s);
1055
1055
  }, i = ({
1056
- id: r,
1056
+ id: s,
1057
1057
  bladeId: u,
1058
1058
  toolbarItem: v
1059
1059
  }) => {
1060
- e.update(r, u, v);
1060
+ e.update(s, u, v);
1061
1061
  }, l = {
1062
1062
  registerToolbarItem: t,
1063
1063
  unregisterToolbarItem: n,
1064
1064
  getToolbarItems: a,
1065
1065
  clearBladeToolbarItems: o,
1066
1066
  registeredToolbarItems: e.registrations,
1067
- isToolbarItemRegistered: (r) => e.isRegistered(r),
1067
+ isToolbarItemRegistered: (s) => e.isRegistered(s),
1068
1068
  updateToolbarItem: i
1069
1069
  };
1070
1070
  return vt.replayInto(l), l;
@@ -1081,24 +1081,24 @@ function lr() {
1081
1081
  return Na.provide();
1082
1082
  }
1083
1083
  function or(e = {}) {
1084
- const { autoCleanup: t = !0 } = e, n = J(xt, null);
1084
+ const { autoCleanup: t = !0 } = e, n = Y(xt, null);
1085
1085
  !n && !_e && (_e = Wt());
1086
1086
  const a = n || _e;
1087
1087
  if (!a)
1088
1088
  throw new Error("Toolbar service is not available");
1089
- const o = J(Ct, void 0), i = I(() => o?.value?.id ?? Aa), l = (c) => c ?? i.value, r = (c, p) => {
1090
- a.registerToolbarItem(c, l(p));
1091
- }, u = (c, p) => {
1092
- a.unregisterToolbarItem(c, l(p));
1093
- }, v = (c, p, h) => {
1094
- a.updateToolbarItem({ id: c, bladeId: l(h), toolbarItem: p });
1089
+ const o = Y(Ct, void 0), i = $(() => o?.value?.id ?? Aa), l = (c) => c ?? i.value, s = (c, b) => {
1090
+ a.registerToolbarItem(c, l(b));
1091
+ }, u = (c, b) => {
1092
+ a.unregisterToolbarItem(c, l(b));
1093
+ }, v = (c, b, h) => {
1094
+ a.updateToolbarItem({ id: c, bladeId: l(h), toolbarItem: b });
1095
1095
  }, m = (c) => a.getToolbarItems(l(c)), g = (c) => {
1096
1096
  a.clearBladeToolbarItems(l(c));
1097
1097
  };
1098
1098
  return We() && t && rt(() => {
1099
1099
  g();
1100
1100
  }), {
1101
- registerToolbarItem: r,
1101
+ registerToolbarItem: s,
1102
1102
  unregisterToolbarItem: u,
1103
1103
  updateToolbarItem: v,
1104
1104
  getToolbarItems: m,
@@ -1107,7 +1107,7 @@ function or(e = {}) {
1107
1107
  registeredToolbarItems: a.registeredToolbarItems
1108
1108
  };
1109
1109
  }
1110
- const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa = { class: "tw-sr-only" }, oe = /* @__PURE__ */ F({
1110
+ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa = { class: "tw-sr-only" }, ne = /* @__PURE__ */ z({
1111
1111
  __name: "vc-skeleton",
1112
1112
  props: {
1113
1113
  variant: { default: "text" },
@@ -1128,15 +1128,15 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1128
1128
  }
1129
1129
  return (o, i) => e.variant === "text" ? (f(), y("div", {
1130
1130
  key: 0,
1131
- class: H(["vc-skeleton", {
1131
+ class: W(["vc-skeleton", {
1132
1132
  "vc-skeleton--animated": e.animated
1133
1133
  }]),
1134
1134
  role: "status",
1135
1135
  "aria-busy": "true",
1136
1136
  "aria-label": e.ariaLabel
1137
1137
  }, [
1138
- C("span", Va, M(e.ariaLabel), 1),
1139
- (f(!0), y(Be, null, st(e.rows, (l) => (f(), y("div", {
1138
+ x("span", Va, A(e.ariaLabel), 1),
1139
+ (f(!0), y(Le, null, st(e.rows, (l) => (f(), y("div", {
1140
1140
  key: l,
1141
1141
  class: "vc-skeleton__row",
1142
1142
  style: Ve({
@@ -1146,7 +1146,7 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1146
1146
  }, null, 4))), 128))
1147
1147
  ], 10, Da)) : (f(), y("div", {
1148
1148
  key: 1,
1149
- class: H(["vc-skeleton__shape", [`vc-skeleton__shape--${e.variant}`, { "tw-animate-pulse": e.animated }]]),
1149
+ class: W(["vc-skeleton__shape", [`vc-skeleton__shape--${e.variant}`, { "tw-animate-pulse": e.animated }]]),
1150
1150
  style: Ve({
1151
1151
  width: a(e.width),
1152
1152
  height: a(e.height)
@@ -1155,10 +1155,10 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1155
1155
  "aria-busy": "true",
1156
1156
  "aria-label": e.ariaLabel
1157
1157
  }, [
1158
- C("span", Fa, M(e.ariaLabel), 1)
1158
+ x("span", Fa, A(e.ariaLabel), 1)
1159
1159
  ], 14, Pa));
1160
1160
  }
1161
- }), ir = /* @__PURE__ */ F({
1161
+ }), ir = /* @__PURE__ */ z({
1162
1162
  __name: "vc-container",
1163
1163
  props: {
1164
1164
  shadow: { type: Boolean },
@@ -1170,7 +1170,7 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1170
1170
  const a = n, o = S(), i = S(!1), l = () => {
1171
1171
  o.value && o.value.scroll(0, 0);
1172
1172
  };
1173
- function r(u) {
1173
+ function s(u) {
1174
1174
  a("scroll", u);
1175
1175
  }
1176
1176
  return Mt(o, () => {
@@ -1179,7 +1179,7 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1179
1179
  scrollTop: l,
1180
1180
  component: o
1181
1181
  }), (u, v) => (f(), P(ut(e.ariaLabel ? "section" : "div"), {
1182
- class: H([
1182
+ class: W([
1183
1183
  "vc-container",
1184
1184
  {
1185
1185
  "vc-container--shadow": e.shadow && i.value,
@@ -1188,21 +1188,21 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1188
1188
  ]),
1189
1189
  "aria-label": e.ariaLabel
1190
1190
  }, {
1191
- default: w(() => [
1192
- C("div", {
1191
+ default: O(() => [
1192
+ x("div", {
1193
1193
  ref_key: "component",
1194
1194
  ref: o,
1195
1195
  class: "vc-container__inner",
1196
1196
  tabindex: "0",
1197
- onScroll: r
1197
+ onScroll: s
1198
1198
  }, [
1199
- x(u.$slots, "default")
1199
+ T(u.$slots, "default")
1200
1200
  ], 544)
1201
1201
  ]),
1202
1202
  _: 3
1203
1203
  }, 8, ["class", "aria-label"]));
1204
1204
  }
1205
- }), za = ["id", "role"], qa = /* @__PURE__ */ F({
1205
+ }), za = ["id", "role"], qa = /* @__PURE__ */ z({
1206
1206
  __name: "vc-hint",
1207
1207
  props: {
1208
1208
  id: {},
@@ -1211,19 +1211,19 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1211
1211
  setup(e) {
1212
1212
  return (t, n) => (f(), y("div", {
1213
1213
  id: e.id,
1214
- class: H(["vc-hint", {
1214
+ class: W(["vc-hint", {
1215
1215
  "vc-hint--error": e.error
1216
1216
  }]),
1217
1217
  role: e.error ? "alert" : void 0
1218
1218
  }, [
1219
- x(t.$slots, "default")
1219
+ T(t.$slots, "default")
1220
1220
  ], 10, za));
1221
1221
  }
1222
- }), pe = qa, Ua = ["role", "tabindex", "aria-label", "onKeydown"], Ka = {
1222
+ }), me = qa, Ua = ["role", "tabindex", "aria-label", "onKeydown"], Ka = {
1223
1223
  key: 0,
1224
1224
  class: "vc-image__placeholder",
1225
1225
  "aria-hidden": "true"
1226
- }, Wa = /* @__PURE__ */ F({
1226
+ }, Wa = /* @__PURE__ */ z({
1227
1227
  __name: "vc-image",
1228
1228
  props: {
1229
1229
  aspect: { default: "1x1" },
@@ -1239,7 +1239,7 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1239
1239
  },
1240
1240
  emits: ["click"],
1241
1241
  setup(e, { emit: t }) {
1242
- const n = me("vc-image"), a = e, o = t;
1242
+ const n = ge("vc-image"), a = e, o = t;
1243
1243
  function i(g) {
1244
1244
  if (!g) return g;
1245
1245
  try {
@@ -1251,24 +1251,24 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1251
1251
  }
1252
1252
  return g;
1253
1253
  }
1254
- const l = I(() => na(a.src, a.thumbnailSize) ?? a.src), r = S(!1), u = I(() => r.value ? a.src : l.value);
1255
- G(
1254
+ const l = $(() => na(a.src, a.thumbnailSize) ?? a.src), s = S(!1), u = $(() => s.value ? a.src : l.value);
1255
+ j(
1256
1256
  () => [a.src, a.thumbnailSize],
1257
1257
  () => {
1258
- r.value = !1;
1258
+ s.value = !1;
1259
1259
  }
1260
- ), G(
1260
+ ), j(
1261
1261
  u,
1262
1262
  (g) => {
1263
- if (!g || !a.thumbnailSize || r.value || g === a.src) return;
1263
+ if (!g || !a.thumbnailSize || s.value || g === a.src) return;
1264
1264
  const d = new Image();
1265
1265
  d.src = i(g), d.onerror = () => {
1266
- r.value = !0;
1266
+ s.value = !0;
1267
1267
  };
1268
1268
  },
1269
1269
  { immediate: !0 }
1270
1270
  );
1271
- const v = I(() => {
1271
+ const v = $(() => {
1272
1272
  if (u.value) {
1273
1273
  const g = i(u.value);
1274
1274
  return `background: url(${CSS.escape(g)}) center / ${a.background} no-repeat`;
@@ -1278,10 +1278,10 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1278
1278
  a.clickable && o("click");
1279
1279
  }
1280
1280
  return (g, d) => (f(), y("div", {
1281
- class: H(["vc-image", [`vc-image_${e.size}`]])
1281
+ class: W(["vc-image", [`vc-image_${e.size}`]])
1282
1282
  }, [
1283
- C("div", {
1284
- class: H([
1283
+ x("div", {
1284
+ class: W([
1285
1285
  "vc-image__container",
1286
1286
  `vc-image_${e.aspect}`,
1287
1287
  {
@@ -1296,12 +1296,12 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1296
1296
  "aria-label": e.alt || (e.clickable ? g.$t("COMPONENTS.ATOMS.VC_IMAGE.LABEL") : void 0),
1297
1297
  onClick: m,
1298
1298
  onKeydown: [
1299
- Q(Y(m, ["prevent"]), ["enter"]),
1300
- Q(Y(m, ["prevent"]), ["space"])
1299
+ X(G(m, ["prevent"]), ["enter"]),
1300
+ X(G(m, ["prevent"]), ["space"])
1301
1301
  ]
1302
1302
  }, [
1303
- e.src ? $("", !0) : (f(), y("div", Ka, [
1304
- T(s(K), {
1303
+ e.src ? w("", !0) : (f(), y("div", Ka, [
1304
+ M(r(U), {
1305
1305
  icon: e.emptyIcon,
1306
1306
  size: "xl"
1307
1307
  }, null, 8, ["icon"])
@@ -1319,7 +1319,7 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1319
1319
  }, Ja = {
1320
1320
  key: 1,
1321
1321
  class: "vc-label__language"
1322
- }, Je = /* @__PURE__ */ F({
1322
+ }, Je = /* @__PURE__ */ z({
1323
1323
  __name: "vc-label",
1324
1324
  props: {
1325
1325
  required: { type: Boolean },
@@ -1331,25 +1331,25 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1331
1331
  },
1332
1332
  setup(e) {
1333
1333
  return (t, n) => (f(), P(ut(e.htmlFor ? "label" : "div"), {
1334
- class: H(["vc-label", {
1334
+ class: W(["vc-label", {
1335
1335
  "vc-label--error": e.error
1336
1336
  }]),
1337
1337
  for: e.htmlFor || void 0
1338
1338
  }, {
1339
- default: w(() => [
1340
- C("div", ja, [
1341
- C("span", Ha, [
1342
- x(t.$slots, "default")
1339
+ default: O(() => [
1340
+ x("div", ja, [
1341
+ x("span", Ha, [
1342
+ T(t.$slots, "default")
1343
1343
  ]),
1344
- e.required ? (f(), y("span", Ga, "*")) : $("", !0)
1344
+ e.required ? (f(), y("span", Ga, "*")) : w("", !0)
1345
1345
  ]),
1346
1346
  t.$slots.tooltip ? (f(), y("span", Ya, [
1347
- T(s(Tt), { placement: "top-start" }, {
1348
- tooltip: w(() => [
1349
- x(t.$slots, "tooltip")
1347
+ M(r(Tt), { placement: "top-start" }, {
1348
+ tooltip: O(() => [
1349
+ T(t.$slots, "tooltip")
1350
1350
  ]),
1351
- default: w(() => [
1352
- T(s(K), {
1351
+ default: O(() => [
1352
+ M(r(U), {
1353
1353
  class: "vc-label__tooltip-icon",
1354
1354
  icon: e.tooltipIcon,
1355
1355
  size: "s"
@@ -1357,13 +1357,13 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1357
1357
  ]),
1358
1358
  _: 3
1359
1359
  })
1360
- ])) : $("", !0),
1361
- e.multilanguage ? (f(), y("div", Ja, M(e.currentLanguage), 1)) : $("", !0)
1360
+ ])) : w("", !0),
1361
+ e.multilanguage ? (f(), y("div", Ja, A(e.currentLanguage), 1)) : w("", !0)
1362
1362
  ]),
1363
1363
  _: 3
1364
1364
  }, 8, ["class", "for"]));
1365
1365
  }
1366
- }), Xa = ["disabled", "aria-disabled"], Za = { class: "vc-link__text" }, Qa = /* @__PURE__ */ F({
1366
+ }), Xa = ["disabled", "aria-disabled"], Za = { class: "vc-link__text" }, Qa = /* @__PURE__ */ z({
1367
1367
  __name: "vc-link",
1368
1368
  props: {
1369
1369
  active: { type: Boolean },
@@ -1378,7 +1378,7 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1378
1378
  }
1379
1379
  return (i, l) => (f(), y("button", {
1380
1380
  type: "button",
1381
- class: H(["vc-link", {
1381
+ class: W(["vc-link", {
1382
1382
  "vc-link--active": e.active,
1383
1383
  "vc-link--disabled": e.disabled
1384
1384
  }]),
@@ -1386,12 +1386,12 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1386
1386
  "aria-disabled": e.disabled,
1387
1387
  onClick: o
1388
1388
  }, [
1389
- C("span", Za, [
1390
- x(i.$slots, "default")
1389
+ x("span", Za, [
1390
+ T(i.$slots, "default")
1391
1391
  ])
1392
1392
  ], 10, Xa));
1393
1393
  }
1394
- }), _a = Qa, el = ["aria-label"], tl = { class: "vc-status__content" }, nl = /* @__PURE__ */ F({
1394
+ }), _a = Qa, el = ["aria-label"], tl = { class: "vc-status__content" }, nl = /* @__PURE__ */ z({
1395
1395
  __name: "vc-status",
1396
1396
  props: {
1397
1397
  variant: { default: "info" },
@@ -1400,7 +1400,7 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1400
1400
  },
1401
1401
  setup(e) {
1402
1402
  return (t, n) => (f(), y("div", {
1403
- class: H(["vc-status", [
1403
+ class: W(["vc-status", [
1404
1404
  `vc-status--${e.variant}`,
1405
1405
  {
1406
1406
  "vc-status--extended": e.extend,
@@ -1410,12 +1410,12 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1410
1410
  role: "status",
1411
1411
  "aria-label": e.dot ? e.variant : void 0
1412
1412
  }, [
1413
- C("div", tl, [
1414
- x(t.$slots, "default")
1413
+ x("div", tl, [
1414
+ T(t.$slots, "default")
1415
1415
  ])
1416
1416
  ], 10, el));
1417
1417
  }
1418
- }), al = ["aria-label"], ll = /* @__PURE__ */ F({
1418
+ }), al = ["aria-label"], ll = /* @__PURE__ */ z({
1419
1419
  __name: "vc-status-icon",
1420
1420
  props: {
1421
1421
  status: { type: Boolean }
@@ -1426,12 +1426,12 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1426
1426
  role: "img",
1427
1427
  "aria-label": e.status ? "Active" : "Inactive"
1428
1428
  }, [
1429
- e.status ? (f(), P(s(K), {
1429
+ e.status ? (f(), P(r(U), {
1430
1430
  key: 0,
1431
1431
  icon: "lucide-circle-check",
1432
1432
  class: "vc-status-icon__icon vc-status-icon__icon--success",
1433
1433
  "aria-hidden": "true"
1434
- })) : (f(), P(s(K), {
1434
+ })) : (f(), P(r(U), {
1435
1435
  key: 1,
1436
1436
  icon: "lucide-circle-x",
1437
1437
  class: "vc-status-icon__icon vc-status-icon__icon--inactive",
@@ -1439,7 +1439,7 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1439
1439
  }))
1440
1440
  ], 8, al));
1441
1441
  }
1442
- }), ol = ["aria-label"], $t = 40, il = /* @__PURE__ */ F({
1442
+ }), ol = ["aria-label"], $t = 40, il = /* @__PURE__ */ z({
1443
1443
  __name: "vc-scrollable-container",
1444
1444
  props: {
1445
1445
  speed: { default: void 0 }
@@ -1447,7 +1447,7 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1447
1447
  setup(e, { expose: t }) {
1448
1448
  const n = e, a = S(null), o = {};
1449
1449
  n.speed !== void 0 && (o.speed = n.speed);
1450
- const { canScrollUp: i, canScrollDown: l, startScroll: r, stopScroll: u, updateScrollState: v } = ua(
1450
+ const { canScrollUp: i, canScrollDown: l, startScroll: s, stopScroll: u, updateScrollState: v } = ua(
1451
1451
  a,
1452
1452
  o
1453
1453
  );
@@ -1464,43 +1464,43 @@ const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa
1464
1464
  role: "region",
1465
1465
  "aria-label": g.$t("COMPONENTS.ATOMS.VC_SCROLLABLE_CONTAINER.LABEL")
1466
1466
  }, [
1467
- C("div", {
1468
- class: H(["vc-scrollable-container__arrow", { "vc-scrollable-container__arrow--hidden": !s(i) }]),
1467
+ x("div", {
1468
+ class: W(["vc-scrollable-container__arrow", { "vc-scrollable-container__arrow--hidden": !r(i) }]),
1469
1469
  "aria-hidden": "true",
1470
- onPointerenter: d[0] || (d[0] = (c) => s(r)("up")),
1470
+ onPointerenter: d[0] || (d[0] = (c) => r(s)("up")),
1471
1471
  onPointerleave: d[1] || (d[1] = //@ts-ignore
1472
- (...c) => s(u) && s(u)(...c))
1472
+ (...c) => r(u) && r(u)(...c))
1473
1473
  }, [
1474
- x(g.$slots, "arrow-up", {}, () => [
1475
- T(s(K), {
1474
+ T(g.$slots, "arrow-up", {}, () => [
1475
+ M(r(U), {
1476
1476
  icon: "lucide-chevron-up",
1477
1477
  size: "xs"
1478
1478
  })
1479
1479
  ])
1480
1480
  ], 34),
1481
- C("div", {
1481
+ x("div", {
1482
1482
  ref_key: "viewportRef",
1483
1483
  ref: a,
1484
1484
  class: "vc-scrollable-container__viewport",
1485
1485
  tabindex: "0",
1486
1486
  onScroll: d[2] || (d[2] = //@ts-ignore
1487
- (...c) => s(v) && s(v)(...c)),
1487
+ (...c) => r(v) && r(v)(...c)),
1488
1488
  onKeydown: [
1489
- d[3] || (d[3] = Q(Y((c) => m("up"), ["prevent"]), ["up"])),
1490
- d[4] || (d[4] = Q(Y((c) => m("down"), ["prevent"]), ["down"]))
1489
+ d[3] || (d[3] = X(G((c) => m("up"), ["prevent"]), ["up"])),
1490
+ d[4] || (d[4] = X(G((c) => m("down"), ["prevent"]), ["down"]))
1491
1491
  ]
1492
1492
  }, [
1493
- x(g.$slots, "default")
1493
+ T(g.$slots, "default")
1494
1494
  ], 544),
1495
- C("div", {
1496
- class: H(["vc-scrollable-container__arrow", { "vc-scrollable-container__arrow--hidden": !s(l) }]),
1495
+ x("div", {
1496
+ class: W(["vc-scrollable-container__arrow", { "vc-scrollable-container__arrow--hidden": !r(l) }]),
1497
1497
  "aria-hidden": "true",
1498
- onPointerenter: d[5] || (d[5] = (c) => s(r)("down")),
1498
+ onPointerenter: d[5] || (d[5] = (c) => r(s)("down")),
1499
1499
  onPointerleave: d[6] || (d[6] = //@ts-ignore
1500
- (...c) => s(u) && s(u)(...c))
1500
+ (...c) => r(u) && r(u)(...c))
1501
1501
  }, [
1502
- x(g.$slots, "arrow-down", {}, () => [
1503
- T(s(K), {
1502
+ T(g.$slots, "arrow-down", {}, () => [
1503
+ M(r(U), {
1504
1504
  icon: "lucide-chevron-down",
1505
1505
  size: "xs"
1506
1506
  })
@@ -1531,7 +1531,7 @@ function ul() {
1531
1531
  function cl(e) {
1532
1532
  return Ln(e);
1533
1533
  }
1534
- const jt = xe({
1534
+ const jt = Ce({
1535
1535
  name: "widget-service",
1536
1536
  getKey: (e) => `${e.bladeId.toLowerCase()}::${e.widget.id}`,
1537
1537
  registerIntoService: (e, t) => e.registerWidget(t.widget, t.bladeId)
@@ -1559,23 +1559,23 @@ function ur() {
1559
1559
  };
1560
1560
  return jt.replayInto(n), n;
1561
1561
  }
1562
- const dl = me("use-theme"), ke = S([
1562
+ const dl = ge("use-theme"), he = S([
1563
1563
  { key: "light", localizationKey: "CORE.THEMES.LIGHT" },
1564
1564
  { key: "dark", localizationKey: "CORE.THEMES.DARK" }
1565
1565
  ]), cr = Mn(() => {
1566
- const { t: e } = we.global;
1566
+ const { t: e } = $e.global;
1567
1567
  function t(v) {
1568
1568
  (Array.isArray(v) ? v : [v]).forEach((m) => {
1569
- ke.value.some((g) => g.key === m.key) || ke.value.push(m);
1569
+ he.value.some((g) => g.key === m.key) || he.value.push(m);
1570
1570
  });
1571
1571
  }
1572
1572
  function n(v) {
1573
1573
  (Array.isArray(v) ? v : [v]).forEach((m) => {
1574
- const g = ke.value.findIndex((d) => d.key === m);
1575
- g >= 0 && ke.value.splice(g, 1);
1574
+ const g = he.value.findIndex((d) => d.key === m);
1575
+ g >= 0 && he.value.splice(g, 1);
1576
1576
  });
1577
1577
  }
1578
- const a = I(() => ke.value.map((v) => v.key)), o = Cn({
1578
+ const a = $(() => he.value.map((v) => v.key)), o = Cn({
1579
1579
  attribute: "data-theme",
1580
1580
  emitAuto: !0,
1581
1581
  initialValue: "light",
@@ -1591,16 +1591,16 @@ const dl = me("use-theme"), ke = S([
1591
1591
  tt(() => {
1592
1592
  i.value && (o.value = i.value);
1593
1593
  });
1594
- function r(v) {
1594
+ function s(v) {
1595
1595
  a.value.includes(v) ? i.value = v : dl.warn(`Attempted to set an unregistered theme: ${v}`);
1596
1596
  }
1597
- const u = I(() => {
1598
- const v = ke.value.find((m) => m.key === i.value);
1597
+ const u = $(() => {
1598
+ const v = he.value.find((m) => m.key === i.value);
1599
1599
  return v ? v.localizationKey ? e(v.localizationKey) : Qe(v.key) : i.value ? Qe(i.value) : "";
1600
1600
  });
1601
1601
  return {
1602
- themes: I(
1603
- () => ke.value.map((v) => ({
1602
+ themes: $(
1603
+ () => he.value.map((v) => ({
1604
1604
  key: v.key,
1605
1605
  name: v.localizationKey ? e(v.localizationKey) : Qe(v.key)
1606
1606
  }))
@@ -1610,9 +1610,9 @@ const dl = me("use-theme"), ke = S([
1610
1610
  next: l,
1611
1611
  register: t,
1612
1612
  unregister: n,
1613
- setTheme: r
1613
+ setTheme: s
1614
1614
  };
1615
- }), mt = xe({
1615
+ }), mt = Ce({
1616
1616
  name: "dashboard-service",
1617
1617
  getKey: (e) => e.id,
1618
1618
  registerIntoService: (e, t) => e.registerWidget(t)
@@ -1625,7 +1625,7 @@ const fl = () => ({
1625
1625
  layout: nt(/* @__PURE__ */ new Map())
1626
1626
  });
1627
1627
  function vl(e = {}) {
1628
- const t = fl(), n = e.hasAccess ?? (() => !0), r = {
1628
+ const t = fl(), n = e.hasAccess ?? (() => !0), s = {
1629
1629
  registerWidget: (u) => {
1630
1630
  if (t.widgets.has(u.id))
1631
1631
  throw new Error(`Widget with id ${u.id} already registered`);
@@ -1649,9 +1649,9 @@ function vl(e = {}) {
1649
1649
  },
1650
1650
  getLayout: () => new Map(t.layout)
1651
1651
  };
1652
- return mt.replayInto(r), r;
1652
+ return mt.replayInto(s), s;
1653
1653
  }
1654
- const wt = me("use-dashboard"), Ht = Ge({
1654
+ const wt = ge("use-dashboard"), Ht = Ge({
1655
1655
  key: In,
1656
1656
  bus: mt,
1657
1657
  name: "DashboardService",
@@ -1675,7 +1675,7 @@ function fr() {
1675
1675
  function vr() {
1676
1676
  return Ht.use();
1677
1677
  }
1678
- const Gt = xe({
1678
+ const Gt = Ce({
1679
1679
  name: "app-bar-menu-service",
1680
1680
  getKey: (e) => e.id || crypto.randomUUID(),
1681
1681
  registerIntoService: (e, t) => e.register(t),
@@ -1702,7 +1702,7 @@ function mr() {
1702
1702
  getId: (e) => e.id || ""
1703
1703
  });
1704
1704
  }
1705
- const pt = xe({
1705
+ const pt = Ce({
1706
1706
  name: "settings-menu-service",
1707
1707
  getKey: (e) => e.id || crypto.randomUUID(),
1708
1708
  registerIntoService: (e, t) => e.register(t),
@@ -1724,7 +1724,7 @@ function gl() {
1724
1724
  getId: (e) => e.id || ""
1725
1725
  });
1726
1726
  }
1727
- const ml = me("use-settings-menu"), Yt = Ge({
1727
+ const ml = ge("use-settings-menu"), Yt = Ge({
1728
1728
  key: $n,
1729
1729
  create: gl,
1730
1730
  bus: pt,
@@ -1743,7 +1743,7 @@ const pl = {
1743
1743
  }, bl = { class: "vc-date-picker__field-container" }, yl = { class: "vc-date-picker__field" }, hl = ["aria-label"], kl = {
1744
1744
  key: 0,
1745
1745
  class: "vc-date-picker__loading"
1746
- }, Sl = { key: 0 }, Il = { key: 1 }, $l = /* @__PURE__ */ F({
1746
+ }, Sl = { key: 0 }, Il = { key: 1 }, $l = /* @__PURE__ */ z({
1747
1747
  __name: "vc-date-picker",
1748
1748
  props: {
1749
1749
  modelValue: {},
@@ -1768,203 +1768,203 @@ const pl = {
1768
1768
  },
1769
1769
  emits: ["update:modelValue", "blur", "focus"],
1770
1770
  setup(e, { emit: t }) {
1771
- const n = e, a = t, o = Ee(), { isMobile: i, isDesktop: l } = Ye(), { labelId: r, errorId: u, hintId: v, invalid: m, resolvedDisabled: g, ariaRequired: d, ariaDescribedBy: c } = He(n), p = S(!1), h = window.navigator.language, E = S(n.modelValue), b = S(null), O = I(() => n.type === "date" && "9999-12-31" || void 0), V = (() => {
1772
- const B = new Intl.DateTimeFormat(h, { hour: "numeric" }).format();
1773
- return Number.isInteger(Number(B));
1774
- })(), U = I(() => {
1775
- const B = n.type === "datetime-local", L = new Intl.DateTimeFormat(h, {
1771
+ const n = e, a = t, o = Oe(), { isMobile: i, isDesktop: l } = Ye(), { labelId: s, errorId: u, hintId: v, invalid: m, resolvedDisabled: g, ariaRequired: d, ariaDescribedBy: c } = He(n), b = S(!1), h = window.navigator.language, E = S(n.modelValue), p = S(null), I = $(() => n.type === "date" && "9999-12-31" || void 0), F = (() => {
1772
+ const C = new Intl.DateTimeFormat(h, { hour: "numeric" }).format();
1773
+ return Number.isInteger(Number(C));
1774
+ })(), K = $(() => {
1775
+ const C = n.type === "datetime-local", B = new Intl.DateTimeFormat(h, {
1776
1776
  year: "numeric",
1777
1777
  month: "2-digit",
1778
1778
  day: "2-digit",
1779
- ...B ? { hour: "2-digit", minute: "2-digit", hour12: !V } : {}
1779
+ ...C ? { hour: "2-digit", minute: "2-digit", hour12: !F } : {}
1780
1780
  }).formatToParts(new Date(2e3, 0, 15, 13, 30)), D = {
1781
1781
  year: "yyyy",
1782
1782
  month: "MM",
1783
1783
  day: "dd",
1784
- hour: V ? "HH" : "hh",
1784
+ hour: F ? "HH" : "hh",
1785
1785
  minute: "mm",
1786
1786
  dayPeriod: "aa"
1787
1787
  };
1788
- return L.map((N) => D[N.type] ?? N.value).join("");
1789
- }), te = I(() => {
1788
+ return B.map((V) => D[V.type] ?? V.value).join("");
1789
+ }), _ = $(() => {
1790
1790
  if (!n.datePickerOptions?.textInput) return n.datePickerOptions;
1791
- const B = { ...n.datePickerOptions }, L = typeof B.textInput == "object" ? B.textInput : {};
1792
- return B.textInput = {
1793
- format: U.value,
1791
+ const C = { ...n.datePickerOptions }, B = typeof C.textInput == "object" ? C.textInput : {};
1792
+ return C.textInput = {
1793
+ format: K.value,
1794
1794
  rangeSeparator: " - ",
1795
- ...L
1796
- }, B;
1797
- }), X = I(() => {
1798
- const B = n.datePickerOptions?.ariaLabels;
1799
- return n.label || !n.ariaLabel ? B : { ...B, input: n.ariaLabel };
1800
- }), ae = (B) => {
1801
- const L = {
1795
+ ...B
1796
+ }, C;
1797
+ }), J = $(() => {
1798
+ const C = n.datePickerOptions?.ariaLabels;
1799
+ return n.label || !n.ariaLabel ? C : { ...C, input: n.ariaLabel };
1800
+ }), re = (C) => {
1801
+ const B = {
1802
1802
  year: "numeric",
1803
1803
  month: "numeric",
1804
1804
  day: "numeric"
1805
1805
  };
1806
- n.type === "datetime-local" && (L.hour = "numeric", L.minute = "numeric", L.hour12 = !V);
1807
- const D = (N) => new Intl.DateTimeFormat(h, L).format(N);
1808
- return Array.isArray(B) ? B.map((N) => N != null ? D(N) : "").join(" - ") : D(B);
1806
+ n.type === "datetime-local" && (B.hour = "numeric", B.minute = "numeric", B.hour12 = !F);
1807
+ const D = (V) => new Intl.DateTimeFormat(h, B).format(V);
1808
+ return Array.isArray(C) ? C.map((V) => V != null ? D(V) : "").join(" - ") : D(C);
1809
1809
  };
1810
- G(
1810
+ j(
1811
1811
  () => n.modelValue,
1812
- (B) => {
1813
- E.value !== B && (E.value = B);
1812
+ (C) => {
1813
+ E.value !== C && (E.value = C);
1814
1814
  }
1815
- ), G(E, (B, L) => {
1816
- B !== L && B !== n.modelValue && (b.value = null, a("update:modelValue", B));
1815
+ ), j(E, (C, B) => {
1816
+ C !== B && C !== n.modelValue && (p.value = null, a("update:modelValue", C));
1817
1817
  });
1818
- function Z() {
1818
+ function ae() {
1819
1819
  E.value = null, a("update:modelValue", null);
1820
1820
  }
1821
- function ue(B) {
1822
- b.value = B;
1821
+ function te(C) {
1822
+ p.value = C;
1823
1823
  }
1824
- function de() {
1825
- b.value = null;
1824
+ function ce() {
1825
+ p.value = null;
1826
1826
  }
1827
- function le(B) {
1828
- b.value != null && (E.value = [b.value, null], b.value = null), p.value = !1, a("blur", B);
1827
+ function se(C) {
1828
+ p.value != null && (E.value = [p.value, null], p.value = null), b.value = !1, a("blur", C);
1829
1829
  }
1830
- function z() {
1831
- p.value = !0, a("focus");
1830
+ function q() {
1831
+ b.value = !0, a("focus");
1832
1832
  }
1833
- return (B, L) => s(o) ? (f(), y("div", pl, [
1834
- e.label ? (f(), P(s(oe), {
1833
+ return (C, B) => r(o) ? (f(), y("div", pl, [
1834
+ e.label ? (f(), P(r(ne), {
1835
1835
  key: 0,
1836
1836
  variant: "block",
1837
1837
  width: 60 + (e.label?.length || 0) * 4,
1838
1838
  height: 11
1839
- }, null, 8, ["width"])) : $("", !0),
1840
- T(s(oe), {
1839
+ }, null, 8, ["width"])) : w("", !0),
1840
+ M(r(ne), {
1841
1841
  variant: "block",
1842
1842
  width: "100%",
1843
1843
  height: 36
1844
1844
  })
1845
1845
  ])) : (f(), y("div", {
1846
1846
  key: 1,
1847
- class: H(["vc-date-picker", [
1847
+ class: W(["vc-date-picker", [
1848
1848
  {
1849
- "vc-date-picker--error": s(m),
1850
- "vc-date-picker--disabled": s(g),
1851
- "vc-date-picker--focused": p.value
1849
+ "vc-date-picker--error": r(m),
1850
+ "vc-date-picker--disabled": r(g),
1851
+ "vc-date-picker--focused": b.value
1852
1852
  }
1853
1853
  ]])
1854
1854
  }, [
1855
- e.label ? (f(), P(s(Je), {
1855
+ e.label ? (f(), P(r(Je), {
1856
1856
  key: 0,
1857
- id: s(r),
1857
+ id: r(s),
1858
1858
  class: "vc-date-picker__label",
1859
1859
  required: e.required,
1860
1860
  multilanguage: e.multilanguage,
1861
1861
  "current-language": e.currentLanguage,
1862
- error: s(m)
1863
- }, re({
1864
- default: w(() => [
1865
- C("span", null, M(e.label), 1)
1862
+ error: r(m)
1863
+ }, oe({
1864
+ default: O(() => [
1865
+ x("span", null, A(e.label), 1)
1866
1866
  ]),
1867
1867
  _: 2
1868
1868
  }, [
1869
1869
  e.tooltip ? {
1870
1870
  name: "tooltip",
1871
- fn: w(() => [
1872
- _(M(e.tooltip), 1)
1871
+ fn: O(() => [
1872
+ Z(A(e.tooltip), 1)
1873
1873
  ]),
1874
1874
  key: "0"
1875
1875
  } : void 0
1876
- ]), 1032, ["id", "required", "multilanguage", "current-language", "error"])) : $("", !0),
1877
- C("div", {
1878
- class: H(["vc-date-picker__field-wrapper", {
1876
+ ]), 1032, ["id", "required", "multilanguage", "current-language", "error"])) : w("", !0),
1877
+ x("div", {
1878
+ class: W(["vc-date-picker__field-wrapper", {
1879
1879
  "vc-date-picker__field-wrapper--default": e.size === "default",
1880
1880
  "vc-date-picker__field-wrapper--small": e.size === "small"
1881
1881
  }])
1882
1882
  }, [
1883
- C("div", bl, [
1884
- C("div", yl, [
1885
- T(s(Nn), ne({
1883
+ x("div", bl, [
1884
+ x("div", yl, [
1885
+ M(r(Nn), ee({
1886
1886
  modelValue: E.value,
1887
- "onUpdate:modelValue": L[0] || (L[0] = (D) => E.value = D),
1888
- placeholder: e.placeholder || (e.type === "datetime-local" ? B.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_TIME_PLACEHOLDER") : B.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_PLACEHOLDER")),
1889
- disabled: s(g),
1887
+ "onUpdate:modelValue": B[0] || (B[0] = (D) => E.value = D),
1888
+ placeholder: e.placeholder || (e.type === "datetime-local" ? C.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_TIME_PLACEHOLDER") : C.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_PLACEHOLDER")),
1889
+ disabled: r(g),
1890
1890
  name: e.name,
1891
1891
  autofocus: e.autofocus,
1892
- "max-date": O.value,
1892
+ "max-date": I.value,
1893
1893
  "time-picker-inline": "",
1894
1894
  "enable-time-picker": e.type === "datetime-local",
1895
- format: ae,
1896
- locale: s(h),
1895
+ format: re,
1896
+ locale: r(h),
1897
1897
  "start-time": { hours: 0, minutes: 0 },
1898
1898
  clearable: !1,
1899
1899
  config: { closeOnAutoApply: !1 },
1900
1900
  "auto-apply": "",
1901
- "teleport-center": s(i),
1902
- is24: s(V)
1903
- }, te.value, {
1904
- "aria-labels": X.value,
1905
- teleport: s(l) ? "body" : void 0,
1906
- "aria-invalid": s(m) || void 0,
1907
- "aria-required": s(d),
1908
- "aria-describedby": s(c),
1909
- "aria-labelledby": e.label ? s(r) : void 0,
1901
+ "teleport-center": r(i),
1902
+ is24: r(F)
1903
+ }, _.value, {
1904
+ "aria-labels": J.value,
1905
+ teleport: r(l) ? "body" : void 0,
1906
+ "aria-invalid": r(m) || void 0,
1907
+ "aria-required": r(d),
1908
+ "aria-describedby": r(c),
1909
+ "aria-labelledby": e.label ? r(s) : void 0,
1910
1910
  class: "vc-date-picker__input",
1911
1911
  tabindex: "0",
1912
- onFocus: z,
1913
- onClosed: le,
1914
- onRangeStart: ue,
1915
- onRangeEnd: de,
1916
- onTooltipOpen: z,
1917
- onTooltipClose: le
1912
+ onFocus: q,
1913
+ onClosed: se,
1914
+ onRangeStart: te,
1915
+ onRangeEnd: ce,
1916
+ onTooltipOpen: q,
1917
+ onTooltipClose: se
1918
1918
  }), null, 16, ["modelValue", "placeholder", "disabled", "name", "autofocus", "max-date", "enable-time-picker", "locale", "teleport-center", "is24", "aria-labels", "teleport", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby"]),
1919
1919
  e.clearable && E.value && !e.disabled ? (f(), y("button", {
1920
1920
  key: 0,
1921
1921
  type: "button",
1922
1922
  class: "vc-date-picker__clear",
1923
- "aria-label": B.$t("COMPONENTS.MOLECULES.VC_DATE_PICKER.CLEAR"),
1924
- onClick: Z
1923
+ "aria-label": C.$t("COMPONENTS.MOLECULES.VC_DATE_PICKER.CLEAR"),
1924
+ onClick: ae
1925
1925
  }, [
1926
- T(s(K), {
1926
+ M(r(U), {
1927
1927
  size: "xs",
1928
1928
  icon: "lucide-x"
1929
1929
  })
1930
- ], 8, hl)) : $("", !0)
1930
+ ], 8, hl)) : w("", !0)
1931
1931
  ]),
1932
1932
  e.loading ? (f(), y("div", kl, [
1933
- T(s(K), {
1933
+ M(r(U), {
1934
1934
  icon: "lucide-loader-2",
1935
1935
  class: "vc-date-picker__loading-icon",
1936
1936
  size: "m"
1937
1937
  })
1938
- ])) : $("", !0)
1938
+ ])) : w("", !0)
1939
1939
  ])
1940
1940
  ], 2),
1941
- T(Pe, {
1941
+ M(Pe, {
1942
1942
  name: "slide-up",
1943
1943
  mode: "out-in"
1944
1944
  }, {
1945
- default: w(() => [
1946
- s(m) && e.errorMessage ? (f(), y("div", Sl, [
1947
- T(s(pe), {
1948
- id: s(u),
1945
+ default: O(() => [
1946
+ r(m) && e.errorMessage ? (f(), y("div", Sl, [
1947
+ M(r(me), {
1948
+ id: r(u),
1949
1949
  class: "vc-date-picker__hint-error",
1950
1950
  error: !0
1951
1951
  }, {
1952
- default: w(() => [
1953
- _(M(e.errorMessage), 1)
1952
+ default: O(() => [
1953
+ Z(A(e.errorMessage), 1)
1954
1954
  ]),
1955
1955
  _: 1
1956
1956
  }, 8, ["id"])
1957
1957
  ])) : (f(), y("div", Il, [
1958
- e.hint ? (f(), P(s(pe), {
1958
+ e.hint ? (f(), P(r(me), {
1959
1959
  key: 0,
1960
- id: s(v),
1960
+ id: r(v),
1961
1961
  class: "vc-date-picker__desc"
1962
1962
  }, {
1963
- default: w(() => [
1964
- _(M(e.hint), 1)
1963
+ default: O(() => [
1964
+ Z(A(e.hint), 1)
1965
1965
  ]),
1966
1966
  _: 1
1967
- }, 8, ["id"])) : $("", !0)
1967
+ }, 8, ["id"])) : w("", !0)
1968
1968
  ]))
1969
1969
  ]),
1970
1970
  _: 1
@@ -1977,7 +1977,7 @@ const pl = {
1977
1977
  }, Ol = { class: "vc-color-input__field-container" }, El = { class: "vc-color-input__field" }, Ll = ["id", "placeholder", "disabled", "name", "autofocus", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"], Bl = { class: "vc-color-input__color-container" }, Cl = ["aria-label"], xl = ["value"], Tl = ["aria-label"], Rl = {
1978
1978
  key: 0,
1979
1979
  class: "vc-color-input__loading"
1980
- }, Ml = { key: 0 }, Al = { key: 1 }, Nl = /* @__PURE__ */ F({
1980
+ }, Ml = { key: 0 }, Al = { key: 1 }, Nl = /* @__PURE__ */ z({
1981
1981
  __name: "vc-color-input",
1982
1982
  props: {
1983
1983
  modelValue: {},
@@ -2000,211 +2000,211 @@ const pl = {
2000
2000
  },
2001
2001
  emits: ["update:modelValue", "blur", "focus"],
2002
2002
  setup(e, { expose: t, emit: n }) {
2003
- const a = Ee(), o = e, i = n, {
2003
+ const a = Oe(), o = e, i = n, {
2004
2004
  fieldId: l,
2005
- labelId: r,
2005
+ labelId: s,
2006
2006
  errorId: u,
2007
2007
  hintId: v,
2008
2008
  invalid: m,
2009
2009
  resolvedDisabled: g,
2010
2010
  ariaRequired: d,
2011
2011
  ariaDescribedBy: c
2012
- } = He(o), p = S(!1), h = S(!1), E = S(), b = S(), O = S(o.modelValue ?? ""), V = S("");
2013
- function U(z) {
2014
- if (!z || typeof z != "string") {
2015
- V.value = "";
2012
+ } = He(o), b = S(!1), h = S(!1), E = S(), p = S(), I = S(o.modelValue ?? ""), F = S("");
2013
+ function K(q) {
2014
+ if (!q || typeof q != "string") {
2015
+ F.value = "";
2016
2016
  return;
2017
2017
  }
2018
- const B = z.trim();
2019
- if (ta(B)) {
2020
- V.value = St(B);
2018
+ const C = q.trim();
2019
+ if (ta(C)) {
2020
+ F.value = St(C);
2021
2021
  return;
2022
2022
  }
2023
- const L = ea(B);
2024
- L && (V.value = L);
2023
+ const B = ea(C);
2024
+ B && (F.value = B);
2025
2025
  }
2026
- G(
2026
+ j(
2027
2027
  () => o.modelValue,
2028
- (z) => {
2029
- h.value || (h.value = !0, O.value = z ?? "", $e(() => {
2030
- U(z ?? ""), h.value = !1;
2028
+ (q) => {
2029
+ h.value || (h.value = !0, I.value = q ?? "", Ie(() => {
2030
+ K(q ?? ""), h.value = !1;
2031
2031
  }));
2032
2032
  },
2033
2033
  { immediate: !0 }
2034
- ), G(V, (z) => {
2035
- z && b.value && (b.value.value = z);
2034
+ ), j(F, (q) => {
2035
+ q && p.value && (p.value.value = q);
2036
2036
  });
2037
- function te() {
2038
- h.value || (h.value = !0, i("update:modelValue", O.value || null), $e(() => {
2039
- U(O.value), h.value = !1;
2037
+ function _() {
2038
+ h.value || (h.value = !0, i("update:modelValue", I.value || null), Ie(() => {
2039
+ K(I.value), h.value = !1;
2040
2040
  }));
2041
2041
  }
2042
- function X(z) {
2043
- const B = z.target;
2044
- if (B?.value) {
2045
- const L = St(B.value);
2046
- V.value = L, O.value = L, i("update:modelValue", L);
2042
+ function J(q) {
2043
+ const C = q.target;
2044
+ if (C?.value) {
2045
+ const B = St(C.value);
2046
+ F.value = B, I.value = B, i("update:modelValue", B);
2047
2047
  }
2048
2048
  }
2049
- function ae() {
2050
- b.value?.click();
2049
+ function re() {
2050
+ p.value?.click();
2051
2051
  }
2052
- function Z() {
2053
- O.value = "", V.value = "", i("update:modelValue", null);
2052
+ function ae() {
2053
+ I.value = "", F.value = "", i("update:modelValue", null);
2054
2054
  }
2055
- function ue(z) {
2056
- p.value = !1, i("blur", z);
2055
+ function te(q) {
2056
+ b.value = !1, i("blur", q);
2057
2057
  }
2058
- function de() {
2059
- p.value = !0, i("focus");
2058
+ function ce() {
2059
+ b.value = !0, i("focus");
2060
2060
  }
2061
- function le() {
2061
+ function se() {
2062
2062
  E.value?.focus();
2063
2063
  }
2064
- return t({ focus: le }), (z, B) => s(a) ? (f(), y("div", wl, [
2065
- e.label ? (f(), P(s(oe), {
2064
+ return t({ focus: se }), (q, C) => r(a) ? (f(), y("div", wl, [
2065
+ e.label ? (f(), P(r(ne), {
2066
2066
  key: 0,
2067
2067
  variant: "block",
2068
2068
  width: 60 + (e.label?.length || 0) * 4,
2069
2069
  height: 11
2070
- }, null, 8, ["width"])) : $("", !0),
2071
- T(s(oe), {
2070
+ }, null, 8, ["width"])) : w("", !0),
2071
+ M(r(ne), {
2072
2072
  variant: "block",
2073
2073
  width: "100%",
2074
2074
  height: 36
2075
2075
  })
2076
2076
  ])) : (f(), y("div", {
2077
2077
  key: 1,
2078
- class: H(["vc-color-input", [
2078
+ class: W(["vc-color-input", [
2079
2079
  {
2080
- "vc-color-input--error": s(m),
2081
- "vc-color-input--disabled": s(g),
2082
- "vc-color-input--focused": p.value
2080
+ "vc-color-input--error": r(m),
2081
+ "vc-color-input--disabled": r(g),
2082
+ "vc-color-input--focused": b.value
2083
2083
  }
2084
2084
  ]])
2085
2085
  }, [
2086
- e.label ? (f(), P(s(Je), {
2086
+ e.label ? (f(), P(r(Je), {
2087
2087
  key: 0,
2088
- id: s(r),
2089
- "html-for": s(l),
2088
+ id: r(s),
2089
+ "html-for": r(l),
2090
2090
  class: "vc-color-input__label",
2091
2091
  required: e.required,
2092
2092
  multilanguage: e.multilanguage,
2093
2093
  "current-language": e.currentLanguage,
2094
- error: s(m)
2095
- }, re({
2096
- default: w(() => [
2097
- C("span", null, M(e.label), 1)
2094
+ error: r(m)
2095
+ }, oe({
2096
+ default: O(() => [
2097
+ x("span", null, A(e.label), 1)
2098
2098
  ]),
2099
2099
  _: 2
2100
2100
  }, [
2101
2101
  e.tooltip ? {
2102
2102
  name: "tooltip",
2103
- fn: w(() => [
2104
- _(M(e.tooltip), 1)
2103
+ fn: O(() => [
2104
+ Z(A(e.tooltip), 1)
2105
2105
  ]),
2106
2106
  key: "0"
2107
2107
  } : void 0
2108
- ]), 1032, ["id", "html-for", "required", "multilanguage", "current-language", "error"])) : $("", !0),
2109
- C("div", {
2110
- class: H(["vc-color-input__field-wrapper", {
2108
+ ]), 1032, ["id", "html-for", "required", "multilanguage", "current-language", "error"])) : w("", !0),
2109
+ x("div", {
2110
+ class: W(["vc-color-input__field-wrapper", {
2111
2111
  "vc-color-input__field-wrapper--default": e.size === "default",
2112
2112
  "vc-color-input__field-wrapper--small": e.size === "small"
2113
2113
  }])
2114
2114
  }, [
2115
- C("div", Ol, [
2116
- C("div", El, [
2117
- ct(C("input", {
2118
- id: s(l),
2115
+ x("div", Ol, [
2116
+ x("div", El, [
2117
+ ct(x("input", {
2118
+ id: r(l),
2119
2119
  ref_key: "inputRef",
2120
2120
  ref: E,
2121
- "onUpdate:modelValue": B[0] || (B[0] = (L) => O.value = L),
2121
+ "onUpdate:modelValue": C[0] || (C[0] = (B) => I.value = B),
2122
2122
  placeholder: e.placeholder,
2123
2123
  type: "text",
2124
- disabled: s(g),
2124
+ disabled: r(g),
2125
2125
  name: e.name,
2126
2126
  autofocus: e.autofocus,
2127
- "aria-invalid": s(m) || void 0,
2128
- "aria-required": s(d),
2129
- "aria-describedby": s(c),
2130
- "aria-labelledby": e.label ? s(r) : void 0,
2127
+ "aria-invalid": r(m) || void 0,
2128
+ "aria-required": r(d),
2129
+ "aria-describedby": r(c),
2130
+ "aria-labelledby": e.label ? r(s) : void 0,
2131
2131
  "aria-label": e.label ? void 0 : e.ariaLabel,
2132
2132
  class: "vc-color-input__input",
2133
2133
  tabindex: "0",
2134
- onBlur: ue,
2135
- onFocus: de,
2136
- onInput: te
2134
+ onBlur: te,
2135
+ onFocus: ce,
2136
+ onInput: _
2137
2137
  }, null, 40, Ll), [
2138
- [un, O.value]
2138
+ [un, I.value]
2139
2139
  ]),
2140
- C("div", Bl, [
2141
- C("button", {
2140
+ x("div", Bl, [
2141
+ x("button", {
2142
2142
  type: "button",
2143
2143
  class: "vc-color-input__color-square",
2144
- style: Ve({ backgroundColor: V.value || "#ffffff" }),
2145
- "aria-label": `Pick color${V.value ? ": " + V.value : ""}`,
2146
- onClick: ae
2144
+ style: Ve({ backgroundColor: F.value || "#ffffff" }),
2145
+ "aria-label": `Pick color${F.value ? ": " + F.value : ""}`,
2146
+ onClick: re
2147
2147
  }, null, 12, Cl),
2148
- C("input", {
2148
+ x("input", {
2149
2149
  ref_key: "colorPickerRef",
2150
- ref: b,
2150
+ ref: p,
2151
2151
  type: "color",
2152
- value: V.value,
2152
+ value: F.value,
2153
2153
  class: "vc-color-input__color-picker-hidden",
2154
2154
  tabindex: "-1",
2155
2155
  "aria-hidden": "true",
2156
- onChange: X
2156
+ onChange: J
2157
2157
  }, null, 40, xl)
2158
2158
  ]),
2159
- e.clearable && O.value && !e.disabled ? (f(), y("button", {
2159
+ e.clearable && I.value && !e.disabled ? (f(), y("button", {
2160
2160
  key: 0,
2161
2161
  type: "button",
2162
2162
  class: "vc-color-input__clear",
2163
- "aria-label": z.$t("COMPONENTS.MOLECULES.VC_COLOR_INPUT.CLEAR"),
2164
- onClick: Z
2163
+ "aria-label": q.$t("COMPONENTS.MOLECULES.VC_COLOR_INPUT.CLEAR"),
2164
+ onClick: ae
2165
2165
  }, [
2166
- T(s(K), {
2166
+ M(r(U), {
2167
2167
  size: "xs",
2168
2168
  icon: "lucide-x"
2169
2169
  })
2170
- ], 8, Tl)) : $("", !0)
2170
+ ], 8, Tl)) : w("", !0)
2171
2171
  ]),
2172
2172
  e.loading ? (f(), y("div", Rl, [
2173
- T(s(K), {
2173
+ M(r(U), {
2174
2174
  icon: "lucide-loader-2",
2175
2175
  class: "vc-color-input__loading-icon",
2176
2176
  size: "m"
2177
2177
  })
2178
- ])) : $("", !0)
2178
+ ])) : w("", !0)
2179
2179
  ])
2180
2180
  ], 2),
2181
- T(Pe, {
2181
+ M(Pe, {
2182
2182
  name: "slide-up",
2183
2183
  mode: "out-in"
2184
2184
  }, {
2185
- default: w(() => [
2186
- s(m) && e.errorMessage ? (f(), y("div", Ml, [
2187
- T(s(pe), {
2188
- id: s(u),
2185
+ default: O(() => [
2186
+ r(m) && e.errorMessage ? (f(), y("div", Ml, [
2187
+ M(r(me), {
2188
+ id: r(u),
2189
2189
  class: "vc-color-input__hint-error",
2190
2190
  error: !0
2191
2191
  }, {
2192
- default: w(() => [
2193
- _(M(e.errorMessage), 1)
2192
+ default: O(() => [
2193
+ Z(A(e.errorMessage), 1)
2194
2194
  ]),
2195
2195
  _: 1
2196
2196
  }, 8, ["id"])
2197
2197
  ])) : (f(), y("div", Al, [
2198
- e.hint ? (f(), P(s(pe), {
2198
+ e.hint ? (f(), P(r(me), {
2199
2199
  key: 0,
2200
- id: s(v),
2200
+ id: r(v),
2201
2201
  class: "vc-color-input__desc"
2202
2202
  }, {
2203
- default: w(() => [
2204
- _(M(e.hint), 1)
2203
+ default: O(() => [
2204
+ Z(A(e.hint), 1)
2205
2205
  ]),
2206
2206
  _: 1
2207
- }, 8, ["id"])) : $("", !0)
2207
+ }, 8, ["id"])) : w("", !0)
2208
2208
  ]))
2209
2209
  ]),
2210
2210
  _: 1
@@ -2220,7 +2220,7 @@ const pl = {
2220
2220
  }, zl = { class: "vc-input__field" }, ql = {
2221
2221
  key: 0,
2222
2222
  class: "vc-input__prefix"
2223
- }, Ul = ["id", "step", "placeholder", "type", "disabled", "name", "maxlength", "autofocus", "autocomplete", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"], Kl = {
2223
+ }, Ul = ["id", "placeholder", "type", "disabled", "name", "maxlength", "autofocus", "autocomplete", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"], Kl = {
2224
2224
  key: 1,
2225
2225
  class: "vc-input__suffix"
2226
2226
  }, Wl = ["aria-label"], jl = ["aria-label"], Hl = {
@@ -2232,7 +2232,7 @@ const pl = {
2232
2232
  }, Yl = {
2233
2233
  key: 1,
2234
2234
  class: "vc-input__append"
2235
- }, Jl = { key: 0 }, Xl = { key: 1 }, bt = /* @__PURE__ */ F({
2235
+ }, Jl = { key: 0 }, Xl = { key: 1 }, bt = /* @__PURE__ */ z({
2236
2236
  inheritAttrs: !1,
2237
2237
  __name: "vc-input",
2238
2238
  props: {
@@ -2242,7 +2242,7 @@ const pl = {
2242
2242
  suffix: {},
2243
2243
  debounce: {},
2244
2244
  maxlength: { default: "1024" },
2245
- step: {},
2245
+ step: { default: "1" },
2246
2246
  autocomplete: {},
2247
2247
  ariaLabel: {},
2248
2248
  datePickerOptions: {},
@@ -2264,91 +2264,89 @@ const pl = {
2264
2264
  },
2265
2265
  emits: ["update:modelValue", "blur", "focus"],
2266
2266
  setup(e, { emit: t }) {
2267
- const n = e, a = Lt(), o = /* @__PURE__ */ new Set(["min", "max", "minlength", "pattern", "inputmode"]), i = I(
2268
- () => Object.fromEntries(Object.entries(a).filter(([k]) => o.has(k.toLowerCase())))
2269
- ), l = I(() => {
2267
+ const n = e, a = Lt(), o = $(() => {
2270
2268
  const { class: k, ...R } = a;
2271
- return Object.fromEntries(Object.entries(R).filter(([q]) => !o.has(q.toLowerCase())));
2272
- }), r = t, u = Ee(), {
2273
- fieldId: v,
2274
- labelId: m,
2275
- errorId: g,
2276
- hintId: d,
2277
- invalid: c,
2278
- resolvedDisabled: p,
2279
- resolvedName: h,
2280
- ariaRequired: E,
2281
- ariaDescribedBy: b
2269
+ return R;
2270
+ }), i = t, l = Oe(), {
2271
+ fieldId: s,
2272
+ labelId: u,
2273
+ errorId: v,
2274
+ hintId: m,
2275
+ invalid: g,
2276
+ resolvedDisabled: d,
2277
+ resolvedName: c,
2278
+ ariaRequired: b,
2279
+ ariaDescribedBy: h
2282
2280
  } = He(n);
2283
- let O, V;
2284
- const U = S(), te = S(), X = S(s(n.type)), ae = S(!1), Z = S(), ue = I({
2281
+ let E, p;
2282
+ const I = S(), F = S(), K = S(r(n.type)), _ = S(!1), J = S(), re = $({
2285
2283
  get() {
2286
- return X.value === "integer" ? "number" : X.value;
2284
+ return K.value === "integer" ? "number" : K.value;
2287
2285
  },
2288
2286
  set(k) {
2289
- X.value = k;
2287
+ K.value = k;
2290
2288
  }
2291
- }), de = I(() => s(n.modelValue)), le = I({
2289
+ }), ae = $(() => r(n.modelValue)), te = $({
2292
2290
  get() {
2293
- return (n.type === "integer" || n.type === "number") && isNaN(U.value) ? "" : U.value;
2291
+ return (n.type === "integer" || n.type === "number") && isNaN(I.value) ? "" : I.value;
2294
2292
  },
2295
2293
  set(k) {
2296
- (n.type === "number" || n.type === "integer") && k < 0 ? U.value = Math.abs(k) : U.value = k, B(U.value);
2294
+ (n.type === "number" || n.type === "integer") && k < 0 ? I.value = Math.abs(k) : I.value = k, se(I.value);
2297
2295
  }
2298
2296
  });
2299
- G(
2300
- de,
2297
+ j(
2298
+ ae,
2301
2299
  (k) => {
2302
- n.type === "number" && k !== null ? Z.value = parseFloat(k) : n.type === "integer" && k !== null ? Z.value = Math.trunc(k) : Z.value = k, U.value !== Z.value && (U.value = Z.value);
2300
+ n.type === "number" && k !== null ? J.value = parseFloat(k) : n.type === "integer" && k !== null ? J.value = Math.trunc(k) : J.value = k, I.value !== J.value && (I.value = J.value);
2303
2301
  },
2304
2302
  { immediate: !0 }
2305
2303
  );
2306
- function z(k) {
2307
- const R = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], q = k.key;
2308
- if ((n.type === "number" || n.type === "integer") && (q === "-" || q === "e" || q === "+") && k.preventDefault(), n.type === "integer" && !/^\d$/.test(q) && !R.includes(q)) {
2304
+ function ce(k) {
2305
+ const R = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], L = k.key;
2306
+ if ((n.type === "number" || n.type === "integer") && (L === "-" || L === "e" || L === "+") && k.preventDefault(), n.type === "integer" && !/^\d$/.test(L) && !R.includes(L)) {
2309
2307
  k.preventDefault();
2310
2308
  return;
2311
2309
  }
2312
2310
  }
2313
- function B(k) {
2314
- L(k);
2311
+ function se(k) {
2312
+ q(k);
2315
2313
  }
2316
- function L(k) {
2317
- V = () => {
2318
- if (Z.value !== k) {
2314
+ function q(k) {
2315
+ p = () => {
2316
+ if (J.value !== k) {
2319
2317
  let R;
2320
- n.type === "number" && k !== null && k !== void 0 ? R = k !== "" ? parseFloat(k) : null : n.type === "integer" && k !== null && k !== void 0 ? R = k !== "" ? Math.trunc(parseInt(k)) : null : R = k, r("update:modelValue", R);
2318
+ n.type === "number" && k !== null && k !== void 0 ? R = k !== "" ? parseFloat(k) : null : n.type === "integer" && k !== null && k !== void 0 ? R = k !== "" ? Math.trunc(parseInt(k)) : null : R = k, i("update:modelValue", R);
2321
2319
  }
2322
- V = void 0;
2323
- }, n.debounce !== void 0 ? (clearTimeout(O), O = setTimeout(V, +n.debounce)) : V();
2320
+ p = void 0;
2321
+ }, n.debounce !== void 0 ? (clearTimeout(E), E = setTimeout(p, +n.debounce)) : p();
2324
2322
  }
2325
- function D() {
2326
- U.value = null, r("update:modelValue", null);
2323
+ function C() {
2324
+ I.value = null, i("update:modelValue", null);
2327
2325
  }
2328
- function N(k) {
2329
- ae.value = !1, r("blur", k);
2326
+ function B(k) {
2327
+ _.value = !1, i("blur", k);
2330
2328
  }
2331
- function W() {
2332
- te.value?.focus();
2329
+ function D() {
2330
+ F.value?.focus();
2333
2331
  }
2334
- function j() {
2335
- ae.value = !0, r("focus");
2332
+ function V() {
2333
+ _.value = !0, i("focus");
2336
2334
  }
2337
- return (k, R) => s(u) ? (f(), y("div", ne({ key: 0 }, l.value, {
2335
+ return (k, R) => r(l) ? (f(), y("div", ee({ key: 0 }, o.value, {
2338
2336
  class: ["vc-input vc-input--skeleton", k.$attrs.class]
2339
2337
  }), [
2340
- e.label ? (f(), P(s(oe), {
2338
+ e.label ? (f(), P(r(ne), {
2341
2339
  key: 0,
2342
2340
  variant: "block",
2343
2341
  width: 60 + (e.label?.length || 0) * 4,
2344
2342
  height: 11
2345
- }, null, 8, ["width"])) : $("", !0),
2346
- T(s(oe), {
2343
+ }, null, 8, ["width"])) : w("", !0),
2344
+ M(r(ne), {
2347
2345
  variant: "block",
2348
2346
  width: "100%",
2349
2347
  height: 36
2350
2348
  })
2351
- ], 16)) : e.type === "date" || e.type === "datetime-local" ? (f(), P(s($l), ne({ key: 1 }, s(a), {
2349
+ ], 16)) : e.type === "date" || e.type === "datetime-local" ? (f(), P(r($l), ee({ key: 1 }, r(a), {
2352
2350
  "model-value": e.modelValue,
2353
2351
  type: e.type,
2354
2352
  "date-picker-options": e.datePickerOptions,
@@ -2368,10 +2366,10 @@ const pl = {
2368
2366
  "current-language": e.currentLanguage,
2369
2367
  name: e.name,
2370
2368
  "aria-label": e.ariaLabel,
2371
- "onUpdate:modelValue": R[0] || (R[0] = (q) => r("update:modelValue", q ?? null)),
2372
- onBlur: R[1] || (R[1] = (q) => r("blur", q)),
2373
- onFocus: R[2] || (R[2] = (q) => r("focus"))
2374
- }), null, 16, ["model-value", "type", "date-picker-options", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : e.type === "color" ? (f(), P(s(Nl), ne({ key: 2 }, s(a), {
2369
+ "onUpdate:modelValue": R[0] || (R[0] = (L) => i("update:modelValue", L ?? null)),
2370
+ onBlur: R[1] || (R[1] = (L) => i("blur", L)),
2371
+ onFocus: R[2] || (R[2] = (L) => i("focus"))
2372
+ }), null, 16, ["model-value", "type", "date-picker-options", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : e.type === "color" ? (f(), P(r(Nl), ee({ key: 2 }, r(a), {
2375
2373
  "model-value": e.modelValue ?? null,
2376
2374
  label: e.label,
2377
2375
  placeholder: e.placeholder,
@@ -2389,167 +2387,165 @@ const pl = {
2389
2387
  "current-language": e.currentLanguage,
2390
2388
  name: e.name,
2391
2389
  "aria-label": e.ariaLabel,
2392
- "onUpdate:modelValue": R[3] || (R[3] = (q) => r("update:modelValue", q)),
2393
- onBlur: R[4] || (R[4] = (q) => r("blur", q)),
2394
- onFocus: R[5] || (R[5] = (q) => r("focus"))
2395
- }), null, 16, ["model-value", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : (f(), y("div", ne({ key: 3 }, l.value, {
2390
+ "onUpdate:modelValue": R[3] || (R[3] = (L) => i("update:modelValue", L)),
2391
+ onBlur: R[4] || (R[4] = (L) => i("blur", L)),
2392
+ onFocus: R[5] || (R[5] = (L) => i("focus"))
2393
+ }), null, 16, ["model-value", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : (f(), y("div", ee({ key: 3 }, o.value, {
2396
2394
  class: ["vc-input", [
2397
2395
  k.$attrs.class,
2398
2396
  `vc-input--${e.type}`,
2399
2397
  {
2400
2398
  "vc-input--clearable": e.clearable,
2401
- "vc-input--error": s(c),
2402
- "vc-input--disabled": s(p),
2403
- "vc-input--focused": ae.value
2399
+ "vc-input--error": r(g),
2400
+ "vc-input--disabled": r(d),
2401
+ "vc-input--focused": _.value
2404
2402
  }
2405
2403
  ]]
2406
2404
  }), [
2407
- e.label ? (f(), P(s(Je), {
2405
+ e.label ? (f(), P(r(Je), {
2408
2406
  key: 0,
2409
- id: s(m),
2410
- "html-for": s(v),
2407
+ id: r(u),
2408
+ "html-for": r(s),
2411
2409
  class: "vc-input__label",
2412
2410
  required: e.required,
2413
2411
  multilanguage: e.multilanguage,
2414
2412
  "current-language": e.currentLanguage,
2415
- error: s(c)
2416
- }, re({
2417
- default: w(() => [
2418
- C("span", null, M(e.label), 1)
2413
+ error: r(g)
2414
+ }, oe({
2415
+ default: O(() => [
2416
+ x("span", null, A(e.label), 1)
2419
2417
  ]),
2420
2418
  _: 2
2421
2419
  }, [
2422
2420
  e.tooltip ? {
2423
2421
  name: "tooltip",
2424
- fn: w(() => [
2425
- _(M(e.tooltip), 1)
2422
+ fn: O(() => [
2423
+ Z(A(e.tooltip), 1)
2426
2424
  ]),
2427
2425
  key: "0"
2428
2426
  } : void 0
2429
- ]), 1032, ["id", "html-for", "required", "multilanguage", "current-language", "error"])) : $("", !0),
2430
- C("div", Dl, [
2427
+ ]), 1032, ["id", "html-for", "required", "multilanguage", "current-language", "error"])) : w("", !0),
2428
+ x("div", Dl, [
2431
2429
  k.$slots.prepend ? (f(), y("div", Vl, [
2432
- x(k.$slots, "prepend", { focus: W })
2433
- ])) : $("", !0),
2434
- C("div", {
2435
- class: H(["vc-input__field-wrapper", {
2430
+ T(k.$slots, "prepend", { focus: D })
2431
+ ])) : w("", !0),
2432
+ x("div", {
2433
+ class: W(["vc-input__field-wrapper", {
2436
2434
  "vc-input__field-wrapper--default": e.size === "default",
2437
2435
  "vc-input__field-wrapper--small": e.size === "small"
2438
2436
  }])
2439
2437
  }, [
2440
- C("div", Pl, [
2438
+ x("div", Pl, [
2441
2439
  k.$slots["prepend-inner"] ? (f(), y("div", Fl, [
2442
- x(k.$slots, "prepend-inner", { focus: W })
2443
- ])) : $("", !0),
2444
- C("div", zl, [
2445
- e.prefix ? (f(), y("div", ql, M(e.prefix), 1)) : $("", !0),
2446
- x(k.$slots, "control", {
2447
- editable: s(p),
2440
+ T(k.$slots, "prepend-inner", { focus: D })
2441
+ ])) : w("", !0),
2442
+ x("div", zl, [
2443
+ e.prefix ? (f(), y("div", ql, A(e.prefix), 1)) : w("", !0),
2444
+ T(k.$slots, "control", {
2445
+ editable: r(d),
2448
2446
  focused: e.autofocus,
2449
- modelValue: le.value,
2450
- emitValue: L,
2447
+ modelValue: te.value,
2448
+ emitValue: q,
2451
2449
  placeholder: e.placeholder
2452
2450
  }, () => [
2453
- ct(C("input", ne({
2454
- id: s(v),
2451
+ ct(x("input", {
2452
+ id: r(s),
2455
2453
  ref_key: "inputRef",
2456
- ref: te,
2457
- "onUpdate:modelValue": R[6] || (R[6] = (q) => le.value = q)
2458
- }, i.value, {
2459
- step: e.step,
2454
+ ref: F,
2455
+ "onUpdate:modelValue": R[6] || (R[6] = (L) => te.value = L),
2460
2456
  placeholder: e.placeholder,
2461
- type: ue.value,
2462
- disabled: s(p),
2463
- name: s(h),
2457
+ type: re.value,
2458
+ disabled: r(d),
2459
+ name: r(c),
2464
2460
  maxlength: e.maxlength,
2465
2461
  autofocus: e.autofocus,
2466
2462
  autocomplete: e.autocomplete,
2467
- "aria-invalid": s(c) || void 0,
2468
- "aria-required": s(E),
2469
- "aria-describedby": s(b),
2470
- "aria-labelledby": e.label ? s(m) : void 0,
2463
+ "aria-invalid": r(g) || void 0,
2464
+ "aria-required": r(b),
2465
+ "aria-describedby": r(h),
2466
+ "aria-labelledby": e.label ? r(u) : void 0,
2471
2467
  "aria-label": e.label ? void 0 : e.ariaLabel,
2472
2468
  class: "vc-input__input",
2473
2469
  tabindex: "0",
2474
- onKeydown: z,
2475
- onBlur: N,
2476
- onFocus: j
2477
- }), null, 16, Ul), [
2478
- [cn, le.value]
2470
+ onKeydown: ce,
2471
+ onBlur: B,
2472
+ onFocus: V
2473
+ }, null, 40, Ul), [
2474
+ [cn, te.value]
2479
2475
  ])
2480
2476
  ]),
2481
- e.suffix ? (f(), y("div", Kl, M(e.suffix), 1)) : $("", !0),
2482
- e.clearable && Z.value && !s(p) && e.type !== "password" ? (f(), y("button", {
2477
+ e.suffix ? (f(), y("div", Kl, A(e.suffix), 1)) : w("", !0),
2478
+ e.clearable && J.value && !r(d) && e.type !== "password" ? (f(), y("button", {
2483
2479
  key: 2,
2484
2480
  type: "button",
2485
2481
  class: "vc-input__clear",
2486
2482
  "aria-label": k.$t("COMPONENTS.CONTROLS.CLEAR"),
2487
- onClick: D
2483
+ onClick: C
2488
2484
  }, [
2489
- T(s(K), {
2485
+ M(r(U), {
2490
2486
  size: "xs",
2491
2487
  icon: "lucide-x"
2492
2488
  })
2493
- ], 8, Wl)) : $("", !0),
2489
+ ], 8, Wl)) : w("", !0),
2494
2490
  e.type === "password" ? (f(), y("button", {
2495
2491
  key: 3,
2496
2492
  type: "button",
2497
2493
  class: "vc-input__showhide",
2498
- "aria-label": X.value === "password" ? k.$t("COMPONENTS.CONTROLS.SHOW_PASSWORD") : k.$t("COMPONENTS.CONTROLS.HIDE_PASSWORD"),
2499
- onClick: R[7] || (R[7] = (q) => X.value = X.value === "password" ? "text" : "password")
2494
+ "aria-label": K.value === "password" ? k.$t("COMPONENTS.CONTROLS.SHOW_PASSWORD") : k.$t("COMPONENTS.CONTROLS.HIDE_PASSWORD"),
2495
+ onClick: R[7] || (R[7] = (L) => K.value = K.value === "password" ? "text" : "password")
2500
2496
  }, [
2501
- T(s(K), {
2497
+ M(r(U), {
2502
2498
  size: "s",
2503
- icon: X.value === "password" ? "lucide-eye-off" : "lucide-eye"
2499
+ icon: K.value === "password" ? "lucide-eye-off" : "lucide-eye"
2504
2500
  }, null, 8, ["icon"])
2505
- ], 8, jl)) : $("", !0)
2501
+ ], 8, jl)) : w("", !0)
2506
2502
  ]),
2507
2503
  k.$slots["append-inner"] ? (f(), y("div", Hl, [
2508
- x(k.$slots, "append-inner", { focus: W })
2509
- ])) : $("", !0),
2504
+ T(k.$slots, "append-inner", { focus: D })
2505
+ ])) : w("", !0),
2510
2506
  e.loading ? (f(), y("div", Gl, [
2511
- T(s(K), {
2507
+ M(r(U), {
2512
2508
  icon: "lucide-loader-2",
2513
2509
  class: "vc-input__loading-icon",
2514
2510
  size: "m"
2515
2511
  })
2516
- ])) : $("", !0)
2512
+ ])) : w("", !0)
2517
2513
  ])
2518
2514
  ], 2),
2519
2515
  k.$slots.append ? (f(), y("div", Yl, [
2520
- x(k.$slots, "append", { focus: W })
2521
- ])) : $("", !0)
2516
+ T(k.$slots, "append", { focus: D })
2517
+ ])) : w("", !0)
2522
2518
  ]),
2523
- T(Pe, {
2519
+ M(Pe, {
2524
2520
  name: "slide-up",
2525
2521
  mode: "out-in"
2526
2522
  }, {
2527
- default: w(() => [
2528
- s(c) && e.errorMessage ? (f(), y("div", Jl, [
2529
- x(k.$slots, "error", {}, () => [
2530
- T(s(pe), {
2531
- id: s(g),
2523
+ default: O(() => [
2524
+ r(g) && e.errorMessage ? (f(), y("div", Jl, [
2525
+ T(k.$slots, "error", {}, () => [
2526
+ M(r(me), {
2527
+ id: r(v),
2532
2528
  class: "vc-input__hint-error",
2533
2529
  error: !0
2534
2530
  }, {
2535
- default: w(() => [
2536
- _(M(e.errorMessage), 1)
2531
+ default: O(() => [
2532
+ Z(A(e.errorMessage), 1)
2537
2533
  ]),
2538
2534
  _: 1
2539
2535
  }, 8, ["id"])
2540
2536
  ])
2541
2537
  ])) : (f(), y("div", Xl, [
2542
- x(k.$slots, "hint", {}, () => [
2543
- e.hint ? (f(), P(s(pe), {
2538
+ T(k.$slots, "hint", {}, () => [
2539
+ e.hint ? (f(), P(r(me), {
2544
2540
  key: 0,
2545
- id: s(d),
2541
+ id: r(m),
2546
2542
  class: "vc-input__desc"
2547
2543
  }, {
2548
- default: w(() => [
2549
- _(M(e.hint), 1)
2544
+ default: O(() => [
2545
+ Z(A(e.hint), 1)
2550
2546
  ]),
2551
2547
  _: 1
2552
- }, 8, ["id"])) : $("", !0)
2548
+ }, 8, ["id"])) : w("", !0)
2553
2549
  ])
2554
2550
  ]))
2555
2551
  ]),
@@ -2594,74 +2590,74 @@ function Zl(e = {}) {
2594
2590
  onEnter: a,
2595
2591
  onEscape: o,
2596
2592
  loop: i = !0
2597
- } = e, l = S(null), r = S(-1), u = (b) => {
2598
- (r.value >= b.length || r.value < 0) && (r.value = b.length > 0 ? 0 : -1);
2599
- }, v = (b) => {
2593
+ } = e, l = S(null), s = S(-1), u = (p) => {
2594
+ (s.value >= p.length || s.value < 0) && (s.value = p.length > 0 ? 0 : -1);
2595
+ }, v = (p) => {
2600
2596
  if (!l.value) return;
2601
- const O = Array.from(l.value.querySelectorAll(n));
2602
- if (O.length)
2603
- switch (u(O), b.key) {
2597
+ const I = Array.from(l.value.querySelectorAll(n));
2598
+ if (I.length)
2599
+ switch (u(I), p.key) {
2604
2600
  case "Tab":
2605
- m(b, O);
2601
+ m(p, I);
2606
2602
  break;
2607
2603
  case "ArrowDown":
2608
- b.preventDefault(), g(O);
2604
+ p.preventDefault(), g(I);
2609
2605
  break;
2610
2606
  case "ArrowUp":
2611
- b.preventDefault(), d(O);
2607
+ p.preventDefault(), d(I);
2612
2608
  break;
2613
2609
  case "Enter":
2614
2610
  case " ":
2615
- if (r.value >= 0 && r.value < O.length) {
2616
- const V = O[r.value];
2617
- V && (b.preventDefault(), a ? a(V) : typeof V.click == "function" && V.click());
2611
+ if (s.value >= 0 && s.value < I.length) {
2612
+ const F = I[s.value];
2613
+ F && (p.preventDefault(), a ? a(F) : typeof F.click == "function" && F.click());
2618
2614
  }
2619
2615
  break;
2620
2616
  case "Escape":
2621
- o && (b.preventDefault(), b.stopPropagation(), o());
2617
+ o && (p.preventDefault(), p.stopPropagation(), o());
2622
2618
  break;
2623
2619
  }
2624
- }, m = (b, O) => {
2625
- b.shiftKey ? d(O) : g(O);
2626
- }, g = (b) => {
2627
- if (!b.length) return;
2628
- if (u(b), r.value < b.length - 1)
2629
- r.value++;
2620
+ }, m = (p, I) => {
2621
+ p.shiftKey ? d(I) : g(I);
2622
+ }, g = (p) => {
2623
+ if (!p.length) return;
2624
+ if (u(p), s.value < p.length - 1)
2625
+ s.value++;
2630
2626
  else if (i)
2631
- r.value = 0;
2627
+ s.value = 0;
2632
2628
  else
2633
2629
  return;
2634
- const O = b[r.value];
2635
- O && typeof O.focus == "function" && O.focus();
2636
- }, d = (b) => {
2637
- if (!b.length) return;
2638
- if (u(b), r.value > 0)
2639
- r.value--;
2630
+ const I = p[s.value];
2631
+ I && typeof I.focus == "function" && I.focus();
2632
+ }, d = (p) => {
2633
+ if (!p.length) return;
2634
+ if (u(p), s.value > 0)
2635
+ s.value--;
2640
2636
  else if (i)
2641
- r.value = b.length - 1;
2637
+ s.value = p.length - 1;
2642
2638
  else
2643
2639
  return;
2644
- const O = b[r.value];
2645
- O && typeof O.focus == "function" && O.focus();
2646
- }, c = (b) => {
2647
- if (!b.length) return;
2648
- r.value = 0;
2649
- const O = b[0];
2650
- O && typeof O.focus == "function" && O.focus();
2651
- }, p = (b) => {
2652
- if (!b.length) return;
2653
- r.value = b.length - 1;
2654
- const O = b[b.length - 1];
2655
- O && typeof O.focus == "function" && O.focus();
2656
- }, h = (b) => {
2657
- l.value && l.value.removeEventListener("keydown", v), l.value = b, b.addEventListener("keydown", v);
2640
+ const I = p[s.value];
2641
+ I && typeof I.focus == "function" && I.focus();
2642
+ }, c = (p) => {
2643
+ if (!p.length) return;
2644
+ s.value = 0;
2645
+ const I = p[0];
2646
+ I && typeof I.focus == "function" && I.focus();
2647
+ }, b = (p) => {
2648
+ if (!p.length) return;
2649
+ s.value = p.length - 1;
2650
+ const I = p[p.length - 1];
2651
+ I && typeof I.focus == "function" && I.focus();
2652
+ }, h = (p) => {
2653
+ l.value && l.value.removeEventListener("keydown", v), l.value = p, p.addEventListener("keydown", v);
2658
2654
  }, E = () => {
2659
2655
  l.value && (l.value.removeEventListener("keydown", v), l.value = null);
2660
2656
  };
2661
2657
  return je(() => {
2662
2658
  if (typeof document < "u" && t) {
2663
- const b = document.querySelector(t);
2664
- b && h(b);
2659
+ const p = document.querySelector(t);
2660
+ p && h(p);
2665
2661
  }
2666
2662
  }), rt(() => {
2667
2663
  E();
@@ -2670,35 +2666,35 @@ function Zl(e = {}) {
2670
2666
  cleanupKeyboardNavigation: E,
2671
2667
  focusNextElement: () => {
2672
2668
  if (l.value) {
2673
- const b = Array.from(l.value.querySelectorAll(n));
2674
- g(b);
2669
+ const p = Array.from(l.value.querySelectorAll(n));
2670
+ g(p);
2675
2671
  }
2676
2672
  },
2677
2673
  focusPreviousElement: () => {
2678
2674
  if (l.value) {
2679
- const b = Array.from(l.value.querySelectorAll(n));
2680
- d(b);
2675
+ const p = Array.from(l.value.querySelectorAll(n));
2676
+ d(p);
2681
2677
  }
2682
2678
  },
2683
2679
  focusFirstElement: () => {
2684
2680
  if (l.value) {
2685
- const b = Array.from(l.value.querySelectorAll(n));
2686
- c(b);
2681
+ const p = Array.from(l.value.querySelectorAll(n));
2682
+ c(p);
2687
2683
  }
2688
2684
  },
2689
2685
  focusLastElement: () => {
2690
2686
  if (l.value) {
2691
- const b = Array.from(l.value.querySelectorAll(n));
2692
- p(b);
2687
+ const p = Array.from(l.value.querySelectorAll(n));
2688
+ b(p);
2693
2689
  }
2694
2690
  },
2695
- setFocusedIndex: (b) => {
2691
+ setFocusedIndex: (p) => {
2696
2692
  if (l.value) {
2697
- const O = Array.from(l.value.querySelectorAll(n));
2698
- b >= 0 && b < O.length && (r.value = b);
2693
+ const I = Array.from(l.value.querySelectorAll(n));
2694
+ p >= 0 && p < I.length && (s.value = p);
2699
2695
  }
2700
2696
  },
2701
- getFocusedIndex: () => r.value
2697
+ getFocusedIndex: () => s.value
2702
2698
  };
2703
2699
  }
2704
2700
  function Ot(e, t) {
@@ -2706,10 +2702,10 @@ function Ot(e, t) {
2706
2702
  return typeof n == "function" ? n : (a) => a === null || typeof a != "object" ? a : n && n in a ? a[n] : a;
2707
2703
  }
2708
2704
  function Ql(e) {
2709
- const t = I(() => Ot(e.optionValue(), "id")), n = I(() => Ot(e.optionLabel(), "title"));
2710
- function a(l, r, u, v) {
2705
+ const t = $(() => Ot(e.optionValue(), "id")), n = $(() => Ot(e.optionLabel(), "title"));
2706
+ function a(l, s, u, v) {
2711
2707
  const m = (g) => De(t.value(g), l);
2712
- return u.find(m) || v.find(m) || r.find(m) || l;
2708
+ return u.find(m) || v.find(m) || s.find(m) || l;
2713
2709
  }
2714
2710
  function o(l) {
2715
2711
  return n.value(l);
@@ -2770,19 +2766,19 @@ function eo(e) {
2770
2766
  };
2771
2767
  }
2772
2768
  const l = ra(a, o, {
2773
- placement: I(() => e.placement),
2774
- middleware: I(() => [
2769
+ placement: $(() => e.placement),
2770
+ middleware: $(() => [
2775
2771
  At({ fallbackPlacements: ["top", "bottom"] }),
2776
2772
  Nt({ mainAxis: !1 }),
2777
2773
  i(),
2778
2774
  lt({ mainAxis: 4 })
2779
2775
  ])
2780
- }), r = I(() => ({
2776
+ }), s = $(() => ({
2781
2777
  top: `${l.y.value ?? 0}px`,
2782
2778
  left: `${l.x.value ?? 0}px`,
2783
2779
  width: l.middlewareData.value.sameWidth?.width
2784
2780
  }));
2785
- G(
2781
+ j(
2786
2782
  () => l.isPositioned.value,
2787
2783
  (v) => {
2788
2784
  v && l.update();
@@ -2797,188 +2793,188 @@ function eo(e) {
2797
2793
  dropdownToggleRef: a,
2798
2794
  dropdownRef: o,
2799
2795
  popper: l,
2800
- dropdownStyle: r,
2796
+ dropdownStyle: s,
2801
2797
  toggleDropdown: u
2802
2798
  };
2803
2799
  }
2804
2800
  function to(e) {
2805
- const t = S([]), n = S(null), a = S(0), o = S(0), i = S(!1), l = S(!1), r = S(!1), u = S(!1), v = S(), m = S([]), g = S(!1), d = /* @__PURE__ */ new Map();
2806
- let c = !1, p = 0, h = 0, E = 0, b;
2807
- const O = I(() => n.value ?? t.value), V = I(() => n.value !== null ? !l.value && n.value.length < o.value : !i.value && t.value.length < a.value);
2808
- function U(L) {
2809
- for (const D of L) {
2810
- const N = String(e.getOptionValue.value(D));
2811
- d.set(N, D);
2801
+ const t = S([]), n = S(null), a = S(0), o = S(0), i = S(!1), l = S(!1), s = S(!1), u = S(!1), v = S(), m = S([]), g = S(!1), d = /* @__PURE__ */ new Map();
2802
+ let c = !1, b = 0, h = 0, E = 0, p;
2803
+ const I = $(() => n.value ?? t.value), F = $(() => n.value !== null ? !l.value && n.value.length < o.value : !i.value && t.value.length < a.value);
2804
+ function K(B) {
2805
+ for (const D of B) {
2806
+ const V = String(e.getOptionValue.value(D));
2807
+ d.set(V, D);
2812
2808
  }
2813
2809
  }
2814
- function te() {
2815
- n.value = null, u.value = !1, v.value = void 0, o.value = 0, h = 0, l.value = !1, E++, b && (clearTimeout(b), b = void 0);
2810
+ function _() {
2811
+ n.value = null, u.value = !1, v.value = void 0, o.value = 0, h = 0, l.value = !1, E++, p && (clearTimeout(p), p = void 0);
2816
2812
  }
2817
- async function X() {
2813
+ async function J() {
2818
2814
  if (c)
2819
2815
  return;
2820
- const L = e.options();
2821
- if (typeof L == "function")
2816
+ const B = e.options();
2817
+ if (typeof B == "function")
2822
2818
  try {
2823
- r.value = !0;
2824
- const D = await L(void 0, 0), N = D?.results ?? [];
2825
- t.value = N, a.value = D?.totalCount ?? 0, p = N.length, i.value = N.length === 0 || p >= a.value, U(t.value), c = !0;
2819
+ s.value = !0;
2820
+ const D = await B(void 0, 0), V = D?.results ?? [];
2821
+ t.value = V, a.value = D?.totalCount ?? 0, b = V.length, i.value = V.length === 0 || b >= a.value, K(t.value), c = !0;
2826
2822
  } catch (D) {
2827
- console.error("useSelectDataSource: error loading options", D), t.value = [], a.value = 0, p = 0, i.value = !0;
2823
+ console.error("useSelectDataSource: error loading options", D), t.value = [], a.value = 0, b = 0, i.value = !0;
2828
2824
  } finally {
2829
- r.value = !1;
2825
+ s.value = !1;
2830
2826
  }
2831
- else Array.isArray(L) && (t.value = [...L], a.value = t.value.length, p = t.value.length, i.value = !0, U(t.value), c = !0);
2827
+ else Array.isArray(B) && (t.value = [...B], a.value = t.value.length, b = t.value.length, i.value = !0, K(t.value), c = !0);
2832
2828
  }
2833
- function ae() {
2834
- te();
2829
+ function re() {
2830
+ _();
2835
2831
  }
2836
- async function Z() {
2837
- const L = e.options();
2838
- if (typeof L != "function" || r.value || !V.value) return;
2839
- const D = n.value !== null, N = E, W = n.value;
2832
+ async function ae() {
2833
+ const B = e.options();
2834
+ if (typeof B != "function" || s.value || !F.value) return;
2835
+ const D = n.value !== null, V = E, k = n.value;
2840
2836
  try {
2841
- r.value = !0;
2842
- const j = await L(v.value, D ? h : p);
2843
- if (D && (n.value !== W || N !== E)) return;
2844
- const k = j?.results ?? [];
2845
- if (D ? h += k.length : p += k.length, k.length === 0) {
2837
+ s.value = !0;
2838
+ const R = await B(v.value, D ? h : b);
2839
+ if (D && (n.value !== k || V !== E)) return;
2840
+ const L = R?.results ?? [];
2841
+ if (D ? h += L.length : b += L.length, L.length === 0) {
2846
2842
  D ? l.value = !0 : i.value = !0;
2847
2843
  return;
2848
2844
  }
2849
- const R = D ? n.value : t.value, q = new Set(R.map((Te) => String(e.getOptionValue.value(Te)))), fe = k.filter((Te) => !q.has(String(e.getOptionValue.value(Te))));
2850
- D ? (n.value = [...R, ...fe], o.value = j?.totalCount ?? o.value, h >= o.value && (l.value = !0)) : (t.value = [...R, ...fe], a.value = j?.totalCount ?? a.value, p >= a.value && (i.value = !0)), U(fe);
2851
- } catch (j) {
2852
- console.error("useSelectDataSource: error loading more", j);
2845
+ const H = D ? n.value : t.value, xe = new Set(H.map((Te) => String(e.getOptionValue.value(Te)))), de = L.filter((Te) => !xe.has(String(e.getOptionValue.value(Te))));
2846
+ D ? (n.value = [...H, ...de], o.value = R?.totalCount ?? o.value, h >= o.value && (l.value = !0)) : (t.value = [...H, ...de], a.value = R?.totalCount ?? a.value, b >= a.value && (i.value = !0)), K(de);
2847
+ } catch (R) {
2848
+ console.error("useSelectDataSource: error loading more", R);
2853
2849
  } finally {
2854
- r.value = !1;
2850
+ s.value = !1;
2855
2851
  }
2856
2852
  }
2857
- async function ue(L) {
2858
- v.value = L;
2853
+ async function te(B) {
2854
+ v.value = B;
2859
2855
  const D = e.options();
2860
2856
  if (typeof D == "function") {
2861
- const N = ++E;
2857
+ const V = ++E;
2862
2858
  try {
2863
2859
  u.value = !0;
2864
- const W = await D(L);
2865
- if (N !== E) return;
2866
- const j = W?.results ?? [];
2867
- n.value = j, o.value = W?.totalCount ?? 0, h = j.length, l.value = j.length === 0 || h >= o.value, U(j);
2868
- } catch (W) {
2869
- if (N !== E) return;
2870
- console.error("useSelectDataSource: error searching", W), n.value = [], o.value = 0, h = 0, l.value = !0;
2860
+ const k = await D(B);
2861
+ if (V !== E) return;
2862
+ const R = k?.results ?? [];
2863
+ n.value = R, o.value = k?.totalCount ?? 0, h = R.length, l.value = R.length === 0 || h >= o.value, K(R);
2864
+ } catch (k) {
2865
+ if (V !== E) return;
2866
+ console.error("useSelectDataSource: error searching", k), n.value = [], o.value = 0, h = 0, l.value = !0;
2871
2867
  } finally {
2872
- N === E && (u.value = !1);
2868
+ V === E && (u.value = !1);
2873
2869
  }
2874
2870
  } else {
2875
- const N = t.value.filter((W) => {
2876
- const j = e.getOptionLabel.value(W);
2877
- return String(j).toLowerCase().includes(L.toLowerCase());
2871
+ const V = t.value.filter((k) => {
2872
+ const R = e.getOptionLabel.value(k);
2873
+ return String(R).toLowerCase().includes(B.toLowerCase());
2878
2874
  });
2879
- n.value = N, o.value = N.length, h = N.length, l.value = !0;
2875
+ n.value = V, o.value = V.length, h = V.length, l.value = !0;
2880
2876
  }
2881
2877
  }
2882
- function de(L) {
2883
- if (!L?.target) return;
2884
- const D = L.target.value, N = Number(e.debounce());
2885
- b && clearTimeout(b), N > 0 ? b = setTimeout(() => {
2886
- e.emit.search(D), ue(D);
2887
- }, N) : (e.emit.search(D), ue(D));
2878
+ function ce(B) {
2879
+ if (!B?.target) return;
2880
+ const D = B.target.value, V = Number(e.debounce());
2881
+ p && clearTimeout(p), V > 0 ? p = setTimeout(() => {
2882
+ e.emit.search(D), te(D);
2883
+ }, V) : (e.emit.search(D), te(D));
2888
2884
  }
2889
- function le() {
2890
- te();
2885
+ function se() {
2886
+ _();
2891
2887
  }
2892
- async function z(L) {
2893
- if (L.length === 0) return [];
2894
- const N = L.filter((k) => !d.has(String(k))).filter((k) => {
2895
- const R = t.value.find((q) => De(e.getOptionValue.value(q), k));
2896
- return R ? (d.set(String(k), R), !1) : !0;
2897
- }), W = e.options();
2898
- if (N.length > 0 && typeof W == "function") {
2888
+ async function q(B) {
2889
+ if (B.length === 0) return [];
2890
+ const V = B.filter((L) => !d.has(String(L))).filter((L) => {
2891
+ const H = t.value.find((xe) => De(e.getOptionValue.value(xe), L));
2892
+ return H ? (d.set(String(L), H), !1) : !0;
2893
+ }), k = e.options();
2894
+ if (V.length > 0 && typeof k == "function") {
2899
2895
  try {
2900
2896
  g.value = !0;
2901
- const R = await W(void 0, void 0, N);
2902
- R?.results && U(R.results);
2903
- } catch (R) {
2904
- console.error("useSelectDataSource: error resolving", R);
2897
+ const H = await k(void 0, void 0, V);
2898
+ H?.results && K(H.results);
2899
+ } catch (H) {
2900
+ console.error("useSelectDataSource: error resolving", H);
2905
2901
  } finally {
2906
2902
  g.value = !1;
2907
2903
  }
2908
- N.filter((R) => !d.has(String(R))).length > 0 && !c && await X();
2909
- } else if (N.length > 0 && Array.isArray(W))
2910
- for (const k of W) {
2911
- const R = String(e.getOptionValue.value(k));
2912
- N.includes(R) && d.set(R, k);
2904
+ V.filter((H) => !d.has(String(H))).length > 0 && !c && await J();
2905
+ } else if (V.length > 0 && Array.isArray(k))
2906
+ for (const L of k) {
2907
+ const H = String(e.getOptionValue.value(L));
2908
+ V.includes(H) && d.set(H, L);
2913
2909
  }
2914
- const j = L.map((k) => d.get(String(k))).filter(Boolean);
2915
- return m.value = j, j;
2910
+ const R = B.map((L) => d.get(String(L))).filter(Boolean);
2911
+ return m.value = R, R;
2916
2912
  }
2917
- async function B() {
2918
- t.value = [], a.value = 0, p = 0, i.value = !1, te(), d.clear(), m.value = [], c = !1, await X();
2913
+ async function C() {
2914
+ t.value = [], a.value = 0, b = 0, i.value = !1, _(), d.clear(), m.value = [], c = !1, await J();
2919
2915
  }
2920
- return G(
2916
+ return j(
2921
2917
  e.options,
2922
2918
  async () => {
2923
- t.value = [], a.value = 0, p = 0, i.value = !1, te(), d.clear(), c = !1;
2924
- const L = e.options();
2925
- if (Array.isArray(L) && (t.value = [...L], a.value = t.value.length, p = t.value.length, i.value = !0, U(t.value), c = !0, m.value.length === 0)) {
2919
+ t.value = [], a.value = 0, b = 0, i.value = !1, _(), d.clear(), c = !1;
2920
+ const B = e.options();
2921
+ if (Array.isArray(B) && (t.value = [...B], a.value = t.value.length, b = t.value.length, i.value = !0, K(t.value), c = !0, m.value.length === 0)) {
2926
2922
  const D = m.value;
2927
- (D.length === 0 ? t.value.filter((W) => {
2928
- const j = String(e.getOptionValue.value(W));
2929
- return d.has(j);
2923
+ (D.length === 0 ? t.value.filter((k) => {
2924
+ const R = String(e.getOptionValue.value(k));
2925
+ return d.has(R);
2930
2926
  }) : D).length;
2931
2927
  }
2932
2928
  },
2933
2929
  { deep: !1 }
2934
2930
  ), {
2935
- displayItems: O,
2936
- loading: r,
2931
+ displayItems: I,
2932
+ loading: s,
2937
2933
  searchLoading: u,
2938
- hasMore: V,
2934
+ hasMore: F,
2939
2935
  filterString: v,
2940
2936
  resolvedDefaults: m,
2941
2937
  defaultOptionLoading: g,
2942
2938
  cachedItems: t,
2943
- open: X,
2944
- close: ae,
2945
- onInput: de,
2946
- clearSearch: le,
2947
- loadMore: Z,
2948
- resolve: z,
2949
- refresh: B
2939
+ open: J,
2940
+ close: re,
2941
+ onInput: ce,
2942
+ clearSearch: se,
2943
+ loadMore: ae,
2944
+ resolve: q,
2945
+ refresh: C
2950
2946
  };
2951
2947
  }
2952
2948
  function no(e) {
2953
2949
  let t = [];
2954
- const n = I(() => {
2950
+ const n = $(() => {
2955
2951
  const g = e.mapOptions() === !0 && e.multiple() !== !0, d = e.modelValue() !== void 0 && (e.modelValue() !== null || g === !0) ? e.multiple() === !0 && Array.isArray(e.modelValue()) ? e.modelValue() : [e.modelValue()] : [];
2956
2952
  if (e.mapOptions() === !0 && Array.isArray(e.displayItems.value) === !0) {
2957
- const c = e.mapOptions() === !0 && t !== void 0 ? t : [], p = d.map((h) => {
2953
+ const c = e.mapOptions() === !0 && t !== void 0 ? t : [], b = d.map((h) => {
2958
2954
  const E = e.getOption(h, c, e.resolvedDefaults.value, e.displayItems.value);
2959
2955
  if (E === h && e.cachedItems.value.length > 0) {
2960
- const b = e.getOption(h, c, e.resolvedDefaults.value, e.cachedItems.value);
2961
- if (b !== h) return b;
2956
+ const p = e.getOption(h, c, e.resolvedDefaults.value, e.cachedItems.value);
2957
+ if (p !== h) return p;
2962
2958
  }
2963
2959
  return E;
2964
2960
  });
2965
- return e.modelValue() === null && g === !0 ? p.filter((h) => h !== null) : p;
2961
+ return e.modelValue() === null && g === !0 ? b.filter((h) => h !== null) : b;
2966
2962
  }
2967
2963
  return d;
2968
2964
  });
2969
- G(
2965
+ j(
2970
2966
  n,
2971
2967
  (g) => {
2972
2968
  t = g;
2973
2969
  },
2974
2970
  { immediate: !0 }
2975
2971
  );
2976
- const a = I(() => n.value.map((g) => e.getOptionValue.value(g)));
2972
+ const a = $(() => n.value.map((g) => e.getOptionValue.value(g)));
2977
2973
  function o(g) {
2978
2974
  const d = e.getOptionValue.value(g);
2979
2975
  return a.value.find((c) => De(c, d)) !== void 0;
2980
2976
  }
2981
- const i = I(
2977
+ const i = $(
2982
2978
  () => n.value.map((g, d) => ({
2983
2979
  index: d,
2984
2980
  opt: g,
@@ -2986,7 +2982,7 @@ function no(e) {
2986
2982
  toggleOption: u,
2987
2983
  removeAtIndex: v
2988
2984
  }))
2989
- ), l = I(() => e.fieldValueIsFilled(n.value)), r = I(() => e.displayItems.value.map((g, d) => ({
2985
+ ), l = $(() => e.fieldValueIsFilled(n.value)), s = $(() => e.displayItems.value.map((g, d) => ({
2990
2986
  index: d,
2991
2987
  opt: g,
2992
2988
  selected: o(g) === !0,
@@ -3006,9 +3002,9 @@ function no(e) {
3006
3002
  e.emit.updateModelValue(e.multiple() === !0 ? [h] : h);
3007
3003
  return;
3008
3004
  }
3009
- const c = e.modelValue().slice(), p = a.value.findIndex((h) => De(h, d));
3010
- if (p > -1)
3011
- c.splice(p, 1);
3005
+ const c = e.modelValue().slice(), b = a.value.findIndex((h) => De(h, d));
3006
+ if (b > -1)
3007
+ c.splice(b, 1);
3012
3008
  else {
3013
3009
  const h = e.emitValue() === !0 ? d : g;
3014
3010
  c.push(h);
@@ -3035,7 +3031,7 @@ function no(e) {
3035
3031
  selectedScope: i,
3036
3032
  hasValue: l,
3037
3033
  innerOptionsValue: a,
3038
- optionScope: r,
3034
+ optionScope: s,
3039
3035
  toggleOption: u,
3040
3036
  removeAtIndex: v,
3041
3037
  isOptionSelected: o,
@@ -3075,7 +3071,7 @@ const ao = { class: "vc-select__control" }, lo = {
3075
3071
  }, wo = ["aria-label"], Oo = { class: "vc-select__chevron" }, Eo = { class: "vc-select__hint-error" }, Lo = { key: 0 }, Bo = { key: 1 }, Co = {
3076
3072
  key: 1,
3077
3073
  class: "vc-select__append"
3078
- }, xo = /* @__PURE__ */ F({
3074
+ }, xo = /* @__PURE__ */ z({
3079
3075
  __name: "SelectTrigger",
3080
3076
  props: {
3081
3077
  isOpened: { type: Boolean },
@@ -3107,7 +3103,7 @@ const ao = { class: "vc-select__control" }, lo = {
3107
3103
  },
3108
3104
  emits: ["focus", "blur", "reset", "removeAtIndex"],
3109
3105
  setup(e, { expose: t }) {
3110
- const { t: n } = Oe({ useScope: "global" }), a = S(null);
3106
+ const { t: n } = we({ useScope: "global" }), a = S(null);
3111
3107
  return t({
3112
3108
  toggleRef: a
3113
3109
  }), (o, i) => (f(), y("div", {
@@ -3115,29 +3111,29 @@ const ao = { class: "vc-select__control" }, lo = {
3115
3111
  ref: a,
3116
3112
  class: "vc-select__dropdown-toggle"
3117
3113
  }, [
3118
- x(o.$slots, "control", {
3114
+ T(o.$slots, "control", {
3119
3115
  toggleHandler: e.toggleDropdown,
3120
3116
  isOpened: e.isOpened
3121
3117
  }, () => [
3122
- C("div", ao, [
3118
+ x("div", ao, [
3123
3119
  o.$slots.prepend ? (f(), y("div", lo, [
3124
- x(o.$slots, "prepend")
3125
- ])) : $("", !0),
3126
- C("div", {
3127
- class: H(["vc-select__field-wrapper", {
3120
+ T(o.$slots, "prepend")
3121
+ ])) : w("", !0),
3122
+ x("div", {
3123
+ class: W(["vc-select__field-wrapper", {
3128
3124
  "vc-select__field-wrapper--default": e.size === "default",
3129
3125
  "vc-select__field-wrapper--small": e.size === "small"
3130
3126
  }])
3131
3127
  }, [
3132
- C("div", oo, [
3133
- C("div", io, [
3134
- C("div", ro, [
3128
+ x("div", oo, [
3129
+ x("div", io, [
3130
+ x("div", ro, [
3135
3131
  o.$slots["prepend-inner"] ? (f(), y("div", so, [
3136
- x(o.$slots, "prepend-inner")
3137
- ])) : $("", !0),
3138
- C("div", uo, [
3139
- e.prefix ? (f(), y("div", co, M(e.prefix), 1)) : $("", !0),
3140
- C("div", {
3132
+ T(o.$slots, "prepend-inner")
3133
+ ])) : w("", !0),
3134
+ x("div", uo, [
3135
+ e.prefix ? (f(), y("div", co, A(e.prefix), 1)) : w("", !0),
3136
+ x("div", {
3141
3137
  "data-test-id": "dropdown-toggle",
3142
3138
  class: "vc-select__input",
3143
3139
  role: "combobox",
@@ -3149,18 +3145,18 @@ const ao = { class: "vc-select__control" }, lo = {
3149
3145
  "aria-describedby": e.ariaDescribedBy,
3150
3146
  "aria-required": e.ariaRequired,
3151
3147
  "aria-invalid": e.error || void 0,
3152
- onClick: i[0] || (i[0] = Y(
3148
+ onClick: i[0] || (i[0] = G(
3153
3149
  //@ts-ignore
3154
3150
  (...l) => e.toggleDropdown && e.toggleDropdown(...l),
3155
3151
  ["stop"]
3156
3152
  )),
3157
3153
  onKeydown: [
3158
- i[1] || (i[1] = Q(Y(
3154
+ i[1] || (i[1] = X(G(
3159
3155
  //@ts-ignore
3160
3156
  (...l) => e.toggleDropdown && e.toggleDropdown(...l),
3161
3157
  ["stop"]
3162
3158
  ), ["enter"])),
3163
- i[2] || (i[2] = Q(Y(
3159
+ i[2] || (i[2] = X(G(
3164
3160
  //@ts-ignore
3165
3161
  (...l) => e.toggleDropdown && e.toggleDropdown(...l),
3166
3162
  ["stop"]
@@ -3170,50 +3166,50 @@ const ao = { class: "vc-select__control" }, lo = {
3170
3166
  onBlur: i[4] || (i[4] = (l) => o.$emit("blur"))
3171
3167
  }, [
3172
3168
  e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (f(), y("div", go, [
3173
- (f(!0), y(Be, null, st(e.selectedScope, (l, r) => (f(), y("div", {
3174
- key: r,
3169
+ (f(!0), y(Le, null, st(e.selectedScope, (l, s) => (f(), y("div", {
3170
+ key: s,
3175
3171
  class: "vc-select__selected-item"
3176
3172
  }, [
3177
- e.multiple ? x(o.$slots, "selected-item", ne({
3173
+ e.multiple ? T(o.$slots, "selected-item", ee({
3178
3174
  key: 0,
3179
3175
  ref_for: !0
3180
3176
  }, l), () => [
3181
- C("div", mo, [
3182
- e.loading ? (f(), y("span", po, M(s(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : (f(), y("span", bo, M(e.getOptionLabel(l.opt)), 1)),
3183
- e.disabled ? $("", !0) : (f(), y("button", {
3177
+ x("div", mo, [
3178
+ e.loading ? (f(), y("span", po, A(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : (f(), y("span", bo, A(e.getOptionLabel(l.opt)), 1)),
3179
+ e.disabled ? w("", !0) : (f(), y("button", {
3184
3180
  key: 2,
3185
3181
  type: "button",
3186
3182
  class: "vc-select__chip-remove",
3187
3183
  "aria-label": `Remove ${e.getOptionLabel(l.opt) || ""}`,
3188
3184
  tabindex: "0",
3189
- onClick: Y((u) => o.$emit("removeAtIndex", l.index), ["stop"]),
3190
- onKeydown: Q(Y((u) => o.$emit("removeAtIndex", l.index), ["stop", "prevent"]), ["enter"])
3185
+ onClick: G((u) => o.$emit("removeAtIndex", l.index), ["stop"]),
3186
+ onKeydown: X(G((u) => o.$emit("removeAtIndex", l.index), ["stop", "prevent"]), ["enter"])
3191
3187
  }, [
3192
- T(s(K), {
3188
+ M(r(U), {
3193
3189
  class: "vc-select__icon-remove",
3194
3190
  icon: "lucide-x",
3195
3191
  size: "xs"
3196
3192
  })
3197
3193
  ], 40, yo))
3198
3194
  ])
3199
- ]) : e.multiple ? $("", !0) : (f(), y(Be, { key: 1 }, [
3200
- e.loading ? (f(), y("span", ho, M(s(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : x(o.$slots, "selected-item", ne({
3195
+ ]) : e.multiple ? w("", !0) : (f(), y(Le, { key: 1 }, [
3196
+ e.loading ? (f(), y("span", ho, A(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : T(o.$slots, "selected-item", ee({
3201
3197
  key: 1,
3202
3198
  ref_for: !0
3203
3199
  }, l), () => [
3204
- _(M(e.loading ? s(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING") : e.getEmittingOptionValue(l.opt)), 1)
3200
+ Z(A(e.loading ? r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING") : e.getEmittingOptionValue(l.opt)), 1)
3205
3201
  ])
3206
3202
  ], 64))
3207
3203
  ]))), 128))
3208
- ])) : $("", !0) : (f(), y("div", vo, [
3209
- e.placeholder ? (f(), y(Be, { key: 0 }, [
3210
- _(M(e.placeholder), 1)
3211
- ], 64)) : (f(), y(Be, { key: 1 }, [
3212
- _(M(s(n)("COMPONENTS.MOLECULES.VC_SELECT.CLICK_TO_SELECT")), 1)
3204
+ ])) : w("", !0) : (f(), y("div", vo, [
3205
+ e.placeholder ? (f(), y(Le, { key: 0 }, [
3206
+ Z(A(e.placeholder), 1)
3207
+ ], 64)) : (f(), y(Le, { key: 1 }, [
3208
+ Z(A(r(n)("COMPONENTS.MOLECULES.VC_SELECT.CLICK_TO_SELECT")), 1)
3213
3209
  ], 64))
3214
3210
  ]))
3215
3211
  ], 40, fo),
3216
- e.suffix ? (f(), y("div", ko, M(e.suffix), 1)) : $("", !0),
3212
+ e.suffix ? (f(), y("div", ko, A(e.suffix), 1)) : w("", !0),
3217
3213
  e.clearable && e.hasValue && !e.disabled ? (f(), y("div", {
3218
3214
  key: 2,
3219
3215
  class: "vc-select__clear",
@@ -3222,52 +3218,52 @@ const ao = { class: "vc-select__control" }, lo = {
3222
3218
  tabindex: "0",
3223
3219
  onClick: i[5] || (i[5] = (l) => o.$emit("reset")),
3224
3220
  onKeydown: [
3225
- i[6] || (i[6] = Q((l) => o.$emit("reset"), ["enter"])),
3226
- i[7] || (i[7] = Q((l) => o.$emit("reset"), ["space"]))
3221
+ i[6] || (i[6] = X((l) => o.$emit("reset"), ["enter"])),
3222
+ i[7] || (i[7] = X((l) => o.$emit("reset"), ["space"]))
3227
3223
  ]
3228
3224
  }, [
3229
- T(s(K), {
3225
+ M(r(U), {
3230
3226
  size: "xs",
3231
3227
  icon: "lucide-x"
3232
3228
  })
3233
- ], 40, So)) : $("", !0)
3229
+ ], 40, So)) : w("", !0)
3234
3230
  ]),
3235
3231
  o.$slots["append-inner"] ? (f(), y("div", Io, [
3236
- x(o.$slots, "append-inner")
3237
- ])) : $("", !0),
3232
+ T(o.$slots, "append-inner")
3233
+ ])) : w("", !0),
3238
3234
  e.loading || e.listLoading || e.defaultOptionLoading ? (f(), y("div", $o, [
3239
- T(s(K), {
3235
+ M(r(U), {
3240
3236
  icon: "lucide-loader-2",
3241
3237
  class: "tw-animate-spin",
3242
3238
  size: "m"
3243
3239
  })
3244
- ])) : $("", !0),
3245
- e.disabled ? $("", !0) : (f(), y("div", {
3240
+ ])) : w("", !0),
3241
+ e.disabled ? w("", !0) : (f(), y("div", {
3246
3242
  key: 3,
3247
3243
  class: "vc-select__chevron-container",
3248
3244
  role: "button",
3249
3245
  "aria-label": o.$t("COMPONENTS.CONTROLS.TOGGLE_DROPDOWN"),
3250
3246
  tabindex: "0",
3251
- onClick: i[8] || (i[8] = Y(
3247
+ onClick: i[8] || (i[8] = G(
3252
3248
  //@ts-ignore
3253
3249
  (...l) => e.toggleDropdown && e.toggleDropdown(...l),
3254
3250
  ["stop"]
3255
3251
  )),
3256
3252
  onKeydown: [
3257
- i[9] || (i[9] = Q(Y(
3253
+ i[9] || (i[9] = X(G(
3258
3254
  //@ts-ignore
3259
3255
  (...l) => e.toggleDropdown && e.toggleDropdown(...l),
3260
3256
  ["stop"]
3261
3257
  ), ["enter"])),
3262
- i[10] || (i[10] = Q(Y(
3258
+ i[10] || (i[10] = X(G(
3263
3259
  //@ts-ignore
3264
3260
  (...l) => e.toggleDropdown && e.toggleDropdown(...l),
3265
3261
  ["stop"]
3266
3262
  ), ["space"]))
3267
3263
  ]
3268
3264
  }, [
3269
- C("div", Oo, [
3270
- T(s(K), {
3265
+ x("div", Oo, [
3266
+ M(r(U), {
3271
3267
  size: "s",
3272
3268
  icon: "lucide-chevron-down"
3273
3269
  })
@@ -3276,37 +3272,37 @@ const ao = { class: "vc-select__control" }, lo = {
3276
3272
  ])
3277
3273
  ])
3278
3274
  ]),
3279
- C("div", Eo, [
3280
- T(Pe, {
3275
+ x("div", Eo, [
3276
+ M(Pe, {
3281
3277
  name: "slide-up",
3282
3278
  mode: "out-in"
3283
3279
  }, {
3284
- default: w(() => [
3280
+ default: O(() => [
3285
3281
  e.error && e.errorMessage ? (f(), y("div", Lo, [
3286
- x(o.$slots, "error", {}, () => [
3287
- T(s(pe), {
3282
+ T(o.$slots, "error", {}, () => [
3283
+ M(r(me), {
3288
3284
  id: e.errorId,
3289
3285
  class: "vc-select__error-message",
3290
3286
  error: !0
3291
3287
  }, {
3292
- default: w(() => [
3293
- _(M(e.errorMessage), 1)
3288
+ default: O(() => [
3289
+ Z(A(e.errorMessage), 1)
3294
3290
  ]),
3295
3291
  _: 1
3296
3292
  }, 8, ["id"])
3297
3293
  ])
3298
3294
  ])) : (f(), y("div", Bo, [
3299
- x(o.$slots, "hint", {}, () => [
3300
- e.hint ? (f(), P(s(pe), {
3295
+ T(o.$slots, "hint", {}, () => [
3296
+ e.hint ? (f(), P(r(me), {
3301
3297
  key: 0,
3302
3298
  id: e.hintId,
3303
3299
  class: "vc-select__hint"
3304
3300
  }, {
3305
- default: w(() => [
3306
- _(M(e.hint), 1)
3301
+ default: O(() => [
3302
+ Z(A(e.hint), 1)
3307
3303
  ]),
3308
3304
  _: 1
3309
- }, 8, ["id"])) : $("", !0)
3305
+ }, 8, ["id"])) : w("", !0)
3310
3306
  ])
3311
3307
  ]))
3312
3308
  ]),
@@ -3315,8 +3311,8 @@ const ao = { class: "vc-select__control" }, lo = {
3315
3311
  ])
3316
3312
  ], 2),
3317
3313
  o.$slots.append ? (f(), y("div", Co, [
3318
- x(o.$slots, "append")
3319
- ])) : $("", !0)
3314
+ T(o.$slots, "append")
3315
+ ])) : w("", !0)
3320
3316
  ])
3321
3317
  ])
3322
3318
  ], 512));
@@ -3330,7 +3326,7 @@ const ao = { class: "vc-select__control" }, lo = {
3330
3326
  }, Do = { class: "tw-ml-1" }, Vo = {
3331
3327
  key: 1,
3332
3328
  class: "vc-select__no-options"
3333
- }, Po = { class: "vc-select__no-options-text" }, Fo = /* @__PURE__ */ F({
3329
+ }, Po = { class: "vc-select__no-options-text" }, Fo = /* @__PURE__ */ z({
3334
3330
  __name: "SelectDropdown",
3335
3331
  props: {
3336
3332
  isOpened: { type: Boolean },
@@ -3346,40 +3342,40 @@ const ao = { class: "vc-select__control" }, lo = {
3346
3342
  },
3347
3343
  emits: ["input", "clickOutside"],
3348
3344
  setup(e, { expose: t, emit: n }) {
3349
- const a = e, o = n, { t: i } = Oe({ useScope: "global" }), { teleportTarget: l } = wn(), r = S(null), u = S(null), v = S(null), m = S(null), g = I(() => v.value?.viewportRef ?? null);
3345
+ const a = e, o = n, { t: i } = we({ useScope: "global" }), { teleportTarget: l } = wn(), s = S(null), u = S(null), v = S(null), m = S(null), g = $(() => v.value?.viewportRef ?? null);
3350
3346
  function d(c) {
3351
- const p = g.value;
3352
- if (!p) return;
3353
- if (p.contains(c.target)) {
3354
- const E = p.scrollTop <= 0 && c.deltaY < 0, b = Ft(p) && c.deltaY > 0;
3355
- (E || b) && c.preventDefault();
3347
+ const b = g.value;
3348
+ if (!b) return;
3349
+ if (b.contains(c.target)) {
3350
+ const E = b.scrollTop <= 0 && c.deltaY < 0, p = Ft(b) && c.deltaY > 0;
3351
+ (E || p) && c.preventDefault();
3356
3352
  } else
3357
- c.preventDefault(), p.scrollTop += c.deltaY;
3353
+ c.preventDefault(), b.scrollTop += c.deltaY;
3358
3354
  v.value?.updateScrollState();
3359
3355
  }
3360
- return G(
3356
+ return j(
3361
3357
  () => a.isOpened,
3362
3358
  (c) => {
3363
- c && $e(() => v.value?.updateScrollState());
3359
+ c && Ie(() => v.value?.updateScrollState());
3364
3360
  }
3365
- ), G(
3361
+ ), j(
3366
3362
  () => a.optionScope.length,
3367
3363
  () => {
3368
- a.isOpened && $e(() => v.value?.updateScrollState());
3364
+ a.isOpened && Ie(() => v.value?.updateScrollState());
3369
3365
  }
3370
3366
  ), t({
3371
- dropdownElRef: r,
3367
+ dropdownElRef: s,
3372
3368
  searchInputRef: u,
3373
3369
  viewportRef: g,
3374
3370
  loadMoreRef: m
3375
- }), (c, p) => (f(), P(dn, { to: s(l) }, [
3376
- T(Pe, { name: "select-dropdown" }, {
3377
- default: w(() => [
3371
+ }), (c, b) => (f(), P(dn, { to: r(l) }, [
3372
+ M(Pe, { name: "select-dropdown" }, {
3373
+ default: O(() => [
3378
3374
  e.isOpened ? ct((f(), y("div", {
3379
3375
  key: 0,
3380
3376
  id: e.listboxId,
3381
3377
  ref_key: "dropdownElRef",
3382
- ref: r,
3378
+ ref: s,
3383
3379
  "data-test-id": "dropdown",
3384
3380
  class: "vc-select__dropdown",
3385
3381
  role: "listbox",
@@ -3395,75 +3391,75 @@ const ao = { class: "vc-select__control" }, lo = {
3395
3391
  tabindex: "0",
3396
3392
  "aria-label": c.$t("COMPONENTS.CONTROLS.SEARCH_OPTIONS"),
3397
3393
  autocomplete: "off",
3398
- onInput: p[0] || (p[0] = (h) => o("input", h)),
3394
+ onInput: b[0] || (b[0] = (h) => o("input", h)),
3399
3395
  onKeydown: [
3400
- p[1] || (p[1] = Q(Y(() => {
3396
+ b[1] || (b[1] = X(G(() => {
3401
3397
  }, ["stop"]), ["space"])),
3402
- p[2] || (p[2] = Q(Y(() => {
3398
+ b[2] || (b[2] = X(G(() => {
3403
3399
  }, ["stop"]), ["enter"]))
3404
3400
  ]
3405
- }, null, 40, Ro)) : $("", !0),
3406
- T(s(il), {
3401
+ }, null, 40, Ro)) : w("", !0),
3402
+ M(r(il), {
3407
3403
  ref_key: "scrollContainerRef",
3408
3404
  ref: v,
3409
3405
  class: "vc-select__scroll-container"
3410
3406
  }, {
3411
- default: w(() => [
3412
- (f(!0), y(Be, null, st(e.optionScope, (h, E) => (f(), y("div", {
3407
+ default: O(() => [
3408
+ (f(!0), y(Le, null, st(e.optionScope, (h, E) => (f(), y("div", {
3413
3409
  key: E,
3414
- class: H(["vc-select__option", { "vc-select__option--selected": h.selected }]),
3410
+ class: W(["vc-select__option", { "vc-select__option--selected": h.selected }]),
3415
3411
  "data-test-id": "option",
3416
3412
  role: "option",
3417
3413
  "aria-selected": h.selected,
3418
3414
  tabindex: "0",
3419
3415
  "data-index": E,
3420
- onClick: (b) => h.toggleOption(h.opt),
3416
+ onClick: (p) => h.toggleOption(h.opt),
3421
3417
  onKeydown: [
3422
- Q((b) => h.toggleOption(h.opt), ["enter"]),
3423
- Q((b) => h.toggleOption(h.opt), ["space"])
3418
+ X((p) => h.toggleOption(h.opt), ["enter"]),
3419
+ X((p) => h.toggleOption(h.opt), ["space"])
3424
3420
  ]
3425
3421
  }, [
3426
- x(c.$slots, "option", ne({ ref_for: !0 }, h), () => [
3427
- _(M(h.label), 1)
3422
+ T(c.$slots, "option", ee({ ref_for: !0 }, h), () => [
3423
+ Z(A(h.label), 1)
3428
3424
  ]),
3429
3425
  h.selected ? (f(), y("span", Ao, [
3430
- T(s(K), {
3426
+ M(r(U), {
3431
3427
  icon: "lucide-check",
3432
3428
  size: "xs"
3433
3429
  })
3434
- ])) : $("", !0)
3430
+ ])) : w("", !0)
3435
3431
  ], 42, Mo))), 128)),
3436
3432
  e.listLoading ? (f(), y("div", No, [
3437
- T(s(K), {
3433
+ M(r(U), {
3438
3434
  icon: "lucide-loader-2",
3439
3435
  class: "tw-animate-spin",
3440
3436
  size: "m"
3441
3437
  }),
3442
- C("span", Do, M(e.optionsListLength > 0 ? s(i)("COMPONENTS.MOLECULES.VC_SELECT.LOADING_MORE") : s(i)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)
3443
- ])) : $("", !0),
3438
+ x("span", Do, A(e.optionsListLength > 0 ? r(i)("COMPONENTS.MOLECULES.VC_SELECT.LOADING_MORE") : r(i)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)
3439
+ ])) : w("", !0),
3444
3440
  !e.listLoading && !e.optionsListLength ? (f(), y("div", Vo, [
3445
- x(c.$slots, "no-options", {}, () => [
3446
- C("span", Po, M(s(i)("COMPONENTS.MOLECULES.VC_SELECT.NO_OPTIONS")), 1)
3441
+ T(c.$slots, "no-options", {}, () => [
3442
+ x("span", Po, A(r(i)("COMPONENTS.MOLECULES.VC_SELECT.NO_OPTIONS")), 1)
3447
3443
  ])
3448
- ])) : $("", !0),
3444
+ ])) : w("", !0),
3449
3445
  e.hasNextPage && !e.listLoading ? (f(), y("span", {
3450
3446
  key: 2,
3451
3447
  ref_key: "loadMoreRef",
3452
3448
  ref: m,
3453
3449
  class: "vc-select__load-more-trigger"
3454
- }, null, 512)) : $("", !0)
3450
+ }, null, 512)) : w("", !0)
3455
3451
  ]),
3456
3452
  _: 3
3457
3453
  }, 512)
3458
3454
  ], 44, To)), [
3459
- [s(zn), [() => o("clickOutside"), { ignore: [e.dropdownToggleRef] }]]
3460
- ]) : $("", !0)
3455
+ [r(zn), [() => o("clickOutside"), { ignore: [e.dropdownToggleRef] }]]
3456
+ ]) : w("", !0)
3461
3457
  ]),
3462
3458
  _: 3
3463
3459
  })
3464
3460
  ], 8, ["to"]));
3465
3461
  }
3466
- }), zo = ["innerHTML"], qo = { class: "vc-select__field-container" }, Uo = /* @__PURE__ */ F({
3462
+ }), zo = ["innerHTML"], qo = { class: "vc-select__field-container" }, Uo = /* @__PURE__ */ z({
3467
3463
  inheritAttrs: !1,
3468
3464
  __name: "vc-select",
3469
3465
  props: {
@@ -3497,67 +3493,67 @@ const ao = { class: "vc-select__control" }, lo = {
3497
3493
  },
3498
3494
  emits: ["update:modelValue", "search", "close"],
3499
3495
  setup(e, { emit: t }) {
3500
- const n = e, a = Lt(), o = I(() => {
3501
- const { class: A, ...ee } = a;
3502
- return ee;
3503
- }), i = t, { t: l } = Oe({ useScope: "global" }), r = Ee(), {
3496
+ const n = e, a = Lt(), o = $(() => {
3497
+ const { class: N, ...Q } = a;
3498
+ return Q;
3499
+ }), i = t, { t: l } = we({ useScope: "global" }), s = Oe(), {
3504
3500
  fieldId: u,
3505
3501
  labelId: v,
3506
3502
  errorId: m,
3507
3503
  hintId: g,
3508
3504
  invalid: d,
3509
3505
  resolvedDisabled: c,
3510
- resolvedName: p,
3506
+ resolvedName: b,
3511
3507
  ariaRequired: h,
3512
3508
  ariaDescribedBy: E
3513
- } = He(n), b = I(() => `${u.value}-listbox`), O = S(null), V = S(null), { selectRootRef: U, isSelectVisible: te, ensureVisibility: X } = _l(), { getOptionValue: ae, getOptionLabel: Z, getOption: ue, getEmittingOptionValue: de, fieldValueIsFilled: le } = Ql({
3509
+ } = He(n), p = $(() => `${u.value}-listbox`), I = S(null), F = S(null), { selectRootRef: K, isSelectVisible: _, ensureVisibility: J } = _l(), { getOptionValue: re, getOptionLabel: ae, getOption: te, getEmittingOptionValue: ce, fieldValueIsFilled: se } = Ql({
3514
3510
  optionValue: () => n.optionValue,
3515
3511
  optionLabel: () => n.optionLabel
3516
- }), { isOpened: z, isFocused: B, dropdownToggleRef: L, dropdownRef: D, popper: N, dropdownStyle: W, toggleDropdown: j } = eo({
3512
+ }), { isOpened: q, isFocused: C, dropdownToggleRef: B, dropdownRef: D, popper: V, dropdownStyle: k, toggleDropdown: R } = eo({
3517
3513
  placement: n.placement,
3518
3514
  outline: () => n.outline,
3519
- isSelectVisible: te,
3520
- selectRootRef: U,
3515
+ isSelectVisible: _,
3516
+ selectRootRef: K,
3521
3517
  disabled: () => n.disabled ?? !1,
3522
- ensureVisibility: X
3518
+ ensureVisibility: J
3523
3519
  });
3524
3520
  tt(() => {
3525
- L.value = O.value?.toggleRef ?? null;
3521
+ B.value = I.value?.toggleRef ?? null;
3526
3522
  }), tt(() => {
3527
- D.value = V.value?.dropdownElRef ?? null;
3523
+ D.value = F.value?.dropdownElRef ?? null;
3528
3524
  });
3529
- const k = to({
3525
+ const L = to({
3530
3526
  options: () => n.options,
3531
- getOptionValue: ae,
3532
- getOptionLabel: Z,
3533
- isSelectVisible: te,
3527
+ getOptionValue: re,
3528
+ getOptionLabel: ae,
3529
+ isSelectVisible: _,
3534
3530
  debounce: () => n.debounce ?? 500,
3535
3531
  emit: {
3536
- search: (A) => i("search", A)
3532
+ search: (N) => i("search", N)
3537
3533
  }
3538
- }), { selectedScope: R, hasValue: q, optionScope: fe, removeAtIndex: Te, onReset: _t } = no({
3534
+ }), { selectedScope: H, hasValue: xe, optionScope: de, removeAtIndex: Te, onReset: _t } = no({
3539
3535
  modelValue: () => n.modelValue,
3540
3536
  multiple: () => n.multiple,
3541
3537
  emitValue: () => n.emitValue ?? !0,
3542
3538
  mapOptions: () => n.mapOptions ?? !0,
3543
- displayItems: k.displayItems,
3544
- resolvedDefaults: k.resolvedDefaults,
3545
- cachedItems: k.cachedItems,
3546
- getOptionValue: ae,
3547
- getOptionLabel: Z,
3548
- getOption: ue,
3549
- fieldValueIsFilled: le,
3550
- isOpened: z,
3551
- popperUpdate: () => N.update(),
3539
+ displayItems: L.displayItems,
3540
+ resolvedDefaults: L.resolvedDefaults,
3541
+ cachedItems: L.cachedItems,
3542
+ getOptionValue: re,
3543
+ getOptionLabel: ae,
3544
+ getOption: te,
3545
+ fieldValueIsFilled: se,
3546
+ isOpened: q,
3547
+ popperUpdate: () => V.update(),
3552
3548
  emit: {
3553
- updateModelValue: (A) => i("update:modelValue", A),
3549
+ updateModelValue: (N) => i("update:modelValue", N),
3554
3550
  close: () => i("close")
3555
3551
  }
3556
- }), en = I(() => V.value?.loadMoreRef ?? null), tn = I(() => V.value?.viewportRef ?? null);
3552
+ }), en = $(() => F.value?.loadMoreRef ?? null), tn = $(() => F.value?.viewportRef ?? null);
3557
3553
  Tn(
3558
3554
  en,
3559
- ([{ isIntersecting: A }]) => {
3560
- A && k.hasMore.value && k.loadMore();
3555
+ ([{ isIntersecting: N }]) => {
3556
+ N && L.hasMore.value && L.loadMore();
3561
3557
  },
3562
3558
  // The trigger is a 1px line at the end of the list. Asking for all of it to show never fires
3563
3559
  // under a fractional zoom, where the scrolled-to-end line sits a fraction past the viewport.
@@ -3565,224 +3561,224 @@ const ao = { class: "vc-select__control" }, lo = {
3565
3561
  { threshold: 0, rootMargin: "0px 0px 48px 0px", root: tn }
3566
3562
  );
3567
3563
  const Xe = Zl({
3568
- onEnter: (A) => {
3569
- const ee = parseInt(A.getAttribute("data-index") || "0", 10);
3570
- fe.value && fe.value[ee] && fe.value[ee].toggleOption(fe.value[ee].opt);
3564
+ onEnter: (N) => {
3565
+ const Q = parseInt(N.getAttribute("data-index") || "0", 10);
3566
+ de.value && de.value[Q] && de.value[Q].toggleOption(de.value[Q].opt);
3571
3567
  },
3572
3568
  onEscape: () => {
3573
- z.value = !1, i("close"), $e(() => {
3574
- O.value?.toggleRef?.querySelector('[role="combobox"]')?.focus();
3569
+ q.value = !1, i("close"), Ie(() => {
3570
+ I.value?.toggleRef?.querySelector('[role="combobox"]')?.focus();
3575
3571
  });
3576
3572
  }
3577
3573
  });
3578
3574
  function nn() {
3579
- z.value = !1, i("close");
3575
+ q.value = !1, i("close");
3580
3576
  }
3581
- return G(z, async (A) => {
3582
- A ? (await k.open(), $e(() => {
3583
- N.update();
3584
- const ee = V.value?.dropdownElRef, ie = V.value?.searchInputRef;
3585
- if (ee)
3586
- if (Xe.initKeyboardNavigation(ee), n.searchable && ie)
3587
- ie.focus();
3577
+ return j(q, async (N) => {
3578
+ N ? (await L.open(), Ie(() => {
3579
+ V.update();
3580
+ const Q = F.value?.dropdownElRef, le = F.value?.searchInputRef;
3581
+ if (Q)
3582
+ if (Xe.initKeyboardNavigation(Q), n.searchable && le)
3583
+ le.focus();
3588
3584
  else {
3589
- const Re = ee.querySelector(
3585
+ const Re = Q.querySelector(
3590
3586
  '.vc-select__option[tabindex="0"], .vc-select__search-input[tabindex="0"]'
3591
3587
  );
3592
3588
  Re ? Re.focus() : Xe.focusFirstElement();
3593
3589
  }
3594
- })) : (Xe.cleanupKeyboardNavigation(), k.close());
3595
- }), G(
3590
+ })) : (Xe.cleanupKeyboardNavigation(), L.close());
3591
+ }), j(
3596
3592
  () => n.modelValue,
3597
- async (A) => {
3598
- if (A == null || Array.isArray(A) && A.length === 0) {
3599
- k.resolvedDefaults.value = [];
3593
+ async (N) => {
3594
+ if (N == null || Array.isArray(N) && N.length === 0) {
3595
+ L.resolvedDefaults.value = [];
3600
3596
  return;
3601
3597
  }
3602
- const ee = n.emitValue ?? !0;
3598
+ const Q = n.emitValue ?? !0;
3603
3599
  if (n.mapOptions ?? !0) {
3604
- const Re = Array.isArray(A) ? A : [A], ht = ee ? Re : Re.filter((Me) => Me != null && typeof Me != "object");
3600
+ const Re = Array.isArray(N) ? N : [N], ht = Q ? Re : Re.filter((Me) => Me != null && typeof Me != "object");
3605
3601
  if (ht.length > 0) {
3606
3602
  const Me = ht.filter((an) => an != null).map(String);
3607
- Me.length > 0 && await k.resolve(Me);
3603
+ Me.length > 0 && await L.resolve(Me);
3608
3604
  }
3609
3605
  }
3610
3606
  },
3611
3607
  { immediate: !0 }
3612
- ), (A, ee) => s(r) ? (f(), y("div", ne({ key: 0 }, o.value, {
3613
- class: ["vc-select vc-select--skeleton", A.$attrs.class]
3608
+ ), (N, Q) => r(s) ? (f(), y("div", ee({ key: 0 }, o.value, {
3609
+ class: ["vc-select vc-select--skeleton", N.$attrs.class]
3614
3610
  }), [
3615
- e.label ? (f(), P(s(oe), {
3611
+ e.label ? (f(), P(r(ne), {
3616
3612
  key: 0,
3617
3613
  variant: "block",
3618
3614
  width: 60 + (e.label?.length || 0) * 4,
3619
3615
  height: 11
3620
- }, null, 8, ["width"])) : $("", !0),
3621
- T(s(oe), {
3616
+ }, null, 8, ["width"])) : w("", !0),
3617
+ M(r(ne), {
3622
3618
  variant: "block",
3623
3619
  width: "100%",
3624
3620
  height: 36
3625
3621
  })
3626
- ], 16)) : (f(), y("div", ne({
3622
+ ], 16)) : (f(), y("div", ee({
3627
3623
  key: 1,
3628
3624
  ref_key: "selectRootRef",
3629
- ref: U
3625
+ ref: K
3630
3626
  }, o.value, {
3631
3627
  class: ["vc-select", [
3632
- A.$attrs.class,
3628
+ N.$attrs.class,
3633
3629
  {
3634
- "vc-select--opened": s(z),
3635
- "vc-select--error": s(d),
3636
- "vc-select--disabled": s(c),
3637
- "vc-select--has-hint-or-error": s(d) || e.hint,
3630
+ "vc-select--opened": r(q),
3631
+ "vc-select--error": r(d),
3632
+ "vc-select--disabled": r(c),
3633
+ "vc-select--has-hint-or-error": r(d) || e.hint,
3638
3634
  "vc-select--no-outline": !e.outline,
3639
- "vc-select--focused": s(B)
3635
+ "vc-select--focused": r(C)
3640
3636
  }
3641
3637
  ]]
3642
3638
  }), [
3643
- e.label ? (f(), P(s(Je), {
3639
+ e.label ? (f(), P(r(Je), {
3644
3640
  key: 0,
3645
- id: s(v),
3641
+ id: r(v),
3646
3642
  class: "vc-select__label",
3647
3643
  required: e.required,
3648
3644
  multilanguage: e.multilanguage,
3649
3645
  "current-language": e.currentLanguage,
3650
- error: s(d)
3651
- }, re({
3652
- default: w(() => [
3653
- C("span", null, M(e.label), 1)
3646
+ error: r(d)
3647
+ }, oe({
3648
+ default: O(() => [
3649
+ x("span", null, A(e.label), 1)
3654
3650
  ]),
3655
3651
  _: 2
3656
3652
  }, [
3657
3653
  e.tooltip ? {
3658
3654
  name: "tooltip",
3659
- fn: w(() => [
3660
- C("span", {
3661
- innerHTML: s(Dt).sanitize(e.tooltip)
3655
+ fn: O(() => [
3656
+ x("span", {
3657
+ innerHTML: r(Dt).sanitize(e.tooltip)
3662
3658
  }, null, 8, zo)
3663
3659
  ]),
3664
3660
  key: "0"
3665
3661
  } : void 0
3666
- ]), 1032, ["id", "required", "multilanguage", "current-language", "error"])) : $("", !0),
3667
- C("div", qo, [
3668
- T(xo, {
3662
+ ]), 1032, ["id", "required", "multilanguage", "current-language", "error"])) : w("", !0),
3663
+ x("div", qo, [
3664
+ M(xo, {
3669
3665
  ref_key: "selectTriggerRef",
3670
- ref: O,
3671
- "is-opened": s(z),
3672
- "has-value": s(q),
3673
- "selected-scope": s(R),
3666
+ ref: I,
3667
+ "is-opened": r(q),
3668
+ "has-value": r(xe),
3669
+ "selected-scope": r(H),
3674
3670
  multiple: e.multiple,
3675
3671
  loading: e.loading,
3676
- disabled: s(c),
3672
+ disabled: r(c),
3677
3673
  clearable: e.clearable,
3678
3674
  placeholder: e.placeholder,
3679
3675
  prefix: e.prefix,
3680
3676
  suffix: e.suffix,
3681
3677
  size: e.size,
3682
- error: s(d),
3678
+ error: r(d),
3683
3679
  "error-message": e.errorMessage,
3684
3680
  hint: e.hint,
3685
- "list-loading": s(k).loading.value || s(k).searchLoading.value,
3686
- "default-option-loading": s(k).defaultOptionLoading.value,
3687
- "listbox-id": b.value,
3688
- "label-id": s(v),
3681
+ "list-loading": r(L).loading.value || r(L).searchLoading.value,
3682
+ "default-option-loading": r(L).defaultOptionLoading.value,
3683
+ "listbox-id": p.value,
3684
+ "label-id": r(v),
3689
3685
  label: e.label,
3690
- "aria-described-by": s(E),
3691
- "aria-required": s(h),
3692
- "error-id": s(m),
3693
- "hint-id": s(g),
3694
- "toggle-dropdown": s(j),
3695
- "get-option-label": s(Z),
3696
- "get-emitting-option-value": s(de),
3697
- onFocus: ee[0] || (ee[0] = (ie) => B.value = !0),
3698
- onBlur: ee[1] || (ee[1] = (ie) => B.value = !1),
3699
- onReset: s(_t),
3700
- onRemoveAtIndex: s(Te)
3701
- }, re({ _: 2 }, [
3702
- A.$slots.control ? {
3686
+ "aria-described-by": r(E),
3687
+ "aria-required": r(h),
3688
+ "error-id": r(m),
3689
+ "hint-id": r(g),
3690
+ "toggle-dropdown": r(R),
3691
+ "get-option-label": r(ae),
3692
+ "get-emitting-option-value": r(ce),
3693
+ onFocus: Q[0] || (Q[0] = (le) => C.value = !0),
3694
+ onBlur: Q[1] || (Q[1] = (le) => C.value = !1),
3695
+ onReset: r(_t),
3696
+ onRemoveAtIndex: r(Te)
3697
+ }, oe({ _: 2 }, [
3698
+ N.$slots.control ? {
3703
3699
  name: "control",
3704
- fn: w((ie) => [
3705
- x(A.$slots, "control", Ae(Ne(ie)))
3700
+ fn: O((le) => [
3701
+ T(N.$slots, "control", Ae(Ne(le)))
3706
3702
  ]),
3707
3703
  key: "0"
3708
3704
  } : void 0,
3709
- A.$slots.prepend ? {
3705
+ N.$slots.prepend ? {
3710
3706
  name: "prepend",
3711
- fn: w(() => [
3712
- x(A.$slots, "prepend")
3707
+ fn: O(() => [
3708
+ T(N.$slots, "prepend")
3713
3709
  ]),
3714
3710
  key: "1"
3715
3711
  } : void 0,
3716
- A.$slots.append ? {
3712
+ N.$slots.append ? {
3717
3713
  name: "append",
3718
- fn: w(() => [
3719
- x(A.$slots, "append")
3714
+ fn: O(() => [
3715
+ T(N.$slots, "append")
3720
3716
  ]),
3721
3717
  key: "2"
3722
3718
  } : void 0,
3723
- A.$slots["prepend-inner"] ? {
3719
+ N.$slots["prepend-inner"] ? {
3724
3720
  name: "prepend-inner",
3725
- fn: w(() => [
3726
- x(A.$slots, "prepend-inner")
3721
+ fn: O(() => [
3722
+ T(N.$slots, "prepend-inner")
3727
3723
  ]),
3728
3724
  key: "3"
3729
3725
  } : void 0,
3730
- A.$slots["append-inner"] ? {
3726
+ N.$slots["append-inner"] ? {
3731
3727
  name: "append-inner",
3732
- fn: w(() => [
3733
- x(A.$slots, "append-inner")
3728
+ fn: O(() => [
3729
+ T(N.$slots, "append-inner")
3734
3730
  ]),
3735
3731
  key: "4"
3736
3732
  } : void 0,
3737
- A.$slots["selected-item"] ? {
3733
+ N.$slots["selected-item"] ? {
3738
3734
  name: "selected-item",
3739
- fn: w((ie) => [
3740
- x(A.$slots, "selected-item", Ae(Ne(ie)))
3735
+ fn: O((le) => [
3736
+ T(N.$slots, "selected-item", Ae(Ne(le)))
3741
3737
  ]),
3742
3738
  key: "5"
3743
3739
  } : void 0,
3744
- A.$slots.error ? {
3740
+ N.$slots.error ? {
3745
3741
  name: "error",
3746
- fn: w(() => [
3747
- x(A.$slots, "error")
3742
+ fn: O(() => [
3743
+ T(N.$slots, "error")
3748
3744
  ]),
3749
3745
  key: "6"
3750
3746
  } : void 0,
3751
- A.$slots.hint ? {
3747
+ N.$slots.hint ? {
3752
3748
  name: "hint",
3753
- fn: w(() => [
3754
- x(A.$slots, "hint")
3749
+ fn: O(() => [
3750
+ T(N.$slots, "hint")
3755
3751
  ]),
3756
3752
  key: "7"
3757
3753
  } : void 0
3758
3754
  ]), 1032, ["is-opened", "has-value", "selected-scope", "multiple", "loading", "disabled", "clearable", "placeholder", "prefix", "suffix", "size", "error", "error-message", "hint", "list-loading", "default-option-loading", "listbox-id", "label-id", "label", "aria-described-by", "aria-required", "error-id", "hint-id", "toggle-dropdown", "get-option-label", "get-emitting-option-value", "onReset", "onRemoveAtIndex"]),
3759
- T(Fo, ne({
3755
+ M(Fo, ee({
3760
3756
  ref_key: "selectDropdownRef",
3761
- ref: V,
3762
- "is-opened": s(z),
3763
- "listbox-id": b.value
3757
+ ref: F,
3758
+ "is-opened": r(q),
3759
+ "listbox-id": p.value
3764
3760
  }, { ariaLabel: e.label || e.name }, {
3765
- "dropdown-style": s(W),
3761
+ "dropdown-style": r(k),
3766
3762
  searchable: e.searchable,
3767
- "option-scope": s(fe),
3768
- "list-loading": s(k).loading.value || s(k).searchLoading.value,
3769
- "options-list-length": s(k).displayItems.value.length,
3770
- "has-next-page": s(k).hasMore.value,
3771
- "dropdown-toggle-ref": O.value?.toggleRef ?? null,
3772
- onInput: s(k).onInput,
3763
+ "option-scope": r(de),
3764
+ "list-loading": r(L).loading.value || r(L).searchLoading.value,
3765
+ "options-list-length": r(L).displayItems.value.length,
3766
+ "has-next-page": r(L).hasMore.value,
3767
+ "dropdown-toggle-ref": I.value?.toggleRef ?? null,
3768
+ onInput: r(L).onInput,
3773
3769
  onClickOutside: nn
3774
- }), re({ _: 2 }, [
3775
- A.$slots.option ? {
3770
+ }), oe({ _: 2 }, [
3771
+ N.$slots.option ? {
3776
3772
  name: "option",
3777
- fn: w((ie) => [
3778
- x(A.$slots, "option", Ae(Ne(ie)))
3773
+ fn: O((le) => [
3774
+ T(N.$slots, "option", Ae(Ne(le)))
3779
3775
  ]),
3780
3776
  key: "0"
3781
3777
  } : void 0,
3782
- A.$slots["no-options"] ? {
3778
+ N.$slots["no-options"] ? {
3783
3779
  name: "no-options",
3784
- fn: w(() => [
3785
- x(A.$slots, "no-options")
3780
+ fn: O(() => [
3781
+ T(N.$slots, "no-options")
3786
3782
  ]),
3787
3783
  key: "1"
3788
3784
  } : void 0
@@ -3793,7 +3789,7 @@ const ao = { class: "vc-select__control" }, lo = {
3793
3789
  }), Ko = {
3794
3790
  key: 0,
3795
3791
  class: "vc-input-dropdown vc-input-dropdown--skeleton"
3796
- }, Wo = { class: "tw-flex tw-items-center" }, jo = ["aria-label", "aria-expanded", "onClick", "onKeydown"], Ho = /* @__PURE__ */ F({
3792
+ }, Wo = { class: "tw-flex tw-items-center" }, jo = ["aria-label", "aria-expanded", "onClick", "onKeydown"], Ho = /* @__PURE__ */ z({
3797
3793
  __name: "vc-input-dropdown",
3798
3794
  props: {
3799
3795
  modelValue: {},
@@ -3826,20 +3822,20 @@ const ao = { class: "vc-select__control" }, lo = {
3826
3822
  },
3827
3823
  emits: ["update:model-value", "update:option", "change", "blur"],
3828
3824
  setup(e) {
3829
- const t = Ee();
3830
- return (n, a) => s(t) ? (f(), y("div", Ko, [
3831
- e.label ? (f(), P(s(oe), {
3825
+ const t = Oe();
3826
+ return (n, a) => r(t) ? (f(), y("div", Ko, [
3827
+ e.label ? (f(), P(r(ne), {
3832
3828
  key: 0,
3833
3829
  variant: "block",
3834
3830
  width: 60 + (e.label?.length || 0) * 4,
3835
3831
  height: 11
3836
- }, null, 8, ["width"])) : $("", !0),
3837
- T(s(oe), {
3832
+ }, null, 8, ["width"])) : w("", !0),
3833
+ M(r(ne), {
3838
3834
  variant: "block",
3839
3835
  width: "100%",
3840
3836
  height: 36
3841
3837
  })
3842
- ])) : (f(), P(s(Uo), {
3838
+ ])) : (f(), P(r(Uo), {
3843
3839
  key: 1,
3844
3840
  class: "vc-input-dropdown",
3845
3841
  options: e.options,
@@ -3856,11 +3852,11 @@ const ao = { class: "vc-select__control" }, lo = {
3856
3852
  "current-language": e.currentLanguage,
3857
3853
  "onUpdate:modelValue": a[2] || (a[2] = (o) => n.$emit("update:option", o))
3858
3854
  }, {
3859
- option: w((o) => [
3860
- x(n.$slots, "option", Ae(Ne(o)))
3855
+ option: O((o) => [
3856
+ T(n.$slots, "option", Ae(Ne(o)))
3861
3857
  ]),
3862
- control: w(({ toggleHandler: o, isOpened: i }) => [
3863
- T(s(bt), {
3858
+ control: O(({ toggleHandler: o, isOpened: i }) => [
3859
+ M(r(bt), {
3864
3860
  placeholder: e.placeholder,
3865
3861
  hint: e.hint,
3866
3862
  clearable: e.clearable,
@@ -3879,10 +3875,10 @@ const ao = { class: "vc-select__control" }, lo = {
3879
3875
  class: "vc-input-dropdown__input",
3880
3876
  "onUpdate:modelValue": a[0] || (a[0] = (l) => n.$emit("update:model-value", l)),
3881
3877
  onBlur: a[1] || (a[1] = (l) => n.$emit("blur", l))
3882
- }, re({
3883
- "append-inner": w(() => [
3884
- C("div", Wo, [
3885
- x(n.$slots, "button", { toggleHandler: o }, () => [
3878
+ }, oe({
3879
+ "append-inner": O(() => [
3880
+ x("div", Wo, [
3881
+ T(n.$slots, "button", { toggleHandler: o }, () => [
3886
3882
  e.options && e.options.length ? (f(), y("button", {
3887
3883
  key: 0,
3888
3884
  type: "button",
@@ -3891,52 +3887,52 @@ const ao = { class: "vc-select__control" }, lo = {
3891
3887
  "aria-label": n.$t("COMPONENTS.CONTROLS.SELECT_OPTION"),
3892
3888
  "aria-expanded": i,
3893
3889
  "aria-haspopup": "listbox",
3894
- onClick: Y(o, ["stop", "prevent"]),
3890
+ onClick: G(o, ["stop", "prevent"]),
3895
3891
  onKeydown: [
3896
- Q(Y(o, ["stop", "prevent"]), ["enter"]),
3897
- Q(Y(o, ["stop", "prevent"]), ["space"])
3892
+ X(G(o, ["stop", "prevent"]), ["enter"]),
3893
+ X(G(o, ["stop", "prevent"]), ["space"])
3898
3894
  ]
3899
- }, M(s(e.option)), 41, jo)) : $("", !0)
3895
+ }, A(r(e.option)), 41, jo)) : w("", !0)
3900
3896
  ]),
3901
- e.options && e.options.length ? (f(), P(s(Ma), {
3897
+ e.options && e.options.length ? (f(), P(r(Ma), {
3902
3898
  key: 0,
3903
3899
  icon: i ? "lucide-chevron-up" : "lucide-chevron-down",
3904
3900
  "icon-size": "s",
3905
3901
  text: "",
3906
3902
  "aria-label": n.$t("COMPONENTS.CONTROLS.TOGGLE_DROPDOWN"),
3907
3903
  "icon-class": "vc-input-dropdown__toggle-button-icon",
3908
- onClick: Y(o, ["stop", "prevent"])
3909
- }, null, 8, ["icon", "aria-label", "onClick"])) : $("", !0)
3904
+ onClick: G(o, ["stop", "prevent"])
3905
+ }, null, 8, ["icon", "aria-label", "onClick"])) : w("", !0)
3910
3906
  ]),
3911
- n.$slots["append-inner"] ? x(n.$slots, "append-inner", { key: 0 }) : $("", !0)
3907
+ n.$slots["append-inner"] ? T(n.$slots, "append-inner", { key: 0 }) : w("", !0)
3912
3908
  ]),
3913
3909
  _: 2
3914
3910
  }, [
3915
3911
  n.$slots.control ? {
3916
3912
  name: "control",
3917
- fn: w((l) => [
3918
- x(n.$slots, "control", Ae(Ne(l)))
3913
+ fn: O((l) => [
3914
+ T(n.$slots, "control", Ae(Ne(l)))
3919
3915
  ]),
3920
3916
  key: "0"
3921
3917
  } : void 0,
3922
3918
  n.$slots["prepend-inner"] ? {
3923
3919
  name: "prepend-inner",
3924
- fn: w(() => [
3925
- x(n.$slots, "prepend-inner")
3920
+ fn: O(() => [
3921
+ T(n.$slots, "prepend-inner")
3926
3922
  ]),
3927
3923
  key: "1"
3928
3924
  } : void 0,
3929
3925
  n.$slots.append ? {
3930
3926
  name: "append",
3931
- fn: w(() => [
3932
- x(n.$slots, "append")
3927
+ fn: O(() => [
3928
+ T(n.$slots, "append")
3933
3929
  ]),
3934
3930
  key: "2"
3935
3931
  } : void 0,
3936
3932
  n.$slots.prepend ? {
3937
3933
  name: "prepend",
3938
- fn: w(() => [
3939
- x(n.$slots, "prepend")
3934
+ fn: O(() => [
3935
+ T(n.$slots, "prepend")
3940
3936
  ]),
3941
3937
  key: "3"
3942
3938
  } : void 0
@@ -3948,7 +3944,7 @@ const ao = { class: "vc-select__control" }, lo = {
3948
3944
  }), Go = {
3949
3945
  key: 0,
3950
3946
  class: "vc-input-currency vc-input-currency--skeleton"
3951
- }, Yo = ["disabled", "placeholder", "aria-label"], Jo = /* @__PURE__ */ F({
3947
+ }, Yo = ["disabled", "placeholder", "aria-label"], Jo = /* @__PURE__ */ z({
3952
3948
  __name: "vc-input-currency",
3953
3949
  props: {
3954
3950
  modelValue: {},
@@ -3978,7 +3974,7 @@ const ao = { class: "vc-select__control" }, lo = {
3978
3974
  },
3979
3975
  emits: ["update:model-value", "update:option", "change", "blur"],
3980
3976
  setup(e, { emit: t }) {
3981
- const n = e, a = t, o = Ee(), { inputRef: i, setOptions: l, numberValue: r, setValue: u } = Vn(
3977
+ const n = e, a = t, o = Oe(), { inputRef: i, setOptions: l, numberValue: s, setValue: u } = Vn(
3982
3978
  {
3983
3979
  locale: navigator.language,
3984
3980
  currency: n.option || "USD",
@@ -3989,7 +3985,7 @@ const ao = { class: "vc-select__control" }, lo = {
3989
3985
  hideNegligibleDecimalDigitsOnFocus: !1
3990
3986
  }
3991
3987
  );
3992
- G(
3988
+ j(
3993
3989
  () => n.option,
3994
3990
  (c) => {
3995
3991
  c && l({
@@ -4002,16 +3998,16 @@ const ao = { class: "vc-select__control" }, lo = {
4002
3998
  hideNegligibleDecimalDigitsOnFocus: !1
4003
3999
  });
4004
4000
  }
4005
- ), G(
4001
+ ), j(
4006
4002
  () => n.modelValue,
4007
4003
  (c) => {
4008
4004
  u(c);
4009
4005
  }
4010
- ), G(r, (c) => {
4006
+ ), j(s, (c) => {
4011
4007
  a("update:model-value", c);
4012
4008
  });
4013
4009
  function v(c) {
4014
- i.value && (i.value.value = c), r.value = typeof c == "number" ? c : c === null ? null : parseFloat(String(c)) || null, a("update:model-value", r.value);
4010
+ i.value && (i.value.value = c), s.value = typeof c == "number" ? c : c === null ? null : parseFloat(String(c)) || null, a("update:model-value", s.value);
4015
4011
  }
4016
4012
  function m(c) {
4017
4013
  a("blur", c);
@@ -4020,28 +4016,28 @@ const ao = { class: "vc-select__control" }, lo = {
4020
4016
  if ((c.key === "-" || c.key === "e") && c.preventDefault(), c.key !== "Tab") {
4021
4017
  if (c.key === "Enter") {
4022
4018
  c.target && c.target.blur();
4023
- const p = Array.from(document.querySelectorAll('[tabindex="0"]:not(:disabled)')), h = p.indexOf(c.target);
4024
- h >= 0 && h < p.length - 1 && p[h + 1].focus();
4019
+ const b = Array.from(document.querySelectorAll('[tabindex="0"]:not(:disabled)')), h = b.indexOf(c.target);
4020
+ h >= 0 && h < b.length - 1 && b[h + 1].focus();
4025
4021
  }
4026
4022
  }
4027
4023
  }
4028
4024
  function d(c) {
4029
- const p = c.clipboardData?.getData("text/plain");
4030
- typeof p < "u" && parseInt(p) < 0 && c.preventDefault();
4025
+ const b = c.clipboardData?.getData("text/plain");
4026
+ typeof b < "u" && parseInt(b) < 0 && c.preventDefault();
4031
4027
  }
4032
- return (c, p) => s(o) ? (f(), y("div", Go, [
4033
- e.label ? (f(), P(s(oe), {
4028
+ return (c, b) => r(o) ? (f(), y("div", Go, [
4029
+ e.label ? (f(), P(r(ne), {
4034
4030
  key: 0,
4035
4031
  variant: "block",
4036
4032
  width: 60 + (e.label?.length || 0) * 4,
4037
4033
  height: 11
4038
- }, null, 8, ["width"])) : $("", !0),
4039
- T(s(oe), {
4034
+ }, null, 8, ["width"])) : w("", !0),
4035
+ M(r(ne), {
4040
4036
  variant: "block",
4041
4037
  width: "100%",
4042
4038
  height: 36
4043
4039
  })
4044
- ])) : (f(), P(s(Ho), {
4040
+ ])) : (f(), P(r(Ho), {
4045
4041
  key: 1,
4046
4042
  class: "vc-input-currency",
4047
4043
  options: e.options,
@@ -4053,7 +4049,7 @@ const ao = { class: "vc-select__control" }, lo = {
4053
4049
  label: e.label,
4054
4050
  required: e.required,
4055
4051
  option: e.option,
4056
- "model-value": s(r),
4052
+ "model-value": r(s),
4057
4053
  tooltip: e.tooltip,
4058
4054
  placeholder: e.placeholder,
4059
4055
  hint: e.hint,
@@ -4068,11 +4064,11 @@ const ao = { class: "vc-select__control" }, lo = {
4068
4064
  maxlength: e.maxlength,
4069
4065
  "input-type": "number",
4070
4066
  "onUpdate:modelValue": v,
4071
- "onUpdate:option": p[0] || (p[0] = (h) => c.$emit("update:option", h)),
4067
+ "onUpdate:option": b[0] || (b[0] = (h) => c.$emit("update:option", h)),
4072
4068
  onBlur: m
4073
4069
  }, {
4074
- control: w(({ placeholder: h }) => [
4075
- C("input", {
4070
+ control: O(({ placeholder: h }) => [
4071
+ x("input", {
4076
4072
  ref_key: "inputRef",
4077
4073
  ref: i,
4078
4074
  type: "text",
@@ -4101,14 +4097,14 @@ function kr() {
4101
4097
  return Et(Jt, e), e;
4102
4098
  }
4103
4099
  function Sr() {
4104
- return J(Jt, Xo);
4100
+ return Y(Jt, Xo);
4105
4101
  }
4106
4102
  const Ir = Symbol("TableContext"), Zo = Symbol("ColumnCollector"), $r = Symbol("FillerWidth"), wr = Symbol("IsColumnReordering"), Or = Symbol("MobileCellEdit"), Er = (e, t) => {
4107
4103
  const n = e.__vccOpts || e;
4108
4104
  for (const [a, o] of t)
4109
4105
  n[a] = o;
4110
4106
  return n;
4111
- }, Lr = F({
4107
+ }, Lr = z({
4112
4108
  name: "VcColumn",
4113
4109
  inheritAttrs: !1,
4114
4110
  props: {
@@ -4286,7 +4282,7 @@ const Ir = Symbol("TableContext"), Zo = Symbol("ColumnCollector"), $r = Symbol("
4286
4282
  }
4287
4283
  },
4288
4284
  setup(e, { slots: t }) {
4289
- const n = J(Zo, null), a = We();
4285
+ const n = Y(Zo, null), a = We();
4290
4286
  return je(() => {
4291
4287
  n && a && n.add({
4292
4288
  instance: a,
@@ -4297,22 +4293,22 @@ const Ir = Symbol("TableContext"), Zo = Symbol("ColumnCollector"), $r = Symbol("
4297
4293
  n && a && n.delete(a);
4298
4294
  }), () => null;
4299
4295
  }
4300
- }), Le = nt(/* @__PURE__ */ new Map());
4296
+ }), Ee = nt(/* @__PURE__ */ new Map());
4301
4297
  function Xt() {
4302
4298
  return {
4303
4299
  register: (l) => {
4304
- Le.set(l.type, l);
4300
+ Ee.set(l.type, l);
4305
4301
  },
4306
- get: (l) => Le.get(l),
4307
- has: (l) => Le.has(l),
4308
- getRegisteredTypes: () => Array.from(Le.keys()),
4309
- unregister: (l) => Le.delete(l),
4302
+ get: (l) => Ee.get(l),
4303
+ has: (l) => Ee.has(l),
4304
+ getRegisteredTypes: () => Array.from(Ee.keys()),
4305
+ unregister: (l) => Ee.delete(l),
4310
4306
  clear: () => {
4311
- Le.clear();
4307
+ Ee.clear();
4312
4308
  }
4313
4309
  };
4314
4310
  }
4315
- const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__ */ F({
4311
+ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__ */ z({
4316
4312
  __name: "CellEditableWrapper",
4317
4313
  props: {
4318
4314
  label: {},
@@ -4326,7 +4322,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4326
4322
  return je(() => {
4327
4323
  const a = t.modelValue === void 0 || t.modelValue === null || t.modelValue === "";
4328
4324
  (t.validateOnMount || a && t.rules) && n.value?.validate();
4329
- }), (a, o) => (f(), P(s(On), {
4325
+ }), (a, o) => (f(), P(r(On), {
4330
4326
  ref_key: "fieldRef",
4331
4327
  ref: n,
4332
4328
  label: e.label,
@@ -4334,10 +4330,10 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4334
4330
  "model-value": e.modelValue,
4335
4331
  rules: e.rules
4336
4332
  }, {
4337
- default: w(({ errors: i, errorMessage: l }) => [
4338
- T(Tt, { placement: "bottom" }, re({
4339
- default: w(() => [
4340
- x(a.$slots, "default", {
4333
+ default: O(({ errors: i, errorMessage: l }) => [
4334
+ M(Tt, { placement: "bottom" }, oe({
4335
+ default: O(() => [
4336
+ T(a.$slots, "default", {
4341
4337
  errors: i,
4342
4338
  errorMessage: l
4343
4339
  })
@@ -4346,8 +4342,8 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4346
4342
  }, [
4347
4343
  l ? {
4348
4344
  name: "tooltip",
4349
- fn: w(() => [
4350
- C("div", Qo, M(l), 1)
4345
+ fn: O(() => [
4346
+ x("div", Qo, A(l), 1)
4351
4347
  ]),
4352
4348
  key: "0"
4353
4349
  } : void 0
@@ -4359,7 +4355,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4359
4355
  }), _o = {
4360
4356
  key: 1,
4361
4357
  class: "vc-table-cell-default"
4362
- }, Zt = /* @__PURE__ */ F({
4358
+ }, Zt = /* @__PURE__ */ z({
4363
4359
  __name: "CellDefault",
4364
4360
  props: {
4365
4361
  value: {},
@@ -4373,10 +4369,10 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4373
4369
  },
4374
4370
  emits: ["update", "blur"],
4375
4371
  setup(e, { emit: t }) {
4376
- const n = e, a = t, { isMobile: o, isDesktop: i } = Ye(), l = (r) => {
4377
- r && r.length > 0 || a("blur", { row: n.rowIndex, field: n.fieldId || "" });
4372
+ const n = e, a = t, { isMobile: o, isDesktop: i } = Ye(), l = (s) => {
4373
+ s && s.length > 0 || a("blur", { row: n.rowIndex, field: n.fieldId || "" });
4378
4374
  };
4379
- return (r, u) => e.editable ? (f(), P(yt, {
4375
+ return (s, u) => e.editable ? (f(), P(yt, {
4380
4376
  key: 0,
4381
4377
  label: e.label || "",
4382
4378
  "field-name": e.fieldName || "",
@@ -4384,19 +4380,19 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4384
4380
  rules: e.rules,
4385
4381
  "validate-on-mount": e.validateOnMount
4386
4382
  }, {
4387
- default: w(({ errors: v, errorMessage: m }) => [
4388
- T(bt, {
4383
+ default: O(({ errors: v, errorMessage: m }) => [
4384
+ M(bt, {
4389
4385
  "model-value": e.value,
4390
4386
  class: "vc-table-cell-default__input",
4391
4387
  error: v.length > 0,
4392
- "error-message": s(o) ? m : void 0,
4393
- "onUpdate:modelValue": u[0] || (u[0] = (g) => r.$emit("update", { field: e.fieldId || "", value: g })),
4388
+ "error-message": r(o) ? m : void 0,
4389
+ "onUpdate:modelValue": u[0] || (u[0] = (g) => s.$emit("update", { field: e.fieldId || "", value: g })),
4394
4390
  onBlur: (g) => l(v)
4395
- }, re({ _: 2 }, [
4396
- s(i) && v.length > 0 ? {
4391
+ }, oe({ _: 2 }, [
4392
+ r(i) && v.length > 0 ? {
4397
4393
  name: "append-inner",
4398
- fn: w(() => [
4399
- T(s(K), {
4394
+ fn: O(() => [
4395
+ M(r(U), {
4400
4396
  icon: "lucide-circle-alert",
4401
4397
  class: "vc-table-cell-default__error-icon"
4402
4398
  })
@@ -4406,7 +4402,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4406
4402
  ]), 1032, ["model-value", "error", "error-message", "onBlur"])
4407
4403
  ]),
4408
4404
  _: 1
4409
- }, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : (f(), y("span", _o, M(e.value), 1));
4405
+ }, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : (f(), y("span", _o, A(e.value), 1));
4410
4406
  }
4411
4407
  }), ei = {
4412
4408
  key: 1,
@@ -4414,7 +4410,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4414
4410
  }, ti = {
4415
4411
  key: 2,
4416
4412
  class: "vc-table-cell-money vc-table-cell-money--not-set"
4417
- }, ni = /* @__PURE__ */ F({
4413
+ }, ni = /* @__PURE__ */ z({
4418
4414
  __name: "CellMoney",
4419
4415
  props: {
4420
4416
  value: {},
@@ -4429,7 +4425,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4429
4425
  },
4430
4426
  emits: ["update", "blur"],
4431
4427
  setup(e, { emit: t }) {
4432
- const n = e, a = t, { t: o } = Oe({ useScope: "global" }), i = window.navigator.language, { isMobile: l, isDesktop: r } = Ye(), u = I(() => typeof n.value > "u" || n.value === null || Number(n.value) === 0), v = I(() => {
4428
+ const n = e, a = t, { t: o } = we({ useScope: "global" }), i = window.navigator.language, { isMobile: l, isDesktop: s } = Ye(), u = $(() => typeof n.value > "u" || n.value === null || Number(n.value) === 0), v = $(() => {
4433
4429
  const g = Number(n.value);
4434
4430
  return isNaN(g) ? String(n.value) : new Intl.NumberFormat(i, {
4435
4431
  style: "currency",
@@ -4446,22 +4442,22 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4446
4442
  rules: e.rules,
4447
4443
  "validate-on-mount": e.validateOnMount
4448
4444
  }, {
4449
- default: w(({ errors: c, errorMessage: p }) => [
4450
- T(Jo, {
4445
+ default: O(({ errors: c, errorMessage: b }) => [
4446
+ M(Jo, {
4451
4447
  "model-value": e.value,
4452
4448
  options: [],
4453
4449
  option: e.currency || "USD",
4454
4450
  "currency-display": "symbol",
4455
4451
  class: "vc-table-cell-money__input",
4456
4452
  error: c.length > 0,
4457
- "error-message": s(l) ? p : void 0,
4453
+ "error-message": r(l) ? b : void 0,
4458
4454
  "onUpdate:modelValue": d[0] || (d[0] = (h) => g.$emit("update", { field: e.fieldId || "", value: h })),
4459
4455
  onBlur: (h) => m(c)
4460
- }, re({ _: 2 }, [
4461
- s(r) && c.length > 0 ? {
4456
+ }, oe({ _: 2 }, [
4457
+ r(s) && c.length > 0 ? {
4462
4458
  name: "append-inner",
4463
- fn: w(() => [
4464
- T(s(K), {
4459
+ fn: O(() => [
4460
+ M(r(U), {
4465
4461
  icon: "lucide-circle-alert",
4466
4462
  class: "vc-table-cell-money__error-icon"
4467
4463
  })
@@ -4471,7 +4467,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4471
4467
  ]), 1032, ["model-value", "option", "error", "error-message", "onBlur"])
4472
4468
  ]),
4473
4469
  _: 1
4474
- }, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : u.value ? (f(), y("span", ti, M(s(o)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (f(), y("span", ei, M(v.value), 1));
4470
+ }, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : u.value ? (f(), y("span", ti, A(r(o)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (f(), y("span", ei, A(v.value), 1));
4475
4471
  }
4476
4472
  }), ai = {
4477
4473
  key: 1,
@@ -4479,7 +4475,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4479
4475
  }, li = {
4480
4476
  key: 2,
4481
4477
  class: "vc-table-cell-number vc-table-cell-number--not-set"
4482
- }, oi = /* @__PURE__ */ F({
4478
+ }, oi = /* @__PURE__ */ z({
4483
4479
  __name: "CellNumber",
4484
4480
  props: {
4485
4481
  value: {},
@@ -4493,11 +4489,11 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4493
4489
  },
4494
4490
  emits: ["update", "blur"],
4495
4491
  setup(e, { emit: t }) {
4496
- const n = e, a = t, { t: o } = Oe({ useScope: "global" }), { isMobile: i, isDesktop: l } = Ye(), r = I(() => {
4492
+ const n = e, a = t, { t: o } = we({ useScope: "global" }), { isMobile: i, isDesktop: l } = Ye(), s = $(() => {
4497
4493
  if (n.value === null || n.value === void 0) return !0;
4498
4494
  const m = Number(n.value);
4499
4495
  return isNaN(m) || m < 0;
4500
- }), u = I(() => {
4496
+ }), u = $(() => {
4501
4497
  const m = Number(n.value);
4502
4498
  return isNaN(m) ? String(n.value) : m.toFixed(0);
4503
4499
  }), v = (m) => {
@@ -4511,20 +4507,20 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4511
4507
  rules: e.rules,
4512
4508
  "validate-on-mount": e.validateOnMount
4513
4509
  }, {
4514
- default: w(({ errors: d, errorMessage: c }) => [
4515
- T(bt, {
4510
+ default: O(({ errors: d, errorMessage: c }) => [
4511
+ M(bt, {
4516
4512
  "model-value": e.value,
4517
4513
  class: "vc-table-cell-number__input",
4518
4514
  type: "number",
4519
4515
  error: d.length > 0,
4520
- "error-message": s(i) ? c : void 0,
4521
- "onUpdate:modelValue": g[0] || (g[0] = (p) => m.$emit("update", { field: e.fieldId || "", value: p })),
4522
- onBlur: (p) => v(d)
4523
- }, re({ _: 2 }, [
4524
- s(l) && d.length > 0 ? {
4516
+ "error-message": r(i) ? c : void 0,
4517
+ "onUpdate:modelValue": g[0] || (g[0] = (b) => m.$emit("update", { field: e.fieldId || "", value: b })),
4518
+ onBlur: (b) => v(d)
4519
+ }, oe({ _: 2 }, [
4520
+ r(l) && d.length > 0 ? {
4525
4521
  name: "append-inner",
4526
- fn: w(() => [
4527
- T(s(K), {
4522
+ fn: O(() => [
4523
+ M(r(U), {
4528
4524
  icon: "lucide-circle-alert",
4529
4525
  class: "vc-table-cell-number__error-icon"
4530
4526
  })
@@ -4534,7 +4530,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4534
4530
  ]), 1032, ["model-value", "error", "error-message", "onBlur"])
4535
4531
  ]),
4536
4532
  _: 1
4537
- }, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : r.value ? (f(), y("span", li, M(s(o)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (f(), y("span", ai, M(u.value), 1));
4533
+ }, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : s.value ? (f(), y("span", li, A(r(o)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (f(), y("span", ai, A(u.value), 1));
4538
4534
  }
4539
4535
  }), ii = {
4540
4536
  key: 0,
@@ -4542,7 +4538,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4542
4538
  }, ri = {
4543
4539
  key: 1,
4544
4540
  class: "vc-table-cell-date vc-table-cell-date--not-set"
4545
- }, et = /* @__PURE__ */ F({
4541
+ }, et = /* @__PURE__ */ z({
4546
4542
  __name: "CellDate",
4547
4543
  props: {
4548
4544
  value: {},
@@ -4550,39 +4546,39 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4550
4546
  format: {}
4551
4547
  },
4552
4548
  setup(e) {
4553
- const t = e, { t: n } = Oe({ useScope: "global" }), a = window.navigator.language, o = I(() => {
4549
+ const t = e, { t: n } = we({ useScope: "global" }), a = window.navigator.language, o = $(() => {
4554
4550
  if (!t.value) return "";
4555
4551
  if (t.format)
4556
4552
  return Qn(t.value, t.format, a);
4557
4553
  const i = t.value instanceof Date ? t.value : new Date(t.value), l = t.variant || "date";
4558
4554
  return l === "time" ? i.toLocaleTimeString(a) : l === "date-time" ? i.toLocaleString(a) : i.toLocaleDateString(a);
4559
4555
  });
4560
- return (i, l) => e.value ? (f(), y("span", ii, M(o.value), 1)) : (f(), y("span", ri, M(s(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
4556
+ return (i, l) => e.value ? (f(), y("span", ii, A(o.value), 1)) : (f(), y("span", ri, A(r(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
4561
4557
  }
4562
4558
  }), si = ["title"], ui = {
4563
4559
  key: 1,
4564
4560
  class: "vc-table-cell-date-ago vc-table-cell-date-ago--not-set"
4565
- }, ci = /* @__PURE__ */ F({
4561
+ }, ci = /* @__PURE__ */ z({
4566
4562
  __name: "CellDateAgo",
4567
4563
  props: {
4568
4564
  value: {}
4569
4565
  },
4570
4566
  setup(e) {
4571
- const t = e, { t: n } = Oe({ useScope: "global" }), a = window.navigator.language, o = I(() => t.value ? (t.value instanceof Date ? t.value : new Date(t.value)).toLocaleString(a) : ""), i = I(() => t.value ? Zn(t.value) : "");
4572
- return (l, r) => e.value ? (f(), y("span", {
4567
+ const t = e, { t: n } = we({ useScope: "global" }), a = window.navigator.language, o = $(() => t.value ? (t.value instanceof Date ? t.value : new Date(t.value)).toLocaleString(a) : ""), i = $(() => t.value ? Zn(t.value) : "");
4568
+ return (l, s) => e.value ? (f(), y("span", {
4573
4569
  key: 0,
4574
4570
  class: "vc-table-cell-date-ago",
4575
4571
  title: o.value
4576
- }, M(i.value), 9, si)) : (f(), y("span", ui, M(s(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
4572
+ }, A(i.value), 9, si)) : (f(), y("span", ui, A(r(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
4577
4573
  }
4578
- }), di = /* @__PURE__ */ F({
4574
+ }), di = /* @__PURE__ */ z({
4579
4575
  __name: "CellImage",
4580
4576
  props: {
4581
4577
  value: {},
4582
4578
  emptyIcon: {}
4583
4579
  },
4584
4580
  setup(e) {
4585
- return (t, n) => (f(), P(s(Wa), {
4581
+ return (t, n) => (f(), P(r(Wa), {
4586
4582
  class: "vc-table-cell-image",
4587
4583
  bordered: !0,
4588
4584
  size: "s",
@@ -4593,46 +4589,46 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4593
4589
  "thumbnail-size": "sm"
4594
4590
  }, null, 8, ["src", "empty-icon"]));
4595
4591
  }
4596
- }), fi = /* @__PURE__ */ F({
4592
+ }), fi = /* @__PURE__ */ z({
4597
4593
  __name: "CellStatus",
4598
4594
  props: {
4599
4595
  value: {}
4600
4596
  },
4601
4597
  setup(e) {
4602
- return (t, n) => (f(), P(s(nl), { class: "vc-table-cell-status" }, {
4603
- default: w(() => [
4604
- _(M(e.value), 1)
4598
+ return (t, n) => (f(), P(r(nl), { class: "vc-table-cell-status" }, {
4599
+ default: O(() => [
4600
+ Z(A(e.value), 1)
4605
4601
  ]),
4606
4602
  _: 1
4607
4603
  }));
4608
4604
  }
4609
- }), vi = { class: "vc-table-cell-status-icon" }, gi = /* @__PURE__ */ F({
4605
+ }), vi = { class: "vc-table-cell-status-icon" }, gi = /* @__PURE__ */ z({
4610
4606
  __name: "CellStatusIcon",
4611
4607
  props: {
4612
4608
  value: {}
4613
4609
  },
4614
4610
  setup(e) {
4615
4611
  return (t, n) => (f(), y("div", vi, [
4616
- typeof e.value == "boolean" ? (f(), P(s(ll), {
4612
+ typeof e.value == "boolean" ? (f(), P(r(ll), {
4617
4613
  key: 0,
4618
4614
  status: e.value
4619
- }, null, 8, ["status"])) : $("", !0)
4615
+ }, null, 8, ["status"])) : w("", !0)
4620
4616
  ]));
4621
4617
  }
4622
- }), mi = /* @__PURE__ */ F({
4618
+ }), mi = /* @__PURE__ */ z({
4623
4619
  __name: "CellLink",
4624
4620
  props: {
4625
4621
  value: {}
4626
4622
  },
4627
4623
  setup(e) {
4628
- return (t, n) => (f(), P(s(_a), { class: "vc-table-cell-link" }, {
4629
- default: w(() => [
4630
- _(M(e.value), 1)
4624
+ return (t, n) => (f(), P(r(_a), { class: "vc-table-cell-link" }, {
4625
+ default: O(() => [
4626
+ Z(A(e.value), 1)
4631
4627
  ]),
4632
4628
  _: 1
4633
4629
  }));
4634
4630
  }
4635
- }), pi = ["innerHTML"], bi = 500, yi = /* @__PURE__ */ F({
4631
+ }), pi = ["innerHTML"], bi = 500, yi = /* @__PURE__ */ z({
4636
4632
  __name: "CellHtml",
4637
4633
  props: {
4638
4634
  value: {},
@@ -4643,7 +4639,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4643
4639
  function a(l) {
4644
4640
  if (n.has(l))
4645
4641
  return n.get(l);
4646
- const r = Dt.sanitize(l, {
4642
+ const s = Dt.sanitize(l, {
4647
4643
  ALLOWED_TAGS: [
4648
4644
  "p",
4649
4645
  "br",
@@ -4683,10 +4679,10 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
4683
4679
  const u = n.keys().next().value;
4684
4680
  u !== void 0 && n.delete(u);
4685
4681
  }
4686
- return n.set(l, r), r;
4682
+ return n.set(l, s), s;
4687
4683
  }
4688
- const o = I(() => t.value ? a(String(t.value)) : ""), i = I(() => Kn(o.value, t.maxLength || 30));
4689
- return (l, r) => (f(), y("div", {
4684
+ const o = $(() => t.value ? a(String(t.value)) : ""), i = $(() => Kn(o.value, t.maxLength || 30));
4685
+ return (l, s) => (f(), y("div", {
4690
4686
  class: "vc-table-cell-html",
4691
4687
  innerHTML: i.value
4692
4688
  }, null, 8, pi));
@@ -4711,7 +4707,7 @@ function hi() {
4711
4707
  t(n.type) || e(n);
4712
4708
  }
4713
4709
  hi();
4714
- const Cr = /* @__PURE__ */ F({
4710
+ const Cr = /* @__PURE__ */ z({
4715
4711
  __name: "DynamicCellRenderer",
4716
4712
  props: {
4717
4713
  type: {},
@@ -4729,18 +4725,18 @@ const Cr = /* @__PURE__ */ F({
4729
4725
  },
4730
4726
  emits: ["update", "blur"],
4731
4727
  setup(e) {
4732
- const { get: t } = Xt(), n = e, a = I(() => t(n.type)?.component || Zt), o = I(() => {
4733
- const l = t(n.type)?.config?.editable ?? !1, r = {
4728
+ const { get: t } = Xt(), n = e, a = $(() => t(n.type)?.component || Zt), o = $(() => {
4729
+ const l = t(n.type)?.config?.editable ?? !1, s = {
4734
4730
  value: n.value
4735
4731
  };
4736
- return l && n.editable && (r.editable = n.editable, r.label = n.label, r.fieldName = n.fieldName, r.fieldId = n.fieldId, r.rules = n.rules, r.rowIndex = n.rowIndex, n.validateOnMount && (r.validateOnMount = !0)), n.type === "money" && n.currency && (r.currency = n.currency), (n.type === "date" || n.type === "time" || n.type === "datetime") && n.variant && (r.variant = n.variant), n.format && (r.format = n.format), r;
4732
+ return l && n.editable && (s.editable = n.editable, s.label = n.label, s.fieldName = n.fieldName, s.fieldId = n.fieldId, s.rules = n.rules, s.rowIndex = n.rowIndex, n.validateOnMount && (s.validateOnMount = !0)), n.type === "money" && n.currency && (s.currency = n.currency), (n.type === "date" || n.type === "time" || n.type === "datetime") && n.variant && (s.variant = n.variant), n.format && (s.format = n.format), s;
4737
4733
  });
4738
- return (i, l) => (f(), P(ut(a.value), ne(o.value, {
4739
- onUpdate: l[0] || (l[0] = (r) => i.$emit("update", r)),
4740
- onBlur: l[1] || (l[1] = (r) => i.$emit("blur", r))
4734
+ return (i, l) => (f(), P(ut(a.value), ee(o.value, {
4735
+ onUpdate: l[0] || (l[0] = (s) => i.$emit("update", s)),
4736
+ onBlur: l[1] || (l[1] = (s) => i.$emit("blur", s))
4741
4737
  }), null, 16));
4742
4738
  }
4743
- }), xr = F({
4739
+ }), xr = z({
4744
4740
  name: "SlotProxy",
4745
4741
  props: {
4746
4742
  slotFn: { type: Function, required: !0 },
@@ -4761,7 +4757,7 @@ export {
4761
4757
  kr as D,
4762
4758
  hi as E,
4763
4759
  Sr as F,
4764
- Ee as G,
4760
+ Oe as G,
4765
4761
  Xt as H,
4766
4762
  ra as I,
4767
4763
  He as J,
@@ -4771,12 +4767,12 @@ export {
4771
4767
  ir as N,
4772
4768
  la as O,
4773
4769
  dt as P,
4774
- ce as Q,
4775
- we as R,
4770
+ ue as Q,
4771
+ $e as R,
4776
4772
  qe as S,
4777
4773
  tr as T,
4778
4774
  Wn as U,
4779
- pe as V,
4775
+ me as V,
4780
4776
  ot as W,
4781
4777
  oa as X,
4782
4778
  Ye as Y,
@@ -4792,7 +4788,7 @@ export {
4792
4788
  Oa as a5,
4793
4789
  Ea as a6,
4794
4790
  Ui as a7,
4795
- he as a8,
4791
+ ye as a8,
4796
4792
  Aa as a9,
4797
4793
  fr as aA,
4798
4794
  _i as aB,
@@ -4821,7 +4817,7 @@ export {
4821
4817
  $r as aY,
4822
4818
  wr as aZ,
4823
4819
  xr as a_,
4824
- se as aa,
4820
+ ie as aa,
4825
4821
  Ki as ab,
4826
4822
  qi as ac,
4827
4823
  zi as ad,
@@ -4872,7 +4868,7 @@ export {
4872
4868
  _a as u,
4873
4869
  il as v,
4874
4870
  Uo as w,
4875
- oe as x,
4871
+ ne as x,
4876
4872
  nl as y,
4877
4873
  ll as z
4878
4874
  };