@instockng/storefront-ui 1.0.102 → 1.0.104
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/components/ShoppingCart.d.ts.map +1 -1
- package/dist/index100.mjs +69 -2
- package/dist/index101.mjs +34 -80
- package/dist/index102.mjs +41 -52
- package/dist/index103.mjs +2 -6
- package/dist/index104.mjs +5 -4
- package/dist/index105.mjs +1123 -168
- package/dist/index106.mjs +20 -53
- package/dist/index107.mjs +55 -69
- package/dist/index108.mjs +33 -37
- package/dist/index109.mjs +2 -43
- package/dist/index112.mjs +1 -1
- package/dist/index113.mjs +1 -1
- package/dist/index114.mjs +8 -8
- package/dist/index115.mjs +6 -6
- package/dist/index116.mjs +3 -3
- package/dist/index117.mjs +1 -1
- package/dist/index118.mjs +1 -1
- package/dist/index119.mjs +1 -1
- package/dist/index120.mjs +2 -2
- package/dist/index121.mjs +2 -2
- package/dist/index122.mjs +3 -3
- package/dist/index123.mjs +1 -1
- package/dist/index124.mjs +3 -3
- package/dist/index125.mjs +2 -2
- package/dist/index126.mjs +2 -2
- package/dist/index127.mjs +1 -1
- package/dist/index128.mjs +3 -3
- package/dist/index129.mjs +1 -1
- package/dist/index130.mjs +1 -1
- package/dist/index131.mjs +3 -3
- package/dist/index132.mjs +2 -2
- package/dist/index133.mjs +4 -4
- package/dist/index134.mjs +1 -1
- package/dist/index135.mjs +3 -3
- package/dist/index136.mjs +4 -4
- package/dist/index137.mjs +1 -1
- package/dist/index138.mjs +1 -1
- package/dist/index139.mjs +1 -1
- package/dist/index140.mjs +1 -1
- package/dist/index141.mjs +1 -1
- package/dist/index142.mjs +1 -1
- package/dist/index143.mjs +1 -1
- package/dist/index144.mjs +2 -2
- package/dist/index145.mjs +3 -3
- package/dist/index148.mjs +1 -1
- package/dist/index150.mjs +1 -1
- package/dist/index151.mjs +1 -1
- package/dist/index152.mjs +5 -5
- package/dist/index154.mjs +2 -2
- package/dist/index156.mjs +2 -2
- package/dist/index158.mjs +1 -1
- package/dist/index16.mjs +86 -86
- package/dist/index160.mjs +4 -4
- package/dist/index161.mjs +3 -3
- package/dist/index162.mjs +2 -2
- package/dist/index164.mjs +2 -2
- package/dist/index165.mjs +18 -2
- package/dist/index166.mjs +25 -11
- package/dist/index167.mjs +32 -26
- package/dist/index168.mjs +12 -32
- package/dist/index169.mjs +9 -9
- package/dist/index170.mjs +2 -18
- package/dist/index171.mjs +20 -2
- package/dist/index172.mjs +39 -13
- package/dist/index173.mjs +2 -46
- package/dist/index174.mjs +30 -2
- package/dist/index175.mjs +11 -23
- package/dist/index176.mjs +2 -18
- package/dist/index177.mjs +2 -2
- package/dist/index178.mjs +2 -2
- package/dist/index179.mjs +2 -2
- package/dist/index180.mjs +72 -2
- package/dist/index181.mjs +2 -72
- package/dist/index182.mjs +53 -2
- package/dist/index183.mjs +2 -53
- package/dist/index184.mjs +36 -2
- package/dist/index185.mjs +146 -30
- package/dist/index186.mjs +2 -152
- package/dist/index187.mjs +2 -2
- package/dist/index188.mjs +19 -2
- package/dist/index189.mjs +2 -19
- package/dist/index190.mjs +2 -2
- package/dist/index191.mjs +26 -2
- package/dist/index192.mjs +2 -26
- package/dist/index193.mjs +2 -2
- package/dist/index194.mjs +24 -2
- package/dist/index195.mjs +16 -17
- package/dist/index196.mjs +2 -23
- package/dist/index198.mjs +2 -2
- package/dist/index199.mjs +23 -2
- package/dist/index20.mjs +20 -20
- package/dist/index200.mjs +2 -23
- package/dist/index201.mjs +23 -2
- package/dist/index202.mjs +2 -23
- package/dist/index203.mjs +2 -2
- package/dist/index205.mjs +23 -2
- package/dist/index206.mjs +2 -23
- package/dist/index207.mjs +23 -2
- package/dist/index208.mjs +2 -23
- package/dist/index209.mjs +2 -2
- package/dist/index210.mjs +2 -2
- package/dist/index212.mjs +2 -2
- package/dist/index213.mjs +2 -2
- package/dist/index214.mjs +2 -2
- package/dist/index215.mjs +2 -2
- package/dist/index216.mjs +127 -2
- package/dist/index217.mjs +2 -127
- package/dist/index218.mjs +74 -2
- package/dist/index219.mjs +60 -60
- package/dist/index220.mjs +2 -74
- package/dist/index221.mjs +1 -1
- package/dist/index222.mjs +3 -3
- package/dist/index227.mjs +1 -1
- package/dist/index229.mjs +3 -3
- package/dist/index230.mjs +5 -5
- package/dist/index231.mjs +3 -3
- package/dist/index233.mjs +2 -2
- package/dist/index234.mjs +2 -2
- package/dist/index236.mjs +2 -2
- package/dist/index237.mjs +108 -2
- package/dist/index238.mjs +2 -2
- package/dist/index239.mjs +2 -108
- package/dist/index240.mjs +2 -2
- package/dist/index242.mjs +2 -2
- package/dist/index243.mjs +2 -2
- package/dist/index244.mjs +243 -36
- package/dist/index245.mjs +2 -2
- package/dist/index246.mjs +33 -2
- package/dist/index247.mjs +61 -240
- package/dist/index248.mjs +25 -2
- package/dist/index249.mjs +2 -33
- package/dist/index250.mjs +2 -65
- package/dist/index251.mjs +31 -19
- package/dist/index253.mjs +2 -2
- package/dist/index255.mjs +2 -2
- package/dist/index258.mjs +2 -2
- package/dist/index259.mjs +2 -4
- package/dist/index260.mjs +2 -2
- package/dist/index261.mjs +4 -2
- package/dist/index262.mjs +2 -2
- package/dist/index263.mjs +2 -2
- package/dist/index267.mjs +17 -2
- package/dist/index268.mjs +11 -15
- package/dist/index269.mjs +6 -13
- package/dist/index270.mjs +30 -6
- package/dist/index271.mjs +2 -30
- package/dist/index272.mjs +2 -2
- package/dist/index273.mjs +2 -18
- package/dist/index274.mjs +2 -47
- package/dist/index275.mjs +91 -2
- package/dist/index276.mjs +2 -2
- package/dist/index277.mjs +18 -2
- package/dist/index278.mjs +47 -2
- package/dist/index279.mjs +2 -91
- package/dist/index281.mjs +2 -2
- package/dist/index283.mjs +2 -2
- package/dist/index40.mjs +1 -1
- package/dist/index41.mjs +1 -1
- package/dist/index42.mjs +1 -1
- package/dist/index43.mjs +1 -1
- package/dist/index44.mjs +1 -1
- package/dist/index45.mjs +2 -2
- package/dist/index47.mjs +2 -2
- package/dist/index51.mjs +3 -3
- package/dist/index55.mjs +1 -1
- package/dist/index60.mjs +17 -17
- package/dist/index61.mjs +2 -2
- package/dist/index62.mjs +1 -1
- package/dist/index63.mjs +1 -1
- package/dist/index64.mjs +1 -1
- package/dist/index65.mjs +1 -1
- package/dist/index66.mjs +1 -1
- package/dist/index67.mjs +1 -1
- package/dist/index68.mjs +1 -1
- package/dist/index69.mjs +1 -1
- package/dist/index70.mjs +1 -1
- package/dist/index71.mjs +1 -1
- package/dist/index72.mjs +1 -1
- package/dist/index73.mjs +1 -1
- package/dist/index74.mjs +1 -1
- package/dist/index75.mjs +1 -1
- package/dist/index76.mjs +4 -23
- package/dist/index77.mjs +21 -150
- package/dist/index78.mjs +2 -23
- package/dist/index79.mjs +23 -2
- package/dist/index80.mjs +149 -71
- package/dist/index81.mjs +74 -14
- package/dist/index82.mjs +14 -62
- package/dist/index83.mjs +62 -4
- package/dist/index84.mjs +235 -2
- package/dist/index85.mjs +5 -5
- package/dist/index86.mjs +125 -1125
- package/dist/index87.mjs +67 -19
- package/dist/index88.mjs +82 -50
- package/dist/index89.mjs +28 -32
- package/dist/index90.mjs +9 -2
- package/dist/index91.mjs +69 -229
- package/dist/index92.mjs +3 -5
- package/dist/index93.mjs +2 -134
- package/dist/index94.mjs +79 -64
- package/dist/index95.mjs +51 -84
- package/dist/index96.mjs +5 -28
- package/dist/index97.mjs +4 -8
- package/dist/index98.mjs +173 -69
- package/dist/index99.mjs +53 -4
- package/package.json +1 -1
- package/src/components/Checkout.tsx +1 -1
- package/src/components/ShoppingCart.tsx +3 -2
package/dist/index139.mjs
CHANGED
package/dist/index140.mjs
CHANGED
package/dist/index141.mjs
CHANGED
package/dist/index142.mjs
CHANGED
package/dist/index143.mjs
CHANGED
package/dist/index144.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __exports as n } from "./
|
|
3
|
-
import { __require as c } from "./
|
|
2
|
+
import { __exports as n } from "./index215.mjs";
|
|
3
|
+
import { __require as c } from "./index216.mjs";
|
|
4
4
|
var u;
|
|
5
5
|
function y() {
|
|
6
6
|
return u ? n : (u = 1, function(a) {
|
package/dist/index145.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __module as e } from "./
|
|
3
|
-
import { __require as o } from "./
|
|
4
|
-
import { __require as t } from "./
|
|
2
|
+
import { __module as e } from "./index217.mjs";
|
|
3
|
+
import { __require as o } from "./index218.mjs";
|
|
4
|
+
import { __require as t } from "./index219.mjs";
|
|
5
5
|
var r;
|
|
6
6
|
function p() {
|
|
7
7
|
return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
|
package/dist/index148.mjs
CHANGED
package/dist/index150.mjs
CHANGED
package/dist/index151.mjs
CHANGED
package/dist/index152.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import r from "./index222.mjs";
|
|
3
|
-
import p from "./
|
|
4
|
-
import l from "./
|
|
5
|
-
import m from "./
|
|
6
|
-
import a from "./
|
|
7
|
-
import o from "./
|
|
3
|
+
import p from "./index92.mjs";
|
|
4
|
+
import l from "./index88.mjs";
|
|
5
|
+
import m from "./index90.mjs";
|
|
6
|
+
import a from "./index98.mjs";
|
|
7
|
+
import o from "./index99.mjs";
|
|
8
8
|
function d(e) {
|
|
9
9
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
10
10
|
throw new m(null, e);
|
package/dist/index154.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { VERSION as w } from "./
|
|
3
|
-
import s from "./
|
|
2
|
+
import { VERSION as w } from "./index93.mjs";
|
|
3
|
+
import s from "./index95.mjs";
|
|
4
4
|
const l = {};
|
|
5
5
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((n, t) => {
|
|
6
6
|
l[n] = function(o) {
|
package/dist/index156.mjs
CHANGED
package/dist/index158.mjs
CHANGED
package/dist/index16.mjs
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsxs as s, Fragment as
|
|
3
|
-
import { useState as
|
|
2
|
+
import { jsxs as s, Fragment as E, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useState as b, useEffect as F } from "react";
|
|
4
4
|
import "./index28.mjs";
|
|
5
|
-
import { useGetCartRecommendations as
|
|
5
|
+
import { useGetCartRecommendations as V, useGetCartUpsellAddons as W } from "./index40.mjs";
|
|
6
6
|
import "@tanstack/react-query";
|
|
7
|
-
import { useCart as
|
|
8
|
-
import { CartItem as
|
|
9
|
-
import { DiscountCodeInput as
|
|
10
|
-
import { Checkout as
|
|
11
|
-
import { RecommendedProducts as
|
|
12
|
-
import { CartUpsellScreen as
|
|
13
|
-
import { AddOnsDiscountScreen as
|
|
14
|
-
import { FreeShippingProgress as
|
|
15
|
-
import { Button as
|
|
16
|
-
import { ArrowLeft as
|
|
7
|
+
import { useCart as _ } from "./index3.mjs";
|
|
8
|
+
import { CartItem as $ } from "./index14.mjs";
|
|
9
|
+
import { DiscountCodeInput as O } from "./index19.mjs";
|
|
10
|
+
import { Checkout as ee } from "./index20.mjs";
|
|
11
|
+
import { RecommendedProducts as te } from "./index12.mjs";
|
|
12
|
+
import { CartUpsellScreen as se } from "./index17.mjs";
|
|
13
|
+
import { AddOnsDiscountScreen as ae } from "./index18.mjs";
|
|
14
|
+
import { FreeShippingProgress as ie } from "./index49.mjs";
|
|
15
|
+
import { Button as L } from "./index21.mjs";
|
|
16
|
+
import { ArrowLeft as le, X as re, Loader2 as ne, Package as v } from "lucide-react";
|
|
17
17
|
import { cn as p, formatCurrency as u } from "./index27.mjs";
|
|
18
|
-
import { useHideBodyOverflow as
|
|
18
|
+
import { useHideBodyOverflow as de } from "./index50.mjs";
|
|
19
19
|
function Se({
|
|
20
|
-
isOpen:
|
|
20
|
+
isOpen: i,
|
|
21
21
|
onClose: n,
|
|
22
22
|
onCheckout: g,
|
|
23
23
|
onContinueShopping: x,
|
|
24
24
|
onPurchaseSuccess: y,
|
|
25
|
-
className:
|
|
26
|
-
showDiscountCode:
|
|
27
|
-
showContinueShopping:
|
|
28
|
-
checkoutButtonText:
|
|
29
|
-
continueShoppingText:
|
|
25
|
+
className: U,
|
|
26
|
+
showDiscountCode: I = !0,
|
|
27
|
+
showContinueShopping: z = !0,
|
|
28
|
+
checkoutButtonText: B = "Complete Purchase",
|
|
29
|
+
continueShoppingText: R = "Continue Shopping",
|
|
30
30
|
checkoutButtonClassName: N,
|
|
31
|
-
continueShoppingButtonClassName:
|
|
32
|
-
disableCheckout:
|
|
33
|
-
emptyMessage:
|
|
31
|
+
continueShoppingButtonClassName: Y,
|
|
32
|
+
disableCheckout: G = !1,
|
|
33
|
+
emptyMessage: P = "Your cart is empty"
|
|
34
34
|
}) {
|
|
35
|
-
var
|
|
36
|
-
const { cart: t, isLoading:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}, [
|
|
40
|
-
const
|
|
41
|
-
|
|
35
|
+
var k, C, j, A, S;
|
|
36
|
+
const { cart: t, isLoading: d, error: o, trackCheckoutInitiated: q } = _(), { data: m } = V(t == null ? void 0 : t.id, 100), { data: ce } = W(t == null ? void 0 : t.id), [H, f] = b(!1), [l, c] = b(!1), [a, h] = b(!1);
|
|
37
|
+
de(i), F(() => {
|
|
38
|
+
i || (c(!1), h(!1));
|
|
39
|
+
}, [i]), F(() => {
|
|
40
|
+
const r = (D) => {
|
|
41
|
+
D.key === "Escape" && i && n();
|
|
42
42
|
};
|
|
43
|
-
return window.addEventListener("keydown",
|
|
44
|
-
}, [
|
|
45
|
-
const
|
|
46
|
-
|
|
43
|
+
return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
|
|
44
|
+
}, [i, n]);
|
|
45
|
+
const T = ((k = t == null ? void 0 : t.pricing) == null ? void 0 : k.subtotal) || 0, w = ((C = t == null ? void 0 : t.pricing.discount) == null ? void 0 : C.amount) || 0, X = () => {
|
|
46
|
+
q(), m && m.length > 0 ? c(!0) : f(!0), g == null || g();
|
|
47
|
+
}, Z = () => {
|
|
48
|
+
c(!1), f(!0);
|
|
49
|
+
}, J = () => {
|
|
50
|
+
h(!1), f(!0);
|
|
47
51
|
}, K = () => {
|
|
48
|
-
|
|
52
|
+
c(!1);
|
|
49
53
|
}, M = () => {
|
|
50
|
-
|
|
54
|
+
m && m.length > 0 ? (h(!1), c(!0)) : h(!1);
|
|
51
55
|
}, Q = () => {
|
|
52
|
-
o(!1);
|
|
53
|
-
}, V = () => {
|
|
54
|
-
f && f.length > 0 ? (d(!1), o(!0)) : d(!1);
|
|
55
|
-
}, W = () => {
|
|
56
56
|
x == null || x(), n();
|
|
57
57
|
};
|
|
58
|
-
return /* @__PURE__ */ s(
|
|
58
|
+
return /* @__PURE__ */ s(E, { children: [
|
|
59
59
|
/* @__PURE__ */ e(
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
62
|
className: p(
|
|
63
63
|
"fixed inset-0 z-40 bg-black/50 transition-opacity duration-300",
|
|
64
|
-
|
|
64
|
+
i ? "opacity-100" : "pointer-events-none opacity-0"
|
|
65
65
|
),
|
|
66
66
|
onClick: n,
|
|
67
67
|
"aria-hidden": "true"
|
|
@@ -72,24 +72,24 @@ function Se({
|
|
|
72
72
|
{
|
|
73
73
|
className: p(
|
|
74
74
|
"fixed right-0 top-0 z-50 h-full w-full bg-white shadow-2xl transition-transform duration-300 ease-in-out sm:w-[480px]",
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
i ? "translate-x-0" : "translate-x-full",
|
|
76
|
+
U
|
|
77
77
|
),
|
|
78
78
|
children: /* @__PURE__ */ s("div", { className: "flex h-full flex-col", children: [
|
|
79
79
|
/* @__PURE__ */ e("div", { className: "border-b border-gray-300 px-4 py-2", children: /* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
|
|
80
|
-
|
|
80
|
+
l || a ? /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
81
81
|
/* @__PURE__ */ e(
|
|
82
82
|
"button",
|
|
83
83
|
{
|
|
84
|
-
onClick:
|
|
84
|
+
onClick: a ? M : K,
|
|
85
85
|
className: "rounded-full p-2 transition-colors hover:bg-gray-100",
|
|
86
86
|
"aria-label": "Back",
|
|
87
|
-
children: /* @__PURE__ */ e(
|
|
87
|
+
children: /* @__PURE__ */ e(le, { className: "h-5 w-5" })
|
|
88
88
|
}
|
|
89
89
|
),
|
|
90
|
-
/* @__PURE__ */ e("h2", { className: "text-lg font-medium", children:
|
|
90
|
+
/* @__PURE__ */ e("h2", { className: "text-lg font-medium", children: a ? "Exclusive deals for you" : "Before you go..." })
|
|
91
91
|
] }) : /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
92
|
-
/* @__PURE__ */ e("div", { className: "bg-accent-500 text-white px-2 py-1 rounded-full text-sm aspect-square flex items-center justify-center w-8 h-8", children: (
|
|
92
|
+
/* @__PURE__ */ e("div", { className: "bg-accent-500 text-white px-2 py-1 rounded-full text-sm aspect-square flex items-center justify-center w-8 h-8", children: (j = t == null ? void 0 : t.items) == null ? void 0 : j.length }),
|
|
93
93
|
/* @__PURE__ */ e("h2", { className: "text-lg font-medium", children: "Your Cart" })
|
|
94
94
|
] }),
|
|
95
95
|
/* @__PURE__ */ e(
|
|
@@ -98,56 +98,56 @@ function Se({
|
|
|
98
98
|
onClick: n,
|
|
99
99
|
className: "rounded-full p-2 transition-colors hover:bg-gray-100",
|
|
100
100
|
"aria-label": "Close cart",
|
|
101
|
-
children: /* @__PURE__ */ e(
|
|
101
|
+
children: /* @__PURE__ */ e(re, { className: "h-6 w-6" })
|
|
102
102
|
}
|
|
103
103
|
)
|
|
104
104
|
] }) }),
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
!
|
|
108
|
-
!
|
|
109
|
-
/* @__PURE__ */ e(
|
|
105
|
+
l && /* @__PURE__ */ e(se, { onSkip: Z, limit: 100, checkoutButtonClassName: N }),
|
|
106
|
+
a && /* @__PURE__ */ e(ae, { onSkip: J, checkoutButtonClassName: N }),
|
|
107
|
+
!l && !a && !d && !o && t && t.items && t.items.length > 0 && /* @__PURE__ */ e(ie, {}),
|
|
108
|
+
!l && !a && d && /* @__PURE__ */ e("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ s("div", { className: "text-center", children: [
|
|
109
|
+
/* @__PURE__ */ e(ne, { className: "mx-auto mb-4 h-12 w-12 animate-spin text-accent-500" }),
|
|
110
110
|
/* @__PURE__ */ e("p", { className: "text-gray-600", children: "Loading cart..." })
|
|
111
111
|
] }) }),
|
|
112
|
-
!
|
|
113
|
-
/* @__PURE__ */ e(
|
|
112
|
+
!l && !a && o && !d && /* @__PURE__ */ e("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ s("div", { className: "text-center", children: [
|
|
113
|
+
/* @__PURE__ */ e(v, { className: "mx-auto mb-4 h-12 w-12 text-red-600" }),
|
|
114
114
|
/* @__PURE__ */ e("p", { className: "text-red-600", children: "Failed to load cart. Please try again." })
|
|
115
115
|
] }) }),
|
|
116
|
-
!
|
|
117
|
-
/* @__PURE__ */ e(
|
|
118
|
-
/* @__PURE__ */ e("p", { className: "text-gray-600", children:
|
|
116
|
+
!l && !a && !d && !o && (!t || !t.items || t.items.length === 0) && /* @__PURE__ */ e("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ s("div", { className: "text-center", children: [
|
|
117
|
+
/* @__PURE__ */ e(v, { className: "mx-auto mb-4 h-12 w-12 text-gray-400" }),
|
|
118
|
+
/* @__PURE__ */ e("p", { className: "text-gray-600", children: P })
|
|
119
119
|
] }) }),
|
|
120
|
-
!
|
|
120
|
+
!l && !a && !d && !o && t && t.items && t.items.length > 0 && /* @__PURE__ */ s(E, { children: [
|
|
121
121
|
/* @__PURE__ */ s("div", { className: "flex-1 overflow-y-auto", children: [
|
|
122
|
-
/* @__PURE__ */ e("div", { className: "space-y-4 p-4", children: t.items.map((
|
|
122
|
+
/* @__PURE__ */ e("div", { className: "space-y-4 p-4", children: t.items.map((r, D) => /* @__PURE__ */ s("div", { children: [
|
|
123
123
|
/* @__PURE__ */ e(
|
|
124
|
-
|
|
124
|
+
$,
|
|
125
125
|
{
|
|
126
|
-
item:
|
|
126
|
+
item: r
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
129
|
/* @__PURE__ */ e("hr", { className: "border-gray-200 mt-2" })
|
|
130
|
-
] },
|
|
131
|
-
|
|
130
|
+
] }, r.id)) }),
|
|
131
|
+
I && /* @__PURE__ */ e("div", { className: "px-4 pb-4", children: /* @__PURE__ */ e(O, {}) })
|
|
132
132
|
] }),
|
|
133
|
-
/* @__PURE__ */ e(
|
|
133
|
+
/* @__PURE__ */ e(te, { limit: 6, className: "border-t border-gray-200" }),
|
|
134
134
|
/* @__PURE__ */ s("div", { className: "border-t border-gray-300 bg-white", children: [
|
|
135
135
|
/* @__PURE__ */ s("div", { className: " text-base", children: [
|
|
136
136
|
/* @__PURE__ */ s("div", { className: "px-4 py-2 space-y-2", children: [
|
|
137
137
|
/* @__PURE__ */ s("div", { className: "flex justify-between", children: [
|
|
138
138
|
/* @__PURE__ */ e("span", { className: "text-gray-600", children: "Subtotal" }),
|
|
139
|
-
/* @__PURE__ */ e("span", { className: "font-semibold", children: u(
|
|
139
|
+
/* @__PURE__ */ e("span", { className: "font-semibold", children: u(T) })
|
|
140
140
|
] }),
|
|
141
|
-
|
|
141
|
+
w > 0 && /* @__PURE__ */ s("div", { className: "flex justify-between text-green-600", children: [
|
|
142
142
|
/* @__PURE__ */ e("span", { children: "Discount" }),
|
|
143
143
|
/* @__PURE__ */ s("span", { className: "font-semibold", children: [
|
|
144
144
|
"-",
|
|
145
|
-
u(
|
|
145
|
+
u(w)
|
|
146
146
|
] })
|
|
147
147
|
] }),
|
|
148
148
|
/* @__PURE__ */ s("div", { className: "flex justify-between", children: [
|
|
149
149
|
/* @__PURE__ */ e("span", { className: "text-gray-600", children: "Shipping" }),
|
|
150
|
-
/* @__PURE__ */ e("span", { className: "font-semibold", children: t.deliveryZone ? ((
|
|
150
|
+
/* @__PURE__ */ e("span", { className: "font-semibold", children: t.deliveryZone ? ((A = t.pricing) == null ? void 0 : A.deliveryCharge) === 0 ? /* @__PURE__ */ e("span", { className: "text-green-600", children: "Free" }) : u(((S = t.pricing) == null ? void 0 : S.deliveryCharge) ?? 0) : /* @__PURE__ */ e("span", { className: "text-gray-400 text-xs font-normal", children: "Calculated at checkout" }) })
|
|
151
151
|
] })
|
|
152
152
|
] }),
|
|
153
153
|
/* @__PURE__ */ s("div", { className: "flex justify-between p-4 border-t border-gray-300 text-lg", children: [
|
|
@@ -157,26 +157,26 @@ function Se({
|
|
|
157
157
|
] }),
|
|
158
158
|
/* @__PURE__ */ s("div", { className: "px-4 py-2 space-y-2 pt-0", children: [
|
|
159
159
|
/* @__PURE__ */ s(
|
|
160
|
-
|
|
160
|
+
L,
|
|
161
161
|
{
|
|
162
|
-
onClick:
|
|
163
|
-
disabled:
|
|
162
|
+
onClick: X,
|
|
163
|
+
disabled: G || t.items.length === 0,
|
|
164
164
|
className: p("w-full bg-accent-500 text-white hover:bg-accent-600", N),
|
|
165
165
|
size: "lg",
|
|
166
166
|
children: [
|
|
167
|
-
/* @__PURE__ */ e(
|
|
168
|
-
|
|
167
|
+
/* @__PURE__ */ e(v, { className: "h-5 w-5" }),
|
|
168
|
+
B
|
|
169
169
|
]
|
|
170
170
|
}
|
|
171
171
|
),
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
z && /* @__PURE__ */ e(
|
|
173
|
+
L,
|
|
174
174
|
{
|
|
175
|
-
onClick:
|
|
175
|
+
onClick: Q,
|
|
176
176
|
variant: "outline",
|
|
177
|
-
className: p("w-full border-gray-300 text-gray-600 hover:bg-gray-100",
|
|
177
|
+
className: p("w-full border-gray-300 text-gray-600 hover:bg-gray-100", Y),
|
|
178
178
|
size: "lg",
|
|
179
|
-
children:
|
|
179
|
+
children: R
|
|
180
180
|
}
|
|
181
181
|
)
|
|
182
182
|
] })
|
|
@@ -186,13 +186,13 @@ function Se({
|
|
|
186
186
|
}
|
|
187
187
|
),
|
|
188
188
|
/* @__PURE__ */ e(
|
|
189
|
-
|
|
189
|
+
ee,
|
|
190
190
|
{
|
|
191
|
-
isOpen:
|
|
192
|
-
onSuccess: (
|
|
193
|
-
y == null || y(
|
|
191
|
+
isOpen: H,
|
|
192
|
+
onSuccess: (r) => {
|
|
193
|
+
y == null || y(r), n();
|
|
194
194
|
},
|
|
195
|
-
onClose: () =>
|
|
195
|
+
onClose: () => f(!1),
|
|
196
196
|
refundPolicy: {
|
|
197
197
|
title: "Yes we offer refunds!",
|
|
198
198
|
policies: [
|
package/dist/index160.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import H from "./
|
|
2
|
+
import H from "./index84.mjs";
|
|
3
3
|
import D from "./index227.mjs";
|
|
4
4
|
import L from "./index155.mjs";
|
|
5
|
-
import n from "./
|
|
6
|
-
import y from "./
|
|
5
|
+
import n from "./index95.mjs";
|
|
6
|
+
import y from "./index90.mjs";
|
|
7
7
|
import O from "./index228.mjs";
|
|
8
8
|
import U from "./index157.mjs";
|
|
9
|
-
import q from "./
|
|
9
|
+
import q from "./index98.mjs";
|
|
10
10
|
import { progressEventReducer as A } from "./index229.mjs";
|
|
11
11
|
import v from "./index230.mjs";
|
|
12
12
|
const N = typeof XMLHttpRequest < "u", Q = N && function(s) {
|
package/dist/index161.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import K from "./index157.mjs";
|
|
3
|
-
import t from "./
|
|
4
|
-
import b from "./
|
|
3
|
+
import t from "./index84.mjs";
|
|
4
|
+
import b from "./index95.mjs";
|
|
5
5
|
import ee from "./index231.mjs";
|
|
6
6
|
import { trackStream as z } from "./index232.mjs";
|
|
7
|
-
import te from "./
|
|
7
|
+
import te from "./index98.mjs";
|
|
8
8
|
import { progressEventDecorator as I, progressEventReducer as M, asyncDecorator as j } from "./index229.mjs";
|
|
9
9
|
import se from "./index230.mjs";
|
|
10
10
|
import re from "./index227.mjs";
|
package/dist/index162.mjs
CHANGED
package/dist/index164.mjs
CHANGED
package/dist/index165.mjs
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
2
|
+
import { __exports as r } from "./index239.mjs";
|
|
3
|
+
var u;
|
|
4
|
+
function a() {
|
|
5
|
+
return u ? r : (u = 1, function(n) {
|
|
6
|
+
Object.defineProperty(n, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
}), Object.defineProperty(n, "default", {
|
|
9
|
+
enumerable: !0,
|
|
10
|
+
get: function() {
|
|
11
|
+
return o;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
function o(e, t) {
|
|
15
|
+
return t === void 0 && (t = ""), (e === "/" ? "/index" : /^\/index(\/|$)/.test(e) ? "/index" + e : e) + t;
|
|
16
|
+
}
|
|
17
|
+
}(r), r);
|
|
18
|
+
}
|
|
3
19
|
export {
|
|
4
|
-
|
|
20
|
+
a as __require
|
|
5
21
|
};
|
package/dist/index166.mjs
CHANGED
|
@@ -1,21 +1,35 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
var
|
|
4
|
-
function
|
|
5
|
-
return
|
|
6
|
-
Object.defineProperty(
|
|
2
|
+
import { __module as r } from "./index240.mjs";
|
|
3
|
+
var i;
|
|
4
|
+
function c() {
|
|
5
|
+
return i ? r.exports : (i = 1, function(f, e) {
|
|
6
|
+
Object.defineProperty(e, "__esModule", {
|
|
7
7
|
value: !0
|
|
8
|
-
}), Object.defineProperty(
|
|
8
|
+
}), Object.defineProperty(e, "__unsafeCreateTrustedScriptURL", {
|
|
9
9
|
enumerable: !0,
|
|
10
10
|
get: function() {
|
|
11
|
-
return
|
|
11
|
+
return a;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
let n;
|
|
15
|
+
function d() {
|
|
16
|
+
if (typeof n > "u" && typeof window < "u") {
|
|
17
|
+
var u;
|
|
18
|
+
n = ((u = window.trustedTypes) == null ? void 0 : u.createPolicy("nextjs", {
|
|
19
|
+
createHTML: (t) => t,
|
|
20
|
+
createScript: (t) => t,
|
|
21
|
+
createScriptURL: (t) => t
|
|
22
|
+
})) || null;
|
|
23
|
+
}
|
|
24
|
+
return n;
|
|
25
|
+
}
|
|
26
|
+
function a(u) {
|
|
27
|
+
var t;
|
|
28
|
+
return ((t = d()) == null ? void 0 : t.createScriptURL(u)) || u;
|
|
16
29
|
}
|
|
17
|
-
|
|
30
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), f.exports = e.default);
|
|
31
|
+
}(r, r.exports), r.exports);
|
|
18
32
|
}
|
|
19
33
|
export {
|
|
20
|
-
|
|
34
|
+
c as __require
|
|
21
35
|
};
|
package/dist/index167.mjs
CHANGED
|
@@ -1,35 +1,41 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __module as
|
|
3
|
-
var
|
|
4
|
-
function
|
|
5
|
-
return
|
|
2
|
+
import { __module as n } from "./index235.mjs";
|
|
3
|
+
var a;
|
|
4
|
+
function o() {
|
|
5
|
+
return a ? n.exports : (a = 1, function(f, e) {
|
|
6
6
|
Object.defineProperty(e, "__esModule", {
|
|
7
7
|
value: !0
|
|
8
|
-
}), Object.defineProperty(e, "__unsafeCreateTrustedScriptURL", {
|
|
9
|
-
enumerable: !0,
|
|
10
|
-
get: function() {
|
|
11
|
-
return a;
|
|
12
|
-
}
|
|
13
8
|
});
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
createHTML: (t) => t,
|
|
20
|
-
createScript: (t) => t,
|
|
21
|
-
createScriptURL: (t) => t
|
|
22
|
-
})) || null;
|
|
23
|
-
}
|
|
24
|
-
return n;
|
|
25
|
-
}
|
|
26
|
-
function a(u) {
|
|
27
|
-
var t;
|
|
28
|
-
return ((t = d()) == null ? void 0 : t.createScriptURL(u)) || u;
|
|
9
|
+
function d(l, t) {
|
|
10
|
+
for (var u in t) Object.defineProperty(l, u, {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: t[u]
|
|
13
|
+
});
|
|
29
14
|
}
|
|
15
|
+
d(e, {
|
|
16
|
+
cancelIdleCallback: function() {
|
|
17
|
+
return c;
|
|
18
|
+
},
|
|
19
|
+
requestIdleCallback: function() {
|
|
20
|
+
return r;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const r = typeof self < "u" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(l) {
|
|
24
|
+
let t = Date.now();
|
|
25
|
+
return self.setTimeout(function() {
|
|
26
|
+
l({
|
|
27
|
+
didTimeout: !1,
|
|
28
|
+
timeRemaining: function() {
|
|
29
|
+
return Math.max(0, 50 - (Date.now() - t));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}, 1);
|
|
33
|
+
}, c = typeof self < "u" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(l) {
|
|
34
|
+
return clearTimeout(l);
|
|
35
|
+
};
|
|
30
36
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), f.exports = e.default);
|
|
31
|
-
}(
|
|
37
|
+
}(n, n.exports), n.exports);
|
|
32
38
|
}
|
|
33
39
|
export {
|
|
34
|
-
|
|
40
|
+
o as __require
|
|
35
41
|
};
|