ui.shipaid.com 0.3.131 → 0.3.133

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.
package/dist/widget.es.js CHANGED
@@ -1448,101 +1448,101 @@ if (!customElements.get("checkout-package-protection")) {
1448
1448
  customElements.define("checkout-package-protection", CheckoutPackageProtection);
1449
1449
  }
1450
1450
  (function() {
1451
- var A2, g2, te, S2, ae, le, ie, re, q, R2, G, T2 = {}, de = [], Te = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, j = Array.isArray;
1452
- function M2(n2, e3) {
1451
+ var A2, g2, oe, P2, te, ae, le, ie, q, R2, X, z2 = {}, re = [], Le = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, D2 = Array.isArray;
1452
+ function V2(n2, e3) {
1453
1453
  for (var o3 in e3) n2[o3] = e3[o3];
1454
1454
  return n2;
1455
1455
  }
1456
- function Y(n2) {
1456
+ function G(n2) {
1457
1457
  n2 && n2.parentNode && n2.parentNode.removeChild(n2);
1458
1458
  }
1459
- function De(n2, e3, o3) {
1460
- var a2, i3, l2, s3 = {};
1461
- for (l2 in e3) l2 == "key" ? a2 = e3[l2] : l2 == "ref" ? i3 = e3[l2] : s3[l2] = e3[l2];
1462
- if (arguments.length > 2 && (s3.children = arguments.length > 3 ? A2.call(arguments, 2) : o3), typeof n2 == "function" && n2.defaultProps != null) for (l2 in n2.defaultProps) s3[l2] === void 0 && (s3[l2] = n2.defaultProps[l2]);
1463
- return U(n2, s3, a2, i3, null);
1459
+ function Ne(n2, e3, o3) {
1460
+ var t2, i3, l2, d2 = {};
1461
+ for (l2 in e3) l2 == "key" ? t2 = e3[l2] : l2 == "ref" ? i3 = e3[l2] : d2[l2] = e3[l2];
1462
+ if (arguments.length > 2 && (d2.children = arguments.length > 3 ? A2.call(arguments, 2) : o3), typeof n2 == "function" && n2.defaultProps != null) for (l2 in n2.defaultProps) d2[l2] === void 0 && (d2[l2] = n2.defaultProps[l2]);
1463
+ return j(n2, d2, t2, i3, null);
1464
1464
  }
1465
- function U(n2, e3, o3, a2, i3) {
1466
- var l2 = { type: n2, props: e3, key: o3, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: i3 ?? ++te, __i: -1, __u: 0 };
1465
+ function j(n2, e3, o3, t2, i3) {
1466
+ var l2 = { type: n2, props: e3, key: o3, ref: t2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: i3 ?? ++oe, __i: -1, __u: 0 };
1467
1467
  return i3 == null && g2.vnode != null && g2.vnode(l2), l2;
1468
1468
  }
1469
1469
  function Z2(n2) {
1470
1470
  return n2.children;
1471
1471
  }
1472
- function W(n2, e3) {
1472
+ function U(n2, e3) {
1473
1473
  this.props = n2, this.context = e3;
1474
1474
  }
1475
- function N2(n2, e3) {
1476
- if (e3 == null) return n2.__ ? N2(n2.__, n2.__i + 1) : null;
1475
+ function E2(n2, e3) {
1476
+ if (e3 == null) return n2.__ ? E2(n2.__, n2.__i + 1) : null;
1477
1477
  for (var o3; e3 < n2.__k.length; e3++) if ((o3 = n2.__k[e3]) != null && o3.__e != null) return o3.__e;
1478
- return typeof n2.type == "function" ? N2(n2) : null;
1478
+ return typeof n2.type == "function" ? E2(n2) : null;
1479
1479
  }
1480
- function se(n2) {
1480
+ function de(n2) {
1481
1481
  var e3, o3;
1482
1482
  if ((n2 = n2.__) != null && n2.__c != null) {
1483
1483
  for (n2.__e = n2.__c.base = null, e3 = 0; e3 < n2.__k.length; e3++) if ((o3 = n2.__k[e3]) != null && o3.__e != null) {
1484
1484
  n2.__e = n2.__c.base = o3.__e;
1485
1485
  break;
1486
1486
  }
1487
- return se(n2);
1487
+ return de(n2);
1488
1488
  }
1489
1489
  }
1490
- function ce(n2) {
1491
- (!n2.__d && (n2.__d = true) && S2.push(n2) && !F.__r++ || ae != g2.debounceRendering) && ((ae = g2.debounceRendering) || le)(F);
1490
+ function se(n2) {
1491
+ (!n2.__d && (n2.__d = true) && P2.push(n2) && !W.__r++ || te != g2.debounceRendering) && ((te = g2.debounceRendering) || ae)(W);
1492
1492
  }
1493
- function F() {
1494
- for (var n2, e3, o3, a2, i3, l2, s3, d2 = 1; S2.length; ) S2.length > d2 && S2.sort(ie), n2 = S2.shift(), d2 = S2.length, n2.__d && (o3 = void 0, i3 = (a2 = (e3 = n2).__v).__e, l2 = [], s3 = [], e3.__P && ((o3 = M2({}, a2)).__v = a2.__v + 1, g2.vnode && g2.vnode(o3), K(e3.__P, o3, a2, e3.__n, e3.__P.namespaceURI, 32 & a2.__u ? [i3] : null, l2, i3 ?? N2(a2), !!(32 & a2.__u), s3), o3.__v = a2.__v, o3.__.__k[o3.__i] = o3, ue(l2, o3, s3), o3.__e != i3 && se(o3)));
1495
- F.__r = 0;
1493
+ function W() {
1494
+ for (var n2, e3, o3, t2, i3, l2, d2, s3 = 1; P2.length; ) P2.length > s3 && P2.sort(le), n2 = P2.shift(), s3 = P2.length, n2.__d && (o3 = void 0, i3 = (t2 = (e3 = n2).__v).__e, l2 = [], d2 = [], e3.__P && ((o3 = V2({}, t2)).__v = t2.__v + 1, g2.vnode && g2.vnode(o3), Y(e3.__P, o3, t2, e3.__n, e3.__P.namespaceURI, 32 & t2.__u ? [i3] : null, l2, i3 ?? E2(t2), !!(32 & t2.__u), d2), o3.__v = t2.__v, o3.__.__k[o3.__i] = o3, he(l2, o3, d2), o3.__e != i3 && de(o3)));
1495
+ W.__r = 0;
1496
1496
  }
1497
- function pe(n2, e3, o3, a2, i3, l2, s3, d2, p2, c2, h2) {
1498
- var t2, _2, m2, b, y2, w2, f2 = a2 && a2.__k || de, u2 = e3.length;
1499
- for (p2 = ze(o3, e3, f2, p2, u2), t2 = 0; t2 < u2; t2++) (m2 = o3.__k[t2]) != null && (_2 = m2.__i == -1 ? T2 : f2[m2.__i] || T2, m2.__i = t2, w2 = K(n2, m2, _2, i3, l2, s3, d2, p2, c2, h2), b = m2.__e, m2.ref && _2.ref != m2.ref && (_2.ref && J(_2.ref, null, m2), h2.push(m2.ref, m2.__c || b, m2)), y2 == null && b != null && (y2 = b), 4 & m2.__u || _2.__k === m2.__k ? p2 = _e(m2, p2, n2) : typeof m2.type == "function" && w2 !== void 0 ? p2 = w2 : b && (p2 = b.nextSibling), m2.__u &= -7);
1500
- return o3.__e = y2, p2;
1497
+ function ce(n2, e3, o3, t2, i3, l2, d2, s3, p2, c2, _2) {
1498
+ var a2, h2, m2, x2, w2, y2, f2 = t2 && t2.__k || re, u2 = e3.length;
1499
+ for (p2 = Ee(o3, e3, f2, p2, u2), a2 = 0; a2 < u2; a2++) (m2 = o3.__k[a2]) != null && (h2 = m2.__i == -1 ? z2 : f2[m2.__i] || z2, m2.__i = a2, y2 = Y(n2, m2, h2, i3, l2, d2, s3, p2, c2, _2), x2 = m2.__e, m2.ref && h2.ref != m2.ref && (h2.ref && K(h2.ref, null, m2), _2.push(m2.ref, m2.__c || x2, m2)), w2 == null && x2 != null && (w2 = x2), 4 & m2.__u || h2.__k === m2.__k ? p2 = pe(m2, p2, n2) : typeof m2.type == "function" && y2 !== void 0 ? p2 = y2 : x2 && (p2 = x2.nextSibling), m2.__u &= -7);
1500
+ return o3.__e = w2, p2;
1501
1501
  }
1502
- function ze(n2, e3, o3, a2, i3) {
1503
- var l2, s3, d2, p2, c2, h2 = o3.length, t2 = h2, _2 = 0;
1504
- for (n2.__k = new Array(i3), l2 = 0; l2 < i3; l2++) (s3 = e3[l2]) != null && typeof s3 != "boolean" && typeof s3 != "function" ? (p2 = l2 + _2, (s3 = n2.__k[l2] = typeof s3 == "string" || typeof s3 == "number" || typeof s3 == "bigint" || s3.constructor == String ? U(null, s3, null, null, null) : j(s3) ? U(Z2, { children: s3 }, null, null, null) : s3.constructor == null && s3.__b > 0 ? U(s3.type, s3.props, s3.key, s3.ref ? s3.ref : null, s3.__v) : s3).__ = n2, s3.__b = n2.__b + 1, d2 = null, (c2 = s3.__i = $e(s3, o3, p2, t2)) != -1 && (t2--, (d2 = o3[c2]) && (d2.__u |= 2)), d2 == null || d2.__v == null ? (c2 == -1 && (i3 > h2 ? _2-- : i3 < h2 && _2++), typeof s3.type != "function" && (s3.__u |= 4)) : c2 != p2 && (c2 == p2 - 1 ? _2-- : c2 == p2 + 1 ? _2++ : (c2 > p2 ? _2-- : _2++, s3.__u |= 4))) : n2.__k[l2] = null;
1505
- if (t2) for (l2 = 0; l2 < h2; l2++) (d2 = o3[l2]) != null && (2 & d2.__u) == 0 && (d2.__e == a2 && (a2 = N2(d2)), ge(d2, d2));
1506
- return a2;
1502
+ function Ee(n2, e3, o3, t2, i3) {
1503
+ var l2, d2, s3, p2, c2, _2 = o3.length, a2 = _2, h2 = 0;
1504
+ for (n2.__k = new Array(i3), l2 = 0; l2 < i3; l2++) (d2 = e3[l2]) != null && typeof d2 != "boolean" && typeof d2 != "function" ? (p2 = l2 + h2, (d2 = n2.__k[l2] = typeof d2 == "string" || typeof d2 == "number" || typeof d2 == "bigint" || d2.constructor == String ? j(null, d2, null, null, null) : D2(d2) ? j(Z2, { children: d2 }, null, null, null) : d2.constructor == null && d2.__b > 0 ? j(d2.type, d2.props, d2.key, d2.ref ? d2.ref : null, d2.__v) : d2).__ = n2, d2.__b = n2.__b + 1, s3 = null, (c2 = d2.__i = ze(d2, o3, p2, a2)) != -1 && (a2--, (s3 = o3[c2]) && (s3.__u |= 2)), s3 == null || s3.__v == null ? (c2 == -1 && (i3 > _2 ? h2-- : i3 < _2 && h2++), typeof d2.type != "function" && (d2.__u |= 4)) : c2 != p2 && (c2 == p2 - 1 ? h2-- : c2 == p2 + 1 ? h2++ : (c2 > p2 ? h2-- : h2++, d2.__u |= 4))) : n2.__k[l2] = null;
1505
+ if (a2) for (l2 = 0; l2 < _2; l2++) (s3 = o3[l2]) != null && (2 & s3.__u) == 0 && (s3.__e == t2 && (t2 = E2(s3)), fe(s3, s3));
1506
+ return t2;
1507
1507
  }
1508
- function _e(n2, e3, o3) {
1509
- var a2, i3;
1508
+ function pe(n2, e3, o3) {
1509
+ var t2, i3;
1510
1510
  if (typeof n2.type == "function") {
1511
- for (a2 = n2.__k, i3 = 0; a2 && i3 < a2.length; i3++) a2[i3] && (a2[i3].__ = n2, e3 = _e(a2[i3], e3, o3));
1511
+ for (t2 = n2.__k, i3 = 0; t2 && i3 < t2.length; i3++) t2[i3] && (t2[i3].__ = n2, e3 = pe(t2[i3], e3, o3));
1512
1512
  return e3;
1513
1513
  }
1514
- n2.__e != e3 && (e3 && n2.type && !o3.contains(e3) && (e3 = N2(n2)), o3.insertBefore(n2.__e, e3 || null), e3 = n2.__e);
1514
+ n2.__e != e3 && (e3 && n2.type && !o3.contains(e3) && (e3 = E2(n2)), o3.insertBefore(n2.__e, e3 || null), e3 = n2.__e);
1515
1515
  do
1516
1516
  e3 = e3 && e3.nextSibling;
1517
1517
  while (e3 != null && e3.nodeType == 8);
1518
1518
  return e3;
1519
1519
  }
1520
- function $e(n2, e3, o3, a2) {
1521
- var i3, l2, s3 = n2.key, d2 = n2.type, p2 = e3[o3];
1522
- if (p2 === null && n2.key == null || p2 && s3 == p2.key && d2 == p2.type && (2 & p2.__u) == 0) return o3;
1523
- if (a2 > (p2 != null && (2 & p2.__u) == 0 ? 1 : 0)) for (i3 = o3 - 1, l2 = o3 + 1; i3 >= 0 || l2 < e3.length; ) {
1520
+ function ze(n2, e3, o3, t2) {
1521
+ var i3, l2, d2 = n2.key, s3 = n2.type, p2 = e3[o3];
1522
+ if (p2 === null && n2.key == null || p2 && d2 == p2.key && s3 == p2.type && (2 & p2.__u) == 0) return o3;
1523
+ if (t2 > (p2 != null && (2 & p2.__u) == 0 ? 1 : 0)) for (i3 = o3 - 1, l2 = o3 + 1; i3 >= 0 || l2 < e3.length; ) {
1524
1524
  if (i3 >= 0) {
1525
- if ((p2 = e3[i3]) && (2 & p2.__u) == 0 && s3 == p2.key && d2 == p2.type) return i3;
1525
+ if ((p2 = e3[i3]) && (2 & p2.__u) == 0 && d2 == p2.key && s3 == p2.type) return i3;
1526
1526
  i3--;
1527
1527
  }
1528
1528
  if (l2 < e3.length) {
1529
- if ((p2 = e3[l2]) && (2 & p2.__u) == 0 && s3 == p2.key && d2 == p2.type) return l2;
1529
+ if ((p2 = e3[l2]) && (2 & p2.__u) == 0 && d2 == p2.key && s3 == p2.type) return l2;
1530
1530
  l2++;
1531
1531
  }
1532
1532
  }
1533
1533
  return -1;
1534
1534
  }
1535
- function me(n2, e3, o3) {
1536
- e3[0] == "-" ? n2.setProperty(e3, o3 ?? "") : n2[e3] = o3 == null ? "" : typeof o3 != "number" || Te.test(e3) ? o3 : o3 + "px";
1535
+ function _e(n2, e3, o3) {
1536
+ e3[0] == "-" ? n2.setProperty(e3, o3 ?? "") : n2[e3] = o3 == null ? "" : typeof o3 != "number" || Le.test(e3) ? o3 : o3 + "px";
1537
1537
  }
1538
- function I2(n2, e3, o3, a2, i3) {
1539
- var l2, s3;
1538
+ function F(n2, e3, o3, t2, i3) {
1539
+ var l2, d2;
1540
1540
  e: if (e3 == "style") if (typeof o3 == "string") n2.style.cssText = o3;
1541
1541
  else {
1542
- if (typeof a2 == "string" && (n2.style.cssText = a2 = ""), a2) for (e3 in a2) o3 && e3 in o3 || me(n2.style, e3, "");
1543
- if (o3) for (e3 in o3) a2 && o3[e3] == a2[e3] || me(n2.style, e3, o3[e3]);
1542
+ if (typeof t2 == "string" && (n2.style.cssText = t2 = ""), t2) for (e3 in t2) o3 && e3 in o3 || _e(n2.style, e3, "");
1543
+ if (o3) for (e3 in o3) t2 && o3[e3] == t2[e3] || _e(n2.style, e3, o3[e3]);
1544
1544
  }
1545
- else if (e3[0] == "o" && e3[1] == "n") l2 = e3 != (e3 = e3.replace(re, "$1")), s3 = e3.toLowerCase(), e3 = s3 in n2 || e3 == "onFocusOut" || e3 == "onFocusIn" ? s3.slice(2) : e3.slice(2), n2.l || (n2.l = {}), n2.l[e3 + l2] = o3, o3 ? a2 ? o3.u = a2.u : (o3.u = q, n2.addEventListener(e3, l2 ? G : R2, l2)) : n2.removeEventListener(e3, l2 ? G : R2, l2);
1545
+ else if (e3[0] == "o" && e3[1] == "n") l2 = e3 != (e3 = e3.replace(ie, "$1")), d2 = e3.toLowerCase(), e3 = d2 in n2 || e3 == "onFocusOut" || e3 == "onFocusIn" ? d2.slice(2) : e3.slice(2), n2.l || (n2.l = {}), n2.l[e3 + l2] = o3, o3 ? t2 ? o3.u = t2.u : (o3.u = q, n2.addEventListener(e3, l2 ? X : R2, l2)) : n2.removeEventListener(e3, l2 ? X : R2, l2);
1546
1546
  else {
1547
1547
  if (i3 == "http://www.w3.org/2000/svg") e3 = e3.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
1548
1548
  else if (e3 != "width" && e3 != "height" && e3 != "href" && e3 != "list" && e3 != "form" && e3 != "tabIndex" && e3 != "download" && e3 != "rowSpan" && e3 != "colSpan" && e3 != "role" && e3 != "popover" && e3 in n2) try {
@@ -1553,7 +1553,7 @@ if (!customElements.get("checkout-package-protection")) {
1553
1553
  typeof o3 == "function" || (o3 == null || o3 === false && e3[4] != "-" ? n2.removeAttribute(e3) : n2.setAttribute(e3, e3 == "popover" && o3 == 1 ? "" : o3));
1554
1554
  }
1555
1555
  }
1556
- function he(n2) {
1556
+ function me(n2) {
1557
1557
  return function(e3) {
1558
1558
  if (this.l) {
1559
1559
  var o3 = this.l[e3.type + n2];
@@ -1563,44 +1563,44 @@ if (!customElements.get("checkout-package-protection")) {
1563
1563
  }
1564
1564
  };
1565
1565
  }
1566
- function K(n2, e3, o3, a2, i3, l2, s3, d2, p2, c2) {
1567
- var h2, t2, _2, m2, b, y2, w2, f2, u2, V2, H2, C2, L2, k2, X, z2, oe, E2 = e3.type;
1566
+ function Y(n2, e3, o3, t2, i3, l2, d2, s3, p2, c2) {
1567
+ var _2, a2, h2, m2, x2, w2, y2, f2, u2, N2, H2, C2, M2, k2, B2, T2, ne, S2 = e3.type;
1568
1568
  if (e3.constructor != null) return null;
1569
- 128 & o3.__u && (p2 = !!(32 & o3.__u), l2 = [d2 = e3.__e = o3.__e]), (h2 = g2.__b) && h2(e3);
1570
- e: if (typeof E2 == "function") try {
1571
- if (f2 = e3.props, u2 = "prototype" in E2 && E2.prototype.render, V2 = (h2 = E2.contextType) && a2[h2.__c], H2 = h2 ? V2 ? V2.props.value : h2.__ : a2, o3.__c ? w2 = (t2 = e3.__c = o3.__c).__ = t2.__E : (u2 ? e3.__c = t2 = new E2(f2, H2) : (e3.__c = t2 = new W(f2, H2), t2.constructor = E2, t2.render = je), V2 && V2.sub(t2), t2.props = f2, t2.state || (t2.state = {}), t2.context = H2, t2.__n = a2, _2 = t2.__d = true, t2.__h = [], t2._sb = []), u2 && t2.__s == null && (t2.__s = t2.state), u2 && E2.getDerivedStateFromProps != null && (t2.__s == t2.state && (t2.__s = M2({}, t2.__s)), M2(t2.__s, E2.getDerivedStateFromProps(f2, t2.__s))), m2 = t2.props, b = t2.state, t2.__v = e3, _2) u2 && E2.getDerivedStateFromProps == null && t2.componentWillMount != null && t2.componentWillMount(), u2 && t2.componentDidMount != null && t2.__h.push(t2.componentDidMount);
1569
+ 128 & o3.__u && (p2 = !!(32 & o3.__u), l2 = [s3 = e3.__e = o3.__e]), (_2 = g2.__b) && _2(e3);
1570
+ e: if (typeof S2 == "function") try {
1571
+ if (f2 = e3.props, u2 = "prototype" in S2 && S2.prototype.render, N2 = (_2 = S2.contextType) && t2[_2.__c], H2 = _2 ? N2 ? N2.props.value : _2.__ : t2, o3.__c ? y2 = (a2 = e3.__c = o3.__c).__ = a2.__E : (u2 ? e3.__c = a2 = new S2(f2, H2) : (e3.__c = a2 = new U(f2, H2), a2.constructor = S2, a2.render = $e), N2 && N2.sub(a2), a2.props = f2, a2.state || (a2.state = {}), a2.context = H2, a2.__n = t2, h2 = a2.__d = true, a2.__h = [], a2._sb = []), u2 && a2.__s == null && (a2.__s = a2.state), u2 && S2.getDerivedStateFromProps != null && (a2.__s == a2.state && (a2.__s = V2({}, a2.__s)), V2(a2.__s, S2.getDerivedStateFromProps(f2, a2.__s))), m2 = a2.props, x2 = a2.state, a2.__v = e3, h2) u2 && S2.getDerivedStateFromProps == null && a2.componentWillMount != null && a2.componentWillMount(), u2 && a2.componentDidMount != null && a2.__h.push(a2.componentDidMount);
1572
1572
  else {
1573
- if (u2 && E2.getDerivedStateFromProps == null && f2 !== m2 && t2.componentWillReceiveProps != null && t2.componentWillReceiveProps(f2, H2), !t2.__e && t2.shouldComponentUpdate != null && t2.shouldComponentUpdate(f2, t2.__s, H2) === false || e3.__v == o3.__v) {
1574
- for (e3.__v != o3.__v && (t2.props = f2, t2.state = t2.__s, t2.__d = false), e3.__e = o3.__e, e3.__k = o3.__k, e3.__k.some(function($2) {
1573
+ if (u2 && S2.getDerivedStateFromProps == null && f2 !== m2 && a2.componentWillReceiveProps != null && a2.componentWillReceiveProps(f2, H2), !a2.__e && a2.shouldComponentUpdate != null && a2.shouldComponentUpdate(f2, a2.__s, H2) === false || e3.__v == o3.__v) {
1574
+ for (e3.__v != o3.__v && (a2.props = f2, a2.state = a2.__s, a2.__d = false), e3.__e = o3.__e, e3.__k = o3.__k, e3.__k.some(function($2) {
1575
1575
  $2 && ($2.__ = e3);
1576
- }), C2 = 0; C2 < t2._sb.length; C2++) t2.__h.push(t2._sb[C2]);
1577
- t2._sb = [], t2.__h.length && s3.push(t2);
1576
+ }), C2 = 0; C2 < a2._sb.length; C2++) a2.__h.push(a2._sb[C2]);
1577
+ a2._sb = [], a2.__h.length && d2.push(a2);
1578
1578
  break e;
1579
1579
  }
1580
- t2.componentWillUpdate != null && t2.componentWillUpdate(f2, t2.__s, H2), u2 && t2.componentDidUpdate != null && t2.__h.push(function() {
1581
- t2.componentDidUpdate(m2, b, y2);
1580
+ a2.componentWillUpdate != null && a2.componentWillUpdate(f2, a2.__s, H2), u2 && a2.componentDidUpdate != null && a2.__h.push(function() {
1581
+ a2.componentDidUpdate(m2, x2, w2);
1582
1582
  });
1583
1583
  }
1584
- if (t2.context = H2, t2.props = f2, t2.__P = n2, t2.__e = false, L2 = g2.__r, k2 = 0, u2) {
1585
- for (t2.state = t2.__s, t2.__d = false, L2 && L2(e3), h2 = t2.render(t2.props, t2.state, t2.context), X = 0; X < t2._sb.length; X++) t2.__h.push(t2._sb[X]);
1586
- t2._sb = [];
1584
+ if (a2.context = H2, a2.props = f2, a2.__P = n2, a2.__e = false, M2 = g2.__r, k2 = 0, u2) {
1585
+ for (a2.state = a2.__s, a2.__d = false, M2 && M2(e3), _2 = a2.render(a2.props, a2.state, a2.context), B2 = 0; B2 < a2._sb.length; B2++) a2.__h.push(a2._sb[B2]);
1586
+ a2._sb = [];
1587
1587
  } else do
1588
- t2.__d = false, L2 && L2(e3), h2 = t2.render(t2.props, t2.state, t2.context), t2.state = t2.__s;
1589
- while (t2.__d && ++k2 < 25);
1590
- t2.state = t2.__s, t2.getChildContext != null && (a2 = M2(M2({}, a2), t2.getChildContext())), u2 && !_2 && t2.getSnapshotBeforeUpdate != null && (y2 = t2.getSnapshotBeforeUpdate(m2, b)), z2 = h2, h2 != null && h2.type === Z2 && h2.key == null && (z2 = fe(h2.props.children)), d2 = pe(n2, j(z2) ? z2 : [z2], e3, o3, a2, i3, l2, s3, d2, p2, c2), t2.base = e3.__e, e3.__u &= -161, t2.__h.length && s3.push(t2), w2 && (t2.__E = t2.__ = null);
1588
+ a2.__d = false, M2 && M2(e3), _2 = a2.render(a2.props, a2.state, a2.context), a2.state = a2.__s;
1589
+ while (a2.__d && ++k2 < 25);
1590
+ a2.state = a2.__s, a2.getChildContext != null && (t2 = V2(V2({}, t2), a2.getChildContext())), u2 && !h2 && a2.getSnapshotBeforeUpdate != null && (w2 = a2.getSnapshotBeforeUpdate(m2, x2)), T2 = _2, _2 != null && _2.type === Z2 && _2.key == null && (T2 = ue(_2.props.children)), s3 = ce(n2, D2(T2) ? T2 : [T2], e3, o3, t2, i3, l2, d2, s3, p2, c2), a2.base = e3.__e, e3.__u &= -161, a2.__h.length && d2.push(a2), y2 && (a2.__E = a2.__ = null);
1591
1591
  } catch ($2) {
1592
1592
  if (e3.__v = null, p2 || l2 != null) if ($2.then) {
1593
- for (e3.__u |= p2 ? 160 : 128; d2 && d2.nodeType == 8 && d2.nextSibling; ) d2 = d2.nextSibling;
1594
- l2[l2.indexOf(d2)] = null, e3.__e = d2;
1595
- } else for (oe = l2.length; oe--; ) Y(l2[oe]);
1593
+ for (e3.__u |= p2 ? 160 : 128; s3 && s3.nodeType == 8 && s3.nextSibling; ) s3 = s3.nextSibling;
1594
+ l2[l2.indexOf(s3)] = null, e3.__e = s3;
1595
+ } else for (ne = l2.length; ne--; ) G(l2[ne]);
1596
1596
  else e3.__e = o3.__e, e3.__k = o3.__k;
1597
1597
  g2.__e($2, e3, o3);
1598
1598
  }
1599
- else l2 == null && e3.__v == o3.__v ? (e3.__k = o3.__k, e3.__e = o3.__e) : d2 = e3.__e = Ae(o3.__e, e3, o3, a2, i3, l2, s3, p2, c2);
1600
- return (h2 = g2.diffed) && h2(e3), 128 & e3.__u ? void 0 : d2;
1599
+ else l2 == null && e3.__v == o3.__v ? (e3.__k = o3.__k, e3.__e = o3.__e) : s3 = e3.__e = Te(o3.__e, e3, o3, t2, i3, l2, d2, p2, c2);
1600
+ return (_2 = g2.diffed) && _2(e3), 128 & e3.__u ? void 0 : s3;
1601
1601
  }
1602
- function ue(n2, e3, o3) {
1603
- for (var a2 = 0; a2 < o3.length; a2++) J(o3[a2], o3[++a2], o3[++a2]);
1602
+ function he(n2, e3, o3) {
1603
+ for (var t2 = 0; t2 < o3.length; t2++) K(o3[t2], o3[++t2], o3[++t2]);
1604
1604
  g2.__c && g2.__c(e3, n2), n2.some(function(i3) {
1605
1605
  try {
1606
1606
  n2 = i3.__h, i3.__h = [], n2.some(function(l2) {
@@ -1611,11 +1611,11 @@ if (!customElements.get("checkout-package-protection")) {
1611
1611
  }
1612
1612
  });
1613
1613
  }
1614
- function fe(n2) {
1615
- return typeof n2 != "object" || n2 == null || n2.__b && n2.__b > 0 ? n2 : j(n2) ? n2.map(fe) : M2({}, n2);
1614
+ function ue(n2) {
1615
+ return typeof n2 != "object" || n2 == null || n2.__b && n2.__b > 0 ? n2 : D2(n2) ? n2.map(ue) : V2({}, n2);
1616
1616
  }
1617
- function Ae(n2, e3, o3, a2, i3, l2, s3, d2, p2) {
1618
- var c2, h2, t2, _2, m2, b, y2, w2 = o3.props, f2 = e3.props, u2 = e3.type;
1617
+ function Te(n2, e3, o3, t2, i3, l2, d2, s3, p2) {
1618
+ var c2, _2, a2, h2, m2, x2, w2, y2 = o3.props, f2 = e3.props, u2 = e3.type;
1619
1619
  if (u2 == "svg" ? i3 = "http://www.w3.org/2000/svg" : u2 == "math" ? i3 = "http://www.w3.org/1998/Math/MathML" : i3 || (i3 = "http://www.w3.org/1999/xhtml"), l2 != null) {
1620
1620
  for (c2 = 0; c2 < l2.length; c2++) if ((m2 = l2[c2]) && "setAttribute" in m2 == !!u2 && (u2 ? m2.localName == u2 : m2.nodeType == 3)) {
1621
1621
  n2 = m2, l2[c2] = null;
@@ -1624,236 +1624,196 @@ if (!customElements.get("checkout-package-protection")) {
1624
1624
  }
1625
1625
  if (n2 == null) {
1626
1626
  if (u2 == null) return document.createTextNode(f2);
1627
- n2 = document.createElementNS(i3, u2, f2.is && f2), d2 && (g2.__m && g2.__m(e3, l2), d2 = false), l2 = null;
1627
+ n2 = document.createElementNS(i3, u2, f2.is && f2), s3 && (g2.__m && g2.__m(e3, l2), s3 = false), l2 = null;
1628
1628
  }
1629
- if (u2 == null) w2 === f2 || d2 && n2.data == f2 || (n2.data = f2);
1629
+ if (u2 == null) y2 === f2 || s3 && n2.data == f2 || (n2.data = f2);
1630
1630
  else {
1631
- if (l2 = l2 && A2.call(n2.childNodes), w2 = o3.props || T2, !d2 && l2 != null) for (w2 = {}, c2 = 0; c2 < n2.attributes.length; c2++) w2[(m2 = n2.attributes[c2]).name] = m2.value;
1632
- for (c2 in w2) if (m2 = w2[c2], c2 != "children") {
1633
- if (c2 == "dangerouslySetInnerHTML") t2 = m2;
1631
+ if (l2 = l2 && A2.call(n2.childNodes), y2 = o3.props || z2, !s3 && l2 != null) for (y2 = {}, c2 = 0; c2 < n2.attributes.length; c2++) y2[(m2 = n2.attributes[c2]).name] = m2.value;
1632
+ for (c2 in y2) if (m2 = y2[c2], c2 != "children") {
1633
+ if (c2 == "dangerouslySetInnerHTML") a2 = m2;
1634
1634
  else if (!(c2 in f2)) {
1635
1635
  if (c2 == "value" && "defaultValue" in f2 || c2 == "checked" && "defaultChecked" in f2) continue;
1636
- I2(n2, c2, null, m2, i3);
1636
+ F(n2, c2, null, m2, i3);
1637
1637
  }
1638
1638
  }
1639
- for (c2 in f2) m2 = f2[c2], c2 == "children" ? _2 = m2 : c2 == "dangerouslySetInnerHTML" ? h2 = m2 : c2 == "value" ? b = m2 : c2 == "checked" ? y2 = m2 : d2 && typeof m2 != "function" || w2[c2] === m2 || I2(n2, c2, m2, w2[c2], i3);
1640
- if (h2) d2 || t2 && (h2.__html == t2.__html || h2.__html == n2.innerHTML) || (n2.innerHTML = h2.__html), e3.__k = [];
1641
- else if (t2 && (n2.innerHTML = ""), pe(e3.type == "template" ? n2.content : n2, j(_2) ? _2 : [_2], e3, o3, a2, u2 == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i3, l2, s3, l2 ? l2[0] : o3.__k && N2(o3, 0), d2, p2), l2 != null) for (c2 = l2.length; c2--; ) Y(l2[c2]);
1642
- d2 || (c2 = "value", u2 == "progress" && b == null ? n2.removeAttribute("value") : b != null && (b !== n2[c2] || u2 == "progress" && !b || u2 == "option" && b != w2[c2]) && I2(n2, c2, b, w2[c2], i3), c2 = "checked", y2 != null && y2 != n2[c2] && I2(n2, c2, y2, w2[c2], i3));
1639
+ for (c2 in f2) m2 = f2[c2], c2 == "children" ? h2 = m2 : c2 == "dangerouslySetInnerHTML" ? _2 = m2 : c2 == "value" ? x2 = m2 : c2 == "checked" ? w2 = m2 : s3 && typeof m2 != "function" || y2[c2] === m2 || F(n2, c2, m2, y2[c2], i3);
1640
+ if (_2) s3 || a2 && (_2.__html == a2.__html || _2.__html == n2.innerHTML) || (n2.innerHTML = _2.__html), e3.__k = [];
1641
+ else if (a2 && (n2.innerHTML = ""), ce(e3.type == "template" ? n2.content : n2, D2(h2) ? h2 : [h2], e3, o3, t2, u2 == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i3, l2, d2, l2 ? l2[0] : o3.__k && E2(o3, 0), s3, p2), l2 != null) for (c2 = l2.length; c2--; ) G(l2[c2]);
1642
+ s3 || (c2 = "value", u2 == "progress" && x2 == null ? n2.removeAttribute("value") : x2 != null && (x2 !== n2[c2] || u2 == "progress" && !x2 || u2 == "option" && x2 != y2[c2]) && F(n2, c2, x2, y2[c2], i3), c2 = "checked", w2 != null && w2 != n2[c2] && F(n2, c2, w2, y2[c2], i3));
1643
1643
  }
1644
1644
  return n2;
1645
1645
  }
1646
- function J(n2, e3, o3) {
1646
+ function K(n2, e3, o3) {
1647
1647
  try {
1648
1648
  if (typeof n2 == "function") {
1649
- var a2 = typeof n2.__u == "function";
1650
- a2 && n2.__u(), a2 && e3 == null || (n2.__u = n2(e3));
1649
+ var t2 = typeof n2.__u == "function";
1650
+ t2 && n2.__u(), t2 && e3 == null || (n2.__u = n2(e3));
1651
1651
  } else n2.current = e3;
1652
1652
  } catch (i3) {
1653
1653
  g2.__e(i3, o3);
1654
1654
  }
1655
1655
  }
1656
- function ge(n2, e3, o3) {
1657
- var a2, i3;
1658
- if (g2.unmount && g2.unmount(n2), (a2 = n2.ref) && (a2.current && a2.current != n2.__e || J(a2, null, e3)), (a2 = n2.__c) != null) {
1659
- if (a2.componentWillUnmount) try {
1660
- a2.componentWillUnmount();
1656
+ function fe(n2, e3, o3) {
1657
+ var t2, i3;
1658
+ if (g2.unmount && g2.unmount(n2), (t2 = n2.ref) && (t2.current && t2.current != n2.__e || K(t2, null, e3)), (t2 = n2.__c) != null) {
1659
+ if (t2.componentWillUnmount) try {
1660
+ t2.componentWillUnmount();
1661
1661
  } catch (l2) {
1662
1662
  g2.__e(l2, e3);
1663
1663
  }
1664
- a2.base = a2.__P = null;
1664
+ t2.base = t2.__P = null;
1665
1665
  }
1666
- if (a2 = n2.__k) for (i3 = 0; i3 < a2.length; i3++) a2[i3] && ge(a2[i3], e3, o3 || typeof n2.type != "function");
1667
- o3 || Y(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
1666
+ if (t2 = n2.__k) for (i3 = 0; i3 < t2.length; i3++) t2[i3] && fe(t2[i3], e3, o3 || typeof n2.type != "function");
1667
+ o3 || G(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
1668
1668
  }
1669
- function je(n2, e3, o3) {
1669
+ function $e(n2, e3, o3) {
1670
1670
  return this.constructor(n2, o3);
1671
1671
  }
1672
- function be(n2, e3, o3) {
1673
- var a2, i3, l2, s3;
1674
- e3 == document && (e3 = document.documentElement), g2.__ && g2.__(n2, e3), i3 = (a2 = false) ? null : e3.__k, l2 = [], s3 = [], K(e3, n2 = e3.__k = De(Z2, null, [n2]), i3 || T2, T2, e3.namespaceURI, i3 ? null : e3.firstChild ? A2.call(e3.childNodes) : null, l2, i3 ? i3.__e : e3.firstChild, a2, s3), ue(l2, n2, s3);
1672
+ function ge(n2, e3, o3) {
1673
+ var t2, i3, l2, d2;
1674
+ e3 == document && (e3 = document.documentElement), g2.__ && g2.__(n2, e3), i3 = (t2 = false) ? null : e3.__k, l2 = [], d2 = [], Y(e3, n2 = e3.__k = Ne(Z2, null, [n2]), i3 || z2, z2, e3.namespaceURI, i3 ? null : e3.firstChild ? A2.call(e3.childNodes) : null, l2, i3 ? i3.__e : e3.firstChild, t2, d2), he(l2, n2, d2);
1675
1675
  }
1676
- A2 = de.slice, g2 = { __e: function(n2, e3, o3, a2) {
1677
- for (var i3, l2, s3; e3 = e3.__; ) if ((i3 = e3.__c) && !i3.__) try {
1678
- if ((l2 = i3.constructor) && l2.getDerivedStateFromError != null && (i3.setState(l2.getDerivedStateFromError(n2)), s3 = i3.__d), i3.componentDidCatch != null && (i3.componentDidCatch(n2, a2 || {}), s3 = i3.__d), s3) return i3.__E = i3;
1679
- } catch (d2) {
1680
- n2 = d2;
1676
+ A2 = re.slice, g2 = { __e: function(n2, e3, o3, t2) {
1677
+ for (var i3, l2, d2; e3 = e3.__; ) if ((i3 = e3.__c) && !i3.__) try {
1678
+ if ((l2 = i3.constructor) && l2.getDerivedStateFromError != null && (i3.setState(l2.getDerivedStateFromError(n2)), d2 = i3.__d), i3.componentDidCatch != null && (i3.componentDidCatch(n2, t2 || {}), d2 = i3.__d), d2) return i3.__E = i3;
1679
+ } catch (s3) {
1680
+ n2 = s3;
1681
1681
  }
1682
1682
  throw n2;
1683
- } }, te = 0, W.prototype.setState = function(n2, e3) {
1683
+ } }, oe = 0, U.prototype.setState = function(n2, e3) {
1684
1684
  var o3;
1685
- o3 = this.__s != null && this.__s != this.state ? this.__s : this.__s = M2({}, this.state), typeof n2 == "function" && (n2 = n2(M2({}, o3), this.props)), n2 && M2(o3, n2), n2 != null && this.__v && (e3 && this._sb.push(e3), ce(this));
1686
- }, W.prototype.forceUpdate = function(n2) {
1687
- this.__v && (this.__e = true, n2 && this.__h.push(n2), ce(this));
1688
- }, W.prototype.render = Z2, S2 = [], le = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, ie = function(n2, e3) {
1685
+ o3 = this.__s != null && this.__s != this.state ? this.__s : this.__s = V2({}, this.state), typeof n2 == "function" && (n2 = n2(V2({}, o3), this.props)), n2 && V2(o3, n2), n2 != null && this.__v && (e3 && this._sb.push(e3), se(this));
1686
+ }, U.prototype.forceUpdate = function(n2) {
1687
+ this.__v && (this.__e = true, n2 && this.__h.push(n2), se(this));
1688
+ }, U.prototype.render = Z2, P2 = [], ae = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, le = function(n2, e3) {
1689
1689
  return n2.__v.__b - e3.__v.__b;
1690
- }, F.__r = 0, re = /(PointerCapture)$|Capture$/i, q = 0, R2 = he(false), G = he(true);
1691
- var Ue = 0;
1692
- function r2(n2, e3, o3, a2, i3, l2) {
1690
+ }, W.__r = 0, ie = /(PointerCapture)$|Capture$/i, q = 0, R2 = me(false), X = me(true);
1691
+ var Ae = 0;
1692
+ function r2(n2, e3, o3, t2, i3, l2) {
1693
1693
  e3 || (e3 = {});
1694
- var s3, d2, p2 = e3;
1695
- if ("ref" in p2) for (d2 in p2 = {}, e3) d2 == "ref" ? s3 = e3[d2] : p2[d2] = e3[d2];
1696
- var c2 = { type: n2, props: p2, key: o3, ref: s3, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Ue, __i: -1, __u: 0, __source: i3, __self: l2 };
1697
- if (typeof n2 == "function" && (s3 = n2.defaultProps)) for (d2 in s3) p2[d2] === void 0 && (p2[d2] = s3[d2]);
1694
+ var d2, s3, p2 = e3;
1695
+ if ("ref" in p2) for (s3 in p2 = {}, e3) s3 == "ref" ? d2 = e3[s3] : p2[s3] = e3[s3];
1696
+ var c2 = { type: n2, props: p2, key: o3, ref: d2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Ae, __i: -1, __u: 0, __source: i3, __self: l2 };
1697
+ if (typeof n2 == "function" && (d2 = n2.defaultProps)) for (s3 in d2) p2[s3] === void 0 && (p2[s3] = d2[s3]);
1698
1698
  return g2.vnode && g2.vnode(c2), c2;
1699
1699
  }
1700
- /*!
1701
- * pure-swipe.js - v@version@
1702
- * Pure JavaScript swipe events
1703
- * https://github.com/john-doherty/pure-swipe
1704
- * @inspiration https://stackoverflow.com/questions/16348031/disable-scrolling-when-touch-moving-certain-element
1705
- * @author John Doherty <www.johndoherty.info>
1706
- * @license MIT
1707
- */
1708
- (function(n2, e3) {
1709
- "initCustomEvent" in e3.createEvent("CustomEvent") && (n2.CustomEvent = function(t2, _2) {
1710
- _2 = _2 || { bubbles: false, cancelable: false, detail: void 0 };
1711
- var m2 = e3.createEvent("CustomEvent");
1712
- return m2.initCustomEvent(t2, _2.bubbles, _2.cancelable, _2.detail), m2;
1713
- }, n2.CustomEvent.prototype = n2.Event.prototype), e3.addEventListener("touchstart", c2, false), e3.addEventListener("touchmove", h2, false), e3.addEventListener("touchend", p2, false);
1714
- var o3 = null, a2 = null, i3 = null, l2 = null, s3 = null, d2 = null;
1715
- function p2(t2) {
1716
- if (d2 === t2.target) {
1717
- var _2 = parseInt(d2.getAttribute("data-swipe-threshold") || "20", 10), m2 = parseInt(d2.getAttribute("data-swipe-timeout") || "500", 10), b = Date.now() - s3, y2 = "";
1718
- Math.abs(i3) > Math.abs(l2) ? Math.abs(i3) > _2 && b < m2 && (i3 > 0 ? y2 = "swiped-left" : y2 = "swiped-right") : Math.abs(l2) > _2 && b < m2 && (l2 > 0 ? y2 = "swiped-up" : y2 = "swiped-down"), y2 !== "" && d2.dispatchEvent(new CustomEvent(y2, { bubbles: true, cancelable: true })), o3 = null, a2 = null, s3 = null;
1719
- }
1720
- }
1721
- function c2(t2) {
1722
- t2.target.getAttribute("data-swipe-ignore") !== "true" && (d2 = t2.target, s3 = Date.now(), o3 = t2.touches[0].clientX, a2 = t2.touches[0].clientY, i3 = 0, l2 = 0);
1723
- }
1724
- function h2(t2) {
1725
- if (!(!o3 || !a2)) {
1726
- var _2 = t2.touches[0].clientX, m2 = t2.touches[0].clientY;
1727
- i3 = o3 - _2, l2 = a2 - m2;
1728
- }
1729
- }
1730
- })(window, document);
1731
- var D2, x2, Q, xe, O = 0, ve = [], v2 = g2, ye = v2.__b, we = v2.__r, Ce = v2.diffed, ke = v2.__c, He = v2.unmount, Le = v2.__;
1732
- function ee(n2, e3) {
1733
- v2.__h && v2.__h(x2, n2, O || e3), O = 0;
1734
- var o3 = x2.__H || (x2.__H = { __: [], __h: [] });
1700
+ var I2, b, J, be, Q = 0, xe = [], v2 = g2, ve = v2.__b, ye = v2.__r, Ce = v2.diffed, we = v2.__c, ke = v2.unmount, He = v2.__;
1701
+ function Me(n2, e3) {
1702
+ v2.__h && v2.__h(b, n2, Q || e3), Q = 0;
1703
+ var o3 = b.__H || (b.__H = { __: [], __h: [] });
1735
1704
  return n2 >= o3.__.length && o3.__.push({}), o3.__[n2];
1736
1705
  }
1737
- function P2(n2) {
1738
- return O = 1, Ze(Ve, n2);
1739
- }
1740
- function Ze(n2, e3, o3) {
1741
- var a2 = ee(D2++, 2);
1742
- if (a2.t = n2, !a2.__c && (a2.__ = [Ve(void 0, e3), function(d2) {
1743
- var p2 = a2.__N ? a2.__N[0] : a2.__[0], c2 = a2.t(p2, d2);
1744
- p2 !== c2 && (a2.__N = [c2, a2.__[1]], a2.__c.setState({}));
1745
- }], a2.__c = x2, !x2.__f)) {
1746
- var i3 = function(d2, p2, c2) {
1747
- if (!a2.__c.__H) return true;
1748
- var h2 = a2.__c.__H.__.filter(function(_2) {
1749
- return !!_2.__c;
1706
+ function L2(n2) {
1707
+ return Q = 1, De(Ve, n2);
1708
+ }
1709
+ function De(n2, e3, o3) {
1710
+ var t2 = Me(I2++, 2);
1711
+ if (t2.t = n2, !t2.__c && (t2.__ = [Ve(void 0, e3), function(s3) {
1712
+ var p2 = t2.__N ? t2.__N[0] : t2.__[0], c2 = t2.t(p2, s3);
1713
+ p2 !== c2 && (t2.__N = [c2, t2.__[1]], t2.__c.setState({}));
1714
+ }], t2.__c = b, !b.__f)) {
1715
+ var i3 = function(s3, p2, c2) {
1716
+ if (!t2.__c.__H) return true;
1717
+ var _2 = t2.__c.__H.__.filter(function(h2) {
1718
+ return !!h2.__c;
1750
1719
  });
1751
- if (h2.every(function(_2) {
1752
- return !_2.__N;
1753
- })) return !l2 || l2.call(this, d2, p2, c2);
1754
- var t2 = a2.__c.props !== d2;
1755
- return h2.forEach(function(_2) {
1756
- if (_2.__N) {
1757
- var m2 = _2.__[0];
1758
- _2.__ = _2.__N, _2.__N = void 0, m2 !== _2.__[0] && (t2 = true);
1720
+ if (_2.every(function(h2) {
1721
+ return !h2.__N;
1722
+ })) return !l2 || l2.call(this, s3, p2, c2);
1723
+ var a2 = t2.__c.props !== s3;
1724
+ return _2.forEach(function(h2) {
1725
+ if (h2.__N) {
1726
+ var m2 = h2.__[0];
1727
+ h2.__ = h2.__N, h2.__N = void 0, m2 !== h2.__[0] && (a2 = true);
1759
1728
  }
1760
- }), l2 && l2.call(this, d2, p2, c2) || t2;
1729
+ }), l2 && l2.call(this, s3, p2, c2) || a2;
1761
1730
  };
1762
- x2.__f = true;
1763
- var l2 = x2.shouldComponentUpdate, s3 = x2.componentWillUpdate;
1764
- x2.componentWillUpdate = function(d2, p2, c2) {
1731
+ b.__f = true;
1732
+ var l2 = b.shouldComponentUpdate, d2 = b.componentWillUpdate;
1733
+ b.componentWillUpdate = function(s3, p2, c2) {
1765
1734
  if (this.__e) {
1766
- var h2 = l2;
1767
- l2 = void 0, i3(d2, p2, c2), l2 = h2;
1735
+ var _2 = l2;
1736
+ l2 = void 0, i3(s3, p2, c2), l2 = _2;
1768
1737
  }
1769
- s3 && s3.call(this, d2, p2, c2);
1770
- }, x2.shouldComponentUpdate = i3;
1738
+ d2 && d2.call(this, s3, p2, c2);
1739
+ }, b.shouldComponentUpdate = i3;
1771
1740
  }
1772
- return a2.__N || a2.__;
1773
- }
1774
- function Ee(n2, e3) {
1775
- var o3 = ee(D2++, 3);
1776
- !v2.__s && Pe(o3.__H, e3) && (o3.__ = n2, o3.u = e3, x2.__H.__h.push(o3));
1777
- }
1778
- function We(n2, e3) {
1779
- var o3 = ee(D2++, 7);
1780
- return Pe(o3.__H, e3) && (o3.__ = n2(), o3.__H = e3, o3.__h = n2), o3.__;
1741
+ return t2.__N || t2.__;
1781
1742
  }
1782
- function Me(n2, e3) {
1783
- return O = 8, We(function() {
1784
- return n2;
1785
- }, e3);
1743
+ function je(n2, e3) {
1744
+ var o3 = Me(I2++, 3);
1745
+ !v2.__s && We(o3.__H, e3) && (o3.__ = n2, o3.u = e3, b.__H.__h.push(o3));
1786
1746
  }
1787
- function Fe() {
1788
- for (var n2; n2 = ve.shift(); ) if (n2.__P && n2.__H) try {
1789
- n2.__H.__h.forEach(B2), n2.__H.__h.forEach(ne), n2.__H.__h = [];
1747
+ function Ze() {
1748
+ for (var n2; n2 = xe.shift(); ) if (n2.__P && n2.__H) try {
1749
+ n2.__H.__h.forEach(O), n2.__H.__h.forEach(ee), n2.__H.__h = [];
1790
1750
  } catch (e3) {
1791
1751
  n2.__H.__h = [], v2.__e(e3, n2.__v);
1792
1752
  }
1793
1753
  }
1794
1754
  v2.__b = function(n2) {
1795
- x2 = null, ye && ye(n2);
1755
+ b = null, ve && ve(n2);
1796
1756
  }, v2.__ = function(n2, e3) {
1797
- n2 && e3.__k && e3.__k.__m && (n2.__m = e3.__k.__m), Le && Le(n2, e3);
1757
+ n2 && e3.__k && e3.__k.__m && (n2.__m = e3.__k.__m), He && He(n2, e3);
1798
1758
  }, v2.__r = function(n2) {
1799
- we && we(n2), D2 = 0;
1800
- var e3 = (x2 = n2.__c).__H;
1801
- e3 && (Q === x2 ? (e3.__h = [], x2.__h = [], e3.__.forEach(function(o3) {
1759
+ ye && ye(n2), I2 = 0;
1760
+ var e3 = (b = n2.__c).__H;
1761
+ e3 && (J === b ? (e3.__h = [], b.__h = [], e3.__.forEach(function(o3) {
1802
1762
  o3.__N && (o3.__ = o3.__N), o3.u = o3.__N = void 0;
1803
- })) : (e3.__h.forEach(B2), e3.__h.forEach(ne), e3.__h = [], D2 = 0)), Q = x2;
1763
+ })) : (e3.__h.forEach(O), e3.__h.forEach(ee), e3.__h = [], I2 = 0)), J = b;
1804
1764
  }, v2.diffed = function(n2) {
1805
1765
  Ce && Ce(n2);
1806
1766
  var e3 = n2.__c;
1807
- e3 && e3.__H && (e3.__H.__h.length && (ve.push(e3) !== 1 && xe === v2.requestAnimationFrame || ((xe = v2.requestAnimationFrame) || Ie)(Fe)), e3.__H.__.forEach(function(o3) {
1767
+ e3 && e3.__H && (e3.__H.__h.length && (xe.push(e3) !== 1 && be === v2.requestAnimationFrame || ((be = v2.requestAnimationFrame) || Ue)(Ze)), e3.__H.__.forEach(function(o3) {
1808
1768
  o3.u && (o3.__H = o3.u), o3.u = void 0;
1809
- })), Q = x2 = null;
1769
+ })), J = b = null;
1810
1770
  }, v2.__c = function(n2, e3) {
1811
1771
  e3.some(function(o3) {
1812
1772
  try {
1813
- o3.__h.forEach(B2), o3.__h = o3.__h.filter(function(a2) {
1814
- return !a2.__ || ne(a2);
1773
+ o3.__h.forEach(O), o3.__h = o3.__h.filter(function(t2) {
1774
+ return !t2.__ || ee(t2);
1815
1775
  });
1816
- } catch (a2) {
1776
+ } catch (t2) {
1817
1777
  e3.some(function(i3) {
1818
1778
  i3.__h && (i3.__h = []);
1819
- }), e3 = [], v2.__e(a2, o3.__v);
1779
+ }), e3 = [], v2.__e(t2, o3.__v);
1820
1780
  }
1821
- }), ke && ke(n2, e3);
1781
+ }), we && we(n2, e3);
1822
1782
  }, v2.unmount = function(n2) {
1823
- He && He(n2);
1783
+ ke && ke(n2);
1824
1784
  var e3, o3 = n2.__c;
1825
- o3 && o3.__H && (o3.__H.__.forEach(function(a2) {
1785
+ o3 && o3.__H && (o3.__H.__.forEach(function(t2) {
1826
1786
  try {
1827
- B2(a2);
1787
+ O(t2);
1828
1788
  } catch (i3) {
1829
1789
  e3 = i3;
1830
1790
  }
1831
1791
  }), o3.__H = void 0, e3 && v2.__e(e3, o3.__v));
1832
1792
  };
1833
1793
  var Se = typeof requestAnimationFrame == "function";
1834
- function Ie(n2) {
1794
+ function Ue(n2) {
1835
1795
  var e3, o3 = function() {
1836
- clearTimeout(a2), Se && cancelAnimationFrame(e3), setTimeout(n2);
1837
- }, a2 = setTimeout(o3, 35);
1796
+ clearTimeout(t2), Se && cancelAnimationFrame(e3), setTimeout(n2);
1797
+ }, t2 = setTimeout(o3, 35);
1838
1798
  Se && (e3 = requestAnimationFrame(o3));
1839
1799
  }
1840
- function B2(n2) {
1841
- var e3 = x2, o3 = n2.__c;
1842
- typeof o3 == "function" && (n2.__c = void 0, o3()), x2 = e3;
1800
+ function O(n2) {
1801
+ var e3 = b, o3 = n2.__c;
1802
+ typeof o3 == "function" && (n2.__c = void 0, o3()), b = e3;
1843
1803
  }
1844
- function ne(n2) {
1845
- var e3 = x2;
1846
- n2.__c = n2.__(), x2 = e3;
1804
+ function ee(n2) {
1805
+ var e3 = b;
1806
+ n2.__c = n2.__(), b = e3;
1847
1807
  }
1848
- function Pe(n2, e3) {
1849
- return !n2 || n2.length !== e3.length || e3.some(function(o3, a2) {
1850
- return o3 !== n2[a2];
1808
+ function We(n2, e3) {
1809
+ return !n2 || n2.length !== e3.length || e3.some(function(o3, t2) {
1810
+ return o3 !== n2[t2];
1851
1811
  });
1852
1812
  }
1853
1813
  function Ve(n2, e3) {
1854
1814
  return typeof e3 == "function" ? e3(n2) : e3;
1855
1815
  }
1856
- const Oe = `shipaid-global-modal {
1816
+ const Fe = `shipaid-global-modal {
1857
1817
  position: relative;
1858
1818
  }
1859
1819
 
@@ -2388,33 +2348,33 @@ if (!customElements.get("checkout-package-protection")) {
2388
2348
  }
2389
2349
 
2390
2350
  }
2391
- `, Be = ({ children: n2, onClose: e3 }) => r2("div", { class: "shipaid-global-modal", children: [r2("style", { children: Oe }), r2("div", { class: "modal-overlay", children: [r2("div", { class: "modal-content", onClick: e3, children: n2 }), r2("div", { class: "modal-close", onClick: e3, children: r2("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", children: [r2("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), r2("line", { x1: "6", y1: "6", x2: "18", y2: "18" })] }) })] })] }), Xe = ({ onChange: n2, index: e3, maxSlides: o3 }) => r2("div", { className: "logo-arrows", children: r2("div", { className: "modal-arrows", children: [r2("button", { class: "modal-arrow modal-arrow-prev", type: "button", "aria-label": "Previous slide", onClick: () => {
2351
+ `, Ie = ({ children: n2, onClose: e3 }) => r2("div", { class: "shipaid-global-modal", children: [r2("style", { children: Fe }), r2("div", { class: "modal-overlay", children: [r2("div", { class: "modal-content", onClick: e3, children: n2 }), r2("div", { class: "modal-close", onClick: e3, children: r2("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", children: [r2("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), r2("line", { x1: "6", y1: "6", x2: "18", y2: "18" })] }) })] })] }), Oe = ({ onChange: n2, index: e3, maxSlides: o3 }) => r2("div", { className: "logo-arrows", children: r2("div", { className: "modal-arrows", children: [r2("button", { class: "modal-arrow modal-arrow-prev", type: "button", "aria-label": "Previous slide", onClick: () => {
2392
2352
  e3 > 0 && n2(e3 - 1);
2393
2353
  }, className: e3 === 0 ? "disabled" : "", children: r2("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "none", stroke: "#222", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", children: r2("polyline", { points: "15 18 9 12 15 6" }) }) }), r2("button", { class: "modal-arrow modal-arrow-next", type: "button", "aria-label": "Next slide", onClick: () => {
2394
2354
  e3 < o3 && n2(e3 + 1);
2395
- }, className: e3 === o3 ? "disabled" : "", children: r2("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "none", stroke: "#222", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", children: r2("polyline", { points: "9 18 15 12 9 6" }) }) })] }) }), qe = ({ children: n2, isTransparent: e3 }) => r2("div", { className: `modal-box ${e3 ? "transparent" : ""}`, children: n2 }), Re = ({ slides: n2, slideIndex: e3, onSlideIndexChange: o3, onClose: a2 }) => {
2396
- const [i3, l2] = P2(false), [s3, d2] = P2(0), [p2, c2] = P2(0), h2 = 380, t2 = (C2) => {
2397
- C2.preventDefault(), l2(true), d2(C2.clientX);
2398
- }, _2 = (C2) => {
2355
+ }, className: e3 === o3 ? "disabled" : "", children: r2("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "none", stroke: "#222", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", children: r2("polyline", { points: "9 18 15 12 9 6" }) }) })] }) }), Be = ({ children: n2, isTransparent: e3 }) => r2("div", { className: `modal-box ${e3 ? "transparent" : ""}`, children: n2 }), qe = ({ slides: n2, slideIndex: e3, onSlideIndexChange: o3, onClose: t2 }) => {
2356
+ const [i3, l2] = L2(false), [d2, s3] = L2(0), [p2, c2] = L2(0), _2 = 380, a2 = (C2) => {
2357
+ C2.preventDefault(), l2(true), s3(C2.clientX);
2358
+ }, h2 = (C2) => {
2399
2359
  if (!i3) return;
2400
- let k2 = C2.clientX - s3;
2401
- k2 > h2 && (k2 = h2), k2 < -h2 && (k2 = -h2), c2(k2);
2360
+ let k2 = C2.clientX - d2;
2361
+ k2 > _2 && (k2 = _2), k2 < -_2 && (k2 = -_2), c2(k2);
2402
2362
  }, m2 = () => {
2403
2363
  l2(false), p2 > 50 && e3 > 0 ? o3(e3 - 1) : p2 < -50 && e3 < n2.length - 1 && o3(e3 + 1), c2(0);
2404
- }, b = 1200, y2 = 400, [, w2] = P2(0), [f2, u2] = P2(false), V2 = (C2) => {
2405
- f2 || Math.abs(C2.deltaX) > Math.abs(C2.deltaY) && (C2.preventDefault(), w2((L2) => {
2406
- const k2 = L2 + C2.deltaX;
2407
- return k2 < -b && e3 > 0 ? (o3(e3 - 1), H2(), 0) : k2 > b && e3 < n2.length - 1 ? (o3(e3 + 1), H2(), 0) : k2;
2364
+ }, x2 = 1200, w2 = 400, [, y2] = L2(0), [f2, u2] = L2(false), N2 = (C2) => {
2365
+ f2 || Math.abs(C2.deltaX) > Math.abs(C2.deltaY) && (C2.preventDefault(), y2((M2) => {
2366
+ const k2 = M2 + C2.deltaX;
2367
+ return k2 < -x2 && e3 > 0 ? (o3(e3 - 1), H2(), 0) : k2 > x2 && e3 < n2.length - 1 ? (o3(e3 + 1), H2(), 0) : k2;
2408
2368
  }));
2409
2369
  }, H2 = () => {
2410
2370
  u2(true), setTimeout(() => {
2411
2371
  u2(false);
2412
- }, y2);
2372
+ }, w2);
2413
2373
  };
2414
- return r2("div", { className: "modal-boxes-container", onClick: a2, children: [r2(Xe, { onChange: o3, index: e3, maxSlides: n2.length - 1 }), r2("div", { className: "modal-boxes-wrapper", style: { transform: `translateX(calc(-${e3 * 380}px + ${p2}px))`, transition: i3 ? "none" : "transform 0.3s ease", overscrollBehavior: "none", touchAction: "none", userSelect: "none" }, onPointerDown: t2, onPointerMove: _2, onPointerUp: m2, onWheel: V2, children: n2.map((C2, L2) => r2(qe, { children: C2 }, L2)) })] });
2415
- }, Ge = () => r2("div", { class: "slide slide-one" }), Ye = () => r2("div", { class: "slide slide-two", children: [r2("p", { class: "title", children: "SHIPAID" }), r2("p", { class: "subtitle", children: "Direct Brand to Customer Promise" }), r2("p", { class: "desc", children: "We enable your favorite brands to provide a delivery guarantee because we know that every order is precious, and things happen! In case of any issues during transit, we offer a quick and easy method to report the problem directly to the brand, for a swift resolution." }), r2("p", { class: "legal", children: "By purchasing this delivery guarantee, you agree to our Terms Of Service and Privacy Policy. You are not obligated to purchase this guarantee. This guarantee is NOT insurance and does not provide indemnification against loss, damage, or liability arising from a contingent or unknown event, but rather, through ShipAid brands provide a delivery guarantee whereby if the product you ordered is not delivered in satisfactory condition, the brand from which you ordered the product may replace the product free of charge. ShipAid does not provide any products or services directly to consumers, but instead provides a service that allows brands to facilitate product replacement to their customers. Purchasing this guarantee does not mean that you will automatically be reimbursed for any product or shipping costs because the resolution process and decision for compensation is strictly decided by the brand you are purchasing from. The brand will require proof of damage or undelivered product." }), r2("div", { class: "footer", children: [r2("a", { href: "https://www.shipaid.com/terms-of-service", target: "_blank", children: "Terms of Service" }), r2("a", { href: "https://www.shipaid.com/privacy-policy", target: "_blank", children: "Privacy Policy" }), r2("p", { children: "ShipAid © 2025" })] })] }), Ke = () => r2("div", { class: "slide slide-three", children: [r2("p", { class: "title", children: "1 Order = 1 Tree" }), r2("div", { class: "info-bg", children: r2("div", { class: "info-section", children: [r2("div", { class: "info-left", children: [r2("p", { class: "info-title", children: "Protect your order & the environment" }), r2("p", { class: "info-desc", children: "Every SHIPAID purchase plants one tree to offset carbon impact and fight deforestation, verified." })] }), r2("div", { class: "info-right", children: [r2("img", { src: "https://res.cloudinary.com/shipaid/image/upload/v1753199774/Logo-tree_uz4fzn.svg", alt: "ShipAid Green Logo" }), r2("a", { href: "https://help.shipaid.com/en/article/what-does-the-shipaid-x-thegoodapi-partnership-offer-y4ecs/", target: "_blank", children: "Learn more" })] })] }) })] }), Je = () => r2("div", { class: "slide slide-four", children: [r2("div", { class: "content", children: [r2("p", { class: "title", children: "Kenya Mangroves" }), r2("p", { class: "subtitle", children: "Rebuilding Eastern Africa’s Ecosystems" }), r2("p", { class: "desc", children: ["Restoring mangroves to protect coastlines, support livelihoods, and rebuild ecosystems one tree at a time. Your order helps break the cycle of poverty, naturally. ", r2("a", { href: "https://thegoodapi.com/", target: "_blank", children: "Learn more" })] })] }), r2("div", { class: "footer", children: [r2("p", { children: "Powered by" }), r2("img", { src: "https://res.cloudinary.com/shipaid/image/upload/v1753376903/Copy_of_GoodAPI_Updated_Logo_zn8wuq.png", alt: "GoodAPI Logo" })] })] }), Ne = () => r2("div", { class: "slide slide-five", children: [r2("div", { class: "icons", children: r2("img", { src: "https://res.cloudinary.com/shipaid/image/upload/v1758315892/icon-combo-boxed_fgty2o.png", alt: "Inspired Logo" }) }), r2("div", { className: "content", children: [r2("h3", { class: "card-title", children: "Unlock a Gift that Gives Back" }), r2("p", { class: "card-subtitle", children: "Opt-in to the delivery guarantee and unlock a free donation to a cause you love—on us." }), r2("p", { class: "card-note", children: "Watch for an email to pick a cause." })] }), r2("div", { className: "footer", children: [r2("div", { class: "powered", children: r2("span", { class: "logo-inspired", "aria-label": "INSPIRED", children: r2("svg", { width: "144", height: "9", viewBox: "0 0 144 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [r2("path", { d: "M91.0334 0.159698C92.1657 0.0239384 93.3063 -0.0254417 94.4455 0.0122371C96.7212 0.0122371 97.5427 0.122916 98.0949 0.513214C98.5621 0.844662 98.7502 1.35692 98.7502 2.32181V2.68997H96.4523C96.4275 2.24067 96.392 2.13053 96.215 2.02005C96.038 1.90964 95.723 1.87259 94.0353 1.87259C92.0183 1.87259 91.8547 1.92385 91.8547 2.52005C91.8547 2.82572 91.9614 2.98456 92.2092 3.04349C93.0411 3.15315 93.8794 3.20255 94.7179 3.19095C97.2982 3.27565 97.8052 3.33779 98.3078 3.66556C98.8103 3.99335 99.0471 4.58317 99.0471 5.71732C99.047 7.13136 98.7179 7.82737 97.9074 8.14407C97.4402 8.32821 96.4562 8.39114 94.1203 8.39114C91.6958 8.39114 90.7437 8.27991 90.1916 7.91165C89.6395 7.54341 89.4836 7.08351 89.4836 5.96048V5.56985L91.7765 5.57767C91.7766 6.06709 91.8234 6.22571 92.0109 6.3472C92.1985 6.46854 92.4936 6.51614 94.1701 6.51614C96.7249 6.51614 96.7248 6.51625 96.7248 5.79837C96.7248 5.30858 96.5518 5.18638 95.7873 5.17532L93.9113 5.10208L92.6437 5.03958L92.0109 5.01712C90.0784 4.95451 89.5334 4.44246 89.5334 2.64896C89.5335 1.09893 89.9541 0.402787 91.0334 0.159698ZM104.886 0.134307C105.604 0.103487 106.324 0.128001 107.038 0.208526C108.534 0.443683 108.965 1.11262 108.965 3.22903C108.965 5.05739 108.642 5.77399 107.692 6.13235C107.157 6.31897 106.615 6.3677 104.911 6.36771H102.076C102.049 6.36776 102.022 6.37327 101.996 6.38431C101.971 6.39542 101.947 6.41166 101.928 6.43216C101.909 6.45264 101.894 6.47776 101.884 6.50442C101.874 6.53105 101.868 6.55975 101.868 6.58841V8.39114H99.4543V0.134307H104.886ZM76.9894 8.39017H74.4601V0.141143L76.9894 0.133331V8.39017ZM88.6437 8.39017H84.4504L80.3244 2.6011C80.3032 2.57084 80.2737 2.54797 80.2394 2.53665C80.2051 2.52535 80.168 2.52557 80.134 2.53763C80.0999 2.54972 80.0705 2.57329 80.05 2.60403C80.0294 2.63483 80.0187 2.67204 80.0197 2.7095L80.0812 8.39017H77.6203V0.141143H81.8527L85.9387 5.91556C85.9609 5.94308 85.9912 5.96286 86.0246 5.9722C86.0578 5.98147 86.0928 5.97944 86.1252 5.96732C86.1577 5.9551 86.1863 5.9332 86.2062 5.90384C86.2261 5.8745 86.2363 5.83914 86.2365 5.80325L86.1828 0.133331H88.6437V8.39017ZM112.042 8.39017H109.53V0.141143L112.042 0.133331V8.39017ZM118.531 0.141143C119.25 0.110318 119.969 0.135844 120.684 0.216339C122.18 0.451495 122.611 1.11946 122.611 3.23587C122.61 4.78097 122.176 5.46028 121.387 5.66556L123.281 8.28958V0.141143L132.053 0.133331V2.07864H125.868C125.841 2.07815 125.813 2.08269 125.787 2.09329C125.762 2.10389 125.739 2.12018 125.719 2.14017C125.699 2.16032 125.683 2.18494 125.672 2.21146C125.662 2.23772 125.656 2.26601 125.656 2.29446V3.06009C125.656 3.08883 125.661 3.11757 125.672 3.14407C125.683 3.17055 125.699 3.19426 125.719 3.21439C125.739 3.23446 125.762 3.25063 125.787 3.26126C125.813 3.2719 125.841 3.27738 125.868 3.27689H131.74V5.09427H125.879C125.851 5.09377 125.824 5.09924 125.798 5.10989C125.772 5.12055 125.749 5.13663 125.73 5.15677C125.71 5.17692 125.693 5.20057 125.683 5.22708C125.672 5.25356 125.667 5.28236 125.667 5.31107V6.18802C125.667 6.21677 125.672 6.24549 125.683 6.272C125.693 6.29849 125.71 6.32218 125.73 6.34232C125.749 6.36241 125.772 6.37856 125.798 6.38919C125.824 6.39983 125.851 6.40531 125.879 6.40482H132.1V8.39017H120.576L119.142 6.37454H115.367C115.34 6.37408 115.312 6.37941 115.286 6.39017C115.26 6.40104 115.237 6.4175 115.217 6.43802C115.197 6.45857 115.182 6.48334 115.171 6.51028C115.161 6.53718 115.156 6.56625 115.156 6.59525V8.39017H112.745V0.141143H118.531ZM138.395 0.133331C140.414 0.133331 140.687 0.134134 141.365 0.29837C141.724 0.352973 142.061 0.512932 142.335 0.760284C142.609 1.00767 142.809 1.33184 142.911 1.69388C143.087 2.27611 143.138 2.79494 143.138 4.14212C143.138 6.29173 142.958 7.1283 142.377 7.69192C141.796 8.25555 141.067 8.39017 138.395 8.39017H132.676V0.133331H138.395ZM135.263 2.20169C135.208 2.20171 135.154 2.22458 135.115 2.26517C135.077 2.30574 135.055 2.36122 135.055 2.41849V6.06497C135.055 6.12233 135.076 6.17773 135.115 6.21829C135.154 6.25888 135.208 6.28175 135.263 6.28177H138.416C140.605 6.28177 140.759 6.15786 140.759 4.29153C140.759 3.27646 140.676 2.81709 140.44 2.54837C140.203 2.27977 139.869 2.20169 138.395 2.20169H135.263ZM102.076 2.20169C102.021 2.20181 101.969 2.22485 101.93 2.26517C101.891 2.30574 101.868 2.36111 101.868 2.41849V4.08743C101.868 4.14468 101.891 4.19927 101.93 4.23978C101.969 4.28027 102.021 4.30313 102.076 4.30325H104.886C106.004 4.30325 106.052 4.30356 106.252 4.16946C106.453 4.03512 106.55 3.79607 106.55 3.22903C106.55 2.66167 106.442 2.38513 106.134 2.27689C105.969 2.21349 105.944 2.21288 104.886 2.20169H102.076ZM115.367 2.20169C115.34 2.20123 115.313 2.20675 115.287 2.21732C115.262 2.22795 115.238 2.24313 115.218 2.26321C115.198 2.28337 115.183 2.30799 115.172 2.3345C115.161 2.36098 115.156 2.38979 115.156 2.41849V4.08646C115.156 4.1152 115.161 4.14393 115.172 4.17044C115.183 4.19682 115.198 4.22067 115.218 4.24075C115.238 4.26091 115.262 4.27697 115.287 4.28763C115.313 4.29817 115.34 4.30371 115.367 4.30325H118.531C119.651 4.29205 119.673 4.31779 119.899 4.16849C120.125 4.01919 120.196 3.80649 120.196 3.22806C120.196 2.6496 120.089 2.38418 119.78 2.27591C119.608 2.20126 119.608 2.20169 118.531 2.20169H115.367Z", fill: "black" }), r2("path", { d: "M67.7164 5.02032V8.25483H66.6641V5.02032L63.6068 0.345793H64.8586L67.2291 4.112L69.5442 0.345793H70.7405L67.7164 5.02032Z", fill: "black" }), r2("path", { d: "M58.0288 3.74646H60.1334C60.7316 3.74646 61.1599 3.64307 61.4183 3.4363C61.6842 3.22214 61.8171 2.9046 61.8171 2.48367C61.8171 2.20305 61.7728 1.98151 61.6842 1.81905C61.5956 1.65658 61.4737 1.53104 61.3187 1.44242C61.1636 1.35381 60.9826 1.29842 60.7759 1.27627C60.5765 1.24673 60.3623 1.23196 60.1334 1.23196H58.0288V3.74646ZM56.9764 0.345793H59.8454C60.0152 0.345793 60.1962 0.349486 60.3882 0.35687C60.5876 0.35687 60.7833 0.367947 60.9753 0.390102C61.1673 0.404871 61.3445 0.430718 61.507 0.467642C61.6768 0.504565 61.8208 0.559951 61.939 0.633798C62.1974 0.788877 62.4153 1.00303 62.5925 1.27627C62.7771 1.5495 62.8694 1.88551 62.8694 2.28428C62.8694 2.70521 62.7661 3.07076 62.5593 3.38091C62.3599 3.68369 62.0719 3.90892 61.6953 4.05662V4.07877C62.1827 4.18216 62.5556 4.4037 62.8141 4.74339C63.0725 5.08309 63.2018 5.49664 63.2018 5.98403C63.2018 6.27203 63.1501 6.55265 63.0467 6.82589C62.9433 7.09912 62.7882 7.34282 62.5814 7.55697C62.3821 7.76375 62.131 7.93359 61.8282 8.06652C61.5328 8.19206 61.1894 8.25483 60.798 8.25483H56.9764V0.345793ZM58.0288 7.36866H60.6651C61.1303 7.36866 61.4922 7.24312 61.7507 6.99204C62.0165 6.74096 62.1494 6.39388 62.1494 5.9508C62.1494 5.69233 62.1014 5.47817 62.0054 5.30833C61.9094 5.13848 61.7802 5.00555 61.6177 4.90955C61.4627 4.80616 61.2817 4.73601 61.075 4.69909C60.8682 4.65478 60.654 4.63262 60.4325 4.63262H58.0288V7.36866Z", fill: "black" }), r2("path", { d: "M47.3679 7.36866H49.1181C49.2363 7.36866 49.384 7.36128 49.5612 7.34651C49.7384 7.32435 49.9267 7.28005 50.1261 7.21358C50.3255 7.13974 50.5212 7.03635 50.7132 6.90343C50.9126 6.7705 51.0898 6.58957 51.2449 6.36065C51.4 6.13172 51.5255 5.84741 51.6215 5.50771C51.7249 5.16063 51.7766 4.74339 51.7766 4.256C51.7766 3.78338 51.7286 3.36245 51.6326 2.99322C51.544 2.61659 51.3926 2.29905 51.1784 2.04059C50.9717 1.77474 50.7021 1.57535 50.3698 1.44242C50.0375 1.30212 49.6277 1.23196 49.1403 1.23196H47.3679V7.36866ZM46.3156 0.345793H49.0295C50.248 0.345793 51.1858 0.655952 51.8431 1.27627C52.5003 1.89658 52.8289 2.84183 52.8289 4.112C52.8289 4.77663 52.7551 5.3674 52.6074 5.88433C52.4597 6.39388 52.2308 6.82589 51.9206 7.18035C51.6105 7.52743 51.2154 7.79328 50.7354 7.9779C50.2554 8.16252 49.6867 8.25483 49.0295 8.25483H46.3156V0.345793Z", fill: "black" }), r2("path", { d: "M39.6547 0.345793H45.1157V1.23196H40.707V3.74646H44.8166V4.63262H40.707V7.36866H45.1489V8.25483H39.6547V0.345793Z", fill: "black" }), r2("path", { d: "M32.1824 0.345793H35.9043C36.6575 0.345793 37.2446 0.530411 37.6655 0.899647C38.0938 1.26888 38.308 1.77474 38.308 2.41721C38.308 2.89721 38.1972 3.31814 37.9757 3.68C37.7615 4.04185 37.4145 4.28923 36.9344 4.42216V4.44431C37.1634 4.48862 37.348 4.56247 37.4883 4.66586C37.636 4.76924 37.7505 4.89478 37.8317 5.04248C37.9203 5.18279 37.9831 5.34156 38.02 5.51879C38.0643 5.69602 38.0975 5.88064 38.1197 6.07264C38.1345 6.26465 38.1455 6.46034 38.1529 6.65973C38.1603 6.85912 38.1788 7.05481 38.2083 7.24681C38.2379 7.43882 38.2785 7.62344 38.3302 7.80067C38.3892 7.97052 38.4742 8.1219 38.5849 8.25483H37.4108C37.3369 8.1736 37.2852 8.06283 37.2557 7.92252C37.2335 7.78221 37.2188 7.62713 37.2114 7.45728C37.204 7.28005 37.1966 7.09174 37.1892 6.89235C37.1818 6.69296 37.1597 6.49727 37.1228 6.30526C37.0932 6.11326 37.0563 5.93234 37.012 5.76249C36.9677 5.58525 36.8975 5.43387 36.8015 5.30833C36.7055 5.1754 36.58 5.07201 36.4249 4.99817C36.2698 4.91694 36.063 4.87632 35.8046 4.87632H33.2347V8.25483H32.1824V0.345793ZM35.428 3.99015C35.6717 3.99015 35.9043 3.97169 36.1258 3.93477C36.3474 3.89784 36.5394 3.82769 36.7018 3.7243C36.8717 3.61353 37.0046 3.46953 37.1006 3.2923C37.204 3.10768 37.2557 2.87137 37.2557 2.58336C37.2557 2.18459 37.1449 1.85966 36.9234 1.60858C36.7018 1.3575 36.3437 1.23196 35.8489 1.23196H33.2347V3.99015H35.428Z", fill: "black" }), r2("path", { d: "M25.5214 0.345793H30.9824V1.23196H26.5737V3.74646H30.6833V4.63262H26.5737V7.36866H31.0157V8.25483H25.5214V0.345793Z", fill: "black" }), r2("path", { d: "M22.522 8.25483H21.4253L19.6198 1.60858H19.5976L17.7699 8.25483H16.6733L14.6461 0.345793H15.7206L17.2714 6.92558H17.2936L19.0659 0.345793H20.2068L21.957 6.92558H21.9792L23.5854 0.345793H24.6377L22.522 8.25483Z", fill: "black" }), r2("path", { d: "M7.68126 4.30031C7.68126 4.69909 7.73295 5.09417 7.83634 5.48556C7.93973 5.86957 8.10219 6.21665 8.32373 6.52681C8.54527 6.83696 8.82959 7.08804 9.17667 7.28005C9.52375 7.46466 9.93729 7.55697 10.4173 7.55697C10.8973 7.55697 11.3109 7.46466 11.6579 7.28005C12.005 7.08804 12.2893 6.83696 12.5109 6.52681C12.7324 6.21665 12.8949 5.86957 12.9983 5.48556C13.1016 5.09417 13.1533 4.69909 13.1533 4.30031C13.1533 3.90154 13.1016 3.51015 12.9983 3.12614C12.8949 2.73475 12.7324 2.38398 12.5109 2.07382C12.2893 1.76366 12.005 1.51627 11.6579 1.33165C11.3109 1.13965 10.8973 1.04365 10.4173 1.04365C9.93729 1.04365 9.52375 1.13965 9.17667 1.33165C8.82959 1.51627 8.54527 1.76366 8.32373 2.07382C8.10219 2.38398 7.93973 2.73475 7.83634 3.12614C7.73295 3.51015 7.68126 3.90154 7.68126 4.30031ZM6.62894 4.30031C6.62894 3.76123 6.70648 3.2443 6.86156 2.74952C7.02402 2.24736 7.26403 1.80428 7.58157 1.42027C7.89911 1.03626 8.29419 0.729799 8.76682 0.500872C9.23944 0.271946 9.7896 0.157483 10.4173 0.157483C11.045 0.157483 11.5952 0.271946 12.0678 0.500872C12.5404 0.729799 12.9355 1.03626 13.253 1.42027C13.5706 1.80428 13.8069 2.24736 13.962 2.74952C14.1244 3.2443 14.2057 3.76123 14.2057 4.30031C14.2057 4.8394 14.1244 5.36002 13.962 5.86218C13.8069 6.35696 13.5706 6.79635 13.253 7.18035C12.9355 7.56436 12.5404 7.87082 12.0678 8.09975C11.5952 8.32129 11.045 8.43206 10.4173 8.43206C9.7896 8.43206 9.23944 8.32129 8.76682 8.09975C8.29419 7.87082 7.89911 7.56436 7.58157 7.18035C7.26403 6.79635 7.02402 6.35696 6.86156 5.86218C6.70648 5.36002 6.62894 4.8394 6.62894 4.30031Z", fill: "black" }), r2("path", { d: "M1.05232 4.13416H3.11266C3.71082 4.14154 4.14652 4.01969 4.41975 3.76861C4.70037 3.51753 4.84068 3.15568 4.84068 2.68306C4.84068 2.21044 4.70037 1.85228 4.41975 1.60858C4.14652 1.3575 3.71082 1.23196 3.11266 1.23196H1.05232V4.13416ZM-1.37091e-06 0.345793H3.46713C4.26468 0.345793 4.86653 0.552565 5.27269 0.96611C5.68623 1.37227 5.89301 1.94459 5.89301 2.68306C5.89301 3.42153 5.68623 3.99754 5.27269 4.41108C4.86653 4.82463 4.26468 5.02771 3.46713 5.02032H1.05232V8.25483H-1.37091e-06V0.345793Z", fill: "black" })] }) }) }), r2("p", { class: "card-legal", children: "Donation gifts are provided at no cost to you by major donors and The Inspired Foundation." })] })] }), Qe = ({ greenProtectionEnabled: n2, freeGiftEnabled: e3, open: o3 }) => {
2416
- const [a2, i3] = P2(o3), [l2, s3] = P2(0), d2 = [r2(Ge, {}), r2(Ye, {})];
2417
- n2 ? (d2.push(r2(Ke, {})), e3 && d2.push(r2(Ne, {})), d2.push(r2(Je, {}))) : e3 && d2.push(r2(Ne, {})), console.log("slides", d2), Ee(() => {
2374
+ return r2("div", { className: "modal-boxes-container", onClick: t2, children: [r2(Oe, { onChange: o3, index: e3, maxSlides: n2.length - 1 }), r2("div", { className: "modal-boxes-wrapper", style: { transform: `translateX(calc(-${e3 * 380}px + ${p2}px))`, transition: i3 ? "none" : "transform 0.3s ease", overscrollBehavior: "none", touchAction: "none", userSelect: "none" }, onPointerDown: a2, onPointerMove: h2, onPointerUp: m2, onWheel: N2, children: n2.map((C2, M2) => r2(Be, { children: C2 }, M2)) })] });
2375
+ }, Re = () => r2("div", { class: "slide slide-one" }), Xe = () => r2("div", { class: "slide slide-two", children: [r2("p", { class: "title", children: "SHIPAID" }), r2("p", { class: "subtitle", children: "Direct Brand to Customer Promise" }), r2("p", { class: "desc", children: "We enable your favorite brands to provide a delivery guarantee because we know that every order is precious, and things happen! In case of any issues during transit, we offer a quick and easy method to report the problem directly to the brand, for a swift resolution." }), r2("p", { class: "legal", children: "By purchasing this delivery guarantee, you agree to our Terms Of Service and Privacy Policy. You are not obligated to purchase this guarantee. This guarantee is NOT insurance and does not provide indemnification against loss, damage, or liability arising from a contingent or unknown event, but rather, through ShipAid brands provide a delivery guarantee whereby if the product you ordered is not delivered in satisfactory condition, the brand from which you ordered the product may replace the product free of charge. ShipAid does not provide any products or services directly to consumers, but instead provides a service that allows brands to facilitate product replacement to their customers. Purchasing this guarantee does not mean that you will automatically be reimbursed for any product or shipping costs because the resolution process and decision for compensation is strictly decided by the brand you are purchasing from. The brand will require proof of damage or undelivered product." }), r2("div", { class: "footer", children: [r2("a", { href: "https://www.shipaid.com/terms-of-service", target: "_blank", children: "Terms of Service" }), r2("a", { href: "https://www.shipaid.com/privacy-policy", target: "_blank", children: "Privacy Policy" }), r2("p", { children: "ShipAid © 2025" })] })] }), Ge = () => r2("div", { class: "slide slide-three", children: [r2("p", { class: "title", children: "1 Order = 1 Tree" }), r2("div", { class: "info-bg", children: r2("div", { class: "info-section", children: [r2("div", { class: "info-left", children: [r2("p", { class: "info-title", children: "Protect your order & the environment" }), r2("p", { class: "info-desc", children: "Every SHIPAID purchase plants one tree to offset carbon impact and fight deforestation, verified." })] }), r2("div", { class: "info-right", children: [r2("img", { src: "https://res.cloudinary.com/shipaid/image/upload/v1753199774/Logo-tree_uz4fzn.svg", alt: "ShipAid Green Logo" }), r2("a", { href: "https://help.shipaid.com/en/article/what-does-the-shipaid-x-thegoodapi-partnership-offer-y4ecs/", target: "_blank", children: "Learn more" })] })] }) })] }), Ye = () => r2("div", { class: "slide slide-four", children: [r2("div", { class: "content", children: [r2("p", { class: "title", children: "Kenya Mangroves" }), r2("p", { class: "subtitle", children: "Rebuilding Eastern Africa’s Ecosystems" }), r2("p", { class: "desc", children: ["Restoring mangroves to protect coastlines, support livelihoods, and rebuild ecosystems one tree at a time. Your order helps break the cycle of poverty, naturally. ", r2("a", { href: "https://thegoodapi.com/", target: "_blank", children: "Learn more" })] })] }), r2("div", { class: "footer", children: [r2("p", { children: "Powered by" }), r2("img", { src: "https://res.cloudinary.com/shipaid/image/upload/v1753376903/Copy_of_GoodAPI_Updated_Logo_zn8wuq.png", alt: "GoodAPI Logo" })] })] }), Pe = () => r2("div", { class: "slide slide-five", children: [r2("div", { class: "icons", children: r2("img", { src: "https://res.cloudinary.com/shipaid/image/upload/v1758315892/icon-combo-boxed_fgty2o.png", alt: "Inspired Logo" }) }), r2("div", { className: "content", children: [r2("h3", { class: "card-title", children: "Unlock a Gift that Gives Back" }), r2("p", { class: "card-subtitle", children: "Opt-in to the delivery guarantee and unlock a free donation to a cause you love—on us." }), r2("p", { class: "card-note", children: "Watch for an email to pick a cause." })] }), r2("div", { className: "footer", children: [r2("div", { class: "powered", children: r2("span", { class: "logo-inspired", "aria-label": "INSPIRED", children: r2("svg", { width: "144", height: "9", viewBox: "0 0 144 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [r2("path", { d: "M91.0334 0.159698C92.1657 0.0239384 93.3063 -0.0254417 94.4455 0.0122371C96.7212 0.0122371 97.5427 0.122916 98.0949 0.513214C98.5621 0.844662 98.7502 1.35692 98.7502 2.32181V2.68997H96.4523C96.4275 2.24067 96.392 2.13053 96.215 2.02005C96.038 1.90964 95.723 1.87259 94.0353 1.87259C92.0183 1.87259 91.8547 1.92385 91.8547 2.52005C91.8547 2.82572 91.9614 2.98456 92.2092 3.04349C93.0411 3.15315 93.8794 3.20255 94.7179 3.19095C97.2982 3.27565 97.8052 3.33779 98.3078 3.66556C98.8103 3.99335 99.0471 4.58317 99.0471 5.71732C99.047 7.13136 98.7179 7.82737 97.9074 8.14407C97.4402 8.32821 96.4562 8.39114 94.1203 8.39114C91.6958 8.39114 90.7437 8.27991 90.1916 7.91165C89.6395 7.54341 89.4836 7.08351 89.4836 5.96048V5.56985L91.7765 5.57767C91.7766 6.06709 91.8234 6.22571 92.0109 6.3472C92.1985 6.46854 92.4936 6.51614 94.1701 6.51614C96.7249 6.51614 96.7248 6.51625 96.7248 5.79837C96.7248 5.30858 96.5518 5.18638 95.7873 5.17532L93.9113 5.10208L92.6437 5.03958L92.0109 5.01712C90.0784 4.95451 89.5334 4.44246 89.5334 2.64896C89.5335 1.09893 89.9541 0.402787 91.0334 0.159698ZM104.886 0.134307C105.604 0.103487 106.324 0.128001 107.038 0.208526C108.534 0.443683 108.965 1.11262 108.965 3.22903C108.965 5.05739 108.642 5.77399 107.692 6.13235C107.157 6.31897 106.615 6.3677 104.911 6.36771H102.076C102.049 6.36776 102.022 6.37327 101.996 6.38431C101.971 6.39542 101.947 6.41166 101.928 6.43216C101.909 6.45264 101.894 6.47776 101.884 6.50442C101.874 6.53105 101.868 6.55975 101.868 6.58841V8.39114H99.4543V0.134307H104.886ZM76.9894 8.39017H74.4601V0.141143L76.9894 0.133331V8.39017ZM88.6437 8.39017H84.4504L80.3244 2.6011C80.3032 2.57084 80.2737 2.54797 80.2394 2.53665C80.2051 2.52535 80.168 2.52557 80.134 2.53763C80.0999 2.54972 80.0705 2.57329 80.05 2.60403C80.0294 2.63483 80.0187 2.67204 80.0197 2.7095L80.0812 8.39017H77.6203V0.141143H81.8527L85.9387 5.91556C85.9609 5.94308 85.9912 5.96286 86.0246 5.9722C86.0578 5.98147 86.0928 5.97944 86.1252 5.96732C86.1577 5.9551 86.1863 5.9332 86.2062 5.90384C86.2261 5.8745 86.2363 5.83914 86.2365 5.80325L86.1828 0.133331H88.6437V8.39017ZM112.042 8.39017H109.53V0.141143L112.042 0.133331V8.39017ZM118.531 0.141143C119.25 0.110318 119.969 0.135844 120.684 0.216339C122.18 0.451495 122.611 1.11946 122.611 3.23587C122.61 4.78097 122.176 5.46028 121.387 5.66556L123.281 8.28958V0.141143L132.053 0.133331V2.07864H125.868C125.841 2.07815 125.813 2.08269 125.787 2.09329C125.762 2.10389 125.739 2.12018 125.719 2.14017C125.699 2.16032 125.683 2.18494 125.672 2.21146C125.662 2.23772 125.656 2.26601 125.656 2.29446V3.06009C125.656 3.08883 125.661 3.11757 125.672 3.14407C125.683 3.17055 125.699 3.19426 125.719 3.21439C125.739 3.23446 125.762 3.25063 125.787 3.26126C125.813 3.2719 125.841 3.27738 125.868 3.27689H131.74V5.09427H125.879C125.851 5.09377 125.824 5.09924 125.798 5.10989C125.772 5.12055 125.749 5.13663 125.73 5.15677C125.71 5.17692 125.693 5.20057 125.683 5.22708C125.672 5.25356 125.667 5.28236 125.667 5.31107V6.18802C125.667 6.21677 125.672 6.24549 125.683 6.272C125.693 6.29849 125.71 6.32218 125.73 6.34232C125.749 6.36241 125.772 6.37856 125.798 6.38919C125.824 6.39983 125.851 6.40531 125.879 6.40482H132.1V8.39017H120.576L119.142 6.37454H115.367C115.34 6.37408 115.312 6.37941 115.286 6.39017C115.26 6.40104 115.237 6.4175 115.217 6.43802C115.197 6.45857 115.182 6.48334 115.171 6.51028C115.161 6.53718 115.156 6.56625 115.156 6.59525V8.39017H112.745V0.141143H118.531ZM138.395 0.133331C140.414 0.133331 140.687 0.134134 141.365 0.29837C141.724 0.352973 142.061 0.512932 142.335 0.760284C142.609 1.00767 142.809 1.33184 142.911 1.69388C143.087 2.27611 143.138 2.79494 143.138 4.14212C143.138 6.29173 142.958 7.1283 142.377 7.69192C141.796 8.25555 141.067 8.39017 138.395 8.39017H132.676V0.133331H138.395ZM135.263 2.20169C135.208 2.20171 135.154 2.22458 135.115 2.26517C135.077 2.30574 135.055 2.36122 135.055 2.41849V6.06497C135.055 6.12233 135.076 6.17773 135.115 6.21829C135.154 6.25888 135.208 6.28175 135.263 6.28177H138.416C140.605 6.28177 140.759 6.15786 140.759 4.29153C140.759 3.27646 140.676 2.81709 140.44 2.54837C140.203 2.27977 139.869 2.20169 138.395 2.20169H135.263ZM102.076 2.20169C102.021 2.20181 101.969 2.22485 101.93 2.26517C101.891 2.30574 101.868 2.36111 101.868 2.41849V4.08743C101.868 4.14468 101.891 4.19927 101.93 4.23978C101.969 4.28027 102.021 4.30313 102.076 4.30325H104.886C106.004 4.30325 106.052 4.30356 106.252 4.16946C106.453 4.03512 106.55 3.79607 106.55 3.22903C106.55 2.66167 106.442 2.38513 106.134 2.27689C105.969 2.21349 105.944 2.21288 104.886 2.20169H102.076ZM115.367 2.20169C115.34 2.20123 115.313 2.20675 115.287 2.21732C115.262 2.22795 115.238 2.24313 115.218 2.26321C115.198 2.28337 115.183 2.30799 115.172 2.3345C115.161 2.36098 115.156 2.38979 115.156 2.41849V4.08646C115.156 4.1152 115.161 4.14393 115.172 4.17044C115.183 4.19682 115.198 4.22067 115.218 4.24075C115.238 4.26091 115.262 4.27697 115.287 4.28763C115.313 4.29817 115.34 4.30371 115.367 4.30325H118.531C119.651 4.29205 119.673 4.31779 119.899 4.16849C120.125 4.01919 120.196 3.80649 120.196 3.22806C120.196 2.6496 120.089 2.38418 119.78 2.27591C119.608 2.20126 119.608 2.20169 118.531 2.20169H115.367Z", fill: "black" }), r2("path", { d: "M67.7164 5.02032V8.25483H66.6641V5.02032L63.6068 0.345793H64.8586L67.2291 4.112L69.5442 0.345793H70.7405L67.7164 5.02032Z", fill: "black" }), r2("path", { d: "M58.0288 3.74646H60.1334C60.7316 3.74646 61.1599 3.64307 61.4183 3.4363C61.6842 3.22214 61.8171 2.9046 61.8171 2.48367C61.8171 2.20305 61.7728 1.98151 61.6842 1.81905C61.5956 1.65658 61.4737 1.53104 61.3187 1.44242C61.1636 1.35381 60.9826 1.29842 60.7759 1.27627C60.5765 1.24673 60.3623 1.23196 60.1334 1.23196H58.0288V3.74646ZM56.9764 0.345793H59.8454C60.0152 0.345793 60.1962 0.349486 60.3882 0.35687C60.5876 0.35687 60.7833 0.367947 60.9753 0.390102C61.1673 0.404871 61.3445 0.430718 61.507 0.467642C61.6768 0.504565 61.8208 0.559951 61.939 0.633798C62.1974 0.788877 62.4153 1.00303 62.5925 1.27627C62.7771 1.5495 62.8694 1.88551 62.8694 2.28428C62.8694 2.70521 62.7661 3.07076 62.5593 3.38091C62.3599 3.68369 62.0719 3.90892 61.6953 4.05662V4.07877C62.1827 4.18216 62.5556 4.4037 62.8141 4.74339C63.0725 5.08309 63.2018 5.49664 63.2018 5.98403C63.2018 6.27203 63.1501 6.55265 63.0467 6.82589C62.9433 7.09912 62.7882 7.34282 62.5814 7.55697C62.3821 7.76375 62.131 7.93359 61.8282 8.06652C61.5328 8.19206 61.1894 8.25483 60.798 8.25483H56.9764V0.345793ZM58.0288 7.36866H60.6651C61.1303 7.36866 61.4922 7.24312 61.7507 6.99204C62.0165 6.74096 62.1494 6.39388 62.1494 5.9508C62.1494 5.69233 62.1014 5.47817 62.0054 5.30833C61.9094 5.13848 61.7802 5.00555 61.6177 4.90955C61.4627 4.80616 61.2817 4.73601 61.075 4.69909C60.8682 4.65478 60.654 4.63262 60.4325 4.63262H58.0288V7.36866Z", fill: "black" }), r2("path", { d: "M47.3679 7.36866H49.1181C49.2363 7.36866 49.384 7.36128 49.5612 7.34651C49.7384 7.32435 49.9267 7.28005 50.1261 7.21358C50.3255 7.13974 50.5212 7.03635 50.7132 6.90343C50.9126 6.7705 51.0898 6.58957 51.2449 6.36065C51.4 6.13172 51.5255 5.84741 51.6215 5.50771C51.7249 5.16063 51.7766 4.74339 51.7766 4.256C51.7766 3.78338 51.7286 3.36245 51.6326 2.99322C51.544 2.61659 51.3926 2.29905 51.1784 2.04059C50.9717 1.77474 50.7021 1.57535 50.3698 1.44242C50.0375 1.30212 49.6277 1.23196 49.1403 1.23196H47.3679V7.36866ZM46.3156 0.345793H49.0295C50.248 0.345793 51.1858 0.655952 51.8431 1.27627C52.5003 1.89658 52.8289 2.84183 52.8289 4.112C52.8289 4.77663 52.7551 5.3674 52.6074 5.88433C52.4597 6.39388 52.2308 6.82589 51.9206 7.18035C51.6105 7.52743 51.2154 7.79328 50.7354 7.9779C50.2554 8.16252 49.6867 8.25483 49.0295 8.25483H46.3156V0.345793Z", fill: "black" }), r2("path", { d: "M39.6547 0.345793H45.1157V1.23196H40.707V3.74646H44.8166V4.63262H40.707V7.36866H45.1489V8.25483H39.6547V0.345793Z", fill: "black" }), r2("path", { d: "M32.1824 0.345793H35.9043C36.6575 0.345793 37.2446 0.530411 37.6655 0.899647C38.0938 1.26888 38.308 1.77474 38.308 2.41721C38.308 2.89721 38.1972 3.31814 37.9757 3.68C37.7615 4.04185 37.4145 4.28923 36.9344 4.42216V4.44431C37.1634 4.48862 37.348 4.56247 37.4883 4.66586C37.636 4.76924 37.7505 4.89478 37.8317 5.04248C37.9203 5.18279 37.9831 5.34156 38.02 5.51879C38.0643 5.69602 38.0975 5.88064 38.1197 6.07264C38.1345 6.26465 38.1455 6.46034 38.1529 6.65973C38.1603 6.85912 38.1788 7.05481 38.2083 7.24681C38.2379 7.43882 38.2785 7.62344 38.3302 7.80067C38.3892 7.97052 38.4742 8.1219 38.5849 8.25483H37.4108C37.3369 8.1736 37.2852 8.06283 37.2557 7.92252C37.2335 7.78221 37.2188 7.62713 37.2114 7.45728C37.204 7.28005 37.1966 7.09174 37.1892 6.89235C37.1818 6.69296 37.1597 6.49727 37.1228 6.30526C37.0932 6.11326 37.0563 5.93234 37.012 5.76249C36.9677 5.58525 36.8975 5.43387 36.8015 5.30833C36.7055 5.1754 36.58 5.07201 36.4249 4.99817C36.2698 4.91694 36.063 4.87632 35.8046 4.87632H33.2347V8.25483H32.1824V0.345793ZM35.428 3.99015C35.6717 3.99015 35.9043 3.97169 36.1258 3.93477C36.3474 3.89784 36.5394 3.82769 36.7018 3.7243C36.8717 3.61353 37.0046 3.46953 37.1006 3.2923C37.204 3.10768 37.2557 2.87137 37.2557 2.58336C37.2557 2.18459 37.1449 1.85966 36.9234 1.60858C36.7018 1.3575 36.3437 1.23196 35.8489 1.23196H33.2347V3.99015H35.428Z", fill: "black" }), r2("path", { d: "M25.5214 0.345793H30.9824V1.23196H26.5737V3.74646H30.6833V4.63262H26.5737V7.36866H31.0157V8.25483H25.5214V0.345793Z", fill: "black" }), r2("path", { d: "M22.522 8.25483H21.4253L19.6198 1.60858H19.5976L17.7699 8.25483H16.6733L14.6461 0.345793H15.7206L17.2714 6.92558H17.2936L19.0659 0.345793H20.2068L21.957 6.92558H21.9792L23.5854 0.345793H24.6377L22.522 8.25483Z", fill: "black" }), r2("path", { d: "M7.68126 4.30031C7.68126 4.69909 7.73295 5.09417 7.83634 5.48556C7.93973 5.86957 8.10219 6.21665 8.32373 6.52681C8.54527 6.83696 8.82959 7.08804 9.17667 7.28005C9.52375 7.46466 9.93729 7.55697 10.4173 7.55697C10.8973 7.55697 11.3109 7.46466 11.6579 7.28005C12.005 7.08804 12.2893 6.83696 12.5109 6.52681C12.7324 6.21665 12.8949 5.86957 12.9983 5.48556C13.1016 5.09417 13.1533 4.69909 13.1533 4.30031C13.1533 3.90154 13.1016 3.51015 12.9983 3.12614C12.8949 2.73475 12.7324 2.38398 12.5109 2.07382C12.2893 1.76366 12.005 1.51627 11.6579 1.33165C11.3109 1.13965 10.8973 1.04365 10.4173 1.04365C9.93729 1.04365 9.52375 1.13965 9.17667 1.33165C8.82959 1.51627 8.54527 1.76366 8.32373 2.07382C8.10219 2.38398 7.93973 2.73475 7.83634 3.12614C7.73295 3.51015 7.68126 3.90154 7.68126 4.30031ZM6.62894 4.30031C6.62894 3.76123 6.70648 3.2443 6.86156 2.74952C7.02402 2.24736 7.26403 1.80428 7.58157 1.42027C7.89911 1.03626 8.29419 0.729799 8.76682 0.500872C9.23944 0.271946 9.7896 0.157483 10.4173 0.157483C11.045 0.157483 11.5952 0.271946 12.0678 0.500872C12.5404 0.729799 12.9355 1.03626 13.253 1.42027C13.5706 1.80428 13.8069 2.24736 13.962 2.74952C14.1244 3.2443 14.2057 3.76123 14.2057 4.30031C14.2057 4.8394 14.1244 5.36002 13.962 5.86218C13.8069 6.35696 13.5706 6.79635 13.253 7.18035C12.9355 7.56436 12.5404 7.87082 12.0678 8.09975C11.5952 8.32129 11.045 8.43206 10.4173 8.43206C9.7896 8.43206 9.23944 8.32129 8.76682 8.09975C8.29419 7.87082 7.89911 7.56436 7.58157 7.18035C7.26403 6.79635 7.02402 6.35696 6.86156 5.86218C6.70648 5.36002 6.62894 4.8394 6.62894 4.30031Z", fill: "black" }), r2("path", { d: "M1.05232 4.13416H3.11266C3.71082 4.14154 4.14652 4.01969 4.41975 3.76861C4.70037 3.51753 4.84068 3.15568 4.84068 2.68306C4.84068 2.21044 4.70037 1.85228 4.41975 1.60858C4.14652 1.3575 3.71082 1.23196 3.11266 1.23196H1.05232V4.13416ZM-1.37091e-06 0.345793H3.46713C4.26468 0.345793 4.86653 0.552565 5.27269 0.96611C5.68623 1.37227 5.89301 1.94459 5.89301 2.68306C5.89301 3.42153 5.68623 3.99754 5.27269 4.41108C4.86653 4.82463 4.26468 5.02771 3.46713 5.02032H1.05232V8.25483H-1.37091e-06V0.345793Z", fill: "black" })] }) }) }), r2("p", { class: "card-legal", children: "Donation gifts are provided at no cost to you by major donors and The Inspired Foundation." })] })] }), Ke = ({ greenProtectionEnabled: n2, freeGiftEnabled: e3, open: o3 }) => {
2376
+ const [t2, i3] = L2(o3), [l2, d2] = L2(0), s3 = [r2(Re, {}), r2(Xe, {})];
2377
+ n2 ? (s3.push(r2(Ge, {})), e3 && s3.push(r2(Pe, {})), s3.push(r2(Ye, {}))) : e3 && s3.push(r2(Pe, {})), je(() => {
2418
2378
  const _2 = () => {
2419
2379
  window.dispatchEvent(new Event("shipaid:modal-opened")), i3(true);
2420
2380
  };
@@ -2424,25 +2384,16 @@ if (!customElements.get("checkout-package-protection")) {
2424
2384
  }, []);
2425
2385
  const p2 = (_2) => {
2426
2386
  if (_2.target === _2.currentTarget || _2.target.closest(".modal-close")) {
2427
- i3(false), s3(0), window.dispatchEvent(new Event("shipaid:learn-more:closed"));
2428
- const m2 = document.querySelector("body");
2429
- m2 && (m2.style.overflow = "auto");
2387
+ i3(false), d2(0), window.dispatchEvent(new Event("shipaid:learn-more:closed"));
2388
+ const a2 = document.querySelector("body");
2389
+ a2 && (a2.style.overflow = "auto");
2430
2390
  }
2431
2391
  }, c2 = (_2) => {
2432
- s3(_2);
2433
- }, h2 = Me(() => {
2434
- a2 && l2 > 0 && c2(l2 - 1);
2435
- }, [a2, l2]), t2 = Me(() => {
2436
- a2 && l2 < d2.length - 1 && c2(l2 + 1);
2437
- }, [a2, l2]);
2438
- return Ee(() => {
2439
- const _2 = () => h2(), m2 = () => t2();
2440
- return document.addEventListener("swiped-right", _2), document.addEventListener("swiped-left", m2), () => {
2441
- document.removeEventListener("swiped-right", _2), document.removeEventListener("swiped-left", m2);
2442
- };
2443
- }, [t2, h2]), r2("div", { class: a2 ? "" : "global-modal-hidden", children: r2(Be, { onClose: p2, children: r2(Re, { slides: d2, slideIndex: l2, onSlideIndexChange: (_2) => c2(_2), onClose: p2 }) }) });
2392
+ d2(_2);
2393
+ };
2394
+ return r2("div", { class: t2 ? "" : "global-modal-hidden", children: r2(Ie, { onClose: p2, children: r2(qe, { slides: s3, slideIndex: l2, onSlideIndexChange: (_2) => c2(_2), onClose: p2 }) }) });
2444
2395
  };
2445
- class en2 extends HTMLElement {
2396
+ class Je extends HTMLElement {
2446
2397
  constructor() {
2447
2398
  super();
2448
2399
  __publicField(this, "_root");
@@ -2452,14 +2403,14 @@ if (!customElements.get("checkout-package-protection")) {
2452
2403
  this.renderComponent();
2453
2404
  }
2454
2405
  disconnectedCallback() {
2455
- be(null, this._root);
2406
+ ge(null, this._root);
2456
2407
  }
2457
2408
  renderComponent() {
2458
- const e3 = this.getAttribute("green-protection") === "true", o3 = this.getAttribute("free-gift") === "true", a2 = this.getAttribute("carousel-state") === "open";
2459
- be(r2(Qe, { freeGiftEnabled: o3, greenProtectionEnabled: e3, open: a2 }), this._root);
2409
+ const e3 = this.getAttribute("green-protection") === "true", o3 = this.getAttribute("free-gift") === "true", t2 = this.getAttribute("carousel-state") === "open";
2410
+ ge(r2(Ke, { freeGiftEnabled: o3, greenProtectionEnabled: e3, open: t2 }), this._root);
2460
2411
  }
2461
2412
  }
2462
- customElements.get("shipaid-learn-more-carousel") || customElements.define("shipaid-learn-more-carousel", en2);
2413
+ customElements.get("shipaid-learn-more-carousel") || customElements.define("shipaid-learn-more-carousel", Je);
2463
2414
  })();
2464
2415
  const styles = i2`
2465
2416
  :host {
@@ -6346,11 +6297,9 @@ class ShipAidCheckoutPlus extends s$1 {
6346
6297
  this._hasProtectionInCart = Boolean(protectionItem);
6347
6298
  this._desiredProtection = this._hasProtectionInCart;
6348
6299
  if (this._hasProtectionInCart) {
6349
- if (this._hasRenderedLegacyOnce) {
6350
- this._enterToggleMode("checked");
6351
- } else {
6352
- this._removeTogglePreference();
6353
- }
6300
+ this._uiMode = "toggle";
6301
+ const pref = this._readTogglePreference();
6302
+ if (!pref) this._persistTogglePreference("checked");
6354
6303
  } else {
6355
6304
  this._maybeRevertToLegacy();
6356
6305
  }