zudoku 0.3.0-dev.54 → 0.3.0-dev.56
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/config/validators/validate.d.ts +12 -12
- 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/NotFoundPage.js +2 -2
- package/dist/lib/components/NotFoundPage.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 +2 -2
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +3 -3
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/lib/{AnchorLink-BCN_a_Uz.js → AnchorLink-GNsUeGSX.js} +2 -2
- package/lib/{AnchorLink-BCN_a_Uz.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/{Markdown-aE_XoLNs.js → Markdown-DtLFdxD1.js} +130 -129
- package/lib/{Markdown-aE_XoLNs.js.map → Markdown-DtLFdxD1.js.map} +1 -1
- package/lib/{MdxPage-Bsc79cD-.js → MdxPage-CbwYRKf5.js} +3 -3
- package/lib/{MdxPage-Bsc79cD-.js.map → MdxPage-CbwYRKf5.js.map} +1 -1
- package/lib/OperationList-DpR4KzIJ.js +5570 -0
- package/lib/OperationList-DpR4KzIJ.js.map +1 -0
- package/lib/{Route-D-egsGHx.js → Route-C1LyvITr.js} +2 -2
- package/lib/{Route-D-egsGHx.js.map → Route-C1LyvITr.js.map} +1 -1
- package/lib/{index-DseBZFJ-.js → Spinner-Bhbs5aPI.js} +46 -34
- package/lib/Spinner-Bhbs5aPI.js.map +1 -0
- package/lib/{hook-CKqQERWo.js → hook-Biq3zYel.js} +40 -25
- package/lib/hook-Biq3zYel.js.map +1 -0
- package/lib/{index-jsFBaizC.js → index-DZ910ttL.js} +10 -10
- package/lib/{index-jsFBaizC.js.map → index-DZ910ttL.js.map} +1 -1
- package/lib/index-gsAuUwQh.js +418 -0
- package/lib/index-gsAuUwQh.js.map +1 -0
- package/lib/{urql-DEKdguFl.js → urql-DMlBWUKL.js} +3 -3
- package/lib/{urql-DEKdguFl.js.map → urql-DMlBWUKL.js.map} +1 -1
- package/lib/zudoku.components.js +18 -19
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +89 -85
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/package.json +1 -1
- package/src/lib/components/DeveloperHint.tsx +25 -0
- package/src/lib/components/NotFoundPage.tsx +8 -14
- 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 +5 -8
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -5
- package/lib/Combination-B0Iu6mhJ.js +0 -915
- package/lib/Combination-B0Iu6mhJ.js.map +0 -1
- package/lib/OperationList-K-JWBxau.js +0 -5091
- package/lib/OperationList-K-JWBxau.js.map +0 -1
- package/lib/Playground-Czy7ha9z.js +0 -502
- package/lib/Playground-Czy7ha9z.js.map +0 -1
- package/lib/Select-CcBbwJ2R.js +0 -3667
- package/lib/Select-CcBbwJ2R.js.map +0 -1
- package/lib/Spinner-C9_Opdev.js +0 -15
- package/lib/Spinner-C9_Opdev.js.map +0 -1
- package/lib/hook-CKqQERWo.js.map +0 -1
- package/lib/index-ByHya67R.js +0 -207
- package/lib/index-ByHya67R.js.map +0 -1
- package/lib/index-DseBZFJ-.js.map +0 -1
- package/lib/mutation-DjbQSHzT.js +0 -208
- package/lib/mutation-DjbQSHzT.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as r, O as i } from "./jsx-runtime-CJZJivg2.js";
|
|
2
2
|
import { O as t } from "./context-_fYfJFgk.js";
|
|
3
|
-
import { P as s } from "./urql-
|
|
3
|
+
import { P as s } from "./urql-DMlBWUKL.js";
|
|
4
4
|
function p({
|
|
5
5
|
config: o,
|
|
6
6
|
client: e
|
|
@@ -10,4 +10,4 @@ function p({
|
|
|
10
10
|
export {
|
|
11
11
|
p as OpenApiRoute
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=Route-
|
|
13
|
+
//# sourceMappingURL=Route-C1LyvITr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Route-
|
|
1
|
+
{"version":3,"file":"Route-C1LyvITr.js","sources":["../src/lib/plugins/openapi/Route.tsx"],"sourcesContent":["import { Outlet } from \"react-router-dom\";\nimport { OasConfigProvider } from \"./context.js\";\nimport { OasPluginConfig } from \"./interfaces.js\";\n\nimport { Provider, Client as UrqlClient } from \"./util/urql.js\";\n\nexport function OpenApiRoute({\n config,\n client,\n}: {\n config: OasPluginConfig;\n client: typeof UrqlClient;\n}) {\n return (\n <Provider value={client}>\n <OasConfigProvider value={{ config }}>\n <Outlet />\n </OasConfigProvider>\n </Provider>\n );\n}\n"],"names":["OpenApiRoute","config","client","jsx","Provider","OasConfigProvider","Outlet"],"mappings":";;;AAMO,SAASA,EAAa;AAAA,EAC3B,QAAAC;AAAA,EACA,QAAAC;AACF,GAGG;AACD,SACGC,gBAAAA,EAAAA,IAAAC,GAAA,EAAS,OAAOF,GACf,UAACC,gBAAAA,EAAA,IAAAE,GAAA,EAAkB,OAAO,EAAE,QAAAJ,EAAO,GACjC,UAACE,gBAAAA,EAAA,IAAAG,GAAA,EAAO,GACV,EACF,CAAA;AAEJ;"}
|
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { u as M, g as h, c as
|
|
3
|
-
import * as
|
|
2
|
+
import { u as M, g as h, c as w, a as D, e as U, P as A, d as k } from "./index-gsAuUwQh.js";
|
|
3
|
+
import * as W from "react-dom";
|
|
4
4
|
import { j as N } from "./jsx-runtime-CJZJivg2.js";
|
|
5
|
-
|
|
5
|
+
import { c as F } from "./Markdown-DtLFdxD1.js";
|
|
6
|
+
/**
|
|
7
|
+
* @license lucide-react v0.378.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
const B = F("LoaderCircle", [
|
|
13
|
+
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
14
|
+
]);
|
|
15
|
+
function G(e, n) {
|
|
6
16
|
return s.useReducer((r, t) => n[r][t] ?? r, e);
|
|
7
17
|
}
|
|
8
|
-
var
|
|
9
|
-
const { present: n, children: r } = e, t =
|
|
18
|
+
var S = (e) => {
|
|
19
|
+
const { present: n, children: r } = e, t = $(n), o = typeof r == "function" ? r({ present: t.isPresent }) : s.Children.only(r), c = M(t.ref, q(o));
|
|
10
20
|
return typeof r == "function" || t.isPresent ? s.cloneElement(o, { ref: c }) : null;
|
|
11
21
|
};
|
|
12
|
-
|
|
13
|
-
function
|
|
14
|
-
const [n, r] = s.useState(), t = s.useRef({}), o = s.useRef(e), c = s.useRef("none"), l = e ? "mounted" : "unmounted", [f, i] =
|
|
22
|
+
S.displayName = "Presence";
|
|
23
|
+
function $(e) {
|
|
24
|
+
const [n, r] = s.useState(), t = s.useRef({}), o = s.useRef(e), c = s.useRef("none"), l = e ? "mounted" : "unmounted", [f, i] = G(l, {
|
|
15
25
|
mounted: {
|
|
16
26
|
UNMOUNT: "unmounted",
|
|
17
27
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -37,7 +47,7 @@ function B(e) {
|
|
|
37
47
|
if (n) {
|
|
38
48
|
const a = (p) => {
|
|
39
49
|
const m = v(t.current).includes(p.animationName);
|
|
40
|
-
p.target === n && m &&
|
|
50
|
+
p.target === n && m && W.flushSync(() => i("ANIMATION_END"));
|
|
41
51
|
}, d = (p) => {
|
|
42
52
|
p.target === n && (c.current = v(t.current));
|
|
43
53
|
};
|
|
@@ -56,12 +66,12 @@ function B(e) {
|
|
|
56
66
|
function v(e) {
|
|
57
67
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
58
68
|
}
|
|
59
|
-
function
|
|
69
|
+
function q(e) {
|
|
60
70
|
var t, o;
|
|
61
71
|
let n = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, r = n && "isReactWarning" in n && n.isReactWarning;
|
|
62
72
|
return r ? e.ref : (n = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = n && "isReactWarning" in n && n.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
63
73
|
}
|
|
64
|
-
var O = "Collapsible", [
|
|
74
|
+
var O = "Collapsible", [z, X] = w(O), [H, P] = z(O), I = s.forwardRef(
|
|
65
75
|
(e, n) => {
|
|
66
76
|
const {
|
|
67
77
|
__scopeCollapsible: r,
|
|
@@ -70,23 +80,23 @@ var O = "Collapsible", [$, K] = U(O), [q, P] = $(O), S = s.forwardRef(
|
|
|
70
80
|
disabled: c,
|
|
71
81
|
onOpenChange: l,
|
|
72
82
|
...f
|
|
73
|
-
} = e, [i = !1, a] =
|
|
83
|
+
} = e, [i = !1, a] = D({
|
|
74
84
|
prop: t,
|
|
75
85
|
defaultProp: o,
|
|
76
86
|
onChange: l
|
|
77
87
|
});
|
|
78
88
|
return /* @__PURE__ */ N.jsx(
|
|
79
|
-
|
|
89
|
+
H,
|
|
80
90
|
{
|
|
81
91
|
scope: r,
|
|
82
92
|
disabled: c,
|
|
83
|
-
contentId:
|
|
93
|
+
contentId: U(),
|
|
84
94
|
open: i,
|
|
85
95
|
onOpenToggle: s.useCallback(() => a((d) => !d), [a]),
|
|
86
96
|
children: /* @__PURE__ */ N.jsx(
|
|
87
97
|
A.div,
|
|
88
98
|
{
|
|
89
|
-
"data-state":
|
|
99
|
+
"data-state": E(i),
|
|
90
100
|
"data-disabled": c ? "" : void 0,
|
|
91
101
|
...f,
|
|
92
102
|
ref: n
|
|
@@ -96,8 +106,8 @@ var O = "Collapsible", [$, K] = U(O), [q, P] = $(O), S = s.forwardRef(
|
|
|
96
106
|
);
|
|
97
107
|
}
|
|
98
108
|
);
|
|
99
|
-
|
|
100
|
-
var _ = "CollapsibleTrigger",
|
|
109
|
+
I.displayName = O;
|
|
110
|
+
var _ = "CollapsibleTrigger", L = s.forwardRef(
|
|
101
111
|
(e, n) => {
|
|
102
112
|
const { __scopeCollapsible: r, ...t } = e, o = P(_, r);
|
|
103
113
|
return /* @__PURE__ */ N.jsx(
|
|
@@ -106,26 +116,26 @@ var _ = "CollapsibleTrigger", w = s.forwardRef(
|
|
|
106
116
|
type: "button",
|
|
107
117
|
"aria-controls": o.contentId,
|
|
108
118
|
"aria-expanded": o.open || !1,
|
|
109
|
-
"data-state":
|
|
119
|
+
"data-state": E(o.open),
|
|
110
120
|
"data-disabled": o.disabled ? "" : void 0,
|
|
111
121
|
disabled: o.disabled,
|
|
112
122
|
...t,
|
|
113
123
|
ref: n,
|
|
114
|
-
onClick:
|
|
124
|
+
onClick: k(e.onClick, o.onOpenToggle)
|
|
115
125
|
}
|
|
116
126
|
);
|
|
117
127
|
}
|
|
118
128
|
);
|
|
119
|
-
|
|
120
|
-
var
|
|
129
|
+
L.displayName = _;
|
|
130
|
+
var x = "CollapsibleContent", j = s.forwardRef(
|
|
121
131
|
(e, n) => {
|
|
122
|
-
const { forceMount: r, ...t } = e, o = P(
|
|
123
|
-
return /* @__PURE__ */ N.jsx(
|
|
132
|
+
const { forceMount: r, ...t } = e, o = P(x, e.__scopeCollapsible);
|
|
133
|
+
return /* @__PURE__ */ N.jsx(S, { present: r || o.open, children: ({ present: c }) => /* @__PURE__ */ N.jsx(J, { ...t, ref: n, present: c }) });
|
|
124
134
|
}
|
|
125
135
|
);
|
|
126
|
-
|
|
127
|
-
var
|
|
128
|
-
const { __scopeCollapsible: r, present: t, children: o, ...c } = e, l = P(
|
|
136
|
+
j.displayName = x;
|
|
137
|
+
var J = s.forwardRef((e, n) => {
|
|
138
|
+
const { __scopeCollapsible: r, present: t, children: o, ...c } = e, l = P(x, r), [f, i] = s.useState(t), a = s.useRef(null), d = M(n, a), p = s.useRef(0), g = p.current, m = s.useRef(0), R = m.current, b = l.open || f, T = s.useRef(b), C = s.useRef();
|
|
129
139
|
return s.useEffect(() => {
|
|
130
140
|
const u = requestAnimationFrame(() => T.current = !1);
|
|
131
141
|
return () => cancelAnimationFrame(u);
|
|
@@ -142,7 +152,7 @@ var H = s.forwardRef((e, n) => {
|
|
|
142
152
|
}, [l.open, t]), /* @__PURE__ */ N.jsx(
|
|
143
153
|
A.div,
|
|
144
154
|
{
|
|
145
|
-
"data-state":
|
|
155
|
+
"data-state": E(l.open),
|
|
146
156
|
"data-disabled": l.disabled ? "" : void 0,
|
|
147
157
|
id: l.contentId,
|
|
148
158
|
hidden: !b,
|
|
@@ -157,14 +167,16 @@ var H = s.forwardRef((e, n) => {
|
|
|
157
167
|
}
|
|
158
168
|
);
|
|
159
169
|
});
|
|
160
|
-
function
|
|
170
|
+
function E(e) {
|
|
161
171
|
return e ? "open" : "closed";
|
|
162
172
|
}
|
|
163
|
-
var
|
|
173
|
+
var Y = I, Z = L, ee = j;
|
|
174
|
+
const ne = ({ size: e = 16 }) => /* @__PURE__ */ N.jsx(B, { size: e, className: "animate-spin" });
|
|
164
175
|
export {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
176
|
+
ee as C,
|
|
177
|
+
S as P,
|
|
178
|
+
Y as R,
|
|
179
|
+
ne as S,
|
|
180
|
+
Z as T
|
|
169
181
|
};
|
|
170
|
-
//# sourceMappingURL=
|
|
182
|
+
//# sourceMappingURL=Spinner-Bhbs5aPI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner-Bhbs5aPI.js","sources":["../../../node_modules/.pnpm/lucide-react@0.378.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/loader-circle.js","../../../node_modules/.pnpm/@radix-ui+react-presence@1.1.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-presence/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3._qjsk5diswkeszbepgt4ntypuku/node_modules/@radix-ui/react-collapsible/dist/index.mjs","../src/lib/components/Spinner.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.378.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst LoaderCircle = createLucideIcon(\"LoaderCircle\", [\n [\"path\", { d: \"M21 12a9 9 0 1 1-6.219-8.56\", key: \"13zald\" }]\n]);\n\nexport { LoaderCircle as default };\n//# sourceMappingURL=loader-circle.js.map\n","\"use client\";\n\n// packages/react/presence/src/Presence.tsx\nimport * as React2 from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/useStateMachine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/Presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n ReactDOM.flushSync(() => send(\"ANIMATION_END\"));\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Presence\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// packages/react/collapsible/src/Collapsible.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar COLLAPSIBLE_NAME = \"Collapsible\";\nvar [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);\nvar [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);\nvar Collapsible = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props;\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n CollapsibleProvider,\n {\n scope: __scopeCollapsible,\n disabled,\n contentId: useId(),\n open,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(open),\n \"data-disabled\": disabled ? \"\" : void 0,\n ...collapsibleProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nCollapsible.displayName = COLLAPSIBLE_NAME;\nvar TRIGGER_NAME = \"CollapsibleTrigger\";\nvar CollapsibleTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props;\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n disabled: context.disabled,\n ...triggerProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nCollapsibleTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"CollapsibleContent\";\nvar CollapsibleContent = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });\n }\n);\nCollapsibleContent.displayName = CONTENT_NAME;\nvar CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = React.useState(present);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const heightRef = React.useRef(0);\n const height = heightRef.current;\n const widthRef = React.useRef(0);\n const width = widthRef.current;\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = React.useRef(isOpen);\n const originalStylesRef = React.useRef();\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n useLayoutEffect(() => {\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n };\n node.style.transitionDuration = \"0s\";\n node.style.animationName = \"none\";\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width;\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n }, [context.open, present]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n id: context.contentId,\n hidden: !isOpen,\n ...contentProps,\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,\n ...props.style\n },\n children: isOpen && children\n }\n );\n});\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root = Collapsible;\nvar Trigger = CollapsibleTrigger;\nvar Content = CollapsibleContent;\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n Content,\n Root,\n Trigger,\n createCollapsibleScope\n};\n//# sourceMappingURL=index.mjs.map\n","import { LoaderCircle } from \"lucide-react\";\n\nexport const Spinner = ({ size = 16 }: { size?: number }) => (\n <LoaderCircle size={size} className=\"animate-spin\" />\n);\n"],"names":["LoaderCircle","createLucideIcon","useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","handleAnimationEnd","isCurrentAnimation","ReactDOM","handleAnimationStart","node2","element","getter","_a","mayWarn","_b","COLLAPSIBLE_NAME","createCollapsibleContext","createCollapsibleScope","createContextScope","CollapsibleProvider","useCollapsibleContext","Collapsible","forwardedRef","__scopeCollapsible","openProp","defaultOpen","disabled","onOpenChange","collapsibleProps","open","setOpen","useControllableState","jsx","useId","prevOpen","Primitive","getState","TRIGGER_NAME","CollapsibleTrigger","triggerProps","context","composeEventHandlers","CONTENT_NAME","CollapsibleContent","forceMount","contentProps","CollapsibleContentImpl","isPresent","setIsPresent","composedRefs","heightRef","height","widthRef","width","isOpen","isMountAnimationPreventedRef","originalStylesRef","rAF","rect","Root","Trigger","Content","Spinner","size"],"mappings":";;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,IAAeC,EAAiB,gBAAgB;AAAA,EACpD,CAAC,QAAQ,EAAE,GAAG,+BAA+B,KAAK,SAAQ,CAAE;AAC9D,CAAC;ACDD,SAASC,EAAgBC,GAAcC,GAAS;AAC9C,SAAOC,EAAM,WAAW,CAACC,GAAOC,MACZH,EAAQE,CAAK,EAAEC,CAAK,KAClBD,GACnBH,CAAY;AACjB;AAGG,IAACK,IAAW,CAACC,MAAU;AACxB,QAAM,EAAE,SAAAC,GAAS,UAAAC,EAAU,IAAGF,GACxBG,IAAWC,EAAYH,CAAO,GAC9BI,IAAQ,OAAOH,KAAa,aAAaA,EAAS,EAAE,SAASC,EAAS,UAAS,CAAE,IAAIG,EAAO,SAAS,KAAKJ,CAAQ,GAClHK,IAAMC,EAAgB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AAU,CAAC,EAAE,MAAAC,IAAO,SAC9B/B,gBAAAA,MAAA1D,GAAA,EAAa,MAAAyF,GAAY,WAAU,eAAe,CAAA;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { c as i, P as r, g as l, H as c, L as
|
|
1
|
+
import { b as a, j as t, c as o } from "./jsx-runtime-CJZJivg2.js";
|
|
2
|
+
import { c as i, P as r, g as l, H as c, L as d } from "./Markdown-DtLFdxD1.js";
|
|
3
|
+
import { D as m } from "./index-gsAuUwQh.js";
|
|
3
4
|
import { i as x } from "./router-CBw2vqJE.js";
|
|
4
|
-
import { u
|
|
5
|
-
import { u as
|
|
5
|
+
import { u } from "./DevPortalProvider-Do9oJqme.js";
|
|
6
|
+
import { u as h } from "./state-DKdaQzvh.js";
|
|
6
7
|
/**
|
|
7
8
|
* @license lucide-react v0.378.0 - ISC
|
|
8
9
|
*
|
|
9
10
|
* This source code is licensed under the ISC license.
|
|
10
11
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
12
|
*/
|
|
12
|
-
const
|
|
13
|
+
const p = i("Unlink", [
|
|
13
14
|
[
|
|
14
15
|
"path",
|
|
15
16
|
{
|
|
@@ -28,17 +29,31 @@ const h = i("Unlink", [
|
|
|
28
29
|
["line", { x1: "2", x2: "5", y1: "8", y2: "8", key: "14m1p5" }],
|
|
29
30
|
["line", { x1: "16", x2: "16", y1: "19", y2: "22", key: "rzdirn" }],
|
|
30
31
|
["line", { x1: "19", x2: "22", y1: "16", y2: "16", key: "ox905f" }]
|
|
31
|
-
]),
|
|
32
|
-
|
|
33
|
-
/* @__PURE__ */ t.jsxs(
|
|
34
|
-
|
|
35
|
-
/* @__PURE__ */ t.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
]), g = () => {
|
|
33
|
+
const e = a();
|
|
34
|
+
return /* @__PURE__ */ t.jsxs("div", { className: r + " h-full pt-[--padding-content-top]", children: [
|
|
35
|
+
/* @__PURE__ */ t.jsx(l, { children: "404" }),
|
|
36
|
+
/* @__PURE__ */ t.jsxs(c, { level: 1, className: "flex gap-3.5 items-center", children: [
|
|
37
|
+
"Page not found",
|
|
38
|
+
/* @__PURE__ */ t.jsx(p, { size: 24 })
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ t.jsxs(m, { children: [
|
|
41
|
+
"Start by adding a file at",
|
|
42
|
+
" ",
|
|
43
|
+
/* @__PURE__ */ t.jsxs("code", { children: [
|
|
44
|
+
"{PROJECT_ROOT}",
|
|
45
|
+
"/",
|
|
46
|
+
e["*"],
|
|
47
|
+
".mdx"
|
|
48
|
+
] }),
|
|
49
|
+
" ",
|
|
50
|
+
"and add some content to make this error go away."
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ t.jsx("p", { children: "It seems that the page you are looking for does not exist or may have been moved. Please check the URL for any typos or use the navigation menu to find the correct page." }),
|
|
53
|
+
/* @__PURE__ */ t.jsx(d, { to: "/", children: "Go back home" })
|
|
54
|
+
] });
|
|
55
|
+
};
|
|
56
|
+
function f({ error: e }) {
|
|
42
57
|
const s = (e == null ? void 0 : e.message) ?? "Something went wrong", n = e == null ? void 0 : e.stack;
|
|
43
58
|
return /* @__PURE__ */ t.jsx("div", { className: "flex h-screen max-h-screen min-h-full items-center justify-center bg-primary-background px-4 py-16 lg:px-8", children: /* @__PURE__ */ t.jsxs("div", { className: "mx-auto max-w-[85%] sm:max-w-[50%]", children: [
|
|
44
59
|
/* @__PURE__ */ t.jsx("h1", { className: "text-4xl font-bold tracking-tight text-h1-text sm:text-5xl", children: "Something went wrong" }),
|
|
@@ -46,12 +61,12 @@ function g({ error: e }) {
|
|
|
46
61
|
n ? /* @__PURE__ */ t.jsx("pre", { className: "mt-5 max-h-[400px] w-full overflow-scroll rounded-md border border-input-border bg-input-background p-3 text-property-name-text text-red-700", children: n }) : null
|
|
47
62
|
] }) });
|
|
48
63
|
}
|
|
49
|
-
function
|
|
50
|
-
const e =
|
|
51
|
-
return x(e) && e.status === 404 ? /* @__PURE__ */ t.jsx(
|
|
64
|
+
function E() {
|
|
65
|
+
const e = o();
|
|
66
|
+
return x(e) && e.status === 404 ? /* @__PURE__ */ t.jsx(g, {}) : /* @__PURE__ */ t.jsx(f, { error: e });
|
|
52
67
|
}
|
|
53
|
-
const
|
|
54
|
-
const { authentication: e } =
|
|
68
|
+
const P = () => {
|
|
69
|
+
const { authentication: e } = u(), s = h(), n = typeof e < "u";
|
|
55
70
|
return {
|
|
56
71
|
isAuthEnabled: n,
|
|
57
72
|
isPending: s.isPending,
|
|
@@ -70,8 +85,8 @@ const v = () => {
|
|
|
70
85
|
};
|
|
71
86
|
};
|
|
72
87
|
export {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
88
|
+
f as E,
|
|
89
|
+
E as R,
|
|
90
|
+
P as u
|
|
76
91
|
};
|
|
77
|
-
//# sourceMappingURL=hook-
|
|
92
|
+
//# sourceMappingURL=hook-Biq3zYel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook-Biq3zYel.js","sources":["../../../node_modules/.pnpm/lucide-react@0.378.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/unlink.js","../src/lib/components/NotFoundPage.tsx","../src/lib/errors/ErrorAlert.tsx","../src/lib/errors/RouterError.tsx","../src/lib/authentication/hook.ts"],"sourcesContent":["/**\n * @license lucide-react v0.378.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Unlink = createLucideIcon(\"Unlink\", [\n [\n \"path\",\n {\n d: \"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71\",\n key: \"yqzxt4\"\n }\n ],\n [\n \"path\",\n {\n d: \"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71\",\n key: \"4qinb0\"\n }\n ],\n [\"line\", { x1: \"8\", x2: \"8\", y1: \"2\", y2: \"5\", key: \"1041cp\" }],\n [\"line\", { x1: \"2\", x2: \"5\", y1: \"8\", y2: \"8\", key: \"14m1p5\" }],\n [\"line\", { x1: \"16\", x2: \"16\", y1: \"19\", y2: \"22\", key: \"rzdirn\" }],\n [\"line\", { x1: \"19\", x2: \"22\", y1: \"16\", y2: \"16\", key: \"ox905f\" }]\n]);\n\nexport { Unlink as default };\n//# sourceMappingURL=unlink.js.map\n","import { UnlinkIcon } from \"lucide-react\";\nimport { Link, useParams } from \"react-router-dom\";\nimport { CategoryHeading } from \"./CategoryHeading.js\";\nimport { DeveloperHint } from \"./DeveloperHint.js\";\nimport { Heading } from \"./Heading.js\";\nimport { ProseClasses } from \"./Markdown.js\";\n\nexport const NotFoundPage = () => {\n const params = useParams();\n\n return (\n <div className={ProseClasses + \" h-full pt-[--padding-content-top]\"}>\n <CategoryHeading>404</CategoryHeading>\n <Heading level={1} className=\"flex gap-3.5 items-center\">\n Page not found\n <UnlinkIcon size={24} />\n </Heading>\n <DeveloperHint>\n Start by adding a file at{\" \"}\n <code>\n {\"{PROJECT_ROOT}\"}/{params[\"*\"]}.mdx\n </code>{\" \"}\n and add some content to make this error go away.\n </DeveloperHint>\n <p>\n It seems that the page you are looking for does not exist or may have\n been moved. Please check the URL for any typos or use the navigation\n menu to find the correct page.\n </p>\n <Link to=\"/\">Go back home</Link>\n </div>\n );\n};\n","// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function ErrorAlert({ error }: { error: any }) {\n const message = error?.message ?? \"Something went wrong\";\n const stack = error?.stack;\n\n return (\n <div className=\"flex h-screen max-h-screen min-h-full items-center justify-center bg-primary-background px-4 py-16 lg:px-8\">\n <div className=\"mx-auto max-w-[85%] sm:max-w-[50%]\">\n <h1 className=\"text-4xl font-bold tracking-tight text-h1-text sm:text-5xl\">\n Something went wrong\n </h1>\n <p className=\"mt-5 text-h1-text\">{message}</p>\n {stack ? (\n <pre className=\"mt-5 max-h-[400px] w-full overflow-scroll rounded-md border border-input-border bg-input-background p-3 text-property-name-text text-red-700\">\n {stack}\n </pre>\n ) : null}\n </div>\n </div>\n );\n}\n","import { isRouteErrorResponse, useRouteError } from \"react-router-dom\";\nimport { NotFoundPage } from \"../components/NotFoundPage.js\";\nimport { ErrorAlert } from \"./ErrorAlert.js\";\n\nexport function RouterError() {\n const error = useRouteError();\n\n if (isRouteErrorResponse(error) && error.status === 404) {\n return <NotFoundPage />;\n }\n\n return <ErrorAlert error={error} />;\n}\n","import { useDevPortal } from \"../components/context/DevPortalProvider.js\";\nimport { useAuthState } from \"./state.js\";\n\nexport const useAuth = () => {\n const { authentication } = useDevPortal();\n const authState = useAuthState();\n const isAuthEnabled = typeof authentication !== \"undefined\";\n\n return {\n isAuthEnabled,\n isPending: authState.isPending,\n profile: authState.profile,\n isAuthenticated: authState.profile,\n\n login: async () => {\n if (!isAuthEnabled) {\n throw new Error(\"Authentication is not enabled.\");\n }\n // TODO: Should handle errors/state\n await authentication.login();\n },\n\n logout: async () => {\n if (!isAuthEnabled) {\n throw new Error(\"Authentication is not enabled.\");\n }\n // TODO: Should handle errors/state\n await authentication.logout();\n\n // Redirect to home\n window.location.href = \"/\";\n },\n };\n};\n"],"names":["Unlink","createLucideIcon","NotFoundPage","params","useParams","jsxs","ProseClasses","jsx","CategoryHeading","Heading","UnlinkIcon","DeveloperHint","Link","ErrorAlert","error","message","stack","RouterError","useRouteError","isRouteErrorResponse","useAuth","authentication","useDevPortal","authState","useAuthState","isAuthEnabled"],"mappings":";;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,IAASC,EAAiB,UAAU;AAAA,EACxC;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IACN;AAAA,EACF;AAAA,EACD;AAAA,IACE;AA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;AAC9C,QAAAC,KAAUD,KAAA,gBAAAA,EAAO,YAAW,wBAC5BE,IAAQF,KAAA,gBAAAA,EAAO;AAErB,+BACG,OAAI,EAAA,WAAU,8GACb,UAACT,gBAAAA,EAAA,KAAA,OAAA,EAAI,WAAU,sCACb,UAAA;AAAA,IAACE,gBAAAA,EAAA,IAAA,MAAA,EAAG,WAAU,8DAA6D,UAE3E,wBAAA;AAAA,IACCA,gBAAAA,EAAA,IAAA,KAAA,EAAE,WAAU,qBAAqB,UAAQQ,GAAA;AAAA,IACzCC,IACET,gBAAAA,EAAAA,IAAA,OAAA,EAAI,WAAU,gJACZ,YACH,CAAA,IACE;AAAA,EAAA,EACN,CAAA,EACF,CAAA;AAEJ;AChBO,SAASU,IAAc;AAC5B,QAAMH,IAAQI;AAEd,SAAIC,EAAqBL,CAAK,KAAKA,EAAM,WAAW,4BAC1CZ,GAAa,CAAA,CAAA,IAGhBK,gBAAAA,MAACM,KAAW,OAAAC,EAAc,CAAA;AACnC;ACTO,MAAMM,IAAU,MAAM;AACrB,QAAA,EAAE,gBAAAC,MAAmBC,KACrBC,IAAYC,KACZC,IAAgB,OAAOJ,IAAmB;AAEzC,SAAA;AAAA,IACL,eAAAI;AAAA,IACA,WAAWF,EAAU;AAAA,IACrB,SAASA,EAAU;AAAA,IACnB,iBAAiBA,EAAU;AAAA,IAE3B,OAAO,YAAY;AACjB,UAAI,CAACE;AACG,cAAA,IAAI,MAAM,gCAAgC;AAGlD,YAAMJ,EAAe;IACvB;AAAA,IAEA,QAAQ,YAAY;AAClB,UAAI,CAACI;AACG,cAAA,IAAI,MAAM,gCAAgC;AAGlD,YAAMJ,EAAe,UAGrB,OAAO,SAAS,OAAO;AAAA,IACzB;AAAA,EAAA;AAEJ;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as n, c as k } from "./jsx-runtime-CJZJivg2.js";
|
|
2
|
-
import { e as r, P as o, g as u, H as c, L as p, S as v } from "./Markdown-
|
|
3
|
-
import { C as N, c as y, f as F } from "./urql-
|
|
2
|
+
import { e as r, P as o, g as u, H as c, L as p, S as v } from "./Markdown-DtLFdxD1.js";
|
|
3
|
+
import { C as N, c as y, f as F } from "./urql-DMlBWUKL.js";
|
|
4
4
|
import { createClient as S } from "zudoku/openapi-worker";
|
|
5
5
|
import { m as g } from "./router-CBw2vqJE.js";
|
|
6
6
|
const I = {
|
|
@@ -663,16 +663,16 @@ const j = ({
|
|
|
663
663
|
getNavigation: async (i) => {
|
|
664
664
|
if (!g({ path: d, end: !1 }, i))
|
|
665
665
|
return [];
|
|
666
|
-
const { data:
|
|
666
|
+
const { data: m } = await t.query(q, {
|
|
667
667
|
input: e.input,
|
|
668
668
|
type: e.type
|
|
669
669
|
});
|
|
670
|
-
if (!
|
|
671
|
-
const s =
|
|
670
|
+
if (!m) return [];
|
|
671
|
+
const s = m.schema.tags.filter((l) => l.operations.length > 0).map((l) => ({
|
|
672
672
|
path: i,
|
|
673
|
-
label:
|
|
673
|
+
label: l.name ?? "",
|
|
674
674
|
collapsible: !1,
|
|
675
|
-
children:
|
|
675
|
+
children: l.operations.map((a) => ({
|
|
676
676
|
path: `#${a.slug}`,
|
|
677
677
|
muted: !!a.deprecated,
|
|
678
678
|
title: a.summary ?? a.path,
|
|
@@ -692,7 +692,7 @@ const j = ({
|
|
|
692
692
|
getRoutes: () => [
|
|
693
693
|
{
|
|
694
694
|
async lazy() {
|
|
695
|
-
const { OpenApiRoute: i } = await import("./Route-
|
|
695
|
+
const { OpenApiRoute: i } = await import("./Route-C1LyvITr.js");
|
|
696
696
|
return {
|
|
697
697
|
element: /* @__PURE__ */ n.jsx(i, { client: t, config: e })
|
|
698
698
|
};
|
|
@@ -705,7 +705,7 @@ const j = ({
|
|
|
705
705
|
{
|
|
706
706
|
index: !0,
|
|
707
707
|
async lazy() {
|
|
708
|
-
const { OperationList: i } = await import("./OperationList-
|
|
708
|
+
const { OperationList: i } = await import("./OperationList-DpR4KzIJ.js");
|
|
709
709
|
return { element: /* @__PURE__ */ n.jsx(i, {}) };
|
|
710
710
|
}
|
|
711
711
|
}
|
|
@@ -722,4 +722,4 @@ export {
|
|
|
722
722
|
V as g,
|
|
723
723
|
M as o
|
|
724
724
|
};
|
|
725
|
-
//# sourceMappingURL=index-
|
|
725
|
+
//# sourceMappingURL=index-DZ910ttL.js.map
|