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