@useinsider/ab-components 0.0.106-beta.0 → 0.0.106-beta.1

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,4 +1,4 @@
1
- import { defineComponent as G, computed as k, openBlock as p, createElementBlock as f, normalizeClass as g, createBlock as J, unref as c, createCommentVNode as V, toDisplayString as H, createElementVNode as A, createVNode as Z, renderSlot as ce, Fragment as ie, renderList as me, normalizeStyle as se, ref as P, watch as le, onMounted as Ge, nextTick as lt, reactive as Ut, withDirectives as ft, withModifiers as rt, vModelText as wn, vShow as an, shallowRef as yn, getCurrentScope as xn, onScopeDispose as kn, shallowReadonly as We, onBeforeUnmount as ut, Teleport as ln, resolveDynamicComponent as An, withCtx as he, createTextVNode as ot, useCssVars as Cn, Transition as sn, onBeforeMount as Bn } from "vue";
1
+ import { defineComponent as G, computed as k, openBlock as p, createElementBlock as f, normalizeClass as g, createBlock as J, unref as c, createCommentVNode as V, toDisplayString as H, createElementVNode as C, createVNode as Z, renderSlot as ce, Fragment as ie, renderList as me, normalizeStyle as se, ref as P, watch as le, onMounted as Ge, nextTick as lt, reactive as Ut, withDirectives as ft, withModifiers as rt, vModelText as wn, vShow as an, shallowRef as yn, getCurrentScope as xn, onScopeDispose as kn, shallowReadonly as We, onBeforeUnmount as ut, Teleport as ln, resolveDynamicComponent as An, withCtx as he, createTextVNode as ot, useCssVars as Cn, Transition as sn, onBeforeMount as Bn } from "vue";
2
2
  const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8", $n = "_button_1lulf_1", Mn = "_button__label_1lulf_60", Tn = "_button__solid_1lulf_72", Vn = "_fill_1lulf_1335", De = {
3
3
  button__size_default: Sn,
4
4
  button__size_small: In,
@@ -63,9 +63,9 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
63
63
  },
64
64
  emits: ["click"],
65
65
  setup(e, { emit: o }) {
66
- const t = e, n = o, a = (i) => {
66
+ const t = e, n = o, l = (i) => {
67
67
  t.disabled || n("click", i);
68
- }, r = k(() => t.loadingStatus ? "loading-circle" : t.successStatus ? "line-check-natural" : t.leftIconName), l = k(() => {
68
+ }, r = k(() => t.loadingStatus ? "loading-circle" : t.successStatus ? "line-check-natural" : t.leftIconName), a = k(() => {
69
69
  const i = [
70
70
  De.button,
71
71
  De[`button__${t.variant}`],
@@ -75,9 +75,9 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
75
75
  return t.fill && i.push(De.fill), t.selected && i.push(De["button--selected"]), t.customClass && i.push(t.customClass), i;
76
76
  });
77
77
  return (i, s) => (p(), f("button", {
78
- class: g(l.value),
78
+ class: g(a.value),
79
79
  disabled: t.disabled,
80
- onClick: a
80
+ onClick: l
81
81
  }, [
82
82
  r.value ? (p(), J(c(X), {
83
83
  key: 0,
@@ -119,7 +119,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
119
119
  },
120
120
  emits: ["remove", "click"],
121
121
  setup(e, { emit: o }) {
122
- const t = e, n = o, a = k(() => [
122
+ const t = e, n = o, l = k(() => [
123
123
  Ve.chip,
124
124
  Ve[`chip--${t.variant}`],
125
125
  {
@@ -129,11 +129,11 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
129
129
  function r() {
130
130
  t.clickable && n("click");
131
131
  }
132
- function l(i) {
132
+ function a(i) {
133
133
  i.stopPropagation(), n("remove");
134
134
  }
135
135
  return (i, s) => (p(), f("div", {
136
- class: g(a.value),
136
+ class: g(l.value),
137
137
  onClick: r
138
138
  }, [
139
139
  i.thumbnailUrl || i.iconName ? (p(), f("span", {
@@ -152,14 +152,14 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
152
152
  size: 24
153
153
  }, null, 8, ["class", "name"])) : V("", !0)
154
154
  ], 2)) : V("", !0),
155
- A("span", {
155
+ C("span", {
156
156
  class: g(c(Ve).chip__label)
157
157
  }, H(i.label), 3),
158
158
  i.removable ? (p(), f("button", {
159
159
  key: 1,
160
160
  type: "button",
161
161
  class: g(c(Ve).chip__remove),
162
- onClick: l
162
+ onClick: a
163
163
  }, [
164
164
  Z(c(X), {
165
165
  name: "chip-close",
@@ -188,49 +188,49 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
188
188
  },
189
189
  emits: ["update:modelValue", "change"],
190
190
  setup(e, { emit: o }) {
191
- const t = e, n = o, a = k(() => t.modelValue !== void 0 ? t.modelValue : t.checked);
192
- function r(l) {
191
+ const t = e, n = o, l = k(() => t.modelValue !== void 0 ? t.modelValue : t.checked);
192
+ function r(a) {
193
193
  if (t.disabled) {
194
- l.preventDefault();
194
+ a.preventDefault();
195
195
  return;
196
196
  }
197
- const s = l.target.checked;
197
+ const s = a.target.checked;
198
198
  n("update:modelValue", s), n("change", s);
199
199
  }
200
- return (l, i) => (p(), f("label", {
200
+ return (a, i) => (p(), f("label", {
201
201
  class: g([
202
202
  c(Ue).checkbox,
203
203
  {
204
- [c(Ue).checkbox__checked]: a.value,
205
- [c(Ue).checkbox__disabled]: l.disabled
204
+ [c(Ue).checkbox__checked]: l.value,
205
+ [c(Ue).checkbox__disabled]: a.disabled
206
206
  }
207
207
  ]),
208
- for: l.id
208
+ for: a.id
209
209
  }, [
210
- A("input", {
211
- id: l.id,
210
+ C("input", {
211
+ id: a.id,
212
212
  type: "checkbox",
213
- checked: a.value,
213
+ checked: l.value,
214
214
  class: g(c(Ue).checkbox__input),
215
- disabled: l.disabled,
216
- name: l.name,
217
- value: l.value,
215
+ disabled: a.disabled,
216
+ name: a.name,
217
+ value: a.value,
218
218
  onChange: r
219
219
  }, null, 42, Yn),
220
- A("span", {
220
+ C("span", {
221
221
  class: g(c(Ue).checkbox__box)
222
222
  }, [
223
- a.value ? (p(), J(c(X), {
223
+ l.value ? (p(), J(c(X), {
224
224
  key: 0,
225
225
  name: "line-check-netural",
226
226
  size: 16
227
227
  })) : V("", !0)
228
228
  ], 2),
229
- l.label ? (p(), f("span", {
229
+ a.label ? (p(), f("span", {
230
230
  key: 0,
231
231
  class: g(c(Ue).checkbox__label)
232
- }, H(l.label), 3)) : V("", !0),
233
- ce(l.$slots, "default")
232
+ }, H(a.label), 3)) : V("", !0),
233
+ ce(a.$slots, "default")
234
234
  ], 10, Qn));
235
235
  }
236
236
  }), Gn = "_colorPreview_16zoj_36", jn = "_colorPreview__container_16zoj_55", Xn = "_colorPreview__swatch_16zoj_61", dt = {
@@ -251,14 +251,14 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
251
251
  dt.colorPreview,
252
252
  dt[`colorPreview--${o.size}`]
253
253
  ]);
254
- return (n, a) => (p(), f("div", {
254
+ return (n, l) => (p(), f("div", {
255
255
  class: g(t.value)
256
256
  }, [
257
- A("div", {
257
+ C("div", {
258
258
  class: g(c(dt).colorPreview__container)
259
259
  }, [
260
- (p(!0), f(ie, null, me(n.colors, (r, l) => (p(), f("div", {
261
- key: l,
260
+ (p(!0), f(ie, null, me(n.colors, (r, a) => (p(), f("div", {
261
+ key: a,
262
262
  class: g(c(dt).colorPreview__swatch),
263
263
  style: se({ backgroundColor: r })
264
264
  }, null, 6))), 128))
@@ -320,7 +320,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
320
320
  },
321
321
  emits: ["update:modelValue", "input", "change", "focus", "blur", "keyup", "keypress", "click", "paste", "leftIconClick", "rightIconClick"],
322
322
  setup(e, { emit: o }) {
323
- const t = e, n = o, a = P(""), r = k(() => t.preventXss ? String(t.labelText).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;") : t.labelText), l = k(() => t.states === "default"), i = k(
323
+ const t = e, n = o, l = P(""), r = k(() => t.preventXss ? String(t.labelText).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;") : t.labelText), a = k(() => t.states === "default"), i = k(
324
324
  () => t.states === "warning" || t.states === "error"
325
325
  ), s = k(
326
326
  () => t.helperMessageStatus || i.value
@@ -333,7 +333,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
333
333
  const M = String(_.target.value).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
334
334
  _.target.value !== M && (_.target.value = M);
335
335
  }
336
- return a.value = ((m = _ == null ? void 0 : _.target) == null ? void 0 : m.value) || "", _;
336
+ return l.value = ((m = _ == null ? void 0 : _.target) == null ? void 0 : m.value) || "", _;
337
337
  }, b = () => {
338
338
  let _ = "";
339
339
  return t.allowDecimal && (_ += "."), t.allowComma && (_ += ","), new RegExp(`[${_}]`, "g");
@@ -346,16 +346,16 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
346
346
  const m = _.target, { selectionStart: M } = m;
347
347
  if (M === null)
348
348
  return;
349
- const I = M - 1, { value: C } = _.target, O = $(), U = [...C.matchAll(O)].map((Q) => Q.index);
350
- _.target.value = C.replace(O, ""), U.length > 0 && I >= 0 && m.setSelectionRange(I, I);
349
+ const I = M - 1, { value: A } = _.target, O = $(), U = [...A.matchAll(O)].map((Q) => Q.index);
350
+ _.target.value = A.replace(O, ""), U.length > 0 && I >= 0 && m.setSelectionRange(I, I);
351
351
  }, S = (_) => {
352
352
  if (!(_ != null && _.target))
353
353
  return;
354
354
  const { value: m } = _.target, M = _.target, { selectionStart: I } = M;
355
355
  if (I === null)
356
356
  return;
357
- const C = I - 1, O = b(), U = [...m.matchAll(O)].map((ae) => ae.index), Q = m.split("");
358
- U.length > 1 && C >= 0 && (Q[C] = ""), _.target.value = Q.join(""), U.length > 1 && C >= 0 && M.setSelectionRange(C, C);
357
+ const A = I - 1, O = b(), U = [...m.matchAll(O)].map((ae) => ae.index), Q = m.split("");
358
+ U.length > 1 && A >= 0 && (Q[A] = ""), _.target.value = Q.join(""), U.length > 1 && A >= 0 && M.setSelectionRange(A, A);
359
359
  }, w = (_) => {
360
360
  n("keyup", _);
361
361
  }, y = (_) => {
@@ -371,13 +371,13 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
371
371
  const m = _;
372
372
  u.value && (T(m), S(m)), x(m);
373
373
  const M = ((I = m == null ? void 0 : m.target) == null ? void 0 : I.value) || "";
374
- a.value = M, n("input", M), n("update:modelValue", M);
374
+ l.value = M, n("input", M), n("update:modelValue", M);
375
375
  }, z = (_) => {
376
376
  var I;
377
377
  const m = _;
378
378
  u.value && (T(m), S(m)), x(m);
379
379
  const M = ((I = m == null ? void 0 : m.target) == null ? void 0 : I.value) || "";
380
- a.value = M, n("change", M), n("update:modelValue", M);
380
+ l.value = M, n("change", M), n("update:modelValue", M);
381
381
  }, q = (_) => {
382
382
  var D, Y;
383
383
  if (t.maxCharacterLength && typeof t.maxCharacterLength == "number") {
@@ -395,7 +395,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
395
395
  const Fe = Je.slice(0, ge) + et + Je.slice(Ie);
396
396
  oe.value = Fe;
397
397
  const Wt = ge + et.length;
398
- oe.setSelectionRange(Wt, Wt), a.value = Fe, n("input", Fe), n("update:modelValue", Fe);
398
+ oe.setSelectionRange(Wt, Wt), l.value = Fe, n("input", Fe), n("update:modelValue", Fe);
399
399
  return;
400
400
  }
401
401
  }
@@ -405,7 +405,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
405
405
  const m = _.target, M = m.selectionStart, I = m.selectionEnd;
406
406
  if (M === null || I === null)
407
407
  return;
408
- const { value: C } = m, O = C.includes(".") || C.includes(","), U = ((Y = _.clipboardData) == null ? void 0 : Y.getData("text/plain")) || "", Q = b(), ae = $();
408
+ const { value: A } = m, O = A.includes(".") || A.includes(","), U = ((Y = _.clipboardData) == null ? void 0 : Y.getData("text/plain")) || "", Q = b(), ae = $();
409
409
  let ne = U.replace(ae, "");
410
410
  const Ze = [...ne.matchAll(Q)], de = [];
411
411
  Ze.forEach((oe) => {
@@ -415,8 +415,8 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
415
415
  O || de.shift(), de.forEach((oe) => {
416
416
  ve[oe] = "";
417
417
  }), ne = ve.join("");
418
- const B = M + ne.length, K = C.slice(0, M) + ne + C.slice(I);
419
- m.value = K, m.setSelectionRange(B, B), a.value = K, n("input", K), n("update:modelValue", K);
418
+ const B = M + ne.length, K = A.slice(0, M) + ne + A.slice(I);
419
+ m.value = K, m.setSelectionRange(B, B), l.value = K, n("input", K), n("update:modelValue", K);
420
420
  }, h = (_) => {
421
421
  n("leftIconClick", _);
422
422
  }, L = (_) => {
@@ -430,7 +430,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
430
430
  return le(
431
431
  () => t.modelValue,
432
432
  (_) => {
433
- a.value = _;
433
+ l.value = _;
434
434
  },
435
435
  { immediate: !0 }
436
436
  ), le(
@@ -454,9 +454,9 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
454
454
  class: "in-basic-text-input-wrapper__label",
455
455
  for: _.id
456
456
  }, [
457
- A("span", { innerHTML: r.value }, null, 8, Jn)
457
+ C("span", { innerHTML: r.value }, null, 8, Jn)
458
458
  ], 8, Zn)) : V("", !0),
459
- A("div", eo, [
459
+ C("div", eo, [
460
460
  _.$slots.leftSlot ? (p(), f("div", to, [
461
461
  ce(_.$slots, "leftSlot", {}, void 0, !0)
462
462
  ])) : V("", !0),
@@ -467,7 +467,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
467
467
  size: 24,
468
468
  onClick: h
469
469
  }, null, 8, ["name"])) : V("", !0),
470
- A("input", {
470
+ C("input", {
471
471
  id: _.id,
472
472
  ref_key: "textInput",
473
473
  ref: N,
@@ -481,7 +481,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
481
481
  placeholder: _.placeholderText,
482
482
  readonly: _.readonly,
483
483
  type: _.type,
484
- value: a.value,
484
+ value: l.value,
485
485
  onBlur: R,
486
486
  onChange: z,
487
487
  onClick: F,
@@ -505,7 +505,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
505
505
  ]),
506
506
  s.value ? (p(), f("div", lo, [
507
507
  _.helperMessageStatus || i.value ? (p(), f("div", io, [
508
- l.value ? (p(), f("p", so, H(_.helperMessage), 1)) : V("", !0),
508
+ a.value ? (p(), f("p", so, H(_.helperMessage), 1)) : V("", !0),
509
509
  i.value && !_.disabledStatus ? (p(), f("p", ro, H(_.stateMessage), 1)) : V("", !0)
510
510
  ])) : V("", !0)
511
511
  ])) : V("", !0)
@@ -513,8 +513,8 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
513
513
  }
514
514
  }), fe = (e, o) => {
515
515
  const t = e.__vccOpts || e;
516
- for (const [n, a] of o)
517
- t[n] = a;
516
+ for (const [n, l] of o)
517
+ t[n] = l;
518
518
  return t;
519
519
  }, it = /* @__PURE__ */ fe(uo, [["__scopeId", "data-v-92d939e1"]]), co = {
520
520
  key: 0,
@@ -537,12 +537,12 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
537
537
  }
538
538
  return !1;
539
539
  });
540
- return (n, a) => (p(), f("div", {
540
+ return (n, l) => (p(), f("div", {
541
541
  class: "color-swatch",
542
- onClick: a[0] || (a[0] = (r) => n.$emit("click"))
542
+ onClick: l[0] || (l[0] = (r) => n.$emit("click"))
543
543
  }, [
544
544
  n.isTransparent || t.value ? (p(), f("div", co, [
545
- a[1] || (a[1] = A("div", { class: "color-swatch__checkerboard" }, null, -1)),
545
+ l[1] || (l[1] = C("div", { class: "color-swatch__checkerboard" }, null, -1)),
546
546
  t.value ? (p(), f("div", {
547
547
  key: 0,
548
548
  class: "color-swatch__color-overlay",
@@ -598,27 +598,27 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
598
598
  },
599
599
  emits: ["color-change", "close"],
600
600
  setup(e, { emit: o }) {
601
- const t = e, n = o, a = P(0), r = P(0), l = P(0.4), i = P(1), s = P("666666"), u = P([]), d = P(!1), v = P(null), x = P(null), b = P(null), $ = k(() => {
602
- const m = t.presetColors || [], M = [], I = 11, C = t.firstRowCount;
601
+ const t = e, n = o, l = P(0), r = P(0), a = P(0.4), i = P(1), s = P("666666"), u = P([]), d = P(!1), v = P(null), x = P(null), b = P(null), $ = k(() => {
602
+ const m = t.presetColors || [], M = [], I = 11, A = t.firstRowCount;
603
603
  if (m.length === 0)
604
604
  return M;
605
- M.push(m.slice(0, C));
606
- for (let O = C; O < m.length; O += I)
605
+ M.push(m.slice(0, A));
606
+ for (let O = A; O < m.length; O += I)
607
607
  M.push(m.slice(O, O + I));
608
608
  return M;
609
609
  }), T = k(() => {
610
- const m = a.value, M = 1 - Math.abs(m * 6 % 2 - 1);
611
- let I = 0, C = 0, O = 0;
612
- return m < 1 / 6 ? (I = 1, C = M) : m < 2 / 6 ? (I = M, C = 1) : m < 3 / 6 ? (C = 1, O = M) : m < 4 / 6 ? (C = M, O = 1) : m < 5 / 6 ? (I = M, O = 1) : (I = 1, O = M), `rgb(${Math.round(I * 255)}, ${Math.round(C * 255)}, ${Math.round(O * 255)})`;
610
+ const m = l.value, M = 1 - Math.abs(m * 6 % 2 - 1);
611
+ let I = 0, A = 0, O = 0;
612
+ return m < 1 / 6 ? (I = 1, A = M) : m < 2 / 6 ? (I = M, A = 1) : m < 3 / 6 ? (A = 1, O = M) : m < 4 / 6 ? (A = M, O = 1) : m < 5 / 6 ? (I = M, O = 1) : (I = 1, O = M), `rgb(${Math.round(I * 255)}, ${Math.round(A * 255)}, ${Math.round(O * 255)})`;
613
613
  }), S = k(() => {
614
- const m = a.value, M = r.value, I = l.value, C = I * M, O = C * (1 - Math.abs(m * 6 % 2 - 1)), U = I - C;
614
+ const m = l.value, M = r.value, I = a.value, A = I * M, O = A * (1 - Math.abs(m * 6 % 2 - 1)), U = I - A;
615
615
  let Q = 0, ae = 0, ne = 0;
616
- return m < 1 / 6 ? (Q = C, ae = O) : m < 2 / 6 ? (Q = O, ae = C) : m < 3 / 6 ? (ae = C, ne = O) : m < 4 / 6 ? (ae = O, ne = C) : m < 5 / 6 ? (Q = O, ne = C) : (Q = C, ne = O), Q = Math.round((Q + U) * 255), ae = Math.round((ae + U) * 255), ne = Math.round((ne + U) * 255), `rgb(${Q}, ${ae}, ${ne})`;
616
+ return m < 1 / 6 ? (Q = A, ae = O) : m < 2 / 6 ? (Q = O, ae = A) : m < 3 / 6 ? (ae = A, ne = O) : m < 4 / 6 ? (ae = O, ne = A) : m < 5 / 6 ? (Q = O, ne = A) : (Q = A, ne = O), Q = Math.round((Q + U) * 255), ae = Math.round((ae + U) * 255), ne = Math.round((ne + U) * 255), `rgb(${Q}, ${ae}, ${ne})`;
617
617
  }), w = k(() => {
618
618
  const m = S.value.match(/\d+/g);
619
619
  return m ? i.value < 1 ? `rgba(${m[0]}, ${m[1]}, ${m[2]}, ${i.value})` : `rgb(${m[0]}, ${m[1]}, ${m[2]})` : S.value;
620
620
  });
621
- le([a, r, l, i], () => {
621
+ le([l, r, a, i], () => {
622
622
  y(), d.value || n("color-change", w.value);
623
623
  }), le(
624
624
  () => t.color,
@@ -649,30 +649,30 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
649
649
  if (!v.value)
650
650
  return;
651
651
  const U = v.value.getBoundingClientRect(), Q = Math.max(0, Math.min(1, (O.clientX - U.left) / U.width)), ae = Math.max(0, Math.min(1, (O.clientY - U.top) / U.height));
652
- r.value = Q, l.value = 1 - ae;
652
+ r.value = Q, a.value = 1 - ae;
653
653
  };
654
654
  M(m);
655
655
  const I = (O) => {
656
656
  M(O);
657
- }, C = () => {
658
- document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", C);
657
+ }, A = () => {
658
+ document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", A);
659
659
  };
660
- document.addEventListener("mousemove", I), document.addEventListener("mouseup", C);
660
+ document.addEventListener("mousemove", I), document.addEventListener("mouseup", A);
661
661
  }
662
662
  function R(m) {
663
663
  const M = (O) => {
664
664
  if (!x.value)
665
665
  return;
666
666
  const U = x.value.getBoundingClientRect(), Q = Math.max(0, Math.min(1, (O.clientY - U.top) / U.height));
667
- a.value = Q;
667
+ l.value = Q;
668
668
  };
669
669
  M(m);
670
670
  const I = (O) => {
671
671
  M(O);
672
- }, C = () => {
673
- document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", C);
672
+ }, A = () => {
673
+ document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", A);
674
674
  };
675
- document.addEventListener("mousemove", I), document.addEventListener("mouseup", C);
675
+ document.addEventListener("mousemove", I), document.addEventListener("mouseup", A);
676
676
  }
677
677
  function F(m) {
678
678
  const M = (O) => {
@@ -684,10 +684,10 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
684
684
  M(m);
685
685
  const I = (O) => {
686
686
  M(O);
687
- }, C = () => {
688
- document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", C);
687
+ }, A = () => {
688
+ document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", A);
689
689
  };
690
- document.addEventListener("mousemove", I), document.addEventListener("mouseup", C);
690
+ document.addEventListener("mousemove", I), document.addEventListener("mouseup", A);
691
691
  }
692
692
  function j(m) {
693
693
  const M = t.showOpacityInHex ? 8 : 6, I = String(m).replace(/[^0-9A-Fa-f]/g, "").slice(0, M).toUpperCase();
@@ -695,15 +695,15 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
695
695
  }
696
696
  function z(m) {
697
697
  var O;
698
- const M = ((O = m.clipboardData) == null ? void 0 : O.getData("text")) || "", I = t.showOpacityInHex ? 8 : 6, C = M.replace(/^#/, "").replace(/[^0-9A-Fa-f]/g, "").slice(0, I).toUpperCase();
699
- t.showOpacityInHex ? C.length === 6 || C.length === 8 ? (s.value = C, h(C), m.preventDefault()) : C.length > 0 && (s.value = C, m.preventDefault()) : C.length === 6 ? (s.value = C, h(C), m.preventDefault()) : C.length > 0 && (s.value = C, m.preventDefault());
698
+ const M = ((O = m.clipboardData) == null ? void 0 : O.getData("text")) || "", I = t.showOpacityInHex ? 8 : 6, A = M.replace(/^#/, "").replace(/[^0-9A-Fa-f]/g, "").slice(0, I).toUpperCase();
699
+ t.showOpacityInHex ? A.length === 6 || A.length === 8 ? (s.value = A, h(A), m.preventDefault()) : A.length > 0 && (s.value = A, m.preventDefault()) : A.length === 6 ? (s.value = A, h(A), m.preventDefault()) : A.length > 0 && (s.value = A, m.preventDefault());
700
700
  }
701
701
  function q() {
702
702
  const m = t.showOpacityInHex ? 8 : 6;
703
703
  s.value.length !== m && y();
704
704
  }
705
705
  function h(m) {
706
- const M = m.startsWith("#") ? m.slice(1) : m, I = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(M), C = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(M), O = C || I;
706
+ const M = m.startsWith("#") ? m.slice(1) : m, I = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(M), A = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(M), O = A || I;
707
707
  if (!O) {
708
708
  const Y = /rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/.exec(m);
709
709
  if (Y) {
@@ -711,18 +711,18 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
711
711
  let ze = 0;
712
712
  Pe !== 0 && ($e === oe ? ze = ((ge - Ie) / Pe + (ge < Ie ? 6 : 0)) / 6 : $e === ge ? ze = ((Ie - oe) / Pe + 2) / 6 : ze = ((oe - ge) / Pe + 4) / 6);
713
713
  const et = $e === 0 ? 0 : Pe / $e, Fe = $e;
714
- a.value = ze, r.value = et, l.value = Fe, i.value = Je, y();
714
+ l.value = ze, r.value = et, a.value = Fe, i.value = Je, y();
715
715
  return;
716
716
  }
717
717
  return;
718
718
  }
719
719
  const U = parseInt(O[1], 16) / 255, Q = parseInt(O[2], 16) / 255, ae = parseInt(O[3], 16) / 255;
720
- C && O[4] ? i.value = parseInt(O[4], 16) / 255 : i.value = 1;
720
+ A && O[4] ? i.value = parseInt(O[4], 16) / 255 : i.value = 1;
721
721
  const ne = Math.max(U, Q, ae), Ze = Math.min(U, Q, ae), de = ne - Ze;
722
722
  let ve = 0;
723
723
  de !== 0 && (ne === U ? ve = ((Q - ae) / de + (Q < ae ? 6 : 0)) / 6 : ne === Q ? ve = ((ae - U) / de + 2) / 6 : ve = ((U - Q) / de + 4) / 6);
724
724
  const B = ne === 0 ? 0 : de / ne, K = ne;
725
- a.value = ve, r.value = B, l.value = K;
725
+ l.value = ve, r.value = B, a.value = K;
726
726
  const D = m.replace(/^#/, "");
727
727
  s.value = D.slice(0, 6).toUpperCase();
728
728
  }
@@ -733,7 +733,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
733
733
  const m = S.value.match(/\d+/g);
734
734
  if (!m)
735
735
  return "ffffff";
736
- const M = m.map((C) => parseInt(C).toString(16).padStart(2, "0")).join("").toUpperCase(), I = Math.round(i.value * 255).toString(16).padStart(2, "0").toUpperCase();
736
+ const M = m.map((A) => parseInt(A).toString(16).padStart(2, "0")).join("").toUpperCase(), I = Math.round(i.value * 255).toString(16).padStart(2, "0").toUpperCase();
737
737
  return `#${M}${I}`;
738
738
  }
739
739
  function W() {
@@ -744,21 +744,21 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
744
744
  h(m);
745
745
  }
746
746
  function _() {
747
- s.value = "", i.value = 0, a.value = 0, r.value = 0, l.value = 0.4, n("color-change", "transparent");
747
+ s.value = "", i.value = 0, l.value = 0, r.value = 0, a.value = 0.4, n("color-change", "transparent");
748
748
  }
749
749
  return (m, M) => (p(), f("div", _o, [
750
- A("div", fo, [
751
- A("div", mo, [
752
- A("h3", ho, H(m.title), 1)
750
+ C("div", fo, [
751
+ C("div", mo, [
752
+ C("h3", ho, H(m.title), 1)
753
753
  ]),
754
754
  m.$slots.tabs ? (p(), f("div", vo, [
755
755
  ce(m.$slots, "tabs", {}, void 0, !0)
756
756
  ])) : V("", !0)
757
757
  ]),
758
- A("div", go, [
759
- A("div", bo, [
760
- A("div", wo, [
761
- A("div", {
758
+ C("div", go, [
759
+ C("div", bo, [
760
+ C("div", wo, [
761
+ C("div", {
762
762
  ref_key: "colorPickerRef",
763
763
  ref: v,
764
764
  class: "color-picker__color-canvas",
@@ -768,41 +768,41 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
768
768
  }),
769
769
  onMousedown: E
770
770
  }, [
771
- A("div", {
771
+ C("div", {
772
772
  class: "color-picker__color-indicator",
773
- style: se({ left: `${r.value * 100}%`, top: `${(1 - l.value) * 100}%` })
773
+ style: se({ left: `${r.value * 100}%`, top: `${(1 - a.value) * 100}%` })
774
774
  }, null, 4)
775
775
  ], 36)
776
776
  ]),
777
- A("div", yo, [
778
- A("div", {
777
+ C("div", yo, [
778
+ C("div", {
779
779
  ref_key: "hueSliderRef",
780
780
  ref: x,
781
781
  class: "color-picker__hue-slider",
782
782
  onMousedown: R
783
783
  }, [
784
- A("div", {
784
+ C("div", {
785
785
  class: "color-picker__hue-indicator",
786
- style: se({ top: `${a.value * 100}%` })
786
+ style: se({ top: `${l.value * 100}%` })
787
787
  }, null, 4)
788
788
  ], 544)
789
789
  ])
790
790
  ]),
791
- A("div", xo, [
792
- A("div", {
791
+ C("div", xo, [
792
+ C("div", {
793
793
  ref_key: "opacitySliderRef",
794
794
  ref: b,
795
795
  class: "color-picker__opacity-slider",
796
796
  onMousedown: F
797
797
  }, [
798
- M[1] || (M[1] = A("div", { class: "color-picker__opacity-checkerboard" }, null, -1)),
799
- A("div", {
798
+ M[1] || (M[1] = C("div", { class: "color-picker__opacity-checkerboard" }, null, -1)),
799
+ C("div", {
800
800
  class: "color-picker__opacity-gradient",
801
801
  style: se({
802
802
  background: `linear-gradient(to right, ${S.value}, transparent)`
803
803
  })
804
804
  }, null, 4),
805
- A("div", {
805
+ C("div", {
806
806
  class: "color-picker__opacity-handle",
807
807
  style: se({
808
808
  left: `${(1 - i.value) * 100}%`
@@ -810,7 +810,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
810
810
  }, null, 4)
811
811
  ], 544)
812
812
  ]),
813
- A("div", ko, [
813
+ C("div", ko, [
814
814
  Z(it, {
815
815
  id: "color-picker-hex-input",
816
816
  name: "hex-input",
@@ -825,11 +825,11 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
825
825
  onPaste: z
826
826
  }, null, 8, ["modelValue"])
827
827
  ]),
828
- (p(!0), f(ie, null, me($.value, (I, C) => (p(), f("div", {
829
- key: `preset-row-${C}`,
828
+ (p(!0), f(ie, null, me($.value, (I, A) => (p(), f("div", {
829
+ key: `preset-row-${A}`,
830
830
  class: "color-picker__preset-row"
831
831
  }, [
832
- C === 0 ? (p(), f("div", {
832
+ A === 0 ? (p(), f("div", {
833
833
  key: 0,
834
834
  class: "color-picker__no-color",
835
835
  onClick: _
@@ -840,14 +840,14 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
840
840
  })
841
841
  ])) : V("", !0),
842
842
  (p(!0), f(ie, null, me(I, (O, U) => (p(), J(qt, {
843
- key: `preset-${C}-${U}`,
843
+ key: `preset-${A}-${U}`,
844
844
  color: O,
845
845
  "is-transparent": O === "transparent",
846
846
  onClick: (Q) => O === "transparent" ? L(0) : h(O)
847
847
  }, null, 8, ["color", "is-transparent", "onClick"]))), 128))
848
848
  ]))), 128)),
849
849
  $.value.length === 0 ? (p(), f("div", Ao, [
850
- A("div", {
850
+ C("div", {
851
851
  class: "color-picker__no-color",
852
852
  onClick: _
853
853
  }, [
@@ -858,18 +858,18 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
858
858
  ])
859
859
  ])) : V("", !0),
860
860
  m.showSaveButton && u.value.length > 0 ? (p(), f("div", Co, [
861
- (p(!0), f(ie, null, me(u.value, (I, C) => (p(), J(qt, {
862
- key: `saved-${C}`,
861
+ (p(!0), f(ie, null, me(u.value, (I, A) => (p(), J(qt, {
862
+ key: `saved-${A}`,
863
863
  color: I,
864
864
  onClick: (O) => te(I)
865
865
  }, null, 8, ["color", "onClick"]))), 128)),
866
- A("button", {
866
+ C("button", {
867
867
  class: "color-picker__save-button",
868
868
  title: "Save current color",
869
869
  onClick: W
870
870
  })
871
871
  ])) : m.showSaveButton ? (p(), f("div", Bo, [
872
- A("button", {
872
+ C("button", {
873
873
  class: "color-picker__save-button",
874
874
  title: "Save current color",
875
875
  onClick: W
@@ -881,8 +881,8 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
881
881
  }), Hs = /* @__PURE__ */ fe(So, [["__scopeId", "data-v-8af9dd2c"]]), rn = {
882
882
  mounted(e, o) {
883
883
  e.clickOutsideEvent = (n) => {
884
- const a = (o.value.exclude || []).filter((l) => l.value).map((l) => l.value);
885
- [e, ...a].some((l) => l && (l === n.target || l.contains(n.target))) || o.value.handler();
884
+ const l = (o.value.exclude || []).filter((a) => a.value).map((a) => a.value);
885
+ [e, ...l].some((a) => a && (a === n.target || a.contains(n.target))) || o.value.handler();
886
886
  };
887
887
  const t = o.value.capture ?? !1;
888
888
  e.clickOutsideCapture = t, document.addEventListener("click", e.clickOutsideEvent, t);
@@ -896,20 +896,20 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
896
896
  }, Io = (e, o) => {
897
897
  var n;
898
898
  let t = 0;
899
- for (const a of e)
900
- if (a.toLowerCase() === ((n = o[t]) == null ? void 0 : n.toLowerCase()) && t++, t === o.length)
899
+ for (const l of e)
900
+ if (l.toLowerCase() === ((n = o[t]) == null ? void 0 : n.toLowerCase()) && t++, t === o.length)
901
901
  return !0;
902
902
  return !1;
903
903
  }, ht = (e, o, t) => {
904
904
  if (!t.trim())
905
905
  return e;
906
906
  const n = t.toLowerCase();
907
- return e.filter((a) => {
908
- const r = String(a[o]);
907
+ return e.filter((l) => {
908
+ const r = String(l[o]);
909
909
  return Io(r.toLowerCase(), n);
910
- }).sort((a, r) => {
911
- const l = String(a[o]).toLowerCase(), i = String(r[o]).toLowerCase();
912
- return l === n ? -1 : i === n ? 1 : l.startsWith(n) && !i.startsWith(n) ? -1 : !l.startsWith(n) && i.startsWith(n) ? 1 : l.length - i.length;
910
+ }).sort((l, r) => {
911
+ const a = String(l[o]).toLowerCase(), i = String(r[o]).toLowerCase();
912
+ return a === n ? -1 : i === n ? 1 : a.startsWith(n) && !i.startsWith(n) ? -1 : !a.startsWith(n) && i.startsWith(n) ? 1 : a.length - i.length;
913
913
  });
914
914
  }, $o = "_menu_1sfnf_1", Mo = "_dropdown_1sfnf_1", To = "_dropdown__valueContent_1sfnf_50", Vo = "_dropdown__label_1sfnf_61", Ro = "_dropdown__value_1sfnf_50", Lo = "_dropdown__placeholder_1sfnf_69", Eo = "_dropdown__arrowIcon_1sfnf_77", Oo = "_menu__searchContainer_1sfnf_92", Po = "_menu__searchInputWrap_1sfnf_96", zo = "_menu__searchInput_1sfnf_96", Do = "_menu__errorMessage_1sfnf_115", Ho = "_menu__addButton_1sfnf_122", No = "_menu__itemContainer_1sfnf_130", Fo = "_menu__item_1sfnf_130", re = {
915
915
  menu: $o,
@@ -946,7 +946,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
946
946
  },
947
947
  emits: ["update:modelValue", "add-error", "item-added", "select-item"],
948
948
  setup(e, { emit: o }) {
949
- const t = rn, n = e, a = o, r = P(), l = P(), i = P(!1), s = P(null), u = P(""), d = P(null), v = P({ x: 0, y: 0, width: 0, shouldOpenUp: !1, height: n.menuHeight }), x = Ut([...n.items]), b = Ut([...n.items]), $ = () => {
949
+ const t = rn, n = e, l = o, r = P(), a = P(), i = P(!1), s = P(null), u = P(""), d = P(null), v = P({ x: 0, y: 0, width: 0, shouldOpenUp: !1, height: n.menuHeight }), x = Ut([...n.items]), b = Ut([...n.items]), $ = () => {
950
950
  if (!r.value)
951
951
  return;
952
952
  const { offsetTop: h, offsetLeft: L, offsetWidth: N } = r.value, W = window.innerHeight, te = h + r.value.offsetHeight, _ = te + n.menuHeight > W;
@@ -964,18 +964,18 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
964
964
  }, w = () => {
965
965
  i.value = !1, S();
966
966
  }, y = (h) => {
967
- s.value = h, a("select-item", h), a("update:modelValue", h.value), w();
967
+ s.value = h, l("select-item", h), l("update:modelValue", h.value), w();
968
968
  }, E = () => {
969
969
  const h = u.value.trim(), L = n.validateAddItem(h, b);
970
970
  if (L) {
971
- d.value = L, a("add-error", L);
971
+ d.value = L, l("add-error", L);
972
972
  return;
973
973
  }
974
974
  const N = {
975
975
  text: h,
976
976
  value: h
977
977
  };
978
- b.push(N), S(), a("item-added", N);
978
+ b.push(N), S(), l("item-added", N);
979
979
  }, R = () => {
980
980
  const h = ht(b, "text", u.value);
981
981
  x.splice(0, x.length, ...h);
@@ -1007,9 +1007,9 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
1007
1007
  },
1008
1008
  { deep: !0 }
1009
1009
  );
1010
- const q = P({ handler: w, exclude: [r, l] });
1010
+ const q = P({ handler: w, exclude: [r, a] });
1011
1011
  return (h, L) => (p(), f(ie, null, [
1012
- A("div", {
1012
+ C("div", {
1013
1013
  ref_key: "dropdownRef",
1014
1014
  ref: r,
1015
1015
  class: g(c(re).dropdown)
@@ -1019,7 +1019,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
1019
1019
  class: g(c(re).dropdown__label),
1020
1020
  for: h.id
1021
1021
  }, H(h.label), 11, Wo)) : V("", !0),
1022
- A("button", {
1022
+ C("button", {
1023
1023
  class: g([
1024
1024
  c(re).dropdown__valueContent,
1025
1025
  {
@@ -1028,7 +1028,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
1028
1028
  ]),
1029
1029
  onClick: T
1030
1030
  }, [
1031
- A("span", {
1031
+ C("span", {
1032
1032
  class: g(c(re).dropdown__value)
1033
1033
  }, H(z.value), 3),
1034
1034
  h.placeholder && !z.value ? (p(), f("span", {
@@ -1043,7 +1043,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
1043
1043
  xmlns: "http://www.w3.org/2000/svg",
1044
1044
  class: g(c(re).dropdown__arrowIcon)
1045
1045
  }, L[2] || (L[2] = [
1046
- A("path", {
1046
+ C("path", {
1047
1047
  d: "M8 11.2021L4.5359 6.70215L11.4641 6.70215L8 11.2021Z",
1048
1048
  fill: "#91949F"
1049
1049
  }, null, -1)
@@ -1052,7 +1052,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
1052
1052
  ], 2),
1053
1053
  ft((p(), f("div", {
1054
1054
  ref_key: "menuRef",
1055
- ref: l,
1055
+ ref: a,
1056
1056
  class: g(c(re).menu),
1057
1057
  style: se(j.value),
1058
1058
  onClick: L[1] || (L[1] = rt(() => {
@@ -1062,10 +1062,10 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
1062
1062
  key: 0,
1063
1063
  class: g(c(re).menu__searchContainer)
1064
1064
  }, [
1065
- A("div", {
1065
+ C("div", {
1066
1066
  class: g(c(re).menu__searchInputWrap)
1067
1067
  }, [
1068
- ft(A("input", {
1068
+ ft(C("input", {
1069
1069
  type: "text",
1070
1070
  class: g([
1071
1071
  c(re).menu__searchInput,
@@ -1091,7 +1091,7 @@ const Sn = "_button__size_default_1lulf_1", In = "_button__size_small_1lulf_8",
1091
1091
  onClick: E
1092
1092
  }, H(h.addButtonText), 3)) : V("", !0)
1093
1093
  ], 2)) : V("", !0),
1094
- A("ul", {
1094
+ C("ul", {
1095
1095
  class: g(c(re).menu__itemContainer)
1096
1096
  }, [
1097
1097
  (p(!0), f(ie, null, me(x, (N, W) => (p(), f("li", {
@@ -1192,20 +1192,20 @@ function Ko(e) {
1192
1192
  };
1193
1193
  const o = e.match(/^#([0-9a-fA-F]{8})$/);
1194
1194
  if (o) {
1195
- const n = o[1], a = parseInt(n.substring(6, 8), 16) / 255;
1195
+ const n = o[1], l = parseInt(n.substring(6, 8), 16) / 255;
1196
1196
  return {
1197
1197
  color: `#${n.substring(0, 6)}`,
1198
- opacity: a
1198
+ opacity: l
1199
1199
  };
1200
1200
  }
1201
1201
  const t = e.match(/^rgba?\(([^)]+)\)$/);
1202
1202
  if (t) {
1203
- const n = t[1].split(",").map((a) => a.trim());
1203
+ const n = t[1].split(",").map((l) => l.trim());
1204
1204
  if (n.length === 4) {
1205
- const a = parseFloat(n[3]);
1205
+ const l = parseFloat(n[3]);
1206
1206
  return {
1207
1207
  color: `rgb(${n[0]}, ${n[1]}, ${n[2]})`,
1208
- opacity: a
1208
+ opacity: l
1209
1209
  };
1210
1210
  } else if (n.length === 3)
1211
1211
  return {
@@ -1225,7 +1225,7 @@ const Qo = ["fill", "height", "width"], Yo = ["xlink:href"], Go = ["fill", "heig
1225
1225
  fillOpacity: {}
1226
1226
  },
1227
1227
  setup(e) {
1228
- const o = e, t = k(() => typeof o.size == "number" ? `${o.size}px` : o.size), n = k(() => o.name in Kt), a = k(() => n.value ? Kt[o.name] : null), r = k(() => Ko(o.color)), l = k(() => r.value.color || "currentColor"), i = k(() => {
1228
+ const o = e, t = k(() => typeof o.size == "number" ? `${o.size}px` : o.size), n = k(() => o.name in Kt), l = k(() => n.value ? Kt[o.name] : null), r = k(() => Ko(o.color)), a = k(() => r.value.color || "currentColor"), i = k(() => {
1229
1229
  if (n.value)
1230
1230
  return o.fillOpacity !== void 0 ? typeof o.fillOpacity == "number" ? o.fillOpacity : parseFloat(o.fillOpacity) : r.value.opacity;
1231
1231
  });
@@ -1237,21 +1237,21 @@ const Qo = ["fill", "height", "width"], Yo = ["xlink:href"], Go = ["fill", "heig
1237
1237
  fill: s.color || "currentColor",
1238
1238
  height: t.value,
1239
1239
  style: se({
1240
- "--icon-color": l.value,
1240
+ "--icon-color": a.value,
1241
1241
  ...i.value !== void 0 && i.value !== null ? { "--icon-fill-opacity": String(i.value) } : {}
1242
1242
  }),
1243
- viewBox: (d = a.value) == null ? void 0 : d.viewBox,
1243
+ viewBox: (d = l.value) == null ? void 0 : d.viewBox,
1244
1244
  width: t.value,
1245
- innerHTML: (v = a.value) == null ? void 0 : v.content
1245
+ innerHTML: (v = l.value) == null ? void 0 : v.content
1246
1246
  }, null, 12, Go)) : (p(), f("svg", {
1247
1247
  key: 0,
1248
1248
  class: "icon",
1249
- fill: l.value,
1249
+ fill: a.value,
1250
1250
  height: t.value,
1251
- style: se({ color: l.value }),
1251
+ style: se({ color: a.value }),
1252
1252
  width: t.value
1253
1253
  }, [
1254
- A("use", {
1254
+ C("use", {
1255
1255
  "xlink:href": `#${s.name}`
1256
1256
  }, null, 8, Yo)
1257
1257
  ], 12, Qo));
@@ -1271,7 +1271,7 @@ const Qo = ["fill", "height", "width"], Yo = ["xlink:href"], Go = ["fill", "heig
1271
1271
  const n = [];
1272
1272
  return o.border && n.push(o.border), o.borderRadius && n.push(o.borderRadius), o.borderTriangle && o.borderTrianglePosition && o.borderTriangleAlign && n.push(`in-box_${o.borderTrianglePosition}-${o.borderTriangleAlign}`), n.join(" ");
1273
1273
  });
1274
- return (n, a) => (p(), f("div", {
1274
+ return (n, l) => (p(), f("div", {
1275
1275
  class: g(["in-box", t.value])
1276
1276
  }, [
1277
1277
  ce(n.$slots, "default", {}, void 0, !0)
@@ -1316,49 +1316,49 @@ const Qo = ["fill", "height", "width"], Yo = ["xlink:href"], Go = ["fill", "heig
1316
1316
  autoSize: { type: Boolean, default: !1 }
1317
1317
  },
1318
1318
  setup(e) {
1319
- const o = e, t = k(() => o.theme === "dark"), n = k(() => `in-info-box__${o.variant}`), a = k(() => o.autoSize ? "" : `in-info-box__size-${o.size}`), r = k(() => t.value ? "inverse" : "default");
1320
- return (l, i) => (p(), f("div", {
1319
+ const o = e, t = k(() => o.theme === "dark"), n = k(() => `in-info-box__${o.variant}`), l = k(() => o.autoSize ? "" : `in-info-box__size-${o.size}`), r = k(() => t.value ? "inverse" : "default");
1320
+ return (a, i) => (p(), f("div", {
1321
1321
  class: g([
1322
1322
  c(ue)["in-info-box"],
1323
1323
  t.value ? c(ue)["in-info-box__background-inverse"] : c(ue)["in-info-box__background-default"],
1324
- c(ue)[a.value],
1324
+ c(ue)[l.value],
1325
1325
  c(ue)[n.value]
1326
1326
  ])
1327
1327
  }, [
1328
- A("div", {
1328
+ C("div", {
1329
1329
  class: g([
1330
1330
  c(ue)["in-info-box__container"],
1331
- { [c(ue)["in-info-box__container-full-width"]]: l.fullWidthContentStatus }
1331
+ { [c(ue)["in-info-box__container-full-width"]]: a.fullWidthContentStatus }
1332
1332
  ])
1333
1333
  }, [
1334
- l.titleStatus ? (p(), f("div", {
1334
+ a.titleStatus ? (p(), f("div", {
1335
1335
  key: 0,
1336
1336
  class: g([
1337
1337
  c(ue)["in-info-box__heading-wrapper"],
1338
- { [c(ue)["in-info-box__heading-wrapper-full-width"]]: l.fullWidthContentStatus }
1338
+ { [c(ue)["in-info-box__heading-wrapper-full-width"]]: a.fullWidthContentStatus }
1339
1339
  ])
1340
1340
  }, [
1341
- A("div", {
1341
+ C("div", {
1342
1342
  class: g([
1343
1343
  c(ue)["in-info-box__heading"],
1344
1344
  c(ue)[`in-info-box__heading-${r.value}`],
1345
- { [c(ue)["in-info-box__heading-full-width"]]: l.fullWidthContentStatus }
1345
+ { [c(ue)["in-info-box__heading-full-width"]]: a.fullWidthContentStatus }
1346
1346
  ]),
1347
- innerHTML: l.titleText
1347
+ innerHTML: a.titleText
1348
1348
  }, null, 10, Jo),
1349
- l.titleStatus && l.descriptionStatus ? (p(), f("div", {
1349
+ a.titleStatus && a.descriptionStatus ? (p(), f("div", {
1350
1350
  key: 0,
1351
1351
  class: g([
1352
1352
  c(ue)["in-info-box__heading-details"],
1353
1353
  c(ue)[`in-info-box__heading-details-${r.value}`]
1354
1354
  ]),
1355
- innerHTML: l.descriptionText
1355
+ innerHTML: a.descriptionText
1356
1356
  }, null, 10, ea)) : V("", !0)
1357
1357
  ], 2)) : V("", !0),
1358
- A("div", {
1358
+ C("div", {
1359
1359
  class: g(c(ue)["in-info-box__content"])
1360
1360
  }, [
1361
- ce(l.$slots, "default")
1361
+ ce(a.$slots, "default")
1362
1362
  ], 2)
1363
1363
  ], 2)
1364
1364
  ], 2));
@@ -1402,9 +1402,9 @@ function Pt(e) {
1402
1402
  }
1403
1403
  function aa(e, o, t) {
1404
1404
  t === void 0 && (t = !1);
1405
- const n = Xe(e), a = Pt(e), r = Ot(a);
1406
- let l = a === "x" ? n === (t ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
1407
- return o.reference[r] > o.floating[r] && (l = gt(l)), [l, gt(l)];
1405
+ const n = Xe(e), l = Pt(e), r = Ot(l);
1406
+ let a = l === "x" ? n === (t ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
1407
+ return o.reference[r] > o.floating[r] && (a = gt(a)), [a, gt(a)];
1408
1408
  }
1409
1409
  function la(e) {
1410
1410
  const o = gt(e);
@@ -1427,9 +1427,9 @@ function ra(e, o, t) {
1427
1427
  }
1428
1428
  }
1429
1429
  function ua(e, o, t, n) {
1430
- const a = Xe(e);
1430
+ const l = Xe(e);
1431
1431
  let r = ra(Ee(e), t === "start", n);
1432
- return a && (r = r.map((l) => l + "-" + a), o && (r = r.concat(r.map(It)))), r;
1432
+ return l && (r = r.map((a) => a + "-" + l), o && (r = r.concat(r.map(It)))), r;
1433
1433
  }
1434
1434
  function gt(e) {
1435
1435
  return e.replace(/left|right|bottom|top/g, (o) => ta[o]);
@@ -1456,15 +1456,15 @@ function bt(e) {
1456
1456
  x: o,
1457
1457
  y: t,
1458
1458
  width: n,
1459
- height: a
1459
+ height: l
1460
1460
  } = e;
1461
1461
  return {
1462
1462
  width: n,
1463
- height: a,
1463
+ height: l,
1464
1464
  top: t,
1465
1465
  left: o,
1466
1466
  right: o + n,
1467
- bottom: t + a,
1467
+ bottom: t + l,
1468
1468
  x: o,
1469
1469
  y: t
1470
1470
  };
@@ -1472,15 +1472,15 @@ function bt(e) {
1472
1472
  function Gt(e, o, t) {
1473
1473
  let {
1474
1474
  reference: n,
1475
- floating: a
1475
+ floating: l
1476
1476
  } = e;
1477
- const r = Te(o), l = Pt(o), i = Ot(l), s = Ee(o), u = r === "y", d = n.x + n.width / 2 - a.width / 2, v = n.y + n.height / 2 - a.height / 2, x = n[i] / 2 - a[i] / 2;
1477
+ const r = Te(o), a = Pt(o), i = Ot(a), s = Ee(o), u = r === "y", d = n.x + n.width / 2 - l.width / 2, v = n.y + n.height / 2 - l.height / 2, x = n[i] / 2 - l[i] / 2;
1478
1478
  let b;
1479
1479
  switch (s) {
1480
1480
  case "top":
1481
1481
  b = {
1482
1482
  x: d,
1483
- y: n.y - a.height
1483
+ y: n.y - l.height
1484
1484
  };
1485
1485
  break;
1486
1486
  case "bottom":
@@ -1497,7 +1497,7 @@ function Gt(e, o, t) {
1497
1497
  break;
1498
1498
  case "left":
1499
1499
  b = {
1500
- x: n.x - a.width,
1500
+ x: n.x - l.width,
1501
1501
  y: v
1502
1502
  };
1503
1503
  break;
@@ -1509,10 +1509,10 @@ function Gt(e, o, t) {
1509
1509
  }
1510
1510
  switch (Xe(o)) {
1511
1511
  case "start":
1512
- b[l] -= x * (t && u ? -1 : 1);
1512
+ b[a] -= x * (t && u ? -1 : 1);
1513
1513
  break;
1514
1514
  case "end":
1515
- b[l] += x * (t && u ? -1 : 1);
1515
+ b[a] += x * (t && u ? -1 : 1);
1516
1516
  break;
1517
1517
  }
1518
1518
  return b;
@@ -1520,14 +1520,14 @@ function Gt(e, o, t) {
1520
1520
  const da = async (e, o, t) => {
1521
1521
  const {
1522
1522
  placement: n = "bottom",
1523
- strategy: a = "absolute",
1523
+ strategy: l = "absolute",
1524
1524
  middleware: r = [],
1525
- platform: l
1526
- } = t, i = r.filter(Boolean), s = await (l.isRTL == null ? void 0 : l.isRTL(o));
1527
- let u = await l.getElementRects({
1525
+ platform: a
1526
+ } = t, i = r.filter(Boolean), s = await (a.isRTL == null ? void 0 : a.isRTL(o));
1527
+ let u = await a.getElementRects({
1528
1528
  reference: e,
1529
1529
  floating: o,
1530
- strategy: a
1530
+ strategy: l
1531
1531
  }), {
1532
1532
  x: d,
1533
1533
  y: v
@@ -1546,10 +1546,10 @@ const da = async (e, o, t) => {
1546
1546
  y: v,
1547
1547
  initialPlacement: n,
1548
1548
  placement: x,
1549
- strategy: a,
1549
+ strategy: l,
1550
1550
  middlewareData: b,
1551
1551
  rects: u,
1552
- platform: l,
1552
+ platform: a,
1553
1553
  elements: {
1554
1554
  reference: e,
1555
1555
  floating: o
@@ -1561,10 +1561,10 @@ const da = async (e, o, t) => {
1561
1561
  ...b[S],
1562
1562
  ...R
1563
1563
  }
1564
- }, F && $ <= 50 && ($++, typeof F == "object" && (F.placement && (x = F.placement), F.rects && (u = F.rects === !0 ? await l.getElementRects({
1564
+ }, F && $ <= 50 && ($++, typeof F == "object" && (F.placement && (x = F.placement), F.rects && (u = F.rects === !0 ? await a.getElementRects({
1565
1565
  reference: e,
1566
1566
  floating: o,
1567
- strategy: a
1567
+ strategy: l
1568
1568
  }) : F.rects), {
1569
1569
  x: d,
1570
1570
  y: v
@@ -1574,7 +1574,7 @@ const da = async (e, o, t) => {
1574
1574
  x: d,
1575
1575
  y: v,
1576
1576
  placement: x,
1577
- strategy: a,
1577
+ strategy: l,
1578
1578
  middlewareData: b
1579
1579
  };
1580
1580
  };
@@ -1583,9 +1583,9 @@ async function zt(e, o) {
1583
1583
  o === void 0 && (o = {});
1584
1584
  const {
1585
1585
  x: n,
1586
- y: a,
1586
+ y: l,
1587
1587
  platform: r,
1588
- rects: l,
1588
+ rects: a,
1589
1589
  elements: i,
1590
1590
  strategy: s
1591
1591
  } = e, {
@@ -1601,10 +1601,10 @@ async function zt(e, o) {
1601
1601
  strategy: s
1602
1602
  })), y = v === "floating" ? {
1603
1603
  x: n,
1604
- y: a,
1605
- width: l.floating.width,
1606
- height: l.floating.height
1607
- } : l.reference, E = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(i.floating)), R = await (r.isElement == null ? void 0 : r.isElement(E)) ? await (r.getScale == null ? void 0 : r.getScale(E)) || {
1604
+ y: l,
1605
+ width: a.floating.width,
1606
+ height: a.floating.height
1607
+ } : a.reference, E = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(i.floating)), R = await (r.isElement == null ? void 0 : r.isElement(E)) ? await (r.getScale == null ? void 0 : r.getScale(E)) || {
1608
1608
  x: 1,
1609
1609
  y: 1
1610
1610
  } : {
@@ -1630,9 +1630,9 @@ const pa = (e) => ({
1630
1630
  const {
1631
1631
  x: t,
1632
1632
  y: n,
1633
- placement: a,
1633
+ placement: l,
1634
1634
  rects: r,
1635
- platform: l,
1635
+ platform: a,
1636
1636
  elements: i,
1637
1637
  middlewareData: s
1638
1638
  } = o, {
@@ -1644,10 +1644,10 @@ const pa = (e) => ({
1644
1644
  const v = cn(d), x = {
1645
1645
  x: t,
1646
1646
  y: n
1647
- }, b = Pt(a), $ = Ot(b), T = await l.getDimensions(u), S = b === "y", w = S ? "top" : "left", y = S ? "bottom" : "right", E = S ? "clientHeight" : "clientWidth", R = r.reference[$] + r.reference[b] - x[b] - r.floating[$], F = x[b] - r.reference[b], j = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(u));
1647
+ }, b = Pt(l), $ = Ot(b), T = await a.getDimensions(u), S = b === "y", w = S ? "top" : "left", y = S ? "bottom" : "right", E = S ? "clientHeight" : "clientWidth", R = r.reference[$] + r.reference[b] - x[b] - r.floating[$], F = x[b] - r.reference[b], j = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
1648
1648
  let z = j ? j[E] : 0;
1649
- (!z || !await (l.isElement == null ? void 0 : l.isElement(j))) && (z = i.floating[E] || r.floating[$]);
1650
- const q = R / 2 - F / 2, h = z / 2 - T[$] / 2 - 1, L = Le(v[w], h), N = Le(v[y], h), W = L, te = z - T[$] - N, _ = z / 2 - T[$] / 2 + q, m = St(W, _, te), M = !s.arrow && Xe(a) != null && _ !== m && r.reference[$] / 2 - (_ < W ? L : N) - T[$] / 2 < 0, I = M ? _ < W ? _ - W : _ - te : 0;
1649
+ (!z || !await (a.isElement == null ? void 0 : a.isElement(j))) && (z = i.floating[E] || r.floating[$]);
1650
+ const q = R / 2 - F / 2, h = z / 2 - T[$] / 2 - 1, L = Le(v[w], h), N = Le(v[y], h), W = L, te = z - T[$] - N, _ = z / 2 - T[$] / 2 + q, m = St(W, _, te), M = !s.arrow && Xe(l) != null && _ !== m && r.reference[$] / 2 - (_ < W ? L : N) - T[$] / 2 < 0, I = M ? _ < W ? _ - W : _ - te : 0;
1651
1651
  return {
1652
1652
  [b]: x[b] + I,
1653
1653
  data: {
@@ -1667,9 +1667,9 @@ const pa = (e) => ({
1667
1667
  async fn(o) {
1668
1668
  var t, n;
1669
1669
  const {
1670
- placement: a,
1670
+ placement: l,
1671
1671
  middlewareData: r,
1672
- rects: l,
1672
+ rects: a,
1673
1673
  initialPlacement: i,
1674
1674
  platform: s,
1675
1675
  elements: u
@@ -1684,23 +1684,23 @@ const pa = (e) => ({
1684
1684
  } = je(e, o);
1685
1685
  if ((t = r.arrow) != null && t.alignmentOffset)
1686
1686
  return {};
1687
- const w = Ee(a), y = Te(i), E = Ee(i) === i, R = await (s.isRTL == null ? void 0 : s.isRTL(u.floating)), F = x || (E || !T ? [gt(i)] : la(i)), j = $ !== "none";
1687
+ const w = Ee(l), y = Te(i), E = Ee(i) === i, R = await (s.isRTL == null ? void 0 : s.isRTL(u.floating)), F = x || (E || !T ? [gt(i)] : la(i)), j = $ !== "none";
1688
1688
  !x && j && F.push(...ua(i, T, $, R));
1689
1689
  const z = [i, ...F], q = await zt(o, S), h = [];
1690
1690
  let L = ((n = r.flip) == null ? void 0 : n.overflows) || [];
1691
1691
  if (d && h.push(q[w]), v) {
1692
- const _ = aa(a, l, R);
1692
+ const _ = aa(l, a, R);
1693
1693
  h.push(q[_[0]], q[_[1]]);
1694
1694
  }
1695
1695
  if (L = [...L, {
1696
- placement: a,
1696
+ placement: l,
1697
1697
  overflows: h
1698
1698
  }], !h.every((_) => _ <= 0)) {
1699
1699
  var N, W;
1700
1700
  const _ = (((N = r.flip) == null ? void 0 : N.index) || 0) + 1, m = z[_];
1701
1701
  if (m && (!(v === "alignment" ? y !== Te(m) : !1) || // We leave the current main axis only if every placement on that axis
1702
1702
  // overflows the main axis.
1703
- L.every((C) => Te(C.placement) === y ? C.overflows[0] > 0 : !0)))
1703
+ L.every((A) => Te(A.placement) === y ? A.overflows[0] > 0 : !0)))
1704
1704
  return {
1705
1705
  data: {
1706
1706
  index: _,
@@ -1710,20 +1710,20 @@ const pa = (e) => ({
1710
1710
  placement: m
1711
1711
  }
1712
1712
  };
1713
- let M = (W = L.filter((I) => I.overflows[0] <= 0).sort((I, C) => I.overflows[1] - C.overflows[1])[0]) == null ? void 0 : W.placement;
1713
+ let M = (W = L.filter((I) => I.overflows[0] <= 0).sort((I, A) => I.overflows[1] - A.overflows[1])[0]) == null ? void 0 : W.placement;
1714
1714
  if (!M)
1715
1715
  switch (b) {
1716
1716
  case "bestFit": {
1717
1717
  var te;
1718
- const I = (te = L.filter((C) => {
1718
+ const I = (te = L.filter((A) => {
1719
1719
  if (j) {
1720
- const O = Te(C.placement);
1720
+ const O = Te(A.placement);
1721
1721
  return O === y || // Create a bias to the `y` side axis due to horizontal
1722
1722
  // reading directions favoring greater width.
1723
1723
  O === "y";
1724
1724
  }
1725
1725
  return !0;
1726
- }).map((C) => [C.placement, C.overflows.filter((O) => O > 0).reduce((O, U) => O + U, 0)]).sort((C, O) => C[1] - O[1])[0]) == null ? void 0 : te[0];
1726
+ }).map((A) => [A.placement, A.overflows.filter((O) => O > 0).reduce((O, U) => O + U, 0)]).sort((A, O) => A[1] - O[1])[0]) == null ? void 0 : te[0];
1727
1727
  I && (M = I);
1728
1728
  break;
1729
1729
  }
@@ -1731,7 +1731,7 @@ const pa = (e) => ({
1731
1731
  M = i;
1732
1732
  break;
1733
1733
  }
1734
- if (a !== M)
1734
+ if (l !== M)
1735
1735
  return {
1736
1736
  reset: {
1737
1737
  placement: M
@@ -1746,8 +1746,8 @@ async function ma(e, o) {
1746
1746
  const {
1747
1747
  placement: t,
1748
1748
  platform: n,
1749
- elements: a
1750
- } = e, r = await (n.isRTL == null ? void 0 : n.isRTL(a.floating)), l = Ee(t), i = Xe(t), s = Te(t) === "y", u = fa.has(l) ? -1 : 1, d = r && s ? -1 : 1, v = je(o, e);
1749
+ elements: l
1750
+ } = e, r = await (n.isRTL == null ? void 0 : n.isRTL(l.floating)), a = Ee(t), i = Xe(t), s = Te(t) === "y", u = fa.has(a) ? -1 : 1, d = r && s ? -1 : 1, v = je(o, e);
1751
1751
  let {
1752
1752
  mainAxis: x,
1753
1753
  crossAxis: b,
@@ -1776,17 +1776,17 @@ const ha = function(e) {
1776
1776
  async fn(o) {
1777
1777
  var t, n;
1778
1778
  const {
1779
- x: a,
1779
+ x: l,
1780
1780
  y: r,
1781
- placement: l,
1781
+ placement: a,
1782
1782
  middlewareData: i
1783
1783
  } = o, s = await ma(o, e);
1784
- return l === ((t = i.offset) == null ? void 0 : t.placement) && (n = i.arrow) != null && n.alignmentOffset ? {} : {
1785
- x: a + s.x,
1784
+ return a === ((t = i.offset) == null ? void 0 : t.placement) && (n = i.arrow) != null && n.alignmentOffset ? {} : {
1785
+ x: l + s.x,
1786
1786
  y: r + s.y,
1787
1787
  data: {
1788
1788
  ...s,
1789
- placement: l
1789
+ placement: a
1790
1790
  }
1791
1791
  };
1792
1792
  }
@@ -1799,10 +1799,10 @@ const ha = function(e) {
1799
1799
  const {
1800
1800
  x: t,
1801
1801
  y: n,
1802
- placement: a
1802
+ placement: l
1803
1803
  } = o, {
1804
1804
  mainAxis: r = !0,
1805
- crossAxis: l = !1,
1805
+ crossAxis: a = !1,
1806
1806
  limiter: i = {
1807
1807
  fn: (S) => {
1808
1808
  let {
@@ -1819,13 +1819,13 @@ const ha = function(e) {
1819
1819
  } = je(e, o), u = {
1820
1820
  x: t,
1821
1821
  y: n
1822
- }, d = await zt(o, s), v = Te(Ee(a)), x = un(v);
1822
+ }, d = await zt(o, s), v = Te(Ee(l)), x = un(v);
1823
1823
  let b = u[x], $ = u[v];
1824
1824
  if (r) {
1825
1825
  const S = x === "y" ? "top" : "left", w = x === "y" ? "bottom" : "right", y = b + d[S], E = b - d[w];
1826
1826
  b = St(y, b, E);
1827
1827
  }
1828
- if (l) {
1828
+ if (a) {
1829
1829
  const S = v === "y" ? "top" : "left", w = v === "y" ? "bottom" : "right", y = $ + d[S], E = $ - d[w];
1830
1830
  $ = St(y, $, E);
1831
1831
  }
@@ -1841,7 +1841,7 @@ const ha = function(e) {
1841
1841
  y: T.y - n,
1842
1842
  enabled: {
1843
1843
  [x]: r,
1844
- [v]: l
1844
+ [v]: a
1845
1845
  }
1846
1846
  }
1847
1847
  };
@@ -1854,20 +1854,20 @@ const ha = function(e) {
1854
1854
  async fn(o) {
1855
1855
  var t, n;
1856
1856
  const {
1857
- placement: a,
1857
+ placement: l,
1858
1858
  rects: r,
1859
- platform: l,
1859
+ platform: a,
1860
1860
  elements: i
1861
1861
  } = o, {
1862
1862
  apply: s = () => {
1863
1863
  },
1864
1864
  ...u
1865
- } = je(e, o), d = await zt(o, u), v = Ee(a), x = Xe(a), b = Te(a) === "y", {
1865
+ } = je(e, o), d = await zt(o, u), v = Ee(l), x = Xe(l), b = Te(l) === "y", {
1866
1866
  width: $,
1867
1867
  height: T
1868
1868
  } = r.floating;
1869
1869
  let S, w;
1870
- v === "top" || v === "bottom" ? (S = v, w = x === (await (l.isRTL == null ? void 0 : l.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (w = v, S = x === "end" ? "top" : "bottom");
1870
+ v === "top" || v === "bottom" ? (S = v, w = x === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (w = v, S = x === "end" ? "top" : "bottom");
1871
1871
  const y = T - d.top - d.bottom, E = $ - d.left - d.right, R = Le(T - d[S], y), F = Le($ - d[w], E), j = !o.middlewareData.shift;
1872
1872
  let z = R, q = F;
1873
1873
  if ((t = o.middlewareData.shift) != null && t.enabled.x && (q = E), (n = o.middlewareData.shift) != null && n.enabled.y && (z = y), j && !x) {
@@ -1879,7 +1879,7 @@ const ha = function(e) {
1879
1879
  availableWidth: q,
1880
1880
  availableHeight: z
1881
1881
  });
1882
- const h = await l.getDimensions(i.floating);
1882
+ const h = await a.getDimensions(i.floating);
1883
1883
  return $ !== h.width || T !== h.height ? {
1884
1884
  reset: {
1885
1885
  rects: !0
@@ -1920,9 +1920,9 @@ function ct(e) {
1920
1920
  overflow: o,
1921
1921
  overflowX: t,
1922
1922
  overflowY: n,
1923
- display: a
1923
+ display: l
1924
1924
  } = ye(e);
1925
- return /auto|scroll|overlay|hidden|clip/.test(o + n + t) && !ba.has(a);
1925
+ return /auto|scroll|overlay|hidden|clip/.test(o + n + t) && !ba.has(l);
1926
1926
  }
1927
1927
  const wa = /* @__PURE__ */ new Set(["table", "td", "th"]);
1928
1928
  function ya(e) {
@@ -1992,12 +1992,12 @@ function dn(e) {
1992
1992
  function st(e, o, t) {
1993
1993
  var n;
1994
1994
  o === void 0 && (o = []), t === void 0 && (t = !0);
1995
- const a = dn(e), r = a === ((n = e.ownerDocument) == null ? void 0 : n.body), l = _e(a);
1995
+ const l = dn(e), r = l === ((n = e.ownerDocument) == null ? void 0 : n.body), a = _e(l);
1996
1996
  if (r) {
1997
- const i = $t(l);
1998
- return o.concat(l, l.visualViewport || [], ct(a) ? a : [], i && t ? st(i) : []);
1997
+ const i = $t(a);
1998
+ return o.concat(a, a.visualViewport || [], ct(l) ? l : [], i && t ? st(i) : []);
1999
1999
  }
2000
- return o.concat(a, st(a, [], t));
2000
+ return o.concat(l, st(l, [], t));
2001
2001
  }
2002
2002
  function $t(e) {
2003
2003
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
@@ -2005,8 +2005,8 @@ function $t(e) {
2005
2005
  function pn(e) {
2006
2006
  const o = ye(e);
2007
2007
  let t = parseFloat(o.width) || 0, n = parseFloat(o.height) || 0;
2008
- const a = Be(e), r = a ? e.offsetWidth : t, l = a ? e.offsetHeight : n, i = vt(t) !== r || vt(n) !== l;
2009
- return i && (t = r, n = l), {
2008
+ const l = Be(e), r = l ? e.offsetWidth : t, a = l ? e.offsetHeight : n, i = vt(t) !== r || vt(n) !== a;
2009
+ return i && (t = r, n = a), {
2010
2010
  width: t,
2011
2011
  height: n,
2012
2012
  $: i
@@ -2021,12 +2021,12 @@ function Qe(e) {
2021
2021
  return Ce(1);
2022
2022
  const t = o.getBoundingClientRect(), {
2023
2023
  width: n,
2024
- height: a,
2024
+ height: l,
2025
2025
  $: r
2026
2026
  } = pn(o);
2027
- let l = (r ? vt(t.width) : t.width) / n, i = (r ? vt(t.height) : t.height) / a;
2028
- return (!l || !Number.isFinite(l)) && (l = 1), (!i || !Number.isFinite(i)) && (i = 1), {
2029
- x: l,
2027
+ let a = (r ? vt(t.width) : t.width) / n, i = (r ? vt(t.height) : t.height) / l;
2028
+ return (!a || !Number.isFinite(a)) && (a = 1), (!i || !Number.isFinite(i)) && (i = 1), {
2029
+ x: a,
2030
2030
  y: i
2031
2031
  };
2032
2032
  }
@@ -2043,11 +2043,11 @@ function $a(e, o, t) {
2043
2043
  }
2044
2044
  function He(e, o, t, n) {
2045
2045
  o === void 0 && (o = !1), t === void 0 && (t = !1);
2046
- const a = e.getBoundingClientRect(), r = Ft(e);
2047
- let l = Ce(1);
2048
- o && (n ? we(n) && (l = Qe(n)) : l = Qe(e));
2046
+ const l = e.getBoundingClientRect(), r = Ft(e);
2047
+ let a = Ce(1);
2048
+ o && (n ? we(n) && (a = Qe(n)) : a = Qe(e));
2049
2049
  const i = $a(r, t, n) ? _n(r) : Ce(0);
2050
- let s = (a.left + i.x) / l.x, u = (a.top + i.y) / l.y, d = a.width / l.x, v = a.height / l.y;
2050
+ let s = (l.left + i.x) / a.x, u = (l.top + i.y) / a.y, d = l.width / a.x, v = l.height / a.y;
2051
2051
  if (r) {
2052
2052
  const x = _e(r), b = n && we(n) ? _e(n) : n;
2053
2053
  let $ = x, T = $t($);
@@ -2068,10 +2068,10 @@ function kt(e, o) {
2068
2068
  return o ? o.left + t : He(Se(e)).left + t;
2069
2069
  }
2070
2070
  function fn(e, o) {
2071
- const t = e.getBoundingClientRect(), n = t.left + o.scrollLeft - kt(e, t), a = t.top + o.scrollTop;
2071
+ const t = e.getBoundingClientRect(), n = t.left + o.scrollLeft - kt(e, t), l = t.top + o.scrollTop;
2072
2072
  return {
2073
2073
  x: n,
2074
- y: a
2074
+ y: l
2075
2075
  };
2076
2076
  }
2077
2077
  function Ma(e) {
@@ -2079,21 +2079,21 @@ function Ma(e) {
2079
2079
  elements: o,
2080
2080
  rect: t,
2081
2081
  offsetParent: n,
2082
- strategy: a
2082
+ strategy: l
2083
2083
  } = e;
2084
- const r = a === "fixed", l = Se(n), i = o ? yt(o.floating) : !1;
2085
- if (n === l || i && r)
2084
+ const r = l === "fixed", a = Se(n), i = o ? yt(o.floating) : !1;
2085
+ if (n === a || i && r)
2086
2086
  return t;
2087
2087
  let s = {
2088
2088
  scrollLeft: 0,
2089
2089
  scrollTop: 0
2090
2090
  }, u = Ce(1);
2091
2091
  const d = Ce(0), v = Be(n);
2092
- if ((v || !v && !r) && ((Ne(n) !== "body" || ct(l)) && (s = xt(n)), Be(n))) {
2092
+ if ((v || !v && !r) && ((Ne(n) !== "body" || ct(a)) && (s = xt(n)), Be(n))) {
2093
2093
  const b = He(n);
2094
2094
  u = Qe(n), d.x = b.x + n.clientLeft, d.y = b.y + n.clientTop;
2095
2095
  }
2096
- const x = l && !v && !r ? fn(l, s) : Ce(0);
2096
+ const x = a && !v && !r ? fn(a, s) : Ce(0);
2097
2097
  return {
2098
2098
  width: t.width * u.x,
2099
2099
  height: t.height * u.y,
@@ -2105,24 +2105,24 @@ function Ta(e) {
2105
2105
  return Array.from(e.getClientRects());
2106
2106
  }
2107
2107
  function Va(e) {
2108
- const o = Se(e), t = xt(e), n = e.ownerDocument.body, a = pe(o.scrollWidth, o.clientWidth, n.scrollWidth, n.clientWidth), r = pe(o.scrollHeight, o.clientHeight, n.scrollHeight, n.clientHeight);
2109
- let l = -t.scrollLeft + kt(e);
2108
+ const o = Se(e), t = xt(e), n = e.ownerDocument.body, l = pe(o.scrollWidth, o.clientWidth, n.scrollWidth, n.clientWidth), r = pe(o.scrollHeight, o.clientHeight, n.scrollHeight, n.clientHeight);
2109
+ let a = -t.scrollLeft + kt(e);
2110
2110
  const i = -t.scrollTop;
2111
- return ye(n).direction === "rtl" && (l += pe(o.clientWidth, n.clientWidth) - a), {
2112
- width: a,
2111
+ return ye(n).direction === "rtl" && (a += pe(o.clientWidth, n.clientWidth) - l), {
2112
+ width: l,
2113
2113
  height: r,
2114
- x: l,
2114
+ x: a,
2115
2115
  y: i
2116
2116
  };
2117
2117
  }
2118
2118
  const Xt = 25;
2119
2119
  function Ra(e, o) {
2120
- const t = _e(e), n = Se(e), a = t.visualViewport;
2121
- let r = n.clientWidth, l = n.clientHeight, i = 0, s = 0;
2122
- if (a) {
2123
- r = a.width, l = a.height;
2120
+ const t = _e(e), n = Se(e), l = t.visualViewport;
2121
+ let r = n.clientWidth, a = n.clientHeight, i = 0, s = 0;
2122
+ if (l) {
2123
+ r = l.width, a = l.height;
2124
2124
  const d = Nt();
2125
- (!d || d && o === "fixed") && (i = a.offsetLeft, s = a.offsetTop);
2125
+ (!d || d && o === "fixed") && (i = l.offsetLeft, s = l.offsetTop);
2126
2126
  }
2127
2127
  const u = kt(n);
2128
2128
  if (u <= 0) {
@@ -2131,16 +2131,16 @@ function Ra(e, o) {
2131
2131
  } else u <= Xt && (r += u);
2132
2132
  return {
2133
2133
  width: r,
2134
- height: l,
2134
+ height: a,
2135
2135
  x: i,
2136
2136
  y: s
2137
2137
  };
2138
2138
  }
2139
2139
  const La = /* @__PURE__ */ new Set(["absolute", "fixed"]);
2140
2140
  function Ea(e, o) {
2141
- const t = He(e, !0, o === "fixed"), n = t.top + e.clientTop, a = t.left + e.clientLeft, r = Be(e) ? Qe(e) : Ce(1), l = e.clientWidth * r.x, i = e.clientHeight * r.y, s = a * r.x, u = n * r.y;
2141
+ const t = He(e, !0, o === "fixed"), n = t.top + e.clientTop, l = t.left + e.clientLeft, r = Be(e) ? Qe(e) : Ce(1), a = e.clientWidth * r.x, i = e.clientHeight * r.y, s = l * r.x, u = n * r.y;
2142
2142
  return {
2143
- width: l,
2143
+ width: a,
2144
2144
  height: i,
2145
2145
  x: s,
2146
2146
  y: u
@@ -2155,10 +2155,10 @@ function Zt(e, o, t) {
2155
2155
  else if (we(o))
2156
2156
  n = Ea(o, t);
2157
2157
  else {
2158
- const a = _n(e);
2158
+ const l = _n(e);
2159
2159
  n = {
2160
- x: o.x - a.x,
2161
- y: o.y - a.y,
2160
+ x: o.x - l.x,
2161
+ y: o.y - l.y,
2162
2162
  width: o.width,
2163
2163
  height: o.height
2164
2164
  };
@@ -2173,12 +2173,12 @@ function Oa(e, o) {
2173
2173
  const t = o.get(e);
2174
2174
  if (t)
2175
2175
  return t;
2176
- let n = st(e, [], !1).filter((i) => we(i) && Ne(i) !== "body"), a = null;
2176
+ let n = st(e, [], !1).filter((i) => we(i) && Ne(i) !== "body"), l = null;
2177
2177
  const r = ye(e).position === "fixed";
2178
- let l = r ? Oe(e) : e;
2179
- for (; we(l) && !Ye(l); ) {
2180
- const i = ye(l), s = Ht(l);
2181
- !s && i.position === "fixed" && (a = null), (r ? !s && !a : !s && i.position === "static" && !!a && La.has(a.position) || ct(l) && !s && mn(e, l)) ? n = n.filter((d) => d !== l) : a = i, l = Oe(l);
2178
+ let a = r ? Oe(e) : e;
2179
+ for (; we(a) && !Ye(a); ) {
2180
+ const i = ye(a), s = Ht(a);
2181
+ !s && i.position === "fixed" && (l = null), (r ? !s && !l : !s && i.position === "static" && !!l && La.has(l.position) || ct(a) && !s && mn(e, a)) ? n = n.filter((d) => d !== a) : l = i, a = Oe(a);
2182
2182
  }
2183
2183
  return o.set(e, n), n;
2184
2184
  }
@@ -2187,12 +2187,12 @@ function Pa(e) {
2187
2187
  element: o,
2188
2188
  boundary: t,
2189
2189
  rootBoundary: n,
2190
- strategy: a
2190
+ strategy: l
2191
2191
  } = e;
2192
- const l = [...t === "clippingAncestors" ? yt(o) ? [] : Oa(o, this._c) : [].concat(t), n], i = l[0], s = l.reduce((u, d) => {
2193
- const v = Zt(o, d, a);
2192
+ const a = [...t === "clippingAncestors" ? yt(o) ? [] : Oa(o, this._c) : [].concat(t), n], i = a[0], s = a.reduce((u, d) => {
2193
+ const v = Zt(o, d, l);
2194
2194
  return u.top = pe(v.top, u.top), u.right = Le(v.right, u.right), u.bottom = Le(v.bottom, u.bottom), u.left = pe(v.left, u.left), u;
2195
- }, Zt(o, i, a));
2195
+ }, Zt(o, i, l));
2196
2196
  return {
2197
2197
  width: s.right - s.left,
2198
2198
  height: s.bottom - s.top,
@@ -2211,27 +2211,27 @@ function za(e) {
2211
2211
  };
2212
2212
  }
2213
2213
  function Da(e, o, t) {
2214
- const n = Be(o), a = Se(o), r = t === "fixed", l = He(e, !0, r, o);
2214
+ const n = Be(o), l = Se(o), r = t === "fixed", a = He(e, !0, r, o);
2215
2215
  let i = {
2216
2216
  scrollLeft: 0,
2217
2217
  scrollTop: 0
2218
2218
  };
2219
2219
  const s = Ce(0);
2220
2220
  function u() {
2221
- s.x = kt(a);
2221
+ s.x = kt(l);
2222
2222
  }
2223
2223
  if (n || !n && !r)
2224
- if ((Ne(o) !== "body" || ct(a)) && (i = xt(o)), n) {
2224
+ if ((Ne(o) !== "body" || ct(l)) && (i = xt(o)), n) {
2225
2225
  const b = He(o, !0, r, o);
2226
2226
  s.x = b.x + o.clientLeft, s.y = b.y + o.clientTop;
2227
- } else a && u();
2228
- r && !n && a && u();
2229
- const d = a && !n && !r ? fn(a, i) : Ce(0), v = l.left + i.scrollLeft - s.x - d.x, x = l.top + i.scrollTop - s.y - d.y;
2227
+ } else l && u();
2228
+ r && !n && l && u();
2229
+ const d = l && !n && !r ? fn(l, i) : Ce(0), v = a.left + i.scrollLeft - s.x - d.x, x = a.top + i.scrollTop - s.y - d.y;
2230
2230
  return {
2231
2231
  x: v,
2232
2232
  y: x,
2233
- width: l.width,
2234
- height: l.height
2233
+ width: a.width,
2234
+ height: a.height
2235
2235
  };
2236
2236
  }
2237
2237
  function Ct(e) {
@@ -2250,11 +2250,11 @@ function hn(e, o) {
2250
2250
  if (yt(e))
2251
2251
  return t;
2252
2252
  if (!Be(e)) {
2253
- let a = Oe(e);
2254
- for (; a && !Ye(a); ) {
2255
- if (we(a) && !Ct(a))
2256
- return a;
2257
- a = Oe(a);
2253
+ let l = Oe(e);
2254
+ for (; l && !Ye(l); ) {
2255
+ if (we(l) && !Ct(l))
2256
+ return l;
2257
+ l = Oe(l);
2258
2258
  }
2259
2259
  return t;
2260
2260
  }
@@ -2295,12 +2295,12 @@ function vn(e, o) {
2295
2295
  }
2296
2296
  function Wa(e, o) {
2297
2297
  let t = null, n;
2298
- const a = Se(e);
2298
+ const l = Se(e);
2299
2299
  function r() {
2300
2300
  var i;
2301
2301
  clearTimeout(n), (i = t) == null || i.disconnect(), t = null;
2302
2302
  }
2303
- function l(i, s) {
2303
+ function a(i, s) {
2304
2304
  i === void 0 && (i = !1), s === void 0 && (s = 1), r();
2305
2305
  const u = e.getBoundingClientRect(), {
2306
2306
  left: d,
@@ -2310,7 +2310,7 @@ function Wa(e, o) {
2310
2310
  } = u;
2311
2311
  if (i || o(), !x || !b)
2312
2312
  return;
2313
- const $ = pt(v), T = pt(a.clientWidth - (d + x)), S = pt(a.clientHeight - (v + b)), w = pt(d), E = {
2313
+ const $ = pt(v), T = pt(l.clientWidth - (d + x)), S = pt(l.clientHeight - (v + b)), w = pt(d), E = {
2314
2314
  rootMargin: -$ + "px " + -T + "px " + -S + "px " + -w + "px",
2315
2315
  threshold: pe(0, Le(1, s)) || 1
2316
2316
  };
@@ -2319,43 +2319,43 @@ function Wa(e, o) {
2319
2319
  const z = j[0].intersectionRatio;
2320
2320
  if (z !== s) {
2321
2321
  if (!R)
2322
- return l();
2323
- z ? l(!1, z) : n = setTimeout(() => {
2324
- l(!1, 1e-7);
2322
+ return a();
2323
+ z ? a(!1, z) : n = setTimeout(() => {
2324
+ a(!1, 1e-7);
2325
2325
  }, 1e3);
2326
2326
  }
2327
- z === 1 && !vn(u, e.getBoundingClientRect()) && l(), R = !1;
2327
+ z === 1 && !vn(u, e.getBoundingClientRect()) && a(), R = !1;
2328
2328
  }
2329
2329
  try {
2330
2330
  t = new IntersectionObserver(F, {
2331
2331
  ...E,
2332
2332
  // Handle <iframe>s
2333
- root: a.ownerDocument
2333
+ root: l.ownerDocument
2334
2334
  });
2335
2335
  } catch {
2336
2336
  t = new IntersectionObserver(F, E);
2337
2337
  }
2338
2338
  t.observe(e);
2339
2339
  }
2340
- return l(!0), r;
2340
+ return a(!0), r;
2341
2341
  }
2342
2342
  function Mt(e, o, t, n) {
2343
2343
  n === void 0 && (n = {});
2344
2344
  const {
2345
- ancestorScroll: a = !0,
2345
+ ancestorScroll: l = !0,
2346
2346
  ancestorResize: r = !0,
2347
- elementResize: l = typeof ResizeObserver == "function",
2347
+ elementResize: a = typeof ResizeObserver == "function",
2348
2348
  layoutShift: i = typeof IntersectionObserver == "function",
2349
2349
  animationFrame: s = !1
2350
- } = n, u = Ft(e), d = a || r ? [...u ? st(u) : [], ...st(o)] : [];
2350
+ } = n, u = Ft(e), d = l || r ? [...u ? st(u) : [], ...st(o)] : [];
2351
2351
  d.forEach((w) => {
2352
- a && w.addEventListener("scroll", t, {
2352
+ l && w.addEventListener("scroll", t, {
2353
2353
  passive: !0
2354
2354
  }), r && w.addEventListener("resize", t);
2355
2355
  });
2356
2356
  const v = u && i ? Wa(u, t) : null;
2357
2357
  let x = -1, b = null;
2358
- l && (b = new ResizeObserver((w) => {
2358
+ a && (b = new ResizeObserver((w) => {
2359
2359
  let [y] = w;
2360
2360
  y && y.target === u && b && (b.unobserve(o), cancelAnimationFrame(x), x = requestAnimationFrame(() => {
2361
2361
  var E;
@@ -2371,20 +2371,20 @@ function Mt(e, o, t, n) {
2371
2371
  return t(), () => {
2372
2372
  var w;
2373
2373
  d.forEach((y) => {
2374
- a && y.removeEventListener("scroll", t), r && y.removeEventListener("resize", t);
2374
+ l && y.removeEventListener("scroll", t), r && y.removeEventListener("resize", t);
2375
2375
  }), v == null || v(), (w = b) == null || w.disconnect(), b = null, s && cancelAnimationFrame($);
2376
2376
  };
2377
2377
  }
2378
2378
  const Tt = ha, Vt = va, Rt = _a, Ua = ga, qa = pa, Ka = (e, o, t) => {
2379
- const n = /* @__PURE__ */ new Map(), a = {
2379
+ const n = /* @__PURE__ */ new Map(), l = {
2380
2380
  platform: Fa,
2381
2381
  ...t
2382
2382
  }, r = {
2383
- ...a.platform,
2383
+ ...l.platform,
2384
2384
  _c: n
2385
2385
  };
2386
2386
  return da(e, o, {
2387
- ...a,
2387
+ ...l,
2388
2388
  platform: r
2389
2389
  });
2390
2390
  };
@@ -2423,10 +2423,10 @@ function en(e, o) {
2423
2423
  }
2424
2424
  function Et(e, o, t) {
2425
2425
  t === void 0 && (t = {});
2426
- const n = t.whileElementsMounted, a = k(() => {
2426
+ const n = t.whileElementsMounted, l = k(() => {
2427
2427
  var z;
2428
2428
  return (z = Ke(t.open)) != null ? z : !0;
2429
- }), r = k(() => Ke(t.middleware)), l = k(() => {
2429
+ }), r = k(() => Ke(t.middleware)), a = k(() => {
2430
2430
  var z;
2431
2431
  return (z = Ke(t.placement)) != null ? z : "bottom";
2432
2432
  }), i = k(() => {
@@ -2435,7 +2435,7 @@ function Et(e, o, t) {
2435
2435
  }), s = k(() => {
2436
2436
  var z;
2437
2437
  return (z = Ke(t.transform)) != null ? z : !0;
2438
- }), u = k(() => Lt(e.value)), d = k(() => Lt(o.value)), v = P(0), x = P(0), b = P(i.value), $ = P(l.value), T = yn({}), S = P(!1), w = k(() => {
2438
+ }), u = k(() => Lt(e.value)), d = k(() => Lt(o.value)), v = P(0), x = P(0), b = P(i.value), $ = P(a.value), T = yn({}), S = P(!1), w = k(() => {
2439
2439
  const z = {
2440
2440
  position: b.value,
2441
2441
  left: "0",
@@ -2460,10 +2460,10 @@ function Et(e, o, t) {
2460
2460
  function E() {
2461
2461
  if (u.value == null || d.value == null)
2462
2462
  return;
2463
- const z = a.value;
2463
+ const z = l.value;
2464
2464
  Ka(u.value, d.value, {
2465
2465
  middleware: r.value,
2466
- placement: l.value,
2466
+ placement: a.value,
2467
2467
  strategy: i.value
2468
2468
  }).then((q) => {
2469
2469
  v.value = q.x, x.value = q.y, b.value = q.strategy, $.value = q.placement, T.value = q.middlewareData, S.value = z !== !1;
@@ -2483,13 +2483,13 @@ function Et(e, o, t) {
2483
2483
  }
2484
2484
  }
2485
2485
  function j() {
2486
- a.value || (S.value = !1);
2486
+ l.value || (S.value = !1);
2487
2487
  }
2488
- return le([r, l, i, a], E, {
2488
+ return le([r, a, i, l], E, {
2489
2489
  flush: "sync"
2490
2490
  }), le([u, d], F, {
2491
2491
  flush: "sync"
2492
- }), le(a, j, {
2492
+ }), le(l, j, {
2493
2493
  flush: "sync"
2494
2494
  }), xn() && kn(R), {
2495
2495
  x: We(v),
@@ -2584,7 +2584,7 @@ const Ga = ["data-testid"], ja = {
2584
2584
  },
2585
2585
  emits: ["update:open", "item-click", "item-expand", "select", "update:search-query"],
2586
2586
  setup(e, { emit: o }) {
2587
- const t = e, n = o, a = P(null), r = P(null), l = P(null), i = P(""), s = P(""), u = /* @__PURE__ */ new Map(), d = `in-cascading-menu-search-${Math.random().toString(36).slice(2, 9)}`, v = k(() => t.searchInputId ?? d), x = k(() => `${v.value}-child`), b = k(() => t.items.flatMap((B) => "kind" in B && B.kind === "group" ? [
2587
+ const t = e, n = o, l = P(null), r = P(null), a = P(null), i = P(""), s = P(""), u = /* @__PURE__ */ new Map(), d = `in-cascading-menu-search-${Math.random().toString(36).slice(2, 9)}`, v = k(() => t.searchInputId ?? d), x = k(() => `${v.value}-child`), b = k(() => t.items.flatMap((B) => "kind" in B && B.kind === "group" ? [
2588
2588
  { type: "group-header", label: B.label },
2589
2589
  ...B.items.map((K) => ({ type: "item", item: K }))
2590
2590
  ] : [{ type: "item", item: B }])), $ = k(() => b.value.filter((B) => B.type === "item").map((B) => B.item)), T = k(() => t.searchable), S = k(() => T.value && s.value.trim().length > 0), w = k(() => {
@@ -2593,10 +2593,10 @@ const Ga = ["data-testid"], ja = {
2593
2593
  maxWidth: `${t.width}px`
2594
2594
  };
2595
2595
  return t.menuMaxHeight && (B.maxHeight = `${t.menuMaxHeight}px`), B;
2596
- }), y = k(() => ({ width: `${t.listWidth}px` })), E = k(() => l.value ? $.value.find((B) => B.id === l.value) ?? null : null), R = k(() => {
2596
+ }), y = k(() => ({ width: `${t.listWidth}px` })), E = k(() => a.value ? $.value.find((B) => B.id === a.value) ?? null : null), R = k(() => {
2597
2597
  var B;
2598
2598
  return ((B = E.value) == null ? void 0 : B.subList) ?? null;
2599
- }), F = k(() => l.value ? u.get(l.value) ?? null : null), j = k(() => t.open && !S.value && R.value !== null), z = k(() => t.anchor), { floatingStyles: q } = Et(z, a, {
2599
+ }), F = k(() => a.value ? u.get(a.value) ?? null : null), j = k(() => t.open && !S.value && R.value !== null), z = k(() => t.anchor), { floatingStyles: q } = Et(z, l, {
2600
2600
  placement: "bottom-start",
2601
2601
  strategy: "fixed",
2602
2602
  whileElementsMounted: Mt,
@@ -2631,15 +2631,15 @@ const Ga = ["data-testid"], ja = {
2631
2631
  function I(B, K) {
2632
2632
  K instanceof HTMLElement ? u.set(B, K) : u.delete(B);
2633
2633
  }
2634
- function C(B) {
2634
+ function A(B) {
2635
2635
  if (S.value)
2636
2636
  return;
2637
- const K = l.value === B.id;
2638
- l.value = B.id, i.value = "", B.subList && !K && n("item-expand", B.id);
2637
+ const K = a.value === B.id;
2638
+ a.value = B.id, i.value = "", B.subList && !K && n("item-expand", B.id);
2639
2639
  }
2640
2640
  function O(B) {
2641
2641
  if (B.subList) {
2642
- l.value = B.id;
2642
+ a.value = B.id;
2643
2643
  return;
2644
2644
  }
2645
2645
  n("item-click", B.id);
@@ -2652,7 +2652,7 @@ const Ga = ["data-testid"], ja = {
2652
2652
  }
2653
2653
  function ae(B) {
2654
2654
  const K = String(B);
2655
- s.value = K, l.value = null, i.value = "", n("update:search-query", K);
2655
+ s.value = K, a.value = null, i.value = "", n("update:search-query", K);
2656
2656
  }
2657
2657
  function ne(B) {
2658
2658
  i.value = String(B);
@@ -2661,7 +2661,7 @@ const Ga = ["data-testid"], ja = {
2661
2661
  var D, Y;
2662
2662
  if (!B)
2663
2663
  return !1;
2664
- if ((D = a.value) != null && D.contains(B) || (Y = r.value) != null && Y.contains(B))
2664
+ if ((D = l.value) != null && D.contains(B) || (Y = r.value) != null && Y.contains(B))
2665
2665
  return !0;
2666
2666
  const { anchor: K } = t;
2667
2667
  return K && "contains" in K && typeof K.contains == "function" ? K.contains(B) : !1;
@@ -2672,21 +2672,21 @@ const Ga = ["data-testid"], ja = {
2672
2672
  function ve(B) {
2673
2673
  if (!(!t.open || B.key !== "Escape")) {
2674
2674
  if (s.value || i.value) {
2675
- B.stopPropagation(), s.value = "", i.value = "", l.value = null;
2675
+ B.stopPropagation(), s.value = "", i.value = "", a.value = null;
2676
2676
  return;
2677
2677
  }
2678
2678
  n("update:open", !1);
2679
2679
  }
2680
2680
  }
2681
2681
  return le(() => t.open, (B) => {
2682
- B ? (document.addEventListener("pointerdown", de, !0), window.addEventListener("keydown", ve)) : (document.removeEventListener("pointerdown", de, !0), window.removeEventListener("keydown", ve), l.value = null, i.value = "", s.value = "", u.clear());
2682
+ B ? (document.addEventListener("pointerdown", de, !0), window.addEventListener("keydown", ve)) : (document.removeEventListener("pointerdown", de, !0), window.removeEventListener("keydown", ve), a.value = null, i.value = "", s.value = "", u.clear());
2683
2683
  }, { immediate: !0 }), ut(() => {
2684
2684
  document.removeEventListener("pointerdown", de, !0), window.removeEventListener("keydown", ve);
2685
2685
  }), (B, K) => (p(), J(ln, { to: B.teleportTarget }, [
2686
2686
  B.open ? (p(), f("div", {
2687
2687
  key: 0,
2688
2688
  ref_key: "menuRef",
2689
- ref: a,
2689
+ ref: l,
2690
2690
  class: "in-cascading-menu",
2691
2691
  role: "menu",
2692
2692
  "data-testid": B.menuTestId,
@@ -2706,7 +2706,7 @@ const Ga = ["data-testid"], ja = {
2706
2706
  "onUpdate:modelValue": ae
2707
2707
  }, null, 8, ["id", "model-value", "placeholder-text"])
2708
2708
  ])) : V("", !0),
2709
- A("div", {
2709
+ C("div", {
2710
2710
  class: g(["in-cascading-menu__body", { "is-flat-search": S.value }])
2711
2711
  }, [
2712
2712
  B.loading ? (p(), f("div", Xa, [
@@ -2722,13 +2722,13 @@ const Ga = ["data-testid"], ja = {
2722
2722
  name: "line-no-search-result",
2723
2723
  size: 40
2724
2724
  }),
2725
- A("span", el, H(B.emptySearchText), 1)
2725
+ C("span", el, H(B.emptySearchText), 1)
2726
2726
  ])) : (p(), f("div", tl, [
2727
2727
  (p(!0), f(ie, null, me(m.value, (D) => (p(), f("section", {
2728
2728
  key: D.parentId,
2729
2729
  class: "in-cascading-menu__flat-group"
2730
2730
  }, [
2731
- A("h4", nl, H(D.parentLabel), 1),
2731
+ C("h4", nl, H(D.parentLabel), 1),
2732
2732
  (p(!0), f(ie, null, me(D.items, (Y) => (p(), f("button", {
2733
2733
  key: `${D.parentId}-${Y.id}`,
2734
2734
  class: g(["in-cascading-menu__list-item", {
@@ -2741,8 +2741,8 @@ const Ga = ["data-testid"], ja = {
2741
2741
  disabled: Y.disabled,
2742
2742
  onClick: (oe) => U(D.parentId, Y)
2743
2743
  }, [
2744
- A("span", al, [
2745
- A("span", ll, H(Y.label), 1),
2744
+ C("span", al, [
2745
+ C("span", ll, H(Y.label), 1),
2746
2746
  Y.subtitle ? (p(), f("span", il, H(Y.subtitle), 1)) : V("", !0)
2747
2747
  ]),
2748
2748
  Y.meta ? (p(), f("span", sl, H(Y.meta), 1)) : V("", !0)
@@ -2757,7 +2757,7 @@ const Ga = ["data-testid"], ja = {
2757
2757
  ref_for: !0,
2758
2758
  ref: (oe) => I(D.item.id, oe),
2759
2759
  class: g(["in-cascading-menu__item", {
2760
- "is-active": l.value === D.item.id,
2760
+ "is-active": a.value === D.item.id,
2761
2761
  "is-selected": B.selectedItemId === D.item.id
2762
2762
  }]),
2763
2763
  role: "menuitem",
@@ -2765,10 +2765,10 @@ const Ga = ["data-testid"], ja = {
2765
2765
  "data-item-id": D.item.id,
2766
2766
  "data-testid": D.item.testId,
2767
2767
  onClick: (oe) => O(D.item),
2768
- onFocus: (oe) => C(D.item),
2769
- onMouseenter: (oe) => C(D.item)
2768
+ onFocus: (oe) => A(D.item),
2769
+ onMouseenter: (oe) => A(D.item)
2770
2770
  }, [
2771
- A("span", cl, H(D.item.label), 1),
2771
+ C("span", cl, H(D.item.label), 1),
2772
2772
  D.item.hasChildren || D.item.subList ? (p(), J(X, {
2773
2773
  key: 0,
2774
2774
  class: "in-cascading-menu__item-chevron",
@@ -2802,7 +2802,7 @@ const Ga = ["data-testid"], ja = {
2802
2802
  "onUpdate:modelValue": ne
2803
2803
  }, null, 8, ["id", "model-value", "placeholder-text"])
2804
2804
  ])) : V("", !0),
2805
- A("div", _l, [
2805
+ C("div", _l, [
2806
2806
  R.value.loading ? (p(), f("div", fl, [
2807
2807
  Z(X, {
2808
2808
  class: "in-cascading-menu__spinner-icon",
@@ -2811,13 +2811,13 @@ const Ga = ["data-testid"], ja = {
2811
2811
  }),
2812
2812
  B.loadingText ? (p(), f("span", ml, H(B.loadingText), 1)) : V("", !0)
2813
2813
  ])) : R.value.error ? (p(), f("div", hl, [
2814
- A("span", vl, H(R.value.error), 1)
2814
+ C("span", vl, H(R.value.error), 1)
2815
2815
  ])) : _.value.length === 0 && i.value ? (p(), f("div", gl, [
2816
2816
  Z(X, {
2817
2817
  name: "line-no-search-result",
2818
2818
  size: 40
2819
2819
  }),
2820
- A("span", bl, H(R.value.noResultText || "No Search Result"), 1)
2820
+ C("span", bl, H(R.value.noResultText || "No Search Result"), 1)
2821
2821
  ])) : _.value.length === 0 ? (p(), f("div", wl, [
2822
2822
  Z(X, {
2823
2823
  name: "line-empty-box",
@@ -2837,8 +2837,8 @@ const Ga = ["data-testid"], ja = {
2837
2837
  onMousedown: K[0] || (K[0] = rt(() => {
2838
2838
  }, ["prevent"]))
2839
2839
  }, [
2840
- A("span", Al, [
2841
- A("span", Cl, H(D.label), 1),
2840
+ C("span", Al, [
2841
+ C("span", Cl, H(D.label), 1),
2842
2842
  D.subtitle ? (p(), f("span", Bl, H(D.subtitle), 1)) : V("", !0)
2843
2843
  ]),
2844
2844
  D.meta ? (p(), f("span", Sl, H(D.meta), 1)) : V("", !0)
@@ -2867,21 +2867,21 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
2867
2867
  },
2868
2868
  emits: ["update:modelValue", "escape", "clear"],
2869
2869
  setup(e, { expose: o, emit: t }) {
2870
- const n = e, a = t, r = bn("search"), l = k(() => n.id || r), i = k(() => n.name || l.value), s = P(null), u = k(() => n.modelValue.length > 0), d = k(() => n.clearable && u.value ? Tl : "line-search");
2870
+ const n = e, l = t, r = bn("search"), a = k(() => n.id || r), i = k(() => n.name || a.value), s = P(null), u = k(() => n.modelValue.length > 0), d = k(() => n.clearable && u.value ? Tl : "line-search");
2871
2871
  function v(T) {
2872
- a("update:modelValue", String(T));
2872
+ l("update:modelValue", String(T));
2873
2873
  }
2874
2874
  function x(T) {
2875
2875
  if (T.key === "Escape") {
2876
2876
  if (T.stopPropagation(), n.modelValue) {
2877
- a("update:modelValue", ""), a("clear");
2877
+ l("update:modelValue", ""), l("clear");
2878
2878
  return;
2879
2879
  }
2880
- a("escape");
2880
+ l("escape");
2881
2881
  }
2882
2882
  }
2883
2883
  function b() {
2884
- !n.clearable || !u.value || (a("update:modelValue", ""), a("clear"));
2884
+ !n.clearable || !u.value || (l("update:modelValue", ""), l("clear"));
2885
2885
  }
2886
2886
  function $() {
2887
2887
  var S, w;
@@ -2893,7 +2893,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
2893
2893
  onKeydown: x
2894
2894
  }, [
2895
2895
  Z(it, {
2896
- id: l.value,
2896
+ id: a.value,
2897
2897
  ref_key: "inputRef",
2898
2898
  ref: s,
2899
2899
  "right-icon-status": "",
@@ -2970,11 +2970,11 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
2970
2970
  },
2971
2971
  emits: ["toggle"],
2972
2972
  setup(e, { expose: o, emit: t }) {
2973
- const n = e, a = t, r = bn("select-field"), l = P(null), i = k(() => !!n.error), s = k(() => !n.value), u = k(() => n.value || n.placeholder);
2973
+ const n = e, l = t, r = bn("select-field"), a = P(null), i = k(() => !!n.error), s = k(() => !n.value), u = k(() => n.value || n.placeholder);
2974
2974
  function d() {
2975
- n.disabled || a("toggle");
2975
+ n.disabled || l("toggle");
2976
2976
  }
2977
- return o({ triggerRef: l }), (v, x) => (p(), f("fieldset", {
2977
+ return o({ triggerRef: a }), (v, x) => (p(), f("fieldset", {
2978
2978
  class: g(c(xe).root)
2979
2979
  }, [
2980
2980
  v.label ? (p(), J(c(at), {
@@ -2988,10 +2988,10 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
2988
2988
  ]),
2989
2989
  _: 1
2990
2990
  }, 8, ["for"])) : V("", !0),
2991
- A("button", {
2991
+ C("button", {
2992
2992
  id: `${c(r)}-trigger`,
2993
2993
  ref_key: "triggerRef",
2994
- ref: l,
2994
+ ref: a,
2995
2995
  type: "button",
2996
2996
  "aria-expanded": v.isOpen,
2997
2997
  "aria-haspopup": !0,
@@ -3016,7 +3016,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3016
3016
  ]),
3017
3017
  _: 1
3018
3018
  }, 8, ["class", "variant"]),
3019
- A("span", {
3019
+ C("span", {
3020
3020
  class: g([c(xe).chevron, { [c(xe).isOpen]: v.isOpen }])
3021
3021
  }, [
3022
3022
  Z(X, {
@@ -3070,40 +3070,40 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3070
3070
  },
3071
3071
  emits: ["update:modelValue", "open", "close"],
3072
3072
  setup(e, { expose: o, emit: t }) {
3073
- const n = rn, a = e, r = t, l = P(null), i = P(null), s = P(!1), u = P({}), d = P(a.modelValue), v = ["left-side", "right-side"];
3073
+ const n = rn, l = e, r = t, a = P(null), i = P(null), s = P(!1), u = P({}), d = P(l.modelValue), v = ["left-side", "right-side"];
3074
3074
  function x(h) {
3075
3075
  return v.includes(h);
3076
3076
  }
3077
3077
  function b() {
3078
- return a.width ? { width: `${a.width}px`, minWidth: `${a.width}px` } : {};
3078
+ return l.width ? { width: `${l.width}px`, minWidth: `${l.width}px` } : {};
3079
3079
  }
3080
3080
  function $(h, L) {
3081
- const N = h.bottom - L.height, W = a.align === "left-side" ? h.left - L.width - a.gap : h.right + a.gap;
3081
+ const N = h.bottom - L.height, W = l.align === "left-side" ? h.left - L.width - l.gap : h.right + l.gap;
3082
3082
  return { top: N, left: W };
3083
3083
  }
3084
3084
  function T(h, L) {
3085
- const N = a.position === "top" ? h.top - L.height - a.gap : h.bottom + a.gap;
3086
- return a.align === "right" ? { top: N, left: h.right - L.width } : a.align === "center" ? { top: N, left: h.left + (h.width - L.width) / 2 } : { top: N, left: h.left };
3085
+ const N = l.position === "top" ? h.top - L.height - l.gap : h.bottom + l.gap;
3086
+ return l.align === "right" ? { top: N, left: h.right - L.width } : l.align === "center" ? { top: N, left: h.left + (h.width - L.width) / 2 } : { top: N, left: h.left };
3087
3087
  }
3088
3088
  function S() {
3089
- const h = a.fitContent ? {} : { width: "100%" };
3089
+ const h = l.fitContent ? {} : { width: "100%" };
3090
3090
  return {
3091
3091
  position: "absolute",
3092
- [a.position === "top" ? "bottom" : "top"]: `calc(100% + ${a.gap}px)`,
3092
+ [l.position === "top" ? "bottom" : "top"]: `calc(100% + ${l.gap}px)`,
3093
3093
  ...h,
3094
3094
  ...b()
3095
3095
  };
3096
3096
  }
3097
3097
  function w(h, L) {
3098
- const N = window.innerHeight - h.bottom - a.gap, W = h.top - a.gap;
3099
- return a.position === "top" ? W >= L || W >= N ? "top" : "bottom" : N >= L || N >= W ? "bottom" : "top";
3098
+ const N = window.innerHeight - h.bottom - l.gap, W = h.top - l.gap;
3099
+ return l.position === "top" ? W >= L || W >= N ? "top" : "bottom" : N >= L || N >= W ? "bottom" : "top";
3100
3100
  }
3101
3101
  function y(h, L, N) {
3102
3102
  const W = L.getBoundingClientRect(), te = h.getBoundingClientRect(), _ = w(te, N), m = { position: "absolute" };
3103
- return _ === "top" ? m.bottom = `${W.bottom - te.top + a.gap}px` : m.top = `${te.bottom - W.top + a.gap}px`, a.fitContent || (m.width = "100%"), Object.assign(m, b()), m;
3103
+ return _ === "top" ? m.bottom = `${W.bottom - te.top + l.gap}px` : m.top = `${te.bottom - W.top + l.gap}px`, l.fitContent || (m.width = "100%"), Object.assign(m, b()), m;
3104
3104
  }
3105
3105
  function E(h, L) {
3106
- const { top: N, left: W } = x(a.align) ? $(h, L) : T(h, L);
3106
+ const { top: N, left: W } = x(l.align) ? $(h, L) : T(h, L);
3107
3107
  return {
3108
3108
  position: "fixed",
3109
3109
  top: `${N}px`,
@@ -3112,13 +3112,13 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3112
3112
  };
3113
3113
  }
3114
3114
  function R(h) {
3115
- return a.anchorSelector ? (h.firstElementChild ?? h).querySelector(a.anchorSelector) : null;
3115
+ return l.anchorSelector ? (h.firstElementChild ?? h).querySelector(l.anchorSelector) : null;
3116
3116
  }
3117
3117
  function F() {
3118
- if (!d.value || !l.value || !i.value)
3118
+ if (!d.value || !a.value || !i.value)
3119
3119
  return;
3120
- if (a.positionStrategy === "absolute") {
3121
- const N = R(l.value);
3120
+ if (l.positionStrategy === "absolute") {
3121
+ const N = R(a.value);
3122
3122
  if (!N) {
3123
3123
  u.value = S(), s.value = !0;
3124
3124
  return;
@@ -3128,10 +3128,10 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3128
3128
  s.value = !1, requestAnimationFrame(() => requestAnimationFrame(F));
3129
3129
  return;
3130
3130
  }
3131
- u.value = y(N, l.value, W.height), s.value = !0;
3131
+ u.value = y(N, a.value, W.height), s.value = !0;
3132
3132
  return;
3133
3133
  }
3134
- const h = l.value.getBoundingClientRect(), L = i.value.getBoundingClientRect();
3134
+ const h = a.value.getBoundingClientRect(), L = i.value.getBoundingClientRect();
3135
3135
  if (L.width === 0 || L.height === 0) {
3136
3136
  s.value = !1, requestAnimationFrame(() => requestAnimationFrame(F));
3137
3137
  return;
@@ -3139,7 +3139,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3139
3139
  u.value = E(h, L), s.value = !0;
3140
3140
  }
3141
3141
  le(
3142
- () => a.modelValue,
3142
+ () => l.modelValue,
3143
3143
  (h) => {
3144
3144
  d.value = h, h && lt(F);
3145
3145
  }
@@ -3150,8 +3150,8 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3150
3150
  d.value = !1, s.value = !1, r("update:modelValue", !1), r("close");
3151
3151
  }, q = k(() => ({
3152
3152
  handler: z,
3153
- exclude: [l, i],
3154
- capture: a.closeOnClickOutside
3153
+ exclude: [a, i],
3154
+ capture: l.closeOnClickOutside
3155
3155
  }));
3156
3156
  return o({
3157
3157
  isOpen: d,
@@ -3159,7 +3159,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3159
3159
  close: z
3160
3160
  }), (h, L) => (p(), f("div", {
3161
3161
  ref_key: "popoverRef",
3162
- ref: l,
3162
+ ref: a,
3163
3163
  class: "popover"
3164
3164
  }, [
3165
3165
  ce(h.$slots, "trigger", {
@@ -3193,7 +3193,10 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3193
3193
  }), ei = /* @__PURE__ */ fe(Jl, [["__scopeId", "data-v-33ef0f6d"]]), ti = {
3194
3194
  key: 0,
3195
3195
  class: "in-dropdown-menu__search-container"
3196
- }, ni = { class: "in-dropdown-menu__item-container" }, oi = ["onClick"], ai = /* @__PURE__ */ G({
3196
+ }, ni = {
3197
+ key: 2,
3198
+ class: "in-dropdown-menu__item-container"
3199
+ }, oi = ["onClick"], ai = /* @__PURE__ */ G({
3197
3200
  __name: "InDropdownMenu",
3198
3201
  props: {
3199
3202
  modelValue: { default: "" },
@@ -3210,12 +3213,12 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3210
3213
  mode: { default: "primary" },
3211
3214
  anchorSelector: { default: void 0 }
3212
3215
  },
3213
- emits: ["update:modelValue", "add-error", "item-added", "select-item", "update:search-query"],
3216
+ emits: ["update:modelValue", "add-error", "item-added", "select-item"],
3214
3217
  setup(e, { expose: o, emit: t }) {
3215
3218
  Cn((y) => ({
3216
- "4d16b643": `${n.menuHeight}px`
3219
+ ed307462: `${n.menuHeight}px`
3217
3220
  }));
3218
- const n = e, a = t, r = P(!1), l = P(null), i = P(""), s = P(null), u = P([...n.items]), d = P([...n.items]), v = () => {
3221
+ const n = e, l = t, r = P(!1), a = P(null), i = P(""), s = P(null), u = P([...n.items]), d = P([...n.items]), v = () => {
3219
3222
  r.value = !r.value;
3220
3223
  }, x = () => {
3221
3224
  s.value = null, i.value = "", u.value = [...d.value];
@@ -3229,37 +3232,37 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3229
3232
  const b = () => {
3230
3233
  r.value = !1, x();
3231
3234
  }, $ = (y) => {
3232
- l.value = y, a("select-item", y), a("update:modelValue", y.value), b();
3235
+ a.value = y, l("select-item", y), l("update:modelValue", y.value), b();
3233
3236
  }, T = () => {
3234
3237
  const y = i.value.trim(), E = n.validateAddItem(y, d.value);
3235
3238
  if (E) {
3236
- s.value = E, a("add-error", E);
3239
+ s.value = E, l("add-error", E);
3237
3240
  return;
3238
3241
  }
3239
3242
  const R = {
3240
3243
  text: y,
3241
3244
  value: y
3242
3245
  };
3243
- d.value.push(R), x(), a("item-added", R);
3246
+ d.value.push(R), x(), l("item-added", R);
3244
3247
  }, S = (y) => {
3245
3248
  i.value = String(y);
3246
3249
  const E = ht(d.value, "text", i.value);
3247
- u.value = E, a("update:search-query", i.value);
3250
+ u.value = E;
3248
3251
  }, w = () => {
3249
3252
  s.value = null;
3250
3253
  };
3251
3254
  return Ge(() => {
3252
3255
  if (n.modelValue) {
3253
3256
  const y = d.value.find((E) => E.value === n.modelValue);
3254
- y && (l.value = y);
3257
+ y && (a.value = y);
3255
3258
  }
3256
3259
  }), le(
3257
3260
  () => n.modelValue,
3258
3261
  (y) => {
3259
3262
  var E;
3260
- if (((E = l.value) == null ? void 0 : E.value) !== y) {
3263
+ if (((E = a.value) == null ? void 0 : E.value) !== y) {
3261
3264
  const R = d.value.find((F) => F.value === y);
3262
- R ? l.value = R : l.value = null;
3265
+ R ? a.value = R : a.value = null;
3263
3266
  }
3264
3267
  }
3265
3268
  ), le(
@@ -3272,7 +3275,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3272
3275
  isOpen: r,
3273
3276
  toggleMenu: v,
3274
3277
  closeMenu: b,
3275
- selectedItem: l
3278
+ selectedItem: a
3276
3279
  }), (y, E) => (p(), J(c(ei), {
3277
3280
  class: g(["in-dropdown-menu", {
3278
3281
  "in-dropdown-menu--open": r.value,
@@ -3292,7 +3295,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3292
3295
  }, void 0, !0)
3293
3296
  ]),
3294
3297
  default: he(() => [
3295
- A("div", {
3298
+ C("div", {
3296
3299
  class: g(["in-dropdown-menu__menu", [`in-dropdown-menu__menu--${n.mode}`]]),
3297
3300
  onClick: E[1] || (E[1] = rt(() => {
3298
3301
  }, ["prevent"]))
@@ -3323,7 +3326,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3323
3326
  onClick: T
3324
3327
  }, null, 8, ["label"])) : V("", !0)
3325
3328
  ])) : V("", !0),
3326
- A("ul", ni, [
3329
+ u.value.length === 0 && y.searchable ? ce(y.$slots, "no-results", { key: 1 }, void 0, !0) : (p(), f("ul", ni, [
3327
3330
  (p(!0), f(ie, null, me(u.value, (R, F) => {
3328
3331
  var j, z;
3329
3332
  return p(), f("li", {
@@ -3334,13 +3337,13 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3334
3337
  key: 0,
3335
3338
  class: g(["in-dropdown-menu__item-content", [
3336
3339
  {
3337
- "in-dropdown-menu__item--active": l.value && R.value === l.value.value
3340
+ "in-dropdown-menu__item--active": a.value && R.value === a.value.value
3338
3341
  }
3339
3342
  ]]),
3340
3343
  onClick: (q) => $(R)
3341
3344
  }, [
3342
3345
  ce(y.$slots, "item", {
3343
- isSelected: ((j = l.value) == null ? void 0 : j.value) === R.value,
3346
+ isSelected: ((j = a.value) == null ? void 0 : j.value) === R.value,
3344
3347
  item: R
3345
3348
  }, void 0, !0)
3346
3349
  ], 10, oi)) : (p(), J(c(mt), {
@@ -3348,25 +3351,25 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3348
3351
  fill: "",
3349
3352
  class: g(["in-dropdown-menu__item-button", [
3350
3353
  {
3351
- "in-dropdown-menu__item-button--active": l.value && R.value === l.value.value
3354
+ "in-dropdown-menu__item-button--active": a.value && R.value === a.value.value
3352
3355
  }
3353
3356
  ]]),
3354
3357
  color: "secondary",
3355
3358
  size: "small",
3356
3359
  variant: "ghost",
3357
3360
  label: R.text,
3358
- "right-icon-name": n.showSelectedIcon && ((z = l.value) == null ? void 0 : z.value) === R.value ? "line-check-natural" : void 0,
3361
+ "right-icon-name": n.showSelectedIcon && ((z = a.value) == null ? void 0 : z.value) === R.value ? "line-check-natural" : void 0,
3359
3362
  onClick: (q) => $(R)
3360
3363
  }, null, 8, ["class", "label", "right-icon-name", "onClick"]))
3361
3364
  ]);
3362
3365
  }), 128))
3363
- ])
3366
+ ]))
3364
3367
  ], 2)
3365
3368
  ]),
3366
3369
  _: 3
3367
3370
  }, 8, ["anchor-selector", "class", "width", "modelValue"]));
3368
3371
  }
3369
- }), Ks = /* @__PURE__ */ fe(ai, [["__scopeId", "data-v-b928c54b"]]), li = { class: "in-tabs" }, ii = ["data-value", "disabled", "onClick"], si = /* @__PURE__ */ G({
3372
+ }), Ks = /* @__PURE__ */ fe(ai, [["__scopeId", "data-v-c5a43b41"]]), li = { class: "in-tabs" }, ii = ["data-value", "disabled", "onClick"], si = /* @__PURE__ */ G({
3370
3373
  __name: "InTabs",
3371
3374
  props: {
3372
3375
  tabs: {},
@@ -3375,30 +3378,30 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3375
3378
  },
3376
3379
  emits: ["update:modelValue", "change"],
3377
3380
  setup(e, { emit: o }) {
3378
- const t = e, n = o, a = P(t.modelValue || (t.tabs.length > 0 ? t.tabs[0].value : "")), r = (l) => {
3379
- t.disabled || l.disabled || (a.value = l.value, n("update:modelValue", l.value), n("change", l.value));
3381
+ const t = e, n = o, l = P(t.modelValue || (t.tabs.length > 0 ? t.tabs[0].value : "")), r = (a) => {
3382
+ t.disabled || a.disabled || (l.value = a.value, n("update:modelValue", a.value), n("change", a.value));
3380
3383
  };
3381
3384
  return le(
3382
3385
  () => t.modelValue,
3383
- (l) => {
3384
- l !== void 0 && l !== a.value && (a.value = l);
3386
+ (a) => {
3387
+ a !== void 0 && a !== l.value && (l.value = a);
3385
3388
  }
3386
3389
  ), le(
3387
3390
  () => t.tabs,
3388
- (l) => {
3389
- l.length > 0 && !l.some((i) => i.value === a.value) && (a.value = l[0].value, n("update:modelValue", l[0].value));
3391
+ (a) => {
3392
+ a.length > 0 && !a.some((i) => i.value === l.value) && (l.value = a[0].value, n("update:modelValue", a[0].value));
3390
3393
  },
3391
3394
  { deep: !0 }
3392
- ), (l, i) => (p(), f("div", li, [
3393
- (p(!0), f(ie, null, me(l.tabs, (s, u) => (p(), f("button", {
3395
+ ), (a, i) => (p(), f("div", li, [
3396
+ (p(!0), f(ie, null, me(a.tabs, (s, u) => (p(), f("button", {
3394
3397
  key: `${s.value}-${u}`,
3395
3398
  class: g(["in-tabs__tab", [
3396
3399
  {
3397
- "in-tabs__tab--active": a.value === s.value
3400
+ "in-tabs__tab--active": l.value === s.value
3398
3401
  }
3399
3402
  ]]),
3400
3403
  "data-value": s.value,
3401
- disabled: l.disabled || s.disabled,
3404
+ disabled: a.disabled || s.disabled,
3402
3405
  onClick: (d) => r(s)
3403
3406
  }, H(s.label), 11, ii))), 128))
3404
3407
  ]));
@@ -3437,10 +3440,10 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3437
3440
  },
3438
3441
  emits: ["update:modelValue", "keyup", "keypress", "click", "cut", "paste", "blur"],
3439
3442
  setup(e, { expose: o, emit: t }) {
3440
- const n = e, a = k(() => {
3443
+ const n = e, l = k(() => {
3441
3444
  const w = {};
3442
3445
  return n.width && (w.width = n.width), n.height && (w.height = n.height), n.padding && (w.padding = n.padding), n.resize && (w.resize = n.resize), w;
3443
- }), r = t, l = P(), i = (w = "") => typeof w == "string" ? w.replace(/<\/style>/gi, "").replace(/<(.*?) on(.*?)=['"](.*?)>/gi, "").replace(/(<meta |<style|<\/*script)(.*?)>/gi, "").replace(/(<([^>]+)>)/ig, "").replace(/<(.*?) (href|src)="j(.*)a(.*)v(.*)a(.*)s(.*)c(.*)r(.*)i(.*)p(.*)t(.*):(.*?)>/gi, "") : w, s = k(() => n.preventXss ? i(n.modelValue) : n.modelValue), u = (w) => {
3446
+ }), r = t, a = P(), i = (w = "") => typeof w == "string" ? w.replace(/<\/style>/gi, "").replace(/<(.*?) on(.*?)=['"](.*?)>/gi, "").replace(/(<meta |<style|<\/*script)(.*?)>/gi, "").replace(/(<([^>]+)>)/ig, "").replace(/<(.*?) (href|src)="j(.*)a(.*)v(.*)a(.*)s(.*)c(.*)r(.*)i(.*)p(.*)t(.*):(.*?)>/gi, "") : w, s = k(() => n.preventXss ? i(n.modelValue) : n.modelValue), u = (w) => {
3444
3447
  S(), r("keyup", w);
3445
3448
  }, d = (w) => {
3446
3449
  S(), r("keypress", w);
@@ -3456,10 +3459,10 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3456
3459
  }, T = (w) => {
3457
3460
  S(), r("blur", w);
3458
3461
  }, S = () => {
3459
- n.preventXss && l.value && (l.value.value = i(l.value.value));
3462
+ n.preventXss && a.value && (a.value.value = i(a.value.value));
3460
3463
  };
3461
3464
  return o({
3462
- textareaRef: l
3465
+ textareaRef: a
3463
3466
  }), (w, y) => (p(), f("fieldset", {
3464
3467
  class: g([
3465
3468
  c(ke)["in-form-item"],
@@ -3475,10 +3478,10 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3475
3478
  ]),
3476
3479
  for: w.id
3477
3480
  }, H(w.label), 11, ri)) : V("", !0),
3478
- A("textarea", {
3481
+ C("textarea", {
3479
3482
  id: w.id,
3480
3483
  ref_key: "textareaRef",
3481
- ref: l,
3484
+ ref: a,
3482
3485
  class: g([
3483
3486
  c(ke)["in-textarea-wrapper__textarea"],
3484
3487
  { [c(ke)["in-textarea-wrapper__textarea_disable"]]: w.disabled },
@@ -3490,7 +3493,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3490
3493
  name: w.name,
3491
3494
  placeholder: w.placeholder,
3492
3495
  rows: w.rowLength,
3493
- style: se(a.value),
3496
+ style: se(l.value),
3494
3497
  value: s.value,
3495
3498
  onBlur: T,
3496
3499
  onClick: v,
@@ -3518,11 +3521,11 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3518
3521
  },
3519
3522
  emits: ["click"],
3520
3523
  setup(e, { emit: o }) {
3521
- const t = e, n = o, a = () => {
3524
+ const t = e, n = o, l = () => {
3522
3525
  t.disabled || n("click", t.value);
3523
3526
  };
3524
- return (r, l) => (p(), f("fieldset", ci, [
3525
- A("input", {
3527
+ return (r, a) => (p(), f("fieldset", ci, [
3528
+ C("input", {
3526
3529
  id: r.id,
3527
3530
  class: "in-radio-button-wrapper__input",
3528
3531
  type: "radio",
@@ -3530,9 +3533,9 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3530
3533
  disabled: r.disabled,
3531
3534
  name: r.name,
3532
3535
  value: r.value,
3533
- onClick: a
3536
+ onClick: l
3534
3537
  }, null, 8, di),
3535
- A("label", {
3538
+ C("label", {
3536
3539
  class: g(["in-radio-button-wrapper__label", { "in-radio-button-wrapper__label_disable": r.disabled }]),
3537
3540
  for: r.id
3538
3541
  }, H(r.label), 11, pi)
@@ -3548,7 +3551,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3548
3551
  },
3549
3552
  emits: ["click", "update:modelValue"],
3550
3553
  setup(e, { emit: o }) {
3551
- const t = e, n = o, a = P(null), r = k(() => t.checked ? hi : vi), l = (s) => {
3554
+ const t = e, n = o, l = P(null), r = k(() => t.checked ? hi : vi), a = (s) => {
3552
3555
  if (t.disabled) {
3553
3556
  s.preventDefault();
3554
3557
  return;
@@ -3560,7 +3563,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3560
3563
  s.preventDefault();
3561
3564
  return;
3562
3565
  }
3563
- a.value && !a.value.disabled && (a.value.checked = !a.value.checked, a.value.dispatchEvent(new Event("change", { bubbles: !0 })));
3566
+ l.value && !l.value.disabled && (l.value.checked = !l.value.checked, l.value.dispatchEvent(new Event("change", { bubbles: !0 })));
3564
3567
  };
3565
3568
  return (s, u) => (p(), f("fieldset", {
3566
3569
  class: g(["in-form-item in-toggle-wrapper", [
@@ -3570,18 +3573,18 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3570
3573
  }
3571
3574
  ]])
3572
3575
  }, [
3573
- A("input", {
3576
+ C("input", {
3574
3577
  id: s.id,
3575
3578
  ref_key: "inputRef",
3576
- ref: a,
3579
+ ref: l,
3577
3580
  class: "in-toggle-wrapper__input",
3578
3581
  type: "checkbox",
3579
3582
  checked: s.checked,
3580
3583
  disabled: s.disabled,
3581
3584
  name: s.name,
3582
- onChange: l
3585
+ onChange: a
3583
3586
  }, null, 40, fi),
3584
- A("label", {
3587
+ C("label", {
3585
3588
  class: "in-toggle-wrapper__label",
3586
3589
  for: s.id,
3587
3590
  onClick: i
@@ -3650,12 +3653,12 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3650
3653
  },
3651
3654
  emits: ["click", "input-change"],
3652
3655
  setup(e, { emit: o }) {
3653
- const t = e, n = o, a = (u) => {
3656
+ const t = e, n = o, l = (u) => {
3654
3657
  t.disabled || n("click", u);
3655
3658
  }, r = (u) => {
3656
3659
  const d = u.target;
3657
3660
  n("input-change", d.value);
3658
- }, l = (u) => {
3661
+ }, a = (u) => {
3659
3662
  u.key === "Enter" ? (u.preventDefault(), u.target.blur()) : u.key === "Escape" && (u.preventDefault(), u.target.value = t.inputValue || "", u.target.blur());
3660
3663
  }, i = k(() => {
3661
3664
  if (t.loadingStatus)
@@ -3674,14 +3677,14 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3674
3677
  return (u, d) => (p(), f("button", {
3675
3678
  class: g(s.value),
3676
3679
  disabled: t.disabled,
3677
- onClick: a
3680
+ onClick: l
3678
3681
  }, [
3679
3682
  i.value ? (p(), J(X, {
3680
3683
  key: 0,
3681
3684
  name: i.value,
3682
3685
  size: u.iconSize
3683
3686
  }, null, 8, ["name", "size"])) : V("", !0),
3684
- A("input", {
3687
+ C("input", {
3685
3688
  class: g(c(qe).inputButton__input),
3686
3689
  disabled: t.disabled,
3687
3690
  placeholder: u.inputPlaceholder,
@@ -3690,7 +3693,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3690
3693
  onClick: d[0] || (d[0] = rt(() => {
3691
3694
  }, ["stop"])),
3692
3695
  onInput: r,
3693
- onKeydown: l
3696
+ onKeydown: a
3694
3697
  }, null, 42, Bi),
3695
3698
  u.rightIconName ? (p(), J(X, {
3696
3699
  key: 1,
@@ -3721,12 +3724,12 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3721
3724
  },
3722
3725
  emits: ["close", "submit"],
3723
3726
  setup(e, { emit: o }) {
3724
- const t = e, n = P(!1), a = o, r = () => {
3725
- a("close");
3726
- }, l = () => {
3727
- a("submit");
3727
+ const t = e, n = P(!1), l = o, r = () => {
3728
+ l("close");
3729
+ }, a = () => {
3730
+ l("submit");
3728
3731
  }, i = (s) => {
3729
- s.key === "Escape" && a("close");
3732
+ s.key === "Escape" && l("close");
3730
3733
  };
3731
3734
  return Ge(async () => {
3732
3735
  await lt(), n.value = !0, window.addEventListener("keydown", i);
@@ -3740,27 +3743,27 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3740
3743
  }, null, 2)) : V("", !0),
3741
3744
  Z(sn, { name: "modal-transition" }, {
3742
3745
  default: he(() => [
3743
- ft(A("div", {
3746
+ ft(C("div", {
3744
3747
  class: g([c(Me).modalWrapper, c(Me)[t.size]])
3745
3748
  }, [
3746
- A("div", {
3749
+ C("div", {
3747
3750
  class: g([c(Me).modal, c(Me)[t.size]])
3748
3751
  }, [
3749
- A("button", {
3752
+ C("button", {
3750
3753
  class: g(c(Me).close),
3751
3754
  onClick: r
3752
3755
  }, " × ", 2),
3753
- A("div", {
3756
+ C("div", {
3754
3757
  class: g(c(Me).header)
3755
3758
  }, [
3756
- A("p", null, H(s.title), 1)
3759
+ C("p", null, H(s.title), 1)
3757
3760
  ], 2),
3758
- A("div", {
3761
+ C("div", {
3759
3762
  class: g(c(Me).section)
3760
3763
  }, [
3761
3764
  ce(s.$slots, "section", {}, void 0, !0)
3762
3765
  ], 2),
3763
- A("div", {
3766
+ C("div", {
3764
3767
  class: g(c(Me).footer)
3765
3768
  }, [
3766
3769
  Z(c(mt), {
@@ -3773,7 +3776,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3773
3776
  color: "primary",
3774
3777
  variant: "solid",
3775
3778
  label: t.submitText,
3776
- onClick: l
3779
+ onClick: a
3777
3780
  }, null, 8, ["label"])
3778
3781
  ], 2)
3779
3782
  ], 2)
@@ -3813,16 +3816,16 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3813
3816
  },
3814
3817
  emits: ["update:modelValue", "input", "change", "paste", "focus", "blur"],
3815
3818
  setup(e, { emit: o }) {
3816
- const t = e, n = o, a = (i) => {
3819
+ const t = e, n = o, l = (i) => {
3817
3820
  if (i === "")
3818
3821
  return i;
3819
3822
  const s = Number(i);
3820
3823
  return typeof t.min == "number" && s < t.min ? t.min.toString() : typeof t.max == "number" && s > t.max ? t.max.toString() : s.toString();
3821
3824
  }, r = (i) => {
3822
- const s = i.target, u = a(s.value);
3825
+ const s = i.target, u = l(s.value);
3823
3826
  s.value = u, n("input", i), n("update:modelValue", Number(u));
3824
- }, l = (i) => {
3825
- const s = i.target, u = s.value, d = a(s.value === "" ? String(t.min || 0) : s.value);
3827
+ }, a = (i) => {
3828
+ const s = i.target, u = s.value, d = l(s.value === "" ? String(t.min || 0) : s.value);
3826
3829
  s.value = d, n("blur", i), u !== d && n("update:modelValue", Number(d));
3827
3830
  };
3828
3831
  return (i, s) => {
@@ -3835,7 +3838,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3835
3838
  class: g(c(Re).wrapper__label),
3836
3839
  for: i.id
3837
3840
  }, H(i.label), 11, qi)) : V("", !0),
3838
- A("input", {
3841
+ C("input", {
3839
3842
  id: i.id,
3840
3843
  type: "number",
3841
3844
  class: g([
@@ -3850,7 +3853,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3850
3853
  name: i.name,
3851
3854
  placeholder: i.placeholder,
3852
3855
  value: i.modelValue,
3853
- onBlur: l,
3856
+ onBlur: a,
3854
3857
  onChange: s[0] || (s[0] = (d) => i.$emit("change", d)),
3855
3858
  onFocus: s[1] || (s[1] = (d) => n("focus", d)),
3856
3859
  onInput: r,
@@ -3898,27 +3901,27 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3898
3901
  default:
3899
3902
  return "filled-info-circle";
3900
3903
  }
3901
- }), n = P(null), a = P(!1);
3904
+ }), n = P(null), l = P(!1);
3902
3905
  let r = null;
3903
- function l() {
3906
+ function a() {
3904
3907
  var d;
3905
3908
  const i = (d = n.value) == null ? void 0 : d.$el;
3906
3909
  if (!i)
3907
3910
  return;
3908
3911
  const s = parseFloat(getComputedStyle(i).lineHeight) || 16, u = i.getBoundingClientRect().height > s * 1.5;
3909
- u !== a.value && (a.value = u);
3912
+ u !== l.value && (l.value = u);
3910
3913
  }
3911
3914
  return le(n, (i) => {
3912
3915
  r == null || r.disconnect(), r = null;
3913
3916
  const s = i == null ? void 0 : i.$el;
3914
- !s || typeof ResizeObserver > "u" || (r = new ResizeObserver(() => l()), r.observe(s), l());
3917
+ !s || typeof ResizeObserver > "u" || (r = new ResizeObserver(() => a()), r.observe(s), a());
3915
3918
  }), ut(() => {
3916
3919
  r == null || r.disconnect(), r = null;
3917
3920
  }), (i, s) => (p(), f("div", {
3918
3921
  class: g([
3919
3922
  c(_t).container,
3920
3923
  c(_t)[`container__${i.variant}`],
3921
- a.value && c(_t).isMultiline
3924
+ l.value && c(_t).isMultiline
3922
3925
  ])
3923
3926
  }, [
3924
3927
  Z(X, {
@@ -3966,26 +3969,26 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3966
3969
  },
3967
3970
  emits: ["update:modelValue", "click"],
3968
3971
  setup(e, { emit: o }) {
3969
- const t = e, n = o, a = P(t.modelValue || ""), r = (l) => {
3970
- t.disabled || l.disabled || (n("update:modelValue", l.value), n("click", l.value));
3972
+ const t = e, n = o, l = P(t.modelValue || ""), r = (a) => {
3973
+ t.disabled || a.disabled || (n("update:modelValue", a.value), n("click", a.value));
3971
3974
  };
3972
- return le(() => t.modelValue, (l) => {
3973
- a.value !== l && (a.value = l || "");
3974
- }), le(() => t.segments, (l) => {
3975
- l.some((i) => i.value === a.value) || (a.value = "", n("update:modelValue", ""));
3976
- }, { deep: !0 }), (l, i) => (p(), f("div", {
3975
+ return le(() => t.modelValue, (a) => {
3976
+ l.value !== a && (l.value = a || "");
3977
+ }), le(() => t.segments, (a) => {
3978
+ a.some((i) => i.value === l.value) || (l.value = "", n("update:modelValue", ""));
3979
+ }, { deep: !0 }), (a, i) => (p(), f("div", {
3977
3980
  class: g([
3978
3981
  c(ee).wrapper,
3979
- c(ee)[`wrapper--${l.orientation}`],
3980
- c(ee)[`wrapper--${l.size}`],
3982
+ c(ee)[`wrapper--${a.orientation}`],
3983
+ c(ee)[`wrapper--${a.size}`],
3981
3984
  {
3982
- [c(ee)["wrapper--disabled"]]: l.disabled,
3983
- [c(ee)["wrapper--icon-only"]]: l.iconOnly,
3984
- [c(ee)["wrapper--label-only"]]: l.labelOnly
3985
+ [c(ee)["wrapper--disabled"]]: a.disabled,
3986
+ [c(ee)["wrapper--icon-only"]]: a.iconOnly,
3987
+ [c(ee)["wrapper--label-only"]]: a.labelOnly
3985
3988
  }
3986
3989
  ])
3987
3990
  }, [
3988
- (p(!0), f(ie, null, me(l.segments, (s, u) => (p(), f(ie, {
3991
+ (p(!0), f(ie, null, me(a.segments, (s, u) => (p(), f(ie, {
3989
3992
  key: `${s.value}-${u}`
3990
3993
  }, [
3991
3994
  s.tooltip ? (p(), J(c(Es), {
@@ -3994,32 +3997,32 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
3994
3997
  text: s.tooltip
3995
3998
  }, {
3996
3999
  default: he(() => [
3997
- A("button", {
4000
+ C("button", {
3998
4001
  type: "button",
3999
4002
  class: g([
4000
4003
  c(ee).button,
4001
4004
  {
4002
- [c(ee)["button--selected"]]: s.value === a.value,
4003
- [c(ee)["button--disabled"]]: s.disabled || l.disabled,
4005
+ [c(ee)["button--selected"]]: s.value === l.value,
4006
+ [c(ee)["button--disabled"]]: s.disabled || a.disabled,
4004
4007
  [c(ee)["button--first"]]: u === 0,
4005
- [c(ee)["button--last"]]: u === l.segments.length - 1
4008
+ [c(ee)["button--last"]]: u === a.segments.length - 1
4006
4009
  }
4007
4010
  ]),
4008
4011
  "data-mode": s.mode,
4009
- disabled: s.disabled || l.disabled,
4012
+ disabled: s.disabled || a.disabled,
4010
4013
  onClick: (d) => r(s)
4011
4014
  }, [
4012
- l.iconOnly && s.icon ? (p(), J(c(X), {
4015
+ a.iconOnly && s.icon ? (p(), J(c(X), {
4013
4016
  key: 0,
4014
4017
  class: g(c(ee).button__icon),
4015
4018
  name: s.icon,
4016
4019
  size: 24
4017
4020
  }, null, 8, ["class", "name"])) : V("", !0),
4018
- l.labelOnly && s.label ? (p(), f("span", {
4021
+ a.labelOnly && s.label ? (p(), f("span", {
4019
4022
  key: 1,
4020
4023
  class: g(c(ee).button__label)
4021
4024
  }, H(s.label), 3)) : V("", !0),
4022
- !l.iconOnly && !l.labelOnly ? (p(), f(ie, { key: 2 }, [
4025
+ !a.iconOnly && !a.labelOnly ? (p(), f(ie, { key: 2 }, [
4023
4026
  s.icon ? (p(), J(c(X), {
4024
4027
  key: 0,
4025
4028
  class: g(c(ee).button__icon),
@@ -4039,27 +4042,27 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
4039
4042
  class: g([
4040
4043
  c(ee).button,
4041
4044
  {
4042
- [c(ee)["button--selected"]]: s.value === a.value,
4043
- [c(ee)["button--disabled"]]: s.disabled || l.disabled,
4045
+ [c(ee)["button--selected"]]: s.value === l.value,
4046
+ [c(ee)["button--disabled"]]: s.disabled || a.disabled,
4044
4047
  [c(ee)["button--first"]]: u === 0,
4045
- [c(ee)["button--last"]]: u === l.segments.length - 1
4048
+ [c(ee)["button--last"]]: u === a.segments.length - 1
4046
4049
  }
4047
4050
  ]),
4048
4051
  "data-mode": s.mode,
4049
- disabled: s.disabled || l.disabled,
4052
+ disabled: s.disabled || a.disabled,
4050
4053
  onClick: (d) => r(s)
4051
4054
  }, [
4052
- l.iconOnly && s.icon ? (p(), J(c(X), {
4055
+ a.iconOnly && s.icon ? (p(), J(c(X), {
4053
4056
  key: 0,
4054
4057
  class: g(c(ee).button__icon),
4055
4058
  name: s.icon,
4056
4059
  size: 24
4057
4060
  }, null, 8, ["class", "name"])) : V("", !0),
4058
- l.labelOnly && s.label ? (p(), f("span", {
4061
+ a.labelOnly && s.label ? (p(), f("span", {
4059
4062
  key: 1,
4060
4063
  class: g(c(ee).button__label)
4061
4064
  }, H(s.label), 3)) : V("", !0),
4062
- !l.iconOnly && !l.labelOnly ? (p(), f(ie, { key: 2 }, [
4065
+ !a.iconOnly && !a.labelOnly ? (p(), f(ie, { key: 2 }, [
4063
4066
  s.icon ? (p(), J(c(X), {
4064
4067
  key: 0,
4065
4068
  class: g(c(ee).button__icon),
@@ -4102,13 +4105,13 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
4102
4105
  },
4103
4106
  emits: ["update:modelValue", "input", "change", "paste", "focus", "blur"],
4104
4107
  setup(e, { emit: o }) {
4105
- const t = e, n = o, a = P(null), r = () => {
4106
- if (t.autoGrow && a.value) {
4107
- a.value.style.height = "";
4108
- const i = Math.min(a.value.scrollHeight, t.maxHeight || a.value.scrollHeight);
4109
- a.value.style.height = `${i}px`;
4108
+ const t = e, n = o, l = P(null), r = () => {
4109
+ if (t.autoGrow && l.value) {
4110
+ l.value.style.height = "";
4111
+ const i = Math.min(l.value.scrollHeight, t.maxHeight || l.value.scrollHeight);
4112
+ l.value.style.height = `${i}px`;
4110
4113
  }
4111
- }, l = (i) => {
4114
+ }, a = (i) => {
4112
4115
  const s = i.target;
4113
4116
  n("input", i), n("update:modelValue", s.value), r();
4114
4117
  };
@@ -4128,7 +4131,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
4128
4131
  key: 1,
4129
4132
  id: i.id,
4130
4133
  ref_key: "textareaRef",
4131
- ref: a,
4134
+ ref: l,
4132
4135
  class: g([
4133
4136
  c(Ae).wrapper__field,
4134
4137
  {
@@ -4143,7 +4146,7 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
4143
4146
  onBlur: s[0] || (s[0] = (d) => n("blur", d)),
4144
4147
  onChange: s[1] || (s[1] = (d) => i.$emit("change", d)),
4145
4148
  onFocus: s[2] || (s[2] = (d) => n("focus", d)),
4146
- onInput: l,
4149
+ onInput: a,
4147
4150
  onPaste: s[3] || (s[3] = (d) => n("paste", d))
4148
4151
  }, null, 46, _s)) : (p(), f("input", {
4149
4152
  key: 2,
@@ -4162,10 +4165,10 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
4162
4165
  onBlur: s[4] || (s[4] = (d) => n("blur", d)),
4163
4166
  onChange: s[5] || (s[5] = (d) => i.$emit("change", d)),
4164
4167
  onFocus: s[6] || (s[6] = (d) => n("focus", d)),
4165
- onInput: l,
4168
+ onInput: a,
4166
4169
  onPaste: s[7] || (s[7] = (d) => n("paste", d))
4167
4170
  }, null, 42, fs)),
4168
- A("div", {
4171
+ C("div", {
4169
4172
  class: g(c(Ae).wrapper__bottom)
4170
4173
  }, [
4171
4174
  i.error ? (p(), f("div", {
@@ -4196,10 +4199,10 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
4196
4199
  },
4197
4200
  emits: ["click"],
4198
4201
  setup(e, { emit: o }) {
4199
- const t = e, n = o, a = () => {
4202
+ const t = e, n = o, l = () => {
4200
4203
  n("click", !t.checked);
4201
4204
  };
4202
- return (r, l) => (p(), f("fieldset", {
4205
+ return (r, a) => (p(), f("fieldset", {
4203
4206
  class: g([
4204
4207
  c(tt).wrapper,
4205
4208
  {
@@ -4208,16 +4211,16 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
4208
4211
  }
4209
4212
  ])
4210
4213
  }, [
4211
- A("input", {
4214
+ C("input", {
4212
4215
  id: r.id,
4213
4216
  type: "checkbox",
4214
4217
  checked: r.checked,
4215
4218
  class: g(c(tt).wrapper__input),
4216
4219
  disabled: r.disabled,
4217
4220
  name: r.name,
4218
- onClick: a
4221
+ onClick: l
4219
4222
  }, null, 10, ws),
4220
- A("label", {
4223
+ C("label", {
4221
4224
  class: g(c(tt).wrapper__label),
4222
4225
  for: r.id
4223
4226
  }, null, 10, ys)
@@ -4235,20 +4238,20 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
4235
4238
  },
4236
4239
  emits: ["update:modelValue", "dismiss"],
4237
4240
  setup(e, { emit: o }) {
4238
- const t = e, n = o, a = {
4241
+ const t = e, n = o, l = {
4239
4242
  info: "filled-info-circle",
4240
4243
  error: "filled-error-box",
4241
4244
  warning: "filled-caution-triangle"
4242
- }, r = k(() => t.icon ?? a[t.variant]);
4243
- let l = null;
4245
+ }, r = k(() => t.icon ?? l[t.variant]);
4246
+ let a = null;
4244
4247
  function i() {
4245
- l && (clearTimeout(l), l = null);
4248
+ a && (clearTimeout(a), a = null);
4246
4249
  }
4247
4250
  function s() {
4248
4251
  i(), n("update:modelValue", !1), n("dismiss");
4249
4252
  }
4250
4253
  function u() {
4251
- i(), !(t.duration <= 0) && (l = setTimeout(() => {
4254
+ i(), !(t.duration <= 0) && (a = setTimeout(() => {
4252
4255
  s();
4253
4256
  }, t.duration));
4254
4257
  }
@@ -4271,8 +4274,8 @@ const $l = "_root_avx14_36", Ml = "_sizeMedium_avx14_44", tn = {
4271
4274
  name: r.value,
4272
4275
  size: 24
4273
4276
  }, null, 8, ["name"]),
4274
- A("span", xs, H(d.text), 1),
4275
- A("button", {
4277
+ C("span", xs, H(d.text), 1),
4278
+ C("button", {
4276
4279
  class: "ab-toast__close",
4277
4280
  type: "button",
4278
4281
  "aria-label": d.closeAriaLabel,
@@ -4337,9 +4340,9 @@ const Ss = "_bubble_6zub9_1", Is = "_trigger_6zub9_43", $s = "_trigger__icon_6zu
4337
4340
  right: "left",
4338
4341
  bottom: "top",
4339
4342
  left: "right"
4340
- }, t = P(null), n = P(null), a = P(!1);
4343
+ }, t = P(null), n = P(null), l = P(!1);
4341
4344
  typeof window < "u" && window.wasTooltipShown === void 0 && (window.wasTooltipShown = !1);
4342
- const r = e, l = P(null), i = P(null), s = P(null), u = P(!1), d = k(() => r.preventXss ? Bs(r.text) : r.text), { floatingStyles: v, update: x, middlewareData: b, placement: $ } = Et(i, l, {
4345
+ const r = e, a = P(null), i = P(null), s = P(null), u = P(!1), d = k(() => r.preventXss ? Bs(r.text) : r.text), { floatingStyles: v, update: x, middlewareData: b, placement: $ } = Et(i, a, {
4343
4346
  placement: k(() => r.placement || "bottom"),
4344
4347
  strategy: "fixed",
4345
4348
  whileElementsMounted: Mt,
@@ -4351,7 +4354,7 @@ const Ss = "_bubble_6zub9_1", Is = "_trigger_6zub9_43", $s = "_trigger__icon_6zu
4351
4354
  ]
4352
4355
  }), T = () => {
4353
4356
  t.value && (clearTimeout(t.value), t.value = null), n.value && (clearTimeout(n.value), n.value = null), window.wasTooltipShown ? u.value = !0 : t.value = setTimeout(() => {
4354
- if (!a.value) {
4357
+ if (!l.value) {
4355
4358
  t.value = null;
4356
4359
  return;
4357
4360
  }
@@ -4361,23 +4364,23 @@ const Ss = "_bubble_6zub9_1", Is = "_trigger_6zub9_43", $s = "_trigger__icon_6zu
4361
4364
  t.value && (clearTimeout(t.value), t.value = null), n.value && (clearTimeout(n.value), n.value = null);
4362
4365
  const h = r.hideDelay ?? 0;
4363
4366
  h > 0 ? n.value = setTimeout(() => {
4364
- a.value && (u.value = !1), n.value = null;
4367
+ l.value && (u.value = !1), n.value = null;
4365
4368
  }, h) : u.value = !1;
4366
4369
  }, w = () => {
4367
4370
  T();
4368
4371
  }, y = () => {
4369
4372
  S();
4370
4373
  }, E = () => {
4371
- a.value && i.value && l.value && x();
4374
+ l.value && i.value && a.value && x();
4372
4375
  };
4373
4376
  le(() => r.placement, () => {
4374
- a.value && i.value && l.value && x();
4377
+ l.value && i.value && a.value && x();
4375
4378
  }), Bn(Cs), Ge(() => {
4376
- a.value = !0, lt(() => {
4377
- a.value && i.value && x();
4379
+ l.value = !0, lt(() => {
4380
+ l.value && i.value && x();
4378
4381
  }), typeof window < "u" && window.addEventListener("resize", E);
4379
4382
  }), ut(() => {
4380
- a.value = !1, typeof window < "u" && window.removeEventListener("resize", E), t.value && (clearTimeout(t.value), t.value = null), n.value && (clearTimeout(n.value), n.value = null), u.value = !1, l.value = null, i.value = null, s.value = null;
4383
+ l.value = !1, typeof window < "u" && window.removeEventListener("resize", E), t.value && (clearTimeout(t.value), t.value = null), n.value && (clearTimeout(n.value), n.value = null), u.value = !1, a.value = null, i.value = null, s.value = null;
4381
4384
  });
4382
4385
  const R = k(() => r.status || u.value), F = k(() => ({
4383
4386
  ...v.value,
@@ -4413,7 +4416,7 @@ const Ss = "_bubble_6zub9_1", Is = "_trigger_6zub9_43", $s = "_trigger__icon_6zu
4413
4416
  } : {};
4414
4417
  });
4415
4418
  return (h, L) => (p(), f(ie, null, [
4416
- A("div", {
4419
+ C("div", {
4417
4420
  id: h.id,
4418
4421
  ref_key: "triggerRef",
4419
4422
  ref: i,
@@ -4428,21 +4431,21 @@ const Ss = "_bubble_6zub9_1", Is = "_trigger_6zub9_43", $s = "_trigger__icon_6zu
4428
4431
  }, null, 8, ["color", "name"])) : ce(h.$slots, "default", { key: 1 })
4429
4432
  ], 42, Vs),
4430
4433
  (p(), J(ln, { to: "body" }, [
4431
- A("div", {
4434
+ C("div", {
4432
4435
  ref_key: "tooltipRef",
4433
- ref: l,
4436
+ ref: a,
4434
4437
  class: g(["qa-tooltip", c(nt).bubble]),
4435
4438
  style: se(F.value),
4436
4439
  onMouseenter: w,
4437
4440
  onMouseleave: y
4438
4441
  }, [
4439
- A("div", {
4442
+ C("div", {
4440
4443
  class: g(c(nt).bubble__content)
4441
4444
  }, [
4442
- A("div", { innerHTML: d.value }, null, 8, Rs),
4445
+ C("div", { innerHTML: d.value }, null, 8, Rs),
4443
4446
  ce(h.$slots, "contentSlot")
4444
4447
  ], 2),
4445
- A("div", {
4448
+ C("div", {
4446
4449
  ref_key: "floatingArrowRef",
4447
4450
  ref: s,
4448
4451
  class: g(c(nt).arrow),