@instockng/storefront-ui 1.0.96 → 1.0.97

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 (149) hide show
  1. package/dist/index100.mjs +69 -75
  2. package/dist/index101.mjs +2 -4
  3. package/dist/index102.mjs +6 -2
  4. package/dist/index103.mjs +1131 -80
  5. package/dist/index104.mjs +19 -53
  6. package/dist/index105.mjs +54 -5
  7. package/dist/index106.mjs +32 -4
  8. package/dist/index107.mjs +2 -179
  9. package/dist/index108.mjs +34 -50
  10. package/dist/index109.mjs +43 -69
  11. package/dist/index111.mjs +21 -2
  12. package/dist/index112.mjs +53 -25
  13. package/dist/index113.mjs +28 -17
  14. package/dist/index114.mjs +6 -214
  15. package/dist/index115.mjs +49 -177
  16. package/dist/index116.mjs +6 -22
  17. package/dist/index117.mjs +11 -22
  18. package/dist/index118.mjs +7 -33
  19. package/dist/index119.mjs +28 -156
  20. package/dist/index120.mjs +2 -20
  21. package/dist/index121.mjs +68 -29
  22. package/dist/index122.mjs +161 -78
  23. package/dist/index123.mjs +2 -38
  24. package/dist/index124.mjs +26 -143
  25. package/dist/index125.mjs +13 -50
  26. package/dist/index126.mjs +211 -19
  27. package/dist/index127.mjs +175 -22
  28. package/dist/index128.mjs +15 -16
  29. package/dist/index129.mjs +16 -18
  30. package/dist/index130.mjs +26 -14
  31. package/dist/index131.mjs +150 -16
  32. package/dist/index132.mjs +13 -14
  33. package/dist/index133.mjs +24 -58
  34. package/dist/index134.mjs +77 -11
  35. package/dist/index135.mjs +29 -30
  36. package/dist/index136.mjs +140 -19
  37. package/dist/index137.mjs +50 -29
  38. package/dist/index138.mjs +17 -21
  39. package/dist/index139.mjs +19 -11
  40. package/dist/index140.mjs +17 -15
  41. package/dist/index141.mjs +18 -40
  42. package/dist/index142.mjs +14 -16
  43. package/dist/index143.mjs +17 -263
  44. package/dist/index144.mjs +14 -63
  45. package/dist/index145.mjs +64 -7
  46. package/dist/index146.mjs +18 -2
  47. package/dist/index147.mjs +39 -2
  48. package/dist/index148.mjs +18 -27
  49. package/dist/index149.mjs +34 -2
  50. package/dist/index150.mjs +26 -20
  51. package/dist/index151.mjs +17 -54
  52. package/dist/index152.mjs +20 -28
  53. package/dist/index153.mjs +46 -6
  54. package/dist/index154.mjs +21 -50
  55. package/dist/index155.mjs +268 -6
  56. package/dist/index156.mjs +69 -11
  57. package/dist/index157.mjs +8 -7
  58. package/dist/index158.mjs +2 -28
  59. package/dist/index159.mjs +2 -2
  60. package/dist/index160.mjs +30 -67
  61. package/dist/index161.mjs +2 -167
  62. package/dist/index171.mjs +3 -3
  63. package/dist/index172.mjs +1 -1
  64. package/dist/index174.mjs +3 -3
  65. package/dist/index175.mjs +1 -1
  66. package/dist/index180.mjs +2 -2
  67. package/dist/index182.mjs +1 -1
  68. package/dist/index184.mjs +2 -2
  69. package/dist/index185.mjs +5 -5
  70. package/dist/index188.mjs +1 -1
  71. package/dist/index191.mjs +1 -1
  72. package/dist/index194.mjs +3 -3
  73. package/dist/index195.mjs +1 -1
  74. package/dist/index199.mjs +2 -2
  75. package/dist/index201.mjs +2 -2
  76. package/dist/index207.mjs +1 -1
  77. package/dist/index220.mjs +31 -2
  78. package/dist/index221.mjs +11 -13
  79. package/dist/index222.mjs +4 -7
  80. package/dist/index223.mjs +3 -30
  81. package/dist/index224.mjs +13 -11
  82. package/dist/index225.mjs +7 -4
  83. package/dist/index226.mjs +11 -3
  84. package/dist/index227.mjs +4 -11
  85. package/dist/index228.mjs +33 -5
  86. package/dist/index229.mjs +31 -33
  87. package/dist/index230.mjs +26 -29
  88. package/dist/index231.mjs +59 -26
  89. package/dist/index232.mjs +2 -61
  90. package/dist/index238.mjs +2 -2
  91. package/dist/index239.mjs +108 -2
  92. package/dist/index240.mjs +2 -2
  93. package/dist/index241.mjs +2 -108
  94. package/dist/index242.mjs +2 -2
  95. package/dist/index243.mjs +2 -2
  96. package/dist/index244.mjs +37 -2
  97. package/dist/index245.mjs +2 -37
  98. package/dist/index246.mjs +244 -2
  99. package/dist/index247.mjs +2 -244
  100. package/dist/index248.mjs +33 -2
  101. package/dist/index249.mjs +60 -28
  102. package/dist/index250.mjs +20 -60
  103. package/dist/index251.mjs +2 -25
  104. package/dist/index254.mjs +2 -2
  105. package/dist/index255.mjs +2 -2
  106. package/dist/index261.mjs +1 -1
  107. package/dist/index264.mjs +3 -2
  108. package/dist/index265.mjs +2 -18
  109. package/dist/index266.mjs +2 -47
  110. package/dist/index267.mjs +17 -2
  111. package/dist/index268.mjs +13 -2
  112. package/dist/index269.mjs +6 -2
  113. package/dist/index270.mjs +30 -2
  114. package/dist/index272.mjs +2 -91
  115. package/dist/index273.mjs +18 -3
  116. package/dist/index274.mjs +47 -2
  117. package/dist/index275.mjs +2 -2
  118. package/dist/index276.mjs +2 -17
  119. package/dist/index277.mjs +2 -13
  120. package/dist/index278.mjs +2 -6
  121. package/dist/index279.mjs +91 -30
  122. package/dist/index40.mjs +16 -16
  123. package/dist/index45.mjs +2 -2
  124. package/dist/index47.mjs +1 -1
  125. package/dist/index55.mjs +1 -1
  126. package/dist/index60.mjs +17 -17
  127. package/dist/index61.mjs +2 -2
  128. package/dist/index77.mjs +21 -20
  129. package/dist/index78.mjs +2 -24
  130. package/dist/index79.mjs +7 -7
  131. package/dist/index80.mjs +23 -2
  132. package/dist/index83.mjs +1 -1
  133. package/dist/index84.mjs +231 -33
  134. package/dist/index85.mjs +5 -42
  135. package/dist/index86.mjs +134 -2
  136. package/dist/index87.mjs +67 -5
  137. package/dist/index88.mjs +80 -1127
  138. package/dist/index89.mjs +28 -19
  139. package/dist/index90.mjs +8 -54
  140. package/dist/index91.mjs +72 -30
  141. package/dist/index92.mjs +4 -2
  142. package/dist/index93.mjs +2 -235
  143. package/dist/index94.mjs +82 -5
  144. package/dist/index95.mjs +50 -130
  145. package/dist/index96.mjs +4 -66
  146. package/dist/index97.mjs +4 -86
  147. package/dist/index98.mjs +176 -26
  148. package/dist/index99.mjs +52 -8
  149. package/package.json +2 -2
package/dist/index134.mjs CHANGED
@@ -1,21 +1,87 @@
1
1
  'use client';
2
- import { __exports as r } from "./index203.mjs";
3
- var i;
4
- function n() {
5
- return i ? r : (i = 1, function(t) {
6
- Object.defineProperty(t, "__esModule", {
2
+ import { __exports as f } from "./index183.mjs";
3
+ import { __require as z } from "./index184.mjs";
4
+ import { __require as A } from "./index185.mjs";
5
+ import { __require as F } from "./index125.mjs";
6
+ import { __require as O } from "./index129.mjs";
7
+ import { __require as U } from "./index142.mjs";
8
+ import { __require as B } from "./index133.mjs";
9
+ var k;
10
+ function X() {
11
+ return k ? f : (k = 1, function(h) {
12
+ Object.defineProperty(h, "__esModule", {
7
13
  value: !0
8
- }), Object.defineProperty(t, "isAPIRoute", {
14
+ }), Object.defineProperty(h, "default", {
9
15
  enumerable: !0,
10
16
  get: function() {
11
- return u;
17
+ return j;
12
18
  }
13
19
  });
14
- function u(e) {
15
- return e === "/api" || !!(e != null && e.startsWith("/api/"));
20
+ const y = z(), p = A(), _ = F(), d = O(), v = U(), T = B();
21
+ function j(o, m, a, q, g, R) {
22
+ let r = !1, P = !1, l = (0, T.parseRelativeUrl)(o), i = (0, _.removeTrailingSlash)((0, d.normalizeLocalePath)((0, v.removeBasePath)(l.pathname), R).pathname), t;
23
+ const c = (e) => {
24
+ let u = (0, y.getPathMatch)(e.source + (process.env.__NEXT_TRAILING_SLASH ? "(/)?" : ""), {
25
+ removeUnnamedParams: !0,
26
+ strict: !0
27
+ })(l.pathname);
28
+ if ((e.has || e.missing) && u) {
29
+ const n = (0, p.matchHas)({
30
+ headers: {
31
+ host: document.location.hostname,
32
+ "user-agent": navigator.userAgent
33
+ },
34
+ cookies: document.cookie.split("; ").reduce((b, D) => {
35
+ const [L, ...S] = D.split("=");
36
+ return b[L] = S.join("="), b;
37
+ }, {})
38
+ }, l.query, e.has, e.missing);
39
+ n ? Object.assign(u, n) : u = !1;
40
+ }
41
+ if (u) {
42
+ if (!e.destination)
43
+ return P = !0, !0;
44
+ const n = (0, p.prepareDestination)({
45
+ appendParamsToQuery: !0,
46
+ destination: e.destination,
47
+ params: u,
48
+ query: q
49
+ });
50
+ if (l = n.parsedDestination, o = n.newUrl, Object.assign(q, n.parsedDestination.query), i = (0, _.removeTrailingSlash)((0, d.normalizeLocalePath)((0, v.removeBasePath)(o), R).pathname), m.includes(i))
51
+ return r = !0, t = i, !0;
52
+ if (t = g(i), t !== o && m.includes(t))
53
+ return r = !0, !0;
54
+ }
55
+ };
56
+ let s = !1;
57
+ for (let e = 0; e < a.beforeFiles.length; e++)
58
+ c(a.beforeFiles[e]);
59
+ if (r = m.includes(i), !r) {
60
+ if (!s) {
61
+ for (let e = 0; e < a.afterFiles.length; e++)
62
+ if (c(a.afterFiles[e])) {
63
+ s = !0;
64
+ break;
65
+ }
66
+ }
67
+ if (s || (t = g(i), r = m.includes(t), s = r), !s) {
68
+ for (let e = 0; e < a.fallback.length; e++)
69
+ if (c(a.fallback[e])) {
70
+ s = !0;
71
+ break;
72
+ }
73
+ }
74
+ }
75
+ return {
76
+ asPath: o,
77
+ parsedAs: l,
78
+ matchedPage: r,
79
+ resolvedHref: t,
80
+ externalDest: P
81
+ };
16
82
  }
17
- }(r), r);
83
+ }(f), f);
18
84
  }
19
85
  export {
20
- n as __require
86
+ X as __require
21
87
  };
package/dist/index135.mjs CHANGED
@@ -1,42 +1,41 @@
1
1
  'use client';
2
- import { __exports as l } from "./index204.mjs";
3
- import { __require as _ } from "./index117.mjs";
4
- import { __require as v } from "./index205.mjs";
5
- import { __require as q } from "./index201.mjs";
2
+ import { __exports as n } from "./index186.mjs";
3
+ import { __require as l } from "./index131.mjs";
6
4
  var s;
7
- function N() {
8
- return s ? l : (s = 1, function(h) {
9
- Object.defineProperty(h, "__esModule", {
5
+ function q() {
6
+ return s ? n : (s = 1, function(u) {
7
+ Object.defineProperty(u, "__esModule", {
10
8
  value: !0
11
- }), Object.defineProperty(h, "getNextPathnameInfo", {
9
+ }), Object.defineProperty(u, "getRouteMatcher", {
12
10
  enumerable: !0,
13
11
  get: function() {
14
- return p;
12
+ return d;
15
13
  }
16
14
  });
17
- const c = _(), u = v(), d = q();
18
- function p(i, t) {
19
- var f;
20
- const { basePath: r, i18n: o, trailingSlash: P } = (f = t.nextConfig) != null ? f : {}, e = {
21
- pathname: i,
22
- trailingSlash: i !== "/" ? i.endsWith("/") : P
15
+ const f = l();
16
+ function d(p) {
17
+ let { re: h, groups: c } = p;
18
+ return (_) => {
19
+ const a = h.exec(_);
20
+ if (!a)
21
+ return !1;
22
+ const t = (r) => {
23
+ try {
24
+ return decodeURIComponent(r);
25
+ } catch {
26
+ throw new f.DecodeError("failed to decode param");
27
+ }
28
+ }, i = {};
29
+ return Object.keys(c).forEach((r) => {
30
+ const o = c[r], e = a[o.pos];
31
+ e !== void 0 && (i[r] = ~e.indexOf("/") ? e.split("/").map((m) => t(m)) : o.repeat ? [
32
+ t(e)
33
+ ] : t(e));
34
+ }), i;
23
35
  };
24
- r && (0, d.pathHasPrefix)(e.pathname, r) && (e.pathname = (0, u.removePathPrefix)(e.pathname, r), e.basePath = r);
25
- let n = e.pathname;
26
- if (e.pathname.startsWith("/_next/data/") && e.pathname.endsWith(".json")) {
27
- const a = e.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), x = a[0];
28
- e.buildId = x, n = a[1] !== "index" ? "/" + a.slice(1).join("/") : "/", t.parseData === !0 && (e.pathname = n);
29
- }
30
- if (o) {
31
- let a = t.i18nProvider ? t.i18nProvider.analyze(e.pathname) : (0, c.normalizeLocalePath)(e.pathname, o.locales);
32
- e.locale = a.detectedLocale;
33
- var m;
34
- e.pathname = (m = a.pathname) != null ? m : e.pathname, !a.detectedLocale && e.buildId && (a = t.i18nProvider ? t.i18nProvider.analyze(n) : (0, c.normalizeLocalePath)(n, o.locales), a.detectedLocale && (e.locale = a.detectedLocale));
35
- }
36
- return e;
37
36
  }
38
- }(l), l);
37
+ }(n), n);
39
38
  }
40
39
  export {
41
- N as __require
40
+ q as __require
42
41
  };
package/dist/index136.mjs CHANGED
@@ -1,27 +1,148 @@
1
1
  'use client';
2
- import { __exports as r } from "./index206.mjs";
3
- import { __require as m } from "./index113.mjs";
4
- import { __require as f } from "./index199.mjs";
5
- import { __require as h } from "./index207.mjs";
6
- import { __require as s } from "./index195.mjs";
7
- var n;
8
- function q() {
9
- return n ? r : (n = 1, function(t) {
10
- Object.defineProperty(t, "__esModule", {
2
+ import { __exports as p } from "./index187.mjs";
3
+ import { __require as I } from "./index155.mjs";
4
+ import { __require as q } from "./index180.mjs";
5
+ import { __require as v } from "./index188.mjs";
6
+ import { __require as O } from "./index125.mjs";
7
+ var N;
8
+ function w() {
9
+ return N ? p : (N = 1, function(d) {
10
+ Object.defineProperty(d, "__esModule", {
11
11
  value: !0
12
- }), Object.defineProperty(t, "formatNextPathnameInfo", {
13
- enumerable: !0,
14
- get: function() {
15
- return l;
12
+ });
13
+ function T(e, t) {
14
+ for (var r in t) Object.defineProperty(e, r, {
15
+ enumerable: !0,
16
+ get: t[r]
17
+ });
18
+ }
19
+ T(d, {
20
+ getNamedMiddlewareRegex: function() {
21
+ return A;
22
+ },
23
+ getNamedRouteRegex: function() {
24
+ return k;
25
+ },
26
+ getRouteRegex: function() {
27
+ return E;
28
+ },
29
+ parseParameter: function() {
30
+ return S;
16
31
  }
17
32
  });
18
- const i = m(), d = f(), u = h(), o = s();
19
- function l(e) {
20
- let a = (0, o.addLocale)(e.pathname, e.locale, e.buildId ? void 0 : e.defaultLocale, e.ignorePrefix);
21
- return (e.buildId || !e.trailingSlash) && (a = (0, i.removeTrailingSlash)(a)), e.buildId && (a = (0, u.addPathSuffix)((0, d.addPathPrefix)(a, "/_next/data/" + e.buildId), e.pathname === "/" ? "index.json" : ".json")), a = (0, d.addPathPrefix)(a, e.basePath), !e.buildId && e.trailingSlash ? a.endsWith("/") ? a : (0, u.addPathSuffix)(a, "/") : (0, i.removeTrailingSlash)(a);
33
+ const m = I(), _ = q(), l = v(), h = O(), x = /\[((?:\[.*\])|.+)\]/;
34
+ function S(e) {
35
+ const t = e.match(x);
36
+ return R(t ? t[1] : e);
37
+ }
38
+ function R(e) {
39
+ const t = e.startsWith("[") && e.endsWith("]");
40
+ t && (e = e.slice(1, -1));
41
+ const r = e.startsWith("...");
42
+ return r && (e = e.slice(3)), {
43
+ key: e,
44
+ repeat: r,
45
+ optional: t
46
+ };
47
+ }
48
+ function P(e) {
49
+ const t = (0, h.removeTrailingSlash)(e).slice(1).split("/"), r = {};
50
+ let u = 1;
51
+ return {
52
+ parameterizedRoute: t.map((s) => {
53
+ const o = _.INTERCEPTION_ROUTE_MARKERS.find((i) => s.startsWith(i)), a = s.match(x);
54
+ if (o && a) {
55
+ const { key: i, optional: c, repeat: n } = R(a[1]);
56
+ return r[i] = {
57
+ pos: u++,
58
+ repeat: n,
59
+ optional: c
60
+ }, "/" + (0, l.escapeStringRegexp)(o) + "([^/]+?)";
61
+ } else if (a) {
62
+ const { key: i, repeat: c, optional: n } = R(a[1]);
63
+ return r[i] = {
64
+ pos: u++,
65
+ repeat: c,
66
+ optional: n
67
+ }, c ? n ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
68
+ } else
69
+ return "/" + (0, l.escapeStringRegexp)(s);
70
+ }).join(""),
71
+ groups: r
72
+ };
73
+ }
74
+ function E(e) {
75
+ const { parameterizedRoute: t, groups: r } = P(e);
76
+ return {
77
+ re: new RegExp("^" + t + "(?:/)?$"),
78
+ groups: r
79
+ };
80
+ }
81
+ function K() {
82
+ let e = 0;
83
+ return () => {
84
+ let t = "", r = ++e;
85
+ for (; r > 0; )
86
+ t += String.fromCharCode(97 + (r - 1) % 26), r = Math.floor((r - 1) / 26);
87
+ return t;
88
+ };
89
+ }
90
+ function y(e) {
91
+ let { interceptionMarker: t, getSafeRouteKey: r, segment: u, routeKeys: s, keyPrefix: o } = e;
92
+ const { key: a, optional: i, repeat: c } = R(u);
93
+ let n = a.replace(/\W/g, "");
94
+ o && (n = "" + o + n);
95
+ let f = !1;
96
+ (n.length === 0 || n.length > 30) && (f = !0), isNaN(parseInt(n.slice(0, 1))) || (f = !0), f && (n = r()), o ? s[n] = "" + o + a : s[n] = a;
97
+ const g = t ? (0, l.escapeStringRegexp)(t) : "";
98
+ return c ? i ? "(?:/" + g + "(?<" + n + ">.+?))?" : "/" + g + "(?<" + n + ">.+?)" : "/" + g + "(?<" + n + ">[^/]+?)";
99
+ }
100
+ function M(e, t) {
101
+ const r = (0, h.removeTrailingSlash)(e).slice(1).split("/"), u = K(), s = {};
102
+ return {
103
+ namedParameterizedRoute: r.map((o) => {
104
+ const a = _.INTERCEPTION_ROUTE_MARKERS.some((c) => o.startsWith(c)), i = o.match(/\[((?:\[.*\])|.+)\]/);
105
+ if (a && i) {
106
+ const [c] = o.split(i[0]);
107
+ return y({
108
+ getSafeRouteKey: u,
109
+ interceptionMarker: c,
110
+ segment: i[1],
111
+ routeKeys: s,
112
+ keyPrefix: t ? m.NEXT_INTERCEPTION_MARKER_PREFIX : void 0
113
+ });
114
+ } else return i ? y({
115
+ getSafeRouteKey: u,
116
+ segment: i[1],
117
+ routeKeys: s,
118
+ keyPrefix: t ? m.NEXT_QUERY_PARAM_PREFIX : void 0
119
+ }) : "/" + (0, l.escapeStringRegexp)(o);
120
+ }).join(""),
121
+ routeKeys: s
122
+ };
123
+ }
124
+ function k(e, t) {
125
+ const r = M(e, t);
126
+ return {
127
+ ...E(e),
128
+ namedRegex: "^" + r.namedParameterizedRoute + "(?:/)?$",
129
+ routeKeys: r.routeKeys
130
+ };
131
+ }
132
+ function A(e, t) {
133
+ const { parameterizedRoute: r } = P(e), { catchAll: u = !0 } = t;
134
+ if (r === "/")
135
+ return {
136
+ namedRegex: "^/" + (u ? ".*" : "") + "$"
137
+ };
138
+ const { namedParameterizedRoute: s } = M(e, !1);
139
+ let o = u ? "(?:(/.*)?)" : "";
140
+ return {
141
+ namedRegex: "^" + s + o + "$"
142
+ };
22
143
  }
23
- }(r), r);
144
+ }(p), p);
24
145
  }
25
146
  export {
26
- q as __require
147
+ w as __require
27
148
  };
package/dist/index137.mjs CHANGED
@@ -1,37 +1,58 @@
1
1
  'use client';
2
- import { __exports as o } from "./index208.mjs";
3
- var c;
4
- function p() {
5
- return c ? o : (c = 1, function(a) {
6
- Object.defineProperty(a, "__esModule", {
2
+ import { __exports as c } from "./index189.mjs";
3
+ import { __require as y } from "./index124.mjs";
4
+ import { __require as U } from "./index182.mjs";
5
+ var l;
6
+ function x() {
7
+ return l ? c : (l = 1, function(h) {
8
+ Object.defineProperty(h, "__esModule", {
7
9
  value: !0
8
- }), Object.defineProperty(a, "compareRouterStates", {
9
- enumerable: !0,
10
- get: function() {
11
- return i;
12
- }
13
10
  });
14
- function i(r, e) {
15
- const n = Object.keys(r);
16
- if (n.length !== Object.keys(e).length) return !1;
17
- for (let y = n.length; y--; ) {
18
- const t = n[y];
19
- if (t === "query") {
20
- const u = Object.keys(r.query);
21
- if (u.length !== Object.keys(e.query).length)
22
- return !1;
23
- for (let f = u.length; f--; ) {
24
- const s = u[f];
25
- if (!e.query.hasOwnProperty(s) || r.query[s] !== e.query[s])
26
- return !1;
27
- }
28
- } else if (!e.hasOwnProperty(t) || r[t] !== e[t])
29
- return !1;
11
+ function m(e, t) {
12
+ for (var o in t) Object.defineProperty(e, o, {
13
+ enumerable: !0,
14
+ get: t[o]
15
+ });
16
+ }
17
+ m(h, {
18
+ formatUrl: function() {
19
+ return p;
20
+ },
21
+ formatWithValidation: function() {
22
+ return q;
23
+ },
24
+ urlObjectKeys: function() {
25
+ return u;
30
26
  }
31
- return !0;
27
+ });
28
+ const _ = /* @__PURE__ */ y()._(U()), d = /https?|ftp|gopher|file/;
29
+ function p(e) {
30
+ let { auth: t, hostname: o } = e, a = e.protocol || "", n = e.pathname || "", f = e.hash || "", s = e.query || "", r = !1;
31
+ t = t ? encodeURIComponent(t).replace(/%3A/i, ":") + "@" : "", e.host ? r = t + e.host : o && (r = t + (~o.indexOf(":") ? "[" + o + "]" : o), e.port && (r += ":" + e.port)), s && typeof s == "object" && (s = String(_.urlQueryToSearchParams(s)));
32
+ let i = e.search || s && "?" + s || "";
33
+ return a && !a.endsWith(":") && (a += ":"), e.slashes || (!a || d.test(a)) && r !== !1 ? (r = "//" + (r || ""), n && n[0] !== "/" && (n = "/" + n)) : r || (r = ""), f && f[0] !== "#" && (f = "#" + f), i && i[0] !== "?" && (i = "?" + i), n = n.replace(/[?#]/g, encodeURIComponent), i = i.replace("#", "%23"), "" + a + r + n + i + f;
34
+ }
35
+ const u = [
36
+ "auth",
37
+ "hash",
38
+ "host",
39
+ "hostname",
40
+ "href",
41
+ "path",
42
+ "pathname",
43
+ "port",
44
+ "protocol",
45
+ "query",
46
+ "search",
47
+ "slashes"
48
+ ];
49
+ function q(e) {
50
+ return process.env.NODE_ENV === "development" && e !== null && typeof e == "object" && Object.keys(e).forEach((t) => {
51
+ u.includes(t) || console.warn("Unknown key passed via urlObject into url.format: " + t);
52
+ }), p(e);
32
53
  }
33
- }(o), o);
54
+ }(c), c);
34
55
  }
35
56
  export {
36
- p as __require
57
+ x as __require
37
58
  };
package/dist/index138.mjs CHANGED
@@ -1,30 +1,26 @@
1
1
  'use client';
2
- import { __exports as r } from "./index209.mjs";
3
- import { __require as c } from "./index119.mjs";
4
- import { __require as l } from "./index132.mjs";
5
- var n;
6
- function h() {
7
- return n ? r : (n = 1, function(t) {
8
- Object.defineProperty(t, "__esModule", {
2
+ import { __module as u } from "./index190.mjs";
3
+ import { __require as c } from "./index191.mjs";
4
+ var a;
5
+ function d() {
6
+ return a ? u.exports : (a = 1, function(o, e) {
7
+ Object.defineProperty(e, "__esModule", {
9
8
  value: !0
10
- }), Object.defineProperty(t, "isLocalURL", {
9
+ }), Object.defineProperty(e, "detectDomainLocale", {
11
10
  enumerable: !0,
12
11
  get: function() {
13
- return u;
12
+ return i;
14
13
  }
15
14
  });
16
- const i = c(), s = l();
17
- function u(o) {
18
- if (!(0, i.isAbsoluteUrl)(o)) return !0;
19
- try {
20
- const e = (0, i.getLocationOrigin)(), a = new URL(o, e);
21
- return a.origin === e && (0, s.hasBasePath)(a.pathname);
22
- } catch {
23
- return !1;
24
- }
25
- }
26
- }(r), r);
15
+ const i = function() {
16
+ for (var n = arguments.length, r = new Array(n), t = 0; t < n; t++)
17
+ r[t] = arguments[t];
18
+ if (process.env.__NEXT_I18N_SUPPORT)
19
+ return c().detectDomainLocale(...r);
20
+ };
21
+ (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), o.exports = e.default);
22
+ }(u, u.exports), u.exports);
27
23
  }
28
24
  export {
29
- h as __require
25
+ d as __require
30
26
  };
package/dist/index139.mjs CHANGED
@@ -1,22 +1,30 @@
1
1
  'use client';
2
- import { __exports as e } from "./index210.mjs";
3
- var t;
4
- function u() {
5
- return t ? e : (t = 1, function(o) {
6
- Object.defineProperty(o, "__esModule", {
2
+ import { __exports as u } from "./index192.mjs";
3
+ var a;
4
+ function f() {
5
+ return a ? u : (a = 1, function(s) {
6
+ Object.defineProperty(s, "__esModule", {
7
7
  value: !0
8
- }), Object.defineProperty(o, "isBot", {
8
+ }), Object.defineProperty(s, "parsePath", {
9
9
  enumerable: !0,
10
10
  get: function() {
11
11
  return i;
12
12
  }
13
13
  });
14
- const r = /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i;
15
- function i(n) {
16
- return r.test(n);
14
+ function i(r) {
15
+ const e = r.indexOf("#"), n = r.indexOf("?"), t = n > -1 && (e < 0 || n < e);
16
+ return t || e > -1 ? {
17
+ pathname: r.substring(0, t ? n : e),
18
+ query: t ? r.substring(n, e > -1 ? e : void 0) : "",
19
+ hash: e > -1 ? r.slice(e) : ""
20
+ } : {
21
+ pathname: r,
22
+ query: "",
23
+ hash: ""
24
+ };
17
25
  }
18
- }(e), e);
26
+ }(u), u);
19
27
  }
20
28
  export {
21
- u as __require
29
+ f as __require
22
30
  };
package/dist/index140.mjs CHANGED
@@ -1,24 +1,26 @@
1
1
  'use client';
2
- import { __exports as r } from "./index211.mjs";
3
- var u;
4
- function m() {
5
- return u ? r : (u = 1, function(t) {
6
- Object.defineProperty(t, "__esModule", {
2
+ import { __module as a } from "./index193.mjs";
3
+ import { __require as f } from "./index194.mjs";
4
+ import { __require as c } from "./index195.mjs";
5
+ var i;
6
+ function g() {
7
+ return i ? a.exports : (i = 1, function(o, e) {
8
+ Object.defineProperty(e, "__esModule", {
7
9
  value: !0
8
- }), Object.defineProperty(t, "omit", {
10
+ }), Object.defineProperty(e, "addLocale", {
9
11
  enumerable: !0,
10
12
  get: function() {
11
- return o;
13
+ return l;
12
14
  }
13
15
  });
14
- function o(i, f) {
15
- const n = {};
16
- return Object.keys(i).forEach((e) => {
17
- f.includes(e) || (n[e] = i[e]);
18
- }), n;
19
- }
20
- }(r), r);
16
+ const d = f(), l = function(t) {
17
+ for (var u = arguments.length, n = new Array(u > 1 ? u - 1 : 0), r = 1; r < u; r++)
18
+ n[r - 1] = arguments[r];
19
+ return process.env.__NEXT_I18N_SUPPORT ? (0, d.normalizePathTrailingSlash)(c().addLocale(t, ...n)) : t;
20
+ };
21
+ (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), o.exports = e.default);
22
+ }(a, a.exports), a.exports);
21
23
  }
22
24
  export {
23
- m as __require
25
+ g as __require
24
26
  };
package/dist/index141.mjs CHANGED
@@ -1,50 +1,28 @@
1
1
  'use client';
2
- import { __exports as u } from "./index212.mjs";
3
- import { __require as A } from "./index123.mjs";
4
- import { __require as x } from "./index124.mjs";
5
- var d;
6
- function v() {
7
- return d ? u : (d = 1, function(c) {
8
- Object.defineProperty(c, "__esModule", {
2
+ import { __module as o } from "./index196.mjs";
3
+ import { __require as d } from "./index139.mjs";
4
+ var f;
5
+ function m() {
6
+ return f ? o.exports : (f = 1, function(i, e) {
7
+ Object.defineProperty(e, "__esModule", {
9
8
  value: !0
10
- }), Object.defineProperty(c, "interpolateAs", {
9
+ }), Object.defineProperty(e, "removeLocale", {
11
10
  enumerable: !0,
12
11
  get: function() {
13
- return y;
12
+ return c;
14
13
  }
15
14
  });
16
- const m = A(), R = x();
17
- function y(o, s, g) {
18
- let t = "";
19
- const a = (0, R.getRouteRegex)(o), p = a.groups, l = (
20
- // Try to match the dynamic route against the asPath
21
- (s !== o ? (0, m.getRouteMatcher)(a)(s) : "") || // Fall back to reading the values from the href
22
- // TODO: should this take priority; also need to change in the router.
23
- g
24
- );
25
- t = o;
26
- const f = Object.keys(p);
27
- return f.every((r) => {
28
- let e = l[r] || "";
29
- const { repeat: n, optional: _ } = p[r];
30
- let i = "[" + (n ? "..." : "") + r + "]";
31
- return _ && (i = (e ? "" : "/") + "[" + i + "]"), n && !Array.isArray(e) && (e = [
32
- e
33
- ]), (_ || r in l) && // Interpolate group into data URL if present
34
- (t = t.replace(i, n ? e.map(
35
- // these values should be fully encoded instead of just
36
- // path delimiter escaped since they are being inserted
37
- // into the URL and we expect URL encoded segments
38
- // when parsing dynamic route params
39
- (q) => encodeURIComponent(q)
40
- ).join("/") : encodeURIComponent(e)) || "/");
41
- }) || (t = ""), {
42
- params: f,
43
- result: t
44
- };
15
+ const l = d();
16
+ function c(r, t) {
17
+ if (process.env.__NEXT_I18N_SUPPORT) {
18
+ const { pathname: u } = (0, l.parsePath)(r), n = u.toLowerCase(), a = t == null ? void 0 : t.toLowerCase();
19
+ return t && (n.startsWith("/" + a + "/") || n === "/" + a) ? (u.length === t.length + 1 ? "/" : "") + r.slice(t.length + 1) : r;
20
+ }
21
+ return r;
45
22
  }
46
- }(u), u);
23
+ (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), i.exports = e.default);
24
+ }(o, o.exports), o.exports);
47
25
  }
48
26
  export {
49
- v as __require
27
+ m as __require
50
28
  };