@sesamy/sesamy-components 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -147,7 +147,7 @@ function xe(t) {
147
147
  function kr(t, e = !1) {
148
148
  var n;
149
149
  const r = Me(t);
150
- return e || (r.equals = Kn), Pr && be !== null && be.l !== null && ((n = be.l).s ?? (n.s = [])).push(r), r;
150
+ return e || (r.equals = Kn), Pr && pe !== null && pe.l !== null && ((n = pe.l).s ?? (n.s = [])).push(r), r;
151
151
  }
152
152
  // @__NO_SIDE_EFFECTS__
153
153
  function Oi(t) {
@@ -159,14 +159,14 @@ function G(t, e) {
159
159
  (nt === null || !nt.includes(t)) && Ri(), Qt(t, e);
160
160
  }
161
161
  function Qt(t, e) {
162
- return t.equals(e) || (t.v, t.v = e, t.wv = fa(), Yo(t, _t), ur() && ee !== null && ee.f & Te && !(ee.f & (it | $t)) && (vt === null ? Ki([t]) : vt.push(t))), e;
162
+ return t.equals(e) || (t.v, t.v = e, t.wv = fa(), Yo(t, _t), ur() && Q !== null && Q.f & Te && !(Q.f & (it | $t)) && (vt === null ? Ki([t]) : vt.push(t))), e;
163
163
  }
164
164
  function Yo(t, e) {
165
165
  var r = t.reactions;
166
166
  if (r !== null)
167
167
  for (var n = ur(), o = r.length, a = 0; a < o; a++) {
168
168
  var i = r[a], l = i.f;
169
- l & _t || !n && i === ee || (Ke(i, e), l & (Te | jt) && (l & Be ? Yo(
169
+ l & _t || !n && i === Q || (Ke(i, e), l & (Te | jt) && (l & Be ? Yo(
170
170
  /** @type {Derived} */
171
171
  i,
172
172
  lr
@@ -299,7 +299,7 @@ function me(t, e = null, r) {
299
299
  if (s === wt)
300
300
  return !0;
301
301
  var d = o.get(s), h = d !== void 0 && d.v !== Se || Reflect.has(c, s);
302
- if (d !== void 0 || ee !== null && (!h || (v = bt(c, s)) != null && v.writable)) {
302
+ if (d !== void 0 || Q !== null && (!h || (v = bt(c, s)) != null && v.writable)) {
303
303
  d === void 0 && (d = Me(h ? me(c[s], l) : Se), o.set(s, d));
304
304
  var g = f(d);
305
305
  if (g === Se)
@@ -425,16 +425,16 @@ function Jo(t) {
425
425
  t.textContent = "";
426
426
  }
427
427
  // @__NO_SIDE_EFFECTS__
428
- function z(t) {
428
+ function R(t) {
429
429
  var e = Be | _t;
430
- ee === null ? e |= jt : ee.f |= Vo;
430
+ Q === null ? e |= jt : Q.f |= Vo;
431
431
  var r = se !== null && se.f & Be ? (
432
432
  /** @type {Derived} */
433
433
  se
434
434
  ) : null;
435
435
  const n = {
436
436
  children: null,
437
- ctx: be,
437
+ ctx: pe,
438
438
  deps: null,
439
439
  equals: Wo,
440
440
  f: e,
@@ -446,13 +446,13 @@ function z(t) {
446
446
  null
447
447
  ),
448
448
  wv: 0,
449
- parent: r ?? ee
449
+ parent: r ?? Q
450
450
  };
451
451
  return r !== null && (r.children ?? (r.children = [])).push(n), n;
452
452
  }
453
453
  // @__NO_SIDE_EFFECTS__
454
454
  function er(t) {
455
- const e = /* @__PURE__ */ z(t);
455
+ const e = /* @__PURE__ */ R(t);
456
456
  return e.equals = Kn, e;
457
457
  }
458
458
  function Xo(t) {
@@ -483,7 +483,7 @@ function $i(t) {
483
483
  return null;
484
484
  }
485
485
  function Qo(t) {
486
- var e, r = ee;
486
+ var e, r = Q;
487
487
  Pe($i(t));
488
488
  try {
489
489
  Xo(t), e = ha(t);
@@ -500,15 +500,15 @@ function Jn(t) {
500
500
  Xo(t), Ar(t, 0), Ke(t, sr), t.v = t.children = t.deps = t.ctx = t.reactions = null;
501
501
  }
502
502
  function ta(t) {
503
- ee === null && se === null && Ai(), se !== null && se.f & jt && Ei(), eo && Ci();
503
+ Q === null && se === null && Ai(), se !== null && se.f & jt && Ei(), eo && Ci();
504
504
  }
505
505
  function ji(t, e) {
506
506
  var r = e.last;
507
507
  r === null ? e.last = e.first = t : (r.next = t, t.prev = r, e.last = t);
508
508
  }
509
509
  function Ft(t, e, r, n = !0) {
510
- var o = (t & $t) !== 0, a = ee, i = {
511
- ctx: be,
510
+ var o = (t & $t) !== 0, a = Q, i = {
511
+ ctx: pe,
512
512
  deps: null,
513
513
  deriveds: null,
514
514
  nodes_start: null,
@@ -550,15 +550,15 @@ function Fi(t) {
550
550
  }
551
551
  function zn(t) {
552
552
  ta();
553
- var e = ee !== null && (ee.f & it) !== 0 && be !== null && !be.m;
553
+ var e = Q !== null && (Q.f & it) !== 0 && pe !== null && !pe.m;
554
554
  if (e) {
555
555
  var r = (
556
556
  /** @type {ComponentContext} */
557
- be
557
+ pe
558
558
  );
559
559
  (r.e ?? (r.e = [])).push({
560
560
  fn: t,
561
- effect: ee,
561
+ effect: Q,
562
562
  reaction: se
563
563
  });
564
564
  } else {
@@ -589,7 +589,7 @@ function Mr(t) {
589
589
  function Xn(t) {
590
590
  return Ft(Lr, t, !0);
591
591
  }
592
- function I(t, e = [], r = z) {
592
+ function I(t, e = [], r = R) {
593
593
  const n = e.map(r);
594
594
  return qt(() => t(...n.map(f)));
595
595
  }
@@ -735,9 +735,9 @@ let se = null, Tt = !1;
735
735
  function Oe(t) {
736
736
  se = t;
737
737
  }
738
- let ee = null;
738
+ let Q = null;
739
739
  function Pe(t) {
740
- ee = t;
740
+ Q = t;
741
741
  }
742
742
  let nt = null;
743
743
  function Zi(t) {
@@ -747,15 +747,15 @@ let Ne = null, Fe = 0, vt = null;
747
747
  function Ki(t) {
748
748
  vt = t;
749
749
  }
750
- let da = 1, an = 0, Dt = !1, be = null;
750
+ let da = 1, an = 0, Dt = !1, pe = null;
751
751
  function po(t) {
752
- be = t;
752
+ pe = t;
753
753
  }
754
754
  function fa() {
755
755
  return ++da;
756
756
  }
757
757
  function ur() {
758
- return !Pr || be !== null && be.l === null;
758
+ return !Pr || pe !== null && pe.l === null;
759
759
  }
760
760
  function zr(t) {
761
761
  var s;
@@ -765,7 +765,7 @@ function zr(t) {
765
765
  if (e & lr) {
766
766
  var r = t.deps, n = (e & jt) !== 0;
767
767
  if (r !== null) {
768
- var o, a, i = (e & rn) !== 0, l = n && ee !== null && !Dt, c = r.length;
768
+ var o, a, i = (e & rn) !== 0, l = n && Q !== null && !Dt, c = r.length;
769
769
  if (i || l) {
770
770
  for (o = 0; o < c; o++)
771
771
  a = r[o], (i || !((s = a == null ? void 0 : a.reactions) != null && s.includes(t))) && (a.reactions ?? (a.reactions = [])).push(t);
@@ -781,7 +781,7 @@ function zr(t) {
781
781
  ), a.wv > t.wv)
782
782
  return !0;
783
783
  }
784
- (!n || ee !== null && !Dt) && Ke(t, Te);
784
+ (!n || Q !== null && !Dt) && Ke(t, Te);
785
785
  }
786
786
  return !1;
787
787
  }
@@ -831,9 +831,9 @@ function va(t, e, r = 0) {
831
831
  }
832
832
  function ha(t) {
833
833
  var v;
834
- var e = Ne, r = Fe, n = vt, o = se, a = Dt, i = nt, l = be, c = Tt, s = t.f;
834
+ var e = Ne, r = Fe, n = vt, o = se, a = Dt, i = nt, l = pe, c = Tt, s = t.f;
835
835
  Ne = /** @type {null | Value[]} */
836
- null, Fe = 0, vt = null, se = s & (it | $t) ? null : t, Dt = !tr && (s & jt) !== 0, nt = null, be = t.ctx, Tt = !1, an++;
836
+ null, Fe = 0, vt = null, se = s & (it | $t) ? null : t, Dt = !tr && (s & jt) !== 0, nt = null, pe = t.ctx, Tt = !1, an++;
837
837
  try {
838
838
  var d = (
839
839
  /** @type {Function} */
@@ -860,7 +860,7 @@ function ha(t) {
860
860
  );
861
861
  return o !== null && an++, d;
862
862
  } finally {
863
- Ne = e, Fe = r, vt = n, se = o, Dt = a, nt = i, be = l, Tt = c;
863
+ Ne = e, Fe = r, vt = n, se = o, Dt = a, nt = i, pe = l, Tt = c;
864
864
  }
865
865
  }
866
866
  function Qi(t, e) {
@@ -891,8 +891,8 @@ function to(t) {
891
891
  var e = t.f;
892
892
  if (!(e & sr)) {
893
893
  Ke(t, Te);
894
- var r = ee, n = be;
895
- ee = t;
894
+ var r = Q, n = pe;
895
+ Q = t;
896
896
  try {
897
897
  e & sn ? Gi(t) : oa(t), na(t), ra(t);
898
898
  var o = ha(t);
@@ -902,7 +902,7 @@ function to(t) {
902
902
  } catch (l) {
903
903
  dn(l, t, r, n || t.ctx);
904
904
  } finally {
905
- ee = r;
905
+ Q = r;
906
906
  }
907
907
  }
908
908
  }
@@ -1072,15 +1072,15 @@ function Ke(t, e) {
1072
1072
  t.f = t.f & rl | e;
1073
1073
  }
1074
1074
  function fe(t, e = !1, r) {
1075
- be = {
1076
- p: be,
1075
+ pe = {
1076
+ p: pe,
1077
1077
  c: null,
1078
1078
  e: null,
1079
1079
  m: !1,
1080
1080
  s: t,
1081
1081
  x: null,
1082
1082
  l: null
1083
- }, Pr && !e && (be.l = {
1083
+ }, Pr && !e && (pe.l = {
1084
1084
  s: null,
1085
1085
  u: null,
1086
1086
  r1: [],
@@ -1088,12 +1088,12 @@ function fe(t, e = !1, r) {
1088
1088
  });
1089
1089
  }
1090
1090
  function ve(t) {
1091
- const e = be;
1091
+ const e = pe;
1092
1092
  if (e !== null) {
1093
1093
  t !== void 0 && (e.x = t);
1094
1094
  const i = e.e;
1095
1095
  if (i !== null) {
1096
- var r = ee, n = se;
1096
+ var r = Q, n = se;
1097
1097
  e.e = null;
1098
1098
  try {
1099
1099
  for (var o = 0; o < i.length; o++) {
@@ -1104,7 +1104,7 @@ function ve(t) {
1104
1104
  Pe(r), Oe(n);
1105
1105
  }
1106
1106
  }
1107
- be = e.p, e.m = !0;
1107
+ pe = e.p, e.m = !0;
1108
1108
  }
1109
1109
  return t || /** @type {T} */
1110
1110
  {};
@@ -1172,7 +1172,7 @@ function ba() {
1172
1172
  ));
1173
1173
  }
1174
1174
  function wa(t) {
1175
- var e = se, r = ee;
1175
+ var e = se, r = Q;
1176
1176
  Oe(null), Pe(null);
1177
1177
  try {
1178
1178
  return t();
@@ -1238,7 +1238,7 @@ function yr(t) {
1238
1238
  return a || r;
1239
1239
  }
1240
1240
  });
1241
- var d = se, h = ee;
1241
+ var d = se, h = Q;
1242
1242
  Oe(null), Pe(null);
1243
1243
  try {
1244
1244
  for (var g, v = []; a !== null; ) {
@@ -1279,7 +1279,7 @@ function ro(t) {
1279
1279
  function qe(t, e) {
1280
1280
  var r = (
1281
1281
  /** @type {Effect} */
1282
- ee
1282
+ Q
1283
1283
  );
1284
1284
  r.nodes_start === null && (r.nodes_start = t, r.nodes_end = e);
1285
1285
  }
@@ -1349,7 +1349,7 @@ function ie() {
1349
1349
  }
1350
1350
  function _(t, e) {
1351
1351
  if ($) {
1352
- ee.nodes_end = B, ot();
1352
+ Q.nodes_end = B, ot();
1353
1353
  return;
1354
1354
  }
1355
1355
  t !== null && t.before(
@@ -1361,7 +1361,7 @@ let ln = !0;
1361
1361
  function wo(t) {
1362
1362
  ln = t;
1363
1363
  }
1364
- function Q(t, e) {
1364
+ function X(t, e) {
1365
1365
  var r = e == null ? "" : typeof e == "object" ? e + "" : e;
1366
1366
  r !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = r, t.nodeValue = r == null ? "" : r + "");
1367
1367
  }
@@ -1422,7 +1422,7 @@ function Ea(t, { target: e, anchor: r, props: n = {}, events: o, context: a, int
1422
1422
  fe({});
1423
1423
  var g = (
1424
1424
  /** @type {ComponentContext} */
1425
- be
1425
+ pe
1426
1426
  );
1427
1427
  g.c = a;
1428
1428
  }
@@ -1430,7 +1430,7 @@ function Ea(t, { target: e, anchor: r, props: n = {}, events: o, context: a, int
1430
1430
  /** @type {TemplateNode} */
1431
1431
  h,
1432
1432
  null
1433
- ), ln = i, s = t(h, n) || {}, ln = !0, $ && (ee.nodes_end = B), a && ve();
1433
+ ), ln = i, s = t(h, n) || {}, ln = !0, $ && (Q.nodes_end = B), a && ve();
1434
1434
  }), () => {
1435
1435
  var u;
1436
1436
  for (var g of l) {
@@ -1454,7 +1454,7 @@ function il(t, e) {
1454
1454
  const Cn = 0, $r = 1, En = 2;
1455
1455
  function Rt(t, e, r, n, o) {
1456
1456
  $ && ot();
1457
- var a = t, i = ur(), l = be, c = Se, s, d, h, g = (i ? Me : kr)(
1457
+ var a = t, i = ur(), l = pe, c = Se, s, d, h, g = (i ? Me : kr)(
1458
1458
  /** @type {V} */
1459
1459
  void 0
1460
1460
  ), v = (i ? Me : kr)(void 0), u = !1;
@@ -1612,11 +1612,11 @@ function or(t, e, r, n, o, a = null) {
1612
1612
  }), $ && (i = B);
1613
1613
  }
1614
1614
  function sl(t, e, r, n, o, a, i, l) {
1615
- var ae, Z, te, F;
1615
+ var oe, Z, ee, F;
1616
1616
  var c = (o & Ka) !== 0, s = (o & (Bn | Un)) !== 0, d = t.length, h = e.items, g = e.first, v = g, u, m = null, b, p = [], w = [], k, C, y, x;
1617
1617
  if (c)
1618
1618
  for (x = 0; x < d; x += 1)
1619
- k = t[x], C = i(k, x), y = h.get(C), y !== void 0 && ((ae = y.a) == null || ae.measure(), (b ?? (b = /* @__PURE__ */ new Set())).add(y));
1619
+ k = t[x], C = i(k, x), y = h.get(C), y !== void 0 && ((oe = y.a) == null || oe.measure(), (b ?? (b = /* @__PURE__ */ new Set())).add(y));
1620
1620
  for (x = 0; x < d; x += 1) {
1621
1621
  if (k = t[x], C = i(k, x), y = h.get(C), y === void 0) {
1622
1622
  var ne = v ? (
@@ -1639,14 +1639,14 @@ function sl(t, e, r, n, o, a, i, l) {
1639
1639
  if (s && cl(y, k, x, o), y.e.f & rt && (Mt(y.e), c && ((Z = y.a) == null || Z.unfix(), (b ?? (b = /* @__PURE__ */ new Set())).delete(y))), y !== v) {
1640
1640
  if (u !== void 0 && u.has(y)) {
1641
1641
  if (p.length < w.length) {
1642
- var R = w[0], D;
1643
- m = R.prev;
1642
+ var N = w[0], D;
1643
+ m = N.prev;
1644
1644
  var Y = p[0], L = p[p.length - 1];
1645
1645
  for (D = 0; D < p.length; D += 1)
1646
- _o(p[D], R, r);
1646
+ _o(p[D], N, r);
1647
1647
  for (D = 0; D < w.length; D += 1)
1648
1648
  u.delete(w[D]);
1649
- Lt(e, Y.prev, L.next), Lt(e, m, Y), Lt(e, L, R), v = R, m = L, x -= 1, p = [], w = [];
1649
+ Lt(e, Y.prev, L.next), Lt(e, m, Y), Lt(e, L, N), v = N, m = L, x -= 1, p = [], w = [];
1650
1650
  } else
1651
1651
  u.delete(y), _o(y, v, r), Lt(e, y.prev, y.next), Lt(e, y, m === null ? e.first : m.next), Lt(e, m, y), m = y;
1652
1652
  continue;
@@ -1667,7 +1667,7 @@ function sl(t, e, r, n, o, a, i, l) {
1667
1667
  var U = o & Fo && d === 0 ? r : null;
1668
1668
  if (c) {
1669
1669
  for (x = 0; x < j; x += 1)
1670
- (te = E[x].a) == null || te.measure();
1670
+ (ee = E[x].a) == null || ee.measure();
1671
1671
  for (x = 0; x < j; x += 1)
1672
1672
  (F = E[x].a) == null || F.fix();
1673
1673
  }
@@ -1679,7 +1679,7 @@ function sl(t, e, r, n, o, a, i, l) {
1679
1679
  if (b !== void 0)
1680
1680
  for (y of b)
1681
1681
  (V = y.a) == null || V.apply();
1682
- }), ee.first = e.first && e.first.e, ee.last = m && m.e;
1682
+ }), Q.first = e.first && e.first.e, Q.last = m && m.e;
1683
1683
  }
1684
1684
  function cl(t, e, r, n) {
1685
1685
  n & Bn && Qt(t.v, e), n & Un ? Qt(
@@ -1806,7 +1806,7 @@ function ul(t, e, r, n, o, a) {
1806
1806
  );
1807
1807
  $ && (u === null ? Ze(!1) : Le(u)), n(s, u);
1808
1808
  }
1809
- ee.nodes_end = s, d.before(s);
1809
+ Q.nodes_end = s, d.before(s);
1810
1810
  })), l = g, l && (c = l), wo(!0));
1811
1811
  }, cr), i && (Ze(!0), Le(d));
1812
1812
  }
@@ -1856,7 +1856,7 @@ function Ce(t, e, r, n) {
1856
1856
  $ && (o[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || o[e] !== (o[e] = r) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[xi] = r), r == null ? t.removeAttribute(e) : typeof r != "string" && oo(t).includes(e) ? t[e] = r : t.setAttribute(e, r));
1857
1857
  }
1858
1858
  function hl(t, e, r) {
1859
- var n = se, o = ee;
1859
+ var n = se, o = Q;
1860
1860
  Oe(null), Pe(null);
1861
1861
  try {
1862
1862
  // Don't compute setters for custom elements while they aren't registered yet,
@@ -2028,7 +2028,7 @@ const wl = (t) => t;
2028
2028
  function _l(t, e, r, n) {
2029
2029
  var o = (t & ni) !== 0, a = "both", i, l = e.inert, c = e.style.overflow, s, d;
2030
2030
  function h() {
2031
- var b = se, p = ee;
2031
+ var b = se, p = Q;
2032
2032
  Oe(null), Pe(null);
2033
2033
  try {
2034
2034
  return i ?? (i = r()(e, (n == null ? void 0 : n()) ?? /** @type {P} */
@@ -2056,7 +2056,7 @@ function _l(t, e, r, n) {
2056
2056
  }
2057
2057
  }, v = (
2058
2058
  /** @type {Effect} */
2059
- ee
2059
+ Q
2060
2060
  );
2061
2061
  if ((v.transitions ?? (v.transitions = [])).push(g), ln) {
2062
2062
  var u = o;
@@ -2117,8 +2117,8 @@ function jn(t, e, r, n, o) {
2117
2117
  var C = !1;
2118
2118
  if (s)
2119
2119
  for (var y = Math.ceil(w / 16.666666666666668), x = 0; x <= y; x += 1) {
2120
- var ne = b + p * h(x / y), R = yo(s(ne, 1 - ne));
2121
- k.push(R), C || (C = R.overflow === "hidden");
2120
+ var ne = b + p * h(x / y), N = yo(s(ne, 1 - ne));
2121
+ k.push(N), C || (C = N.overflow === "hidden");
2122
2122
  }
2123
2123
  C && (t.style.overflow = "hidden"), u = () => {
2124
2124
  var D = (
@@ -2237,7 +2237,7 @@ function xr(t) {
2237
2237
  function za(t = !1) {
2238
2238
  const e = (
2239
2239
  /** @type {ComponentContextLegacy} */
2240
- be
2240
+ pe
2241
2241
  ), r = e.l.u;
2242
2242
  if (!r) return;
2243
2243
  let n = () => nl(e.s);
@@ -2246,7 +2246,7 @@ function za(t = !1) {
2246
2246
  /** @type {Record<string, any>} */
2247
2247
  {}
2248
2248
  );
2249
- const i = /* @__PURE__ */ z(() => {
2249
+ const i = /* @__PURE__ */ R(() => {
2250
2250
  let l = !1;
2251
2251
  const c = e.s;
2252
2252
  for (const s in c)
@@ -2360,7 +2360,7 @@ function ao(...t) {
2360
2360
  return new Proxy({ props: t }, Sl);
2361
2361
  }
2362
2362
  function ko(t) {
2363
- for (var e = ee, r = ee; e !== null && !(e.f & (it | $t)); )
2363
+ for (var e = Q, r = Q; e !== null && !(e.f & (it | $t)); )
2364
2364
  e = e.parent;
2365
2365
  try {
2366
2366
  return Pe(e), t();
@@ -2376,7 +2376,7 @@ function O(t, e, r, n) {
2376
2376
  t[e]
2377
2377
  )) : s = /** @type {V} */
2378
2378
  t[e];
2379
- var d = wt in t || Zn in t, h = i && (((ne = bt(t, e)) == null ? void 0 : ne.set) ?? (d && e in t && ((R) => t[e] = R))) || void 0, g = (
2379
+ var d = wt in t || Zn in t, h = i && (((ne = bt(t, e)) == null ? void 0 : ne.set) ?? (d && e in t && ((N) => t[e] = N))) || void 0, g = (
2380
2380
  /** @type {V} */
2381
2381
  n
2382
2382
  ), v = !0, u = !1, m = () => (u = !0, v && (v = !1, l ? g = Sr(
@@ -2388,43 +2388,43 @@ function O(t, e, r, n) {
2388
2388
  var b;
2389
2389
  if (a)
2390
2390
  b = () => {
2391
- var R = (
2391
+ var N = (
2392
2392
  /** @type {V} */
2393
2393
  t[e]
2394
2394
  );
2395
- return R === void 0 ? m() : (v = !0, u = !1, R);
2395
+ return N === void 0 ? m() : (v = !0, u = !1, N);
2396
2396
  };
2397
2397
  else {
2398
2398
  var p = ko(
2399
- () => (o ? z : er)(() => (
2399
+ () => (o ? R : er)(() => (
2400
2400
  /** @type {V} */
2401
2401
  t[e]
2402
2402
  ))
2403
2403
  );
2404
2404
  p.f |= _i, b = () => {
2405
- var R = f(p);
2406
- return R !== void 0 && (g = /** @type {V} */
2407
- void 0), R === void 0 ? g : R;
2405
+ var N = f(p);
2406
+ return N !== void 0 && (g = /** @type {V} */
2407
+ void 0), N === void 0 ? g : N;
2408
2408
  };
2409
2409
  }
2410
2410
  if (!(r & ei))
2411
2411
  return b;
2412
2412
  if (h) {
2413
2413
  var w = t.$$legacy;
2414
- return function(R, D) {
2415
- return arguments.length > 0 ? ((!a || !D || w || c) && h(D ? b() : R), R) : b();
2414
+ return function(N, D) {
2415
+ return arguments.length > 0 ? ((!a || !D || w || c) && h(D ? b() : N), N) : b();
2416
2416
  };
2417
2417
  }
2418
2418
  var k = !1, C = !1, y = /* @__PURE__ */ kr(s), x = ko(
2419
- () => /* @__PURE__ */ z(() => {
2420
- var R = b(), D = f(y);
2421
- return k ? (k = !1, C = !0, D) : (C = !1, y.v = R);
2419
+ () => /* @__PURE__ */ R(() => {
2420
+ var N = b(), D = f(y);
2421
+ return k ? (k = !1, C = !0, D) : (C = !1, y.v = N);
2422
2422
  })
2423
2423
  );
2424
- return o || (x.equals = Kn), function(R, D) {
2424
+ return o || (x.equals = Kn), function(N, D) {
2425
2425
  if (arguments.length > 0) {
2426
- const Y = D ? f(x) : a && i ? me(R) : R;
2427
- return x.equals(Y) || (k = !0, G(y, Y), u && g !== void 0 && (g = Y), Sr(() => f(x))), R;
2426
+ const Y = D ? f(x) : a && i ? me(N) : N;
2427
+ return x.equals(Y) || (k = !0, G(y, Y), u && g !== void 0 && (g = Y), Sr(() => f(x))), N;
2428
2428
  }
2429
2429
  return f(x);
2430
2430
  };
@@ -2951,7 +2951,7 @@ const ge = (t) => {
2951
2951
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2952
2952
  Wl.test(t) && !Yl.test(t)
2953
2953
  ), $a = () => !1, as = (t) => Zl.test(t), is = (t) => Kl.test(t), ls = () => {
2954
- const t = ge("colors"), e = ge("spacing"), r = ge("blur"), n = ge("brightness"), o = ge("borderColor"), a = ge("borderRadius"), i = ge("borderSpacing"), l = ge("borderWidth"), c = ge("contrast"), s = ge("grayscale"), d = ge("hueRotate"), h = ge("invert"), g = ge("gap"), v = ge("gradientColorStops"), u = ge("gradientColorStopPositions"), m = ge("inset"), b = ge("margin"), p = ge("opacity"), w = ge("padding"), k = ge("saturate"), C = ge("scale"), y = ge("sepia"), x = ge("skew"), ne = ge("space"), R = ge("translate"), D = () => ["auto", "contain", "none"], Y = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", H, e], E = () => [H, e], j = () => ["", ft, At], U = () => ["auto", nr, H], ae = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Z = () => ["solid", "dashed", "dotted", "double", "none"], te = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], V = () => ["", "0", H], J = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], N = () => [nr, H];
2954
+ const t = ge("colors"), e = ge("spacing"), r = ge("blur"), n = ge("brightness"), o = ge("borderColor"), a = ge("borderRadius"), i = ge("borderSpacing"), l = ge("borderWidth"), c = ge("contrast"), s = ge("grayscale"), d = ge("hueRotate"), h = ge("invert"), g = ge("gap"), v = ge("gradientColorStops"), u = ge("gradientColorStopPositions"), m = ge("inset"), b = ge("margin"), p = ge("opacity"), w = ge("padding"), k = ge("saturate"), C = ge("scale"), y = ge("sepia"), x = ge("skew"), ne = ge("space"), N = ge("translate"), D = () => ["auto", "contain", "none"], Y = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", H, e], E = () => [H, e], j = () => ["", ft, At], U = () => ["auto", nr, H], oe = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Z = () => ["solid", "dashed", "dotted", "double", "none"], ee = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], V = () => ["", "0", H], J = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], z = () => [nr, H];
2955
2955
  return {
2956
2956
  cacheSize: 500,
2957
2957
  separator: ":",
@@ -2959,26 +2959,26 @@ const ge = (t) => {
2959
2959
  colors: [wr],
2960
2960
  spacing: [ft, At],
2961
2961
  blur: ["none", "", St, H],
2962
- brightness: N(),
2962
+ brightness: z(),
2963
2963
  borderColor: [t],
2964
2964
  borderRadius: ["none", "", "full", St, H],
2965
2965
  borderSpacing: E(),
2966
2966
  borderWidth: j(),
2967
- contrast: N(),
2967
+ contrast: z(),
2968
2968
  grayscale: V(),
2969
- hueRotate: N(),
2969
+ hueRotate: z(),
2970
2970
  invert: V(),
2971
2971
  gap: E(),
2972
2972
  gradientColorStops: [t],
2973
2973
  gradientColorStopPositions: [Jl, At],
2974
2974
  inset: L(),
2975
2975
  margin: L(),
2976
- opacity: N(),
2976
+ opacity: z(),
2977
2977
  padding: E(),
2978
- saturate: N(),
2979
- scale: N(),
2978
+ saturate: z(),
2979
+ scale: z(),
2980
2980
  sepia: V(),
2981
- skew: N(),
2981
+ skew: z(),
2982
2982
  space: E(),
2983
2983
  translate: E()
2984
2984
  },
@@ -3074,7 +3074,7 @@ const ge = (t) => {
3074
3074
  * @see https://tailwindcss.com/docs/object-position
3075
3075
  */
3076
3076
  "object-position": [{
3077
- object: [...ae(), H]
3077
+ object: [...oe(), H]
3078
3078
  }],
3079
3079
  /**
3080
3080
  * Overflow
@@ -3883,7 +3883,7 @@ const ge = (t) => {
3883
3883
  * @see https://tailwindcss.com/docs/background-position
3884
3884
  */
3885
3885
  "bg-position": [{
3886
- bg: [...ae(), es]
3886
+ bg: [...oe(), es]
3887
3887
  }],
3888
3888
  /**
3889
3889
  * Background Repeat
@@ -4345,14 +4345,14 @@ const ge = (t) => {
4345
4345
  * @see https://tailwindcss.com/docs/mix-blend-mode
4346
4346
  */
4347
4347
  "mix-blend": [{
4348
- "mix-blend": [...te(), "plus-lighter", "plus-darker"]
4348
+ "mix-blend": [...ee(), "plus-lighter", "plus-darker"]
4349
4349
  }],
4350
4350
  /**
4351
4351
  * Background Blend Mode
4352
4352
  * @see https://tailwindcss.com/docs/background-blend-mode
4353
4353
  */
4354
4354
  "bg-blend": [{
4355
- "bg-blend": te()
4355
+ "bg-blend": ee()
4356
4356
  }],
4357
4357
  // Filters
4358
4358
  /**
@@ -4553,7 +4553,7 @@ const ge = (t) => {
4553
4553
  * @see https://tailwindcss.com/docs/transition-duration
4554
4554
  */
4555
4555
  duration: [{
4556
- duration: N()
4556
+ duration: z()
4557
4557
  }],
4558
4558
  /**
4559
4559
  * Transition Timing Function
@@ -4567,7 +4567,7 @@ const ge = (t) => {
4567
4567
  * @see https://tailwindcss.com/docs/transition-delay
4568
4568
  */
4569
4569
  delay: [{
4570
- delay: N()
4570
+ delay: z()
4571
4571
  }],
4572
4572
  /**
4573
4573
  * Animation
@@ -4617,14 +4617,14 @@ const ge = (t) => {
4617
4617
  * @see https://tailwindcss.com/docs/translate
4618
4618
  */
4619
4619
  "translate-x": [{
4620
- "translate-x": [R]
4620
+ "translate-x": [N]
4621
4621
  }],
4622
4622
  /**
4623
4623
  * Translate Y
4624
4624
  * @see https://tailwindcss.com/docs/translate
4625
4625
  */
4626
4626
  "translate-y": [{
4627
- "translate-y": [R]
4627
+ "translate-y": [N]
4628
4628
  }],
4629
4629
  /**
4630
4630
  * Skew X
@@ -5206,7 +5206,7 @@ function fr(t, e) {
5206
5206
  },
5207
5207
  (v, u) => {
5208
5208
  var m = Zu(), b = P(m, !0);
5209
- A(m), I(() => Q(b, f(u).message)), _(v, m);
5209
+ A(m), I(() => X(b, f(u).message)), _(v, m);
5210
5210
  }
5211
5211
  );
5212
5212
  var h = S(d, 2);
@@ -5240,7 +5240,7 @@ function qn(t, e) {
5240
5240
  }, b = (p) => {
5241
5241
  var w = Qu(), k = P(w, !0);
5242
5242
  A(w), I(
5243
- (C) => Q(k, C),
5243
+ (C) => X(k, C),
5244
5244
  [
5245
5245
  () => n().charAt(0).toUpperCase()
5246
5246
  ],
@@ -5356,8 +5356,8 @@ function nd(t, e) {
5356
5356
  "href",
5357
5357
  "class"
5358
5358
  ]);
5359
- const l = /* @__PURE__ */ z(() => re("inline-flex ring-2 ring-transparent focus:ring-primary/25 active:enabled:translate-y-px border border-transparent items-center justify-center outline-none font-medium rounded-md transition-colors duration-200 ease-in-out", a() == "sm" && "px-3 py-1.5 text-sm", a() == "md" && "px-4 py-2 text-base", a() == "lg" && "px-6 py-3 text-lg", n() === "primary" && "bg-primary text-white enabled:hover:bg-primary/90", n() === "secondary" && "bg-transparent border-primary text-primary enabled:hover:bg-primary/10", n() === "tertiary" && "text-primary enabled:hover:bg-primary/10", o() && "opacity-50 cursor-not-allowed", e.class));
5360
- var c = /* @__PURE__ */ z(() => f(l));
5359
+ const l = /* @__PURE__ */ R(() => re("inline-flex ring-2 ring-transparent focus:ring-primary/25 active:enabled:translate-y-px border border-transparent items-center justify-center outline-none font-medium rounded-md transition-colors duration-200 ease-in-out", a() == "sm" && "px-3 py-1.5 text-sm", a() == "md" && "px-4 py-2 text-base", a() == "lg" && "px-6 py-3 text-lg", n() === "primary" && "bg-primary text-white enabled:hover:bg-primary/90", n() === "secondary" && "bg-transparent border-primary text-primary enabled:hover:bg-primary/10", n() === "tertiary" && "text-primary enabled:hover:bg-primary/10", o() && "opacity-50 cursor-not-allowed", e.class));
5360
+ var c = /* @__PURE__ */ R(() => f(l));
5361
5361
  Fa(t, ao(
5362
5362
  {
5363
5363
  get class() {
@@ -5428,7 +5428,7 @@ function ud(t, e) {
5428
5428
  children: un,
5429
5429
  $$slots: {
5430
5430
  default: (u, m) => {
5431
- const b = /* @__PURE__ */ z(() => m.api), p = /* @__PURE__ */ z(() => m.t);
5431
+ const b = /* @__PURE__ */ R(() => m.api), p = /* @__PURE__ */ R(() => m.t);
5432
5432
  var w = ie(), k = T(w);
5433
5433
  Rt(
5434
5434
  k,
@@ -5439,7 +5439,7 @@ function ud(t, e) {
5439
5439
  (C, y) => {
5440
5440
  var x = ie(), ne = T(x);
5441
5441
  {
5442
- var R = (Y) => {
5442
+ var N = (Y) => {
5443
5443
  var L = sd(), E = P(L);
5444
5444
  E.__click = [od, l];
5445
5445
  var j = P(E);
@@ -5456,38 +5456,38 @@ function ud(t, e) {
5456
5456
  }), A(E);
5457
5457
  var U = S(E, 2);
5458
5458
  {
5459
- var ae = (Z) => {
5460
- var te = ld(), F = P(te);
5459
+ var oe = (Z) => {
5460
+ var ee = ld(), F = P(ee);
5461
5461
  Ae(F, e, "popup-menu", {}, (V) => {
5462
- var J = id(), N = P(J), oe = P(N), W = P(oe, !0);
5463
- A(oe), A(N);
5464
- var ce = S(N, 2), he = P(ce), pe = P(he, !0);
5462
+ var J = id(), z = P(J), ae = P(z), K = P(ae, !0);
5463
+ A(ae), A(z);
5464
+ var ce = S(z, 2), he = P(ce), be = P(he, !0);
5465
5465
  A(he), A(ce);
5466
- var K = S(ce, 2), le = P(K);
5466
+ var W = S(ce, 2), le = P(W);
5467
5467
  le.__click = [ad, h, b];
5468
- var X = P(le, !0);
5469
- A(le), A(K), A(J), I(
5468
+ var te = P(le, !0);
5469
+ A(le), A(W), A(J), I(
5470
5470
  (we, ye) => {
5471
5471
  var De;
5472
- Q(W, (De = f(c)) == null ? void 0 : De.email), Ce(he, "href", f(s)), Q(pe, we), Q(X, ye);
5472
+ X(K, (De = f(c)) == null ? void 0 : De.email), Ce(he, "href", f(s)), X(be, we), X(te, ye);
5473
5473
  },
5474
5474
  [
5475
5475
  () => f(p)("my_account"),
5476
5476
  () => f(p)("logout")
5477
5477
  ]
5478
5478
  ), _(V, J);
5479
- }), A(te), _(Z, te);
5479
+ }), A(ee), _(Z, ee);
5480
5480
  };
5481
5481
  q(U, (Z) => {
5482
- f(l) && Z(ae);
5482
+ f(l) && Z(oe);
5483
5483
  });
5484
5484
  }
5485
5485
  A(L), I(() => {
5486
5486
  E.disabled = r(), Ce(E, "aria-expanded", f(l));
5487
5487
  }), _(Y, L);
5488
5488
  }, D = (Y) => {
5489
- const L = /* @__PURE__ */ z(() => re("font-bold row gap-1.5 text-[color:--s-login-button-color] border-[color:--s-login-button-color] border-[length:--s-login-button-border-width]", a()));
5490
- var E = /* @__PURE__ */ z(() => f(L));
5489
+ const L = /* @__PURE__ */ R(() => re("font-bold row gap-1.5 text-[color:--s-login-button-color] border-[color:--s-login-button-color] border-[length:--s-login-button-border-width]", a()));
5490
+ var E = /* @__PURE__ */ R(() => f(L));
5491
5491
  nd(Y, {
5492
5492
  get class() {
5493
5493
  return f(E);
@@ -5499,21 +5499,21 @@ function ud(t, e) {
5499
5499
  onclick: () => d(f(b)),
5500
5500
  size: "sm",
5501
5501
  children: (j, U) => {
5502
- var ae = cd(), Z = T(ae);
5502
+ var oe = cd(), Z = T(oe);
5503
5503
  Ae(Z, e, "button-text-prefix", {}, null);
5504
- var te = S(Z, 2);
5505
- Ae(te, e, "button-text", {}, (V) => {
5504
+ var ee = S(Z, 2);
5505
+ Ae(ee, e, "button-text", {}, (V) => {
5506
5506
  var J = pt();
5507
- I((N) => Q(J, N), [() => f(p)("login")]), _(V, J);
5507
+ I((z) => X(J, z), [() => f(p)("login")]), _(V, J);
5508
5508
  });
5509
- var F = S(te, 2);
5510
- Ae(F, e, "button-text-suffix", {}, null), _(j, ae);
5509
+ var F = S(ee, 2);
5510
+ Ae(F, e, "button-text-suffix", {}, null), _(j, oe);
5511
5511
  },
5512
5512
  $$slots: { default: !0 }
5513
5513
  });
5514
5514
  };
5515
5515
  q(ne, (Y) => {
5516
- n() ? Y(R) : Y(D, !1);
5516
+ n() ? Y(N) : Y(D, !1);
5517
5517
  });
5518
5518
  }
5519
5519
  _(C, x);
@@ -5681,8 +5681,8 @@ function zt(t, e) {
5681
5681
  function Jr(t, e) {
5682
5682
  fe(e, !0);
5683
5683
  let r = O(e, "size", 3, "md");
5684
- const n = /* @__PURE__ */ z(() => re("aspect-[4/3] px-1 rounded bg-white text-black border border-transparent", e.name === "klarna" && "bg-[#FEB4C7]", e.name === "amex" && "bg-[#1F72CD]", r() === "sm" && "w-8 border-gray-300", r() === "md" && "w-10 shadow-sm", r() === "lg" && "w-12 shadow"));
5685
- var o = /* @__PURE__ */ z(() => f(n));
5684
+ const n = /* @__PURE__ */ R(() => re("aspect-[4/3] px-1 rounded bg-white text-black border border-transparent", e.name === "klarna" && "bg-[#FEB4C7]", e.name === "amex" && "bg-[#1F72CD]", r() === "sm" && "w-8 border-gray-300", r() === "md" && "w-10 shadow-sm", r() === "lg" && "w-12 shadow"));
5685
+ var o = /* @__PURE__ */ R(() => f(n));
5686
5686
  zt(t, {
5687
5687
  get class() {
5688
5688
  return f(o);
@@ -5704,8 +5704,8 @@ function ir(t, e) {
5704
5704
  let r = O(e, "loading", 7, !1), n = O(e, "variant", 7, "primary"), o = O(e, "disabled", 7, !1), a = O(e, "size", 7, "md"), i = O(e, "part", 7), l = O(e, "onclick", 7), c = O(e, "href", 7), s = O(e, "class", 7);
5705
5705
  return fr(t, {
5706
5706
  children: (d, h) => {
5707
- const g = /* @__PURE__ */ z(() => re("inline-flex font-bold ring-2 ring-transparent focus:ring-primary/25 active:enabled:translate-y-px border border-transparent items-center justify-center outline-none rounded-md transition-colors duration-200 ease-in-out", a() == "sm" && "px-3 py-1.5 text-sm", a() == "md" && "px-4 py-2 text-base", a() == "lg" && "px-6 py-3 text-lg", n() === "primary" && "bg-primary text-white enabled:hover:bg-primary/90", n() === "secondary" && "bg-transparent border-primary text-primary enabled:hover:bg-primary/10", n() === "tertiary" && "text-primary enabled:hover:bg-primary/10", o() && "opacity-50 cursor-not-allowed", s()));
5708
- var v = /* @__PURE__ */ z(() => f(g));
5707
+ const g = /* @__PURE__ */ R(() => re("inline-flex font-bold ring-2 ring-transparent focus:ring-primary/25 active:enabled:translate-y-px border border-transparent items-center justify-center outline-none rounded-md transition-colors duration-200 ease-in-out", a() == "sm" && "px-3 py-1.5 text-sm", a() == "md" && "px-4 py-2 text-base", a() == "lg" && "px-6 py-3 text-lg", n() === "primary" && "bg-primary text-white enabled:hover:bg-primary/90", n() === "secondary" && "bg-transparent border-primary text-primary enabled:hover:bg-primary/10", n() === "tertiary" && "text-primary enabled:hover:bg-primary/10", o() && "opacity-50 cursor-not-allowed", s()));
5708
+ var v = /* @__PURE__ */ R(() => f(g));
5709
5709
  Fa(d, {
5710
5710
  get class() {
5711
5711
  return f(v);
@@ -5842,7 +5842,7 @@ function qa(t, e) {
5842
5842
  var l = S(i, 2), c = P(l, !0);
5843
5843
  A(l), A(a), I(
5844
5844
  (s) => {
5845
- ke(l, _e(s)), Q(c, f(o));
5845
+ ke(l, _e(s)), X(c, f(o));
5846
5846
  },
5847
5847
  [() => re("flex-1 leading-snug")]
5848
5848
  ), _l(3, a, () => Pd), _(n, a);
@@ -5873,7 +5873,7 @@ function So(t, e) {
5873
5873
  var r = Nd(), n = P(r), o = S(P(n), 2), a = P(o, !0);
5874
5874
  A(o), A(n), A(r), I(
5875
5875
  (i, l) => {
5876
- ke(r, _e(i)), ke(n, _e(l)), Q(a, e.text);
5876
+ ke(r, _e(i)), ke(n, _e(l)), X(a, e.text);
5877
5877
  },
5878
5878
  [
5879
5879
  () => re("absolute top-2 -right-3 rotate-3", e.chunky && "top-5"),
@@ -5928,8 +5928,8 @@ function Kd(t, e) {
5928
5928
  discountCode: i.discountCode,
5929
5929
  redirectUrl: e.redirectUrl,
5930
5930
  business: i.preferBusiness
5931
- }), o = /* @__PURE__ */ z(() => re(r() && "@xl:grid-cols-3", r() && e.subscriptions.length === 4 && "@xl:grid-cols-2 @4xl:grid-cols-4", r() && e.subscriptions.length === 2 && "@xl:grid-cols-2", r() && e.subscriptions.length === 1 && "flex"));
5932
- var a = /* @__PURE__ */ z(() => f(o));
5931
+ }), o = /* @__PURE__ */ R(() => re(r() && "@xl:grid-cols-3", r() && e.subscriptions.length === 4 && "@xl:grid-cols-2 @4xl:grid-cols-4", r() && e.subscriptions.length === 2 && "@xl:grid-cols-2", r() && e.subscriptions.length === 1 && "flex"));
5932
+ var a = /* @__PURE__ */ R(() => f(o));
5933
5933
  lo(t, {
5934
5934
  get class() {
5935
5935
  return f(a);
@@ -5941,7 +5941,7 @@ function Kd(t, e) {
5941
5941
  var c = ie(), s = T(c);
5942
5942
  or(s, 17, () => e.subscriptions, gn, (d, h, g) => {
5943
5943
  var v = ie();
5944
- const u = /* @__PURE__ */ z(() => {
5944
+ const u = /* @__PURE__ */ R(() => {
5945
5945
  const {
5946
5946
  id: w,
5947
5947
  title: k,
@@ -5949,7 +5949,7 @@ function Kd(t, e) {
5949
5949
  price: y,
5950
5950
  periodText: x,
5951
5951
  features: ne,
5952
- selected: R,
5952
+ selected: N,
5953
5953
  tag: D,
5954
5954
  buttonText: Y,
5955
5955
  url: L,
@@ -5962,7 +5962,7 @@ function Kd(t, e) {
5962
5962
  price: y,
5963
5963
  periodText: x,
5964
5964
  features: ne,
5965
- selected: R,
5965
+ selected: N,
5966
5966
  tag: D,
5967
5967
  buttonText: Y,
5968
5968
  url: L,
@@ -5972,14 +5972,14 @@ function Kd(t, e) {
5972
5972
  var m = T(v);
5973
5973
  {
5974
5974
  var b = (w) => {
5975
- const k = /* @__PURE__ */ z(() => re("border bg-white dark:bg-black/25 border-gray-300 rounded-lg relative", f(u).tag && "border-primary mt-0 border-2"));
5976
- var C = /* @__PURE__ */ z(() => f(k));
5975
+ const k = /* @__PURE__ */ R(() => re("border bg-white dark:bg-black/25 border-gray-300 rounded-lg relative", f(u).tag && "border-primary mt-0 border-2"));
5976
+ var C = /* @__PURE__ */ R(() => f(k));
5977
5977
  mt(w, {
5978
5978
  get class() {
5979
5979
  return f(C);
5980
5980
  },
5981
5981
  children: (y, x) => {
5982
- var ne = Bd(), R = T(ne);
5982
+ var ne = Bd(), N = T(ne);
5983
5983
  {
5984
5984
  var D = (L) => {
5985
5985
  So(L, {
@@ -5992,11 +5992,11 @@ function Kd(t, e) {
5992
5992
  chunky: !0
5993
5993
  });
5994
5994
  };
5995
- q(R, (L) => {
5995
+ q(N, (L) => {
5996
5996
  f(u).tag && L(D);
5997
5997
  });
5998
5998
  }
5999
- var Y = S(R, 2);
5999
+ var Y = S(N, 2);
6000
6000
  mt(Y, {
6001
6001
  class: "p-4 flex-1 gap-2 w-full !justify-between shadow-md",
6002
6002
  left: !0,
@@ -6007,12 +6007,12 @@ function Kd(t, e) {
6007
6007
  class: "@xl:p-1",
6008
6008
  left: !0,
6009
6009
  children: (F, V) => {
6010
- var J = Fd(), N = T(J), oe = P(N, !0);
6011
- A(N);
6012
- var W = S(N, 2);
6010
+ var J = Fd(), z = T(J), ae = P(z, !0);
6011
+ A(z);
6012
+ var K = S(z, 2);
6013
6013
  {
6014
- var ce = (X) => {
6015
- mt(X, {
6014
+ var ce = (te) => {
6015
+ mt(te, {
6016
6016
  class: "mb-0 @xl:mb-4",
6017
6017
  left: !0,
6018
6018
  children: (we, ye) => {
@@ -6027,13 +6027,13 @@ function Kd(t, e) {
6027
6027
  var hr = Od(), Nr = T(hr, !0);
6028
6028
  Nr.nodeValue = " ";
6029
6029
  var gr = S(Nr), Ir = P(gr);
6030
- A(gr), I(() => Q(Ir, `/ ${f(u).periodText ?? ""}`)), _(vr, hr);
6030
+ A(gr), I(() => X(Ir, `/ ${f(u).periodText ?? ""}`)), _(vr, hr);
6031
6031
  };
6032
6032
  q(Rr, (vr) => {
6033
6033
  f(u).periodText && vr(pn);
6034
6034
  });
6035
6035
  }
6036
- A(ut), I(() => Q(mn, `${f(u).discountPrice ?? ""}
6036
+ A(ut), I(() => X(mn, `${f(u).discountPrice ?? ""}
6037
6037
  ${e.currency ?? ""}`)), _(et, ut);
6038
6038
  };
6039
6039
  q(st, (et) => {
@@ -6047,8 +6047,8 @@ function Kd(t, e) {
6047
6047
  var It = S(Qe, 2);
6048
6048
  A(Xe), I(
6049
6049
  (et, ut, tt) => {
6050
- ke(yt, _e(et)), Q(Ee, `${f(u).price ?? ""}
6051
- ${e.currency ?? ""}`), ke(Qe, _e(ut)), Q(ct, f(u).periodText && ` / ${f(u).periodText}`), ke(It, _e(tt));
6050
+ ke(yt, _e(et)), X(Ee, `${f(u).price ?? ""}
6051
+ ${e.currency ?? ""}`), ke(Qe, _e(ut)), X(ct, f(u).periodText && ` / ${f(u).periodText}`), ke(It, _e(tt));
6052
6052
  },
6053
6053
  [
6054
6054
  () => re("font-bold text-2xl @xl:text-4xl", f(u).discountPrice && "text-xl @xl:text-2xl text-gray-400"),
@@ -6060,84 +6060,79 @@ function Kd(t, e) {
6060
6060
  $$slots: { default: !0 }
6061
6061
  });
6062
6062
  };
6063
- q(W, (X) => {
6064
- typeof f(u).price == "number" && X(ce);
6063
+ q(K, (te) => {
6064
+ typeof f(u).price == "number" && te(ce);
6065
6065
  });
6066
6066
  }
6067
- var he = S(W, 2);
6067
+ var he = S(K, 2);
6068
6068
  {
6069
- var pe = (X) => {
6069
+ var be = (te) => {
6070
6070
  var we = jd(), ye = P(we, !0);
6071
- A(we), I(() => Q(ye, f(u).description)), _(X, we);
6071
+ A(we), I(() => X(ye, f(u).description)), _(te, we);
6072
6072
  };
6073
- q(he, (X) => {
6074
- f(u).description && (!f(u).features || f(u).features.length < 1) && X(pe);
6073
+ q(he, (te) => {
6074
+ f(u).description && (!f(u).features || f(u).features.length < 1) && te(be);
6075
6075
  });
6076
6076
  }
6077
- var K = S(he, 2);
6077
+ var W = S(he, 2);
6078
6078
  {
6079
- var le = (X) => {
6080
- qa(X, {
6079
+ var le = (te) => {
6080
+ qa(te, {
6081
6081
  get features() {
6082
6082
  return f(u).features;
6083
6083
  }
6084
6084
  });
6085
6085
  };
6086
- q(K, (X) => {
6087
- f(u).features && f(u).features.length > 0 && X(le);
6086
+ q(W, (te) => {
6087
+ f(u).features && f(u).features.length > 0 && te(le);
6088
6088
  });
6089
6089
  }
6090
- I(() => Q(oe, f(u).title)), _(F, J);
6090
+ I(() => X(ae, f(u).title)), _(F, J);
6091
6091
  },
6092
6092
  $$slots: { default: !0 }
6093
6093
  });
6094
- var ae = S(U, 2);
6094
+ var oe = S(U, 2);
6095
6095
  {
6096
6096
  var Z = (F) => {
6097
- var V = /* @__PURE__ */ z(() => f(u).selected || f(u).tag ? "primary" : "secondary");
6098
6097
  ir(F, {
6099
6098
  get href() {
6100
6099
  return f(u).url;
6101
6100
  },
6102
6101
  class: "w-full mt-4",
6103
- get variant() {
6104
- return f(V);
6105
- },
6106
- children: (J, N) => {
6102
+ variant: "primary",
6103
+ children: (V, J) => {
6107
6104
  Ge();
6108
- var oe = pt();
6109
- I((W) => Q(oe, W), [
6105
+ var z = pt();
6106
+ I((ae) => X(z, ae), [
6110
6107
  () => f(u).buttonText || e.t("continue")
6111
- ]), _(J, oe);
6108
+ ]), _(V, z);
6112
6109
  },
6113
6110
  $$slots: { default: !0 }
6114
6111
  });
6115
- }, te = (F) => {
6112
+ }, ee = (F) => {
6116
6113
  var V = ie(), J = T(V);
6117
- Rt(J, () => n(f(h)), null, (N, oe) => {
6118
- const W = /* @__PURE__ */ z(() => f(oe).replace("poId", "option"));
6119
- var ce = /* @__PURE__ */ z(() => f(W)), he = /* @__PURE__ */ z(() => f(u).selected || f(u).tag ? "primary" : "secondary");
6120
- ir(N, {
6114
+ Rt(J, () => n(f(h)), null, (z, ae) => {
6115
+ const K = /* @__PURE__ */ R(() => f(ae).replace("poId", "option"));
6116
+ var ce = /* @__PURE__ */ R(() => f(K));
6117
+ ir(z, {
6121
6118
  get href() {
6122
6119
  return f(ce);
6123
6120
  },
6124
6121
  class: "w-full mt-4",
6125
- get variant() {
6126
- return f(he);
6127
- },
6128
- children: (pe, K) => {
6122
+ variant: "primary",
6123
+ children: (he, be) => {
6129
6124
  Ge();
6130
- var le = pt();
6131
- I((X) => Q(le, X), [
6125
+ var W = pt();
6126
+ I((le) => X(W, le), [
6132
6127
  () => f(u).buttonText || e.t("continue")
6133
- ]), _(pe, le);
6128
+ ]), _(he, W);
6134
6129
  },
6135
6130
  $$slots: { default: !0 }
6136
6131
  });
6137
6132
  }), _(F, V);
6138
6133
  };
6139
- q(ae, (F) => {
6140
- f(u).url ? F(Z) : F(te, !1);
6134
+ q(oe, (F) => {
6135
+ f(u).url ? F(Z) : F(ee, !1);
6141
6136
  });
6142
6137
  }
6143
6138
  _(L, j);
@@ -6151,10 +6146,10 @@ function Kd(t, e) {
6151
6146
  var k = Zd(), C = T(k);
6152
6147
  {
6153
6148
  var y = (ne) => {
6154
- var R = Ud();
6155
- I((D) => ke(R, _e(D)), [
6149
+ var N = Ud();
6150
+ I((D) => ke(N, _e(D)), [
6156
6151
  () => re("w-full border-gray-10 dark:border-gray-800")
6157
- ]), _(ne, R);
6152
+ ]), _(ne, N);
6158
6153
  };
6159
6154
  q(C, (ne) => {
6160
6155
  g && ne(y);
@@ -6171,42 +6166,42 @@ function Kd(t, e) {
6171
6166
  return f(u).selected;
6172
6167
  },
6173
6168
  onchange: () => e.selectProduct(f(h)),
6174
- children: (ne, R) => {
6169
+ children: (ne, N) => {
6175
6170
  var D = Yd(), Y = T(D);
6176
6171
  mt(Y, {
6177
6172
  class: "flex-1",
6178
6173
  left: !0,
6179
6174
  children: (F, V) => {
6180
- var J = Hd(), N = T(J), oe = P(N, !0);
6181
- A(N);
6182
- var W = S(N, 2);
6175
+ var J = Hd(), z = T(J), ae = P(z, !0);
6176
+ A(z);
6177
+ var K = S(z, 2);
6183
6178
  {
6184
6179
  var ce = (he) => {
6185
- var pe = Gd(), K = P(pe, !0);
6186
- A(pe), I(() => Q(K, f(u).description)), _(he, pe);
6180
+ var be = Gd(), W = P(be, !0);
6181
+ A(be), I(() => X(W, f(u).description)), _(he, be);
6187
6182
  };
6188
- q(W, (he) => {
6183
+ q(K, (he) => {
6189
6184
  f(u).description && he(ce);
6190
6185
  });
6191
6186
  }
6192
- I(() => Q(oe, f(u).title)), _(F, J);
6187
+ I(() => X(ae, f(u).title)), _(F, J);
6193
6188
  },
6194
6189
  $$slots: { default: !0 }
6195
6190
  });
6196
6191
  var L = S(Y, 2), E = P(L);
6197
6192
  {
6198
6193
  var j = (F) => {
6199
- var V = Vd(), J = P(V), N = S(J);
6194
+ var V = Vd(), J = P(V), z = S(J);
6200
6195
  {
6201
- var oe = (W) => {
6196
+ var ae = (K) => {
6202
6197
  var ce = pt();
6203
- I(() => Q(ce, ` / ${f(u).periodText ?? ""}`)), _(W, ce);
6198
+ I(() => X(ce, ` / ${f(u).periodText ?? ""}`)), _(K, ce);
6204
6199
  };
6205
- q(N, (W) => {
6206
- f(u).periodText && W(oe);
6200
+ q(z, (K) => {
6201
+ f(u).periodText && K(ae);
6207
6202
  });
6208
6203
  }
6209
- A(V), I(() => Q(J, `${f(u).discountPrice ?? ""}
6204
+ A(V), I(() => X(J, `${f(u).discountPrice ?? ""}
6210
6205
  ${e.currency ?? ""} `)), _(F, V);
6211
6206
  };
6212
6207
  q(E, (F) => {
@@ -6215,20 +6210,20 @@ function Kd(t, e) {
6215
6210
  }
6216
6211
  var U = S(E, 2);
6217
6212
  {
6218
- var ae = (F) => {
6219
- var V = Wd(), J = P(V), N = S(J);
6213
+ var oe = (F) => {
6214
+ var V = Wd(), J = P(V), z = S(J);
6220
6215
  {
6221
- var oe = (W) => {
6216
+ var ae = (K) => {
6222
6217
  var ce = pt();
6223
- I(() => Q(ce, ` / ${f(u).periodText ?? ""}`)), _(W, ce);
6218
+ I(() => X(ce, ` / ${f(u).periodText ?? ""}`)), _(K, ce);
6224
6219
  };
6225
- q(N, (W) => {
6226
- f(u).periodText && W(oe);
6220
+ q(z, (K) => {
6221
+ f(u).periodText && K(ae);
6227
6222
  });
6228
6223
  }
6229
6224
  A(V), I(
6230
- (W) => {
6231
- ke(V, _e(W)), Q(J, `${f(u).price ?? ""}
6225
+ (K) => {
6226
+ ke(V, _e(K)), X(J, `${f(u).price ?? ""}
6232
6227
  ${e.currency ?? ""} `);
6233
6228
  },
6234
6229
  [
@@ -6237,13 +6232,13 @@ function Kd(t, e) {
6237
6232
  ), _(F, V);
6238
6233
  };
6239
6234
  q(U, (F) => {
6240
- f(u).price && F(ae);
6235
+ f(u).price && F(oe);
6241
6236
  });
6242
6237
  }
6243
6238
  A(L);
6244
6239
  var Z = S(L, 2);
6245
6240
  {
6246
- var te = (F) => {
6241
+ var ee = (F) => {
6247
6242
  So(F, {
6248
6243
  get text() {
6249
6244
  return f(u).tag;
@@ -6254,7 +6249,7 @@ function Kd(t, e) {
6254
6249
  });
6255
6250
  };
6256
6251
  q(Z, (F) => {
6257
- f(u).tag && F(te);
6252
+ f(u).tag && F(ee);
6258
6253
  });
6259
6254
  }
6260
6255
  _(ne, D);
@@ -6307,11 +6302,11 @@ function Qd(t, e) {
6307
6302
  var y = Xd(), x = T(y);
6308
6303
  mt(x, {
6309
6304
  left: !0,
6310
- children: (R, D) => {
6305
+ children: (N, D) => {
6311
6306
  var Y = Jd(), L = T(Y);
6312
6307
  L.textContent = d;
6313
6308
  var E = S(L, 2);
6314
- E.textContent = h, _(R, Y);
6309
+ E.textContent = h, _(N, Y);
6315
6310
  },
6316
6311
  $$slots: { default: !0 }
6317
6312
  });
@@ -6337,7 +6332,7 @@ function Ba(t, e) {
6337
6332
  children: (r, n) => {
6338
6333
  Ge();
6339
6334
  var o = pt();
6340
- I(() => Q(o, `• ${e.text ?? ""}`)), _(r, o);
6335
+ I(() => X(o, `• ${e.text ?? ""}`)), _(r, o);
6341
6336
  },
6342
6337
  $$slots: { default: !0 }
6343
6338
  });
@@ -6619,7 +6614,7 @@ function qr(t, e) {
6619
6614
  var u = of(), m = P(u, !0);
6620
6615
  A(u), I(
6621
6616
  (b) => {
6622
- ke(u, _e(b)), Q(m, o());
6617
+ ke(u, _e(b)), X(m, o());
6623
6618
  },
6624
6619
  [
6625
6620
  () => re("pointer-events-none absolute left-4 right-4 top-1/2 line-clamp-1 -translate-y-1/2 text-base font-medium text-gray-400 transition-[transform,font-size] peer-focus-visible:-translate-y-[calc(50%+theme(space.3))] peer-focus:text-xs", !!r() && "-translate-y-[calc(50%+theme(space.3))] text-xs sm:text-xs")
@@ -6672,7 +6667,7 @@ function ff(t, e) {
6672
6667
  let p = () => f(b).value, w = () => f(b).label;
6673
6668
  var k = cf(), C = {}, y = P(k, !0);
6674
6669
  A(k), I(() => {
6675
- C !== (C = p()) && (k.value = (k.__value = p()) == null ? "" : p()), Q(y, w());
6670
+ C !== (C = p()) && (k.value = (k.__value = p()) == null ? "" : p()), X(y, w());
6676
6671
  }), _(m, k);
6677
6672
  }), A(s);
6678
6673
  var g = S(s, 2);
@@ -6681,7 +6676,7 @@ function ff(t, e) {
6681
6676
  var b = uf(), p = P(b, !0);
6682
6677
  A(b), I(
6683
6678
  (w) => {
6684
- ke(b, _e(w)), Q(p, a());
6679
+ ke(b, _e(w)), X(p, a());
6685
6680
  },
6686
6681
  [
6687
6682
  () => re("pointer-events-none absolute left-4 right-4 top-1/2 line-clamp-1 -translate-y-1/2 text-base font-medium text-gray-400 transition-[transform,font-size] peer-focus:-translate-y-[calc(50%+theme(space.3))] peer-focus:text-xs", r() !== void 0 && r() && "-translate-y-[calc(50%+theme(space.3))] text-xs sm:text-xs")
@@ -7142,9 +7137,9 @@ function Ff(t, e) {
7142
7137
  const r = nf(e.checkout.language);
7143
7138
  let n = xe(""), o = xe(""), a = xe(""), i = xe(""), l = xe(me(e.checkout.country || "SE")), c = xe(!1), s = xe(void 0), d = xe(void 0), h = xe(""), g;
7144
7139
  const v = () => {
7145
- var E, j, U, ae, Z, te, F, V, J, N, oe, W, ce, he, pe, K, le, X;
7140
+ var E, j, U, oe, Z, ee, F, V, J, z, ae, K, ce, he, be, W, le, te;
7146
7141
  const L = [];
7147
- vf(f(n)) || L.push(["email", "invalid_email"]), (U = (j = (E = e.checkout) == null ? void 0 : E.fieldSettings) == null ? void 0 : j.phone) != null && U.enabled && ((te = (Z = (ae = e.checkout) == null ? void 0 : ae.fieldSettings) == null ? void 0 : Z.phone) != null && te.required) && !f(i) && L.push(["phoneNumber", "phone_number_required"]), (J = (V = (F = e.checkout) == null ? void 0 : F.fieldSettings) == null ? void 0 : V.name) != null && J.enabled && ((W = (oe = (N = e.checkout) == null ? void 0 : N.fieldSettings) == null ? void 0 : oe.name) != null && W.required) && !f(o) && L.push(["firstName", "first_name_required"]), (pe = (he = (ce = e.checkout) == null ? void 0 : ce.fieldSettings) == null ? void 0 : he.name) != null && pe.enabled && ((X = (le = (K = e.checkout) == null ? void 0 : K.fieldSettings) == null ? void 0 : le.name) != null && X.required) && !f(a) && L.push(["lastName", "last_name_required"]), G(s, me(L.length ? L.reduce((we, [ye, De]) => ({ ...we, [ye]: De }), {}) : void 0));
7142
+ vf(f(n)) || L.push(["email", "invalid_email"]), (U = (j = (E = e.checkout) == null ? void 0 : E.fieldSettings) == null ? void 0 : j.phone) != null && U.enabled && ((ee = (Z = (oe = e.checkout) == null ? void 0 : oe.fieldSettings) == null ? void 0 : Z.phone) != null && ee.required) && !f(i) && L.push(["phoneNumber", "phone_number_required"]), (J = (V = (F = e.checkout) == null ? void 0 : F.fieldSettings) == null ? void 0 : V.name) != null && J.enabled && ((K = (ae = (z = e.checkout) == null ? void 0 : z.fieldSettings) == null ? void 0 : ae.name) != null && K.required) && !f(o) && L.push(["firstName", "first_name_required"]), (be = (he = (ce = e.checkout) == null ? void 0 : ce.fieldSettings) == null ? void 0 : he.name) != null && be.enabled && ((te = (le = (W = e.checkout) == null ? void 0 : W.fieldSettings) == null ? void 0 : le.name) != null && te.required) && !f(a) && L.push(["lastName", "last_name_required"]), G(s, me(L.length ? L.reduce((we, [ye, De]) => ({ ...we, [ye]: De }), {}) : void 0));
7148
7143
  }, u = (L) => G(d, me(L)), m = () => {
7149
7144
  G(s, void 0), clearTimeout(g), g = setTimeout(
7150
7145
  () => {
@@ -7197,10 +7192,10 @@ function Ff(t, e) {
7197
7192
  sf(y, {
7198
7193
  children: (L, E) => {
7199
7194
  var j = Of(), U = T(j);
7200
- const ae = /* @__PURE__ */ z(() => e.t("email"));
7201
- var Z = /* @__PURE__ */ z(() => f(ae)), te = /* @__PURE__ */ z(() => {
7202
- var K;
7203
- return (K = f(s)) == null ? void 0 : K.email;
7195
+ const oe = /* @__PURE__ */ R(() => e.t("email"));
7196
+ var Z = /* @__PURE__ */ R(() => f(oe)), ee = /* @__PURE__ */ R(() => {
7197
+ var W;
7198
+ return (W = f(s)) == null ? void 0 : W.email;
7204
7199
  });
7205
7200
  qr(U, {
7206
7201
  onkeyup: m,
@@ -7209,27 +7204,27 @@ function Ff(t, e) {
7209
7204
  return f(Z);
7210
7205
  },
7211
7206
  get hasError() {
7212
- return f(te);
7207
+ return f(ee);
7213
7208
  },
7214
7209
  get value() {
7215
7210
  return f(n);
7216
7211
  },
7217
- set value(K) {
7218
- G(n, me(K));
7212
+ set value(W) {
7213
+ G(n, me(W));
7219
7214
  }
7220
7215
  });
7221
- var F = S(U, 2), V = /* @__PURE__ */ z(() => !!f(h));
7216
+ var F = S(U, 2), V = /* @__PURE__ */ R(() => !!f(h));
7222
7217
  Tf(F, {
7223
7218
  get isOpen() {
7224
7219
  return f(V);
7225
7220
  },
7226
- children: (K, le) => {
7227
- zt(K, {
7221
+ children: (W, le) => {
7222
+ zt(W, {
7228
7223
  onclick: () => {
7229
7224
  G(n, me(f(h))), G(h, "");
7230
7225
  },
7231
7226
  class: "bg-primary/10 gap-4 px-2 py-3 !justify-between active:bg-primary/10 text-sm border-x border-gray-200 text-gray-500 hover:cursor-pointer hover:bg-primary/15 transition-colors duration-75",
7232
- children: (X, we) => {
7227
+ children: (te, we) => {
7233
7228
  var ye = Nf(), De = T(ye);
7234
7229
  zt(De, {
7235
7230
  class: "gap-2",
@@ -7239,7 +7234,7 @@ function Ff(t, e) {
7239
7234
  var ct = S(Qe, 2), It = P(ct), et = S(It), ut = P(et, !0);
7240
7235
  A(et), Ge(), A(ct), I(
7241
7236
  (tt) => {
7242
- Q(It, `${tt ?? ""} `), Q(ut, f(h));
7237
+ X(It, `${tt ?? ""} `), X(ut, f(h));
7243
7238
  },
7244
7239
  [() => e.t("did_you_mean")]
7245
7240
  ), _(Xe, Ee);
@@ -7247,7 +7242,7 @@ function Ff(t, e) {
7247
7242
  $$slots: { default: !0 }
7248
7243
  });
7249
7244
  var st = S(De, 2), Nt = P(st, !0);
7250
- A(st), I((Xe) => Q(Nt, Xe), [() => e.t("click_to_update")]), _(X, ye);
7245
+ A(st), I((Xe) => X(Nt, Xe), [() => e.t("click_to_update")]), _(te, ye);
7251
7246
  },
7252
7247
  $$slots: { default: !0 }
7253
7248
  });
@@ -7255,34 +7250,34 @@ function Ff(t, e) {
7255
7250
  $$slots: { default: !0 }
7256
7251
  });
7257
7252
  var J = S(F, 2);
7258
- const N = /* @__PURE__ */ z(() => e.t("country"));
7259
- var oe = /* @__PURE__ */ z(() => f(N));
7253
+ const z = /* @__PURE__ */ R(() => e.t("country"));
7254
+ var ae = /* @__PURE__ */ R(() => f(z));
7260
7255
  ff(J, {
7261
7256
  options: r,
7262
7257
  compact: !0,
7263
7258
  get placeholder() {
7264
- return f(oe);
7259
+ return f(ae);
7265
7260
  },
7266
7261
  get value() {
7267
7262
  return f(l);
7268
7263
  },
7269
- set value(K) {
7270
- G(l, me(K));
7264
+ set value(W) {
7265
+ G(l, me(W));
7271
7266
  }
7272
7267
  });
7273
- var W = S(J, 2);
7268
+ var K = S(J, 2);
7274
7269
  {
7275
- var ce = (K) => {
7276
- const le = /* @__PURE__ */ z(() => e.t("phone_number"));
7277
- var X = /* @__PURE__ */ z(() => f(le)), we = /* @__PURE__ */ z(() => {
7270
+ var ce = (W) => {
7271
+ const le = /* @__PURE__ */ R(() => e.t("phone_number"));
7272
+ var te = /* @__PURE__ */ R(() => f(le)), we = /* @__PURE__ */ R(() => {
7278
7273
  var ye;
7279
7274
  return (ye = f(s)) == null ? void 0 : ye.phoneNumber;
7280
7275
  });
7281
- qr(K, {
7276
+ qr(W, {
7282
7277
  onkeyup: () => G(s, void 0),
7283
7278
  compact: !0,
7284
7279
  get placeholder() {
7285
- return f(X);
7280
+ return f(te);
7286
7281
  },
7287
7282
  get hasError() {
7288
7283
  return f(we);
@@ -7295,21 +7290,21 @@ function Ff(t, e) {
7295
7290
  }
7296
7291
  });
7297
7292
  };
7298
- q(W, (K) => {
7299
- var le, X, we;
7300
- (we = (X = (le = e.checkout) == null ? void 0 : le.fieldSettings) == null ? void 0 : X.phone) != null && we.enabled && K(ce);
7293
+ q(K, (W) => {
7294
+ var le, te, we;
7295
+ (we = (te = (le = e.checkout) == null ? void 0 : le.fieldSettings) == null ? void 0 : te.phone) != null && we.enabled && W(ce);
7301
7296
  });
7302
7297
  }
7303
- var he = S(W, 2);
7298
+ var he = S(K, 2);
7304
7299
  {
7305
- var pe = (K) => {
7306
- var le = If(), X = T(le);
7307
- const we = /* @__PURE__ */ z(() => e.t("first_name"));
7308
- var ye = /* @__PURE__ */ z(() => f(we)), De = /* @__PURE__ */ z(() => {
7300
+ var be = (W) => {
7301
+ var le = If(), te = T(le);
7302
+ const we = /* @__PURE__ */ R(() => e.t("first_name"));
7303
+ var ye = /* @__PURE__ */ R(() => f(we)), De = /* @__PURE__ */ R(() => {
7309
7304
  var Ee;
7310
7305
  return (Ee = f(s)) == null ? void 0 : Ee.firstName;
7311
7306
  });
7312
- qr(X, {
7307
+ qr(te, {
7313
7308
  onkeyup: () => G(s, void 0),
7314
7309
  compact: !0,
7315
7310
  get placeholder() {
@@ -7325,9 +7320,9 @@ function Ff(t, e) {
7325
7320
  G(o, me(Ee));
7326
7321
  }
7327
7322
  });
7328
- var st = S(X, 2);
7329
- const Nt = /* @__PURE__ */ z(() => e.t("last_name"));
7330
- var Xe = /* @__PURE__ */ z(() => f(Nt)), yt = /* @__PURE__ */ z(() => {
7323
+ var st = S(te, 2);
7324
+ const Nt = /* @__PURE__ */ R(() => e.t("last_name"));
7325
+ var Xe = /* @__PURE__ */ R(() => f(Nt)), yt = /* @__PURE__ */ R(() => {
7331
7326
  var Ee;
7332
7327
  return (Ee = f(s)) == null ? void 0 : Ee.lastName;
7333
7328
  });
@@ -7346,11 +7341,11 @@ function Ff(t, e) {
7346
7341
  set value(Ee) {
7347
7342
  G(a, me(Ee));
7348
7343
  }
7349
- }), _(K, le);
7344
+ }), _(W, le);
7350
7345
  };
7351
- q(he, (K) => {
7352
- var le, X, we;
7353
- (we = (X = (le = e.checkout) == null ? void 0 : le.fieldSettings) == null ? void 0 : X.name) != null && we.enabled && K(pe);
7346
+ q(he, (W) => {
7347
+ var le, te, we;
7348
+ (we = (te = (le = e.checkout) == null ? void 0 : le.fieldSettings) == null ? void 0 : te.name) != null && we.enabled && W(be);
7354
7349
  });
7355
7350
  }
7356
7351
  _(L, j);
@@ -7359,16 +7354,16 @@ function Ff(t, e) {
7359
7354
  });
7360
7355
  var x = S(y, 2);
7361
7356
  or(x, 23, () => p, (L) => `${L.provider}-${L.method}`, (L, E, j) => {
7362
- const U = /* @__PURE__ */ z(() => {
7363
- const { provider: ae, method: Z, icon: te } = f(E);
7364
- return { provider: ae, method: Z, icon: te };
7357
+ const U = /* @__PURE__ */ R(() => {
7358
+ const { provider: oe, method: Z, icon: ee } = f(E);
7359
+ return { provider: oe, method: Z, icon: ee };
7365
7360
  });
7366
7361
  lo(L, {
7367
- children: (ae, Z) => {
7368
- var te = /* @__PURE__ */ z(() => !f(j)), F = /* @__PURE__ */ z(() => `${f(U).provider}-${f(U).method}`);
7369
- so(ae, {
7362
+ children: (oe, Z) => {
7363
+ var ee = /* @__PURE__ */ R(() => !f(j)), F = /* @__PURE__ */ R(() => `${f(U).provider}-${f(U).method}`);
7364
+ so(oe, {
7370
7365
  get checked() {
7371
- return f(te);
7366
+ return f(ee);
7372
7367
  },
7373
7368
  get id() {
7374
7369
  return f(F);
@@ -7376,13 +7371,13 @@ function Ff(t, e) {
7376
7371
  name: "payment-method",
7377
7372
  onchange: () => u(f(E)),
7378
7373
  children: (V, J) => {
7379
- var N = $f(), oe = T(N);
7380
- zt(oe, {
7374
+ var z = $f(), ae = T(z);
7375
+ zt(ae, {
7381
7376
  class: "w-16 text-black dark:text-white",
7382
7377
  left: !0,
7383
- children: (he, pe) => {
7384
- const K = /* @__PURE__ */ z(() => w.includes(f(U).icon));
7385
- var le = /* @__PURE__ */ z(() => f(K));
7378
+ children: (he, be) => {
7379
+ const W = /* @__PURE__ */ R(() => w.includes(f(U).icon));
7380
+ var le = /* @__PURE__ */ R(() => f(W));
7386
7381
  ar(he, {
7387
7382
  class: "text-3xl",
7388
7383
  get multiColor() {
@@ -7395,21 +7390,21 @@ function Ff(t, e) {
7395
7390
  },
7396
7391
  $$slots: { default: !0 }
7397
7392
  });
7398
- var W = S(oe, 2);
7393
+ var K = S(ae, 2);
7399
7394
  {
7400
7395
  var ce = (he) => {
7401
- var pe = Df(), K = P(pe);
7402
- Jr(K, { size: "sm", name: "visa" });
7403
- var le = S(K, 2);
7396
+ var be = Df(), W = P(be);
7397
+ Jr(W, { size: "sm", name: "visa" });
7398
+ var le = S(W, 2);
7404
7399
  Jr(le, { size: "sm", name: "amex" });
7405
- var X = S(le, 2);
7406
- Jr(X, { size: "sm", name: "mastercard" }), A(pe), _(he, pe);
7400
+ var te = S(le, 2);
7401
+ Jr(te, { size: "sm", name: "mastercard" }), A(be), _(he, be);
7407
7402
  };
7408
- q(W, (he) => {
7403
+ q(K, (he) => {
7409
7404
  f(U).method && ["CARD", "GOOGLE-PAY", "APPLE-PAY"].includes(f(U).method) && he(ce);
7410
7405
  });
7411
7406
  }
7412
- _(V, N);
7407
+ _(V, z);
7413
7408
  },
7414
7409
  $$slots: { default: !0 }
7415
7410
  });
@@ -7417,8 +7412,8 @@ function Ff(t, e) {
7417
7412
  $$slots: { default: !0 }
7418
7413
  });
7419
7414
  }), A(x);
7420
- var R = S(x, 2);
7421
- ir(R, {
7415
+ var N = S(x, 2);
7416
+ ir(N, {
7422
7417
  get loading() {
7423
7418
  return f(c);
7424
7419
  },
@@ -7430,7 +7425,7 @@ function Ff(t, e) {
7430
7425
  children: (L, E) => {
7431
7426
  Ge();
7432
7427
  var j = pt();
7433
- I((U) => Q(j, U), [() => e.t("pay_now")]), _(L, j);
7428
+ I((U) => X(j, U), [() => e.t("pay_now")]), _(L, j);
7434
7429
  },
7435
7430
  $$slots: { default: !0 }
7436
7431
  }), A(C);
@@ -7440,10 +7435,10 @@ function Ff(t, e) {
7440
7435
  mt(L, {
7441
7436
  left: !0,
7442
7437
  children: (E, j) => {
7443
- var U = ie(), ae = T(U);
7444
- or(ae, 17, () => Object.values(f(s)), gn, (Z, te) => {
7445
- const F = /* @__PURE__ */ z(() => e.t(f(te)));
7446
- var V = /* @__PURE__ */ z(() => f(F));
7438
+ var U = ie(), oe = T(U);
7439
+ or(oe, 17, () => Object.values(f(s)), gn, (Z, ee) => {
7440
+ const F = /* @__PURE__ */ R(() => e.t(f(ee)));
7441
+ var V = /* @__PURE__ */ R(() => f(F));
7447
7442
  Ba(Z, {
7448
7443
  get text() {
7449
7444
  return f(V);
@@ -7517,22 +7512,22 @@ function Jf(t, e) {
7517
7512
  settings: { useDefaultLogo: y, styling: x }
7518
7513
  } = e.paywall;
7519
7514
  const ne = async () => {
7520
- var oe, W;
7515
+ var ae, K;
7521
7516
  if (r()) return !1;
7522
- const N = e != null && e.pass ? e.pass.split(";") : (W = (oe = e.api.content.get(e.host)) == null ? void 0 : oe.pass) == null ? void 0 : W.split(";");
7523
- return e.api.entitlements.hasAccess(s || "", N);
7524
- }, R = async (N) => {
7525
- var W;
7526
- if (G(l, ""), N.preventDefault(), !f(o)) return;
7517
+ const z = e != null && e.pass ? e.pass.split(";") : (K = (ae = e.api.content.get(e.host)) == null ? void 0 : ae.pass) == null ? void 0 : K.split(";");
7518
+ return e.api.entitlements.hasAccess(s || "", z);
7519
+ }, N = async (z) => {
7520
+ var K;
7521
+ if (G(l, ""), z.preventDefault(), !f(o)) return;
7527
7522
  G(i, !0);
7528
- const oe = (W = f(o)) != null && W.url ? { url: f(o).url } : {
7523
+ const ae = (K = f(o)) != null && K.url ? { url: f(o).url } : {
7529
7524
  sku: f(o).sku,
7530
7525
  purchaseOptionId: f(o).poId
7531
7526
  };
7532
7527
  try {
7533
7528
  G(a, me(await e.api.checkouts.create({
7534
7529
  vendorId: C,
7535
- items: [oe],
7530
+ items: [ae],
7536
7531
  discountCode: f(o).discountCode,
7537
7532
  redirectUrl: d,
7538
7533
  price: f(o).price,
@@ -7551,18 +7546,18 @@ function Jf(t, e) {
7551
7546
  console.error(ce), G(l, me(e.t("something_went_wrong"))), G(i, !1);
7552
7547
  return;
7553
7548
  }
7554
- }, D = (N) => {
7549
+ }, D = (z) => {
7555
7550
  G(l, ""), G(o, me({
7556
- ...N,
7557
- features: (N == null ? void 0 : N.features) || p
7551
+ ...z,
7552
+ features: (z == null ? void 0 : z.features) || p
7558
7553
  }));
7559
7554
  }, Y = h.length > 0;
7560
7555
  if (Y) {
7561
- const N = h.find(({ selected: oe }) => oe);
7562
- N ? D(N) : (h[0].selected = !0, D(h[0]));
7556
+ const z = h.find(({ selected: ae }) => ae);
7557
+ z ? D(z) : (h[0].selected = !0, D(h[0]));
7563
7558
  }
7564
7559
  const L = (x == null ? void 0 : x.backgroundColor) || "#FFFFFF", E = (x == null ? void 0 : x.showBackground) && zd(L)[2] < 50;
7565
- let ae = "<style>" + `
7560
+ let oe = "<style>" + `
7566
7561
  :host * {
7567
7562
  --s-primary-color: var(--sesamy-paywall-primary-color, ${m});
7568
7563
  --s-paywall-bg-color: var(--sesamy-paywall-bg-color, ${L});
@@ -7571,21 +7566,21 @@ function Jf(t, e) {
7571
7566
  --s-paywall-border-radius-desktop: var(--sesamy-paywall-border-radius-desktop, calc(var(--s-paywall-border-radius) * 3));
7572
7567
  }
7573
7568
  ` + "</style>";
7574
- var Z = Kf(), te = T(Z);
7575
- Rt(te, ne, null, (N, oe) => {
7576
- var W = ie(), ce = T(W);
7569
+ var Z = Kf(), ee = T(Z);
7570
+ Rt(ee, ne, null, (z, ae) => {
7571
+ var K = ie(), ce = T(K);
7577
7572
  {
7578
- var he = (pe) => {
7579
- var K = Zf(), le = P(K);
7580
- const X = /* @__PURE__ */ z(() => re("w-full py-4 @md:py-6 rounded-[var(--s-paywall-border-radius)] @xl:rounded-[var(--s-paywall-border-radius-desktop)]", (x == null ? void 0 : x.showBackground) && "bg-[var(--s-paywall-bg-color)] text-[var(--s-paywall-text-color)]", (x == null ? void 0 : x.showBackground) && (x == null ? void 0 : x.dropShadow) && "shadow-md @xl:shadow-lg", E && "dark"));
7581
- var we = /* @__PURE__ */ z(() => f(X));
7573
+ var he = (be) => {
7574
+ var W = Zf(), le = P(W);
7575
+ const te = /* @__PURE__ */ R(() => re("w-full py-4 @md:py-6 rounded-[var(--s-paywall-border-radius)] @xl:rounded-[var(--s-paywall-border-radius-desktop)]", (x == null ? void 0 : x.showBackground) && "bg-[var(--s-paywall-bg-color)] text-[var(--s-paywall-text-color)]", (x == null ? void 0 : x.showBackground) && (x == null ? void 0 : x.dropShadow) && "shadow-md @xl:shadow-lg", E && "dark"));
7576
+ var we = /* @__PURE__ */ R(() => f(te));
7582
7577
  mt(le, {
7583
7578
  get class() {
7584
7579
  return f(we);
7585
7580
  },
7586
7581
  children: (ye, De) => {
7587
- const st = /* @__PURE__ */ z(() => re("gap-2 @md:gap-4 pt-0 w-full", (x == null ? void 0 : x.showBackground) && "px-2 pb-6 @xs:px-8 @md:pb-8 @3xl:px-16", r() && (x == null ? void 0 : x.showBackground) && "px-6 pb-4", !r() && "max-w-[800px]"));
7588
- var Nt = /* @__PURE__ */ z(() => f(st));
7582
+ const st = /* @__PURE__ */ R(() => re("gap-2 @md:gap-4 pt-0 w-full", (x == null ? void 0 : x.showBackground) && "px-2 pb-6 @xs:px-8 @md:pb-8 @3xl:px-16", r() && (x == null ? void 0 : x.showBackground) && "px-6 pb-4", !r() && "max-w-[800px]"));
7583
+ var Nt = /* @__PURE__ */ R(() => f(st));
7589
7584
  mt(ye, {
7590
7585
  get class() {
7591
7586
  return f(Nt);
@@ -7609,7 +7604,7 @@ function Jf(t, e) {
7609
7604
  var Dr = Uf(), mr = T(Dr), _n = P(mr, !0);
7610
7605
  A(mr);
7611
7606
  var Ct = S(mr, 2);
7612
- hl(Ct, "class", "p-0 border-none enabled:hover:bg-transparent hover:underline text-primary font-bold"), I((Et) => Q(_n, Et), [() => e.t("already_subscribing")]), _(je, Dr);
7607
+ hl(Ct, "class", "p-0 border-none enabled:hover:bg-transparent hover:underline text-primary font-bold"), I((Et) => X(_n, Et), [() => e.t("already_subscribing")]), _(je, Dr);
7613
7608
  },
7614
7609
  $$slots: { default: !0 }
7615
7610
  }), Ge(2), _(dt, Or);
@@ -7727,7 +7722,7 @@ function Jf(t, e) {
7727
7722
  children: (Et, Va) => {
7728
7723
  Ge();
7729
7724
  var pr = pt();
7730
- I((yn) => Q(pr, yn), [() => e.t("continue")]), _(Et, pr);
7725
+ I((yn) => X(pr, yn), [() => e.t("continue")]), _(Et, pr);
7731
7726
  },
7732
7727
  $$slots: { default: !0 }
7733
7728
  });
@@ -7744,7 +7739,7 @@ function Jf(t, e) {
7744
7739
  children: (Et, Va) => {
7745
7740
  Ge();
7746
7741
  var pr = pt();
7747
- I((yn) => Q(pr, yn), [() => e.t("continue")]), _(Et, pr);
7742
+ I((yn) => X(pr, yn), [() => e.t("continue")]), _(Et, pr);
7748
7743
  },
7749
7744
  $$slots: { default: !0 }
7750
7745
  });
@@ -7760,7 +7755,7 @@ function Jf(t, e) {
7760
7755
  r() || je(bn);
7761
7756
  });
7762
7757
  }
7763
- A(ze), ka("submit", ze, R), _(ue, ze);
7758
+ A(ze), ka("submit", ze, N), _(ue, ze);
7764
7759
  };
7765
7760
  q(Rr, (ue) => {
7766
7761
  var ze;
@@ -7787,7 +7782,7 @@ function Jf(t, e) {
7787
7782
  var $e = Wf(), xt = T($e);
7788
7783
  ar(xt, { name: "lock" });
7789
7784
  var kt = S(xt, 1, !0);
7790
- I((dt) => Q(kt, dt), [() => e.t("secure_payment")]), _(ue, $e);
7785
+ I((dt) => X(kt, dt), [() => e.t("secure_payment")]), _(ue, $e);
7791
7786
  },
7792
7787
  $$slots: { default: !0 }
7793
7788
  });
@@ -7813,16 +7808,16 @@ function Jf(t, e) {
7813
7808
  });
7814
7809
  },
7815
7810
  $$slots: { default: !0 }
7816
- }), A(K), _(pe, K);
7811
+ }), A(W), _(be, W);
7817
7812
  };
7818
- q(ce, (pe) => {
7819
- f(oe) || pe(he);
7813
+ q(ce, (be) => {
7814
+ f(ae) || be(he);
7820
7815
  });
7821
7816
  }
7822
- _(N, W);
7817
+ _(z, K);
7823
7818
  });
7824
- var F = S(te, 2);
7825
- no(F, () => ae, !1, !1), _(t, Z), ve();
7819
+ var F = S(ee, 2);
7820
+ no(F, () => oe, !1, !1), _(t, Z), ve();
7826
7821
  }
7827
7822
  function Xf(t, e) {
7828
7823
  fe(e, !0);
@@ -7843,11 +7838,11 @@ function Xf(t, e) {
7843
7838
  children: un,
7844
7839
  $$slots: {
7845
7840
  default: (a, i) => {
7846
- const l = /* @__PURE__ */ z(() => i.api), c = /* @__PURE__ */ z(() => i.t);
7841
+ const l = /* @__PURE__ */ R(() => i.api), c = /* @__PURE__ */ R(() => i.t);
7847
7842
  var s = ie(), d = T(s);
7848
7843
  {
7849
7844
  var h = (g) => {
7850
- var v = /* @__PURE__ */ z(() => r() === "BOXES"), u = /* @__PURE__ */ z(() => ({ ...n, template: r() }));
7845
+ var v = /* @__PURE__ */ R(() => r() === "BOXES"), u = /* @__PURE__ */ R(() => ({ ...n, template: r() }));
7851
7846
  Jf(g, ao(
7852
7847
  {
7853
7848
  get api() {
@@ -8044,7 +8039,7 @@ function vv(t, e) {
8044
8039
  children: un,
8045
8040
  $$slots: {
8046
8041
  default: (v, u) => {
8047
- const m = /* @__PURE__ */ z(() => u.api);
8042
+ const m = /* @__PURE__ */ R(() => u.api);
8048
8043
  var b = ie(), p = T(b);
8049
8044
  Rt(
8050
8045
  p,
@@ -8056,20 +8051,20 @@ function vv(t, e) {
8056
8051
  (w, k) => {
8057
8052
  var C = ie(), y = T(C);
8058
8053
  {
8059
- var x = (R) => {
8054
+ var x = (N) => {
8060
8055
  var D = ie(), Y = T(D);
8061
8056
  {
8062
8057
  var L = (j) => {
8063
- var U = ie(), ae = T(U);
8064
- Ae(ae, e, "content", {}, null), _(j, U);
8058
+ var U = ie(), oe = T(U);
8059
+ Ae(oe, e, "content", {}, null), _(j, U);
8065
8060
  }, E = (j) => {
8066
- var U = ie(), ae = T(U);
8061
+ var U = ie(), oe = T(U);
8067
8062
  Rt(
8068
- ae,
8063
+ oe,
8069
8064
  () => g(f(m)),
8070
8065
  (Z) => {
8071
- var te = ie(), F = T(te);
8072
- Ae(F, e, "preview", {}, null), _(Z, te);
8066
+ var ee = ie(), F = T(ee);
8067
+ Ae(F, e, "preview", {}, null), _(Z, ee);
8073
8068
  },
8074
8069
  (Z) => {
8075
8070
  }
@@ -8079,13 +8074,13 @@ function vv(t, e) {
8079
8074
  i() === "embed" ? j(L) : j(E, !1);
8080
8075
  });
8081
8076
  }
8082
- _(R, D);
8083
- }, ne = (R) => {
8077
+ _(N, D);
8078
+ }, ne = (N) => {
8084
8079
  var D = ie(), Y = T(D);
8085
- Ae(Y, e, "preview", {}, null), _(R, D);
8080
+ Ae(Y, e, "preview", {}, null), _(N, D);
8086
8081
  };
8087
- q(y, (R) => {
8088
- f(k) ? R(x) : R(ne, !1);
8082
+ q(y, (N) => {
8083
+ f(k) ? N(x) : N(ne, !1);
8089
8084
  });
8090
8085
  }
8091
8086
  _(w, C);