@equinor/cpl-top-bar-react 1.0.7 → 2.0.0
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/index.d.mts +91 -33
- package/dist/index.d.ts +91 -33
- package/dist/index.js +355 -2899
- package/dist/index.mjs +347 -2904
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5,9 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
8
|
var __export = (target, all) => {
|
|
12
9
|
for (var name in all)
|
|
13
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -28,2550 +25,23 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
26
|
mod
|
|
30
27
|
));
|
|
31
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
|
-
|
|
33
|
-
// ../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
|
|
34
|
-
var require_interop_require_wildcard = __commonJS({
|
|
35
|
-
"../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports2) {
|
|
36
|
-
"use strict";
|
|
37
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
38
|
-
if (typeof WeakMap !== "function") return null;
|
|
39
|
-
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
40
|
-
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
41
|
-
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
42
|
-
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
43
|
-
})(nodeInterop);
|
|
44
|
-
}
|
|
45
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
46
|
-
if (!nodeInterop && obj && obj.__esModule) return obj;
|
|
47
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
|
|
48
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
49
|
-
if (cache && cache.has(obj)) return cache.get(obj);
|
|
50
|
-
var newObj = { __proto__: null };
|
|
51
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
52
|
-
for (var key in obj) {
|
|
53
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
54
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
55
|
-
if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
|
|
56
|
-
else newObj[key] = obj[key];
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
newObj.default = obj;
|
|
60
|
-
if (cache) cache.set(obj, newObj);
|
|
61
|
-
return newObj;
|
|
62
|
-
}
|
|
63
|
-
exports2._ = _interop_require_wildcard;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
// ../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.cjs
|
|
68
|
-
var require_interop_require_default = __commonJS({
|
|
69
|
-
"../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports2) {
|
|
70
|
-
"use strict";
|
|
71
|
-
function _interop_require_default(obj) {
|
|
72
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
73
|
-
}
|
|
74
|
-
exports2._ = _interop_require_default;
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js
|
|
79
|
-
var require_app_router_context_shared_runtime = __commonJS({
|
|
80
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js"(exports2) {
|
|
81
|
-
"use strict";
|
|
82
|
-
"use client";
|
|
83
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
84
|
-
value: true
|
|
85
|
-
});
|
|
86
|
-
function _export(target, all) {
|
|
87
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: all[name]
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
_export(exports2, {
|
|
93
|
-
AppRouterContext: function() {
|
|
94
|
-
return AppRouterContext;
|
|
95
|
-
},
|
|
96
|
-
GlobalLayoutRouterContext: function() {
|
|
97
|
-
return GlobalLayoutRouterContext;
|
|
98
|
-
},
|
|
99
|
-
LayoutRouterContext: function() {
|
|
100
|
-
return LayoutRouterContext;
|
|
101
|
-
},
|
|
102
|
-
MissingSlotContext: function() {
|
|
103
|
-
return MissingSlotContext;
|
|
104
|
-
},
|
|
105
|
-
TemplateContext: function() {
|
|
106
|
-
return TemplateContext;
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
var _interop_require_default = require_interop_require_default();
|
|
110
|
-
var _react = /* @__PURE__ */ _interop_require_default._(require("react"));
|
|
111
|
-
var AppRouterContext = _react.default.createContext(null);
|
|
112
|
-
var LayoutRouterContext = _react.default.createContext(null);
|
|
113
|
-
var GlobalLayoutRouterContext = _react.default.createContext(null);
|
|
114
|
-
var TemplateContext = _react.default.createContext(null);
|
|
115
|
-
if (process.env.NODE_ENV !== "production") {
|
|
116
|
-
AppRouterContext.displayName = "AppRouterContext";
|
|
117
|
-
LayoutRouterContext.displayName = "LayoutRouterContext";
|
|
118
|
-
GlobalLayoutRouterContext.displayName = "GlobalLayoutRouterContext";
|
|
119
|
-
TemplateContext.displayName = "TemplateContext";
|
|
120
|
-
}
|
|
121
|
-
var MissingSlotContext = _react.default.createContext(/* @__PURE__ */ new Set());
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/readonly-url-search-params.js
|
|
126
|
-
var require_readonly_url_search_params = __commonJS({
|
|
127
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/readonly-url-search-params.js"(exports2, module2) {
|
|
128
|
-
"use strict";
|
|
129
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
130
|
-
value: true
|
|
131
|
-
});
|
|
132
|
-
Object.defineProperty(exports2, "ReadonlyURLSearchParams", {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function() {
|
|
135
|
-
return ReadonlyURLSearchParams;
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
var ReadonlyURLSearchParamsError = class extends Error {
|
|
139
|
-
constructor() {
|
|
140
|
-
super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams");
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
var ReadonlyURLSearchParams = class extends URLSearchParams {
|
|
144
|
-
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
|
145
|
-
append() {
|
|
146
|
-
throw new ReadonlyURLSearchParamsError();
|
|
147
|
-
}
|
|
148
|
-
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
|
149
|
-
delete() {
|
|
150
|
-
throw new ReadonlyURLSearchParamsError();
|
|
151
|
-
}
|
|
152
|
-
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
|
153
|
-
set() {
|
|
154
|
-
throw new ReadonlyURLSearchParamsError();
|
|
155
|
-
}
|
|
156
|
-
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
|
157
|
-
sort() {
|
|
158
|
-
throw new ReadonlyURLSearchParamsError();
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
162
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
163
|
-
Object.assign(exports2.default, exports2);
|
|
164
|
-
module2.exports = exports2.default;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js
|
|
170
|
-
var require_hooks_client_context_shared_runtime = __commonJS({
|
|
171
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js"(exports2) {
|
|
172
|
-
"use strict";
|
|
173
|
-
"use client";
|
|
174
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
175
|
-
value: true
|
|
176
|
-
});
|
|
177
|
-
function _export(target, all) {
|
|
178
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
179
|
-
enumerable: true,
|
|
180
|
-
get: all[name]
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
_export(exports2, {
|
|
184
|
-
NavigationPromisesContext: function() {
|
|
185
|
-
return NavigationPromisesContext;
|
|
186
|
-
},
|
|
187
|
-
PathParamsContext: function() {
|
|
188
|
-
return PathParamsContext;
|
|
189
|
-
},
|
|
190
|
-
PathnameContext: function() {
|
|
191
|
-
return PathnameContext;
|
|
192
|
-
},
|
|
193
|
-
ReadonlyURLSearchParams: function() {
|
|
194
|
-
return _readonlyurlsearchparams.ReadonlyURLSearchParams;
|
|
195
|
-
},
|
|
196
|
-
SearchParamsContext: function() {
|
|
197
|
-
return SearchParamsContext;
|
|
198
|
-
},
|
|
199
|
-
createDevToolsInstrumentedPromise: function() {
|
|
200
|
-
return createDevToolsInstrumentedPromise;
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
var _react = require("react");
|
|
204
|
-
var _readonlyurlsearchparams = require_readonly_url_search_params();
|
|
205
|
-
var SearchParamsContext = (0, _react.createContext)(null);
|
|
206
|
-
var PathnameContext = (0, _react.createContext)(null);
|
|
207
|
-
var PathParamsContext = (0, _react.createContext)(null);
|
|
208
|
-
var NavigationPromisesContext = (0, _react.createContext)(null);
|
|
209
|
-
function createDevToolsInstrumentedPromise(displayName, value) {
|
|
210
|
-
const promise = Promise.resolve(value);
|
|
211
|
-
promise.status = "fulfilled";
|
|
212
|
-
promise.value = value;
|
|
213
|
-
promise.displayName = `${displayName} (SSR)`;
|
|
214
|
-
return promise;
|
|
215
|
-
}
|
|
216
|
-
if (process.env.NODE_ENV !== "production") {
|
|
217
|
-
SearchParamsContext.displayName = "SearchParamsContext";
|
|
218
|
-
PathnameContext.displayName = "PathnameContext";
|
|
219
|
-
PathParamsContext.displayName = "PathParamsContext";
|
|
220
|
-
NavigationPromisesContext.displayName = "NavigationPromisesContext";
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
|
|
225
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/shared/lib/segment.js
|
|
226
|
-
var require_segment = __commonJS({
|
|
227
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/shared/lib/segment.js"(exports2) {
|
|
228
|
-
"use strict";
|
|
229
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
230
|
-
value: true
|
|
231
|
-
});
|
|
232
|
-
function _export(target, all) {
|
|
233
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
234
|
-
enumerable: true,
|
|
235
|
-
get: all[name]
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
_export(exports2, {
|
|
239
|
-
DEFAULT_SEGMENT_KEY: function() {
|
|
240
|
-
return DEFAULT_SEGMENT_KEY;
|
|
241
|
-
},
|
|
242
|
-
NOT_FOUND_SEGMENT_KEY: function() {
|
|
243
|
-
return NOT_FOUND_SEGMENT_KEY;
|
|
244
|
-
},
|
|
245
|
-
PAGE_SEGMENT_KEY: function() {
|
|
246
|
-
return PAGE_SEGMENT_KEY;
|
|
247
|
-
},
|
|
248
|
-
addSearchParamsIfPageSegment: function() {
|
|
249
|
-
return addSearchParamsIfPageSegment;
|
|
250
|
-
},
|
|
251
|
-
computeSelectedLayoutSegment: function() {
|
|
252
|
-
return computeSelectedLayoutSegment;
|
|
253
|
-
},
|
|
254
|
-
getSegmentValue: function() {
|
|
255
|
-
return getSegmentValue;
|
|
256
|
-
},
|
|
257
|
-
getSelectedLayoutSegmentPath: function() {
|
|
258
|
-
return getSelectedLayoutSegmentPath;
|
|
259
|
-
},
|
|
260
|
-
isGroupSegment: function() {
|
|
261
|
-
return isGroupSegment;
|
|
262
|
-
},
|
|
263
|
-
isParallelRouteSegment: function() {
|
|
264
|
-
return isParallelRouteSegment;
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
|
-
function getSegmentValue(segment) {
|
|
268
|
-
return Array.isArray(segment) ? segment[1] : segment;
|
|
269
|
-
}
|
|
270
|
-
function isGroupSegment(segment) {
|
|
271
|
-
return segment[0] === "(" && segment.endsWith(")");
|
|
272
|
-
}
|
|
273
|
-
function isParallelRouteSegment(segment) {
|
|
274
|
-
return segment.startsWith("@") && segment !== "@children";
|
|
275
|
-
}
|
|
276
|
-
function addSearchParamsIfPageSegment(segment, searchParams) {
|
|
277
|
-
const isPageSegment = segment.includes(PAGE_SEGMENT_KEY);
|
|
278
|
-
if (isPageSegment) {
|
|
279
|
-
const stringifiedQuery = JSON.stringify(searchParams);
|
|
280
|
-
return stringifiedQuery !== "{}" ? PAGE_SEGMENT_KEY + "?" + stringifiedQuery : PAGE_SEGMENT_KEY;
|
|
281
|
-
}
|
|
282
|
-
return segment;
|
|
283
|
-
}
|
|
284
|
-
function computeSelectedLayoutSegment(segments, parallelRouteKey) {
|
|
285
|
-
if (!segments || segments.length === 0) {
|
|
286
|
-
return null;
|
|
287
|
-
}
|
|
288
|
-
const rawSegment = parallelRouteKey === "children" ? segments[0] : segments[segments.length - 1];
|
|
289
|
-
return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment;
|
|
290
|
-
}
|
|
291
|
-
function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first = true, segmentPath = []) {
|
|
292
|
-
let node;
|
|
293
|
-
if (first) {
|
|
294
|
-
node = tree[1][parallelRouteKey];
|
|
295
|
-
} else {
|
|
296
|
-
const parallelRoutes = tree[1];
|
|
297
|
-
node = parallelRoutes.children ?? Object.values(parallelRoutes)[0];
|
|
298
|
-
}
|
|
299
|
-
if (!node) return segmentPath;
|
|
300
|
-
const segment = node[0];
|
|
301
|
-
let segmentValue = getSegmentValue(segment);
|
|
302
|
-
if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) {
|
|
303
|
-
return segmentPath;
|
|
304
|
-
}
|
|
305
|
-
segmentPath.push(segmentValue);
|
|
306
|
-
return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);
|
|
307
|
-
}
|
|
308
|
-
var PAGE_SEGMENT_KEY = "__PAGE__";
|
|
309
|
-
var DEFAULT_SEGMENT_KEY = "__DEFAULT__";
|
|
310
|
-
var NOT_FOUND_SEGMENT_KEY = "/_not-found";
|
|
311
|
-
}
|
|
312
|
-
});
|
|
313
|
-
|
|
314
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js
|
|
315
|
-
var require_server_inserted_html_shared_runtime = __commonJS({
|
|
316
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js"(exports2) {
|
|
317
|
-
"use strict";
|
|
318
|
-
"use client";
|
|
319
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
320
|
-
value: true
|
|
321
|
-
});
|
|
322
|
-
function _export(target, all) {
|
|
323
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
324
|
-
enumerable: true,
|
|
325
|
-
get: all[name]
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
_export(exports2, {
|
|
329
|
-
ServerInsertedHTMLContext: function() {
|
|
330
|
-
return ServerInsertedHTMLContext;
|
|
331
|
-
},
|
|
332
|
-
useServerInsertedHTML: function() {
|
|
333
|
-
return useServerInsertedHTML;
|
|
334
|
-
}
|
|
335
|
-
});
|
|
336
|
-
var _interop_require_wildcard = require_interop_require_wildcard();
|
|
337
|
-
var _react = /* @__PURE__ */ _interop_require_wildcard._(require("react"));
|
|
338
|
-
var ServerInsertedHTMLContext = /* @__PURE__ */ _react.default.createContext(null);
|
|
339
|
-
function useServerInsertedHTML(callback) {
|
|
340
|
-
const addInsertedServerHTMLCallback = (0, _react.useContext)(ServerInsertedHTMLContext);
|
|
341
|
-
if (addInsertedServerHTMLCallback) {
|
|
342
|
-
addInsertedServerHTMLCallback(callback);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
});
|
|
347
|
-
|
|
348
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/unrecognized-action-error.js
|
|
349
|
-
var require_unrecognized_action_error = __commonJS({
|
|
350
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/unrecognized-action-error.js"(exports2, module2) {
|
|
351
|
-
"use strict";
|
|
352
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
353
|
-
value: true
|
|
354
|
-
});
|
|
355
|
-
function _export(target, all) {
|
|
356
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
357
|
-
enumerable: true,
|
|
358
|
-
get: all[name]
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
_export(exports2, {
|
|
362
|
-
UnrecognizedActionError: function() {
|
|
363
|
-
return UnrecognizedActionError;
|
|
364
|
-
},
|
|
365
|
-
unstable_isUnrecognizedActionError: function() {
|
|
366
|
-
return unstable_isUnrecognizedActionError;
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
|
-
var UnrecognizedActionError = class extends Error {
|
|
370
|
-
constructor(...args) {
|
|
371
|
-
super(...args);
|
|
372
|
-
this.name = "UnrecognizedActionError";
|
|
373
|
-
}
|
|
374
|
-
};
|
|
375
|
-
function unstable_isUnrecognizedActionError(error) {
|
|
376
|
-
return !!(error && typeof error === "object" && error instanceof UnrecognizedActionError);
|
|
377
|
-
}
|
|
378
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
379
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
380
|
-
Object.assign(exports2.default, exports2);
|
|
381
|
-
module2.exports = exports2.default;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
});
|
|
385
|
-
|
|
386
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/redirect-status-code.js
|
|
387
|
-
var require_redirect_status_code = __commonJS({
|
|
388
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/redirect-status-code.js"(exports2, module2) {
|
|
389
|
-
"use strict";
|
|
390
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
391
|
-
value: true
|
|
392
|
-
});
|
|
393
|
-
Object.defineProperty(exports2, "RedirectStatusCode", {
|
|
394
|
-
enumerable: true,
|
|
395
|
-
get: function() {
|
|
396
|
-
return RedirectStatusCode;
|
|
397
|
-
}
|
|
398
|
-
});
|
|
399
|
-
var RedirectStatusCode = /* @__PURE__ */ (function(RedirectStatusCode2) {
|
|
400
|
-
RedirectStatusCode2[RedirectStatusCode2["SeeOther"] = 303] = "SeeOther";
|
|
401
|
-
RedirectStatusCode2[RedirectStatusCode2["TemporaryRedirect"] = 307] = "TemporaryRedirect";
|
|
402
|
-
RedirectStatusCode2[RedirectStatusCode2["PermanentRedirect"] = 308] = "PermanentRedirect";
|
|
403
|
-
return RedirectStatusCode2;
|
|
404
|
-
})({});
|
|
405
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
406
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
407
|
-
Object.assign(exports2.default, exports2);
|
|
408
|
-
module2.exports = exports2.default;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
|
|
413
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/redirect-error.js
|
|
414
|
-
var require_redirect_error = __commonJS({
|
|
415
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/redirect-error.js"(exports2, module2) {
|
|
416
|
-
"use strict";
|
|
417
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
418
|
-
value: true
|
|
419
|
-
});
|
|
420
|
-
function _export(target, all) {
|
|
421
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
422
|
-
enumerable: true,
|
|
423
|
-
get: all[name]
|
|
424
|
-
});
|
|
425
|
-
}
|
|
426
|
-
_export(exports2, {
|
|
427
|
-
REDIRECT_ERROR_CODE: function() {
|
|
428
|
-
return REDIRECT_ERROR_CODE;
|
|
429
|
-
},
|
|
430
|
-
RedirectType: function() {
|
|
431
|
-
return RedirectType;
|
|
432
|
-
},
|
|
433
|
-
isRedirectError: function() {
|
|
434
|
-
return isRedirectError;
|
|
435
|
-
}
|
|
436
|
-
});
|
|
437
|
-
var _redirectstatuscode = require_redirect_status_code();
|
|
438
|
-
var REDIRECT_ERROR_CODE = "NEXT_REDIRECT";
|
|
439
|
-
var RedirectType = /* @__PURE__ */ (function(RedirectType2) {
|
|
440
|
-
RedirectType2["push"] = "push";
|
|
441
|
-
RedirectType2["replace"] = "replace";
|
|
442
|
-
return RedirectType2;
|
|
443
|
-
})({});
|
|
444
|
-
function isRedirectError(error) {
|
|
445
|
-
if (typeof error !== "object" || error === null || !("digest" in error) || typeof error.digest !== "string") {
|
|
446
|
-
return false;
|
|
447
|
-
}
|
|
448
|
-
const digest = error.digest.split(";");
|
|
449
|
-
const [errorCode, type] = digest;
|
|
450
|
-
const destination = digest.slice(2, -2).join(";");
|
|
451
|
-
const status = digest.at(-2);
|
|
452
|
-
const statusCode = Number(status);
|
|
453
|
-
return errorCode === REDIRECT_ERROR_CODE && (type === "replace" || type === "push") && typeof destination === "string" && !isNaN(statusCode) && statusCode in _redirectstatuscode.RedirectStatusCode;
|
|
454
|
-
}
|
|
455
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
456
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
457
|
-
Object.assign(exports2.default, exports2);
|
|
458
|
-
module2.exports = exports2.default;
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
});
|
|
462
|
-
|
|
463
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/async-local-storage.js
|
|
464
|
-
var require_async_local_storage = __commonJS({
|
|
465
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/async-local-storage.js"(exports2) {
|
|
466
|
-
"use strict";
|
|
467
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
468
|
-
value: true
|
|
469
|
-
});
|
|
470
|
-
function _export(target, all) {
|
|
471
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
472
|
-
enumerable: true,
|
|
473
|
-
get: all[name]
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
_export(exports2, {
|
|
477
|
-
bindSnapshot: function() {
|
|
478
|
-
return bindSnapshot;
|
|
479
|
-
},
|
|
480
|
-
createAsyncLocalStorage: function() {
|
|
481
|
-
return createAsyncLocalStorage;
|
|
482
|
-
},
|
|
483
|
-
createSnapshot: function() {
|
|
484
|
-
return createSnapshot;
|
|
485
|
-
}
|
|
486
|
-
});
|
|
487
|
-
var sharedAsyncLocalStorageNotAvailableError = Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
|
|
488
|
-
value: "E504",
|
|
489
|
-
enumerable: false,
|
|
490
|
-
configurable: true
|
|
491
|
-
});
|
|
492
|
-
var FakeAsyncLocalStorage = class {
|
|
493
|
-
disable() {
|
|
494
|
-
throw sharedAsyncLocalStorageNotAvailableError;
|
|
495
|
-
}
|
|
496
|
-
getStore() {
|
|
497
|
-
return void 0;
|
|
498
|
-
}
|
|
499
|
-
run() {
|
|
500
|
-
throw sharedAsyncLocalStorageNotAvailableError;
|
|
501
|
-
}
|
|
502
|
-
exit() {
|
|
503
|
-
throw sharedAsyncLocalStorageNotAvailableError;
|
|
504
|
-
}
|
|
505
|
-
enterWith() {
|
|
506
|
-
throw sharedAsyncLocalStorageNotAvailableError;
|
|
507
|
-
}
|
|
508
|
-
static bind(fn) {
|
|
509
|
-
return fn;
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
|
-
var maybeGlobalAsyncLocalStorage = typeof globalThis !== "undefined" && globalThis.AsyncLocalStorage;
|
|
513
|
-
function createAsyncLocalStorage() {
|
|
514
|
-
if (maybeGlobalAsyncLocalStorage) {
|
|
515
|
-
return new maybeGlobalAsyncLocalStorage();
|
|
516
|
-
}
|
|
517
|
-
return new FakeAsyncLocalStorage();
|
|
518
|
-
}
|
|
519
|
-
function bindSnapshot(fn) {
|
|
520
|
-
if (maybeGlobalAsyncLocalStorage) {
|
|
521
|
-
return maybeGlobalAsyncLocalStorage.bind(fn);
|
|
522
|
-
}
|
|
523
|
-
return FakeAsyncLocalStorage.bind(fn);
|
|
524
|
-
}
|
|
525
|
-
function createSnapshot() {
|
|
526
|
-
if (maybeGlobalAsyncLocalStorage) {
|
|
527
|
-
return maybeGlobalAsyncLocalStorage.snapshot();
|
|
528
|
-
}
|
|
529
|
-
return function(fn, ...args) {
|
|
530
|
-
return fn(...args);
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
});
|
|
535
|
-
|
|
536
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/action-async-storage-instance.js
|
|
537
|
-
var require_action_async_storage_instance = __commonJS({
|
|
538
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/action-async-storage-instance.js"(exports2) {
|
|
539
|
-
"use strict";
|
|
540
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
541
|
-
value: true
|
|
542
|
-
});
|
|
543
|
-
Object.defineProperty(exports2, "actionAsyncStorageInstance", {
|
|
544
|
-
enumerable: true,
|
|
545
|
-
get: function() {
|
|
546
|
-
return actionAsyncStorageInstance;
|
|
547
|
-
}
|
|
548
|
-
});
|
|
549
|
-
var _asynclocalstorage = require_async_local_storage();
|
|
550
|
-
var actionAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
551
|
-
}
|
|
552
|
-
});
|
|
553
|
-
|
|
554
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/action-async-storage.external.js
|
|
555
|
-
var require_action_async_storage_external = __commonJS({
|
|
556
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/action-async-storage.external.js"(exports2) {
|
|
557
|
-
"use strict";
|
|
558
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
559
|
-
value: true
|
|
560
|
-
});
|
|
561
|
-
Object.defineProperty(exports2, "actionAsyncStorage", {
|
|
562
|
-
enumerable: true,
|
|
563
|
-
get: function() {
|
|
564
|
-
return _actionasyncstorageinstance.actionAsyncStorageInstance;
|
|
565
|
-
}
|
|
566
|
-
});
|
|
567
|
-
var _actionasyncstorageinstance = require_action_async_storage_instance();
|
|
568
|
-
}
|
|
569
|
-
});
|
|
570
|
-
|
|
571
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/redirect.js
|
|
572
|
-
var require_redirect = __commonJS({
|
|
573
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/redirect.js"(exports2, module2) {
|
|
574
|
-
"use strict";
|
|
575
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
576
|
-
value: true
|
|
577
|
-
});
|
|
578
|
-
function _export(target, all) {
|
|
579
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
580
|
-
enumerable: true,
|
|
581
|
-
get: all[name]
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
_export(exports2, {
|
|
585
|
-
getRedirectError: function() {
|
|
586
|
-
return getRedirectError;
|
|
587
|
-
},
|
|
588
|
-
getRedirectStatusCodeFromError: function() {
|
|
589
|
-
return getRedirectStatusCodeFromError;
|
|
590
|
-
},
|
|
591
|
-
getRedirectTypeFromError: function() {
|
|
592
|
-
return getRedirectTypeFromError;
|
|
593
|
-
},
|
|
594
|
-
getURLFromRedirectError: function() {
|
|
595
|
-
return getURLFromRedirectError;
|
|
596
|
-
},
|
|
597
|
-
permanentRedirect: function() {
|
|
598
|
-
return permanentRedirect;
|
|
599
|
-
},
|
|
600
|
-
redirect: function() {
|
|
601
|
-
return redirect;
|
|
602
|
-
}
|
|
603
|
-
});
|
|
604
|
-
var _redirectstatuscode = require_redirect_status_code();
|
|
605
|
-
var _redirecterror = require_redirect_error();
|
|
606
|
-
var actionAsyncStorage = typeof window === "undefined" ? require_action_async_storage_external().actionAsyncStorage : void 0;
|
|
607
|
-
function getRedirectError(url, type, statusCode = _redirectstatuscode.RedirectStatusCode.TemporaryRedirect) {
|
|
608
|
-
const error = Object.defineProperty(new Error(_redirecterror.REDIRECT_ERROR_CODE), "__NEXT_ERROR_CODE", {
|
|
609
|
-
value: "E394",
|
|
610
|
-
enumerable: false,
|
|
611
|
-
configurable: true
|
|
612
|
-
});
|
|
613
|
-
error.digest = `${_redirecterror.REDIRECT_ERROR_CODE};${type};${url};${statusCode};`;
|
|
614
|
-
return error;
|
|
615
|
-
}
|
|
616
|
-
function redirect(url, type) {
|
|
617
|
-
type ??= actionAsyncStorage?.getStore()?.isAction ? _redirecterror.RedirectType.push : _redirecterror.RedirectType.replace;
|
|
618
|
-
throw getRedirectError(url, type, _redirectstatuscode.RedirectStatusCode.TemporaryRedirect);
|
|
619
|
-
}
|
|
620
|
-
function permanentRedirect(url, type = _redirecterror.RedirectType.replace) {
|
|
621
|
-
throw getRedirectError(url, type, _redirectstatuscode.RedirectStatusCode.PermanentRedirect);
|
|
622
|
-
}
|
|
623
|
-
function getURLFromRedirectError(error) {
|
|
624
|
-
if (!(0, _redirecterror.isRedirectError)(error)) return null;
|
|
625
|
-
return error.digest.split(";").slice(2, -2).join(";");
|
|
626
|
-
}
|
|
627
|
-
function getRedirectTypeFromError(error) {
|
|
628
|
-
if (!(0, _redirecterror.isRedirectError)(error)) {
|
|
629
|
-
throw Object.defineProperty(new Error("Not a redirect error"), "__NEXT_ERROR_CODE", {
|
|
630
|
-
value: "E260",
|
|
631
|
-
enumerable: false,
|
|
632
|
-
configurable: true
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
return error.digest.split(";", 2)[1];
|
|
636
|
-
}
|
|
637
|
-
function getRedirectStatusCodeFromError(error) {
|
|
638
|
-
if (!(0, _redirecterror.isRedirectError)(error)) {
|
|
639
|
-
throw Object.defineProperty(new Error("Not a redirect error"), "__NEXT_ERROR_CODE", {
|
|
640
|
-
value: "E260",
|
|
641
|
-
enumerable: false,
|
|
642
|
-
configurable: true
|
|
643
|
-
});
|
|
644
|
-
}
|
|
645
|
-
return Number(error.digest.split(";").at(-2));
|
|
646
|
-
}
|
|
647
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
648
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
649
|
-
Object.assign(exports2.default, exports2);
|
|
650
|
-
module2.exports = exports2.default;
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
});
|
|
654
|
-
|
|
655
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js
|
|
656
|
-
var require_http_access_fallback = __commonJS({
|
|
657
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js"(exports2, module2) {
|
|
658
|
-
"use strict";
|
|
659
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
660
|
-
value: true
|
|
661
|
-
});
|
|
662
|
-
function _export(target, all) {
|
|
663
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
664
|
-
enumerable: true,
|
|
665
|
-
get: all[name]
|
|
666
|
-
});
|
|
667
|
-
}
|
|
668
|
-
_export(exports2, {
|
|
669
|
-
HTTPAccessErrorStatus: function() {
|
|
670
|
-
return HTTPAccessErrorStatus;
|
|
671
|
-
},
|
|
672
|
-
HTTP_ERROR_FALLBACK_ERROR_CODE: function() {
|
|
673
|
-
return HTTP_ERROR_FALLBACK_ERROR_CODE;
|
|
674
|
-
},
|
|
675
|
-
getAccessFallbackErrorTypeByStatus: function() {
|
|
676
|
-
return getAccessFallbackErrorTypeByStatus;
|
|
677
|
-
},
|
|
678
|
-
getAccessFallbackHTTPStatus: function() {
|
|
679
|
-
return getAccessFallbackHTTPStatus;
|
|
680
|
-
},
|
|
681
|
-
isHTTPAccessFallbackError: function() {
|
|
682
|
-
return isHTTPAccessFallbackError;
|
|
683
|
-
}
|
|
684
|
-
});
|
|
685
|
-
var HTTPAccessErrorStatus = {
|
|
686
|
-
NOT_FOUND: 404,
|
|
687
|
-
FORBIDDEN: 403,
|
|
688
|
-
UNAUTHORIZED: 401
|
|
689
|
-
};
|
|
690
|
-
var ALLOWED_CODES = new Set(Object.values(HTTPAccessErrorStatus));
|
|
691
|
-
var HTTP_ERROR_FALLBACK_ERROR_CODE = "NEXT_HTTP_ERROR_FALLBACK";
|
|
692
|
-
function isHTTPAccessFallbackError(error) {
|
|
693
|
-
if (typeof error !== "object" || error === null || !("digest" in error) || typeof error.digest !== "string") {
|
|
694
|
-
return false;
|
|
695
|
-
}
|
|
696
|
-
const [prefix, httpStatus] = error.digest.split(";");
|
|
697
|
-
return prefix === HTTP_ERROR_FALLBACK_ERROR_CODE && ALLOWED_CODES.has(Number(httpStatus));
|
|
698
|
-
}
|
|
699
|
-
function getAccessFallbackHTTPStatus(error) {
|
|
700
|
-
const httpStatus = error.digest.split(";")[1];
|
|
701
|
-
return Number(httpStatus);
|
|
702
|
-
}
|
|
703
|
-
function getAccessFallbackErrorTypeByStatus(status) {
|
|
704
|
-
switch (status) {
|
|
705
|
-
case 401:
|
|
706
|
-
return "unauthorized";
|
|
707
|
-
case 403:
|
|
708
|
-
return "forbidden";
|
|
709
|
-
case 404:
|
|
710
|
-
return "not-found";
|
|
711
|
-
default:
|
|
712
|
-
return;
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
716
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
717
|
-
Object.assign(exports2.default, exports2);
|
|
718
|
-
module2.exports = exports2.default;
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
});
|
|
722
|
-
|
|
723
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/not-found.js
|
|
724
|
-
var require_not_found = __commonJS({
|
|
725
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/not-found.js"(exports2, module2) {
|
|
726
|
-
"use strict";
|
|
727
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
728
|
-
value: true
|
|
729
|
-
});
|
|
730
|
-
Object.defineProperty(exports2, "notFound", {
|
|
731
|
-
enumerable: true,
|
|
732
|
-
get: function() {
|
|
733
|
-
return notFound;
|
|
734
|
-
}
|
|
735
|
-
});
|
|
736
|
-
var _httpaccessfallback = require_http_access_fallback();
|
|
737
|
-
var DIGEST = `${_httpaccessfallback.HTTP_ERROR_FALLBACK_ERROR_CODE};404`;
|
|
738
|
-
function notFound() {
|
|
739
|
-
const error = Object.defineProperty(new Error(DIGEST), "__NEXT_ERROR_CODE", {
|
|
740
|
-
value: "E394",
|
|
741
|
-
enumerable: false,
|
|
742
|
-
configurable: true
|
|
743
|
-
});
|
|
744
|
-
error.digest = DIGEST;
|
|
745
|
-
throw error;
|
|
746
|
-
}
|
|
747
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
748
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
749
|
-
Object.assign(exports2.default, exports2);
|
|
750
|
-
module2.exports = exports2.default;
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
});
|
|
754
|
-
|
|
755
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/forbidden.js
|
|
756
|
-
var require_forbidden = __commonJS({
|
|
757
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/forbidden.js"(exports2, module2) {
|
|
758
|
-
"use strict";
|
|
759
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
760
|
-
value: true
|
|
761
|
-
});
|
|
762
|
-
Object.defineProperty(exports2, "forbidden", {
|
|
763
|
-
enumerable: true,
|
|
764
|
-
get: function() {
|
|
765
|
-
return forbidden;
|
|
766
|
-
}
|
|
767
|
-
});
|
|
768
|
-
var _httpaccessfallback = require_http_access_fallback();
|
|
769
|
-
var DIGEST = `${_httpaccessfallback.HTTP_ERROR_FALLBACK_ERROR_CODE};403`;
|
|
770
|
-
function forbidden() {
|
|
771
|
-
if (!process.env.__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS) {
|
|
772
|
-
throw Object.defineProperty(new Error(`\`forbidden()\` is experimental and only allowed to be enabled when \`experimental.authInterrupts\` is enabled.`), "__NEXT_ERROR_CODE", {
|
|
773
|
-
value: "E488",
|
|
774
|
-
enumerable: false,
|
|
775
|
-
configurable: true
|
|
776
|
-
});
|
|
777
|
-
}
|
|
778
|
-
const error = Object.defineProperty(new Error(DIGEST), "__NEXT_ERROR_CODE", {
|
|
779
|
-
value: "E394",
|
|
780
|
-
enumerable: false,
|
|
781
|
-
configurable: true
|
|
782
|
-
});
|
|
783
|
-
error.digest = DIGEST;
|
|
784
|
-
throw error;
|
|
785
|
-
}
|
|
786
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
787
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
788
|
-
Object.assign(exports2.default, exports2);
|
|
789
|
-
module2.exports = exports2.default;
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
});
|
|
793
|
-
|
|
794
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/unauthorized.js
|
|
795
|
-
var require_unauthorized = __commonJS({
|
|
796
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/unauthorized.js"(exports2, module2) {
|
|
797
|
-
"use strict";
|
|
798
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
799
|
-
value: true
|
|
800
|
-
});
|
|
801
|
-
Object.defineProperty(exports2, "unauthorized", {
|
|
802
|
-
enumerable: true,
|
|
803
|
-
get: function() {
|
|
804
|
-
return unauthorized;
|
|
805
|
-
}
|
|
806
|
-
});
|
|
807
|
-
var _httpaccessfallback = require_http_access_fallback();
|
|
808
|
-
var DIGEST = `${_httpaccessfallback.HTTP_ERROR_FALLBACK_ERROR_CODE};401`;
|
|
809
|
-
function unauthorized() {
|
|
810
|
-
if (!process.env.__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS) {
|
|
811
|
-
throw Object.defineProperty(new Error(`\`unauthorized()\` is experimental and only allowed to be used when \`experimental.authInterrupts\` is enabled.`), "__NEXT_ERROR_CODE", {
|
|
812
|
-
value: "E411",
|
|
813
|
-
enumerable: false,
|
|
814
|
-
configurable: true
|
|
815
|
-
});
|
|
816
|
-
}
|
|
817
|
-
const error = Object.defineProperty(new Error(DIGEST), "__NEXT_ERROR_CODE", {
|
|
818
|
-
value: "E394",
|
|
819
|
-
enumerable: false,
|
|
820
|
-
configurable: true
|
|
821
|
-
});
|
|
822
|
-
error.digest = DIGEST;
|
|
823
|
-
throw error;
|
|
824
|
-
}
|
|
825
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
826
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
827
|
-
Object.assign(exports2.default, exports2);
|
|
828
|
-
module2.exports = exports2.default;
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
});
|
|
832
|
-
|
|
833
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/dynamic-rendering-utils.js
|
|
834
|
-
var require_dynamic_rendering_utils = __commonJS({
|
|
835
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/dynamic-rendering-utils.js"(exports2) {
|
|
836
|
-
"use strict";
|
|
837
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
838
|
-
value: true
|
|
839
|
-
});
|
|
840
|
-
function _export(target, all) {
|
|
841
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
842
|
-
enumerable: true,
|
|
843
|
-
get: all[name]
|
|
844
|
-
});
|
|
845
|
-
}
|
|
846
|
-
_export(exports2, {
|
|
847
|
-
isHangingPromiseRejectionError: function() {
|
|
848
|
-
return isHangingPromiseRejectionError;
|
|
849
|
-
},
|
|
850
|
-
makeDevtoolsIOAwarePromise: function() {
|
|
851
|
-
return makeDevtoolsIOAwarePromise;
|
|
852
|
-
},
|
|
853
|
-
makeHangingPromise: function() {
|
|
854
|
-
return makeHangingPromise;
|
|
855
|
-
}
|
|
856
|
-
});
|
|
857
|
-
function isHangingPromiseRejectionError(err) {
|
|
858
|
-
if (typeof err !== "object" || err === null || !("digest" in err)) {
|
|
859
|
-
return false;
|
|
860
|
-
}
|
|
861
|
-
return err.digest === HANGING_PROMISE_REJECTION;
|
|
862
|
-
}
|
|
863
|
-
var HANGING_PROMISE_REJECTION = "HANGING_PROMISE_REJECTION";
|
|
864
|
-
var HangingPromiseRejectionError = class extends Error {
|
|
865
|
-
constructor(route, expression) {
|
|
866
|
-
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;
|
|
867
|
-
}
|
|
868
|
-
};
|
|
869
|
-
var abortListenersBySignal = /* @__PURE__ */ new WeakMap();
|
|
870
|
-
function makeHangingPromise(signal, route, expression) {
|
|
871
|
-
if (signal.aborted) {
|
|
872
|
-
return Promise.reject(new HangingPromiseRejectionError(route, expression));
|
|
873
|
-
} else {
|
|
874
|
-
const hangingPromise = new Promise((_, reject) => {
|
|
875
|
-
const boundRejection = reject.bind(null, new HangingPromiseRejectionError(route, expression));
|
|
876
|
-
let currentListeners = abortListenersBySignal.get(signal);
|
|
877
|
-
if (currentListeners) {
|
|
878
|
-
currentListeners.push(boundRejection);
|
|
879
|
-
} else {
|
|
880
|
-
const listeners = [
|
|
881
|
-
boundRejection
|
|
882
|
-
];
|
|
883
|
-
abortListenersBySignal.set(signal, listeners);
|
|
884
|
-
signal.addEventListener("abort", () => {
|
|
885
|
-
for (let i = 0; i < listeners.length; i++) {
|
|
886
|
-
listeners[i]();
|
|
887
|
-
}
|
|
888
|
-
}, {
|
|
889
|
-
once: true
|
|
890
|
-
});
|
|
891
|
-
}
|
|
892
|
-
});
|
|
893
|
-
hangingPromise.catch(ignoreReject);
|
|
894
|
-
return hangingPromise;
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
function ignoreReject() {
|
|
898
|
-
}
|
|
899
|
-
function makeDevtoolsIOAwarePromise(underlying, requestStore, stage) {
|
|
900
|
-
if (requestStore.stagedRendering) {
|
|
901
|
-
return requestStore.stagedRendering.delayUntilStage(stage, void 0, underlying);
|
|
902
|
-
}
|
|
903
|
-
return new Promise((resolve) => {
|
|
904
|
-
setTimeout(() => {
|
|
905
|
-
resolve(underlying);
|
|
906
|
-
}, 0);
|
|
907
|
-
});
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
});
|
|
911
|
-
|
|
912
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/lib/router-utils/is-postpone.js
|
|
913
|
-
var require_is_postpone = __commonJS({
|
|
914
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/lib/router-utils/is-postpone.js"(exports2) {
|
|
915
|
-
"use strict";
|
|
916
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
917
|
-
value: true
|
|
918
|
-
});
|
|
919
|
-
Object.defineProperty(exports2, "isPostpone", {
|
|
920
|
-
enumerable: true,
|
|
921
|
-
get: function() {
|
|
922
|
-
return isPostpone;
|
|
923
|
-
}
|
|
924
|
-
});
|
|
925
|
-
var REACT_POSTPONE_TYPE = /* @__PURE__ */ Symbol.for("react.postpone");
|
|
926
|
-
function isPostpone(error) {
|
|
927
|
-
return typeof error === "object" && error !== null && error.$$typeof === REACT_POSTPONE_TYPE;
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
});
|
|
931
|
-
|
|
932
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js
|
|
933
|
-
var require_bailout_to_csr = __commonJS({
|
|
934
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js"(exports2) {
|
|
935
|
-
"use strict";
|
|
936
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
937
|
-
value: true
|
|
938
|
-
});
|
|
939
|
-
function _export(target, all) {
|
|
940
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
941
|
-
enumerable: true,
|
|
942
|
-
get: all[name]
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
_export(exports2, {
|
|
946
|
-
BailoutToCSRError: function() {
|
|
947
|
-
return BailoutToCSRError;
|
|
948
|
-
},
|
|
949
|
-
isBailoutToCSRError: function() {
|
|
950
|
-
return isBailoutToCSRError;
|
|
951
|
-
}
|
|
952
|
-
});
|
|
953
|
-
var BAILOUT_TO_CSR = "BAILOUT_TO_CLIENT_SIDE_RENDERING";
|
|
954
|
-
var BailoutToCSRError = class extends Error {
|
|
955
|
-
constructor(reason) {
|
|
956
|
-
super(`Bail out to client-side rendering: ${reason}`), this.reason = reason, this.digest = BAILOUT_TO_CSR;
|
|
957
|
-
}
|
|
958
|
-
};
|
|
959
|
-
function isBailoutToCSRError(err) {
|
|
960
|
-
if (typeof err !== "object" || err === null || !("digest" in err)) {
|
|
961
|
-
return false;
|
|
962
|
-
}
|
|
963
|
-
return err.digest === BAILOUT_TO_CSR;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
});
|
|
967
|
-
|
|
968
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/is-next-router-error.js
|
|
969
|
-
var require_is_next_router_error = __commonJS({
|
|
970
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/is-next-router-error.js"(exports2, module2) {
|
|
971
|
-
"use strict";
|
|
972
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
973
|
-
value: true
|
|
974
|
-
});
|
|
975
|
-
Object.defineProperty(exports2, "isNextRouterError", {
|
|
976
|
-
enumerable: true,
|
|
977
|
-
get: function() {
|
|
978
|
-
return isNextRouterError;
|
|
979
|
-
}
|
|
980
|
-
});
|
|
981
|
-
var _httpaccessfallback = require_http_access_fallback();
|
|
982
|
-
var _redirecterror = require_redirect_error();
|
|
983
|
-
function isNextRouterError(error) {
|
|
984
|
-
return (0, _redirecterror.isRedirectError)(error) || (0, _httpaccessfallback.isHTTPAccessFallbackError)(error);
|
|
985
|
-
}
|
|
986
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
987
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
988
|
-
Object.assign(exports2.default, exports2);
|
|
989
|
-
module2.exports = exports2.default;
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
});
|
|
993
|
-
|
|
994
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/hooks-server-context.js
|
|
995
|
-
var require_hooks_server_context = __commonJS({
|
|
996
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/hooks-server-context.js"(exports2, module2) {
|
|
997
|
-
"use strict";
|
|
998
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
999
|
-
value: true
|
|
1000
|
-
});
|
|
1001
|
-
function _export(target, all) {
|
|
1002
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1003
|
-
enumerable: true,
|
|
1004
|
-
get: all[name]
|
|
1005
|
-
});
|
|
1006
|
-
}
|
|
1007
|
-
_export(exports2, {
|
|
1008
|
-
DynamicServerError: function() {
|
|
1009
|
-
return DynamicServerError;
|
|
1010
|
-
},
|
|
1011
|
-
isDynamicServerError: function() {
|
|
1012
|
-
return isDynamicServerError;
|
|
1013
|
-
}
|
|
1014
|
-
});
|
|
1015
|
-
var DYNAMIC_ERROR_CODE = "DYNAMIC_SERVER_USAGE";
|
|
1016
|
-
var DynamicServerError = class extends Error {
|
|
1017
|
-
constructor(description) {
|
|
1018
|
-
super(`Dynamic server usage: ${description}`), this.description = description, this.digest = DYNAMIC_ERROR_CODE;
|
|
1019
|
-
}
|
|
1020
|
-
};
|
|
1021
|
-
function isDynamicServerError(err) {
|
|
1022
|
-
if (typeof err !== "object" || err === null || !("digest" in err) || typeof err.digest !== "string") {
|
|
1023
|
-
return false;
|
|
1024
|
-
}
|
|
1025
|
-
return err.digest === DYNAMIC_ERROR_CODE;
|
|
1026
|
-
}
|
|
1027
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
1028
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
1029
|
-
Object.assign(exports2.default, exports2);
|
|
1030
|
-
module2.exports = exports2.default;
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
});
|
|
1034
|
-
|
|
1035
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/static-generation-bailout.js
|
|
1036
|
-
var require_static_generation_bailout = __commonJS({
|
|
1037
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/static-generation-bailout.js"(exports2, module2) {
|
|
1038
|
-
"use strict";
|
|
1039
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1040
|
-
value: true
|
|
1041
|
-
});
|
|
1042
|
-
function _export(target, all) {
|
|
1043
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1044
|
-
enumerable: true,
|
|
1045
|
-
get: all[name]
|
|
1046
|
-
});
|
|
1047
|
-
}
|
|
1048
|
-
_export(exports2, {
|
|
1049
|
-
StaticGenBailoutError: function() {
|
|
1050
|
-
return StaticGenBailoutError;
|
|
1051
|
-
},
|
|
1052
|
-
isStaticGenBailoutError: function() {
|
|
1053
|
-
return isStaticGenBailoutError;
|
|
1054
|
-
}
|
|
1055
|
-
});
|
|
1056
|
-
var NEXT_STATIC_GEN_BAILOUT = "NEXT_STATIC_GEN_BAILOUT";
|
|
1057
|
-
var StaticGenBailoutError = class extends Error {
|
|
1058
|
-
constructor(...args) {
|
|
1059
|
-
super(...args), this.code = NEXT_STATIC_GEN_BAILOUT;
|
|
1060
|
-
}
|
|
1061
|
-
};
|
|
1062
|
-
function isStaticGenBailoutError(error) {
|
|
1063
|
-
if (typeof error !== "object" || error === null || !("code" in error)) {
|
|
1064
|
-
return false;
|
|
1065
|
-
}
|
|
1066
|
-
return error.code === NEXT_STATIC_GEN_BAILOUT;
|
|
1067
|
-
}
|
|
1068
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
1069
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
1070
|
-
Object.assign(exports2.default, exports2);
|
|
1071
|
-
module2.exports = exports2.default;
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
});
|
|
1075
|
-
|
|
1076
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js
|
|
1077
|
-
var require_work_unit_async_storage_instance = __commonJS({
|
|
1078
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js"(exports2) {
|
|
1079
|
-
"use strict";
|
|
1080
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1081
|
-
value: true
|
|
1082
|
-
});
|
|
1083
|
-
Object.defineProperty(exports2, "workUnitAsyncStorageInstance", {
|
|
1084
|
-
enumerable: true,
|
|
1085
|
-
get: function() {
|
|
1086
|
-
return workUnitAsyncStorageInstance;
|
|
1087
|
-
}
|
|
1088
|
-
});
|
|
1089
|
-
var _asynclocalstorage = require_async_local_storage();
|
|
1090
|
-
var workUnitAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
1091
|
-
}
|
|
1092
|
-
});
|
|
1093
|
-
|
|
1094
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/app-router-headers.js
|
|
1095
|
-
var require_app_router_headers = __commonJS({
|
|
1096
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/app-router-headers.js"(exports2, module2) {
|
|
1097
|
-
"use strict";
|
|
1098
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1099
|
-
value: true
|
|
1100
|
-
});
|
|
1101
|
-
function _export(target, all) {
|
|
1102
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1103
|
-
enumerable: true,
|
|
1104
|
-
get: all[name]
|
|
1105
|
-
});
|
|
1106
|
-
}
|
|
1107
|
-
_export(exports2, {
|
|
1108
|
-
ACTION_HEADER: function() {
|
|
1109
|
-
return ACTION_HEADER;
|
|
1110
|
-
},
|
|
1111
|
-
FLIGHT_HEADERS: function() {
|
|
1112
|
-
return FLIGHT_HEADERS;
|
|
1113
|
-
},
|
|
1114
|
-
NEXT_ACTION_NOT_FOUND_HEADER: function() {
|
|
1115
|
-
return NEXT_ACTION_NOT_FOUND_HEADER;
|
|
1116
|
-
},
|
|
1117
|
-
NEXT_ACTION_REVALIDATED_HEADER: function() {
|
|
1118
|
-
return NEXT_ACTION_REVALIDATED_HEADER;
|
|
1119
|
-
},
|
|
1120
|
-
NEXT_DID_POSTPONE_HEADER: function() {
|
|
1121
|
-
return NEXT_DID_POSTPONE_HEADER;
|
|
1122
|
-
},
|
|
1123
|
-
NEXT_HMR_REFRESH_HASH_COOKIE: function() {
|
|
1124
|
-
return NEXT_HMR_REFRESH_HASH_COOKIE;
|
|
1125
|
-
},
|
|
1126
|
-
NEXT_HMR_REFRESH_HEADER: function() {
|
|
1127
|
-
return NEXT_HMR_REFRESH_HEADER;
|
|
1128
|
-
},
|
|
1129
|
-
NEXT_HTML_REQUEST_ID_HEADER: function() {
|
|
1130
|
-
return NEXT_HTML_REQUEST_ID_HEADER;
|
|
1131
|
-
},
|
|
1132
|
-
NEXT_IS_PRERENDER_HEADER: function() {
|
|
1133
|
-
return NEXT_IS_PRERENDER_HEADER;
|
|
1134
|
-
},
|
|
1135
|
-
NEXT_REQUEST_ID_HEADER: function() {
|
|
1136
|
-
return NEXT_REQUEST_ID_HEADER;
|
|
1137
|
-
},
|
|
1138
|
-
NEXT_REWRITTEN_PATH_HEADER: function() {
|
|
1139
|
-
return NEXT_REWRITTEN_PATH_HEADER;
|
|
1140
|
-
},
|
|
1141
|
-
NEXT_REWRITTEN_QUERY_HEADER: function() {
|
|
1142
|
-
return NEXT_REWRITTEN_QUERY_HEADER;
|
|
1143
|
-
},
|
|
1144
|
-
NEXT_ROUTER_PREFETCH_HEADER: function() {
|
|
1145
|
-
return NEXT_ROUTER_PREFETCH_HEADER;
|
|
1146
|
-
},
|
|
1147
|
-
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
|
|
1148
|
-
return NEXT_ROUTER_SEGMENT_PREFETCH_HEADER;
|
|
1149
|
-
},
|
|
1150
|
-
NEXT_ROUTER_STALE_TIME_HEADER: function() {
|
|
1151
|
-
return NEXT_ROUTER_STALE_TIME_HEADER;
|
|
1152
|
-
},
|
|
1153
|
-
NEXT_ROUTER_STATE_TREE_HEADER: function() {
|
|
1154
|
-
return NEXT_ROUTER_STATE_TREE_HEADER;
|
|
1155
|
-
},
|
|
1156
|
-
NEXT_RSC_UNION_QUERY: function() {
|
|
1157
|
-
return NEXT_RSC_UNION_QUERY;
|
|
1158
|
-
},
|
|
1159
|
-
NEXT_URL: function() {
|
|
1160
|
-
return NEXT_URL;
|
|
1161
|
-
},
|
|
1162
|
-
RSC_CONTENT_TYPE_HEADER: function() {
|
|
1163
|
-
return RSC_CONTENT_TYPE_HEADER;
|
|
1164
|
-
},
|
|
1165
|
-
RSC_HEADER: function() {
|
|
1166
|
-
return RSC_HEADER;
|
|
1167
|
-
}
|
|
1168
|
-
});
|
|
1169
|
-
var RSC_HEADER = "rsc";
|
|
1170
|
-
var ACTION_HEADER = "next-action";
|
|
1171
|
-
var NEXT_ROUTER_STATE_TREE_HEADER = "next-router-state-tree";
|
|
1172
|
-
var NEXT_ROUTER_PREFETCH_HEADER = "next-router-prefetch";
|
|
1173
|
-
var NEXT_ROUTER_SEGMENT_PREFETCH_HEADER = "next-router-segment-prefetch";
|
|
1174
|
-
var NEXT_HMR_REFRESH_HEADER = "next-hmr-refresh";
|
|
1175
|
-
var NEXT_HMR_REFRESH_HASH_COOKIE = "__next_hmr_refresh_hash__";
|
|
1176
|
-
var NEXT_URL = "next-url";
|
|
1177
|
-
var RSC_CONTENT_TYPE_HEADER = "text/x-component";
|
|
1178
|
-
var FLIGHT_HEADERS = [
|
|
1179
|
-
RSC_HEADER,
|
|
1180
|
-
NEXT_ROUTER_STATE_TREE_HEADER,
|
|
1181
|
-
NEXT_ROUTER_PREFETCH_HEADER,
|
|
1182
|
-
NEXT_HMR_REFRESH_HEADER,
|
|
1183
|
-
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER
|
|
1184
|
-
];
|
|
1185
|
-
var NEXT_RSC_UNION_QUERY = "_rsc";
|
|
1186
|
-
var NEXT_ROUTER_STALE_TIME_HEADER = "x-nextjs-stale-time";
|
|
1187
|
-
var NEXT_DID_POSTPONE_HEADER = "x-nextjs-postponed";
|
|
1188
|
-
var NEXT_REWRITTEN_PATH_HEADER = "x-nextjs-rewritten-path";
|
|
1189
|
-
var NEXT_REWRITTEN_QUERY_HEADER = "x-nextjs-rewritten-query";
|
|
1190
|
-
var NEXT_IS_PRERENDER_HEADER = "x-nextjs-prerender";
|
|
1191
|
-
var NEXT_ACTION_NOT_FOUND_HEADER = "x-nextjs-action-not-found";
|
|
1192
|
-
var NEXT_REQUEST_ID_HEADER = "x-nextjs-request-id";
|
|
1193
|
-
var NEXT_HTML_REQUEST_ID_HEADER = "x-nextjs-html-request-id";
|
|
1194
|
-
var NEXT_ACTION_REVALIDATED_HEADER = "x-action-revalidated";
|
|
1195
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
1196
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
1197
|
-
Object.assign(exports2.default, exports2);
|
|
1198
|
-
module2.exports = exports2.default;
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
});
|
|
1202
|
-
|
|
1203
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/shared/lib/invariant-error.js
|
|
1204
|
-
var require_invariant_error = __commonJS({
|
|
1205
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/shared/lib/invariant-error.js"(exports2) {
|
|
1206
|
-
"use strict";
|
|
1207
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1208
|
-
value: true
|
|
1209
|
-
});
|
|
1210
|
-
Object.defineProperty(exports2, "InvariantError", {
|
|
1211
|
-
enumerable: true,
|
|
1212
|
-
get: function() {
|
|
1213
|
-
return InvariantError;
|
|
1214
|
-
}
|
|
1215
|
-
});
|
|
1216
|
-
var InvariantError = class extends Error {
|
|
1217
|
-
constructor(message, options) {
|
|
1218
|
-
super(`Invariant: ${message.endsWith(".") ? message : message + "."} This is a bug in Next.js.`, options);
|
|
1219
|
-
this.name = "InvariantError";
|
|
1220
|
-
}
|
|
1221
|
-
};
|
|
1222
|
-
}
|
|
1223
|
-
});
|
|
1224
|
-
|
|
1225
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js
|
|
1226
|
-
var require_work_unit_async_storage_external = __commonJS({
|
|
1227
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js"(exports2) {
|
|
1228
|
-
"use strict";
|
|
1229
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1230
|
-
value: true
|
|
1231
|
-
});
|
|
1232
|
-
function _export(target, all) {
|
|
1233
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1234
|
-
enumerable: true,
|
|
1235
|
-
get: all[name]
|
|
1236
|
-
});
|
|
1237
|
-
}
|
|
1238
|
-
_export(exports2, {
|
|
1239
|
-
getCacheSignal: function() {
|
|
1240
|
-
return getCacheSignal;
|
|
1241
|
-
},
|
|
1242
|
-
getDraftModeProviderForCacheScope: function() {
|
|
1243
|
-
return getDraftModeProviderForCacheScope;
|
|
1244
|
-
},
|
|
1245
|
-
getHmrRefreshHash: function() {
|
|
1246
|
-
return getHmrRefreshHash;
|
|
1247
|
-
},
|
|
1248
|
-
getPrerenderResumeDataCache: function() {
|
|
1249
|
-
return getPrerenderResumeDataCache;
|
|
1250
|
-
},
|
|
1251
|
-
getRenderResumeDataCache: function() {
|
|
1252
|
-
return getRenderResumeDataCache;
|
|
1253
|
-
},
|
|
1254
|
-
getRuntimeStagePromise: function() {
|
|
1255
|
-
return getRuntimeStagePromise;
|
|
1256
|
-
},
|
|
1257
|
-
getServerComponentsHmrCache: function() {
|
|
1258
|
-
return getServerComponentsHmrCache;
|
|
1259
|
-
},
|
|
1260
|
-
isHmrRefresh: function() {
|
|
1261
|
-
return isHmrRefresh;
|
|
1262
|
-
},
|
|
1263
|
-
throwForMissingRequestStore: function() {
|
|
1264
|
-
return throwForMissingRequestStore;
|
|
1265
|
-
},
|
|
1266
|
-
throwInvariantForMissingStore: function() {
|
|
1267
|
-
return throwInvariantForMissingStore;
|
|
1268
|
-
},
|
|
1269
|
-
workUnitAsyncStorage: function() {
|
|
1270
|
-
return _workunitasyncstorageinstance.workUnitAsyncStorageInstance;
|
|
1271
|
-
}
|
|
1272
|
-
});
|
|
1273
|
-
var _workunitasyncstorageinstance = require_work_unit_async_storage_instance();
|
|
1274
|
-
var _approuterheaders = require_app_router_headers();
|
|
1275
|
-
var _invarianterror = require_invariant_error();
|
|
1276
|
-
function throwForMissingRequestStore(callingExpression) {
|
|
1277
|
-
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", {
|
|
1278
|
-
value: "E251",
|
|
1279
|
-
enumerable: false,
|
|
1280
|
-
configurable: true
|
|
1281
|
-
});
|
|
1282
|
-
}
|
|
1283
|
-
function throwInvariantForMissingStore() {
|
|
1284
|
-
throw Object.defineProperty(new _invarianterror.InvariantError("Expected workUnitAsyncStorage to have a store."), "__NEXT_ERROR_CODE", {
|
|
1285
|
-
value: "E696",
|
|
1286
|
-
enumerable: false,
|
|
1287
|
-
configurable: true
|
|
1288
|
-
});
|
|
1289
|
-
}
|
|
1290
|
-
function getPrerenderResumeDataCache(workUnitStore) {
|
|
1291
|
-
switch (workUnitStore.type) {
|
|
1292
|
-
case "prerender":
|
|
1293
|
-
case "prerender-runtime":
|
|
1294
|
-
case "prerender-ppr":
|
|
1295
|
-
return workUnitStore.prerenderResumeDataCache;
|
|
1296
|
-
case "prerender-client":
|
|
1297
|
-
return workUnitStore.prerenderResumeDataCache;
|
|
1298
|
-
case "request": {
|
|
1299
|
-
if (workUnitStore.prerenderResumeDataCache) {
|
|
1300
|
-
return workUnitStore.prerenderResumeDataCache;
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
case "prerender-legacy":
|
|
1304
|
-
case "cache":
|
|
1305
|
-
case "private-cache":
|
|
1306
|
-
case "unstable-cache":
|
|
1307
|
-
return null;
|
|
1308
|
-
default:
|
|
1309
|
-
return workUnitStore;
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
function getRenderResumeDataCache(workUnitStore) {
|
|
1313
|
-
switch (workUnitStore.type) {
|
|
1314
|
-
case "request":
|
|
1315
|
-
case "prerender":
|
|
1316
|
-
case "prerender-runtime":
|
|
1317
|
-
case "prerender-client":
|
|
1318
|
-
if (workUnitStore.renderResumeDataCache) {
|
|
1319
|
-
return workUnitStore.renderResumeDataCache;
|
|
1320
|
-
}
|
|
1321
|
-
// fallthrough
|
|
1322
|
-
case "prerender-ppr":
|
|
1323
|
-
return workUnitStore.prerenderResumeDataCache ?? null;
|
|
1324
|
-
case "cache":
|
|
1325
|
-
case "private-cache":
|
|
1326
|
-
case "unstable-cache":
|
|
1327
|
-
case "prerender-legacy":
|
|
1328
|
-
return null;
|
|
1329
|
-
default:
|
|
1330
|
-
return workUnitStore;
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
function getHmrRefreshHash(workStore, workUnitStore) {
|
|
1334
|
-
if (workStore.dev) {
|
|
1335
|
-
switch (workUnitStore.type) {
|
|
1336
|
-
case "cache":
|
|
1337
|
-
case "private-cache":
|
|
1338
|
-
case "prerender":
|
|
1339
|
-
case "prerender-runtime":
|
|
1340
|
-
return workUnitStore.hmrRefreshHash;
|
|
1341
|
-
case "request":
|
|
1342
|
-
var _workUnitStore_cookies_get;
|
|
1343
|
-
return (_workUnitStore_cookies_get = workUnitStore.cookies.get(_approuterheaders.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : _workUnitStore_cookies_get.value;
|
|
1344
|
-
case "prerender-client":
|
|
1345
|
-
case "prerender-ppr":
|
|
1346
|
-
case "prerender-legacy":
|
|
1347
|
-
case "unstable-cache":
|
|
1348
|
-
break;
|
|
1349
|
-
default:
|
|
1350
|
-
workUnitStore;
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
return void 0;
|
|
1354
|
-
}
|
|
1355
|
-
function isHmrRefresh(workStore, workUnitStore) {
|
|
1356
|
-
if (workStore.dev) {
|
|
1357
|
-
switch (workUnitStore.type) {
|
|
1358
|
-
case "cache":
|
|
1359
|
-
case "private-cache":
|
|
1360
|
-
case "request":
|
|
1361
|
-
return workUnitStore.isHmrRefresh ?? false;
|
|
1362
|
-
case "prerender":
|
|
1363
|
-
case "prerender-client":
|
|
1364
|
-
case "prerender-runtime":
|
|
1365
|
-
case "prerender-ppr":
|
|
1366
|
-
case "prerender-legacy":
|
|
1367
|
-
case "unstable-cache":
|
|
1368
|
-
break;
|
|
1369
|
-
default:
|
|
1370
|
-
workUnitStore;
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
return false;
|
|
1374
|
-
}
|
|
1375
|
-
function getServerComponentsHmrCache(workStore, workUnitStore) {
|
|
1376
|
-
if (workStore.dev) {
|
|
1377
|
-
switch (workUnitStore.type) {
|
|
1378
|
-
case "cache":
|
|
1379
|
-
case "private-cache":
|
|
1380
|
-
case "request":
|
|
1381
|
-
return workUnitStore.serverComponentsHmrCache;
|
|
1382
|
-
case "prerender":
|
|
1383
|
-
case "prerender-client":
|
|
1384
|
-
case "prerender-runtime":
|
|
1385
|
-
case "prerender-ppr":
|
|
1386
|
-
case "prerender-legacy":
|
|
1387
|
-
case "unstable-cache":
|
|
1388
|
-
break;
|
|
1389
|
-
default:
|
|
1390
|
-
workUnitStore;
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
return void 0;
|
|
1394
|
-
}
|
|
1395
|
-
function getDraftModeProviderForCacheScope(workStore, workUnitStore) {
|
|
1396
|
-
if (workStore.isDraftMode) {
|
|
1397
|
-
switch (workUnitStore.type) {
|
|
1398
|
-
case "cache":
|
|
1399
|
-
case "private-cache":
|
|
1400
|
-
case "unstable-cache":
|
|
1401
|
-
case "prerender-runtime":
|
|
1402
|
-
case "request":
|
|
1403
|
-
return workUnitStore.draftMode;
|
|
1404
|
-
case "prerender":
|
|
1405
|
-
case "prerender-client":
|
|
1406
|
-
case "prerender-ppr":
|
|
1407
|
-
case "prerender-legacy":
|
|
1408
|
-
break;
|
|
1409
|
-
default:
|
|
1410
|
-
workUnitStore;
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
return void 0;
|
|
1414
|
-
}
|
|
1415
|
-
function getCacheSignal(workUnitStore) {
|
|
1416
|
-
switch (workUnitStore.type) {
|
|
1417
|
-
case "prerender":
|
|
1418
|
-
case "prerender-client":
|
|
1419
|
-
case "prerender-runtime":
|
|
1420
|
-
return workUnitStore.cacheSignal;
|
|
1421
|
-
case "request": {
|
|
1422
|
-
if (workUnitStore.cacheSignal) {
|
|
1423
|
-
return workUnitStore.cacheSignal;
|
|
1424
|
-
}
|
|
1425
|
-
}
|
|
1426
|
-
case "prerender-ppr":
|
|
1427
|
-
case "prerender-legacy":
|
|
1428
|
-
case "cache":
|
|
1429
|
-
case "private-cache":
|
|
1430
|
-
case "unstable-cache":
|
|
1431
|
-
return null;
|
|
1432
|
-
default:
|
|
1433
|
-
return workUnitStore;
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
function getRuntimeStagePromise(workUnitStore) {
|
|
1437
|
-
switch (workUnitStore.type) {
|
|
1438
|
-
case "prerender-runtime":
|
|
1439
|
-
case "private-cache":
|
|
1440
|
-
return workUnitStore.runtimeStagePromise;
|
|
1441
|
-
case "prerender":
|
|
1442
|
-
case "prerender-client":
|
|
1443
|
-
case "prerender-ppr":
|
|
1444
|
-
case "prerender-legacy":
|
|
1445
|
-
case "request":
|
|
1446
|
-
case "cache":
|
|
1447
|
-
case "unstable-cache":
|
|
1448
|
-
return null;
|
|
1449
|
-
default:
|
|
1450
|
-
return workUnitStore;
|
|
1451
|
-
}
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
});
|
|
1455
|
-
|
|
1456
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/work-async-storage-instance.js
|
|
1457
|
-
var require_work_async_storage_instance = __commonJS({
|
|
1458
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/work-async-storage-instance.js"(exports2) {
|
|
1459
|
-
"use strict";
|
|
1460
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1461
|
-
value: true
|
|
1462
|
-
});
|
|
1463
|
-
Object.defineProperty(exports2, "workAsyncStorageInstance", {
|
|
1464
|
-
enumerable: true,
|
|
1465
|
-
get: function() {
|
|
1466
|
-
return workAsyncStorageInstance;
|
|
1467
|
-
}
|
|
1468
|
-
});
|
|
1469
|
-
var _asynclocalstorage = require_async_local_storage();
|
|
1470
|
-
var workAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
1471
|
-
}
|
|
1472
|
-
});
|
|
1473
|
-
|
|
1474
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/work-async-storage.external.js
|
|
1475
|
-
var require_work_async_storage_external = __commonJS({
|
|
1476
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/work-async-storage.external.js"(exports2) {
|
|
1477
|
-
"use strict";
|
|
1478
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1479
|
-
value: true
|
|
1480
|
-
});
|
|
1481
|
-
Object.defineProperty(exports2, "workAsyncStorage", {
|
|
1482
|
-
enumerable: true,
|
|
1483
|
-
get: function() {
|
|
1484
|
-
return _workasyncstorageinstance.workAsyncStorageInstance;
|
|
1485
|
-
}
|
|
1486
|
-
});
|
|
1487
|
-
var _workasyncstorageinstance = require_work_async_storage_instance();
|
|
1488
|
-
}
|
|
1489
|
-
});
|
|
1490
|
-
|
|
1491
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/lib/framework/boundary-constants.js
|
|
1492
|
-
var require_boundary_constants = __commonJS({
|
|
1493
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/lib/framework/boundary-constants.js"(exports2) {
|
|
1494
|
-
"use strict";
|
|
1495
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1496
|
-
value: true
|
|
1497
|
-
});
|
|
1498
|
-
function _export(target, all) {
|
|
1499
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1500
|
-
enumerable: true,
|
|
1501
|
-
get: all[name]
|
|
1502
|
-
});
|
|
1503
|
-
}
|
|
1504
|
-
_export(exports2, {
|
|
1505
|
-
METADATA_BOUNDARY_NAME: function() {
|
|
1506
|
-
return METADATA_BOUNDARY_NAME;
|
|
1507
|
-
},
|
|
1508
|
-
OUTLET_BOUNDARY_NAME: function() {
|
|
1509
|
-
return OUTLET_BOUNDARY_NAME;
|
|
1510
|
-
},
|
|
1511
|
-
ROOT_LAYOUT_BOUNDARY_NAME: function() {
|
|
1512
|
-
return ROOT_LAYOUT_BOUNDARY_NAME;
|
|
1513
|
-
},
|
|
1514
|
-
VIEWPORT_BOUNDARY_NAME: function() {
|
|
1515
|
-
return VIEWPORT_BOUNDARY_NAME;
|
|
1516
|
-
}
|
|
1517
|
-
});
|
|
1518
|
-
var METADATA_BOUNDARY_NAME = "__next_metadata_boundary__";
|
|
1519
|
-
var VIEWPORT_BOUNDARY_NAME = "__next_viewport_boundary__";
|
|
1520
|
-
var OUTLET_BOUNDARY_NAME = "__next_outlet_boundary__";
|
|
1521
|
-
var ROOT_LAYOUT_BOUNDARY_NAME = "__next_root_layout_boundary__";
|
|
1522
|
-
}
|
|
1523
|
-
});
|
|
1524
|
-
|
|
1525
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/lib/scheduler.js
|
|
1526
|
-
var require_scheduler = __commonJS({
|
|
1527
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/lib/scheduler.js"(exports2) {
|
|
1528
|
-
"use strict";
|
|
1529
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1530
|
-
value: true
|
|
1531
|
-
});
|
|
1532
|
-
function _export(target, all) {
|
|
1533
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1534
|
-
enumerable: true,
|
|
1535
|
-
get: all[name]
|
|
1536
|
-
});
|
|
1537
|
-
}
|
|
1538
|
-
_export(exports2, {
|
|
1539
|
-
atLeastOneTask: function() {
|
|
1540
|
-
return atLeastOneTask;
|
|
1541
|
-
},
|
|
1542
|
-
scheduleImmediate: function() {
|
|
1543
|
-
return scheduleImmediate;
|
|
1544
|
-
},
|
|
1545
|
-
scheduleOnNextTick: function() {
|
|
1546
|
-
return scheduleOnNextTick;
|
|
1547
|
-
},
|
|
1548
|
-
waitAtLeastOneReactRenderTask: function() {
|
|
1549
|
-
return waitAtLeastOneReactRenderTask;
|
|
1550
|
-
}
|
|
1551
|
-
});
|
|
1552
|
-
var scheduleOnNextTick = (cb) => {
|
|
1553
|
-
Promise.resolve().then(() => {
|
|
1554
|
-
if (process.env.NEXT_RUNTIME === "edge") {
|
|
1555
|
-
setTimeout(cb, 0);
|
|
1556
|
-
} else {
|
|
1557
|
-
process.nextTick(cb);
|
|
1558
|
-
}
|
|
1559
|
-
});
|
|
1560
|
-
};
|
|
1561
|
-
var scheduleImmediate = (cb) => {
|
|
1562
|
-
if (process.env.NEXT_RUNTIME === "edge") {
|
|
1563
|
-
setTimeout(cb, 0);
|
|
1564
|
-
} else {
|
|
1565
|
-
setImmediate(cb);
|
|
1566
|
-
}
|
|
1567
|
-
};
|
|
1568
|
-
function atLeastOneTask() {
|
|
1569
|
-
return new Promise((resolve) => scheduleImmediate(resolve));
|
|
1570
|
-
}
|
|
1571
|
-
function waitAtLeastOneReactRenderTask() {
|
|
1572
|
-
if (process.env.NEXT_RUNTIME === "edge") {
|
|
1573
|
-
return new Promise((r) => setTimeout(r, 0));
|
|
1574
|
-
} else {
|
|
1575
|
-
return new Promise((r) => setImmediate(r));
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
});
|
|
1580
|
-
|
|
1581
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/dynamic-rendering.js
|
|
1582
|
-
var require_dynamic_rendering = __commonJS({
|
|
1583
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/server/app-render/dynamic-rendering.js"(exports2) {
|
|
1584
|
-
"use strict";
|
|
1585
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1586
|
-
value: true
|
|
1587
|
-
});
|
|
1588
|
-
function _export(target, all) {
|
|
1589
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1590
|
-
enumerable: true,
|
|
1591
|
-
get: all[name]
|
|
1592
|
-
});
|
|
1593
|
-
}
|
|
1594
|
-
_export(exports2, {
|
|
1595
|
-
Postpone: function() {
|
|
1596
|
-
return Postpone;
|
|
1597
|
-
},
|
|
1598
|
-
PreludeState: function() {
|
|
1599
|
-
return PreludeState;
|
|
1600
|
-
},
|
|
1601
|
-
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
1602
|
-
return abortAndThrowOnSynchronousRequestDataAccess;
|
|
1603
|
-
},
|
|
1604
|
-
abortOnSynchronousPlatformIOAccess: function() {
|
|
1605
|
-
return abortOnSynchronousPlatformIOAccess;
|
|
1606
|
-
},
|
|
1607
|
-
accessedDynamicData: function() {
|
|
1608
|
-
return accessedDynamicData;
|
|
1609
|
-
},
|
|
1610
|
-
annotateDynamicAccess: function() {
|
|
1611
|
-
return annotateDynamicAccess;
|
|
1612
|
-
},
|
|
1613
|
-
consumeDynamicAccess: function() {
|
|
1614
|
-
return consumeDynamicAccess;
|
|
1615
|
-
},
|
|
1616
|
-
createDynamicTrackingState: function() {
|
|
1617
|
-
return createDynamicTrackingState;
|
|
1618
|
-
},
|
|
1619
|
-
createDynamicValidationState: function() {
|
|
1620
|
-
return createDynamicValidationState;
|
|
1621
|
-
},
|
|
1622
|
-
createHangingInputAbortSignal: function() {
|
|
1623
|
-
return createHangingInputAbortSignal;
|
|
1624
|
-
},
|
|
1625
|
-
createRenderInBrowserAbortSignal: function() {
|
|
1626
|
-
return createRenderInBrowserAbortSignal;
|
|
1627
|
-
},
|
|
1628
|
-
delayUntilRuntimeStage: function() {
|
|
1629
|
-
return delayUntilRuntimeStage;
|
|
1630
|
-
},
|
|
1631
|
-
formatDynamicAPIAccesses: function() {
|
|
1632
|
-
return formatDynamicAPIAccesses;
|
|
1633
|
-
},
|
|
1634
|
-
getFirstDynamicReason: function() {
|
|
1635
|
-
return getFirstDynamicReason;
|
|
1636
|
-
},
|
|
1637
|
-
getStaticShellDisallowedDynamicReasons: function() {
|
|
1638
|
-
return getStaticShellDisallowedDynamicReasons;
|
|
1639
|
-
},
|
|
1640
|
-
isDynamicPostpone: function() {
|
|
1641
|
-
return isDynamicPostpone;
|
|
1642
|
-
},
|
|
1643
|
-
isPrerenderInterruptedError: function() {
|
|
1644
|
-
return isPrerenderInterruptedError;
|
|
1645
|
-
},
|
|
1646
|
-
logDisallowedDynamicError: function() {
|
|
1647
|
-
return logDisallowedDynamicError;
|
|
1648
|
-
},
|
|
1649
|
-
markCurrentScopeAsDynamic: function() {
|
|
1650
|
-
return markCurrentScopeAsDynamic;
|
|
1651
|
-
},
|
|
1652
|
-
postponeWithTracking: function() {
|
|
1653
|
-
return postponeWithTracking;
|
|
1654
|
-
},
|
|
1655
|
-
throwIfDisallowedDynamic: function() {
|
|
1656
|
-
return throwIfDisallowedDynamic;
|
|
1657
|
-
},
|
|
1658
|
-
throwToInterruptStaticGeneration: function() {
|
|
1659
|
-
return throwToInterruptStaticGeneration;
|
|
1660
|
-
},
|
|
1661
|
-
trackAllowedDynamicAccess: function() {
|
|
1662
|
-
return trackAllowedDynamicAccess;
|
|
1663
|
-
},
|
|
1664
|
-
trackDynamicDataInDynamicRender: function() {
|
|
1665
|
-
return trackDynamicDataInDynamicRender;
|
|
1666
|
-
},
|
|
1667
|
-
trackDynamicHoleInRuntimeShell: function() {
|
|
1668
|
-
return trackDynamicHoleInRuntimeShell;
|
|
1669
|
-
},
|
|
1670
|
-
trackDynamicHoleInStaticShell: function() {
|
|
1671
|
-
return trackDynamicHoleInStaticShell;
|
|
1672
|
-
},
|
|
1673
|
-
useDynamicRouteParams: function() {
|
|
1674
|
-
return useDynamicRouteParams;
|
|
1675
|
-
},
|
|
1676
|
-
useDynamicSearchParams: function() {
|
|
1677
|
-
return useDynamicSearchParams;
|
|
1678
|
-
}
|
|
1679
|
-
});
|
|
1680
|
-
var _react = /* @__PURE__ */ _interop_require_default(require("react"));
|
|
1681
|
-
var _hooksservercontext = require_hooks_server_context();
|
|
1682
|
-
var _staticgenerationbailout = require_static_generation_bailout();
|
|
1683
|
-
var _workunitasyncstorageexternal = require_work_unit_async_storage_external();
|
|
1684
|
-
var _workasyncstorageexternal = require_work_async_storage_external();
|
|
1685
|
-
var _dynamicrenderingutils = require_dynamic_rendering_utils();
|
|
1686
|
-
var _boundaryconstants = require_boundary_constants();
|
|
1687
|
-
var _scheduler = require_scheduler();
|
|
1688
|
-
var _bailouttocsr = require_bailout_to_csr();
|
|
1689
|
-
var _invarianterror = require_invariant_error();
|
|
1690
|
-
function _interop_require_default(obj) {
|
|
1691
|
-
return obj && obj.__esModule ? obj : {
|
|
1692
|
-
default: obj
|
|
1693
|
-
};
|
|
1694
|
-
}
|
|
1695
|
-
var hasPostpone = typeof _react.default.unstable_postpone === "function";
|
|
1696
|
-
function createDynamicTrackingState(isDebugDynamicAccesses) {
|
|
1697
|
-
return {
|
|
1698
|
-
isDebugDynamicAccesses,
|
|
1699
|
-
dynamicAccesses: [],
|
|
1700
|
-
syncDynamicErrorWithStack: null
|
|
1701
|
-
};
|
|
1702
|
-
}
|
|
1703
|
-
function createDynamicValidationState() {
|
|
1704
|
-
return {
|
|
1705
|
-
hasSuspenseAboveBody: false,
|
|
1706
|
-
hasDynamicMetadata: false,
|
|
1707
|
-
dynamicMetadata: null,
|
|
1708
|
-
hasDynamicViewport: false,
|
|
1709
|
-
hasAllowedDynamic: false,
|
|
1710
|
-
dynamicErrors: []
|
|
1711
|
-
};
|
|
1712
|
-
}
|
|
1713
|
-
function getFirstDynamicReason(trackingState) {
|
|
1714
|
-
var _trackingState_dynamicAccesses_;
|
|
1715
|
-
return (_trackingState_dynamicAccesses_ = trackingState.dynamicAccesses[0]) == null ? void 0 : _trackingState_dynamicAccesses_.expression;
|
|
1716
|
-
}
|
|
1717
|
-
function markCurrentScopeAsDynamic(store, workUnitStore, expression) {
|
|
1718
|
-
if (workUnitStore) {
|
|
1719
|
-
switch (workUnitStore.type) {
|
|
1720
|
-
case "cache":
|
|
1721
|
-
case "unstable-cache":
|
|
1722
|
-
return;
|
|
1723
|
-
case "private-cache":
|
|
1724
|
-
return;
|
|
1725
|
-
case "prerender-legacy":
|
|
1726
|
-
case "prerender-ppr":
|
|
1727
|
-
case "request":
|
|
1728
|
-
break;
|
|
1729
|
-
default:
|
|
1730
|
-
workUnitStore;
|
|
1731
|
-
}
|
|
1732
|
-
}
|
|
1733
|
-
if (store.forceDynamic || store.forceStatic) return;
|
|
1734
|
-
if (store.dynamicShouldError) {
|
|
1735
|
-
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", {
|
|
1736
|
-
value: "E553",
|
|
1737
|
-
enumerable: false,
|
|
1738
|
-
configurable: true
|
|
1739
|
-
});
|
|
1740
|
-
}
|
|
1741
|
-
if (workUnitStore) {
|
|
1742
|
-
switch (workUnitStore.type) {
|
|
1743
|
-
case "prerender-ppr":
|
|
1744
|
-
return postponeWithTracking(store.route, expression, workUnitStore.dynamicTracking);
|
|
1745
|
-
case "prerender-legacy":
|
|
1746
|
-
workUnitStore.revalidate = 0;
|
|
1747
|
-
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", {
|
|
1748
|
-
value: "E550",
|
|
1749
|
-
enumerable: false,
|
|
1750
|
-
configurable: true
|
|
1751
|
-
});
|
|
1752
|
-
store.dynamicUsageDescription = expression;
|
|
1753
|
-
store.dynamicUsageStack = err.stack;
|
|
1754
|
-
throw err;
|
|
1755
|
-
case "request":
|
|
1756
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1757
|
-
workUnitStore.usedDynamic = true;
|
|
1758
|
-
}
|
|
1759
|
-
break;
|
|
1760
|
-
default:
|
|
1761
|
-
workUnitStore;
|
|
1762
|
-
}
|
|
1763
|
-
}
|
|
1764
|
-
}
|
|
1765
|
-
function throwToInterruptStaticGeneration(expression, store, prerenderStore) {
|
|
1766
|
-
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", {
|
|
1767
|
-
value: "E558",
|
|
1768
|
-
enumerable: false,
|
|
1769
|
-
configurable: true
|
|
1770
|
-
});
|
|
1771
|
-
prerenderStore.revalidate = 0;
|
|
1772
|
-
store.dynamicUsageDescription = expression;
|
|
1773
|
-
store.dynamicUsageStack = err.stack;
|
|
1774
|
-
throw err;
|
|
1775
|
-
}
|
|
1776
|
-
function trackDynamicDataInDynamicRender(workUnitStore) {
|
|
1777
|
-
switch (workUnitStore.type) {
|
|
1778
|
-
case "cache":
|
|
1779
|
-
case "unstable-cache":
|
|
1780
|
-
return;
|
|
1781
|
-
case "private-cache":
|
|
1782
|
-
return;
|
|
1783
|
-
case "prerender":
|
|
1784
|
-
case "prerender-runtime":
|
|
1785
|
-
case "prerender-legacy":
|
|
1786
|
-
case "prerender-ppr":
|
|
1787
|
-
case "prerender-client":
|
|
1788
|
-
break;
|
|
1789
|
-
case "request":
|
|
1790
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1791
|
-
workUnitStore.usedDynamic = true;
|
|
1792
|
-
}
|
|
1793
|
-
break;
|
|
1794
|
-
default:
|
|
1795
|
-
workUnitStore;
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
function abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore) {
|
|
1799
|
-
const reason = `Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`;
|
|
1800
|
-
const error = createPrerenderInterruptedError(reason);
|
|
1801
|
-
prerenderStore.controller.abort(error);
|
|
1802
|
-
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
1803
|
-
if (dynamicTracking) {
|
|
1804
|
-
dynamicTracking.dynamicAccesses.push({
|
|
1805
|
-
// When we aren't debugging, we don't need to create another error for the
|
|
1806
|
-
// stack trace.
|
|
1807
|
-
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
1808
|
-
expression
|
|
1809
|
-
});
|
|
1810
|
-
}
|
|
1811
|
-
}
|
|
1812
|
-
function abortOnSynchronousPlatformIOAccess(route, expression, errorWithStack, prerenderStore) {
|
|
1813
|
-
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
1814
|
-
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
1815
|
-
if (dynamicTracking) {
|
|
1816
|
-
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
1817
|
-
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
1818
|
-
}
|
|
1819
|
-
}
|
|
1820
|
-
}
|
|
1821
|
-
function abortAndThrowOnSynchronousRequestDataAccess(route, expression, errorWithStack, prerenderStore) {
|
|
1822
|
-
const prerenderSignal = prerenderStore.controller.signal;
|
|
1823
|
-
if (prerenderSignal.aborted === false) {
|
|
1824
|
-
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
1825
|
-
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
1826
|
-
if (dynamicTracking) {
|
|
1827
|
-
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
1828
|
-
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
1829
|
-
}
|
|
1830
|
-
}
|
|
1831
|
-
}
|
|
1832
|
-
throw createPrerenderInterruptedError(`Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`);
|
|
1833
|
-
}
|
|
1834
|
-
function Postpone({ reason, route }) {
|
|
1835
|
-
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
1836
|
-
const dynamicTracking = prerenderStore && prerenderStore.type === "prerender-ppr" ? prerenderStore.dynamicTracking : null;
|
|
1837
|
-
postponeWithTracking(route, reason, dynamicTracking);
|
|
1838
|
-
}
|
|
1839
|
-
function postponeWithTracking(route, expression, dynamicTracking) {
|
|
1840
|
-
assertPostpone();
|
|
1841
|
-
if (dynamicTracking) {
|
|
1842
|
-
dynamicTracking.dynamicAccesses.push({
|
|
1843
|
-
// When we aren't debugging, we don't need to create another error for the
|
|
1844
|
-
// stack trace.
|
|
1845
|
-
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
1846
|
-
expression
|
|
1847
|
-
});
|
|
1848
|
-
}
|
|
1849
|
-
_react.default.unstable_postpone(createPostponeReason(route, expression));
|
|
1850
|
-
}
|
|
1851
|
-
function createPostponeReason(route, expression) {
|
|
1852
|
-
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`;
|
|
1853
|
-
}
|
|
1854
|
-
function isDynamicPostpone(err) {
|
|
1855
|
-
if (typeof err === "object" && err !== null && typeof err.message === "string") {
|
|
1856
|
-
return isDynamicPostponeReason(err.message);
|
|
1857
|
-
}
|
|
1858
|
-
return false;
|
|
1859
|
-
}
|
|
1860
|
-
function isDynamicPostponeReason(reason) {
|
|
1861
|
-
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");
|
|
1862
|
-
}
|
|
1863
|
-
if (isDynamicPostponeReason(createPostponeReason("%%%", "^^^")) === false) {
|
|
1864
|
-
throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
1865
|
-
value: "E296",
|
|
1866
|
-
enumerable: false,
|
|
1867
|
-
configurable: true
|
|
1868
|
-
});
|
|
1869
|
-
}
|
|
1870
|
-
var NEXT_PRERENDER_INTERRUPTED = "NEXT_PRERENDER_INTERRUPTED";
|
|
1871
|
-
function createPrerenderInterruptedError(message) {
|
|
1872
|
-
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
1873
|
-
value: "E394",
|
|
1874
|
-
enumerable: false,
|
|
1875
|
-
configurable: true
|
|
1876
|
-
});
|
|
1877
|
-
error.digest = NEXT_PRERENDER_INTERRUPTED;
|
|
1878
|
-
return error;
|
|
1879
|
-
}
|
|
1880
|
-
function isPrerenderInterruptedError(error) {
|
|
1881
|
-
return typeof error === "object" && error !== null && error.digest === NEXT_PRERENDER_INTERRUPTED && "name" in error && "message" in error && error instanceof Error;
|
|
1882
|
-
}
|
|
1883
|
-
function accessedDynamicData(dynamicAccesses) {
|
|
1884
|
-
return dynamicAccesses.length > 0;
|
|
1885
|
-
}
|
|
1886
|
-
function consumeDynamicAccess(serverDynamic, clientDynamic) {
|
|
1887
|
-
serverDynamic.dynamicAccesses.push(...clientDynamic.dynamicAccesses);
|
|
1888
|
-
return serverDynamic.dynamicAccesses;
|
|
1889
|
-
}
|
|
1890
|
-
function formatDynamicAPIAccesses(dynamicAccesses) {
|
|
1891
|
-
return dynamicAccesses.filter((access) => typeof access.stack === "string" && access.stack.length > 0).map(({ expression, stack }) => {
|
|
1892
|
-
stack = stack.split("\n").slice(4).filter((line) => {
|
|
1893
|
-
if (line.includes("node_modules/next/")) {
|
|
1894
|
-
return false;
|
|
1895
|
-
}
|
|
1896
|
-
if (line.includes(" (<anonymous>)")) {
|
|
1897
|
-
return false;
|
|
1898
|
-
}
|
|
1899
|
-
if (line.includes(" (node:")) {
|
|
1900
|
-
return false;
|
|
1901
|
-
}
|
|
1902
|
-
return true;
|
|
1903
|
-
}).join("\n");
|
|
1904
|
-
return `Dynamic API Usage Debug - ${expression}:
|
|
1905
|
-
${stack}`;
|
|
1906
|
-
});
|
|
1907
|
-
}
|
|
1908
|
-
function assertPostpone() {
|
|
1909
|
-
if (!hasPostpone) {
|
|
1910
|
-
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", {
|
|
1911
|
-
value: "E224",
|
|
1912
|
-
enumerable: false,
|
|
1913
|
-
configurable: true
|
|
1914
|
-
});
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
function createRenderInBrowserAbortSignal() {
|
|
1918
|
-
const controller = new AbortController();
|
|
1919
|
-
controller.abort(Object.defineProperty(new _bailouttocsr.BailoutToCSRError("Render in Browser"), "__NEXT_ERROR_CODE", {
|
|
1920
|
-
value: "E721",
|
|
1921
|
-
enumerable: false,
|
|
1922
|
-
configurable: true
|
|
1923
|
-
}));
|
|
1924
|
-
return controller.signal;
|
|
1925
|
-
}
|
|
1926
|
-
function createHangingInputAbortSignal(workUnitStore) {
|
|
1927
|
-
switch (workUnitStore.type) {
|
|
1928
|
-
case "prerender":
|
|
1929
|
-
case "prerender-runtime":
|
|
1930
|
-
const controller = new AbortController();
|
|
1931
|
-
if (workUnitStore.cacheSignal) {
|
|
1932
|
-
workUnitStore.cacheSignal.inputReady().then(() => {
|
|
1933
|
-
controller.abort();
|
|
1934
|
-
});
|
|
1935
|
-
} else {
|
|
1936
|
-
const runtimeStagePromise = (0, _workunitasyncstorageexternal.getRuntimeStagePromise)(workUnitStore);
|
|
1937
|
-
if (runtimeStagePromise) {
|
|
1938
|
-
runtimeStagePromise.then(() => (0, _scheduler.scheduleOnNextTick)(() => controller.abort()));
|
|
1939
|
-
} else {
|
|
1940
|
-
(0, _scheduler.scheduleOnNextTick)(() => controller.abort());
|
|
1941
|
-
}
|
|
1942
|
-
}
|
|
1943
|
-
return controller.signal;
|
|
1944
|
-
case "prerender-client":
|
|
1945
|
-
case "prerender-ppr":
|
|
1946
|
-
case "prerender-legacy":
|
|
1947
|
-
case "request":
|
|
1948
|
-
case "cache":
|
|
1949
|
-
case "private-cache":
|
|
1950
|
-
case "unstable-cache":
|
|
1951
|
-
return void 0;
|
|
1952
|
-
default:
|
|
1953
|
-
workUnitStore;
|
|
1954
|
-
}
|
|
1955
|
-
}
|
|
1956
|
-
function annotateDynamicAccess(expression, prerenderStore) {
|
|
1957
|
-
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
1958
|
-
if (dynamicTracking) {
|
|
1959
|
-
dynamicTracking.dynamicAccesses.push({
|
|
1960
|
-
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
1961
|
-
expression
|
|
1962
|
-
});
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
|
-
function useDynamicRouteParams(expression) {
|
|
1966
|
-
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
1967
|
-
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
1968
|
-
if (workStore && workUnitStore) {
|
|
1969
|
-
switch (workUnitStore.type) {
|
|
1970
|
-
case "prerender-client":
|
|
1971
|
-
case "prerender": {
|
|
1972
|
-
const fallbackParams = workUnitStore.fallbackRouteParams;
|
|
1973
|
-
if (fallbackParams && fallbackParams.size > 0) {
|
|
1974
|
-
_react.default.use((0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, workStore.route, expression));
|
|
1975
|
-
}
|
|
1976
|
-
break;
|
|
1977
|
-
}
|
|
1978
|
-
case "prerender-ppr": {
|
|
1979
|
-
const fallbackParams = workUnitStore.fallbackRouteParams;
|
|
1980
|
-
if (fallbackParams && fallbackParams.size > 0) {
|
|
1981
|
-
return postponeWithTracking(workStore.route, expression, workUnitStore.dynamicTracking);
|
|
1982
|
-
}
|
|
1983
|
-
break;
|
|
1984
|
-
}
|
|
1985
|
-
case "prerender-runtime":
|
|
1986
|
-
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", {
|
|
1987
|
-
value: "E771",
|
|
1988
|
-
enumerable: false,
|
|
1989
|
-
configurable: true
|
|
1990
|
-
});
|
|
1991
|
-
case "cache":
|
|
1992
|
-
case "private-cache":
|
|
1993
|
-
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", {
|
|
1994
|
-
value: "E745",
|
|
1995
|
-
enumerable: false,
|
|
1996
|
-
configurable: true
|
|
1997
|
-
});
|
|
1998
|
-
case "prerender-legacy":
|
|
1999
|
-
case "request":
|
|
2000
|
-
case "unstable-cache":
|
|
2001
|
-
break;
|
|
2002
|
-
default:
|
|
2003
|
-
workUnitStore;
|
|
2004
|
-
}
|
|
2005
|
-
}
|
|
2006
|
-
}
|
|
2007
|
-
function useDynamicSearchParams(expression) {
|
|
2008
|
-
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
2009
|
-
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
2010
|
-
if (!workStore) {
|
|
2011
|
-
return;
|
|
2012
|
-
}
|
|
2013
|
-
if (!workUnitStore) {
|
|
2014
|
-
(0, _workunitasyncstorageexternal.throwForMissingRequestStore)(expression);
|
|
2015
|
-
}
|
|
2016
|
-
switch (workUnitStore.type) {
|
|
2017
|
-
case "prerender-client": {
|
|
2018
|
-
_react.default.use((0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, workStore.route, expression));
|
|
2019
|
-
break;
|
|
2020
|
-
}
|
|
2021
|
-
case "prerender-legacy":
|
|
2022
|
-
case "prerender-ppr": {
|
|
2023
|
-
if (workStore.forceStatic) {
|
|
2024
|
-
return;
|
|
2025
|
-
}
|
|
2026
|
-
throw Object.defineProperty(new _bailouttocsr.BailoutToCSRError(expression), "__NEXT_ERROR_CODE", {
|
|
2027
|
-
value: "E394",
|
|
2028
|
-
enumerable: false,
|
|
2029
|
-
configurable: true
|
|
2030
|
-
});
|
|
2031
|
-
}
|
|
2032
|
-
case "prerender":
|
|
2033
|
-
case "prerender-runtime":
|
|
2034
|
-
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", {
|
|
2035
|
-
value: "E795",
|
|
2036
|
-
enumerable: false,
|
|
2037
|
-
configurable: true
|
|
2038
|
-
});
|
|
2039
|
-
case "cache":
|
|
2040
|
-
case "unstable-cache":
|
|
2041
|
-
case "private-cache":
|
|
2042
|
-
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", {
|
|
2043
|
-
value: "E745",
|
|
2044
|
-
enumerable: false,
|
|
2045
|
-
configurable: true
|
|
2046
|
-
});
|
|
2047
|
-
case "request":
|
|
2048
|
-
return;
|
|
2049
|
-
default:
|
|
2050
|
-
workUnitStore;
|
|
2051
|
-
}
|
|
2052
|
-
}
|
|
2053
|
-
var hasSuspenseRegex = /\n\s+at Suspense \(<anonymous>\)/;
|
|
2054
|
-
var bodyAndImplicitTags = "body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6";
|
|
2055
|
-
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]*\\)`);
|
|
2056
|
-
var hasMetadataRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.METADATA_BOUNDARY_NAME}[\\n\\s]`);
|
|
2057
|
-
var hasViewportRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`);
|
|
2058
|
-
var hasOutletRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
2059
|
-
function trackAllowedDynamicAccess(workStore, componentStack, dynamicValidation, clientDynamic) {
|
|
2060
|
-
if (hasOutletRegex.test(componentStack)) {
|
|
2061
|
-
return;
|
|
2062
|
-
} else if (hasMetadataRegex.test(componentStack)) {
|
|
2063
|
-
dynamicValidation.hasDynamicMetadata = true;
|
|
2064
|
-
return;
|
|
2065
|
-
} else if (hasViewportRegex.test(componentStack)) {
|
|
2066
|
-
dynamicValidation.hasDynamicViewport = true;
|
|
2067
|
-
return;
|
|
2068
|
-
} else if (hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)) {
|
|
2069
|
-
dynamicValidation.hasAllowedDynamic = true;
|
|
2070
|
-
dynamicValidation.hasSuspenseAboveBody = true;
|
|
2071
|
-
return;
|
|
2072
|
-
} else if (hasSuspenseRegex.test(componentStack)) {
|
|
2073
|
-
dynamicValidation.hasAllowedDynamic = true;
|
|
2074
|
-
return;
|
|
2075
|
-
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
|
2076
|
-
dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);
|
|
2077
|
-
return;
|
|
2078
|
-
} else {
|
|
2079
|
-
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`;
|
|
2080
|
-
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
2081
|
-
dynamicValidation.dynamicErrors.push(error);
|
|
2082
|
-
return;
|
|
2083
|
-
}
|
|
2084
|
-
}
|
|
2085
|
-
function trackDynamicHoleInRuntimeShell(workStore, componentStack, dynamicValidation, clientDynamic) {
|
|
2086
|
-
if (hasOutletRegex.test(componentStack)) {
|
|
2087
|
-
return;
|
|
2088
|
-
} else if (hasMetadataRegex.test(componentStack)) {
|
|
2089
|
-
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`;
|
|
2090
|
-
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
2091
|
-
dynamicValidation.dynamicMetadata = error;
|
|
2092
|
-
return;
|
|
2093
|
-
} else if (hasViewportRegex.test(componentStack)) {
|
|
2094
|
-
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`;
|
|
2095
|
-
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
2096
|
-
dynamicValidation.dynamicErrors.push(error);
|
|
2097
|
-
return;
|
|
2098
|
-
} else if (hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)) {
|
|
2099
|
-
dynamicValidation.hasAllowedDynamic = true;
|
|
2100
|
-
dynamicValidation.hasSuspenseAboveBody = true;
|
|
2101
|
-
return;
|
|
2102
|
-
} else if (hasSuspenseRegex.test(componentStack)) {
|
|
2103
|
-
dynamicValidation.hasAllowedDynamic = true;
|
|
2104
|
-
return;
|
|
2105
|
-
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
|
2106
|
-
dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);
|
|
2107
|
-
return;
|
|
2108
|
-
} else {
|
|
2109
|
-
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`;
|
|
2110
|
-
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
2111
|
-
dynamicValidation.dynamicErrors.push(error);
|
|
2112
|
-
return;
|
|
2113
|
-
}
|
|
2114
|
-
}
|
|
2115
|
-
function trackDynamicHoleInStaticShell(workStore, componentStack, dynamicValidation, clientDynamic) {
|
|
2116
|
-
if (hasOutletRegex.test(componentStack)) {
|
|
2117
|
-
return;
|
|
2118
|
-
} else if (hasMetadataRegex.test(componentStack)) {
|
|
2119
|
-
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`;
|
|
2120
|
-
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
2121
|
-
dynamicValidation.dynamicMetadata = error;
|
|
2122
|
-
return;
|
|
2123
|
-
} else if (hasViewportRegex.test(componentStack)) {
|
|
2124
|
-
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`;
|
|
2125
|
-
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
2126
|
-
dynamicValidation.dynamicErrors.push(error);
|
|
2127
|
-
return;
|
|
2128
|
-
} else if (hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)) {
|
|
2129
|
-
dynamicValidation.hasAllowedDynamic = true;
|
|
2130
|
-
dynamicValidation.hasSuspenseAboveBody = true;
|
|
2131
|
-
return;
|
|
2132
|
-
} else if (hasSuspenseRegex.test(componentStack)) {
|
|
2133
|
-
dynamicValidation.hasAllowedDynamic = true;
|
|
2134
|
-
return;
|
|
2135
|
-
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
|
2136
|
-
dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);
|
|
2137
|
-
return;
|
|
2138
|
-
} else {
|
|
2139
|
-
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`;
|
|
2140
|
-
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
2141
|
-
dynamicValidation.dynamicErrors.push(error);
|
|
2142
|
-
return;
|
|
2143
|
-
}
|
|
2144
|
-
}
|
|
2145
|
-
function createErrorWithComponentOrOwnerStack(message, componentStack) {
|
|
2146
|
-
const ownerStack = process.env.NODE_ENV !== "production" && _react.default.captureOwnerStack ? _react.default.captureOwnerStack() : null;
|
|
2147
|
-
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
2148
|
-
value: "E394",
|
|
2149
|
-
enumerable: false,
|
|
2150
|
-
configurable: true
|
|
2151
|
-
});
|
|
2152
|
-
error.stack = error.name + ": " + message + (ownerStack || componentStack);
|
|
2153
|
-
return error;
|
|
2154
|
-
}
|
|
2155
|
-
var PreludeState = /* @__PURE__ */ (function(PreludeState2) {
|
|
2156
|
-
PreludeState2[PreludeState2["Full"] = 0] = "Full";
|
|
2157
|
-
PreludeState2[PreludeState2["Empty"] = 1] = "Empty";
|
|
2158
|
-
PreludeState2[PreludeState2["Errored"] = 2] = "Errored";
|
|
2159
|
-
return PreludeState2;
|
|
2160
|
-
})({});
|
|
2161
|
-
function logDisallowedDynamicError(workStore, error) {
|
|
2162
|
-
console.error(error);
|
|
2163
|
-
if (!workStore.dev) {
|
|
2164
|
-
if (workStore.hasReadableErrorStacks) {
|
|
2165
|
-
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.`);
|
|
2166
|
-
} else {
|
|
2167
|
-
console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
|
|
2168
|
-
- Start the app in development mode by running \`next dev\`, then open "${workStore.route}" in your browser to investigate the error.
|
|
2169
|
-
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`);
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
|
-
}
|
|
2173
|
-
function throwIfDisallowedDynamic(workStore, prelude, dynamicValidation, serverDynamic) {
|
|
2174
|
-
if (serverDynamic.syncDynamicErrorWithStack) {
|
|
2175
|
-
logDisallowedDynamicError(workStore, serverDynamic.syncDynamicErrorWithStack);
|
|
2176
|
-
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2177
|
-
}
|
|
2178
|
-
if (prelude !== 0) {
|
|
2179
|
-
if (dynamicValidation.hasSuspenseAboveBody) {
|
|
2180
|
-
return;
|
|
2181
|
-
}
|
|
2182
|
-
const dynamicErrors = dynamicValidation.dynamicErrors;
|
|
2183
|
-
if (dynamicErrors.length > 0) {
|
|
2184
|
-
for (let i = 0; i < dynamicErrors.length; i++) {
|
|
2185
|
-
logDisallowedDynamicError(workStore, dynamicErrors[i]);
|
|
2186
|
-
}
|
|
2187
|
-
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2188
|
-
}
|
|
2189
|
-
if (dynamicValidation.hasDynamicViewport) {
|
|
2190
|
-
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`);
|
|
2191
|
-
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2192
|
-
}
|
|
2193
|
-
if (prelude === 1) {
|
|
2194
|
-
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.`);
|
|
2195
|
-
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2196
|
-
}
|
|
2197
|
-
} else {
|
|
2198
|
-
if (dynamicValidation.hasAllowedDynamic === false && dynamicValidation.hasDynamicMetadata) {
|
|
2199
|
-
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`);
|
|
2200
|
-
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2201
|
-
}
|
|
2202
|
-
}
|
|
2203
|
-
}
|
|
2204
|
-
function getStaticShellDisallowedDynamicReasons(workStore, prelude, dynamicValidation) {
|
|
2205
|
-
if (dynamicValidation.hasSuspenseAboveBody) {
|
|
2206
|
-
return [];
|
|
2207
|
-
}
|
|
2208
|
-
if (prelude !== 0) {
|
|
2209
|
-
const dynamicErrors = dynamicValidation.dynamicErrors;
|
|
2210
|
-
if (dynamicErrors.length > 0) {
|
|
2211
|
-
return dynamicErrors;
|
|
2212
|
-
}
|
|
2213
|
-
if (prelude === 1) {
|
|
2214
|
-
return [
|
|
2215
|
-
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", {
|
|
2216
|
-
value: "E936",
|
|
2217
|
-
enumerable: false,
|
|
2218
|
-
configurable: true
|
|
2219
|
-
})
|
|
2220
|
-
];
|
|
2221
|
-
}
|
|
2222
|
-
} else {
|
|
2223
|
-
if (dynamicValidation.hasAllowedDynamic === false && dynamicValidation.dynamicErrors.length === 0 && dynamicValidation.dynamicMetadata) {
|
|
2224
|
-
return [
|
|
2225
|
-
dynamicValidation.dynamicMetadata
|
|
2226
|
-
];
|
|
2227
|
-
}
|
|
2228
|
-
}
|
|
2229
|
-
return [];
|
|
2230
|
-
}
|
|
2231
|
-
function delayUntilRuntimeStage(prerenderStore, result) {
|
|
2232
|
-
if (prerenderStore.runtimeStagePromise) {
|
|
2233
|
-
return prerenderStore.runtimeStagePromise.then(() => result);
|
|
2234
|
-
}
|
|
2235
|
-
return result;
|
|
2236
|
-
}
|
|
2237
|
-
}
|
|
2238
|
-
});
|
|
2239
|
-
|
|
2240
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/unstable-rethrow.server.js
|
|
2241
|
-
var require_unstable_rethrow_server = __commonJS({
|
|
2242
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/unstable-rethrow.server.js"(exports2, module2) {
|
|
2243
|
-
"use strict";
|
|
2244
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2245
|
-
value: true
|
|
2246
|
-
});
|
|
2247
|
-
Object.defineProperty(exports2, "unstable_rethrow", {
|
|
2248
|
-
enumerable: true,
|
|
2249
|
-
get: function() {
|
|
2250
|
-
return unstable_rethrow;
|
|
2251
|
-
}
|
|
2252
|
-
});
|
|
2253
|
-
var _dynamicrenderingutils = require_dynamic_rendering_utils();
|
|
2254
|
-
var _ispostpone = require_is_postpone();
|
|
2255
|
-
var _bailouttocsr = require_bailout_to_csr();
|
|
2256
|
-
var _isnextroutererror = require_is_next_router_error();
|
|
2257
|
-
var _dynamicrendering = require_dynamic_rendering();
|
|
2258
|
-
var _hooksservercontext = require_hooks_server_context();
|
|
2259
|
-
function unstable_rethrow(error) {
|
|
2260
|
-
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)) {
|
|
2261
|
-
throw error;
|
|
2262
|
-
}
|
|
2263
|
-
if (error instanceof Error && "cause" in error) {
|
|
2264
|
-
unstable_rethrow(error.cause);
|
|
2265
|
-
}
|
|
2266
|
-
}
|
|
2267
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2268
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2269
|
-
Object.assign(exports2.default, exports2);
|
|
2270
|
-
module2.exports = exports2.default;
|
|
2271
|
-
}
|
|
2272
|
-
}
|
|
2273
|
-
});
|
|
2274
|
-
|
|
2275
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/unstable-rethrow.browser.js
|
|
2276
|
-
var require_unstable_rethrow_browser = __commonJS({
|
|
2277
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/unstable-rethrow.browser.js"(exports2, module2) {
|
|
2278
|
-
"use strict";
|
|
2279
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2280
|
-
value: true
|
|
2281
|
-
});
|
|
2282
|
-
Object.defineProperty(exports2, "unstable_rethrow", {
|
|
2283
|
-
enumerable: true,
|
|
2284
|
-
get: function() {
|
|
2285
|
-
return unstable_rethrow;
|
|
2286
|
-
}
|
|
2287
|
-
});
|
|
2288
|
-
var _bailouttocsr = require_bailout_to_csr();
|
|
2289
|
-
var _isnextroutererror = require_is_next_router_error();
|
|
2290
|
-
function unstable_rethrow(error) {
|
|
2291
|
-
if ((0, _isnextroutererror.isNextRouterError)(error) || (0, _bailouttocsr.isBailoutToCSRError)(error)) {
|
|
2292
|
-
throw error;
|
|
2293
|
-
}
|
|
2294
|
-
if (error instanceof Error && "cause" in error) {
|
|
2295
|
-
unstable_rethrow(error.cause);
|
|
2296
|
-
}
|
|
2297
|
-
}
|
|
2298
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2299
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2300
|
-
Object.assign(exports2.default, exports2);
|
|
2301
|
-
module2.exports = exports2.default;
|
|
2302
|
-
}
|
|
2303
|
-
}
|
|
2304
|
-
});
|
|
2305
|
-
|
|
2306
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/unstable-rethrow.js
|
|
2307
|
-
var require_unstable_rethrow = __commonJS({
|
|
2308
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/unstable-rethrow.js"(exports2, module2) {
|
|
2309
|
-
"use strict";
|
|
2310
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2311
|
-
value: true
|
|
2312
|
-
});
|
|
2313
|
-
Object.defineProperty(exports2, "unstable_rethrow", {
|
|
2314
|
-
enumerable: true,
|
|
2315
|
-
get: function() {
|
|
2316
|
-
return unstable_rethrow;
|
|
2317
|
-
}
|
|
2318
|
-
});
|
|
2319
|
-
var unstable_rethrow = typeof window === "undefined" ? require_unstable_rethrow_server().unstable_rethrow : require_unstable_rethrow_browser().unstable_rethrow;
|
|
2320
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2321
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2322
|
-
Object.assign(exports2.default, exports2);
|
|
2323
|
-
module2.exports = exports2.default;
|
|
2324
|
-
}
|
|
2325
|
-
}
|
|
2326
|
-
});
|
|
2327
|
-
|
|
2328
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/navigation.react-server.js
|
|
2329
|
-
var require_navigation_react_server = __commonJS({
|
|
2330
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/navigation.react-server.js"(exports2, module2) {
|
|
2331
|
-
"use strict";
|
|
2332
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2333
|
-
value: true
|
|
2334
|
-
});
|
|
2335
|
-
function _export(target, all) {
|
|
2336
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
2337
|
-
enumerable: true,
|
|
2338
|
-
get: all[name]
|
|
2339
|
-
});
|
|
2340
|
-
}
|
|
2341
|
-
_export(exports2, {
|
|
2342
|
-
ReadonlyURLSearchParams: function() {
|
|
2343
|
-
return _readonlyurlsearchparams.ReadonlyURLSearchParams;
|
|
2344
|
-
},
|
|
2345
|
-
RedirectType: function() {
|
|
2346
|
-
return _redirecterror.RedirectType;
|
|
2347
|
-
},
|
|
2348
|
-
forbidden: function() {
|
|
2349
|
-
return _forbidden.forbidden;
|
|
2350
|
-
},
|
|
2351
|
-
notFound: function() {
|
|
2352
|
-
return _notfound.notFound;
|
|
2353
|
-
},
|
|
2354
|
-
permanentRedirect: function() {
|
|
2355
|
-
return _redirect.permanentRedirect;
|
|
2356
|
-
},
|
|
2357
|
-
redirect: function() {
|
|
2358
|
-
return _redirect.redirect;
|
|
2359
|
-
},
|
|
2360
|
-
unauthorized: function() {
|
|
2361
|
-
return _unauthorized.unauthorized;
|
|
2362
|
-
},
|
|
2363
|
-
unstable_isUnrecognizedActionError: function() {
|
|
2364
|
-
return unstable_isUnrecognizedActionError;
|
|
2365
|
-
},
|
|
2366
|
-
unstable_rethrow: function() {
|
|
2367
|
-
return _unstablerethrow.unstable_rethrow;
|
|
2368
|
-
}
|
|
2369
|
-
});
|
|
2370
|
-
var _readonlyurlsearchparams = require_readonly_url_search_params();
|
|
2371
|
-
var _redirect = require_redirect();
|
|
2372
|
-
var _redirecterror = require_redirect_error();
|
|
2373
|
-
var _notfound = require_not_found();
|
|
2374
|
-
var _forbidden = require_forbidden();
|
|
2375
|
-
var _unauthorized = require_unauthorized();
|
|
2376
|
-
var _unstablerethrow = require_unstable_rethrow();
|
|
2377
|
-
function unstable_isUnrecognizedActionError() {
|
|
2378
|
-
throw Object.defineProperty(new Error("`unstable_isUnrecognizedActionError` can only be used on the client."), "__NEXT_ERROR_CODE", {
|
|
2379
|
-
value: "E776",
|
|
2380
|
-
enumerable: false,
|
|
2381
|
-
configurable: true
|
|
2382
|
-
});
|
|
2383
|
-
}
|
|
2384
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2385
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2386
|
-
Object.assign(exports2.default, exports2);
|
|
2387
|
-
module2.exports = exports2.default;
|
|
2388
|
-
}
|
|
2389
|
-
}
|
|
2390
|
-
});
|
|
2391
|
-
|
|
2392
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/navigation.js
|
|
2393
|
-
var require_navigation = __commonJS({
|
|
2394
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/navigation.js"(exports2, module2) {
|
|
2395
|
-
"use strict";
|
|
2396
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2397
|
-
value: true
|
|
2398
|
-
});
|
|
2399
|
-
function _export(target, all) {
|
|
2400
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
2401
|
-
enumerable: true,
|
|
2402
|
-
get: all[name]
|
|
2403
|
-
});
|
|
2404
|
-
}
|
|
2405
|
-
_export(exports2, {
|
|
2406
|
-
// We need the same class that was used to instantiate the context value
|
|
2407
|
-
// Otherwise instanceof checks will fail in usercode
|
|
2408
|
-
ReadonlyURLSearchParams: function() {
|
|
2409
|
-
return _hooksclientcontextsharedruntime.ReadonlyURLSearchParams;
|
|
2410
|
-
},
|
|
2411
|
-
RedirectType: function() {
|
|
2412
|
-
return _navigationreactserver.RedirectType;
|
|
2413
|
-
},
|
|
2414
|
-
ServerInsertedHTMLContext: function() {
|
|
2415
|
-
return _serverinsertedhtmlsharedruntime.ServerInsertedHTMLContext;
|
|
2416
|
-
},
|
|
2417
|
-
forbidden: function() {
|
|
2418
|
-
return _navigationreactserver.forbidden;
|
|
2419
|
-
},
|
|
2420
|
-
notFound: function() {
|
|
2421
|
-
return _navigationreactserver.notFound;
|
|
2422
|
-
},
|
|
2423
|
-
permanentRedirect: function() {
|
|
2424
|
-
return _navigationreactserver.permanentRedirect;
|
|
2425
|
-
},
|
|
2426
|
-
redirect: function() {
|
|
2427
|
-
return _navigationreactserver.redirect;
|
|
2428
|
-
},
|
|
2429
|
-
unauthorized: function() {
|
|
2430
|
-
return _navigationreactserver.unauthorized;
|
|
2431
|
-
},
|
|
2432
|
-
unstable_isUnrecognizedActionError: function() {
|
|
2433
|
-
return _unrecognizedactionerror.unstable_isUnrecognizedActionError;
|
|
2434
|
-
},
|
|
2435
|
-
unstable_rethrow: function() {
|
|
2436
|
-
return _navigationreactserver.unstable_rethrow;
|
|
2437
|
-
},
|
|
2438
|
-
useParams: function() {
|
|
2439
|
-
return useParams;
|
|
2440
|
-
},
|
|
2441
|
-
usePathname: function() {
|
|
2442
|
-
return usePathname2;
|
|
2443
|
-
},
|
|
2444
|
-
useRouter: function() {
|
|
2445
|
-
return useRouter;
|
|
2446
|
-
},
|
|
2447
|
-
useSearchParams: function() {
|
|
2448
|
-
return useSearchParams;
|
|
2449
|
-
},
|
|
2450
|
-
useSelectedLayoutSegment: function() {
|
|
2451
|
-
return useSelectedLayoutSegment;
|
|
2452
|
-
},
|
|
2453
|
-
useSelectedLayoutSegments: function() {
|
|
2454
|
-
return useSelectedLayoutSegments;
|
|
2455
|
-
},
|
|
2456
|
-
useServerInsertedHTML: function() {
|
|
2457
|
-
return _serverinsertedhtmlsharedruntime.useServerInsertedHTML;
|
|
2458
|
-
}
|
|
2459
|
-
});
|
|
2460
|
-
var _interop_require_wildcard = require_interop_require_wildcard();
|
|
2461
|
-
var _react = /* @__PURE__ */ _interop_require_wildcard._(require("react"));
|
|
2462
|
-
var _approutercontextsharedruntime = require_app_router_context_shared_runtime();
|
|
2463
|
-
var _hooksclientcontextsharedruntime = require_hooks_client_context_shared_runtime();
|
|
2464
|
-
var _segment = require_segment();
|
|
2465
|
-
var _serverinsertedhtmlsharedruntime = require_server_inserted_html_shared_runtime();
|
|
2466
|
-
var _unrecognizedactionerror = require_unrecognized_action_error();
|
|
2467
|
-
var _navigationreactserver = require_navigation_react_server();
|
|
2468
|
-
var useDynamicRouteParams = typeof window === "undefined" ? require_dynamic_rendering().useDynamicRouteParams : void 0;
|
|
2469
|
-
var useDynamicSearchParams = typeof window === "undefined" ? require_dynamic_rendering().useDynamicSearchParams : void 0;
|
|
2470
|
-
function useSearchParams() {
|
|
2471
|
-
useDynamicSearchParams?.("useSearchParams()");
|
|
2472
|
-
const searchParams = (0, _react.useContext)(_hooksclientcontextsharedruntime.SearchParamsContext);
|
|
2473
|
-
const readonlySearchParams = (0, _react.useMemo)(() => {
|
|
2474
|
-
if (!searchParams) {
|
|
2475
|
-
return null;
|
|
2476
|
-
}
|
|
2477
|
-
return new _hooksclientcontextsharedruntime.ReadonlyURLSearchParams(searchParams);
|
|
2478
|
-
}, [
|
|
2479
|
-
searchParams
|
|
2480
|
-
]);
|
|
2481
|
-
if (process.env.NODE_ENV !== "production" && "use" in _react.default) {
|
|
2482
|
-
const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
|
2483
|
-
if (navigationPromises) {
|
|
2484
|
-
return (0, _react.use)(navigationPromises.searchParams);
|
|
2485
|
-
}
|
|
2486
|
-
}
|
|
2487
|
-
return readonlySearchParams;
|
|
2488
|
-
}
|
|
2489
|
-
function usePathname2() {
|
|
2490
|
-
useDynamicRouteParams?.("usePathname()");
|
|
2491
|
-
const pathname = (0, _react.useContext)(_hooksclientcontextsharedruntime.PathnameContext);
|
|
2492
|
-
if (process.env.NODE_ENV !== "production" && "use" in _react.default) {
|
|
2493
|
-
const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
|
2494
|
-
if (navigationPromises) {
|
|
2495
|
-
return (0, _react.use)(navigationPromises.pathname);
|
|
2496
|
-
}
|
|
2497
|
-
}
|
|
2498
|
-
return pathname;
|
|
2499
|
-
}
|
|
2500
|
-
function useRouter() {
|
|
2501
|
-
const router = (0, _react.useContext)(_approutercontextsharedruntime.AppRouterContext);
|
|
2502
|
-
if (router === null) {
|
|
2503
|
-
throw Object.defineProperty(new Error("invariant expected app router to be mounted"), "__NEXT_ERROR_CODE", {
|
|
2504
|
-
value: "E238",
|
|
2505
|
-
enumerable: false,
|
|
2506
|
-
configurable: true
|
|
2507
|
-
});
|
|
2508
|
-
}
|
|
2509
|
-
return router;
|
|
2510
|
-
}
|
|
2511
|
-
function useParams() {
|
|
2512
|
-
useDynamicRouteParams?.("useParams()");
|
|
2513
|
-
const params = (0, _react.useContext)(_hooksclientcontextsharedruntime.PathParamsContext);
|
|
2514
|
-
if (process.env.NODE_ENV !== "production" && "use" in _react.default) {
|
|
2515
|
-
const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
|
2516
|
-
if (navigationPromises) {
|
|
2517
|
-
return (0, _react.use)(navigationPromises.params);
|
|
2518
|
-
}
|
|
2519
|
-
}
|
|
2520
|
-
return params;
|
|
2521
|
-
}
|
|
2522
|
-
function useSelectedLayoutSegments(parallelRouteKey = "children") {
|
|
2523
|
-
useDynamicRouteParams?.("useSelectedLayoutSegments()");
|
|
2524
|
-
const context = (0, _react.useContext)(_approutercontextsharedruntime.LayoutRouterContext);
|
|
2525
|
-
if (!context) return null;
|
|
2526
|
-
if (process.env.NODE_ENV !== "production" && "use" in _react.default) {
|
|
2527
|
-
const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
|
2528
|
-
if (navigationPromises) {
|
|
2529
|
-
const promise = navigationPromises.selectedLayoutSegmentsPromises?.get(parallelRouteKey);
|
|
2530
|
-
if (promise) {
|
|
2531
|
-
return (0, _react.use)(promise);
|
|
2532
|
-
}
|
|
2533
|
-
}
|
|
2534
|
-
}
|
|
2535
|
-
return (0, _segment.getSelectedLayoutSegmentPath)(context.parentTree, parallelRouteKey);
|
|
2536
|
-
}
|
|
2537
|
-
function useSelectedLayoutSegment(parallelRouteKey = "children") {
|
|
2538
|
-
useDynamicRouteParams?.("useSelectedLayoutSegment()");
|
|
2539
|
-
const navigationPromises = (0, _react.useContext)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
|
2540
|
-
const selectedLayoutSegments = useSelectedLayoutSegments(parallelRouteKey);
|
|
2541
|
-
if (process.env.NODE_ENV !== "production" && navigationPromises && "use" in _react.default) {
|
|
2542
|
-
const promise = navigationPromises.selectedLayoutSegmentPromises?.get(parallelRouteKey);
|
|
2543
|
-
if (promise) {
|
|
2544
|
-
return (0, _react.use)(promise);
|
|
2545
|
-
}
|
|
2546
|
-
}
|
|
2547
|
-
return (0, _segment.computeSelectedLayoutSegment)(selectedLayoutSegments, parallelRouteKey);
|
|
2548
|
-
}
|
|
2549
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2550
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2551
|
-
Object.assign(exports2.default, exports2);
|
|
2552
|
-
module2.exports = exports2.default;
|
|
2553
|
-
}
|
|
2554
|
-
}
|
|
2555
|
-
});
|
|
2556
|
-
|
|
2557
|
-
// ../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/navigation.js
|
|
2558
|
-
var require_navigation2 = __commonJS({
|
|
2559
|
-
"../../node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/navigation.js"(exports2, module2) {
|
|
2560
|
-
"use strict";
|
|
2561
|
-
module2.exports = require_navigation();
|
|
2562
|
-
}
|
|
2563
|
-
});
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2564
29
|
|
|
2565
30
|
// src/index.ts
|
|
2566
31
|
var index_exports = {};
|
|
2567
32
|
__export(index_exports, {
|
|
2568
33
|
FeedbackLink: () => FeedbackLink,
|
|
2569
|
-
MenuHeader: () => MenuHeader,
|
|
2570
34
|
SideMenu: () => SideMenu,
|
|
35
|
+
SideMenuDivider: () => SideMenuDivider,
|
|
36
|
+
SideMenuFooter: () => SideMenuFooter,
|
|
37
|
+
SideMenuGroup: () => SideMenuGroup,
|
|
38
|
+
SideMenuHeader: () => SideMenuHeader,
|
|
39
|
+
SideMenuItem: () => SideMenuItem,
|
|
40
|
+
SideMenuSection: () => SideMenuSection,
|
|
2571
41
|
StyledLink: () => StyledLink,
|
|
2572
42
|
TopBar: () => TopBar,
|
|
2573
43
|
UserMenu: () => UserMenu,
|
|
2574
|
-
|
|
44
|
+
renderMenuItems: () => renderMenuItems
|
|
2575
45
|
});
|
|
2576
46
|
module.exports = __toCommonJS(index_exports);
|
|
2577
47
|
|
|
@@ -2673,180 +143,172 @@ function FeedbackLink({ link, subject, body }) {
|
|
|
2673
143
|
);
|
|
2674
144
|
}
|
|
2675
145
|
|
|
2676
|
-
// src/SideMenu/components/MenuHeader.tsx
|
|
2677
|
-
var import_eds_tokens2 = require("@equinor/eds-tokens");
|
|
2678
|
-
var import_styled_components2 = require("styled-components");
|
|
2679
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
2680
|
-
function MenuHeader({ appName, icon }) {
|
|
2681
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(LogoWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(LogoStyle, { children: [
|
|
2682
|
-
icon,
|
|
2683
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: appName })
|
|
2684
|
-
] }) });
|
|
2685
|
-
}
|
|
2686
|
-
var LogoWrapper = import_styled_components2.styled.div`
|
|
2687
|
-
padding: 0 ${import_eds_tokens2.tokens.spacings.comfortable.medium} ${import_eds_tokens2.tokens.spacings.comfortable.small}
|
|
2688
|
-
${import_eds_tokens2.tokens.spacings.comfortable.medium};
|
|
2689
|
-
text-align: center;
|
|
2690
|
-
font-weight: 500;
|
|
2691
|
-
`;
|
|
2692
|
-
var LogoStyle = import_styled_components2.styled.div`
|
|
2693
|
-
align-items: center;
|
|
2694
|
-
display: flex;
|
|
2695
|
-
flex-direction: column;
|
|
2696
|
-
gap: ${import_eds_tokens2.tokens.spacings.comfortable.small};
|
|
2697
|
-
justify-content: center;
|
|
2698
|
-
text-align: center;
|
|
2699
|
-
`;
|
|
2700
|
-
|
|
2701
146
|
// src/SideMenu/SideMenu.tsx
|
|
2702
|
-
var
|
|
147
|
+
var import_eds_core_react6 = require("@equinor/eds-core-react");
|
|
2703
148
|
var import_eds_icons4 = require("@equinor/eds-icons");
|
|
2704
|
-
var import_eds_tokens5 = require("@equinor/eds-tokens");
|
|
2705
|
-
var import_react = require("react");
|
|
2706
|
-
var import_styled_components5 = __toESM(require("styled-components"));
|
|
2707
|
-
|
|
2708
|
-
// src/SideMenu/components/MenuList.tsx
|
|
2709
|
-
var import_eds_core_react4 = require("@equinor/eds-core-react");
|
|
2710
|
-
var import_eds_tokens4 = require("@equinor/eds-tokens");
|
|
2711
|
-
var import_styled_components4 = require("styled-components");
|
|
2712
149
|
|
|
2713
|
-
// src/SideMenu/
|
|
2714
|
-
var
|
|
2715
|
-
var
|
|
2716
|
-
|
|
2717
|
-
var import_styled_components3 = require("styled-components");
|
|
2718
|
-
|
|
2719
|
-
// src/SideMenu/useAppUrlByNameAndEnvironment.ts
|
|
2720
|
-
function useAppUrlByNameAndEnvironment(appName, currentEnvironment, appUrls) {
|
|
2721
|
-
if (!currentEnvironment || !appName) return "";
|
|
2722
|
-
if (currentEnvironment === "local") {
|
|
2723
|
-
currentEnvironment = "dev";
|
|
150
|
+
// src/SideMenu/context.ts
|
|
151
|
+
var import_react = require("react");
|
|
152
|
+
var SideMenuContext = (0, import_react.createContext)({
|
|
153
|
+
onOverflowCheck: () => {
|
|
2724
154
|
}
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
return
|
|
155
|
+
});
|
|
156
|
+
function useSideMenuContext() {
|
|
157
|
+
return (0, import_react.useContext)(SideMenuContext);
|
|
2728
158
|
}
|
|
2729
159
|
|
|
2730
|
-
// src/SideMenu/
|
|
2731
|
-
var
|
|
2732
|
-
var
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
}
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
const urlByNameAndEnvironment = useAppUrlByNameAndEnvironment(item.appName, environment, appUrls) ?? "";
|
|
2744
|
-
const url = item?.url ?? urlByNameAndEnvironment;
|
|
2745
|
-
const nextPathName = usePathname?.();
|
|
2746
|
-
let isActive = !item.external && nextPathName == item.url;
|
|
2747
|
-
const linkContent = /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { children: [
|
|
2748
|
-
item.name,
|
|
2749
|
-
item.external && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_eds_core_react3.Icon, { data: import_eds_icons3.external_link, size: 16 })
|
|
2750
|
-
] });
|
|
2751
|
-
if (item.external) {
|
|
2752
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(StyledLink2, { href: url, target: "_blank", rel: "noopener noreferrer", children: linkContent });
|
|
2753
|
-
}
|
|
2754
|
-
if (LinkComponent) {
|
|
2755
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2756
|
-
StyledLink2,
|
|
2757
|
-
{
|
|
2758
|
-
as: LinkComponent,
|
|
2759
|
-
to: url,
|
|
2760
|
-
href: url,
|
|
2761
|
-
$active: isActive,
|
|
2762
|
-
children: linkContent
|
|
2763
|
-
}
|
|
2764
|
-
);
|
|
2765
|
-
}
|
|
2766
|
-
isActive = typeof window !== "undefined" ? window.location.pathname === item.url : false;
|
|
2767
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(StyledLink2, { href: url, $active: isActive, children: linkContent });
|
|
2768
|
-
}
|
|
2769
|
-
var StyledLink2 = import_styled_components3.styled.a`
|
|
2770
|
-
text-decoration: none;
|
|
2771
|
-
padding: 12px 16px 12px 19px;
|
|
2772
|
-
display: inline-block;
|
|
2773
|
-
width: 100%;
|
|
2774
|
-
color: ${import_eds_tokens3.tokens.colors.interactive.secondary__resting.rgba};
|
|
2775
|
-
background-color: ${({ $active }) => $active ? import_eds_tokens3.tokens.colors.interactive.primary__selected_highlight.rgba : "transparent"};
|
|
2776
|
-
font-weight: ${({ $active }) => $active ? 700 : 400};
|
|
2777
|
-
font-size: 0.875rem;
|
|
160
|
+
// src/SideMenu/SideMenu.styles.ts
|
|
161
|
+
var import_eds_tokens2 = require("@equinor/eds-tokens");
|
|
162
|
+
var import_styled_components2 = __toESM(require("styled-components"));
|
|
163
|
+
var Sidebar = import_styled_components2.default.div`
|
|
164
|
+
width: ${({ $isOpen, $width }) => $isOpen ? $width : "0px"};
|
|
165
|
+
opacity: ${({ $isOpen }) => $isOpen ? 1 : 0};
|
|
166
|
+
transition:
|
|
167
|
+
width 0.5s,
|
|
168
|
+
opacity 0.5s;
|
|
169
|
+
height: 100%;
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
position: relative;
|
|
172
|
+
z-index: 0;
|
|
2778
173
|
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
174
|
+
ul {
|
|
175
|
+
list-style-type: none;
|
|
176
|
+
margin: 0;
|
|
177
|
+
padding: 0;
|
|
2782
178
|
}
|
|
2783
179
|
|
|
2784
|
-
|
|
2785
|
-
|
|
180
|
+
*,
|
|
181
|
+
*::before,
|
|
182
|
+
*::after {
|
|
183
|
+
box-sizing: border-box;
|
|
2786
184
|
}
|
|
185
|
+
`;
|
|
186
|
+
var InnerWrapper = import_styled_components2.default.div`
|
|
187
|
+
overflow: auto;
|
|
188
|
+
background: var(--cpl-ui-background-temporary-nav);
|
|
189
|
+
padding: 0;
|
|
190
|
+
height: 100%;
|
|
191
|
+
width: ${({ $width }) => $width};
|
|
192
|
+
position: fixed;
|
|
193
|
+
display: flex;
|
|
194
|
+
flex-direction: column;
|
|
195
|
+
justify-content: flex-start;
|
|
196
|
+
border-right: 1px solid var(--cpl-sidebar-border-color);
|
|
197
|
+
border-bottom: 1px solid var(--cpl-sidebar-border-color);
|
|
198
|
+
`;
|
|
199
|
+
var StickyCloseButton = import_styled_components2.default.div`
|
|
200
|
+
z-index: 10;
|
|
201
|
+
position: sticky;
|
|
202
|
+
top: 0;
|
|
203
|
+
display: flex;
|
|
204
|
+
justify-content: flex-end;
|
|
205
|
+
padding: ${import_eds_tokens2.tokens.spacings.comfortable.xx_small};
|
|
206
|
+
background-color: var(--cpl-ui-background-temporary-nav);
|
|
207
|
+
border-bottom: ${({ $showBorder }) => $showBorder ? "1px solid var(--cpl-divider-color)" : "0"};
|
|
208
|
+
`;
|
|
2787
209
|
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
210
|
+
// src/SideMenu/useSideMenuScroll.ts
|
|
211
|
+
var import_react2 = require("react");
|
|
212
|
+
function useSideMenuScroll({
|
|
213
|
+
isOpen,
|
|
214
|
+
scrollToActiveGroup
|
|
215
|
+
}) {
|
|
216
|
+
const containerRef = (0, import_react2.useRef)(null);
|
|
217
|
+
const stickyRef = (0, import_react2.useRef)(null);
|
|
218
|
+
const [hasOverflow, setHasOverflow] = (0, import_react2.useState)(false);
|
|
219
|
+
const [scrolledDown, setScrolledDown] = (0, import_react2.useState)(false);
|
|
220
|
+
const checkOverflow = (0, import_react2.useCallback)(() => {
|
|
221
|
+
requestAnimationFrame(() => {
|
|
222
|
+
const el = containerRef.current;
|
|
223
|
+
if (el) setHasOverflow(el.scrollHeight > el.clientHeight);
|
|
224
|
+
});
|
|
225
|
+
}, []);
|
|
226
|
+
const handleScroll = (0, import_react2.useCallback)(() => {
|
|
227
|
+
const el = containerRef.current;
|
|
228
|
+
if (el) setScrolledDown(el.scrollTop > 0);
|
|
229
|
+
}, []);
|
|
230
|
+
(0, import_react2.useEffect)(() => {
|
|
231
|
+
checkOverflow();
|
|
232
|
+
window.addEventListener("resize", checkOverflow);
|
|
233
|
+
return () => window.removeEventListener("resize", checkOverflow);
|
|
234
|
+
}, [checkOverflow]);
|
|
235
|
+
(0, import_react2.useEffect)(() => {
|
|
236
|
+
const el = containerRef.current;
|
|
237
|
+
if (!el) return;
|
|
238
|
+
el.addEventListener("scroll", handleScroll);
|
|
239
|
+
handleScroll();
|
|
240
|
+
return () => el.removeEventListener("scroll", handleScroll);
|
|
241
|
+
}, [handleScroll]);
|
|
242
|
+
(0, import_react2.useEffect)(() => {
|
|
243
|
+
if (!isOpen || !scrollToActiveGroup) return;
|
|
244
|
+
requestAnimationFrame(() => {
|
|
245
|
+
const el = containerRef.current;
|
|
246
|
+
if (!el) return;
|
|
247
|
+
const activeGroup = el.querySelector('[data-active-catalogue="true"]');
|
|
248
|
+
if (!activeGroup) return;
|
|
249
|
+
const stickyHeight = stickyRef.current?.offsetHeight ?? 0;
|
|
250
|
+
el.scrollTo({ top: activeGroup.offsetTop - stickyHeight, behavior: "smooth" });
|
|
251
|
+
});
|
|
252
|
+
}, [isOpen, scrollToActiveGroup]);
|
|
253
|
+
return { containerRef, stickyRef, hasOverflow, scrolledDown, checkOverflow };
|
|
254
|
+
}
|
|
2795
255
|
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
256
|
+
// src/SideMenu/components/SideMenuDivider.tsx
|
|
257
|
+
var import_eds_core_react3 = require("@equinor/eds-core-react");
|
|
258
|
+
var import_styled_components3 = __toESM(require("styled-components"));
|
|
259
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
260
|
+
function SideMenuDivider() {
|
|
261
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StyledDivider, {});
|
|
262
|
+
}
|
|
263
|
+
var StyledDivider = (0, import_styled_components3.default)(import_eds_core_react3.Divider)`
|
|
264
|
+
background-color: var(--cpl-divider-color);
|
|
265
|
+
margin-top: 0px;
|
|
266
|
+
margin-bottom: 0px;
|
|
267
|
+
min-height: 1px;
|
|
2799
268
|
`;
|
|
2800
269
|
|
|
2801
|
-
// src/SideMenu/components/
|
|
2802
|
-
var
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
appUrls,
|
|
2807
|
-
onToggleMenuGroup,
|
|
2808
|
-
linkComponent
|
|
2809
|
-
}) {
|
|
2810
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("ul", { children: items.map((menuItem) => {
|
|
2811
|
-
if (isMenuItemGroup(menuItem)) {
|
|
2812
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("li", { "data-active-catalogue": String(menuItem.isExpanded), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_eds_core_react4.Accordion, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(AccordionItem, { isExpanded: menuItem.isExpanded, children: [
|
|
2813
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_eds_core_react4.Accordion.Header, { onToggle: onToggleMenuGroup, children: menuItem.title }),
|
|
2814
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_eds_core_react4.Accordion.Panel, { "aria-label": `Links for ${menuItem.title}`, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("ul", { children: menuItem.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2815
|
-
MenuLink,
|
|
2816
|
-
{
|
|
2817
|
-
item,
|
|
2818
|
-
environment: currentEnvironment,
|
|
2819
|
-
appUrls,
|
|
2820
|
-
linkComponent
|
|
2821
|
-
}
|
|
2822
|
-
) }, menuItem.title + "-" + item.name)) }) })
|
|
2823
|
-
] }, menuItem.title) }, menuItem.title) }, menuItem.title);
|
|
2824
|
-
} else {
|
|
2825
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2826
|
-
MenuLink,
|
|
2827
|
-
{
|
|
2828
|
-
item: menuItem,
|
|
2829
|
-
environment: currentEnvironment,
|
|
2830
|
-
appUrls,
|
|
2831
|
-
linkComponent
|
|
2832
|
-
}
|
|
2833
|
-
) }, menuItem.name);
|
|
2834
|
-
}
|
|
2835
|
-
}) });
|
|
270
|
+
// src/SideMenu/components/SideMenuFooter.tsx
|
|
271
|
+
var import_styled_components4 = __toESM(require("styled-components"));
|
|
272
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
273
|
+
function SideMenuFooter({ children }) {
|
|
274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Footer, { children });
|
|
2836
275
|
}
|
|
2837
|
-
|
|
2838
|
-
|
|
276
|
+
var Footer = import_styled_components4.default.div`
|
|
277
|
+
margin-top: auto;
|
|
278
|
+
padding: 8px 0;
|
|
279
|
+
`;
|
|
280
|
+
|
|
281
|
+
// src/SideMenu/components/SideMenuGroup.tsx
|
|
282
|
+
var import_eds_core_react4 = require("@equinor/eds-core-react");
|
|
283
|
+
var import_eds_tokens3 = require("@equinor/eds-tokens");
|
|
284
|
+
var import_react3 = require("react");
|
|
285
|
+
var import_styled_components5 = __toESM(require("styled-components"));
|
|
286
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
287
|
+
function SideMenuGroup({ title, children, defaultExpanded = false, active = false }) {
|
|
288
|
+
const { onOverflowCheck } = useSideMenuContext();
|
|
289
|
+
const [isExpanded, setIsExpanded] = (0, import_react3.useState)(defaultExpanded);
|
|
290
|
+
(0, import_react3.useEffect)(() => {
|
|
291
|
+
setIsExpanded(defaultExpanded);
|
|
292
|
+
}, [defaultExpanded]);
|
|
293
|
+
function handleToggle() {
|
|
294
|
+
setIsExpanded((prev) => !prev);
|
|
295
|
+
onOverflowCheck();
|
|
296
|
+
}
|
|
297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("li", { "data-active-catalogue": active ? "true" : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_eds_core_react4.Accordion, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(StyledAccordionItem, { isExpanded, children: [
|
|
298
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_eds_core_react4.Accordion.Header, { onToggle: handleToggle, children: title }),
|
|
299
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_eds_core_react4.Accordion.Panel, { "aria-label": `Links for ${title}`, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("ul", { children }) })
|
|
300
|
+
] }) }) });
|
|
2839
301
|
}
|
|
2840
|
-
var
|
|
302
|
+
var StyledAccordionItem = (0, import_styled_components5.default)(import_eds_core_react4.Accordion.Item)`
|
|
2841
303
|
a {
|
|
2842
304
|
display: block;
|
|
2843
|
-
padding: 12px ${
|
|
305
|
+
padding: 12px ${import_eds_tokens3.tokens.spacings.comfortable.medium} 12px ${import_eds_tokens3.tokens.spacings.comfortable.x_large};
|
|
2844
306
|
}
|
|
2845
307
|
|
|
2846
308
|
h2 {
|
|
2847
309
|
background: transparent;
|
|
2848
310
|
border: 0;
|
|
2849
|
-
color: ${
|
|
311
|
+
color: var(--cpl-text-color, ${import_eds_tokens3.tokens.colors.interactive.secondary__resting.rgba});
|
|
2850
312
|
}
|
|
2851
313
|
|
|
2852
314
|
h2 + div {
|
|
@@ -2859,13 +321,13 @@ var AccordionItem = (0, import_styled_components4.styled)(import_eds_core_react4
|
|
|
2859
321
|
h2 button svg {
|
|
2860
322
|
width: 14px;
|
|
2861
323
|
height: 14px;
|
|
2862
|
-
margin-right: ${
|
|
324
|
+
margin-right: ${import_eds_tokens3.tokens.spacings.comfortable.x_small};
|
|
2863
325
|
transform: rotate(-90deg);
|
|
2864
|
-
fill: ${
|
|
326
|
+
fill: var(--cpl-text-color, ${import_eds_tokens3.tokens.colors.interactive.secondary__resting.rgba});
|
|
2865
327
|
}
|
|
2866
328
|
|
|
2867
329
|
h2 button span {
|
|
2868
|
-
color: ${
|
|
330
|
+
color: var(--cpl-text-color, ${import_eds_tokens3.tokens.colors.interactive.secondary__resting.rgba});
|
|
2869
331
|
font-weight: 700;
|
|
2870
332
|
font-size: 0.875rem;
|
|
2871
333
|
}
|
|
@@ -2884,196 +346,185 @@ var AccordionItem = (0, import_styled_components4.styled)(import_eds_core_react4
|
|
|
2884
346
|
}
|
|
2885
347
|
`;
|
|
2886
348
|
|
|
2887
|
-
// src/SideMenu/
|
|
349
|
+
// src/SideMenu/components/SideMenuHeader.tsx
|
|
350
|
+
var import_eds_tokens4 = require("@equinor/eds-tokens");
|
|
351
|
+
var import_styled_components6 = require("styled-components");
|
|
2888
352
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
2889
|
-
function
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
logoElement,
|
|
2894
|
-
versionInfo,
|
|
2895
|
-
currentEnvironment,
|
|
2896
|
-
titleOtherMenuItems,
|
|
2897
|
-
otherMenuItems,
|
|
2898
|
-
appUrls,
|
|
2899
|
-
linkComponent
|
|
2900
|
-
}) {
|
|
2901
|
-
const width = "268px";
|
|
2902
|
-
const [hasOverflow, setHasOverflow] = (0, import_react.useState)(false);
|
|
2903
|
-
const [scrolledDown, setScrolledDown] = (0, import_react.useState)(false);
|
|
2904
|
-
const containerRef = (0, import_react.useRef)(null);
|
|
2905
|
-
const mainMenuItemsWithActiveCatalogue = (0, import_react.useMemo)(() => {
|
|
2906
|
-
const pathname = typeof window !== "undefined" ? window.location.pathname : void 0;
|
|
2907
|
-
if (!pathname) {
|
|
2908
|
-
return;
|
|
2909
|
-
}
|
|
2910
|
-
return mainMenuItems.map((menuItem) => {
|
|
2911
|
-
if ("items" in menuItem) {
|
|
2912
|
-
return {
|
|
2913
|
-
...menuItem,
|
|
2914
|
-
isExpanded: menuItem.items.some((item) => pathname === item.url)
|
|
2915
|
-
};
|
|
2916
|
-
}
|
|
2917
|
-
return menuItem;
|
|
2918
|
-
});
|
|
2919
|
-
}, [mainMenuItems]);
|
|
2920
|
-
(0, import_react.useEffect)(() => {
|
|
2921
|
-
const container = containerRef.current;
|
|
2922
|
-
if (!container) {
|
|
2923
|
-
return;
|
|
2924
|
-
}
|
|
2925
|
-
const activeCatalogueElement = container.querySelector(
|
|
2926
|
-
'[data-active-catalogue="true"]'
|
|
2927
|
-
);
|
|
2928
|
-
if (activeCatalogueElement) {
|
|
2929
|
-
activeCatalogueElement.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
2930
|
-
}
|
|
2931
|
-
}, [mainMenuItemsWithActiveCatalogue]);
|
|
2932
|
-
const checkOverflow = (0, import_react.useCallback)(() => {
|
|
2933
|
-
requestAnimationFrame(() => {
|
|
2934
|
-
const element = containerRef.current;
|
|
2935
|
-
if (element) {
|
|
2936
|
-
setHasOverflow(element.scrollHeight > element.clientHeight);
|
|
2937
|
-
}
|
|
2938
|
-
});
|
|
2939
|
-
}, []);
|
|
2940
|
-
const handleScroll = (0, import_react.useCallback)(() => {
|
|
2941
|
-
const element = containerRef.current;
|
|
2942
|
-
if (element) {
|
|
2943
|
-
setScrolledDown(element.scrollTop > 0);
|
|
2944
|
-
}
|
|
2945
|
-
}, []);
|
|
2946
|
-
(0, import_react.useEffect)(() => {
|
|
2947
|
-
checkOverflow();
|
|
2948
|
-
window.addEventListener("resize", checkOverflow);
|
|
2949
|
-
return () => window.removeEventListener("resize", checkOverflow);
|
|
2950
|
-
}, [checkOverflow]);
|
|
2951
|
-
(0, import_react.useEffect)(() => {
|
|
2952
|
-
const element = containerRef.current;
|
|
2953
|
-
if (element) {
|
|
2954
|
-
element.addEventListener("scroll", handleScroll);
|
|
2955
|
-
handleScroll();
|
|
2956
|
-
return () => element.removeEventListener("scroll", handleScroll);
|
|
2957
|
-
}
|
|
2958
|
-
}, [handleScroll]);
|
|
2959
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Sidebar, { $isOpen: isOpen, $width: isOpen ? width : "", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(InnerWrapper, { ref: containerRef, $width: width, children: [
|
|
2960
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
|
|
2961
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(StickyCloseButton, { $showBorder: hasOverflow && scrolledDown, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2962
|
-
import_eds_core_react5.Button,
|
|
2963
|
-
{
|
|
2964
|
-
variant: "ghost_icon",
|
|
2965
|
-
color: "secondary",
|
|
2966
|
-
"aria-label": "Toggle side menu",
|
|
2967
|
-
onClick: () => onToggle(!isOpen),
|
|
2968
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_eds_core_react5.Icon, { data: import_eds_icons4.collapse, size: 24 })
|
|
2969
|
-
}
|
|
2970
|
-
) }),
|
|
2971
|
-
logoElement,
|
|
2972
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("nav", { children: [
|
|
2973
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2974
|
-
MenuList,
|
|
2975
|
-
{
|
|
2976
|
-
items: mainMenuItemsWithActiveCatalogue ?? [],
|
|
2977
|
-
currentEnvironment,
|
|
2978
|
-
appUrls,
|
|
2979
|
-
onToggleMenuGroup: checkOverflow,
|
|
2980
|
-
linkComponent
|
|
2981
|
-
}
|
|
2982
|
-
),
|
|
2983
|
-
otherMenuItems && otherMenuItems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
2984
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(StyledDivider, {}),
|
|
2985
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
|
|
2986
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2987
|
-
import_eds_core_react5.Typography,
|
|
2988
|
-
{
|
|
2989
|
-
variant: "label",
|
|
2990
|
-
group: "navigation",
|
|
2991
|
-
as: "h2",
|
|
2992
|
-
style: {
|
|
2993
|
-
color: import_eds_tokens5.tokens.colors.interactive.secondary__resting.rgba,
|
|
2994
|
-
padding: "12px 19px 4px 19px"
|
|
2995
|
-
},
|
|
2996
|
-
children: titleOtherMenuItems?.toUpperCase() ?? "OTHER SOLUTIONS"
|
|
2997
|
-
}
|
|
2998
|
-
),
|
|
2999
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
3000
|
-
MenuList,
|
|
3001
|
-
{
|
|
3002
|
-
items: otherMenuItems,
|
|
3003
|
-
currentEnvironment,
|
|
3004
|
-
appUrls,
|
|
3005
|
-
onToggleMenuGroup: checkOverflow
|
|
3006
|
-
}
|
|
3007
|
-
)
|
|
3008
|
-
] })
|
|
3009
|
-
] })
|
|
3010
|
-
] }),
|
|
3011
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(StyledDivider, {})
|
|
3012
|
-
] }),
|
|
3013
|
-
versionInfo
|
|
353
|
+
function SideMenuHeader({ title, icon }) {
|
|
354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Inner, { children: [
|
|
355
|
+
icon,
|
|
356
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: title })
|
|
3014
357
|
] }) });
|
|
3015
358
|
}
|
|
3016
|
-
var
|
|
3017
|
-
|
|
3018
|
-
|
|
359
|
+
var Wrapper = import_styled_components6.styled.div`
|
|
360
|
+
padding: 0 ${import_eds_tokens4.tokens.spacings.comfortable.medium} ${import_eds_tokens4.tokens.spacings.comfortable.small}
|
|
361
|
+
${import_eds_tokens4.tokens.spacings.comfortable.medium};
|
|
362
|
+
text-align: center;
|
|
363
|
+
font-weight: 500;
|
|
364
|
+
`;
|
|
365
|
+
var Inner = import_styled_components6.styled.div`
|
|
366
|
+
align-items: center;
|
|
367
|
+
display: flex;
|
|
368
|
+
flex-direction: column;
|
|
369
|
+
gap: ${import_eds_tokens4.tokens.spacings.comfortable.small};
|
|
370
|
+
justify-content: center;
|
|
371
|
+
text-align: center;
|
|
3019
372
|
`;
|
|
3020
|
-
var Sidebar = import_styled_components5.default.div`
|
|
3021
|
-
width: ${(props) => props.$isOpen ? props.$width : "0px"};
|
|
3022
|
-
opacity: ${(props) => props.$isOpen ? 1 : 0};
|
|
3023
|
-
transition:
|
|
3024
|
-
width 0.5s,
|
|
3025
|
-
opacity 0.5s;
|
|
3026
|
-
height: 100%;
|
|
3027
|
-
overflow: hidden;
|
|
3028
|
-
position: relative;
|
|
3029
|
-
z-index: 0;
|
|
3030
373
|
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
374
|
+
// src/SideMenu/components/SideMenuItem.tsx
|
|
375
|
+
var import_eds_core_react5 = require("@equinor/eds-core-react");
|
|
376
|
+
var import_eds_icons3 = require("@equinor/eds-icons");
|
|
377
|
+
var import_eds_tokens5 = require("@equinor/eds-tokens");
|
|
378
|
+
var import_styled_components7 = __toESM(require("styled-components"));
|
|
379
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
380
|
+
function SideMenuItem({
|
|
381
|
+
children,
|
|
382
|
+
href = "",
|
|
383
|
+
external = false,
|
|
384
|
+
active,
|
|
385
|
+
as
|
|
386
|
+
}) {
|
|
387
|
+
const { linkComponent } = useSideMenuContext();
|
|
388
|
+
const LinkComponent = as ?? linkComponent;
|
|
389
|
+
const isActive = external ? false : active ?? false;
|
|
390
|
+
const linkContent = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { children: [
|
|
391
|
+
children,
|
|
392
|
+
external && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_eds_core_react5.Icon, { data: import_eds_icons3.external_link, size: 16 })
|
|
393
|
+
] });
|
|
394
|
+
if (external) {
|
|
395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StyledLink2, { href, target: "_blank", rel: "noopener noreferrer", children: linkContent }) });
|
|
396
|
+
}
|
|
397
|
+
if (LinkComponent) {
|
|
398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
399
|
+
StyledLink2,
|
|
400
|
+
{
|
|
401
|
+
as: LinkComponent,
|
|
402
|
+
to: href,
|
|
403
|
+
href,
|
|
404
|
+
$active: isActive,
|
|
405
|
+
children: linkContent
|
|
406
|
+
}
|
|
407
|
+
) });
|
|
408
|
+
}
|
|
409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StyledLink2, { href, $active: isActive, children: linkContent }) });
|
|
410
|
+
}
|
|
411
|
+
var StyledLink2 = import_styled_components7.default.a`
|
|
412
|
+
text-decoration: none;
|
|
413
|
+
padding: 12px 16px 12px 19px;
|
|
414
|
+
display: inline-block;
|
|
415
|
+
width: 100%;
|
|
416
|
+
color: var(--cpl-text-color, ${import_eds_tokens5.tokens.colors.interactive.secondary__resting.rgba});
|
|
417
|
+
background-color: ${({ $active }) => $active ? import_eds_tokens5.tokens.colors.interactive.primary__selected_highlight.rgba : "transparent"};
|
|
418
|
+
font-weight: ${({ $active }) => $active ? 700 : 400};
|
|
419
|
+
font-size: 0.875rem;
|
|
420
|
+
|
|
421
|
+
&:hover {
|
|
422
|
+
background: var(--cpl-sidebar-hover-color);
|
|
3035
423
|
}
|
|
3036
424
|
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
425
|
+
&:focus-visible {
|
|
426
|
+
outline-offset: -2px;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
span {
|
|
430
|
+
align-items: center;
|
|
431
|
+
display: flex;
|
|
432
|
+
gap: 1rem;
|
|
433
|
+
justify-content: space-between;
|
|
434
|
+
font-size: 0.875rem;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
span svg {
|
|
438
|
+
opacity: 60%;
|
|
3041
439
|
}
|
|
3042
440
|
`;
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
441
|
+
|
|
442
|
+
// src/SideMenu/components/SideMenuSection.tsx
|
|
443
|
+
var import_eds_tokens6 = require("@equinor/eds-tokens");
|
|
444
|
+
var import_styled_components8 = __toESM(require("styled-components"));
|
|
445
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
446
|
+
function SideMenuSection({ children, label, style, className }) {
|
|
447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(SectionWrapper, { style, className, children: [
|
|
448
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SectionLabel, { as: "h2", children: label }),
|
|
449
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("ul", { children })
|
|
450
|
+
] });
|
|
451
|
+
}
|
|
452
|
+
var SectionWrapper = import_styled_components8.default.nav`
|
|
453
|
+
background: transparent;
|
|
454
|
+
padding: 8px 0;
|
|
3055
455
|
`;
|
|
3056
|
-
var
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
top: 0;
|
|
456
|
+
var SectionLabel = import_styled_components8.default.p`
|
|
457
|
+
color: var(--cpl-text-color, ${import_eds_tokens6.tokens.colors.interactive.secondary__resting.rgba});
|
|
458
|
+
padding: 12px 19px 4px 19px;
|
|
3060
459
|
display: flex;
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
460
|
+
align-items: center;
|
|
461
|
+
gap: 6px;
|
|
462
|
+
font-size: 0.75rem;
|
|
463
|
+
font-weight: 500;
|
|
464
|
+
letter-spacing: 0.1em;
|
|
465
|
+
text-transform: uppercase;
|
|
466
|
+
margin: 0;
|
|
3065
467
|
`;
|
|
3066
468
|
|
|
469
|
+
// src/SideMenu/SideMenu.tsx
|
|
470
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
471
|
+
function SideMenu({
|
|
472
|
+
isOpen,
|
|
473
|
+
onToggle,
|
|
474
|
+
children,
|
|
475
|
+
linkComponent,
|
|
476
|
+
width = "268px",
|
|
477
|
+
scrollToActiveGroup = false
|
|
478
|
+
}) {
|
|
479
|
+
const { containerRef, stickyRef, hasOverflow, scrolledDown, checkOverflow } = useSideMenuScroll({
|
|
480
|
+
isOpen,
|
|
481
|
+
scrollToActiveGroup
|
|
482
|
+
});
|
|
483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SideMenuContext.Provider, { value: { linkComponent, onOverflowCheck: checkOverflow }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Sidebar, { $isOpen: isOpen, $width: isOpen ? width : "", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(InnerWrapper, { ref: containerRef, $width: width, children: [
|
|
484
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(StickyCloseButton, { ref: stickyRef, $showBorder: hasOverflow && scrolledDown, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
485
|
+
import_eds_core_react6.Button,
|
|
486
|
+
{
|
|
487
|
+
variant: "ghost_icon",
|
|
488
|
+
color: "secondary",
|
|
489
|
+
"aria-label": "Toggle side menu",
|
|
490
|
+
onClick: () => onToggle(!isOpen),
|
|
491
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_eds_core_react6.Icon, { data: import_eds_icons4.collapse, size: 24 })
|
|
492
|
+
}
|
|
493
|
+
) }),
|
|
494
|
+
children
|
|
495
|
+
] }) }) });
|
|
496
|
+
}
|
|
497
|
+
SideMenu.Header = SideMenuHeader;
|
|
498
|
+
SideMenu.Section = SideMenuSection;
|
|
499
|
+
SideMenu.Group = SideMenuGroup;
|
|
500
|
+
SideMenu.Item = SideMenuItem;
|
|
501
|
+
SideMenu.Divider = SideMenuDivider;
|
|
502
|
+
SideMenu.Footer = SideMenuFooter;
|
|
503
|
+
|
|
504
|
+
// src/SideMenu/renderMenuItems.tsx
|
|
505
|
+
var import_react4 = __toESM(require("react"));
|
|
506
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
507
|
+
function renderMenuItems(items, options = {}) {
|
|
508
|
+
const { getUrl = (item) => item.url ?? "", pathname = "" } = options;
|
|
509
|
+
return items.map((group, index) => {
|
|
510
|
+
if (group.title) {
|
|
511
|
+
const isActive = group.items.some((child) => getUrl(child) === pathname);
|
|
512
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SideMenuGroup, { title: group.title, defaultExpanded: isActive, active: isActive, children: group.items.map((child) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SideMenuItem, { href: getUrl(child), external: child.external, active: getUrl(child) === pathname, children: child.name }, child.name)) }, group.title);
|
|
513
|
+
}
|
|
514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react4.default.Fragment, { children: group.items.map((child) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SideMenuItem, { href: getUrl(child), external: child.external, active: getUrl(child) === pathname, children: child.name }, child.name)) }, index);
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
|
|
3067
518
|
// src/UserMenu/UserMenu.tsx
|
|
3068
|
-
var
|
|
519
|
+
var import_eds_core_react7 = require("@equinor/eds-core-react");
|
|
3069
520
|
var import_eds_icons5 = require("@equinor/eds-icons");
|
|
3070
|
-
var
|
|
3071
|
-
var
|
|
3072
|
-
var
|
|
3073
|
-
var
|
|
521
|
+
var import_eds_tokens7 = require("@equinor/eds-tokens");
|
|
522
|
+
var import_react5 = require("react");
|
|
523
|
+
var import_styled_components9 = __toESM(require("styled-components"));
|
|
524
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
3074
525
|
function UserMenu({ user, logout, settingsLink, children }) {
|
|
3075
|
-
const [isOpen, setIsOpen] = (0,
|
|
3076
|
-
const [anchorEl, setAnchorEl] = (0,
|
|
526
|
+
const [isOpen, setIsOpen] = (0, import_react5.useState)(false);
|
|
527
|
+
const [anchorEl, setAnchorEl] = (0, import_react5.useState)(null);
|
|
3077
528
|
const openMenu = () => {
|
|
3078
529
|
setIsOpen(true);
|
|
3079
530
|
};
|
|
@@ -3082,20 +533,20 @@ function UserMenu({ user, logout, settingsLink, children }) {
|
|
|
3082
533
|
};
|
|
3083
534
|
const LogOutMenuItem = () => {
|
|
3084
535
|
if (typeof logout === "string") {
|
|
3085
|
-
return /* @__PURE__ */ (0,
|
|
3086
|
-
/* @__PURE__ */ (0,
|
|
3087
|
-
/* @__PURE__ */ (0,
|
|
536
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_eds_core_react7.Menu.Item, { as: "a", href: logout, className: "menu-item", id: "logout-button", children: [
|
|
537
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_eds_core_react7.Icon, { data: import_eds_icons5.log_out }),
|
|
538
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "Log out" })
|
|
3088
539
|
] });
|
|
3089
540
|
} else {
|
|
3090
|
-
return /* @__PURE__ */ (0,
|
|
3091
|
-
/* @__PURE__ */ (0,
|
|
3092
|
-
/* @__PURE__ */ (0,
|
|
541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_eds_core_react7.Menu.Item, { as: "button", onClick: logout, className: "menu-item", id: "logout-button", children: [
|
|
542
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_eds_core_react7.Icon, { data: import_eds_icons5.log_out }),
|
|
543
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "Log out" })
|
|
3093
544
|
] });
|
|
3094
545
|
}
|
|
3095
546
|
};
|
|
3096
547
|
const firstLetter = user?.email?.[0]?.toUpperCase() ?? "-";
|
|
3097
|
-
return /* @__PURE__ */ (0,
|
|
3098
|
-
/* @__PURE__ */ (0,
|
|
548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
549
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3099
550
|
StyledUserButton,
|
|
3100
551
|
{
|
|
3101
552
|
id: "user-button",
|
|
@@ -3108,7 +559,7 @@ function UserMenu({ user, logout, settingsLink, children }) {
|
|
|
3108
559
|
children: firstLetter
|
|
3109
560
|
}
|
|
3110
561
|
),
|
|
3111
|
-
/* @__PURE__ */ (0,
|
|
562
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
3112
563
|
MenuWrapper,
|
|
3113
564
|
{
|
|
3114
565
|
id: "user-menu",
|
|
@@ -3118,16 +569,16 @@ function UserMenu({ user, logout, settingsLink, children }) {
|
|
|
3118
569
|
anchorEl,
|
|
3119
570
|
style: { padding: 0, paddingBottom: 2 },
|
|
3120
571
|
children: [
|
|
3121
|
-
/* @__PURE__ */ (0,
|
|
3122
|
-
/* @__PURE__ */ (0,
|
|
3123
|
-
isOpen && /* @__PURE__ */ (0,
|
|
3124
|
-
/* @__PURE__ */ (0,
|
|
3125
|
-
/* @__PURE__ */ (0,
|
|
572
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(IconAndTextWrapper, { children: [
|
|
573
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(LetterCircle, { children: firstLetter }),
|
|
574
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { children: [
|
|
575
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: { fontWeight: "bold", lineHeight: 0.9, marginBottom: 2 }, children: user?.name ?? "-" }),
|
|
576
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { children: user?.email ?? "-" })
|
|
3126
577
|
] })
|
|
3127
578
|
] }),
|
|
3128
|
-
settingsLink && /* @__PURE__ */ (0,
|
|
3129
|
-
/* @__PURE__ */ (0,
|
|
3130
|
-
/* @__PURE__ */ (0,
|
|
579
|
+
settingsLink && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_eds_core_react7.Menu.Item, { as: "a", href: settingsLink, className: "menu-item", children: [
|
|
580
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_eds_core_react7.Icon, { data: import_eds_icons5.settings }),
|
|
581
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "Settings" })
|
|
3131
582
|
] }),
|
|
3132
583
|
LogOutMenuItem(),
|
|
3133
584
|
children
|
|
@@ -3136,25 +587,25 @@ function UserMenu({ user, logout, settingsLink, children }) {
|
|
|
3136
587
|
)
|
|
3137
588
|
] });
|
|
3138
589
|
}
|
|
3139
|
-
var MenuWrapper = (0,
|
|
3140
|
-
border-radius: ${
|
|
3141
|
-
margin-top: ${
|
|
3142
|
-
margin-bottom: -${
|
|
3143
|
-
padding-bottom: ${
|
|
590
|
+
var MenuWrapper = (0, import_styled_components9.default)(import_eds_core_react7.Menu)`
|
|
591
|
+
border-radius: ${import_eds_tokens7.tokens.shape.corners.borderRadius};
|
|
592
|
+
margin-top: ${import_eds_tokens7.tokens.spacings.comfortable.small};
|
|
593
|
+
margin-bottom: -${import_eds_tokens7.tokens.spacings.comfortable.small};
|
|
594
|
+
padding-bottom: ${import_eds_tokens7.tokens.spacings.comfortable.small};
|
|
3144
595
|
padding-left: 0;
|
|
3145
596
|
padding-right: 0;
|
|
3146
|
-
padding-top: ${
|
|
597
|
+
padding-top: ${import_eds_tokens7.tokens.spacings.comfortable.small};
|
|
3147
598
|
width: 315px;
|
|
3148
599
|
|
|
3149
600
|
background: var(--cpl-ui-background-temporary-nav, #fff);
|
|
3150
|
-
color: ${
|
|
601
|
+
color: ${import_eds_tokens7.tokens.colors.text.static_icons__default.rgba};
|
|
3151
602
|
|
|
3152
603
|
.menu-item {
|
|
3153
604
|
align-items: center;
|
|
3154
605
|
display: flex;
|
|
3155
|
-
gap: ${
|
|
606
|
+
gap: ${import_eds_tokens7.tokens.spacings.comfortable.medium};
|
|
3156
607
|
opacity: 0.85;
|
|
3157
|
-
padding: ${
|
|
608
|
+
padding: ${import_eds_tokens7.tokens.spacings.comfortable.small} ${import_eds_tokens7.tokens.spacings.comfortable.large};
|
|
3158
609
|
|
|
3159
610
|
svg {
|
|
3160
611
|
opacity: 0.7;
|
|
@@ -3169,7 +620,7 @@ var MenuWrapper = (0, import_styled_components6.default)(import_eds_core_react6.
|
|
|
3169
620
|
}
|
|
3170
621
|
}
|
|
3171
622
|
`;
|
|
3172
|
-
var LetterCircle =
|
|
623
|
+
var LetterCircle = import_styled_components9.default.span`
|
|
3173
624
|
align-items: center;
|
|
3174
625
|
border-radius: 1000px;
|
|
3175
626
|
display: flex;
|
|
@@ -3178,16 +629,16 @@ var LetterCircle = import_styled_components6.default.span`
|
|
|
3178
629
|
height: 32px;
|
|
3179
630
|
justify-content: center;
|
|
3180
631
|
width: 32px;
|
|
3181
|
-
background-color: ${
|
|
3182
|
-
color: ${
|
|
632
|
+
background-color: ${import_eds_tokens7.tokens.colors.interactive.primary__resting.rgba};
|
|
633
|
+
color: ${import_eds_tokens7.tokens.colors.text.static_icons__primary_white.rgba};
|
|
3183
634
|
`;
|
|
3184
|
-
var StyledUserButton = (0,
|
|
635
|
+
var StyledUserButton = (0, import_styled_components9.default)(import_eds_core_react7.Button)`
|
|
3185
636
|
margin-left: 12px;
|
|
3186
637
|
font-weight: bold;
|
|
3187
638
|
width: 32px;
|
|
3188
639
|
height: 32px;
|
|
3189
640
|
`;
|
|
3190
|
-
var IconAndTextWrapper = (0,
|
|
641
|
+
var IconAndTextWrapper = (0, import_styled_components9.default)(import_eds_core_react7.Menu.Item)`
|
|
3191
642
|
display: flex;
|
|
3192
643
|
gap: 12px;
|
|
3193
644
|
padding: 12px 20px;
|
|
@@ -3203,10 +654,15 @@ var IconAndTextWrapper = (0, import_styled_components6.default)(import_eds_core_
|
|
|
3203
654
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3204
655
|
0 && (module.exports = {
|
|
3205
656
|
FeedbackLink,
|
|
3206
|
-
MenuHeader,
|
|
3207
657
|
SideMenu,
|
|
658
|
+
SideMenuDivider,
|
|
659
|
+
SideMenuFooter,
|
|
660
|
+
SideMenuGroup,
|
|
661
|
+
SideMenuHeader,
|
|
662
|
+
SideMenuItem,
|
|
663
|
+
SideMenuSection,
|
|
3208
664
|
StyledLink,
|
|
3209
665
|
TopBar,
|
|
3210
666
|
UserMenu,
|
|
3211
|
-
|
|
667
|
+
renderMenuItems
|
|
3212
668
|
});
|