@instockng/storefront-ui 1.0.40 → 1.0.42
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/index100.mjs +26 -19
- package/dist/index101.mjs +11 -58
- package/dist/index102.mjs +210 -13
- package/dist/index103.mjs +173 -32
- package/dist/index104.mjs +13 -15
- package/dist/index105.mjs +16 -27
- package/dist/index106.mjs +26 -20
- package/dist/index107.mjs +151 -14
- package/dist/index108.mjs +13 -14
- package/dist/index109.mjs +23 -39
- package/dist/index11.mjs +2 -2
- package/dist/index110.mjs +76 -15
- package/dist/index111.mjs +33 -263
- package/dist/index112.mjs +138 -63
- package/dist/index113.mjs +54 -7
- package/dist/index114.mjs +23 -2
- package/dist/index115.mjs +27 -2
- package/dist/index116.mjs +19 -29
- package/dist/index117.mjs +25 -2
- package/dist/index118.mjs +21 -2
- package/dist/index119.mjs +18 -231
- package/dist/index120.mjs +20 -5
- package/dist/index121.mjs +59 -128
- package/dist/index122.mjs +17 -67
- package/dist/index123.mjs +36 -84
- package/dist/index124.mjs +23 -28
- package/dist/index125.mjs +33 -8
- package/dist/index126.mjs +24 -72
- package/dist/index127.mjs +18 -3
- package/dist/index128.mjs +21 -2
- package/dist/index129.mjs +45 -81
- package/dist/index130.mjs +22 -53
- package/dist/index131.mjs +267 -5
- package/dist/index132.mjs +69 -4
- package/dist/index133.mjs +7 -178
- package/dist/index134.mjs +2 -53
- package/dist/index135.mjs +2 -69
- package/dist/index136.mjs +33 -34
- package/dist/index137.mjs +2 -43
- package/dist/index138.mjs +2 -2
- package/dist/index140.mjs +2 -2
- package/dist/index141.mjs +18 -2
- package/dist/index142.mjs +25 -11
- package/dist/index143.mjs +32 -26
- package/dist/index144.mjs +12 -32
- package/dist/index145.mjs +9 -9
- package/dist/index146.mjs +2 -18
- package/dist/index147.mjs +20 -2
- package/dist/index148.mjs +39 -13
- package/dist/index149.mjs +2 -46
- package/dist/index150.mjs +30 -2
- package/dist/index151.mjs +12 -24
- package/dist/index152.mjs +2 -18
- package/dist/index153.mjs +2 -2
- package/dist/index154.mjs +2 -2
- package/dist/index155.mjs +2 -2
- package/dist/index156.mjs +72 -2
- package/dist/index157.mjs +2 -72
- package/dist/index158.mjs +53 -2
- package/dist/index159.mjs +2 -53
- package/dist/index160.mjs +36 -2
- package/dist/index161.mjs +146 -30
- package/dist/index162.mjs +2 -152
- package/dist/index163.mjs +2 -2
- package/dist/index164.mjs +19 -2
- package/dist/index165.mjs +2 -19
- package/dist/index166.mjs +2 -2
- package/dist/index167.mjs +26 -2
- package/dist/index168.mjs +2 -26
- package/dist/index169.mjs +2 -2
- package/dist/index170.mjs +24 -2
- package/dist/index171.mjs +16 -17
- package/dist/index172.mjs +2 -23
- package/dist/index174.mjs +2 -2
- package/dist/index175.mjs +23 -2
- package/dist/index176.mjs +2 -23
- package/dist/index177.mjs +23 -2
- package/dist/index178.mjs +2 -23
- package/dist/index179.mjs +2 -2
- package/dist/index181.mjs +23 -2
- package/dist/index182.mjs +2 -23
- package/dist/index183.mjs +23 -2
- package/dist/index184.mjs +2 -23
- package/dist/index185.mjs +2 -2
- package/dist/index186.mjs +2 -2
- package/dist/index188.mjs +2 -2
- package/dist/index189.mjs +2 -2
- package/dist/index190.mjs +2 -2
- package/dist/index191.mjs +2 -2
- package/dist/index192.mjs +127 -2
- package/dist/index193.mjs +2 -127
- package/dist/index194.mjs +74 -2
- package/dist/index195.mjs +60 -60
- package/dist/index196.mjs +2 -74
- package/dist/index197.mjs +1 -1
- package/dist/index198.mjs +1 -1
- package/dist/index199.mjs +5 -5
- package/dist/index201.mjs +2 -2
- package/dist/index203.mjs +2 -2
- package/dist/index205.mjs +1 -1
- package/dist/index207.mjs +4 -4
- package/dist/index208.mjs +3 -3
- package/dist/index217.mjs +2 -108
- package/dist/index218.mjs +37 -2
- package/dist/index219.mjs +2 -2
- package/dist/index220.mjs +244 -2
- package/dist/index221.mjs +2 -37
- package/dist/index222.mjs +33 -2
- package/dist/index223.mjs +61 -240
- package/dist/index224.mjs +25 -2
- package/dist/index225.mjs +2 -33
- package/dist/index226.mjs +2 -65
- package/dist/index227.mjs +103 -20
- package/dist/index228.mjs +2 -2
- package/dist/index234.mjs +2 -2
- package/dist/index235.mjs +2 -2
- package/dist/index240.mjs +1 -1
- package/dist/index241.mjs +3 -3
- package/dist/index246.mjs +1 -1
- package/dist/index248.mjs +1 -1
- package/dist/index249.mjs +3 -3
- package/dist/index250.mjs +3 -3
- package/dist/index252.mjs +2 -2
- package/dist/index253.mjs +18 -2
- package/dist/index254.mjs +42 -13
- package/dist/index255.mjs +2 -47
- package/dist/index256.mjs +2 -2
- package/dist/index257.mjs +2 -2
- package/dist/index258.mjs +2 -2
- package/dist/index259.mjs +91 -2
- package/dist/index260.mjs +2 -91
- package/dist/index268.mjs +1 -1
- package/dist/index41.mjs +24 -24
- package/dist/index51.mjs +17 -17
- package/dist/index52.mjs +2 -2
- package/dist/index70.mjs +1 -1
- package/dist/index74.mjs +35 -35
- package/dist/index75.mjs +1 -1
- package/dist/index76.mjs +2 -2
- package/dist/index77.mjs +1 -1
- package/dist/index79.mjs +2 -2
- package/dist/index80.mjs +232 -25
- package/dist/index81.mjs +5 -17
- package/dist/index82.mjs +125 -206
- package/dist/index83.mjs +67 -179
- package/dist/index84.mjs +85 -20
- package/dist/index85.mjs +28 -22
- package/dist/index86.mjs +8 -32
- package/dist/index87.mjs +71 -152
- package/dist/index88.mjs +3 -19
- package/dist/index89.mjs +2 -31
- package/dist/index90.mjs +81 -82
- package/dist/index91.mjs +53 -37
- package/dist/index92.mjs +5 -144
- package/dist/index93.mjs +4 -54
- package/dist/index94.mjs +177 -21
- package/dist/index95.mjs +52 -26
- package/dist/index96.mjs +69 -23
- package/dist/index97.mjs +34 -25
- package/dist/index98.mjs +42 -20
- package/dist/index99.mjs +2 -22
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/RecommendedProducts.tsx +8 -8
- package/src/components/ShoppingCart.tsx +2 -2
package/dist/index252.mjs
CHANGED
package/dist/index253.mjs
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
2
|
+
import { __exports as r } from "./index269.mjs";
|
|
3
|
+
var u;
|
|
4
|
+
function s() {
|
|
5
|
+
return u ? r : (u = 1, function(n) {
|
|
6
|
+
Object.defineProperty(n, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
}), Object.defineProperty(n, "ensureLeadingSlash", {
|
|
9
|
+
enumerable: !0,
|
|
10
|
+
get: function() {
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
function t(e) {
|
|
15
|
+
return e.startsWith("/") ? e : "/" + e;
|
|
16
|
+
}
|
|
17
|
+
}(r), r);
|
|
18
|
+
}
|
|
3
19
|
export {
|
|
4
|
-
|
|
20
|
+
s as __require
|
|
5
21
|
};
|
package/dist/index254.mjs
CHANGED
|
@@ -1,21 +1,50 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __exports as
|
|
3
|
-
var
|
|
4
|
-
function
|
|
5
|
-
return
|
|
6
|
-
Object.defineProperty(
|
|
2
|
+
import { __exports as u } from "./index270.mjs";
|
|
3
|
+
var _;
|
|
4
|
+
function g() {
|
|
5
|
+
return _ ? u : (_ = 1, function(i) {
|
|
6
|
+
Object.defineProperty(i, "__esModule", {
|
|
7
7
|
value: !0
|
|
8
|
-
})
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
});
|
|
9
|
+
function a(e, n) {
|
|
10
|
+
for (var t in n) Object.defineProperty(e, t, {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: n[t]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
a(i, {
|
|
16
|
+
DEFAULT_SEGMENT_KEY: function() {
|
|
17
|
+
return E;
|
|
18
|
+
},
|
|
19
|
+
PAGE_SEGMENT_KEY: function() {
|
|
20
|
+
return r;
|
|
21
|
+
},
|
|
22
|
+
addSearchParamsIfPageSegment: function() {
|
|
23
|
+
return s;
|
|
24
|
+
},
|
|
25
|
+
isGroupSegment: function() {
|
|
26
|
+
return c;
|
|
27
|
+
},
|
|
28
|
+
isParallelRouteSegment: function() {
|
|
29
|
+
return f;
|
|
12
30
|
}
|
|
13
31
|
});
|
|
14
|
-
function
|
|
15
|
-
return e
|
|
32
|
+
function c(e) {
|
|
33
|
+
return e[0] === "(" && e.endsWith(")");
|
|
34
|
+
}
|
|
35
|
+
function f(e) {
|
|
36
|
+
return e.startsWith("@") && e !== "@children";
|
|
37
|
+
}
|
|
38
|
+
function s(e, n) {
|
|
39
|
+
if (e.includes(r)) {
|
|
40
|
+
const o = JSON.stringify(n);
|
|
41
|
+
return o !== "{}" ? r + "?" + o : r;
|
|
42
|
+
}
|
|
43
|
+
return e;
|
|
16
44
|
}
|
|
17
|
-
|
|
45
|
+
const r = "__PAGE__", E = "__DEFAULT__";
|
|
46
|
+
}(u), u);
|
|
18
47
|
}
|
|
19
48
|
export {
|
|
20
|
-
|
|
49
|
+
g as __require
|
|
21
50
|
};
|
package/dist/index255.mjs
CHANGED
|
@@ -1,50 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
var _;
|
|
4
|
-
function g() {
|
|
5
|
-
return _ ? u : (_ = 1, function(i) {
|
|
6
|
-
Object.defineProperty(i, "__esModule", {
|
|
7
|
-
value: !0
|
|
8
|
-
});
|
|
9
|
-
function a(e, n) {
|
|
10
|
-
for (var t in n) Object.defineProperty(e, t, {
|
|
11
|
-
enumerable: !0,
|
|
12
|
-
get: n[t]
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
a(i, {
|
|
16
|
-
DEFAULT_SEGMENT_KEY: function() {
|
|
17
|
-
return E;
|
|
18
|
-
},
|
|
19
|
-
PAGE_SEGMENT_KEY: function() {
|
|
20
|
-
return r;
|
|
21
|
-
},
|
|
22
|
-
addSearchParamsIfPageSegment: function() {
|
|
23
|
-
return s;
|
|
24
|
-
},
|
|
25
|
-
isGroupSegment: function() {
|
|
26
|
-
return c;
|
|
27
|
-
},
|
|
28
|
-
isParallelRouteSegment: function() {
|
|
29
|
-
return f;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
function c(e) {
|
|
33
|
-
return e[0] === "(" && e.endsWith(")");
|
|
34
|
-
}
|
|
35
|
-
function f(e) {
|
|
36
|
-
return e.startsWith("@") && e !== "@children";
|
|
37
|
-
}
|
|
38
|
-
function s(e, n) {
|
|
39
|
-
if (e.includes(r)) {
|
|
40
|
-
const o = JSON.stringify(n);
|
|
41
|
-
return o !== "{}" ? r + "?" + o : r;
|
|
42
|
-
}
|
|
43
|
-
return e;
|
|
44
|
-
}
|
|
45
|
-
const r = "__PAGE__", E = "__DEFAULT__";
|
|
46
|
-
}(u), u);
|
|
47
|
-
}
|
|
2
|
+
var e = { exports: {} };
|
|
48
3
|
export {
|
|
49
|
-
|
|
4
|
+
e as __module
|
|
50
5
|
};
|
package/dist/index256.mjs
CHANGED
package/dist/index257.mjs
CHANGED
package/dist/index258.mjs
CHANGED
package/dist/index259.mjs
CHANGED
|
@@ -1,5 +1,94 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
2
|
+
import { __module as c } from "./index271.mjs";
|
|
3
|
+
var l;
|
|
4
|
+
function T() {
|
|
5
|
+
return l ? c.exports : (l = 1, (() => {
|
|
6
|
+
typeof __nccwpck_require__ < "u" && (__nccwpck_require__.ab = __dirname + "/");
|
|
7
|
+
var m = {};
|
|
8
|
+
(() => {
|
|
9
|
+
var v = m;
|
|
10
|
+
/*!
|
|
11
|
+
* cookie
|
|
12
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
13
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
14
|
+
* MIT Licensed
|
|
15
|
+
*/
|
|
16
|
+
v.parse = S, v.serialize = x;
|
|
17
|
+
var w = decodeURIComponent, h = encodeURIComponent, y = /; */, f = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
18
|
+
function S(i, n) {
|
|
19
|
+
if (typeof i != "string")
|
|
20
|
+
throw new TypeError("argument str must be a string");
|
|
21
|
+
for (var a = {}, e = n || {}, o = i.split(y), s = e.decode || w, r = 0; r < o.length; r++) {
|
|
22
|
+
var t = o[r], p = t.indexOf("=");
|
|
23
|
+
if (!(p < 0)) {
|
|
24
|
+
var d = t.substr(0, p).trim(), u = t.substr(++p, t.length).trim();
|
|
25
|
+
u[0] == '"' && (u = u.slice(1, -1)), a[d] == null && (a[d] = _(u, s));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return a;
|
|
29
|
+
}
|
|
30
|
+
function x(i, n, a) {
|
|
31
|
+
var e = a || {}, o = e.encode || h;
|
|
32
|
+
if (typeof o != "function")
|
|
33
|
+
throw new TypeError("option encode is invalid");
|
|
34
|
+
if (!f.test(i))
|
|
35
|
+
throw new TypeError("argument name is invalid");
|
|
36
|
+
var s = o(n);
|
|
37
|
+
if (s && !f.test(s))
|
|
38
|
+
throw new TypeError("argument val is invalid");
|
|
39
|
+
var r = i + "=" + s;
|
|
40
|
+
if (e.maxAge != null) {
|
|
41
|
+
var t = e.maxAge - 0;
|
|
42
|
+
if (isNaN(t) || !isFinite(t))
|
|
43
|
+
throw new TypeError("option maxAge is invalid");
|
|
44
|
+
r += "; Max-Age=" + Math.floor(t);
|
|
45
|
+
}
|
|
46
|
+
if (e.domain) {
|
|
47
|
+
if (!f.test(e.domain))
|
|
48
|
+
throw new TypeError("option domain is invalid");
|
|
49
|
+
r += "; Domain=" + e.domain;
|
|
50
|
+
}
|
|
51
|
+
if (e.path) {
|
|
52
|
+
if (!f.test(e.path))
|
|
53
|
+
throw new TypeError("option path is invalid");
|
|
54
|
+
r += "; Path=" + e.path;
|
|
55
|
+
}
|
|
56
|
+
if (e.expires) {
|
|
57
|
+
if (typeof e.expires.toUTCString != "function")
|
|
58
|
+
throw new TypeError("option expires is invalid");
|
|
59
|
+
r += "; Expires=" + e.expires.toUTCString();
|
|
60
|
+
}
|
|
61
|
+
if (e.httpOnly && (r += "; HttpOnly"), e.secure && (r += "; Secure"), e.sameSite) {
|
|
62
|
+
var p = typeof e.sameSite == "string" ? e.sameSite.toLowerCase() : e.sameSite;
|
|
63
|
+
switch (p) {
|
|
64
|
+
case !0:
|
|
65
|
+
r += "; SameSite=Strict";
|
|
66
|
+
break;
|
|
67
|
+
case "lax":
|
|
68
|
+
r += "; SameSite=Lax";
|
|
69
|
+
break;
|
|
70
|
+
case "strict":
|
|
71
|
+
r += "; SameSite=Strict";
|
|
72
|
+
break;
|
|
73
|
+
case "none":
|
|
74
|
+
r += "; SameSite=None";
|
|
75
|
+
break;
|
|
76
|
+
default:
|
|
77
|
+
throw new TypeError("option sameSite is invalid");
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return r;
|
|
81
|
+
}
|
|
82
|
+
function _(i, n) {
|
|
83
|
+
try {
|
|
84
|
+
return n(i);
|
|
85
|
+
} catch {
|
|
86
|
+
return i;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
})(), c.exports = m;
|
|
90
|
+
})(), c.exports);
|
|
91
|
+
}
|
|
3
92
|
export {
|
|
4
|
-
|
|
93
|
+
T as __require
|
|
5
94
|
};
|
package/dist/index260.mjs
CHANGED
|
@@ -1,94 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
var l;
|
|
4
|
-
function T() {
|
|
5
|
-
return l ? c.exports : (l = 1, (() => {
|
|
6
|
-
typeof __nccwpck_require__ < "u" && (__nccwpck_require__.ab = __dirname + "/");
|
|
7
|
-
var m = {};
|
|
8
|
-
(() => {
|
|
9
|
-
var v = m;
|
|
10
|
-
/*!
|
|
11
|
-
* cookie
|
|
12
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
13
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
14
|
-
* MIT Licensed
|
|
15
|
-
*/
|
|
16
|
-
v.parse = S, v.serialize = x;
|
|
17
|
-
var w = decodeURIComponent, h = encodeURIComponent, y = /; */, f = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
18
|
-
function S(i, n) {
|
|
19
|
-
if (typeof i != "string")
|
|
20
|
-
throw new TypeError("argument str must be a string");
|
|
21
|
-
for (var a = {}, e = n || {}, o = i.split(y), s = e.decode || w, r = 0; r < o.length; r++) {
|
|
22
|
-
var t = o[r], p = t.indexOf("=");
|
|
23
|
-
if (!(p < 0)) {
|
|
24
|
-
var d = t.substr(0, p).trim(), u = t.substr(++p, t.length).trim();
|
|
25
|
-
u[0] == '"' && (u = u.slice(1, -1)), a[d] == null && (a[d] = _(u, s));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return a;
|
|
29
|
-
}
|
|
30
|
-
function x(i, n, a) {
|
|
31
|
-
var e = a || {}, o = e.encode || h;
|
|
32
|
-
if (typeof o != "function")
|
|
33
|
-
throw new TypeError("option encode is invalid");
|
|
34
|
-
if (!f.test(i))
|
|
35
|
-
throw new TypeError("argument name is invalid");
|
|
36
|
-
var s = o(n);
|
|
37
|
-
if (s && !f.test(s))
|
|
38
|
-
throw new TypeError("argument val is invalid");
|
|
39
|
-
var r = i + "=" + s;
|
|
40
|
-
if (e.maxAge != null) {
|
|
41
|
-
var t = e.maxAge - 0;
|
|
42
|
-
if (isNaN(t) || !isFinite(t))
|
|
43
|
-
throw new TypeError("option maxAge is invalid");
|
|
44
|
-
r += "; Max-Age=" + Math.floor(t);
|
|
45
|
-
}
|
|
46
|
-
if (e.domain) {
|
|
47
|
-
if (!f.test(e.domain))
|
|
48
|
-
throw new TypeError("option domain is invalid");
|
|
49
|
-
r += "; Domain=" + e.domain;
|
|
50
|
-
}
|
|
51
|
-
if (e.path) {
|
|
52
|
-
if (!f.test(e.path))
|
|
53
|
-
throw new TypeError("option path is invalid");
|
|
54
|
-
r += "; Path=" + e.path;
|
|
55
|
-
}
|
|
56
|
-
if (e.expires) {
|
|
57
|
-
if (typeof e.expires.toUTCString != "function")
|
|
58
|
-
throw new TypeError("option expires is invalid");
|
|
59
|
-
r += "; Expires=" + e.expires.toUTCString();
|
|
60
|
-
}
|
|
61
|
-
if (e.httpOnly && (r += "; HttpOnly"), e.secure && (r += "; Secure"), e.sameSite) {
|
|
62
|
-
var p = typeof e.sameSite == "string" ? e.sameSite.toLowerCase() : e.sameSite;
|
|
63
|
-
switch (p) {
|
|
64
|
-
case !0:
|
|
65
|
-
r += "; SameSite=Strict";
|
|
66
|
-
break;
|
|
67
|
-
case "lax":
|
|
68
|
-
r += "; SameSite=Lax";
|
|
69
|
-
break;
|
|
70
|
-
case "strict":
|
|
71
|
-
r += "; SameSite=Strict";
|
|
72
|
-
break;
|
|
73
|
-
case "none":
|
|
74
|
-
r += "; SameSite=None";
|
|
75
|
-
break;
|
|
76
|
-
default:
|
|
77
|
-
throw new TypeError("option sameSite is invalid");
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return r;
|
|
81
|
-
}
|
|
82
|
-
function _(i, n) {
|
|
83
|
-
try {
|
|
84
|
-
return n(i);
|
|
85
|
-
} catch {
|
|
86
|
-
return i;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
})(), c.exports = m;
|
|
90
|
-
})(), c.exports);
|
|
91
|
-
}
|
|
2
|
+
var e = {};
|
|
92
3
|
export {
|
|
93
|
-
|
|
4
|
+
e as __exports
|
|
94
5
|
};
|
package/dist/index268.mjs
CHANGED
package/dist/index41.mjs
CHANGED
|
@@ -12,29 +12,29 @@ function M({
|
|
|
12
12
|
limit: v,
|
|
13
13
|
className: N
|
|
14
14
|
}) {
|
|
15
|
-
const { cart: l, addItem: b } = A(), { data:
|
|
15
|
+
const { cart: l, addItem: b } = A(), { data: s, isLoading: y, error: p } = j(l == null ? void 0 : l.id, v), [S, c] = r(/* @__PURE__ */ new Set()), [P, o] = r(/* @__PURE__ */ new Set()), [C, m] = r(/* @__PURE__ */ new Set()), [h, f] = r(/* @__PURE__ */ new Set());
|
|
16
16
|
if (L(() => {
|
|
17
|
-
f(/* @__PURE__ */ new Set()),
|
|
18
|
-
}, [
|
|
17
|
+
f(/* @__PURE__ */ new Set()), o(/* @__PURE__ */ new Set()), m(/* @__PURE__ */ new Set());
|
|
18
|
+
}, [s]), !l)
|
|
19
19
|
return null;
|
|
20
|
-
if (
|
|
20
|
+
if (y)
|
|
21
21
|
return /* @__PURE__ */ t("div", { className: "py-6", children: /* @__PURE__ */ t("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ t(x, { className: "h-6 w-6 animate-spin text-accent-500" }) }) });
|
|
22
|
-
const u =
|
|
22
|
+
const u = s == null ? void 0 : s.filter(
|
|
23
23
|
(e) => !h.has(e.id)
|
|
24
24
|
);
|
|
25
|
-
if (
|
|
25
|
+
if (p || !u || u.length === 0)
|
|
26
26
|
return null;
|
|
27
27
|
const I = async (e, a) => {
|
|
28
|
-
c((
|
|
28
|
+
c((i) => new Set(i).add(e.id));
|
|
29
29
|
try {
|
|
30
|
-
await b(e.slug, e.name, a.price, a.sku, 1),
|
|
31
|
-
|
|
30
|
+
await b(e.slug, e.name, a.price, a.sku, 1), o((i) => new Set(i).add(e.id)), setTimeout(() => {
|
|
31
|
+
m((i) => new Set(i).add(e.id));
|
|
32
32
|
}, 500), setTimeout(() => {
|
|
33
|
-
f((
|
|
33
|
+
f((i) => new Set(i).add(e.id));
|
|
34
34
|
}, 1e3);
|
|
35
35
|
} finally {
|
|
36
|
-
c((
|
|
37
|
-
const d = new Set(
|
|
36
|
+
c((i) => {
|
|
37
|
+
const d = new Set(i);
|
|
38
38
|
return d.delete(e.id), d;
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -43,40 +43,40 @@ function M({
|
|
|
43
43
|
/* @__PURE__ */ t("div", { className: "mb-2 px-4", children: /* @__PURE__ */ t("h3", { className: "text-lg font-semibold text-gray-900", children: "Customers also bought" }) }),
|
|
44
44
|
/* @__PURE__ */ t("div", { className: "overflow-x-auto", children: /* @__PURE__ */ n("div", { className: "flex gap-4 pb-2 transition-all duration-500", children: [
|
|
45
45
|
/* @__PURE__ */ t("div", { className: "flex-shrink-0 w-1" }),
|
|
46
|
-
|
|
46
|
+
s == null ? void 0 : s.map((e) => {
|
|
47
47
|
const a = e.variants[0];
|
|
48
48
|
if (!a) return null;
|
|
49
|
-
const
|
|
49
|
+
const i = S.has(e.id), d = P.has(e.id), k = C.has(e.id);
|
|
50
50
|
return h.has(e.id) ? null : /* @__PURE__ */ n(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
53
|
className: w(
|
|
54
|
-
"flex flex-
|
|
54
|
+
"flex flex-row flex-shrink-0 w-64 bg-white border border-gray-300 rounded-lg overflow-hidden hover:border-gray-400 transition-all duration-500",
|
|
55
55
|
d && "opacity-0 blur-sm scale-95 pointer-events-none",
|
|
56
56
|
k && "w-0 mr-[-1rem] overflow-hidden"
|
|
57
57
|
),
|
|
58
58
|
children: [
|
|
59
|
-
/* @__PURE__ */ t("div", { className: "relative
|
|
59
|
+
/* @__PURE__ */ t("div", { className: "relative w-20 h-20 flex-shrink-0 bg-gray-100", children: e.thumbnailUrl ? /* @__PURE__ */ t(
|
|
60
60
|
"img",
|
|
61
61
|
{
|
|
62
62
|
src: e.thumbnailUrl,
|
|
63
63
|
alt: e.name,
|
|
64
64
|
className: "w-full h-full object-cover"
|
|
65
65
|
}
|
|
66
|
-
) : /* @__PURE__ */ t("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ t(R, { className: "h-
|
|
67
|
-
/* @__PURE__ */ n("div", { className: "p-
|
|
68
|
-
/* @__PURE__ */ n("div", {
|
|
69
|
-
/* @__PURE__ */ t("h4", { className: "text-
|
|
70
|
-
/* @__PURE__ */ t("p", { className: "text-
|
|
66
|
+
) : /* @__PURE__ */ t("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ t(R, { className: "h-8 w-8 text-gray-300" }) }) }),
|
|
67
|
+
/* @__PURE__ */ n("div", { className: "p-2 flex flex-col flex-1 justify-between", children: [
|
|
68
|
+
/* @__PURE__ */ n("div", { children: [
|
|
69
|
+
/* @__PURE__ */ t("h4", { className: "text-xs font-medium text-gray-900 line-clamp-2 leading-tight", children: e.name }),
|
|
70
|
+
/* @__PURE__ */ t("p", { className: "text-xs font-semibold text-accent-600 mt-0.5", children: F(a.price) })
|
|
71
71
|
] }),
|
|
72
72
|
/* @__PURE__ */ t(
|
|
73
73
|
H,
|
|
74
74
|
{
|
|
75
75
|
size: "sm",
|
|
76
76
|
onClick: () => I(e, a),
|
|
77
|
-
disabled:
|
|
78
|
-
className: "w-full bg-accent-500 hover:bg-accent-600 text-white text-xs h-
|
|
79
|
-
children:
|
|
77
|
+
disabled: i,
|
|
78
|
+
className: "w-full bg-accent-500 hover:bg-accent-600 text-white text-xs h-6 mt-1",
|
|
79
|
+
children: i ? /* @__PURE__ */ n(g, { children: [
|
|
80
80
|
/* @__PURE__ */ t(x, { className: "h-3 w-3 animate-spin" }),
|
|
81
81
|
"Adding..."
|
|
82
82
|
] }) : /* @__PURE__ */ n(g, { children: [
|
package/dist/index51.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import a from "./
|
|
3
|
-
import p from "./
|
|
4
|
-
import m from "./
|
|
5
|
-
import i from "./
|
|
6
|
-
import f from "./
|
|
7
|
-
import l from "./
|
|
8
|
-
import c from "./
|
|
9
|
-
import d from "./
|
|
10
|
-
import u from "./
|
|
11
|
-
import { VERSION as x } from "./
|
|
12
|
-
import C from "./
|
|
13
|
-
import A from "./
|
|
14
|
-
import E from "./
|
|
15
|
-
import O from "./
|
|
16
|
-
import S from "./
|
|
17
|
-
import H from "./
|
|
18
|
-
import T from "./
|
|
2
|
+
import a from "./index80.mjs";
|
|
3
|
+
import p from "./index81.mjs";
|
|
4
|
+
import m from "./index82.mjs";
|
|
5
|
+
import i from "./index83.mjs";
|
|
6
|
+
import f from "./index84.mjs";
|
|
7
|
+
import l from "./index85.mjs";
|
|
8
|
+
import c from "./index86.mjs";
|
|
9
|
+
import d from "./index87.mjs";
|
|
10
|
+
import u from "./index88.mjs";
|
|
11
|
+
import { VERSION as x } from "./index89.mjs";
|
|
12
|
+
import C from "./index90.mjs";
|
|
13
|
+
import A from "./index91.mjs";
|
|
14
|
+
import E from "./index92.mjs";
|
|
15
|
+
import O from "./index93.mjs";
|
|
16
|
+
import S from "./index94.mjs";
|
|
17
|
+
import H from "./index95.mjs";
|
|
18
|
+
import T from "./index96.mjs";
|
|
19
19
|
function n(o) {
|
|
20
20
|
const t = new m(o), e = p(m.prototype.request, t);
|
|
21
21
|
return a.extend(e, m.prototype, t, { allOwnKeys: !0 }), a.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(s) {
|
package/dist/index52.mjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
var p = Object.defineProperty;
|
|
3
3
|
var k = (r, e, i) => e in r ? p(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i;
|
|
4
4
|
var h = (r, e, i) => k(r, typeof e != "symbol" ? e + "" : e, i);
|
|
5
|
-
import { serialize as j } from "./
|
|
6
|
-
import { mergePath as U, replaceUrlParam as P, buildSearchParams as S, removeIndexString as w, replaceUrlProtocol as x, deepMerge as C } from "./
|
|
5
|
+
import { serialize as j } from "./index97.mjs";
|
|
6
|
+
import { mergePath as U, replaceUrlParam as P, buildSearchParams as S, removeIndexString as w, replaceUrlProtocol as x, deepMerge as C } from "./index98.mjs";
|
|
7
7
|
var v = (r, e) => new Proxy(() => {
|
|
8
8
|
}, {
|
|
9
9
|
get(t, s) {
|
package/dist/index70.mjs
CHANGED
package/dist/index74.mjs
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __exports as ge } from "./
|
|
2
|
+
import { __exports as ge } from "./index99.mjs";
|
|
3
3
|
import "./index73.mjs";
|
|
4
|
-
import { __require as $e } from "./
|
|
5
|
-
import { __require as Ze } from "./
|
|
6
|
-
import { __require as et } from "./
|
|
7
|
-
import { __require as tt } from "./
|
|
4
|
+
import { __require as $e } from "./index100.mjs";
|
|
5
|
+
import { __require as Ze } from "./index101.mjs";
|
|
6
|
+
import { __require as et } from "./index102.mjs";
|
|
7
|
+
import { __require as tt } from "./index103.mjs";
|
|
8
8
|
import { __require as rt } from "./index76.mjs";
|
|
9
|
-
import { __require as at } from "./
|
|
10
|
-
import { __require as st } from "./
|
|
11
|
-
import { __require as it } from "./
|
|
12
|
-
import { __require as ot } from "./
|
|
13
|
-
import { __require as nt } from "./
|
|
14
|
-
import { __require as lt } from "./
|
|
15
|
-
import { __require as ct } from "./
|
|
16
|
-
import { __require as ht } from "./
|
|
17
|
-
import { __require as ut } from "./
|
|
18
|
-
import { __require as dt } from "./
|
|
19
|
-
import { __require as ft } from "./
|
|
20
|
-
import { __require as pt } from "./
|
|
21
|
-
import { __require as mt } from "./
|
|
22
|
-
import { __require as _t } from "./
|
|
23
|
-
import { __require as gt } from "./
|
|
24
|
-
import { __require as vt } from "./
|
|
25
|
-
import { __require as wt } from "./
|
|
26
|
-
import { __require as Pt } from "./
|
|
27
|
-
import { __require as Rt } from "./
|
|
28
|
-
import { __require as St } from "./
|
|
29
|
-
import { __require as Et } from "./
|
|
30
|
-
import { __require as yt } from "./
|
|
31
|
-
import { __require as Nt } from "./
|
|
32
|
-
import { __require as Lt } from "./
|
|
33
|
-
import { __require as Tt } from "./
|
|
34
|
-
import { __require as At } from "./
|
|
35
|
-
import { __require as qt } from "./
|
|
36
|
-
import { __require as Ct } from "./
|
|
37
|
-
import { __require as It } from "./
|
|
38
|
-
import { __require as Dt } from "./
|
|
9
|
+
import { __require as at } from "./index104.mjs";
|
|
10
|
+
import { __require as st } from "./index105.mjs";
|
|
11
|
+
import { __require as it } from "./index106.mjs";
|
|
12
|
+
import { __require as ot } from "./index107.mjs";
|
|
13
|
+
import { __require as nt } from "./index108.mjs";
|
|
14
|
+
import { __require as lt } from "./index109.mjs";
|
|
15
|
+
import { __require as ct } from "./index110.mjs";
|
|
16
|
+
import { __require as ht } from "./index111.mjs";
|
|
17
|
+
import { __require as ut } from "./index112.mjs";
|
|
18
|
+
import { __require as dt } from "./index113.mjs";
|
|
19
|
+
import { __require as ft } from "./index114.mjs";
|
|
20
|
+
import { __require as pt } from "./index115.mjs";
|
|
21
|
+
import { __require as mt } from "./index116.mjs";
|
|
22
|
+
import { __require as _t } from "./index117.mjs";
|
|
23
|
+
import { __require as gt } from "./index118.mjs";
|
|
24
|
+
import { __require as vt } from "./index119.mjs";
|
|
25
|
+
import { __require as wt } from "./index120.mjs";
|
|
26
|
+
import { __require as Pt } from "./index121.mjs";
|
|
27
|
+
import { __require as Rt } from "./index122.mjs";
|
|
28
|
+
import { __require as St } from "./index123.mjs";
|
|
29
|
+
import { __require as Et } from "./index124.mjs";
|
|
30
|
+
import { __require as yt } from "./index125.mjs";
|
|
31
|
+
import { __require as Nt } from "./index126.mjs";
|
|
32
|
+
import { __require as Lt } from "./index127.mjs";
|
|
33
|
+
import { __require as Tt } from "./index128.mjs";
|
|
34
|
+
import { __require as At } from "./index129.mjs";
|
|
35
|
+
import { __require as qt } from "./index130.mjs";
|
|
36
|
+
import { __require as Ct } from "./index131.mjs";
|
|
37
|
+
import { __require as It } from "./index132.mjs";
|
|
38
|
+
import { __require as Dt } from "./index133.mjs";
|
|
39
39
|
import { __exports as bt } from "./index78.mjs";
|
|
40
40
|
var Ue;
|
|
41
41
|
function wr() {
|
package/dist/index75.mjs
CHANGED
package/dist/index76.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __exports as o } from "./
|
|
3
|
-
import { __require as p } from "./
|
|
2
|
+
import { __exports as o } from "./index135.mjs";
|
|
3
|
+
import { __require as p } from "./index136.mjs";
|
|
4
4
|
var u;
|
|
5
5
|
function m() {
|
|
6
6
|
return u ? o : (u = 1, function(i) {
|
package/dist/index77.mjs
CHANGED
package/dist/index79.mjs
CHANGED