@useinsider/ab-components 0.0.53 → 0.0.54

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 F, computed as R, createElementBlock as g, openBlock as m, normalizeClass as C, createBlock as J, createCommentVNode as $, unref as p, toDisplayString as N, createElementVNode as S, normalizeStyle as ne, withModifiers as st, ref as L, reactive as St, onMounted as Ne, watch as Q, Fragment as ue, withDirectives as et, vModelText as tn, renderList as Ve, vShow as bt, createVNode as ce, shallowRef as nn, getCurrentScope as on, onScopeDispose as an, shallowReadonly as Oe, onBeforeMount as ln, nextTick as wt, onBeforeUnmount as zt, Teleport as sn, renderSlot as oe, Transition as rn, withCtx as tt, useCssVars as un } from "vue";
1
+ import { defineComponent as F, computed as R, createElementBlock as b, openBlock as m, normalizeClass as C, createBlock as J, createCommentVNode as $, unref as p, toDisplayString as N, createElementVNode as S, normalizeStyle as ne, withModifiers as st, ref as L, reactive as St, onMounted as Ne, watch as Q, Fragment as ue, withDirectives as et, vModelText as tn, renderList as Ve, vShow as bt, createVNode as ce, shallowRef as nn, getCurrentScope as on, onScopeDispose as an, shallowReadonly as Oe, onBeforeMount as ln, nextTick as wt, onBeforeUnmount as zt, Teleport as sn, renderSlot as oe, Transition as rn, withCtx as tt, useCssVars as un } from "vue";
2
2
  const cn = "_button__size_default_1bq69_1", dn = "_button__size_small_1bq69_8", _n = "_button_1bq69_1", pn = "_button__label_1bq69_60", fn = "_button__solid_1bq69_72", mn = "_fill_1bq69_1147", Se = {
3
3
  button__size_default: cn,
4
4
  button__size_small: dn,
@@ -68,7 +68,7 @@ const cn = "_button__size_default_1bq69_1", dn = "_button__size_small_1bq69_8",
68
68
  ];
69
69
  return t.fill && a.push(Se.fill), t.selected && a.push(Se["button--selected"]), t.customClass && a.push(t.customClass), a;
70
70
  });
71
- return (a, r) => (m(), g("button", {
71
+ return (a, r) => (m(), b("button", {
72
72
  class: C(s.value),
73
73
  disabled: t.disabled,
74
74
  onClick: l
@@ -79,7 +79,7 @@ const cn = "_button__size_default_1bq69_1", dn = "_button__size_small_1bq69_8",
79
79
  size: a.iconSize,
80
80
  color: a.iconColor
81
81
  }, null, 8, ["name", "size", "color"])) : $("", !0),
82
- a.label ? (m(), g("span", {
82
+ a.label ? (m(), b("span", {
83
83
  key: 1,
84
84
  class: C(p(Se).button__label)
85
85
  }, N(a.label), 3)) : $("", !0),
@@ -210,11 +210,11 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
210
210
  return o.fillOpacity !== void 0 ? typeof o.fillOpacity == "number" ? o.fillOpacity : parseFloat(o.fillOpacity) : i.value.opacity;
211
211
  });
212
212
  return (r, u) => {
213
- var c, h;
214
- return n.value ? (m(), g("svg", {
213
+ var d, h;
214
+ return n.value ? (m(), b("svg", {
215
215
  key: 1,
216
216
  class: "icon icon-custom",
217
- viewBox: (c = l.value) == null ? void 0 : c.viewBox,
217
+ viewBox: (d = l.value) == null ? void 0 : d.viewBox,
218
218
  width: t.value,
219
219
  height: t.value,
220
220
  fill: r.color || "currentColor",
@@ -223,7 +223,7 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
223
223
  ...a.value !== void 0 && a.value !== null ? { "--icon-fill-opacity": String(a.value) } : {}
224
224
  }),
225
225
  innerHTML: (h = l.value) == null ? void 0 : h.content
226
- }, null, 12, wn)) : (m(), g("svg", {
226
+ }, null, 12, wn)) : (m(), b("svg", {
227
227
  key: 0,
228
228
  class: "icon",
229
229
  fill: s.value,
@@ -301,8 +301,8 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
301
301
  const t = e, n = o, l = (u) => {
302
302
  t.disabled || n("click", u);
303
303
  }, i = (u) => {
304
- const c = u.target;
305
- n("input-change", c.value);
304
+ const d = u.target;
305
+ n("input-change", d.value);
306
306
  }, s = (u) => {
307
307
  u.key === "Enter" ? (u.preventDefault(), u.target.blur()) : u.key === "Escape" && (u.preventDefault(), u.target.value = t.inputValue || "", u.target.blur());
308
308
  }, a = R(() => {
@@ -319,7 +319,7 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
319
319
  ];
320
320
  return t.fill && u.push(De.fill), t.customClass && u.push(t.customClass), u;
321
321
  });
322
- return (u, c) => (m(), g("button", {
322
+ return (u, d) => (m(), b("button", {
323
323
  class: C(r.value),
324
324
  disabled: t.disabled,
325
325
  onClick: l
@@ -337,7 +337,7 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
337
337
  type: u.inputType,
338
338
  onInput: i,
339
339
  onKeydown: s,
340
- onClick: c[0] || (c[0] = st(() => {
340
+ onClick: d[0] || (d[0] = st(() => {
341
341
  }, ["stop"]))
342
342
  }, null, 42, Vn),
343
343
  u.rightIconName ? (m(), J(ae, {
@@ -415,29 +415,29 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
415
415
  },
416
416
  emits: ["update:modelValue", "add-error", "item-added", "select-item"],
417
417
  setup(e, { emit: o }) {
418
- const t = qt, n = e, l = o, i = L(), s = L(), a = L(!1), r = L(null), u = L(""), c = L(null), h = L({ x: 0, y: 0, width: 0, shouldOpenUp: !1, height: n.menuHeight }), y = St([...n.items]), f = St([...n.items]), I = () => {
418
+ const t = qt, n = e, l = o, i = L(), s = L(), a = L(!1), r = L(null), u = L(""), d = L(null), h = L({ x: 0, y: 0, width: 0, shouldOpenUp: !1, height: n.menuHeight }), g = St([...n.items]), f = St([...n.items]), B = () => {
419
419
  if (!i.value)
420
420
  return;
421
- const { offsetTop: T, offsetLeft: P, offsetWidth: q } = i.value, G = window.innerHeight, ee = T + i.value.offsetHeight, d = ee + n.menuHeight > G;
421
+ const { offsetTop: T, offsetLeft: P, offsetWidth: q } = i.value, G = window.innerHeight, ee = T + i.value.offsetHeight, c = ee + n.menuHeight > G;
422
422
  h.value = {
423
423
  x: P + window.scrollX,
424
- y: d ? T + window.scrollY : ee + window.scrollY,
424
+ y: c ? T + window.scrollY : ee + window.scrollY,
425
425
  width: q,
426
- shouldOpenUp: d,
426
+ shouldOpenUp: c,
427
427
  height: n.menuHeight
428
428
  };
429
429
  }, V = () => {
430
- I(), a.value = !a.value;
430
+ B(), a.value = !a.value;
431
431
  }, v = () => {
432
- c.value = null, u.value = "", y.splice(0, y.length, ...f);
432
+ d.value = null, u.value = "", g.splice(0, g.length, ...f);
433
433
  }, E = () => {
434
434
  a.value = !1, v();
435
435
  }, x = (T) => {
436
436
  r.value = T, l("select-item", T), l("update:modelValue", T.value), E();
437
- }, k = () => {
437
+ }, M = () => {
438
438
  const T = u.value.trim(), P = n.validateAddItem(T, f);
439
439
  if (P) {
440
- c.value = P, l("add-error", P);
440
+ d.value = P, l("add-error", P);
441
441
  return;
442
442
  }
443
443
  const q = {
@@ -445,11 +445,11 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
445
445
  value: T
446
446
  };
447
447
  f.push(q), v(), l("item-added", q);
448
- }, M = () => {
448
+ }, I = () => {
449
449
  const T = Nt(f, "text", u.value);
450
- y.splice(0, y.length, ...T);
450
+ g.splice(0, g.length, ...T);
451
451
  }, D = () => {
452
- c.value = "";
452
+ d.value = "";
453
453
  }, U = R(() => ({
454
454
  top: h.value.shouldOpenUp ? `${h.value.y - 10}px` : `${h.value.y}px`,
455
455
  left: `${h.value.x}px`,
@@ -457,7 +457,7 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
457
457
  height: `${n.menuHeight}px`
458
458
  }));
459
459
  Ne(() => {
460
- if (I(), n.modelValue) {
460
+ if (B(), n.modelValue) {
461
461
  const T = f.find((P) => P.value === n.modelValue);
462
462
  T && (r.value = T);
463
463
  }
@@ -472,18 +472,18 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
472
472
  }), Q(
473
473
  () => n.items,
474
474
  (T) => {
475
- f.splice(0, f.length, ...T), y.splice(0, y.length, ...T);
475
+ f.splice(0, f.length, ...T), g.splice(0, g.length, ...T);
476
476
  },
477
477
  { deep: !0 }
478
478
  );
479
479
  const W = L({ handler: E, exclude: [i, s] });
480
- return (T, P) => (m(), g(ue, null, [
480
+ return (T, P) => (m(), b(ue, null, [
481
481
  S("div", {
482
482
  ref_key: "dropdownRef",
483
483
  ref: i,
484
484
  class: C(p(j).dropdown)
485
485
  }, [
486
- T.label ? (m(), g("label", {
486
+ T.label ? (m(), b("label", {
487
487
  key: 0,
488
488
  class: C(p(j).dropdown__label),
489
489
  for: T.id
@@ -500,11 +500,11 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
500
500
  S("span", {
501
501
  class: C(p(j).dropdown__value)
502
502
  }, N(O.value), 3),
503
- T.placeholder && !O.value ? (m(), g("span", {
503
+ T.placeholder && !O.value ? (m(), b("span", {
504
504
  key: 0,
505
505
  class: C(p(j).dropdown__placeholder)
506
506
  }, N(T.placeholder), 3)) : $("", !0),
507
- (m(), g("svg", {
507
+ (m(), b("svg", {
508
508
  fill: "none",
509
509
  height: "17",
510
510
  viewBox: "0 0 16 17",
@@ -519,7 +519,7 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
519
519
  ]), 2))
520
520
  ], 2)
521
521
  ], 2),
522
- et((m(), g("div", {
522
+ et((m(), b("div", {
523
523
  ref_key: "menuRef",
524
524
  ref: s,
525
525
  class: C(p(j).menu),
@@ -527,7 +527,7 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
527
527
  onClick: P[1] || (P[1] = st(() => {
528
528
  }, ["prevent"]))
529
529
  }, [
530
- n.searchable ? (m(), g("div", {
530
+ n.searchable ? (m(), b("div", {
531
531
  key: 0,
532
532
  class: C(p(j).menu__searchContainer)
533
533
  }, [
@@ -539,31 +539,31 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
539
539
  class: C([
540
540
  p(j).menu__searchInput,
541
541
  {
542
- [p(j)["menu__searchInput--error"]]: c.value
542
+ [p(j)["menu__searchInput--error"]]: d.value
543
543
  }
544
544
  ]),
545
545
  placeholder: T.searchPlaceHolder,
546
546
  "onUpdate:modelValue": P[0] || (P[0] = (q) => u.value = q),
547
547
  onFocus: D,
548
- onInput: M
548
+ onInput: I
549
549
  }, null, 42, Yn), [
550
550
  [tn, u.value]
551
551
  ]),
552
- c.value ? (m(), g("p", {
552
+ d.value ? (m(), b("p", {
553
553
  key: 0,
554
554
  class: C(p(j).menu__errorMessage)
555
- }, N(c.value), 3)) : $("", !0)
555
+ }, N(d.value), 3)) : $("", !0)
556
556
  ], 2),
557
- n.addable ? (m(), g("button", {
557
+ n.addable ? (m(), b("button", {
558
558
  key: 0,
559
559
  class: C(p(j).menu__addButton),
560
- onClick: k
560
+ onClick: M
561
561
  }, N(T.addButtonText), 3)) : $("", !0)
562
562
  ], 2)) : $("", !0),
563
563
  S("ul", {
564
564
  class: C(p(j).menu__itemContainer)
565
565
  }, [
566
- (m(!0), g(ue, null, Ve(y, (q, G) => (m(), g("li", {
566
+ (m(!0), b(ue, null, Ve(g, (q, G) => (m(), b("li", {
567
567
  key: `${q.value}-${G}`,
568
568
  class: C([
569
569
  p(j).menu__item,
@@ -606,7 +606,7 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
606
606
  return "filled-info-circle";
607
607
  }
608
608
  });
609
- return (n, l) => (m(), g("div", {
609
+ return (n, l) => (m(), b("div", {
610
610
  class: C([
611
611
  p(pt).container,
612
612
  p(pt)[`container__${n.variant}`]
@@ -659,15 +659,15 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
659
659
  const s = L([...t.segments]);
660
660
  return Q(() => t.segments, (a) => {
661
661
  s.value = [...a], a.some((r) => r.value === l.value) || (l.value = "", n("update:modelValue", ""));
662
- }, { deep: !0 }), (a, r) => (m(), g("div", {
662
+ }, { deep: !0 }), (a, r) => (m(), b("div", {
663
663
  class: C([
664
664
  p(be).segmentGroup,
665
665
  p(be)[`segmentGroup--${a.align}`],
666
666
  { [p(be).fill]: a.fill }
667
667
  ])
668
668
  }, [
669
- (m(!0), g(ue, null, Ve(s.value, (u, c) => (m(), g("button", {
670
- key: `${u.value}-${c}`,
669
+ (m(!0), b(ue, null, Ve(s.value, (u, d) => (m(), b("button", {
670
+ key: `${u.value}-${d}`,
671
671
  class: C([
672
672
  p(be).button,
673
673
  p(be)[`button--${a.color}`],
@@ -684,7 +684,7 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
684
684
  key: 0,
685
685
  name: u.icon
686
686
  }, null, 8, ["name"])) : $("", !0),
687
- u.label ? (m(), g("span", {
687
+ u.label ? (m(), b("span", {
688
688
  key: 1,
689
689
  class: C(p(be).button__label)
690
690
  }, N(u.label), 3)) : $("", !0)
@@ -730,15 +730,15 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
730
730
  i();
731
731
  }), (a, r) => {
732
732
  var u;
733
- return m(), g("div", {
733
+ return m(), b("div", {
734
734
  class: C(p(we).wrapper)
735
735
  }, [
736
- a.label ? (m(), g("label", {
736
+ a.label ? (m(), b("label", {
737
737
  key: 0,
738
738
  class: C(p(we).wrapper__label),
739
739
  for: a.id
740
740
  }, N(a.label), 11, mo)) : $("", !0),
741
- a.multiline ? (m(), g("textarea", {
741
+ a.multiline ? (m(), b("textarea", {
742
742
  key: 1,
743
743
  id: a.id,
744
744
  ref_key: "textareaRef",
@@ -754,12 +754,12 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
754
754
  placeholder: a.placeholder,
755
755
  style: ne(a.maxHeight ? { maxHeight: `${a.maxHeight}px` } : void 0),
756
756
  value: a.modelValue,
757
- onBlur: r[0] || (r[0] = (c) => n("blur", c)),
758
- onChange: r[1] || (r[1] = (c) => a.$emit("change", c)),
759
- onFocus: r[2] || (r[2] = (c) => n("focus", c)),
757
+ onBlur: r[0] || (r[0] = (d) => n("blur", d)),
758
+ onChange: r[1] || (r[1] = (d) => a.$emit("change", d)),
759
+ onFocus: r[2] || (r[2] = (d) => n("focus", d)),
760
760
  onInput: s,
761
- onPaste: r[3] || (r[3] = (c) => n("paste", c))
762
- }, null, 46, ho)) : (m(), g("input", {
761
+ onPaste: r[3] || (r[3] = (d) => n("paste", d))
762
+ }, null, 46, ho)) : (m(), b("input", {
763
763
  key: 2,
764
764
  id: a.id,
765
765
  type: "text",
@@ -773,20 +773,20 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
773
773
  name: a.name,
774
774
  placeholder: a.placeholder,
775
775
  value: a.modelValue,
776
- onBlur: r[4] || (r[4] = (c) => n("blur", c)),
777
- onChange: r[5] || (r[5] = (c) => a.$emit("change", c)),
778
- onFocus: r[6] || (r[6] = (c) => n("focus", c)),
776
+ onBlur: r[4] || (r[4] = (d) => n("blur", d)),
777
+ onChange: r[5] || (r[5] = (d) => a.$emit("change", d)),
778
+ onFocus: r[6] || (r[6] = (d) => n("focus", d)),
779
779
  onInput: s,
780
- onPaste: r[7] || (r[7] = (c) => n("paste", c))
780
+ onPaste: r[7] || (r[7] = (d) => n("paste", d))
781
781
  }, null, 42, vo)),
782
782
  S("div", {
783
783
  class: C(p(we).wrapper__bottom)
784
784
  }, [
785
- a.error ? (m(), g("div", {
785
+ a.error ? (m(), b("div", {
786
786
  key: 0,
787
787
  class: C(p(we).wrapper__errorMessage)
788
788
  }, N(a.error), 3)) : $("", !0),
789
- a.counter ? (m(), g("div", {
789
+ a.counter ? (m(), b("div", {
790
790
  key: 1,
791
791
  class: C(p(we).wrapper__counter)
792
792
  }, N(((u = a.modelValue) == null ? void 0 : u.toString().length) || 0), 3)) : $("", !0)
@@ -831,15 +831,15 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
831
831
  const r = a.target, u = l(r.value);
832
832
  r.value = u, n("input", a), n("update:modelValue", Number(u));
833
833
  }, s = (a) => {
834
- const r = a.target, u = r.value, c = l(r.value === "" ? String(t.min || 0) : r.value);
835
- r.value = c, n("blur", a), u !== c && n("update:modelValue", Number(c));
834
+ const r = a.target, u = r.value, d = l(r.value === "" ? String(t.min || 0) : r.value);
835
+ r.value = d, n("blur", a), u !== d && n("update:modelValue", Number(d));
836
836
  };
837
837
  return (a, r) => {
838
838
  var u;
839
- return m(), g("div", {
839
+ return m(), b("div", {
840
840
  class: C([p(xe).wrapper, p(xe)[`wrapper__size_${a.size}`]])
841
841
  }, [
842
- a.label ? (m(), g("label", {
842
+ a.label ? (m(), b("label", {
843
843
  key: 0,
844
844
  class: C(p(xe).wrapper__label),
845
845
  for: a.id
@@ -860,20 +860,20 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
860
860
  placeholder: a.placeholder,
861
861
  value: a.modelValue,
862
862
  onBlur: s,
863
- onChange: r[0] || (r[0] = (c) => a.$emit("change", c)),
864
- onFocus: r[1] || (r[1] = (c) => n("focus", c)),
863
+ onChange: r[0] || (r[0] = (d) => a.$emit("change", d)),
864
+ onFocus: r[1] || (r[1] = (d) => n("focus", d)),
865
865
  onInput: i,
866
- onPaste: r[2] || (r[2] = (c) => n("paste", c))
866
+ onPaste: r[2] || (r[2] = (d) => n("paste", d))
867
867
  }, null, 42, Io),
868
- a.counter || a.error ? (m(), g("div", {
868
+ a.counter || a.error ? (m(), b("div", {
869
869
  key: 1,
870
870
  class: C(p(xe).wrapper__bottom)
871
871
  }, [
872
- a.error ? (m(), g("div", {
872
+ a.error ? (m(), b("div", {
873
873
  key: 0,
874
874
  class: C(p(xe).wrapper__errorMessage)
875
875
  }, N(a.error), 3)) : $("", !0),
876
- a.counter ? (m(), g("div", {
876
+ a.counter ? (m(), b("div", {
877
877
  key: 1,
878
878
  class: C(p(xe).wrapper__counter)
879
879
  }, N(((u = a.modelValue) == null ? void 0 : u.toString().length) || 0), 3)) : $("", !0)
@@ -900,7 +900,7 @@ const gn = ["fill", "height", "width"], bn = ["xlink:href"], wn = ["viewBox", "w
900
900
  const t = e, n = o, l = () => {
901
901
  n("click", !t.checked);
902
902
  };
903
- return (i, s) => (m(), g("fieldset", {
903
+ return (i, s) => (m(), b("fieldset", {
904
904
  class: C([
905
905
  p(Ue).wrapper,
906
906
  {
@@ -1035,18 +1035,18 @@ function Et(e, o, t) {
1035
1035
  reference: n,
1036
1036
  floating: l
1037
1037
  } = e;
1038
- const i = Ae(o), s = xt(o), a = yt(s), r = Te(o), u = i === "y", c = n.x + n.width / 2 - l.width / 2, h = n.y + n.height / 2 - l.height / 2, y = n[a] / 2 - l[a] / 2;
1038
+ const i = Ae(o), s = xt(o), a = yt(s), r = Te(o), u = i === "y", d = n.x + n.width / 2 - l.width / 2, h = n.y + n.height / 2 - l.height / 2, g = n[a] / 2 - l[a] / 2;
1039
1039
  let f;
1040
1040
  switch (r) {
1041
1041
  case "top":
1042
1042
  f = {
1043
- x: c,
1043
+ x: d,
1044
1044
  y: n.y - l.height
1045
1045
  };
1046
1046
  break;
1047
1047
  case "bottom":
1048
1048
  f = {
1049
- x: c,
1049
+ x: d,
1050
1050
  y: n.y + n.height
1051
1051
  };
1052
1052
  break;
@@ -1070,10 +1070,10 @@ function Et(e, o, t) {
1070
1070
  }
1071
1071
  switch (Qe(o)) {
1072
1072
  case "start":
1073
- f[s] -= y * (t && u ? -1 : 1);
1073
+ f[s] -= g * (t && u ? -1 : 1);
1074
1074
  break;
1075
1075
  case "end":
1076
- f[s] += y * (t && u ? -1 : 1);
1076
+ f[s] += g * (t && u ? -1 : 1);
1077
1077
  break;
1078
1078
  }
1079
1079
  return f;
@@ -1090,23 +1090,23 @@ const Uo = async (e, o, t) => {
1090
1090
  floating: o,
1091
1091
  strategy: l
1092
1092
  }), {
1093
- x: c,
1093
+ x: d,
1094
1094
  y: h
1095
- } = Et(u, n, r), y = n, f = {}, I = 0;
1095
+ } = Et(u, n, r), g = n, f = {}, B = 0;
1096
1096
  for (let V = 0; V < a.length; V++) {
1097
1097
  const {
1098
1098
  name: v,
1099
1099
  fn: E
1100
1100
  } = a[V], {
1101
1101
  x,
1102
- y: k,
1103
- data: M,
1102
+ y: M,
1103
+ data: I,
1104
1104
  reset: D
1105
1105
  } = await E({
1106
- x: c,
1106
+ x: d,
1107
1107
  y: h,
1108
1108
  initialPlacement: n,
1109
- placement: y,
1109
+ placement: g,
1110
1110
  strategy: l,
1111
1111
  middlewareData: f,
1112
1112
  rects: u,
@@ -1116,25 +1116,25 @@ const Uo = async (e, o, t) => {
1116
1116
  floating: o
1117
1117
  }
1118
1118
  });
1119
- c = x ?? c, h = k ?? h, f = {
1119
+ d = x ?? d, h = M ?? h, f = {
1120
1120
  ...f,
1121
1121
  [v]: {
1122
1122
  ...f[v],
1123
- ...M
1123
+ ...I
1124
1124
  }
1125
- }, D && I <= 50 && (I++, typeof D == "object" && (D.placement && (y = D.placement), D.rects && (u = D.rects === !0 ? await s.getElementRects({
1125
+ }, D && B <= 50 && (B++, typeof D == "object" && (D.placement && (g = D.placement), D.rects && (u = D.rects === !0 ? await s.getElementRects({
1126
1126
  reference: e,
1127
1127
  floating: o,
1128
1128
  strategy: l
1129
1129
  }) : D.rects), {
1130
- x: c,
1130
+ x: d,
1131
1131
  y: h
1132
- } = Et(u, y, r)), V = -1);
1132
+ } = Et(u, g, r)), V = -1);
1133
1133
  }
1134
1134
  return {
1135
- x: c,
1135
+ x: d,
1136
1136
  y: h,
1137
- placement: y,
1137
+ placement: g,
1138
1138
  strategy: l,
1139
1139
  middlewareData: f
1140
1140
  };
@@ -1151,21 +1151,21 @@ async function Ut(e, o) {
1151
1151
  strategy: r
1152
1152
  } = e, {
1153
1153
  boundary: u = "clippingAncestors",
1154
- rootBoundary: c = "viewport",
1154
+ rootBoundary: d = "viewport",
1155
1155
  elementContext: h = "floating",
1156
- altBoundary: y = !1,
1156
+ altBoundary: g = !1,
1157
1157
  padding: f = 0
1158
- } = Ke(o, e), I = Ft(f), v = a[y ? h === "floating" ? "reference" : "floating" : h], E = lt(await i.getClippingRect({
1158
+ } = Ke(o, e), B = Ft(f), v = a[g ? h === "floating" ? "reference" : "floating" : h], E = lt(await i.getClippingRect({
1159
1159
  element: (t = await (i.isElement == null ? void 0 : i.isElement(v))) == null || t ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
1160
1160
  boundary: u,
1161
- rootBoundary: c,
1161
+ rootBoundary: d,
1162
1162
  strategy: r
1163
1163
  })), x = h === "floating" ? {
1164
1164
  x: n,
1165
1165
  y: l,
1166
1166
  width: s.floating.width,
1167
1167
  height: s.floating.height
1168
- } : s.reference, k = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), M = await (i.isElement == null ? void 0 : i.isElement(k)) ? await (i.getScale == null ? void 0 : i.getScale(k)) || {
1168
+ } : s.reference, M = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), I = await (i.isElement == null ? void 0 : i.isElement(M)) ? await (i.getScale == null ? void 0 : i.getScale(M)) || {
1169
1169
  x: 1,
1170
1170
  y: 1
1171
1171
  } : {
@@ -1174,14 +1174,14 @@ async function Ut(e, o) {
1174
1174
  }, D = lt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1175
1175
  elements: a,
1176
1176
  rect: x,
1177
- offsetParent: k,
1177
+ offsetParent: M,
1178
1178
  strategy: r
1179
1179
  }) : x);
1180
1180
  return {
1181
- top: (E.top - D.top + I.top) / M.y,
1182
- bottom: (D.bottom - E.bottom + I.bottom) / M.y,
1183
- left: (E.left - D.left + I.left) / M.x,
1184
- right: (D.right - E.right + I.right) / M.x
1181
+ top: (E.top - D.top + B.top) / I.y,
1182
+ bottom: (D.bottom - E.bottom + B.bottom) / I.y,
1183
+ left: (E.left - D.left + B.left) / I.x,
1184
+ right: (D.right - E.right + B.right) / I.x
1185
1185
  };
1186
1186
  }
1187
1187
  const Yo = (e) => ({
@@ -1198,24 +1198,24 @@ const Yo = (e) => ({
1198
1198
  middlewareData: r
1199
1199
  } = o, {
1200
1200
  element: u,
1201
- padding: c = 0
1201
+ padding: d = 0
1202
1202
  } = Ke(e, o) || {};
1203
1203
  if (u == null)
1204
1204
  return {};
1205
- const h = Ft(c), y = {
1205
+ const h = Ft(d), g = {
1206
1206
  x: t,
1207
1207
  y: n
1208
- }, f = xt(l), I = yt(f), V = await s.getDimensions(u), v = f === "y", E = v ? "top" : "left", x = v ? "bottom" : "right", k = v ? "clientHeight" : "clientWidth", M = i.reference[I] + i.reference[f] - y[f] - i.floating[I], D = y[f] - i.reference[f], U = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
1209
- let O = U ? U[k] : 0;
1210
- (!O || !await (s.isElement == null ? void 0 : s.isElement(U))) && (O = a.floating[k] || i.floating[I]);
1211
- const W = M / 2 - D / 2, T = O / 2 - V[I] / 2 - 1, P = ze(h[E], T), q = ze(h[x], T), G = P, ee = O - V[I] - q, d = O / 2 - V[I] / 2 + W, _ = mt(G, d, ee), A = !r.arrow && Qe(l) != null && d !== _ && i.reference[I] / 2 - (d < G ? P : q) - V[I] / 2 < 0, b = A ? d < G ? d - G : d - ee : 0;
1208
+ }, f = xt(l), B = yt(f), V = await s.getDimensions(u), v = f === "y", E = v ? "top" : "left", x = v ? "bottom" : "right", M = v ? "clientHeight" : "clientWidth", I = i.reference[B] + i.reference[f] - g[f] - i.floating[B], D = g[f] - i.reference[f], U = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
1209
+ let O = U ? U[M] : 0;
1210
+ (!O || !await (s.isElement == null ? void 0 : s.isElement(U))) && (O = a.floating[M] || i.floating[B]);
1211
+ const W = I / 2 - D / 2, T = O / 2 - V[B] / 2 - 1, P = ze(h[E], T), q = ze(h[x], T), G = P, ee = O - V[B] - q, c = O / 2 - V[B] / 2 + W, _ = mt(G, c, ee), A = !r.arrow && Qe(l) != null && c !== _ && i.reference[B] / 2 - (c < G ? P : q) - V[B] / 2 < 0, w = A ? c < G ? c - G : c - ee : 0;
1212
1212
  return {
1213
- [f]: y[f] + b,
1213
+ [f]: g[f] + w,
1214
1214
  data: {
1215
1215
  [f]: _,
1216
- centerOffset: d - _ - b,
1216
+ centerOffset: c - _ - w,
1217
1217
  ...A && {
1218
- alignmentOffset: b
1218
+ alignmentOffset: w
1219
1219
  }
1220
1220
  },
1221
1221
  reset: A
@@ -1235,57 +1235,57 @@ const Yo = (e) => ({
1235
1235
  platform: r,
1236
1236
  elements: u
1237
1237
  } = o, {
1238
- mainAxis: c = !0,
1238
+ mainAxis: d = !0,
1239
1239
  crossAxis: h = !0,
1240
- fallbackPlacements: y,
1240
+ fallbackPlacements: g,
1241
1241
  fallbackStrategy: f = "bestFit",
1242
- fallbackAxisSideDirection: I = "none",
1242
+ fallbackAxisSideDirection: B = "none",
1243
1243
  flipAlignment: V = !0,
1244
1244
  ...v
1245
1245
  } = Ke(e, o);
1246
1246
  if ((t = i.arrow) != null && t.alignmentOffset)
1247
1247
  return {};
1248
- const E = Te(l), x = Ae(a), k = Te(a) === a, M = await (r.isRTL == null ? void 0 : r.isRTL(u.floating)), D = y || (k || !V ? [at(a)] : Ho(a)), U = I !== "none";
1249
- !y && U && D.push(...Wo(a, V, I, M));
1248
+ const E = Te(l), x = Ae(a), M = Te(a) === a, I = await (r.isRTL == null ? void 0 : r.isRTL(u.floating)), D = g || (M || !V ? [at(a)] : Ho(a)), U = B !== "none";
1249
+ !g && U && D.push(...Wo(a, V, B, I));
1250
1250
  const O = [a, ...D], W = await Ut(o, v), T = [];
1251
1251
  let P = ((n = i.flip) == null ? void 0 : n.overflows) || [];
1252
- if (c && T.push(W[E]), h) {
1253
- const d = Po(l, s, M);
1254
- T.push(W[d[0]], W[d[1]]);
1252
+ if (d && T.push(W[E]), h) {
1253
+ const c = Po(l, s, I);
1254
+ T.push(W[c[0]], W[c[1]]);
1255
1255
  }
1256
1256
  if (P = [...P, {
1257
1257
  placement: l,
1258
1258
  overflows: T
1259
- }], !T.every((d) => d <= 0)) {
1259
+ }], !T.every((c) => c <= 0)) {
1260
1260
  var q, G;
1261
- const d = (((q = i.flip) == null ? void 0 : q.index) || 0) + 1, _ = O[d];
1261
+ const c = (((q = i.flip) == null ? void 0 : q.index) || 0) + 1, _ = O[c];
1262
1262
  if (_ && (!(h === "alignment" ? x !== Ae(_) : !1) || // We leave the current main axis only if every placement on that axis
1263
1263
  // overflows the main axis.
1264
- P.every((w) => Ae(w.placement) === x ? w.overflows[0] > 0 : !0)))
1264
+ P.every((y) => Ae(y.placement) === x ? y.overflows[0] > 0 : !0)))
1265
1265
  return {
1266
1266
  data: {
1267
- index: d,
1267
+ index: c,
1268
1268
  overflows: P
1269
1269
  },
1270
1270
  reset: {
1271
1271
  placement: _
1272
1272
  }
1273
1273
  };
1274
- let A = (G = P.filter((b) => b.overflows[0] <= 0).sort((b, w) => b.overflows[1] - w.overflows[1])[0]) == null ? void 0 : G.placement;
1274
+ let A = (G = P.filter((w) => w.overflows[0] <= 0).sort((w, y) => w.overflows[1] - y.overflows[1])[0]) == null ? void 0 : G.placement;
1275
1275
  if (!A)
1276
1276
  switch (f) {
1277
1277
  case "bestFit": {
1278
1278
  var ee;
1279
- const b = (ee = P.filter((w) => {
1279
+ const w = (ee = P.filter((y) => {
1280
1280
  if (U) {
1281
- const B = Ae(w.placement);
1282
- return B === x || // Create a bias to the `y` side axis due to horizontal
1281
+ const k = Ae(y.placement);
1282
+ return k === x || // Create a bias to the `y` side axis due to horizontal
1283
1283
  // reading directions favoring greater width.
1284
- B === "y";
1284
+ k === "y";
1285
1285
  }
1286
1286
  return !0;
1287
- }).map((w) => [w.placement, w.overflows.filter((B) => B > 0).reduce((B, H) => B + H, 0)]).sort((w, B) => w[1] - B[1])[0]) == null ? void 0 : ee[0];
1288
- b && (A = b);
1287
+ }).map((y) => [y.placement, y.overflows.filter((k) => k > 0).reduce((k, H) => k + H, 0)]).sort((y, k) => y[1] - k[1])[0]) == null ? void 0 : ee[0];
1288
+ w && (A = w);
1289
1289
  break;
1290
1290
  }
1291
1291
  case "initialPlacement":
@@ -1308,11 +1308,11 @@ async function Qo(e, o) {
1308
1308
  placement: t,
1309
1309
  platform: n,
1310
1310
  elements: l
1311
- } = e, i = await (n.isRTL == null ? void 0 : n.isRTL(l.floating)), s = Te(t), a = Qe(t), r = Ae(t) === "y", u = Ko.has(s) ? -1 : 1, c = i && r ? -1 : 1, h = Ke(o, e);
1311
+ } = e, i = await (n.isRTL == null ? void 0 : n.isRTL(l.floating)), s = Te(t), a = Qe(t), r = Ae(t) === "y", u = Ko.has(s) ? -1 : 1, d = i && r ? -1 : 1, h = Ke(o, e);
1312
1312
  let {
1313
- mainAxis: y,
1313
+ mainAxis: g,
1314
1314
  crossAxis: f,
1315
- alignmentAxis: I
1315
+ alignmentAxis: B
1316
1316
  } = typeof h == "number" ? {
1317
1317
  mainAxis: h,
1318
1318
  crossAxis: 0,
@@ -1322,12 +1322,12 @@ async function Qo(e, o) {
1322
1322
  crossAxis: h.crossAxis || 0,
1323
1323
  alignmentAxis: h.alignmentAxis
1324
1324
  };
1325
- return a && typeof I == "number" && (f = a === "end" ? I * -1 : I), r ? {
1326
- x: f * c,
1327
- y: y * u
1325
+ return a && typeof B == "number" && (f = a === "end" ? B * -1 : B), r ? {
1326
+ x: f * d,
1327
+ y: g * u
1328
1328
  } : {
1329
- x: y * u,
1330
- y: f * c
1329
+ x: g * u,
1330
+ y: f * d
1331
1331
  };
1332
1332
  }
1333
1333
  const jo = function(e) {
@@ -1380,20 +1380,20 @@ const jo = function(e) {
1380
1380
  } = Ke(e, o), u = {
1381
1381
  x: t,
1382
1382
  y: n
1383
- }, c = await Ut(o, r), h = Ae(Te(l)), y = Wt(h);
1384
- let f = u[y], I = u[h];
1383
+ }, d = await Ut(o, r), h = Ae(Te(l)), g = Wt(h);
1384
+ let f = u[g], B = u[h];
1385
1385
  if (i) {
1386
- const v = y === "y" ? "top" : "left", E = y === "y" ? "bottom" : "right", x = f + c[v], k = f - c[E];
1387
- f = mt(x, f, k);
1386
+ const v = g === "y" ? "top" : "left", E = g === "y" ? "bottom" : "right", x = f + d[v], M = f - d[E];
1387
+ f = mt(x, f, M);
1388
1388
  }
1389
1389
  if (s) {
1390
- const v = h === "y" ? "top" : "left", E = h === "y" ? "bottom" : "right", x = I + c[v], k = I - c[E];
1391
- I = mt(x, I, k);
1390
+ const v = h === "y" ? "top" : "left", E = h === "y" ? "bottom" : "right", x = B + d[v], M = B - d[E];
1391
+ B = mt(x, B, M);
1392
1392
  }
1393
1393
  const V = a.fn({
1394
1394
  ...o,
1395
- [y]: f,
1396
- [h]: I
1395
+ [g]: f,
1396
+ [h]: B
1397
1397
  });
1398
1398
  return {
1399
1399
  ...V,
@@ -1401,7 +1401,7 @@ const jo = function(e) {
1401
1401
  x: V.x - t,
1402
1402
  y: V.y - n,
1403
1403
  enabled: {
1404
- [y]: i,
1404
+ [g]: i,
1405
1405
  [h]: s
1406
1406
  }
1407
1407
  }
@@ -1568,17 +1568,17 @@ function Ee(e, o, t, n) {
1568
1568
  let s = de(1);
1569
1569
  o && (n ? se(n) && (s = He(n)) : s = He(e));
1570
1570
  const a = ia(i, t, n) ? Kt(i) : de(0);
1571
- let r = (l.left + a.x) / s.x, u = (l.top + a.y) / s.y, c = l.width / s.x, h = l.height / s.y;
1571
+ let r = (l.left + a.x) / s.x, u = (l.top + a.y) / s.y, d = l.width / s.x, h = l.height / s.y;
1572
1572
  if (i) {
1573
- const y = te(i), f = n && se(n) ? te(n) : n;
1574
- let I = y, V = vt(I);
1575
- for (; V && n && f !== I; ) {
1576
- const v = He(V), E = V.getBoundingClientRect(), x = re(V), k = E.left + (V.clientLeft + parseFloat(x.paddingLeft)) * v.x, M = E.top + (V.clientTop + parseFloat(x.paddingTop)) * v.y;
1577
- r *= v.x, u *= v.y, c *= v.x, h *= v.y, r += k, u += M, I = te(V), V = vt(I);
1573
+ const g = te(i), f = n && se(n) ? te(n) : n;
1574
+ let B = g, V = vt(B);
1575
+ for (; V && n && f !== B; ) {
1576
+ const v = He(V), E = V.getBoundingClientRect(), x = re(V), M = E.left + (V.clientLeft + parseFloat(x.paddingLeft)) * v.x, I = E.top + (V.clientTop + parseFloat(x.paddingTop)) * v.y;
1577
+ r *= v.x, u *= v.y, d *= v.x, h *= v.y, r += M, u += I, B = te(V), V = vt(B);
1578
1578
  }
1579
1579
  }
1580
1580
  return lt({
1581
- width: c,
1581
+ width: d,
1582
1582
  height: h,
1583
1583
  x: r,
1584
1584
  y: u
@@ -1609,17 +1609,17 @@ function ua(e) {
1609
1609
  scrollLeft: 0,
1610
1610
  scrollTop: 0
1611
1611
  }, u = de(1);
1612
- const c = de(0), h = _e(n);
1612
+ const d = de(0), h = _e(n);
1613
1613
  if ((h || !h && !i) && ((Le(n) !== "body" || je(s)) && (r = ut(n)), _e(n))) {
1614
1614
  const f = Ee(n);
1615
- u = He(n), c.x = f.x + n.clientLeft, c.y = f.y + n.clientTop;
1615
+ u = He(n), d.x = f.x + n.clientLeft, d.y = f.y + n.clientTop;
1616
1616
  }
1617
- const y = s && !h && !i ? Qt(s, r) : de(0);
1617
+ const g = s && !h && !i ? Qt(s, r) : de(0);
1618
1618
  return {
1619
1619
  width: t.width * u.x,
1620
1620
  height: t.height * u.y,
1621
- x: t.x * u.x - r.scrollLeft * u.x + c.x + y.x,
1622
- y: t.y * u.y - r.scrollTop * u.y + c.y + y.y
1621
+ x: t.x * u.x - r.scrollLeft * u.x + d.x + g.x,
1622
+ y: t.y * u.y - r.scrollTop * u.y + d.y + g.y
1623
1623
  };
1624
1624
  }
1625
1625
  function ca(e) {
@@ -1642,13 +1642,13 @@ function _a(e, o) {
1642
1642
  let i = n.clientWidth, s = n.clientHeight, a = 0, r = 0;
1643
1643
  if (l) {
1644
1644
  i = l.width, s = l.height;
1645
- const c = kt();
1646
- (!c || c && o === "fixed") && (a = l.offsetLeft, r = l.offsetTop);
1645
+ const d = kt();
1646
+ (!d || d && o === "fixed") && (a = l.offsetLeft, r = l.offsetTop);
1647
1647
  }
1648
1648
  const u = ct(n);
1649
1649
  if (u <= 0) {
1650
- const c = n.ownerDocument, h = c.body, y = getComputedStyle(h), f = c.compatMode === "CSS1Compat" && parseFloat(y.marginLeft) + parseFloat(y.marginRight) || 0, I = Math.abs(n.clientWidth - h.clientWidth - f);
1651
- I <= Rt && (i -= I);
1650
+ const d = n.ownerDocument, h = d.body, g = getComputedStyle(h), f = d.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, B = Math.abs(n.clientWidth - h.clientWidth - f);
1651
+ B <= Rt && (i -= B);
1652
1652
  } else u <= Rt && (i += u);
1653
1653
  return {
1654
1654
  width: i,
@@ -1699,7 +1699,7 @@ function ma(e, o) {
1699
1699
  let s = i ? Ce(e) : e;
1700
1700
  for (; se(s) && !qe(s); ) {
1701
1701
  const a = re(s), r = Ct(s);
1702
- !r && a.position === "fixed" && (l = null), (i ? !r && !l : !r && a.position === "static" && !!l && pa.has(l.position) || je(s) && !r && jt(e, s)) ? n = n.filter((c) => c !== s) : l = a, s = Ce(s);
1702
+ !r && a.position === "fixed" && (l = null), (i ? !r && !l : !r && a.position === "static" && !!l && pa.has(l.position) || je(s) && !r && jt(e, s)) ? n = n.filter((d) => d !== s) : l = a, s = Ce(s);
1703
1703
  }
1704
1704
  return o.set(e, n), n;
1705
1705
  }
@@ -1710,8 +1710,8 @@ function ha(e) {
1710
1710
  rootBoundary: n,
1711
1711
  strategy: l
1712
1712
  } = e;
1713
- const s = [...t === "clippingAncestors" ? it(o) ? [] : ma(o, this._c) : [].concat(t), n], a = s[0], r = s.reduce((u, c) => {
1714
- const h = $t(o, c, l);
1713
+ const s = [...t === "clippingAncestors" ? it(o) ? [] : ma(o, this._c) : [].concat(t), n], a = s[0], r = s.reduce((u, d) => {
1714
+ const h = $t(o, d, l);
1715
1715
  return u.top = Me(h.top, u.top), u.right = ze(h.right, u.right), u.bottom = ze(h.bottom, u.bottom), u.left = Me(h.left, u.left), u;
1716
1716
  }, $t(o, a, l));
1717
1717
  return {
@@ -1747,10 +1747,10 @@ function ga(e, o, t) {
1747
1747
  r.x = f.x + o.clientLeft, r.y = f.y + o.clientTop;
1748
1748
  } else l && u();
1749
1749
  i && !n && l && u();
1750
- const c = l && !n && !i ? Qt(l, a) : de(0), h = s.left + a.scrollLeft - r.x - c.x, y = s.top + a.scrollTop - r.y - c.y;
1750
+ const d = l && !n && !i ? Qt(l, a) : de(0), h = s.left + a.scrollLeft - r.x - d.x, g = s.top + a.scrollTop - r.y - d.y;
1751
1751
  return {
1752
1752
  x: h,
1753
- y,
1753
+ y: g,
1754
1754
  width: s.width,
1755
1755
  height: s.height
1756
1756
  };
@@ -1824,37 +1824,37 @@ function xa(e, o) {
1824
1824
  function s(a, r) {
1825
1825
  a === void 0 && (a = !1), r === void 0 && (r = 1), i();
1826
1826
  const u = e.getBoundingClientRect(), {
1827
- left: c,
1827
+ left: d,
1828
1828
  top: h,
1829
- width: y,
1829
+ width: g,
1830
1830
  height: f
1831
1831
  } = u;
1832
- if (a || o(), !y || !f)
1832
+ if (a || o(), !g || !f)
1833
1833
  return;
1834
- const I = Je(h), V = Je(l.clientWidth - (c + y)), v = Je(l.clientHeight - (h + f)), E = Je(c), k = {
1835
- rootMargin: -I + "px " + -V + "px " + -v + "px " + -E + "px",
1834
+ const B = Je(h), V = Je(l.clientWidth - (d + g)), v = Je(l.clientHeight - (h + f)), E = Je(d), M = {
1835
+ rootMargin: -B + "px " + -V + "px " + -v + "px " + -E + "px",
1836
1836
  threshold: Me(0, ze(1, r)) || 1
1837
1837
  };
1838
- let M = !0;
1838
+ let I = !0;
1839
1839
  function D(U) {
1840
1840
  const O = U[0].intersectionRatio;
1841
1841
  if (O !== r) {
1842
- if (!M)
1842
+ if (!I)
1843
1843
  return s();
1844
1844
  O ? s(!1, O) : n = setTimeout(() => {
1845
1845
  s(!1, 1e-7);
1846
1846
  }, 1e3);
1847
1847
  }
1848
- O === 1 && !Zt(u, e.getBoundingClientRect()) && s(), M = !1;
1848
+ O === 1 && !Zt(u, e.getBoundingClientRect()) && s(), I = !1;
1849
1849
  }
1850
1850
  try {
1851
1851
  t = new IntersectionObserver(D, {
1852
- ...k,
1852
+ ...M,
1853
1853
  // Handle <iframe>s
1854
1854
  root: l.ownerDocument
1855
1855
  });
1856
1856
  } catch {
1857
- t = new IntersectionObserver(D, k);
1857
+ t = new IntersectionObserver(D, M);
1858
1858
  }
1859
1859
  t.observe(e);
1860
1860
  }
@@ -1868,32 +1868,32 @@ function Aa(e, o, t, n) {
1868
1868
  elementResize: s = typeof ResizeObserver == "function",
1869
1869
  layoutShift: a = typeof IntersectionObserver == "function",
1870
1870
  animationFrame: r = !1
1871
- } = n, u = Bt(e), c = l || i ? [...u ? Ge(u) : [], ...Ge(o)] : [];
1872
- c.forEach((E) => {
1871
+ } = n, u = Bt(e), d = l || i ? [...u ? Ge(u) : [], ...Ge(o)] : [];
1872
+ d.forEach((E) => {
1873
1873
  l && E.addEventListener("scroll", t, {
1874
1874
  passive: !0
1875
1875
  }), i && E.addEventListener("resize", t);
1876
1876
  });
1877
1877
  const h = u && a ? xa(u, t) : null;
1878
- let y = -1, f = null;
1878
+ let g = -1, f = null;
1879
1879
  s && (f = new ResizeObserver((E) => {
1880
1880
  let [x] = E;
1881
- x && x.target === u && f && (f.unobserve(o), cancelAnimationFrame(y), y = requestAnimationFrame(() => {
1882
- var k;
1883
- (k = f) == null || k.observe(o);
1881
+ x && x.target === u && f && (f.unobserve(o), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
1882
+ var M;
1883
+ (M = f) == null || M.observe(o);
1884
1884
  })), t();
1885
1885
  }), u && !r && f.observe(u), f.observe(o));
1886
- let I, V = r ? Ee(e) : null;
1886
+ let B, V = r ? Ee(e) : null;
1887
1887
  r && v();
1888
1888
  function v() {
1889
1889
  const E = Ee(e);
1890
- V && !Zt(V, E) && t(), V = E, I = requestAnimationFrame(v);
1890
+ V && !Zt(V, E) && t(), V = E, B = requestAnimationFrame(v);
1891
1891
  }
1892
1892
  return t(), () => {
1893
1893
  var E;
1894
- c.forEach((x) => {
1894
+ d.forEach((x) => {
1895
1895
  l && x.removeEventListener("scroll", t), i && x.removeEventListener("resize", t);
1896
- }), h == null || h(), (E = f) == null || E.disconnect(), f = null, r && cancelAnimationFrame(I);
1896
+ }), h == null || h(), (E = f) == null || E.disconnect(), f = null, r && cancelAnimationFrame(B);
1897
1897
  };
1898
1898
  }
1899
1899
  const Ca = jo, ka = Xo, Ba = Go, Ia = Yo, Sa = (e, o, t) => {
@@ -1956,19 +1956,19 @@ function Ta(e, o, t) {
1956
1956
  }), r = R(() => {
1957
1957
  var O;
1958
1958
  return (O = Pe(t.transform)) != null ? O : !0;
1959
- }), u = R(() => gt(e.value)), c = R(() => gt(o.value)), h = L(0), y = L(0), f = L(a.value), I = L(s.value), V = nn({}), v = L(!1), E = R(() => {
1959
+ }), u = R(() => gt(e.value)), d = R(() => gt(o.value)), h = L(0), g = L(0), f = L(a.value), B = L(s.value), V = nn({}), v = L(!1), E = R(() => {
1960
1960
  const O = {
1961
1961
  position: f.value,
1962
1962
  left: "0",
1963
1963
  top: "0"
1964
1964
  };
1965
- if (!c.value)
1965
+ if (!d.value)
1966
1966
  return O;
1967
- const W = Dt(c.value, h.value), T = Dt(c.value, y.value);
1967
+ const W = Dt(d.value, h.value), T = Dt(d.value, g.value);
1968
1968
  return r.value ? {
1969
1969
  ...O,
1970
1970
  transform: "translate(" + W + "px, " + T + "px)",
1971
- ...Jt(c.value) >= 1.5 && {
1971
+ ...Jt(d.value) >= 1.5 && {
1972
1972
  willChange: "transform"
1973
1973
  }
1974
1974
  } : {
@@ -1978,49 +1978,49 @@ function Ta(e, o, t) {
1978
1978
  };
1979
1979
  });
1980
1980
  let x;
1981
- function k() {
1982
- if (u.value == null || c.value == null)
1981
+ function M() {
1982
+ if (u.value == null || d.value == null)
1983
1983
  return;
1984
1984
  const O = l.value;
1985
- Sa(u.value, c.value, {
1985
+ Sa(u.value, d.value, {
1986
1986
  middleware: i.value,
1987
1987
  placement: s.value,
1988
1988
  strategy: a.value
1989
1989
  }).then((W) => {
1990
- h.value = W.x, y.value = W.y, f.value = W.strategy, I.value = W.placement, V.value = W.middlewareData, v.value = O !== !1;
1990
+ h.value = W.x, g.value = W.y, f.value = W.strategy, B.value = W.placement, V.value = W.middlewareData, v.value = O !== !1;
1991
1991
  });
1992
1992
  }
1993
- function M() {
1993
+ function I() {
1994
1994
  typeof x == "function" && (x(), x = void 0);
1995
1995
  }
1996
1996
  function D() {
1997
- if (M(), n === void 0) {
1998
- k();
1997
+ if (I(), n === void 0) {
1998
+ M();
1999
1999
  return;
2000
2000
  }
2001
- if (u.value != null && c.value != null) {
2002
- x = n(u.value, c.value, k);
2001
+ if (u.value != null && d.value != null) {
2002
+ x = n(u.value, d.value, M);
2003
2003
  return;
2004
2004
  }
2005
2005
  }
2006
2006
  function U() {
2007
2007
  l.value || (v.value = !1);
2008
2008
  }
2009
- return Q([i, s, a, l], k, {
2009
+ return Q([i, s, a, l], M, {
2010
2010
  flush: "sync"
2011
- }), Q([u, c], D, {
2011
+ }), Q([u, d], D, {
2012
2012
  flush: "sync"
2013
2013
  }), Q(l, U, {
2014
2014
  flush: "sync"
2015
- }), on() && an(M), {
2015
+ }), on() && an(I), {
2016
2016
  x: Oe(h),
2017
- y: Oe(y),
2017
+ y: Oe(g),
2018
2018
  strategy: Oe(f),
2019
- placement: Oe(I),
2019
+ placement: Oe(B),
2020
2020
  middlewareData: Oe(V),
2021
2021
  isPositioned: Oe(v),
2022
2022
  floatingStyles: E,
2023
- update: k
2023
+ update: M
2024
2024
  };
2025
2025
  }
2026
2026
  let Pt = !1;
@@ -2068,87 +2068,91 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2068
2068
  right: "left",
2069
2069
  bottom: "top",
2070
2070
  left: "right"
2071
- }, t = L(null);
2071
+ }, t = L(null), n = L(!1);
2072
2072
  typeof window < "u" && window.wasTooltipShown === void 0 && (window.wasTooltipShown = !1);
2073
- const n = e, l = L(null), i = L(null), s = L(null), a = L(!1), r = R(() => n.preventXss ? La(n.text) : n.text), { floatingStyles: u, update: c, middlewareData: h, placement: y } = Ta(i, l, {
2074
- placement: R(() => n.placement || "bottom"),
2073
+ const l = e, i = L(null), s = L(null), a = L(null), r = L(!1), u = R(() => l.preventXss ? La(l.text) : l.text), { floatingStyles: d, update: h, middlewareData: g, placement: f } = Ta(s, i, {
2074
+ placement: R(() => l.placement || "bottom"),
2075
2075
  strategy: "fixed",
2076
2076
  whileElementsMounted: Aa,
2077
2077
  middleware: [
2078
2078
  Ca(10),
2079
2079
  Ba(),
2080
2080
  ka(),
2081
- Ma({ element: s, padding: 8 })
2081
+ Ma({ element: a, padding: 8 })
2082
2082
  ]
2083
- }), f = () => {
2084
- t.value && (clearTimeout(t.value), t.value = null), window.wasTooltipShown ? a.value = !0 : t.value = setTimeout(() => {
2085
- a.value = !0, window.wasTooltipShown = !0, t.value = null;
2083
+ }), B = () => {
2084
+ t.value && (clearTimeout(t.value), t.value = null), window.wasTooltipShown ? r.value = !0 : t.value = setTimeout(() => {
2085
+ if (!n.value) {
2086
+ t.value = null;
2087
+ return;
2088
+ }
2089
+ r.value = !0, window.wasTooltipShown = !0, t.value = null;
2086
2090
  }, qa);
2087
- }, I = () => {
2088
- t.value && (clearTimeout(t.value), t.value = null), a.value = !1;
2089
2091
  }, V = () => {
2090
- f();
2092
+ t.value && (clearTimeout(t.value), t.value = null), r.value = !1;
2091
2093
  }, v = () => {
2092
- I();
2094
+ B();
2095
+ }, E = () => {
2096
+ V();
2093
2097
  };
2094
- Q(() => n.placement, c), ln(Ea), Ne(() => {
2095
- wt(c), window.addEventListener("resize", c);
2098
+ Q(() => l.placement, h), ln(Ea), Ne(() => {
2099
+ n.value = !0, wt(h), window.addEventListener("resize", h);
2096
2100
  }), zt(() => {
2097
- window.removeEventListener("resize", c), t.value && (clearTimeout(t.value), t.value = null);
2101
+ n.value = !1, window.removeEventListener("resize", h), t.value && (clearTimeout(t.value), t.value = null), r.value = !1;
2098
2102
  });
2099
- const E = R(() => {
2100
- const [k] = y.value.split("-");
2103
+ const x = R(() => {
2104
+ const [I] = f.value.split("-");
2101
2105
  return {
2102
- [o[k]]: "-4px"
2106
+ [o[I]]: "-4px"
2103
2107
  };
2104
- }), x = R(() => {
2105
- var k, M;
2106
- return s.value ? {
2107
- left: ((k = h.value.arrow) == null ? void 0 : k.x) != null ? `${h.value.arrow.x}px` : "",
2108
- top: ((M = h.value.arrow) == null ? void 0 : M.y) != null ? `${h.value.arrow.y}px` : "",
2108
+ }), M = R(() => {
2109
+ var I, D;
2110
+ return a.value ? {
2111
+ left: ((I = g.value.arrow) == null ? void 0 : I.x) != null ? `${g.value.arrow.x}px` : "",
2112
+ top: ((D = g.value.arrow) == null ? void 0 : D.y) != null ? `${g.value.arrow.y}px` : "",
2109
2113
  right: "",
2110
2114
  bottom: "",
2111
- ...E.value
2115
+ ...x.value
2112
2116
  } : {};
2113
2117
  });
2114
- return (k, M) => (m(), g(ue, null, [
2118
+ return (I, D) => (m(), b(ue, null, [
2115
2119
  (m(), J(sn, { to: "body" }, [
2116
- k.status || a.value ? (m(), g("div", {
2120
+ I.status || r.value ? (m(), b("div", {
2117
2121
  key: 0,
2118
2122
  ref_key: "tooltipRef",
2119
- ref: l,
2123
+ ref: i,
2120
2124
  class: C(["qa-tooltip", p(Ye).bubble]),
2121
- style: ne(p(u)),
2122
- onMouseenter: V,
2123
- onMouseleave: v
2125
+ style: ne(p(d)),
2126
+ onMouseenter: v,
2127
+ onMouseleave: E
2124
2128
  }, [
2125
2129
  S("div", {
2126
2130
  class: C(p(Ye).bubble__content)
2127
2131
  }, [
2128
- S("div", { innerHTML: r.value }, null, 8, Ha),
2129
- oe(k.$slots, "contentSlot")
2132
+ S("div", { innerHTML: u.value }, null, 8, Ha),
2133
+ oe(I.$slots, "contentSlot")
2130
2134
  ], 2),
2131
2135
  S("div", {
2132
2136
  ref_key: "floatingArrowRef",
2133
- ref: s,
2137
+ ref: a,
2134
2138
  class: C(p(Ye).arrow),
2135
- style: ne(x.value)
2139
+ style: ne(M.value)
2136
2140
  }, null, 6)
2137
2141
  ], 38)) : $("", !0)
2138
2142
  ])),
2139
2143
  S("div", {
2140
- id: k.id,
2144
+ id: I.id,
2141
2145
  ref_key: "triggerRef",
2142
- ref: i,
2146
+ ref: s,
2143
2147
  class: C(p(Ye).trigger),
2144
- onMouseenter: V,
2145
- onMouseleave: v
2148
+ onMouseenter: v,
2149
+ onMouseleave: E
2146
2150
  }, [
2147
- k.iconName ? (m(), J(p(ae), {
2151
+ I.iconName ? (m(), J(p(ae), {
2148
2152
  key: 0,
2149
2153
  color: p(Ye).trigger__icon,
2150
- name: k.iconName
2151
- }, null, 8, ["color", "name"])) : oe(k.$slots, "default", { key: 1 })
2154
+ name: I.iconName
2155
+ }, null, 8, ["color", "name"])) : oe(I.$slots, "default", { key: 1 })
2152
2156
  ], 42, za)
2153
2157
  ], 64));
2154
2158
  }
@@ -2185,8 +2189,8 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2185
2189
  await wt(), n.value = !0, window.addEventListener("keydown", a);
2186
2190
  }), zt(() => {
2187
2191
  window.removeEventListener("keydown", a);
2188
- }), (r, u) => (m(), g(ue, null, [
2189
- r.hasOverlay ? (m(), g("div", {
2192
+ }), (r, u) => (m(), b(ue, null, [
2193
+ r.hasOverlay ? (m(), b("div", {
2190
2194
  key: 0,
2191
2195
  class: C(p(ye).modalOverlay),
2192
2196
  onClick: i
@@ -2277,7 +2281,7 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2277
2281
  },
2278
2282
  setup(e) {
2279
2283
  const o = e, t = R(() => o.theme === "dark"), n = R(() => `in-info-box__${o.variant}`), l = R(() => `in-info-box__size-${o.size}`), i = R(() => t.value ? "inverse" : "default");
2280
- return (s, a) => (m(), g("div", {
2284
+ return (s, a) => (m(), b("div", {
2281
2285
  class: C([
2282
2286
  p(Z)["in-info-box"],
2283
2287
  t.value ? p(Z)["in-info-box__background-inverse"] : p(Z)["in-info-box__background-default"],
@@ -2291,7 +2295,7 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2291
2295
  { [p(Z)["in-info-box__container-full-width"]]: s.fullWidthContentStatus }
2292
2296
  ])
2293
2297
  }, [
2294
- s.titleStatus ? (m(), g("div", {
2298
+ s.titleStatus ? (m(), b("div", {
2295
2299
  key: 0,
2296
2300
  class: C([
2297
2301
  p(Z)["in-info-box__heading-wrapper"],
@@ -2306,7 +2310,7 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2306
2310
  ]),
2307
2311
  innerHTML: s.titleText
2308
2312
  }, null, 10, Za),
2309
- s.titleStatus && s.descriptionStatus ? (m(), g("div", {
2313
+ s.titleStatus && s.descriptionStatus ? (m(), b("div", {
2310
2314
  key: 0,
2311
2315
  class: C([
2312
2316
  p(Z)["in-info-box__heading-details"],
@@ -2357,30 +2361,30 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2357
2361
  V(), l("keyup", v);
2358
2362
  }, u = (v) => {
2359
2363
  V(), l("keypress", v);
2360
- }, c = (v) => {
2364
+ }, d = (v) => {
2361
2365
  V(), l("click", v);
2362
2366
  }, h = (v) => {
2363
2367
  const E = v.target;
2364
2368
  V(), l("update:modelValue", E.value);
2365
- }, y = (v) => {
2369
+ }, g = (v) => {
2366
2370
  V(), l("cut", v);
2367
2371
  }, f = (v) => {
2368
2372
  V(), l("paste", v);
2369
- }, I = (v) => {
2373
+ }, B = (v) => {
2370
2374
  V(), l("blur", v);
2371
2375
  }, V = () => {
2372
2376
  n.preventXss && i.value && (i.value.value = s(i.value.value));
2373
2377
  };
2374
2378
  return o({
2375
2379
  textareaRef: i
2376
- }), (v, E) => (m(), g("fieldset", {
2380
+ }), (v, E) => (m(), b("fieldset", {
2377
2381
  class: C([
2378
2382
  p(ie)["in-form-item"],
2379
2383
  p(ie)["in-textarea-wrapper"],
2380
2384
  { [p(ie)["in-form-item_invalid"]]: v.invalid }
2381
2385
  ])
2382
2386
  }, [
2383
- v.withLabel ? (m(), g("label", {
2387
+ v.withLabel ? (m(), b("label", {
2384
2388
  key: 0,
2385
2389
  for: v.id,
2386
2390
  class: C([
@@ -2406,13 +2410,13 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2406
2410
  maxlength: v.maxLength,
2407
2411
  onKeyup: r,
2408
2412
  onKeypress: u,
2409
- onCut: y,
2413
+ onCut: g,
2410
2414
  onPaste: f,
2411
- onClick: c,
2412
- onBlur: I,
2415
+ onClick: d,
2416
+ onBlur: B,
2413
2417
  onInput: h
2414
2418
  }, " ", 42, tl),
2415
- v.invalid ? (m(), g("p", {
2419
+ v.invalid ? (m(), b("p", {
2416
2420
  key: 1,
2417
2421
  class: C([
2418
2422
  p(ie)["in-textarea-wrapper__error-message"]
@@ -2482,70 +2486,70 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2482
2486
  () => t.states === "warning" || t.states === "error"
2483
2487
  ), r = R(
2484
2488
  () => t.helperMessageStatus || a.value
2485
- ), u = R(() => t.type === "number"), c = R(() => {
2486
- const d = ["e", "E", "+", "\\"], _ = typeof t.minValue == "number" ? t.minValue : Number(t.minValue);
2487
- return !isNaN(_) && _ >= 0 && d.push("-"), t.allowDecimal || d.push("."), t.allowComma || d.push(","), d;
2488
- }), h = (d) => c.value.includes(d), y = (d) => {
2489
+ ), u = R(() => t.type === "number"), d = R(() => {
2490
+ const c = ["e", "E", "+", "\\"], _ = typeof t.minValue == "number" ? t.minValue : Number(t.minValue);
2491
+ return !isNaN(_) && _ >= 0 && c.push("-"), t.allowDecimal || c.push("."), t.allowComma || c.push(","), c;
2492
+ }), h = (c) => d.value.includes(c), g = (c) => {
2489
2493
  var _;
2490
- if (t.preventXss && (d != null && d.target)) {
2491
- const A = String(d.target.value).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
2492
- d.target.value !== A && (d.target.value = A);
2494
+ if (t.preventXss && (c != null && c.target)) {
2495
+ const A = String(c.target.value).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
2496
+ c.target.value !== A && (c.target.value = A);
2493
2497
  }
2494
- return l.value = ((_ = d == null ? void 0 : d.target) == null ? void 0 : _.value) || "", d;
2495
- }, f = (d) => {
2496
- if (!(d != null && d.target)) return;
2497
- const _ = d.target, A = _.selectionStart;
2498
+ return l.value = ((_ = c == null ? void 0 : c.target) == null ? void 0 : _.value) || "", c;
2499
+ }, f = (c) => {
2500
+ if (!(c != null && c.target)) return;
2501
+ const _ = c.target, A = _.selectionStart;
2498
2502
  if (A === null) return;
2499
- const b = A - 1, w = d.target.value, B = v(), H = [...w.matchAll(B)].map((z) => z.index);
2500
- d.target.value = w.replace(B, ""), H.length > 0 && b >= 0 && _.setSelectionRange(b, b);
2501
- }, I = (d) => {
2502
- if (!(d != null && d.target)) return;
2503
- const _ = d.target.value, A = d.target, b = A.selectionStart;
2504
- if (b === null) return;
2505
- let w = b - 1;
2506
- const B = V(), H = [..._.matchAll(B)].map((K) => K.index), z = _.split("");
2507
- H.length > 1 && w >= 0 && (z[w] = ""), d.target.value = z.join(""), H.length > 1 && w >= 0 && A.setSelectionRange(w, w);
2503
+ const w = A - 1, y = c.target.value, k = v(), H = [...y.matchAll(k)].map((z) => z.index);
2504
+ c.target.value = y.replace(k, ""), H.length > 0 && w >= 0 && _.setSelectionRange(w, w);
2505
+ }, B = (c) => {
2506
+ if (!(c != null && c.target)) return;
2507
+ const _ = c.target.value, A = c.target, w = A.selectionStart;
2508
+ if (w === null) return;
2509
+ let y = w - 1;
2510
+ const k = V(), H = [..._.matchAll(k)].map((K) => K.index), z = _.split("");
2511
+ H.length > 1 && y >= 0 && (z[y] = ""), c.target.value = z.join(""), H.length > 1 && y >= 0 && A.setSelectionRange(y, y);
2508
2512
  }, V = () => {
2509
- let d = "";
2510
- return t.allowDecimal && (d += "."), t.allowComma && (d += ","), new RegExp(`[${d}]`, "g");
2513
+ let c = "";
2514
+ return t.allowDecimal && (c += "."), t.allowComma && (c += ","), new RegExp(`[${c}]`, "g");
2511
2515
  }, v = () => {
2512
- let d = "0-9";
2513
- return t.allowDecimal && (d += "\\."), t.allowComma && (d += ","), new RegExp(`[^${d}]+`, "g");
2514
- }, E = (d) => {
2515
- n("keyup", d);
2516
- }, x = (d) => {
2517
- d.key === "Enter" && n("keypress", d), u.value && h(d.key) && d.preventDefault();
2518
- }, k = (d) => {
2519
- n("focus", d);
2520
- }, M = (d) => {
2521
- n("blur", d);
2522
- }, D = (d) => {
2523
- n("click", d);
2524
- }, U = (d) => {
2525
- var b;
2526
- const _ = d;
2527
- u.value && (f(_), I(_)), y(_);
2528
- const A = ((b = _ == null ? void 0 : _.target) == null ? void 0 : b.value) || "";
2516
+ let c = "0-9";
2517
+ return t.allowDecimal && (c += "\\."), t.allowComma && (c += ","), new RegExp(`[^${c}]+`, "g");
2518
+ }, E = (c) => {
2519
+ n("keyup", c);
2520
+ }, x = (c) => {
2521
+ c.key === "Enter" && n("keypress", c), u.value && h(c.key) && c.preventDefault();
2522
+ }, M = (c) => {
2523
+ n("focus", c);
2524
+ }, I = (c) => {
2525
+ n("blur", c);
2526
+ }, D = (c) => {
2527
+ n("click", c);
2528
+ }, U = (c) => {
2529
+ var w;
2530
+ const _ = c;
2531
+ u.value && (f(_), B(_)), g(_);
2532
+ const A = ((w = _ == null ? void 0 : _.target) == null ? void 0 : w.value) || "";
2529
2533
  l.value = A, n("input", A), n("update:modelValue", A);
2530
- }, O = (d) => {
2531
- var b;
2532
- const _ = d;
2533
- u.value && (f(_), I(_)), y(_);
2534
- const A = ((b = _ == null ? void 0 : _.target) == null ? void 0 : b.value) || "";
2534
+ }, O = (c) => {
2535
+ var w;
2536
+ const _ = c;
2537
+ u.value && (f(_), B(_)), g(_);
2538
+ const A = ((w = _ == null ? void 0 : _.target) == null ? void 0 : w.value) || "";
2535
2539
  l.value = A, n("change", A), n("update:modelValue", A);
2536
- }, W = (d) => {
2540
+ }, W = (c) => {
2537
2541
  var Ze, he;
2538
2542
  if (t.maxCharacterLength && typeof t.maxCharacterLength == "number") {
2539
- const X = d.target, le = X.selectionStart, ve = X.selectionEnd;
2543
+ const X = c.target, le = X.selectionStart, ve = X.selectionEnd;
2540
2544
  if (le === null || ve === null) return;
2541
- const We = X.value, ge = ((Ze = d.clipboardData) == null ? void 0 : Ze.getData("text/plain")) || "", _t = We.length, Be = ve - le, Ie = t.maxCharacterLength - _t + Be;
2545
+ const We = X.value, ge = ((Ze = c.clipboardData) == null ? void 0 : Ze.getData("text/plain")) || "", _t = We.length, Be = ve - le, Ie = t.maxCharacterLength - _t + Be;
2542
2546
  if (Ie <= 0) {
2543
- d.preventDefault();
2547
+ c.preventDefault();
2544
2548
  return;
2545
2549
  }
2546
2550
  const Fe = ge.slice(0, Ie);
2547
2551
  if (Fe !== ge) {
2548
- d.preventDefault();
2552
+ c.preventDefault();
2549
2553
  const $e = We.slice(0, le) + Fe + We.slice(ve);
2550
2554
  X.value = $e;
2551
2555
  const It = le + Fe.length;
@@ -2555,107 +2559,107 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2555
2559
  }
2556
2560
  if (!u.value)
2557
2561
  return;
2558
- d.preventDefault();
2559
- const _ = d.target, A = _.selectionStart, b = _.selectionEnd;
2560
- if (A === null || b === null) return;
2561
- const w = _.value, B = w.includes(".") || w.includes(","), H = ((he = d.clipboardData) == null ? void 0 : he.getData("text/plain")) || "", z = V(), K = v();
2562
+ c.preventDefault();
2563
+ const _ = c.target, A = _.selectionStart, w = _.selectionEnd;
2564
+ if (A === null || w === null) return;
2565
+ const y = _.value, k = y.includes(".") || y.includes(","), H = ((he = c.clipboardData) == null ? void 0 : he.getData("text/plain")) || "", z = V(), K = v();
2562
2566
  let Y = H.replace(K, "");
2563
2567
  const dt = [...Y.matchAll(z)], me = [];
2564
2568
  dt.forEach((X) => {
2565
2569
  X.index !== void 0 && me.push(X.index);
2566
2570
  });
2567
2571
  const ke = Y.split("");
2568
- B || me.shift(), me.forEach((X) => {
2572
+ k || me.shift(), me.forEach((X) => {
2569
2573
  ke[X] = "";
2570
2574
  }), Y = ke.join("");
2571
- const Xe = A + Y.length, Re = w.slice(0, A) + Y + w.slice(b);
2575
+ const Xe = A + Y.length, Re = y.slice(0, A) + Y + y.slice(w);
2572
2576
  _.value = Re, _.setSelectionRange(Xe, Xe), l.value = Re, n("input", Re), n("update:modelValue", Re);
2573
- }, T = (d) => {
2574
- n("leftIconClick", d);
2575
- }, P = (d) => {
2576
- n("rightIconClick", d);
2577
+ }, T = (c) => {
2578
+ n("leftIconClick", c);
2579
+ }, P = (c) => {
2580
+ n("rightIconClick", c);
2577
2581
  }, q = () => {
2578
2582
  wt(() => {
2579
- var d;
2580
- (d = G.value) == null || d.focus();
2583
+ var c;
2584
+ (c = G.value) == null || c.focus();
2581
2585
  });
2582
2586
  }, G = L(null), ee = L(null);
2583
2587
  return Q(
2584
2588
  () => t.modelValue,
2585
- (d) => {
2586
- l.value = d;
2589
+ (c) => {
2590
+ l.value = c;
2587
2591
  },
2588
2592
  { immediate: !0 }
2589
2593
  ), Q(
2590
2594
  () => t.autoFocus,
2591
- (d) => {
2592
- d && q();
2595
+ (c) => {
2596
+ c && q();
2593
2597
  }
2594
2598
  ), Ne(() => {
2595
2599
  t.autoFocus && q();
2596
- }), (d, _) => (m(), g("fieldset", {
2600
+ }), (c, _) => (m(), b("fieldset", {
2597
2601
  ref_key: "componentRoot",
2598
2602
  ref: ee,
2599
2603
  class: C(["in-basic-text-input-wrapper qa-text-input", [
2600
- `in-basic-text-input-wrapper__${d.states}`,
2601
- `in-basic-text-input-wrapper__${d.theme}`,
2602
- { "in-basic-text-input-wrapper__disable": d.disabledStatus }
2604
+ `in-basic-text-input-wrapper__${c.states}`,
2605
+ `in-basic-text-input-wrapper__${c.theme}`,
2606
+ { "in-basic-text-input-wrapper__disable": c.disabledStatus }
2603
2607
  ]])
2604
2608
  }, [
2605
- d.labelStatus ? (m(), g("label", nl, [
2609
+ c.labelStatus ? (m(), b("label", nl, [
2606
2610
  S("span", { innerHTML: i.value }, null, 8, ol)
2607
2611
  ])) : $("", !0),
2608
2612
  S("div", al, [
2609
- d.$slots.leftSlot ? (m(), g("div", ll, [
2610
- oe(d.$slots, "leftSlot", {}, void 0, !0)
2613
+ c.$slots.leftSlot ? (m(), b("div", ll, [
2614
+ oe(c.$slots, "leftSlot", {}, void 0, !0)
2611
2615
  ])) : $("", !0),
2612
- d.leftIconStatus ? (m(), J(p(ae), {
2616
+ c.leftIconStatus ? (m(), J(p(ae), {
2613
2617
  key: 1,
2614
2618
  class: "in-basic-text-input-wrapper__icon-left",
2615
- name: d.leftIconName,
2619
+ name: c.leftIconName,
2616
2620
  size: 24,
2617
2621
  onClick: T
2618
2622
  }, null, 8, ["name"])) : $("", !0),
2619
2623
  S("input", {
2620
- id: d.id,
2624
+ id: c.id,
2621
2625
  ref_key: "textInput",
2622
2626
  ref: G,
2623
2627
  class: "in-basic-text-input-wrapper__input",
2624
- name: d.name,
2628
+ name: c.name,
2625
2629
  value: l.value,
2626
- placeholder: d.placeholderText,
2627
- disabled: d.disabledStatus,
2628
- readonly: d.readonly,
2629
- autocomplete: d.autoComplete,
2630
- maxlength: typeof d.maxCharacterLength == "number" ? d.maxCharacterLength : void 0,
2631
- min: typeof d.minValue == "number" ? d.minValue : void 0,
2632
- max: typeof d.maxValue == "number" ? d.maxValue : void 0,
2633
- type: d.type,
2630
+ placeholder: c.placeholderText,
2631
+ disabled: c.disabledStatus,
2632
+ readonly: c.readonly,
2633
+ autocomplete: c.autoComplete,
2634
+ maxlength: typeof c.maxCharacterLength == "number" ? c.maxCharacterLength : void 0,
2635
+ min: typeof c.minValue == "number" ? c.minValue : void 0,
2636
+ max: typeof c.maxValue == "number" ? c.maxValue : void 0,
2637
+ type: c.type,
2634
2638
  onChange: O,
2635
- onFocus: k,
2636
- onBlur: M,
2639
+ onFocus: M,
2640
+ onBlur: I,
2637
2641
  onKeyup: E,
2638
2642
  onKeypress: x,
2639
2643
  onClick: D,
2640
2644
  onInput: U,
2641
2645
  onPaste: W
2642
2646
  }, null, 40, sl),
2643
- d.suffixTextStatus && d.suffixText ? (m(), g("span", rl, N(d.suffixText), 1)) : $("", !0),
2644
- d.rightIconStatus ? (m(), J(p(ae), {
2647
+ c.suffixTextStatus && c.suffixText ? (m(), b("span", rl, N(c.suffixText), 1)) : $("", !0),
2648
+ c.rightIconStatus ? (m(), J(p(ae), {
2645
2649
  key: 3,
2646
2650
  class: "in-basic-text-input-wrapper__icon-right",
2647
- name: d.rightIconName,
2651
+ name: c.rightIconName,
2648
2652
  size: 24,
2649
2653
  onClick: P
2650
2654
  }, null, 8, ["name"])) : $("", !0),
2651
- d.$slots.rightSlot ? (m(), g("div", il, [
2652
- oe(d.$slots, "rightSlot", {}, void 0, !0)
2655
+ c.$slots.rightSlot ? (m(), b("div", il, [
2656
+ oe(c.$slots, "rightSlot", {}, void 0, !0)
2653
2657
  ])) : $("", !0)
2654
2658
  ]),
2655
- r.value ? (m(), g("div", ul, [
2656
- d.helperMessageStatus || a.value ? (m(), g("div", cl, [
2657
- s.value ? (m(), g("p", dl, N(d.helperMessage), 1)) : $("", !0),
2658
- a.value && !d.disabledStatus ? (m(), g("p", _l, N(d.stateMessage), 1)) : $("", !0)
2659
+ r.value ? (m(), b("div", ul, [
2660
+ c.helperMessageStatus || a.value ? (m(), b("div", cl, [
2661
+ s.value ? (m(), b("p", dl, N(c.helperMessage), 1)) : $("", !0),
2662
+ a.value && !c.disabledStatus ? (m(), b("p", _l, N(c.stateMessage), 1)) : $("", !0)
2659
2663
  ])) : $("", !0)
2660
2664
  ])) : $("", !0)
2661
2665
  ], 2));
@@ -2674,7 +2678,7 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2674
2678
  const n = [];
2675
2679
  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(" ");
2676
2680
  });
2677
- return (n, l) => (m(), g("div", {
2681
+ return (n, l) => (m(), b("div", {
2678
2682
  class: C(["in-box", t.value])
2679
2683
  }, [
2680
2684
  oe(n.$slots, "default", {}, void 0, !0)
@@ -2691,29 +2695,29 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2691
2695
  const n = qt, l = e, i = t, s = L(null), a = L(null), r = L(l.modelValue);
2692
2696
  Q(
2693
2697
  () => l.modelValue,
2694
- (y) => {
2695
- r.value = y;
2698
+ (g) => {
2699
+ r.value = g;
2696
2700
  }
2697
2701
  );
2698
2702
  const u = () => {
2699
2703
  r.value = !r.value, i("update:modelValue", r.value), r.value ? i("open") : i("close");
2700
- }, c = () => {
2704
+ }, d = () => {
2701
2705
  r.value = !1, i("update:modelValue", !1), i("close");
2702
- }, h = L({ handler: c, exclude: [s, a] });
2706
+ }, h = L({ handler: d, exclude: [s, a] });
2703
2707
  return o({
2704
2708
  isOpen: r,
2705
2709
  toggle: u,
2706
- close: c
2707
- }), (y, f) => (m(), g("div", {
2710
+ close: d
2711
+ }), (g, f) => (m(), b("div", {
2708
2712
  ref_key: "popoverRef",
2709
2713
  ref: s,
2710
2714
  class: "popover"
2711
2715
  }, [
2712
- oe(y.$slots, "trigger", {
2716
+ oe(g.$slots, "trigger", {
2713
2717
  isOpen: r.value,
2714
2718
  toggle: u
2715
2719
  }, void 0, !0),
2716
- et((m(), g("div", {
2720
+ et((m(), b("div", {
2717
2721
  ref_key: "contentRef",
2718
2722
  ref: a,
2719
2723
  class: C(["popover__content", `popover__content--${l.align}`]),
@@ -2722,7 +2726,7 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2722
2726
  }, [
2723
2727
  ce(p(ml), null, {
2724
2728
  default: tt(() => [
2725
- oe(y.$slots, "default", {}, void 0, !0)
2729
+ oe(g.$slots, "default", {}, void 0, !0)
2726
2730
  ]),
2727
2731
  _: 3
2728
2732
  })
@@ -2753,57 +2757,57 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2753
2757
  un((x) => ({
2754
2758
  "685c21b4": `${n.menuHeight}px`
2755
2759
  }));
2756
- const n = e, l = t, i = L(!1), s = L(null), a = L(""), r = L(null), u = L([...n.items]), c = L([...n.items]), h = () => {
2760
+ const n = e, l = t, i = L(!1), s = L(null), a = L(""), r = L(null), u = L([...n.items]), d = L([...n.items]), h = () => {
2757
2761
  i.value = !i.value;
2758
- }, y = () => {
2759
- r.value = null, a.value = "", u.value = [...c.value];
2762
+ }, g = () => {
2763
+ r.value = null, a.value = "", u.value = [...d.value];
2760
2764
  };
2761
2765
  Q(
2762
2766
  () => i.value,
2763
2767
  (x) => {
2764
- x || y();
2768
+ x || g();
2765
2769
  }
2766
2770
  );
2767
2771
  const f = () => {
2768
- i.value = !1, y();
2769
- }, I = (x) => {
2772
+ i.value = !1, g();
2773
+ }, B = (x) => {
2770
2774
  s.value = x, l("select-item", x), l("update:modelValue", x.value), f();
2771
2775
  }, V = () => {
2772
- const x = a.value.trim(), k = n.validateAddItem(x, c.value);
2773
- if (k) {
2774
- r.value = k, l("add-error", k);
2776
+ const x = a.value.trim(), M = n.validateAddItem(x, d.value);
2777
+ if (M) {
2778
+ r.value = M, l("add-error", M);
2775
2779
  return;
2776
2780
  }
2777
- const M = {
2781
+ const I = {
2778
2782
  text: x,
2779
2783
  value: x
2780
2784
  };
2781
- c.value.push(M), y(), l("item-added", M);
2785
+ d.value.push(I), g(), l("item-added", I);
2782
2786
  }, v = (x) => {
2783
2787
  a.value = String(x);
2784
- const k = Nt(c.value, "text", a.value);
2785
- u.value = k;
2788
+ const M = Nt(d.value, "text", a.value);
2789
+ u.value = M;
2786
2790
  }, E = () => {
2787
2791
  r.value = null;
2788
2792
  };
2789
2793
  return Ne(() => {
2790
2794
  if (n.modelValue) {
2791
- const x = c.value.find((k) => k.value === n.modelValue);
2795
+ const x = d.value.find((M) => M.value === n.modelValue);
2792
2796
  x && (s.value = x);
2793
2797
  }
2794
2798
  }), Q(
2795
2799
  () => n.modelValue,
2796
2800
  (x) => {
2797
- var k;
2798
- if (((k = s.value) == null ? void 0 : k.value) !== x) {
2799
- const M = c.value.find((D) => D.value === x);
2800
- M && (s.value = M);
2801
+ var M;
2802
+ if (((M = s.value) == null ? void 0 : M.value) !== x) {
2803
+ const I = d.value.find((D) => D.value === x);
2804
+ I && (s.value = I);
2801
2805
  }
2802
2806
  }
2803
2807
  ), Q(
2804
2808
  () => n.items,
2805
2809
  (x) => {
2806
- c.value = [...x], u.value = [...x];
2810
+ d.value = [...x], u.value = [...x];
2807
2811
  },
2808
2812
  { deep: !0 }
2809
2813
  ), o({
@@ -2811,28 +2815,28 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2811
2815
  toggleMenu: h,
2812
2816
  closeMenu: f,
2813
2817
  selectedItem: s
2814
- }), (x, k) => (m(), J(p(vl), {
2818
+ }), (x, M) => (m(), J(p(vl), {
2815
2819
  modelValue: i.value,
2816
- "onUpdate:modelValue": k[2] || (k[2] = (M) => i.value = M)
2820
+ "onUpdate:modelValue": M[2] || (M[2] = (I) => i.value = I)
2817
2821
  }, {
2818
- trigger: tt(({ isOpen: M }) => [
2822
+ trigger: tt(({ isOpen: I }) => [
2819
2823
  oe(x.$slots, "trigger", {
2820
- isOpen: M,
2824
+ isOpen: I,
2821
2825
  toggle: h
2822
2826
  }, void 0, !0)
2823
2827
  ]),
2824
2828
  default: tt(() => [
2825
2829
  S("div", {
2826
2830
  class: "in-dropdown-menu__menu",
2827
- onClick: k[1] || (k[1] = st(() => {
2831
+ onClick: M[1] || (M[1] = st(() => {
2828
2832
  }, ["prevent"]))
2829
2833
  }, [
2830
- x.searchable ? (m(), g("div", gl, [
2834
+ x.searchable ? (m(), b("div", gl, [
2831
2835
  ce(en, {
2832
2836
  id: "dropdown-search-input",
2833
2837
  name: "dropdown-search-input",
2834
2838
  modelValue: a.value,
2835
- "onUpdate:modelValue": k[0] || (k[0] = (M) => a.value = M),
2839
+ "onUpdate:modelValue": M[0] || (M[0] = (I) => a.value = I),
2836
2840
  "placeholder-text": x.searchPlaceholder,
2837
2841
  "label-status": !1,
2838
2842
  "helper-message-status": !1,
@@ -2854,41 +2858,41 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2854
2858
  }, null, 8, ["label"])) : $("", !0)
2855
2859
  ])) : $("", !0),
2856
2860
  S("ul", bl, [
2857
- (m(!0), g(ue, null, Ve(u.value, (M, D) => {
2861
+ (m(!0), b(ue, null, Ve(u.value, (I, D) => {
2858
2862
  var U, O;
2859
- return m(), g("li", {
2860
- key: `${M.value}-${D}`,
2863
+ return m(), b("li", {
2864
+ key: `${I.value}-${D}`,
2861
2865
  class: "in-dropdown-menu__item"
2862
2866
  }, [
2863
- x.$slots.item ? (m(), g("div", {
2867
+ x.$slots.item ? (m(), b("div", {
2864
2868
  key: 0,
2865
2869
  class: C([
2866
2870
  "in-dropdown-menu__item-content",
2867
2871
  {
2868
- "in-dropdown-menu__item--active": s.value && M.value === s.value.value
2872
+ "in-dropdown-menu__item--active": s.value && I.value === s.value.value
2869
2873
  }
2870
2874
  ]),
2871
- onClick: (W) => I(M)
2875
+ onClick: (W) => B(I)
2872
2876
  }, [
2873
2877
  oe(x.$slots, "item", {
2874
- item: M,
2875
- isSelected: ((U = s.value) == null ? void 0 : U.value) === M.value
2878
+ item: I,
2879
+ isSelected: ((U = s.value) == null ? void 0 : U.value) === I.value
2876
2880
  }, void 0, !0)
2877
2881
  ], 10, wl)) : (m(), J(p(nt), {
2878
2882
  key: 1,
2879
2883
  class: C([
2880
2884
  "in-dropdown-menu__item-button",
2881
2885
  {
2882
- "in-dropdown-menu__item-button--active": s.value && M.value === s.value.value
2886
+ "in-dropdown-menu__item-button--active": s.value && I.value === s.value.value
2883
2887
  }
2884
2888
  ]),
2885
2889
  variant: "ghost",
2886
2890
  color: "secondary",
2887
2891
  size: "small",
2888
2892
  fill: "",
2889
- label: M.text,
2890
- "right-icon-name": n.showSelectedIcon && ((O = s.value) == null ? void 0 : O.value) === M.value ? "line-check-natural" : void 0,
2891
- onClick: (W) => I(M)
2893
+ label: I.text,
2894
+ "right-icon-name": n.showSelectedIcon && ((O = s.value) == null ? void 0 : O.value) === I.value ? "line-check-natural" : void 0,
2895
+ onClick: (W) => B(I)
2892
2896
  }, null, 8, ["class", "label", "right-icon-name", "onClick"]))
2893
2897
  ]);
2894
2898
  }), 128))
@@ -2913,8 +2917,8 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2913
2917
  r.preventDefault();
2914
2918
  return;
2915
2919
  }
2916
- const c = r.target.checked;
2917
- n("click", c), n("update:modelValue", c);
2920
+ const d = r.target.checked;
2921
+ n("click", d), n("update:modelValue", d);
2918
2922
  }, a = (r) => {
2919
2923
  if (t.disabled) {
2920
2924
  r.preventDefault();
@@ -2922,7 +2926,7 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2922
2926
  }
2923
2927
  l.value && !l.value.disabled && (l.value.checked = !l.value.checked, l.value.dispatchEvent(new Event("change", { bubbles: !0 })));
2924
2928
  };
2925
- return (r, u) => (m(), g("fieldset", {
2929
+ return (r, u) => (m(), b("fieldset", {
2926
2930
  class: C(["in-form-item in-toggle-wrapper", [
2927
2931
  {
2928
2932
  "in-toggle-wrapper_disable": r.disabled,
@@ -2974,18 +2978,18 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
2974
2978
  }
2975
2979
  return !1;
2976
2980
  });
2977
- return (n, l) => (m(), g("div", {
2981
+ return (n, l) => (m(), b("div", {
2978
2982
  class: "color-swatch",
2979
2983
  onClick: l[0] || (l[0] = (i) => n.$emit("click"))
2980
2984
  }, [
2981
- n.isTransparent || t.value ? (m(), g("div", Il, [
2985
+ n.isTransparent || t.value ? (m(), b("div", Il, [
2982
2986
  l[1] || (l[1] = S("div", { class: "color-swatch__checkerboard" }, null, -1)),
2983
- t.value ? (m(), g("div", {
2987
+ t.value ? (m(), b("div", {
2984
2988
  key: 0,
2985
2989
  class: "color-swatch__color-overlay",
2986
2990
  style: ne({ background: n.color })
2987
2991
  }, null, 4)) : $("", !0)
2988
- ])) : (m(), g("div", {
2992
+ ])) : (m(), b("div", {
2989
2993
  key: 1,
2990
2994
  class: "color-swatch__color",
2991
2995
  style: ne({ background: n.color })
@@ -3030,34 +3034,34 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
3030
3034
  },
3031
3035
  emits: ["color-change", "close"],
3032
3036
  setup(e, { emit: o }) {
3033
- const t = e, n = o, l = L(0), i = L(0), s = L(0.4), a = L(1), r = L("666666"), u = L([]), c = L(!1), h = L(null), y = L(null), f = L(null), I = R(() => {
3034
- const _ = t.presetColors || [], A = [], b = 8;
3037
+ const t = e, n = o, l = L(0), i = L(0), s = L(0.4), a = L(1), r = L("666666"), u = L([]), d = L(!1), h = L(null), g = L(null), f = L(null), B = R(() => {
3038
+ const _ = t.presetColors || [], A = [], w = 8;
3035
3039
  if (_.length === 0)
3036
3040
  return A;
3037
- const w = _.slice(0, b - 1);
3038
- A.push(w);
3039
- for (let B = b - 1; B < _.length; B += b)
3040
- A.push(_.slice(B, B + b));
3041
+ const y = _.slice(0, w - 1);
3042
+ A.push(y);
3043
+ for (let k = w - 1; k < _.length; k += w)
3044
+ A.push(_.slice(k, k + w));
3041
3045
  return A;
3042
3046
  }), V = R(() => {
3043
3047
  const _ = l.value, A = 1 - Math.abs(_ * 6 % 2 - 1);
3044
- let b = 0, w = 0, B = 0;
3045
- return _ < 1 / 6 ? (b = 1, w = A) : _ < 2 / 6 ? (b = A, w = 1) : _ < 3 / 6 ? (w = 1, B = A) : _ < 4 / 6 ? (w = A, B = 1) : _ < 5 / 6 ? (b = A, B = 1) : (b = 1, B = A), `rgb(${Math.round(b * 255)}, ${Math.round(w * 255)}, ${Math.round(B * 255)})`;
3048
+ let w = 0, y = 0, k = 0;
3049
+ return _ < 1 / 6 ? (w = 1, y = A) : _ < 2 / 6 ? (w = A, y = 1) : _ < 3 / 6 ? (y = 1, k = A) : _ < 4 / 6 ? (y = A, k = 1) : _ < 5 / 6 ? (w = A, k = 1) : (w = 1, k = A), `rgb(${Math.round(w * 255)}, ${Math.round(y * 255)}, ${Math.round(k * 255)})`;
3046
3050
  }), v = R(() => {
3047
- const _ = l.value, A = i.value, b = s.value, w = b * A, B = w * (1 - Math.abs(_ * 6 % 2 - 1)), H = b - w;
3051
+ const _ = l.value, A = i.value, w = s.value, y = w * A, k = y * (1 - Math.abs(_ * 6 % 2 - 1)), H = w - y;
3048
3052
  let z = 0, K = 0, Y = 0;
3049
- return _ < 1 / 6 ? (z = w, K = B) : _ < 2 / 6 ? (z = B, K = w) : _ < 3 / 6 ? (K = w, Y = B) : _ < 4 / 6 ? (K = B, Y = w) : _ < 5 / 6 ? (z = B, Y = w) : (z = w, Y = B), z = Math.round((z + H) * 255), K = Math.round((K + H) * 255), Y = Math.round((Y + H) * 255), `rgb(${z}, ${K}, ${Y})`;
3053
+ return _ < 1 / 6 ? (z = y, K = k) : _ < 2 / 6 ? (z = k, K = y) : _ < 3 / 6 ? (K = y, Y = k) : _ < 4 / 6 ? (K = k, Y = y) : _ < 5 / 6 ? (z = k, Y = y) : (z = y, Y = k), z = Math.round((z + H) * 255), K = Math.round((K + H) * 255), Y = Math.round((Y + H) * 255), `rgb(${z}, ${K}, ${Y})`;
3050
3054
  }), E = R(() => {
3051
3055
  const _ = v.value.match(/\d+/g);
3052
3056
  return _ ? a.value < 1 ? `rgba(${_[0]}, ${_[1]}, ${_[2]}, ${a.value})` : `rgb(${_[0]}, ${_[1]}, ${_[2]})` : v.value;
3053
3057
  });
3054
3058
  Q([l, i, s, a], () => {
3055
- x(), c.value || n("color-change", E.value);
3059
+ x(), d.value || n("color-change", E.value);
3056
3060
  }), Q(
3057
3061
  () => t.color,
3058
3062
  (_) => {
3059
- _ && (c.value = !0, T(_), setTimeout(() => {
3060
- c.value = !1;
3063
+ _ && (d.value = !0, T(_), setTimeout(() => {
3064
+ d.value = !1;
3061
3065
  }, 0));
3062
3066
  },
3063
3067
  { immediate: !0 }
@@ -3070,74 +3074,74 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
3070
3074
  const _ = v.value.match(/\d+/g);
3071
3075
  if (!_)
3072
3076
  return;
3073
- const A = _.map((b) => parseInt(b).toString(16).padStart(2, "0")).join("").toUpperCase();
3077
+ const A = _.map((w) => parseInt(w).toString(16).padStart(2, "0")).join("").toUpperCase();
3074
3078
  if (t.showOpacityInHex) {
3075
- const b = Math.round(a.value * 255).toString(16).padStart(2, "0").toUpperCase();
3076
- r.value = A + b;
3079
+ const w = Math.round(a.value * 255).toString(16).padStart(2, "0").toUpperCase();
3080
+ r.value = A + w;
3077
3081
  } else
3078
3082
  r.value = A;
3079
3083
  }
3080
- function k(_) {
3081
- const A = (B) => {
3084
+ function M(_) {
3085
+ const A = (k) => {
3082
3086
  if (!h.value)
3083
3087
  return;
3084
- const H = h.value.getBoundingClientRect(), z = Math.max(0, Math.min(1, (B.clientX - H.left) / H.width)), K = Math.max(0, Math.min(1, (B.clientY - H.top) / H.height));
3088
+ const H = h.value.getBoundingClientRect(), z = Math.max(0, Math.min(1, (k.clientX - H.left) / H.width)), K = Math.max(0, Math.min(1, (k.clientY - H.top) / H.height));
3085
3089
  i.value = z, s.value = 1 - K;
3086
3090
  };
3087
3091
  A(_);
3088
- const b = (B) => {
3089
- A(B);
3090
- }, w = () => {
3091
- document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", w);
3092
+ const w = (k) => {
3093
+ A(k);
3094
+ }, y = () => {
3095
+ document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", y);
3092
3096
  };
3093
- document.addEventListener("mousemove", b), document.addEventListener("mouseup", w);
3097
+ document.addEventListener("mousemove", w), document.addEventListener("mouseup", y);
3094
3098
  }
3095
- function M(_) {
3096
- const A = (B) => {
3097
- if (!y.value)
3099
+ function I(_) {
3100
+ const A = (k) => {
3101
+ if (!g.value)
3098
3102
  return;
3099
- const H = y.value.getBoundingClientRect(), z = Math.max(0, Math.min(1, (B.clientY - H.top) / H.height));
3103
+ const H = g.value.getBoundingClientRect(), z = Math.max(0, Math.min(1, (k.clientY - H.top) / H.height));
3100
3104
  l.value = z;
3101
3105
  };
3102
3106
  A(_);
3103
- const b = (B) => {
3104
- A(B);
3105
- }, w = () => {
3106
- document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", w);
3107
+ const w = (k) => {
3108
+ A(k);
3109
+ }, y = () => {
3110
+ document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", y);
3107
3111
  };
3108
- document.addEventListener("mousemove", b), document.addEventListener("mouseup", w);
3112
+ document.addEventListener("mousemove", w), document.addEventListener("mouseup", y);
3109
3113
  }
3110
3114
  function D(_) {
3111
- const A = (B) => {
3115
+ const A = (k) => {
3112
3116
  if (!f.value)
3113
3117
  return;
3114
- const H = f.value.getBoundingClientRect(), z = Math.max(0, Math.min(1, (B.clientX - H.left) / H.width));
3118
+ const H = f.value.getBoundingClientRect(), z = Math.max(0, Math.min(1, (k.clientX - H.left) / H.width));
3115
3119
  a.value = 1 - z;
3116
3120
  };
3117
3121
  A(_);
3118
- const b = (B) => {
3119
- A(B);
3120
- }, w = () => {
3121
- document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", w);
3122
+ const w = (k) => {
3123
+ A(k);
3124
+ }, y = () => {
3125
+ document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", y);
3122
3126
  };
3123
- document.addEventListener("mousemove", b), document.addEventListener("mouseup", w);
3127
+ document.addEventListener("mousemove", w), document.addEventListener("mouseup", y);
3124
3128
  }
3125
3129
  function U(_) {
3126
- const A = t.showOpacityInHex ? 8 : 6, b = String(_).replace(/[^0-9A-Fa-f]/g, "").slice(0, A);
3127
- r.value = b, t.showOpacityInHex ? (b.length === 6 || b.length === 8) && T(b) : b.length === 6 && T(b);
3130
+ const A = t.showOpacityInHex ? 8 : 6, w = String(_).replace(/[^0-9A-Fa-f]/g, "").slice(0, A);
3131
+ r.value = w, t.showOpacityInHex ? (w.length === 6 || w.length === 8) && T(w) : w.length === 6 && T(w);
3128
3132
  }
3129
3133
  function O(_) {
3130
- var B;
3131
- const A = ((B = _.clipboardData) == null ? void 0 : B.getData("text")) || "", b = t.showOpacityInHex ? 8 : 6, w = A.replace(/^#/, "").replace(/[^0-9A-Fa-f]/g, "").slice(0, b);
3132
- t.showOpacityInHex ? w.length === 6 || w.length === 8 ? (r.value = w, T(w), _.preventDefault()) : w.length > 0 && (r.value = w, _.preventDefault()) : w.length === 6 ? (r.value = w, T(w), _.preventDefault()) : w.length > 0 && (r.value = w, _.preventDefault());
3134
+ var k;
3135
+ const A = ((k = _.clipboardData) == null ? void 0 : k.getData("text")) || "", w = t.showOpacityInHex ? 8 : 6, y = A.replace(/^#/, "").replace(/[^0-9A-Fa-f]/g, "").slice(0, w);
3136
+ t.showOpacityInHex ? y.length === 6 || y.length === 8 ? (r.value = y, T(y), _.preventDefault()) : y.length > 0 && (r.value = y, _.preventDefault()) : y.length === 6 ? (r.value = y, T(y), _.preventDefault()) : y.length > 0 && (r.value = y, _.preventDefault());
3133
3137
  }
3134
3138
  function W() {
3135
3139
  const _ = t.showOpacityInHex ? 8 : 6;
3136
3140
  r.value.length !== _ && x();
3137
3141
  }
3138
3142
  function T(_) {
3139
- const A = _.startsWith("#") ? _.slice(1) : _, b = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(A), w = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(A), B = w || b;
3140
- if (!B) {
3143
+ const A = _.startsWith("#") ? _.slice(1) : _, w = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(A), y = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(A), k = y || w;
3144
+ if (!k) {
3141
3145
  const he = /rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/.exec(_);
3142
3146
  if (he) {
3143
3147
  const X = parseInt(he[1], 10) / 255, le = parseInt(he[2], 10) / 255, ve = parseInt(he[3], 10) / 255, We = he[4] ? parseFloat(he[4]) : 1, ge = Math.max(X, le, ve), _t = Math.min(X, le, ve), Be = ge - _t;
@@ -3149,8 +3153,8 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
3149
3153
  }
3150
3154
  return;
3151
3155
  }
3152
- const H = parseInt(B[1], 16) / 255, z = parseInt(B[2], 16) / 255, K = parseInt(B[3], 16) / 255;
3153
- w && B[4] ? a.value = parseInt(B[4], 16) / 255 : a.value = 1;
3156
+ const H = parseInt(k[1], 16) / 255, z = parseInt(k[2], 16) / 255, K = parseInt(k[3], 16) / 255;
3157
+ y && k[4] ? a.value = parseInt(k[4], 16) / 255 : a.value = 1;
3154
3158
  const Y = Math.max(H, z, K), dt = Math.min(H, z, K), me = Y - dt;
3155
3159
  let ke = 0;
3156
3160
  me !== 0 && (Y === H ? ke = ((z - K) / me + (z < K ? 6 : 0)) / 6 : Y === z ? ke = ((K - H) / me + 2) / 6 : ke = ((H - z) / me + 4) / 6);
@@ -3166,8 +3170,8 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
3166
3170
  const _ = v.value.match(/\d+/g);
3167
3171
  if (!_)
3168
3172
  return "ffffff";
3169
- const A = _.map((w) => parseInt(w).toString(16).padStart(2, "0")).join("").toUpperCase(), b = Math.round(a.value * 255).toString(16).padStart(2, "0").toUpperCase();
3170
- return `#${A}${b}`;
3173
+ const A = _.map((y) => parseInt(y).toString(16).padStart(2, "0")).join("").toUpperCase(), w = Math.round(a.value * 255).toString(16).padStart(2, "0").toUpperCase();
3174
+ return `#${A}${w}`;
3171
3175
  }
3172
3176
  function G() {
3173
3177
  const _ = q();
@@ -3176,15 +3180,15 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
3176
3180
  function ee(_) {
3177
3181
  T(_);
3178
3182
  }
3179
- function d() {
3183
+ function c() {
3180
3184
  r.value = "", a.value = 0, l.value = 0, i.value = 0, s.value = 0.4, n("color-change", "transparent");
3181
3185
  }
3182
- return (_, A) => (m(), g("div", Vl, [
3186
+ return (_, A) => (m(), b("div", Vl, [
3183
3187
  S("div", Ml, [
3184
3188
  S("div", Tl, [
3185
3189
  S("h3", El, N(_.title), 1)
3186
3190
  ]),
3187
- _.$slots.tabs ? (m(), g("div", Ll, [
3191
+ _.$slots.tabs ? (m(), b("div", Ll, [
3188
3192
  oe(_.$slots, "tabs", {}, void 0, !0)
3189
3193
  ])) : $("", !0)
3190
3194
  ]),
@@ -3197,7 +3201,7 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
3197
3201
  background: `linear-gradient(to bottom, transparent, black),
3198
3202
  linear-gradient(to right, white, ${V.value})`
3199
3203
  }),
3200
- onMousedown: k,
3204
+ onMousedown: M,
3201
3205
  ref_key: "colorPickerRef",
3202
3206
  ref: h
3203
3207
  }, [
@@ -3210,9 +3214,9 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
3210
3214
  S("div", Dl, [
3211
3215
  S("div", {
3212
3216
  class: "color-picker__hue-slider",
3213
- onMousedown: M,
3217
+ onMousedown: I,
3214
3218
  ref_key: "hueSliderRef",
3215
- ref: y
3219
+ ref: g
3216
3220
  }, [
3217
3221
  S("div", {
3218
3222
  class: "color-picker__hue-indicator",
@@ -3247,7 +3251,7 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
3247
3251
  ce(en, {
3248
3252
  id: "color-picker-hex-input",
3249
3253
  modelValue: r.value,
3250
- "onUpdate:modelValue": A[0] || (A[0] = (b) => r.value = b),
3254
+ "onUpdate:modelValue": A[0] || (A[0] = (w) => r.value = w),
3251
3255
  name: "hex-input",
3252
3256
  "placeholder-text": "",
3253
3257
  "label-status": !1,
@@ -3258,31 +3262,31 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
3258
3262
  onBlur: W
3259
3263
  }, null, 8, ["modelValue"])
3260
3264
  ]),
3261
- (m(!0), g(ue, null, Ve(I.value, (b, w) => (m(), g("div", {
3262
- key: `preset-row-${w}`,
3265
+ (m(!0), b(ue, null, Ve(B.value, (w, y) => (m(), b("div", {
3266
+ key: `preset-row-${y}`,
3263
3267
  class: "color-picker__preset-row"
3264
3268
  }, [
3265
- w === 0 ? (m(), g("div", {
3269
+ y === 0 ? (m(), b("div", {
3266
3270
  key: 0,
3267
3271
  class: "color-picker__no-color",
3268
- onClick: d
3272
+ onClick: c
3269
3273
  }, [
3270
3274
  ce(p(ae), {
3271
3275
  name: "no-color",
3272
3276
  size: 14
3273
3277
  })
3274
3278
  ])) : $("", !0),
3275
- (m(!0), g(ue, null, Ve(b, (B, H) => (m(), J(Ht, {
3276
- key: `preset-${w}-${H}`,
3277
- color: B,
3278
- "is-transparent": B === "transparent",
3279
- onClick: (z) => B === "transparent" ? P(0) : T(B)
3279
+ (m(!0), b(ue, null, Ve(w, (k, H) => (m(), J(Ht, {
3280
+ key: `preset-${y}-${H}`,
3281
+ color: k,
3282
+ "is-transparent": k === "transparent",
3283
+ onClick: (z) => k === "transparent" ? P(0) : T(k)
3280
3284
  }, null, 8, ["color", "is-transparent", "onClick"]))), 128))
3281
3285
  ]))), 128)),
3282
- I.value.length === 0 ? (m(), g("div", zl, [
3286
+ B.value.length === 0 ? (m(), b("div", zl, [
3283
3287
  S("div", {
3284
3288
  class: "color-picker__no-color",
3285
- onClick: d
3289
+ onClick: c
3286
3290
  }, [
3287
3291
  ce(p(ae), {
3288
3292
  name: "no-color",
@@ -3290,18 +3294,18 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
3290
3294
  })
3291
3295
  ])
3292
3296
  ])) : $("", !0),
3293
- _.showSaveButton && u.value.length > 0 ? (m(), g("div", ql, [
3294
- (m(!0), g(ue, null, Ve(u.value, (b, w) => (m(), J(Ht, {
3295
- key: `saved-${w}`,
3296
- color: b,
3297
- onClick: (B) => ee(b)
3297
+ _.showSaveButton && u.value.length > 0 ? (m(), b("div", ql, [
3298
+ (m(!0), b(ue, null, Ve(u.value, (w, y) => (m(), J(Ht, {
3299
+ key: `saved-${y}`,
3300
+ color: w,
3301
+ onClick: (k) => ee(w)
3298
3302
  }, null, 8, ["color", "onClick"]))), 128)),
3299
3303
  S("button", {
3300
3304
  onClick: G,
3301
3305
  class: "color-picker__save-button",
3302
3306
  title: "Save current color"
3303
3307
  })
3304
- ])) : _.showSaveButton ? (m(), g("div", Nl, [
3308
+ ])) : _.showSaveButton ? (m(), b("div", Nl, [
3305
3309
  S("button", {
3306
3310
  onClick: G,
3307
3311
  class: "color-picker__save-button",
@@ -3334,8 +3338,8 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
3334
3338
  s.length > 0 && !s.some((a) => a.value === l.value) && (l.value = s[0].value, n("update:modelValue", s[0].value));
3335
3339
  },
3336
3340
  { deep: !0 }
3337
- ), (s, a) => (m(), g("div", Fl, [
3338
- (m(!0), g(ue, null, Ve(s.tabs, (r, u) => (m(), g("button", {
3341
+ ), (s, a) => (m(), b("div", Fl, [
3342
+ (m(!0), b(ue, null, Ve(s.tabs, (r, u) => (m(), b("button", {
3339
3343
  key: `${r.value}-${u}`,
3340
3344
  class: C([
3341
3345
  "in-tabs__tab",
@@ -3344,7 +3348,7 @@ const Ra = "_bubble_1jxs4_1", $a = "_trigger_1jxs4_43", Oa = "_trigger__icon_1jx
3344
3348
  }
3345
3349
  ]),
3346
3350
  disabled: s.disabled || r.disabled,
3347
- onClick: (c) => i(r)
3351
+ onClick: (d) => i(r)
3348
3352
  }, N(r.label), 11, Ul))), 128))
3349
3353
  ]));
3350
3354
  }