@useinsider/ab-components 0.0.116-beta.7 → 0.0.116

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.
@@ -417,11 +417,11 @@ const aa = async (e, a, t) => {
417
417
  x: c,
418
418
  y: v
419
419
  } = Gt(u, n, r), I = n, w = {}, S = 0;
420
- for (let T = 0; T < i.length; T++) {
420
+ for (let $ = 0; $ < i.length; $++) {
421
421
  const {
422
422
  name: B,
423
423
  fn: g
424
- } = i[T], {
424
+ } = i[$], {
425
425
  x: A,
426
426
  y: D,
427
427
  data: h,
@@ -453,7 +453,7 @@ const aa = async (e, a, t) => {
453
453
  }) : P.rects), {
454
454
  x: c,
455
455
  y: v
456
- } = Gt(u, I, r)), T = -1);
456
+ } = Gt(u, I, r)), $ = -1);
457
457
  }
458
458
  return {
459
459
  x: c,
@@ -529,10 +529,10 @@ const oa = (e) => ({
529
529
  const v = fn(c), I = {
530
530
  x: t,
531
531
  y: n
532
- }, w = Pt(o), S = Rt(w), T = await l.getDimensions(u), B = w === "y", g = B ? "top" : "left", A = B ? "bottom" : "right", D = B ? "clientHeight" : "clientWidth", h = s.reference[S] + s.reference[w] - I[w] - s.floating[S], P = I[w] - s.reference[w], j = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(u));
532
+ }, w = Pt(o), S = Rt(w), $ = await l.getDimensions(u), B = w === "y", g = B ? "top" : "left", A = B ? "bottom" : "right", D = B ? "clientHeight" : "clientWidth", h = s.reference[S] + s.reference[w] - I[w] - s.floating[S], P = I[w] - s.reference[w], j = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(u));
533
533
  let R = j ? j[D] : 0;
534
534
  (!R || !await (l.isElement == null ? void 0 : l.isElement(j))) && (R = i.floating[D] || s.floating[S]);
535
- const F = h / 2 - P / 2, $ = R / 2 - T[S] / 2 - 1, H = Oe(v[g], $), W = Oe(v[A], $), ee = H, ne = R - T[S] - W, f = R / 2 - T[S] / 2 + F, d = Et(ee, f, ne), k = !r.arrow && et(o) != null && f !== d && s.reference[S] / 2 - (f < ee ? H : W) - T[S] / 2 < 0, b = k ? f < ee ? f - ee : f - ne : 0;
535
+ const F = h / 2 - P / 2, T = R / 2 - $[S] / 2 - 1, H = Oe(v[g], T), W = Oe(v[A], T), ee = H, ne = R - $[S] - W, f = R / 2 - $[S] / 2 + F, d = Et(ee, f, ne), k = !r.arrow && et(o) != null && f !== d && s.reference[S] / 2 - (f < ee ? H : W) - $[S] / 2 < 0, b = k ? f < ee ? f - ee : f - ne : 0;
536
536
  return {
537
537
  [w]: I[w] + b,
538
538
  data: {
@@ -564,23 +564,23 @@ const oa = (e) => ({
564
564
  fallbackPlacements: I,
565
565
  fallbackStrategy: w = "bestFit",
566
566
  fallbackAxisSideDirection: S = "none",
567
- flipAlignment: T = !0,
567
+ flipAlignment: $ = !0,
568
568
  ...B
569
569
  } = Je(e, a);
570
570
  if ((t = s.arrow) != null && t.alignmentOffset)
571
571
  return {};
572
- const g = Re(o), A = Ee(i), D = Re(i) === i, h = await (r.isRTL == null ? void 0 : r.isRTL(u.floating)), P = I || (D || !T ? [vt(i)] : Xn(i)), j = S !== "none";
573
- !I && j && P.push(...ta(i, T, S, h));
574
- const R = [i, ...P], F = await zt(a, B), $ = [];
572
+ const g = Re(o), A = Ee(i), D = Re(i) === i, h = await (r.isRTL == null ? void 0 : r.isRTL(u.floating)), P = I || (D || !$ ? [vt(i)] : Xn(i)), j = S !== "none";
573
+ !I && j && P.push(...ta(i, $, S, h));
574
+ const R = [i, ...P], F = await zt(a, B), T = [];
575
575
  let H = ((n = s.flip) == null ? void 0 : n.overflows) || [];
576
- if (c && $.push(F[g]), v) {
576
+ if (c && T.push(F[g]), v) {
577
577
  const f = Qn(o, l, h);
578
- $.push(F[f[0]], F[f[1]]);
578
+ T.push(F[f[0]], F[f[1]]);
579
579
  }
580
580
  if (H = [...H, {
581
581
  placement: o,
582
- overflows: $
583
- }], !$.every((f) => f <= 0)) {
582
+ overflows: T
583
+ }], !T.every((f) => f <= 0)) {
584
584
  var W, ee;
585
585
  const f = (((W = s.flip) == null ? void 0 : W.index) || 0) + 1, d = R[f];
586
586
  if (d && (!(v === "alignment" ? A !== Ee(d) : !1) || // We leave the current main axis only if every placement on that axis
@@ -714,16 +714,16 @@ const ra = function(e) {
714
714
  const B = v === "y" ? "top" : "left", g = v === "y" ? "bottom" : "right", A = S + c[B], D = S - c[g];
715
715
  S = Et(A, S, D);
716
716
  }
717
- const T = i.fn({
717
+ const $ = i.fn({
718
718
  ...a,
719
719
  [I]: w,
720
720
  [v]: S
721
721
  });
722
722
  return {
723
- ...T,
723
+ ...$,
724
724
  data: {
725
- x: T.x - t,
726
- y: T.y - n,
725
+ x: $.x - t,
726
+ y: $.y - n,
727
727
  enabled: {
728
728
  [I]: s,
729
729
  [v]: l
@@ -749,23 +749,23 @@ const ra = function(e) {
749
749
  ...u
750
750
  } = Je(e, a), c = await zt(a, u), v = Re(o), I = et(o), w = Ee(o) === "y", {
751
751
  width: S,
752
- height: T
752
+ height: $
753
753
  } = s.floating;
754
754
  let B, g;
755
755
  v === "top" || v === "bottom" ? (B = v, g = I === (await (l.isRTL == null ? void 0 : l.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (g = v, B = I === "end" ? "top" : "bottom");
756
- const A = T - c.top - c.bottom, D = S - c.left - c.right, h = Oe(T - c[B], A), P = Oe(S - c[g], D), j = !a.middlewareData.shift;
756
+ const A = $ - c.top - c.bottom, D = S - c.left - c.right, h = Oe($ - c[B], A), P = Oe(S - c[g], D), j = !a.middlewareData.shift;
757
757
  let R = h, F = P;
758
758
  if ((t = a.middlewareData.shift) != null && t.enabled.x && (F = D), (n = a.middlewareData.shift) != null && n.enabled.y && (R = A), j && !I) {
759
759
  const H = me(c.left, 0), W = me(c.right, 0), ee = me(c.top, 0), ne = me(c.bottom, 0);
760
- w ? F = S - 2 * (H !== 0 || W !== 0 ? H + W : me(c.left, c.right)) : R = T - 2 * (ee !== 0 || ne !== 0 ? ee + ne : me(c.top, c.bottom));
760
+ w ? F = S - 2 * (H !== 0 || W !== 0 ? H + W : me(c.left, c.right)) : R = $ - 2 * (ee !== 0 || ne !== 0 ? ee + ne : me(c.top, c.bottom));
761
761
  }
762
762
  await r({
763
763
  ...a,
764
764
  availableWidth: F,
765
765
  availableHeight: R
766
766
  });
767
- const $ = await l.getDimensions(i.floating);
768
- return S !== $.width || T !== $.height ? {
767
+ const T = await l.getDimensions(i.floating);
768
+ return S !== T.width || $ !== T.height ? {
769
769
  reset: {
770
770
  rects: !0
771
771
  }
@@ -935,10 +935,10 @@ function Fe(e, a, t, n) {
935
935
  let r = (o.left + i.x) / l.x, u = (o.top + i.y) / l.y, c = o.width / l.x, v = o.height / l.y;
936
936
  if (s) {
937
937
  const I = ge(s), w = n && we(n) ? ge(n) : n;
938
- let S = I, T = Dt(S);
939
- for (; T && n && w !== S; ) {
940
- const B = Qe(T), g = T.getBoundingClientRect(), A = xe(T), D = g.left + (T.clientLeft + parseFloat(A.paddingLeft)) * B.x, h = g.top + (T.clientTop + parseFloat(A.paddingTop)) * B.y;
941
- r *= B.x, u *= B.y, c *= B.x, v *= B.y, r += D, u += h, S = ge(T), T = Dt(S);
938
+ let S = I, $ = Dt(S);
939
+ for (; $ && n && w !== S; ) {
940
+ const B = Qe($), g = $.getBoundingClientRect(), A = xe($), D = g.left + ($.clientLeft + parseFloat(A.paddingLeft)) * B.x, h = g.top + ($.clientTop + parseFloat(A.paddingTop)) * B.y;
941
+ r *= B.x, u *= B.y, c *= B.x, v *= B.y, r += D, u += h, S = ge($), $ = Dt(S);
942
942
  }
943
943
  }
944
944
  return bt({
@@ -1195,8 +1195,8 @@ function Da(e, a) {
1195
1195
  } = u;
1196
1196
  if (i || a(), !I || !w)
1197
1197
  return;
1198
- const S = _t(v), T = _t(o.clientWidth - (c + I)), B = _t(o.clientHeight - (v + w)), g = _t(c), D = {
1199
- rootMargin: -S + "px " + -T + "px " + -B + "px " + -g + "px",
1198
+ const S = _t(v), $ = _t(o.clientWidth - (c + I)), B = _t(o.clientHeight - (v + w)), g = _t(c), D = {
1199
+ rootMargin: -S + "px " + -$ + "px " + -B + "px " + -g + "px",
1200
1200
  threshold: me(0, Oe(1, r)) || 1
1201
1201
  };
1202
1202
  let h = !0;
@@ -1247,11 +1247,11 @@ function yt(e, a, t, n) {
1247
1247
  (D = w) == null || D.observe(a);
1248
1248
  })), t();
1249
1249
  }), u && !r && w.observe(u), w.observe(a));
1250
- let S, T = r ? Fe(e) : null;
1250
+ let S, $ = r ? Fe(e) : null;
1251
1251
  r && B();
1252
1252
  function B() {
1253
1253
  const g = Fe(e);
1254
- T && !wn(T, g) && t(), T = g, S = requestAnimationFrame(B);
1254
+ $ && !wn($, g) && t(), $ = g, S = requestAnimationFrame(B);
1255
1255
  }
1256
1256
  return t(), () => {
1257
1257
  var g;
@@ -1320,7 +1320,7 @@ function Ct(e, a, t) {
1320
1320
  }), r = M(() => {
1321
1321
  var R;
1322
1322
  return (R = Ge(t.transform)) != null ? R : !0;
1323
- }), u = M(() => Ot(e.value)), c = M(() => Ot(a.value)), v = O(0), I = O(0), w = O(i.value), S = O(l.value), T = Sn({}), B = O(!1), g = M(() => {
1323
+ }), u = M(() => Ot(e.value)), c = M(() => Ot(a.value)), v = O(0), I = O(0), w = O(i.value), S = O(l.value), $ = Sn({}), B = O(!1), g = M(() => {
1324
1324
  const R = {
1325
1325
  position: w.value,
1326
1326
  left: "0",
@@ -1328,17 +1328,17 @@ function Ct(e, a, t) {
1328
1328
  };
1329
1329
  if (!c.value)
1330
1330
  return R;
1331
- const F = en(c.value, v.value), $ = en(c.value, I.value);
1331
+ const F = en(c.value, v.value), T = en(c.value, I.value);
1332
1332
  return r.value ? {
1333
1333
  ...R,
1334
- transform: "translate(" + F + "px, " + $ + "px)",
1334
+ transform: "translate(" + F + "px, " + T + "px)",
1335
1335
  ...xn(c.value) >= 1.5 && {
1336
1336
  willChange: "transform"
1337
1337
  }
1338
1338
  } : {
1339
1339
  position: w.value,
1340
1340
  left: F + "px",
1341
- top: $ + "px"
1341
+ top: T + "px"
1342
1342
  };
1343
1343
  });
1344
1344
  let A;
@@ -1351,7 +1351,7 @@ function Ct(e, a, t) {
1351
1351
  placement: l.value,
1352
1352
  strategy: i.value
1353
1353
  }).then((F) => {
1354
- v.value = F.x, I.value = F.y, w.value = F.strategy, S.value = F.placement, T.value = F.middlewareData, B.value = R !== !1;
1354
+ v.value = F.x, I.value = F.y, w.value = F.strategy, S.value = F.placement, $.value = F.middlewareData, B.value = R !== !1;
1355
1355
  });
1356
1356
  }
1357
1357
  function h() {
@@ -1381,7 +1381,7 @@ function Ct(e, a, t) {
1381
1381
  y: Ue(I),
1382
1382
  strategy: Ue(w),
1383
1383
  placement: Ue(S),
1384
- middlewareData: Ue(T),
1384
+ middlewareData: Ue($),
1385
1385
  isPositioned: Ue(B),
1386
1386
  floatingStyles: g,
1387
1387
  update: D
@@ -1427,8 +1427,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
1427
1427
  status: { type: Boolean },
1428
1428
  preventXss: { type: Boolean },
1429
1429
  iconName: {},
1430
- hideDelay: {},
1431
- showDelay: {}
1430
+ hideDelay: {}
1432
1431
  },
1433
1432
  setup(e) {
1434
1433
  const a = {
@@ -1448,24 +1447,22 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
1448
1447
  xt(),
1449
1448
  Ha({ element: r, padding: Vt })
1450
1449
  ]
1451
- }), T = () => {
1452
- t.value && (clearTimeout(t.value), t.value = null), n.value && (clearTimeout(n.value), n.value = null);
1453
- const $ = s.showDelay ?? Qa;
1454
- window.wasTooltipShown || $ <= 0 ? u.value = !0 : t.value = setTimeout(() => {
1450
+ }), $ = () => {
1451
+ t.value && (clearTimeout(t.value), t.value = null), n.value && (clearTimeout(n.value), n.value = null), window.wasTooltipShown ? u.value = !0 : t.value = setTimeout(() => {
1455
1452
  if (!o.value) {
1456
1453
  t.value = null;
1457
1454
  return;
1458
1455
  }
1459
1456
  u.value = !0, window.wasTooltipShown = !0, t.value = null;
1460
- }, $);
1457
+ }, Qa);
1461
1458
  }, B = () => {
1462
1459
  t.value && (clearTimeout(t.value), t.value = null), n.value && (clearTimeout(n.value), n.value = null);
1463
- const $ = s.hideDelay ?? 0;
1464
- $ > 0 ? n.value = setTimeout(() => {
1460
+ const T = s.hideDelay ?? 0;
1461
+ T > 0 ? n.value = setTimeout(() => {
1465
1462
  o.value && (u.value = !1), n.value = null;
1466
- }, $) : u.value = !1;
1463
+ }, T) : u.value = !1;
1467
1464
  }, g = () => {
1468
- T();
1465
+ $();
1469
1466
  }, A = () => {
1470
1467
  B();
1471
1468
  }, D = () => {
@@ -1484,14 +1481,14 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
1484
1481
  ...v.value,
1485
1482
  display: h.value ? "inline-block" : "none"
1486
1483
  })), j = M(() => {
1487
- const [$] = S.value.split("-");
1484
+ const [T] = S.value.split("-");
1488
1485
  return {
1489
- [a[$]]: "-4px"
1486
+ [a[T]]: "-4px"
1490
1487
  };
1491
1488
  }), R = M(() => {
1492
1489
  if (!s.arrowPlacement)
1493
1490
  return {};
1494
- const [$] = S.value.split("-"), H = $ === "top" || $ === "bottom" ? "left" : "top";
1491
+ const [T] = S.value.split("-"), H = T === "top" || T === "bottom" ? "left" : "top";
1495
1492
  switch (s.arrowPlacement) {
1496
1493
  case "start":
1497
1494
  return { [H]: `${Vt}px` };
@@ -1503,9 +1500,9 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
1503
1500
  return {};
1504
1501
  }
1505
1502
  }), F = M(() => {
1506
- var $, H;
1503
+ var T, H;
1507
1504
  return r.value ? {
1508
- left: (($ = w.value.arrow) == null ? void 0 : $.x) != null ? `${w.value.arrow.x}px` : "",
1505
+ left: ((T = w.value.arrow) == null ? void 0 : T.x) != null ? `${w.value.arrow.x}px` : "",
1509
1506
  top: ((H = w.value.arrow) == null ? void 0 : H.y) != null ? `${w.value.arrow.y}px` : "",
1510
1507
  right: "",
1511
1508
  bottom: "",
@@ -1513,20 +1510,20 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
1513
1510
  ...R.value
1514
1511
  } : {};
1515
1512
  });
1516
- return ($, H) => (_(), m(le, null, [
1513
+ return (T, H) => (_(), m(le, null, [
1517
1514
  V("div", {
1518
- id: $.id,
1515
+ id: T.id,
1519
1516
  ref_key: "triggerRef",
1520
1517
  ref: i,
1521
1518
  class: y(p(at).trigger),
1522
1519
  onMouseenter: g,
1523
1520
  onMouseleave: A
1524
1521
  }, [
1525
- $.iconName ? (_(), te(p(Z), {
1522
+ T.iconName ? (_(), te(p(Z), {
1526
1523
  key: 0,
1527
1524
  color: p(at).trigger__icon,
1528
- name: $.iconName
1529
- }, null, 8, ["color", "name"])) : pe($.$slots, "default", { key: 1 })
1525
+ name: T.iconName
1526
+ }, null, 8, ["color", "name"])) : pe(T.$slots, "default", { key: 1 })
1530
1527
  ], 42, Ka),
1531
1528
  (_(), te(cn, { to: "body" }, [
1532
1529
  V("div", {
@@ -1537,13 +1534,13 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
1537
1534
  onMouseenter: g,
1538
1535
  onMouseleave: A
1539
1536
  }, [
1540
- $.$slots.contentSlot ? pe($.$slots, "contentSlot", { key: 0 }) : (_(), m("div", {
1537
+ T.$slots.contentSlot ? pe(T.$slots, "contentSlot", { key: 0 }) : (_(), m("div", {
1541
1538
  key: 1,
1542
1539
  class: y(p(at).bubble__content)
1543
1540
  }, [
1544
1541
  V("div", { innerHTML: c.value }, null, 8, Ga)
1545
1542
  ], 2)),
1546
- $.$slots.contentSlot ? L("", !0) : (_(), m("div", {
1543
+ T.$slots.contentSlot ? L("", !0) : (_(), m("div", {
1547
1544
  key: 2,
1548
1545
  ref_key: "floatingArrowRef",
1549
1546
  ref: r,
@@ -1615,11 +1612,11 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
1615
1612
  return new Date(d.getFullYear(), d.getMonth(), d.getDate()).getTime();
1616
1613
  }
1617
1614
  const I = O(""), w = M(() => c(t.min, t.format)), S = M(() => c(t.max, t.format));
1618
- function T(d) {
1615
+ function $(d) {
1619
1616
  const k = v(d), b = w.value ? v(w.value) : null, x = S.value ? v(S.value) : null;
1620
1617
  return (b === null || k >= b) && (x === null || k <= x);
1621
1618
  }
1622
- const B = M(() => c(I.value, t.format)), g = M(() => B.value !== null && T(B.value));
1619
+ const B = M(() => c(I.value, t.format)), g = M(() => B.value !== null && $(B.value));
1623
1620
  function A() {
1624
1621
  const d = c(t.modelValue, t.format);
1625
1622
  I.value = d ? u(d, t.format) : "";
@@ -1653,7 +1650,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
1653
1650
  label: Q.getDate(),
1654
1651
  display: u(Q, t.format),
1655
1652
  inCurrentMonth: Q.getMonth() === k,
1656
- disabled: !T(Q),
1653
+ disabled: !$(Q),
1657
1654
  selected: E !== null && v(Q) === E
1658
1655
  });
1659
1656
  }
@@ -1663,7 +1660,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
1663
1660
  const d = h.value.month - 1;
1664
1661
  h.value = d < 0 ? { year: h.value.year - 1, month: 11 } : { year: h.value.year, month: d };
1665
1662
  }
1666
- function $() {
1663
+ function T() {
1667
1664
  const d = h.value.month + 1;
1668
1665
  h.value = d > 11 ? { year: h.value.year + 1, month: 0 } : { year: h.value.year, month: d };
1669
1666
  }
@@ -1736,7 +1733,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
1736
1733
  class: "ab-calendar__nav",
1737
1734
  "data-testid": "calendar-next",
1738
1735
  "aria-label": d.nextMonthLabel,
1739
- onClick: $
1736
+ onClick: T
1740
1737
  }, [
1741
1738
  G(Z, {
1742
1739
  class: "ab-calendar__nav-icon",
@@ -2058,7 +2055,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2058
2055
  }, S = () => {
2059
2056
  let f = "0-9";
2060
2057
  return t.allowDecimal && (f += "\\."), t.allowComma && (f += ","), new RegExp(`[^${f}]+`, "g");
2061
- }, T = (f) => {
2058
+ }, $ = (f) => {
2062
2059
  if (!(f != null && f.target))
2063
2060
  return;
2064
2061
  const d = f.target, { selectionStart: k } = d;
@@ -2087,13 +2084,13 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2087
2084
  }, j = (f) => {
2088
2085
  var b;
2089
2086
  const d = f;
2090
- u.value && (T(d), B(d)), I(d);
2087
+ u.value && ($(d), B(d)), I(d);
2091
2088
  const k = ((b = d == null ? void 0 : d.target) == null ? void 0 : b.value) || "";
2092
2089
  o.value = k, n("input", k), n("update:modelValue", k);
2093
2090
  }, R = (f) => {
2094
2091
  var b;
2095
2092
  const d = f;
2096
- u.value && (T(d), B(d)), I(d);
2093
+ u.value && ($(d), B(d)), I(d);
2097
2094
  const k = ((b = d == null ? void 0 : d.target) == null ? void 0 : b.value) || "";
2098
2095
  o.value = k, n("change", k), n("update:modelValue", k);
2099
2096
  }, F = (f) => {
@@ -2135,7 +2132,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2135
2132
  }), J = ce.join("");
2136
2133
  const C = k + J.length, U = x.slice(0, k) + J + x.slice(b);
2137
2134
  d.value = U, d.setSelectionRange(C, C), o.value = U, n("input", U), n("update:modelValue", U);
2138
- }, $ = (f) => {
2135
+ }, T = (f) => {
2139
2136
  n("leftIconClick", f);
2140
2137
  }, H = (f) => {
2141
2138
  n("rightIconClick", f);
@@ -2183,7 +2180,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2183
2180
  class: "in-basic-text-input-wrapper__icon-left",
2184
2181
  name: f.leftIconName,
2185
2182
  size: 24,
2186
- onClick: $
2183
+ onClick: T
2187
2184
  }, null, 8, ["name"])) : L("", !0),
2188
2185
  V("input", {
2189
2186
  id: f.id,
@@ -2319,7 +2316,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2319
2316
  for (let E = x; E < d.length; E += b)
2320
2317
  k.push(d.slice(E, E + b));
2321
2318
  return k;
2322
- }), T = M(() => {
2319
+ }), $ = M(() => {
2323
2320
  const d = o.value, k = 1 - Math.abs(d * 6 % 2 - 1);
2324
2321
  let b = 0, x = 0, E = 0;
2325
2322
  return d < 1 / 6 ? (b = 1, x = k) : d < 2 / 6 ? (b = k, x = 1) : d < 3 / 6 ? (x = 1, E = k) : d < 4 / 6 ? (x = k, E = 1) : d < 5 / 6 ? (b = k, E = 1) : (b = 1, E = k), `rgb(${Math.round(b * 255)}, ${Math.round(x * 255)}, ${Math.round(E * 255)})`;
@@ -2336,7 +2333,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2336
2333
  }), oe(
2337
2334
  () => t.color,
2338
2335
  (d) => {
2339
- d && (c.value = !0, d.toLowerCase() === "transparent" ? f() : $(d), setTimeout(() => {
2336
+ d && (c.value = !0, d.toLowerCase() === "transparent" ? f() : T(d), setTimeout(() => {
2340
2337
  c.value = !1;
2341
2338
  }, 0));
2342
2339
  },
@@ -2404,18 +2401,18 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2404
2401
  }
2405
2402
  function j(d) {
2406
2403
  const k = t.showOpacityInHex ? 8 : 6, b = String(d).replace(/[^0-9A-Fa-f]/g, "").slice(0, k).toUpperCase();
2407
- r.value = b, t.showOpacityInHex ? (b.length === 6 || b.length === 8) && $(b) : b.length === 6 && $(b);
2404
+ r.value = b, t.showOpacityInHex ? (b.length === 6 || b.length === 8) && T(b) : b.length === 6 && T(b);
2408
2405
  }
2409
2406
  function R(d) {
2410
2407
  var E;
2411
2408
  const k = ((E = d.clipboardData) == null ? void 0 : E.getData("text")) || "", b = t.showOpacityInHex ? 8 : 6, x = k.replace(/^#/, "").replace(/[^0-9A-Fa-f]/g, "").slice(0, b).toUpperCase();
2412
- t.showOpacityInHex ? x.length === 6 || x.length === 8 ? (r.value = x, $(x), d.preventDefault()) : x.length > 0 && (r.value = x, d.preventDefault()) : x.length === 6 ? (r.value = x, $(x), d.preventDefault()) : x.length > 0 && (r.value = x, d.preventDefault());
2409
+ t.showOpacityInHex ? x.length === 6 || x.length === 8 ? (r.value = x, T(x), d.preventDefault()) : x.length > 0 && (r.value = x, d.preventDefault()) : x.length === 6 ? (r.value = x, T(x), d.preventDefault()) : x.length > 0 && (r.value = x, d.preventDefault());
2413
2410
  }
2414
2411
  function F() {
2415
2412
  const d = t.showOpacityInHex ? 8 : 6;
2416
2413
  r.value.length !== d && A();
2417
2414
  }
2418
- function $(d) {
2415
+ function T(d) {
2419
2416
  const k = d.startsWith("#") ? d.slice(1) : d, b = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(k), x = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(k), E = x || b;
2420
2417
  if (!E) {
2421
2418
  const X = /rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/.exec(d);
@@ -2454,7 +2451,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2454
2451
  u.value.includes(d) || u.value.push(d);
2455
2452
  }
2456
2453
  function ne(d) {
2457
- $(d);
2454
+ T(d);
2458
2455
  }
2459
2456
  function f() {
2460
2457
  r.value = "", i.value = 0, o.value = 0, s.value = 0, l.value = 0.4, n("color-change", "transparent");
@@ -2477,7 +2474,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2477
2474
  class: "color-picker__color-canvas",
2478
2475
  style: se({
2479
2476
  background: `linear-gradient(to bottom, transparent, black),
2480
- linear-gradient(to right, white, ${T.value})`
2477
+ linear-gradient(to right, white, ${$.value})`
2481
2478
  }),
2482
2479
  onMousedown: D
2483
2480
  }, [
@@ -2556,7 +2553,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2556
2553
  key: `preset-${x}-${q}`,
2557
2554
  color: E,
2558
2555
  "is-transparent": E === "transparent",
2559
- onClick: (Y) => E === "transparent" ? H(0) : $(E)
2556
+ onClick: (Y) => E === "transparent" ? H(0) : T(E)
2560
2557
  }, null, 8, ["color", "is-transparent", "onClick"]))), 128))
2561
2558
  ]))), 128)),
2562
2559
  S.value.length === 0 ? (_(), m("div", Zo, [
@@ -2662,36 +2659,36 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2662
2659
  const t = Cn, n = e, o = a, s = O(), l = O(), i = O(!1), r = O(null), u = O(""), c = O(null), v = O({ x: 0, y: 0, width: 0, shouldOpenUp: !1, height: n.menuHeight }), I = Wt([...n.items]), w = Wt([...n.items]), S = () => {
2663
2660
  if (!s.value)
2664
2661
  return;
2665
- const { offsetTop: $, offsetLeft: H, offsetWidth: W } = s.value, ee = window.innerHeight, ne = $ + s.value.offsetHeight, f = ne + n.menuHeight > ee;
2662
+ const { offsetTop: T, offsetLeft: H, offsetWidth: W } = s.value, ee = window.innerHeight, ne = T + s.value.offsetHeight, f = ne + n.menuHeight > ee;
2666
2663
  v.value = {
2667
2664
  x: H + window.scrollX,
2668
- y: f ? $ + window.scrollY : ne + window.scrollY,
2665
+ y: f ? T + window.scrollY : ne + window.scrollY,
2669
2666
  width: W,
2670
2667
  shouldOpenUp: f,
2671
2668
  height: n.menuHeight
2672
2669
  };
2673
- }, T = () => {
2670
+ }, $ = () => {
2674
2671
  S(), i.value = !i.value;
2675
2672
  }, B = () => {
2676
2673
  c.value = null, u.value = "", I.splice(0, I.length, ...w);
2677
2674
  }, g = () => {
2678
2675
  i.value = !1, B();
2679
- }, A = ($) => {
2680
- r.value = $, o("select-item", $), o("update:modelValue", $.value), g();
2676
+ }, A = (T) => {
2677
+ r.value = T, o("select-item", T), o("update:modelValue", T.value), g();
2681
2678
  }, D = () => {
2682
- const $ = u.value.trim(), H = n.validateAddItem($, w);
2679
+ const T = u.value.trim(), H = n.validateAddItem(T, w);
2683
2680
  if (H) {
2684
2681
  c.value = H, o("add-error", H);
2685
2682
  return;
2686
2683
  }
2687
2684
  const W = {
2688
- text: $,
2689
- value: $
2685
+ text: T,
2686
+ value: T
2690
2687
  };
2691
2688
  w.push(W), B(), o("item-added", W);
2692
2689
  }, h = () => {
2693
- const $ = At(w, "text", u.value);
2694
- I.splice(0, I.length, ...$);
2690
+ const T = At(w, "text", u.value);
2691
+ I.splice(0, I.length, ...T);
2695
2692
  }, P = () => {
2696
2693
  c.value = "";
2697
2694
  }, j = M(() => ({
@@ -2702,36 +2699,36 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2702
2699
  }));
2703
2700
  qe(() => {
2704
2701
  if (S(), n.modelValue) {
2705
- const $ = w.find((H) => H.value === n.modelValue);
2706
- $ && (r.value = $);
2702
+ const T = w.find((H) => H.value === n.modelValue);
2703
+ T && (r.value = T);
2707
2704
  }
2708
2705
  });
2709
2706
  const R = M(() => r.value ? r.value.text : "");
2710
- oe(() => n.modelValue, ($) => {
2707
+ oe(() => n.modelValue, (T) => {
2711
2708
  var H;
2712
- if (((H = r.value) == null ? void 0 : H.value) !== $) {
2713
- const W = w.find((ee) => ee.value === $);
2709
+ if (((H = r.value) == null ? void 0 : H.value) !== T) {
2710
+ const W = w.find((ee) => ee.value === T);
2714
2711
  W && (r.value = W);
2715
2712
  }
2716
2713
  }), oe(
2717
2714
  () => n.items,
2718
- ($) => {
2719
- w.splice(0, w.length, ...$), I.splice(0, I.length, ...$);
2715
+ (T) => {
2716
+ w.splice(0, w.length, ...T), I.splice(0, I.length, ...T);
2720
2717
  },
2721
2718
  { deep: !0 }
2722
2719
  );
2723
2720
  const F = O({ handler: g, exclude: [s, l] });
2724
- return ($, H) => (_(), m(le, null, [
2721
+ return (T, H) => (_(), m(le, null, [
2725
2722
  V("div", {
2726
2723
  ref_key: "dropdownRef",
2727
2724
  ref: s,
2728
2725
  class: y(p(re).dropdown)
2729
2726
  }, [
2730
- $.label ? (_(), m("label", {
2727
+ T.label ? (_(), m("label", {
2731
2728
  key: 0,
2732
2729
  class: y(p(re).dropdown__label),
2733
- for: $.id
2734
- }, z($.label), 11, gl)) : L("", !0),
2730
+ for: T.id
2731
+ }, z(T.label), 11, gl)) : L("", !0),
2735
2732
  V("button", {
2736
2733
  class: y([
2737
2734
  p(re).dropdown__valueContent,
@@ -2739,15 +2736,15 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2739
2736
  [p(re)["dropdown__valueContent--open"]]: i.value
2740
2737
  }
2741
2738
  ]),
2742
- onClick: T
2739
+ onClick: $
2743
2740
  }, [
2744
2741
  V("span", {
2745
2742
  class: y(p(re).dropdown__value)
2746
2743
  }, z(R.value), 3),
2747
- $.placeholder && !R.value ? (_(), m("span", {
2744
+ T.placeholder && !R.value ? (_(), m("span", {
2748
2745
  key: 0,
2749
2746
  class: y(p(re).dropdown__placeholder)
2750
- }, z($.placeholder), 3)) : L("", !0),
2747
+ }, z(T.placeholder), 3)) : L("", !0),
2751
2748
  (_(), m("svg", {
2752
2749
  fill: "none",
2753
2750
  height: "17",
@@ -2786,7 +2783,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2786
2783
  [p(re)["menu__searchInput--error"]]: c.value
2787
2784
  }
2788
2785
  ]),
2789
- placeholder: $.searchPlaceHolder,
2786
+ placeholder: T.searchPlaceHolder,
2790
2787
  "onUpdate:modelValue": H[0] || (H[0] = (W) => u.value = W),
2791
2788
  onFocus: P,
2792
2789
  onInput: h
@@ -2802,7 +2799,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
2802
2799
  key: 0,
2803
2800
  class: y(p(re).menu__addButton),
2804
2801
  onClick: D
2805
- }, z($.addButtonText), 3)) : L("", !0)
2802
+ }, z(T.addButtonText), 3)) : L("", !0)
2806
2803
  ], 2)) : L("", !0),
2807
2804
  V("ul", {
2808
2805
  class: y(p(re).menu__itemContainer)
@@ -3015,7 +3012,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
3015
3012
  const t = e, n = a, o = O(null), s = O(null), l = O(null), i = O(""), r = O(""), u = /* @__PURE__ */ new Map(), c = `in-cascading-menu-search-${Math.random().toString(36).slice(2, 9)}`, v = M(() => t.searchInputId ?? c), I = M(() => `${v.value}-child`), w = M(() => t.items.flatMap((C) => "kind" in C && C.kind === "group" ? [
3016
3013
  { type: "group-header", label: C.label },
3017
3014
  ...C.items.map((U) => ({ type: "item", item: U }))
3018
- ] : [{ type: "item", item: C }])), S = M(() => w.value.filter((C) => C.type === "item").map((C) => C.item)), T = M(() => t.searchable), B = M(() => T.value && r.value.trim().length > 0), g = M(() => {
3015
+ ] : [{ type: "item", item: C }])), S = M(() => w.value.filter((C) => C.type === "item").map((C) => C.item)), $ = M(() => t.searchable), B = M(() => $.value && r.value.trim().length > 0), g = M(() => {
3019
3016
  const C = {
3020
3017
  width: `${t.width}px`,
3021
3018
  maxWidth: `${t.width}px`
@@ -3029,7 +3026,7 @@ const qa = "_bubble_6zub9_1", Ya = "_trigger_6zub9_43", Wa = "_trigger__icon_6zu
3029
3026
  strategy: "fixed",
3030
3027
  whileElementsMounted: yt,
3031
3028
  middleware: [wt(3), kt(), xt({ padding: 8 })]
3032
- }), $ = M(() => t.submenuPlacement === "left"), H = M(() => $.value ? "left-start" : "right-start"), W = M(() => $.value ? ["right-start"] : ["left-start"]), ee = M(() => [
3029
+ }), T = M(() => t.submenuPlacement === "left"), H = M(() => T.value ? "left-start" : "right-start"), W = M(() => T.value ? ["right-start"] : ["left-start"]), ee = M(() => [
3033
3030
  wt({ mainAxis: 0, crossAxis: -8 }),
3034
3031
  kt({ fallbackPlacements: W.value }),
3035
3032
  xt({ padding: 8 }),
@@ -3296,12 +3293,12 @@ const oi = "_root_avx14_36", li = "_sizeMedium_avx14_44", on = {
3296
3293
  emits: ["update:modelValue", "escape", "clear"],
3297
3294
  setup(e, { expose: a, emit: t }) {
3298
3295
  const n = e, o = t, s = An("search"), l = M(() => n.id || s), i = M(() => n.name || l.value), r = O(null), u = M(() => n.modelValue.length > 0), c = M(() => n.clearable && u.value ? ii : "line-search");
3299
- function v(T) {
3300
- o("update:modelValue", String(T));
3296
+ function v($) {
3297
+ o("update:modelValue", String($));
3301
3298
  }
3302
- function I(T) {
3303
- if (T.key === "Escape") {
3304
- if (T.stopPropagation(), n.modelValue) {
3299
+ function I($) {
3300
+ if ($.key === "Escape") {
3301
+ if ($.stopPropagation(), n.modelValue) {
3305
3302
  o("update:modelValue", ""), o("clear");
3306
3303
  return;
3307
3304
  }
@@ -3313,11 +3310,11 @@ const oi = "_root_avx14_36", li = "_sizeMedium_avx14_44", on = {
3313
3310
  }
3314
3311
  function S() {
3315
3312
  var B, g;
3316
- const T = (g = (B = r.value) == null ? void 0 : B.$el) == null ? void 0 : g.querySelector("input");
3317
- T == null || T.focus();
3313
+ const $ = (g = (B = r.value) == null ? void 0 : B.$el) == null ? void 0 : g.querySelector("input");
3314
+ $ == null || $.focus();
3318
3315
  }
3319
- return a({ focus: S }), (T, B) => (_(), m("div", {
3320
- class: y([p(on).root, T.size === "medium" && p(on).sizeMedium]),
3316
+ return a({ focus: S }), ($, B) => (_(), m("div", {
3317
+ class: y([p(on).root, $.size === "medium" && p(on).sizeMedium]),
3321
3318
  onKeydown: I
3322
3319
  }, [
3323
3320
  G(ut, {
@@ -3327,9 +3324,9 @@ const oi = "_root_avx14_36", li = "_sizeMedium_avx14_44", on = {
3327
3324
  "right-icon-status": "",
3328
3325
  "helper-message-status": !1,
3329
3326
  "label-status": !1,
3330
- "model-value": T.modelValue,
3327
+ "model-value": $.modelValue,
3331
3328
  name: i.value,
3332
- "placeholder-text": T.placeholder,
3329
+ "placeholder-text": $.placeholder,
3333
3330
  "right-icon-name": c.value,
3334
3331
  onRightIconClick: w,
3335
3332
  "onUpdate:modelValue": v
@@ -3513,7 +3510,7 @@ const oi = "_root_avx14_36", li = "_sizeMedium_avx14_44", on = {
3513
3510
  return "right-end";
3514
3511
  const h = o.position === "top" ? "top" : "bottom";
3515
3512
  return o.align === "center" ? h : o.align === "right" ? `${h}-end` : `${h}-start`;
3516
- }), I = M(() => o.positionStrategy === "fixed" ? "fixed" : "absolute"), w = M(() => [wt(o.gap), kt(), xt({ padding: Mi })]), { floatingStyles: S, isPositioned: T } = Ct(r, i, {
3513
+ }), I = M(() => o.positionStrategy === "fixed" ? "fixed" : "absolute"), w = M(() => [wt(o.gap), kt(), xt({ padding: Mi })]), { floatingStyles: S, isPositioned: $ } = Ct(r, i, {
3517
3514
  placement: v,
3518
3515
  strategy: I,
3519
3516
  middleware: w,
@@ -3561,7 +3558,7 @@ const oi = "_root_avx14_36", li = "_sizeMedium_avx14_44", on = {
3561
3558
  ref_key: "contentRef",
3562
3559
  ref: i,
3563
3560
  class: y(["popover__content", {
3564
- "popover__content--visible": p(T),
3561
+ "popover__content--visible": p($),
3565
3562
  "popover__content--elevated": h.elevated
3566
3563
  }]),
3567
3564
  style: se([p(S), B.value]),
@@ -3623,7 +3620,7 @@ const oi = "_root_avx14_36", li = "_sizeMedium_avx14_44", on = {
3623
3620
  s.value = !1, I();
3624
3621
  }, S = (A) => {
3625
3622
  l.value = A, o("select-item", A), o("update:modelValue", A.value), w();
3626
- }, T = () => {
3623
+ }, $ = () => {
3627
3624
  const A = i.value.trim(), D = n.validateAddItem(A, c.value);
3628
3625
  if (D) {
3629
3626
  r.value = D, o("add-error", D);
@@ -3714,7 +3711,7 @@ const oi = "_root_avx14_36", li = "_sizeMedium_avx14_44", on = {
3714
3711
  size: "small",
3715
3712
  variant: "text",
3716
3713
  label: A.addButtonText,
3717
- onClick: T
3714
+ onClick: $
3718
3715
  }, null, 8, ["label"])) : L("", !0)
3719
3716
  ])) : L("", !0),
3720
3717
  u.value.length === 0 && A.searchable ? pe(A.$slots, "no-results", { key: 1 }, void 0, !0) : (_(), m("ul", Vi, [
@@ -3847,7 +3844,7 @@ const oi = "_root_avx14_36", li = "_sizeMedium_avx14_44", on = {
3847
3844
  B(), s("cut", g);
3848
3845
  }, S = (g) => {
3849
3846
  B(), s("paste", g);
3850
- }, T = (g) => {
3847
+ }, $ = (g) => {
3851
3848
  B(), s("blur", g);
3852
3849
  }, B = () => {
3853
3850
  n.preventXss && l.value && (l.value.value = i(l.value.value));
@@ -3886,7 +3883,7 @@ const oi = "_root_avx14_36", li = "_sizeMedium_avx14_44", on = {
3886
3883
  rows: g.rowLength,
3887
3884
  style: se(o.value),
3888
3885
  value: r.value,
3889
- onBlur: T,
3886
+ onBlur: $,
3890
3887
  onClick: v,
3891
3888
  onCut: w,
3892
3889
  onInput: I,
@@ -4338,20 +4335,20 @@ const ms = ["src"], Tr = /* @__PURE__ */ K({
4338
4335
  const n = t, o = e;
4339
4336
  let s, l;
4340
4337
  const i = O(null), r = new Blob([rs(o.monacoVsPath)], { type: "text/html" }), u = URL.createObjectURL(r), c = fs(), v = async () => {
4341
- var T, B;
4342
- const S = (B = (T = i.value) == null ? void 0 : T.contentWindow) == null ? void 0 : B.monaco;
4338
+ var $, B;
4339
+ const S = (B = ($ = i.value) == null ? void 0 : $.contentWindow) == null ? void 0 : B.monaco;
4343
4340
  return S && (await c[o.language](s, S)).valid || !1;
4344
4341
  };
4345
4342
  async function I() {
4346
4343
  const S = i.value;
4347
4344
  if (!(S != null && S.contentWindow) || !S.contentDocument)
4348
4345
  return;
4349
- const { contentDocument: T, contentWindow: B } = S;
4346
+ const { contentDocument: $, contentWindow: B } = S;
4350
4347
  await B.editorPromise;
4351
- const { monaco: g } = B, A = T.querySelector(".editor");
4348
+ const { monaco: g } = B, A = $.querySelector(".editor");
4352
4349
  if (!A)
4353
4350
  return;
4354
- if (T.body.appendChild(A), o.language === "liquid")
4351
+ if ($.body.appendChild(A), o.language === "liquid")
4355
4352
  try {
4356
4353
  ps(g, () => o.liquidVariables);
4357
4354
  } catch (h) {
@@ -4396,7 +4393,7 @@ const ms = ["src"], Tr = /* @__PURE__ */ K({
4396
4393
  n("update:shouldShowLengthError", !1);
4397
4394
  }, 100));
4398
4395
  try {
4399
- const h = T.createElement("style"), P = o.errorGlyph ? ".monaco-editor .margin { background-color: #dcdee6 !important; } .monaco-editor .line-numbers { color: #91949f !important; text-align: center !important; font-family: Figtree, sans-serif !important; font-size: 15px !important; } .monaco-editor .view-overlays .current-line { border: none !important; background-color: #cceeff44 !important; }" : "";
4396
+ const h = $.createElement("style"), P = o.errorGlyph ? ".monaco-editor .margin { background-color: #dcdee6 !important; } .monaco-editor .line-numbers { color: #91949f !important; text-align: center !important; font-family: Figtree, sans-serif !important; font-size: 15px !important; } .monaco-editor .view-overlays .current-line { border: none !important; background-color: #cceeff44 !important; }" : "";
4400
4397
  h.textContent = `
4401
4398
  ${P}
4402
4399
  .decorationsOverviewRuler { display: none !important; }
@@ -4434,46 +4431,46 @@ const ms = ["src"], Tr = /* @__PURE__ */ K({
4434
4431
  color: #91949f;
4435
4432
  white-space: pre;
4436
4433
  }
4437
- `, T.head.appendChild(h);
4434
+ `, $.head.appendChild(h);
4438
4435
  const j = s.createDecorationsCollection(), R = s.getModel();
4439
4436
  if (l = g.editor.onDidChangeMarkers(() => {
4440
4437
  if (!R)
4441
4438
  return;
4442
- const F = g.editor.getModelMarkers({ resource: R.uri }).filter(($) => $.severity === g.MarkerSeverity.Error);
4443
- o.errorGlyph && j.set(F.map(($) => ({
4444
- range: new g.Range($.startLineNumber, 1, $.startLineNumber, 1),
4439
+ const F = g.editor.getModelMarkers({ resource: R.uri }).filter((T) => T.severity === g.MarkerSeverity.Error);
4440
+ o.errorGlyph && j.set(F.map((T) => ({
4441
+ range: new g.Range(T.startLineNumber, 1, T.startLineNumber, 1),
4445
4442
  options: {
4446
4443
  isWholeLine: !0,
4447
4444
  linesDecorationsClassName: "monaco-error-glyph"
4448
4445
  }
4449
4446
  }))), n("update:valid", F.length === 0);
4450
4447
  }), o.errorGlyph) {
4451
- const F = T.createElement("div");
4452
- F.className = "monaco-error-tooltip", F.style.display = "none", T.body.appendChild(F);
4453
- const $ = () => {
4448
+ const F = $.createElement("div");
4449
+ F.className = "monaco-error-tooltip", F.style.display = "none", $.body.appendChild(F);
4450
+ const T = () => {
4454
4451
  F.style.display = "none";
4455
4452
  };
4456
4453
  s.onMouseMove((H) => {
4457
4454
  var f;
4458
4455
  if (H.target.type !== g.editor.MouseTargetType.GUTTER_LINE_DECORATIONS || !H.target.position || !R) {
4459
- $();
4456
+ T();
4460
4457
  return;
4461
4458
  }
4462
4459
  const W = H.target.position.lineNumber, ee = g.editor.getModelMarkers({ resource: R.uri }).find((d) => d.severity === g.MarkerSeverity.Error && d.startLineNumber === W);
4463
4460
  if (!ee) {
4464
- $();
4461
+ T();
4465
4462
  return;
4466
4463
  }
4467
4464
  const ne = (f = H.target.element) == null ? void 0 : f.getBoundingClientRect();
4468
4465
  F.textContent = ee.message, F.style.display = "block", ne && (F.style.left = `${ne.left}px`, F.style.top = `${ne.bottom + 3}px`);
4469
- }), s.onMouseLeave($);
4466
+ }), s.onMouseLeave(T);
4470
4467
  }
4471
4468
  } catch (h) {
4472
4469
  console.error("[MonacoEditor] error-line highlight setup failed", h);
4473
4470
  }
4474
4471
  if (o.placeholder)
4475
4472
  try {
4476
- const h = T.createElement("div"), P = s.getOption(g.editor.EditorOption.fontInfo);
4473
+ const h = $.createElement("div"), P = s.getOption(g.editor.EditorOption.fontInfo);
4477
4474
  h.className = "monaco-placeholder", h.textContent = o.placeholder, h.style.left = `${s.getLayoutInfo().contentLeft}px`, h.style.fontFamily = P.fontFamily, h.style.fontSize = `${P.fontSize}px`, h.style.lineHeight = `${P.lineHeight}px`, A.appendChild(h);
4478
4475
  const j = () => {
4479
4476
  h.style.display = s.getValue().length === 0 ? "block" : "none";
@@ -4487,8 +4484,8 @@ const ms = ["src"], Tr = /* @__PURE__ */ K({
4487
4484
  return oe(
4488
4485
  () => o.liquidVariables,
4489
4486
  () => {
4490
- var T, B;
4491
- const S = (B = (T = i.value) == null ? void 0 : T.contentWindow) == null ? void 0 : B.monaco;
4487
+ var $, B;
4488
+ const S = (B = ($ = i.value) == null ? void 0 : $.contentWindow) == null ? void 0 : B.monaco;
4492
4489
  s && S && o.language === "liquid" && !o.disableValidation && c.liquid(s, S, o.liquidVariables.map((g) => g.key));
4493
4490
  }
4494
4491
  ), Ln(() => {
@@ -4499,7 +4496,7 @@ const ms = ["src"], Tr = /* @__PURE__ */ K({
4499
4496
  code: s.getValue(),
4500
4497
  valid: S
4501
4498
  };
4502
- } }), (S, T) => (_(), m("iframe", {
4499
+ } }), (S, $) => (_(), m("iframe", {
4503
4500
  ref_key: "iframe",
4504
4501
  ref: i,
4505
4502
  sandbox: "allow-same-origin allow-scripts allow-forms allow-modals allow-popups",