zudoku 0.3.0-dev.55 → 0.3.0-dev.57
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/app/demo.js +6 -1
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +1 -1
- package/dist/app/entry.client.js +1 -1
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +1 -1
- package/dist/app/entry.server.js +1 -1
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +1 -1
- package/dist/app/main.js +9 -2
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +6 -1
- package/dist/app/standalone.js.map +1 -1
- package/dist/config/validators/validate.d.ts +77 -17
- package/dist/config/validators/validate.js +7 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/components/DeveloperHint.d.ts +5 -0
- package/dist/lib/components/DeveloperHint.js +10 -0
- package/dist/lib/components/DeveloperHint.js.map +1 -0
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +2 -2
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationCategory.js +2 -2
- package/dist/lib/components/navigation/SideNavigationCategory.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +8 -1
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +5 -3
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.d.ts +1 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +14 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -0
- package/dist/lib/plugins/api-keys/index.js +2 -12
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +4 -3
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +5 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js +13 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +3 -3
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/vite/plugin-custom-css.js +2 -3
- package/dist/vite/plugin-custom-css.js.map +1 -1
- package/lib/AnchorLink-GNsUeGSX.js +705 -0
- package/lib/{AnchorLink-BaXHjhF-.js.map → AnchorLink-GNsUeGSX.js.map} +1 -1
- package/lib/Button-DpHMZvVs.js +4571 -0
- package/lib/Button-DpHMZvVs.js.map +1 -0
- package/lib/DevPortalProvider-Do9oJqme.js +1081 -0
- package/lib/{DevPortalProvider-GjdO0Xr-.js.map → DevPortalProvider-Do9oJqme.js.map} +1 -1
- package/lib/Markdown-DtLFdxD1.js +15031 -0
- package/lib/Markdown-DtLFdxD1.js.map +1 -0
- package/lib/MdxPage-CbwYRKf5.js +190 -0
- package/lib/{MdxPage-Dlujuj-J.js.map → MdxPage-CbwYRKf5.js.map} +1 -1
- package/lib/OperationList-DypxLtSC.js +5578 -0
- package/lib/OperationList-DypxLtSC.js.map +1 -0
- package/lib/Route-C1LyvITr.js +13 -0
- package/lib/{Route-CR6TEwVC.js.map → Route-C1LyvITr.js.map} +1 -1
- package/lib/Spinner-Bhbs5aPI.js +182 -0
- package/lib/Spinner-Bhbs5aPI.js.map +1 -0
- package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
- package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
- package/lib/assets/index-BPdJm2ty.js +4765 -0
- package/lib/assets/{index-CpIig0AX.js.map → index-BPdJm2ty.js.map} +1 -1
- package/lib/assets/worker-BWwCA-wk.js +14900 -0
- package/lib/assets/{worker-B5k2aBV9.js.map → worker-BWwCA-wk.js.map} +1 -1
- package/lib/context-_fYfJFgk.js +14 -0
- package/lib/{context-BoN_3uxi.js.map → context-_fYfJFgk.js.map} +1 -1
- package/lib/hook-Biq3zYel.js +92 -0
- package/lib/hook-Biq3zYel.js.map +1 -0
- package/lib/{index-Dih8IAqw.js → index-Bg82-bqR.js} +83 -103
- package/lib/{index-Dih8IAqw.js.map → index-Bg82-bqR.js.map} +1 -1
- package/lib/index-gsAuUwQh.js +418 -0
- package/lib/index-gsAuUwQh.js.map +1 -0
- package/lib/index-pI9JkN46.js +4765 -0
- package/lib/{index-Bn03IPZt.js.map → index-pI9JkN46.js.map} +1 -1
- package/lib/jsx-runtime-CJZJivg2.js +1526 -0
- package/lib/{jsx-runtime-DvZ6OKMM.js.map → jsx-runtime-CJZJivg2.js.map} +1 -1
- package/lib/prism-bash.min-DadFsM4Z.js +7 -0
- package/lib/{prism-bash.min-BtBk0onv.js.map → prism-bash.min-DadFsM4Z.js.map} +1 -1
- package/lib/prism-csharp.min-Yizuc34Y.js +35 -0
- package/lib/{prism-csharp.min-Cv7D49bv.js.map → prism-csharp.min-Yizuc34Y.js.map} +1 -1
- package/lib/prism-java.min-d5iT_mOd.js +7 -0
- package/lib/{prism-java.min-tNK-JX6x.js.map → prism-java.min-d5iT_mOd.js.map} +1 -1
- package/lib/prism-json.min-B1GJqK1k.js +2 -0
- package/lib/{prism-json.min-Cdtv-CME.js.map → prism-json.min-B1GJqK1k.js.map} +1 -1
- package/lib/prism-markup-templating-DZrrEs0A.js +62 -0
- package/lib/{prism-markup-templating-iotg2sCU.js.map → prism-markup-templating-DZrrEs0A.js.map} +1 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
- package/lib/{prism-objectivec.min-CY4WGixz.js.map → prism-objectivec.min-BXSWqpJJ.js.map} +1 -1
- package/lib/prism-php.min-o7FpoMP_.js +11 -0
- package/lib/{prism-php.min-T6sIVgED.js.map → prism-php.min-o7FpoMP_.js.map} +1 -1
- package/lib/prism-ruby.min-C7LwcKyz.js +10 -0
- package/lib/{prism-ruby.min-B-2KAa4y.js.map → prism-ruby.min-C7LwcKyz.js.map} +1 -1
- package/lib/router-CBw2vqJE.js +2973 -0
- package/lib/{router-ButO1QyY.js.map → router-CBw2vqJE.js.map} +1 -1
- package/lib/slugify-CiPVjteN.js +28 -0
- package/lib/{slugify-CmS97Vy8.js.map → slugify-CiPVjteN.js.map} +1 -1
- package/lib/state-DKdaQzvh.js +288 -0
- package/lib/{state-CmGfNKhR.js.map → state-DKdaQzvh.js.map} +1 -1
- package/lib/urql-DMlBWUKL.js +1592 -0
- package/lib/{urql-DtVKPBx_.js.map → urql-DMlBWUKL.js.map} +1 -1
- package/lib/util-_jwUlTBU.js +41 -0
- package/lib/{util-B5KX4h4M.js.map → util-_jwUlTBU.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +18 -24
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +34 -43
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +734 -1121
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +830 -1076
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +9689 -13781
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +171 -208
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +33 -41
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -6
- package/lib/zudoku.plugin-redirect.js +8 -10
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/package.json +2 -2
- package/src/app/demo.tsx +6 -1
- package/src/app/entry.client.tsx +1 -1
- package/src/app/entry.server.tsx +1 -1
- package/src/app/main.tsx +11 -2
- package/src/app/standalone.tsx +6 -1
- package/src/lib/components/DeveloperHint.tsx +25 -0
- package/src/lib/components/Header.tsx +6 -1
- package/src/lib/components/NotFoundPage.tsx +8 -14
- package/src/lib/components/navigation/SideNavigationCategory.tsx +3 -3
- package/src/lib/core/DevPortalContext.ts +8 -1
- package/src/lib/oas/graphql/index.ts +7 -3
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +29 -0
- package/src/lib/plugins/api-keys/index.tsx +2 -21
- package/src/lib/plugins/openapi/OperationList.tsx +14 -14
- package/src/lib/plugins/openapi/StaggeredRender.tsx +17 -0
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -5
- package/lib/AnchorLink-BaXHjhF-.js +0 -989
- package/lib/Combination-BfufJFkX.js +0 -1365
- package/lib/Combination-BfufJFkX.js.map +0 -1
- package/lib/DevPortalProvider-GjdO0Xr-.js +0 -1610
- package/lib/Markdown-B8nPVql1.js +0 -19708
- package/lib/Markdown-B8nPVql1.js.map +0 -1
- package/lib/MdxPage-Dlujuj-J.js +0 -223
- package/lib/OperationList-krPgt6sE.js +0 -8041
- package/lib/OperationList-krPgt6sE.js.map +0 -1
- package/lib/Playground-DOHxca0P.js +0 -539
- package/lib/Playground-DOHxca0P.js.map +0 -1
- package/lib/Route-CR6TEwVC.js +0 -13
- package/lib/Select-Boi_pe3L.js +0 -5298
- package/lib/Select-Boi_pe3L.js.map +0 -1
- package/lib/Spinner-oU0QJmi_.js +0 -16
- package/lib/Spinner-oU0QJmi_.js.map +0 -1
- package/lib/_commonjsHelpers-BxmBWJD2.js +0 -34
- package/lib/_commonjsHelpers-BxmBWJD2.js.map +0 -1
- package/lib/assets/index-CpIig0AX.js +0 -6341
- package/lib/assets/worker-B5k2aBV9.js +0 -18921
- package/lib/context-BoN_3uxi.js +0 -17
- package/lib/hook-CIuFuyBT.js +0 -90
- package/lib/hook-CIuFuyBT.js.map +0 -1
- package/lib/index-BL1P4Gqq.js +0 -280
- package/lib/index-BL1P4Gqq.js.map +0 -1
- package/lib/index-Bn03IPZt.js +0 -6341
- package/lib/index-FprhHF51.js +0 -253
- package/lib/index-FprhHF51.js.map +0 -1
- package/lib/jsx-runtime-DvZ6OKMM.js +0 -2110
- package/lib/mutation-DWY9x2Uc.js +0 -250
- package/lib/mutation-DWY9x2Uc.js.map +0 -1
- package/lib/prism-bash.min-BtBk0onv.js +0 -7
- package/lib/prism-csharp.min-Cv7D49bv.js +0 -30
- package/lib/prism-java.min-tNK-JX6x.js +0 -7
- package/lib/prism-json.min-Cdtv-CME.js +0 -2
- package/lib/prism-markup-templating-iotg2sCU.js +0 -94
- package/lib/prism-objectivec.min-CY4WGixz.js +0 -2
- package/lib/prism-php.min-T6sIVgED.js +0 -11
- package/lib/prism-ruby.min-B-2KAa4y.js +0 -8
- package/lib/router-ButO1QyY.js +0 -4062
- package/lib/slugify-CmS97Vy8.js +0 -50
- package/lib/state-CmGfNKhR.js +0 -436
- package/lib/urql-DtVKPBx_.js +0 -2567
- package/lib/util-B5KX4h4M.js +0 -55
package/lib/zudoku.components.js
CHANGED
|
@@ -1,41 +1,36 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
throw TypeError(
|
|
1
|
+
var $e = Object.defineProperty;
|
|
2
|
+
var le = (t) => {
|
|
3
|
+
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var __privateWrapper = (obj, member, setter, getter) => ({
|
|
12
|
-
set _(value) {
|
|
13
|
-
__privateSet(obj, member, value, setter);
|
|
5
|
+
var Ve = (t, e, r) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
+
var v = (t, e, r) => Ve(t, typeof e != "symbol" ? e + "" : e, r), ce = (t, e, r) => e.has(t) || le("Cannot " + r);
|
|
7
|
+
var l = (t, e, r) => (ce(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => e.has(t) ? le("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), f = (t, e, r, a) => (ce(t, e, "write to private field"), a ? a.call(t, r) : e.set(t, r), r);
|
|
8
|
+
var L = (t, e, r, a) => ({
|
|
9
|
+
set _(s) {
|
|
10
|
+
f(t, e, s, r);
|
|
14
11
|
},
|
|
15
12
|
get _() {
|
|
16
|
-
return
|
|
13
|
+
return l(t, e, a);
|
|
17
14
|
}
|
|
18
15
|
});
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
import {
|
|
26
|
-
import { r as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { c as checkHasActiveItem, i as isPathItem, j as joinPath, a as isLinkItem } from "./util-B5KX4h4M.js";
|
|
31
|
-
import { S as Spinner } from "./Spinner-oU0QJmi_.js";
|
|
16
|
+
import { c as U, d as Ye, R as Je, N as J, a as Xe, u as We, M as Ge, T as Ze, V as et, b as X, e as F, f as tt, C as rt, L as at } from "./Markdown-DtLFdxD1.js";
|
|
17
|
+
import { E as Ee, u as st, R as nt } from "./hook-Biq3zYel.js";
|
|
18
|
+
import { j as n, d as it, u as T, O as ot } from "./jsx-runtime-CJZJivg2.js";
|
|
19
|
+
import { H as Pe, a as je, M as lt, A as ct, u as ut } from "./AnchorLink-GNsUeGSX.js";
|
|
20
|
+
import ht, { StrictMode as Se, createContext as Ne, Component as dt, createElement as ue, isValidElement as ft, memo as Ce, useMemo as V, useEffect as I, Fragment as pt, useRef as K, useState as mt, forwardRef as gt, Suspense as vt } from "react";
|
|
21
|
+
import { g as W } from "./_commonjsHelpers-BVfed4GL.js";
|
|
22
|
+
import { r as yt } from "./router-CBw2vqJE.js";
|
|
23
|
+
import { S as Oe, h as Ae, Q as bt, n as m, m as he, a as de, b as P, e as xt, c as wt, d as Et, f as Pt, o as fe, r as pe, g as jt, i as me, p as ge, s as St, u as G, j as Nt, D as Ct, k as Ot, l as At } from "./DevPortalProvider-Do9oJqme.js";
|
|
24
|
+
import { M as Rt } from "./index-gsAuUwQh.js";
|
|
25
|
+
import { R as Re, T as ke, C as Me, S as kt } from "./Spinner-Bhbs5aPI.js";
|
|
26
|
+
import { c as Z, i as ve, j as De, a as Mt } from "./util-_jwUlTBU.js";
|
|
32
27
|
/**
|
|
33
28
|
* @license lucide-react v0.378.0 - ISC
|
|
34
29
|
*
|
|
35
30
|
* This source code is licensed under the ISC license.
|
|
36
31
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
32
|
*/
|
|
38
|
-
const
|
|
33
|
+
const _e = U("ChevronRight", [
|
|
39
34
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
40
35
|
]);
|
|
41
36
|
/**
|
|
@@ -44,7 +39,7 @@ const ChevronRight = createLucideIcon("ChevronRight", [
|
|
|
44
39
|
* This source code is licensed under the ISC license.
|
|
45
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
41
|
*/
|
|
47
|
-
const
|
|
42
|
+
const Dt = U("ExternalLink", [
|
|
48
43
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
49
44
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
50
45
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -55,7 +50,7 @@ const ExternalLink = createLucideIcon("ExternalLink", [
|
|
|
55
50
|
* This source code is licensed under the ISC license.
|
|
56
51
|
* See the LICENSE file in the root directory of this source tree.
|
|
57
52
|
*/
|
|
58
|
-
const
|
|
53
|
+
const _t = U("MoonStar", [
|
|
59
54
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
60
55
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
61
56
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -66,7 +61,7 @@ const MoonStar = createLucideIcon("MoonStar", [
|
|
|
66
61
|
* This source code is licensed under the ISC license.
|
|
67
62
|
* See the LICENSE file in the root directory of this source tree.
|
|
68
63
|
*/
|
|
69
|
-
const
|
|
64
|
+
const Tt = U("Sun", [
|
|
70
65
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
71
66
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
72
67
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -77,1193 +72,981 @@ const Sun = createLucideIcon("Sun", [
|
|
|
77
72
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
78
73
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
79
74
|
]);
|
|
80
|
-
function
|
|
81
|
-
return /* @__PURE__ */
|
|
75
|
+
function Ft({ error: t }) {
|
|
76
|
+
return /* @__PURE__ */ n.jsx(Ee, { error: t });
|
|
82
77
|
}
|
|
83
|
-
var
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
get: function() {
|
|
102
|
-
return e[k];
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
n["default"] = e;
|
|
109
|
-
return Object.freeze(n);
|
|
78
|
+
var q = {};
|
|
79
|
+
const Qt = /* @__PURE__ */ W(yt), It = /* @__PURE__ */ W(it), qt = /* @__PURE__ */ W(Ye);
|
|
80
|
+
Object.defineProperty(q, "__esModule", { value: !0 });
|
|
81
|
+
var Ht = ht, E = Qt, ee = It, j = qt;
|
|
82
|
+
function Lt(t) {
|
|
83
|
+
if (t && t.__esModule) return t;
|
|
84
|
+
var e = /* @__PURE__ */ Object.create(null);
|
|
85
|
+
return t && Object.keys(t).forEach(function(r) {
|
|
86
|
+
if (r !== "default") {
|
|
87
|
+
var a = Object.getOwnPropertyDescriptor(t, r);
|
|
88
|
+
Object.defineProperty(e, r, a.get ? a : {
|
|
89
|
+
enumerable: !0,
|
|
90
|
+
get: function() {
|
|
91
|
+
return t[r];
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}), e.default = t, Object.freeze(e);
|
|
110
96
|
}
|
|
111
|
-
var
|
|
112
|
-
function
|
|
113
|
-
basename,
|
|
114
|
-
children,
|
|
115
|
-
location:
|
|
116
|
-
future
|
|
97
|
+
var x = /* @__PURE__ */ Lt(Ht);
|
|
98
|
+
function Bt({
|
|
99
|
+
basename: t,
|
|
100
|
+
children: e,
|
|
101
|
+
location: r = "/",
|
|
102
|
+
future: a
|
|
117
103
|
}) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
navigationType: action,
|
|
135
|
-
navigator: staticNavigator,
|
|
136
|
-
future,
|
|
137
|
-
static: true
|
|
104
|
+
typeof r == "string" && (r = j.parsePath(r));
|
|
105
|
+
let s = E.Action.Pop, o = {
|
|
106
|
+
pathname: r.pathname || "/",
|
|
107
|
+
search: r.search || "",
|
|
108
|
+
hash: r.hash || "",
|
|
109
|
+
state: r.state != null ? r.state : null,
|
|
110
|
+
key: r.key || "default"
|
|
111
|
+
}, i = Te();
|
|
112
|
+
return /* @__PURE__ */ x.createElement(j.Router, {
|
|
113
|
+
basename: t,
|
|
114
|
+
children: e,
|
|
115
|
+
location: o,
|
|
116
|
+
navigationType: s,
|
|
117
|
+
navigator: i,
|
|
118
|
+
future: a,
|
|
119
|
+
static: !0
|
|
138
120
|
});
|
|
139
121
|
}
|
|
140
|
-
function
|
|
141
|
-
context,
|
|
142
|
-
router:
|
|
143
|
-
hydrate =
|
|
144
|
-
nonce
|
|
122
|
+
function zt({
|
|
123
|
+
context: t,
|
|
124
|
+
router: e,
|
|
125
|
+
hydrate: r = !0,
|
|
126
|
+
nonce: a
|
|
145
127
|
}) {
|
|
146
|
-
|
|
147
|
-
let
|
|
148
|
-
router:
|
|
149
|
-
navigator:
|
|
150
|
-
static:
|
|
151
|
-
staticContext:
|
|
152
|
-
basename:
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
actionData: context.actionData,
|
|
160
|
-
errors: serializeErrors(context.errors)
|
|
128
|
+
e && t || (process.env.NODE_ENV !== "production" ? E.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : E.UNSAFE_invariant(!1));
|
|
129
|
+
let s = {
|
|
130
|
+
router: e,
|
|
131
|
+
navigator: Te(),
|
|
132
|
+
static: !0,
|
|
133
|
+
staticContext: t,
|
|
134
|
+
basename: t.basename || "/"
|
|
135
|
+
}, o = /* @__PURE__ */ new Map(), i = "";
|
|
136
|
+
if (r !== !1) {
|
|
137
|
+
let u = {
|
|
138
|
+
loaderData: t.loaderData,
|
|
139
|
+
actionData: t.actionData,
|
|
140
|
+
errors: Kt(t.errors)
|
|
161
141
|
};
|
|
162
|
-
|
|
163
|
-
hydrateScript = `window.__staticRouterHydrationData = JSON.parse(${json});`;
|
|
142
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${Wt(JSON.stringify(JSON.stringify(u)))});`;
|
|
164
143
|
}
|
|
165
144
|
let {
|
|
166
|
-
state
|
|
167
|
-
} =
|
|
168
|
-
return /* @__PURE__ */
|
|
169
|
-
value:
|
|
170
|
-
}, /* @__PURE__ */
|
|
171
|
-
value:
|
|
172
|
-
}, /* @__PURE__ */
|
|
173
|
-
value:
|
|
174
|
-
}, /* @__PURE__ */
|
|
145
|
+
state: c
|
|
146
|
+
} = s.router;
|
|
147
|
+
return /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterContext.Provider, {
|
|
148
|
+
value: s
|
|
149
|
+
}, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterStateContext.Provider, {
|
|
150
|
+
value: c
|
|
151
|
+
}, /* @__PURE__ */ x.createElement(j.UNSAFE_FetchersContext.Provider, {
|
|
152
|
+
value: o
|
|
153
|
+
}, /* @__PURE__ */ x.createElement(j.UNSAFE_ViewTransitionContext.Provider, {
|
|
175
154
|
value: {
|
|
176
|
-
isTransitioning:
|
|
155
|
+
isTransitioning: !1
|
|
177
156
|
}
|
|
178
|
-
}, /* @__PURE__ */
|
|
179
|
-
basename:
|
|
180
|
-
location:
|
|
181
|
-
navigationType:
|
|
182
|
-
navigator:
|
|
183
|
-
static:
|
|
157
|
+
}, /* @__PURE__ */ x.createElement(j.Router, {
|
|
158
|
+
basename: s.basename,
|
|
159
|
+
location: c.location,
|
|
160
|
+
navigationType: c.historyAction,
|
|
161
|
+
navigator: s.navigator,
|
|
162
|
+
static: s.static,
|
|
184
163
|
future: {
|
|
185
|
-
v7_relativeSplatPath:
|
|
164
|
+
v7_relativeSplatPath: e.future.v7_relativeSplatPath
|
|
186
165
|
}
|
|
187
|
-
}, /* @__PURE__ */
|
|
188
|
-
routes:
|
|
189
|
-
future:
|
|
190
|
-
state
|
|
191
|
-
})))))),
|
|
192
|
-
suppressHydrationWarning:
|
|
193
|
-
nonce,
|
|
166
|
+
}, /* @__PURE__ */ x.createElement(Ut, {
|
|
167
|
+
routes: e.routes,
|
|
168
|
+
future: e.future,
|
|
169
|
+
state: c
|
|
170
|
+
})))))), i ? /* @__PURE__ */ x.createElement("script", {
|
|
171
|
+
suppressHydrationWarning: !0,
|
|
172
|
+
nonce: a,
|
|
194
173
|
dangerouslySetInnerHTML: {
|
|
195
|
-
__html:
|
|
174
|
+
__html: i
|
|
196
175
|
}
|
|
197
176
|
}) : null);
|
|
198
177
|
}
|
|
199
|
-
function
|
|
200
|
-
routes,
|
|
201
|
-
future,
|
|
202
|
-
state
|
|
178
|
+
function Ut({
|
|
179
|
+
routes: t,
|
|
180
|
+
future: e,
|
|
181
|
+
state: r
|
|
203
182
|
}) {
|
|
204
|
-
return
|
|
183
|
+
return ee.UNSAFE_useRoutesImpl(t, void 0, r, e);
|
|
205
184
|
}
|
|
206
|
-
function
|
|
207
|
-
if (!
|
|
208
|
-
let
|
|
209
|
-
let
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
__subType: val.name
|
|
224
|
-
} : {}
|
|
225
|
-
};
|
|
226
|
-
} else {
|
|
227
|
-
serialized[key] = val;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
return serialized;
|
|
185
|
+
function Kt(t) {
|
|
186
|
+
if (!t) return null;
|
|
187
|
+
let e = Object.entries(t), r = {};
|
|
188
|
+
for (let [a, s] of e)
|
|
189
|
+
E.isRouteErrorResponse(s) ? r[a] = {
|
|
190
|
+
...s,
|
|
191
|
+
__type: "RouteErrorResponse"
|
|
192
|
+
} : s instanceof Error ? r[a] = {
|
|
193
|
+
message: s.message,
|
|
194
|
+
__type: "Error",
|
|
195
|
+
// If this is a subclass (i.e., ReferenceError), send up the type so we
|
|
196
|
+
// can re-create the same type during hydration.
|
|
197
|
+
...s.name !== "Error" ? {
|
|
198
|
+
__subType: s.name
|
|
199
|
+
} : {}
|
|
200
|
+
} : r[a] = s;
|
|
201
|
+
return r;
|
|
231
202
|
}
|
|
232
|
-
function
|
|
203
|
+
function Te() {
|
|
233
204
|
return {
|
|
234
|
-
createHref,
|
|
235
|
-
encodeLocation,
|
|
236
|
-
push(
|
|
237
|
-
throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(
|
|
205
|
+
createHref: Fe,
|
|
206
|
+
encodeLocation: Qe,
|
|
207
|
+
push(t) {
|
|
208
|
+
throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)})\` somewhere in your app.`);
|
|
238
209
|
},
|
|
239
|
-
replace(
|
|
240
|
-
throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(
|
|
210
|
+
replace(t) {
|
|
211
|
+
throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)}, { replace: true })\` somewhere in your app.`);
|
|
241
212
|
},
|
|
242
|
-
go(
|
|
243
|
-
throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${
|
|
213
|
+
go(t) {
|
|
214
|
+
throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${t})\` somewhere in your app.`);
|
|
244
215
|
},
|
|
245
216
|
back() {
|
|
246
|
-
throw new Error(
|
|
217
|
+
throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
|
|
247
218
|
},
|
|
248
219
|
forward() {
|
|
249
|
-
throw new Error(
|
|
220
|
+
throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
|
|
250
221
|
}
|
|
251
222
|
};
|
|
252
223
|
}
|
|
253
|
-
function
|
|
254
|
-
return
|
|
255
|
-
...
|
|
256
|
-
mapRouteProperties:
|
|
224
|
+
function $t(t, e) {
|
|
225
|
+
return E.createStaticHandler(t, {
|
|
226
|
+
...e,
|
|
227
|
+
mapRouteProperties: ee.UNSAFE_mapRouteProperties
|
|
257
228
|
});
|
|
258
229
|
}
|
|
259
|
-
function
|
|
260
|
-
let
|
|
261
|
-
|
|
262
|
-
let matches = context.matches.map((match) => {
|
|
263
|
-
let route = manifest[match.route.id] || match.route;
|
|
230
|
+
function Vt(t, e, r = {}) {
|
|
231
|
+
let a = {}, s = E.UNSAFE_convertRoutesToDataRoutes(t, ee.UNSAFE_mapRouteProperties, void 0, a), o = e.matches.map((c) => {
|
|
232
|
+
let u = a[c.route.id] || c.route;
|
|
264
233
|
return {
|
|
265
|
-
...
|
|
266
|
-
route
|
|
234
|
+
...c,
|
|
235
|
+
route: u
|
|
267
236
|
};
|
|
268
|
-
})
|
|
269
|
-
let msg = (method) => `You cannot use router.${method}() on the server because it is a stateless environment`;
|
|
237
|
+
}), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
|
|
270
238
|
return {
|
|
271
239
|
get basename() {
|
|
272
|
-
return
|
|
240
|
+
return e.basename;
|
|
273
241
|
},
|
|
274
242
|
get future() {
|
|
275
|
-
var
|
|
243
|
+
var c, u;
|
|
276
244
|
return {
|
|
277
|
-
v7_fetcherPersist:
|
|
278
|
-
v7_normalizeFormMethod:
|
|
279
|
-
v7_partialHydration: ((
|
|
280
|
-
v7_prependBasename:
|
|
281
|
-
v7_relativeSplatPath: ((
|
|
282
|
-
unstable_skipActionErrorRevalidation:
|
|
245
|
+
v7_fetcherPersist: !1,
|
|
246
|
+
v7_normalizeFormMethod: !1,
|
|
247
|
+
v7_partialHydration: ((c = r.future) == null ? void 0 : c.v7_partialHydration) === !0,
|
|
248
|
+
v7_prependBasename: !1,
|
|
249
|
+
v7_relativeSplatPath: ((u = r.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
|
|
250
|
+
unstable_skipActionErrorRevalidation: !1
|
|
283
251
|
};
|
|
284
252
|
},
|
|
285
253
|
get state() {
|
|
286
254
|
return {
|
|
287
|
-
historyAction:
|
|
288
|
-
location:
|
|
289
|
-
matches,
|
|
290
|
-
loaderData:
|
|
291
|
-
actionData:
|
|
292
|
-
errors:
|
|
293
|
-
initialized:
|
|
294
|
-
navigation:
|
|
255
|
+
historyAction: E.Action.Pop,
|
|
256
|
+
location: e.location,
|
|
257
|
+
matches: o,
|
|
258
|
+
loaderData: e.loaderData,
|
|
259
|
+
actionData: e.actionData,
|
|
260
|
+
errors: e.errors,
|
|
261
|
+
initialized: !0,
|
|
262
|
+
navigation: E.IDLE_NAVIGATION,
|
|
295
263
|
restoreScrollPosition: null,
|
|
296
|
-
preventScrollReset:
|
|
264
|
+
preventScrollReset: !1,
|
|
297
265
|
revalidation: "idle",
|
|
298
266
|
fetchers: /* @__PURE__ */ new Map(),
|
|
299
267
|
blockers: /* @__PURE__ */ new Map()
|
|
300
268
|
};
|
|
301
269
|
},
|
|
302
270
|
get routes() {
|
|
303
|
-
return
|
|
271
|
+
return s;
|
|
304
272
|
},
|
|
305
273
|
get window() {
|
|
306
|
-
return void 0;
|
|
307
274
|
},
|
|
308
275
|
initialize() {
|
|
309
|
-
throw
|
|
276
|
+
throw i("initialize");
|
|
310
277
|
},
|
|
311
278
|
subscribe() {
|
|
312
|
-
throw
|
|
279
|
+
throw i("subscribe");
|
|
313
280
|
},
|
|
314
281
|
enableScrollRestoration() {
|
|
315
|
-
throw
|
|
282
|
+
throw i("enableScrollRestoration");
|
|
316
283
|
},
|
|
317
284
|
navigate() {
|
|
318
|
-
throw
|
|
285
|
+
throw i("navigate");
|
|
319
286
|
},
|
|
320
287
|
fetch() {
|
|
321
|
-
throw
|
|
288
|
+
throw i("fetch");
|
|
322
289
|
},
|
|
323
290
|
revalidate() {
|
|
324
|
-
throw
|
|
291
|
+
throw i("revalidate");
|
|
325
292
|
},
|
|
326
|
-
createHref,
|
|
327
|
-
encodeLocation,
|
|
293
|
+
createHref: Fe,
|
|
294
|
+
encodeLocation: Qe,
|
|
328
295
|
getFetcher() {
|
|
329
|
-
return
|
|
296
|
+
return E.IDLE_FETCHER;
|
|
330
297
|
},
|
|
331
298
|
deleteFetcher() {
|
|
332
|
-
throw
|
|
299
|
+
throw i("deleteFetcher");
|
|
333
300
|
},
|
|
334
301
|
dispose() {
|
|
335
|
-
throw
|
|
302
|
+
throw i("dispose");
|
|
336
303
|
},
|
|
337
304
|
getBlocker() {
|
|
338
|
-
return
|
|
305
|
+
return E.IDLE_BLOCKER;
|
|
339
306
|
},
|
|
340
307
|
deleteBlocker() {
|
|
341
|
-
throw
|
|
308
|
+
throw i("deleteBlocker");
|
|
342
309
|
},
|
|
343
310
|
patchRoutes() {
|
|
344
|
-
throw
|
|
311
|
+
throw i("patchRoutes");
|
|
345
312
|
},
|
|
346
313
|
_internalFetchControllers: /* @__PURE__ */ new Map(),
|
|
347
314
|
_internalActiveDeferreds: /* @__PURE__ */ new Map(),
|
|
348
315
|
_internalSetRoutes() {
|
|
349
|
-
throw
|
|
316
|
+
throw i("_internalSetRoutes");
|
|
350
317
|
}
|
|
351
318
|
};
|
|
352
319
|
}
|
|
353
|
-
function
|
|
354
|
-
return typeof
|
|
320
|
+
function Fe(t) {
|
|
321
|
+
return typeof t == "string" ? t : j.createPath(t);
|
|
355
322
|
}
|
|
356
|
-
function
|
|
357
|
-
let
|
|
358
|
-
|
|
359
|
-
let
|
|
323
|
+
function Qe(t) {
|
|
324
|
+
let e = typeof t == "string" ? t : j.createPath(t);
|
|
325
|
+
e = e.replace(/ $/, "%20");
|
|
326
|
+
let r = Yt.test(e) ? new URL(e) : new URL(e, "http://localhost");
|
|
360
327
|
return {
|
|
361
|
-
pathname:
|
|
362
|
-
search:
|
|
363
|
-
hash:
|
|
328
|
+
pathname: r.pathname,
|
|
329
|
+
search: r.search,
|
|
330
|
+
hash: r.hash
|
|
364
331
|
};
|
|
365
332
|
}
|
|
366
|
-
const
|
|
367
|
-
const ESCAPE_LOOKUP = {
|
|
333
|
+
const Yt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Jt = {
|
|
368
334
|
"&": "\\u0026",
|
|
369
335
|
">": "\\u003e",
|
|
370
336
|
"<": "\\u003c",
|
|
371
337
|
"\u2028": "\\u2028",
|
|
372
338
|
"\u2029": "\\u2029"
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
return str.replace(ESCAPE_REGEX, (match) => ESCAPE_LOOKUP[match]);
|
|
339
|
+
}, Xt = /[&><\u2028\u2029]/g;
|
|
340
|
+
function Wt(t) {
|
|
341
|
+
return t.replace(Xt, (e) => Jt[e]);
|
|
377
342
|
}
|
|
378
|
-
|
|
379
|
-
var
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
const
|
|
383
|
-
router:
|
|
384
|
-
}) => /* @__PURE__ */
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
constructor(config = {}) {
|
|
343
|
+
q.StaticRouter = Bt;
|
|
344
|
+
var Gt = q.StaticRouterProvider = zt;
|
|
345
|
+
q.createStaticHandler = $t;
|
|
346
|
+
q.createStaticRouter = Vt;
|
|
347
|
+
const Zt = ({
|
|
348
|
+
router: t
|
|
349
|
+
}) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { children: /* @__PURE__ */ n.jsx(Je, { router: t }) }) }), er = ({
|
|
350
|
+
router: t,
|
|
351
|
+
context: e,
|
|
352
|
+
helmetContext: r
|
|
353
|
+
}) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { context: r, children: /* @__PURE__ */ n.jsx(Gt, { router: t, context: e }) }) });
|
|
354
|
+
var w, be, tr = (be = class extends Oe {
|
|
355
|
+
constructor(e = {}) {
|
|
392
356
|
super();
|
|
393
|
-
|
|
394
|
-
this.config =
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
}
|
|
414
|
-
add(query) {
|
|
415
|
-
if (!__privateGet(this, _queries).has(query.queryHash)) {
|
|
416
|
-
__privateGet(this, _queries).set(query.queryHash, query);
|
|
417
|
-
this.notify({
|
|
418
|
-
type: "added",
|
|
419
|
-
query
|
|
420
|
-
});
|
|
421
|
-
}
|
|
357
|
+
y(this, w);
|
|
358
|
+
this.config = e, f(this, w, /* @__PURE__ */ new Map());
|
|
359
|
+
}
|
|
360
|
+
build(e, r, a) {
|
|
361
|
+
const s = r.queryKey, o = r.queryHash ?? Ae(s, r);
|
|
362
|
+
let i = this.get(o);
|
|
363
|
+
return i || (i = new bt({
|
|
364
|
+
cache: this,
|
|
365
|
+
queryKey: s,
|
|
366
|
+
queryHash: o,
|
|
367
|
+
options: e.defaultQueryOptions(r),
|
|
368
|
+
state: a,
|
|
369
|
+
defaultOptions: e.getQueryDefaults(s)
|
|
370
|
+
}), this.add(i)), i;
|
|
371
|
+
}
|
|
372
|
+
add(e) {
|
|
373
|
+
l(this, w).has(e.queryHash) || (l(this, w).set(e.queryHash, e), this.notify({
|
|
374
|
+
type: "added",
|
|
375
|
+
query: e
|
|
376
|
+
}));
|
|
422
377
|
}
|
|
423
|
-
remove(
|
|
424
|
-
const
|
|
425
|
-
|
|
426
|
-
query.destroy();
|
|
427
|
-
if (queryInMap === query) {
|
|
428
|
-
__privateGet(this, _queries).delete(query.queryHash);
|
|
429
|
-
}
|
|
430
|
-
this.notify({ type: "removed", query });
|
|
431
|
-
}
|
|
378
|
+
remove(e) {
|
|
379
|
+
const r = l(this, w).get(e.queryHash);
|
|
380
|
+
r && (e.destroy(), r === e && l(this, w).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
432
381
|
}
|
|
433
382
|
clear() {
|
|
434
|
-
|
|
435
|
-
this.getAll().forEach((
|
|
436
|
-
this.remove(
|
|
383
|
+
m.batch(() => {
|
|
384
|
+
this.getAll().forEach((e) => {
|
|
385
|
+
this.remove(e);
|
|
437
386
|
});
|
|
438
387
|
});
|
|
439
388
|
}
|
|
440
|
-
get(
|
|
441
|
-
return
|
|
389
|
+
get(e) {
|
|
390
|
+
return l(this, w).get(e);
|
|
442
391
|
}
|
|
443
392
|
getAll() {
|
|
444
|
-
return [...
|
|
393
|
+
return [...l(this, w).values()];
|
|
445
394
|
}
|
|
446
|
-
find(
|
|
447
|
-
const
|
|
395
|
+
find(e) {
|
|
396
|
+
const r = { exact: !0, ...e };
|
|
448
397
|
return this.getAll().find(
|
|
449
|
-
(
|
|
398
|
+
(a) => he(r, a)
|
|
450
399
|
);
|
|
451
400
|
}
|
|
452
|
-
findAll(
|
|
453
|
-
const
|
|
454
|
-
return Object.keys(
|
|
401
|
+
findAll(e = {}) {
|
|
402
|
+
const r = this.getAll();
|
|
403
|
+
return Object.keys(e).length > 0 ? r.filter((a) => he(e, a)) : r;
|
|
455
404
|
}
|
|
456
|
-
notify(
|
|
457
|
-
|
|
458
|
-
this.listeners.forEach((
|
|
459
|
-
|
|
405
|
+
notify(e) {
|
|
406
|
+
m.batch(() => {
|
|
407
|
+
this.listeners.forEach((r) => {
|
|
408
|
+
r(e);
|
|
460
409
|
});
|
|
461
410
|
});
|
|
462
411
|
}
|
|
463
412
|
onFocus() {
|
|
464
|
-
|
|
465
|
-
this.getAll().forEach((
|
|
466
|
-
|
|
413
|
+
m.batch(() => {
|
|
414
|
+
this.getAll().forEach((e) => {
|
|
415
|
+
e.onFocus();
|
|
467
416
|
});
|
|
468
417
|
});
|
|
469
418
|
}
|
|
470
419
|
onOnline() {
|
|
471
|
-
|
|
472
|
-
this.getAll().forEach((
|
|
473
|
-
|
|
420
|
+
m.batch(() => {
|
|
421
|
+
this.getAll().forEach((e) => {
|
|
422
|
+
e.onOnline();
|
|
474
423
|
});
|
|
475
424
|
});
|
|
476
425
|
}
|
|
477
|
-
},
|
|
478
|
-
|
|
479
|
-
constructor(config = {}) {
|
|
426
|
+
}, w = new WeakMap(), be), p, Q, xe, rr = (xe = class extends Oe {
|
|
427
|
+
constructor(e = {}) {
|
|
480
428
|
super();
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
this.config =
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
build(client, options, state) {
|
|
488
|
-
const mutation = new Mutation({
|
|
429
|
+
y(this, p);
|
|
430
|
+
y(this, Q);
|
|
431
|
+
this.config = e, f(this, p, /* @__PURE__ */ new Map()), f(this, Q, Date.now());
|
|
432
|
+
}
|
|
433
|
+
build(e, r, a) {
|
|
434
|
+
const s = new Rt({
|
|
489
435
|
mutationCache: this,
|
|
490
|
-
mutationId: ++
|
|
491
|
-
options:
|
|
492
|
-
state
|
|
436
|
+
mutationId: ++L(this, Q)._,
|
|
437
|
+
options: e.defaultMutationOptions(r),
|
|
438
|
+
state: a
|
|
493
439
|
});
|
|
494
|
-
this.add(
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
const scope = scopeFor(mutation);
|
|
507
|
-
if (__privateGet(this, _mutations).has(scope)) {
|
|
508
|
-
const mutations = (_a2 = __privateGet(this, _mutations).get(scope)) == null ? void 0 : _a2.filter((x) => x !== mutation);
|
|
509
|
-
if (mutations) {
|
|
510
|
-
if (mutations.length === 0) {
|
|
511
|
-
__privateGet(this, _mutations).delete(scope);
|
|
512
|
-
} else {
|
|
513
|
-
__privateGet(this, _mutations).set(scope, mutations);
|
|
514
|
-
}
|
|
515
|
-
}
|
|
440
|
+
return this.add(s), s;
|
|
441
|
+
}
|
|
442
|
+
add(e) {
|
|
443
|
+
const r = B(e), a = l(this, p).get(r) ?? [];
|
|
444
|
+
a.push(e), l(this, p).set(r, a), this.notify({ type: "added", mutation: e });
|
|
445
|
+
}
|
|
446
|
+
remove(e) {
|
|
447
|
+
var a;
|
|
448
|
+
const r = B(e);
|
|
449
|
+
if (l(this, p).has(r)) {
|
|
450
|
+
const s = (a = l(this, p).get(r)) == null ? void 0 : a.filter((o) => o !== e);
|
|
451
|
+
s && (s.length === 0 ? l(this, p).delete(r) : l(this, p).set(r, s));
|
|
516
452
|
}
|
|
517
|
-
this.notify({ type: "removed", mutation });
|
|
453
|
+
this.notify({ type: "removed", mutation: e });
|
|
518
454
|
}
|
|
519
|
-
canRun(
|
|
520
|
-
var
|
|
521
|
-
const
|
|
522
|
-
return !
|
|
455
|
+
canRun(e) {
|
|
456
|
+
var a;
|
|
457
|
+
const r = (a = l(this, p).get(B(e))) == null ? void 0 : a.find((s) => s.state.status === "pending");
|
|
458
|
+
return !r || r === e;
|
|
523
459
|
}
|
|
524
|
-
runNext(
|
|
525
|
-
var
|
|
526
|
-
const
|
|
527
|
-
return (
|
|
460
|
+
runNext(e) {
|
|
461
|
+
var a;
|
|
462
|
+
const r = (a = l(this, p).get(B(e))) == null ? void 0 : a.find((s) => s !== e && s.state.isPaused);
|
|
463
|
+
return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
|
|
528
464
|
}
|
|
529
465
|
clear() {
|
|
530
|
-
|
|
531
|
-
this.getAll().forEach((
|
|
532
|
-
this.remove(
|
|
466
|
+
m.batch(() => {
|
|
467
|
+
this.getAll().forEach((e) => {
|
|
468
|
+
this.remove(e);
|
|
533
469
|
});
|
|
534
470
|
});
|
|
535
471
|
}
|
|
536
472
|
getAll() {
|
|
537
|
-
return [...
|
|
473
|
+
return [...l(this, p).values()].flat();
|
|
538
474
|
}
|
|
539
|
-
find(
|
|
540
|
-
const
|
|
475
|
+
find(e) {
|
|
476
|
+
const r = { exact: !0, ...e };
|
|
541
477
|
return this.getAll().find(
|
|
542
|
-
(
|
|
478
|
+
(a) => de(r, a)
|
|
543
479
|
);
|
|
544
480
|
}
|
|
545
|
-
findAll(
|
|
546
|
-
return this.getAll().filter((
|
|
481
|
+
findAll(e = {}) {
|
|
482
|
+
return this.getAll().filter((r) => de(e, r));
|
|
547
483
|
}
|
|
548
|
-
notify(
|
|
549
|
-
|
|
550
|
-
this.listeners.forEach((
|
|
551
|
-
|
|
484
|
+
notify(e) {
|
|
485
|
+
m.batch(() => {
|
|
486
|
+
this.listeners.forEach((r) => {
|
|
487
|
+
r(e);
|
|
552
488
|
});
|
|
553
489
|
});
|
|
554
490
|
}
|
|
555
491
|
resumePausedMutations() {
|
|
556
|
-
const
|
|
557
|
-
return
|
|
492
|
+
const e = this.getAll().filter((r) => r.state.isPaused);
|
|
493
|
+
return m.batch(
|
|
558
494
|
() => Promise.all(
|
|
559
|
-
|
|
495
|
+
e.map((r) => r.continue().catch(P))
|
|
560
496
|
)
|
|
561
497
|
);
|
|
562
498
|
}
|
|
563
|
-
},
|
|
564
|
-
function
|
|
565
|
-
var
|
|
566
|
-
return ((
|
|
499
|
+
}, p = new WeakMap(), Q = new WeakMap(), xe);
|
|
500
|
+
function B(t) {
|
|
501
|
+
var e;
|
|
502
|
+
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
567
503
|
}
|
|
568
|
-
function
|
|
504
|
+
function ar(t) {
|
|
569
505
|
return {
|
|
570
|
-
onFetch: (
|
|
571
|
-
const
|
|
572
|
-
var
|
|
573
|
-
const options =
|
|
574
|
-
|
|
575
|
-
const
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
enumerable: true,
|
|
582
|
-
get: () => {
|
|
583
|
-
if (context.signal.aborted) {
|
|
584
|
-
cancelled = true;
|
|
585
|
-
} else {
|
|
586
|
-
context.signal.addEventListener("abort", () => {
|
|
587
|
-
cancelled = true;
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
return context.signal;
|
|
591
|
-
}
|
|
506
|
+
onFetch: (e, r) => {
|
|
507
|
+
const a = async () => {
|
|
508
|
+
var te, re, ae, se, ne;
|
|
509
|
+
const s = e.options, o = (ae = (re = (te = e.fetchOptions) == null ? void 0 : te.meta) == null ? void 0 : re.fetchMore) == null ? void 0 : ae.direction, i = ((se = e.state.data) == null ? void 0 : se.pages) || [], c = ((ne = e.state.data) == null ? void 0 : ne.pageParams) || [], u = { pages: [], pageParams: [] };
|
|
510
|
+
let g = !1;
|
|
511
|
+
const d = (b) => {
|
|
512
|
+
Object.defineProperty(b, "signal", {
|
|
513
|
+
enumerable: !0,
|
|
514
|
+
get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
|
|
515
|
+
g = !0;
|
|
516
|
+
}), e.signal)
|
|
592
517
|
});
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
const fetchPage = async (data, param, previous) => {
|
|
596
|
-
if (cancelled) {
|
|
518
|
+
}, Ue = xt(e.options, e.fetchOptions), $ = async (b, S, A) => {
|
|
519
|
+
if (g)
|
|
597
520
|
return Promise.reject();
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
direction: previous ? "backward" : "forward",
|
|
606
|
-
meta: context.options.meta
|
|
521
|
+
if (S == null && b.pages.length)
|
|
522
|
+
return Promise.resolve(b);
|
|
523
|
+
const H = {
|
|
524
|
+
queryKey: e.queryKey,
|
|
525
|
+
pageParam: S,
|
|
526
|
+
direction: A ? "backward" : "forward",
|
|
527
|
+
meta: e.options.meta
|
|
607
528
|
};
|
|
608
|
-
|
|
609
|
-
const
|
|
610
|
-
|
|
611
|
-
);
|
|
612
|
-
const { maxPages } = context.options;
|
|
613
|
-
const addTo = previous ? addToStart : addToEnd;
|
|
529
|
+
d(H);
|
|
530
|
+
const Ke = await Ue(
|
|
531
|
+
H
|
|
532
|
+
), { maxPages: ie } = e.options, oe = A ? wt : Et;
|
|
614
533
|
return {
|
|
615
|
-
pages:
|
|
616
|
-
pageParams:
|
|
534
|
+
pages: oe(b.pages, Ke, ie),
|
|
535
|
+
pageParams: oe(b.pageParams, S, ie)
|
|
617
536
|
};
|
|
618
537
|
};
|
|
619
|
-
let
|
|
620
|
-
if (
|
|
621
|
-
const
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
};
|
|
627
|
-
const param = pageParamFn(options, oldData);
|
|
628
|
-
result = await fetchPage(oldData, param, previous);
|
|
538
|
+
let R;
|
|
539
|
+
if (o && i.length) {
|
|
540
|
+
const b = o === "backward", S = b ? sr : ye, A = {
|
|
541
|
+
pages: i,
|
|
542
|
+
pageParams: c
|
|
543
|
+
}, H = S(s, A);
|
|
544
|
+
R = await $(A, H, b);
|
|
629
545
|
} else {
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
546
|
+
R = await $(
|
|
547
|
+
u,
|
|
548
|
+
c[0] ?? s.initialPageParam
|
|
633
549
|
);
|
|
634
|
-
const
|
|
635
|
-
for (let
|
|
636
|
-
const
|
|
637
|
-
|
|
550
|
+
const b = t ?? i.length;
|
|
551
|
+
for (let S = 1; S < b; S++) {
|
|
552
|
+
const A = ye(s, R);
|
|
553
|
+
R = await $(R, A);
|
|
638
554
|
}
|
|
639
555
|
}
|
|
640
|
-
return
|
|
556
|
+
return R;
|
|
641
557
|
};
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
};
|
|
656
|
-
} else {
|
|
657
|
-
context.fetchFn = fetchFn;
|
|
658
|
-
}
|
|
558
|
+
e.options.persister ? e.fetchFn = () => {
|
|
559
|
+
var s, o;
|
|
560
|
+
return (o = (s = e.options).persister) == null ? void 0 : o.call(
|
|
561
|
+
s,
|
|
562
|
+
a,
|
|
563
|
+
{
|
|
564
|
+
queryKey: e.queryKey,
|
|
565
|
+
meta: e.options.meta,
|
|
566
|
+
signal: e.signal
|
|
567
|
+
},
|
|
568
|
+
r
|
|
569
|
+
);
|
|
570
|
+
} : e.fetchFn = a;
|
|
659
571
|
}
|
|
660
572
|
};
|
|
661
573
|
}
|
|
662
|
-
function
|
|
663
|
-
const
|
|
664
|
-
return
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
574
|
+
function ye(t, { pages: e, pageParams: r }) {
|
|
575
|
+
const a = e.length - 1;
|
|
576
|
+
return t.getNextPageParam(
|
|
577
|
+
e[a],
|
|
578
|
+
e,
|
|
579
|
+
r[a],
|
|
580
|
+
r
|
|
669
581
|
);
|
|
670
582
|
}
|
|
671
|
-
function
|
|
672
|
-
var
|
|
673
|
-
return (
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
583
|
+
function sr(t, { pages: e, pageParams: r }) {
|
|
584
|
+
var a;
|
|
585
|
+
return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
|
|
586
|
+
t,
|
|
587
|
+
e[0],
|
|
588
|
+
e,
|
|
589
|
+
r[0],
|
|
590
|
+
r
|
|
679
591
|
);
|
|
680
592
|
}
|
|
681
|
-
var
|
|
682
|
-
constructor(
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
__privateSet(this, _mutationCache, config.mutationCache || new MutationCache());
|
|
693
|
-
__privateSet(this, _defaultOptions, config.defaultOptions || {});
|
|
694
|
-
__privateSet(this, _queryDefaults, /* @__PURE__ */ new Map());
|
|
695
|
-
__privateSet(this, _mutationDefaults, /* @__PURE__ */ new Map());
|
|
696
|
-
__privateSet(this, _mountCount, 0);
|
|
593
|
+
var h, N, C, k, M, O, D, _, we, nr = (we = class {
|
|
594
|
+
constructor(t = {}) {
|
|
595
|
+
y(this, h);
|
|
596
|
+
y(this, N);
|
|
597
|
+
y(this, C);
|
|
598
|
+
y(this, k);
|
|
599
|
+
y(this, M);
|
|
600
|
+
y(this, O);
|
|
601
|
+
y(this, D);
|
|
602
|
+
y(this, _);
|
|
603
|
+
f(this, h, t.queryCache || new tr()), f(this, N, t.mutationCache || new rr()), f(this, C, t.defaultOptions || {}), f(this, k, /* @__PURE__ */ new Map()), f(this, M, /* @__PURE__ */ new Map()), f(this, O, 0);
|
|
697
604
|
}
|
|
698
605
|
mount() {
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
await this.resumePausedMutations();
|
|
705
|
-
__privateGet(this, _queryCache).onFocus();
|
|
706
|
-
}
|
|
707
|
-
}));
|
|
708
|
-
__privateSet(this, _unsubscribeOnline, onlineManager.subscribe(async (online) => {
|
|
709
|
-
if (online) {
|
|
710
|
-
await this.resumePausedMutations();
|
|
711
|
-
__privateGet(this, _queryCache).onOnline();
|
|
712
|
-
}
|
|
713
|
-
}));
|
|
606
|
+
L(this, O)._++, l(this, O) === 1 && (f(this, D, Pt.subscribe(async (t) => {
|
|
607
|
+
t && (await this.resumePausedMutations(), l(this, h).onFocus());
|
|
608
|
+
})), f(this, _, fe.subscribe(async (t) => {
|
|
609
|
+
t && (await this.resumePausedMutations(), l(this, h).onOnline());
|
|
610
|
+
})));
|
|
714
611
|
}
|
|
715
612
|
unmount() {
|
|
716
|
-
var
|
|
717
|
-
|
|
718
|
-
if (__privateGet(this, _mountCount) !== 0)
|
|
719
|
-
return;
|
|
720
|
-
(_a2 = __privateGet(this, _unsubscribeFocus)) == null ? void 0 : _a2.call(this);
|
|
721
|
-
__privateSet(this, _unsubscribeFocus, void 0);
|
|
722
|
-
(_b2 = __privateGet(this, _unsubscribeOnline)) == null ? void 0 : _b2.call(this);
|
|
723
|
-
__privateSet(this, _unsubscribeOnline, void 0);
|
|
724
|
-
}
|
|
725
|
-
isFetching(filters) {
|
|
726
|
-
return __privateGet(this, _queryCache).findAll({ ...filters, fetchStatus: "fetching" }).length;
|
|
727
|
-
}
|
|
728
|
-
isMutating(filters) {
|
|
729
|
-
return __privateGet(this, _mutationCache).findAll({ ...filters, status: "pending" }).length;
|
|
730
|
-
}
|
|
731
|
-
getQueryData(queryKey) {
|
|
732
|
-
var _a2;
|
|
733
|
-
const options = this.defaultQueryOptions({ queryKey });
|
|
734
|
-
return (_a2 = __privateGet(this, _queryCache).get(options.queryHash)) == null ? void 0 : _a2.state.data;
|
|
735
|
-
}
|
|
736
|
-
ensureQueryData(options) {
|
|
737
|
-
const cachedData = this.getQueryData(options.queryKey);
|
|
738
|
-
if (cachedData === void 0)
|
|
739
|
-
return this.fetchQuery(options);
|
|
740
|
-
else {
|
|
741
|
-
const defaultedOptions = this.defaultQueryOptions(options);
|
|
742
|
-
const query = __privateGet(this, _queryCache).build(this, defaultedOptions);
|
|
743
|
-
if (options.revalidateIfStale && query.isStaleByTime(resolveStaleTime(defaultedOptions.staleTime, query))) {
|
|
744
|
-
void this.prefetchQuery(defaultedOptions);
|
|
745
|
-
}
|
|
746
|
-
return Promise.resolve(cachedData);
|
|
747
|
-
}
|
|
613
|
+
var t, e;
|
|
614
|
+
L(this, O)._--, l(this, O) === 0 && ((t = l(this, D)) == null || t.call(this), f(this, D, void 0), (e = l(this, _)) == null || e.call(this), f(this, _, void 0));
|
|
748
615
|
}
|
|
749
|
-
|
|
750
|
-
return
|
|
751
|
-
const data = state.data;
|
|
752
|
-
return [queryKey, data];
|
|
753
|
-
});
|
|
616
|
+
isFetching(t) {
|
|
617
|
+
return l(this, h).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
754
618
|
}
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
const
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
619
|
+
isMutating(t) {
|
|
620
|
+
return l(this, N).findAll({ ...t, status: "pending" }).length;
|
|
621
|
+
}
|
|
622
|
+
getQueryData(t) {
|
|
623
|
+
var r;
|
|
624
|
+
const e = this.defaultQueryOptions({ queryKey: t });
|
|
625
|
+
return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state.data;
|
|
626
|
+
}
|
|
627
|
+
ensureQueryData(t) {
|
|
628
|
+
const e = this.getQueryData(t.queryKey);
|
|
629
|
+
if (e === void 0)
|
|
630
|
+
return this.fetchQuery(t);
|
|
631
|
+
{
|
|
632
|
+
const r = this.defaultQueryOptions(t), a = l(this, h).build(this, r);
|
|
633
|
+
return t.revalidateIfStale && a.isStaleByTime(pe(r.staleTime, a)) && this.prefetchQuery(r), Promise.resolve(e);
|
|
764
634
|
}
|
|
765
|
-
return __privateGet(this, _queryCache).build(this, defaultedOptions).setData(data, { ...options, manual: true });
|
|
766
635
|
}
|
|
767
|
-
|
|
768
|
-
return
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
636
|
+
getQueriesData(t) {
|
|
637
|
+
return l(this, h).findAll(t).map(({ queryKey: e, state: r }) => {
|
|
638
|
+
const a = r.data;
|
|
639
|
+
return [e, a];
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
setQueryData(t, e, r) {
|
|
643
|
+
const a = this.defaultQueryOptions({ queryKey: t }), s = l(this, h).get(
|
|
644
|
+
a.queryHash
|
|
645
|
+
), o = s == null ? void 0 : s.state.data, i = jt(e, o);
|
|
646
|
+
if (i !== void 0)
|
|
647
|
+
return l(this, h).build(this, a).setData(i, { ...r, manual: !0 });
|
|
648
|
+
}
|
|
649
|
+
setQueriesData(t, e, r) {
|
|
650
|
+
return m.batch(
|
|
651
|
+
() => l(this, h).findAll(t).map(({ queryKey: a }) => [
|
|
652
|
+
a,
|
|
653
|
+
this.setQueryData(a, e, r)
|
|
772
654
|
])
|
|
773
655
|
);
|
|
774
656
|
}
|
|
775
|
-
getQueryState(
|
|
776
|
-
var
|
|
777
|
-
const
|
|
778
|
-
return (
|
|
657
|
+
getQueryState(t) {
|
|
658
|
+
var r;
|
|
659
|
+
const e = this.defaultQueryOptions({ queryKey: t });
|
|
660
|
+
return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state;
|
|
779
661
|
}
|
|
780
|
-
removeQueries(
|
|
781
|
-
const
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
662
|
+
removeQueries(t) {
|
|
663
|
+
const e = l(this, h);
|
|
664
|
+
m.batch(() => {
|
|
665
|
+
e.findAll(t).forEach((r) => {
|
|
666
|
+
e.remove(r);
|
|
785
667
|
});
|
|
786
668
|
});
|
|
787
669
|
}
|
|
788
|
-
resetQueries(
|
|
789
|
-
const
|
|
790
|
-
const refetchFilters = {
|
|
670
|
+
resetQueries(t, e) {
|
|
671
|
+
const r = l(this, h), a = {
|
|
791
672
|
type: "active",
|
|
792
|
-
...
|
|
673
|
+
...t
|
|
793
674
|
};
|
|
794
|
-
return
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
});
|
|
798
|
-
return this.refetchQueries(refetchFilters, options);
|
|
799
|
-
});
|
|
675
|
+
return m.batch(() => (r.findAll(t).forEach((s) => {
|
|
676
|
+
s.reset();
|
|
677
|
+
}), this.refetchQueries(a, e)));
|
|
800
678
|
}
|
|
801
|
-
cancelQueries(
|
|
802
|
-
const
|
|
803
|
-
|
|
804
|
-
() => __privateGet(this, _queryCache).findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
|
|
679
|
+
cancelQueries(t = {}, e = {}) {
|
|
680
|
+
const r = { revert: !0, ...e }, a = m.batch(
|
|
681
|
+
() => l(this, h).findAll(t).map((s) => s.cancel(r))
|
|
805
682
|
);
|
|
806
|
-
return Promise.all(
|
|
683
|
+
return Promise.all(a).then(P).catch(P);
|
|
807
684
|
}
|
|
808
|
-
invalidateQueries(
|
|
809
|
-
return
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
})
|
|
813
|
-
if (filters.refetchType === "none") {
|
|
685
|
+
invalidateQueries(t = {}, e = {}) {
|
|
686
|
+
return m.batch(() => {
|
|
687
|
+
if (l(this, h).findAll(t).forEach((a) => {
|
|
688
|
+
a.invalidate();
|
|
689
|
+
}), t.refetchType === "none")
|
|
814
690
|
return Promise.resolve();
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
type: filters.refetchType ?? filters.type ?? "active"
|
|
691
|
+
const r = {
|
|
692
|
+
...t,
|
|
693
|
+
type: t.refetchType ?? t.type ?? "active"
|
|
819
694
|
};
|
|
820
|
-
return this.refetchQueries(
|
|
695
|
+
return this.refetchQueries(r, e);
|
|
821
696
|
});
|
|
822
697
|
}
|
|
823
|
-
refetchQueries(
|
|
824
|
-
const
|
|
825
|
-
...
|
|
826
|
-
cancelRefetch: (
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
if (!fetchOptions.throwOnError) {
|
|
832
|
-
promise = promise.catch(noop);
|
|
833
|
-
}
|
|
834
|
-
return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
|
|
698
|
+
refetchQueries(t = {}, e) {
|
|
699
|
+
const r = {
|
|
700
|
+
...e,
|
|
701
|
+
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
702
|
+
}, a = m.batch(
|
|
703
|
+
() => l(this, h).findAll(t).filter((s) => !s.isDisabled()).map((s) => {
|
|
704
|
+
let o = s.fetch(void 0, r);
|
|
705
|
+
return r.throwOnError || (o = o.catch(P)), s.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
835
706
|
})
|
|
836
707
|
);
|
|
837
|
-
return Promise.all(
|
|
708
|
+
return Promise.all(a).then(P);
|
|
838
709
|
}
|
|
839
|
-
fetchQuery(
|
|
840
|
-
const
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
resolveStaleTime(defaultedOptions.staleTime, query)
|
|
847
|
-
) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
|
|
710
|
+
fetchQuery(t) {
|
|
711
|
+
const e = this.defaultQueryOptions(t);
|
|
712
|
+
e.retry === void 0 && (e.retry = !1);
|
|
713
|
+
const r = l(this, h).build(this, e);
|
|
714
|
+
return r.isStaleByTime(
|
|
715
|
+
pe(e.staleTime, r)
|
|
716
|
+
) ? r.fetch(e) : Promise.resolve(r.state.data);
|
|
848
717
|
}
|
|
849
|
-
prefetchQuery(
|
|
850
|
-
return this.fetchQuery(
|
|
718
|
+
prefetchQuery(t) {
|
|
719
|
+
return this.fetchQuery(t).then(P).catch(P);
|
|
851
720
|
}
|
|
852
|
-
fetchInfiniteQuery(
|
|
853
|
-
|
|
854
|
-
return this.fetchQuery(options);
|
|
721
|
+
fetchInfiniteQuery(t) {
|
|
722
|
+
return t.behavior = ar(t.pages), this.fetchQuery(t);
|
|
855
723
|
}
|
|
856
|
-
prefetchInfiniteQuery(
|
|
857
|
-
return this.fetchInfiniteQuery(
|
|
724
|
+
prefetchInfiniteQuery(t) {
|
|
725
|
+
return this.fetchInfiniteQuery(t).then(P).catch(P);
|
|
858
726
|
}
|
|
859
727
|
resumePausedMutations() {
|
|
860
|
-
|
|
861
|
-
return __privateGet(this, _mutationCache).resumePausedMutations();
|
|
862
|
-
}
|
|
863
|
-
return Promise.resolve();
|
|
728
|
+
return fe.isOnline() ? l(this, N).resumePausedMutations() : Promise.resolve();
|
|
864
729
|
}
|
|
865
730
|
getQueryCache() {
|
|
866
|
-
return
|
|
731
|
+
return l(this, h);
|
|
867
732
|
}
|
|
868
733
|
getMutationCache() {
|
|
869
|
-
return
|
|
734
|
+
return l(this, N);
|
|
870
735
|
}
|
|
871
736
|
getDefaultOptions() {
|
|
872
|
-
return
|
|
873
|
-
}
|
|
874
|
-
setDefaultOptions(options) {
|
|
875
|
-
__privateSet(this, _defaultOptions, options);
|
|
876
|
-
}
|
|
877
|
-
setQueryDefaults(queryKey, options) {
|
|
878
|
-
__privateGet(this, _queryDefaults).set(hashKey(queryKey), {
|
|
879
|
-
queryKey,
|
|
880
|
-
defaultOptions: options
|
|
881
|
-
});
|
|
737
|
+
return l(this, C);
|
|
882
738
|
}
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
let result = {};
|
|
886
|
-
defaults.forEach((queryDefault) => {
|
|
887
|
-
if (partialMatchKey(queryKey, queryDefault.queryKey)) {
|
|
888
|
-
result = { ...result, ...queryDefault.defaultOptions };
|
|
889
|
-
}
|
|
890
|
-
});
|
|
891
|
-
return result;
|
|
739
|
+
setDefaultOptions(t) {
|
|
740
|
+
f(this, C, t);
|
|
892
741
|
}
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
defaultOptions:
|
|
742
|
+
setQueryDefaults(t, e) {
|
|
743
|
+
l(this, k).set(me(t), {
|
|
744
|
+
queryKey: t,
|
|
745
|
+
defaultOptions: e
|
|
897
746
|
});
|
|
898
747
|
}
|
|
899
|
-
|
|
900
|
-
const
|
|
901
|
-
let
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
748
|
+
getQueryDefaults(t) {
|
|
749
|
+
const e = [...l(this, k).values()];
|
|
750
|
+
let r = {};
|
|
751
|
+
return e.forEach((a) => {
|
|
752
|
+
ge(t, a.queryKey) && (r = { ...r, ...a.defaultOptions });
|
|
753
|
+
}), r;
|
|
754
|
+
}
|
|
755
|
+
setMutationDefaults(t, e) {
|
|
756
|
+
l(this, M).set(me(t), {
|
|
757
|
+
mutationKey: t,
|
|
758
|
+
defaultOptions: e
|
|
906
759
|
});
|
|
907
|
-
return result;
|
|
908
760
|
}
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
761
|
+
getMutationDefaults(t) {
|
|
762
|
+
const e = [...l(this, M).values()];
|
|
763
|
+
let r = {};
|
|
764
|
+
return e.forEach((a) => {
|
|
765
|
+
ge(t, a.mutationKey) && (r = { ...r, ...a.defaultOptions });
|
|
766
|
+
}), r;
|
|
767
|
+
}
|
|
768
|
+
defaultQueryOptions(t) {
|
|
769
|
+
if (t._defaulted)
|
|
770
|
+
return t;
|
|
771
|
+
const e = {
|
|
772
|
+
...l(this, C).queries,
|
|
773
|
+
...this.getQueryDefaults(t.queryKey),
|
|
774
|
+
...t,
|
|
775
|
+
_defaulted: !0
|
|
918
776
|
};
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
}
|
|
931
|
-
if (!defaultedOptions.networkMode && defaultedOptions.persister) {
|
|
932
|
-
defaultedOptions.networkMode = "offlineFirst";
|
|
933
|
-
}
|
|
934
|
-
if (defaultedOptions.enabled !== true && defaultedOptions.queryFn === skipToken) {
|
|
935
|
-
defaultedOptions.enabled = false;
|
|
936
|
-
}
|
|
937
|
-
return defaultedOptions;
|
|
938
|
-
}
|
|
939
|
-
defaultMutationOptions(options) {
|
|
940
|
-
if (options == null ? void 0 : options._defaulted) {
|
|
941
|
-
return options;
|
|
942
|
-
}
|
|
943
|
-
return {
|
|
944
|
-
...__privateGet(this, _defaultOptions).mutations,
|
|
945
|
-
...(options == null ? void 0 : options.mutationKey) && this.getMutationDefaults(options.mutationKey),
|
|
946
|
-
...options,
|
|
947
|
-
_defaulted: true
|
|
777
|
+
return e.queryHash || (e.queryHash = Ae(
|
|
778
|
+
e.queryKey,
|
|
779
|
+
e
|
|
780
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === St && (e.enabled = !1), e;
|
|
781
|
+
}
|
|
782
|
+
defaultMutationOptions(t) {
|
|
783
|
+
return t != null && t._defaulted ? t : {
|
|
784
|
+
...l(this, C).mutations,
|
|
785
|
+
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
786
|
+
...t,
|
|
787
|
+
_defaulted: !0
|
|
948
788
|
};
|
|
949
789
|
}
|
|
950
790
|
clear() {
|
|
951
|
-
|
|
952
|
-
__privateGet(this, _mutationCache).clear();
|
|
791
|
+
l(this, h).clear(), l(this, N).clear();
|
|
953
792
|
}
|
|
954
|
-
},
|
|
955
|
-
const
|
|
956
|
-
|
|
957
|
-
didCatch: false,
|
|
793
|
+
}, h = new WeakMap(), N = new WeakMap(), C = new WeakMap(), k = new WeakMap(), M = new WeakMap(), O = new WeakMap(), D = new WeakMap(), _ = new WeakMap(), we);
|
|
794
|
+
const ir = Ne(null), Y = {
|
|
795
|
+
didCatch: !1,
|
|
958
796
|
error: null
|
|
959
797
|
};
|
|
960
|
-
class
|
|
961
|
-
constructor(
|
|
962
|
-
super(
|
|
963
|
-
this.resetErrorBoundary = this.resetErrorBoundary.bind(this);
|
|
964
|
-
this.state = initialState;
|
|
798
|
+
class or extends dt {
|
|
799
|
+
constructor(e) {
|
|
800
|
+
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Y;
|
|
965
801
|
}
|
|
966
|
-
static getDerivedStateFromError(
|
|
802
|
+
static getDerivedStateFromError(e) {
|
|
967
803
|
return {
|
|
968
|
-
didCatch:
|
|
969
|
-
error
|
|
804
|
+
didCatch: !0,
|
|
805
|
+
error: e
|
|
970
806
|
};
|
|
971
807
|
}
|
|
972
808
|
resetErrorBoundary() {
|
|
973
809
|
const {
|
|
974
|
-
error
|
|
810
|
+
error: e
|
|
975
811
|
} = this.state;
|
|
976
|
-
if (
|
|
977
|
-
var
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
(_this$props$onReset = (_this$props = this.props).onReset) === null || _this$props$onReset === void 0 ? void 0 : _this$props$onReset.call(_this$props, {
|
|
982
|
-
args,
|
|
812
|
+
if (e !== null) {
|
|
813
|
+
for (var r, a, s = arguments.length, o = new Array(s), i = 0; i < s; i++)
|
|
814
|
+
o[i] = arguments[i];
|
|
815
|
+
(r = (a = this.props).onReset) === null || r === void 0 || r.call(a, {
|
|
816
|
+
args: o,
|
|
983
817
|
reason: "imperative-api"
|
|
984
|
-
});
|
|
985
|
-
this.setState(initialState);
|
|
818
|
+
}), this.setState(Y);
|
|
986
819
|
}
|
|
987
820
|
}
|
|
988
|
-
componentDidCatch(
|
|
989
|
-
var
|
|
990
|
-
(
|
|
821
|
+
componentDidCatch(e, r) {
|
|
822
|
+
var a, s;
|
|
823
|
+
(a = (s = this.props).onError) === null || a === void 0 || a.call(s, e, r);
|
|
991
824
|
}
|
|
992
|
-
componentDidUpdate(
|
|
993
|
-
const {
|
|
994
|
-
didCatch
|
|
995
|
-
} = this.state;
|
|
825
|
+
componentDidUpdate(e, r) {
|
|
996
826
|
const {
|
|
997
|
-
|
|
827
|
+
didCatch: a
|
|
828
|
+
} = this.state, {
|
|
829
|
+
resetKeys: s
|
|
998
830
|
} = this.props;
|
|
999
|
-
if (
|
|
1000
|
-
var
|
|
1001
|
-
(
|
|
1002
|
-
next:
|
|
1003
|
-
prev:
|
|
831
|
+
if (a && r.error !== null && lr(e.resetKeys, s)) {
|
|
832
|
+
var o, i;
|
|
833
|
+
(o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
|
|
834
|
+
next: s,
|
|
835
|
+
prev: e.resetKeys,
|
|
1004
836
|
reason: "keys"
|
|
1005
|
-
});
|
|
1006
|
-
this.setState(initialState);
|
|
837
|
+
}), this.setState(Y);
|
|
1007
838
|
}
|
|
1008
839
|
}
|
|
1009
840
|
render() {
|
|
1010
841
|
const {
|
|
1011
|
-
children,
|
|
1012
|
-
fallbackRender,
|
|
1013
|
-
FallbackComponent,
|
|
1014
|
-
fallback
|
|
1015
|
-
} = this.props
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
error
|
|
842
|
+
children: e,
|
|
843
|
+
fallbackRender: r,
|
|
844
|
+
FallbackComponent: a,
|
|
845
|
+
fallback: s
|
|
846
|
+
} = this.props, {
|
|
847
|
+
didCatch: o,
|
|
848
|
+
error: i
|
|
1019
849
|
} = this.state;
|
|
1020
|
-
let
|
|
1021
|
-
if (
|
|
1022
|
-
const
|
|
1023
|
-
error,
|
|
850
|
+
let c = e;
|
|
851
|
+
if (o) {
|
|
852
|
+
const u = {
|
|
853
|
+
error: i,
|
|
1024
854
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1025
855
|
};
|
|
1026
|
-
if (typeof
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
throw
|
|
1034
|
-
}
|
|
856
|
+
if (typeof r == "function")
|
|
857
|
+
c = r(u);
|
|
858
|
+
else if (a)
|
|
859
|
+
c = ue(a, u);
|
|
860
|
+
else if (s === null || ft(s))
|
|
861
|
+
c = s;
|
|
862
|
+
else
|
|
863
|
+
throw i;
|
|
1035
864
|
}
|
|
1036
|
-
return
|
|
865
|
+
return ue(ir.Provider, {
|
|
1037
866
|
value: {
|
|
1038
|
-
didCatch,
|
|
1039
|
-
error,
|
|
867
|
+
didCatch: o,
|
|
868
|
+
error: i,
|
|
1040
869
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1041
870
|
}
|
|
1042
|
-
},
|
|
871
|
+
}, c);
|
|
1043
872
|
}
|
|
1044
873
|
}
|
|
1045
|
-
function
|
|
1046
|
-
let
|
|
1047
|
-
|
|
1048
|
-
return a.length !== b.length || a.some((item, index) => !Object.is(item, b[index]));
|
|
874
|
+
function lr() {
|
|
875
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
876
|
+
return t.length !== e.length || t.some((r, a) => !Object.is(r, e[a]));
|
|
1049
877
|
}
|
|
1050
|
-
const
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
__publicField(this, "page");
|
|
1061
|
-
__publicField(this, "authentication");
|
|
1062
|
-
__publicField(this, "navigationPlugins");
|
|
1063
|
-
__publicField(this, "initialize", async () => {
|
|
878
|
+
const cr = (t) => "getRoutes" in t && typeof t.getRoutes == "function", ur = (t) => "initialize" in t && typeof t.initialize == "function", hr = (t) => "getHead" in t && typeof t.getHead == "function", dr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ie = new nr();
|
|
879
|
+
class fr {
|
|
880
|
+
constructor(e) {
|
|
881
|
+
v(this, "plugins", []);
|
|
882
|
+
v(this, "navigation");
|
|
883
|
+
v(this, "meta");
|
|
884
|
+
v(this, "page");
|
|
885
|
+
v(this, "authentication");
|
|
886
|
+
v(this, "navigationPlugins");
|
|
887
|
+
v(this, "initialize", async () => {
|
|
1064
888
|
await Promise.all([
|
|
1065
|
-
this.plugins.filter(
|
|
1066
|
-
var
|
|
1067
|
-
return (
|
|
889
|
+
this.plugins.filter(ur).map((e) => {
|
|
890
|
+
var r;
|
|
891
|
+
return (r = e.initialize) == null ? void 0 : r.call(e, this);
|
|
1068
892
|
})
|
|
1069
893
|
]);
|
|
1070
894
|
});
|
|
1071
|
-
|
|
1072
|
-
await
|
|
895
|
+
v(this, "invalidateCache", async (e) => {
|
|
896
|
+
await Ie.invalidateQueries({ queryKey: e });
|
|
1073
897
|
});
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
)
|
|
1088
|
-
);
|
|
1089
|
-
return navigations.flatMap((nav) => nav ?? []);
|
|
1090
|
-
});
|
|
1091
|
-
__publicField(this, "signRequest", async (request) => {
|
|
1092
|
-
if (!this.authentication) {
|
|
898
|
+
v(this, "getApiIdentities", async () => (await Promise.all(
|
|
899
|
+
this.plugins.filter(dr).map((r) => r.getIdentities(this))
|
|
900
|
+
)).flat());
|
|
901
|
+
v(this, "getNavigation", async (e) => (await Promise.all(
|
|
902
|
+
this.navigationPlugins.map(
|
|
903
|
+
async (a) => {
|
|
904
|
+
var s;
|
|
905
|
+
return (s = a.getNavigation) == null ? void 0 : s.call(a, e);
|
|
906
|
+
}
|
|
907
|
+
)
|
|
908
|
+
)).flatMap((a) => a ?? []));
|
|
909
|
+
v(this, "signRequest", async (e) => {
|
|
910
|
+
if (!this.authentication)
|
|
1093
911
|
throw new Error("No authentication provider configured");
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
request.headers.set("Authorization", `Bearer ${accessToken}`);
|
|
1097
|
-
return request;
|
|
912
|
+
const r = await this.authentication.getAccessToken();
|
|
913
|
+
return e.headers.set("Authorization", `Bearer ${r}`), e;
|
|
1098
914
|
});
|
|
1099
|
-
this.plugins =
|
|
1100
|
-
this.navigation = config.navigation;
|
|
1101
|
-
this.navigationPlugins = this.plugins.filter(isNavigationPlugin);
|
|
1102
|
-
this.authentication = config.authentication;
|
|
1103
|
-
this.meta = config.metadata;
|
|
1104
|
-
this.page = config.page;
|
|
915
|
+
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(cr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
|
|
1105
916
|
}
|
|
1106
917
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return /* @__PURE__ */
|
|
918
|
+
function pr({ error: t, resetErrorBoundary: e }) {
|
|
919
|
+
return /* @__PURE__ */ n.jsx(Ee, { error: t });
|
|
1109
920
|
}
|
|
1110
|
-
const
|
|
1111
|
-
const { navigation } =
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
}
|
|
1115
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "flex flex-row items-center gap-8", children: navigation.map((item) => /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1116
|
-
NavLink,
|
|
921
|
+
const mr = () => {
|
|
922
|
+
const { navigation: t } = G();
|
|
923
|
+
return t.length <= 1 ? null : /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
|
|
924
|
+
J,
|
|
1117
925
|
{
|
|
1118
|
-
className: ({ isActive }) =>
|
|
926
|
+
className: ({ isActive: r }) => Xe(
|
|
1119
927
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
1120
|
-
|
|
928
|
+
r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
1121
929
|
),
|
|
1122
|
-
to:
|
|
1123
|
-
children:
|
|
930
|
+
to: e.path,
|
|
931
|
+
children: e.label
|
|
1124
932
|
}
|
|
1125
|
-
) },
|
|
1126
|
-
}
|
|
1127
|
-
const
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
933
|
+
) }, e.label)) }) });
|
|
934
|
+
}, qe = Ce(function() {
|
|
935
|
+
const [e, r] = We(), { isAuthenticated: a, profile: s, isAuthEnabled: o, login: i, logout: c } = st(), { page: u } = G(), g = e ? _t : Tt;
|
|
936
|
+
return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
937
|
+
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
|
|
938
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
939
|
+
(u == null ? void 0 : u.logo) && /* @__PURE__ */ n.jsx(
|
|
940
|
+
"img",
|
|
941
|
+
{
|
|
942
|
+
src: e ? u.logo.src.dark : u.logo.src.light,
|
|
943
|
+
alt: u.logo.alt ?? u.pageTitle,
|
|
944
|
+
style: { width: u.logo.width },
|
|
945
|
+
className: "h-10"
|
|
946
|
+
}
|
|
947
|
+
),
|
|
948
|
+
/* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
|
|
1137
949
|
] }),
|
|
1138
|
-
/* @__PURE__ */
|
|
1139
|
-
/* @__PURE__ */
|
|
1140
|
-
/* @__PURE__ */
|
|
1141
|
-
|
|
950
|
+
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
951
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
|
|
952
|
+
/* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
|
|
953
|
+
o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
|
|
1142
954
|
"button",
|
|
1143
955
|
{
|
|
1144
956
|
type: "button",
|
|
1145
957
|
className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
|
|
1146
|
-
onClick:
|
|
958
|
+
onClick: c,
|
|
1147
959
|
children: [
|
|
1148
960
|
"Logout ",
|
|
1149
|
-
|
|
961
|
+
s != null && s.email ? `(${s.email})` : null
|
|
1150
962
|
]
|
|
1151
963
|
}
|
|
1152
|
-
) : /* @__PURE__ */
|
|
964
|
+
) : /* @__PURE__ */ n.jsx(
|
|
1153
965
|
"button",
|
|
1154
966
|
{
|
|
1155
967
|
type: "button",
|
|
1156
968
|
className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
|
|
1157
|
-
onClick:
|
|
969
|
+
onClick: i,
|
|
1158
970
|
children: "Login"
|
|
1159
971
|
}
|
|
1160
972
|
) }),
|
|
1161
|
-
/* @__PURE__ */
|
|
973
|
+
/* @__PURE__ */ n.jsx(
|
|
1162
974
|
"button",
|
|
1163
975
|
{
|
|
1164
976
|
type: "button",
|
|
1165
|
-
"aria-label":
|
|
977
|
+
"aria-label": e ? "Switch to light mode" : "Switch to dark mode",
|
|
1166
978
|
className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
|
|
1167
|
-
onClick:
|
|
1168
|
-
children: /* @__PURE__ */
|
|
979
|
+
onClick: r,
|
|
980
|
+
children: /* @__PURE__ */ n.jsx(g, { size: 18 })
|
|
1169
981
|
}
|
|
1170
982
|
)
|
|
1171
983
|
] })
|
|
1172
984
|
] })
|
|
1173
985
|
] }),
|
|
1174
|
-
/* @__PURE__ */
|
|
986
|
+
/* @__PURE__ */ n.jsx(mr, {})
|
|
1175
987
|
] }) });
|
|
1176
|
-
})
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
const ComponentsProvider = ComponentsContext.Provider;
|
|
1182
|
-
const DevPortalInner = ({
|
|
1183
|
-
children,
|
|
1184
|
-
...props
|
|
988
|
+
}), He = {
|
|
989
|
+
Header: qe
|
|
990
|
+
}, gr = Ne(He), vr = gr.Provider, yr = ({
|
|
991
|
+
children: t,
|
|
992
|
+
...e
|
|
1185
993
|
}) => {
|
|
1186
|
-
var
|
|
1187
|
-
const
|
|
1188
|
-
() => ({ ...
|
|
1189
|
-
[
|
|
1190
|
-
)
|
|
1191
|
-
const mdxComponents = useMemo(
|
|
994
|
+
var i, c;
|
|
995
|
+
const r = V(
|
|
996
|
+
() => ({ ...He, ...e.overrides }),
|
|
997
|
+
[e.overrides]
|
|
998
|
+
), a = V(
|
|
1192
999
|
() => {
|
|
1193
|
-
var
|
|
1194
|
-
return { ...
|
|
1000
|
+
var u;
|
|
1001
|
+
return { ...Ge, ...(u = e.mdx) == null ? void 0 : u.components };
|
|
1195
1002
|
},
|
|
1196
|
-
[(
|
|
1197
|
-
);
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Fragment, { children: (_a3 = plugin.getHead) == null ? void 0 : _a3.call(plugin) }, i);
|
|
1003
|
+
[(i = e.mdx) == null ? void 0 : i.components]
|
|
1004
|
+
), s = V(() => new fr(e), [e]);
|
|
1005
|
+
I(() => {
|
|
1006
|
+
s.initialize();
|
|
1007
|
+
}, [s]);
|
|
1008
|
+
const o = (c = e.plugins) == null ? void 0 : c.filter(hr).map((u, g) => {
|
|
1009
|
+
var d;
|
|
1010
|
+
return /* @__PURE__ */ n.jsx(pt, { children: (d = u.getHead) == null ? void 0 : d.call(u) }, g);
|
|
1205
1011
|
});
|
|
1206
|
-
return /* @__PURE__ */
|
|
1207
|
-
/* @__PURE__ */
|
|
1208
|
-
/* @__PURE__ */
|
|
1012
|
+
return /* @__PURE__ */ n.jsxs(Nt, { client: Ie, children: [
|
|
1013
|
+
/* @__PURE__ */ n.jsx(je, { children: o }),
|
|
1014
|
+
/* @__PURE__ */ n.jsx(Ct, { value: s, children: /* @__PURE__ */ n.jsx(lt, { components: a, children: /* @__PURE__ */ n.jsx(Ze, { children: /* @__PURE__ */ n.jsx(vr, { value: r, children: /* @__PURE__ */ n.jsx(et, { children: t }) }) }) }) })
|
|
1209
1015
|
] });
|
|
1210
|
-
};
|
|
1211
|
-
|
|
1212
|
-
const
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
const
|
|
1217
|
-
|
|
1218
|
-
const { setActiveAnchor } = useViewportAnchor();
|
|
1219
|
-
useEffect(() => {
|
|
1220
|
-
if (!location.hash) return;
|
|
1221
|
-
const hash = location.hash.split("/")[0].slice(1);
|
|
1222
|
-
const element = document.getElementById(decodeURIComponent(hash));
|
|
1223
|
-
if (element) {
|
|
1016
|
+
}, br = Ce(yr), Le = (t) => /* @__PURE__ */ n.jsx(or, { FallbackComponent: pr, children: /* @__PURE__ */ n.jsx(br, { ...t }) });
|
|
1017
|
+
Le.displayName = "DevPortal";
|
|
1018
|
+
const xr = () => {
|
|
1019
|
+
const t = T(), { setActiveAnchor: e } = X();
|
|
1020
|
+
I(() => {
|
|
1021
|
+
if (!t.hash) return;
|
|
1022
|
+
const r = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(r));
|
|
1023
|
+
if (a) {
|
|
1224
1024
|
requestAnimationFrame(() => {
|
|
1225
|
-
|
|
1226
|
-
requestIdleCallback(() => setActiveAnchor(hash));
|
|
1025
|
+
a.scrollIntoView(), requestIdleCallback(() => e(r));
|
|
1227
1026
|
});
|
|
1228
1027
|
return;
|
|
1229
1028
|
}
|
|
1230
|
-
const
|
|
1231
|
-
const
|
|
1232
|
-
|
|
1233
|
-
element2.scrollIntoView();
|
|
1234
|
-
requestIdleCallback(() => setActiveAnchor(hash));
|
|
1235
|
-
obs.disconnect();
|
|
1029
|
+
const s = new MutationObserver((o, i) => {
|
|
1030
|
+
const c = document.getElementById(decodeURIComponent(r));
|
|
1031
|
+
c && (c.scrollIntoView(), requestIdleCallback(() => e(r)), i.disconnect());
|
|
1236
1032
|
});
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
}, [location.pathname]);
|
|
1249
|
-
};
|
|
1250
|
-
const useNavigationCollapsibleState = ({
|
|
1251
|
-
item,
|
|
1252
|
-
defaultOpen,
|
|
1253
|
-
path
|
|
1033
|
+
return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
|
|
1034
|
+
}, [t.hash, e]);
|
|
1035
|
+
}, wr = () => {
|
|
1036
|
+
const t = T(), e = K(t.pathname);
|
|
1037
|
+
I(() => {
|
|
1038
|
+
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
1039
|
+
}, [t.pathname]);
|
|
1040
|
+
}, Be = ({
|
|
1041
|
+
item: t,
|
|
1042
|
+
defaultOpen: e,
|
|
1043
|
+
path: r
|
|
1254
1044
|
}) => {
|
|
1255
|
-
const [
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
setIsOpen(checkHasActiveItem(item, location.pathname, path));
|
|
1261
|
-
}
|
|
1262
|
-
previousLocationPath.current = location.pathname;
|
|
1263
|
-
}, [isOpen, item, path, location.pathname]);
|
|
1264
|
-
return [isOpen, setIsOpen];
|
|
1265
|
-
};
|
|
1266
|
-
const navigationListItem = cva(
|
|
1045
|
+
const [a, s] = mt(e), o = T(), i = K(o.pathname);
|
|
1046
|
+
return I(() => {
|
|
1047
|
+
!a && i.current !== o.pathname && s(Z(t, o.pathname, r)), i.current = o.pathname;
|
|
1048
|
+
}, [a, t, r, o.pathname]), [a, s];
|
|
1049
|
+
}, z = tt(
|
|
1267
1050
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
1268
1051
|
{
|
|
1269
1052
|
variants: {
|
|
@@ -1277,135 +1060,126 @@ const navigationListItem = cva(
|
|
|
1277
1060
|
}
|
|
1278
1061
|
}
|
|
1279
1062
|
}
|
|
1280
|
-
)
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
currentTopNavItem,
|
|
1287
|
-
basePath = ""
|
|
1063
|
+
), Er = "data-anchor", ze = ({
|
|
1064
|
+
category: t,
|
|
1065
|
+
item: e,
|
|
1066
|
+
activeAnchor: r,
|
|
1067
|
+
currentTopNavItem: a,
|
|
1068
|
+
basePath: s = ""
|
|
1288
1069
|
}) => {
|
|
1289
|
-
const
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
path: currentPath,
|
|
1294
|
-
defaultOpen: () => checkHasActiveItem(item, location.pathname, currentPath)
|
|
1070
|
+
const o = ve(e) ? De(s, e.path) : "", i = T(), [c, u] = Be({
|
|
1071
|
+
item: e,
|
|
1072
|
+
path: o,
|
|
1073
|
+
defaultOpen: () => Z(e, i.pathname, o)
|
|
1295
1074
|
});
|
|
1296
|
-
if (
|
|
1297
|
-
const
|
|
1075
|
+
if (Mt(e)) {
|
|
1076
|
+
const d = F(
|
|
1298
1077
|
"flex items-center gap-2",
|
|
1299
|
-
|
|
1300
|
-
isActive:
|
|
1078
|
+
z({
|
|
1079
|
+
isActive: e.href === i.pathname
|
|
1301
1080
|
})
|
|
1302
1081
|
);
|
|
1303
|
-
return
|
|
1082
|
+
return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
|
|
1304
1083
|
"a",
|
|
1305
1084
|
{
|
|
1306
|
-
className:
|
|
1307
|
-
href:
|
|
1085
|
+
className: d,
|
|
1086
|
+
href: e.href,
|
|
1308
1087
|
target: "_blank",
|
|
1309
1088
|
rel: "noopener noreferrer",
|
|
1310
1089
|
children: [
|
|
1311
|
-
|
|
1312
|
-
/* @__PURE__ */
|
|
1090
|
+
e.label,
|
|
1091
|
+
/* @__PURE__ */ n.jsx(Dt, { size: 14 })
|
|
1313
1092
|
]
|
|
1314
1093
|
}
|
|
1315
|
-
) : /* @__PURE__ */
|
|
1094
|
+
) : /* @__PURE__ */ n.jsx(J, { className: d, to: e.href, children: e.label });
|
|
1316
1095
|
}
|
|
1317
|
-
const
|
|
1318
|
-
/* @__PURE__ */
|
|
1319
|
-
|
|
1320
|
-
typeof
|
|
1096
|
+
const g = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
1097
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
1098
|
+
e.icon,
|
|
1099
|
+
typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
|
|
1321
1100
|
] }),
|
|
1322
|
-
|
|
1323
|
-
|
|
1101
|
+
e.children && /* @__PURE__ */ n.jsx(
|
|
1102
|
+
_e,
|
|
1324
1103
|
{
|
|
1325
1104
|
size: 16,
|
|
1326
1105
|
className: "transition shrink-0 group-data-[state=open]:rotate-90"
|
|
1327
1106
|
}
|
|
1328
1107
|
)
|
|
1329
1108
|
] });
|
|
1330
|
-
return /* @__PURE__ */
|
|
1331
|
-
|
|
1109
|
+
return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
|
|
1110
|
+
Re,
|
|
1332
1111
|
{
|
|
1333
|
-
open:
|
|
1334
|
-
onOpenChange: () =>
|
|
1112
|
+
open: c,
|
|
1113
|
+
onOpenChange: () => u((d) => !d),
|
|
1335
1114
|
className: "flex flex-col",
|
|
1336
1115
|
children: [
|
|
1337
|
-
/* @__PURE__ */
|
|
1338
|
-
|
|
1116
|
+
/* @__PURE__ */ n.jsx(
|
|
1117
|
+
ke,
|
|
1339
1118
|
{
|
|
1340
|
-
className:
|
|
1119
|
+
className: F(
|
|
1341
1120
|
"group text-start",
|
|
1342
|
-
|
|
1121
|
+
z({ isActive: !1 })
|
|
1343
1122
|
),
|
|
1344
|
-
children:
|
|
1123
|
+
children: g
|
|
1345
1124
|
}
|
|
1346
1125
|
),
|
|
1347
|
-
/* @__PURE__ */
|
|
1348
|
-
|
|
1126
|
+
/* @__PURE__ */ n.jsx(Me, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((d) => /* @__PURE__ */ n.jsx(
|
|
1127
|
+
ze,
|
|
1349
1128
|
{
|
|
1350
|
-
category,
|
|
1351
|
-
item:
|
|
1352
|
-
activeAnchor,
|
|
1353
|
-
currentTopNavItem,
|
|
1354
|
-
basePath:
|
|
1129
|
+
category: t,
|
|
1130
|
+
item: d,
|
|
1131
|
+
activeAnchor: r,
|
|
1132
|
+
currentTopNavItem: a,
|
|
1133
|
+
basePath: o
|
|
1355
1134
|
},
|
|
1356
|
-
|
|
1135
|
+
ve(d) ? d.path : d.href
|
|
1357
1136
|
)) }) })
|
|
1358
1137
|
]
|
|
1359
1138
|
}
|
|
1360
|
-
) :
|
|
1361
|
-
|
|
1139
|
+
) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
|
|
1140
|
+
ct,
|
|
1362
1141
|
{
|
|
1363
|
-
to:
|
|
1364
|
-
|
|
1365
|
-
className:
|
|
1366
|
-
isActive:
|
|
1367
|
-
isMuted:
|
|
1142
|
+
to: e.path,
|
|
1143
|
+
[Er]: e.path,
|
|
1144
|
+
className: z({
|
|
1145
|
+
isActive: e.path.slice(1) === r,
|
|
1146
|
+
isMuted: e.muted
|
|
1368
1147
|
}),
|
|
1369
|
-
children:
|
|
1148
|
+
children: g
|
|
1370
1149
|
}
|
|
1371
|
-
) : /* @__PURE__ */
|
|
1372
|
-
|
|
1150
|
+
) : /* @__PURE__ */ n.jsx(
|
|
1151
|
+
J,
|
|
1373
1152
|
{
|
|
1374
|
-
className: ({ isActive }) =>
|
|
1375
|
-
to:
|
|
1376
|
-
children:
|
|
1153
|
+
className: ({ isActive: d }) => z({ isActive: d }),
|
|
1154
|
+
to: o,
|
|
1155
|
+
children: g
|
|
1377
1156
|
}
|
|
1378
1157
|
) });
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
category
|
|
1158
|
+
}, Pr = ({
|
|
1159
|
+
category: t
|
|
1382
1160
|
}) => {
|
|
1383
|
-
const { activeAnchor } =
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
const [isOpen, setIsOpen] = useNavigationCollapsibleState({
|
|
1388
|
-
item: category,
|
|
1389
|
-
path: (navItem == null ? void 0 : navItem.path) ?? "",
|
|
1390
|
-
defaultOpen: () => !isCollapsible || category.expanded || checkHasActiveItem(category, location.pathname, (navItem == null ? void 0 : navItem.path) ?? "")
|
|
1161
|
+
const { activeAnchor: e } = X(), r = Ot(), a = T(), s = t.collapsible ?? !0, [o, i] = Be({
|
|
1162
|
+
item: t,
|
|
1163
|
+
path: (r == null ? void 0 : r.path) ?? "",
|
|
1164
|
+
defaultOpen: () => !s || t.expanded || Z(t, a.pathname, (r == null ? void 0 : r.path) ?? "")
|
|
1391
1165
|
});
|
|
1392
|
-
return /* @__PURE__ */
|
|
1393
|
-
|
|
1166
|
+
return /* @__PURE__ */ n.jsxs(
|
|
1167
|
+
Re,
|
|
1394
1168
|
{
|
|
1395
|
-
open:
|
|
1396
|
-
onOpenChange: () =>
|
|
1169
|
+
open: o,
|
|
1170
|
+
onOpenChange: () => i((c) => !c),
|
|
1397
1171
|
children: [
|
|
1398
|
-
|
|
1172
|
+
t.label.length > 0 ? /* @__PURE__ */ n.jsx(ke, { asChild: s, disabled: !s, children: /* @__PURE__ */ n.jsxs(
|
|
1399
1173
|
"h5",
|
|
1400
1174
|
{
|
|
1401
|
-
className:
|
|
1175
|
+
className: F(
|
|
1402
1176
|
"flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
|
|
1403
|
-
|
|
1177
|
+
s ? "hover:bg-accent" : "cursor-auto"
|
|
1404
1178
|
),
|
|
1405
1179
|
children: [
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1180
|
+
t.label,
|
|
1181
|
+
s && /* @__PURE__ */ n.jsx(
|
|
1182
|
+
_e,
|
|
1409
1183
|
{
|
|
1410
1184
|
className: "group-data-[state=open]:rotate-90 transition",
|
|
1411
1185
|
size: 16
|
|
@@ -1414,108 +1188,88 @@ const SideNavigationCategory = ({
|
|
|
1414
1188
|
]
|
|
1415
1189
|
}
|
|
1416
1190
|
) }) : "Endpoints",
|
|
1417
|
-
/* @__PURE__ */
|
|
1418
|
-
|
|
1191
|
+
/* @__PURE__ */ n.jsx(Me, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ n.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((c, u) => /* @__PURE__ */ n.jsx(
|
|
1192
|
+
ze,
|
|
1419
1193
|
{
|
|
1420
|
-
category,
|
|
1421
|
-
item,
|
|
1422
|
-
activeAnchor,
|
|
1423
|
-
currentTopNavItem:
|
|
1424
|
-
basePath:
|
|
1194
|
+
category: t,
|
|
1195
|
+
item: c,
|
|
1196
|
+
activeAnchor: e,
|
|
1197
|
+
currentTopNavItem: r,
|
|
1198
|
+
basePath: De(r == null ? void 0 : r.path, t.path)
|
|
1425
1199
|
},
|
|
1426
|
-
|
|
1200
|
+
u
|
|
1427
1201
|
)) }) })
|
|
1428
1202
|
]
|
|
1429
1203
|
},
|
|
1430
|
-
|
|
1204
|
+
t.label
|
|
1431
1205
|
);
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1206
|
+
}, jr = gt(function({ children: e, className: r, pushMainContent: a }, s) {
|
|
1207
|
+
return /* @__PURE__ */ n.jsx(
|
|
1435
1208
|
"nav",
|
|
1436
1209
|
{
|
|
1437
|
-
"data-navigation": String(
|
|
1438
|
-
className:
|
|
1210
|
+
"data-navigation": String(a),
|
|
1211
|
+
className: F(
|
|
1439
1212
|
"peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
|
|
1440
|
-
|
|
1213
|
+
r
|
|
1441
1214
|
),
|
|
1442
|
-
ref,
|
|
1443
|
-
children
|
|
1215
|
+
ref: s,
|
|
1216
|
+
children: e
|
|
1444
1217
|
}
|
|
1445
1218
|
);
|
|
1446
|
-
})
|
|
1447
|
-
const
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1451
|
-
SideNavigationWrapper,
|
|
1219
|
+
}), Sr = () => {
|
|
1220
|
+
const t = K(null), e = At();
|
|
1221
|
+
return /* @__PURE__ */ n.jsx(
|
|
1222
|
+
jr,
|
|
1452
1223
|
{
|
|
1453
|
-
ref:
|
|
1454
|
-
pushMainContent:
|
|
1455
|
-
children:
|
|
1224
|
+
ref: t,
|
|
1225
|
+
pushMainContent: e.data.items.length > 0,
|
|
1226
|
+
children: e.data.items.map((r) => /* @__PURE__ */ n.jsx(Pr, { category: r }, r.label))
|
|
1456
1227
|
}
|
|
1457
1228
|
);
|
|
1458
|
-
}
|
|
1459
|
-
const
|
|
1460
|
-
|
|
1461
|
-
const
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
setActiveAnchor("");
|
|
1469
|
-
}
|
|
1470
|
-
previousLocationPath.current = location.pathname;
|
|
1471
|
-
}, [location.pathname, setActiveAnchor]);
|
|
1472
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
1473
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Helmet, { titleTemplate: meta == null ? void 0 : meta.title, children: [
|
|
1474
|
-
(meta == null ? void 0 : meta.description) && /* @__PURE__ */ jsxRuntimeExports.jsx("meta", { name: "description", content: meta.description }),
|
|
1475
|
-
(meta == null ? void 0 : meta.favicon) && /* @__PURE__ */ jsxRuntimeExports.jsx("link", { rel: "icon", href: meta.favicon })
|
|
1229
|
+
}, Nr = ({ children: t }) => {
|
|
1230
|
+
const e = T(), { setActiveAnchor: r } = X(), { meta: a } = G();
|
|
1231
|
+
xr(), wr();
|
|
1232
|
+
const s = K(e.pathname);
|
|
1233
|
+
return I(() => {
|
|
1234
|
+
e.pathname !== s.current && r(""), s.current = e.pathname;
|
|
1235
|
+
}, [e.pathname, r]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1236
|
+
/* @__PURE__ */ n.jsxs(je, { titleTemplate: a == null ? void 0 : a.title, children: [
|
|
1237
|
+
(a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
|
|
1238
|
+
(a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
|
|
1476
1239
|
] }),
|
|
1477
|
-
/* @__PURE__ */
|
|
1478
|
-
/* @__PURE__ */
|
|
1479
|
-
|
|
1240
|
+
/* @__PURE__ */ n.jsx(qe, {}),
|
|
1241
|
+
/* @__PURE__ */ n.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ n.jsxs(
|
|
1242
|
+
vt,
|
|
1480
1243
|
{
|
|
1481
|
-
fallback: /* @__PURE__ */
|
|
1244
|
+
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(kt, {}) }),
|
|
1482
1245
|
children: [
|
|
1483
|
-
/* @__PURE__ */
|
|
1484
|
-
/* @__PURE__ */
|
|
1246
|
+
/* @__PURE__ */ n.jsx(Sr, {}),
|
|
1247
|
+
/* @__PURE__ */ n.jsx(
|
|
1485
1248
|
"main",
|
|
1486
1249
|
{
|
|
1487
|
-
className:
|
|
1250
|
+
className: F(
|
|
1488
1251
|
"dark:border-white/10 translate-x-0 h-full",
|
|
1489
1252
|
"lg:overflow-visible",
|
|
1490
1253
|
"lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
|
|
1491
1254
|
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
1492
1255
|
),
|
|
1493
|
-
children:
|
|
1256
|
+
children: t ?? /* @__PURE__ */ n.jsx(ot, {})
|
|
1494
1257
|
}
|
|
1495
1258
|
)
|
|
1496
1259
|
]
|
|
1497
1260
|
}
|
|
1498
1261
|
) })
|
|
1499
1262
|
] });
|
|
1500
|
-
};
|
|
1501
|
-
const useMDXComponents = useMDXComponents$1;
|
|
1502
|
-
const Callout = Callout$1;
|
|
1503
|
-
const DevPortal = DevPortal$1;
|
|
1504
|
-
const Layout = Layout$1;
|
|
1505
|
-
const Link = Link$1;
|
|
1506
|
-
const RouterError = RouterError$1;
|
|
1507
|
-
const ServerError = ServerError$1;
|
|
1508
|
-
const Bootstrap = Bootstrap$1;
|
|
1509
|
-
const BootstrapStatic = BootstrapStatic$1;
|
|
1263
|
+
}, qr = ut, Hr = rt, Lr = Le, Br = Nr, zr = at, Ur = nt, Kr = Ft, $r = Zt, Vr = er;
|
|
1510
1264
|
export {
|
|
1511
|
-
Bootstrap,
|
|
1512
|
-
BootstrapStatic,
|
|
1513
|
-
Callout,
|
|
1514
|
-
DevPortal,
|
|
1515
|
-
Layout,
|
|
1516
|
-
Link,
|
|
1517
|
-
RouterError,
|
|
1518
|
-
ServerError,
|
|
1519
|
-
useMDXComponents
|
|
1265
|
+
$r as Bootstrap,
|
|
1266
|
+
Vr as BootstrapStatic,
|
|
1267
|
+
Hr as Callout,
|
|
1268
|
+
Lr as DevPortal,
|
|
1269
|
+
Br as Layout,
|
|
1270
|
+
zr as Link,
|
|
1271
|
+
Ur as RouterError,
|
|
1272
|
+
Kr as ServerError,
|
|
1273
|
+
qr as useMDXComponents
|
|
1520
1274
|
};
|
|
1521
1275
|
//# sourceMappingURL=zudoku.components.js.map
|