testeranto 0.158.1 → 0.160.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/common/src/Init.js +3 -3
- package/dist/common/src/utils/api.js +33 -192
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/Init.js +3 -3
- package/dist/module/src/ProjectPage.js +128 -21
- package/dist/module/src/ProjectsPage.js +15 -9
- package/dist/module/src/TestPage.js +65 -18
- package/dist/module/src/utils/api.js +33 -192
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/App.js +901 -581
- package/dist/prebuild/init-docs.mjs +3 -3
- package/dist/types/src/utils/api.d.ts +2 -20
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/notify.sh +47 -0
- package/package.json +2 -2
- package/src/Init.ts +3 -3
- package/src/ProjectPage.tsx +204 -38
- package/src/ProjectsPage.tsx +23 -19
- package/src/TestPage.tsx +79 -18
- package/src/utils/api.ts +40 -193
- package/testeranto/App.js +901 -581
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/logs.txt +4 -4
- package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/logs.txt +1 -1
- package/dist/module/src/BuildLogsPage.js +0 -99
- package/dist/module/src/Project.js +0 -332
- package/src/BuildLogsPage.tsx +0 -108
- package/src/Project.tsx +0 -375
package/testeranto/App.js
CHANGED
|
@@ -972,7 +972,7 @@
|
|
|
972
972
|
}
|
|
973
973
|
return lazyType;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function forwardRef49(render) {
|
|
976
976
|
{
|
|
977
977
|
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
978
978
|
error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
|
|
@@ -1113,7 +1113,7 @@
|
|
|
1113
1113
|
var dispatcher = resolveDispatcher();
|
|
1114
1114
|
return dispatcher.useCallback(callback, deps);
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function useMemo14(create, deps) {
|
|
1117
1117
|
var dispatcher = resolveDispatcher();
|
|
1118
1118
|
return dispatcher.useMemo(create, deps);
|
|
1119
1119
|
}
|
|
@@ -1869,7 +1869,7 @@
|
|
|
1869
1869
|
exports.createElement = createElement$1;
|
|
1870
1870
|
exports.createFactory = createFactory;
|
|
1871
1871
|
exports.createRef = createRef;
|
|
1872
|
-
exports.forwardRef =
|
|
1872
|
+
exports.forwardRef = forwardRef49;
|
|
1873
1873
|
exports.isValidElement = isValidElement2;
|
|
1874
1874
|
exports.lazy = lazy;
|
|
1875
1875
|
exports.memo = memo2;
|
|
@@ -1884,7 +1884,7 @@
|
|
|
1884
1884
|
exports.useImperativeHandle = useImperativeHandle2;
|
|
1885
1885
|
exports.useInsertionEffect = useInsertionEffect;
|
|
1886
1886
|
exports.useLayoutEffect = useLayoutEffect6;
|
|
1887
|
-
exports.useMemo =
|
|
1887
|
+
exports.useMemo = useMemo14;
|
|
1888
1888
|
exports.useReducer = useReducer2;
|
|
1889
1889
|
exports.useRef = useRef19;
|
|
1890
1890
|
exports.useState = useState19;
|
|
@@ -2383,9 +2383,9 @@
|
|
|
2383
2383
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
2384
2384
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
2385
2385
|
}
|
|
2386
|
-
var
|
|
2386
|
+
var React79 = require_react();
|
|
2387
2387
|
var Scheduler = require_scheduler();
|
|
2388
|
-
var ReactSharedInternals =
|
|
2388
|
+
var ReactSharedInternals = React79.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2389
2389
|
var suppressWarning = false;
|
|
2390
2390
|
function setSuppressWarning(newSuppressWarning) {
|
|
2391
2391
|
{
|
|
@@ -3990,7 +3990,7 @@
|
|
|
3990
3990
|
{
|
|
3991
3991
|
if (props.value == null) {
|
|
3992
3992
|
if (typeof props.children === "object" && props.children !== null) {
|
|
3993
|
-
|
|
3993
|
+
React79.Children.forEach(props.children, function(child) {
|
|
3994
3994
|
if (child == null) {
|
|
3995
3995
|
return;
|
|
3996
3996
|
}
|
|
@@ -12437,7 +12437,7 @@
|
|
|
12437
12437
|
}
|
|
12438
12438
|
}
|
|
12439
12439
|
var fakeInternalInstance = {};
|
|
12440
|
-
var emptyRefsObject = new
|
|
12440
|
+
var emptyRefsObject = new React79.Component().refs;
|
|
12441
12441
|
var didWarnAboutStateAssignmentForComponent;
|
|
12442
12442
|
var didWarnAboutUninitializedState;
|
|
12443
12443
|
var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
|
|
@@ -23514,7 +23514,7 @@
|
|
|
23514
23514
|
(function() {
|
|
23515
23515
|
"use strict";
|
|
23516
23516
|
var hasOwn = {}.hasOwnProperty;
|
|
23517
|
-
function
|
|
23517
|
+
function classNames38() {
|
|
23518
23518
|
var classes = "";
|
|
23519
23519
|
for (var i = 0; i < arguments.length; i++) {
|
|
23520
23520
|
var arg = arguments[i];
|
|
@@ -23532,7 +23532,7 @@
|
|
|
23532
23532
|
return "";
|
|
23533
23533
|
}
|
|
23534
23534
|
if (Array.isArray(arg)) {
|
|
23535
|
-
return
|
|
23535
|
+
return classNames38.apply(null, arg);
|
|
23536
23536
|
}
|
|
23537
23537
|
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
23538
23538
|
return arg.toString();
|
|
@@ -23555,14 +23555,14 @@
|
|
|
23555
23555
|
return value + newClass;
|
|
23556
23556
|
}
|
|
23557
23557
|
if (typeof module !== "undefined" && module.exports) {
|
|
23558
|
-
|
|
23559
|
-
module.exports =
|
|
23558
|
+
classNames38.default = classNames38;
|
|
23559
|
+
module.exports = classNames38;
|
|
23560
23560
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
23561
23561
|
define("classnames", [], function() {
|
|
23562
|
-
return
|
|
23562
|
+
return classNames38;
|
|
23563
23563
|
});
|
|
23564
23564
|
} else {
|
|
23565
|
-
window.classNames =
|
|
23565
|
+
window.classNames = classNames38;
|
|
23566
23566
|
}
|
|
23567
23567
|
})();
|
|
23568
23568
|
}
|
|
@@ -23609,7 +23609,7 @@
|
|
|
23609
23609
|
if (true) {
|
|
23610
23610
|
(function() {
|
|
23611
23611
|
"use strict";
|
|
23612
|
-
var
|
|
23612
|
+
var React79 = require_react();
|
|
23613
23613
|
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
23614
23614
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
23615
23615
|
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
@@ -23635,7 +23635,7 @@
|
|
|
23635
23635
|
}
|
|
23636
23636
|
return null;
|
|
23637
23637
|
}
|
|
23638
|
-
var ReactSharedInternals =
|
|
23638
|
+
var ReactSharedInternals = React79.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
23639
23639
|
function error(format) {
|
|
23640
23640
|
{
|
|
23641
23641
|
{
|
|
@@ -25269,8 +25269,55 @@
|
|
|
25269
25269
|
}
|
|
25270
25270
|
});
|
|
25271
25271
|
|
|
25272
|
+
// node_modules/warning/warning.js
|
|
25273
|
+
var require_warning = __commonJS({
|
|
25274
|
+
"node_modules/warning/warning.js"(exports, module) {
|
|
25275
|
+
"use strict";
|
|
25276
|
+
var __DEV__ = true;
|
|
25277
|
+
var warning4 = function() {
|
|
25278
|
+
};
|
|
25279
|
+
if (__DEV__) {
|
|
25280
|
+
printWarning = function printWarning2(format, args) {
|
|
25281
|
+
var len = arguments.length;
|
|
25282
|
+
args = new Array(len > 1 ? len - 1 : 0);
|
|
25283
|
+
for (var key = 1; key < len; key++) {
|
|
25284
|
+
args[key - 1] = arguments[key];
|
|
25285
|
+
}
|
|
25286
|
+
var argIndex = 0;
|
|
25287
|
+
var message = "Warning: " + format.replace(/%s/g, function() {
|
|
25288
|
+
return args[argIndex++];
|
|
25289
|
+
});
|
|
25290
|
+
if (typeof console !== "undefined") {
|
|
25291
|
+
console.error(message);
|
|
25292
|
+
}
|
|
25293
|
+
try {
|
|
25294
|
+
throw new Error(message);
|
|
25295
|
+
} catch (x) {
|
|
25296
|
+
}
|
|
25297
|
+
};
|
|
25298
|
+
warning4 = function(condition, format, args) {
|
|
25299
|
+
var len = arguments.length;
|
|
25300
|
+
args = new Array(len > 2 ? len - 2 : 0);
|
|
25301
|
+
for (var key = 2; key < len; key++) {
|
|
25302
|
+
args[key - 2] = arguments[key];
|
|
25303
|
+
}
|
|
25304
|
+
if (format === void 0) {
|
|
25305
|
+
throw new Error(
|
|
25306
|
+
"`warning(condition, format, ...args)` requires a warning message argument"
|
|
25307
|
+
);
|
|
25308
|
+
}
|
|
25309
|
+
if (!condition) {
|
|
25310
|
+
printWarning.apply(null, [format].concat(args));
|
|
25311
|
+
}
|
|
25312
|
+
};
|
|
25313
|
+
}
|
|
25314
|
+
var printWarning;
|
|
25315
|
+
module.exports = warning4;
|
|
25316
|
+
}
|
|
25317
|
+
});
|
|
25318
|
+
|
|
25272
25319
|
// src/App.tsx
|
|
25273
|
-
var
|
|
25320
|
+
var import_react56 = __toESM(require_react(), 1);
|
|
25274
25321
|
var import_client = __toESM(require_client(), 1);
|
|
25275
25322
|
|
|
25276
25323
|
// node_modules/react-router/dist/development/chunk-EF7DTUVF.mjs
|
|
@@ -27635,7 +27682,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
27635
27682
|
"use client";
|
|
27636
27683
|
|
|
27637
27684
|
// src/ProjectsPage.tsx
|
|
27638
|
-
var
|
|
27685
|
+
var import_react53 = __toESM(require_react(), 1);
|
|
27639
27686
|
|
|
27640
27687
|
// node_modules/@babel/runtime/helpers/esm/extends.js
|
|
27641
27688
|
function _extends() {
|
|
@@ -29141,19 +29188,266 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29141
29188
|
Button2.displayName = "Button";
|
|
29142
29189
|
var Button_default2 = Button2;
|
|
29143
29190
|
|
|
29144
|
-
// node_modules/react-bootstrap/esm/
|
|
29191
|
+
// node_modules/react-bootstrap/esm/Card.js
|
|
29192
|
+
var import_classnames19 = __toESM(require_classnames());
|
|
29193
|
+
var React39 = __toESM(require_react());
|
|
29194
|
+
|
|
29195
|
+
// node_modules/react-bootstrap/esm/CardBody.js
|
|
29145
29196
|
var React29 = __toESM(require_react());
|
|
29197
|
+
var import_classnames10 = __toESM(require_classnames());
|
|
29198
|
+
var import_jsx_runtime15 = __toESM(require_jsx_runtime());
|
|
29199
|
+
"use client";
|
|
29200
|
+
var CardBody = /* @__PURE__ */ React29.forwardRef(({
|
|
29201
|
+
className,
|
|
29202
|
+
bsPrefix,
|
|
29203
|
+
as: Component4 = "div",
|
|
29204
|
+
...props
|
|
29205
|
+
}, ref) => {
|
|
29206
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, "card-body");
|
|
29207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Component4, {
|
|
29208
|
+
ref,
|
|
29209
|
+
className: (0, import_classnames10.default)(className, bsPrefix),
|
|
29210
|
+
...props
|
|
29211
|
+
});
|
|
29212
|
+
});
|
|
29213
|
+
CardBody.displayName = "CardBody";
|
|
29214
|
+
var CardBody_default = CardBody;
|
|
29215
|
+
|
|
29216
|
+
// node_modules/react-bootstrap/esm/CardFooter.js
|
|
29217
|
+
var React30 = __toESM(require_react());
|
|
29218
|
+
var import_classnames11 = __toESM(require_classnames());
|
|
29219
|
+
var import_jsx_runtime16 = __toESM(require_jsx_runtime());
|
|
29220
|
+
"use client";
|
|
29221
|
+
var CardFooter = /* @__PURE__ */ React30.forwardRef(({
|
|
29222
|
+
className,
|
|
29223
|
+
bsPrefix,
|
|
29224
|
+
as: Component4 = "div",
|
|
29225
|
+
...props
|
|
29226
|
+
}, ref) => {
|
|
29227
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, "card-footer");
|
|
29228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Component4, {
|
|
29229
|
+
ref,
|
|
29230
|
+
className: (0, import_classnames11.default)(className, bsPrefix),
|
|
29231
|
+
...props
|
|
29232
|
+
});
|
|
29233
|
+
});
|
|
29234
|
+
CardFooter.displayName = "CardFooter";
|
|
29235
|
+
var CardFooter_default = CardFooter;
|
|
29236
|
+
|
|
29237
|
+
// node_modules/react-bootstrap/esm/CardHeader.js
|
|
29238
|
+
var import_classnames12 = __toESM(require_classnames());
|
|
29239
|
+
var React32 = __toESM(require_react());
|
|
29240
|
+
var import_react25 = __toESM(require_react());
|
|
29241
|
+
|
|
29242
|
+
// node_modules/react-bootstrap/esm/CardHeaderContext.js
|
|
29243
|
+
var React31 = __toESM(require_react());
|
|
29146
29244
|
"use client";
|
|
29147
|
-
var context = /* @__PURE__ */
|
|
29245
|
+
var context = /* @__PURE__ */ React31.createContext(null);
|
|
29148
29246
|
context.displayName = "CardHeaderContext";
|
|
29149
29247
|
var CardHeaderContext_default = context;
|
|
29150
29248
|
|
|
29249
|
+
// node_modules/react-bootstrap/esm/CardHeader.js
|
|
29250
|
+
var import_jsx_runtime17 = __toESM(require_jsx_runtime());
|
|
29251
|
+
"use client";
|
|
29252
|
+
var CardHeader = /* @__PURE__ */ React32.forwardRef(({
|
|
29253
|
+
bsPrefix,
|
|
29254
|
+
className,
|
|
29255
|
+
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
29256
|
+
as: Component4 = "div",
|
|
29257
|
+
...props
|
|
29258
|
+
}, ref) => {
|
|
29259
|
+
const prefix = useBootstrapPrefix(bsPrefix, "card-header");
|
|
29260
|
+
const contextValue = (0, import_react25.useMemo)(() => ({
|
|
29261
|
+
cardHeaderBsPrefix: prefix
|
|
29262
|
+
}), [prefix]);
|
|
29263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CardHeaderContext_default.Provider, {
|
|
29264
|
+
value: contextValue,
|
|
29265
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Component4, {
|
|
29266
|
+
ref,
|
|
29267
|
+
...props,
|
|
29268
|
+
className: (0, import_classnames12.default)(className, prefix)
|
|
29269
|
+
})
|
|
29270
|
+
});
|
|
29271
|
+
});
|
|
29272
|
+
CardHeader.displayName = "CardHeader";
|
|
29273
|
+
var CardHeader_default = CardHeader;
|
|
29274
|
+
|
|
29275
|
+
// node_modules/react-bootstrap/esm/CardImg.js
|
|
29276
|
+
var import_classnames13 = __toESM(require_classnames());
|
|
29277
|
+
var React33 = __toESM(require_react());
|
|
29278
|
+
var import_jsx_runtime18 = __toESM(require_jsx_runtime());
|
|
29279
|
+
"use client";
|
|
29280
|
+
var CardImg = /* @__PURE__ */ React33.forwardRef(
|
|
29281
|
+
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
29282
|
+
({
|
|
29283
|
+
bsPrefix,
|
|
29284
|
+
className,
|
|
29285
|
+
variant,
|
|
29286
|
+
as: Component4 = "img",
|
|
29287
|
+
...props
|
|
29288
|
+
}, ref) => {
|
|
29289
|
+
const prefix = useBootstrapPrefix(bsPrefix, "card-img");
|
|
29290
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Component4, {
|
|
29291
|
+
ref,
|
|
29292
|
+
className: (0, import_classnames13.default)(variant ? `${prefix}-${variant}` : prefix, className),
|
|
29293
|
+
...props
|
|
29294
|
+
});
|
|
29295
|
+
}
|
|
29296
|
+
);
|
|
29297
|
+
CardImg.displayName = "CardImg";
|
|
29298
|
+
var CardImg_default = CardImg;
|
|
29299
|
+
|
|
29300
|
+
// node_modules/react-bootstrap/esm/CardImgOverlay.js
|
|
29301
|
+
var React34 = __toESM(require_react());
|
|
29302
|
+
var import_classnames14 = __toESM(require_classnames());
|
|
29303
|
+
var import_jsx_runtime19 = __toESM(require_jsx_runtime());
|
|
29304
|
+
"use client";
|
|
29305
|
+
var CardImgOverlay = /* @__PURE__ */ React34.forwardRef(({
|
|
29306
|
+
className,
|
|
29307
|
+
bsPrefix,
|
|
29308
|
+
as: Component4 = "div",
|
|
29309
|
+
...props
|
|
29310
|
+
}, ref) => {
|
|
29311
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, "card-img-overlay");
|
|
29312
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Component4, {
|
|
29313
|
+
ref,
|
|
29314
|
+
className: (0, import_classnames14.default)(className, bsPrefix),
|
|
29315
|
+
...props
|
|
29316
|
+
});
|
|
29317
|
+
});
|
|
29318
|
+
CardImgOverlay.displayName = "CardImgOverlay";
|
|
29319
|
+
var CardImgOverlay_default = CardImgOverlay;
|
|
29320
|
+
|
|
29321
|
+
// node_modules/react-bootstrap/esm/CardLink.js
|
|
29322
|
+
var React35 = __toESM(require_react());
|
|
29323
|
+
var import_classnames15 = __toESM(require_classnames());
|
|
29324
|
+
var import_jsx_runtime20 = __toESM(require_jsx_runtime());
|
|
29325
|
+
"use client";
|
|
29326
|
+
var CardLink = /* @__PURE__ */ React35.forwardRef(({
|
|
29327
|
+
className,
|
|
29328
|
+
bsPrefix,
|
|
29329
|
+
as: Component4 = "a",
|
|
29330
|
+
...props
|
|
29331
|
+
}, ref) => {
|
|
29332
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, "card-link");
|
|
29333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Component4, {
|
|
29334
|
+
ref,
|
|
29335
|
+
className: (0, import_classnames15.default)(className, bsPrefix),
|
|
29336
|
+
...props
|
|
29337
|
+
});
|
|
29338
|
+
});
|
|
29339
|
+
CardLink.displayName = "CardLink";
|
|
29340
|
+
var CardLink_default = CardLink;
|
|
29341
|
+
|
|
29342
|
+
// node_modules/react-bootstrap/esm/CardSubtitle.js
|
|
29343
|
+
var React36 = __toESM(require_react());
|
|
29344
|
+
var import_classnames16 = __toESM(require_classnames());
|
|
29345
|
+
var import_jsx_runtime21 = __toESM(require_jsx_runtime());
|
|
29346
|
+
"use client";
|
|
29347
|
+
var DivStyledAsH6 = divWithClassName_default("h6");
|
|
29348
|
+
var CardSubtitle = /* @__PURE__ */ React36.forwardRef(({
|
|
29349
|
+
className,
|
|
29350
|
+
bsPrefix,
|
|
29351
|
+
as: Component4 = DivStyledAsH6,
|
|
29352
|
+
...props
|
|
29353
|
+
}, ref) => {
|
|
29354
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, "card-subtitle");
|
|
29355
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Component4, {
|
|
29356
|
+
ref,
|
|
29357
|
+
className: (0, import_classnames16.default)(className, bsPrefix),
|
|
29358
|
+
...props
|
|
29359
|
+
});
|
|
29360
|
+
});
|
|
29361
|
+
CardSubtitle.displayName = "CardSubtitle";
|
|
29362
|
+
var CardSubtitle_default = CardSubtitle;
|
|
29363
|
+
|
|
29364
|
+
// node_modules/react-bootstrap/esm/CardText.js
|
|
29365
|
+
var React37 = __toESM(require_react());
|
|
29366
|
+
var import_classnames17 = __toESM(require_classnames());
|
|
29367
|
+
var import_jsx_runtime22 = __toESM(require_jsx_runtime());
|
|
29368
|
+
"use client";
|
|
29369
|
+
var CardText = /* @__PURE__ */ React37.forwardRef(({
|
|
29370
|
+
className,
|
|
29371
|
+
bsPrefix,
|
|
29372
|
+
as: Component4 = "p",
|
|
29373
|
+
...props
|
|
29374
|
+
}, ref) => {
|
|
29375
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, "card-text");
|
|
29376
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Component4, {
|
|
29377
|
+
ref,
|
|
29378
|
+
className: (0, import_classnames17.default)(className, bsPrefix),
|
|
29379
|
+
...props
|
|
29380
|
+
});
|
|
29381
|
+
});
|
|
29382
|
+
CardText.displayName = "CardText";
|
|
29383
|
+
var CardText_default = CardText;
|
|
29384
|
+
|
|
29385
|
+
// node_modules/react-bootstrap/esm/CardTitle.js
|
|
29386
|
+
var React38 = __toESM(require_react());
|
|
29387
|
+
var import_classnames18 = __toESM(require_classnames());
|
|
29388
|
+
var import_jsx_runtime23 = __toESM(require_jsx_runtime());
|
|
29389
|
+
"use client";
|
|
29390
|
+
var DivStyledAsH5 = divWithClassName_default("h5");
|
|
29391
|
+
var CardTitle = /* @__PURE__ */ React38.forwardRef(({
|
|
29392
|
+
className,
|
|
29393
|
+
bsPrefix,
|
|
29394
|
+
as: Component4 = DivStyledAsH5,
|
|
29395
|
+
...props
|
|
29396
|
+
}, ref) => {
|
|
29397
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, "card-title");
|
|
29398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Component4, {
|
|
29399
|
+
ref,
|
|
29400
|
+
className: (0, import_classnames18.default)(className, bsPrefix),
|
|
29401
|
+
...props
|
|
29402
|
+
});
|
|
29403
|
+
});
|
|
29404
|
+
CardTitle.displayName = "CardTitle";
|
|
29405
|
+
var CardTitle_default = CardTitle;
|
|
29406
|
+
|
|
29407
|
+
// node_modules/react-bootstrap/esm/Card.js
|
|
29408
|
+
var import_jsx_runtime24 = __toESM(require_jsx_runtime());
|
|
29409
|
+
"use client";
|
|
29410
|
+
var Card = /* @__PURE__ */ React39.forwardRef(({
|
|
29411
|
+
bsPrefix,
|
|
29412
|
+
className,
|
|
29413
|
+
bg,
|
|
29414
|
+
text,
|
|
29415
|
+
border,
|
|
29416
|
+
body = false,
|
|
29417
|
+
children,
|
|
29418
|
+
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
29419
|
+
as: Component4 = "div",
|
|
29420
|
+
...props
|
|
29421
|
+
}, ref) => {
|
|
29422
|
+
const prefix = useBootstrapPrefix(bsPrefix, "card");
|
|
29423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Component4, {
|
|
29424
|
+
ref,
|
|
29425
|
+
...props,
|
|
29426
|
+
className: (0, import_classnames19.default)(className, prefix, bg && `bg-${bg}`, text && `text-${text}`, border && `border-${border}`),
|
|
29427
|
+
children: body ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CardBody_default, {
|
|
29428
|
+
children
|
|
29429
|
+
}) : children
|
|
29430
|
+
});
|
|
29431
|
+
});
|
|
29432
|
+
Card.displayName = "Card";
|
|
29433
|
+
var Card_default = Object.assign(Card, {
|
|
29434
|
+
Img: CardImg_default,
|
|
29435
|
+
Title: CardTitle_default,
|
|
29436
|
+
Subtitle: CardSubtitle_default,
|
|
29437
|
+
Body: CardBody_default,
|
|
29438
|
+
Link: CardLink_default,
|
|
29439
|
+
Text: CardText_default,
|
|
29440
|
+
Header: CardHeader_default,
|
|
29441
|
+
Footer: CardFooter_default,
|
|
29442
|
+
ImgOverlay: CardImgOverlay_default
|
|
29443
|
+
});
|
|
29444
|
+
|
|
29151
29445
|
// node_modules/react-bootstrap/esm/Container.js
|
|
29152
|
-
var
|
|
29153
|
-
var
|
|
29154
|
-
var
|
|
29446
|
+
var import_classnames20 = __toESM(require_classnames());
|
|
29447
|
+
var React40 = __toESM(require_react());
|
|
29448
|
+
var import_jsx_runtime25 = __toESM(require_jsx_runtime());
|
|
29155
29449
|
"use client";
|
|
29156
|
-
var Container = /* @__PURE__ */
|
|
29450
|
+
var Container = /* @__PURE__ */ React40.forwardRef(({
|
|
29157
29451
|
bsPrefix,
|
|
29158
29452
|
fluid = false,
|
|
29159
29453
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -29163,10 +29457,10 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29163
29457
|
}, ref) => {
|
|
29164
29458
|
const prefix = useBootstrapPrefix(bsPrefix, "container");
|
|
29165
29459
|
const suffix = typeof fluid === "string" ? `-${fluid}` : "-fluid";
|
|
29166
|
-
return /* @__PURE__ */ (0,
|
|
29460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Component4, {
|
|
29167
29461
|
ref,
|
|
29168
29462
|
...props,
|
|
29169
|
-
className: (0,
|
|
29463
|
+
className: (0, import_classnames20.default)(className, fluid ? `${prefix}${suffix}` : prefix)
|
|
29170
29464
|
});
|
|
29171
29465
|
});
|
|
29172
29466
|
Container.displayName = "Container";
|
|
@@ -29179,17 +29473,17 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29179
29473
|
}
|
|
29180
29474
|
|
|
29181
29475
|
// node_modules/@restart/ui/node_modules/uncontrollable/lib/esm/index.js
|
|
29182
|
-
var
|
|
29476
|
+
var import_react26 = __toESM(require_react());
|
|
29183
29477
|
function useUncontrolledProp2(propValue, defaultValue, handler) {
|
|
29184
|
-
const wasPropRef = (0,
|
|
29185
|
-
const [stateValue, setState] = (0,
|
|
29478
|
+
const wasPropRef = (0, import_react26.useRef)(propValue !== void 0);
|
|
29479
|
+
const [stateValue, setState] = (0, import_react26.useState)(defaultValue);
|
|
29186
29480
|
const isProp2 = propValue !== void 0;
|
|
29187
29481
|
const wasProp = wasPropRef.current;
|
|
29188
29482
|
wasPropRef.current = isProp2;
|
|
29189
29483
|
if (!isProp2 && wasProp && stateValue !== defaultValue) {
|
|
29190
29484
|
setState(defaultValue);
|
|
29191
29485
|
}
|
|
29192
|
-
return [isProp2 ? propValue : stateValue, (0,
|
|
29486
|
+
return [isProp2 ? propValue : stateValue, (0, import_react26.useCallback)((...args) => {
|
|
29193
29487
|
const [value, ...rest] = args;
|
|
29194
29488
|
let returnValue = handler == null ? void 0 : handler(value, ...rest);
|
|
29195
29489
|
setState(value);
|
|
@@ -29198,9 +29492,9 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29198
29492
|
}
|
|
29199
29493
|
|
|
29200
29494
|
// node_modules/@restart/ui/node_modules/@restart/hooks/esm/useForceUpdate.js
|
|
29201
|
-
var
|
|
29495
|
+
var import_react27 = __toESM(require_react());
|
|
29202
29496
|
function useForceUpdate() {
|
|
29203
|
-
const [, dispatch] = (0,
|
|
29497
|
+
const [, dispatch] = (0, import_react27.useReducer)((revision) => revision + 1, 0);
|
|
29204
29498
|
return dispatch;
|
|
29205
29499
|
}
|
|
29206
29500
|
|
|
@@ -29213,21 +29507,21 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29213
29507
|
}
|
|
29214
29508
|
|
|
29215
29509
|
// node_modules/@react-aria/ssr/dist/SSRProvider.mjs
|
|
29216
|
-
var
|
|
29510
|
+
var import_react28 = __toESM(require_react(), 1);
|
|
29217
29511
|
var $b5e257d569688ac6$var$defaultContext = {
|
|
29218
29512
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
29219
29513
|
current: 0
|
|
29220
29514
|
};
|
|
29221
|
-
var $b5e257d569688ac6$var$SSRContext = /* @__PURE__ */ (0,
|
|
29222
|
-
var $b5e257d569688ac6$var$IsSSRContext = /* @__PURE__ */ (0,
|
|
29515
|
+
var $b5e257d569688ac6$var$SSRContext = /* @__PURE__ */ (0, import_react28.default).createContext($b5e257d569688ac6$var$defaultContext);
|
|
29516
|
+
var $b5e257d569688ac6$var$IsSSRContext = /* @__PURE__ */ (0, import_react28.default).createContext(false);
|
|
29223
29517
|
var $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
29224
29518
|
var $b5e257d569688ac6$var$componentIds = /* @__PURE__ */ new WeakMap();
|
|
29225
29519
|
function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
|
29226
|
-
let ctx = (0,
|
|
29227
|
-
let ref = (0,
|
|
29520
|
+
let ctx = (0, import_react28.useContext)($b5e257d569688ac6$var$SSRContext);
|
|
29521
|
+
let ref = (0, import_react28.useRef)(null);
|
|
29228
29522
|
if (ref.current === null && !isDisabled) {
|
|
29229
29523
|
var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
29230
|
-
let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = (0,
|
|
29524
|
+
let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = (0, import_react28.default).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
|
|
29231
29525
|
if (currentOwner) {
|
|
29232
29526
|
let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
|
|
29233
29527
|
if (prevComponentValue == null)
|
|
@@ -29245,7 +29539,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29245
29539
|
return ref.current;
|
|
29246
29540
|
}
|
|
29247
29541
|
function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
|
|
29248
|
-
let ctx = (0,
|
|
29542
|
+
let ctx = (0, import_react28.useContext)($b5e257d569688ac6$var$SSRContext);
|
|
29249
29543
|
if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM)
|
|
29250
29544
|
console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
29251
29545
|
let counter = $b5e257d569688ac6$var$useCounter(!!defaultId);
|
|
@@ -29253,12 +29547,12 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29253
29547
|
return defaultId || `${prefix}-${counter}`;
|
|
29254
29548
|
}
|
|
29255
29549
|
function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
|
|
29256
|
-
let id = (0,
|
|
29257
|
-
let [didSSR] = (0,
|
|
29550
|
+
let id = (0, import_react28.default).useId();
|
|
29551
|
+
let [didSSR] = (0, import_react28.useState)($b5e257d569688ac6$export$535bd6ca7f90a273());
|
|
29258
29552
|
let prefix = didSSR || false ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
|
|
29259
29553
|
return defaultId || `${prefix}-${id}`;
|
|
29260
29554
|
}
|
|
29261
|
-
var $b5e257d569688ac6$export$619500959fc48b26 = typeof (0,
|
|
29555
|
+
var $b5e257d569688ac6$export$619500959fc48b26 = typeof (0, import_react28.default)["useId"] === "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
|
|
29262
29556
|
function $b5e257d569688ac6$var$getSnapshot() {
|
|
29263
29557
|
return false;
|
|
29264
29558
|
}
|
|
@@ -29270,14 +29564,14 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29270
29564
|
};
|
|
29271
29565
|
}
|
|
29272
29566
|
function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
29273
|
-
if (typeof (0,
|
|
29274
|
-
return (0,
|
|
29275
|
-
return (0,
|
|
29567
|
+
if (typeof (0, import_react28.default)["useSyncExternalStore"] === "function")
|
|
29568
|
+
return (0, import_react28.default)["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
|
|
29569
|
+
return (0, import_react28.useContext)($b5e257d569688ac6$var$IsSSRContext);
|
|
29276
29570
|
}
|
|
29277
29571
|
|
|
29278
29572
|
// node_modules/@restart/ui/esm/SelectableContext.js
|
|
29279
|
-
var
|
|
29280
|
-
var SelectableContext = /* @__PURE__ */
|
|
29573
|
+
var React41 = __toESM(require_react());
|
|
29574
|
+
var SelectableContext = /* @__PURE__ */ React41.createContext(null);
|
|
29281
29575
|
var makeEventKey = (eventKey, href = null) => {
|
|
29282
29576
|
if (eventKey != null)
|
|
29283
29577
|
return String(eventKey);
|
|
@@ -29286,8 +29580,8 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29286
29580
|
var SelectableContext_default = SelectableContext;
|
|
29287
29581
|
|
|
29288
29582
|
// node_modules/@restart/ui/esm/NavContext.js
|
|
29289
|
-
var
|
|
29290
|
-
var NavContext = /* @__PURE__ */
|
|
29583
|
+
var React42 = __toESM(require_react());
|
|
29584
|
+
var NavContext = /* @__PURE__ */ React42.createContext(null);
|
|
29291
29585
|
NavContext.displayName = "NavContext";
|
|
29292
29586
|
var NavContext_default = NavContext;
|
|
29293
29587
|
|
|
@@ -29302,34 +29596,39 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29302
29596
|
}
|
|
29303
29597
|
|
|
29304
29598
|
// node_modules/@restart/ui/esm/useWindow.js
|
|
29305
|
-
var
|
|
29306
|
-
var Context = /* @__PURE__ */ (0,
|
|
29599
|
+
var import_react29 = __toESM(require_react());
|
|
29600
|
+
var Context = /* @__PURE__ */ (0, import_react29.createContext)(canUseDOM_default ? window : void 0);
|
|
29307
29601
|
var WindowProvider = Context.Provider;
|
|
29308
29602
|
function useWindow() {
|
|
29309
|
-
return (0,
|
|
29603
|
+
return (0, import_react29.useContext)(Context);
|
|
29310
29604
|
}
|
|
29311
29605
|
|
|
29312
29606
|
// node_modules/@restart/hooks/esm/useIsomorphicEffect.js
|
|
29313
|
-
var
|
|
29607
|
+
var import_react30 = __toESM(require_react());
|
|
29314
29608
|
var isReactNative2 = typeof global !== "undefined" && // @ts-ignore
|
|
29315
29609
|
global.navigator && // @ts-ignore
|
|
29316
29610
|
global.navigator.product === "ReactNative";
|
|
29317
29611
|
var isDOM2 = typeof document !== "undefined";
|
|
29318
|
-
var useIsomorphicEffect_default2 = isDOM2 || isReactNative2 ?
|
|
29612
|
+
var useIsomorphicEffect_default2 = isDOM2 || isReactNative2 ? import_react30.useLayoutEffect : import_react30.useEffect;
|
|
29319
29613
|
|
|
29320
29614
|
// node_modules/react-bootstrap/esm/NavbarContext.js
|
|
29321
|
-
var
|
|
29615
|
+
var React43 = __toESM(require_react());
|
|
29322
29616
|
"use client";
|
|
29323
|
-
var context2 = /* @__PURE__ */
|
|
29617
|
+
var context2 = /* @__PURE__ */ React43.createContext(null);
|
|
29324
29618
|
context2.displayName = "NavbarContext";
|
|
29325
29619
|
var NavbarContext_default = context2;
|
|
29326
29620
|
|
|
29621
|
+
// node_modules/react-bootstrap/esm/ListGroup.js
|
|
29622
|
+
var import_classnames22 = __toESM(require_classnames());
|
|
29623
|
+
var React48 = __toESM(require_react());
|
|
29624
|
+
var import_warning2 = __toESM(require_warning());
|
|
29625
|
+
|
|
29327
29626
|
// node_modules/@restart/ui/esm/Nav.js
|
|
29328
|
-
var
|
|
29329
|
-
var
|
|
29627
|
+
var React46 = __toESM(require_react());
|
|
29628
|
+
var import_react33 = __toESM(require_react());
|
|
29330
29629
|
|
|
29331
29630
|
// node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergedRefs.js
|
|
29332
|
-
var
|
|
29631
|
+
var import_react31 = __toESM(require_react());
|
|
29333
29632
|
var toFnRef2 = (ref) => !ref || typeof ref === "function" ? ref : (value) => {
|
|
29334
29633
|
ref.current = value;
|
|
29335
29634
|
};
|
|
@@ -29344,19 +29643,19 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29344
29643
|
};
|
|
29345
29644
|
}
|
|
29346
29645
|
function useMergedRefs2(refA, refB) {
|
|
29347
|
-
return (0,
|
|
29646
|
+
return (0, import_react31.useMemo)(() => mergeRefs3(refA, refB), [refA, refB]);
|
|
29348
29647
|
}
|
|
29349
29648
|
var useMergedRefs_default2 = useMergedRefs2;
|
|
29350
29649
|
|
|
29351
29650
|
// node_modules/@restart/ui/esm/TabContext.js
|
|
29352
|
-
var
|
|
29353
|
-
var TabContext = /* @__PURE__ */
|
|
29651
|
+
var React44 = __toESM(require_react());
|
|
29652
|
+
var TabContext = /* @__PURE__ */ React44.createContext(null);
|
|
29354
29653
|
var TabContext_default = TabContext;
|
|
29355
29654
|
|
|
29356
29655
|
// node_modules/@restart/ui/esm/NavItem.js
|
|
29357
|
-
var
|
|
29358
|
-
var
|
|
29359
|
-
var
|
|
29656
|
+
var React45 = __toESM(require_react());
|
|
29657
|
+
var import_react32 = __toESM(require_react());
|
|
29658
|
+
var import_jsx_runtime26 = __toESM(require_jsx_runtime());
|
|
29360
29659
|
var _excluded3 = ["as", "active", "eventKey"];
|
|
29361
29660
|
function _objectWithoutPropertiesLoose4(r, e) {
|
|
29362
29661
|
if (null == r)
|
|
@@ -29378,9 +29677,9 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29378
29677
|
role,
|
|
29379
29678
|
disabled
|
|
29380
29679
|
}) {
|
|
29381
|
-
const parentOnSelect = (0,
|
|
29382
|
-
const navContext = (0,
|
|
29383
|
-
const tabContext = (0,
|
|
29680
|
+
const parentOnSelect = (0, import_react32.useContext)(SelectableContext_default);
|
|
29681
|
+
const navContext = (0, import_react32.useContext)(NavContext_default);
|
|
29682
|
+
const tabContext = (0, import_react32.useContext)(TabContext_default);
|
|
29384
29683
|
let isActive = active;
|
|
29385
29684
|
const props = {
|
|
29386
29685
|
role
|
|
@@ -29421,7 +29720,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29421
29720
|
isActive
|
|
29422
29721
|
}];
|
|
29423
29722
|
}
|
|
29424
|
-
var NavItem = /* @__PURE__ */
|
|
29723
|
+
var NavItem = /* @__PURE__ */ React45.forwardRef((_ref, ref) => {
|
|
29425
29724
|
let {
|
|
29426
29725
|
as: Component4 = Button_default,
|
|
29427
29726
|
active,
|
|
@@ -29432,7 +29731,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29432
29731
|
active
|
|
29433
29732
|
}, options));
|
|
29434
29733
|
props[dataAttr("active")] = meta.isActive;
|
|
29435
|
-
return /* @__PURE__ */ (0,
|
|
29734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Component4, Object.assign({}, options, props, {
|
|
29436
29735
|
ref
|
|
29437
29736
|
}));
|
|
29438
29737
|
});
|
|
@@ -29440,7 +29739,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29440
29739
|
var NavItem_default = NavItem;
|
|
29441
29740
|
|
|
29442
29741
|
// node_modules/@restart/ui/esm/Nav.js
|
|
29443
|
-
var
|
|
29742
|
+
var import_jsx_runtime27 = __toESM(require_jsx_runtime());
|
|
29444
29743
|
var _excluded4 = ["as", "onSelect", "activeKey", "role", "onKeyDown"];
|
|
29445
29744
|
function _objectWithoutPropertiesLoose5(r, e) {
|
|
29446
29745
|
if (null == r)
|
|
@@ -29457,7 +29756,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29457
29756
|
var noop2 = () => {
|
|
29458
29757
|
};
|
|
29459
29758
|
var EVENT_KEY_ATTR = dataAttr("event-key");
|
|
29460
|
-
var Nav = /* @__PURE__ */
|
|
29759
|
+
var Nav = /* @__PURE__ */ React46.forwardRef((_ref, ref) => {
|
|
29461
29760
|
let {
|
|
29462
29761
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
29463
29762
|
as: Component4 = "div",
|
|
@@ -29467,9 +29766,9 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29467
29766
|
onKeyDown
|
|
29468
29767
|
} = _ref, props = _objectWithoutPropertiesLoose5(_ref, _excluded4);
|
|
29469
29768
|
const forceUpdate = useForceUpdate();
|
|
29470
|
-
const needsRefocusRef = (0,
|
|
29471
|
-
const parentOnSelect = (0,
|
|
29472
|
-
const tabContext = (0,
|
|
29769
|
+
const needsRefocusRef = (0, import_react33.useRef)(false);
|
|
29770
|
+
const parentOnSelect = (0, import_react33.useContext)(SelectableContext_default);
|
|
29771
|
+
const tabContext = (0, import_react33.useContext)(TabContext_default);
|
|
29473
29772
|
let getControlledId, getControllerId;
|
|
29474
29773
|
if (tabContext) {
|
|
29475
29774
|
role = role || "tablist";
|
|
@@ -29477,7 +29776,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29477
29776
|
getControlledId = tabContext.getControlledId;
|
|
29478
29777
|
getControllerId = tabContext.getControllerId;
|
|
29479
29778
|
}
|
|
29480
|
-
const listNode = (0,
|
|
29779
|
+
const listNode = (0, import_react33.useRef)(null);
|
|
29481
29780
|
const getNextActiveTab = (offset) => {
|
|
29482
29781
|
const currentListNode = listNode.current;
|
|
29483
29782
|
if (!currentListNode)
|
|
@@ -29527,7 +29826,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29527
29826
|
needsRefocusRef.current = true;
|
|
29528
29827
|
forceUpdate();
|
|
29529
29828
|
};
|
|
29530
|
-
(0,
|
|
29829
|
+
(0, import_react33.useEffect)(() => {
|
|
29531
29830
|
if (listNode.current && needsRefocusRef.current) {
|
|
29532
29831
|
const activeChild = listNode.current.querySelector(`[${EVENT_KEY_ATTR}][aria-selected=true]`);
|
|
29533
29832
|
activeChild == null ? void 0 : activeChild.focus();
|
|
@@ -29535,9 +29834,9 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29535
29834
|
needsRefocusRef.current = false;
|
|
29536
29835
|
});
|
|
29537
29836
|
const mergedRef = useMergedRefs_default2(ref, listNode);
|
|
29538
|
-
return /* @__PURE__ */ (0,
|
|
29837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectableContext_default.Provider, {
|
|
29539
29838
|
value: handleSelect,
|
|
29540
|
-
children: /* @__PURE__ */ (0,
|
|
29839
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(NavContext_default.Provider, {
|
|
29541
29840
|
value: {
|
|
29542
29841
|
role,
|
|
29543
29842
|
// used by NavLink to determine it's role
|
|
@@ -29545,7 +29844,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29545
29844
|
getControlledId: getControlledId || noop2,
|
|
29546
29845
|
getControllerId: getControllerId || noop2
|
|
29547
29846
|
},
|
|
29548
|
-
children: /* @__PURE__ */ (0,
|
|
29847
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Component4, Object.assign({}, props, {
|
|
29549
29848
|
onKeyDown: handleKeyDown,
|
|
29550
29849
|
ref: mergedRef,
|
|
29551
29850
|
role
|
|
@@ -29558,39 +29857,121 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29558
29857
|
Item: NavItem_default
|
|
29559
29858
|
});
|
|
29560
29859
|
|
|
29561
|
-
// node_modules/
|
|
29562
|
-
|
|
29563
|
-
|
|
29564
|
-
|
|
29860
|
+
// node_modules/react-bootstrap/esm/ListGroupItem.js
|
|
29861
|
+
var import_classnames21 = __toESM(require_classnames());
|
|
29862
|
+
var React47 = __toESM(require_react());
|
|
29863
|
+
var import_warning = __toESM(require_warning());
|
|
29864
|
+
var import_jsx_runtime28 = __toESM(require_jsx_runtime());
|
|
29865
|
+
"use client";
|
|
29866
|
+
var ListGroupItem = /* @__PURE__ */ React47.forwardRef(({
|
|
29867
|
+
bsPrefix,
|
|
29868
|
+
active,
|
|
29869
|
+
disabled,
|
|
29870
|
+
eventKey,
|
|
29871
|
+
className,
|
|
29872
|
+
variant,
|
|
29873
|
+
action,
|
|
29874
|
+
as,
|
|
29875
|
+
...props
|
|
29876
|
+
}, ref) => {
|
|
29877
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, "list-group-item");
|
|
29878
|
+
const [navItemProps, meta] = useNavItem({
|
|
29879
|
+
key: makeEventKey(eventKey, props.href),
|
|
29880
|
+
active,
|
|
29881
|
+
...props
|
|
29882
|
+
});
|
|
29883
|
+
const handleClick = useEventCallback((event) => {
|
|
29884
|
+
if (disabled) {
|
|
29885
|
+
event.preventDefault();
|
|
29886
|
+
event.stopPropagation();
|
|
29887
|
+
return;
|
|
29888
|
+
}
|
|
29889
|
+
navItemProps.onClick(event);
|
|
29890
|
+
});
|
|
29891
|
+
if (disabled && props.tabIndex === void 0) {
|
|
29892
|
+
props.tabIndex = -1;
|
|
29893
|
+
props["aria-disabled"] = true;
|
|
29565
29894
|
}
|
|
29566
|
-
|
|
29567
|
-
|
|
29568
|
-
|
|
29569
|
-
|
|
29570
|
-
|
|
29571
|
-
|
|
29895
|
+
const Component4 = as || (action ? props.href ? "a" : "button" : "div");
|
|
29896
|
+
true ? (0, import_warning.default)(as || !(!action && props.href), "`action=false` and `href` should not be used together.") : void 0;
|
|
29897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Component4, {
|
|
29898
|
+
ref,
|
|
29899
|
+
...props,
|
|
29900
|
+
...navItemProps,
|
|
29901
|
+
onClick: handleClick,
|
|
29902
|
+
className: (0, import_classnames21.default)(className, bsPrefix, meta.isActive && "active", disabled && "disabled", variant && `${bsPrefix}-${variant}`, action && `${bsPrefix}-action`)
|
|
29903
|
+
});
|
|
29904
|
+
});
|
|
29905
|
+
ListGroupItem.displayName = "ListGroupItem";
|
|
29906
|
+
var ListGroupItem_default = ListGroupItem;
|
|
29907
|
+
|
|
29908
|
+
// node_modules/react-bootstrap/esm/ListGroup.js
|
|
29909
|
+
var import_jsx_runtime29 = __toESM(require_jsx_runtime());
|
|
29910
|
+
"use client";
|
|
29911
|
+
var ListGroup = /* @__PURE__ */ React48.forwardRef((props, ref) => {
|
|
29912
|
+
const {
|
|
29913
|
+
className,
|
|
29914
|
+
bsPrefix: initialBsPrefix,
|
|
29915
|
+
variant,
|
|
29916
|
+
horizontal,
|
|
29917
|
+
numbered,
|
|
29918
|
+
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
29919
|
+
as = "div",
|
|
29920
|
+
...controlledProps
|
|
29921
|
+
} = useUncontrolled(props, {
|
|
29922
|
+
activeKey: "onSelect"
|
|
29923
|
+
});
|
|
29924
|
+
const bsPrefix = useBootstrapPrefix(initialBsPrefix, "list-group");
|
|
29925
|
+
let horizontalVariant;
|
|
29926
|
+
if (horizontal) {
|
|
29927
|
+
horizontalVariant = horizontal === true ? "horizontal" : `horizontal-${horizontal}`;
|
|
29928
|
+
}
|
|
29929
|
+
true ? (0, import_warning2.default)(!(horizontal && variant === "flush"), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
29930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Nav_default, {
|
|
29931
|
+
ref,
|
|
29932
|
+
...controlledProps,
|
|
29933
|
+
as,
|
|
29934
|
+
className: (0, import_classnames22.default)(className, bsPrefix, variant && `${bsPrefix}-${variant}`, horizontalVariant && `${bsPrefix}-${horizontalVariant}`, numbered && `${bsPrefix}-numbered`)
|
|
29935
|
+
});
|
|
29936
|
+
});
|
|
29937
|
+
ListGroup.displayName = "ListGroup";
|
|
29938
|
+
var ListGroup_default = Object.assign(ListGroup, {
|
|
29939
|
+
Item: ListGroupItem_default
|
|
29940
|
+
});
|
|
29941
|
+
|
|
29942
|
+
// node_modules/dom-helpers/esm/activeElement.js
|
|
29943
|
+
function activeElement(doc) {
|
|
29944
|
+
if (doc === void 0) {
|
|
29945
|
+
doc = ownerDocument();
|
|
29946
|
+
}
|
|
29947
|
+
try {
|
|
29948
|
+
var active = doc.activeElement;
|
|
29949
|
+
if (!active || !active.nodeName)
|
|
29950
|
+
return null;
|
|
29951
|
+
return active;
|
|
29952
|
+
} catch (e) {
|
|
29572
29953
|
return doc.body;
|
|
29573
29954
|
}
|
|
29574
29955
|
}
|
|
29575
29956
|
|
|
29576
29957
|
// node_modules/@restart/ui/esm/Modal.js
|
|
29577
|
-
var
|
|
29578
|
-
var
|
|
29958
|
+
var import_react40 = __toESM(require_react());
|
|
29959
|
+
var React51 = __toESM(require_react());
|
|
29579
29960
|
var import_react_dom3 = __toESM(require_react_dom());
|
|
29580
29961
|
|
|
29581
29962
|
// node_modules/@restart/ui/node_modules/@restart/hooks/esm/useUpdatedRef.js
|
|
29582
|
-
var
|
|
29963
|
+
var import_react34 = __toESM(require_react());
|
|
29583
29964
|
function useUpdatedRef(value) {
|
|
29584
|
-
const valueRef = (0,
|
|
29965
|
+
const valueRef = (0, import_react34.useRef)(value);
|
|
29585
29966
|
valueRef.current = value;
|
|
29586
29967
|
return valueRef;
|
|
29587
29968
|
}
|
|
29588
29969
|
|
|
29589
29970
|
// node_modules/@restart/ui/node_modules/@restart/hooks/esm/useWillUnmount.js
|
|
29590
|
-
var
|
|
29971
|
+
var import_react35 = __toESM(require_react());
|
|
29591
29972
|
function useWillUnmount(fn) {
|
|
29592
29973
|
const onUnmount = useUpdatedRef(fn);
|
|
29593
|
-
(0,
|
|
29974
|
+
(0, import_react35.useEffect)(() => () => onUnmount.current(), []);
|
|
29594
29975
|
}
|
|
29595
29976
|
|
|
29596
29977
|
// node_modules/@restart/ui/esm/getScrollbarWidth.js
|
|
@@ -29684,7 +30065,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29684
30065
|
var ModalManager_default = ModalManager;
|
|
29685
30066
|
|
|
29686
30067
|
// node_modules/@restart/ui/esm/useWaitForDOMRef.js
|
|
29687
|
-
var
|
|
30068
|
+
var import_react36 = __toESM(require_react());
|
|
29688
30069
|
var resolveContainerRef = (ref, document2) => {
|
|
29689
30070
|
if (!canUseDOM_default)
|
|
29690
30071
|
return null;
|
|
@@ -29700,18 +30081,18 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29700
30081
|
};
|
|
29701
30082
|
function useWaitForDOMRef(ref, onResolved) {
|
|
29702
30083
|
const window2 = useWindow();
|
|
29703
|
-
const [resolvedRef, setRef] = (0,
|
|
30084
|
+
const [resolvedRef, setRef] = (0, import_react36.useState)(() => resolveContainerRef(ref, window2 == null ? void 0 : window2.document));
|
|
29704
30085
|
if (!resolvedRef) {
|
|
29705
30086
|
const earlyRef = resolveContainerRef(ref);
|
|
29706
30087
|
if (earlyRef)
|
|
29707
30088
|
setRef(earlyRef);
|
|
29708
30089
|
}
|
|
29709
|
-
(0,
|
|
30090
|
+
(0, import_react36.useEffect)(() => {
|
|
29710
30091
|
if (onResolved && resolvedRef) {
|
|
29711
30092
|
onResolved(resolvedRef);
|
|
29712
30093
|
}
|
|
29713
30094
|
}, [onResolved, resolvedRef]);
|
|
29714
|
-
(0,
|
|
30095
|
+
(0, import_react36.useEffect)(() => {
|
|
29715
30096
|
const nextRef = resolveContainerRef(ref);
|
|
29716
30097
|
if (nextRef !== resolvedRef) {
|
|
29717
30098
|
setRef(nextRef);
|
|
@@ -29721,10 +30102,10 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29721
30102
|
}
|
|
29722
30103
|
|
|
29723
30104
|
// node_modules/@restart/ui/esm/ImperativeTransition.js
|
|
29724
|
-
var
|
|
30105
|
+
var import_react39 = __toESM(require_react());
|
|
29725
30106
|
|
|
29726
30107
|
// node_modules/@restart/ui/esm/NoopTransition.js
|
|
29727
|
-
var
|
|
30108
|
+
var import_react37 = __toESM(require_react());
|
|
29728
30109
|
function NoopTransition({
|
|
29729
30110
|
children,
|
|
29730
30111
|
in: inProp,
|
|
@@ -29732,10 +30113,10 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29732
30113
|
mountOnEnter,
|
|
29733
30114
|
unmountOnExit
|
|
29734
30115
|
}) {
|
|
29735
|
-
const ref = (0,
|
|
29736
|
-
const hasEnteredRef = (0,
|
|
30116
|
+
const ref = (0, import_react37.useRef)(null);
|
|
30117
|
+
const hasEnteredRef = (0, import_react37.useRef)(inProp);
|
|
29737
30118
|
const handleExited = useEventCallback2(onExited);
|
|
29738
|
-
(0,
|
|
30119
|
+
(0, import_react37.useEffect)(() => {
|
|
29739
30120
|
if (inProp)
|
|
29740
30121
|
hasEnteredRef.current = true;
|
|
29741
30122
|
else {
|
|
@@ -29743,7 +30124,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29743
30124
|
}
|
|
29744
30125
|
}, [inProp, handleExited]);
|
|
29745
30126
|
const combinedRef = useMergedRefs_default2(ref, getChildRef(children));
|
|
29746
|
-
const child = /* @__PURE__ */ (0,
|
|
30127
|
+
const child = /* @__PURE__ */ (0, import_react37.cloneElement)(children, {
|
|
29747
30128
|
ref: combinedRef
|
|
29748
30129
|
});
|
|
29749
30130
|
if (inProp)
|
|
@@ -29759,10 +30140,10 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29759
30140
|
var NoopTransition_default = NoopTransition;
|
|
29760
30141
|
|
|
29761
30142
|
// node_modules/@restart/ui/esm/RTGTransition.js
|
|
29762
|
-
var
|
|
30143
|
+
var React49 = __toESM(require_react());
|
|
29763
30144
|
|
|
29764
30145
|
// node_modules/@restart/ui/esm/useRTGTransitionProps.js
|
|
29765
|
-
var
|
|
30146
|
+
var import_react38 = __toESM(require_react());
|
|
29766
30147
|
var _excluded5 = ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "addEndListener", "children"];
|
|
29767
30148
|
function _objectWithoutPropertiesLoose6(r, e) {
|
|
29768
30149
|
if (null == r)
|
|
@@ -29787,20 +30168,20 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29787
30168
|
addEndListener,
|
|
29788
30169
|
children
|
|
29789
30170
|
} = _ref, props = _objectWithoutPropertiesLoose6(_ref, _excluded5);
|
|
29790
|
-
const nodeRef = (0,
|
|
30171
|
+
const nodeRef = (0, import_react38.useRef)(null);
|
|
29791
30172
|
const mergedRef = useMergedRefs_default2(nodeRef, getChildRef(children));
|
|
29792
30173
|
const normalize = (callback) => (param) => {
|
|
29793
30174
|
if (callback && nodeRef.current) {
|
|
29794
30175
|
callback(nodeRef.current, param);
|
|
29795
30176
|
}
|
|
29796
30177
|
};
|
|
29797
|
-
const handleEnter = (0,
|
|
29798
|
-
const handleEntering = (0,
|
|
29799
|
-
const handleEntered = (0,
|
|
29800
|
-
const handleExit = (0,
|
|
29801
|
-
const handleExiting = (0,
|
|
29802
|
-
const handleExited = (0,
|
|
29803
|
-
const handleAddEndListener = (0,
|
|
30178
|
+
const handleEnter = (0, import_react38.useCallback)(normalize(onEnter), [onEnter]);
|
|
30179
|
+
const handleEntering = (0, import_react38.useCallback)(normalize(onEntering), [onEntering]);
|
|
30180
|
+
const handleEntered = (0, import_react38.useCallback)(normalize(onEntered), [onEntered]);
|
|
30181
|
+
const handleExit = (0, import_react38.useCallback)(normalize(onExit), [onExit]);
|
|
30182
|
+
const handleExiting = (0, import_react38.useCallback)(normalize(onExiting), [onExiting]);
|
|
30183
|
+
const handleExited = (0, import_react38.useCallback)(normalize(onExited), [onExited]);
|
|
30184
|
+
const handleAddEndListener = (0, import_react38.useCallback)(normalize(addEndListener), [addEndListener]);
|
|
29804
30185
|
return Object.assign({}, props, {
|
|
29805
30186
|
nodeRef
|
|
29806
30187
|
}, onEnter && {
|
|
@@ -29823,14 +30204,14 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29823
30204
|
children(status, Object.assign({}, innerProps, {
|
|
29824
30205
|
ref: mergedRef
|
|
29825
30206
|
}))
|
|
29826
|
-
) : /* @__PURE__ */ (0,
|
|
30207
|
+
) : /* @__PURE__ */ (0, import_react38.cloneElement)(children, {
|
|
29827
30208
|
ref: mergedRef
|
|
29828
30209
|
})
|
|
29829
30210
|
});
|
|
29830
30211
|
}
|
|
29831
30212
|
|
|
29832
30213
|
// node_modules/@restart/ui/esm/RTGTransition.js
|
|
29833
|
-
var
|
|
30214
|
+
var import_jsx_runtime30 = __toESM(require_jsx_runtime());
|
|
29834
30215
|
var _excluded6 = ["component"];
|
|
29835
30216
|
function _objectWithoutPropertiesLoose7(r, e) {
|
|
29836
30217
|
if (null == r)
|
|
@@ -29844,25 +30225,25 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29844
30225
|
}
|
|
29845
30226
|
return t;
|
|
29846
30227
|
}
|
|
29847
|
-
var RTGTransition = /* @__PURE__ */
|
|
30228
|
+
var RTGTransition = /* @__PURE__ */ React49.forwardRef((_ref, ref) => {
|
|
29848
30229
|
let {
|
|
29849
30230
|
component: Component4
|
|
29850
30231
|
} = _ref, props = _objectWithoutPropertiesLoose7(_ref, _excluded6);
|
|
29851
30232
|
const transitionProps = useRTGTransitionProps(props);
|
|
29852
|
-
return /* @__PURE__ */ (0,
|
|
30233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Component4, Object.assign({
|
|
29853
30234
|
ref
|
|
29854
30235
|
}, transitionProps));
|
|
29855
30236
|
});
|
|
29856
30237
|
var RTGTransition_default = RTGTransition;
|
|
29857
30238
|
|
|
29858
30239
|
// node_modules/@restart/ui/esm/ImperativeTransition.js
|
|
29859
|
-
var
|
|
30240
|
+
var import_jsx_runtime31 = __toESM(require_jsx_runtime());
|
|
29860
30241
|
function useTransition({
|
|
29861
30242
|
in: inProp,
|
|
29862
30243
|
onTransition
|
|
29863
30244
|
}) {
|
|
29864
|
-
const ref = (0,
|
|
29865
|
-
const isInitialRef = (0,
|
|
30245
|
+
const ref = (0, import_react39.useRef)(null);
|
|
30246
|
+
const isInitialRef = (0, import_react39.useRef)(true);
|
|
29866
30247
|
const handleTransition = useEventCallback2(onTransition);
|
|
29867
30248
|
useIsomorphicEffect_default(() => {
|
|
29868
30249
|
if (!ref.current) {
|
|
@@ -29894,7 +30275,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29894
30275
|
onEntered,
|
|
29895
30276
|
transition
|
|
29896
30277
|
}) {
|
|
29897
|
-
const [exited, setExited] = (0,
|
|
30278
|
+
const [exited, setExited] = (0, import_react39.useState)(!inProp);
|
|
29898
30279
|
if (inProp && exited) {
|
|
29899
30280
|
setExited(false);
|
|
29900
30281
|
}
|
|
@@ -29919,26 +30300,26 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29919
30300
|
}
|
|
29920
30301
|
});
|
|
29921
30302
|
const combinedRef = useMergedRefs_default2(ref, getChildRef(children));
|
|
29922
|
-
return exited && !inProp ? null : /* @__PURE__ */ (0,
|
|
30303
|
+
return exited && !inProp ? null : /* @__PURE__ */ (0, import_react39.cloneElement)(children, {
|
|
29923
30304
|
ref: combinedRef
|
|
29924
30305
|
});
|
|
29925
30306
|
}
|
|
29926
30307
|
function renderTransition(component, runTransition, props) {
|
|
29927
30308
|
if (component) {
|
|
29928
|
-
return /* @__PURE__ */ (0,
|
|
30309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(RTGTransition_default, Object.assign({}, props, {
|
|
29929
30310
|
component
|
|
29930
30311
|
}));
|
|
29931
30312
|
}
|
|
29932
30313
|
if (runTransition) {
|
|
29933
|
-
return /* @__PURE__ */ (0,
|
|
30314
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ImperativeTransition, Object.assign({}, props, {
|
|
29934
30315
|
transition: runTransition
|
|
29935
30316
|
}));
|
|
29936
30317
|
}
|
|
29937
|
-
return /* @__PURE__ */ (0,
|
|
30318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(NoopTransition_default, Object.assign({}, props));
|
|
29938
30319
|
}
|
|
29939
30320
|
|
|
29940
30321
|
// node_modules/@restart/ui/esm/Modal.js
|
|
29941
|
-
var
|
|
30322
|
+
var import_jsx_runtime32 = __toESM(require_jsx_runtime());
|
|
29942
30323
|
var _excluded7 = ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "runTransition", "backdropTransition", "runBackdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"];
|
|
29943
30324
|
function _objectWithoutPropertiesLoose8(r, e) {
|
|
29944
30325
|
if (null == r)
|
|
@@ -29963,7 +30344,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29963
30344
|
function useModalManager(provided) {
|
|
29964
30345
|
const window2 = useWindow();
|
|
29965
30346
|
const modalManager = provided || getManager(window2);
|
|
29966
|
-
const modal = (0,
|
|
30347
|
+
const modal = (0, import_react40.useRef)({
|
|
29967
30348
|
dialog: null,
|
|
29968
30349
|
backdrop: null
|
|
29969
30350
|
});
|
|
@@ -29971,15 +30352,15 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29971
30352
|
add: () => modalManager.add(modal.current),
|
|
29972
30353
|
remove: () => modalManager.remove(modal.current),
|
|
29973
30354
|
isTopModal: () => modalManager.isTopModal(modal.current),
|
|
29974
|
-
setDialogRef: (0,
|
|
30355
|
+
setDialogRef: (0, import_react40.useCallback)((ref) => {
|
|
29975
30356
|
modal.current.dialog = ref;
|
|
29976
30357
|
}, []),
|
|
29977
|
-
setBackdropRef: (0,
|
|
30358
|
+
setBackdropRef: (0, import_react40.useCallback)((ref) => {
|
|
29978
30359
|
modal.current.backdrop = ref;
|
|
29979
30360
|
}, [])
|
|
29980
30361
|
});
|
|
29981
30362
|
}
|
|
29982
|
-
var Modal = /* @__PURE__ */ (0,
|
|
30363
|
+
var Modal = /* @__PURE__ */ (0, import_react40.forwardRef)((_ref, ref) => {
|
|
29983
30364
|
let {
|
|
29984
30365
|
show = false,
|
|
29985
30366
|
role = "dialog",
|
|
@@ -29999,7 +30380,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
29999
30380
|
restoreFocus = true,
|
|
30000
30381
|
restoreFocusOptions,
|
|
30001
30382
|
renderDialog,
|
|
30002
|
-
renderBackdrop = (props) => /* @__PURE__ */ (0,
|
|
30383
|
+
renderBackdrop = (props) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", Object.assign({}, props)),
|
|
30003
30384
|
manager: providedManager,
|
|
30004
30385
|
container: containerRef,
|
|
30005
30386
|
onShow,
|
|
@@ -30017,9 +30398,9 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30017
30398
|
const modal = useModalManager(providedManager);
|
|
30018
30399
|
const isMounted = useMounted();
|
|
30019
30400
|
const prevShow = usePrevious(show);
|
|
30020
|
-
const [exited, setExited] = (0,
|
|
30021
|
-
const lastFocusRef = (0,
|
|
30022
|
-
(0,
|
|
30401
|
+
const [exited, setExited] = (0, import_react40.useState)(!show);
|
|
30402
|
+
const lastFocusRef = (0, import_react40.useRef)(null);
|
|
30403
|
+
(0, import_react40.useImperativeHandle)(ref, () => modal, [modal]);
|
|
30023
30404
|
if (canUseDOM_default && !prevShow && show) {
|
|
30024
30405
|
lastFocusRef.current = activeElement(ownerWindow2 == null ? void 0 : ownerWindow2.document);
|
|
30025
30406
|
}
|
|
@@ -30059,7 +30440,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30059
30440
|
lastFocusRef.current = null;
|
|
30060
30441
|
}
|
|
30061
30442
|
});
|
|
30062
|
-
(0,
|
|
30443
|
+
(0, import_react40.useEffect)(() => {
|
|
30063
30444
|
if (!show || !container)
|
|
30064
30445
|
return;
|
|
30065
30446
|
handleShow();
|
|
@@ -30069,7 +30450,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30069
30450
|
/* should never change: */
|
|
30070
30451
|
handleShow
|
|
30071
30452
|
]);
|
|
30072
|
-
(0,
|
|
30453
|
+
(0, import_react40.useEffect)(() => {
|
|
30073
30454
|
if (!exited)
|
|
30074
30455
|
return;
|
|
30075
30456
|
handleHide();
|
|
@@ -30103,8 +30484,8 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30103
30484
|
}
|
|
30104
30485
|
}
|
|
30105
30486
|
});
|
|
30106
|
-
const removeFocusListenerRef = (0,
|
|
30107
|
-
const removeKeydownListenerRef = (0,
|
|
30487
|
+
const removeFocusListenerRef = (0, import_react40.useRef)();
|
|
30488
|
+
const removeKeydownListenerRef = (0, import_react40.useRef)();
|
|
30108
30489
|
const handleHidden = (...args) => {
|
|
30109
30490
|
setExited(true);
|
|
30110
30491
|
onExited == null ? void 0 : onExited(...args);
|
|
@@ -30122,8 +30503,8 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30122
30503
|
className,
|
|
30123
30504
|
tabIndex: -1
|
|
30124
30505
|
});
|
|
30125
|
-
let dialog = renderDialog ? renderDialog(dialogProps) : /* @__PURE__ */ (0,
|
|
30126
|
-
children: /* @__PURE__ */
|
|
30506
|
+
let dialog = renderDialog ? renderDialog(dialogProps) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", Object.assign({}, dialogProps, {
|
|
30507
|
+
children: /* @__PURE__ */ React51.cloneElement(children, {
|
|
30127
30508
|
role: "document"
|
|
30128
30509
|
})
|
|
30129
30510
|
}));
|
|
@@ -30154,8 +30535,8 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30154
30535
|
children: backdropElement
|
|
30155
30536
|
});
|
|
30156
30537
|
}
|
|
30157
|
-
return /* @__PURE__ */ (0,
|
|
30158
|
-
children: /* @__PURE__ */ import_react_dom3.default.createPortal(/* @__PURE__ */ (0,
|
|
30538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, {
|
|
30539
|
+
children: /* @__PURE__ */ import_react_dom3.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, {
|
|
30159
30540
|
children: [backdropElement, dialog]
|
|
30160
30541
|
}), container)
|
|
30161
30542
|
});
|
|
@@ -30252,9 +30633,9 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30252
30633
|
var BootstrapModalManager_default = BootstrapModalManager;
|
|
30253
30634
|
|
|
30254
30635
|
// node_modules/react-bootstrap/esm/ModalContext.js
|
|
30255
|
-
var
|
|
30636
|
+
var React52 = __toESM(require_react());
|
|
30256
30637
|
"use client";
|
|
30257
|
-
var ModalContext = /* @__PURE__ */
|
|
30638
|
+
var ModalContext = /* @__PURE__ */ React52.createContext({
|
|
30258
30639
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
30259
30640
|
onHide() {
|
|
30260
30641
|
}
|
|
@@ -30262,12 +30643,12 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30262
30643
|
var ModalContext_default = ModalContext;
|
|
30263
30644
|
|
|
30264
30645
|
// node_modules/react-bootstrap/esm/AbstractModalHeader.js
|
|
30265
|
-
var
|
|
30266
|
-
var
|
|
30267
|
-
var
|
|
30268
|
-
var
|
|
30646
|
+
var React53 = __toESM(require_react());
|
|
30647
|
+
var import_react41 = __toESM(require_react());
|
|
30648
|
+
var import_jsx_runtime33 = __toESM(require_jsx_runtime());
|
|
30649
|
+
var import_jsx_runtime34 = __toESM(require_jsx_runtime());
|
|
30269
30650
|
"use client";
|
|
30270
|
-
var AbstractModalHeader = /* @__PURE__ */
|
|
30651
|
+
var AbstractModalHeader = /* @__PURE__ */ React53.forwardRef(({
|
|
30271
30652
|
closeLabel = "Close",
|
|
30272
30653
|
closeVariant,
|
|
30273
30654
|
closeButton = false,
|
|
@@ -30275,15 +30656,15 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30275
30656
|
children,
|
|
30276
30657
|
...props
|
|
30277
30658
|
}, ref) => {
|
|
30278
|
-
const context3 = (0,
|
|
30659
|
+
const context3 = (0, import_react41.useContext)(ModalContext_default);
|
|
30279
30660
|
const handleClick = useEventCallback(() => {
|
|
30280
30661
|
context3 == null || context3.onHide();
|
|
30281
30662
|
onHide == null || onHide();
|
|
30282
30663
|
});
|
|
30283
|
-
return /* @__PURE__ */ (0,
|
|
30664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", {
|
|
30284
30665
|
ref,
|
|
30285
30666
|
...props,
|
|
30286
|
-
children: [children, closeButton && /* @__PURE__ */ (0,
|
|
30667
|
+
children: [children, closeButton && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CloseButton_default, {
|
|
30287
30668
|
"aria-label": closeLabel,
|
|
30288
30669
|
variant: closeVariant,
|
|
30289
30670
|
onClick: handleClick
|
|
@@ -30293,25 +30674,25 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30293
30674
|
var AbstractModalHeader_default = AbstractModalHeader;
|
|
30294
30675
|
|
|
30295
30676
|
// node_modules/react-bootstrap/esm/Nav.js
|
|
30296
|
-
var
|
|
30297
|
-
var
|
|
30298
|
-
var
|
|
30677
|
+
var import_classnames25 = __toESM(require_classnames());
|
|
30678
|
+
var React56 = __toESM(require_react());
|
|
30679
|
+
var import_react42 = __toESM(require_react());
|
|
30299
30680
|
|
|
30300
30681
|
// node_modules/react-bootstrap/esm/NavItem.js
|
|
30301
|
-
var
|
|
30302
|
-
var
|
|
30303
|
-
var
|
|
30682
|
+
var React54 = __toESM(require_react());
|
|
30683
|
+
var import_classnames23 = __toESM(require_classnames());
|
|
30684
|
+
var import_jsx_runtime35 = __toESM(require_jsx_runtime());
|
|
30304
30685
|
"use client";
|
|
30305
|
-
var NavItem2 = /* @__PURE__ */
|
|
30686
|
+
var NavItem2 = /* @__PURE__ */ React54.forwardRef(({
|
|
30306
30687
|
className,
|
|
30307
30688
|
bsPrefix,
|
|
30308
30689
|
as: Component4 = "div",
|
|
30309
30690
|
...props
|
|
30310
30691
|
}, ref) => {
|
|
30311
30692
|
bsPrefix = useBootstrapPrefix(bsPrefix, "nav-item");
|
|
30312
|
-
return /* @__PURE__ */ (0,
|
|
30693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Component4, {
|
|
30313
30694
|
ref,
|
|
30314
|
-
className: (0,
|
|
30695
|
+
className: (0, import_classnames23.default)(className, bsPrefix),
|
|
30315
30696
|
...props
|
|
30316
30697
|
});
|
|
30317
30698
|
});
|
|
@@ -30319,11 +30700,11 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30319
30700
|
var NavItem_default2 = NavItem2;
|
|
30320
30701
|
|
|
30321
30702
|
// node_modules/react-bootstrap/esm/NavLink.js
|
|
30322
|
-
var
|
|
30323
|
-
var
|
|
30324
|
-
var
|
|
30703
|
+
var import_classnames24 = __toESM(require_classnames());
|
|
30704
|
+
var React55 = __toESM(require_react());
|
|
30705
|
+
var import_jsx_runtime36 = __toESM(require_jsx_runtime());
|
|
30325
30706
|
"use client";
|
|
30326
|
-
var NavLink2 = /* @__PURE__ */
|
|
30707
|
+
var NavLink2 = /* @__PURE__ */ React55.forwardRef(({
|
|
30327
30708
|
bsPrefix,
|
|
30328
30709
|
className,
|
|
30329
30710
|
as: Component4 = Anchor_default,
|
|
@@ -30339,21 +30720,21 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30339
30720
|
disabled,
|
|
30340
30721
|
...props
|
|
30341
30722
|
});
|
|
30342
|
-
return /* @__PURE__ */ (0,
|
|
30723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Component4, {
|
|
30343
30724
|
...props,
|
|
30344
30725
|
...navItemProps,
|
|
30345
30726
|
ref,
|
|
30346
30727
|
disabled,
|
|
30347
|
-
className: (0,
|
|
30728
|
+
className: (0, import_classnames24.default)(className, bsPrefix, disabled && "disabled", meta.isActive && "active")
|
|
30348
30729
|
});
|
|
30349
30730
|
});
|
|
30350
30731
|
NavLink2.displayName = "NavLink";
|
|
30351
30732
|
var NavLink_default = NavLink2;
|
|
30352
30733
|
|
|
30353
30734
|
// node_modules/react-bootstrap/esm/Nav.js
|
|
30354
|
-
var
|
|
30735
|
+
var import_jsx_runtime37 = __toESM(require_jsx_runtime());
|
|
30355
30736
|
"use client";
|
|
30356
|
-
var Nav2 = /* @__PURE__ */
|
|
30737
|
+
var Nav2 = /* @__PURE__ */ React56.forwardRef((uncontrolledProps, ref) => {
|
|
30357
30738
|
const {
|
|
30358
30739
|
as = "div",
|
|
30359
30740
|
bsPrefix: initialBsPrefix,
|
|
@@ -30372,8 +30753,8 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30372
30753
|
let navbarBsPrefix;
|
|
30373
30754
|
let cardHeaderBsPrefix;
|
|
30374
30755
|
let isNavbar = false;
|
|
30375
|
-
const navbarContext = (0,
|
|
30376
|
-
const cardHeaderContext = (0,
|
|
30756
|
+
const navbarContext = (0, import_react42.useContext)(NavbarContext_default);
|
|
30757
|
+
const cardHeaderContext = (0, import_react42.useContext)(CardHeaderContext_default);
|
|
30377
30758
|
if (navbarContext) {
|
|
30378
30759
|
navbarBsPrefix = navbarContext.bsPrefix;
|
|
30379
30760
|
isNavbar = navbar == null ? true : navbar;
|
|
@@ -30382,11 +30763,11 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30382
30763
|
cardHeaderBsPrefix
|
|
30383
30764
|
} = cardHeaderContext);
|
|
30384
30765
|
}
|
|
30385
|
-
return /* @__PURE__ */ (0,
|
|
30766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Nav_default, {
|
|
30386
30767
|
as,
|
|
30387
30768
|
ref,
|
|
30388
30769
|
activeKey,
|
|
30389
|
-
className: (0,
|
|
30770
|
+
className: (0, import_classnames25.default)(className, {
|
|
30390
30771
|
[bsPrefix]: !isNavbar,
|
|
30391
30772
|
[`${navbarBsPrefix}-nav`]: isNavbar,
|
|
30392
30773
|
[`${navbarBsPrefix}-nav-scroll`]: isNavbar && navbarScroll,
|
|
@@ -30405,16 +30786,16 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30405
30786
|
});
|
|
30406
30787
|
|
|
30407
30788
|
// node_modules/react-bootstrap/esm/Navbar.js
|
|
30408
|
-
var
|
|
30409
|
-
var
|
|
30410
|
-
var
|
|
30789
|
+
var import_classnames34 = __toESM(require_classnames());
|
|
30790
|
+
var React67 = __toESM(require_react());
|
|
30791
|
+
var import_react49 = __toESM(require_react());
|
|
30411
30792
|
|
|
30412
30793
|
// node_modules/react-bootstrap/esm/NavbarBrand.js
|
|
30413
|
-
var
|
|
30414
|
-
var
|
|
30415
|
-
var
|
|
30794
|
+
var import_classnames26 = __toESM(require_classnames());
|
|
30795
|
+
var React57 = __toESM(require_react());
|
|
30796
|
+
var import_jsx_runtime38 = __toESM(require_jsx_runtime());
|
|
30416
30797
|
"use client";
|
|
30417
|
-
var NavbarBrand = /* @__PURE__ */
|
|
30798
|
+
var NavbarBrand = /* @__PURE__ */ React57.forwardRef(({
|
|
30418
30799
|
bsPrefix,
|
|
30419
30800
|
className,
|
|
30420
30801
|
as,
|
|
@@ -30422,31 +30803,31 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30422
30803
|
}, ref) => {
|
|
30423
30804
|
bsPrefix = useBootstrapPrefix(bsPrefix, "navbar-brand");
|
|
30424
30805
|
const Component4 = as || (props.href ? "a" : "span");
|
|
30425
|
-
return /* @__PURE__ */ (0,
|
|
30806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Component4, {
|
|
30426
30807
|
...props,
|
|
30427
30808
|
ref,
|
|
30428
|
-
className: (0,
|
|
30809
|
+
className: (0, import_classnames26.default)(className, bsPrefix)
|
|
30429
30810
|
});
|
|
30430
30811
|
});
|
|
30431
30812
|
NavbarBrand.displayName = "NavbarBrand";
|
|
30432
30813
|
var NavbarBrand_default = NavbarBrand;
|
|
30433
30814
|
|
|
30434
30815
|
// node_modules/react-bootstrap/esm/NavbarCollapse.js
|
|
30435
|
-
var
|
|
30436
|
-
var
|
|
30437
|
-
var
|
|
30816
|
+
var React58 = __toESM(require_react());
|
|
30817
|
+
var import_react43 = __toESM(require_react());
|
|
30818
|
+
var import_jsx_runtime39 = __toESM(require_jsx_runtime());
|
|
30438
30819
|
"use client";
|
|
30439
|
-
var NavbarCollapse = /* @__PURE__ */
|
|
30820
|
+
var NavbarCollapse = /* @__PURE__ */ React58.forwardRef(({
|
|
30440
30821
|
children,
|
|
30441
30822
|
bsPrefix,
|
|
30442
30823
|
...props
|
|
30443
30824
|
}, ref) => {
|
|
30444
30825
|
bsPrefix = useBootstrapPrefix(bsPrefix, "navbar-collapse");
|
|
30445
|
-
const context3 = (0,
|
|
30446
|
-
return /* @__PURE__ */ (0,
|
|
30826
|
+
const context3 = (0, import_react43.useContext)(NavbarContext_default);
|
|
30827
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Collapse_default, {
|
|
30447
30828
|
in: !!(context3 && context3.expanded),
|
|
30448
30829
|
...props,
|
|
30449
|
-
children: /* @__PURE__ */ (0,
|
|
30830
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", {
|
|
30450
30831
|
ref,
|
|
30451
30832
|
className: bsPrefix,
|
|
30452
30833
|
children
|
|
@@ -30457,12 +30838,12 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30457
30838
|
var NavbarCollapse_default = NavbarCollapse;
|
|
30458
30839
|
|
|
30459
30840
|
// node_modules/react-bootstrap/esm/NavbarToggle.js
|
|
30460
|
-
var
|
|
30461
|
-
var
|
|
30462
|
-
var
|
|
30463
|
-
var
|
|
30841
|
+
var import_classnames27 = __toESM(require_classnames());
|
|
30842
|
+
var React59 = __toESM(require_react());
|
|
30843
|
+
var import_react44 = __toESM(require_react());
|
|
30844
|
+
var import_jsx_runtime40 = __toESM(require_jsx_runtime());
|
|
30464
30845
|
"use client";
|
|
30465
|
-
var NavbarToggle = /* @__PURE__ */
|
|
30846
|
+
var NavbarToggle = /* @__PURE__ */ React59.forwardRef(({
|
|
30466
30847
|
bsPrefix,
|
|
30467
30848
|
className,
|
|
30468
30849
|
children,
|
|
@@ -30476,7 +30857,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30476
30857
|
const {
|
|
30477
30858
|
onToggle,
|
|
30478
30859
|
expanded
|
|
30479
|
-
} = (0,
|
|
30860
|
+
} = (0, import_react44.useContext)(NavbarContext_default) || {};
|
|
30480
30861
|
const handleClick = useEventCallback((e) => {
|
|
30481
30862
|
if (onClick)
|
|
30482
30863
|
onClick(e);
|
|
@@ -30486,13 +30867,13 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30486
30867
|
if (Component4 === "button") {
|
|
30487
30868
|
props.type = "button";
|
|
30488
30869
|
}
|
|
30489
|
-
return /* @__PURE__ */ (0,
|
|
30870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Component4, {
|
|
30490
30871
|
...props,
|
|
30491
30872
|
ref,
|
|
30492
30873
|
onClick: handleClick,
|
|
30493
30874
|
"aria-label": label,
|
|
30494
|
-
className: (0,
|
|
30495
|
-
children: children || /* @__PURE__ */ (0,
|
|
30875
|
+
className: (0, import_classnames27.default)(className, bsPrefix, !expanded && "collapsed"),
|
|
30876
|
+
children: children || /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", {
|
|
30496
30877
|
className: `${bsPrefix}-icon`
|
|
30497
30878
|
})
|
|
30498
30879
|
});
|
|
@@ -30501,14 +30882,14 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30501
30882
|
var NavbarToggle_default = NavbarToggle;
|
|
30502
30883
|
|
|
30503
30884
|
// node_modules/react-bootstrap/esm/NavbarOffcanvas.js
|
|
30504
|
-
var
|
|
30505
|
-
var
|
|
30885
|
+
var React65 = __toESM(require_react());
|
|
30886
|
+
var import_react48 = __toESM(require_react());
|
|
30506
30887
|
|
|
30507
30888
|
// node_modules/react-bootstrap/esm/Offcanvas.js
|
|
30508
|
-
var
|
|
30889
|
+
var import_classnames32 = __toESM(require_classnames());
|
|
30509
30890
|
|
|
30510
30891
|
// node_modules/@restart/hooks/esm/useMediaQuery.js
|
|
30511
|
-
var
|
|
30892
|
+
var import_react45 = __toESM(require_react());
|
|
30512
30893
|
var matchersByWindow = /* @__PURE__ */ new WeakMap();
|
|
30513
30894
|
var getMatcher = (query, targetWindow) => {
|
|
30514
30895
|
if (!query || !targetWindow)
|
|
@@ -30525,7 +30906,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30525
30906
|
};
|
|
30526
30907
|
function useMediaQuery(query, targetWindow = typeof window === "undefined" ? void 0 : window) {
|
|
30527
30908
|
const mql = getMatcher(query, targetWindow);
|
|
30528
|
-
const [matches, setMatches] = (0,
|
|
30909
|
+
const [matches, setMatches] = (0, import_react45.useState)(() => mql ? mql.matches : false);
|
|
30529
30910
|
useIsomorphicEffect_default2(() => {
|
|
30530
30911
|
let mql2 = getMatcher(query, targetWindow);
|
|
30531
30912
|
if (!mql2) {
|
|
@@ -30551,7 +30932,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30551
30932
|
}
|
|
30552
30933
|
|
|
30553
30934
|
// node_modules/@restart/hooks/esm/useBreakpoint.js
|
|
30554
|
-
var
|
|
30935
|
+
var import_react46 = __toESM(require_react());
|
|
30555
30936
|
function createBreakpointHook(breakpointValues) {
|
|
30556
30937
|
const names = Object.keys(breakpointValues);
|
|
30557
30938
|
function and(query, next) {
|
|
@@ -30591,7 +30972,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30591
30972
|
[breakpointOrMap]: direction
|
|
30592
30973
|
};
|
|
30593
30974
|
}
|
|
30594
|
-
let query = (0,
|
|
30975
|
+
let query = (0, import_react46.useMemo)(() => Object.entries(breakpointMap).reduce((query2, [key, direction2]) => {
|
|
30595
30976
|
if (direction2 === "up" || direction2 === true) {
|
|
30596
30977
|
query2 = and(query2, getMinQuery(key));
|
|
30597
30978
|
}
|
|
@@ -30615,24 +30996,24 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30615
30996
|
var useBreakpoint_default = useBreakpoint;
|
|
30616
30997
|
|
|
30617
30998
|
// node_modules/react-bootstrap/esm/Offcanvas.js
|
|
30618
|
-
var
|
|
30619
|
-
var
|
|
30999
|
+
var React64 = __toESM(require_react());
|
|
31000
|
+
var import_react47 = __toESM(require_react());
|
|
30620
31001
|
|
|
30621
31002
|
// node_modules/react-bootstrap/esm/OffcanvasBody.js
|
|
30622
|
-
var
|
|
30623
|
-
var
|
|
30624
|
-
var
|
|
31003
|
+
var React60 = __toESM(require_react());
|
|
31004
|
+
var import_classnames28 = __toESM(require_classnames());
|
|
31005
|
+
var import_jsx_runtime41 = __toESM(require_jsx_runtime());
|
|
30625
31006
|
"use client";
|
|
30626
|
-
var OffcanvasBody = /* @__PURE__ */
|
|
31007
|
+
var OffcanvasBody = /* @__PURE__ */ React60.forwardRef(({
|
|
30627
31008
|
className,
|
|
30628
31009
|
bsPrefix,
|
|
30629
31010
|
as: Component4 = "div",
|
|
30630
31011
|
...props
|
|
30631
31012
|
}, ref) => {
|
|
30632
31013
|
bsPrefix = useBootstrapPrefix(bsPrefix, "offcanvas-body");
|
|
30633
|
-
return /* @__PURE__ */ (0,
|
|
31014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Component4, {
|
|
30634
31015
|
ref,
|
|
30635
|
-
className: (0,
|
|
31016
|
+
className: (0, import_classnames28.default)(className, bsPrefix),
|
|
30636
31017
|
...props
|
|
30637
31018
|
});
|
|
30638
31019
|
});
|
|
@@ -30640,15 +31021,15 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30640
31021
|
var OffcanvasBody_default = OffcanvasBody;
|
|
30641
31022
|
|
|
30642
31023
|
// node_modules/react-bootstrap/esm/OffcanvasToggling.js
|
|
30643
|
-
var
|
|
30644
|
-
var
|
|
30645
|
-
var
|
|
31024
|
+
var import_classnames29 = __toESM(require_classnames());
|
|
31025
|
+
var React61 = __toESM(require_react());
|
|
31026
|
+
var import_jsx_runtime42 = __toESM(require_jsx_runtime());
|
|
30646
31027
|
"use client";
|
|
30647
31028
|
var transitionStyles = {
|
|
30648
31029
|
[ENTERING]: "show",
|
|
30649
31030
|
[ENTERED]: "show"
|
|
30650
31031
|
};
|
|
30651
|
-
var OffcanvasToggling = /* @__PURE__ */
|
|
31032
|
+
var OffcanvasToggling = /* @__PURE__ */ React61.forwardRef(({
|
|
30652
31033
|
bsPrefix,
|
|
30653
31034
|
className,
|
|
30654
31035
|
children,
|
|
@@ -30659,7 +31040,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30659
31040
|
...props
|
|
30660
31041
|
}, ref) => {
|
|
30661
31042
|
bsPrefix = useBootstrapPrefix(bsPrefix, "offcanvas");
|
|
30662
|
-
return /* @__PURE__ */ (0,
|
|
31043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TransitionWrapper_default, {
|
|
30663
31044
|
ref,
|
|
30664
31045
|
addEndListener: transitionEndListener,
|
|
30665
31046
|
in: inProp,
|
|
@@ -30668,9 +31049,9 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30668
31049
|
appear,
|
|
30669
31050
|
...props,
|
|
30670
31051
|
childRef: getChildRef(children),
|
|
30671
|
-
children: (status, innerProps) => /* @__PURE__ */
|
|
31052
|
+
children: (status, innerProps) => /* @__PURE__ */ React61.cloneElement(children, {
|
|
30672
31053
|
...innerProps,
|
|
30673
|
-
className: (0,
|
|
31054
|
+
className: (0, import_classnames29.default)(className, children.props.className, (status === ENTERING || status === EXITING) && `${bsPrefix}-toggling`, transitionStyles[status])
|
|
30674
31055
|
})
|
|
30675
31056
|
});
|
|
30676
31057
|
});
|
|
@@ -30678,11 +31059,11 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30678
31059
|
var OffcanvasToggling_default = OffcanvasToggling;
|
|
30679
31060
|
|
|
30680
31061
|
// node_modules/react-bootstrap/esm/OffcanvasHeader.js
|
|
30681
|
-
var
|
|
30682
|
-
var
|
|
30683
|
-
var
|
|
31062
|
+
var import_classnames30 = __toESM(require_classnames());
|
|
31063
|
+
var React62 = __toESM(require_react());
|
|
31064
|
+
var import_jsx_runtime43 = __toESM(require_jsx_runtime());
|
|
30684
31065
|
"use client";
|
|
30685
|
-
var OffcanvasHeader = /* @__PURE__ */
|
|
31066
|
+
var OffcanvasHeader = /* @__PURE__ */ React62.forwardRef(({
|
|
30686
31067
|
bsPrefix,
|
|
30687
31068
|
className,
|
|
30688
31069
|
closeLabel = "Close",
|
|
@@ -30690,10 +31071,10 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30690
31071
|
...props
|
|
30691
31072
|
}, ref) => {
|
|
30692
31073
|
bsPrefix = useBootstrapPrefix(bsPrefix, "offcanvas-header");
|
|
30693
|
-
return /* @__PURE__ */ (0,
|
|
31074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AbstractModalHeader_default, {
|
|
30694
31075
|
ref,
|
|
30695
31076
|
...props,
|
|
30696
|
-
className: (0,
|
|
31077
|
+
className: (0, import_classnames30.default)(className, bsPrefix),
|
|
30697
31078
|
closeLabel,
|
|
30698
31079
|
closeButton
|
|
30699
31080
|
});
|
|
@@ -30702,21 +31083,21 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30702
31083
|
var OffcanvasHeader_default = OffcanvasHeader;
|
|
30703
31084
|
|
|
30704
31085
|
// node_modules/react-bootstrap/esm/OffcanvasTitle.js
|
|
30705
|
-
var
|
|
30706
|
-
var
|
|
30707
|
-
var
|
|
31086
|
+
var React63 = __toESM(require_react());
|
|
31087
|
+
var import_classnames31 = __toESM(require_classnames());
|
|
31088
|
+
var import_jsx_runtime44 = __toESM(require_jsx_runtime());
|
|
30708
31089
|
"use client";
|
|
30709
|
-
var
|
|
30710
|
-
var OffcanvasTitle = /* @__PURE__ */
|
|
31090
|
+
var DivStyledAsH52 = divWithClassName_default("h5");
|
|
31091
|
+
var OffcanvasTitle = /* @__PURE__ */ React63.forwardRef(({
|
|
30711
31092
|
className,
|
|
30712
31093
|
bsPrefix,
|
|
30713
|
-
as: Component4 =
|
|
31094
|
+
as: Component4 = DivStyledAsH52,
|
|
30714
31095
|
...props
|
|
30715
31096
|
}, ref) => {
|
|
30716
31097
|
bsPrefix = useBootstrapPrefix(bsPrefix, "offcanvas-title");
|
|
30717
|
-
return /* @__PURE__ */ (0,
|
|
31098
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Component4, {
|
|
30718
31099
|
ref,
|
|
30719
|
-
className: (0,
|
|
31100
|
+
className: (0, import_classnames31.default)(className, bsPrefix),
|
|
30720
31101
|
...props
|
|
30721
31102
|
});
|
|
30722
31103
|
});
|
|
@@ -30724,21 +31105,21 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30724
31105
|
var OffcanvasTitle_default = OffcanvasTitle;
|
|
30725
31106
|
|
|
30726
31107
|
// node_modules/react-bootstrap/esm/Offcanvas.js
|
|
30727
|
-
var
|
|
30728
|
-
var
|
|
30729
|
-
var
|
|
31108
|
+
var import_jsx_runtime45 = __toESM(require_jsx_runtime());
|
|
31109
|
+
var import_jsx_runtime46 = __toESM(require_jsx_runtime());
|
|
31110
|
+
var import_jsx_runtime47 = __toESM(require_jsx_runtime());
|
|
30730
31111
|
"use client";
|
|
30731
31112
|
function DialogTransition(props) {
|
|
30732
|
-
return /* @__PURE__ */ (0,
|
|
31113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(OffcanvasToggling_default, {
|
|
30733
31114
|
...props
|
|
30734
31115
|
});
|
|
30735
31116
|
}
|
|
30736
31117
|
function BackdropTransition(props) {
|
|
30737
|
-
return /* @__PURE__ */ (0,
|
|
31118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Fade_default, {
|
|
30738
31119
|
...props
|
|
30739
31120
|
});
|
|
30740
31121
|
}
|
|
30741
|
-
var Offcanvas = /* @__PURE__ */
|
|
31122
|
+
var Offcanvas = /* @__PURE__ */ React64.forwardRef(({
|
|
30742
31123
|
bsPrefix,
|
|
30743
31124
|
className,
|
|
30744
31125
|
children,
|
|
@@ -30769,15 +31150,15 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30769
31150
|
renderStaticNode = false,
|
|
30770
31151
|
...props
|
|
30771
31152
|
}, ref) => {
|
|
30772
|
-
const modalManager = (0,
|
|
31153
|
+
const modalManager = (0, import_react47.useRef)();
|
|
30773
31154
|
bsPrefix = useBootstrapPrefix(bsPrefix, "offcanvas");
|
|
30774
|
-
const [showOffcanvas, setShowOffcanvas] = (0,
|
|
31155
|
+
const [showOffcanvas, setShowOffcanvas] = (0, import_react47.useState)(false);
|
|
30775
31156
|
const handleHide = useEventCallback(onHide);
|
|
30776
31157
|
const hideResponsiveOffcanvas = useBreakpoint_default(responsive || "xs", "up");
|
|
30777
|
-
(0,
|
|
31158
|
+
(0, import_react47.useEffect)(() => {
|
|
30778
31159
|
setShowOffcanvas(responsive ? show && !hideResponsiveOffcanvas : show);
|
|
30779
31160
|
}, [show, responsive, hideResponsiveOffcanvas]);
|
|
30780
|
-
const modalContext = (0,
|
|
31161
|
+
const modalContext = (0, import_react47.useMemo)(() => ({
|
|
30781
31162
|
onHide: handleHide
|
|
30782
31163
|
}), [handleHide]);
|
|
30783
31164
|
function getModalManager() {
|
|
@@ -30802,21 +31183,21 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30802
31183
|
node.style.visibility = "";
|
|
30803
31184
|
onExited == null || onExited(...args);
|
|
30804
31185
|
};
|
|
30805
|
-
const renderBackdrop = (0,
|
|
31186
|
+
const renderBackdrop = (0, import_react47.useCallback)((backdropProps) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", {
|
|
30806
31187
|
...backdropProps,
|
|
30807
|
-
className: (0,
|
|
31188
|
+
className: (0, import_classnames32.default)(`${bsPrefix}-backdrop`, backdropClassName)
|
|
30808
31189
|
}), [backdropClassName, bsPrefix]);
|
|
30809
|
-
const renderDialog = (dialogProps) => /* @__PURE__ */ (0,
|
|
31190
|
+
const renderDialog = (dialogProps) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", {
|
|
30810
31191
|
...dialogProps,
|
|
30811
31192
|
...props,
|
|
30812
|
-
className: (0,
|
|
31193
|
+
className: (0, import_classnames32.default)(className, responsive ? `${bsPrefix}-${responsive}` : bsPrefix, `${bsPrefix}-${placement}`),
|
|
30813
31194
|
"aria-labelledby": ariaLabelledby,
|
|
30814
31195
|
children
|
|
30815
31196
|
});
|
|
30816
|
-
return /* @__PURE__ */ (0,
|
|
30817
|
-
children: [!showOffcanvas && (responsive || renderStaticNode) && renderDialog({}), /* @__PURE__ */ (0,
|
|
31197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime46.Fragment, {
|
|
31198
|
+
children: [!showOffcanvas && (responsive || renderStaticNode) && renderDialog({}), /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ModalContext_default.Provider, {
|
|
30818
31199
|
value: modalContext,
|
|
30819
|
-
children: /* @__PURE__ */ (0,
|
|
31200
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Modal_default, {
|
|
30820
31201
|
show: showOffcanvas,
|
|
30821
31202
|
ref,
|
|
30822
31203
|
backdrop,
|
|
@@ -30852,18 +31233,18 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30852
31233
|
});
|
|
30853
31234
|
|
|
30854
31235
|
// node_modules/react-bootstrap/esm/NavbarOffcanvas.js
|
|
30855
|
-
var
|
|
31236
|
+
var import_jsx_runtime48 = __toESM(require_jsx_runtime());
|
|
30856
31237
|
"use client";
|
|
30857
|
-
var NavbarOffcanvas = /* @__PURE__ */
|
|
31238
|
+
var NavbarOffcanvas = /* @__PURE__ */ React65.forwardRef(({
|
|
30858
31239
|
onHide,
|
|
30859
31240
|
...props
|
|
30860
31241
|
}, ref) => {
|
|
30861
|
-
const context3 = (0,
|
|
31242
|
+
const context3 = (0, import_react48.useContext)(NavbarContext_default);
|
|
30862
31243
|
const handleHide = useEventCallback(() => {
|
|
30863
31244
|
context3 == null || context3.onToggle == null || context3.onToggle();
|
|
30864
31245
|
onHide == null || onHide();
|
|
30865
31246
|
});
|
|
30866
|
-
return /* @__PURE__ */ (0,
|
|
31247
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Offcanvas_default, {
|
|
30867
31248
|
ref,
|
|
30868
31249
|
show: !!(context3 != null && context3.expanded),
|
|
30869
31250
|
...props,
|
|
@@ -30875,20 +31256,20 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30875
31256
|
var NavbarOffcanvas_default = NavbarOffcanvas;
|
|
30876
31257
|
|
|
30877
31258
|
// node_modules/react-bootstrap/esm/NavbarText.js
|
|
30878
|
-
var
|
|
30879
|
-
var
|
|
30880
|
-
var
|
|
31259
|
+
var React66 = __toESM(require_react());
|
|
31260
|
+
var import_classnames33 = __toESM(require_classnames());
|
|
31261
|
+
var import_jsx_runtime49 = __toESM(require_jsx_runtime());
|
|
30881
31262
|
"use client";
|
|
30882
|
-
var NavbarText = /* @__PURE__ */
|
|
31263
|
+
var NavbarText = /* @__PURE__ */ React66.forwardRef(({
|
|
30883
31264
|
className,
|
|
30884
31265
|
bsPrefix,
|
|
30885
31266
|
as: Component4 = "span",
|
|
30886
31267
|
...props
|
|
30887
31268
|
}, ref) => {
|
|
30888
31269
|
bsPrefix = useBootstrapPrefix(bsPrefix, "navbar-text");
|
|
30889
|
-
return /* @__PURE__ */ (0,
|
|
31270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Component4, {
|
|
30890
31271
|
ref,
|
|
30891
|
-
className: (0,
|
|
31272
|
+
className: (0, import_classnames33.default)(className, bsPrefix),
|
|
30892
31273
|
...props
|
|
30893
31274
|
});
|
|
30894
31275
|
});
|
|
@@ -30896,9 +31277,9 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30896
31277
|
var NavbarText_default = NavbarText;
|
|
30897
31278
|
|
|
30898
31279
|
// node_modules/react-bootstrap/esm/Navbar.js
|
|
30899
|
-
var
|
|
31280
|
+
var import_jsx_runtime50 = __toESM(require_jsx_runtime());
|
|
30900
31281
|
"use client";
|
|
30901
|
-
var Navbar = /* @__PURE__ */
|
|
31282
|
+
var Navbar = /* @__PURE__ */ React67.forwardRef((props, ref) => {
|
|
30902
31283
|
const {
|
|
30903
31284
|
bsPrefix: initialBsPrefix,
|
|
30904
31285
|
expand = true,
|
|
@@ -30918,7 +31299,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30918
31299
|
expanded: "onToggle"
|
|
30919
31300
|
});
|
|
30920
31301
|
const bsPrefix = useBootstrapPrefix(initialBsPrefix, "navbar");
|
|
30921
|
-
const handleCollapse = (0,
|
|
31302
|
+
const handleCollapse = (0, import_react49.useCallback)((...args) => {
|
|
30922
31303
|
onSelect == null || onSelect(...args);
|
|
30923
31304
|
if (collapseOnSelect && expanded) {
|
|
30924
31305
|
onToggle == null || onToggle(false);
|
|
@@ -30930,20 +31311,20 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30930
31311
|
let expandClass = `${bsPrefix}-expand`;
|
|
30931
31312
|
if (typeof expand === "string")
|
|
30932
31313
|
expandClass = `${expandClass}-${expand}`;
|
|
30933
|
-
const navbarContext = (0,
|
|
31314
|
+
const navbarContext = (0, import_react49.useMemo)(() => ({
|
|
30934
31315
|
onToggle: () => onToggle == null ? void 0 : onToggle(!expanded),
|
|
30935
31316
|
bsPrefix,
|
|
30936
31317
|
expanded: !!expanded,
|
|
30937
31318
|
expand
|
|
30938
31319
|
}), [bsPrefix, expanded, expand, onToggle]);
|
|
30939
|
-
return /* @__PURE__ */ (0,
|
|
31320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(NavbarContext_default.Provider, {
|
|
30940
31321
|
value: navbarContext,
|
|
30941
|
-
children: /* @__PURE__ */ (0,
|
|
31322
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SelectableContext_default.Provider, {
|
|
30942
31323
|
value: handleCollapse,
|
|
30943
|
-
children: /* @__PURE__ */ (0,
|
|
31324
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Component4, {
|
|
30944
31325
|
ref,
|
|
30945
31326
|
...controlledProps,
|
|
30946
|
-
className: (0,
|
|
31327
|
+
className: (0, import_classnames34.default)(className, bsPrefix, expand && expandClass, variant && `${bsPrefix}-${variant}`, bg && `bg-${bg}`, sticky && `sticky-${sticky}`, fixed && `fixed-${fixed}`)
|
|
30947
31328
|
})
|
|
30948
31329
|
})
|
|
30949
31330
|
});
|
|
@@ -30961,16 +31342,16 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
30961
31342
|
var import_prop_types4 = __toESM(require_prop_types());
|
|
30962
31343
|
|
|
30963
31344
|
// node_modules/react-bootstrap/esm/TabContainer.js
|
|
30964
|
-
var
|
|
31345
|
+
var React70 = __toESM(require_react());
|
|
30965
31346
|
|
|
30966
31347
|
// node_modules/@restart/ui/esm/Tabs.js
|
|
30967
|
-
var
|
|
30968
|
-
var
|
|
31348
|
+
var React69 = __toESM(require_react());
|
|
31349
|
+
var import_react51 = __toESM(require_react());
|
|
30969
31350
|
|
|
30970
31351
|
// node_modules/@restart/ui/esm/TabPanel.js
|
|
30971
|
-
var
|
|
30972
|
-
var
|
|
30973
|
-
var
|
|
31352
|
+
var React68 = __toESM(require_react());
|
|
31353
|
+
var import_react50 = __toESM(require_react());
|
|
31354
|
+
var import_jsx_runtime51 = __toESM(require_jsx_runtime());
|
|
30974
31355
|
var _excluded8 = ["active", "eventKey", "mountOnEnter", "transition", "unmountOnExit", "role", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited"];
|
|
30975
31356
|
var _excluded22 = ["activeKey", "getControlledId", "getControllerId"];
|
|
30976
31357
|
var _excluded32 = ["as"];
|
|
@@ -31001,7 +31382,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31001
31382
|
onExiting,
|
|
31002
31383
|
onExited
|
|
31003
31384
|
} = _ref, props = _objectWithoutPropertiesLoose9(_ref, _excluded8);
|
|
31004
|
-
const context3 = (0,
|
|
31385
|
+
const context3 = (0, import_react50.useContext)(TabContext_default);
|
|
31005
31386
|
if (!context3)
|
|
31006
31387
|
return [Object.assign({}, props, {
|
|
31007
31388
|
role
|
|
@@ -31042,7 +31423,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31042
31423
|
onExited
|
|
31043
31424
|
}];
|
|
31044
31425
|
}
|
|
31045
|
-
var TabPanel = /* @__PURE__ */
|
|
31426
|
+
var TabPanel = /* @__PURE__ */ React68.forwardRef(
|
|
31046
31427
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
31047
31428
|
(_ref2, ref) => {
|
|
31048
31429
|
let {
|
|
@@ -31060,11 +31441,11 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31060
31441
|
unmountOnExit,
|
|
31061
31442
|
transition: Transition2 = NoopTransition_default
|
|
31062
31443
|
}] = useTabPanel(props);
|
|
31063
|
-
return /* @__PURE__ */ (0,
|
|
31444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TabContext_default.Provider, {
|
|
31064
31445
|
value: null,
|
|
31065
|
-
children: /* @__PURE__ */ (0,
|
|
31446
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectableContext_default.Provider, {
|
|
31066
31447
|
value: null,
|
|
31067
|
-
children: /* @__PURE__ */ (0,
|
|
31448
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Transition2, {
|
|
31068
31449
|
in: isActive,
|
|
31069
31450
|
onEnter,
|
|
31070
31451
|
onEntering,
|
|
@@ -31074,7 +31455,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31074
31455
|
onExited,
|
|
31075
31456
|
mountOnEnter,
|
|
31076
31457
|
unmountOnExit,
|
|
31077
|
-
children: /* @__PURE__ */ (0,
|
|
31458
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Component4, Object.assign({}, tabPanelProps, {
|
|
31078
31459
|
ref,
|
|
31079
31460
|
hidden: !isActive,
|
|
31080
31461
|
"aria-hidden": !isActive
|
|
@@ -31088,7 +31469,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31088
31469
|
var TabPanel_default = TabPanel;
|
|
31089
31470
|
|
|
31090
31471
|
// node_modules/@restart/ui/esm/Tabs.js
|
|
31091
|
-
var
|
|
31472
|
+
var import_jsx_runtime52 = __toESM(require_jsx_runtime());
|
|
31092
31473
|
var Tabs = (props) => {
|
|
31093
31474
|
const {
|
|
31094
31475
|
id: userId,
|
|
@@ -31103,8 +31484,8 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31103
31484
|
} = props;
|
|
31104
31485
|
const [activeKey, onSelect] = useUncontrolledProp2(propsActiveKey, defaultActiveKey, propsOnSelect);
|
|
31105
31486
|
const id = $b5e257d569688ac6$export$619500959fc48b26(userId);
|
|
31106
|
-
const generateChildId = (0,
|
|
31107
|
-
const tabContext = (0,
|
|
31487
|
+
const generateChildId = (0, import_react51.useMemo)(() => generateCustomChildId || ((key, type) => id ? `${id}-${type}-${key}` : null), [id, generateCustomChildId]);
|
|
31488
|
+
const tabContext = (0, import_react51.useMemo)(() => ({
|
|
31108
31489
|
onSelect,
|
|
31109
31490
|
activeKey,
|
|
31110
31491
|
transition,
|
|
@@ -31113,9 +31494,9 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31113
31494
|
getControlledId: (key) => generateChildId(key, "tabpane"),
|
|
31114
31495
|
getControllerId: (key) => generateChildId(key, "tab")
|
|
31115
31496
|
}), [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
31116
|
-
return /* @__PURE__ */ (0,
|
|
31497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TabContext_default.Provider, {
|
|
31117
31498
|
value: tabContext,
|
|
31118
|
-
children: /* @__PURE__ */ (0,
|
|
31499
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectableContext_default.Provider, {
|
|
31119
31500
|
value: onSelect || null,
|
|
31120
31501
|
children
|
|
31121
31502
|
})
|
|
@@ -31133,11 +31514,11 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31133
31514
|
}
|
|
31134
31515
|
|
|
31135
31516
|
// node_modules/react-bootstrap/esm/TabContainer.js
|
|
31136
|
-
var
|
|
31517
|
+
var import_jsx_runtime53 = __toESM(require_jsx_runtime());
|
|
31137
31518
|
var TabContainer = ({
|
|
31138
31519
|
transition,
|
|
31139
31520
|
...props
|
|
31140
|
-
}) => /* @__PURE__ */ (0,
|
|
31521
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Tabs_default, {
|
|
31141
31522
|
...props,
|
|
31142
31523
|
transition: getTabTransitionComponent(transition)
|
|
31143
31524
|
});
|
|
@@ -31145,20 +31526,20 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31145
31526
|
var TabContainer_default = TabContainer;
|
|
31146
31527
|
|
|
31147
31528
|
// node_modules/react-bootstrap/esm/TabContent.js
|
|
31148
|
-
var
|
|
31149
|
-
var
|
|
31150
|
-
var
|
|
31529
|
+
var React71 = __toESM(require_react());
|
|
31530
|
+
var import_classnames35 = __toESM(require_classnames());
|
|
31531
|
+
var import_jsx_runtime54 = __toESM(require_jsx_runtime());
|
|
31151
31532
|
"use client";
|
|
31152
|
-
var TabContent = /* @__PURE__ */
|
|
31533
|
+
var TabContent = /* @__PURE__ */ React71.forwardRef(({
|
|
31153
31534
|
className,
|
|
31154
31535
|
bsPrefix,
|
|
31155
31536
|
as: Component4 = "div",
|
|
31156
31537
|
...props
|
|
31157
31538
|
}, ref) => {
|
|
31158
31539
|
bsPrefix = useBootstrapPrefix(bsPrefix, "tab-content");
|
|
31159
|
-
return /* @__PURE__ */ (0,
|
|
31540
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Component4, {
|
|
31160
31541
|
ref,
|
|
31161
|
-
className: (0,
|
|
31542
|
+
className: (0, import_classnames35.default)(className, bsPrefix),
|
|
31162
31543
|
...props
|
|
31163
31544
|
});
|
|
31164
31545
|
});
|
|
@@ -31166,11 +31547,11 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31166
31547
|
var TabContent_default = TabContent;
|
|
31167
31548
|
|
|
31168
31549
|
// node_modules/react-bootstrap/esm/TabPane.js
|
|
31169
|
-
var
|
|
31170
|
-
var
|
|
31171
|
-
var
|
|
31550
|
+
var import_classnames36 = __toESM(require_classnames());
|
|
31551
|
+
var React72 = __toESM(require_react());
|
|
31552
|
+
var import_jsx_runtime55 = __toESM(require_jsx_runtime());
|
|
31172
31553
|
"use client";
|
|
31173
|
-
var TabPane = /* @__PURE__ */
|
|
31554
|
+
var TabPane = /* @__PURE__ */ React72.forwardRef(({
|
|
31174
31555
|
bsPrefix,
|
|
31175
31556
|
transition,
|
|
31176
31557
|
...props
|
|
@@ -31196,11 +31577,11 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31196
31577
|
transition: getTabTransitionComponent(transition)
|
|
31197
31578
|
});
|
|
31198
31579
|
const prefix = useBootstrapPrefix(bsPrefix, "tab-pane");
|
|
31199
|
-
return /* @__PURE__ */ (0,
|
|
31580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(TabContext_default.Provider, {
|
|
31200
31581
|
value: null,
|
|
31201
|
-
children: /* @__PURE__ */ (0,
|
|
31582
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectableContext_default.Provider, {
|
|
31202
31583
|
value: null,
|
|
31203
|
-
children: /* @__PURE__ */ (0,
|
|
31584
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Transition2, {
|
|
31204
31585
|
in: isActive,
|
|
31205
31586
|
onEnter,
|
|
31206
31587
|
onEntering,
|
|
@@ -31210,10 +31591,10 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31210
31591
|
onExited,
|
|
31211
31592
|
mountOnEnter,
|
|
31212
31593
|
unmountOnExit,
|
|
31213
|
-
children: /* @__PURE__ */ (0,
|
|
31594
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Component4, {
|
|
31214
31595
|
...rest,
|
|
31215
31596
|
ref,
|
|
31216
|
-
className: (0,
|
|
31597
|
+
className: (0, import_classnames36.default)(className, prefix, isActive && "active")
|
|
31217
31598
|
})
|
|
31218
31599
|
})
|
|
31219
31600
|
})
|
|
@@ -31253,11 +31634,11 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31253
31634
|
});
|
|
31254
31635
|
|
|
31255
31636
|
// node_modules/react-bootstrap/esm/Table.js
|
|
31256
|
-
var
|
|
31257
|
-
var
|
|
31258
|
-
var
|
|
31637
|
+
var import_classnames37 = __toESM(require_classnames());
|
|
31638
|
+
var React73 = __toESM(require_react());
|
|
31639
|
+
var import_jsx_runtime56 = __toESM(require_jsx_runtime());
|
|
31259
31640
|
"use client";
|
|
31260
|
-
var Table = /* @__PURE__ */
|
|
31641
|
+
var Table = /* @__PURE__ */ React73.forwardRef(({
|
|
31261
31642
|
bsPrefix,
|
|
31262
31643
|
className,
|
|
31263
31644
|
striped,
|
|
@@ -31270,8 +31651,8 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31270
31651
|
...props
|
|
31271
31652
|
}, ref) => {
|
|
31272
31653
|
const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, "table");
|
|
31273
|
-
const classes = (0,
|
|
31274
|
-
const table = /* @__PURE__ */ (0,
|
|
31654
|
+
const classes = (0, import_classnames37.default)(className, decoratedBsPrefix, variant && `${decoratedBsPrefix}-${variant}`, size && `${decoratedBsPrefix}-${size}`, striped && `${decoratedBsPrefix}-${typeof striped === "string" ? `striped-${striped}` : "striped"}`, bordered && `${decoratedBsPrefix}-bordered`, borderless && `${decoratedBsPrefix}-borderless`, hover && `${decoratedBsPrefix}-hover`);
|
|
31655
|
+
const table = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("table", {
|
|
31275
31656
|
...props,
|
|
31276
31657
|
className: classes,
|
|
31277
31658
|
ref
|
|
@@ -31281,7 +31662,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31281
31662
|
if (typeof responsive === "string") {
|
|
31282
31663
|
responsiveClass = `${responsiveClass}-${responsive}`;
|
|
31283
31664
|
}
|
|
31284
|
-
return /* @__PURE__ */ (0,
|
|
31665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", {
|
|
31285
31666
|
className: responsiveClass,
|
|
31286
31667
|
children: table
|
|
31287
31668
|
});
|
|
@@ -31291,14 +31672,14 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31291
31672
|
var Table_default = Table;
|
|
31292
31673
|
|
|
31293
31674
|
// src/NavBar.tsx
|
|
31294
|
-
var
|
|
31675
|
+
var import_react52 = __toESM(require_react(), 1);
|
|
31295
31676
|
var NavBar = ({
|
|
31296
31677
|
title,
|
|
31297
31678
|
backLink,
|
|
31298
31679
|
navItems = [],
|
|
31299
31680
|
rightContent
|
|
31300
31681
|
}) => {
|
|
31301
|
-
return /* @__PURE__ */
|
|
31682
|
+
return /* @__PURE__ */ import_react52.default.createElement(Navbar_default, { bg: "light", expand: "lg", className: "mb-4", sticky: "top" }, /* @__PURE__ */ import_react52.default.createElement(Container_default, { fluid: true }, backLink && /* @__PURE__ */ import_react52.default.createElement(
|
|
31302
31683
|
Nav_default2.Link,
|
|
31303
31684
|
{
|
|
31304
31685
|
as: Link,
|
|
@@ -31317,7 +31698,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31317
31698
|
title: "Go up one level"
|
|
31318
31699
|
},
|
|
31319
31700
|
"\u2191"
|
|
31320
|
-
), /* @__PURE__ */
|
|
31701
|
+
), /* @__PURE__ */ import_react52.default.createElement(Navbar_default.Brand, { className: backLink ? "ms-2" : "" }, title), /* @__PURE__ */ import_react52.default.createElement(Navbar_default.Toggle, { "aria-controls": "basic-navbar-nav" }), /* @__PURE__ */ import_react52.default.createElement(Navbar_default.Collapse, { id: "basic-navbar-nav" }, navItems.length > 0 && /* @__PURE__ */ import_react52.default.createElement(Nav_default2, { className: "me-auto" }, navItems.map((item, i) => /* @__PURE__ */ import_react52.default.createElement(
|
|
31321
31702
|
Nav_default2.Link,
|
|
31322
31703
|
{
|
|
31323
31704
|
key: i,
|
|
@@ -31333,18 +31714,18 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31333
31714
|
}
|
|
31334
31715
|
},
|
|
31335
31716
|
item.label
|
|
31336
|
-
))), rightContent && /* @__PURE__ */
|
|
31717
|
+
))), rightContent && /* @__PURE__ */ import_react52.default.createElement(Nav_default2, null, rightContent))));
|
|
31337
31718
|
};
|
|
31338
31719
|
|
|
31339
31720
|
// src/ProjectsPage.tsx
|
|
31340
31721
|
var ProjectsPage = () => {
|
|
31341
|
-
const [projects, setProjects] = (0,
|
|
31342
|
-
const [summaries, setSummaries] = (0,
|
|
31343
|
-
const [loading, setLoading] = (0,
|
|
31344
|
-
const [error, setError] = (0,
|
|
31722
|
+
const [projects, setProjects] = (0, import_react53.useState)([]);
|
|
31723
|
+
const [summaries, setSummaries] = (0, import_react53.useState)({});
|
|
31724
|
+
const [loading, setLoading] = (0, import_react53.useState)(true);
|
|
31725
|
+
const [error, setError] = (0, import_react53.useState)(null);
|
|
31345
31726
|
const navigate = useNavigate();
|
|
31346
|
-
const [configs, setConfigs] = (0,
|
|
31347
|
-
(0,
|
|
31727
|
+
const [configs, setConfigs] = (0, import_react53.useState)({});
|
|
31728
|
+
(0, import_react53.useEffect)(() => {
|
|
31348
31729
|
const fetchProjects = async () => {
|
|
31349
31730
|
try {
|
|
31350
31731
|
const projectsRes = await fetch(`projects.json`);
|
|
@@ -31370,9 +31751,9 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31370
31751
|
return {
|
|
31371
31752
|
name,
|
|
31372
31753
|
testCount: Object.keys(summary).length,
|
|
31373
|
-
nodeStatus: nodeData.errors?.length ? "failed" : "success",
|
|
31374
|
-
webStatus: webData.errors?.length ? "failed" : "success",
|
|
31375
|
-
pureStatus: pureData.errors?.length ? "failed" : "success",
|
|
31754
|
+
nodeStatus: nodeData.errors?.length ? "failed" : nodeData.warnings?.length ? "warning" : "success",
|
|
31755
|
+
webStatus: webData.errors?.length ? "failed" : webData.warnings?.length ? "warning" : "success",
|
|
31756
|
+
pureStatus: pureData.errors?.length ? "failed" : pureData.warnings?.length ? "warning" : "success",
|
|
31376
31757
|
config: Object.keys(configData).length
|
|
31377
31758
|
};
|
|
31378
31759
|
})
|
|
@@ -31392,39 +31773,80 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31392
31773
|
return "\u2705";
|
|
31393
31774
|
case "failed":
|
|
31394
31775
|
return "\u274C";
|
|
31776
|
+
case "warning":
|
|
31777
|
+
return "\u26A0\uFE0F";
|
|
31395
31778
|
default:
|
|
31396
31779
|
return "\u2753";
|
|
31397
31780
|
}
|
|
31398
31781
|
};
|
|
31399
31782
|
if (loading)
|
|
31400
|
-
return /* @__PURE__ */
|
|
31783
|
+
return /* @__PURE__ */ import_react53.default.createElement("div", null, "Loading projects...");
|
|
31401
31784
|
if (error)
|
|
31402
|
-
return /* @__PURE__ */
|
|
31785
|
+
return /* @__PURE__ */ import_react53.default.createElement(Alert_default, { variant: "danger" }, "Error: ", error);
|
|
31403
31786
|
console.log(configs);
|
|
31404
|
-
return /* @__PURE__ */
|
|
31787
|
+
return /* @__PURE__ */ import_react53.default.createElement("div", { className: "p-3" }, /* @__PURE__ */ import_react53.default.createElement(NavBar, { title: "Testeranto", backLink: null }), /* @__PURE__ */ import_react53.default.createElement(Table_default, { striped: true, bordered: true, hover: true, responsive: true }, /* @__PURE__ */ import_react53.default.createElement("thead", null, /* @__PURE__ */ import_react53.default.createElement("tr", null, /* @__PURE__ */ import_react53.default.createElement("th", null, "Project"), /* @__PURE__ */ import_react53.default.createElement("th", null, "Tests"), /* @__PURE__ */ import_react53.default.createElement("th", null, "Node"), /* @__PURE__ */ import_react53.default.createElement("th", null, "Web"), /* @__PURE__ */ import_react53.default.createElement("th", null, "Pure"))), /* @__PURE__ */ import_react53.default.createElement("tbody", null, projects.map((project) => /* @__PURE__ */ import_react53.default.createElement("tr", { key: project.name }, /* @__PURE__ */ import_react53.default.createElement("td", null, /* @__PURE__ */ import_react53.default.createElement("a", { href: "#", onClick: (e) => {
|
|
31405
31788
|
e.preventDefault();
|
|
31406
31789
|
navigate(`/projects/${project.name}`);
|
|
31407
|
-
} }, project.name)), /* @__PURE__ */
|
|
31790
|
+
} }, project.name)), /* @__PURE__ */ import_react53.default.createElement("td", null, /* @__PURE__ */ import_react53.default.createElement("div", { style: { maxHeight: "200px", overflowY: "auto" } }, summaries[project.name] ? Object.keys(summaries[project.name]).map((testName2) => {
|
|
31791
|
+
const testData = summaries[project.name][testName2];
|
|
31408
31792
|
const runTime = configs[project.name].tests.find((t) => t[0] === testName2)[1];
|
|
31409
|
-
|
|
31410
|
-
|
|
31793
|
+
const hasRuntimeErrors = testData.runTimeErrors > 0;
|
|
31794
|
+
const hasStaticErrors = testData.typeErrors > 0 || testData.staticErrors > 0;
|
|
31795
|
+
return /* @__PURE__ */ import_react53.default.createElement("div", { key: testName2 }, /* @__PURE__ */ import_react53.default.createElement(
|
|
31796
|
+
"a",
|
|
31797
|
+
{
|
|
31798
|
+
href: `#/projects/${project.name}/tests/${encodeURIComponent(testName2)}/${runTime}`
|
|
31799
|
+
},
|
|
31800
|
+
hasRuntimeErrors ? "\u274C " : hasStaticErrors ? "\u26A0\uFE0F " : "",
|
|
31801
|
+
testName2.split("/").pop()
|
|
31802
|
+
));
|
|
31803
|
+
}) : /* @__PURE__ */ import_react53.default.createElement("div", null, "Loading tests..."))), /* @__PURE__ */ import_react53.default.createElement("td", null, /* @__PURE__ */ import_react53.default.createElement(
|
|
31804
|
+
"a",
|
|
31805
|
+
{
|
|
31806
|
+
href: `#/projects/${project.name}#node`
|
|
31807
|
+
},
|
|
31808
|
+
getStatusIcon(project.nodeStatus),
|
|
31809
|
+
" Node build logs"
|
|
31810
|
+
)), /* @__PURE__ */ import_react53.default.createElement("td", null, /* @__PURE__ */ import_react53.default.createElement(
|
|
31811
|
+
"a",
|
|
31812
|
+
{
|
|
31813
|
+
href: `#/projects/${project.name}#web`
|
|
31814
|
+
},
|
|
31815
|
+
getStatusIcon(project.webStatus),
|
|
31816
|
+
" Web build logs"
|
|
31817
|
+
)), /* @__PURE__ */ import_react53.default.createElement("td", null, /* @__PURE__ */ import_react53.default.createElement(
|
|
31818
|
+
"a",
|
|
31819
|
+
{
|
|
31820
|
+
href: `#/projects/${project.name}#pure`
|
|
31821
|
+
},
|
|
31822
|
+
getStatusIcon(project.pureStatus),
|
|
31823
|
+
" Pure build logs"
|
|
31824
|
+
)))))));
|
|
31411
31825
|
};
|
|
31412
31826
|
|
|
31413
31827
|
// src/ProjectPage.tsx
|
|
31414
|
-
var
|
|
31828
|
+
var import_react54 = __toESM(require_react(), 1);
|
|
31829
|
+
var BuildLogViewer = ({ logs, runtime }) => {
|
|
31830
|
+
if (!logs)
|
|
31831
|
+
return /* @__PURE__ */ import_react54.default.createElement(Alert_default, { variant: "info" }, "Loading ", runtime.toLowerCase(), " build logs...");
|
|
31832
|
+
const hasErrors = logs.errors?.length > 0;
|
|
31833
|
+
const hasWarnings = logs.warnings?.length > 0;
|
|
31834
|
+
const [activeTab, setActiveTab] = (0, import_react54.useState)("summary");
|
|
31835
|
+
return /* @__PURE__ */ import_react54.default.createElement("div", null, /* @__PURE__ */ import_react54.default.createElement(Tab_default.Container, { activeKey: activeTab, onSelect: (k) => setActiveTab(k || "summary") }, /* @__PURE__ */ import_react54.default.createElement(Nav_default2, { variant: "tabs", className: "mb-3" }, /* @__PURE__ */ import_react54.default.createElement(Nav_default2.Item, null, /* @__PURE__ */ import_react54.default.createElement(Nav_default2.Link, { eventKey: "summary" }, "Build Summary")), /* @__PURE__ */ import_react54.default.createElement(Nav_default2.Item, null, /* @__PURE__ */ import_react54.default.createElement(Nav_default2.Link, { eventKey: "warnings" }, hasWarnings ? `\u26A0\uFE0F Warnings (${logs.warnings.length})` : "Warnings")), /* @__PURE__ */ import_react54.default.createElement(Nav_default2.Item, null, /* @__PURE__ */ import_react54.default.createElement(Nav_default2.Link, { eventKey: "errors" }, hasErrors ? `\u274C Errors (${logs.errors.length})` : "Errors"))), /* @__PURE__ */ import_react54.default.createElement(Tab_default.Content, null, /* @__PURE__ */ import_react54.default.createElement(Tab_default.Pane, { eventKey: "summary" }, /* @__PURE__ */ import_react54.default.createElement(Card_default, null, /* @__PURE__ */ import_react54.default.createElement(Card_default.Header, { className: "d-flex justify-content-between align-items-center" }, /* @__PURE__ */ import_react54.default.createElement("h5", null, "Build Summary"), /* @__PURE__ */ import_react54.default.createElement("div", null, hasErrors && /* @__PURE__ */ import_react54.default.createElement(Badge_default, { bg: "danger", className: "me-2" }, logs.errors.length, " Error", logs.errors.length !== 1 ? "s" : ""), hasWarnings && /* @__PURE__ */ import_react54.default.createElement(Badge_default, { bg: "warning", text: "dark" }, logs.warnings.length, " Warning", logs.warnings.length !== 1 ? "s" : ""), !hasErrors && !hasWarnings && /* @__PURE__ */ import_react54.default.createElement(Badge_default, { bg: "success" }, "Build Successful"))), /* @__PURE__ */ import_react54.default.createElement(Card_default.Body, null, /* @__PURE__ */ import_react54.default.createElement("div", { className: "mb-3" }, /* @__PURE__ */ import_react54.default.createElement("h6", null, "Input Files (", Object.keys(logs.metafile?.inputs || {}).length, ")"), /* @__PURE__ */ import_react54.default.createElement(ListGroup_default, { className: "max-h-200 overflow-auto" }, Object.keys(logs.metafile?.inputs || {}).map((file) => /* @__PURE__ */ import_react54.default.createElement(ListGroup_default.Item, { key: file, className: "py-2" }, /* @__PURE__ */ import_react54.default.createElement("code", null, file), /* @__PURE__ */ import_react54.default.createElement("div", { className: "text-muted small" }, logs.metafile.inputs[file].bytes, " bytes"))))), /* @__PURE__ */ import_react54.default.createElement("div", null, /* @__PURE__ */ import_react54.default.createElement("h6", null, "Output Files (", Object.keys(logs.metafile?.outputs || {}).length, ")"), /* @__PURE__ */ import_react54.default.createElement(ListGroup_default, { className: "max-h-200 overflow-auto" }, Object.keys(logs.metafile?.outputs || {}).map((file) => /* @__PURE__ */ import_react54.default.createElement(ListGroup_default.Item, { key: file, className: "py-2" }, /* @__PURE__ */ import_react54.default.createElement("code", null, file), /* @__PURE__ */ import_react54.default.createElement("div", { className: "text-muted small" }, logs.metafile.outputs[file].bytes, " bytes", logs.metafile.outputs[file].entryPoint && /* @__PURE__ */ import_react54.default.createElement("span", { className: "ms-2 badge bg-info" }, "Entry Point"))))))))), /* @__PURE__ */ import_react54.default.createElement(Tab_default.Pane, { eventKey: "warnings" }, hasWarnings ? /* @__PURE__ */ import_react54.default.createElement(Card_default, { className: "border-warning" }, /* @__PURE__ */ import_react54.default.createElement(Card_default.Header, { className: "bg-warning text-white d-flex justify-content-between align-items-center" }, /* @__PURE__ */ import_react54.default.createElement("span", null, "Build Warnings (", logs.warnings.length, ")"), /* @__PURE__ */ import_react54.default.createElement(Badge_default, { bg: "light", text: "dark" }, (/* @__PURE__ */ new Date()).toLocaleString())), /* @__PURE__ */ import_react54.default.createElement(Card_default.Body, { className: "p-0" }, /* @__PURE__ */ import_react54.default.createElement(ListGroup_default, { variant: "flush" }, logs.warnings.map((warn, i) => /* @__PURE__ */ import_react54.default.createElement(ListGroup_default.Item, { key: i, className: "text-warning" }, /* @__PURE__ */ import_react54.default.createElement("div", { className: "d-flex justify-content-between" }, /* @__PURE__ */ import_react54.default.createElement("strong", null, warn.location?.file || "Unknown file", warn.location?.line && `:${warn.location.line}`), /* @__PURE__ */ import_react54.default.createElement("small", { className: "text-muted" }, warn.pluginName ? `[${warn.pluginName}]` : "")), /* @__PURE__ */ import_react54.default.createElement("div", { className: "mt-1" }, /* @__PURE__ */ import_react54.default.createElement("pre", { className: "mb-0 p-2 bg-light rounded" }, warn.text || warn.message || JSON.stringify(warn))), warn.detail && /* @__PURE__ */ import_react54.default.createElement("div", { className: "mt-1 small text-muted" }, /* @__PURE__ */ import_react54.default.createElement("pre", { className: "mb-0 p-2 bg-light rounded" }, warn.detail))))))) : /* @__PURE__ */ import_react54.default.createElement(Alert_default, { variant: "info" }, "No warnings found")), /* @__PURE__ */ import_react54.default.createElement(Tab_default.Pane, { eventKey: "errors" }, hasErrors ? /* @__PURE__ */ import_react54.default.createElement(Card_default, { className: "border-danger" }, /* @__PURE__ */ import_react54.default.createElement(Card_default.Header, { className: "bg-danger text-white d-flex justify-content-between align-items-center" }, /* @__PURE__ */ import_react54.default.createElement("span", null, "Build Errors (", logs.errors.length, ")"), /* @__PURE__ */ import_react54.default.createElement(Badge_default, { bg: "light", text: "dark" }, (/* @__PURE__ */ new Date()).toLocaleString())), /* @__PURE__ */ import_react54.default.createElement(Card_default.Body, { className: "p-0" }, /* @__PURE__ */ import_react54.default.createElement(ListGroup_default, { variant: "flush" }, logs.errors.map((err, i) => /* @__PURE__ */ import_react54.default.createElement(ListGroup_default.Item, { key: i, className: "text-danger" }, /* @__PURE__ */ import_react54.default.createElement("div", { className: "d-flex justify-content-between" }, /* @__PURE__ */ import_react54.default.createElement("strong", null, err.location?.file || "Unknown file", err.location?.line && `:${err.location.line}`), /* @__PURE__ */ import_react54.default.createElement("small", { className: "text-muted" }, err.pluginName ? `[${err.pluginName}]` : "")), /* @__PURE__ */ import_react54.default.createElement("div", { className: "mt-1" }, /* @__PURE__ */ import_react54.default.createElement("pre", { className: "mb-0 p-2 bg-light rounded" }, err.text || err.message || JSON.stringify(err))), err.detail && /* @__PURE__ */ import_react54.default.createElement("div", { className: "mt-1 small text-muted" }, /* @__PURE__ */ import_react54.default.createElement("pre", { className: "mb-0 p-2 bg-light rounded" }, err.detail))))))) : /* @__PURE__ */ import_react54.default.createElement(Alert_default, { variant: "success" }, /* @__PURE__ */ import_react54.default.createElement("h5", null, "No Errors Found"), /* @__PURE__ */ import_react54.default.createElement("p", { className: "mb-0" }, "The build completed without any errors."))))));
|
|
31836
|
+
};
|
|
31415
31837
|
var ProjectPage = () => {
|
|
31416
|
-
const [summary, setSummary] = (0,
|
|
31417
|
-
const [nodeLogs, setNodeLogs] = (0,
|
|
31418
|
-
const [webLogs, setWebLogs] = (0,
|
|
31419
|
-
const [pureLogs, setPureLogs] = (0,
|
|
31420
|
-
const [config, setConfig] = (0,
|
|
31421
|
-
const [loading, setLoading] = (0,
|
|
31422
|
-
const [error, setError] = (0,
|
|
31423
|
-
const [projectName, setProjectName] = (0,
|
|
31838
|
+
const [summary, setSummary] = (0, import_react54.useState)(null);
|
|
31839
|
+
const [nodeLogs, setNodeLogs] = (0, import_react54.useState)(null);
|
|
31840
|
+
const [webLogs, setWebLogs] = (0, import_react54.useState)(null);
|
|
31841
|
+
const [pureLogs, setPureLogs] = (0, import_react54.useState)(null);
|
|
31842
|
+
const [config, setConfig] = (0, import_react54.useState)({});
|
|
31843
|
+
const [loading, setLoading] = (0, import_react54.useState)(true);
|
|
31844
|
+
const [error, setError] = (0, import_react54.useState)(null);
|
|
31845
|
+
const [projectName, setProjectName] = (0, import_react54.useState)("");
|
|
31424
31846
|
const navigate = useNavigate();
|
|
31425
31847
|
const location = useLocation();
|
|
31426
|
-
const [route, setRoute] = (0,
|
|
31427
|
-
(0,
|
|
31848
|
+
const [route, setRoute] = (0, import_react54.useState)("tests");
|
|
31849
|
+
(0, import_react54.useEffect)(() => {
|
|
31428
31850
|
const hash = location.hash.replace("#", "");
|
|
31429
31851
|
if (hash && ["tests", "node", "web", "pure"].includes(hash)) {
|
|
31430
31852
|
setRoute(hash);
|
|
@@ -31433,7 +31855,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31433
31855
|
}
|
|
31434
31856
|
}, [location.hash]);
|
|
31435
31857
|
const { projectName: name } = useParams();
|
|
31436
|
-
(0,
|
|
31858
|
+
(0, import_react54.useEffect)(() => {
|
|
31437
31859
|
if (!name)
|
|
31438
31860
|
return;
|
|
31439
31861
|
setProjectName(name);
|
|
@@ -31473,255 +31895,100 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31473
31895
|
fetchData();
|
|
31474
31896
|
}, []);
|
|
31475
31897
|
if (loading)
|
|
31476
|
-
return /* @__PURE__ */
|
|
31898
|
+
return /* @__PURE__ */ import_react54.default.createElement("div", null, "Loading project data...");
|
|
31477
31899
|
if (error)
|
|
31478
|
-
return /* @__PURE__ */
|
|
31900
|
+
return /* @__PURE__ */ import_react54.default.createElement(Alert_default, { variant: "danger" }, "Error: ", error);
|
|
31479
31901
|
if (!summary)
|
|
31480
|
-
return /* @__PURE__ */
|
|
31481
|
-
return /* @__PURE__ */
|
|
31902
|
+
return /* @__PURE__ */ import_react54.default.createElement(Alert_default, { variant: "warning" }, "No data found for project");
|
|
31903
|
+
return /* @__PURE__ */ import_react54.default.createElement(Container_default, { fluid: true }, /* @__PURE__ */ import_react54.default.createElement(
|
|
31482
31904
|
NavBar,
|
|
31483
31905
|
{
|
|
31484
31906
|
title: projectName,
|
|
31485
31907
|
backLink: "/",
|
|
31486
31908
|
navItems: [
|
|
31487
|
-
{
|
|
31909
|
+
{
|
|
31910
|
+
to: `#tests`,
|
|
31911
|
+
label: Object.values(summary).some((t) => t.runTimeErrors > 0) ? "\u274C Tests" : Object.values(summary).some((t) => t.typeErrors > 0 || t.staticErrors > 0) ? "\u26A0\uFE0F Tests" : "\u2705 Tests",
|
|
31912
|
+
active: route === "tests",
|
|
31913
|
+
className: Object.values(summary).some((t) => t.runTimeErrors > 0) ? "text-danger fw-bold" : Object.values(summary).some((t) => t.typeErrors > 0 || t.staticErrors > 0) ? "text-warning fw-bold" : ""
|
|
31914
|
+
},
|
|
31488
31915
|
{
|
|
31489
31916
|
to: `#node`,
|
|
31490
|
-
label: nodeLogs?.errors?.length ? "\u274C Node Build" : "\
|
|
31917
|
+
label: nodeLogs?.errors?.length ? "\u274C Node Build" : nodeLogs?.warnings?.length ? "\u26A0\uFE0F Node Build" : "Node Build",
|
|
31491
31918
|
active: route === "node",
|
|
31492
|
-
className: nodeLogs?.errors?.length ? "text-danger fw-bold" : "text-
|
|
31919
|
+
className: nodeLogs?.errors?.length ? "text-danger fw-bold" : nodeLogs?.warnings?.length ? "text-warning fw-bold" : ""
|
|
31493
31920
|
},
|
|
31494
31921
|
{
|
|
31495
31922
|
to: `#web`,
|
|
31496
|
-
label: webLogs?.errors?.length ? "\u274C Web Build" : "\
|
|
31923
|
+
label: webLogs?.errors?.length ? "\u274C Web Build" : webLogs?.warnings?.length ? "\u26A0\uFE0F Web Build" : "Web Build",
|
|
31497
31924
|
active: route === "web",
|
|
31498
|
-
className: webLogs?.errors?.length ? "text-danger fw-bold" : "text-
|
|
31925
|
+
className: webLogs?.errors?.length ? "text-danger fw-bold" : webLogs?.warnings?.length ? "text-warning fw-bold" : ""
|
|
31499
31926
|
},
|
|
31500
31927
|
{
|
|
31501
31928
|
to: `#pure`,
|
|
31502
|
-
label: pureLogs?.errors?.length ? "\u274C Pure Build" : "\
|
|
31929
|
+
label: pureLogs?.errors?.length ? "\u274C Pure Build" : pureLogs?.warnings?.length ? "\u26A0\uFE0F Pure Build" : "Pure Build",
|
|
31503
31930
|
active: route === "pure",
|
|
31504
|
-
className: pureLogs?.errors?.length ? "text-danger fw-bold" : "text-
|
|
31931
|
+
className: pureLogs?.errors?.length ? "text-danger fw-bold" : pureLogs?.warnings?.length ? "text-warning fw-bold" : ""
|
|
31505
31932
|
}
|
|
31506
31933
|
]
|
|
31507
31934
|
}
|
|
31508
|
-
), /* @__PURE__ */
|
|
31935
|
+
), /* @__PURE__ */ import_react54.default.createElement(Tab_default.Container, { activeKey: route, onSelect: (k) => {
|
|
31509
31936
|
if (k) {
|
|
31510
31937
|
setRoute(k);
|
|
31511
31938
|
navigate(`#${k}`, { replace: true });
|
|
31512
31939
|
}
|
|
31513
|
-
} }, /* @__PURE__ */
|
|
31940
|
+
} }, /* @__PURE__ */ import_react54.default.createElement(Tab_default.Content, null, /* @__PURE__ */ import_react54.default.createElement(Tab_default.Pane, { eventKey: "tests" }, /* @__PURE__ */ import_react54.default.createElement(Table_default, { striped: true, bordered: true, hover: true }, /* @__PURE__ */ import_react54.default.createElement("thead", null, /* @__PURE__ */ import_react54.default.createElement("tr", null, /* @__PURE__ */ import_react54.default.createElement("th", null, "Test"), /* @__PURE__ */ import_react54.default.createElement("th", null, "BDD Errors"), /* @__PURE__ */ import_react54.default.createElement("th", null, "Type Errors"), /* @__PURE__ */ import_react54.default.createElement("th", null, "Lint Errors"))), /* @__PURE__ */ import_react54.default.createElement("tbody", null, Object.entries(summary).map(([testName2, testData]) => {
|
|
31514
31941
|
const runTime = config.tests.find((t) => t[0] === testName2)[1];
|
|
31515
|
-
return /* @__PURE__ */
|
|
31516
|
-
})))), /* @__PURE__ */
|
|
31942
|
+
return /* @__PURE__ */ import_react54.default.createElement("tr", { key: testName2 }, /* @__PURE__ */ import_react54.default.createElement("td", null, /* @__PURE__ */ import_react54.default.createElement("a", { href: `#/projects/${projectName}/tests/${encodeURIComponent(testName2)}/${runTime}` }, testName2)), /* @__PURE__ */ import_react54.default.createElement("td", null, /* @__PURE__ */ import_react54.default.createElement("a", { href: `#/projects/${projectName}/tests/${encodeURIComponent(testName2)}/${runTime}#results` }, testData.runTimeErrors === 0 ? "\u2705 Passed" : testData.runTimeErrors > 0 ? `\u26A0\uFE0F ${testData.runTimeErrors} errors` : "\u274C Failed")), /* @__PURE__ */ import_react54.default.createElement("td", null, /* @__PURE__ */ import_react54.default.createElement("a", { href: `#/projects/${projectName}/tests/${encodeURIComponent(testName2)}/${runTime}#types` }, testData.typeErrors)), /* @__PURE__ */ import_react54.default.createElement("td", null, /* @__PURE__ */ import_react54.default.createElement("a", { href: `#/projects/${projectName}/tests/${encodeURIComponent(testName2)}/${runTime}#lint` }, testData.staticErrors)));
|
|
31943
|
+
})))), /* @__PURE__ */ import_react54.default.createElement(Tab_default.Pane, { eventKey: "node" }, /* @__PURE__ */ import_react54.default.createElement(BuildLogViewer, { logs: nodeLogs, runtime: "Node" })), /* @__PURE__ */ import_react54.default.createElement(Tab_default.Pane, { eventKey: "web" }, /* @__PURE__ */ import_react54.default.createElement(BuildLogViewer, { logs: webLogs, runtime: "Web" })), /* @__PURE__ */ import_react54.default.createElement(Tab_default.Pane, { eventKey: "pure" }, /* @__PURE__ */ import_react54.default.createElement(BuildLogViewer, { logs: pureLogs, runtime: "Pure" })))));
|
|
31517
31944
|
};
|
|
31518
31945
|
|
|
31519
31946
|
// src/TestPage.tsx
|
|
31520
|
-
var
|
|
31947
|
+
var import_react55 = __toESM(require_react(), 1);
|
|
31521
31948
|
|
|
31522
31949
|
// src/utils/api.ts
|
|
31523
31950
|
var fetchTestData = async (projectName, filepath, runTime) => {
|
|
31524
31951
|
const basePath = `reports/${projectName}/${filepath.split(".").slice(0, -1).join(".")}/${runTime}`;
|
|
31525
|
-
|
|
31526
|
-
|
|
31527
|
-
|
|
31528
|
-
|
|
31529
|
-
|
|
31530
|
-
|
|
31531
|
-
|
|
31532
|
-
|
|
31533
|
-
|
|
31534
|
-
|
|
31535
|
-
|
|
31536
|
-
|
|
31537
|
-
|
|
31538
|
-
|
|
31539
|
-
|
|
31540
|
-
name: "Testing the Rectangle class",
|
|
31541
|
-
givens: [
|
|
31542
|
-
{
|
|
31543
|
-
key: "test0",
|
|
31544
|
-
name: "Default",
|
|
31545
|
-
whens: [
|
|
31546
|
-
{
|
|
31547
|
-
name: "setWidth: 4",
|
|
31548
|
-
error: true
|
|
31549
|
-
},
|
|
31550
|
-
{
|
|
31551
|
-
name: "setHeight: 19",
|
|
31552
|
-
error: true
|
|
31553
|
-
}
|
|
31554
|
-
],
|
|
31555
|
-
thens: [
|
|
31556
|
-
{
|
|
31557
|
-
name: "getWidth: 4",
|
|
31558
|
-
error: false
|
|
31559
|
-
},
|
|
31560
|
-
{
|
|
31561
|
-
name: "getHeight: 19",
|
|
31562
|
-
error: false
|
|
31563
|
-
}
|
|
31564
|
-
],
|
|
31565
|
-
error: null,
|
|
31566
|
-
features: [
|
|
31567
|
-
"https://api.github.com/repos/adamwong246/testeranto/issues/8"
|
|
31568
|
-
]
|
|
31569
|
-
},
|
|
31570
|
-
{
|
|
31571
|
-
key: "test1",
|
|
31572
|
-
name: "Default",
|
|
31573
|
-
whens: [
|
|
31574
|
-
{
|
|
31575
|
-
name: "setWidth: 4",
|
|
31576
|
-
error: true
|
|
31577
|
-
},
|
|
31578
|
-
{
|
|
31579
|
-
name: "setHeight: 5",
|
|
31580
|
-
error: true
|
|
31581
|
-
}
|
|
31582
|
-
],
|
|
31583
|
-
thens: [
|
|
31584
|
-
{
|
|
31585
|
-
name: "getWidth: 4",
|
|
31586
|
-
error: false
|
|
31587
|
-
},
|
|
31588
|
-
{
|
|
31589
|
-
name: "getHeight: 5",
|
|
31590
|
-
error: false
|
|
31591
|
-
},
|
|
31592
|
-
{
|
|
31593
|
-
name: "area: 20",
|
|
31594
|
-
error: false
|
|
31595
|
-
},
|
|
31596
|
-
{
|
|
31597
|
-
name: "AreaPlusCircumference: 38",
|
|
31598
|
-
error: false
|
|
31599
|
-
}
|
|
31600
|
-
],
|
|
31601
|
-
error: null,
|
|
31602
|
-
features: ["Rectangles have width and height."]
|
|
31603
|
-
},
|
|
31604
|
-
{
|
|
31605
|
-
key: "test2",
|
|
31606
|
-
name: "Default",
|
|
31607
|
-
whens: [
|
|
31608
|
-
{
|
|
31609
|
-
name: "setHeight: 4",
|
|
31610
|
-
error: true
|
|
31611
|
-
},
|
|
31612
|
-
{
|
|
31613
|
-
name: "setWidth: 33",
|
|
31614
|
-
error: true
|
|
31615
|
-
}
|
|
31616
|
-
],
|
|
31617
|
-
thens: [
|
|
31618
|
-
{
|
|
31619
|
-
name: "area: 132",
|
|
31620
|
-
error: false
|
|
31621
|
-
}
|
|
31622
|
-
],
|
|
31623
|
-
error: null,
|
|
31624
|
-
features: ["Rectangles have area"]
|
|
31625
|
-
},
|
|
31626
|
-
{
|
|
31627
|
-
key: "test2_1",
|
|
31628
|
-
name: "Default",
|
|
31629
|
-
whens: [],
|
|
31630
|
-
thens: [
|
|
31631
|
-
{
|
|
31632
|
-
name: "getWidth: 2",
|
|
31633
|
-
error: false
|
|
31634
|
-
},
|
|
31635
|
-
{
|
|
31636
|
-
name: "getHeight: 2",
|
|
31637
|
-
error: false
|
|
31638
|
-
}
|
|
31639
|
-
],
|
|
31640
|
-
error: null,
|
|
31641
|
-
features: ["Rectangles have default size"]
|
|
31642
|
-
},
|
|
31643
|
-
{
|
|
31644
|
-
key: "test3",
|
|
31645
|
-
name: "Default",
|
|
31646
|
-
whens: [
|
|
31647
|
-
{
|
|
31648
|
-
name: "setHeight: 5",
|
|
31649
|
-
error: true
|
|
31650
|
-
},
|
|
31651
|
-
{
|
|
31652
|
-
name: "setWidth: 5",
|
|
31653
|
-
error: true
|
|
31654
|
-
}
|
|
31655
|
-
],
|
|
31656
|
-
thens: [
|
|
31657
|
-
{
|
|
31658
|
-
name: "area: 25",
|
|
31659
|
-
error: false
|
|
31660
|
-
}
|
|
31661
|
-
],
|
|
31662
|
-
error: null,
|
|
31663
|
-
features: [
|
|
31664
|
-
"file:///Users/adam/Code/testeranto-starter/src/Rectangle/README.md"
|
|
31665
|
-
]
|
|
31666
|
-
},
|
|
31667
|
-
{
|
|
31668
|
-
key: "test4",
|
|
31669
|
-
name: "Default",
|
|
31670
|
-
whens: [
|
|
31671
|
-
{
|
|
31672
|
-
name: "setHeight: 6",
|
|
31673
|
-
error: true
|
|
31674
|
-
},
|
|
31675
|
-
{
|
|
31676
|
-
name: "setWidth: 6",
|
|
31677
|
-
error: true
|
|
31678
|
-
}
|
|
31679
|
-
],
|
|
31680
|
-
thens: [
|
|
31681
|
-
{
|
|
31682
|
-
name: "area: 36",
|
|
31683
|
-
error: false
|
|
31684
|
-
}
|
|
31685
|
-
],
|
|
31686
|
-
error: null,
|
|
31687
|
-
features: ["Rectangles have area"]
|
|
31688
|
-
},
|
|
31689
|
-
{
|
|
31690
|
-
key: "test5",
|
|
31691
|
-
name: "Default",
|
|
31692
|
-
whens: [],
|
|
31693
|
-
thens: [
|
|
31694
|
-
{
|
|
31695
|
-
name: "getWidth: 2",
|
|
31696
|
-
error: false
|
|
31697
|
-
},
|
|
31698
|
-
{
|
|
31699
|
-
name: "getHeight: 2",
|
|
31700
|
-
error: false
|
|
31701
|
-
}
|
|
31702
|
-
],
|
|
31703
|
-
error: null,
|
|
31704
|
-
features: ["Rectangles have default size, again"]
|
|
31952
|
+
try {
|
|
31953
|
+
const [testRes, logsRes, typeRes, lintRes] = await Promise.all([
|
|
31954
|
+
fetch(`${basePath}/tests.json`),
|
|
31955
|
+
fetch(`${basePath}/logs.txt`),
|
|
31956
|
+
fetch(`${basePath}/type_errors.txt`),
|
|
31957
|
+
fetch(`${basePath}/lint_errors.txt`)
|
|
31958
|
+
]);
|
|
31959
|
+
if (!testRes.ok) {
|
|
31960
|
+
return {
|
|
31961
|
+
testData: null,
|
|
31962
|
+
logs: await logsRes.text(),
|
|
31963
|
+
typeErrors: await typeRes.text(),
|
|
31964
|
+
lintErrors: await lintRes.text(),
|
|
31965
|
+
error: "Tests did not complete successfully. Please check the build and runtime logs for errors."
|
|
31966
|
+
};
|
|
31705
31967
|
}
|
|
31706
|
-
|
|
31707
|
-
|
|
31708
|
-
|
|
31709
|
-
|
|
31710
|
-
|
|
31711
|
-
|
|
31712
|
-
|
|
31713
|
-
|
|
31714
|
-
|
|
31715
|
-
|
|
31716
|
-
|
|
31968
|
+
return {
|
|
31969
|
+
testData: await testRes.json(),
|
|
31970
|
+
logs: await logsRes.text(),
|
|
31971
|
+
typeErrors: await typeRes.text(),
|
|
31972
|
+
lintErrors: await lintRes.text(),
|
|
31973
|
+
error: null
|
|
31974
|
+
};
|
|
31975
|
+
} catch (err) {
|
|
31976
|
+
return {
|
|
31977
|
+
testData: null,
|
|
31978
|
+
logs: "",
|
|
31979
|
+
typeErrors: "",
|
|
31980
|
+
lintErrors: "",
|
|
31981
|
+
error: `Failed to load test data: ${err instanceof Error ? err.message : String(err)}`
|
|
31982
|
+
};
|
|
31983
|
+
}
|
|
31717
31984
|
};
|
|
31718
31985
|
|
|
31719
31986
|
// src/TestPage.tsx
|
|
31720
31987
|
var TestPage = () => {
|
|
31721
31988
|
const navigate = useNavigate();
|
|
31722
31989
|
const location = useLocation();
|
|
31723
|
-
const [route, setRoute] = (0,
|
|
31724
|
-
(0,
|
|
31990
|
+
const [route, setRoute] = (0, import_react55.useState)("results");
|
|
31991
|
+
(0, import_react55.useEffect)(() => {
|
|
31725
31992
|
const hash = location.hash.replace("#", "");
|
|
31726
31993
|
if (hash && ["results", "logs", "types", "lint", "coverage"].includes(hash)) {
|
|
31727
31994
|
setRoute(hash);
|
|
@@ -31729,31 +31996,58 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31729
31996
|
setRoute("results");
|
|
31730
31997
|
}
|
|
31731
31998
|
}, [location.hash]);
|
|
31732
|
-
const [testName2, setTestName] = (0,
|
|
31733
|
-
const [testData, setTestData] = (0,
|
|
31734
|
-
const [logs, setLogs] = (0,
|
|
31735
|
-
const [typeErrors, setTypeErrors] = (0,
|
|
31736
|
-
const [lintErrors, setLintErrors] = (0,
|
|
31737
|
-
const [loading, setLoading] = (0,
|
|
31738
|
-
const [error, setError] = (0,
|
|
31999
|
+
const [testName2, setTestName] = (0, import_react55.useState)("");
|
|
32000
|
+
const [testData, setTestData] = (0, import_react55.useState)(null);
|
|
32001
|
+
const [logs, setLogs] = (0, import_react55.useState)("");
|
|
32002
|
+
const [typeErrors, setTypeErrors] = (0, import_react55.useState)("");
|
|
32003
|
+
const [lintErrors, setLintErrors] = (0, import_react55.useState)("");
|
|
32004
|
+
const [loading, setLoading] = (0, import_react55.useState)(true);
|
|
32005
|
+
const [error, setError] = (0, import_react55.useState)(null);
|
|
32006
|
+
const [testsExist, setTestsExist] = (0, import_react55.useState)(true);
|
|
32007
|
+
const [errorCounts, setErrorCounts] = (0, import_react55.useState)({
|
|
32008
|
+
typeErrors: 0,
|
|
32009
|
+
staticErrors: 0,
|
|
32010
|
+
runTimeErrors: 0
|
|
32011
|
+
});
|
|
32012
|
+
const [summary, setSummary] = (0, import_react55.useState)(null);
|
|
31739
32013
|
const { projectName, "*": splat } = useParams();
|
|
31740
32014
|
const pathParts = splat ? splat.split("/") : [];
|
|
31741
32015
|
const runtime = pathParts.pop() || "";
|
|
31742
32016
|
const testPath = pathParts.join("/");
|
|
31743
32017
|
const decodedTestPath = testPath ? decodeURIComponent(testPath) : "";
|
|
31744
|
-
(0,
|
|
32018
|
+
(0, import_react55.useEffect)(() => {
|
|
31745
32019
|
if (!projectName || !testPath || !runtime)
|
|
31746
32020
|
return;
|
|
31747
32021
|
setTestName(testPath);
|
|
31748
32022
|
const fetchData = async () => {
|
|
31749
32023
|
try {
|
|
31750
|
-
const
|
|
31751
|
-
setTestData(
|
|
31752
|
-
|
|
31753
|
-
|
|
31754
|
-
|
|
32024
|
+
const testResponse = await fetchTestData(projectName, testPath, runtime);
|
|
32025
|
+
setTestData(testResponse.testData);
|
|
32026
|
+
setTestsExist(!!testResponse.testData);
|
|
32027
|
+
setLogs(testResponse.logs);
|
|
32028
|
+
setTypeErrors(testResponse.typeErrors);
|
|
32029
|
+
setLintErrors(testResponse.lintErrors);
|
|
32030
|
+
try {
|
|
32031
|
+
const summaryResponse = await fetch(`reports/${projectName}/summary.json`);
|
|
32032
|
+
if (!summaryResponse.ok)
|
|
32033
|
+
throw new Error("Failed to fetch summary");
|
|
32034
|
+
const allSummaries = await summaryResponse.json();
|
|
32035
|
+
const testSummary = allSummaries[testPath];
|
|
32036
|
+
console.log("testSummary", testSummary);
|
|
32037
|
+
if (testSummary) {
|
|
32038
|
+
setSummary(testSummary);
|
|
32039
|
+
setErrorCounts({
|
|
32040
|
+
typeErrors: testSummary.typeErrors || 0,
|
|
32041
|
+
staticErrors: testSummary.staticErrors || 0,
|
|
32042
|
+
runTimeErrors: testSummary.runTimeErrors || 0
|
|
32043
|
+
});
|
|
32044
|
+
}
|
|
32045
|
+
} catch (err) {
|
|
32046
|
+
console.error("Failed to load summary:", err);
|
|
32047
|
+
}
|
|
31755
32048
|
} catch (err) {
|
|
31756
32049
|
setError(err instanceof Error ? err.message : "Unknown error");
|
|
32050
|
+
setTestsExist(false);
|
|
31757
32051
|
} finally {
|
|
31758
32052
|
setLoading(false);
|
|
31759
32053
|
}
|
|
@@ -31761,10 +32055,10 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31761
32055
|
fetchData();
|
|
31762
32056
|
}, []);
|
|
31763
32057
|
if (loading)
|
|
31764
|
-
return /* @__PURE__ */
|
|
32058
|
+
return /* @__PURE__ */ import_react55.default.createElement("div", null, "Loading test data...");
|
|
31765
32059
|
if (error)
|
|
31766
|
-
return /* @__PURE__ */
|
|
31767
|
-
return /* @__PURE__ */
|
|
32060
|
+
return /* @__PURE__ */ import_react55.default.createElement(Alert_default, { variant: "danger" }, "Error: ", error);
|
|
32061
|
+
return /* @__PURE__ */ import_react55.default.createElement(Container_default, { fluid: true }, /* @__PURE__ */ import_react55.default.createElement(
|
|
31768
32062
|
NavBar,
|
|
31769
32063
|
{
|
|
31770
32064
|
title: decodedTestPath,
|
|
@@ -31772,56 +32066,82 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
31772
32066
|
navItems: [
|
|
31773
32067
|
{
|
|
31774
32068
|
to: `#results`,
|
|
31775
|
-
label: testData?.givens.some((g) => g.whens.some((w) => w.error) || g.thens.some((t) => t.error)) ? "\u274C BDD" : "\u2705 BDD",
|
|
32069
|
+
label: !testsExist ? "\u274C BDD" : testData?.givens.some((g) => g.whens.some((w) => w.error) || g.thens.some((t) => t.error)) ? "\u274C BDD" : "\u2705 BDD",
|
|
31776
32070
|
active: route === "results"
|
|
31777
32071
|
},
|
|
31778
32072
|
{
|
|
31779
32073
|
to: `#logs`,
|
|
31780
|
-
label:
|
|
32074
|
+
label: `Runtime logs`,
|
|
31781
32075
|
active: route === "logs"
|
|
31782
32076
|
},
|
|
31783
32077
|
{
|
|
31784
32078
|
to: `#types`,
|
|
31785
|
-
label: typeErrors ?
|
|
32079
|
+
label: errorCounts.typeErrors > 0 ? `tsc (\u274C * ${errorCounts.typeErrors})` : "tsc \u2705 ",
|
|
31786
32080
|
active: route === "types"
|
|
31787
32081
|
},
|
|
31788
32082
|
{
|
|
31789
32083
|
to: `#lint`,
|
|
31790
|
-
label:
|
|
32084
|
+
label: errorCounts.staticErrors > 0 ? `eslint (\u274C *${errorCounts.staticErrors}) ` : "eslint \u2705",
|
|
31791
32085
|
active: route === "lint"
|
|
31792
32086
|
}
|
|
31793
32087
|
],
|
|
31794
|
-
rightContent: /* @__PURE__ */
|
|
32088
|
+
rightContent: /* @__PURE__ */ import_react55.default.createElement(
|
|
31795
32089
|
Button_default2,
|
|
31796
32090
|
{
|
|
31797
32091
|
variant: "info",
|
|
31798
|
-
onClick: () =>
|
|
32092
|
+
onClick: async () => {
|
|
32093
|
+
try {
|
|
32094
|
+
const promptPath = `testeranto/reports/${projectName}/${testPath.split(".").slice(0, -1).join(".")}/${runtime}/prompt.txt`;
|
|
32095
|
+
const messagePath = `testeranto/reports/${projectName}/${testPath.split(".").slice(0, -1).join(".")}/${runtime}/message.txt`;
|
|
32096
|
+
const command = `aider --load ${promptPath} --message-file ${messagePath}`;
|
|
32097
|
+
await navigator.clipboard.writeText(command);
|
|
32098
|
+
alert("Copied aider command to clipboard!");
|
|
32099
|
+
} catch (err) {
|
|
32100
|
+
alert("Failed to copy command to clipboard");
|
|
32101
|
+
console.error("Copy failed:", err);
|
|
32102
|
+
}
|
|
32103
|
+
},
|
|
31799
32104
|
className: "ms-2"
|
|
31800
32105
|
},
|
|
31801
32106
|
"\u{1F916}"
|
|
31802
32107
|
)
|
|
31803
32108
|
}
|
|
31804
|
-
), /* @__PURE__ */
|
|
32109
|
+
), /* @__PURE__ */ import_react55.default.createElement(Tab_default.Container, { activeKey: route, onSelect: (k) => {
|
|
31805
32110
|
if (k) {
|
|
31806
32111
|
setRoute(k);
|
|
31807
32112
|
navigate(`#${k}`, { replace: true });
|
|
31808
32113
|
}
|
|
31809
|
-
} }, /* @__PURE__ */
|
|
32114
|
+
} }, /* @__PURE__ */ import_react55.default.createElement(Tab_default.Content, { className: "mt-3" }, /* @__PURE__ */ import_react55.default.createElement(Tab_default.Pane, { eventKey: "results" }, !testsExist ? /* @__PURE__ */ import_react55.default.createElement(Alert_default, { variant: "danger", className: "mt-3" }, /* @__PURE__ */ import_react55.default.createElement("h4", null, "Tests did not run to completion"), /* @__PURE__ */ import_react55.default.createElement("p", null, "The test results file (tests.json) was not found or could not be loaded."), /* @__PURE__ */ import_react55.default.createElement("div", { className: "mt-3" }, /* @__PURE__ */ import_react55.default.createElement(
|
|
32115
|
+
Button_default2,
|
|
32116
|
+
{
|
|
32117
|
+
variant: "outline-light",
|
|
32118
|
+
onClick: () => setRoute("logs"),
|
|
32119
|
+
className: "me-2"
|
|
32120
|
+
},
|
|
32121
|
+
"View Runtime Logs"
|
|
32122
|
+
), /* @__PURE__ */ import_react55.default.createElement(
|
|
32123
|
+
Button_default2,
|
|
32124
|
+
{
|
|
32125
|
+
variant: "outline-light",
|
|
32126
|
+
onClick: () => navigate(`/projects/${projectName}#${runtime}`)
|
|
32127
|
+
},
|
|
32128
|
+
"View Build Logs"
|
|
32129
|
+
))) : testData ? /* @__PURE__ */ import_react55.default.createElement("div", { className: "test-results" }, /* @__PURE__ */ import_react55.default.createElement("div", { className: "mb-3" }), testData.givens.map((given, i) => /* @__PURE__ */ import_react55.default.createElement("div", { key: i, className: "mb-4 card" }, /* @__PURE__ */ import_react55.default.createElement("div", { className: "card-header bg-primary text-white" }, /* @__PURE__ */ import_react55.default.createElement("h4", null, "Given: ", given.name)), /* @__PURE__ */ import_react55.default.createElement("div", { className: "card-body" }, given.whens.map((when, j) => /* @__PURE__ */ import_react55.default.createElement("div", { key: `w-${j}`, className: `p-3 mb-2 ${when.error ? "bg-danger text-white" : "bg-success text-white"}` }, /* @__PURE__ */ import_react55.default.createElement("strong", null, "When:"), " ", when.name, when.error && /* @__PURE__ */ import_react55.default.createElement("pre", { className: "mt-2" }, when.error))), given.thens.map((then, k) => /* @__PURE__ */ import_react55.default.createElement("div", { key: `t-${k}`, className: `p-3 mb-2 ${then.error ? "bg-danger text-white" : "bg-success text-white"}` }, /* @__PURE__ */ import_react55.default.createElement("strong", null, "Then:"), " ", then.name, then.error && /* @__PURE__ */ import_react55.default.createElement("pre", { className: "mt-2" }, then.error))))))) : /* @__PURE__ */ import_react55.default.createElement(Alert_default, { variant: "warning" }, "No test results found")), /* @__PURE__ */ import_react55.default.createElement(Tab_default.Pane, { eventKey: "logs" }, logs ? /* @__PURE__ */ import_react55.default.createElement("pre", { className: "bg-dark text-white p-3" }, logs) : /* @__PURE__ */ import_react55.default.createElement(Alert_default, { variant: "warning" }, "No runtime logs found")), /* @__PURE__ */ import_react55.default.createElement(Tab_default.Pane, { eventKey: "types" }, typeErrors ? /* @__PURE__ */ import_react55.default.createElement("pre", { className: "bg-dark text-white p-3" }, typeErrors) : /* @__PURE__ */ import_react55.default.createElement(Alert_default, { variant: "warning" }, "No type errors found")), /* @__PURE__ */ import_react55.default.createElement(Tab_default.Pane, { eventKey: "lint" }, lintErrors ? /* @__PURE__ */ import_react55.default.createElement("pre", { className: "bg-dark text-white p-3" }, lintErrors) : /* @__PURE__ */ import_react55.default.createElement(Alert_default, { variant: "warning" }, "No lint errors found")), /* @__PURE__ */ import_react55.default.createElement(Tab_default.Pane, { eventKey: "coverage" }, /* @__PURE__ */ import_react55.default.createElement("div", { className: "coverage-report" }, /* @__PURE__ */ import_react55.default.createElement(Alert_default, { variant: "info" }, "Coverage reports coming soon!"), /* @__PURE__ */ import_react55.default.createElement("div", { className: "coverage-stats" }, /* @__PURE__ */ import_react55.default.createElement("div", { className: "stat-card bg-success text-white" }, /* @__PURE__ */ import_react55.default.createElement("h4", null, "85%"), /* @__PURE__ */ import_react55.default.createElement("p", null, "Lines Covered")), /* @__PURE__ */ import_react55.default.createElement("div", { className: "stat-card bg-warning text-dark" }, /* @__PURE__ */ import_react55.default.createElement("h4", null, "72%"), /* @__PURE__ */ import_react55.default.createElement("p", null, "Branches Covered")), /* @__PURE__ */ import_react55.default.createElement("div", { className: "stat-card bg-info text-white" }, /* @__PURE__ */ import_react55.default.createElement("h4", null, "91%"), /* @__PURE__ */ import_react55.default.createElement("p", null, "Functions Covered"))))))));
|
|
31810
32130
|
};
|
|
31811
32131
|
|
|
31812
32132
|
// src/App.tsx
|
|
31813
32133
|
var App = () => {
|
|
31814
|
-
return /* @__PURE__ */
|
|
32134
|
+
return /* @__PURE__ */ import_react56.default.createElement(HashRouter, null, /* @__PURE__ */ import_react56.default.createElement("div", { className: "d-flex flex-column min-vh-100", key: window.location.pathname }, /* @__PURE__ */ import_react56.default.createElement("main", { className: "flex-grow-1 p-3" }, /* @__PURE__ */ import_react56.default.createElement(Container_default, { fluid: true }, /* @__PURE__ */ import_react56.default.createElement(Routes, null, /* @__PURE__ */ import_react56.default.createElement(Route, { path: "/", element: /* @__PURE__ */ import_react56.default.createElement(ProjectsPage, null) }), /* @__PURE__ */ import_react56.default.createElement(Route, { path: "/projects/:projectName", element: /* @__PURE__ */ import_react56.default.createElement(ProjectPage, null) }), /* @__PURE__ */ import_react56.default.createElement(
|
|
31815
32135
|
Route,
|
|
31816
32136
|
{
|
|
31817
32137
|
path: "/projects/:projectName/tests/*",
|
|
31818
|
-
element: /* @__PURE__ */
|
|
32138
|
+
element: /* @__PURE__ */ import_react56.default.createElement(TestPage, null)
|
|
31819
32139
|
}
|
|
31820
|
-
), /* @__PURE__ */
|
|
32140
|
+
), /* @__PURE__ */ import_react56.default.createElement(Route, { path: "/projects/:projectName#:tab", element: /* @__PURE__ */ import_react56.default.createElement(ProjectPage, null) })))), /* @__PURE__ */ import_react56.default.createElement("footer", { className: "bg-light py-3" }, /* @__PURE__ */ import_react56.default.createElement(Container_default, { className: "text-end", fluid: true }, "made with \u2764\uFE0F and ", /* @__PURE__ */ import_react56.default.createElement("a", { href: "https://www.npmjs.com/package/testeranto" }, "testeranto")))));
|
|
31821
32141
|
};
|
|
31822
32142
|
if (typeof window !== "undefined") {
|
|
31823
32143
|
window.App = App;
|
|
31824
|
-
window.React =
|
|
32144
|
+
window.React = import_react56.default;
|
|
31825
32145
|
window.ReactDOM = import_client.default;
|
|
31826
32146
|
}
|
|
31827
32147
|
})();
|