@instockng/storefront-ui 1.0.48 → 1.0.50

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 (121) hide show
  1. package/dist/index11.mjs +41 -45
  2. package/dist/index13.mjs +1 -1
  3. package/dist/index138.mjs +1 -1
  4. package/dist/index139.mjs +1 -1
  5. package/dist/index140.mjs +5 -5
  6. package/dist/index142.mjs +2 -2
  7. package/dist/index144.mjs +2 -2
  8. package/dist/index146.mjs +1 -1
  9. package/dist/index148.mjs +4 -4
  10. package/dist/index149.mjs +3 -3
  11. package/dist/index154.mjs +1 -1
  12. package/dist/index155.mjs +1 -1
  13. package/dist/index157.mjs +1 -1
  14. package/dist/index158.mjs +1 -1
  15. package/dist/index160.mjs +1 -1
  16. package/dist/index161.mjs +1 -1
  17. package/dist/index163.mjs +2 -2
  18. package/dist/index164.mjs +1 -1
  19. package/dist/index169.mjs +2 -2
  20. package/dist/index173.mjs +2 -2
  21. package/dist/index174.mjs +5 -5
  22. package/dist/index177.mjs +1 -1
  23. package/dist/index180.mjs +1 -1
  24. package/dist/index194.mjs +1 -1
  25. package/dist/index196.mjs +1 -1
  26. package/dist/index209.mjs +1 -1
  27. package/dist/index210.mjs +3 -3
  28. package/dist/index213.mjs +3 -3
  29. package/dist/index215.mjs +1 -1
  30. package/dist/index217.mjs +3 -3
  31. package/dist/index218.mjs +5 -5
  32. package/dist/index219.mjs +3 -3
  33. package/dist/index221.mjs +2 -2
  34. package/dist/index222.mjs +2 -2
  35. package/dist/index224.mjs +2 -2
  36. package/dist/index225.mjs +108 -2
  37. package/dist/index226.mjs +2 -2
  38. package/dist/index227.mjs +2 -108
  39. package/dist/index228.mjs +2 -2
  40. package/dist/index230.mjs +2 -2
  41. package/dist/index232.mjs +2 -2
  42. package/dist/index233.mjs +243 -36
  43. package/dist/index235.mjs +33 -2
  44. package/dist/index236.mjs +65 -2
  45. package/dist/index237.mjs +24 -243
  46. package/dist/index239.mjs +32 -28
  47. package/dist/index240.mjs +2 -65
  48. package/dist/index241.mjs +2 -25
  49. package/dist/index246.mjs +2 -2
  50. package/dist/index247.mjs +2 -2
  51. package/dist/index252.mjs +3 -2
  52. package/dist/index253.mjs +2 -2
  53. package/dist/index254.mjs +2 -18
  54. package/dist/index255.mjs +2 -47
  55. package/dist/index256.mjs +17 -2
  56. package/dist/index257.mjs +13 -2
  57. package/dist/index258.mjs +6 -2
  58. package/dist/index259.mjs +30 -2
  59. package/dist/index260.mjs +2 -91
  60. package/dist/index261.mjs +18 -3
  61. package/dist/index262.mjs +47 -2
  62. package/dist/index263.mjs +2 -2
  63. package/dist/index264.mjs +2 -17
  64. package/dist/index265.mjs +2 -13
  65. package/dist/index266.mjs +2 -6
  66. package/dist/index267.mjs +91 -30
  67. package/dist/index269.mjs +2 -2
  68. package/dist/index271.mjs +2 -2
  69. package/dist/index33.mjs +1 -1
  70. package/dist/index34.mjs +1 -1
  71. package/dist/index35.mjs +1 -1
  72. package/dist/index36.mjs +1 -1
  73. package/dist/index37.mjs +1 -1
  74. package/dist/index38.mjs +1 -1
  75. package/dist/index40.mjs +1 -1
  76. package/dist/index43.mjs +3 -3
  77. package/dist/index46.mjs +1 -1
  78. package/dist/index51.mjs +17 -17
  79. package/dist/index52.mjs +2 -2
  80. package/dist/index53.mjs +1 -1
  81. package/dist/index54.mjs +1 -1
  82. package/dist/index55.mjs +1 -1
  83. package/dist/index56.mjs +1 -1
  84. package/dist/index57.mjs +1 -1
  85. package/dist/index58.mjs +1 -1
  86. package/dist/index59.mjs +1 -1
  87. package/dist/index60.mjs +1 -1
  88. package/dist/index61.mjs +1 -1
  89. package/dist/index62.mjs +1 -1
  90. package/dist/index63.mjs +1 -1
  91. package/dist/index65.mjs +2 -153
  92. package/dist/index66.mjs +23 -2
  93. package/dist/index67.mjs +149 -19
  94. package/dist/index68.mjs +4 -74
  95. package/dist/index69.mjs +74 -14
  96. package/dist/index70.mjs +14 -62
  97. package/dist/index71.mjs +62 -4
  98. package/dist/index77.mjs +1 -1
  99. package/dist/index79.mjs +231 -30
  100. package/dist/index80.mjs +5 -42
  101. package/dist/index81.mjs +127 -228
  102. package/dist/index82.mjs +66 -4
  103. package/dist/index83.mjs +77 -124
  104. package/dist/index84.mjs +26 -65
  105. package/dist/index85.mjs +6 -84
  106. package/dist/index86.mjs +72 -26
  107. package/dist/index87.mjs +3 -8
  108. package/dist/index88.mjs +2 -75
  109. package/dist/index89.mjs +82 -3
  110. package/dist/index90.mjs +54 -2
  111. package/dist/index91.mjs +5 -82
  112. package/dist/index92.mjs +4 -53
  113. package/dist/index93.mjs +178 -5
  114. package/dist/index94.mjs +53 -5
  115. package/dist/index95.mjs +68 -178
  116. package/dist/index96.mjs +2 -53
  117. package/dist/index97.mjs +34 -69
  118. package/dist/index98.mjs +43 -2
  119. package/package.json +1 -1
  120. package/src/components/Checkout.tsx +1 -1
  121. package/src/components/ShoppingCart.tsx +3 -3
package/dist/index11.mjs CHANGED
@@ -1,41 +1,40 @@
1
1
  'use client';
2
2
  import { jsxs as a, Fragment as N, jsx as e } from "react/jsx-runtime";
3
- import { useState as F, useEffect as Y } from "react";
4
- import { useCart as q } from "./index3.mjs";
5
- import { CartItem as H } from "./index10.mjs";
6
- import { DiscountCodeInput as T } from "./index12.mjs";
7
- import { Checkout as X } from "./index13.mjs";
8
- import { RecommendedProducts as Z } from "./index41.mjs";
3
+ import { useState as D, useEffect as F } from "react";
4
+ import { useCart as Y } from "./index3.mjs";
5
+ import { CartItem as q } from "./index10.mjs";
6
+ import { Checkout as H } from "./index13.mjs";
7
+ import { RecommendedProducts as T } from "./index41.mjs";
9
8
  import { Button as b } from "./index14.mjs";
10
- import { X as A, Loader2 as G, Package as h } from "lucide-react";
9
+ import { X, Loader2 as Z, Package as h } from "lucide-react";
11
10
  import { cn as n, formatCurrency as c } from "./index20.mjs";
12
- import { useHideBodyOverflow as J } from "./index42.mjs";
13
- function ae({
11
+ import { useHideBodyOverflow as A } from "./index42.mjs";
12
+ function ee({
14
13
  isOpen: i,
15
14
  onClose: s,
16
15
  onCheckout: d,
17
16
  onContinueShopping: o,
18
17
  className: v,
19
- showDiscountCode: w = !0,
20
- showContinueShopping: k = !0,
21
- checkoutButtonText: j = "Complete Purchase",
22
- continueShoppingText: C = "Continue Shopping",
23
- checkoutButtonClassName: E,
24
- continueShoppingButtonClassName: I,
18
+ showDiscountCode: G = !0,
19
+ showContinueShopping: w = !0,
20
+ checkoutButtonText: k = "Complete Purchase",
21
+ continueShoppingText: j = "Continue Shopping",
22
+ checkoutButtonClassName: C,
23
+ continueShoppingButtonClassName: E,
25
24
  disableCheckout: L = !1,
26
25
  emptyMessage: P = "Your cart is empty"
27
26
  }) {
28
27
  var p, x, g;
29
- const { cart: t, isLoading: l, error: m, trackCheckoutInitiated: z } = q(), [R, f] = F(!1);
30
- J(i), Y(() => {
28
+ const { cart: t, isLoading: l, error: m, trackCheckoutInitiated: z } = Y(), [I, f] = D(!1);
29
+ A(i), F(() => {
31
30
  const r = (y) => {
32
31
  y.key === "Escape" && i && s();
33
32
  };
34
33
  return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
35
34
  }, [i, s]);
36
- const S = ((p = t == null ? void 0 : t.pricing) == null ? void 0 : p.subtotal) || 0, u = ((x = t == null ? void 0 : t.pricing.discount) == null ? void 0 : x.amount) || 0, B = () => {
35
+ const R = ((p = t == null ? void 0 : t.pricing) == null ? void 0 : p.subtotal) || 0, u = ((x = t == null ? void 0 : t.pricing.discount) == null ? void 0 : x.amount) || 0, S = () => {
37
36
  z(), f(!0), d == null || d();
38
- }, D = () => {
37
+ }, B = () => {
39
38
  o == null || o(), s();
40
39
  };
41
40
  return /* @__PURE__ */ a(N, { children: [
@@ -70,12 +69,12 @@ function ae({
70
69
  onClick: s,
71
70
  className: "rounded-full p-2 transition-colors hover:bg-gray-100",
72
71
  "aria-label": "Close cart",
73
- children: /* @__PURE__ */ e(A, { className: "h-6 w-6" })
72
+ children: /* @__PURE__ */ e(X, { className: "h-6 w-6" })
74
73
  }
75
74
  )
76
75
  ] }) }),
77
76
  l && /* @__PURE__ */ e("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ a("div", { className: "text-center", children: [
78
- /* @__PURE__ */ e(G, { className: "mx-auto mb-4 h-12 w-12 animate-spin text-accent-500" }),
77
+ /* @__PURE__ */ e(Z, { className: "mx-auto mb-4 h-12 w-12 animate-spin text-accent-500" }),
79
78
  /* @__PURE__ */ e("p", { className: "text-gray-600", children: "Loading cart..." })
80
79
  ] }) }),
81
80
  m && !l && /* @__PURE__ */ e("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ a("div", { className: "text-center", children: [
@@ -87,25 +86,22 @@ function ae({
87
86
  /* @__PURE__ */ e("p", { className: "text-gray-600", children: P })
88
87
  ] }) }),
89
88
  !l && !m && t && t.items && t.items.length > 0 && /* @__PURE__ */ a(N, { children: [
90
- /* @__PURE__ */ a("div", { className: "flex-1 overflow-y-auto", children: [
91
- /* @__PURE__ */ e("div", { className: "space-y-4 p-4", children: t.items.map((r, y) => /* @__PURE__ */ a("div", { children: [
92
- /* @__PURE__ */ e(
93
- H,
94
- {
95
- item: r
96
- }
97
- ),
98
- /* @__PURE__ */ e("hr", { className: "border-gray-200 mt-2" })
99
- ] }, r.id)) }),
100
- w && /* @__PURE__ */ e("div", { className: "px-4 pb-4", children: /* @__PURE__ */ e(T, {}) })
101
- ] }),
102
- /* @__PURE__ */ e(Z, { limit: 6, className: "border-t border-gray-200" }),
89
+ /* @__PURE__ */ e("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ e("div", { className: "space-y-4 p-4", children: t.items.map((r, y) => /* @__PURE__ */ a("div", { children: [
90
+ /* @__PURE__ */ e(
91
+ q,
92
+ {
93
+ item: r
94
+ }
95
+ ),
96
+ /* @__PURE__ */ e("hr", { className: "border-gray-200 mt-2" })
97
+ ] }, r.id)) }) }),
98
+ /* @__PURE__ */ e(T, { limit: 6, className: "border-t border-gray-200" }),
103
99
  /* @__PURE__ */ a("div", { className: "border-t border-gray-300 bg-white", children: [
104
100
  /* @__PURE__ */ a("div", { className: " text-base", children: [
105
101
  /* @__PURE__ */ a("div", { className: "px-4 py-2 space-y-2", children: [
106
102
  /* @__PURE__ */ a("div", { className: "flex justify-between", children: [
107
103
  /* @__PURE__ */ e("span", { className: "text-gray-600", children: "Subtotal" }),
108
- /* @__PURE__ */ e("span", { className: "font-semibold", children: c(S) })
104
+ /* @__PURE__ */ e("span", { className: "font-semibold", children: c(R) })
109
105
  ] }),
110
106
  u > 0 && /* @__PURE__ */ a("div", { className: "flex justify-between text-green-600", children: [
111
107
  /* @__PURE__ */ e("span", { children: "Discount" }),
@@ -128,24 +124,24 @@ function ae({
128
124
  /* @__PURE__ */ a(
129
125
  b,
130
126
  {
131
- onClick: B,
127
+ onClick: S,
132
128
  disabled: L || t.items.length === 0,
133
- className: n("w-full bg-accent-500 text-white hover:bg-accent-600", E),
129
+ className: n("w-full bg-accent-500 text-white hover:bg-accent-600", C),
134
130
  size: "lg",
135
131
  children: [
136
132
  /* @__PURE__ */ e(h, { className: "h-5 w-5" }),
137
- j
133
+ k
138
134
  ]
139
135
  }
140
136
  ),
141
- k && /* @__PURE__ */ e(
137
+ w && /* @__PURE__ */ e(
142
138
  b,
143
139
  {
144
- onClick: D,
140
+ onClick: B,
145
141
  variant: "outline",
146
- className: n("w-full border-gray-300 text-gray-600 hover:bg-gray-100", I),
142
+ className: n("w-full border-gray-300 text-gray-600 hover:bg-gray-100", E),
147
143
  size: "lg",
148
- children: C
144
+ children: j
149
145
  }
150
146
  )
151
147
  ] })
@@ -155,9 +151,9 @@ function ae({
155
151
  }
156
152
  ),
157
153
  /* @__PURE__ */ e(
158
- X,
154
+ H,
159
155
  {
160
- isOpen: R,
156
+ isOpen: I,
161
157
  onSuccess: () => s(),
162
158
  onClose: () => f(!1),
163
159
  refundPolicy: {
@@ -175,5 +171,5 @@ function ae({
175
171
  ] });
176
172
  }
177
173
  export {
178
- ae as ShoppingCart
174
+ ee as ShoppingCart
179
175
  };
package/dist/index13.mjs CHANGED
@@ -596,7 +596,7 @@ function dt({
596
596
  }
597
597
  )
598
598
  ] }),
599
- /* @__PURE__ */ a("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4", children: [
599
+ /* @__PURE__ */ a("div", { className: "grid grid-cols-2 gap-4", children: [
600
600
  /* @__PURE__ */ e("div", { className: "relative", children: /* @__PURE__ */ a(
601
601
  "label",
602
602
  {
package/dist/index138.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import f from "./index81.mjs";
2
+ import f from "./index79.mjs";
3
3
  import d from "./index209.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/index139.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import n from "./index81.mjs";
2
+ import n from "./index79.mjs";
3
3
  class a {
4
4
  constructor() {
5
5
  this.handlers = [];
package/dist/index140.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import r from "./index210.mjs";
3
- import p from "./index89.mjs";
4
- import l from "./index85.mjs";
5
- import m from "./index87.mjs";
6
- import a from "./index95.mjs";
7
- import o from "./index96.mjs";
3
+ import p from "./index87.mjs";
4
+ import l from "./index83.mjs";
5
+ import m from "./index85.mjs";
6
+ import a from "./index93.mjs";
7
+ import o from "./index94.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/index142.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { VERSION as w } from "./index90.mjs";
3
- import s from "./index92.mjs";
2
+ import { VERSION as w } from "./index88.mjs";
3
+ import s from "./index90.mjs";
4
4
  const l = {};
5
5
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((n, t) => {
6
6
  l[n] = function(o) {
package/dist/index144.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import s from "./index81.mjs";
3
- import f from "./index91.mjs";
2
+ import s from "./index79.mjs";
3
+ import f from "./index89.mjs";
4
4
  import r from "./index145.mjs";
5
5
  function d(o, i) {
6
6
  return f(o, new r.classes.URLSearchParams(), {
package/dist/index146.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import n from "./index81.mjs";
2
+ import n from "./index79.mjs";
3
3
  const a = n.toObjectSet([
4
4
  "age",
5
5
  "authorization",
package/dist/index148.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use client';
2
- import H from "./index81.mjs";
2
+ import H from "./index79.mjs";
3
3
  import D from "./index215.mjs";
4
4
  import L from "./index143.mjs";
5
- import n from "./index92.mjs";
6
- import y from "./index87.mjs";
5
+ import n from "./index90.mjs";
6
+ import y from "./index85.mjs";
7
7
  import O from "./index216.mjs";
8
8
  import U from "./index145.mjs";
9
- import q from "./index95.mjs";
9
+ import q from "./index93.mjs";
10
10
  import { progressEventReducer as A } from "./index217.mjs";
11
11
  import v from "./index218.mjs";
12
12
  const N = typeof XMLHttpRequest < "u", Q = N && function(s) {
package/dist/index149.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import K from "./index145.mjs";
3
- import t from "./index81.mjs";
4
- import b from "./index92.mjs";
3
+ import t from "./index79.mjs";
4
+ import b from "./index90.mjs";
5
5
  import ee from "./index219.mjs";
6
6
  import { trackStream as z } from "./index220.mjs";
7
- import te from "./index95.mjs";
7
+ import te from "./index93.mjs";
8
8
  import { progressEventDecorator as I, progressEventReducer as M, asyncDecorator as j } from "./index217.mjs";
9
9
  import se from "./index218.mjs";
10
10
  import re from "./index215.mjs";
package/dist/index154.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as r } from "./index221.mjs";
2
+ import { __exports as r } from "./index227.mjs";
3
3
  var u;
4
4
  function a() {
5
5
  return u ? r : (u = 1, function(n) {
package/dist/index155.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __module as r } from "./index222.mjs";
2
+ import { __module as r } from "./index228.mjs";
3
3
  var i;
4
4
  function c() {
5
5
  return i ? r.exports : (i = 1, function(f, e) {
package/dist/index157.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index224.mjs";
2
+ import { __exports as e } from "./index229.mjs";
3
3
  var t;
4
4
  function o() {
5
5
  return t ? e : (t = 1, function(r) {
package/dist/index158.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index225.mjs";
2
+ import { __exports as e } from "./index230.mjs";
3
3
  var n;
4
4
  function a() {
5
5
  return n ? e : (n = 1, function(r) {
package/dist/index160.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index229.mjs";
2
+ import { __exports as e } from "./index221.mjs";
3
3
  import "./index73.mjs";
4
4
  import n from "react";
5
5
  import { __exports as o } from "./index78.mjs";
package/dist/index161.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __module as n } from "./index230.mjs";
2
+ import { __module as n } from "./index222.mjs";
3
3
  var a;
4
4
  function m() {
5
5
  return a ? n.exports : (a = 1, function(f, e) {
package/dist/index163.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { __exports as e } from "./index226.mjs";
3
- import { __require as f } from "./index227.mjs";
2
+ import { __exports as e } from "./index224.mjs";
3
+ import { __require as f } from "./index225.mjs";
4
4
  import { __require as _ } from "./index108.mjs";
5
5
  var i;
6
6
  function R() {
package/dist/index164.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index228.mjs";
2
+ import { __exports as e } from "./index226.mjs";
3
3
  var t;
4
4
  function u() {
5
5
  return t ? e : (t = 1, function(r) {
package/dist/index169.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { __exports as u } from "./index232.mjs";
3
- import { __require as d } from "./index233.mjs";
2
+ import { __exports as u } from "./index238.mjs";
3
+ import { __require as d } from "./index239.mjs";
4
4
  var a;
5
5
  function h() {
6
6
  return a ? u : (a = 1, function(c) {
package/dist/index173.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { __exports as n } from "./index236.mjs";
3
- import { __require as d } from "./index237.mjs";
2
+ import { __exports as n } from "./index232.mjs";
3
+ import { __require as d } from "./index233.mjs";
4
4
  var o;
5
5
  function p() {
6
6
  return o ? n : (o = 1, function(i) {
package/dist/index174.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { __exports as A } from "./index238.mjs";
3
- import { __require as T } from "./index237.mjs";
2
+ import { __exports as A } from "./index234.mjs";
3
+ import { __require as T } from "./index233.mjs";
4
4
  import { __require as L } from "./index177.mjs";
5
- import { __require as N } from "./index239.mjs";
5
+ import { __require as N } from "./index235.mjs";
6
6
  import { __require as U } from "./index169.mjs";
7
- import { __require as j } from "./index240.mjs";
8
- import { __require as v } from "./index241.mjs";
7
+ import { __require as j } from "./index236.mjs";
8
+ import { __require as v } from "./index237.mjs";
9
9
  var S;
10
10
  function W() {
11
11
  return S ? A : (S = 1, function(R) {
package/dist/index177.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as r } from "./index234.mjs";
2
+ import { __exports as r } from "./index240.mjs";
3
3
  var n;
4
4
  function i() {
5
5
  return n ? r : (n = 1, function(t) {
package/dist/index180.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as r } from "./index235.mjs";
2
+ import { __exports as r } from "./index241.mjs";
3
3
  var u;
4
4
  function D() {
5
5
  return u ? r : (u = 1, function(t) {
package/dist/index194.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as t } from "./index246.mjs";
2
+ import { __exports as t } from "./index247.mjs";
3
3
  import { __require as a } from "./index190.mjs";
4
4
  var n;
5
5
  function h() {
package/dist/index196.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as r } from "./index247.mjs";
2
+ import { __exports as r } from "./index246.mjs";
3
3
  import { __require as s } from "./index115.mjs";
4
4
  var a;
5
5
  function _() {
package/dist/index209.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import p from "./index91.mjs";
2
+ import p from "./index89.mjs";
3
3
  function i(n) {
4
4
  const t = {
5
5
  "!": "%21",
package/dist/index210.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import i from "./index81.mjs";
3
- import m from "./index85.mjs";
4
- import s from "./index95.mjs";
2
+ import i from "./index79.mjs";
3
+ import m from "./index83.mjs";
4
+ import s from "./index93.mjs";
5
5
  function h(f, t) {
6
6
  const o = this || m, r = t || o, n = s.from(r.headers);
7
7
  let a = r.data;
package/dist/index213.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import o from "./index261.mjs";
3
- import r from "./index262.mjs";
4
- import t from "./index263.mjs";
2
+ import o from "./index252.mjs";
3
+ import r from "./index253.mjs";
4
+ import t from "./index254.mjs";
5
5
  const l = {
6
6
  isBrowser: !0,
7
7
  classes: {
package/dist/index215.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import a from "./index92.mjs";
2
+ import a from "./index90.mjs";
3
3
  function E(i, f, t) {
4
4
  const u = t.config.validateStatus;
5
5
  !t.status || !u || u(t.status) ? i(t) : f(new a(
package/dist/index217.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import i from "./index264.mjs";
3
- import m from "./index265.mjs";
4
- import f from "./index81.mjs";
2
+ import i from "./index256.mjs";
3
+ import m from "./index257.mjs";
4
+ import f from "./index79.mjs";
5
5
  const h = (t, o, a = 3) => {
6
6
  let r = 0;
7
7
  const c = i(50, 250);
package/dist/index218.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
  import n from "./index145.mjs";
3
- import m from "./index81.mjs";
4
- import c from "./index266.mjs";
5
- import h from "./index267.mjs";
3
+ import m from "./index79.mjs";
4
+ import c from "./index258.mjs";
5
+ import h from "./index259.mjs";
6
6
  import w from "./index141.mjs";
7
- import b from "./index84.mjs";
8
- import C from "./index95.mjs";
7
+ import b from "./index82.mjs";
8
+ import C from "./index93.mjs";
9
9
  import g from "./index138.mjs";
10
10
  const E = (a) => {
11
11
  const e = b({}, a);
package/dist/index219.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import a from "./index87.mjs";
3
- import s from "./index92.mjs";
4
- import m from "./index81.mjs";
2
+ import a from "./index85.mjs";
3
+ import s from "./index90.mjs";
4
+ import m from "./index79.mjs";
5
5
  const h = (e, t) => {
6
6
  const { length: l } = e = e ? e.filter(Boolean) : [];
7
7
  if (t || l) {
package/dist/index221.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var t = {};
2
+ var e = {};
3
3
  export {
4
- t as __exports
4
+ e as __exports
5
5
  };
package/dist/index222.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var e = { exports: {} };
2
+ var r = { exports: {} };
3
3
  export {
4
- e as __module
4
+ r as __module
5
5
  };
package/dist/index224.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var e = {};
2
+ var r = {};
3
3
  export {
4
- e as __exports
4
+ r as __exports
5
5
  };
package/dist/index225.mjs CHANGED
@@ -1,5 +1,111 @@
1
1
  'use client';
2
- var e = {};
2
+ import { __exports as m } from "./index255.mjs";
3
+ var p;
4
+ function S() {
5
+ return p ? m : (p = 1, function(d) {
6
+ Object.defineProperty(d, "__esModule", {
7
+ value: !0
8
+ });
9
+ function g(o, e) {
10
+ for (var r in e) Object.defineProperty(o, r, {
11
+ enumerable: !0,
12
+ get: e[r]
13
+ });
14
+ }
15
+ g(d, {
16
+ getSortedRouteObjects: function() {
17
+ return w;
18
+ },
19
+ getSortedRoutes: function() {
20
+ return f;
21
+ }
22
+ });
23
+ class h {
24
+ insert(e) {
25
+ this._insert(e.split("/").filter(Boolean), [], !1);
26
+ }
27
+ smoosh() {
28
+ return this._smoosh();
29
+ }
30
+ _smoosh(e) {
31
+ e === void 0 && (e = "/");
32
+ const r = [
33
+ ...this.children.keys()
34
+ ].sort();
35
+ this.slugName !== null && r.splice(r.indexOf("[]"), 1), this.restSlugName !== null && r.splice(r.indexOf("[...]"), 1), this.optionalRestSlugName !== null && r.splice(r.indexOf("[[...]]"), 1);
36
+ const n = r.map((s) => this.children.get(s)._smoosh("" + e + s + "/")).reduce((s, t) => [
37
+ ...s,
38
+ ...t
39
+ ], []);
40
+ if (this.slugName !== null && n.push(...this.children.get("[]")._smoosh(e + "[" + this.slugName + "]/")), !this.placeholder) {
41
+ const s = e === "/" ? "/" : e.slice(0, -1);
42
+ if (this.optionalRestSlugName != null)
43
+ throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("' + s + '" and "' + s + "[[..." + this.optionalRestSlugName + ']]").');
44
+ n.unshift(s);
45
+ }
46
+ return this.restSlugName !== null && n.push(...this.children.get("[...]")._smoosh(e + "[..." + this.restSlugName + "]/")), this.optionalRestSlugName !== null && n.push(...this.children.get("[[...]]")._smoosh(e + "[[..." + this.optionalRestSlugName + "]]/")), n;
47
+ }
48
+ _insert(e, r, n) {
49
+ if (e.length === 0) {
50
+ this.placeholder = !1;
51
+ return;
52
+ }
53
+ if (n)
54
+ throw new Error("Catch-all must be the last part of the URL.");
55
+ let s = e[0];
56
+ if (s.startsWith("[") && s.endsWith("]")) {
57
+ let l = function(u, a) {
58
+ if (u !== null && u !== a)
59
+ throw new Error("You cannot use different slug names for the same dynamic path ('" + u + "' !== '" + a + "').");
60
+ r.forEach((c) => {
61
+ if (c === a)
62
+ throw new Error('You cannot have the same slug name "' + a + '" repeat within a single dynamic path');
63
+ if (c.replace(/\W/g, "") === s.replace(/\W/g, ""))
64
+ throw new Error('You cannot have the slug names "' + c + '" and "' + a + '" differ only by non-word symbols within a single dynamic path');
65
+ }), r.push(a);
66
+ }, t = s.slice(1, -1), i = !1;
67
+ if (t.startsWith("[") && t.endsWith("]") && (t = t.slice(1, -1), i = !0), t.startsWith("…"))
68
+ throw new Error("Detected a three-dot character ('…') at ('" + t + "'). Did you mean ('...')?");
69
+ if (t.startsWith("...") && (t = t.substring(3), n = !0), t.startsWith("[") || t.endsWith("]"))
70
+ throw new Error("Segment names may not start or end with extra brackets ('" + t + "').");
71
+ if (t.startsWith("."))
72
+ throw new Error("Segment names may not start with erroneous periods ('" + t + "').");
73
+ if (n)
74
+ if (i) {
75
+ if (this.restSlugName != null)
76
+ throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...' + this.restSlugName + ']" and "' + e[0] + '" ).');
77
+ l(this.optionalRestSlugName, t), this.optionalRestSlugName = t, s = "[[...]]";
78
+ } else {
79
+ if (this.optionalRestSlugName != null)
80
+ throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + e[0] + '").');
81
+ l(this.restSlugName, t), this.restSlugName = t, s = "[...]";
82
+ }
83
+ else {
84
+ if (i)
85
+ throw new Error('Optional route parameters are not yet supported ("' + e[0] + '").');
86
+ l(this.slugName, t), this.slugName = t, s = "[]";
87
+ }
88
+ }
89
+ this.children.has(s) || this.children.set(s, new h()), this.children.get(s)._insert(e.slice(1), r, n);
90
+ }
91
+ constructor() {
92
+ this.placeholder = !0, this.children = /* @__PURE__ */ new Map(), this.slugName = null, this.restSlugName = null, this.optionalRestSlugName = null;
93
+ }
94
+ }
95
+ function f(o) {
96
+ const e = new h();
97
+ return o.forEach((r) => e.insert(r)), e.smoosh();
98
+ }
99
+ function w(o, e) {
100
+ const r = {}, n = [];
101
+ for (let t = 0; t < o.length; t++) {
102
+ const i = e(o[t]);
103
+ r[i] = t, n[t] = i;
104
+ }
105
+ return f(n).map((t) => o[r[t]]);
106
+ }
107
+ }(m), m);
108
+ }
3
109
  export {
4
- e as __exports
110
+ S as __require
5
111
  };
package/dist/index226.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var r = {};
2
+ var a = {};
3
3
  export {
4
- r as __exports
4
+ a as __exports
5
5
  };