ui.shipaid.com 0.3.157 → 0.3.159
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 +201 -186
- package/dist/widget.iife.js +3 -2
- package/dist/widget.umd.js +3 -2
- package/package.json +1 -1
package/dist/widget.es.js
CHANGED
|
@@ -1478,79 +1478,79 @@ if (!customElements.get("checkout-package-protection")) {
|
|
|
1478
1478
|
customElements.define("checkout-package-protection", CheckoutPackageProtection);
|
|
1479
1479
|
}
|
|
1480
1480
|
(function() {
|
|
1481
|
-
var
|
|
1482
|
-
function
|
|
1481
|
+
var j, g2, te, L2, ae, le, ie, re, q, X, G, T2 = {}, de = [], Ne = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Z2 = Array.isArray;
|
|
1482
|
+
function S2(n2, e3) {
|
|
1483
1483
|
for (var o3 in e3) n2[o3] = e3[o3];
|
|
1484
1484
|
return n2;
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function Y(n2) {
|
|
1487
1487
|
n2 && n2.parentNode && n2.parentNode.removeChild(n2);
|
|
1488
1488
|
}
|
|
1489
|
-
function
|
|
1490
|
-
var
|
|
1491
|
-
for (l2 in e3) l2 == "key" ?
|
|
1492
|
-
if (arguments.length > 2 && (d2.children = arguments.length > 3 ?
|
|
1493
|
-
return
|
|
1489
|
+
function $e(n2, e3, o3) {
|
|
1490
|
+
var a2, i3, l2, d2 = {};
|
|
1491
|
+
for (l2 in e3) l2 == "key" ? a2 = e3[l2] : l2 == "ref" ? i3 = e3[l2] : d2[l2] = e3[l2];
|
|
1492
|
+
if (arguments.length > 2 && (d2.children = arguments.length > 3 ? j.call(arguments, 2) : o3), typeof n2 == "function" && n2.defaultProps != null) for (l2 in n2.defaultProps) d2[l2] === void 0 && (d2[l2] = n2.defaultProps[l2]);
|
|
1493
|
+
return U(n2, d2, a2, i3, null);
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1496
|
-
var l2 = { type: n2, props: e3, key: o3, ref:
|
|
1495
|
+
function U(n2, e3, o3, a2, i3) {
|
|
1496
|
+
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 };
|
|
1497
1497
|
return i3 == null && g2.vnode != null && g2.vnode(l2), l2;
|
|
1498
1498
|
}
|
|
1499
|
-
function
|
|
1499
|
+
function W(n2) {
|
|
1500
1500
|
return n2.children;
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1502
|
+
function F(n2, e3) {
|
|
1503
1503
|
this.props = n2, this.context = e3;
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1506
|
-
if (e3 == null) return n2.__ ?
|
|
1505
|
+
function $2(n2, e3) {
|
|
1506
|
+
if (e3 == null) return n2.__ ? $2(n2.__, n2.__i + 1) : null;
|
|
1507
1507
|
for (var o3; e3 < n2.__k.length; e3++) if ((o3 = n2.__k[e3]) != null && o3.__e != null) return o3.__e;
|
|
1508
|
-
return typeof n2.type == "function" ?
|
|
1508
|
+
return typeof n2.type == "function" ? $2(n2) : null;
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function se(n2) {
|
|
1511
1511
|
var e3, o3;
|
|
1512
1512
|
if ((n2 = n2.__) != null && n2.__c != null) {
|
|
1513
1513
|
for (n2.__e = n2.__c.base = null, e3 = 0; e3 < n2.__k.length; e3++) if ((o3 = n2.__k[e3]) != null && o3.__e != null) {
|
|
1514
1514
|
n2.__e = n2.__c.base = o3.__e;
|
|
1515
1515
|
break;
|
|
1516
1516
|
}
|
|
1517
|
-
return
|
|
1517
|
+
return se(n2);
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1521
|
-
(!n2.__d && (n2.__d = true) &&
|
|
1520
|
+
function ce(n2) {
|
|
1521
|
+
(!n2.__d && (n2.__d = true) && L2.push(n2) && !I2.__r++ || ae != g2.debounceRendering) && ((ae = g2.debounceRendering) || le)(I2);
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1524
|
-
for (var n2, e3, o3,
|
|
1525
|
-
|
|
1523
|
+
function I2() {
|
|
1524
|
+
for (var n2, e3, o3, a2, i3, l2, d2, s3 = 1; L2.length; ) L2.length > s3 && L2.sort(ie), n2 = L2.shift(), s3 = L2.length, n2.__d && (o3 = void 0, i3 = (a2 = (e3 = n2).__v).__e, l2 = [], d2 = [], e3.__P && ((o3 = S2({}, 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 ?? $2(a2), !!(32 & a2.__u), d2), o3.__v = a2.__v, o3.__.__k[o3.__i] = o3, ue(l2, o3, d2), o3.__e != i3 && se(o3)));
|
|
1525
|
+
I2.__r = 0;
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1528
|
-
var
|
|
1529
|
-
for (p2 =
|
|
1527
|
+
function pe(n2, e3, o3, a2, i3, l2, d2, s3, p2, c2, _2) {
|
|
1528
|
+
var t2, h2, m2, y2, w2, C2, f2 = a2 && a2.__k || de, u2 = e3.length;
|
|
1529
|
+
for (p2 = Te(o3, e3, f2, p2, u2), t2 = 0; t2 < u2; t2++) (m2 = o3.__k[t2]) != null && (h2 = m2.__i == -1 ? T2 : f2[m2.__i] || T2, m2.__i = t2, C2 = K(n2, m2, h2, i3, l2, d2, s3, p2, c2, _2), y2 = m2.__e, m2.ref && h2.ref != m2.ref && (h2.ref && J(h2.ref, null, m2), _2.push(m2.ref, m2.__c || y2, m2)), w2 == null && y2 != null && (w2 = y2), 4 & m2.__u || h2.__k === m2.__k ? p2 = _e(m2, p2, n2) : typeof m2.type == "function" && C2 !== void 0 ? p2 = C2 : y2 && (p2 = y2.nextSibling), m2.__u &= -7);
|
|
1530
1530
|
return o3.__e = w2, p2;
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1533
|
-
var l2, d2, s3, p2, c2, _2 = o3.length,
|
|
1534
|
-
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 ?
|
|
1535
|
-
if (
|
|
1536
|
-
return
|
|
1532
|
+
function Te(n2, e3, o3, a2, i3) {
|
|
1533
|
+
var l2, d2, s3, p2, c2, _2 = o3.length, t2 = _2, h2 = 0;
|
|
1534
|
+
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 ? U(null, d2, null, null, null) : Z2(d2) ? U(W, { children: d2 }, null, null, null) : d2.constructor == null && d2.__b > 0 ? U(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, t2)) != -1 && (t2--, (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;
|
|
1535
|
+
if (t2) for (l2 = 0; l2 < _2; l2++) (s3 = o3[l2]) != null && (2 & s3.__u) == 0 && (s3.__e == a2 && (a2 = $2(s3)), ge(s3, s3));
|
|
1536
|
+
return a2;
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1539
|
-
var
|
|
1538
|
+
function _e(n2, e3, o3) {
|
|
1539
|
+
var a2, i3;
|
|
1540
1540
|
if (typeof n2.type == "function") {
|
|
1541
|
-
for (
|
|
1541
|
+
for (a2 = n2.__k, i3 = 0; a2 && i3 < a2.length; i3++) a2[i3] && (a2[i3].__ = n2, e3 = _e(a2[i3], e3, o3));
|
|
1542
1542
|
return e3;
|
|
1543
1543
|
}
|
|
1544
|
-
n2.__e != e3 && (e3 && n2.type && !o3.contains(e3) && (e3 =
|
|
1544
|
+
n2.__e != e3 && (e3 && n2.type && !o3.contains(e3) && (e3 = $2(n2)), o3.insertBefore(n2.__e, e3 || null), e3 = n2.__e);
|
|
1545
1545
|
do
|
|
1546
1546
|
e3 = e3 && e3.nextSibling;
|
|
1547
1547
|
while (e3 != null && e3.nodeType == 8);
|
|
1548
1548
|
return e3;
|
|
1549
1549
|
}
|
|
1550
|
-
function ze(n2, e3, o3,
|
|
1550
|
+
function ze(n2, e3, o3, a2) {
|
|
1551
1551
|
var i3, l2, d2 = n2.key, s3 = n2.type, p2 = e3[o3];
|
|
1552
1552
|
if (p2 === null && n2.key == null || p2 && d2 == p2.key && s3 == p2.type && (2 & p2.__u) == 0) return o3;
|
|
1553
|
-
if (
|
|
1553
|
+
if (a2 > (p2 != null && (2 & p2.__u) == 0 ? 1 : 0)) for (i3 = o3 - 1, l2 = o3 + 1; i3 >= 0 || l2 < e3.length; ) {
|
|
1554
1554
|
if (i3 >= 0) {
|
|
1555
1555
|
if ((p2 = e3[i3]) && (2 & p2.__u) == 0 && d2 == p2.key && s3 == p2.type) return i3;
|
|
1556
1556
|
i3--;
|
|
@@ -1562,17 +1562,17 @@ if (!customElements.get("checkout-package-protection")) {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
return -1;
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1566
|
-
e3[0] == "-" ? n2.setProperty(e3, o3 ?? "") : n2[e3] = o3 == null ? "" : typeof o3 != "number" ||
|
|
1565
|
+
function me(n2, e3, o3) {
|
|
1566
|
+
e3[0] == "-" ? n2.setProperty(e3, o3 ?? "") : n2[e3] = o3 == null ? "" : typeof o3 != "number" || Ne.test(e3) ? o3 : o3 + "px";
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function O(n2, e3, o3, a2, i3) {
|
|
1569
1569
|
var l2, d2;
|
|
1570
1570
|
e: if (e3 == "style") if (typeof o3 == "string") n2.style.cssText = o3;
|
|
1571
1571
|
else {
|
|
1572
|
-
if (typeof
|
|
1573
|
-
if (o3) for (e3 in o3)
|
|
1572
|
+
if (typeof a2 == "string" && (n2.style.cssText = a2 = ""), a2) for (e3 in a2) o3 && e3 in o3 || me(n2.style, e3, "");
|
|
1573
|
+
if (o3) for (e3 in o3) a2 && o3[e3] == a2[e3] || me(n2.style, e3, o3[e3]);
|
|
1574
1574
|
}
|
|
1575
|
-
else if (e3[0] == "o" && e3[1] == "n") l2 = e3 != (e3 = e3.replace(
|
|
1575
|
+
else if (e3[0] == "o" && e3[1] == "n") l2 = e3 != (e3 = e3.replace(re, "$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 ? a2 ? o3.u = a2.u : (o3.u = q, n2.addEventListener(e3, l2 ? G : X, l2)) : n2.removeEventListener(e3, l2 ? G : X, l2);
|
|
1576
1576
|
else {
|
|
1577
1577
|
if (i3 == "http://www.w3.org/2000/svg") e3 = e3.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
1578
1578
|
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 {
|
|
@@ -1583,7 +1583,7 @@ if (!customElements.get("checkout-package-protection")) {
|
|
|
1583
1583
|
typeof o3 == "function" || (o3 == null || o3 === false && e3[4] != "-" ? n2.removeAttribute(e3) : n2.setAttribute(e3, e3 == "popover" && o3 == 1 ? "" : o3));
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
|
-
function
|
|
1586
|
+
function he(n2) {
|
|
1587
1587
|
return function(e3) {
|
|
1588
1588
|
if (this.l) {
|
|
1589
1589
|
var o3 = this.l[e3.type + n2];
|
|
@@ -1593,44 +1593,44 @@ if (!customElements.get("checkout-package-protection")) {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
};
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1597
|
-
var _2,
|
|
1596
|
+
function K(n2, e3, o3, a2, i3, l2, d2, s3, p2, c2) {
|
|
1597
|
+
var _2, t2, h2, m2, y2, w2, C2, f2, u2, V2, H2, E2, x2, N2, k2, A2, oe, M2 = e3.type;
|
|
1598
1598
|
if (e3.constructor != null) return null;
|
|
1599
1599
|
128 & o3.__u && (p2 = !!(32 & o3.__u), l2 = [s3 = e3.__e = o3.__e]), (_2 = g2.__b) && _2(e3);
|
|
1600
|
-
e: if (typeof
|
|
1601
|
-
if (f2 = e3.props, u2 = "prototype" in
|
|
1600
|
+
e: if (typeof M2 == "function") try {
|
|
1601
|
+
if (f2 = e3.props, u2 = "prototype" in M2 && M2.prototype.render, V2 = (_2 = M2.contextType) && a2[_2.__c], H2 = _2 ? V2 ? V2.props.value : _2.__ : a2, o3.__c ? C2 = (t2 = e3.__c = o3.__c).__ = t2.__E : (u2 ? e3.__c = t2 = new M2(f2, H2) : (e3.__c = t2 = new F(f2, H2), t2.constructor = M2, t2.render = De), V2 && V2.sub(t2), t2.props = f2, t2.state || (t2.state = {}), t2.context = H2, t2.__n = a2, h2 = t2.__d = true, t2.__h = [], t2._sb = []), u2 && t2.__s == null && (t2.__s = t2.state), u2 && M2.getDerivedStateFromProps != null && (t2.__s == t2.state && (t2.__s = S2({}, t2.__s)), S2(t2.__s, M2.getDerivedStateFromProps(f2, t2.__s))), m2 = t2.props, y2 = t2.state, t2.__v = e3, h2) u2 && M2.getDerivedStateFromProps == null && t2.componentWillMount != null && t2.componentWillMount(), u2 && t2.componentDidMount != null && t2.__h.push(t2.componentDidMount);
|
|
1602
1602
|
else {
|
|
1603
|
-
if (u2 &&
|
|
1604
|
-
for (e3.__v != o3.__v && (
|
|
1605
|
-
|
|
1606
|
-
}),
|
|
1607
|
-
|
|
1603
|
+
if (u2 && M2.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) {
|
|
1604
|
+
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(D2) {
|
|
1605
|
+
D2 && (D2.__ = e3);
|
|
1606
|
+
}), E2 = 0; E2 < t2._sb.length; E2++) t2.__h.push(t2._sb[E2]);
|
|
1607
|
+
t2._sb = [], t2.__h.length && d2.push(t2);
|
|
1608
1608
|
break e;
|
|
1609
1609
|
}
|
|
1610
|
-
|
|
1611
|
-
|
|
1610
|
+
t2.componentWillUpdate != null && t2.componentWillUpdate(f2, t2.__s, H2), u2 && t2.componentDidUpdate != null && t2.__h.push(function() {
|
|
1611
|
+
t2.componentDidUpdate(m2, y2, w2);
|
|
1612
1612
|
});
|
|
1613
1613
|
}
|
|
1614
|
-
if (
|
|
1615
|
-
for (
|
|
1616
|
-
|
|
1614
|
+
if (t2.context = H2, t2.props = f2, t2.__P = n2, t2.__e = false, x2 = g2.__r, N2 = 0, u2) {
|
|
1615
|
+
for (t2.state = t2.__s, t2.__d = false, x2 && x2(e3), _2 = t2.render(t2.props, t2.state, t2.context), k2 = 0; k2 < t2._sb.length; k2++) t2.__h.push(t2._sb[k2]);
|
|
1616
|
+
t2._sb = [];
|
|
1617
1617
|
} else do
|
|
1618
|
-
|
|
1619
|
-
while (
|
|
1620
|
-
|
|
1621
|
-
} catch (
|
|
1622
|
-
if (e3.__v = null, p2 || l2 != null) if (
|
|
1618
|
+
t2.__d = false, x2 && x2(e3), _2 = t2.render(t2.props, t2.state, t2.context), t2.state = t2.__s;
|
|
1619
|
+
while (t2.__d && ++N2 < 25);
|
|
1620
|
+
t2.state = t2.__s, t2.getChildContext != null && (a2 = S2(S2({}, a2), t2.getChildContext())), u2 && !h2 && t2.getSnapshotBeforeUpdate != null && (w2 = t2.getSnapshotBeforeUpdate(m2, y2)), A2 = _2, _2 != null && _2.type === W && _2.key == null && (A2 = fe(_2.props.children)), s3 = pe(n2, Z2(A2) ? A2 : [A2], e3, o3, a2, i3, l2, d2, s3, p2, c2), t2.base = e3.__e, e3.__u &= -161, t2.__h.length && d2.push(t2), C2 && (t2.__E = t2.__ = null);
|
|
1621
|
+
} catch (D2) {
|
|
1622
|
+
if (e3.__v = null, p2 || l2 != null) if (D2.then) {
|
|
1623
1623
|
for (e3.__u |= p2 ? 160 : 128; s3 && s3.nodeType == 8 && s3.nextSibling; ) s3 = s3.nextSibling;
|
|
1624
1624
|
l2[l2.indexOf(s3)] = null, e3.__e = s3;
|
|
1625
|
-
} else for (
|
|
1625
|
+
} else for (oe = l2.length; oe--; ) Y(l2[oe]);
|
|
1626
1626
|
else e3.__e = o3.__e, e3.__k = o3.__k;
|
|
1627
|
-
g2.__e(
|
|
1627
|
+
g2.__e(D2, e3, o3);
|
|
1628
1628
|
}
|
|
1629
|
-
else l2 == null && e3.__v == o3.__v ? (e3.__k = o3.__k, e3.__e = o3.__e) : s3 = e3.__e =
|
|
1629
|
+
else l2 == null && e3.__v == o3.__v ? (e3.__k = o3.__k, e3.__e = o3.__e) : s3 = e3.__e = Ae(o3.__e, e3, o3, a2, i3, l2, d2, p2, c2);
|
|
1630
1630
|
return (_2 = g2.diffed) && _2(e3), 128 & e3.__u ? void 0 : s3;
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1633
|
-
for (var
|
|
1632
|
+
function ue(n2, e3, o3) {
|
|
1633
|
+
for (var a2 = 0; a2 < o3.length; a2++) J(o3[a2], o3[++a2], o3[++a2]);
|
|
1634
1634
|
g2.__c && g2.__c(e3, n2), n2.some(function(i3) {
|
|
1635
1635
|
try {
|
|
1636
1636
|
n2 = i3.__h, i3.__h = [], n2.some(function(l2) {
|
|
@@ -1641,11 +1641,11 @@ if (!customElements.get("checkout-package-protection")) {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
});
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1645
|
-
return typeof n2 != "object" || n2 == null || n2.__b && n2.__b > 0 ? n2 :
|
|
1644
|
+
function fe(n2) {
|
|
1645
|
+
return typeof n2 != "object" || n2 == null || n2.__b && n2.__b > 0 ? n2 : Z2(n2) ? n2.map(fe) : S2({}, n2);
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1648
|
-
var c2, _2,
|
|
1647
|
+
function Ae(n2, e3, o3, a2, i3, l2, d2, s3, p2) {
|
|
1648
|
+
var c2, _2, t2, h2, m2, y2, w2, C2 = o3.props, f2 = e3.props, u2 = e3.type;
|
|
1649
1649
|
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) {
|
|
1650
1650
|
for (c2 = 0; c2 < l2.length; c2++) if ((m2 = l2[c2]) && "setAttribute" in m2 == !!u2 && (u2 ? m2.localName == u2 : m2.nodeType == 3)) {
|
|
1651
1651
|
n2 = m2, l2[c2] = null;
|
|
@@ -1656,107 +1656,107 @@ if (!customElements.get("checkout-package-protection")) {
|
|
|
1656
1656
|
if (u2 == null) return document.createTextNode(f2);
|
|
1657
1657
|
n2 = document.createElementNS(i3, u2, f2.is && f2), s3 && (g2.__m && g2.__m(e3, l2), s3 = false), l2 = null;
|
|
1658
1658
|
}
|
|
1659
|
-
if (u2 == null)
|
|
1659
|
+
if (u2 == null) C2 === f2 || s3 && n2.data == f2 || (n2.data = f2);
|
|
1660
1660
|
else {
|
|
1661
|
-
if (l2 = l2 &&
|
|
1662
|
-
for (c2 in
|
|
1663
|
-
if (c2 == "dangerouslySetInnerHTML")
|
|
1661
|
+
if (l2 = l2 && j.call(n2.childNodes), C2 = o3.props || T2, !s3 && l2 != null) for (C2 = {}, c2 = 0; c2 < n2.attributes.length; c2++) C2[(m2 = n2.attributes[c2]).name] = m2.value;
|
|
1662
|
+
for (c2 in C2) if (m2 = C2[c2], c2 != "children") {
|
|
1663
|
+
if (c2 == "dangerouslySetInnerHTML") t2 = m2;
|
|
1664
1664
|
else if (!(c2 in f2)) {
|
|
1665
1665
|
if (c2 == "value" && "defaultValue" in f2 || c2 == "checked" && "defaultChecked" in f2) continue;
|
|
1666
|
-
|
|
1666
|
+
O(n2, c2, null, m2, i3);
|
|
1667
1667
|
}
|
|
1668
1668
|
}
|
|
1669
|
-
for (c2 in f2) m2 = f2[c2], c2 == "children" ? h2 = m2 : c2 == "dangerouslySetInnerHTML" ? _2 = m2 : c2 == "value" ?
|
|
1670
|
-
if (_2) s3 ||
|
|
1671
|
-
else if (
|
|
1672
|
-
s3 || (c2 = "value", u2 == "progress" &&
|
|
1669
|
+
for (c2 in f2) m2 = f2[c2], c2 == "children" ? h2 = m2 : c2 == "dangerouslySetInnerHTML" ? _2 = m2 : c2 == "value" ? y2 = m2 : c2 == "checked" ? w2 = m2 : s3 && typeof m2 != "function" || C2[c2] === m2 || O(n2, c2, m2, C2[c2], i3);
|
|
1670
|
+
if (_2) s3 || t2 && (_2.__html == t2.__html || _2.__html == n2.innerHTML) || (n2.innerHTML = _2.__html), e3.__k = [];
|
|
1671
|
+
else if (t2 && (n2.innerHTML = ""), pe(e3.type == "template" ? n2.content : n2, Z2(h2) ? h2 : [h2], e3, o3, a2, u2 == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i3, l2, d2, l2 ? l2[0] : o3.__k && $2(o3, 0), s3, p2), l2 != null) for (c2 = l2.length; c2--; ) Y(l2[c2]);
|
|
1672
|
+
s3 || (c2 = "value", u2 == "progress" && y2 == null ? n2.removeAttribute("value") : y2 != null && (y2 !== n2[c2] || u2 == "progress" && !y2 || u2 == "option" && y2 != C2[c2]) && O(n2, c2, y2, C2[c2], i3), c2 = "checked", w2 != null && w2 != n2[c2] && O(n2, c2, w2, C2[c2], i3));
|
|
1673
1673
|
}
|
|
1674
1674
|
return n2;
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function J(n2, e3, o3) {
|
|
1677
1677
|
try {
|
|
1678
1678
|
if (typeof n2 == "function") {
|
|
1679
|
-
var
|
|
1680
|
-
|
|
1679
|
+
var a2 = typeof n2.__u == "function";
|
|
1680
|
+
a2 && n2.__u(), a2 && e3 == null || (n2.__u = n2(e3));
|
|
1681
1681
|
} else n2.current = e3;
|
|
1682
1682
|
} catch (i3) {
|
|
1683
1683
|
g2.__e(i3, o3);
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1687
|
-
var
|
|
1688
|
-
if (g2.unmount && g2.unmount(n2), (
|
|
1689
|
-
if (
|
|
1690
|
-
|
|
1686
|
+
function ge(n2, e3, o3) {
|
|
1687
|
+
var a2, i3;
|
|
1688
|
+
if (g2.unmount && g2.unmount(n2), (a2 = n2.ref) && (a2.current && a2.current != n2.__e || J(a2, null, e3)), (a2 = n2.__c) != null) {
|
|
1689
|
+
if (a2.componentWillUnmount) try {
|
|
1690
|
+
a2.componentWillUnmount();
|
|
1691
1691
|
} catch (l2) {
|
|
1692
1692
|
g2.__e(l2, e3);
|
|
1693
1693
|
}
|
|
1694
|
-
|
|
1694
|
+
a2.base = a2.__P = null;
|
|
1695
1695
|
}
|
|
1696
|
-
if (
|
|
1697
|
-
o3 ||
|
|
1696
|
+
if (a2 = n2.__k) for (i3 = 0; i3 < a2.length; i3++) a2[i3] && ge(a2[i3], e3, o3 || typeof n2.type != "function");
|
|
1697
|
+
o3 || Y(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function De(n2, e3, o3) {
|
|
1700
1700
|
return this.constructor(n2, o3);
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1703
|
-
var
|
|
1704
|
-
e3 == document && (e3 = document.documentElement), g2.__ && g2.__(n2, e3), i3 = (
|
|
1702
|
+
function be(n2, e3, o3) {
|
|
1703
|
+
var a2, i3, l2, d2;
|
|
1704
|
+
e3 == document && (e3 = document.documentElement), g2.__ && g2.__(n2, e3), i3 = (a2 = false) ? null : e3.__k, l2 = [], d2 = [], K(e3, n2 = e3.__k = $e(W, null, [n2]), i3 || T2, T2, e3.namespaceURI, i3 ? null : e3.firstChild ? j.call(e3.childNodes) : null, l2, i3 ? i3.__e : e3.firstChild, a2, d2), ue(l2, n2, d2);
|
|
1705
1705
|
}
|
|
1706
|
-
|
|
1706
|
+
j = de.slice, g2 = { __e: function(n2, e3, o3, a2) {
|
|
1707
1707
|
for (var i3, l2, d2; e3 = e3.__; ) if ((i3 = e3.__c) && !i3.__) try {
|
|
1708
|
-
if ((l2 = i3.constructor) && l2.getDerivedStateFromError != null && (i3.setState(l2.getDerivedStateFromError(n2)), d2 = i3.__d), i3.componentDidCatch != null && (i3.componentDidCatch(n2,
|
|
1708
|
+
if ((l2 = i3.constructor) && l2.getDerivedStateFromError != null && (i3.setState(l2.getDerivedStateFromError(n2)), d2 = i3.__d), i3.componentDidCatch != null && (i3.componentDidCatch(n2, a2 || {}), d2 = i3.__d), d2) return i3.__E = i3;
|
|
1709
1709
|
} catch (s3) {
|
|
1710
1710
|
n2 = s3;
|
|
1711
1711
|
}
|
|
1712
1712
|
throw n2;
|
|
1713
|
-
} },
|
|
1713
|
+
} }, te = 0, F.prototype.setState = function(n2, e3) {
|
|
1714
1714
|
var o3;
|
|
1715
|
-
o3 = this.__s != null && this.__s != this.state ? this.__s : this.__s =
|
|
1716
|
-
},
|
|
1717
|
-
this.__v && (this.__e = true, n2 && this.__h.push(n2),
|
|
1718
|
-
},
|
|
1715
|
+
o3 = this.__s != null && this.__s != this.state ? this.__s : this.__s = S2({}, this.state), typeof n2 == "function" && (n2 = n2(S2({}, o3), this.props)), n2 && S2(o3, n2), n2 != null && this.__v && (e3 && this._sb.push(e3), ce(this));
|
|
1716
|
+
}, F.prototype.forceUpdate = function(n2) {
|
|
1717
|
+
this.__v && (this.__e = true, n2 && this.__h.push(n2), ce(this));
|
|
1718
|
+
}, F.prototype.render = W, L2 = [], le = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, ie = function(n2, e3) {
|
|
1719
1719
|
return n2.__v.__b - e3.__v.__b;
|
|
1720
|
-
},
|
|
1721
|
-
var
|
|
1722
|
-
function r2(n2, e3, o3,
|
|
1720
|
+
}, I2.__r = 0, re = /(PointerCapture)$|Capture$/i, q = 0, X = he(false), G = he(true);
|
|
1721
|
+
var je = 0;
|
|
1722
|
+
function r2(n2, e3, o3, a2, i3, l2) {
|
|
1723
1723
|
e3 || (e3 = {});
|
|
1724
1724
|
var d2, s3, p2 = e3;
|
|
1725
1725
|
if ("ref" in p2) for (s3 in p2 = {}, e3) s3 == "ref" ? d2 = e3[s3] : p2[s3] = e3[s3];
|
|
1726
|
-
var c2 = { type: n2, props: p2, key: o3, ref: d2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
1726
|
+
var c2 = { type: n2, props: p2, key: o3, ref: d2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --je, __i: -1, __u: 0, __source: i3, __self: l2 };
|
|
1727
1727
|
if (typeof n2 == "function" && (d2 = n2.defaultProps)) for (s3 in d2) p2[s3] === void 0 && (p2[s3] = d2[s3]);
|
|
1728
1728
|
return g2.vnode && g2.vnode(c2), c2;
|
|
1729
1729
|
}
|
|
1730
|
-
var
|
|
1731
|
-
function
|
|
1732
|
-
v2.__h && v2.__h(b, n2,
|
|
1730
|
+
var z2, b, Q, xe, B2 = 0, ve = [], v2 = g2, ye = v2.__b, Ce = v2.__r, we = v2.diffed, ke = v2.__c, He = v2.unmount, Me = v2.__;
|
|
1731
|
+
function ee(n2, e3) {
|
|
1732
|
+
v2.__h && v2.__h(b, n2, B2 || e3), B2 = 0;
|
|
1733
1733
|
var o3 = b.__H || (b.__H = { __: [], __h: [] });
|
|
1734
1734
|
return n2 >= o3.__.length && o3.__.push({}), o3.__[n2];
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1737
|
-
return
|
|
1736
|
+
function P2(n2) {
|
|
1737
|
+
return B2 = 1, Ze(Pe, n2);
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1740
|
-
var
|
|
1741
|
-
if (
|
|
1742
|
-
var p2 =
|
|
1743
|
-
p2 !== c2 && (
|
|
1744
|
-
}],
|
|
1739
|
+
function Ze(n2, e3, o3) {
|
|
1740
|
+
var a2 = ee(z2++, 2);
|
|
1741
|
+
if (a2.t = n2, !a2.__c && (a2.__ = [Pe(void 0, e3), function(s3) {
|
|
1742
|
+
var p2 = a2.__N ? a2.__N[0] : a2.__[0], c2 = a2.t(p2, s3);
|
|
1743
|
+
p2 !== c2 && (a2.__N = [c2, a2.__[1]], a2.__c.setState({}));
|
|
1744
|
+
}], a2.__c = b, !b.__f)) {
|
|
1745
1745
|
var i3 = function(s3, p2, c2) {
|
|
1746
|
-
if (!
|
|
1747
|
-
var _2 =
|
|
1746
|
+
if (!a2.__c.__H) return true;
|
|
1747
|
+
var _2 = a2.__c.__H.__.filter(function(h2) {
|
|
1748
1748
|
return !!h2.__c;
|
|
1749
1749
|
});
|
|
1750
1750
|
if (_2.every(function(h2) {
|
|
1751
1751
|
return !h2.__N;
|
|
1752
1752
|
})) return !l2 || l2.call(this, s3, p2, c2);
|
|
1753
|
-
var
|
|
1753
|
+
var t2 = a2.__c.props !== s3;
|
|
1754
1754
|
return _2.forEach(function(h2) {
|
|
1755
1755
|
if (h2.__N) {
|
|
1756
1756
|
var m2 = h2.__[0];
|
|
1757
|
-
h2.__ = h2.__N, h2.__N = void 0, m2 !== h2.__[0] && (
|
|
1757
|
+
h2.__ = h2.__N, h2.__N = void 0, m2 !== h2.__[0] && (t2 = true);
|
|
1758
1758
|
}
|
|
1759
|
-
}), l2 && l2.call(this, s3, p2, c2) ||
|
|
1759
|
+
}), l2 && l2.call(this, s3, p2, c2) || t2;
|
|
1760
1760
|
};
|
|
1761
1761
|
b.__f = true;
|
|
1762
1762
|
var l2 = b.shouldComponentUpdate, d2 = b.componentWillUpdate;
|
|
@@ -1768,82 +1768,91 @@ if (!customElements.get("checkout-package-protection")) {
|
|
|
1768
1768
|
d2 && d2.call(this, s3, p2, c2);
|
|
1769
1769
|
}, b.shouldComponentUpdate = i3;
|
|
1770
1770
|
}
|
|
1771
|
-
return
|
|
1771
|
+
return a2.__N || a2.__;
|
|
1772
|
+
}
|
|
1773
|
+
function Se(n2, e3) {
|
|
1774
|
+
var o3 = ee(z2++, 3);
|
|
1775
|
+
!v2.__s && Le(o3.__H, e3) && (o3.__ = n2, o3.u = e3, b.__H.__h.push(o3));
|
|
1776
|
+
}
|
|
1777
|
+
function Ue(n2) {
|
|
1778
|
+
return B2 = 5, We(function() {
|
|
1779
|
+
return { current: n2 };
|
|
1780
|
+
}, []);
|
|
1772
1781
|
}
|
|
1773
|
-
function
|
|
1774
|
-
var o3 =
|
|
1775
|
-
|
|
1782
|
+
function We(n2, e3) {
|
|
1783
|
+
var o3 = ee(z2++, 7);
|
|
1784
|
+
return Le(o3.__H, e3) && (o3.__ = n2(), o3.__H = e3, o3.__h = n2), o3.__;
|
|
1776
1785
|
}
|
|
1777
|
-
function
|
|
1778
|
-
for (var n2; n2 =
|
|
1779
|
-
n2.__H.__h.forEach(
|
|
1786
|
+
function Fe() {
|
|
1787
|
+
for (var n2; n2 = ve.shift(); ) if (n2.__P && n2.__H) try {
|
|
1788
|
+
n2.__H.__h.forEach(R2), n2.__H.__h.forEach(ne), n2.__H.__h = [];
|
|
1780
1789
|
} catch (e3) {
|
|
1781
1790
|
n2.__H.__h = [], v2.__e(e3, n2.__v);
|
|
1782
1791
|
}
|
|
1783
1792
|
}
|
|
1784
1793
|
v2.__b = function(n2) {
|
|
1785
|
-
b = null,
|
|
1794
|
+
b = null, ye && ye(n2);
|
|
1786
1795
|
}, v2.__ = function(n2, e3) {
|
|
1787
|
-
n2 && e3.__k && e3.__k.__m && (n2.__m = e3.__k.__m),
|
|
1796
|
+
n2 && e3.__k && e3.__k.__m && (n2.__m = e3.__k.__m), Me && Me(n2, e3);
|
|
1788
1797
|
}, v2.__r = function(n2) {
|
|
1789
|
-
|
|
1798
|
+
Ce && Ce(n2), z2 = 0;
|
|
1790
1799
|
var e3 = (b = n2.__c).__H;
|
|
1791
|
-
e3 && (
|
|
1800
|
+
e3 && (Q === b ? (e3.__h = [], b.__h = [], e3.__.forEach(function(o3) {
|
|
1792
1801
|
o3.__N && (o3.__ = o3.__N), o3.u = o3.__N = void 0;
|
|
1793
|
-
})) : (e3.__h.forEach(
|
|
1802
|
+
})) : (e3.__h.forEach(R2), e3.__h.forEach(ne), e3.__h = [], z2 = 0)), Q = b;
|
|
1794
1803
|
}, v2.diffed = function(n2) {
|
|
1795
|
-
|
|
1804
|
+
we && we(n2);
|
|
1796
1805
|
var e3 = n2.__c;
|
|
1797
|
-
e3 && e3.__H && (e3.__H.__h.length && (
|
|
1806
|
+
e3 && e3.__H && (e3.__H.__h.length && (ve.push(e3) !== 1 && xe === v2.requestAnimationFrame || ((xe = v2.requestAnimationFrame) || Ie)(Fe)), e3.__H.__.forEach(function(o3) {
|
|
1798
1807
|
o3.u && (o3.__H = o3.u), o3.u = void 0;
|
|
1799
|
-
})),
|
|
1808
|
+
})), Q = b = null;
|
|
1800
1809
|
}, v2.__c = function(n2, e3) {
|
|
1801
1810
|
e3.some(function(o3) {
|
|
1802
1811
|
try {
|
|
1803
|
-
o3.__h.forEach(
|
|
1804
|
-
return !
|
|
1812
|
+
o3.__h.forEach(R2), o3.__h = o3.__h.filter(function(a2) {
|
|
1813
|
+
return !a2.__ || ne(a2);
|
|
1805
1814
|
});
|
|
1806
|
-
} catch (
|
|
1815
|
+
} catch (a2) {
|
|
1807
1816
|
e3.some(function(i3) {
|
|
1808
1817
|
i3.__h && (i3.__h = []);
|
|
1809
|
-
}), e3 = [], v2.__e(
|
|
1818
|
+
}), e3 = [], v2.__e(a2, o3.__v);
|
|
1810
1819
|
}
|
|
1811
|
-
}),
|
|
1820
|
+
}), ke && ke(n2, e3);
|
|
1812
1821
|
}, v2.unmount = function(n2) {
|
|
1813
|
-
|
|
1822
|
+
He && He(n2);
|
|
1814
1823
|
var e3, o3 = n2.__c;
|
|
1815
|
-
o3 && o3.__H && (o3.__H.__.forEach(function(
|
|
1824
|
+
o3 && o3.__H && (o3.__H.__.forEach(function(a2) {
|
|
1816
1825
|
try {
|
|
1817
|
-
|
|
1826
|
+
R2(a2);
|
|
1818
1827
|
} catch (i3) {
|
|
1819
1828
|
e3 = i3;
|
|
1820
1829
|
}
|
|
1821
1830
|
}), o3.__H = void 0, e3 && v2.__e(e3, o3.__v));
|
|
1822
1831
|
};
|
|
1823
|
-
var
|
|
1824
|
-
function
|
|
1832
|
+
var Ve = typeof requestAnimationFrame == "function";
|
|
1833
|
+
function Ie(n2) {
|
|
1825
1834
|
var e3, o3 = function() {
|
|
1826
|
-
clearTimeout(
|
|
1827
|
-
},
|
|
1828
|
-
|
|
1835
|
+
clearTimeout(a2), Ve && cancelAnimationFrame(e3), setTimeout(n2);
|
|
1836
|
+
}, a2 = setTimeout(o3, 35);
|
|
1837
|
+
Ve && (e3 = requestAnimationFrame(o3));
|
|
1829
1838
|
}
|
|
1830
|
-
function
|
|
1839
|
+
function R2(n2) {
|
|
1831
1840
|
var e3 = b, o3 = n2.__c;
|
|
1832
1841
|
typeof o3 == "function" && (n2.__c = void 0, o3()), b = e3;
|
|
1833
1842
|
}
|
|
1834
|
-
function
|
|
1843
|
+
function ne(n2) {
|
|
1835
1844
|
var e3 = b;
|
|
1836
1845
|
n2.__c = n2.__(), b = e3;
|
|
1837
1846
|
}
|
|
1838
|
-
function
|
|
1839
|
-
return !n2 || n2.length !== e3.length || e3.some(function(o3,
|
|
1840
|
-
return o3 !== n2[
|
|
1847
|
+
function Le(n2, e3) {
|
|
1848
|
+
return !n2 || n2.length !== e3.length || e3.some(function(o3, a2) {
|
|
1849
|
+
return o3 !== n2[a2];
|
|
1841
1850
|
});
|
|
1842
1851
|
}
|
|
1843
|
-
function
|
|
1852
|
+
function Pe(n2, e3) {
|
|
1844
1853
|
return typeof e3 == "function" ? e3(n2) : e3;
|
|
1845
1854
|
}
|
|
1846
|
-
const
|
|
1855
|
+
const Oe = `shipaid-global-modal {
|
|
1847
1856
|
position: relative;
|
|
1848
1857
|
}
|
|
1849
1858
|
|
|
@@ -2378,33 +2387,38 @@ if (!customElements.get("checkout-package-protection")) {
|
|
|
2378
2387
|
}
|
|
2379
2388
|
|
|
2380
2389
|
}
|
|
2381
|
-
`,
|
|
2390
|
+
`, 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" })] }) })] })] }), Re = ({ 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: () => {
|
|
2382
2391
|
e3 > 0 && n2(e3 - 1);
|
|
2383
2392
|
}, 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: () => {
|
|
2384
2393
|
e3 < o3 && n2(e3 + 1);
|
|
2385
|
-
}, 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" }) }) })] }) }),
|
|
2386
|
-
const [i3, l2] =
|
|
2387
|
-
|
|
2388
|
-
},
|
|
2394
|
+
}, 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 }), Xe = ({ slides: n2, slideIndex: e3, onSlideIndexChange: o3, onClose: a2 }) => {
|
|
2395
|
+
const [i3, l2] = P2(false), [d2, s3] = P2(0), [p2, c2] = P2(0), _2 = Ue(null), t2 = 380, h2 = (x2) => {
|
|
2396
|
+
x2.preventDefault(), l2(true), s3(x2.clientX);
|
|
2397
|
+
}, m2 = (x2) => {
|
|
2389
2398
|
if (!i3) return;
|
|
2390
|
-
let k2 =
|
|
2391
|
-
k2 >
|
|
2392
|
-
},
|
|
2399
|
+
let k2 = x2.clientX - d2;
|
|
2400
|
+
k2 > t2 && (k2 = t2), k2 < -t2 && (k2 = -t2), c2(k2);
|
|
2401
|
+
}, y2 = () => {
|
|
2393
2402
|
l2(false), p2 > 50 && e3 > 0 ? o3(e3 - 1) : p2 < -50 && e3 < n2.length - 1 && o3(e3 + 1), c2(0);
|
|
2394
|
-
},
|
|
2395
|
-
|
|
2396
|
-
const k2 =
|
|
2397
|
-
return k2 < -
|
|
2403
|
+
}, w2 = 1200, C2 = 400, [, f2] = P2(0), [u2, V2] = P2(false), H2 = (x2) => {
|
|
2404
|
+
u2 || Math.abs(x2.deltaX) > Math.abs(x2.deltaY) && (x2.preventDefault(), f2((N2) => {
|
|
2405
|
+
const k2 = N2 + x2.deltaX;
|
|
2406
|
+
return k2 < -w2 && e3 > 0 ? (o3(e3 - 1), E2(), 0) : k2 > w2 && e3 < n2.length - 1 ? (o3(e3 + 1), E2(), 0) : k2;
|
|
2398
2407
|
}));
|
|
2399
|
-
},
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
},
|
|
2408
|
+
}, E2 = () => {
|
|
2409
|
+
V2(true), setTimeout(() => {
|
|
2410
|
+
V2(false);
|
|
2411
|
+
}, C2);
|
|
2403
2412
|
};
|
|
2404
|
-
return
|
|
2405
|
-
}, 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/v1759932123/logos/blue-impact-logo_gtwk9n.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 }) => {
|
|
2406
|
-
|
|
2407
|
-
|
|
2413
|
+
return Se(() => {
|
|
2414
|
+
const x2 = _2.current;
|
|
2415
|
+
if (x2) return x2.addEventListener("wheel", H2, { passive: false }), () => {
|
|
2416
|
+
x2.removeEventListener("wheel", H2);
|
|
2417
|
+
};
|
|
2418
|
+
}, [e3, n2.length, u2]), r2("div", { className: "modal-boxes-container", onClick: a2, children: [r2(Re, { onChange: o3, index: e3, maxSlides: n2.length - 1 }), r2("div", { ref: _2, 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: h2, onPointerMove: m2, onPointerUp: y2, children: n2.map((x2, N2) => r2(qe, { children: x2 }, N2)) })] });
|
|
2419
|
+
}, 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/v1759932123/logos/blue-impact-logo_gtwk9n.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" })] })] }), Ee = () => 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 }) => {
|
|
2420
|
+
const [a2, i3] = P2(o3), [l2, d2] = P2(0), s3 = [r2(Ge, {}), r2(Ye, {})];
|
|
2421
|
+
n2 ? (s3.push(r2(Ke, {})), e3 && s3.push(r2(Ee, {})), s3.push(r2(Je, {}))) : e3 && s3.push(r2(Ee, {})), Se(() => {
|
|
2408
2422
|
const _2 = () => {
|
|
2409
2423
|
window.dispatchEvent(new Event("shipaid:modal-opened")), i3(true);
|
|
2410
2424
|
};
|
|
@@ -2415,15 +2429,15 @@ if (!customElements.get("checkout-package-protection")) {
|
|
|
2415
2429
|
const p2 = (_2) => {
|
|
2416
2430
|
if (_2.target === _2.currentTarget || _2.target.closest(".modal-close")) {
|
|
2417
2431
|
i3(false), d2(0), window.dispatchEvent(new Event("shipaid:learn-more:closed"));
|
|
2418
|
-
const
|
|
2419
|
-
|
|
2432
|
+
const t2 = document.querySelector("body");
|
|
2433
|
+
t2 && (t2.style.overflow = "auto");
|
|
2420
2434
|
}
|
|
2421
2435
|
}, c2 = (_2) => {
|
|
2422
2436
|
d2(_2);
|
|
2423
2437
|
};
|
|
2424
|
-
return r2("div", { class:
|
|
2438
|
+
return r2("div", { class: a2 ? "" : "global-modal-hidden", children: r2(Be, { onClose: p2, children: r2(Xe, { slides: s3, slideIndex: l2, onSlideIndexChange: (_2) => c2(_2), onClose: p2 }) }) });
|
|
2425
2439
|
};
|
|
2426
|
-
class
|
|
2440
|
+
class en2 extends HTMLElement {
|
|
2427
2441
|
constructor() {
|
|
2428
2442
|
super();
|
|
2429
2443
|
__publicField(this, "_root");
|
|
@@ -2433,14 +2447,14 @@ if (!customElements.get("checkout-package-protection")) {
|
|
|
2433
2447
|
this.renderComponent();
|
|
2434
2448
|
}
|
|
2435
2449
|
disconnectedCallback() {
|
|
2436
|
-
|
|
2450
|
+
be(null, this._root);
|
|
2437
2451
|
}
|
|
2438
2452
|
renderComponent() {
|
|
2439
|
-
const e3 = this.getAttribute("green-protection") === "true", o3 = this.getAttribute("free-gift") === "true",
|
|
2440
|
-
|
|
2453
|
+
const e3 = this.getAttribute("green-protection") === "true", o3 = this.getAttribute("free-gift") === "true", a2 = this.getAttribute("carousel-state") === "open";
|
|
2454
|
+
be(r2(Qe, { freeGiftEnabled: o3, greenProtectionEnabled: e3, open: a2 }), this._root);
|
|
2441
2455
|
}
|
|
2442
2456
|
}
|
|
2443
|
-
customElements.get("shipaid-learn-more-carousel") || customElements.define("shipaid-learn-more-carousel",
|
|
2457
|
+
customElements.get("shipaid-learn-more-carousel") || customElements.define("shipaid-learn-more-carousel", en2);
|
|
2444
2458
|
})();
|
|
2445
2459
|
const styles = i2`
|
|
2446
2460
|
:host {
|
|
@@ -5831,9 +5845,10 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
5831
5845
|
--shipaid-font-regular: 400;
|
|
5832
5846
|
--shipaid-font-heavy: 700;
|
|
5833
5847
|
--shipaid-prompt-badge: #f2f7ff;
|
|
5834
|
-
width: 100%;
|
|
5835
5848
|
--shipaid-active-logo-color: #000000;
|
|
5836
5849
|
--shipaid-inactive-logo-color: #0056d6;
|
|
5850
|
+
width: 100%;
|
|
5851
|
+
margin: 10px 0;
|
|
5837
5852
|
}
|
|
5838
5853
|
|
|
5839
5854
|
* {
|