@instockng/storefront-ui 1.0.45 → 1.0.47

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 (142) hide show
  1. package/dist/components/Checkout.d.ts.map +1 -1
  2. package/dist/index100.mjs +20 -26
  3. package/dist/index101.mjs +13 -10
  4. package/dist/index102.mjs +55 -205
  5. package/dist/index103.mjs +13 -175
  6. package/dist/index104.mjs +32 -15
  7. package/dist/index105.mjs +17 -16
  8. package/dist/index106.mjs +27 -26
  9. package/dist/index107.mjs +21 -150
  10. package/dist/index108.mjs +12 -13
  11. package/dist/index109.mjs +14 -24
  12. package/dist/index110.mjs +39 -76
  13. package/dist/index111.mjs +16 -31
  14. package/dist/index112.mjs +255 -132
  15. package/dist/index113.mjs +64 -49
  16. package/dist/index114.mjs +7 -22
  17. package/dist/index115.mjs +2 -27
  18. package/dist/index116.mjs +2 -23
  19. package/dist/index117.mjs +28 -20
  20. package/dist/index118.mjs +2 -21
  21. package/dist/index119.mjs +34 -22
  22. package/dist/index120.mjs +42 -20
  23. package/dist/index121.mjs +231 -61
  24. package/dist/index122.mjs +5 -17
  25. package/dist/index123.mjs +129 -34
  26. package/dist/index124.mjs +67 -23
  27. package/dist/index125.mjs +84 -31
  28. package/dist/index126.mjs +28 -26
  29. package/dist/index127.mjs +8 -18
  30. package/dist/index128.mjs +72 -18
  31. package/dist/index129.mjs +3 -46
  32. package/dist/index13.mjs +201 -181
  33. package/dist/index130.mjs +2 -23
  34. package/dist/index131.mjs +81 -266
  35. package/dist/index132.mjs +53 -69
  36. package/dist/index133.mjs +5 -7
  37. package/dist/index134.mjs +5 -2
  38. package/dist/index135.mjs +179 -2
  39. package/dist/index136.mjs +50 -30
  40. package/dist/index137.mjs +69 -2
  41. package/dist/index142.mjs +1 -1
  42. package/dist/index143.mjs +1 -1
  43. package/dist/index145.mjs +1 -1
  44. package/dist/index146.mjs +1 -1
  45. package/dist/index148.mjs +1 -1
  46. package/dist/index149.mjs +1 -1
  47. package/dist/index151.mjs +3 -3
  48. package/dist/index152.mjs +1 -1
  49. package/dist/index159.mjs +1 -1
  50. package/dist/index161.mjs +2 -2
  51. package/dist/index162.mjs +5 -5
  52. package/dist/index165.mjs +1 -1
  53. package/dist/index168.mjs +1 -1
  54. package/dist/index171.mjs +3 -3
  55. package/dist/index172.mjs +1 -1
  56. package/dist/index176.mjs +1 -1
  57. package/dist/index178.mjs +2 -2
  58. package/dist/index184.mjs +1 -1
  59. package/dist/index197.mjs +1 -1
  60. package/dist/index198.mjs +1 -1
  61. package/dist/index199.mjs +5 -5
  62. package/dist/index201.mjs +2 -2
  63. package/dist/index203.mjs +2 -2
  64. package/dist/index205.mjs +1 -1
  65. package/dist/index207.mjs +4 -4
  66. package/dist/index208.mjs +3 -3
  67. package/dist/index209.mjs +2 -2
  68. package/dist/index210.mjs +2 -2
  69. package/dist/index212.mjs +2 -2
  70. package/dist/index213.mjs +2 -108
  71. package/dist/index214.mjs +2 -2
  72. package/dist/index215.mjs +2 -2
  73. package/dist/index216.mjs +2 -2
  74. package/dist/index217.mjs +108 -2
  75. package/dist/index218.mjs +2 -2
  76. package/dist/index220.mjs +3 -3
  77. package/dist/index221.mjs +2 -2
  78. package/dist/index222.mjs +244 -2
  79. package/dist/index223.mjs +2 -244
  80. package/dist/index224.mjs +33 -2
  81. package/dist/index225.mjs +60 -28
  82. package/dist/index226.mjs +20 -60
  83. package/dist/index227.mjs +2 -25
  84. package/dist/index228.mjs +2 -2
  85. package/dist/index229.mjs +2 -2
  86. package/dist/index230.mjs +2 -2
  87. package/dist/index233.mjs +2 -2
  88. package/dist/index240.mjs +1 -1
  89. package/dist/index241.mjs +3 -3
  90. package/dist/index244.mjs +3 -3
  91. package/dist/index246.mjs +1 -1
  92. package/dist/index248.mjs +3 -3
  93. package/dist/index249.mjs +5 -5
  94. package/dist/index250.mjs +3 -3
  95. package/dist/index252.mjs +2 -2
  96. package/dist/index253.mjs +18 -2
  97. package/dist/index254.mjs +42 -13
  98. package/dist/index255.mjs +2 -47
  99. package/dist/index260.mjs +1 -1
  100. package/dist/index262.mjs +2 -3
  101. package/dist/index263.mjs +2 -2
  102. package/dist/index264.mjs +2 -2
  103. package/dist/index265.mjs +3 -17
  104. package/dist/index266.mjs +2 -13
  105. package/dist/index267.mjs +2 -6
  106. package/dist/index268.mjs +17 -30
  107. package/dist/index269.mjs +13 -2
  108. package/dist/index270.mjs +6 -2
  109. package/dist/index271.mjs +30 -2
  110. package/dist/index40.mjs +1 -1
  111. package/dist/index46.mjs +1 -1
  112. package/dist/index51.mjs +17 -17
  113. package/dist/index52.mjs +2 -2
  114. package/dist/index66.mjs +149 -19
  115. package/dist/index67.mjs +19 -149
  116. package/dist/index74.mjs +35 -35
  117. package/dist/index75.mjs +1 -1
  118. package/dist/index76.mjs +2 -2
  119. package/dist/index77.mjs +2 -2
  120. package/dist/index80.mjs +2 -235
  121. package/dist/index81.mjs +27 -5
  122. package/dist/index82.mjs +14 -130
  123. package/dist/index83.mjs +214 -67
  124. package/dist/index84.mjs +175 -82
  125. package/dist/index85.mjs +21 -28
  126. package/dist/index86.mjs +22 -8
  127. package/dist/index87.mjs +30 -72
  128. package/dist/index88.mjs +155 -3
  129. package/dist/index89.mjs +20 -2
  130. package/dist/index90.mjs +29 -81
  131. package/dist/index91.mjs +83 -53
  132. package/dist/index92.mjs +37 -5
  133. package/dist/index93.mjs +144 -4
  134. package/dist/index94.mjs +49 -173
  135. package/dist/index95.mjs +23 -53
  136. package/dist/index96.mjs +27 -69
  137. package/dist/index97.mjs +23 -34
  138. package/dist/index98.mjs +24 -42
  139. package/dist/index99.mjs +21 -2
  140. package/dist/styles.css +1 -1
  141. package/package.json +1 -1
  142. package/src/components/Checkout.tsx +23 -1
package/dist/index254.mjs CHANGED
@@ -1,21 +1,50 @@
1
1
  'use client';
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", {
2
+ import { __exports as u } from "./index263.mjs";
3
+ var _;
4
+ function g() {
5
+ return _ ? u : (_ = 1, function(i) {
6
+ Object.defineProperty(i, "__esModule", {
7
7
  value: !0
8
- }), Object.defineProperty(n, "ensureLeadingSlash", {
9
- enumerable: !0,
10
- get: function() {
11
- return t;
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 t(e) {
15
- return e.startsWith("/") ? e : "/" + 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
- }(r), r);
45
+ const r = "__PAGE__", E = "__DEFAULT__";
46
+ }(u), u);
18
47
  }
19
48
  export {
20
- s as __require
49
+ g as __require
21
50
  };
package/dist/index255.mjs CHANGED
@@ -1,50 +1,5 @@
1
1
  'use client';
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
- 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 = {};
48
3
  export {
49
- g as __require
4
+ e as __exports
50
5
  };
package/dist/index260.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __module as c } from "./index271.mjs";
2
+ import { __module as c } from "./index264.mjs";
3
3
  var l;
4
4
  function T() {
5
5
  return l ? c.exports : (l = 1, (() => {
package/dist/index262.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  'use client';
2
- import a from "./index240.mjs";
3
- const e = typeof URLSearchParams < "u" ? URLSearchParams : a;
2
+ var e = {};
4
3
  export {
5
- e as default
4
+ e as __exports
6
5
  };
package/dist/index263.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- const a = typeof FormData < "u" ? FormData : null;
2
+ var e = {};
3
3
  export {
4
- a as default
4
+ e as __exports
5
5
  };
package/dist/index264.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- const l = typeof Blob < "u" ? Blob : null;
2
+ var o = { exports: {} };
3
3
  export {
4
- l as default
4
+ o as __module
5
5
  };
package/dist/index265.mjs CHANGED
@@ -1,20 +1,6 @@
1
1
  'use client';
2
- function y(t, n) {
3
- t = t || 10;
4
- const c = new Array(t), o = new Array(t);
5
- let e = 0, r = 0, i;
6
- return n = n !== void 0 ? n : 1e3, function(h) {
7
- const d = Date.now(), a = o[r];
8
- i || (i = d), c[e] = h, o[e] = d;
9
- let f = r, u = 0;
10
- for (; f !== e; )
11
- u += c[f++], f = f % t;
12
- if (e = (e + 1) % t, e === r && (r = (r + 1) % t), d - i < n)
13
- return;
14
- const w = a && d - a;
15
- return w ? Math.round(u * 1e3 / w) : void 0;
16
- };
17
- }
2
+ import a from "./index240.mjs";
3
+ const e = typeof URLSearchParams < "u" ? URLSearchParams : a;
18
4
  export {
19
- y as default
5
+ e as default
20
6
  };
package/dist/index266.mjs CHANGED
@@ -1,16 +1,5 @@
1
1
  'use client';
2
- function h(r, a) {
3
- let s = 0, u = 1e3 / a, e, t;
4
- const n = (l, o = Date.now()) => {
5
- s = o, e = null, t && (clearTimeout(t), t = null), r(...l);
6
- };
7
- return [(...l) => {
8
- const o = Date.now(), i = o - s;
9
- i >= u ? n(l, o) : (e = l, t || (t = setTimeout(() => {
10
- t = null, n(e);
11
- }, u - i)));
12
- }, () => e && n(e)];
13
- }
2
+ const a = typeof FormData < "u" ? FormData : null;
14
3
  export {
15
- h as default
4
+ a as default
16
5
  };
package/dist/index267.mjs CHANGED
@@ -1,9 +1,5 @@
1
1
  'use client';
2
- import o from "./index204.mjs";
3
- const n = o.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, o.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
4
- new URL(o.origin),
5
- o.navigator && /(msie|trident)/i.test(o.navigator.userAgent)
6
- ) : () => !0;
2
+ const l = typeof Blob < "u" ? Blob : null;
7
3
  export {
8
- n as default
4
+ l as default
9
5
  };
package/dist/index268.mjs CHANGED
@@ -1,33 +1,20 @@
1
1
  'use client';
2
- import r from "./index80.mjs";
3
- import c from "./index204.mjs";
4
- const p = c.hasStandardBrowserEnv ? (
5
- // Standard browser envs support document.cookie
6
- {
7
- write(e, t, n, i, s, u) {
8
- const o = [e + "=" + encodeURIComponent(t)];
9
- r.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), r.isString(i) && o.push("path=" + i), r.isString(s) && o.push("domain=" + s), u === !0 && o.push("secure"), document.cookie = o.join("; ");
10
- },
11
- read(e) {
12
- const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
13
- return t ? decodeURIComponent(t[3]) : null;
14
- },
15
- remove(e) {
16
- this.write(e, "", Date.now() - 864e5);
17
- }
18
- }
19
- ) : (
20
- // Non-standard browser env (web workers, react-native) lack needed support.
21
- {
22
- write() {
23
- },
24
- read() {
25
- return null;
26
- },
27
- remove() {
28
- }
29
- }
30
- );
2
+ function y(t, n) {
3
+ t = t || 10;
4
+ const c = new Array(t), o = new Array(t);
5
+ let e = 0, r = 0, i;
6
+ return n = n !== void 0 ? n : 1e3, function(h) {
7
+ const d = Date.now(), a = o[r];
8
+ i || (i = d), c[e] = h, o[e] = d;
9
+ let f = r, u = 0;
10
+ for (; f !== e; )
11
+ u += c[f++], f = f % t;
12
+ if (e = (e + 1) % t, e === r && (r = (r + 1) % t), d - i < n)
13
+ return;
14
+ const w = a && d - a;
15
+ return w ? Math.round(u * 1e3 / w) : void 0;
16
+ };
17
+ }
31
18
  export {
32
- p as default
19
+ y as default
33
20
  };
package/dist/index269.mjs CHANGED
@@ -1,5 +1,16 @@
1
1
  'use client';
2
- var e = {};
2
+ function h(r, a) {
3
+ let s = 0, u = 1e3 / a, e, t;
4
+ const n = (l, o = Date.now()) => {
5
+ s = o, e = null, t && (clearTimeout(t), t = null), r(...l);
6
+ };
7
+ return [(...l) => {
8
+ const o = Date.now(), i = o - s;
9
+ i >= u ? n(l, o) : (e = l, t || (t = setTimeout(() => {
10
+ t = null, n(e);
11
+ }, u - i)));
12
+ }, () => e && n(e)];
13
+ }
3
14
  export {
4
- e as __exports
15
+ h as default
5
16
  };
package/dist/index270.mjs CHANGED
@@ -1,5 +1,9 @@
1
1
  'use client';
2
- var e = {};
2
+ import o from "./index204.mjs";
3
+ const n = o.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, o.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
4
+ new URL(o.origin),
5
+ o.navigator && /(msie|trident)/i.test(o.navigator.userAgent)
6
+ ) : () => !0;
3
7
  export {
4
- e as __exports
8
+ n as default
5
9
  };
package/dist/index271.mjs CHANGED
@@ -1,5 +1,33 @@
1
1
  'use client';
2
- var o = { exports: {} };
2
+ import r from "./index121.mjs";
3
+ import c from "./index204.mjs";
4
+ const p = c.hasStandardBrowserEnv ? (
5
+ // Standard browser envs support document.cookie
6
+ {
7
+ write(e, t, n, i, s, u) {
8
+ const o = [e + "=" + encodeURIComponent(t)];
9
+ r.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), r.isString(i) && o.push("path=" + i), r.isString(s) && o.push("domain=" + s), u === !0 && o.push("secure"), document.cookie = o.join("; ");
10
+ },
11
+ read(e) {
12
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
13
+ return t ? decodeURIComponent(t[3]) : null;
14
+ },
15
+ remove(e) {
16
+ this.write(e, "", Date.now() - 864e5);
17
+ }
18
+ }
19
+ ) : (
20
+ // Non-standard browser env (web workers, react-native) lack needed support.
21
+ {
22
+ write() {
23
+ },
24
+ read() {
25
+ return null;
26
+ },
27
+ remove() {
28
+ }
29
+ }
30
+ );
3
31
  export {
4
- o as __module
32
+ p as default
5
33
  };
package/dist/index40.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { getDefaultExportFromCjs as n } from "./index64.mjs";
3
- import { __require as i } from "./index67.mjs";
3
+ import { __require as i } from "./index66.mjs";
4
4
  function s(t, a) {
5
5
  for (var o = 0; o < a.length; o++) {
6
6
  const e = a[o];
package/dist/index46.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import * as l from "react";
3
- import { composeRefs as m } from "./index66.mjs";
3
+ import { composeRefs as m } from "./index67.mjs";
4
4
  import { jsx as u } from "react/jsx-runtime";
5
5
  // @__NO_SIDE_EFFECTS__
6
6
  function y(e) {
package/dist/index51.mjs CHANGED
@@ -1,21 +1,21 @@
1
1
  'use client';
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";
2
+ import a from "./index121.mjs";
3
+ import p from "./index122.mjs";
4
+ import m from "./index123.mjs";
5
+ import i from "./index124.mjs";
6
+ import f from "./index125.mjs";
7
+ import l from "./index126.mjs";
8
+ import c from "./index127.mjs";
9
+ import d from "./index128.mjs";
10
+ import u from "./index129.mjs";
11
+ import { VERSION as x } from "./index130.mjs";
12
+ import C from "./index131.mjs";
13
+ import A from "./index132.mjs";
14
+ import E from "./index133.mjs";
15
+ import O from "./index134.mjs";
16
+ import S from "./index135.mjs";
17
+ import H from "./index136.mjs";
18
+ import T from "./index137.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 "./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";
5
+ import { serialize as j } from "./index119.mjs";
6
+ import { mergePath as U, replaceUrlParam as P, buildSearchParams as S, removeIndexString as w, replaceUrlProtocol as x, deepMerge as C } from "./index120.mjs";
7
7
  var v = (r, e) => new Proxy(() => {
8
8
  }, {
9
9
  get(t, s) {
package/dist/index66.mjs CHANGED
@@ -1,26 +1,156 @@
1
1
  'use client';
2
- import "react";
3
- function i(n, o) {
4
- if (typeof n == "function")
5
- return n(o);
6
- n != null && (n.current = o);
7
- }
8
- function f(...n) {
9
- return (o) => {
10
- let u = !1;
11
- const c = n.map((t) => {
12
- const e = i(t, o);
13
- return !u && typeof e == "function" && (u = !0), e;
2
+ import { __module as l } from "./index72.mjs";
3
+ import "./index73.mjs";
4
+ import j from "react";
5
+ import { __require as A } from "./index74.mjs";
6
+ import { __require as O } from "./index75.mjs";
7
+ import { __require as x } from "./index76.mjs";
8
+ import { __require as F } from "./index77.mjs";
9
+ import { __exports as M } from "./index78.mjs";
10
+ var p;
11
+ function W() {
12
+ return p ? l.exports : (p = 1, function(g, u) {
13
+ Object.defineProperty(u, "__esModule", {
14
+ value: !0
15
+ });
16
+ function _(e, o) {
17
+ for (var t in o) Object.defineProperty(e, t, {
18
+ enumerable: !0,
19
+ get: o[t]
20
+ });
21
+ }
22
+ _(u, {
23
+ Router: function() {
24
+ return i.default;
25
+ },
26
+ createRouter: function() {
27
+ return P;
28
+ },
29
+ // Export the singletonRouter and this is the public API.
30
+ default: function() {
31
+ return v;
32
+ },
33
+ makePublicRouterInstance: function() {
34
+ return E;
35
+ },
36
+ useRouter: function() {
37
+ return q;
38
+ },
39
+ withRouter: function() {
40
+ return w.default;
41
+ }
42
+ });
43
+ const f = M, R = /* @__PURE__ */ f._(j), i = /* @__PURE__ */ f._(A()), b = O(), y = /* @__PURE__ */ f._(x()), w = /* @__PURE__ */ f._(F()), n = {
44
+ router: null,
45
+ readyCallbacks: [],
46
+ ready(e) {
47
+ if (this.router) return e();
48
+ typeof window < "u" && this.readyCallbacks.push(e);
49
+ }
50
+ }, d = [
51
+ "pathname",
52
+ "route",
53
+ "query",
54
+ "asPath",
55
+ "components",
56
+ "isFallback",
57
+ "basePath",
58
+ "locale",
59
+ "locales",
60
+ "defaultLocale",
61
+ "isReady",
62
+ "isPreview",
63
+ "isLocaleDomain",
64
+ "domainLocales"
65
+ ], C = [
66
+ "routeChangeStart",
67
+ "beforeHistoryChange",
68
+ "routeChangeComplete",
69
+ "routeChangeError",
70
+ "hashChangeStart",
71
+ "hashChangeComplete"
72
+ ], h = [
73
+ "push",
74
+ "replace",
75
+ "reload",
76
+ "back",
77
+ "prefetch",
78
+ "beforePopState"
79
+ ];
80
+ Object.defineProperty(n, "events", {
81
+ get() {
82
+ return i.default.events;
83
+ }
14
84
  });
15
- if (u)
16
- return () => {
17
- for (let t = 0; t < c.length; t++) {
18
- const e = c[t];
19
- typeof e == "function" ? e() : i(n[t], null);
85
+ function m() {
86
+ if (!n.router) {
87
+ const e = `No router instance found.
88
+ You should only use "next/router" on the client side of your app.
89
+ `;
90
+ throw new Error(e);
91
+ }
92
+ return n.router;
93
+ }
94
+ d.forEach((e) => {
95
+ Object.defineProperty(n, e, {
96
+ get() {
97
+ return m()[e];
20
98
  }
99
+ });
100
+ }), h.forEach((e) => {
101
+ n[e] = function() {
102
+ for (var o = arguments.length, t = new Array(o), r = 0; r < o; r++)
103
+ t[r] = arguments[r];
104
+ return m()[e](...t);
21
105
  };
22
- };
106
+ }), C.forEach((e) => {
107
+ n.ready(() => {
108
+ i.default.events.on(e, function() {
109
+ for (var o = arguments.length, t = new Array(o), r = 0; r < o; r++)
110
+ t[r] = arguments[r];
111
+ const s = "on" + e.charAt(0).toUpperCase() + e.substring(1), c = n;
112
+ if (c[s])
113
+ try {
114
+ c[s](...t);
115
+ } catch (a) {
116
+ console.error("Error when running the Router event: " + s), console.error((0, y.default)(a) ? a.message + `
117
+ ` + a.stack : a + "");
118
+ }
119
+ });
120
+ });
121
+ });
122
+ const v = n;
123
+ function q() {
124
+ const e = R.default.useContext(b.RouterContext);
125
+ if (!e)
126
+ throw new Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted");
127
+ return e;
128
+ }
129
+ function P() {
130
+ for (var e = arguments.length, o = new Array(e), t = 0; t < e; t++)
131
+ o[t] = arguments[t];
132
+ return n.router = new i.default(...o), n.readyCallbacks.forEach((r) => r()), n.readyCallbacks = [], n.router;
133
+ }
134
+ function E(e) {
135
+ const o = e, t = {};
136
+ for (const r of d) {
137
+ if (typeof o[r] == "object") {
138
+ t[r] = Object.assign(Array.isArray(o[r]) ? [] : {}, o[r]);
139
+ continue;
140
+ }
141
+ t[r] = o[r];
142
+ }
143
+ return t.events = i.default.events, h.forEach((r) => {
144
+ t[r] = function() {
145
+ for (var s = arguments.length, c = new Array(s), a = 0; a < s; a++)
146
+ c[a] = arguments[a];
147
+ return o[r](...c);
148
+ };
149
+ }), t;
150
+ }
151
+ (typeof u.default == "function" || typeof u.default == "object" && u.default !== null) && typeof u.default.__esModule > "u" && (Object.defineProperty(u.default, "__esModule", { value: !0 }), Object.assign(u.default, u), g.exports = u.default);
152
+ }(l, l.exports), l.exports);
23
153
  }
24
154
  export {
25
- f as composeRefs
155
+ W as __require
26
156
  };