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