@instockng/storefront-ui 1.0.75 → 1.0.76

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 (244) hide show
  1. package/dist/components/ProductAddOns.d.ts +3 -1
  2. package/dist/components/ProductAddOns.d.ts.map +1 -1
  3. package/dist/components/RecommendedProducts.d.ts.map +1 -1
  4. package/dist/components/VariantPickerModal.d.ts +28 -0
  5. package/dist/components/VariantPickerModal.d.ts.map +1 -0
  6. package/dist/index.d.ts +2 -0
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.mjs +104 -102
  9. package/dist/index10.mjs +162 -121
  10. package/dist/index100.mjs +20 -69
  11. package/dist/index101.mjs +55 -34
  12. package/dist/index102.mjs +32 -42
  13. package/dist/index103.mjs +2 -2
  14. package/dist/index104.mjs +2 -28
  15. package/dist/index105.mjs +20 -17
  16. package/dist/index106.mjs +54 -213
  17. package/dist/index107.mjs +28 -179
  18. package/dist/index108.mjs +6 -21
  19. package/dist/index109.mjs +50 -21
  20. package/dist/index11.mjs +116 -88
  21. package/dist/index110.mjs +6 -33
  22. package/dist/index111.mjs +11 -155
  23. package/dist/index112.mjs +7 -20
  24. package/dist/index113.mjs +28 -31
  25. package/dist/index114.mjs +2 -84
  26. package/dist/index115.mjs +68 -36
  27. package/dist/index116.mjs +163 -141
  28. package/dist/index117.mjs +2 -55
  29. package/dist/index118.mjs +26 -21
  30. package/dist/index119.mjs +11 -20
  31. package/dist/index12.mjs +86 -90
  32. package/dist/index120.mjs +211 -19
  33. package/dist/index121.mjs +174 -19
  34. package/dist/index122.mjs +15 -14
  35. package/dist/index123.mjs +16 -15
  36. package/dist/index124.mjs +26 -14
  37. package/dist/index125.mjs +147 -56
  38. package/dist/index126.mjs +10 -8
  39. package/dist/index127.mjs +22 -30
  40. package/dist/index128.mjs +77 -17
  41. package/dist/index129.mjs +30 -26
  42. package/dist/index13.mjs +83 -185
  43. package/dist/index130.mjs +140 -22
  44. package/dist/index131.mjs +50 -14
  45. package/dist/index132.mjs +17 -15
  46. package/dist/index133.mjs +18 -38
  47. package/dist/index134.mjs +17 -17
  48. package/dist/index135.mjs +19 -262
  49. package/dist/index136.mjs +13 -62
  50. package/dist/index137.mjs +21 -7
  51. package/dist/index138.mjs +21 -2
  52. package/dist/index139.mjs +65 -2
  53. package/dist/index14.mjs +196 -94
  54. package/dist/index140.mjs +12 -27
  55. package/dist/index141.mjs +39 -2
  56. package/dist/index142.mjs +24 -2
  57. package/dist/index143.mjs +33 -20
  58. package/dist/index144.mjs +25 -54
  59. package/dist/index145.mjs +18 -28
  60. package/dist/index146.mjs +20 -6
  61. package/dist/index147.mjs +44 -49
  62. package/dist/index148.mjs +23 -6
  63. package/dist/index149.mjs +267 -11
  64. package/dist/index15.mjs +82 -713
  65. package/dist/index150.mjs +70 -7
  66. package/dist/index151.mjs +8 -28
  67. package/dist/index152.mjs +2 -2
  68. package/dist/index153.mjs +2 -70
  69. package/dist/index154.mjs +30 -164
  70. package/dist/index155.mjs +2 -2
  71. package/dist/index159.mjs +1 -1
  72. package/dist/index16.mjs +722 -53
  73. package/dist/index160.mjs +1 -1
  74. package/dist/index161.mjs +1 -1
  75. package/dist/index162.mjs +1 -1
  76. package/dist/index163.mjs +1 -1
  77. package/dist/index165.mjs +3 -3
  78. package/dist/index166.mjs +1 -1
  79. package/dist/index168.mjs +3 -3
  80. package/dist/index169.mjs +1 -1
  81. package/dist/index17.mjs +58 -60
  82. package/dist/index174.mjs +2 -2
  83. package/dist/index176.mjs +1 -1
  84. package/dist/index18.mjs +60 -22
  85. package/dist/index182.mjs +1 -1
  86. package/dist/index185.mjs +1 -1
  87. package/dist/index188.mjs +3 -3
  88. package/dist/index189.mjs +1 -1
  89. package/dist/index19.mjs +22 -107
  90. package/dist/index193.mjs +2 -2
  91. package/dist/index195.mjs +2 -2
  92. package/dist/index199.mjs +1 -1
  93. package/dist/index2.mjs +2 -2
  94. package/dist/index20.mjs +105 -38
  95. package/dist/index201.mjs +1 -1
  96. package/dist/index21.mjs +37 -37
  97. package/dist/index210.mjs +2 -2
  98. package/dist/index212.mjs +1 -1
  99. package/dist/index213.mjs +1 -1
  100. package/dist/index214.mjs +1 -1
  101. package/dist/index215.mjs +3 -3
  102. package/dist/index218.mjs +3 -3
  103. package/dist/index22.mjs +42 -71
  104. package/dist/index220.mjs +1 -1
  105. package/dist/index222.mjs +3 -3
  106. package/dist/index223.mjs +8 -8
  107. package/dist/index224.mjs +3 -3
  108. package/dist/index226.mjs +2 -2
  109. package/dist/index227.mjs +2 -108
  110. package/dist/index228.mjs +2 -2
  111. package/dist/index229.mjs +2 -2
  112. package/dist/index23.mjs +67 -28
  113. package/dist/index230.mjs +2 -37
  114. package/dist/index231.mjs +2 -2
  115. package/dist/index232.mjs +2 -2
  116. package/dist/index233.mjs +37 -2
  117. package/dist/index234.mjs +2 -2
  118. package/dist/index237.mjs +1 -1
  119. package/dist/index239.mjs +2 -2
  120. package/dist/index24.mjs +29 -6
  121. package/dist/index240.mjs +1 -1
  122. package/dist/index241.mjs +2 -2
  123. package/dist/index242.mjs +2 -2
  124. package/dist/index243.mjs +2 -2
  125. package/dist/index244.mjs +108 -2
  126. package/dist/index245.mjs +2 -2
  127. package/dist/index246.mjs +2 -2
  128. package/dist/index247.mjs +2 -2
  129. package/dist/index248.mjs +2 -2
  130. package/dist/index249.mjs +2 -2
  131. package/dist/index25.mjs +8 -21
  132. package/dist/index250.mjs +2 -2
  133. package/dist/index251.mjs +2 -2
  134. package/dist/index253.mjs +2 -2
  135. package/dist/index254.mjs +2 -2
  136. package/dist/index255.mjs +2 -2
  137. package/dist/index256.mjs +2 -4
  138. package/dist/index257.mjs +4 -2
  139. package/dist/index258.mjs +3 -2
  140. package/dist/index259.mjs +2 -18
  141. package/dist/index26.mjs +19 -34
  142. package/dist/index260.mjs +2 -47
  143. package/dist/index261.mjs +17 -2
  144. package/dist/index262.mjs +13 -2
  145. package/dist/index263.mjs +6 -2
  146. package/dist/index264.mjs +30 -2
  147. package/dist/index265.mjs +2 -91
  148. package/dist/index266.mjs +2 -3
  149. package/dist/index267.mjs +18 -2
  150. package/dist/index268.mjs +47 -2
  151. package/dist/index269.mjs +2 -17
  152. package/dist/index27.mjs +34 -37
  153. package/dist/index270.mjs +2 -13
  154. package/dist/index271.mjs +2 -6
  155. package/dist/index272.mjs +91 -30
  156. package/dist/index273.mjs +2 -2
  157. package/dist/index274.mjs +2 -2
  158. package/dist/index276.mjs +2 -2
  159. package/dist/index277.mjs +5 -0
  160. package/dist/index28.mjs +28 -103
  161. package/dist/index29.mjs +104 -20
  162. package/dist/index3.mjs +5 -5
  163. package/dist/index30.mjs +29 -9
  164. package/dist/index31.mjs +9 -9
  165. package/dist/index32.mjs +11 -116
  166. package/dist/index33.mjs +116 -25
  167. package/dist/index34.mjs +25 -81
  168. package/dist/index35.mjs +81 -112
  169. package/dist/index36.mjs +109 -8
  170. package/dist/index37.mjs +9 -33
  171. package/dist/index38.mjs +26 -19
  172. package/dist/index39.mjs +26 -9
  173. package/dist/index4.mjs +1 -1
  174. package/dist/index40.mjs +10 -122
  175. package/dist/index41.mjs +114 -380
  176. package/dist/index42.mjs +384 -20
  177. package/dist/index43.mjs +24 -31
  178. package/dist/index44.mjs +32 -7
  179. package/dist/index45.mjs +6 -1432
  180. package/dist/index46.mjs +1432 -69
  181. package/dist/index47.mjs +70 -2
  182. package/dist/index48.mjs +2 -60
  183. package/dist/index49.mjs +57 -48
  184. package/dist/index5.mjs +1 -1
  185. package/dist/index50.mjs +51 -33
  186. package/dist/index51.mjs +33 -15
  187. package/dist/index52.mjs +12 -2260
  188. package/dist/index53.mjs +2263 -36
  189. package/dist/index54.mjs +36 -44
  190. package/dist/index55.mjs +44 -99
  191. package/dist/index56.mjs +99 -81
  192. package/dist/index57.mjs +75 -13
  193. package/dist/index58.mjs +15 -125
  194. package/dist/index59.mjs +93 -89
  195. package/dist/index6.mjs +1 -1
  196. package/dist/index60.mjs +102 -56
  197. package/dist/index61.mjs +55 -89
  198. package/dist/index62.mjs +82 -76
  199. package/dist/index63.mjs +100 -13
  200. package/dist/index64.mjs +17 -92
  201. package/dist/index65.mjs +70 -56
  202. package/dist/index66.mjs +62 -44
  203. package/dist/index67.mjs +47 -46
  204. package/dist/index68.mjs +48 -121
  205. package/dist/index69.mjs +133 -22
  206. package/dist/index7.mjs +6 -6
  207. package/dist/index70.mjs +21 -150
  208. package/dist/index71.mjs +2 -23
  209. package/dist/index73.mjs +23 -2
  210. package/dist/index74.mjs +149 -71
  211. package/dist/index75.mjs +74 -14
  212. package/dist/index76.mjs +14 -62
  213. package/dist/index77.mjs +63 -2
  214. package/dist/index78.mjs +234 -5
  215. package/dist/index79.mjs +5 -1133
  216. package/dist/index8.mjs +4 -4
  217. package/dist/index80.mjs +131 -17
  218. package/dist/index81.mjs +67 -54
  219. package/dist/index82.mjs +84 -30
  220. package/dist/index83.mjs +29 -2
  221. package/dist/index84.mjs +9 -235
  222. package/dist/index85.mjs +74 -5
  223. package/dist/index86.mjs +3 -133
  224. package/dist/index87.mjs +2 -68
  225. package/dist/index88.mjs +79 -83
  226. package/dist/index89.mjs +52 -27
  227. package/dist/index9.mjs +3 -3
  228. package/dist/index90.mjs +5 -8
  229. package/dist/index91.mjs +4 -74
  230. package/dist/index92.mjs +178 -3
  231. package/dist/index93.mjs +53 -2
  232. package/dist/index94.mjs +68 -82
  233. package/dist/index95.mjs +33 -53
  234. package/dist/index96.mjs +42 -5
  235. package/dist/index97.mjs +2 -5
  236. package/dist/index98.mjs +5 -178
  237. package/dist/index99.mjs +1134 -53
  238. package/dist/styles.css +1 -1
  239. package/package.json +1 -1
  240. package/src/components/ProductAddOns.stories.tsx +10 -3
  241. package/src/components/ProductAddOns.tsx +167 -112
  242. package/src/components/RecommendedProducts.tsx +130 -88
  243. package/src/components/VariantPickerModal.tsx +154 -0
  244. package/src/index.ts +3 -0
package/dist/index23.mjs CHANGED
@@ -1,35 +1,74 @@
1
1
  'use client';
2
- import { jsx as r } from "react/jsx-runtime";
3
- import { createContext as p, useEffect as C, useMemo as f, useContext as m } from "react";
4
- import { QueryClient as d, QueryClientProvider as x } from "@tanstack/react-query";
5
- import { initializeApiClient as u } from "./index25.mjs";
6
- const l = p(null);
7
- function a({ children: e, baseURL: t = "https://oms-api.instock.com.ng", getAuthToken: s, onError: i, queryClient: n }) {
8
- const o = {
9
- baseURL: t,
10
- onError: i
2
+ import { clsx as i } from "./index52.mjs";
3
+ import { twMerge as u } from "./index53.mjs";
4
+ function l(...t) {
5
+ return u(i(t));
6
+ }
7
+ function f(t) {
8
+ return new Intl.NumberFormat("en-NG", {
9
+ style: "currency",
10
+ currency: "NGN",
11
+ minimumFractionDigits: 0,
12
+ maximumFractionDigits: 0
13
+ }).format(t);
14
+ }
15
+ function m(t) {
16
+ return (typeof t == "string" ? new Date(t) : t).toLocaleDateString("en-US", {
17
+ year: "numeric",
18
+ month: "long",
19
+ day: "numeric"
20
+ });
21
+ }
22
+ function d(t) {
23
+ return (typeof t == "string" ? new Date(t) : t).toLocaleString("en-US", {
24
+ year: "numeric",
25
+ month: "long",
26
+ day: "numeric",
27
+ hour: "2-digit",
28
+ minute: "2-digit"
29
+ });
30
+ }
31
+ function s(t) {
32
+ return {
33
+ pending: "bg-yellow-100 text-yellow-800",
34
+ shipped: "bg-blue-100 text-blue-800",
35
+ delivered: "bg-green-100 text-green-800",
36
+ cancelled: "bg-red-100 text-red-800",
37
+ refunded: "bg-purple-100 text-purple-800",
38
+ prospect: "bg-orange-100 text-orange-800"
39
+ }[t] || "bg-gray-100 text-gray-800";
40
+ }
41
+ function r(t) {
42
+ var o;
43
+ if (typeof document > "u") return;
44
+ const n = `; ${document.cookie}`.split(`; ${t}=`);
45
+ if (n.length === 2) return (o = n.pop()) == null ? void 0 : o.split(";").shift();
46
+ }
47
+ function c(t) {
48
+ return typeof window > "u" ? void 0 : new URLSearchParams(window.location.search).get(t) || void 0;
49
+ }
50
+ function p() {
51
+ return {
52
+ fbc: r("_fbc"),
53
+ fbp: r("_fbp")
11
54
  };
12
- u(o), C(() => {
13
- u(o);
14
- }, [t, i]);
15
- const c = f(() => n || new d({
16
- defaultOptions: {
17
- queries: {
18
- retry: 1,
19
- refetchOnWindowFocus: !1,
20
- staleTime: 5e3
21
- }
22
- }
23
- }), [n]);
24
- return r(x, { client: c, children: r(l.Provider, { value: { baseURL: t, getAuthToken: s }, children: e }) });
25
55
  }
26
56
  function y() {
27
- const e = m(l);
28
- if (!e)
29
- throw new Error("useApiClientContext must be used within ApiClientProvider");
30
- return e;
57
+ return {
58
+ ttp: r("_ttp"),
59
+ ttclid: c("ttclid")
60
+ };
61
+ }
62
+ function b(t, e, n) {
63
+ return `${t}_${e}_${n}`;
31
64
  }
32
65
  export {
33
- a as ApiClientProvider,
34
- y as useApiClientContext
66
+ l as cn,
67
+ f as formatCurrency,
68
+ m as formatDate,
69
+ d as formatDateTime,
70
+ b as generateClientEventId,
71
+ p as getFbCookies,
72
+ s as getStatusColor,
73
+ y as getTikTokCookies
35
74
  };
package/dist/index230.mjs CHANGED
@@ -1,40 +1,5 @@
1
1
  'use client';
2
- import { __exports as n } from "./index258.mjs";
3
- import { __require as l } from "./index259.mjs";
4
- import { __require as d } from "./index260.mjs";
5
- var t;
6
- function R() {
7
- return t ? n : (t = 1, function(i) {
8
- Object.defineProperty(i, "__esModule", {
9
- value: !0
10
- });
11
- function o(u, e) {
12
- for (var r in e) Object.defineProperty(u, r, {
13
- enumerable: !0,
14
- get: e[r]
15
- });
16
- }
17
- o(i, {
18
- normalizeAppPath: function() {
19
- return a;
20
- },
21
- normalizeRscURL: function() {
22
- return p;
23
- }
24
- });
25
- const s = l(), f = d();
26
- function a(u) {
27
- return (0, s.ensureLeadingSlash)(u.split("/").reduce((e, r, c, _) => !r || (0, f.isGroupSegment)(r) || r[0] === "@" || (r === "page" || r === "route") && c === _.length - 1 ? e : e + "/" + r, ""));
28
- }
29
- function p(u) {
30
- return u.replace(
31
- /\.rsc($|\?)/,
32
- // $1 ensures `?` is preserved
33
- "$1"
34
- );
35
- }
36
- }(n), n);
37
- }
2
+ var e = {};
38
3
  export {
39
- R as __require
4
+ e as __exports
40
5
  };
package/dist/index231.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/index232.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var e = { exports: {} };
2
+ var e = {};
3
3
  export {
4
- e as __module
4
+ e as __exports
5
5
  };
package/dist/index233.mjs CHANGED
@@ -1,5 +1,40 @@
1
1
  'use client';
2
- var e = { exports: {} };
2
+ import { __exports as n } from "./index266.mjs";
3
+ import { __require as l } from "./index267.mjs";
4
+ import { __require as d } from "./index268.mjs";
5
+ var t;
6
+ function R() {
7
+ return t ? n : (t = 1, function(i) {
8
+ Object.defineProperty(i, "__esModule", {
9
+ value: !0
10
+ });
11
+ function o(u, e) {
12
+ for (var r in e) Object.defineProperty(u, r, {
13
+ enumerable: !0,
14
+ get: e[r]
15
+ });
16
+ }
17
+ o(i, {
18
+ normalizeAppPath: function() {
19
+ return a;
20
+ },
21
+ normalizeRscURL: function() {
22
+ return p;
23
+ }
24
+ });
25
+ const s = l(), f = d();
26
+ function a(u) {
27
+ return (0, s.ensureLeadingSlash)(u.split("/").reduce((e, r, c, _) => !r || (0, f.isGroupSegment)(r) || r[0] === "@" || (r === "page" || r === "route") && c === _.length - 1 ? e : e + "/" + r, ""));
28
+ }
29
+ function p(u) {
30
+ return u.replace(
31
+ /\.rsc($|\?)/,
32
+ // $1 ensures `?` is preserved
33
+ "$1"
34
+ );
35
+ }
36
+ }(n), n);
37
+ }
3
38
  export {
4
- e as __module
39
+ R as __require
5
40
  };
package/dist/index234.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/index237.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __module as O } from "./index261.mjs";
2
+ import { __module as O } from "./index265.mjs";
3
3
  var S;
4
4
  function B() {
5
5
  return S ? O.exports : (S = 1, (() => {
package/dist/index239.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import { __exports as t } from "./index262.mjs";
2
+ import { __exports as t } from "./index269.mjs";
3
3
  import { __require as u } from "./index176.mjs";
4
- import { __require as p } from "./index113.mjs";
4
+ import { __require as p } from "./index127.mjs";
5
5
  var s;
6
6
  function f() {
7
7
  return s ? t : (s = 1, function(a) {
package/dist/index24.mjs CHANGED
@@ -1,12 +1,35 @@
1
1
  'use client';
2
- import { useApiClientContext as n } from "./index23.mjs";
3
- function i() {
4
- const { baseURL: t, getAuthToken: e } = n();
5
- return {
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import { createContext as p, useEffect as C, useMemo as f, useContext as m } from "react";
4
+ import { QueryClient as d, QueryClientProvider as x } from "@tanstack/react-query";
5
+ import { initializeApiClient as u } from "./index26.mjs";
6
+ const l = p(null);
7
+ function a({ children: e, baseURL: t = "https://oms-api.instock.com.ng", getAuthToken: s, onError: i, queryClient: n }) {
8
+ const o = {
6
9
  baseURL: t,
7
- getAuthToken: e
10
+ onError: i
8
11
  };
12
+ u(o), C(() => {
13
+ u(o);
14
+ }, [t, i]);
15
+ const c = f(() => n || new d({
16
+ defaultOptions: {
17
+ queries: {
18
+ retry: 1,
19
+ refetchOnWindowFocus: !1,
20
+ staleTime: 5e3
21
+ }
22
+ }
23
+ }), [n]);
24
+ return r(x, { client: c, children: r(l.Provider, { value: { baseURL: t, getAuthToken: s }, children: e }) });
25
+ }
26
+ function y() {
27
+ const e = m(l);
28
+ if (!e)
29
+ throw new Error("useApiClientContext must be used within ApiClientProvider");
30
+ return e;
9
31
  }
10
32
  export {
11
- i as useApiConfig
33
+ a as ApiClientProvider,
34
+ y as useApiClientContext
12
35
  };
package/dist/index240.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __module as e } from "./index263.mjs";
2
+ import { __module as e } from "./index270.mjs";
3
3
  var o;
4
4
  function X() {
5
5
  return o ? e.exports : (o = 1, function(c, E) {
package/dist/index241.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { __exports as r } from "./index264.mjs";
3
- import { __require as a } from "./index265.mjs";
2
+ import { __exports as r } from "./index271.mjs";
3
+ import { __require as a } from "./index272.mjs";
4
4
  var t;
5
5
  function k() {
6
6
  return t ? r : (t = 1, function(o) {
package/dist/index242.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var r = {};
2
+ var e = {};
3
3
  export {
4
- r as __exports
4
+ e as __exports
5
5
  };
package/dist/index243.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/index244.mjs CHANGED
@@ -1,5 +1,111 @@
1
1
  'use client';
2
- var e = {};
2
+ import { __exports as m } from "./index273.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/index245.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var a = { exports: {} };
2
+ var a = {};
3
3
  export {
4
- a as __module
4
+ a as __exports
5
5
  };
package/dist/index246.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var a = {};
2
+ var e = {};
3
3
  export {
4
- a as __exports
4
+ e as __exports
5
5
  };
package/dist/index247.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var a = {};
2
+ var r = { exports: {} };
3
3
  export {
4
- a as __exports
4
+ r as __module
5
5
  };
package/dist/index248.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var a = {};
2
+ var a = { exports: {} };
3
3
  export {
4
- a as __exports
4
+ a as __module
5
5
  };
package/dist/index249.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var e = {};
2
+ var a = {};
3
3
  export {
4
- e as __exports
4
+ a as __exports
5
5
  };
package/dist/index25.mjs CHANGED
@@ -1,25 +1,12 @@
1
1
  'use client';
2
- import "./index53.mjs";
3
- import r from "./index54.mjs";
4
- let e = null;
5
- function p(t) {
6
- return e = r.create({
7
- baseURL: t.baseURL,
8
- headers: {
9
- "Content-Type": "application/json"
10
- }
11
- }), e.interceptors.response.use((i) => i, (i) => (t.onError && t.onError(i), Promise.reject(i))), e;
12
- }
13
- function l() {
14
- if (!e)
15
- throw new Error("API client not initialized. Make sure to wrap your app with ApiClientProvider.");
16
- return e;
17
- }
18
- function a() {
19
- e = null;
2
+ import { useApiClientContext as n } from "./index24.mjs";
3
+ function i() {
4
+ const { baseURL: t, getAuthToken: e } = n();
5
+ return {
6
+ baseURL: t,
7
+ getAuthToken: e
8
+ };
20
9
  }
21
10
  export {
22
- l as getApiClient,
23
- p as initializeApiClient,
24
- a as resetApiClient
11
+ i as useApiConfig
25
12
  };
package/dist/index250.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var r = { exports: {} };
2
+ var a = {};
3
3
  export {
4
- r as __module
4
+ a as __exports
5
5
  };
package/dist/index251.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var e = {};
2
+ var a = {};
3
3
  export {
4
- e as __exports
4
+ a as __exports
5
5
  };
package/dist/index253.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var r = {};
2
+ var e = {};
3
3
  export {
4
- r as __exports
4
+ e as __exports
5
5
  };
package/dist/index254.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/index255.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var e = { exports: {} };
2
+ var e = {};
3
3
  export {
4
- e as __module
4
+ e as __exports
5
5
  };
package/dist/index256.mjs CHANGED
@@ -1,7 +1,5 @@
1
1
  'use client';
2
- import * as e from "./index273.mjs";
3
- import { getAugmentedNamespace as r } from "./index69.mjs";
4
- const o = /* @__PURE__ */ r(e);
2
+ var e = { exports: {} };
5
3
  export {
6
- o as default
4
+ e as __module
7
5
  };
package/dist/index257.mjs CHANGED
@@ -1,5 +1,7 @@
1
1
  'use client';
2
- var e = {};
2
+ import * as e from "./index274.mjs";
3
+ import { getAugmentedNamespace as r } from "./index70.mjs";
4
+ const o = /* @__PURE__ */ r(e);
3
5
  export {
4
- e as __exports
6
+ o as default
5
7
  };
package/dist/index258.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  'use client';
2
- var a = {};
2
+ import a from "./index214.mjs";
3
+ const e = typeof URLSearchParams < "u" ? URLSearchParams : a;
3
4
  export {
4
- a as __exports
5
+ e as default
5
6
  };
package/dist/index259.mjs CHANGED
@@ -1,21 +1,5 @@
1
1
  'use client';
2
- import { __exports as r } from "./index274.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
- }
2
+ const a = typeof FormData < "u" ? FormData : null;
19
3
  export {
20
- s as __require
4
+ a as default
21
5
  };