@khraben/flowui 1.0.2 → 1.0.4
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.
- package/dist/LICENSE +21 -0
- package/dist/README.md +758 -0
- package/{index.js → dist/index.js} +311 -2858
- package/dist/index.js.map +1 -0
- package/{index.mjs → dist/index.mjs} +311 -2858
- package/dist/index.mjs.map +1 -0
- package/dist/package.json +41 -0
- package/package.json +59 -23
- package/index.js.map +0 -1
- package/index.mjs.map +0 -1
- /package/{index.d.mts → dist/index.d.mts} +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
|
@@ -7,6 +7,7 @@ var ReactDatePicker = require('react-datepicker');
|
|
|
7
7
|
var lucideReact = require('lucide-react');
|
|
8
8
|
var locale = require('date-fns/locale');
|
|
9
9
|
require('react-datepicker/dist/react-datepicker.css');
|
|
10
|
+
var navigation = require('next/navigation');
|
|
10
11
|
var framerMotion = require('framer-motion');
|
|
11
12
|
|
|
12
13
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -14,2513 +15,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
14
15
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
15
16
|
var ReactDatePicker__default = /*#__PURE__*/_interopDefault(ReactDatePicker);
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
var __defProp = Object.defineProperty;
|
|
19
|
-
var __defProps = Object.defineProperties;
|
|
20
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
21
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
22
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
23
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
24
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
25
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
26
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
27
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
28
|
-
var __spreadValues = (a, b) => {
|
|
29
|
-
for (var prop in b || (b = {}))
|
|
30
|
-
if (__hasOwnProp.call(b, prop))
|
|
31
|
-
__defNormalProp(a, prop, b[prop]);
|
|
32
|
-
if (__getOwnPropSymbols)
|
|
33
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
34
|
-
if (__propIsEnum.call(b, prop))
|
|
35
|
-
__defNormalProp(a, prop, b[prop]);
|
|
36
|
-
}
|
|
37
|
-
return a;
|
|
38
|
-
};
|
|
39
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
40
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
41
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
42
|
-
}) : x)(function(x) {
|
|
43
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
44
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
45
|
-
});
|
|
46
|
-
var __objRest = (source, exclude) => {
|
|
47
|
-
var target = {};
|
|
48
|
-
for (var prop in source)
|
|
49
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
50
|
-
target[prop] = source[prop];
|
|
51
|
-
if (source != null && __getOwnPropSymbols)
|
|
52
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
53
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
54
|
-
target[prop] = source[prop];
|
|
55
|
-
}
|
|
56
|
-
return target;
|
|
57
|
-
};
|
|
58
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
59
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
60
|
-
};
|
|
61
|
-
var __copyProps = (to, from, except, desc) => {
|
|
62
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
63
|
-
for (let key of __getOwnPropNames(from))
|
|
64
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
65
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
66
|
-
}
|
|
67
|
-
return to;
|
|
68
|
-
};
|
|
69
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
70
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
71
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
72
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
73
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
74
|
-
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
75
|
-
mod
|
|
76
|
-
));
|
|
77
|
-
|
|
78
|
-
// node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
|
|
79
|
-
var require_interop_require_wildcard = __commonJS({
|
|
80
|
-
"node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports$1) {
|
|
81
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
82
|
-
if (typeof WeakMap !== "function") return null;
|
|
83
|
-
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
84
|
-
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
85
|
-
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
86
|
-
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
87
|
-
})(nodeInterop);
|
|
88
|
-
}
|
|
89
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
90
|
-
if (!nodeInterop && obj && obj.__esModule) return obj;
|
|
91
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
|
|
92
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
93
|
-
if (cache && cache.has(obj)) return cache.get(obj);
|
|
94
|
-
var newObj = { __proto__: null };
|
|
95
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
96
|
-
for (var key in obj) {
|
|
97
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
98
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
99
|
-
if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
|
|
100
|
-
else newObj[key] = obj[key];
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
newObj.default = obj;
|
|
104
|
-
if (cache) cache.set(obj, newObj);
|
|
105
|
-
return newObj;
|
|
106
|
-
}
|
|
107
|
-
exports$1._ = _interop_require_wildcard;
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
// node_modules/@swc/helpers/cjs/_interop_require_default.cjs
|
|
112
|
-
var require_interop_require_default = __commonJS({
|
|
113
|
-
"node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports$1) {
|
|
114
|
-
function _interop_require_default(obj) {
|
|
115
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
116
|
-
}
|
|
117
|
-
exports$1._ = _interop_require_default;
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
// node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js
|
|
122
|
-
var require_app_router_context_shared_runtime = __commonJS({
|
|
123
|
-
"node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js"(exports$1) {
|
|
124
|
-
"use client";
|
|
125
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
126
|
-
value: true
|
|
127
|
-
});
|
|
128
|
-
function _export(target, all) {
|
|
129
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
130
|
-
enumerable: true,
|
|
131
|
-
get: all[name]
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
_export(exports$1, {
|
|
135
|
-
AppRouterContext: function() {
|
|
136
|
-
return AppRouterContext;
|
|
137
|
-
},
|
|
138
|
-
GlobalLayoutRouterContext: function() {
|
|
139
|
-
return GlobalLayoutRouterContext;
|
|
140
|
-
},
|
|
141
|
-
LayoutRouterContext: function() {
|
|
142
|
-
return LayoutRouterContext;
|
|
143
|
-
},
|
|
144
|
-
MissingSlotContext: function() {
|
|
145
|
-
return MissingSlotContext;
|
|
146
|
-
},
|
|
147
|
-
TemplateContext: function() {
|
|
148
|
-
return TemplateContext;
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
var _interop_require_default = require_interop_require_default();
|
|
152
|
-
var _react = /* @__PURE__ */ _interop_require_default._(__require("react"));
|
|
153
|
-
var AppRouterContext = _react.default.createContext(null);
|
|
154
|
-
var LayoutRouterContext = _react.default.createContext(null);
|
|
155
|
-
var GlobalLayoutRouterContext = _react.default.createContext(null);
|
|
156
|
-
var TemplateContext = _react.default.createContext(null);
|
|
157
|
-
if (process.env.NODE_ENV !== "production") {
|
|
158
|
-
AppRouterContext.displayName = "AppRouterContext";
|
|
159
|
-
LayoutRouterContext.displayName = "LayoutRouterContext";
|
|
160
|
-
GlobalLayoutRouterContext.displayName = "GlobalLayoutRouterContext";
|
|
161
|
-
TemplateContext.displayName = "TemplateContext";
|
|
162
|
-
}
|
|
163
|
-
var MissingSlotContext = _react.default.createContext(/* @__PURE__ */ new Set());
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
// node_modules/next/dist/client/components/readonly-url-search-params.js
|
|
168
|
-
var require_readonly_url_search_params = __commonJS({
|
|
169
|
-
"node_modules/next/dist/client/components/readonly-url-search-params.js"(exports$1, module) {
|
|
170
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
171
|
-
value: true
|
|
172
|
-
});
|
|
173
|
-
Object.defineProperty(exports$1, "ReadonlyURLSearchParams", {
|
|
174
|
-
enumerable: true,
|
|
175
|
-
get: function() {
|
|
176
|
-
return ReadonlyURLSearchParams;
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
var ReadonlyURLSearchParamsError = class extends Error {
|
|
180
|
-
constructor() {
|
|
181
|
-
super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams");
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
var ReadonlyURLSearchParams = class extends URLSearchParams {
|
|
185
|
-
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
|
186
|
-
append() {
|
|
187
|
-
throw new ReadonlyURLSearchParamsError();
|
|
188
|
-
}
|
|
189
|
-
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
|
190
|
-
delete() {
|
|
191
|
-
throw new ReadonlyURLSearchParamsError();
|
|
192
|
-
}
|
|
193
|
-
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
|
194
|
-
set() {
|
|
195
|
-
throw new ReadonlyURLSearchParamsError();
|
|
196
|
-
}
|
|
197
|
-
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
|
198
|
-
sort() {
|
|
199
|
-
throw new ReadonlyURLSearchParamsError();
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
203
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
204
|
-
Object.assign(exports$1.default, exports$1);
|
|
205
|
-
module.exports = exports$1.default;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
// node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js
|
|
211
|
-
var require_hooks_client_context_shared_runtime = __commonJS({
|
|
212
|
-
"node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js"(exports$1) {
|
|
213
|
-
"use client";
|
|
214
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
215
|
-
value: true
|
|
216
|
-
});
|
|
217
|
-
function _export(target, all) {
|
|
218
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
219
|
-
enumerable: true,
|
|
220
|
-
get: all[name]
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
_export(exports$1, {
|
|
224
|
-
NavigationPromisesContext: function() {
|
|
225
|
-
return NavigationPromisesContext;
|
|
226
|
-
},
|
|
227
|
-
PathParamsContext: function() {
|
|
228
|
-
return PathParamsContext;
|
|
229
|
-
},
|
|
230
|
-
PathnameContext: function() {
|
|
231
|
-
return PathnameContext;
|
|
232
|
-
},
|
|
233
|
-
ReadonlyURLSearchParams: function() {
|
|
234
|
-
return _readonlyurlsearchparams.ReadonlyURLSearchParams;
|
|
235
|
-
},
|
|
236
|
-
SearchParamsContext: function() {
|
|
237
|
-
return SearchParamsContext;
|
|
238
|
-
},
|
|
239
|
-
createDevToolsInstrumentedPromise: function() {
|
|
240
|
-
return createDevToolsInstrumentedPromise;
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
var _react = __require("react");
|
|
244
|
-
var _readonlyurlsearchparams = require_readonly_url_search_params();
|
|
245
|
-
var SearchParamsContext = (0, _react.createContext)(null);
|
|
246
|
-
var PathnameContext = (0, _react.createContext)(null);
|
|
247
|
-
var PathParamsContext = (0, _react.createContext)(null);
|
|
248
|
-
var NavigationPromisesContext = (0, _react.createContext)(null);
|
|
249
|
-
function createDevToolsInstrumentedPromise(displayName, value) {
|
|
250
|
-
const promise = Promise.resolve(value);
|
|
251
|
-
promise.status = "fulfilled";
|
|
252
|
-
promise.value = value;
|
|
253
|
-
promise.displayName = `${displayName} (SSR)`;
|
|
254
|
-
return promise;
|
|
255
|
-
}
|
|
256
|
-
if (process.env.NODE_ENV !== "production") {
|
|
257
|
-
SearchParamsContext.displayName = "SearchParamsContext";
|
|
258
|
-
PathnameContext.displayName = "PathnameContext";
|
|
259
|
-
PathParamsContext.displayName = "PathParamsContext";
|
|
260
|
-
NavigationPromisesContext.displayName = "NavigationPromisesContext";
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
|
|
265
|
-
// node_modules/next/dist/shared/lib/segment.js
|
|
266
|
-
var require_segment = __commonJS({
|
|
267
|
-
"node_modules/next/dist/shared/lib/segment.js"(exports$1) {
|
|
268
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
269
|
-
value: true
|
|
270
|
-
});
|
|
271
|
-
function _export(target, all) {
|
|
272
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
273
|
-
enumerable: true,
|
|
274
|
-
get: all[name]
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
_export(exports$1, {
|
|
278
|
-
DEFAULT_SEGMENT_KEY: function() {
|
|
279
|
-
return DEFAULT_SEGMENT_KEY;
|
|
280
|
-
},
|
|
281
|
-
NOT_FOUND_SEGMENT_KEY: function() {
|
|
282
|
-
return NOT_FOUND_SEGMENT_KEY;
|
|
283
|
-
},
|
|
284
|
-
PAGE_SEGMENT_KEY: function() {
|
|
285
|
-
return PAGE_SEGMENT_KEY;
|
|
286
|
-
},
|
|
287
|
-
addSearchParamsIfPageSegment: function() {
|
|
288
|
-
return addSearchParamsIfPageSegment;
|
|
289
|
-
},
|
|
290
|
-
computeSelectedLayoutSegment: function() {
|
|
291
|
-
return computeSelectedLayoutSegment;
|
|
292
|
-
},
|
|
293
|
-
getSegmentValue: function() {
|
|
294
|
-
return getSegmentValue;
|
|
295
|
-
},
|
|
296
|
-
getSelectedLayoutSegmentPath: function() {
|
|
297
|
-
return getSelectedLayoutSegmentPath;
|
|
298
|
-
},
|
|
299
|
-
isGroupSegment: function() {
|
|
300
|
-
return isGroupSegment;
|
|
301
|
-
},
|
|
302
|
-
isParallelRouteSegment: function() {
|
|
303
|
-
return isParallelRouteSegment;
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
function getSegmentValue(segment) {
|
|
307
|
-
return Array.isArray(segment) ? segment[1] : segment;
|
|
308
|
-
}
|
|
309
|
-
function isGroupSegment(segment) {
|
|
310
|
-
return segment[0] === "(" && segment.endsWith(")");
|
|
311
|
-
}
|
|
312
|
-
function isParallelRouteSegment(segment) {
|
|
313
|
-
return segment.startsWith("@") && segment !== "@children";
|
|
314
|
-
}
|
|
315
|
-
function addSearchParamsIfPageSegment(segment, searchParams) {
|
|
316
|
-
const isPageSegment = segment.includes(PAGE_SEGMENT_KEY);
|
|
317
|
-
if (isPageSegment) {
|
|
318
|
-
const stringifiedQuery = JSON.stringify(searchParams);
|
|
319
|
-
return stringifiedQuery !== "{}" ? PAGE_SEGMENT_KEY + "?" + stringifiedQuery : PAGE_SEGMENT_KEY;
|
|
320
|
-
}
|
|
321
|
-
return segment;
|
|
322
|
-
}
|
|
323
|
-
function computeSelectedLayoutSegment(segments, parallelRouteKey) {
|
|
324
|
-
if (!segments || segments.length === 0) {
|
|
325
|
-
return null;
|
|
326
|
-
}
|
|
327
|
-
const rawSegment = parallelRouteKey === "children" ? segments[0] : segments[segments.length - 1];
|
|
328
|
-
return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment;
|
|
329
|
-
}
|
|
330
|
-
function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first = true, segmentPath = []) {
|
|
331
|
-
var _a;
|
|
332
|
-
let node;
|
|
333
|
-
if (first) {
|
|
334
|
-
node = tree[1][parallelRouteKey];
|
|
335
|
-
} else {
|
|
336
|
-
const parallelRoutes = tree[1];
|
|
337
|
-
node = (_a = parallelRoutes.children) != null ? _a : Object.values(parallelRoutes)[0];
|
|
338
|
-
}
|
|
339
|
-
if (!node) return segmentPath;
|
|
340
|
-
const segment = node[0];
|
|
341
|
-
let segmentValue = getSegmentValue(segment);
|
|
342
|
-
if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) {
|
|
343
|
-
return segmentPath;
|
|
344
|
-
}
|
|
345
|
-
segmentPath.push(segmentValue);
|
|
346
|
-
return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);
|
|
347
|
-
}
|
|
348
|
-
var PAGE_SEGMENT_KEY = "__PAGE__";
|
|
349
|
-
var DEFAULT_SEGMENT_KEY = "__DEFAULT__";
|
|
350
|
-
var NOT_FOUND_SEGMENT_KEY = "/_not-found";
|
|
351
|
-
}
|
|
352
|
-
});
|
|
353
|
-
|
|
354
|
-
// node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js
|
|
355
|
-
var require_server_inserted_html_shared_runtime = __commonJS({
|
|
356
|
-
"node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js"(exports$1) {
|
|
357
|
-
"use client";
|
|
358
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
359
|
-
value: true
|
|
360
|
-
});
|
|
361
|
-
function _export(target, all) {
|
|
362
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
363
|
-
enumerable: true,
|
|
364
|
-
get: all[name]
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
_export(exports$1, {
|
|
368
|
-
ServerInsertedHTMLContext: function() {
|
|
369
|
-
return ServerInsertedHTMLContext;
|
|
370
|
-
},
|
|
371
|
-
useServerInsertedHTML: function() {
|
|
372
|
-
return useServerInsertedHTML;
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
var _interop_require_wildcard = require_interop_require_wildcard();
|
|
376
|
-
var _react = /* @__PURE__ */ _interop_require_wildcard._(__require("react"));
|
|
377
|
-
var ServerInsertedHTMLContext = /* @__PURE__ */ _react.default.createContext(null);
|
|
378
|
-
function useServerInsertedHTML(callback) {
|
|
379
|
-
const addInsertedServerHTMLCallback = (0, _react.useContext)(ServerInsertedHTMLContext);
|
|
380
|
-
if (addInsertedServerHTMLCallback) {
|
|
381
|
-
addInsertedServerHTMLCallback(callback);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
});
|
|
386
|
-
|
|
387
|
-
// node_modules/next/dist/client/components/unrecognized-action-error.js
|
|
388
|
-
var require_unrecognized_action_error = __commonJS({
|
|
389
|
-
"node_modules/next/dist/client/components/unrecognized-action-error.js"(exports$1, module) {
|
|
390
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
391
|
-
value: true
|
|
392
|
-
});
|
|
393
|
-
function _export(target, all) {
|
|
394
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
395
|
-
enumerable: true,
|
|
396
|
-
get: all[name]
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
_export(exports$1, {
|
|
400
|
-
UnrecognizedActionError: function() {
|
|
401
|
-
return UnrecognizedActionError;
|
|
402
|
-
},
|
|
403
|
-
unstable_isUnrecognizedActionError: function() {
|
|
404
|
-
return unstable_isUnrecognizedActionError;
|
|
405
|
-
}
|
|
406
|
-
});
|
|
407
|
-
var UnrecognizedActionError = class extends Error {
|
|
408
|
-
constructor(...args) {
|
|
409
|
-
super(...args);
|
|
410
|
-
this.name = "UnrecognizedActionError";
|
|
411
|
-
}
|
|
412
|
-
};
|
|
413
|
-
function unstable_isUnrecognizedActionError(error) {
|
|
414
|
-
return !!(error && typeof error === "object" && error instanceof UnrecognizedActionError);
|
|
415
|
-
}
|
|
416
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
417
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
418
|
-
Object.assign(exports$1.default, exports$1);
|
|
419
|
-
module.exports = exports$1.default;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
|
|
424
|
-
// node_modules/next/dist/client/components/redirect-status-code.js
|
|
425
|
-
var require_redirect_status_code = __commonJS({
|
|
426
|
-
"node_modules/next/dist/client/components/redirect-status-code.js"(exports$1, module) {
|
|
427
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
428
|
-
value: true
|
|
429
|
-
});
|
|
430
|
-
Object.defineProperty(exports$1, "RedirectStatusCode", {
|
|
431
|
-
enumerable: true,
|
|
432
|
-
get: function() {
|
|
433
|
-
return RedirectStatusCode;
|
|
434
|
-
}
|
|
435
|
-
});
|
|
436
|
-
var RedirectStatusCode = /* @__PURE__ */ (function(RedirectStatusCode2) {
|
|
437
|
-
RedirectStatusCode2[RedirectStatusCode2["SeeOther"] = 303] = "SeeOther";
|
|
438
|
-
RedirectStatusCode2[RedirectStatusCode2["TemporaryRedirect"] = 307] = "TemporaryRedirect";
|
|
439
|
-
RedirectStatusCode2[RedirectStatusCode2["PermanentRedirect"] = 308] = "PermanentRedirect";
|
|
440
|
-
return RedirectStatusCode2;
|
|
441
|
-
})({});
|
|
442
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
443
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
444
|
-
Object.assign(exports$1.default, exports$1);
|
|
445
|
-
module.exports = exports$1.default;
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
|
|
450
|
-
// node_modules/next/dist/client/components/redirect-error.js
|
|
451
|
-
var require_redirect_error = __commonJS({
|
|
452
|
-
"node_modules/next/dist/client/components/redirect-error.js"(exports$1, module) {
|
|
453
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
454
|
-
value: true
|
|
455
|
-
});
|
|
456
|
-
function _export(target, all) {
|
|
457
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
458
|
-
enumerable: true,
|
|
459
|
-
get: all[name]
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
_export(exports$1, {
|
|
463
|
-
REDIRECT_ERROR_CODE: function() {
|
|
464
|
-
return REDIRECT_ERROR_CODE;
|
|
465
|
-
},
|
|
466
|
-
RedirectType: function() {
|
|
467
|
-
return RedirectType;
|
|
468
|
-
},
|
|
469
|
-
isRedirectError: function() {
|
|
470
|
-
return isRedirectError;
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
var _redirectstatuscode = require_redirect_status_code();
|
|
474
|
-
var REDIRECT_ERROR_CODE = "NEXT_REDIRECT";
|
|
475
|
-
var RedirectType = /* @__PURE__ */ (function(RedirectType2) {
|
|
476
|
-
RedirectType2["push"] = "push";
|
|
477
|
-
RedirectType2["replace"] = "replace";
|
|
478
|
-
return RedirectType2;
|
|
479
|
-
})({});
|
|
480
|
-
function isRedirectError(error) {
|
|
481
|
-
if (typeof error !== "object" || error === null || !("digest" in error) || typeof error.digest !== "string") {
|
|
482
|
-
return false;
|
|
483
|
-
}
|
|
484
|
-
const digest = error.digest.split(";");
|
|
485
|
-
const [errorCode, type] = digest;
|
|
486
|
-
const destination = digest.slice(2, -2).join(";");
|
|
487
|
-
const status = digest.at(-2);
|
|
488
|
-
const statusCode = Number(status);
|
|
489
|
-
return errorCode === REDIRECT_ERROR_CODE && (type === "replace" || type === "push") && typeof destination === "string" && !isNaN(statusCode) && statusCode in _redirectstatuscode.RedirectStatusCode;
|
|
490
|
-
}
|
|
491
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
492
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
493
|
-
Object.assign(exports$1.default, exports$1);
|
|
494
|
-
module.exports = exports$1.default;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
|
|
499
|
-
// node_modules/next/dist/server/app-render/async-local-storage.js
|
|
500
|
-
var require_async_local_storage = __commonJS({
|
|
501
|
-
"node_modules/next/dist/server/app-render/async-local-storage.js"(exports$1) {
|
|
502
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
503
|
-
value: true
|
|
504
|
-
});
|
|
505
|
-
function _export(target, all) {
|
|
506
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
507
|
-
enumerable: true,
|
|
508
|
-
get: all[name]
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
_export(exports$1, {
|
|
512
|
-
bindSnapshot: function() {
|
|
513
|
-
return bindSnapshot;
|
|
514
|
-
},
|
|
515
|
-
createAsyncLocalStorage: function() {
|
|
516
|
-
return createAsyncLocalStorage;
|
|
517
|
-
},
|
|
518
|
-
createSnapshot: function() {
|
|
519
|
-
return createSnapshot;
|
|
520
|
-
}
|
|
521
|
-
});
|
|
522
|
-
var sharedAsyncLocalStorageNotAvailableError = Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
|
|
523
|
-
value: "E504",
|
|
524
|
-
enumerable: false,
|
|
525
|
-
configurable: true
|
|
526
|
-
});
|
|
527
|
-
var FakeAsyncLocalStorage = class {
|
|
528
|
-
disable() {
|
|
529
|
-
throw sharedAsyncLocalStorageNotAvailableError;
|
|
530
|
-
}
|
|
531
|
-
getStore() {
|
|
532
|
-
return void 0;
|
|
533
|
-
}
|
|
534
|
-
run() {
|
|
535
|
-
throw sharedAsyncLocalStorageNotAvailableError;
|
|
536
|
-
}
|
|
537
|
-
exit() {
|
|
538
|
-
throw sharedAsyncLocalStorageNotAvailableError;
|
|
539
|
-
}
|
|
540
|
-
enterWith() {
|
|
541
|
-
throw sharedAsyncLocalStorageNotAvailableError;
|
|
542
|
-
}
|
|
543
|
-
static bind(fn) {
|
|
544
|
-
return fn;
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
|
-
var maybeGlobalAsyncLocalStorage = typeof globalThis !== "undefined" && globalThis.AsyncLocalStorage;
|
|
548
|
-
function createAsyncLocalStorage() {
|
|
549
|
-
if (maybeGlobalAsyncLocalStorage) {
|
|
550
|
-
return new maybeGlobalAsyncLocalStorage();
|
|
551
|
-
}
|
|
552
|
-
return new FakeAsyncLocalStorage();
|
|
553
|
-
}
|
|
554
|
-
function bindSnapshot(fn) {
|
|
555
|
-
if (maybeGlobalAsyncLocalStorage) {
|
|
556
|
-
return maybeGlobalAsyncLocalStorage.bind(fn);
|
|
557
|
-
}
|
|
558
|
-
return FakeAsyncLocalStorage.bind(fn);
|
|
559
|
-
}
|
|
560
|
-
function createSnapshot() {
|
|
561
|
-
if (maybeGlobalAsyncLocalStorage) {
|
|
562
|
-
return maybeGlobalAsyncLocalStorage.snapshot();
|
|
563
|
-
}
|
|
564
|
-
return function(fn, ...args) {
|
|
565
|
-
return fn(...args);
|
|
566
|
-
};
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
});
|
|
570
|
-
|
|
571
|
-
// node_modules/next/dist/server/app-render/action-async-storage-instance.js
|
|
572
|
-
var require_action_async_storage_instance = __commonJS({
|
|
573
|
-
"node_modules/next/dist/server/app-render/action-async-storage-instance.js"(exports$1) {
|
|
574
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
575
|
-
value: true
|
|
576
|
-
});
|
|
577
|
-
Object.defineProperty(exports$1, "actionAsyncStorageInstance", {
|
|
578
|
-
enumerable: true,
|
|
579
|
-
get: function() {
|
|
580
|
-
return actionAsyncStorageInstance;
|
|
581
|
-
}
|
|
582
|
-
});
|
|
583
|
-
var _asynclocalstorage = require_async_local_storage();
|
|
584
|
-
var actionAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
585
|
-
}
|
|
586
|
-
});
|
|
587
|
-
|
|
588
|
-
// node_modules/next/dist/server/app-render/action-async-storage.external.js
|
|
589
|
-
var require_action_async_storage_external = __commonJS({
|
|
590
|
-
"node_modules/next/dist/server/app-render/action-async-storage.external.js"(exports$1) {
|
|
591
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
592
|
-
value: true
|
|
593
|
-
});
|
|
594
|
-
Object.defineProperty(exports$1, "actionAsyncStorage", {
|
|
595
|
-
enumerable: true,
|
|
596
|
-
get: function() {
|
|
597
|
-
return _actionasyncstorageinstance.actionAsyncStorageInstance;
|
|
598
|
-
}
|
|
599
|
-
});
|
|
600
|
-
var _actionasyncstorageinstance = require_action_async_storage_instance();
|
|
601
|
-
}
|
|
602
|
-
});
|
|
603
|
-
|
|
604
|
-
// node_modules/next/dist/client/components/redirect.js
|
|
605
|
-
var require_redirect = __commonJS({
|
|
606
|
-
"node_modules/next/dist/client/components/redirect.js"(exports$1, module) {
|
|
607
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
608
|
-
value: true
|
|
609
|
-
});
|
|
610
|
-
function _export(target, all) {
|
|
611
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
612
|
-
enumerable: true,
|
|
613
|
-
get: all[name]
|
|
614
|
-
});
|
|
615
|
-
}
|
|
616
|
-
_export(exports$1, {
|
|
617
|
-
getRedirectError: function() {
|
|
618
|
-
return getRedirectError;
|
|
619
|
-
},
|
|
620
|
-
getRedirectStatusCodeFromError: function() {
|
|
621
|
-
return getRedirectStatusCodeFromError;
|
|
622
|
-
},
|
|
623
|
-
getRedirectTypeFromError: function() {
|
|
624
|
-
return getRedirectTypeFromError;
|
|
625
|
-
},
|
|
626
|
-
getURLFromRedirectError: function() {
|
|
627
|
-
return getURLFromRedirectError;
|
|
628
|
-
},
|
|
629
|
-
permanentRedirect: function() {
|
|
630
|
-
return permanentRedirect;
|
|
631
|
-
},
|
|
632
|
-
redirect: function() {
|
|
633
|
-
return redirect;
|
|
634
|
-
}
|
|
635
|
-
});
|
|
636
|
-
var _redirectstatuscode = require_redirect_status_code();
|
|
637
|
-
var _redirecterror = require_redirect_error();
|
|
638
|
-
var actionAsyncStorage = typeof window === "undefined" ? require_action_async_storage_external().actionAsyncStorage : void 0;
|
|
639
|
-
function getRedirectError(url, type, statusCode = _redirectstatuscode.RedirectStatusCode.TemporaryRedirect) {
|
|
640
|
-
const error = Object.defineProperty(new Error(_redirecterror.REDIRECT_ERROR_CODE), "__NEXT_ERROR_CODE", {
|
|
641
|
-
value: "E394",
|
|
642
|
-
enumerable: false,
|
|
643
|
-
configurable: true
|
|
644
|
-
});
|
|
645
|
-
error.digest = `${_redirecterror.REDIRECT_ERROR_CODE};${type};${url};${statusCode};`;
|
|
646
|
-
return error;
|
|
647
|
-
}
|
|
648
|
-
function redirect(url, type) {
|
|
649
|
-
var _a;
|
|
650
|
-
type != null ? type : type = ((_a = actionAsyncStorage == null ? void 0 : actionAsyncStorage.getStore()) == null ? void 0 : _a.isAction) ? _redirecterror.RedirectType.push : _redirecterror.RedirectType.replace;
|
|
651
|
-
throw getRedirectError(url, type, _redirectstatuscode.RedirectStatusCode.TemporaryRedirect);
|
|
652
|
-
}
|
|
653
|
-
function permanentRedirect(url, type = _redirecterror.RedirectType.replace) {
|
|
654
|
-
throw getRedirectError(url, type, _redirectstatuscode.RedirectStatusCode.PermanentRedirect);
|
|
655
|
-
}
|
|
656
|
-
function getURLFromRedirectError(error) {
|
|
657
|
-
if (!(0, _redirecterror.isRedirectError)(error)) return null;
|
|
658
|
-
return error.digest.split(";").slice(2, -2).join(";");
|
|
659
|
-
}
|
|
660
|
-
function getRedirectTypeFromError(error) {
|
|
661
|
-
if (!(0, _redirecterror.isRedirectError)(error)) {
|
|
662
|
-
throw Object.defineProperty(new Error("Not a redirect error"), "__NEXT_ERROR_CODE", {
|
|
663
|
-
value: "E260",
|
|
664
|
-
enumerable: false,
|
|
665
|
-
configurable: true
|
|
666
|
-
});
|
|
667
|
-
}
|
|
668
|
-
return error.digest.split(";", 2)[1];
|
|
669
|
-
}
|
|
670
|
-
function getRedirectStatusCodeFromError(error) {
|
|
671
|
-
if (!(0, _redirecterror.isRedirectError)(error)) {
|
|
672
|
-
throw Object.defineProperty(new Error("Not a redirect error"), "__NEXT_ERROR_CODE", {
|
|
673
|
-
value: "E260",
|
|
674
|
-
enumerable: false,
|
|
675
|
-
configurable: true
|
|
676
|
-
});
|
|
677
|
-
}
|
|
678
|
-
return Number(error.digest.split(";").at(-2));
|
|
679
|
-
}
|
|
680
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
681
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
682
|
-
Object.assign(exports$1.default, exports$1);
|
|
683
|
-
module.exports = exports$1.default;
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
});
|
|
687
|
-
|
|
688
|
-
// node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js
|
|
689
|
-
var require_http_access_fallback = __commonJS({
|
|
690
|
-
"node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js"(exports$1, module) {
|
|
691
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
692
|
-
value: true
|
|
693
|
-
});
|
|
694
|
-
function _export(target, all) {
|
|
695
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
696
|
-
enumerable: true,
|
|
697
|
-
get: all[name]
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
_export(exports$1, {
|
|
701
|
-
HTTPAccessErrorStatus: function() {
|
|
702
|
-
return HTTPAccessErrorStatus;
|
|
703
|
-
},
|
|
704
|
-
HTTP_ERROR_FALLBACK_ERROR_CODE: function() {
|
|
705
|
-
return HTTP_ERROR_FALLBACK_ERROR_CODE;
|
|
706
|
-
},
|
|
707
|
-
getAccessFallbackErrorTypeByStatus: function() {
|
|
708
|
-
return getAccessFallbackErrorTypeByStatus;
|
|
709
|
-
},
|
|
710
|
-
getAccessFallbackHTTPStatus: function() {
|
|
711
|
-
return getAccessFallbackHTTPStatus;
|
|
712
|
-
},
|
|
713
|
-
isHTTPAccessFallbackError: function() {
|
|
714
|
-
return isHTTPAccessFallbackError;
|
|
715
|
-
}
|
|
716
|
-
});
|
|
717
|
-
var HTTPAccessErrorStatus = {
|
|
718
|
-
NOT_FOUND: 404,
|
|
719
|
-
FORBIDDEN: 403,
|
|
720
|
-
UNAUTHORIZED: 401
|
|
721
|
-
};
|
|
722
|
-
var ALLOWED_CODES = new Set(Object.values(HTTPAccessErrorStatus));
|
|
723
|
-
var HTTP_ERROR_FALLBACK_ERROR_CODE = "NEXT_HTTP_ERROR_FALLBACK";
|
|
724
|
-
function isHTTPAccessFallbackError(error) {
|
|
725
|
-
if (typeof error !== "object" || error === null || !("digest" in error) || typeof error.digest !== "string") {
|
|
726
|
-
return false;
|
|
727
|
-
}
|
|
728
|
-
const [prefix, httpStatus] = error.digest.split(";");
|
|
729
|
-
return prefix === HTTP_ERROR_FALLBACK_ERROR_CODE && ALLOWED_CODES.has(Number(httpStatus));
|
|
730
|
-
}
|
|
731
|
-
function getAccessFallbackHTTPStatus(error) {
|
|
732
|
-
const httpStatus = error.digest.split(";")[1];
|
|
733
|
-
return Number(httpStatus);
|
|
734
|
-
}
|
|
735
|
-
function getAccessFallbackErrorTypeByStatus(status) {
|
|
736
|
-
switch (status) {
|
|
737
|
-
case 401:
|
|
738
|
-
return "unauthorized";
|
|
739
|
-
case 403:
|
|
740
|
-
return "forbidden";
|
|
741
|
-
case 404:
|
|
742
|
-
return "not-found";
|
|
743
|
-
default:
|
|
744
|
-
return;
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
748
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
749
|
-
Object.assign(exports$1.default, exports$1);
|
|
750
|
-
module.exports = exports$1.default;
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
});
|
|
754
|
-
|
|
755
|
-
// node_modules/next/dist/client/components/not-found.js
|
|
756
|
-
var require_not_found = __commonJS({
|
|
757
|
-
"node_modules/next/dist/client/components/not-found.js"(exports$1, module) {
|
|
758
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
759
|
-
value: true
|
|
760
|
-
});
|
|
761
|
-
Object.defineProperty(exports$1, "notFound", {
|
|
762
|
-
enumerable: true,
|
|
763
|
-
get: function() {
|
|
764
|
-
return notFound;
|
|
765
|
-
}
|
|
766
|
-
});
|
|
767
|
-
var _httpaccessfallback = require_http_access_fallback();
|
|
768
|
-
var DIGEST = `${_httpaccessfallback.HTTP_ERROR_FALLBACK_ERROR_CODE};404`;
|
|
769
|
-
function notFound() {
|
|
770
|
-
const error = Object.defineProperty(new Error(DIGEST), "__NEXT_ERROR_CODE", {
|
|
771
|
-
value: "E394",
|
|
772
|
-
enumerable: false,
|
|
773
|
-
configurable: true
|
|
774
|
-
});
|
|
775
|
-
error.digest = DIGEST;
|
|
776
|
-
throw error;
|
|
777
|
-
}
|
|
778
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
779
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
780
|
-
Object.assign(exports$1.default, exports$1);
|
|
781
|
-
module.exports = exports$1.default;
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
});
|
|
785
|
-
|
|
786
|
-
// node_modules/next/dist/client/components/forbidden.js
|
|
787
|
-
var require_forbidden = __commonJS({
|
|
788
|
-
"node_modules/next/dist/client/components/forbidden.js"(exports$1, module) {
|
|
789
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
790
|
-
value: true
|
|
791
|
-
});
|
|
792
|
-
Object.defineProperty(exports$1, "forbidden", {
|
|
793
|
-
enumerable: true,
|
|
794
|
-
get: function() {
|
|
795
|
-
return forbidden;
|
|
796
|
-
}
|
|
797
|
-
});
|
|
798
|
-
var _httpaccessfallback = require_http_access_fallback();
|
|
799
|
-
var DIGEST = `${_httpaccessfallback.HTTP_ERROR_FALLBACK_ERROR_CODE};403`;
|
|
800
|
-
function forbidden() {
|
|
801
|
-
if (!process.env.__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS) {
|
|
802
|
-
throw Object.defineProperty(new Error(`\`forbidden()\` is experimental and only allowed to be enabled when \`experimental.authInterrupts\` is enabled.`), "__NEXT_ERROR_CODE", {
|
|
803
|
-
value: "E488",
|
|
804
|
-
enumerable: false,
|
|
805
|
-
configurable: true
|
|
806
|
-
});
|
|
807
|
-
}
|
|
808
|
-
const error = Object.defineProperty(new Error(DIGEST), "__NEXT_ERROR_CODE", {
|
|
809
|
-
value: "E394",
|
|
810
|
-
enumerable: false,
|
|
811
|
-
configurable: true
|
|
812
|
-
});
|
|
813
|
-
error.digest = DIGEST;
|
|
814
|
-
throw error;
|
|
815
|
-
}
|
|
816
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
817
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
818
|
-
Object.assign(exports$1.default, exports$1);
|
|
819
|
-
module.exports = exports$1.default;
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
});
|
|
823
|
-
|
|
824
|
-
// node_modules/next/dist/client/components/unauthorized.js
|
|
825
|
-
var require_unauthorized = __commonJS({
|
|
826
|
-
"node_modules/next/dist/client/components/unauthorized.js"(exports$1, module) {
|
|
827
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
828
|
-
value: true
|
|
829
|
-
});
|
|
830
|
-
Object.defineProperty(exports$1, "unauthorized", {
|
|
831
|
-
enumerable: true,
|
|
832
|
-
get: function() {
|
|
833
|
-
return unauthorized;
|
|
834
|
-
}
|
|
835
|
-
});
|
|
836
|
-
var _httpaccessfallback = require_http_access_fallback();
|
|
837
|
-
var DIGEST = `${_httpaccessfallback.HTTP_ERROR_FALLBACK_ERROR_CODE};401`;
|
|
838
|
-
function unauthorized() {
|
|
839
|
-
if (!process.env.__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS) {
|
|
840
|
-
throw Object.defineProperty(new Error(`\`unauthorized()\` is experimental and only allowed to be used when \`experimental.authInterrupts\` is enabled.`), "__NEXT_ERROR_CODE", {
|
|
841
|
-
value: "E411",
|
|
842
|
-
enumerable: false,
|
|
843
|
-
configurable: true
|
|
844
|
-
});
|
|
845
|
-
}
|
|
846
|
-
const error = Object.defineProperty(new Error(DIGEST), "__NEXT_ERROR_CODE", {
|
|
847
|
-
value: "E394",
|
|
848
|
-
enumerable: false,
|
|
849
|
-
configurable: true
|
|
850
|
-
});
|
|
851
|
-
error.digest = DIGEST;
|
|
852
|
-
throw error;
|
|
853
|
-
}
|
|
854
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
855
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
856
|
-
Object.assign(exports$1.default, exports$1);
|
|
857
|
-
module.exports = exports$1.default;
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
});
|
|
861
|
-
|
|
862
|
-
// node_modules/next/dist/server/dynamic-rendering-utils.js
|
|
863
|
-
var require_dynamic_rendering_utils = __commonJS({
|
|
864
|
-
"node_modules/next/dist/server/dynamic-rendering-utils.js"(exports$1) {
|
|
865
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
866
|
-
value: true
|
|
867
|
-
});
|
|
868
|
-
function _export(target, all) {
|
|
869
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
870
|
-
enumerable: true,
|
|
871
|
-
get: all[name]
|
|
872
|
-
});
|
|
873
|
-
}
|
|
874
|
-
_export(exports$1, {
|
|
875
|
-
isHangingPromiseRejectionError: function() {
|
|
876
|
-
return isHangingPromiseRejectionError;
|
|
877
|
-
},
|
|
878
|
-
makeDevtoolsIOAwarePromise: function() {
|
|
879
|
-
return makeDevtoolsIOAwarePromise;
|
|
880
|
-
},
|
|
881
|
-
makeHangingPromise: function() {
|
|
882
|
-
return makeHangingPromise;
|
|
883
|
-
}
|
|
884
|
-
});
|
|
885
|
-
function isHangingPromiseRejectionError(err) {
|
|
886
|
-
if (typeof err !== "object" || err === null || !("digest" in err)) {
|
|
887
|
-
return false;
|
|
888
|
-
}
|
|
889
|
-
return err.digest === HANGING_PROMISE_REJECTION;
|
|
890
|
-
}
|
|
891
|
-
var HANGING_PROMISE_REJECTION = "HANGING_PROMISE_REJECTION";
|
|
892
|
-
var HangingPromiseRejectionError = class extends Error {
|
|
893
|
-
constructor(route, expression) {
|
|
894
|
-
super(`During prerendering, ${expression} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${expression} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${route}".`), this.route = route, this.expression = expression, this.digest = HANGING_PROMISE_REJECTION;
|
|
895
|
-
}
|
|
896
|
-
};
|
|
897
|
-
var abortListenersBySignal = /* @__PURE__ */ new WeakMap();
|
|
898
|
-
function makeHangingPromise(signal, route, expression) {
|
|
899
|
-
if (signal.aborted) {
|
|
900
|
-
return Promise.reject(new HangingPromiseRejectionError(route, expression));
|
|
901
|
-
} else {
|
|
902
|
-
const hangingPromise = new Promise((_, reject) => {
|
|
903
|
-
const boundRejection = reject.bind(null, new HangingPromiseRejectionError(route, expression));
|
|
904
|
-
let currentListeners = abortListenersBySignal.get(signal);
|
|
905
|
-
if (currentListeners) {
|
|
906
|
-
currentListeners.push(boundRejection);
|
|
907
|
-
} else {
|
|
908
|
-
const listeners = [
|
|
909
|
-
boundRejection
|
|
910
|
-
];
|
|
911
|
-
abortListenersBySignal.set(signal, listeners);
|
|
912
|
-
signal.addEventListener("abort", () => {
|
|
913
|
-
for (let i = 0; i < listeners.length; i++) {
|
|
914
|
-
listeners[i]();
|
|
915
|
-
}
|
|
916
|
-
}, {
|
|
917
|
-
once: true
|
|
918
|
-
});
|
|
919
|
-
}
|
|
920
|
-
});
|
|
921
|
-
hangingPromise.catch(ignoreReject);
|
|
922
|
-
return hangingPromise;
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
function ignoreReject() {
|
|
926
|
-
}
|
|
927
|
-
function makeDevtoolsIOAwarePromise(underlying, requestStore, stage) {
|
|
928
|
-
if (requestStore.stagedRendering) {
|
|
929
|
-
return requestStore.stagedRendering.delayUntilStage(stage, void 0, underlying);
|
|
930
|
-
}
|
|
931
|
-
return new Promise((resolve) => {
|
|
932
|
-
setTimeout(() => {
|
|
933
|
-
resolve(underlying);
|
|
934
|
-
}, 0);
|
|
935
|
-
});
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
});
|
|
939
|
-
|
|
940
|
-
// node_modules/next/dist/server/lib/router-utils/is-postpone.js
|
|
941
|
-
var require_is_postpone = __commonJS({
|
|
942
|
-
"node_modules/next/dist/server/lib/router-utils/is-postpone.js"(exports$1) {
|
|
943
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
944
|
-
value: true
|
|
945
|
-
});
|
|
946
|
-
Object.defineProperty(exports$1, "isPostpone", {
|
|
947
|
-
enumerable: true,
|
|
948
|
-
get: function() {
|
|
949
|
-
return isPostpone;
|
|
950
|
-
}
|
|
951
|
-
});
|
|
952
|
-
var REACT_POSTPONE_TYPE = /* @__PURE__ */ Symbol.for("react.postpone");
|
|
953
|
-
function isPostpone(error) {
|
|
954
|
-
return typeof error === "object" && error !== null && error.$$typeof === REACT_POSTPONE_TYPE;
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
});
|
|
958
|
-
|
|
959
|
-
// node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js
|
|
960
|
-
var require_bailout_to_csr = __commonJS({
|
|
961
|
-
"node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js"(exports$1) {
|
|
962
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
963
|
-
value: true
|
|
964
|
-
});
|
|
965
|
-
function _export(target, all) {
|
|
966
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
967
|
-
enumerable: true,
|
|
968
|
-
get: all[name]
|
|
969
|
-
});
|
|
970
|
-
}
|
|
971
|
-
_export(exports$1, {
|
|
972
|
-
BailoutToCSRError: function() {
|
|
973
|
-
return BailoutToCSRError;
|
|
974
|
-
},
|
|
975
|
-
isBailoutToCSRError: function() {
|
|
976
|
-
return isBailoutToCSRError;
|
|
977
|
-
}
|
|
978
|
-
});
|
|
979
|
-
var BAILOUT_TO_CSR = "BAILOUT_TO_CLIENT_SIDE_RENDERING";
|
|
980
|
-
var BailoutToCSRError = class extends Error {
|
|
981
|
-
constructor(reason) {
|
|
982
|
-
super(`Bail out to client-side rendering: ${reason}`), this.reason = reason, this.digest = BAILOUT_TO_CSR;
|
|
983
|
-
}
|
|
984
|
-
};
|
|
985
|
-
function isBailoutToCSRError(err) {
|
|
986
|
-
if (typeof err !== "object" || err === null || !("digest" in err)) {
|
|
987
|
-
return false;
|
|
988
|
-
}
|
|
989
|
-
return err.digest === BAILOUT_TO_CSR;
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
});
|
|
993
|
-
|
|
994
|
-
// node_modules/next/dist/client/components/is-next-router-error.js
|
|
995
|
-
var require_is_next_router_error = __commonJS({
|
|
996
|
-
"node_modules/next/dist/client/components/is-next-router-error.js"(exports$1, module) {
|
|
997
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
998
|
-
value: true
|
|
999
|
-
});
|
|
1000
|
-
Object.defineProperty(exports$1, "isNextRouterError", {
|
|
1001
|
-
enumerable: true,
|
|
1002
|
-
get: function() {
|
|
1003
|
-
return isNextRouterError;
|
|
1004
|
-
}
|
|
1005
|
-
});
|
|
1006
|
-
var _httpaccessfallback = require_http_access_fallback();
|
|
1007
|
-
var _redirecterror = require_redirect_error();
|
|
1008
|
-
function isNextRouterError(error) {
|
|
1009
|
-
return (0, _redirecterror.isRedirectError)(error) || (0, _httpaccessfallback.isHTTPAccessFallbackError)(error);
|
|
1010
|
-
}
|
|
1011
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
1012
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
1013
|
-
Object.assign(exports$1.default, exports$1);
|
|
1014
|
-
module.exports = exports$1.default;
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
});
|
|
1018
|
-
|
|
1019
|
-
// node_modules/next/dist/client/components/hooks-server-context.js
|
|
1020
|
-
var require_hooks_server_context = __commonJS({
|
|
1021
|
-
"node_modules/next/dist/client/components/hooks-server-context.js"(exports$1, module) {
|
|
1022
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
1023
|
-
value: true
|
|
1024
|
-
});
|
|
1025
|
-
function _export(target, all) {
|
|
1026
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1027
|
-
enumerable: true,
|
|
1028
|
-
get: all[name]
|
|
1029
|
-
});
|
|
1030
|
-
}
|
|
1031
|
-
_export(exports$1, {
|
|
1032
|
-
DynamicServerError: function() {
|
|
1033
|
-
return DynamicServerError;
|
|
1034
|
-
},
|
|
1035
|
-
isDynamicServerError: function() {
|
|
1036
|
-
return isDynamicServerError;
|
|
1037
|
-
}
|
|
1038
|
-
});
|
|
1039
|
-
var DYNAMIC_ERROR_CODE = "DYNAMIC_SERVER_USAGE";
|
|
1040
|
-
var DynamicServerError = class extends Error {
|
|
1041
|
-
constructor(description) {
|
|
1042
|
-
super(`Dynamic server usage: ${description}`), this.description = description, this.digest = DYNAMIC_ERROR_CODE;
|
|
1043
|
-
}
|
|
1044
|
-
};
|
|
1045
|
-
function isDynamicServerError(err) {
|
|
1046
|
-
if (typeof err !== "object" || err === null || !("digest" in err) || typeof err.digest !== "string") {
|
|
1047
|
-
return false;
|
|
1048
|
-
}
|
|
1049
|
-
return err.digest === DYNAMIC_ERROR_CODE;
|
|
1050
|
-
}
|
|
1051
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
1052
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
1053
|
-
Object.assign(exports$1.default, exports$1);
|
|
1054
|
-
module.exports = exports$1.default;
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
});
|
|
1058
|
-
|
|
1059
|
-
// node_modules/next/dist/client/components/static-generation-bailout.js
|
|
1060
|
-
var require_static_generation_bailout = __commonJS({
|
|
1061
|
-
"node_modules/next/dist/client/components/static-generation-bailout.js"(exports$1, module) {
|
|
1062
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
1063
|
-
value: true
|
|
1064
|
-
});
|
|
1065
|
-
function _export(target, all) {
|
|
1066
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1067
|
-
enumerable: true,
|
|
1068
|
-
get: all[name]
|
|
1069
|
-
});
|
|
1070
|
-
}
|
|
1071
|
-
_export(exports$1, {
|
|
1072
|
-
StaticGenBailoutError: function() {
|
|
1073
|
-
return StaticGenBailoutError;
|
|
1074
|
-
},
|
|
1075
|
-
isStaticGenBailoutError: function() {
|
|
1076
|
-
return isStaticGenBailoutError;
|
|
1077
|
-
}
|
|
1078
|
-
});
|
|
1079
|
-
var NEXT_STATIC_GEN_BAILOUT = "NEXT_STATIC_GEN_BAILOUT";
|
|
1080
|
-
var StaticGenBailoutError = class extends Error {
|
|
1081
|
-
constructor(...args) {
|
|
1082
|
-
super(...args), this.code = NEXT_STATIC_GEN_BAILOUT;
|
|
1083
|
-
}
|
|
1084
|
-
};
|
|
1085
|
-
function isStaticGenBailoutError(error) {
|
|
1086
|
-
if (typeof error !== "object" || error === null || !("code" in error)) {
|
|
1087
|
-
return false;
|
|
1088
|
-
}
|
|
1089
|
-
return error.code === NEXT_STATIC_GEN_BAILOUT;
|
|
1090
|
-
}
|
|
1091
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
1092
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
1093
|
-
Object.assign(exports$1.default, exports$1);
|
|
1094
|
-
module.exports = exports$1.default;
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
});
|
|
1098
|
-
|
|
1099
|
-
// node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js
|
|
1100
|
-
var require_work_unit_async_storage_instance = __commonJS({
|
|
1101
|
-
"node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js"(exports$1) {
|
|
1102
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
1103
|
-
value: true
|
|
1104
|
-
});
|
|
1105
|
-
Object.defineProperty(exports$1, "workUnitAsyncStorageInstance", {
|
|
1106
|
-
enumerable: true,
|
|
1107
|
-
get: function() {
|
|
1108
|
-
return workUnitAsyncStorageInstance;
|
|
1109
|
-
}
|
|
1110
|
-
});
|
|
1111
|
-
var _asynclocalstorage = require_async_local_storage();
|
|
1112
|
-
var workUnitAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
1113
|
-
}
|
|
1114
|
-
});
|
|
1115
|
-
|
|
1116
|
-
// node_modules/next/dist/client/components/app-router-headers.js
|
|
1117
|
-
var require_app_router_headers = __commonJS({
|
|
1118
|
-
"node_modules/next/dist/client/components/app-router-headers.js"(exports$1, module) {
|
|
1119
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
1120
|
-
value: true
|
|
1121
|
-
});
|
|
1122
|
-
function _export(target, all) {
|
|
1123
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1124
|
-
enumerable: true,
|
|
1125
|
-
get: all[name]
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
_export(exports$1, {
|
|
1129
|
-
ACTION_HEADER: function() {
|
|
1130
|
-
return ACTION_HEADER;
|
|
1131
|
-
},
|
|
1132
|
-
FLIGHT_HEADERS: function() {
|
|
1133
|
-
return FLIGHT_HEADERS;
|
|
1134
|
-
},
|
|
1135
|
-
NEXT_ACTION_NOT_FOUND_HEADER: function() {
|
|
1136
|
-
return NEXT_ACTION_NOT_FOUND_HEADER;
|
|
1137
|
-
},
|
|
1138
|
-
NEXT_ACTION_REVALIDATED_HEADER: function() {
|
|
1139
|
-
return NEXT_ACTION_REVALIDATED_HEADER;
|
|
1140
|
-
},
|
|
1141
|
-
NEXT_DID_POSTPONE_HEADER: function() {
|
|
1142
|
-
return NEXT_DID_POSTPONE_HEADER;
|
|
1143
|
-
},
|
|
1144
|
-
NEXT_HMR_REFRESH_HASH_COOKIE: function() {
|
|
1145
|
-
return NEXT_HMR_REFRESH_HASH_COOKIE;
|
|
1146
|
-
},
|
|
1147
|
-
NEXT_HMR_REFRESH_HEADER: function() {
|
|
1148
|
-
return NEXT_HMR_REFRESH_HEADER;
|
|
1149
|
-
},
|
|
1150
|
-
NEXT_HTML_REQUEST_ID_HEADER: function() {
|
|
1151
|
-
return NEXT_HTML_REQUEST_ID_HEADER;
|
|
1152
|
-
},
|
|
1153
|
-
NEXT_IS_PRERENDER_HEADER: function() {
|
|
1154
|
-
return NEXT_IS_PRERENDER_HEADER;
|
|
1155
|
-
},
|
|
1156
|
-
NEXT_REQUEST_ID_HEADER: function() {
|
|
1157
|
-
return NEXT_REQUEST_ID_HEADER;
|
|
1158
|
-
},
|
|
1159
|
-
NEXT_REWRITTEN_PATH_HEADER: function() {
|
|
1160
|
-
return NEXT_REWRITTEN_PATH_HEADER;
|
|
1161
|
-
},
|
|
1162
|
-
NEXT_REWRITTEN_QUERY_HEADER: function() {
|
|
1163
|
-
return NEXT_REWRITTEN_QUERY_HEADER;
|
|
1164
|
-
},
|
|
1165
|
-
NEXT_ROUTER_PREFETCH_HEADER: function() {
|
|
1166
|
-
return NEXT_ROUTER_PREFETCH_HEADER;
|
|
1167
|
-
},
|
|
1168
|
-
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
|
|
1169
|
-
return NEXT_ROUTER_SEGMENT_PREFETCH_HEADER;
|
|
1170
|
-
},
|
|
1171
|
-
NEXT_ROUTER_STALE_TIME_HEADER: function() {
|
|
1172
|
-
return NEXT_ROUTER_STALE_TIME_HEADER;
|
|
1173
|
-
},
|
|
1174
|
-
NEXT_ROUTER_STATE_TREE_HEADER: function() {
|
|
1175
|
-
return NEXT_ROUTER_STATE_TREE_HEADER;
|
|
1176
|
-
},
|
|
1177
|
-
NEXT_RSC_UNION_QUERY: function() {
|
|
1178
|
-
return NEXT_RSC_UNION_QUERY;
|
|
1179
|
-
},
|
|
1180
|
-
NEXT_URL: function() {
|
|
1181
|
-
return NEXT_URL;
|
|
1182
|
-
},
|
|
1183
|
-
RSC_CONTENT_TYPE_HEADER: function() {
|
|
1184
|
-
return RSC_CONTENT_TYPE_HEADER;
|
|
1185
|
-
},
|
|
1186
|
-
RSC_HEADER: function() {
|
|
1187
|
-
return RSC_HEADER;
|
|
1188
|
-
}
|
|
1189
|
-
});
|
|
1190
|
-
var RSC_HEADER = "rsc";
|
|
1191
|
-
var ACTION_HEADER = "next-action";
|
|
1192
|
-
var NEXT_ROUTER_STATE_TREE_HEADER = "next-router-state-tree";
|
|
1193
|
-
var NEXT_ROUTER_PREFETCH_HEADER = "next-router-prefetch";
|
|
1194
|
-
var NEXT_ROUTER_SEGMENT_PREFETCH_HEADER = "next-router-segment-prefetch";
|
|
1195
|
-
var NEXT_HMR_REFRESH_HEADER = "next-hmr-refresh";
|
|
1196
|
-
var NEXT_HMR_REFRESH_HASH_COOKIE = "__next_hmr_refresh_hash__";
|
|
1197
|
-
var NEXT_URL = "next-url";
|
|
1198
|
-
var RSC_CONTENT_TYPE_HEADER = "text/x-component";
|
|
1199
|
-
var FLIGHT_HEADERS = [
|
|
1200
|
-
RSC_HEADER,
|
|
1201
|
-
NEXT_ROUTER_STATE_TREE_HEADER,
|
|
1202
|
-
NEXT_ROUTER_PREFETCH_HEADER,
|
|
1203
|
-
NEXT_HMR_REFRESH_HEADER,
|
|
1204
|
-
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER
|
|
1205
|
-
];
|
|
1206
|
-
var NEXT_RSC_UNION_QUERY = "_rsc";
|
|
1207
|
-
var NEXT_ROUTER_STALE_TIME_HEADER = "x-nextjs-stale-time";
|
|
1208
|
-
var NEXT_DID_POSTPONE_HEADER = "x-nextjs-postponed";
|
|
1209
|
-
var NEXT_REWRITTEN_PATH_HEADER = "x-nextjs-rewritten-path";
|
|
1210
|
-
var NEXT_REWRITTEN_QUERY_HEADER = "x-nextjs-rewritten-query";
|
|
1211
|
-
var NEXT_IS_PRERENDER_HEADER = "x-nextjs-prerender";
|
|
1212
|
-
var NEXT_ACTION_NOT_FOUND_HEADER = "x-nextjs-action-not-found";
|
|
1213
|
-
var NEXT_REQUEST_ID_HEADER = "x-nextjs-request-id";
|
|
1214
|
-
var NEXT_HTML_REQUEST_ID_HEADER = "x-nextjs-html-request-id";
|
|
1215
|
-
var NEXT_ACTION_REVALIDATED_HEADER = "x-action-revalidated";
|
|
1216
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
1217
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
1218
|
-
Object.assign(exports$1.default, exports$1);
|
|
1219
|
-
module.exports = exports$1.default;
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
});
|
|
1223
|
-
|
|
1224
|
-
// node_modules/next/dist/shared/lib/invariant-error.js
|
|
1225
|
-
var require_invariant_error = __commonJS({
|
|
1226
|
-
"node_modules/next/dist/shared/lib/invariant-error.js"(exports$1) {
|
|
1227
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
1228
|
-
value: true
|
|
1229
|
-
});
|
|
1230
|
-
Object.defineProperty(exports$1, "InvariantError", {
|
|
1231
|
-
enumerable: true,
|
|
1232
|
-
get: function() {
|
|
1233
|
-
return InvariantError;
|
|
1234
|
-
}
|
|
1235
|
-
});
|
|
1236
|
-
var InvariantError = class extends Error {
|
|
1237
|
-
constructor(message, options) {
|
|
1238
|
-
super(`Invariant: ${message.endsWith(".") ? message : message + "."} This is a bug in Next.js.`, options);
|
|
1239
|
-
this.name = "InvariantError";
|
|
1240
|
-
}
|
|
1241
|
-
};
|
|
1242
|
-
}
|
|
1243
|
-
});
|
|
1244
|
-
|
|
1245
|
-
// node_modules/next/dist/server/app-render/work-unit-async-storage.external.js
|
|
1246
|
-
var require_work_unit_async_storage_external = __commonJS({
|
|
1247
|
-
"node_modules/next/dist/server/app-render/work-unit-async-storage.external.js"(exports$1) {
|
|
1248
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
1249
|
-
value: true
|
|
1250
|
-
});
|
|
1251
|
-
function _export(target, all) {
|
|
1252
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1253
|
-
enumerable: true,
|
|
1254
|
-
get: all[name]
|
|
1255
|
-
});
|
|
1256
|
-
}
|
|
1257
|
-
_export(exports$1, {
|
|
1258
|
-
getCacheSignal: function() {
|
|
1259
|
-
return getCacheSignal;
|
|
1260
|
-
},
|
|
1261
|
-
getDraftModeProviderForCacheScope: function() {
|
|
1262
|
-
return getDraftModeProviderForCacheScope;
|
|
1263
|
-
},
|
|
1264
|
-
getHmrRefreshHash: function() {
|
|
1265
|
-
return getHmrRefreshHash;
|
|
1266
|
-
},
|
|
1267
|
-
getPrerenderResumeDataCache: function() {
|
|
1268
|
-
return getPrerenderResumeDataCache;
|
|
1269
|
-
},
|
|
1270
|
-
getRenderResumeDataCache: function() {
|
|
1271
|
-
return getRenderResumeDataCache;
|
|
1272
|
-
},
|
|
1273
|
-
getRuntimeStagePromise: function() {
|
|
1274
|
-
return getRuntimeStagePromise;
|
|
1275
|
-
},
|
|
1276
|
-
getServerComponentsHmrCache: function() {
|
|
1277
|
-
return getServerComponentsHmrCache;
|
|
1278
|
-
},
|
|
1279
|
-
isHmrRefresh: function() {
|
|
1280
|
-
return isHmrRefresh;
|
|
1281
|
-
},
|
|
1282
|
-
throwForMissingRequestStore: function() {
|
|
1283
|
-
return throwForMissingRequestStore;
|
|
1284
|
-
},
|
|
1285
|
-
throwInvariantForMissingStore: function() {
|
|
1286
|
-
return throwInvariantForMissingStore;
|
|
1287
|
-
},
|
|
1288
|
-
workUnitAsyncStorage: function() {
|
|
1289
|
-
return _workunitasyncstorageinstance.workUnitAsyncStorageInstance;
|
|
1290
|
-
}
|
|
1291
|
-
});
|
|
1292
|
-
var _workunitasyncstorageinstance = require_work_unit_async_storage_instance();
|
|
1293
|
-
var _approuterheaders = require_app_router_headers();
|
|
1294
|
-
var _invarianterror = require_invariant_error();
|
|
1295
|
-
function throwForMissingRequestStore(callingExpression) {
|
|
1296
|
-
throw Object.defineProperty(new Error(`\`${callingExpression}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
|
|
1297
|
-
value: "E251",
|
|
1298
|
-
enumerable: false,
|
|
1299
|
-
configurable: true
|
|
1300
|
-
});
|
|
1301
|
-
}
|
|
1302
|
-
function throwInvariantForMissingStore() {
|
|
1303
|
-
throw Object.defineProperty(new _invarianterror.InvariantError("Expected workUnitAsyncStorage to have a store."), "__NEXT_ERROR_CODE", {
|
|
1304
|
-
value: "E696",
|
|
1305
|
-
enumerable: false,
|
|
1306
|
-
configurable: true
|
|
1307
|
-
});
|
|
1308
|
-
}
|
|
1309
|
-
function getPrerenderResumeDataCache(workUnitStore) {
|
|
1310
|
-
switch (workUnitStore.type) {
|
|
1311
|
-
case "prerender":
|
|
1312
|
-
case "prerender-runtime":
|
|
1313
|
-
case "prerender-ppr":
|
|
1314
|
-
return workUnitStore.prerenderResumeDataCache;
|
|
1315
|
-
case "prerender-client":
|
|
1316
|
-
return workUnitStore.prerenderResumeDataCache;
|
|
1317
|
-
case "request": {
|
|
1318
|
-
if (workUnitStore.prerenderResumeDataCache) {
|
|
1319
|
-
return workUnitStore.prerenderResumeDataCache;
|
|
1320
|
-
}
|
|
1321
|
-
}
|
|
1322
|
-
case "prerender-legacy":
|
|
1323
|
-
case "cache":
|
|
1324
|
-
case "private-cache":
|
|
1325
|
-
case "unstable-cache":
|
|
1326
|
-
return null;
|
|
1327
|
-
default:
|
|
1328
|
-
return workUnitStore;
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
function getRenderResumeDataCache(workUnitStore) {
|
|
1332
|
-
var _a;
|
|
1333
|
-
switch (workUnitStore.type) {
|
|
1334
|
-
case "request":
|
|
1335
|
-
case "prerender":
|
|
1336
|
-
case "prerender-runtime":
|
|
1337
|
-
case "prerender-client":
|
|
1338
|
-
if (workUnitStore.renderResumeDataCache) {
|
|
1339
|
-
return workUnitStore.renderResumeDataCache;
|
|
1340
|
-
}
|
|
1341
|
-
// fallthrough
|
|
1342
|
-
case "prerender-ppr":
|
|
1343
|
-
return (_a = workUnitStore.prerenderResumeDataCache) != null ? _a : null;
|
|
1344
|
-
case "cache":
|
|
1345
|
-
case "private-cache":
|
|
1346
|
-
case "unstable-cache":
|
|
1347
|
-
case "prerender-legacy":
|
|
1348
|
-
return null;
|
|
1349
|
-
default:
|
|
1350
|
-
return workUnitStore;
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
function getHmrRefreshHash(workStore, workUnitStore) {
|
|
1354
|
-
if (workStore.dev) {
|
|
1355
|
-
switch (workUnitStore.type) {
|
|
1356
|
-
case "cache":
|
|
1357
|
-
case "private-cache":
|
|
1358
|
-
case "prerender":
|
|
1359
|
-
case "prerender-runtime":
|
|
1360
|
-
return workUnitStore.hmrRefreshHash;
|
|
1361
|
-
case "request":
|
|
1362
|
-
var _workUnitStore_cookies_get;
|
|
1363
|
-
return (_workUnitStore_cookies_get = workUnitStore.cookies.get(_approuterheaders.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : _workUnitStore_cookies_get.value;
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
return void 0;
|
|
1367
|
-
}
|
|
1368
|
-
function isHmrRefresh(workStore, workUnitStore) {
|
|
1369
|
-
var _a;
|
|
1370
|
-
if (workStore.dev) {
|
|
1371
|
-
switch (workUnitStore.type) {
|
|
1372
|
-
case "cache":
|
|
1373
|
-
case "private-cache":
|
|
1374
|
-
case "request":
|
|
1375
|
-
return (_a = workUnitStore.isHmrRefresh) != null ? _a : false;
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
return false;
|
|
1379
|
-
}
|
|
1380
|
-
function getServerComponentsHmrCache(workStore, workUnitStore) {
|
|
1381
|
-
if (workStore.dev) {
|
|
1382
|
-
switch (workUnitStore.type) {
|
|
1383
|
-
case "cache":
|
|
1384
|
-
case "private-cache":
|
|
1385
|
-
case "request":
|
|
1386
|
-
return workUnitStore.serverComponentsHmrCache;
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
return void 0;
|
|
1390
|
-
}
|
|
1391
|
-
function getDraftModeProviderForCacheScope(workStore, workUnitStore) {
|
|
1392
|
-
if (workStore.isDraftMode) {
|
|
1393
|
-
switch (workUnitStore.type) {
|
|
1394
|
-
case "cache":
|
|
1395
|
-
case "private-cache":
|
|
1396
|
-
case "unstable-cache":
|
|
1397
|
-
case "prerender-runtime":
|
|
1398
|
-
case "request":
|
|
1399
|
-
return workUnitStore.draftMode;
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
return void 0;
|
|
1403
|
-
}
|
|
1404
|
-
function getCacheSignal(workUnitStore) {
|
|
1405
|
-
switch (workUnitStore.type) {
|
|
1406
|
-
case "prerender":
|
|
1407
|
-
case "prerender-client":
|
|
1408
|
-
case "prerender-runtime":
|
|
1409
|
-
return workUnitStore.cacheSignal;
|
|
1410
|
-
case "request": {
|
|
1411
|
-
if (workUnitStore.cacheSignal) {
|
|
1412
|
-
return workUnitStore.cacheSignal;
|
|
1413
|
-
}
|
|
1414
|
-
}
|
|
1415
|
-
case "prerender-ppr":
|
|
1416
|
-
case "prerender-legacy":
|
|
1417
|
-
case "cache":
|
|
1418
|
-
case "private-cache":
|
|
1419
|
-
case "unstable-cache":
|
|
1420
|
-
return null;
|
|
1421
|
-
default:
|
|
1422
|
-
return workUnitStore;
|
|
1423
|
-
}
|
|
1424
|
-
}
|
|
1425
|
-
function getRuntimeStagePromise(workUnitStore) {
|
|
1426
|
-
switch (workUnitStore.type) {
|
|
1427
|
-
case "prerender-runtime":
|
|
1428
|
-
case "private-cache":
|
|
1429
|
-
return workUnitStore.runtimeStagePromise;
|
|
1430
|
-
case "prerender":
|
|
1431
|
-
case "prerender-client":
|
|
1432
|
-
case "prerender-ppr":
|
|
1433
|
-
case "prerender-legacy":
|
|
1434
|
-
case "request":
|
|
1435
|
-
case "cache":
|
|
1436
|
-
case "unstable-cache":
|
|
1437
|
-
return null;
|
|
1438
|
-
default:
|
|
1439
|
-
return workUnitStore;
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
|
-
});
|
|
1444
|
-
|
|
1445
|
-
// node_modules/next/dist/server/app-render/work-async-storage-instance.js
|
|
1446
|
-
var require_work_async_storage_instance = __commonJS({
|
|
1447
|
-
"node_modules/next/dist/server/app-render/work-async-storage-instance.js"(exports$1) {
|
|
1448
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
1449
|
-
value: true
|
|
1450
|
-
});
|
|
1451
|
-
Object.defineProperty(exports$1, "workAsyncStorageInstance", {
|
|
1452
|
-
enumerable: true,
|
|
1453
|
-
get: function() {
|
|
1454
|
-
return workAsyncStorageInstance;
|
|
1455
|
-
}
|
|
1456
|
-
});
|
|
1457
|
-
var _asynclocalstorage = require_async_local_storage();
|
|
1458
|
-
var workAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
1459
|
-
}
|
|
1460
|
-
});
|
|
1461
|
-
|
|
1462
|
-
// node_modules/next/dist/server/app-render/work-async-storage.external.js
|
|
1463
|
-
var require_work_async_storage_external = __commonJS({
|
|
1464
|
-
"node_modules/next/dist/server/app-render/work-async-storage.external.js"(exports$1) {
|
|
1465
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
1466
|
-
value: true
|
|
1467
|
-
});
|
|
1468
|
-
Object.defineProperty(exports$1, "workAsyncStorage", {
|
|
1469
|
-
enumerable: true,
|
|
1470
|
-
get: function() {
|
|
1471
|
-
return _workasyncstorageinstance.workAsyncStorageInstance;
|
|
1472
|
-
}
|
|
1473
|
-
});
|
|
1474
|
-
var _workasyncstorageinstance = require_work_async_storage_instance();
|
|
1475
|
-
}
|
|
1476
|
-
});
|
|
1477
|
-
|
|
1478
|
-
// node_modules/next/dist/lib/framework/boundary-constants.js
|
|
1479
|
-
var require_boundary_constants = __commonJS({
|
|
1480
|
-
"node_modules/next/dist/lib/framework/boundary-constants.js"(exports$1) {
|
|
1481
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
1482
|
-
value: true
|
|
1483
|
-
});
|
|
1484
|
-
function _export(target, all) {
|
|
1485
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1486
|
-
enumerable: true,
|
|
1487
|
-
get: all[name]
|
|
1488
|
-
});
|
|
1489
|
-
}
|
|
1490
|
-
_export(exports$1, {
|
|
1491
|
-
METADATA_BOUNDARY_NAME: function() {
|
|
1492
|
-
return METADATA_BOUNDARY_NAME;
|
|
1493
|
-
},
|
|
1494
|
-
OUTLET_BOUNDARY_NAME: function() {
|
|
1495
|
-
return OUTLET_BOUNDARY_NAME;
|
|
1496
|
-
},
|
|
1497
|
-
ROOT_LAYOUT_BOUNDARY_NAME: function() {
|
|
1498
|
-
return ROOT_LAYOUT_BOUNDARY_NAME;
|
|
1499
|
-
},
|
|
1500
|
-
VIEWPORT_BOUNDARY_NAME: function() {
|
|
1501
|
-
return VIEWPORT_BOUNDARY_NAME;
|
|
1502
|
-
}
|
|
1503
|
-
});
|
|
1504
|
-
var METADATA_BOUNDARY_NAME = "__next_metadata_boundary__";
|
|
1505
|
-
var VIEWPORT_BOUNDARY_NAME = "__next_viewport_boundary__";
|
|
1506
|
-
var OUTLET_BOUNDARY_NAME = "__next_outlet_boundary__";
|
|
1507
|
-
var ROOT_LAYOUT_BOUNDARY_NAME = "__next_root_layout_boundary__";
|
|
1508
|
-
}
|
|
1509
|
-
});
|
|
1510
|
-
|
|
1511
|
-
// node_modules/next/dist/lib/scheduler.js
|
|
1512
|
-
var require_scheduler = __commonJS({
|
|
1513
|
-
"node_modules/next/dist/lib/scheduler.js"(exports$1) {
|
|
1514
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
1515
|
-
value: true
|
|
1516
|
-
});
|
|
1517
|
-
function _export(target, all) {
|
|
1518
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1519
|
-
enumerable: true,
|
|
1520
|
-
get: all[name]
|
|
1521
|
-
});
|
|
1522
|
-
}
|
|
1523
|
-
_export(exports$1, {
|
|
1524
|
-
atLeastOneTask: function() {
|
|
1525
|
-
return atLeastOneTask;
|
|
1526
|
-
},
|
|
1527
|
-
scheduleImmediate: function() {
|
|
1528
|
-
return scheduleImmediate;
|
|
1529
|
-
},
|
|
1530
|
-
scheduleOnNextTick: function() {
|
|
1531
|
-
return scheduleOnNextTick;
|
|
1532
|
-
},
|
|
1533
|
-
waitAtLeastOneReactRenderTask: function() {
|
|
1534
|
-
return waitAtLeastOneReactRenderTask;
|
|
1535
|
-
}
|
|
1536
|
-
});
|
|
1537
|
-
var scheduleOnNextTick = (cb) => {
|
|
1538
|
-
Promise.resolve().then(() => {
|
|
1539
|
-
if (process.env.NEXT_RUNTIME === "edge") {
|
|
1540
|
-
setTimeout(cb, 0);
|
|
1541
|
-
} else {
|
|
1542
|
-
process.nextTick(cb);
|
|
1543
|
-
}
|
|
1544
|
-
});
|
|
1545
|
-
};
|
|
1546
|
-
var scheduleImmediate = (cb) => {
|
|
1547
|
-
if (process.env.NEXT_RUNTIME === "edge") {
|
|
1548
|
-
setTimeout(cb, 0);
|
|
1549
|
-
} else {
|
|
1550
|
-
setImmediate(cb);
|
|
1551
|
-
}
|
|
1552
|
-
};
|
|
1553
|
-
function atLeastOneTask() {
|
|
1554
|
-
return new Promise((resolve) => scheduleImmediate(resolve));
|
|
1555
|
-
}
|
|
1556
|
-
function waitAtLeastOneReactRenderTask() {
|
|
1557
|
-
if (process.env.NEXT_RUNTIME === "edge") {
|
|
1558
|
-
return new Promise((r) => setTimeout(r, 0));
|
|
1559
|
-
} else {
|
|
1560
|
-
return new Promise((r) => setImmediate(r));
|
|
1561
|
-
}
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
});
|
|
1565
|
-
|
|
1566
|
-
// node_modules/next/dist/server/app-render/dynamic-rendering.js
|
|
1567
|
-
var require_dynamic_rendering = __commonJS({
|
|
1568
|
-
"node_modules/next/dist/server/app-render/dynamic-rendering.js"(exports$1) {
|
|
1569
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
1570
|
-
value: true
|
|
1571
|
-
});
|
|
1572
|
-
function _export(target, all) {
|
|
1573
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1574
|
-
enumerable: true,
|
|
1575
|
-
get: all[name]
|
|
1576
|
-
});
|
|
1577
|
-
}
|
|
1578
|
-
_export(exports$1, {
|
|
1579
|
-
Postpone: function() {
|
|
1580
|
-
return Postpone;
|
|
1581
|
-
},
|
|
1582
|
-
PreludeState: function() {
|
|
1583
|
-
return PreludeState;
|
|
1584
|
-
},
|
|
1585
|
-
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
1586
|
-
return abortAndThrowOnSynchronousRequestDataAccess;
|
|
1587
|
-
},
|
|
1588
|
-
abortOnSynchronousPlatformIOAccess: function() {
|
|
1589
|
-
return abortOnSynchronousPlatformIOAccess;
|
|
1590
|
-
},
|
|
1591
|
-
accessedDynamicData: function() {
|
|
1592
|
-
return accessedDynamicData;
|
|
1593
|
-
},
|
|
1594
|
-
annotateDynamicAccess: function() {
|
|
1595
|
-
return annotateDynamicAccess;
|
|
1596
|
-
},
|
|
1597
|
-
consumeDynamicAccess: function() {
|
|
1598
|
-
return consumeDynamicAccess;
|
|
1599
|
-
},
|
|
1600
|
-
createDynamicTrackingState: function() {
|
|
1601
|
-
return createDynamicTrackingState;
|
|
1602
|
-
},
|
|
1603
|
-
createDynamicValidationState: function() {
|
|
1604
|
-
return createDynamicValidationState;
|
|
1605
|
-
},
|
|
1606
|
-
createHangingInputAbortSignal: function() {
|
|
1607
|
-
return createHangingInputAbortSignal;
|
|
1608
|
-
},
|
|
1609
|
-
createRenderInBrowserAbortSignal: function() {
|
|
1610
|
-
return createRenderInBrowserAbortSignal;
|
|
1611
|
-
},
|
|
1612
|
-
delayUntilRuntimeStage: function() {
|
|
1613
|
-
return delayUntilRuntimeStage;
|
|
1614
|
-
},
|
|
1615
|
-
formatDynamicAPIAccesses: function() {
|
|
1616
|
-
return formatDynamicAPIAccesses;
|
|
1617
|
-
},
|
|
1618
|
-
getFirstDynamicReason: function() {
|
|
1619
|
-
return getFirstDynamicReason;
|
|
1620
|
-
},
|
|
1621
|
-
getStaticShellDisallowedDynamicReasons: function() {
|
|
1622
|
-
return getStaticShellDisallowedDynamicReasons;
|
|
1623
|
-
},
|
|
1624
|
-
isDynamicPostpone: function() {
|
|
1625
|
-
return isDynamicPostpone;
|
|
1626
|
-
},
|
|
1627
|
-
isPrerenderInterruptedError: function() {
|
|
1628
|
-
return isPrerenderInterruptedError;
|
|
1629
|
-
},
|
|
1630
|
-
logDisallowedDynamicError: function() {
|
|
1631
|
-
return logDisallowedDynamicError;
|
|
1632
|
-
},
|
|
1633
|
-
markCurrentScopeAsDynamic: function() {
|
|
1634
|
-
return markCurrentScopeAsDynamic;
|
|
1635
|
-
},
|
|
1636
|
-
postponeWithTracking: function() {
|
|
1637
|
-
return postponeWithTracking;
|
|
1638
|
-
},
|
|
1639
|
-
throwIfDisallowedDynamic: function() {
|
|
1640
|
-
return throwIfDisallowedDynamic;
|
|
1641
|
-
},
|
|
1642
|
-
throwToInterruptStaticGeneration: function() {
|
|
1643
|
-
return throwToInterruptStaticGeneration;
|
|
1644
|
-
},
|
|
1645
|
-
trackAllowedDynamicAccess: function() {
|
|
1646
|
-
return trackAllowedDynamicAccess;
|
|
1647
|
-
},
|
|
1648
|
-
trackDynamicDataInDynamicRender: function() {
|
|
1649
|
-
return trackDynamicDataInDynamicRender;
|
|
1650
|
-
},
|
|
1651
|
-
trackDynamicHoleInRuntimeShell: function() {
|
|
1652
|
-
return trackDynamicHoleInRuntimeShell;
|
|
1653
|
-
},
|
|
1654
|
-
trackDynamicHoleInStaticShell: function() {
|
|
1655
|
-
return trackDynamicHoleInStaticShell;
|
|
1656
|
-
},
|
|
1657
|
-
useDynamicRouteParams: function() {
|
|
1658
|
-
return useDynamicRouteParams;
|
|
1659
|
-
},
|
|
1660
|
-
useDynamicSearchParams: function() {
|
|
1661
|
-
return useDynamicSearchParams;
|
|
1662
|
-
}
|
|
1663
|
-
});
|
|
1664
|
-
var _react = /* @__PURE__ */ _interop_require_default(__require("react"));
|
|
1665
|
-
var _hooksservercontext = require_hooks_server_context();
|
|
1666
|
-
var _staticgenerationbailout = require_static_generation_bailout();
|
|
1667
|
-
var _workunitasyncstorageexternal = require_work_unit_async_storage_external();
|
|
1668
|
-
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
1669
|
-
var _dynamicrenderingutils = require_dynamic_rendering_utils();
|
|
1670
|
-
var _boundaryconstants = require_boundary_constants();
|
|
1671
|
-
var _scheduler = require_scheduler();
|
|
1672
|
-
var _bailouttocsr = require_bailout_to_csr();
|
|
1673
|
-
var _invarianterror = require_invariant_error();
|
|
1674
|
-
function _interop_require_default(obj) {
|
|
1675
|
-
return obj && obj.__esModule ? obj : {
|
|
1676
|
-
default: obj
|
|
1677
|
-
};
|
|
1678
|
-
}
|
|
1679
|
-
var hasPostpone = typeof _react.default.unstable_postpone === "function";
|
|
1680
|
-
function createDynamicTrackingState(isDebugDynamicAccesses) {
|
|
1681
|
-
return {
|
|
1682
|
-
isDebugDynamicAccesses,
|
|
1683
|
-
dynamicAccesses: [],
|
|
1684
|
-
syncDynamicErrorWithStack: null
|
|
1685
|
-
};
|
|
1686
|
-
}
|
|
1687
|
-
function createDynamicValidationState() {
|
|
1688
|
-
return {
|
|
1689
|
-
hasSuspenseAboveBody: false,
|
|
1690
|
-
hasDynamicMetadata: false,
|
|
1691
|
-
dynamicMetadata: null,
|
|
1692
|
-
hasDynamicViewport: false,
|
|
1693
|
-
hasAllowedDynamic: false,
|
|
1694
|
-
dynamicErrors: []
|
|
1695
|
-
};
|
|
1696
|
-
}
|
|
1697
|
-
function getFirstDynamicReason(trackingState) {
|
|
1698
|
-
var _trackingState_dynamicAccesses_;
|
|
1699
|
-
return (_trackingState_dynamicAccesses_ = trackingState.dynamicAccesses[0]) == null ? void 0 : _trackingState_dynamicAccesses_.expression;
|
|
1700
|
-
}
|
|
1701
|
-
function markCurrentScopeAsDynamic(store, workUnitStore, expression) {
|
|
1702
|
-
if (workUnitStore) {
|
|
1703
|
-
switch (workUnitStore.type) {
|
|
1704
|
-
case "cache":
|
|
1705
|
-
case "unstable-cache":
|
|
1706
|
-
return;
|
|
1707
|
-
case "private-cache":
|
|
1708
|
-
return;
|
|
1709
|
-
}
|
|
1710
|
-
}
|
|
1711
|
-
if (store.forceDynamic || store.forceStatic) return;
|
|
1712
|
-
if (store.dynamicShouldError) {
|
|
1713
|
-
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route ${store.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
1714
|
-
value: "E553",
|
|
1715
|
-
enumerable: false,
|
|
1716
|
-
configurable: true
|
|
1717
|
-
});
|
|
1718
|
-
}
|
|
1719
|
-
if (workUnitStore) {
|
|
1720
|
-
switch (workUnitStore.type) {
|
|
1721
|
-
case "prerender-ppr":
|
|
1722
|
-
return postponeWithTracking(store.route, expression, workUnitStore.dynamicTracking);
|
|
1723
|
-
case "prerender-legacy":
|
|
1724
|
-
workUnitStore.revalidate = 0;
|
|
1725
|
-
const err = Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used ${expression}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
1726
|
-
value: "E550",
|
|
1727
|
-
enumerable: false,
|
|
1728
|
-
configurable: true
|
|
1729
|
-
});
|
|
1730
|
-
store.dynamicUsageDescription = expression;
|
|
1731
|
-
store.dynamicUsageStack = err.stack;
|
|
1732
|
-
throw err;
|
|
1733
|
-
case "request":
|
|
1734
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1735
|
-
workUnitStore.usedDynamic = true;
|
|
1736
|
-
}
|
|
1737
|
-
break;
|
|
1738
|
-
}
|
|
1739
|
-
}
|
|
1740
|
-
}
|
|
1741
|
-
function throwToInterruptStaticGeneration(expression, store, prerenderStore) {
|
|
1742
|
-
const err = Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
1743
|
-
value: "E558",
|
|
1744
|
-
enumerable: false,
|
|
1745
|
-
configurable: true
|
|
1746
|
-
});
|
|
1747
|
-
prerenderStore.revalidate = 0;
|
|
1748
|
-
store.dynamicUsageDescription = expression;
|
|
1749
|
-
store.dynamicUsageStack = err.stack;
|
|
1750
|
-
throw err;
|
|
1751
|
-
}
|
|
1752
|
-
function trackDynamicDataInDynamicRender(workUnitStore) {
|
|
1753
|
-
switch (workUnitStore.type) {
|
|
1754
|
-
case "cache":
|
|
1755
|
-
case "unstable-cache":
|
|
1756
|
-
return;
|
|
1757
|
-
case "private-cache":
|
|
1758
|
-
return;
|
|
1759
|
-
case "prerender":
|
|
1760
|
-
case "prerender-runtime":
|
|
1761
|
-
case "prerender-legacy":
|
|
1762
|
-
case "prerender-ppr":
|
|
1763
|
-
case "prerender-client":
|
|
1764
|
-
break;
|
|
1765
|
-
case "request":
|
|
1766
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1767
|
-
workUnitStore.usedDynamic = true;
|
|
1768
|
-
}
|
|
1769
|
-
break;
|
|
1770
|
-
}
|
|
1771
|
-
}
|
|
1772
|
-
function abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore) {
|
|
1773
|
-
const reason = `Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`;
|
|
1774
|
-
const error = createPrerenderInterruptedError(reason);
|
|
1775
|
-
prerenderStore.controller.abort(error);
|
|
1776
|
-
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
1777
|
-
if (dynamicTracking) {
|
|
1778
|
-
dynamicTracking.dynamicAccesses.push({
|
|
1779
|
-
// When we aren't debugging, we don't need to create another error for the
|
|
1780
|
-
// stack trace.
|
|
1781
|
-
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
1782
|
-
expression
|
|
1783
|
-
});
|
|
1784
|
-
}
|
|
1785
|
-
}
|
|
1786
|
-
function abortOnSynchronousPlatformIOAccess(route, expression, errorWithStack, prerenderStore) {
|
|
1787
|
-
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
1788
|
-
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
1789
|
-
if (dynamicTracking) {
|
|
1790
|
-
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
1791
|
-
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
1792
|
-
}
|
|
1793
|
-
}
|
|
1794
|
-
}
|
|
1795
|
-
function abortAndThrowOnSynchronousRequestDataAccess(route, expression, errorWithStack, prerenderStore) {
|
|
1796
|
-
const prerenderSignal = prerenderStore.controller.signal;
|
|
1797
|
-
if (prerenderSignal.aborted === false) {
|
|
1798
|
-
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
1799
|
-
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
1800
|
-
if (dynamicTracking) {
|
|
1801
|
-
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
1802
|
-
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
1803
|
-
}
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1806
|
-
throw createPrerenderInterruptedError(`Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`);
|
|
1807
|
-
}
|
|
1808
|
-
function Postpone({ reason, route }) {
|
|
1809
|
-
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
1810
|
-
const dynamicTracking = prerenderStore && prerenderStore.type === "prerender-ppr" ? prerenderStore.dynamicTracking : null;
|
|
1811
|
-
postponeWithTracking(route, reason, dynamicTracking);
|
|
1812
|
-
}
|
|
1813
|
-
function postponeWithTracking(route, expression, dynamicTracking) {
|
|
1814
|
-
assertPostpone();
|
|
1815
|
-
if (dynamicTracking) {
|
|
1816
|
-
dynamicTracking.dynamicAccesses.push({
|
|
1817
|
-
// When we aren't debugging, we don't need to create another error for the
|
|
1818
|
-
// stack trace.
|
|
1819
|
-
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
1820
|
-
expression
|
|
1821
|
-
});
|
|
1822
|
-
}
|
|
1823
|
-
_react.default.unstable_postpone(createPostponeReason(route, expression));
|
|
1824
|
-
}
|
|
1825
|
-
function createPostponeReason(route, expression) {
|
|
1826
|
-
return `Route ${route} needs to bail out of prerendering at this point because it used ${expression}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;
|
|
1827
|
-
}
|
|
1828
|
-
function isDynamicPostpone(err) {
|
|
1829
|
-
if (typeof err === "object" && err !== null && typeof err.message === "string") {
|
|
1830
|
-
return isDynamicPostponeReason(err.message);
|
|
1831
|
-
}
|
|
1832
|
-
return false;
|
|
1833
|
-
}
|
|
1834
|
-
function isDynamicPostponeReason(reason) {
|
|
1835
|
-
return reason.includes("needs to bail out of prerendering at this point because it used") && reason.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error");
|
|
1836
|
-
}
|
|
1837
|
-
if (isDynamicPostponeReason(createPostponeReason("%%%", "^^^")) === false) {
|
|
1838
|
-
throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
1839
|
-
value: "E296",
|
|
1840
|
-
enumerable: false,
|
|
1841
|
-
configurable: true
|
|
1842
|
-
});
|
|
1843
|
-
}
|
|
1844
|
-
var NEXT_PRERENDER_INTERRUPTED = "NEXT_PRERENDER_INTERRUPTED";
|
|
1845
|
-
function createPrerenderInterruptedError(message) {
|
|
1846
|
-
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
1847
|
-
value: "E394",
|
|
1848
|
-
enumerable: false,
|
|
1849
|
-
configurable: true
|
|
1850
|
-
});
|
|
1851
|
-
error.digest = NEXT_PRERENDER_INTERRUPTED;
|
|
1852
|
-
return error;
|
|
1853
|
-
}
|
|
1854
|
-
function isPrerenderInterruptedError(error) {
|
|
1855
|
-
return typeof error === "object" && error !== null && error.digest === NEXT_PRERENDER_INTERRUPTED && "name" in error && "message" in error && error instanceof Error;
|
|
1856
|
-
}
|
|
1857
|
-
function accessedDynamicData(dynamicAccesses) {
|
|
1858
|
-
return dynamicAccesses.length > 0;
|
|
1859
|
-
}
|
|
1860
|
-
function consumeDynamicAccess(serverDynamic, clientDynamic) {
|
|
1861
|
-
serverDynamic.dynamicAccesses.push(...clientDynamic.dynamicAccesses);
|
|
1862
|
-
return serverDynamic.dynamicAccesses;
|
|
1863
|
-
}
|
|
1864
|
-
function formatDynamicAPIAccesses(dynamicAccesses) {
|
|
1865
|
-
return dynamicAccesses.filter((access) => typeof access.stack === "string" && access.stack.length > 0).map(({ expression, stack }) => {
|
|
1866
|
-
stack = stack.split("\n").slice(4).filter((line) => {
|
|
1867
|
-
if (line.includes("node_modules/next/")) {
|
|
1868
|
-
return false;
|
|
1869
|
-
}
|
|
1870
|
-
if (line.includes(" (<anonymous>)")) {
|
|
1871
|
-
return false;
|
|
1872
|
-
}
|
|
1873
|
-
if (line.includes(" (node:")) {
|
|
1874
|
-
return false;
|
|
1875
|
-
}
|
|
1876
|
-
return true;
|
|
1877
|
-
}).join("\n");
|
|
1878
|
-
return `Dynamic API Usage Debug - ${expression}:
|
|
1879
|
-
${stack}`;
|
|
1880
|
-
});
|
|
1881
|
-
}
|
|
1882
|
-
function assertPostpone() {
|
|
1883
|
-
if (!hasPostpone) {
|
|
1884
|
-
throw Object.defineProperty(new Error(`Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js`), "__NEXT_ERROR_CODE", {
|
|
1885
|
-
value: "E224",
|
|
1886
|
-
enumerable: false,
|
|
1887
|
-
configurable: true
|
|
1888
|
-
});
|
|
1889
|
-
}
|
|
1890
|
-
}
|
|
1891
|
-
function createRenderInBrowserAbortSignal() {
|
|
1892
|
-
const controller = new AbortController();
|
|
1893
|
-
controller.abort(Object.defineProperty(new _bailouttocsr.BailoutToCSRError("Render in Browser"), "__NEXT_ERROR_CODE", {
|
|
1894
|
-
value: "E721",
|
|
1895
|
-
enumerable: false,
|
|
1896
|
-
configurable: true
|
|
1897
|
-
}));
|
|
1898
|
-
return controller.signal;
|
|
1899
|
-
}
|
|
1900
|
-
function createHangingInputAbortSignal(workUnitStore) {
|
|
1901
|
-
switch (workUnitStore.type) {
|
|
1902
|
-
case "prerender":
|
|
1903
|
-
case "prerender-runtime":
|
|
1904
|
-
const controller = new AbortController();
|
|
1905
|
-
if (workUnitStore.cacheSignal) {
|
|
1906
|
-
workUnitStore.cacheSignal.inputReady().then(() => {
|
|
1907
|
-
controller.abort();
|
|
1908
|
-
});
|
|
1909
|
-
} else {
|
|
1910
|
-
const runtimeStagePromise = (0, _workunitasyncstorageexternal.getRuntimeStagePromise)(workUnitStore);
|
|
1911
|
-
if (runtimeStagePromise) {
|
|
1912
|
-
runtimeStagePromise.then(() => (0, _scheduler.scheduleOnNextTick)(() => controller.abort()));
|
|
1913
|
-
} else {
|
|
1914
|
-
(0, _scheduler.scheduleOnNextTick)(() => controller.abort());
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
return controller.signal;
|
|
1918
|
-
case "prerender-client":
|
|
1919
|
-
case "prerender-ppr":
|
|
1920
|
-
case "prerender-legacy":
|
|
1921
|
-
case "request":
|
|
1922
|
-
case "cache":
|
|
1923
|
-
case "private-cache":
|
|
1924
|
-
case "unstable-cache":
|
|
1925
|
-
return void 0;
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
|
-
function annotateDynamicAccess(expression, prerenderStore) {
|
|
1929
|
-
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
1930
|
-
if (dynamicTracking) {
|
|
1931
|
-
dynamicTracking.dynamicAccesses.push({
|
|
1932
|
-
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
1933
|
-
expression
|
|
1934
|
-
});
|
|
1935
|
-
}
|
|
1936
|
-
}
|
|
1937
|
-
function useDynamicRouteParams(expression) {
|
|
1938
|
-
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
1939
|
-
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
1940
|
-
if (workStore && workUnitStore) {
|
|
1941
|
-
switch (workUnitStore.type) {
|
|
1942
|
-
case "prerender-client":
|
|
1943
|
-
case "prerender": {
|
|
1944
|
-
const fallbackParams = workUnitStore.fallbackRouteParams;
|
|
1945
|
-
if (fallbackParams && fallbackParams.size > 0) {
|
|
1946
|
-
_react.default.use((0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, workStore.route, expression));
|
|
1947
|
-
}
|
|
1948
|
-
break;
|
|
1949
|
-
}
|
|
1950
|
-
case "prerender-ppr": {
|
|
1951
|
-
const fallbackParams = workUnitStore.fallbackRouteParams;
|
|
1952
|
-
if (fallbackParams && fallbackParams.size > 0) {
|
|
1953
|
-
return postponeWithTracking(workStore.route, expression, workUnitStore.dynamicTracking);
|
|
1954
|
-
}
|
|
1955
|
-
break;
|
|
1956
|
-
}
|
|
1957
|
-
case "prerender-runtime":
|
|
1958
|
-
throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called during a runtime prerender. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
1959
|
-
value: "E771",
|
|
1960
|
-
enumerable: false,
|
|
1961
|
-
configurable: true
|
|
1962
|
-
});
|
|
1963
|
-
case "cache":
|
|
1964
|
-
case "private-cache":
|
|
1965
|
-
throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called inside a cache scope. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
1966
|
-
value: "E745",
|
|
1967
|
-
enumerable: false,
|
|
1968
|
-
configurable: true
|
|
1969
|
-
});
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
|
-
}
|
|
1973
|
-
function useDynamicSearchParams(expression) {
|
|
1974
|
-
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
1975
|
-
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
1976
|
-
if (!workStore) {
|
|
1977
|
-
return;
|
|
1978
|
-
}
|
|
1979
|
-
if (!workUnitStore) {
|
|
1980
|
-
(0, _workunitasyncstorageexternal.throwForMissingRequestStore)(expression);
|
|
1981
|
-
}
|
|
1982
|
-
switch (workUnitStore.type) {
|
|
1983
|
-
case "prerender-client": {
|
|
1984
|
-
_react.default.use((0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, workStore.route, expression));
|
|
1985
|
-
break;
|
|
1986
|
-
}
|
|
1987
|
-
case "prerender-legacy":
|
|
1988
|
-
case "prerender-ppr": {
|
|
1989
|
-
if (workStore.forceStatic) {
|
|
1990
|
-
return;
|
|
1991
|
-
}
|
|
1992
|
-
throw Object.defineProperty(new _bailouttocsr.BailoutToCSRError(expression), "__NEXT_ERROR_CODE", {
|
|
1993
|
-
value: "E394",
|
|
1994
|
-
enumerable: false,
|
|
1995
|
-
configurable: true
|
|
1996
|
-
});
|
|
1997
|
-
}
|
|
1998
|
-
case "prerender":
|
|
1999
|
-
case "prerender-runtime":
|
|
2000
|
-
throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called from a Server Component. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
2001
|
-
value: "E795",
|
|
2002
|
-
enumerable: false,
|
|
2003
|
-
configurable: true
|
|
2004
|
-
});
|
|
2005
|
-
case "cache":
|
|
2006
|
-
case "unstable-cache":
|
|
2007
|
-
case "private-cache":
|
|
2008
|
-
throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called inside a cache scope. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
2009
|
-
value: "E745",
|
|
2010
|
-
enumerable: false,
|
|
2011
|
-
configurable: true
|
|
2012
|
-
});
|
|
2013
|
-
case "request":
|
|
2014
|
-
return;
|
|
2015
|
-
}
|
|
2016
|
-
}
|
|
2017
|
-
var hasSuspenseRegex = /\n\s+at Suspense \(<anonymous>\)/;
|
|
2018
|
-
var bodyAndImplicitTags = "body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6";
|
|
2019
|
-
var hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex = new RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${bodyAndImplicitTags}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${_boundaryconstants.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`);
|
|
2020
|
-
var hasMetadataRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.METADATA_BOUNDARY_NAME}[\\n\\s]`);
|
|
2021
|
-
var hasViewportRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`);
|
|
2022
|
-
var hasOutletRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
2023
|
-
function trackAllowedDynamicAccess(workStore, componentStack, dynamicValidation, clientDynamic) {
|
|
2024
|
-
if (hasOutletRegex.test(componentStack)) {
|
|
2025
|
-
return;
|
|
2026
|
-
} else if (hasMetadataRegex.test(componentStack)) {
|
|
2027
|
-
dynamicValidation.hasDynamicMetadata = true;
|
|
2028
|
-
return;
|
|
2029
|
-
} else if (hasViewportRegex.test(componentStack)) {
|
|
2030
|
-
dynamicValidation.hasDynamicViewport = true;
|
|
2031
|
-
return;
|
|
2032
|
-
} else if (hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)) {
|
|
2033
|
-
dynamicValidation.hasAllowedDynamic = true;
|
|
2034
|
-
dynamicValidation.hasSuspenseAboveBody = true;
|
|
2035
|
-
return;
|
|
2036
|
-
} else if (hasSuspenseRegex.test(componentStack)) {
|
|
2037
|
-
dynamicValidation.hasAllowedDynamic = true;
|
|
2038
|
-
return;
|
|
2039
|
-
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
|
2040
|
-
dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);
|
|
2041
|
-
return;
|
|
2042
|
-
} else {
|
|
2043
|
-
const message = `Route "${workStore.route}": Uncached data was accessed outside of <Suspense>. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`;
|
|
2044
|
-
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
2045
|
-
dynamicValidation.dynamicErrors.push(error);
|
|
2046
|
-
return;
|
|
2047
|
-
}
|
|
2048
|
-
}
|
|
2049
|
-
function trackDynamicHoleInRuntimeShell(workStore, componentStack, dynamicValidation, clientDynamic) {
|
|
2050
|
-
if (hasOutletRegex.test(componentStack)) {
|
|
2051
|
-
return;
|
|
2052
|
-
} else if (hasMetadataRegex.test(componentStack)) {
|
|
2053
|
-
const message = `Route "${workStore.route}": Uncached data or \`connection()\` was accessed inside \`generateMetadata\`. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`;
|
|
2054
|
-
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
2055
|
-
dynamicValidation.dynamicMetadata = error;
|
|
2056
|
-
return;
|
|
2057
|
-
} else if (hasViewportRegex.test(componentStack)) {
|
|
2058
|
-
const message = `Route "${workStore.route}": Uncached data or \`connection()\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`;
|
|
2059
|
-
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
2060
|
-
dynamicValidation.dynamicErrors.push(error);
|
|
2061
|
-
return;
|
|
2062
|
-
} else if (hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)) {
|
|
2063
|
-
dynamicValidation.hasAllowedDynamic = true;
|
|
2064
|
-
dynamicValidation.hasSuspenseAboveBody = true;
|
|
2065
|
-
return;
|
|
2066
|
-
} else if (hasSuspenseRegex.test(componentStack)) {
|
|
2067
|
-
dynamicValidation.hasAllowedDynamic = true;
|
|
2068
|
-
return;
|
|
2069
|
-
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
|
2070
|
-
dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);
|
|
2071
|
-
return;
|
|
2072
|
-
} else {
|
|
2073
|
-
const message = `Route "${workStore.route}": Uncached data or \`connection()\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`;
|
|
2074
|
-
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
2075
|
-
dynamicValidation.dynamicErrors.push(error);
|
|
2076
|
-
return;
|
|
2077
|
-
}
|
|
2078
|
-
}
|
|
2079
|
-
function trackDynamicHoleInStaticShell(workStore, componentStack, dynamicValidation, clientDynamic) {
|
|
2080
|
-
if (hasOutletRegex.test(componentStack)) {
|
|
2081
|
-
return;
|
|
2082
|
-
} else if (hasMetadataRegex.test(componentStack)) {
|
|
2083
|
-
const message = `Route "${workStore.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`;
|
|
2084
|
-
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
2085
|
-
dynamicValidation.dynamicMetadata = error;
|
|
2086
|
-
return;
|
|
2087
|
-
} else if (hasViewportRegex.test(componentStack)) {
|
|
2088
|
-
const message = `Route "${workStore.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`;
|
|
2089
|
-
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
2090
|
-
dynamicValidation.dynamicErrors.push(error);
|
|
2091
|
-
return;
|
|
2092
|
-
} else if (hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)) {
|
|
2093
|
-
dynamicValidation.hasAllowedDynamic = true;
|
|
2094
|
-
dynamicValidation.hasSuspenseAboveBody = true;
|
|
2095
|
-
return;
|
|
2096
|
-
} else if (hasSuspenseRegex.test(componentStack)) {
|
|
2097
|
-
dynamicValidation.hasAllowedDynamic = true;
|
|
2098
|
-
return;
|
|
2099
|
-
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
|
2100
|
-
dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);
|
|
2101
|
-
return;
|
|
2102
|
-
} else {
|
|
2103
|
-
const message = `Route "${workStore.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`;
|
|
2104
|
-
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
2105
|
-
dynamicValidation.dynamicErrors.push(error);
|
|
2106
|
-
return;
|
|
2107
|
-
}
|
|
2108
|
-
}
|
|
2109
|
-
function createErrorWithComponentOrOwnerStack(message, componentStack) {
|
|
2110
|
-
const ownerStack = process.env.NODE_ENV !== "production" && _react.default.captureOwnerStack ? _react.default.captureOwnerStack() : null;
|
|
2111
|
-
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
2112
|
-
value: "E394",
|
|
2113
|
-
enumerable: false,
|
|
2114
|
-
configurable: true
|
|
2115
|
-
});
|
|
2116
|
-
error.stack = error.name + ": " + message + (ownerStack || componentStack);
|
|
2117
|
-
return error;
|
|
2118
|
-
}
|
|
2119
|
-
var PreludeState = /* @__PURE__ */ (function(PreludeState2) {
|
|
2120
|
-
PreludeState2[PreludeState2["Full"] = 0] = "Full";
|
|
2121
|
-
PreludeState2[PreludeState2["Empty"] = 1] = "Empty";
|
|
2122
|
-
PreludeState2[PreludeState2["Errored"] = 2] = "Errored";
|
|
2123
|
-
return PreludeState2;
|
|
2124
|
-
})({});
|
|
2125
|
-
function logDisallowedDynamicError(workStore, error) {
|
|
2126
|
-
console.error(error);
|
|
2127
|
-
if (!workStore.dev) {
|
|
2128
|
-
if (workStore.hasReadableErrorStacks) {
|
|
2129
|
-
console.error(`To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running \`next dev\`, then open "${workStore.route}" in your browser to investigate the error.`);
|
|
2130
|
-
} else {
|
|
2131
|
-
console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
|
|
2132
|
-
- Start the app in development mode by running \`next dev\`, then open "${workStore.route}" in your browser to investigate the error.
|
|
2133
|
-
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`);
|
|
2134
|
-
}
|
|
2135
|
-
}
|
|
2136
|
-
}
|
|
2137
|
-
function throwIfDisallowedDynamic(workStore, prelude, dynamicValidation, serverDynamic) {
|
|
2138
|
-
if (serverDynamic.syncDynamicErrorWithStack) {
|
|
2139
|
-
logDisallowedDynamicError(workStore, serverDynamic.syncDynamicErrorWithStack);
|
|
2140
|
-
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2141
|
-
}
|
|
2142
|
-
if (prelude !== 0) {
|
|
2143
|
-
if (dynamicValidation.hasSuspenseAboveBody) {
|
|
2144
|
-
return;
|
|
2145
|
-
}
|
|
2146
|
-
const dynamicErrors = dynamicValidation.dynamicErrors;
|
|
2147
|
-
if (dynamicErrors.length > 0) {
|
|
2148
|
-
for (let i = 0; i < dynamicErrors.length; i++) {
|
|
2149
|
-
logDisallowedDynamicError(workStore, dynamicErrors[i]);
|
|
2150
|
-
}
|
|
2151
|
-
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2152
|
-
}
|
|
2153
|
-
if (dynamicValidation.hasDynamicViewport) {
|
|
2154
|
-
console.error(`Route "${workStore.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`);
|
|
2155
|
-
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2156
|
-
}
|
|
2157
|
-
if (prelude === 1) {
|
|
2158
|
-
console.error(`Route "${workStore.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`);
|
|
2159
|
-
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2160
|
-
}
|
|
2161
|
-
} else {
|
|
2162
|
-
if (dynamicValidation.hasAllowedDynamic === false && dynamicValidation.hasDynamicMetadata) {
|
|
2163
|
-
console.error(`Route "${workStore.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`);
|
|
2164
|
-
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2165
|
-
}
|
|
2166
|
-
}
|
|
2167
|
-
}
|
|
2168
|
-
function getStaticShellDisallowedDynamicReasons(workStore, prelude, dynamicValidation) {
|
|
2169
|
-
if (dynamicValidation.hasSuspenseAboveBody) {
|
|
2170
|
-
return [];
|
|
2171
|
-
}
|
|
2172
|
-
if (prelude !== 0) {
|
|
2173
|
-
const dynamicErrors = dynamicValidation.dynamicErrors;
|
|
2174
|
-
if (dynamicErrors.length > 0) {
|
|
2175
|
-
return dynamicErrors;
|
|
2176
|
-
}
|
|
2177
|
-
if (prelude === 1) {
|
|
2178
|
-
return [
|
|
2179
|
-
Object.defineProperty(new _invarianterror.InvariantError(`Route "${workStore.route}" did not produce a static shell and Next.js was unable to determine a reason.`), "__NEXT_ERROR_CODE", {
|
|
2180
|
-
value: "E936",
|
|
2181
|
-
enumerable: false,
|
|
2182
|
-
configurable: true
|
|
2183
|
-
})
|
|
2184
|
-
];
|
|
2185
|
-
}
|
|
2186
|
-
} else {
|
|
2187
|
-
if (dynamicValidation.hasAllowedDynamic === false && dynamicValidation.dynamicErrors.length === 0 && dynamicValidation.dynamicMetadata) {
|
|
2188
|
-
return [
|
|
2189
|
-
dynamicValidation.dynamicMetadata
|
|
2190
|
-
];
|
|
2191
|
-
}
|
|
2192
|
-
}
|
|
2193
|
-
return [];
|
|
2194
|
-
}
|
|
2195
|
-
function delayUntilRuntimeStage(prerenderStore, result) {
|
|
2196
|
-
if (prerenderStore.runtimeStagePromise) {
|
|
2197
|
-
return prerenderStore.runtimeStagePromise.then(() => result);
|
|
2198
|
-
}
|
|
2199
|
-
return result;
|
|
2200
|
-
}
|
|
2201
|
-
}
|
|
2202
|
-
});
|
|
2203
|
-
|
|
2204
|
-
// node_modules/next/dist/client/components/unstable-rethrow.server.js
|
|
2205
|
-
var require_unstable_rethrow_server = __commonJS({
|
|
2206
|
-
"node_modules/next/dist/client/components/unstable-rethrow.server.js"(exports$1, module) {
|
|
2207
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
2208
|
-
value: true
|
|
2209
|
-
});
|
|
2210
|
-
Object.defineProperty(exports$1, "unstable_rethrow", {
|
|
2211
|
-
enumerable: true,
|
|
2212
|
-
get: function() {
|
|
2213
|
-
return unstable_rethrow;
|
|
2214
|
-
}
|
|
2215
|
-
});
|
|
2216
|
-
var _dynamicrenderingutils = require_dynamic_rendering_utils();
|
|
2217
|
-
var _ispostpone = require_is_postpone();
|
|
2218
|
-
var _bailouttocsr = require_bailout_to_csr();
|
|
2219
|
-
var _isnextroutererror = require_is_next_router_error();
|
|
2220
|
-
var _dynamicrendering = require_dynamic_rendering();
|
|
2221
|
-
var _hooksservercontext = require_hooks_server_context();
|
|
2222
|
-
function unstable_rethrow(error) {
|
|
2223
|
-
if ((0, _isnextroutererror.isNextRouterError)(error) || (0, _bailouttocsr.isBailoutToCSRError)(error) || (0, _hooksservercontext.isDynamicServerError)(error) || (0, _dynamicrendering.isDynamicPostpone)(error) || (0, _ispostpone.isPostpone)(error) || (0, _dynamicrenderingutils.isHangingPromiseRejectionError)(error) || (0, _dynamicrendering.isPrerenderInterruptedError)(error)) {
|
|
2224
|
-
throw error;
|
|
2225
|
-
}
|
|
2226
|
-
if (error instanceof Error && "cause" in error) {
|
|
2227
|
-
unstable_rethrow(error.cause);
|
|
2228
|
-
}
|
|
2229
|
-
}
|
|
2230
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
2231
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
2232
|
-
Object.assign(exports$1.default, exports$1);
|
|
2233
|
-
module.exports = exports$1.default;
|
|
2234
|
-
}
|
|
2235
|
-
}
|
|
2236
|
-
});
|
|
2237
|
-
|
|
2238
|
-
// node_modules/next/dist/client/components/unstable-rethrow.browser.js
|
|
2239
|
-
var require_unstable_rethrow_browser = __commonJS({
|
|
2240
|
-
"node_modules/next/dist/client/components/unstable-rethrow.browser.js"(exports$1, module) {
|
|
2241
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
2242
|
-
value: true
|
|
2243
|
-
});
|
|
2244
|
-
Object.defineProperty(exports$1, "unstable_rethrow", {
|
|
2245
|
-
enumerable: true,
|
|
2246
|
-
get: function() {
|
|
2247
|
-
return unstable_rethrow;
|
|
2248
|
-
}
|
|
2249
|
-
});
|
|
2250
|
-
var _bailouttocsr = require_bailout_to_csr();
|
|
2251
|
-
var _isnextroutererror = require_is_next_router_error();
|
|
2252
|
-
function unstable_rethrow(error) {
|
|
2253
|
-
if ((0, _isnextroutererror.isNextRouterError)(error) || (0, _bailouttocsr.isBailoutToCSRError)(error)) {
|
|
2254
|
-
throw error;
|
|
2255
|
-
}
|
|
2256
|
-
if (error instanceof Error && "cause" in error) {
|
|
2257
|
-
unstable_rethrow(error.cause);
|
|
2258
|
-
}
|
|
2259
|
-
}
|
|
2260
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
2261
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
2262
|
-
Object.assign(exports$1.default, exports$1);
|
|
2263
|
-
module.exports = exports$1.default;
|
|
2264
|
-
}
|
|
2265
|
-
}
|
|
2266
|
-
});
|
|
2267
|
-
|
|
2268
|
-
// node_modules/next/dist/client/components/unstable-rethrow.js
|
|
2269
|
-
var require_unstable_rethrow = __commonJS({
|
|
2270
|
-
"node_modules/next/dist/client/components/unstable-rethrow.js"(exports$1, module) {
|
|
2271
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
2272
|
-
value: true
|
|
2273
|
-
});
|
|
2274
|
-
Object.defineProperty(exports$1, "unstable_rethrow", {
|
|
2275
|
-
enumerable: true,
|
|
2276
|
-
get: function() {
|
|
2277
|
-
return unstable_rethrow;
|
|
2278
|
-
}
|
|
2279
|
-
});
|
|
2280
|
-
var unstable_rethrow = typeof window === "undefined" ? require_unstable_rethrow_server().unstable_rethrow : require_unstable_rethrow_browser().unstable_rethrow;
|
|
2281
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
2282
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
2283
|
-
Object.assign(exports$1.default, exports$1);
|
|
2284
|
-
module.exports = exports$1.default;
|
|
2285
|
-
}
|
|
2286
|
-
}
|
|
2287
|
-
});
|
|
2288
|
-
|
|
2289
|
-
// node_modules/next/dist/client/components/navigation.react-server.js
|
|
2290
|
-
var require_navigation_react_server = __commonJS({
|
|
2291
|
-
"node_modules/next/dist/client/components/navigation.react-server.js"(exports$1, module) {
|
|
2292
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
2293
|
-
value: true
|
|
2294
|
-
});
|
|
2295
|
-
function _export(target, all) {
|
|
2296
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
2297
|
-
enumerable: true,
|
|
2298
|
-
get: all[name]
|
|
2299
|
-
});
|
|
2300
|
-
}
|
|
2301
|
-
_export(exports$1, {
|
|
2302
|
-
ReadonlyURLSearchParams: function() {
|
|
2303
|
-
return _readonlyurlsearchparams.ReadonlyURLSearchParams;
|
|
2304
|
-
},
|
|
2305
|
-
RedirectType: function() {
|
|
2306
|
-
return _redirecterror.RedirectType;
|
|
2307
|
-
},
|
|
2308
|
-
forbidden: function() {
|
|
2309
|
-
return _forbidden.forbidden;
|
|
2310
|
-
},
|
|
2311
|
-
notFound: function() {
|
|
2312
|
-
return _notfound.notFound;
|
|
2313
|
-
},
|
|
2314
|
-
permanentRedirect: function() {
|
|
2315
|
-
return _redirect.permanentRedirect;
|
|
2316
|
-
},
|
|
2317
|
-
redirect: function() {
|
|
2318
|
-
return _redirect.redirect;
|
|
2319
|
-
},
|
|
2320
|
-
unauthorized: function() {
|
|
2321
|
-
return _unauthorized.unauthorized;
|
|
2322
|
-
},
|
|
2323
|
-
unstable_isUnrecognizedActionError: function() {
|
|
2324
|
-
return unstable_isUnrecognizedActionError;
|
|
2325
|
-
},
|
|
2326
|
-
unstable_rethrow: function() {
|
|
2327
|
-
return _unstablerethrow.unstable_rethrow;
|
|
2328
|
-
}
|
|
2329
|
-
});
|
|
2330
|
-
var _readonlyurlsearchparams = require_readonly_url_search_params();
|
|
2331
|
-
var _redirect = require_redirect();
|
|
2332
|
-
var _redirecterror = require_redirect_error();
|
|
2333
|
-
var _notfound = require_not_found();
|
|
2334
|
-
var _forbidden = require_forbidden();
|
|
2335
|
-
var _unauthorized = require_unauthorized();
|
|
2336
|
-
var _unstablerethrow = require_unstable_rethrow();
|
|
2337
|
-
function unstable_isUnrecognizedActionError() {
|
|
2338
|
-
throw Object.defineProperty(new Error("`unstable_isUnrecognizedActionError` can only be used on the client."), "__NEXT_ERROR_CODE", {
|
|
2339
|
-
value: "E776",
|
|
2340
|
-
enumerable: false,
|
|
2341
|
-
configurable: true
|
|
2342
|
-
});
|
|
2343
|
-
}
|
|
2344
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
2345
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
2346
|
-
Object.assign(exports$1.default, exports$1);
|
|
2347
|
-
module.exports = exports$1.default;
|
|
2348
|
-
}
|
|
2349
|
-
}
|
|
2350
|
-
});
|
|
2351
|
-
|
|
2352
|
-
// node_modules/next/dist/client/components/navigation.js
|
|
2353
|
-
var require_navigation = __commonJS({
|
|
2354
|
-
"node_modules/next/dist/client/components/navigation.js"(exports$1, module) {
|
|
2355
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
2356
|
-
value: true
|
|
2357
|
-
});
|
|
2358
|
-
function _export(target, all) {
|
|
2359
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
2360
|
-
enumerable: true,
|
|
2361
|
-
get: all[name]
|
|
2362
|
-
});
|
|
2363
|
-
}
|
|
2364
|
-
_export(exports$1, {
|
|
2365
|
-
// We need the same class that was used to instantiate the context value
|
|
2366
|
-
// Otherwise instanceof checks will fail in usercode
|
|
2367
|
-
ReadonlyURLSearchParams: function() {
|
|
2368
|
-
return _hooksclientcontextsharedruntime.ReadonlyURLSearchParams;
|
|
2369
|
-
},
|
|
2370
|
-
RedirectType: function() {
|
|
2371
|
-
return _navigationreactserver.RedirectType;
|
|
2372
|
-
},
|
|
2373
|
-
ServerInsertedHTMLContext: function() {
|
|
2374
|
-
return _serverinsertedhtmlsharedruntime.ServerInsertedHTMLContext;
|
|
2375
|
-
},
|
|
2376
|
-
forbidden: function() {
|
|
2377
|
-
return _navigationreactserver.forbidden;
|
|
2378
|
-
},
|
|
2379
|
-
notFound: function() {
|
|
2380
|
-
return _navigationreactserver.notFound;
|
|
2381
|
-
},
|
|
2382
|
-
permanentRedirect: function() {
|
|
2383
|
-
return _navigationreactserver.permanentRedirect;
|
|
2384
|
-
},
|
|
2385
|
-
redirect: function() {
|
|
2386
|
-
return _navigationreactserver.redirect;
|
|
2387
|
-
},
|
|
2388
|
-
unauthorized: function() {
|
|
2389
|
-
return _navigationreactserver.unauthorized;
|
|
2390
|
-
},
|
|
2391
|
-
unstable_isUnrecognizedActionError: function() {
|
|
2392
|
-
return _unrecognizedactionerror.unstable_isUnrecognizedActionError;
|
|
2393
|
-
},
|
|
2394
|
-
unstable_rethrow: function() {
|
|
2395
|
-
return _navigationreactserver.unstable_rethrow;
|
|
2396
|
-
},
|
|
2397
|
-
useParams: function() {
|
|
2398
|
-
return useParams;
|
|
2399
|
-
},
|
|
2400
|
-
usePathname: function() {
|
|
2401
|
-
return usePathname3;
|
|
2402
|
-
},
|
|
2403
|
-
useRouter: function() {
|
|
2404
|
-
return useRouter3;
|
|
2405
|
-
},
|
|
2406
|
-
useSearchParams: function() {
|
|
2407
|
-
return useSearchParams;
|
|
2408
|
-
},
|
|
2409
|
-
useSelectedLayoutSegment: function() {
|
|
2410
|
-
return useSelectedLayoutSegment;
|
|
2411
|
-
},
|
|
2412
|
-
useSelectedLayoutSegments: function() {
|
|
2413
|
-
return useSelectedLayoutSegments;
|
|
2414
|
-
},
|
|
2415
|
-
useServerInsertedHTML: function() {
|
|
2416
|
-
return _serverinsertedhtmlsharedruntime.useServerInsertedHTML;
|
|
2417
|
-
}
|
|
2418
|
-
});
|
|
2419
|
-
var _interop_require_wildcard = require_interop_require_wildcard();
|
|
2420
|
-
var _react = /* @__PURE__ */ _interop_require_wildcard._(__require("react"));
|
|
2421
|
-
var _approutercontextsharedruntime = require_app_router_context_shared_runtime();
|
|
2422
|
-
var _hooksclientcontextsharedruntime = require_hooks_client_context_shared_runtime();
|
|
2423
|
-
var _segment = require_segment();
|
|
2424
|
-
var _serverinsertedhtmlsharedruntime = require_server_inserted_html_shared_runtime();
|
|
2425
|
-
var _unrecognizedactionerror = require_unrecognized_action_error();
|
|
2426
|
-
var _navigationreactserver = require_navigation_react_server();
|
|
2427
|
-
var useDynamicRouteParams = typeof window === "undefined" ? require_dynamic_rendering().useDynamicRouteParams : void 0;
|
|
2428
|
-
var useDynamicSearchParams = typeof window === "undefined" ? require_dynamic_rendering().useDynamicSearchParams : void 0;
|
|
2429
|
-
function useSearchParams() {
|
|
2430
|
-
useDynamicSearchParams == null ? void 0 : useDynamicSearchParams("useSearchParams()");
|
|
2431
|
-
const searchParams = (0, _react.useContext)(_hooksclientcontextsharedruntime.SearchParamsContext);
|
|
2432
|
-
const readonlySearchParams = (0, _react.useMemo)(() => {
|
|
2433
|
-
if (!searchParams) {
|
|
2434
|
-
return null;
|
|
2435
|
-
}
|
|
2436
|
-
return new _hooksclientcontextsharedruntime.ReadonlyURLSearchParams(searchParams);
|
|
2437
|
-
}, [
|
|
2438
|
-
searchParams
|
|
2439
|
-
]);
|
|
2440
|
-
if (process.env.NODE_ENV !== "production" && "use" in _react.default) {
|
|
2441
|
-
const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
|
2442
|
-
if (navigationPromises) {
|
|
2443
|
-
return (0, _react.use)(navigationPromises.searchParams);
|
|
2444
|
-
}
|
|
2445
|
-
}
|
|
2446
|
-
return readonlySearchParams;
|
|
2447
|
-
}
|
|
2448
|
-
function usePathname3() {
|
|
2449
|
-
useDynamicRouteParams == null ? void 0 : useDynamicRouteParams("usePathname()");
|
|
2450
|
-
const pathname = (0, _react.useContext)(_hooksclientcontextsharedruntime.PathnameContext);
|
|
2451
|
-
if (process.env.NODE_ENV !== "production" && "use" in _react.default) {
|
|
2452
|
-
const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
|
2453
|
-
if (navigationPromises) {
|
|
2454
|
-
return (0, _react.use)(navigationPromises.pathname);
|
|
2455
|
-
}
|
|
2456
|
-
}
|
|
2457
|
-
return pathname;
|
|
2458
|
-
}
|
|
2459
|
-
function useRouter3() {
|
|
2460
|
-
const router = (0, _react.useContext)(_approutercontextsharedruntime.AppRouterContext);
|
|
2461
|
-
if (router === null) {
|
|
2462
|
-
throw Object.defineProperty(new Error("invariant expected app router to be mounted"), "__NEXT_ERROR_CODE", {
|
|
2463
|
-
value: "E238",
|
|
2464
|
-
enumerable: false,
|
|
2465
|
-
configurable: true
|
|
2466
|
-
});
|
|
2467
|
-
}
|
|
2468
|
-
return router;
|
|
2469
|
-
}
|
|
2470
|
-
function useParams() {
|
|
2471
|
-
useDynamicRouteParams == null ? void 0 : useDynamicRouteParams("useParams()");
|
|
2472
|
-
const params = (0, _react.useContext)(_hooksclientcontextsharedruntime.PathParamsContext);
|
|
2473
|
-
if (process.env.NODE_ENV !== "production" && "use" in _react.default) {
|
|
2474
|
-
const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
|
2475
|
-
if (navigationPromises) {
|
|
2476
|
-
return (0, _react.use)(navigationPromises.params);
|
|
2477
|
-
}
|
|
2478
|
-
}
|
|
2479
|
-
return params;
|
|
2480
|
-
}
|
|
2481
|
-
function useSelectedLayoutSegments(parallelRouteKey = "children") {
|
|
2482
|
-
var _a;
|
|
2483
|
-
useDynamicRouteParams == null ? void 0 : useDynamicRouteParams("useSelectedLayoutSegments()");
|
|
2484
|
-
const context = (0, _react.useContext)(_approutercontextsharedruntime.LayoutRouterContext);
|
|
2485
|
-
if (!context) return null;
|
|
2486
|
-
if (process.env.NODE_ENV !== "production" && "use" in _react.default) {
|
|
2487
|
-
const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
|
2488
|
-
if (navigationPromises) {
|
|
2489
|
-
const promise = (_a = navigationPromises.selectedLayoutSegmentsPromises) == null ? void 0 : _a.get(parallelRouteKey);
|
|
2490
|
-
if (promise) {
|
|
2491
|
-
return (0, _react.use)(promise);
|
|
2492
|
-
}
|
|
2493
|
-
}
|
|
2494
|
-
}
|
|
2495
|
-
return (0, _segment.getSelectedLayoutSegmentPath)(context.parentTree, parallelRouteKey);
|
|
2496
|
-
}
|
|
2497
|
-
function useSelectedLayoutSegment(parallelRouteKey = "children") {
|
|
2498
|
-
var _a;
|
|
2499
|
-
useDynamicRouteParams == null ? void 0 : useDynamicRouteParams("useSelectedLayoutSegment()");
|
|
2500
|
-
const navigationPromises = (0, _react.useContext)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
|
2501
|
-
const selectedLayoutSegments = useSelectedLayoutSegments(parallelRouteKey);
|
|
2502
|
-
if (process.env.NODE_ENV !== "production" && navigationPromises && "use" in _react.default) {
|
|
2503
|
-
const promise = (_a = navigationPromises.selectedLayoutSegmentPromises) == null ? void 0 : _a.get(parallelRouteKey);
|
|
2504
|
-
if (promise) {
|
|
2505
|
-
return (0, _react.use)(promise);
|
|
2506
|
-
}
|
|
2507
|
-
}
|
|
2508
|
-
return (0, _segment.computeSelectedLayoutSegment)(selectedLayoutSegments, parallelRouteKey);
|
|
2509
|
-
}
|
|
2510
|
-
if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
|
|
2511
|
-
Object.defineProperty(exports$1.default, "__esModule", { value: true });
|
|
2512
|
-
Object.assign(exports$1.default, exports$1);
|
|
2513
|
-
module.exports = exports$1.default;
|
|
2514
|
-
}
|
|
2515
|
-
}
|
|
2516
|
-
});
|
|
2517
|
-
|
|
2518
|
-
// node_modules/next/navigation.js
|
|
2519
|
-
var require_navigation2 = __commonJS({
|
|
2520
|
-
"node_modules/next/navigation.js"(exports$1, module) {
|
|
2521
|
-
module.exports = require_navigation();
|
|
2522
|
-
}
|
|
2523
|
-
});
|
|
18
|
+
// src/app/components/Button/Button.tsx
|
|
2524
19
|
|
|
2525
20
|
// src/app/types/colors.ts
|
|
2526
21
|
function hasExtendedColors(config) {
|
|
@@ -2707,44 +202,26 @@ var getButtonVariantStyles = (variant) => {
|
|
|
2707
202
|
return {};
|
|
2708
203
|
};
|
|
2709
204
|
var Button = React.forwardRef(
|
|
2710
|
-
(
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
"variant",
|
|
2731
|
-
"size",
|
|
2732
|
-
"icon",
|
|
2733
|
-
"iconPosition",
|
|
2734
|
-
"isLoading",
|
|
2735
|
-
"loadingText",
|
|
2736
|
-
"fullWidth",
|
|
2737
|
-
"rounded",
|
|
2738
|
-
"className",
|
|
2739
|
-
"disableDefaultStyles",
|
|
2740
|
-
"children",
|
|
2741
|
-
"disabled",
|
|
2742
|
-
"colors",
|
|
2743
|
-
"customBg",
|
|
2744
|
-
"customTextColor",
|
|
2745
|
-
"customBorderColor",
|
|
2746
|
-
"style"
|
|
2747
|
-
]);
|
|
205
|
+
({
|
|
206
|
+
variant = BUTTON_VARIANTS.PRIMARY,
|
|
207
|
+
size = BUTTON_SIZES.MD,
|
|
208
|
+
icon,
|
|
209
|
+
iconPosition = BUTTON_ICON_POSITIONS.LEFT,
|
|
210
|
+
isLoading = false,
|
|
211
|
+
loadingText,
|
|
212
|
+
fullWidth = false,
|
|
213
|
+
rounded,
|
|
214
|
+
className = BUTTON_EMPTY_VALUE,
|
|
215
|
+
disableDefaultStyles = false,
|
|
216
|
+
children,
|
|
217
|
+
disabled,
|
|
218
|
+
colors,
|
|
219
|
+
customBg,
|
|
220
|
+
customTextColor,
|
|
221
|
+
customBorderColor,
|
|
222
|
+
style,
|
|
223
|
+
...props
|
|
224
|
+
}, ref) => {
|
|
2748
225
|
const colorConfig = colors || DEFAULT_COLOR_CONFIG;
|
|
2749
226
|
const variantColors = React.useMemo(() => {
|
|
2750
227
|
let baseColor;
|
|
@@ -2795,12 +272,19 @@ var Button = React.forwardRef(
|
|
|
2795
272
|
const variantSpecificStyles = getButtonVariantStyles(variant);
|
|
2796
273
|
const spacingStyles = variant !== BUTTON_VARIANTS.CLOSE && variant !== BUTTON_VARIANTS.CLEAR && variant !== BUTTON_VARIANTS.ICON ? { marginLeft: "0.375rem", marginRight: "0.375rem", marginTop: "0.625rem" } : {};
|
|
2797
274
|
const widthStyles = fullWidth ? { width: "100%" } : {};
|
|
2798
|
-
return
|
|
275
|
+
return {
|
|
276
|
+
...baseStyles,
|
|
277
|
+
...sizeStyles,
|
|
278
|
+
...roundedStyles,
|
|
279
|
+
...variantSpecificStyles,
|
|
280
|
+
...spacingStyles,
|
|
281
|
+
...widthStyles,
|
|
2799
282
|
backgroundColor: disabled ? variantColors.disabledBg : variantColors.bg,
|
|
2800
283
|
color: disabled ? variantColors.disabledTextColor : variantColors.textColor,
|
|
2801
284
|
borderColor: disabled ? variantColors.disabledBorderColor : variantColors.borderColor,
|
|
2802
|
-
cursor: disabled || isLoading ? "not-allowed" : "pointer"
|
|
2803
|
-
|
|
285
|
+
cursor: disabled || isLoading ? "not-allowed" : "pointer",
|
|
286
|
+
...style
|
|
287
|
+
};
|
|
2804
288
|
}, [
|
|
2805
289
|
disableDefaultStyles,
|
|
2806
290
|
size,
|
|
@@ -2852,7 +336,7 @@ var Button = React.forwardRef(
|
|
|
2852
336
|
` }),
|
|
2853
337
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2854
338
|
"button",
|
|
2855
|
-
|
|
339
|
+
{
|
|
2856
340
|
ref,
|
|
2857
341
|
disabled: disabled || isLoading,
|
|
2858
342
|
style: buttonStyle,
|
|
@@ -2860,8 +344,8 @@ var Button = React.forwardRef(
|
|
|
2860
344
|
onMouseEnter: handleMouseEnter,
|
|
2861
345
|
onMouseLeave: handleMouseLeave,
|
|
2862
346
|
onFocus: handleFocus,
|
|
2863
|
-
onBlur: handleBlur
|
|
2864
|
-
|
|
347
|
+
onBlur: handleBlur,
|
|
348
|
+
...props,
|
|
2865
349
|
children: isLoading ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2866
350
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2867
351
|
"svg",
|
|
@@ -2899,7 +383,7 @@ var Button = React.forwardRef(
|
|
|
2899
383
|
children,
|
|
2900
384
|
icon && iconPosition === BUTTON_ICON_POSITIONS.RIGHT && /* @__PURE__ */ jsxRuntime.jsx("span", { style: iconSpacingStyle, children: icon })
|
|
2901
385
|
] })
|
|
2902
|
-
}
|
|
386
|
+
}
|
|
2903
387
|
)
|
|
2904
388
|
] });
|
|
2905
389
|
}
|
|
@@ -2974,7 +458,7 @@ var getInputSizeStyles = (size) => {
|
|
|
2974
458
|
fontSize: "0.875rem"
|
|
2975
459
|
}
|
|
2976
460
|
};
|
|
2977
|
-
return
|
|
461
|
+
return { ...baseStyles, ...sizeMap[size] || sizeMap.md };
|
|
2978
462
|
};
|
|
2979
463
|
var getLabelStyles = (hasValue, isFocused, customStyle) => {
|
|
2980
464
|
const baseStyles = {
|
|
@@ -2987,7 +471,7 @@ var getLabelStyles = (hasValue, isFocused, customStyle) => {
|
|
|
2987
471
|
pointerEvents: "none",
|
|
2988
472
|
transform: hasValue || isFocused ? "translateY(-1.75rem)" : "translateY(0)"
|
|
2989
473
|
};
|
|
2990
|
-
return
|
|
474
|
+
return { ...baseStyles, ...customStyle };
|
|
2991
475
|
};
|
|
2992
476
|
var getIconButtonStyles = (size) => {
|
|
2993
477
|
const sizeMap = {
|
|
@@ -3004,7 +488,7 @@ var getIconButtonStyles = (size) => {
|
|
|
3004
488
|
minHeight: "1.25rem"
|
|
3005
489
|
}
|
|
3006
490
|
};
|
|
3007
|
-
return
|
|
491
|
+
return {
|
|
3008
492
|
position: "absolute",
|
|
3009
493
|
top: "50%",
|
|
3010
494
|
transform: "translateY(-50%)",
|
|
@@ -3015,8 +499,9 @@ var getIconButtonStyles = (size) => {
|
|
|
3015
499
|
transition: "color 300ms",
|
|
3016
500
|
display: "flex",
|
|
3017
501
|
alignItems: "center",
|
|
3018
|
-
justifyContent: "center"
|
|
3019
|
-
|
|
502
|
+
justifyContent: "center",
|
|
503
|
+
...sizeMap[size] || sizeMap.md
|
|
504
|
+
};
|
|
3020
505
|
};
|
|
3021
506
|
var getPasswordButtonFontSize = (size) => {
|
|
3022
507
|
const sizeMap = {
|
|
@@ -3027,60 +512,34 @@ var getPasswordButtonFontSize = (size) => {
|
|
|
3027
512
|
return sizeMap[size] || sizeMap.md;
|
|
3028
513
|
};
|
|
3029
514
|
var Input = React.forwardRef(
|
|
3030
|
-
(
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
"variant",
|
|
3059
|
-
"size",
|
|
3060
|
-
"label",
|
|
3061
|
-
"labelStyle",
|
|
3062
|
-
"onClear",
|
|
3063
|
-
"showPasswordToggle",
|
|
3064
|
-
"passwordIcon",
|
|
3065
|
-
"passwordIconHidden",
|
|
3066
|
-
"searchIcon",
|
|
3067
|
-
"clearIcon",
|
|
3068
|
-
"fullWidth",
|
|
3069
|
-
"className",
|
|
3070
|
-
"baseClassName",
|
|
3071
|
-
"labelClassName",
|
|
3072
|
-
"wrapperClassName",
|
|
3073
|
-
"disableDefaultStyles",
|
|
3074
|
-
"value",
|
|
3075
|
-
"colors",
|
|
3076
|
-
"customBg",
|
|
3077
|
-
"customTextColor",
|
|
3078
|
-
"customBorderColor",
|
|
3079
|
-
"style",
|
|
3080
|
-
"onFocus",
|
|
3081
|
-
"onBlur",
|
|
3082
|
-
"onChange"
|
|
3083
|
-
]);
|
|
515
|
+
({
|
|
516
|
+
variant = INPUT_VARIANTS.TEXT,
|
|
517
|
+
size = INPUT_SIZES.MD,
|
|
518
|
+
label,
|
|
519
|
+
labelStyle,
|
|
520
|
+
onClear,
|
|
521
|
+
showPasswordToggle = true,
|
|
522
|
+
passwordIcon,
|
|
523
|
+
passwordIconHidden,
|
|
524
|
+
searchIcon,
|
|
525
|
+
clearIcon,
|
|
526
|
+
fullWidth = true,
|
|
527
|
+
className = INPUT_EMPTY_VALUE,
|
|
528
|
+
baseClassName,
|
|
529
|
+
labelClassName,
|
|
530
|
+
wrapperClassName,
|
|
531
|
+
disableDefaultStyles = false,
|
|
532
|
+
value,
|
|
533
|
+
colors,
|
|
534
|
+
customBg,
|
|
535
|
+
customTextColor,
|
|
536
|
+
customBorderColor,
|
|
537
|
+
style,
|
|
538
|
+
onFocus,
|
|
539
|
+
onBlur,
|
|
540
|
+
onChange,
|
|
541
|
+
...props
|
|
542
|
+
}, ref) => {
|
|
3084
543
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
3085
544
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
3086
545
|
const [internalValue, setInternalValue] = React.useState("");
|
|
@@ -3130,24 +589,24 @@ var Input = React.forwardRef(
|
|
|
3130
589
|
};
|
|
3131
590
|
const handleFocus = (e) => {
|
|
3132
591
|
setIsFocused(true);
|
|
3133
|
-
onFocus
|
|
592
|
+
onFocus?.(e);
|
|
3134
593
|
};
|
|
3135
594
|
const handleBlur = (e) => {
|
|
3136
595
|
setIsFocused(false);
|
|
3137
|
-
onBlur
|
|
596
|
+
onBlur?.(e);
|
|
3138
597
|
};
|
|
3139
598
|
const handleChange = (e) => {
|
|
3140
599
|
if (variant === INPUT_VARIANTS.NUMBER) {
|
|
3141
600
|
const value2 = e.target.value;
|
|
3142
601
|
if (value2 === "" || value2 === "-" || /^-?\d*\.?\d*$/.test(value2)) {
|
|
3143
602
|
setInternalValue(value2);
|
|
3144
|
-
onChange
|
|
603
|
+
onChange?.(e);
|
|
3145
604
|
} else {
|
|
3146
605
|
e.preventDefault();
|
|
3147
606
|
}
|
|
3148
607
|
} else {
|
|
3149
608
|
setInternalValue(e.target.value);
|
|
3150
|
-
onChange
|
|
609
|
+
onChange?.(e);
|
|
3151
610
|
}
|
|
3152
611
|
};
|
|
3153
612
|
const handleKeyDown = (e) => {
|
|
@@ -3187,32 +646,37 @@ var Input = React.forwardRef(
|
|
|
3187
646
|
}
|
|
3188
647
|
}
|
|
3189
648
|
};
|
|
3190
|
-
const wrapperStyle = disableDefaultStyles ? {} :
|
|
649
|
+
const wrapperStyle = disableDefaultStyles ? {} : {
|
|
3191
650
|
position: "relative",
|
|
3192
651
|
marginBottom: "0.625rem",
|
|
3193
|
-
width: fullWidth ? "100%" : "auto"
|
|
3194
|
-
|
|
3195
|
-
|
|
652
|
+
width: fullWidth ? "100%" : "auto",
|
|
653
|
+
...cssVariables
|
|
654
|
+
};
|
|
655
|
+
const inputStyle = disableDefaultStyles ? {} : {
|
|
656
|
+
...getInputSizeStyles(size),
|
|
3196
657
|
borderColor: isFocused ? "var(--input-focus-border, #00D4FF)" : "var(--input-border, #4A5A6A)",
|
|
3197
658
|
boxShadow: isFocused ? "0 0 0 0.1875rem var(--input-focus-shadow, rgba(0,212,255,0.1))" : "none",
|
|
3198
659
|
paddingRight: variant === INPUT_VARIANTS.SEARCH ? "2.5rem" : variant === INPUT_VARIANTS.PASSWORD && showPasswordToggle ? "2rem" : void 0
|
|
3199
|
-
}
|
|
3200
|
-
const passwordButtonStyle =
|
|
660
|
+
};
|
|
661
|
+
const passwordButtonStyle = {
|
|
662
|
+
...getIconButtonStyles(size),
|
|
3201
663
|
right: "0.5rem",
|
|
3202
664
|
padding: 0,
|
|
3203
665
|
fontSize: getPasswordButtonFontSize(size)
|
|
3204
|
-
}
|
|
3205
|
-
const searchIconStyle =
|
|
666
|
+
};
|
|
667
|
+
const searchIconStyle = {
|
|
668
|
+
...getIconButtonStyles(size),
|
|
3206
669
|
right: "0.5rem",
|
|
3207
670
|
padding: 0,
|
|
3208
671
|
pointerEvents: "none"
|
|
3209
|
-
}
|
|
3210
|
-
const clearButtonStyle =
|
|
672
|
+
};
|
|
673
|
+
const clearButtonStyle = {
|
|
674
|
+
...getIconButtonStyles(size),
|
|
3211
675
|
right: "2rem",
|
|
3212
676
|
padding: "0.25rem",
|
|
3213
677
|
borderRadius: "9999px",
|
|
3214
678
|
zIndex: 2
|
|
3215
|
-
}
|
|
679
|
+
};
|
|
3216
680
|
const currentValue = value !== void 0 ? value : internalValue;
|
|
3217
681
|
const hasValue = Boolean(currentValue && String(currentValue).trim().length > 0);
|
|
3218
682
|
const uniqueId = React.useId();
|
|
@@ -3254,10 +718,10 @@ var Input = React.forwardRef(
|
|
|
3254
718
|
appearance: textfield;
|
|
3255
719
|
}
|
|
3256
720
|
` }),
|
|
3257
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: wrapperClassName, style:
|
|
721
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: wrapperClassName, style: { ...wrapperStyle, ...style }, children: [
|
|
3258
722
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3259
723
|
"input",
|
|
3260
|
-
|
|
724
|
+
{
|
|
3261
725
|
id: uniqueId,
|
|
3262
726
|
ref,
|
|
3263
727
|
type: getInputType(),
|
|
@@ -3265,14 +729,16 @@ var Input = React.forwardRef(
|
|
|
3265
729
|
value,
|
|
3266
730
|
autoComplete: INPUT_AUTOCOMPLETE_VALUES.OFF,
|
|
3267
731
|
className: disableDefaultStyles ? baseClassName : className,
|
|
3268
|
-
style:
|
|
732
|
+
style: {
|
|
733
|
+
...inputStyle,
|
|
3269
734
|
paddingRight: variant === INPUT_VARIANTS.NUMBER ? "2.5rem" : inputStyle.paddingRight
|
|
3270
|
-
}
|
|
735
|
+
},
|
|
3271
736
|
onFocus: handleFocus,
|
|
3272
737
|
onBlur: handleBlur,
|
|
3273
738
|
onChange: handleChange,
|
|
3274
|
-
onKeyDown: handleKeyDown
|
|
3275
|
-
|
|
739
|
+
onKeyDown: handleKeyDown,
|
|
740
|
+
...props
|
|
741
|
+
}
|
|
3276
742
|
),
|
|
3277
743
|
label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3278
744
|
"label",
|
|
@@ -3402,48 +868,28 @@ var Input = React.forwardRef(
|
|
|
3402
868
|
);
|
|
3403
869
|
Input.displayName = INPUT_DISPLAY_NAME;
|
|
3404
870
|
var SelectInput = React.forwardRef(
|
|
3405
|
-
(
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
"size",
|
|
3428
|
-
"label",
|
|
3429
|
-
"labelStyle",
|
|
3430
|
-
"children",
|
|
3431
|
-
"selectIcon",
|
|
3432
|
-
"fullWidth",
|
|
3433
|
-
"className",
|
|
3434
|
-
"baseClassName",
|
|
3435
|
-
"labelClassName",
|
|
3436
|
-
"wrapperClassName",
|
|
3437
|
-
"disableDefaultStyles",
|
|
3438
|
-
"value",
|
|
3439
|
-
"colors",
|
|
3440
|
-
"customBg",
|
|
3441
|
-
"customTextColor",
|
|
3442
|
-
"customBorderColor",
|
|
3443
|
-
"style",
|
|
3444
|
-
"onFocus",
|
|
3445
|
-
"onBlur"
|
|
3446
|
-
]);
|
|
871
|
+
({
|
|
872
|
+
size = INPUT_SIZES.MD,
|
|
873
|
+
label,
|
|
874
|
+
labelStyle,
|
|
875
|
+
children,
|
|
876
|
+
selectIcon,
|
|
877
|
+
fullWidth = true,
|
|
878
|
+
className = INPUT_EMPTY_VALUE,
|
|
879
|
+
baseClassName,
|
|
880
|
+
labelClassName,
|
|
881
|
+
wrapperClassName,
|
|
882
|
+
disableDefaultStyles = false,
|
|
883
|
+
value,
|
|
884
|
+
colors,
|
|
885
|
+
customBg,
|
|
886
|
+
customTextColor,
|
|
887
|
+
customBorderColor,
|
|
888
|
+
style,
|
|
889
|
+
onFocus,
|
|
890
|
+
onBlur,
|
|
891
|
+
...props
|
|
892
|
+
}, ref) => {
|
|
3447
893
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
3448
894
|
const colorConfig = colors || DEFAULT_COLOR_CONFIG;
|
|
3449
895
|
const selectColors = React.useMemo(() => {
|
|
@@ -3478,46 +924,49 @@ var SelectInput = React.forwardRef(
|
|
|
3478
924
|
}, [selectColors, colors, customBg, customTextColor, customBorderColor]);
|
|
3479
925
|
const handleFocus = (e) => {
|
|
3480
926
|
setIsFocused(true);
|
|
3481
|
-
onFocus
|
|
927
|
+
onFocus?.(e);
|
|
3482
928
|
};
|
|
3483
929
|
const handleBlur = (e) => {
|
|
3484
930
|
setIsFocused(false);
|
|
3485
|
-
onBlur
|
|
931
|
+
onBlur?.(e);
|
|
3486
932
|
};
|
|
3487
|
-
const wrapperStyle = disableDefaultStyles ? {} :
|
|
933
|
+
const wrapperStyle = disableDefaultStyles ? {} : {
|
|
3488
934
|
position: "relative",
|
|
3489
935
|
marginBottom: "0.625rem",
|
|
3490
|
-
width: fullWidth ? "100%" : "auto"
|
|
3491
|
-
|
|
3492
|
-
|
|
936
|
+
width: fullWidth ? "100%" : "auto",
|
|
937
|
+
...cssVariables
|
|
938
|
+
};
|
|
939
|
+
const selectStyle = disableDefaultStyles ? {} : {
|
|
940
|
+
...getInputSizeStyles(size),
|
|
3493
941
|
paddingRight: "2rem",
|
|
3494
942
|
appearance: "none",
|
|
3495
943
|
cursor: "pointer",
|
|
3496
944
|
borderColor: isFocused ? "var(--input-focus-border, #00D4FF)" : "var(--input-border, #4A5A6A)",
|
|
3497
945
|
boxShadow: isFocused ? "0 0 0 0.1875rem var(--input-focus-shadow, rgba(0,212,255,0.1))" : "none"
|
|
3498
|
-
}
|
|
3499
|
-
const iconStyle =
|
|
946
|
+
};
|
|
947
|
+
const iconStyle = {
|
|
948
|
+
...getIconButtonStyles(size),
|
|
3500
949
|
right: "0.5rem",
|
|
3501
950
|
padding: 0,
|
|
3502
951
|
pointerEvents: "none"
|
|
3503
|
-
}
|
|
952
|
+
};
|
|
3504
953
|
const hasValue = true;
|
|
3505
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: wrapperClassName, style:
|
|
954
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: wrapperClassName, style: { ...wrapperStyle, ...style }, children: [
|
|
3506
955
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3507
956
|
"select",
|
|
3508
|
-
|
|
957
|
+
{
|
|
3509
958
|
ref,
|
|
3510
959
|
value,
|
|
3511
960
|
className: disableDefaultStyles ? baseClassName : className,
|
|
3512
961
|
style: selectStyle,
|
|
3513
962
|
onFocus: handleFocus,
|
|
3514
|
-
onBlur: handleBlur
|
|
3515
|
-
|
|
963
|
+
onBlur: handleBlur,
|
|
964
|
+
...props,
|
|
3516
965
|
children: [
|
|
3517
966
|
/* @__PURE__ */ jsxRuntime.jsx("option", { value: INPUT_EMPTY_VALUE, disabled: true, hidden: true }),
|
|
3518
967
|
children
|
|
3519
968
|
]
|
|
3520
|
-
}
|
|
969
|
+
}
|
|
3521
970
|
),
|
|
3522
971
|
label && /* @__PURE__ */ jsxRuntime.jsx("label", { className: labelClassName, style: getLabelStyles(hasValue, isFocused, labelStyle), children: label }),
|
|
3523
972
|
selectIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { style: iconStyle, children: selectIcon })
|
|
@@ -3619,9 +1068,10 @@ var getDatePickerSizeStyles = (size, showClearButton) => {
|
|
|
3619
1068
|
const paddingRight = showClearButton ? { sm: "3.5rem", md: "4rem", lg: "4.5rem" } : { sm: "2rem", md: "2.5rem", lg: "2.8125rem" };
|
|
3620
1069
|
const sizeStyle = basePadding[size] || basePadding.md;
|
|
3621
1070
|
const pr = paddingRight[size] || paddingRight.md;
|
|
3622
|
-
return
|
|
1071
|
+
return {
|
|
1072
|
+
...sizeStyle,
|
|
3623
1073
|
paddingRight: pr
|
|
3624
|
-
}
|
|
1074
|
+
};
|
|
3625
1075
|
};
|
|
3626
1076
|
var getLabelStyles2 = (hasValue, isFocused, customStyle) => {
|
|
3627
1077
|
const baseStyles = {
|
|
@@ -3634,7 +1084,7 @@ var getLabelStyles2 = (hasValue, isFocused, customStyle) => {
|
|
|
3634
1084
|
pointerEvents: "none",
|
|
3635
1085
|
transform: hasValue || isFocused ? "translateY(-1.75rem)" : "translateY(0)"
|
|
3636
1086
|
};
|
|
3637
|
-
return
|
|
1087
|
+
return { ...baseStyles, ...customStyle };
|
|
3638
1088
|
};
|
|
3639
1089
|
var getIconPositionStyles = (size) => {
|
|
3640
1090
|
const positions = {
|
|
@@ -3670,56 +1120,32 @@ var getWidthStyles = (size, fullWidth) => {
|
|
|
3670
1120
|
return widths[size] || widths.md;
|
|
3671
1121
|
};
|
|
3672
1122
|
var DatePicker = React.forwardRef(
|
|
3673
|
-
(
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
"size",
|
|
3700
|
-
"onClear",
|
|
3701
|
-
"calendarIcon",
|
|
3702
|
-
"clearIcon",
|
|
3703
|
-
"fullWidth",
|
|
3704
|
-
"baseClassName",
|
|
3705
|
-
"wrapperClassName",
|
|
3706
|
-
"disableDefaultStyles",
|
|
3707
|
-
"selected",
|
|
3708
|
-
"onChange",
|
|
3709
|
-
"locale",
|
|
3710
|
-
"className",
|
|
3711
|
-
"minDate",
|
|
3712
|
-
"maxDate",
|
|
3713
|
-
"startDate",
|
|
3714
|
-
"endDate",
|
|
3715
|
-
"colors",
|
|
3716
|
-
"customBg",
|
|
3717
|
-
"customTextColor",
|
|
3718
|
-
"customBorderColor",
|
|
3719
|
-
"label",
|
|
3720
|
-
"labelStyle",
|
|
3721
|
-
"placeholderText"
|
|
3722
|
-
]);
|
|
1123
|
+
({
|
|
1124
|
+
size = "md",
|
|
1125
|
+
onClear,
|
|
1126
|
+
calendarIcon,
|
|
1127
|
+
clearIcon,
|
|
1128
|
+
fullWidth = false,
|
|
1129
|
+
baseClassName,
|
|
1130
|
+
wrapperClassName,
|
|
1131
|
+
disableDefaultStyles = false,
|
|
1132
|
+
selected,
|
|
1133
|
+
onChange,
|
|
1134
|
+
locale: locale$1,
|
|
1135
|
+
className = DATEPICKER_EMPTY_VALUE,
|
|
1136
|
+
minDate,
|
|
1137
|
+
maxDate,
|
|
1138
|
+
startDate,
|
|
1139
|
+
endDate,
|
|
1140
|
+
colors,
|
|
1141
|
+
customBg,
|
|
1142
|
+
customTextColor,
|
|
1143
|
+
customBorderColor,
|
|
1144
|
+
label,
|
|
1145
|
+
labelStyle,
|
|
1146
|
+
placeholderText = " ",
|
|
1147
|
+
...props
|
|
1148
|
+
}, ref) => {
|
|
3723
1149
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
3724
1150
|
const [inputClassName] = React.useState(
|
|
3725
1151
|
() => `datepicker-input-${Math.random().toString(36).substr(2, 9)}`
|
|
@@ -3770,12 +1196,14 @@ var DatePicker = React.forwardRef(
|
|
|
3770
1196
|
"--input-accent": accentColor
|
|
3771
1197
|
};
|
|
3772
1198
|
}, [colorConfig, customBg, customTextColor, customBorderColor, colors]);
|
|
3773
|
-
const wrapperStyle = disableDefaultStyles ? {} :
|
|
1199
|
+
const wrapperStyle = disableDefaultStyles ? {} : {
|
|
3774
1200
|
position: "relative",
|
|
3775
1201
|
marginBottom: "0.625rem",
|
|
3776
|
-
width: "100%"
|
|
3777
|
-
|
|
3778
|
-
|
|
1202
|
+
width: "100%",
|
|
1203
|
+
...getWidthStyles(size, fullWidth),
|
|
1204
|
+
...cssVariables
|
|
1205
|
+
};
|
|
1206
|
+
const iconButtonStyle = {
|
|
3779
1207
|
position: "absolute",
|
|
3780
1208
|
top: "50%",
|
|
3781
1209
|
transform: "translateY(-50%)",
|
|
@@ -3788,9 +1216,11 @@ var DatePicker = React.forwardRef(
|
|
|
3788
1216
|
alignItems: "center",
|
|
3789
1217
|
justifyContent: "center",
|
|
3790
1218
|
pointerEvents: "none",
|
|
3791
|
-
zIndex: 1
|
|
3792
|
-
|
|
3793
|
-
|
|
1219
|
+
zIndex: 1,
|
|
1220
|
+
...getIconPositionStyles(size),
|
|
1221
|
+
...getIconSizeStyles(size)
|
|
1222
|
+
};
|
|
1223
|
+
const clearButtonStyle = {
|
|
3794
1224
|
position: "absolute",
|
|
3795
1225
|
top: "50%",
|
|
3796
1226
|
transform: "translateY(-50%)",
|
|
@@ -3804,8 +1234,9 @@ var DatePicker = React.forwardRef(
|
|
|
3804
1234
|
display: "flex",
|
|
3805
1235
|
alignItems: "center",
|
|
3806
1236
|
justifyContent: "center",
|
|
3807
|
-
transition: "color 300ms"
|
|
3808
|
-
|
|
1237
|
+
transition: "color 300ms",
|
|
1238
|
+
...getClearButtonPositionStyles(size)
|
|
1239
|
+
};
|
|
3809
1240
|
const defaultCalendarIcon = /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Calendar, { size: 18 });
|
|
3810
1241
|
const defaultClearIcon = /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 16 });
|
|
3811
1242
|
const localeToUse = locale$1 || locale.enUS;
|
|
@@ -3823,7 +1254,13 @@ var DatePicker = React.forwardRef(
|
|
|
3823
1254
|
);
|
|
3824
1255
|
}
|
|
3825
1256
|
};
|
|
3826
|
-
const reactDatePickerProps =
|
|
1257
|
+
const reactDatePickerProps = {
|
|
1258
|
+
...props,
|
|
1259
|
+
...minDate !== null && minDate !== void 0 && { minDate },
|
|
1260
|
+
...maxDate !== null && maxDate !== void 0 && { maxDate },
|
|
1261
|
+
...startDate !== null && startDate !== void 0 && { startDate },
|
|
1262
|
+
...endDate !== null && endDate !== void 0 && { endDate }
|
|
1263
|
+
};
|
|
3827
1264
|
const sizeStyles = getDatePickerSizeStyles(size, showClearButton);
|
|
3828
1265
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3829
1266
|
/* @__PURE__ */ jsxRuntime.jsx("style", { children: `
|
|
@@ -4055,7 +1492,7 @@ var DatePicker = React.forwardRef(
|
|
|
4055
1492
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: wrapperStyle, className: wrapperClassName || className, children: [
|
|
4056
1493
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4057
1494
|
ReactDatePicker__default.default,
|
|
4058
|
-
|
|
1495
|
+
{
|
|
4059
1496
|
ref,
|
|
4060
1497
|
className: `${baseClassName || ""} ${inputClassName}`.trim(),
|
|
4061
1498
|
wrapperClassName: DATEPICKER_EMPTY_VALUE,
|
|
@@ -4065,15 +1502,15 @@ var DatePicker = React.forwardRef(
|
|
|
4065
1502
|
onChange: handleChange,
|
|
4066
1503
|
onFocus: () => setIsFocused(true),
|
|
4067
1504
|
onBlur: () => setIsFocused(false),
|
|
4068
|
-
placeholderText
|
|
4069
|
-
|
|
1505
|
+
placeholderText,
|
|
1506
|
+
...reactDatePickerProps,
|
|
4070
1507
|
popperContainer: ({ children }) => {
|
|
4071
1508
|
if (typeof document !== "undefined") {
|
|
4072
1509
|
return reactDom.createPortal(children, document.body);
|
|
4073
1510
|
}
|
|
4074
1511
|
return children;
|
|
4075
1512
|
}
|
|
4076
|
-
}
|
|
1513
|
+
}
|
|
4077
1514
|
),
|
|
4078
1515
|
label && /* @__PURE__ */ jsxRuntime.jsx("label", { style: getLabelStyles2(Boolean(selected), isFocused, labelStyle), children: label }),
|
|
4079
1516
|
selected && onClear && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5370,7 +2807,7 @@ var LanguageSelector = React__default.default.forwardRef(
|
|
|
5370
2807
|
}
|
|
5371
2808
|
}, [isOpen, updateDropdownPosition]);
|
|
5372
2809
|
const handleLanguageChange = (langKey) => {
|
|
5373
|
-
onLanguageChange
|
|
2810
|
+
onLanguageChange?.(langKey);
|
|
5374
2811
|
setIsOpen(false);
|
|
5375
2812
|
};
|
|
5376
2813
|
const filteredLanguages = availableLanguages.reduce(
|
|
@@ -5390,17 +2827,20 @@ var LanguageSelector = React__default.default.forwardRef(
|
|
|
5390
2827
|
return lang.name[selectedLanguage] || lang.name[Object.keys(lang.name)[0]] || "";
|
|
5391
2828
|
};
|
|
5392
2829
|
const languageEntries = Object.entries(filteredLanguages);
|
|
5393
|
-
const buttonStyle = disableDefaultStyles ? {} :
|
|
2830
|
+
const buttonStyle = disableDefaultStyles ? {} : {
|
|
2831
|
+
...getButtonBaseStyles2(),
|
|
2832
|
+
...getButtonSizeStyles2(size),
|
|
5394
2833
|
backgroundColor: selectorColors.buttonBg,
|
|
5395
2834
|
borderColor: selectorColors.buttonBorder
|
|
5396
|
-
}
|
|
5397
|
-
const dropdownStyle =
|
|
2835
|
+
};
|
|
2836
|
+
const dropdownStyle = {
|
|
2837
|
+
...getDropdownBaseStyles(),
|
|
5398
2838
|
top: dropdownPosition.openUpward ? "auto" : `${dropdownPosition.top + LANGUAGE_SELECTOR_DROPDOWN_OFFSET}px`,
|
|
5399
2839
|
bottom: dropdownPosition.openUpward ? `calc(100vh - ${dropdownPosition.top}px + ${LANGUAGE_SELECTOR_DROPDOWN_OFFSET}px)` : "auto",
|
|
5400
2840
|
left: `${dropdownPosition.left}px`,
|
|
5401
2841
|
backgroundColor: selectorColors.dropdownBg,
|
|
5402
2842
|
borderColor: selectorColors.dropdownBorder
|
|
5403
|
-
}
|
|
2843
|
+
};
|
|
5404
2844
|
const setRefs = React.useCallback(
|
|
5405
2845
|
(node) => {
|
|
5406
2846
|
if (typeof ref === "function") {
|
|
@@ -5438,18 +2878,21 @@ var LanguageSelector = React__default.default.forwardRef(
|
|
|
5438
2878
|
},
|
|
5439
2879
|
"aria-label": "Select language",
|
|
5440
2880
|
title: getLanguageName(currentLanguage),
|
|
5441
|
-
children:
|
|
2881
|
+
children: currentLanguage?.flag && /* @__PURE__ */ jsxRuntime.jsx("div", { style: getFlagScaleStyles(size), children: /* @__PURE__ */ jsxRuntime.jsx(currentLanguage.flag, {}) })
|
|
5442
2882
|
}
|
|
5443
2883
|
),
|
|
5444
2884
|
isOpen && /* @__PURE__ */ jsxRuntime.jsx("div", { ref: dropdownRef, className: dropdownClassName, style: dropdownStyle, children: languageEntries.map(([key, lang]) => {
|
|
5445
2885
|
const isActive = selectedLanguage === key;
|
|
5446
|
-
const itemStyle = disableDefaultStyles ? {} :
|
|
2886
|
+
const itemStyle = disableDefaultStyles ? {} : {
|
|
2887
|
+
...getItemBaseStyles(),
|
|
5447
2888
|
color: selectorColors.itemText,
|
|
5448
2889
|
backgroundColor: isActive ? selectorColors.activeItemBg : "transparent"
|
|
5449
|
-
}
|
|
5450
|
-
const flagContainerStyle =
|
|
2890
|
+
};
|
|
2891
|
+
const flagContainerStyle = {
|
|
2892
|
+
...getFlagContainerStyles(),
|
|
2893
|
+
...getFlagSizeStyles(size),
|
|
5451
2894
|
borderColor: selectorColors.dropdownBorder
|
|
5452
|
-
}
|
|
2895
|
+
};
|
|
5453
2896
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5454
2897
|
"button",
|
|
5455
2898
|
{
|
|
@@ -5472,9 +2915,10 @@ var LanguageSelector = React__default.default.forwardRef(
|
|
|
5472
2915
|
isActive && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5473
2916
|
"svg",
|
|
5474
2917
|
{
|
|
5475
|
-
style:
|
|
2918
|
+
style: {
|
|
2919
|
+
...getCheckIconStyles(),
|
|
5476
2920
|
color: selectorColors.checkIconColor
|
|
5477
|
-
}
|
|
2921
|
+
},
|
|
5478
2922
|
fill: "currentColor",
|
|
5479
2923
|
viewBox: "0 0 20 20",
|
|
5480
2924
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5664,12 +3108,14 @@ var ThemeSelector = React__default.default.forwardRef(
|
|
|
5664
3108
|
}, [colorConfig, customBorderColor, customBgColor]);
|
|
5665
3109
|
const handleThemeToggle = () => {
|
|
5666
3110
|
const newTheme = theme === "light" ? "dark" : "light";
|
|
5667
|
-
onThemeChange
|
|
3111
|
+
onThemeChange?.(newTheme);
|
|
5668
3112
|
};
|
|
5669
|
-
const buttonStyle = disableDefaultStyles ? {} :
|
|
3113
|
+
const buttonStyle = disableDefaultStyles ? {} : {
|
|
3114
|
+
...getButtonBaseStyles3(),
|
|
3115
|
+
...getButtonSizeStyles3(size),
|
|
5670
3116
|
backgroundColor: selectorColors.buttonBg,
|
|
5671
3117
|
borderColor: selectorColors.buttonBorder
|
|
5672
|
-
}
|
|
3118
|
+
};
|
|
5673
3119
|
const iconSize = getIconSizeStyles2(size);
|
|
5674
3120
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5675
3121
|
"button",
|
|
@@ -5677,7 +3123,10 @@ var ThemeSelector = React__default.default.forwardRef(
|
|
|
5677
3123
|
ref,
|
|
5678
3124
|
onClick: handleThemeToggle,
|
|
5679
3125
|
className: buttonClassName,
|
|
5680
|
-
style: disableDefaultStyles ? {} :
|
|
3126
|
+
style: disableDefaultStyles ? {} : {
|
|
3127
|
+
...buttonStyle,
|
|
3128
|
+
...buttonClassName ? {} : { "&:hover": { borderColor: selectorColors.buttonBorderHover } }
|
|
3129
|
+
},
|
|
5681
3130
|
onMouseEnter: (e) => {
|
|
5682
3131
|
if (!disableDefaultStyles) {
|
|
5683
3132
|
e.currentTarget.style.borderColor = selectorColors.buttonBorderHover;
|
|
@@ -5887,11 +3336,12 @@ var Loader = ({
|
|
|
5887
3336
|
const pulseContainerStyle = {
|
|
5888
3337
|
position: "relative"
|
|
5889
3338
|
};
|
|
5890
|
-
const textStyle =
|
|
3339
|
+
const textStyle = {
|
|
3340
|
+
...textSizeStyles,
|
|
5891
3341
|
color: "white",
|
|
5892
3342
|
fontWeight: 500,
|
|
5893
3343
|
animation: "pulse-text 1.5s ease-in-out infinite"
|
|
5894
|
-
}
|
|
3344
|
+
};
|
|
5895
3345
|
const renderSpinner = () => /* @__PURE__ */ jsxRuntime.jsxs("div", { style: spinnerContainerStyle, children: [
|
|
5896
3346
|
/* @__PURE__ */ jsxRuntime.jsx("style", { children: `
|
|
5897
3347
|
@keyframes spin-modern {
|
|
@@ -5939,21 +3389,21 @@ var Loader = ({
|
|
|
5939
3389
|
"div",
|
|
5940
3390
|
{
|
|
5941
3391
|
className: "dot-1",
|
|
5942
|
-
style:
|
|
3392
|
+
style: { ...dotSizeStyles, borderRadius: "9999px", backgroundColor: loaderColors.spinner }
|
|
5943
3393
|
}
|
|
5944
3394
|
),
|
|
5945
3395
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5946
3396
|
"div",
|
|
5947
3397
|
{
|
|
5948
3398
|
className: "dot-2",
|
|
5949
|
-
style:
|
|
3399
|
+
style: { ...dotSizeStyles, borderRadius: "9999px", backgroundColor: loaderColors.spinner }
|
|
5950
3400
|
}
|
|
5951
3401
|
),
|
|
5952
3402
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5953
3403
|
"div",
|
|
5954
3404
|
{
|
|
5955
3405
|
className: "dot-3",
|
|
5956
|
-
style:
|
|
3406
|
+
style: { ...dotSizeStyles, borderRadius: "9999px", backgroundColor: loaderColors.spinner }
|
|
5957
3407
|
}
|
|
5958
3408
|
)
|
|
5959
3409
|
] });
|
|
@@ -5990,10 +3440,10 @@ var Loader = ({
|
|
|
5990
3440
|
"div",
|
|
5991
3441
|
{
|
|
5992
3442
|
className: "pulse-core",
|
|
5993
|
-
style:
|
|
3443
|
+
style: { ...sizeStyles, backgroundColor: loaderColors.spinner }
|
|
5994
3444
|
}
|
|
5995
3445
|
),
|
|
5996
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pulse-ring", style:
|
|
3446
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pulse-ring", style: { ...sizeStyles, width: "100%", height: "100%" } })
|
|
5997
3447
|
] })
|
|
5998
3448
|
] });
|
|
5999
3449
|
const loaderContent = /* @__PURE__ */ jsxRuntime.jsx("div", { style: containerStyle, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentContainerStyle, children: [
|
|
@@ -6079,7 +3529,7 @@ var getRowStyles = () => ({
|
|
|
6079
3529
|
});
|
|
6080
3530
|
var ArrowUpDown = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6081
3531
|
"svg",
|
|
6082
|
-
|
|
3532
|
+
{
|
|
6083
3533
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6084
3534
|
width: "24",
|
|
6085
3535
|
height: "24",
|
|
@@ -6088,19 +3538,19 @@ var ArrowUpDown = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
6088
3538
|
stroke: "currentColor",
|
|
6089
3539
|
strokeWidth: "2",
|
|
6090
3540
|
strokeLinecap: "round",
|
|
6091
|
-
strokeLinejoin: "round"
|
|
6092
|
-
|
|
3541
|
+
strokeLinejoin: "round",
|
|
3542
|
+
...props,
|
|
6093
3543
|
children: [
|
|
6094
3544
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m21 16-4 4-4-4" }),
|
|
6095
3545
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M17 20V4" }),
|
|
6096
3546
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m3 8 4-4 4 4" }),
|
|
6097
3547
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M7 4v16" })
|
|
6098
3548
|
]
|
|
6099
|
-
}
|
|
3549
|
+
}
|
|
6100
3550
|
);
|
|
6101
3551
|
var ArrowUp = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6102
3552
|
"svg",
|
|
6103
|
-
|
|
3553
|
+
{
|
|
6104
3554
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6105
3555
|
width: "24",
|
|
6106
3556
|
height: "24",
|
|
@@ -6109,17 +3559,17 @@ var ArrowUp = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
6109
3559
|
stroke: "currentColor",
|
|
6110
3560
|
strokeWidth: "2",
|
|
6111
3561
|
strokeLinecap: "round",
|
|
6112
|
-
strokeLinejoin: "round"
|
|
6113
|
-
|
|
3562
|
+
strokeLinejoin: "round",
|
|
3563
|
+
...props,
|
|
6114
3564
|
children: [
|
|
6115
3565
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m5 12 7-7 7 7" }),
|
|
6116
3566
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 19V5" })
|
|
6117
3567
|
]
|
|
6118
|
-
}
|
|
3568
|
+
}
|
|
6119
3569
|
);
|
|
6120
3570
|
var ArrowDown = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6121
3571
|
"svg",
|
|
6122
|
-
|
|
3572
|
+
{
|
|
6123
3573
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6124
3574
|
width: "24",
|
|
6125
3575
|
height: "24",
|
|
@@ -6128,17 +3578,17 @@ var ArrowDown = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
6128
3578
|
stroke: "currentColor",
|
|
6129
3579
|
strokeWidth: "2",
|
|
6130
3580
|
strokeLinecap: "round",
|
|
6131
|
-
strokeLinejoin: "round"
|
|
6132
|
-
|
|
3581
|
+
strokeLinejoin: "round",
|
|
3582
|
+
...props,
|
|
6133
3583
|
children: [
|
|
6134
3584
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 5v14" }),
|
|
6135
3585
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m19 12-7 7-7-7" })
|
|
6136
3586
|
]
|
|
6137
|
-
}
|
|
3587
|
+
}
|
|
6138
3588
|
);
|
|
6139
3589
|
var InfoIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6140
3590
|
"svg",
|
|
6141
|
-
|
|
3591
|
+
{
|
|
6142
3592
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6143
3593
|
width: "24",
|
|
6144
3594
|
height: "24",
|
|
@@ -6147,18 +3597,18 @@ var InfoIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
6147
3597
|
stroke: "currentColor",
|
|
6148
3598
|
strokeWidth: "2",
|
|
6149
3599
|
strokeLinecap: "round",
|
|
6150
|
-
strokeLinejoin: "round"
|
|
6151
|
-
|
|
3600
|
+
strokeLinejoin: "round",
|
|
3601
|
+
...props,
|
|
6152
3602
|
children: [
|
|
6153
3603
|
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
6154
3604
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 16v-4" }),
|
|
6155
3605
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 8h.01" })
|
|
6156
3606
|
]
|
|
6157
|
-
}
|
|
3607
|
+
}
|
|
6158
3608
|
);
|
|
6159
3609
|
var EditIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6160
3610
|
"svg",
|
|
6161
|
-
|
|
3611
|
+
{
|
|
6162
3612
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6163
3613
|
width: "24",
|
|
6164
3614
|
height: "24",
|
|
@@ -6167,17 +3617,17 @@ var EditIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
6167
3617
|
stroke: "currentColor",
|
|
6168
3618
|
strokeWidth: "2",
|
|
6169
3619
|
strokeLinecap: "round",
|
|
6170
|
-
strokeLinejoin: "round"
|
|
6171
|
-
|
|
3620
|
+
strokeLinejoin: "round",
|
|
3621
|
+
...props,
|
|
6172
3622
|
children: [
|
|
6173
3623
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z" }),
|
|
6174
3624
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m15 5 4 4" })
|
|
6175
3625
|
]
|
|
6176
|
-
}
|
|
3626
|
+
}
|
|
6177
3627
|
);
|
|
6178
3628
|
var TrashIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6179
3629
|
"svg",
|
|
6180
|
-
|
|
3630
|
+
{
|
|
6181
3631
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6182
3632
|
width: "24",
|
|
6183
3633
|
height: "24",
|
|
@@ -6186,14 +3636,14 @@ var TrashIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
6186
3636
|
stroke: "currentColor",
|
|
6187
3637
|
strokeWidth: "2",
|
|
6188
3638
|
strokeLinecap: "round",
|
|
6189
|
-
strokeLinejoin: "round"
|
|
6190
|
-
|
|
3639
|
+
strokeLinejoin: "round",
|
|
3640
|
+
...props,
|
|
6191
3641
|
children: [
|
|
6192
3642
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M3 6h18" }),
|
|
6193
3643
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" }),
|
|
6194
3644
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" })
|
|
6195
3645
|
]
|
|
6196
|
-
}
|
|
3646
|
+
}
|
|
6197
3647
|
);
|
|
6198
3648
|
var Table = ({
|
|
6199
3649
|
columns = [],
|
|
@@ -6229,11 +3679,12 @@ var Table = ({
|
|
|
6229
3679
|
const noDataBg = rowBg;
|
|
6230
3680
|
const noDataTextColor = adjustOpacity(cellTextColor, 0.6);
|
|
6231
3681
|
const noDataBorderColor = adjustOpacity(cellTextColor, 0.1);
|
|
6232
|
-
const noDataStyle =
|
|
3682
|
+
const noDataStyle = {
|
|
3683
|
+
...getNoDataStyles(),
|
|
6233
3684
|
background: noDataBg,
|
|
6234
3685
|
color: noDataTextColor,
|
|
6235
3686
|
borderColor: noDataBorderColor
|
|
6236
|
-
}
|
|
3687
|
+
};
|
|
6237
3688
|
const getSortIcon = (field) => {
|
|
6238
3689
|
if (sortField !== field) {
|
|
6239
3690
|
return /* @__PURE__ */ jsxRuntime.jsx(ArrowUpDown, { style: getSortIconStyles() });
|
|
@@ -6262,9 +3713,11 @@ var Table = ({
|
|
|
6262
3713
|
"th",
|
|
6263
3714
|
{
|
|
6264
3715
|
onClick: () => handleSort(column.key),
|
|
6265
|
-
style:
|
|
3716
|
+
style: {
|
|
3717
|
+
...getHeaderCellBaseStyles(),
|
|
3718
|
+
...getHeaderCellSortableStyles(),
|
|
6266
3719
|
borderBottomColor: headerBorderColor
|
|
6267
|
-
}
|
|
3720
|
+
},
|
|
6268
3721
|
onMouseEnter: (e) => {
|
|
6269
3722
|
e.currentTarget.style.backgroundColor = headerHoverBg;
|
|
6270
3723
|
const icon = e.currentTarget.querySelector(".sort-icon");
|
|
@@ -6291,9 +3744,10 @@ var Table = ({
|
|
|
6291
3744
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
6292
3745
|
"th",
|
|
6293
3746
|
{
|
|
6294
|
-
style:
|
|
3747
|
+
style: {
|
|
3748
|
+
...getHeaderCellBaseStyles(),
|
|
6295
3749
|
borderBottomColor: headerBorderColor
|
|
6296
|
-
}
|
|
3750
|
+
},
|
|
6297
3751
|
children: column.label
|
|
6298
3752
|
},
|
|
6299
3753
|
column.key || index
|
|
@@ -6302,9 +3756,11 @@ var Table = ({
|
|
|
6302
3756
|
showActions && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6303
3757
|
"th",
|
|
6304
3758
|
{
|
|
6305
|
-
style:
|
|
3759
|
+
style: {
|
|
3760
|
+
...getHeaderCellBaseStyles(),
|
|
3761
|
+
...getActionsHeaderStyles(),
|
|
6306
3762
|
borderBottomColor: headerBorderColor
|
|
6307
|
-
}
|
|
3763
|
+
},
|
|
6308
3764
|
children: actionsLabel
|
|
6309
3765
|
}
|
|
6310
3766
|
)
|
|
@@ -6314,9 +3770,10 @@ var Table = ({
|
|
|
6314
3770
|
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: data.map((item, rowIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6315
3771
|
"tr",
|
|
6316
3772
|
{
|
|
6317
|
-
style:
|
|
3773
|
+
style: {
|
|
3774
|
+
...getRowStyles(),
|
|
6318
3775
|
backgroundColor: rowIndex % 2 === 0 ? rowBg : rowEvenBg
|
|
6319
|
-
}
|
|
3776
|
+
},
|
|
6320
3777
|
onMouseEnter: (e) => {
|
|
6321
3778
|
e.currentTarget.style.backgroundColor = rowHoverBg;
|
|
6322
3779
|
e.currentTarget.style.transform = "translateY(-0.0625rem)";
|
|
@@ -6328,28 +3785,28 @@ var Table = ({
|
|
|
6328
3785
|
e.currentTarget.style.boxShadow = "none";
|
|
6329
3786
|
},
|
|
6330
3787
|
children: [
|
|
6331
|
-
columns.map((column, colIndex) =>
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
paddingTop: rowIndex === 0 ? "0.25rem" : void 0
|
|
6340
|
-
}),
|
|
6341
|
-
children: column.render ? column.render(item[column.key], item) : String((_a = item[column.key]) != null ? _a : "-")
|
|
3788
|
+
columns.map((column, colIndex) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3789
|
+
"td",
|
|
3790
|
+
{
|
|
3791
|
+
style: {
|
|
3792
|
+
...getBodyCellStyles(),
|
|
3793
|
+
color: cellTextColor,
|
|
3794
|
+
borderBottomColor: cellBorderColor,
|
|
3795
|
+
paddingTop: rowIndex === 0 ? "0.25rem" : void 0
|
|
6342
3796
|
},
|
|
6343
|
-
column.key
|
|
6344
|
-
|
|
6345
|
-
|
|
3797
|
+
children: column.render ? column.render(item[column.key], item) : String(item[column.key] ?? "-")
|
|
3798
|
+
},
|
|
3799
|
+
column.key || colIndex
|
|
3800
|
+
)),
|
|
6346
3801
|
showActions && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6347
3802
|
"td",
|
|
6348
3803
|
{
|
|
6349
|
-
style:
|
|
3804
|
+
style: {
|
|
3805
|
+
...getBodyCellStyles(),
|
|
3806
|
+
...getActionsCellStyles(),
|
|
6350
3807
|
color: cellTextColor,
|
|
6351
3808
|
borderBottomColor: cellBorderColor
|
|
6352
|
-
}
|
|
3809
|
+
},
|
|
6353
3810
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6354
3811
|
"div",
|
|
6355
3812
|
{
|
|
@@ -6622,7 +4079,7 @@ var BaseModal = ({
|
|
|
6622
4079
|
const handleCancelClose = () => {
|
|
6623
4080
|
setShowConfirmation(false);
|
|
6624
4081
|
};
|
|
6625
|
-
const mergedTexts =
|
|
4082
|
+
const mergedTexts = { ...MODAL_DEFAULT_TEXTS, ...texts };
|
|
6626
4083
|
const modalContent = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6627
4084
|
/* @__PURE__ */ jsxRuntime.jsx("style", { children: `
|
|
6628
4085
|
@media (max-width: 768px) {
|
|
@@ -6771,11 +4228,12 @@ var BaseModal = ({
|
|
|
6771
4228
|
"div",
|
|
6772
4229
|
{
|
|
6773
4230
|
className: "modal-content",
|
|
6774
|
-
style:
|
|
4231
|
+
style: {
|
|
4232
|
+
...getContentStyles(),
|
|
6775
4233
|
// @ts-expect-error - CSS custom properties for scrollbar
|
|
6776
4234
|
"--scrollbar-track": scrollbarTrackColor,
|
|
6777
4235
|
"--scrollbar-thumb": scrollbarThumbColor
|
|
6778
|
-
}
|
|
4236
|
+
},
|
|
6779
4237
|
children
|
|
6780
4238
|
}
|
|
6781
4239
|
)
|
|
@@ -6907,9 +4365,6 @@ var ConfirmationModal = ({
|
|
|
6907
4365
|
);
|
|
6908
4366
|
};
|
|
6909
4367
|
var ConfirmationModal_default = ConfirmationModal;
|
|
6910
|
-
|
|
6911
|
-
// src/app/components/SideBar/SideBar.tsx
|
|
6912
|
-
var import_navigation = __toESM(require_navigation2());
|
|
6913
4368
|
var SIDEBAR_DISPLAY_NAME = "SideBar";
|
|
6914
4369
|
var getContainerStyles = (isOpen, openWidth, closedWidth, backgroundColor) => ({
|
|
6915
4370
|
position: "fixed",
|
|
@@ -7012,9 +4467,9 @@ var SideBar = ({
|
|
|
7012
4467
|
languageSelector
|
|
7013
4468
|
}) => {
|
|
7014
4469
|
const [internalIsOpen, setInternalIsOpen] = React.useState(false);
|
|
7015
|
-
const currentPathname =
|
|
7016
|
-
const router =
|
|
7017
|
-
const isOpen = controlledIsOpen
|
|
4470
|
+
const currentPathname = navigation.usePathname();
|
|
4471
|
+
const router = navigation.useRouter();
|
|
4472
|
+
const isOpen = controlledIsOpen ?? internalIsOpen;
|
|
7018
4473
|
const backgroundColor = customBg || colors.secondary;
|
|
7019
4474
|
const textColor = customTextColor || getContrastColor(backgroundColor);
|
|
7020
4475
|
const hoverBackgroundColor = customHoverBg || adjustOpacity(colors.primary, 0.8);
|
|
@@ -7029,7 +4484,7 @@ var SideBar = ({
|
|
|
7029
4484
|
if (controlledIsOpen === void 0) {
|
|
7030
4485
|
setInternalIsOpen(newState);
|
|
7031
4486
|
}
|
|
7032
|
-
onToggle
|
|
4487
|
+
onToggle?.(newState);
|
|
7033
4488
|
}, [isOpen, controlledIsOpen, onToggle]);
|
|
7034
4489
|
const isMenuItemActive = React.useCallback(
|
|
7035
4490
|
(item) => {
|
|
@@ -7085,9 +4540,10 @@ var SideBar = ({
|
|
|
7085
4540
|
}
|
|
7086
4541
|
},
|
|
7087
4542
|
className: "sidebar-menu-item",
|
|
7088
|
-
style:
|
|
4543
|
+
style: {
|
|
4544
|
+
...getMenuItemButtonStyles(isOpen, itemTextColor),
|
|
7089
4545
|
cursor: isActive ? "default" : "pointer"
|
|
7090
|
-
}
|
|
4546
|
+
},
|
|
7091
4547
|
onMouseEnter: (e) => {
|
|
7092
4548
|
if (isActive) return;
|
|
7093
4549
|
e.currentTarget.style.backgroundColor = itemHoverBg;
|
|
@@ -7223,7 +4679,7 @@ var SideBar = ({
|
|
|
7223
4679
|
/* @__PURE__ */ jsxRuntime.jsxs("ul", { style: getListStyles(), children: [
|
|
7224
4680
|
topItems.map((item) => renderMenuItem(item)),
|
|
7225
4681
|
logoutItem && renderMenuItem(logoutItem, true),
|
|
7226
|
-
bottomItems.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("li", { style:
|
|
4682
|
+
bottomItems.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("li", { style: { ...getListItemStyles(), ...getBottomSectionStyles() }, children: /* @__PURE__ */ jsxRuntime.jsxs("ul", { style: getListStyles(), children: [
|
|
7227
4683
|
bottomItems.map((item) => renderMenuItem(item)),
|
|
7228
4684
|
languageSelector && /* @__PURE__ */ jsxRuntime.jsx("li", { style: getListItemStyles(), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7229
4685
|
"div",
|
|
@@ -7248,7 +4704,7 @@ var SideBar = ({
|
|
|
7248
4704
|
}
|
|
7249
4705
|
) })
|
|
7250
4706
|
] }) }),
|
|
7251
|
-
bottomItems.length === 0 && languageSelector && /* @__PURE__ */ jsxRuntime.jsx("li", { style:
|
|
4707
|
+
bottomItems.length === 0 && languageSelector && /* @__PURE__ */ jsxRuntime.jsx("li", { style: { ...getListItemStyles(), ...getBottomSectionStyles() }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7252
4708
|
"div",
|
|
7253
4709
|
{
|
|
7254
4710
|
style: {
|
|
@@ -7277,9 +4733,6 @@ var SideBar = ({
|
|
|
7277
4733
|
] });
|
|
7278
4734
|
};
|
|
7279
4735
|
SideBar.displayName = SIDEBAR_DISPLAY_NAME;
|
|
7280
|
-
|
|
7281
|
-
// src/app/components/NavBar/NavBar.tsx
|
|
7282
|
-
var import_navigation2 = __toESM(require_navigation2());
|
|
7283
4736
|
var NAVBAR_DISPLAY_NAME = "NavBar";
|
|
7284
4737
|
var getContainerStyles2 = (backgroundColor, height) => ({
|
|
7285
4738
|
position: "fixed",
|
|
@@ -7442,9 +4895,9 @@ var NavBar = ({
|
|
|
7442
4895
|
languageSelector
|
|
7443
4896
|
}) => {
|
|
7444
4897
|
const [internalMobileMenu, setInternalMobileMenu] = React.useState(false);
|
|
7445
|
-
const currentPathname =
|
|
7446
|
-
const router =
|
|
7447
|
-
const isMobileMenuOpen = controlledMobileMenu
|
|
4898
|
+
const currentPathname = navigation.usePathname();
|
|
4899
|
+
const router = navigation.useRouter();
|
|
4900
|
+
const isMobileMenuOpen = controlledMobileMenu ?? internalMobileMenu;
|
|
7448
4901
|
const backgroundColor = customBgColor || colors.secondary;
|
|
7449
4902
|
const textColor = customTextColor || getContrastColor(backgroundColor);
|
|
7450
4903
|
const activeColor = customActiveColor || colors.accent;
|
|
@@ -7464,12 +4917,12 @@ var NavBar = ({
|
|
|
7464
4917
|
if (controlledMobileMenu === void 0) {
|
|
7465
4918
|
setInternalMobileMenu(newState);
|
|
7466
4919
|
}
|
|
7467
|
-
onMobileMenuToggle
|
|
4920
|
+
onMobileMenuToggle?.(newState);
|
|
7468
4921
|
}, [isMobileMenuOpen, controlledMobileMenu, onMobileMenuToggle]);
|
|
7469
4922
|
const handleLogoClick = React.useCallback(() => {
|
|
7470
|
-
if (logo
|
|
4923
|
+
if (logo?.onClick) {
|
|
7471
4924
|
logo.onClick();
|
|
7472
|
-
} else if (logo
|
|
4925
|
+
} else if (logo?.href) {
|
|
7473
4926
|
router.push(logo.href);
|
|
7474
4927
|
}
|
|
7475
4928
|
}, [logo, router]);
|
|
@@ -7674,7 +5127,7 @@ var NavBar = ({
|
|
|
7674
5127
|
style: getMobilePanelStyles(isMobileMenuOpen, backgroundColor),
|
|
7675
5128
|
children: [
|
|
7676
5129
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: getMobileHeaderStyles(), children: [
|
|
7677
|
-
|
|
5130
|
+
logo?.text && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: "1.125rem", fontWeight: "bold", color: textColor }, children: logo.text }),
|
|
7678
5131
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7679
5132
|
"div",
|
|
7680
5133
|
{
|
|
@@ -7907,7 +5360,6 @@ var GalleryItem = ({
|
|
|
7907
5360
|
skeletonBg,
|
|
7908
5361
|
overlayColor
|
|
7909
5362
|
}) => {
|
|
7910
|
-
var _a;
|
|
7911
5363
|
const [loaded, setLoaded] = React.useState(false);
|
|
7912
5364
|
const [isHovered, setIsHovered] = React.useState(false);
|
|
7913
5365
|
const Wrapper = enableAnimation ? framerMotion.motion.div : "div";
|
|
@@ -7918,12 +5370,13 @@ var GalleryItem = ({
|
|
|
7918
5370
|
transition: { duration: GALLERY_ANIMATION.DURATION, ease: GALLERY_ANIMATION.EASE }
|
|
7919
5371
|
} : {};
|
|
7920
5372
|
const aspectRatioPadding = getAspectRatioPadding(image.width, image.height);
|
|
7921
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Wrapper,
|
|
5373
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Wrapper, { ...animationProps, style: getItemWrapperStyles(), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7922
5374
|
"div",
|
|
7923
5375
|
{
|
|
7924
|
-
style:
|
|
5376
|
+
style: {
|
|
5377
|
+
...getItemContainerStyles(aspectRatioPadding),
|
|
7925
5378
|
borderColor
|
|
7926
|
-
}
|
|
5379
|
+
},
|
|
7927
5380
|
onMouseEnter: () => setIsHovered(true),
|
|
7928
5381
|
onMouseLeave: () => setIsHovered(false),
|
|
7929
5382
|
children: [
|
|
@@ -7939,7 +5392,7 @@ var GalleryItem = ({
|
|
|
7939
5392
|
"img",
|
|
7940
5393
|
{
|
|
7941
5394
|
src: image.src,
|
|
7942
|
-
alt:
|
|
5395
|
+
alt: image.alt ?? "",
|
|
7943
5396
|
loading: "lazy",
|
|
7944
5397
|
onLoad: () => setLoaded(true),
|
|
7945
5398
|
style: getImageStyles(loaded, isHovered)
|
|
@@ -7948,7 +5401,7 @@ var GalleryItem = ({
|
|
|
7948
5401
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: getOverlayStyles2(isHovered, overlayColor) })
|
|
7949
5402
|
]
|
|
7950
5403
|
}
|
|
7951
|
-
) })
|
|
5404
|
+
) });
|
|
7952
5405
|
};
|
|
7953
5406
|
var distributeImages = (images, columnCount) => {
|
|
7954
5407
|
const columns = Array.from({ length: columnCount }, () => []);
|