zudoku 0.13.5 → 0.13.6
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/lib/authentication/components/CallbackHandler.js +21 -31
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.d.ts +1 -1
- package/dist/lib/errors/ErrorAlert.js +8 -3
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/util/invariant.d.ts +9 -0
- package/dist/lib/util/invariant.js +7 -3
- package/dist/lib/util/invariant.js.map +1 -1
- package/lib/{AuthenticationPlugin-D1nhROkO.js → AuthenticationPlugin-tBvLKsFg.js} +3 -3
- package/lib/{AuthenticationPlugin-D1nhROkO.js.map → AuthenticationPlugin-tBvLKsFg.js.map} +1 -1
- package/lib/{CategoryHeading-B7TlPvuN.js → CategoryHeading-D2WS6sRI.js} +2 -2
- package/lib/{CategoryHeading-B7TlPvuN.js.map → CategoryHeading-D2WS6sRI.js.map} +1 -1
- package/lib/{DeveloperHint-B_QCCafl.js → DeveloperHint-CRiZjqd2.js} +2 -2
- package/lib/{DeveloperHint-B_QCCafl.js.map → DeveloperHint-CRiZjqd2.js.map} +1 -1
- package/lib/{Input-DrR6P3mq.js → Input-CO-1DOZa.js} +4 -4
- package/lib/{Input-DrR6P3mq.js.map → Input-CO-1DOZa.js.map} +1 -1
- package/lib/{Markdown-Y__eLG0x.js → Markdown-DM4zv3MA.js} +9 -8
- package/lib/{Markdown-Y__eLG0x.js.map → Markdown-DM4zv3MA.js.map} +1 -1
- package/lib/{MdxPage-B4FcPIi5.js → MdxPage-tWI_P8wP.js} +6 -6
- package/lib/{MdxPage-B4FcPIi5.js.map → MdxPage-tWI_P8wP.js.map} +1 -1
- package/lib/{OperationList-C2jKCTwZ.js → OperationList-Cd3lue0b.js} +11 -12
- package/lib/{OperationList-C2jKCTwZ.js.map → OperationList-Cd3lue0b.js.map} +1 -1
- package/lib/{Route-DWXcQzRK.js → Route-DI0Y0pIV.js} +3 -3
- package/lib/{Route-DWXcQzRK.js.map → Route-DI0Y0pIV.js.map} +1 -1
- package/lib/SlotletProvider-CBqY8mp6.js +241 -0
- package/lib/SlotletProvider-CBqY8mp6.js.map +1 -0
- package/lib/{SidebarBadge-C0iWtji9.js → Spinner-DFQhPMBl.js} +60 -58
- package/lib/Spinner-DFQhPMBl.js.map +1 -0
- package/lib/{ZudokuContext-MRoel6bS.js → ZudokuContext-DEoP3GGJ.js} +2 -2
- package/lib/{ZudokuContext-MRoel6bS.js.map → ZudokuContext-DEoP3GGJ.js.map} +1 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +29 -0
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +1 -0
- package/lib/index-Bn6Lc9tq.js +9 -0
- package/lib/{index-DJqnphbT.js.map → index-Bn6Lc9tq.js.map} +1 -1
- package/lib/{index-Dso_b0di.js → index-Bs9roz8y.js} +518 -510
- package/lib/index-Bs9roz8y.js.map +1 -0
- package/lib/{index-Ch8VO_uX.js → index-CBr6BM_4.js} +12 -12
- package/lib/{index-Ch8VO_uX.js.map → index-CBr6BM_4.js.map} +1 -1
- package/lib/{index-DFN92YJN.js → index-CRo94sKK.js} +5 -4
- package/lib/{index-DFN92YJN.js.map → index-CRo94sKK.js.map} +1 -1
- package/lib/{index-D06ATMgg.js → index-LNp6rxyU.js} +2 -2
- package/lib/{index-D06ATMgg.js.map → index-LNp6rxyU.js.map} +1 -1
- package/lib/{index-bYAqbdYl.js → index-UUT9q9f9.js} +3 -3
- package/lib/{index-bYAqbdYl.js.map → index-UUT9q9f9.js.map} +1 -1
- package/lib/invariant-Caa8-XvF.js +26 -0
- package/lib/invariant-Caa8-XvF.js.map +1 -0
- package/lib/{useExposedProps-BWwxa-Hg.js → useExposedProps-B9K-9GTc.js} +2 -2
- package/lib/{useExposedProps-BWwxa-Hg.js.map → useExposedProps-B9K-9GTc.js.map} +1 -1
- package/lib/{utils-C8S3st2k.js → utils-G5XSiZc9.js} +4 -4
- package/lib/{utils-C8S3st2k.js.map → utils-G5XSiZc9.js.map} +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +477 -483
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +26 -27
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +2 -2
- package/lib/zudoku.plugin-api-keys.js +60 -70
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -7
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
- package/src/lib/errors/ErrorAlert.tsx +18 -5
- package/src/lib/util/invariant.ts +15 -3
- package/lib/ErrorPage-DqqAV1dr.js +0 -16
- package/lib/ErrorPage-DqqAV1dr.js.map +0 -1
- package/lib/SidebarBadge-C0iWtji9.js.map +0 -1
- package/lib/SlotletProvider-DmqWiVFt.js +0 -239
- package/lib/SlotletProvider-DmqWiVFt.js.map +0 -1
- package/lib/Spinner-3cQDBVGr.js +0 -7
- package/lib/Spinner-3cQDBVGr.js.map +0 -1
- package/lib/index-DJqnphbT.js +0 -35
- package/lib/index-Dso_b0di.js.map +0 -1
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { j as s } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
+
import { UnlinkIcon as fe } from "lucide-react";
|
|
3
|
+
import { c as le, L as me, d as de } from "./index-CRo94sKK.js";
|
|
4
|
+
import { C as pe } from "./CategoryHeading-D2WS6sRI.js";
|
|
5
|
+
import { D as L } from "./DeveloperHint-CRiZjqd2.js";
|
|
6
|
+
import { P as Ee, H as ve } from "./Markdown-DM4zv3MA.js";
|
|
7
|
+
import { Z as w } from "./invariant-Caa8-XvF.js";
|
|
8
|
+
import { c as xe } from "./router-BsfSoK2j.js";
|
|
9
|
+
import N, { useContext as ye } from "react";
|
|
10
|
+
import { u as Se } from "./useExposedProps-B9K-9GTc.js";
|
|
11
|
+
const be = () => {
|
|
12
|
+
const n = le();
|
|
13
|
+
return /* @__PURE__ */ s.jsxs("div", { className: Ee + " h-full pt-[--padding-content-top]", children: [
|
|
14
|
+
/* @__PURE__ */ s.jsx(pe, { children: "404" }),
|
|
15
|
+
/* @__PURE__ */ s.jsxs(ve, { level: 1, className: "flex gap-3.5 items-center", children: [
|
|
16
|
+
"Page not found",
|
|
17
|
+
/* @__PURE__ */ s.jsx(fe, { size: 24 })
|
|
18
|
+
] }),
|
|
19
|
+
/* @__PURE__ */ s.jsxs(L, { children: [
|
|
20
|
+
"Start by adding a file at",
|
|
21
|
+
" ",
|
|
22
|
+
/* @__PURE__ */ s.jsxs("code", { children: [
|
|
23
|
+
"{PROJECT_ROOT}",
|
|
24
|
+
"/",
|
|
25
|
+
n["*"],
|
|
26
|
+
".mdx"
|
|
27
|
+
] }),
|
|
28
|
+
" ",
|
|
29
|
+
"and add some content to make this error go away."
|
|
30
|
+
] }),
|
|
31
|
+
/* @__PURE__ */ s.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." }),
|
|
32
|
+
/* @__PURE__ */ s.jsx(me, { to: "/", children: "Go back home" })
|
|
33
|
+
] });
|
|
34
|
+
};
|
|
35
|
+
function Re({ error: n }) {
|
|
36
|
+
const i = n instanceof Error ? n.message : "Something went wrong", a = n instanceof w ? n.developerHint : void 0, u = n instanceof w ? n.title : "Something went wrong", f = n instanceof Error ? n.stack : void 0, l = n instanceof Error ? n.cause : void 0;
|
|
37
|
+
return /* @__PURE__ */ s.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__ */ s.jsxs("div", { className: "mx-auto max-w-[85%] sm:max-w-[50%]", children: [
|
|
38
|
+
/* @__PURE__ */ s.jsx("h1", { className: "text-4xl font-bold tracking-tight text-h1-text sm:text-5xl", children: u }),
|
|
39
|
+
/* @__PURE__ */ s.jsx("p", { className: "mt-5 text-h1-text", children: i }),
|
|
40
|
+
a && /* @__PURE__ */ s.jsx(L, { className: "mb-4", children: a }),
|
|
41
|
+
l instanceof Error ? /* @__PURE__ */ s.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: l.stack }) : f ? /* @__PURE__ */ s.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: f }) : null
|
|
42
|
+
] }) });
|
|
43
|
+
}
|
|
44
|
+
function Ie() {
|
|
45
|
+
const n = de();
|
|
46
|
+
return xe(n) && n.status === 404 ? /* @__PURE__ */ s.jsx(be, {}) : /* @__PURE__ */ s.jsx(Re, { error: n });
|
|
47
|
+
}
|
|
48
|
+
var P = { exports: {} }, t = {};
|
|
49
|
+
/**
|
|
50
|
+
* @license React
|
|
51
|
+
* react-is.production.min.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/
|
|
58
|
+
var A;
|
|
59
|
+
function _e() {
|
|
60
|
+
if (A) return t;
|
|
61
|
+
A = 1;
|
|
62
|
+
var n = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), _ = Symbol.for("react.server_context"), p = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b;
|
|
63
|
+
b = Symbol.for("react.module.reference");
|
|
64
|
+
function c(e) {
|
|
65
|
+
if (typeof e == "object" && e !== null) {
|
|
66
|
+
var S = e.$$typeof;
|
|
67
|
+
switch (S) {
|
|
68
|
+
case n:
|
|
69
|
+
switch (e = e.type, e) {
|
|
70
|
+
case a:
|
|
71
|
+
case f:
|
|
72
|
+
case u:
|
|
73
|
+
case E:
|
|
74
|
+
case v:
|
|
75
|
+
return e;
|
|
76
|
+
default:
|
|
77
|
+
switch (e = e && e.$$typeof, e) {
|
|
78
|
+
case _:
|
|
79
|
+
case d:
|
|
80
|
+
case p:
|
|
81
|
+
case y:
|
|
82
|
+
case x:
|
|
83
|
+
case l:
|
|
84
|
+
return e;
|
|
85
|
+
default:
|
|
86
|
+
return S;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
case i:
|
|
90
|
+
return S;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return t.ContextConsumer = d, t.ContextProvider = l, t.Element = n, t.ForwardRef = p, t.Fragment = a, t.Lazy = y, t.Memo = x, t.Portal = i, t.Profiler = f, t.StrictMode = u, t.Suspense = E, t.SuspenseList = v, t.isAsyncMode = function() {
|
|
95
|
+
return !1;
|
|
96
|
+
}, t.isConcurrentMode = function() {
|
|
97
|
+
return !1;
|
|
98
|
+
}, t.isContextConsumer = function(e) {
|
|
99
|
+
return c(e) === d;
|
|
100
|
+
}, t.isContextProvider = function(e) {
|
|
101
|
+
return c(e) === l;
|
|
102
|
+
}, t.isElement = function(e) {
|
|
103
|
+
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
104
|
+
}, t.isForwardRef = function(e) {
|
|
105
|
+
return c(e) === p;
|
|
106
|
+
}, t.isFragment = function(e) {
|
|
107
|
+
return c(e) === a;
|
|
108
|
+
}, t.isLazy = function(e) {
|
|
109
|
+
return c(e) === y;
|
|
110
|
+
}, t.isMemo = function(e) {
|
|
111
|
+
return c(e) === x;
|
|
112
|
+
}, t.isPortal = function(e) {
|
|
113
|
+
return c(e) === i;
|
|
114
|
+
}, t.isProfiler = function(e) {
|
|
115
|
+
return c(e) === f;
|
|
116
|
+
}, t.isStrictMode = function(e) {
|
|
117
|
+
return c(e) === u;
|
|
118
|
+
}, t.isSuspense = function(e) {
|
|
119
|
+
return c(e) === E;
|
|
120
|
+
}, t.isSuspenseList = function(e) {
|
|
121
|
+
return c(e) === v;
|
|
122
|
+
}, t.isValidElementType = function(e) {
|
|
123
|
+
return typeof e == "string" || typeof e == "function" || e === a || e === f || e === u || e === E || e === v || e === h || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === x || e.$$typeof === l || e.$$typeof === d || e.$$typeof === p || e.$$typeof === b || e.getModuleId !== void 0);
|
|
124
|
+
}, t.typeOf = c, t;
|
|
125
|
+
}
|
|
126
|
+
var o = {};
|
|
127
|
+
/**
|
|
128
|
+
* @license React
|
|
129
|
+
* react-is.development.js
|
|
130
|
+
*
|
|
131
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the MIT license found in the
|
|
134
|
+
* LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/
|
|
136
|
+
var j;
|
|
137
|
+
function he() {
|
|
138
|
+
return j || (j = 1, process.env.NODE_ENV !== "production" && function() {
|
|
139
|
+
var n = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), _ = Symbol.for("react.server_context"), p = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b = !1, c = !1, e = !1, S = !1, F = !1, T;
|
|
140
|
+
T = Symbol.for("react.module.reference");
|
|
141
|
+
function O(r) {
|
|
142
|
+
return !!(typeof r == "string" || typeof r == "function" || r === a || r === f || F || r === u || r === E || r === v || S || r === h || b || c || e || typeof r == "object" && r !== null && (r.$$typeof === y || r.$$typeof === x || r.$$typeof === l || r.$$typeof === d || r.$$typeof === p || // This needs to include all possible module reference object
|
|
143
|
+
// types supported by any Flight configuration anywhere since
|
|
144
|
+
// we don't know which Flight build this will end up being used
|
|
145
|
+
// with.
|
|
146
|
+
r.$$typeof === T || r.getModuleId !== void 0));
|
|
147
|
+
}
|
|
148
|
+
function m(r) {
|
|
149
|
+
if (typeof r == "object" && r !== null) {
|
|
150
|
+
var C = r.$$typeof;
|
|
151
|
+
switch (C) {
|
|
152
|
+
case n:
|
|
153
|
+
var R = r.type;
|
|
154
|
+
switch (R) {
|
|
155
|
+
case a:
|
|
156
|
+
case f:
|
|
157
|
+
case u:
|
|
158
|
+
case E:
|
|
159
|
+
case v:
|
|
160
|
+
return R;
|
|
161
|
+
default:
|
|
162
|
+
var $ = R && R.$$typeof;
|
|
163
|
+
switch ($) {
|
|
164
|
+
case _:
|
|
165
|
+
case d:
|
|
166
|
+
case p:
|
|
167
|
+
case y:
|
|
168
|
+
case x:
|
|
169
|
+
case l:
|
|
170
|
+
return $;
|
|
171
|
+
default:
|
|
172
|
+
return C;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
case i:
|
|
176
|
+
return C;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
var k = d, Y = l, D = n, z = p, V = a, H = y, q = x, U = i, W = f, Z = u, G = E, X = v, g = !1, M = !1;
|
|
181
|
+
function J(r) {
|
|
182
|
+
return g || (g = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
183
|
+
}
|
|
184
|
+
function B(r) {
|
|
185
|
+
return M || (M = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
186
|
+
}
|
|
187
|
+
function K(r) {
|
|
188
|
+
return m(r) === d;
|
|
189
|
+
}
|
|
190
|
+
function Q(r) {
|
|
191
|
+
return m(r) === l;
|
|
192
|
+
}
|
|
193
|
+
function ee(r) {
|
|
194
|
+
return typeof r == "object" && r !== null && r.$$typeof === n;
|
|
195
|
+
}
|
|
196
|
+
function re(r) {
|
|
197
|
+
return m(r) === p;
|
|
198
|
+
}
|
|
199
|
+
function te(r) {
|
|
200
|
+
return m(r) === a;
|
|
201
|
+
}
|
|
202
|
+
function oe(r) {
|
|
203
|
+
return m(r) === y;
|
|
204
|
+
}
|
|
205
|
+
function ne(r) {
|
|
206
|
+
return m(r) === x;
|
|
207
|
+
}
|
|
208
|
+
function se(r) {
|
|
209
|
+
return m(r) === i;
|
|
210
|
+
}
|
|
211
|
+
function ae(r) {
|
|
212
|
+
return m(r) === f;
|
|
213
|
+
}
|
|
214
|
+
function ie(r) {
|
|
215
|
+
return m(r) === u;
|
|
216
|
+
}
|
|
217
|
+
function ce(r) {
|
|
218
|
+
return m(r) === E;
|
|
219
|
+
}
|
|
220
|
+
function ue(r) {
|
|
221
|
+
return m(r) === v;
|
|
222
|
+
}
|
|
223
|
+
o.ContextConsumer = k, o.ContextProvider = Y, o.Element = D, o.ForwardRef = z, o.Fragment = V, o.Lazy = H, o.Memo = q, o.Portal = U, o.Profiler = W, o.StrictMode = Z, o.Suspense = G, o.SuspenseList = X, o.isAsyncMode = J, o.isConcurrentMode = B, o.isContextConsumer = K, o.isContextProvider = Q, o.isElement = ee, o.isForwardRef = re, o.isFragment = te, o.isLazy = oe, o.isMemo = ne, o.isPortal = se, o.isProfiler = ae, o.isStrictMode = ie, o.isSuspense = ce, o.isSuspenseList = ue, o.isValidElementType = O, o.typeOf = m;
|
|
224
|
+
}()), o;
|
|
225
|
+
}
|
|
226
|
+
process.env.NODE_ENV === "production" ? P.exports = _e() : P.exports = he();
|
|
227
|
+
var Ce = P.exports;
|
|
228
|
+
const I = N.createContext({}), Fe = ({
|
|
229
|
+
slotlets: n,
|
|
230
|
+
children: i
|
|
231
|
+
}) => /* @__PURE__ */ s.jsx(I.Provider, { value: n, children: i }), Oe = ({ name: n }) => {
|
|
232
|
+
const i = ye(I), a = i == null ? void 0 : i[n], u = Se();
|
|
233
|
+
return Ce.isValidElementType(a) ? N.createElement(a, u) : a;
|
|
234
|
+
};
|
|
235
|
+
export {
|
|
236
|
+
Re as E,
|
|
237
|
+
Ie as R,
|
|
238
|
+
Oe as S,
|
|
239
|
+
Fe as a
|
|
240
|
+
};
|
|
241
|
+
//# sourceMappingURL=SlotletProvider-CBqY8mp6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlotletProvider-CBqY8mp6.js","sources":["../src/lib/components/NotFoundPage.tsx","../src/lib/errors/ErrorAlert.tsx","../src/lib/errors/RouterError.tsx","../../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/index.js","../src/lib/components/SlotletProvider.tsx"],"sourcesContent":["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\nimport { DeveloperHint } from \"../components/DeveloperHint.js\";\nimport { ZudokuError } from \"../util/invariant.js\";\n\nexport function ErrorAlert({ error }: { error: unknown }) {\n const message =\n error instanceof Error ? error.message : \"Something went wrong\";\n const hint = error instanceof ZudokuError ? error.developerHint : undefined;\n const title =\n error instanceof ZudokuError ? error.title : \"Something went wrong\";\n const stack = error instanceof Error ? error.stack : undefined;\n const cause = error instanceof Error ? error.cause : undefined;\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 {title}\n </h1>\n <p className=\"mt-5 text-h1-text\">{message}</p>\n {hint && <DeveloperHint className=\"mb-4\">{hint}</DeveloperHint>}\n {cause instanceof Error ? (\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 {cause.stack}\n </pre>\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","/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\nfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}exports.ContextConsumer=h;exports.ContextProvider=g;exports.Element=b;exports.ForwardRef=l;exports.Fragment=d;exports.Lazy=q;exports.Memo=p;exports.Portal=c;exports.Profiler=f;exports.StrictMode=e;exports.Suspense=m;\nexports.SuspenseList=n;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};exports.isContextProvider=function(a){return v(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return v(a)===l};exports.isFragment=function(a){return v(a)===d};exports.isLazy=function(a){return v(a)===q};exports.isMemo=function(a){return v(a)===p};\nexports.isPortal=function(a){return v(a)===c};exports.isProfiler=function(a){return v(a)===f};exports.isStrictMode=function(a){return v(a)===e};exports.isSuspense=function(a){return v(a)===m};exports.isSuspenseList=function(a){return v(a)===n};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};exports.typeOf=v;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_SERVER_CONTEXT_TYPE:\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n}\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\nvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isConcurrentMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\nfunction isSuspenseList(object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n}\n\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.SuspenseList = SuspenseList;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isSuspenseList = isSuspenseList;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import React, {\n type ComponentType,\n type ReactElement,\n ReactNode,\n useContext,\n} from \"react\";\nimport { isValidElementType } from \"react-is\";\nimport {\n type Location,\n type NavigateFunction,\n type SetURLSearchParams,\n} from \"react-router-dom\";\nimport { useExposedProps } from \"../util/useExposedProps.js\";\n\nexport type Slotlets = Record<\n string,\n ReactNode | ReactElement | ComponentType<ExposedComponentProps>\n>;\n\nconst SlotletContext = React.createContext<Slotlets | undefined>({});\n\nexport const SlotletProvider = ({\n slotlets,\n children,\n}: {\n children: ReactNode;\n slotlets?: Slotlets;\n}) => {\n return (\n <SlotletContext.Provider value={slotlets}>\n {children}\n </SlotletContext.Provider>\n );\n};\n\nexport type ExposedComponentProps = {\n location: Location;\n navigate: NavigateFunction;\n searchParams: URLSearchParams;\n setSearchParams: SetURLSearchParams;\n};\n\nexport const Slotlet = ({ name }: { name: string }) => {\n const context = useContext(SlotletContext);\n const componentOrElement = context?.[name];\n const slotletProps = useExposedProps();\n\n if (isValidElementType(componentOrElement)) {\n return React.createElement(componentOrElement, slotletProps);\n }\n\n return componentOrElement as ReactNode;\n};\n"],"names":["NotFoundPage","params","useParams","jsxs","ProseClasses","jsx","CategoryHeading","Heading","UnlinkIcon","DeveloperHint","Link","ErrorAlert","error","message","hint","ZudokuError","title","stack","cause","RouterError","useRouteError","isRouteErrorResponse","b","c","d","e","g","h","k","l","m","n","p","q","t","u","v","a","r","reactIs_production_min","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_SERVER_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","type","typeOf","object","$$typeof","$$typeofType","ContextConsumer","ContextProvider","Element","ForwardRef","Fragment","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","SuspenseList","hasWarnedAboutDeprecatedIsAsyncMode","hasWarnedAboutDeprecatedIsConcurrentMode","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","reactIs_development","reactIsModule","require$$0","require$$1","SlotletContext","React","SlotletProvider","slotlets","children","Slotlet","name","context","useContext","componentOrElement","slotletProps","useExposedProps"],"mappings":";;;;;;;;;;AAOO,MAAMA,KAAe,MAAM;AAChC,QAAMC,IAASC;AAEf,SACGC,gBAAAA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@@ -1,17 +1,18 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { d as T, e as $,
|
|
2
|
+
import { d as T, e as $, g as be, h as De, i as Ie, u as V, j as Ce, P as y, b as R, a as _, c as Ne, R as Ee, S as ye, k as he, l as Te, F as Ae, D as _e, m as Fe, n as we } from "./index-CBr6BM_4.js";
|
|
3
3
|
import { j as i } from "./jsx-runtime-B6kdoens.js";
|
|
4
|
-
import { a as Oe } from "./Markdown-
|
|
5
|
-
|
|
4
|
+
import { a as Oe } from "./Markdown-DM4zv3MA.js";
|
|
5
|
+
import { LoaderCircle as Pe } from "lucide-react";
|
|
6
|
+
function Se(e, t) {
|
|
6
7
|
return s.useReducer((o, n) => t[o][n] ?? o, e);
|
|
7
8
|
}
|
|
8
9
|
var w = (e) => {
|
|
9
|
-
const { present: t, children: o } = e, n =
|
|
10
|
+
const { present: t, children: o } = e, n = Me(t), r = typeof o == "function" ? o({ present: n.isPresent }) : s.Children.only(o), a = T(n.ref, je(r));
|
|
10
11
|
return typeof o == "function" || n.isPresent ? s.cloneElement(r, { ref: a }) : null;
|
|
11
12
|
};
|
|
12
13
|
w.displayName = "Presence";
|
|
13
|
-
function
|
|
14
|
-
const [t, o] = s.useState(), n = s.useRef({}), r = s.useRef(e), a = s.useRef("none"), u = e ? "mounted" : "unmounted", [d, l] =
|
|
14
|
+
function Me(e) {
|
|
15
|
+
const [t, o] = s.useState(), n = s.useRef({}), r = s.useRef(e), a = s.useRef("none"), u = e ? "mounted" : "unmounted", [d, l] = Se(u, {
|
|
15
16
|
mounted: {
|
|
16
17
|
UNMOUNT: "unmounted",
|
|
17
18
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -62,19 +63,19 @@ function Se(e) {
|
|
|
62
63
|
function A(e) {
|
|
63
64
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function je(e) {
|
|
66
67
|
var n, r;
|
|
67
68
|
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
68
69
|
return o ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
69
70
|
}
|
|
70
|
-
var j = "rovingFocusGroup.onEntryFocus",
|
|
71
|
+
var j = "rovingFocusGroup.onEntryFocus", ke = { bubbles: !1, cancelable: !0 }, O = "RovingFocusGroup", [k, Y, Le] = be(O), [Ge, it] = De(
|
|
71
72
|
O,
|
|
72
|
-
[
|
|
73
|
-
), [
|
|
74
|
-
(e, t) => /* @__PURE__ */ i.jsx(k.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ i.jsx(k.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ i.jsx(
|
|
73
|
+
[Le]
|
|
74
|
+
), [Ue, We] = Ge(O), H = s.forwardRef(
|
|
75
|
+
(e, t) => /* @__PURE__ */ i.jsx(k.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ i.jsx(k.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ i.jsx(Ke, { ...e, ref: t }) }) })
|
|
75
76
|
);
|
|
76
77
|
H.displayName = O;
|
|
77
|
-
var
|
|
78
|
+
var Ke = s.forwardRef((e, t) => {
|
|
78
79
|
const {
|
|
79
80
|
__scopeRovingFocusGroup: o,
|
|
80
81
|
orientation: n,
|
|
@@ -96,7 +97,7 @@ var We = s.forwardRef((e, t) => {
|
|
|
96
97
|
if (p)
|
|
97
98
|
return p.addEventListener(j, P), () => p.removeEventListener(j, P);
|
|
98
99
|
}, [P]), /* @__PURE__ */ i.jsx(
|
|
99
|
-
|
|
100
|
+
Ue,
|
|
100
101
|
{
|
|
101
102
|
scope: o,
|
|
102
103
|
orientation: n,
|
|
@@ -130,7 +131,7 @@ var We = s.forwardRef((e, t) => {
|
|
|
130
131
|
onFocus: R(e.onFocus, (p) => {
|
|
131
132
|
const me = !S.current;
|
|
132
133
|
if (p.target === p.currentTarget && me && !I) {
|
|
133
|
-
const B = new CustomEvent(j,
|
|
134
|
+
const B = new CustomEvent(j, ke);
|
|
134
135
|
if (p.currentTarget.dispatchEvent(B), !B.defaultPrevented) {
|
|
135
136
|
const M = ge().filter((N) => N.focusable), ve = M.find((N) => N.active), Re = M.find((N) => N.id === D), xe = [ve, Re, ...M].filter(
|
|
136
137
|
Boolean
|
|
@@ -153,7 +154,7 @@ var We = s.forwardRef((e, t) => {
|
|
|
153
154
|
active: r = !1,
|
|
154
155
|
tabStopId: a,
|
|
155
156
|
...u
|
|
156
|
-
} = e, d = _(), l = a || d, c =
|
|
157
|
+
} = e, d = _(), l = a || d, c = We(z, o), g = c.currentTabStopId === l, v = Y(o), { onFocusableItemAdd: b, onFocusableItemRemove: m } = c;
|
|
157
158
|
return s.useEffect(() => {
|
|
158
159
|
if (n)
|
|
159
160
|
return b(), () => m();
|
|
@@ -181,7 +182,7 @@ var We = s.forwardRef((e, t) => {
|
|
|
181
182
|
return;
|
|
182
183
|
}
|
|
183
184
|
if (f.target !== f.currentTarget) return;
|
|
184
|
-
const D =
|
|
185
|
+
const D = Ve(f, c.orientation, c.dir);
|
|
185
186
|
if (D !== void 0) {
|
|
186
187
|
if (f.metaKey || f.ctrlKey || f.altKey || f.shiftKey) return;
|
|
187
188
|
f.preventDefault();
|
|
@@ -190,7 +191,7 @@ var We = s.forwardRef((e, t) => {
|
|
|
190
191
|
else if (D === "prev" || D === "next") {
|
|
191
192
|
D === "prev" && I.reverse();
|
|
192
193
|
const C = I.indexOf(f.currentTarget);
|
|
193
|
-
I = c.loop ?
|
|
194
|
+
I = c.loop ? Ye(I, C + 1) : I.slice(C + 1);
|
|
194
195
|
}
|
|
195
196
|
setTimeout(() => Z(I));
|
|
196
197
|
}
|
|
@@ -202,7 +203,7 @@ var We = s.forwardRef((e, t) => {
|
|
|
202
203
|
}
|
|
203
204
|
);
|
|
204
205
|
q.displayName = z;
|
|
205
|
-
var
|
|
206
|
+
var Be = {
|
|
206
207
|
ArrowLeft: "prev",
|
|
207
208
|
ArrowUp: "prev",
|
|
208
209
|
ArrowRight: "next",
|
|
@@ -212,23 +213,23 @@ var Ke = {
|
|
|
212
213
|
PageDown: "last",
|
|
213
214
|
End: "last"
|
|
214
215
|
};
|
|
215
|
-
function
|
|
216
|
+
function $e(e, t) {
|
|
216
217
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
217
218
|
}
|
|
218
|
-
function
|
|
219
|
-
const n =
|
|
219
|
+
function Ve(e, t, o) {
|
|
220
|
+
const n = $e(e.key, o);
|
|
220
221
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(n)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(n)))
|
|
221
|
-
return
|
|
222
|
+
return Be[n];
|
|
222
223
|
}
|
|
223
224
|
function Z(e, t = !1) {
|
|
224
225
|
const o = document.activeElement;
|
|
225
226
|
for (const n of e)
|
|
226
227
|
if (n === o || (n.focus({ preventScroll: t }), document.activeElement !== o)) return;
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
+
function Ye(e, t) {
|
|
229
230
|
return e.map((o, n) => e[(t + n) % e.length]);
|
|
230
231
|
}
|
|
231
|
-
var
|
|
232
|
+
var ct = H, ut = q, L = "Dialog", [J, lt] = Ne(L), [He, x] = J(L), Q = (e) => {
|
|
232
233
|
const {
|
|
233
234
|
__scopeDialog: t,
|
|
234
235
|
children: o,
|
|
@@ -242,7 +243,7 @@ var st = H, it = q, L = "Dialog", [J, ct] = Ne(L), [Ye, x] = J(L), Q = (e) => {
|
|
|
242
243
|
onChange: a
|
|
243
244
|
});
|
|
244
245
|
return /* @__PURE__ */ i.jsx(
|
|
245
|
-
|
|
246
|
+
He,
|
|
246
247
|
{
|
|
247
248
|
scope: t,
|
|
248
249
|
triggerRef: d,
|
|
@@ -278,21 +279,21 @@ var X = "DialogTrigger", ee = s.forwardRef(
|
|
|
278
279
|
}
|
|
279
280
|
);
|
|
280
281
|
ee.displayName = X;
|
|
281
|
-
var G = "DialogPortal", [
|
|
282
|
+
var G = "DialogPortal", [ze, te] = J(G, {
|
|
282
283
|
forceMount: void 0
|
|
283
284
|
}), ne = (e) => {
|
|
284
285
|
const { __scopeDialog: t, forceMount: o, children: n, container: r } = e, a = x(G, t);
|
|
285
|
-
return /* @__PURE__ */ i.jsx(
|
|
286
|
+
return /* @__PURE__ */ i.jsx(ze, { scope: t, forceMount: o, children: s.Children.map(n, (u) => /* @__PURE__ */ i.jsx(w, { present: o || a.open, children: /* @__PURE__ */ i.jsx(we, { asChild: !0, container: r, children: u }) })) });
|
|
286
287
|
};
|
|
287
288
|
ne.displayName = G;
|
|
288
289
|
var F = "DialogOverlay", oe = s.forwardRef(
|
|
289
290
|
(e, t) => {
|
|
290
291
|
const o = te(F, e.__scopeDialog), { forceMount: n = o.forceMount, ...r } = e, a = x(F, e.__scopeDialog);
|
|
291
|
-
return a.modal ? /* @__PURE__ */ i.jsx(w, { present: n || a.open, children: /* @__PURE__ */ i.jsx(
|
|
292
|
+
return a.modal ? /* @__PURE__ */ i.jsx(w, { present: n || a.open, children: /* @__PURE__ */ i.jsx(qe, { ...r, ref: t }) }) : null;
|
|
292
293
|
}
|
|
293
294
|
);
|
|
294
295
|
oe.displayName = F;
|
|
295
|
-
var
|
|
296
|
+
var qe = s.forwardRef(
|
|
296
297
|
(e, t) => {
|
|
297
298
|
const { __scopeDialog: o, ...n } = e, r = x(F, o);
|
|
298
299
|
return (
|
|
@@ -312,11 +313,11 @@ var ze = s.forwardRef(
|
|
|
312
313
|
), E = "DialogContent", re = s.forwardRef(
|
|
313
314
|
(e, t) => {
|
|
314
315
|
const o = te(E, e.__scopeDialog), { forceMount: n = o.forceMount, ...r } = e, a = x(E, e.__scopeDialog);
|
|
315
|
-
return /* @__PURE__ */ i.jsx(w, { present: n || a.open, children: a.modal ? /* @__PURE__ */ i.jsx(
|
|
316
|
+
return /* @__PURE__ */ i.jsx(w, { present: n || a.open, children: a.modal ? /* @__PURE__ */ i.jsx(Ze, { ...r, ref: t }) : /* @__PURE__ */ i.jsx(Je, { ...r, ref: t }) });
|
|
316
317
|
}
|
|
317
318
|
);
|
|
318
319
|
re.displayName = E;
|
|
319
|
-
var
|
|
320
|
+
var Ze = s.forwardRef(
|
|
320
321
|
(e, t) => {
|
|
321
322
|
const o = x(E, e.__scopeDialog), n = s.useRef(null), r = T(t, o.contentRef, n);
|
|
322
323
|
return s.useEffect(() => {
|
|
@@ -344,7 +345,7 @@ var qe = s.forwardRef(
|
|
|
344
345
|
}
|
|
345
346
|
);
|
|
346
347
|
}
|
|
347
|
-
),
|
|
348
|
+
), Je = s.forwardRef(
|
|
348
349
|
(e, t) => {
|
|
349
350
|
const o = x(E, e.__scopeDialog), n = s.useRef(!1), r = s.useRef(!1);
|
|
350
351
|
return /* @__PURE__ */ i.jsx(
|
|
@@ -395,8 +396,8 @@ var qe = s.forwardRef(
|
|
|
395
396
|
}
|
|
396
397
|
),
|
|
397
398
|
/* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
398
|
-
/* @__PURE__ */ i.jsx(
|
|
399
|
-
/* @__PURE__ */ i.jsx(
|
|
399
|
+
/* @__PURE__ */ i.jsx(Qe, { titleId: d.titleId }),
|
|
400
|
+
/* @__PURE__ */ i.jsx(et, { contentRef: l, descriptionId: d.descriptionId })
|
|
400
401
|
] })
|
|
401
402
|
] });
|
|
402
403
|
}
|
|
@@ -432,11 +433,11 @@ le.displayName = ue;
|
|
|
432
433
|
function W(e) {
|
|
433
434
|
return e ? "open" : "closed";
|
|
434
435
|
}
|
|
435
|
-
var de = "DialogTitleWarning", [
|
|
436
|
+
var de = "DialogTitleWarning", [dt, fe] = Fe(de, {
|
|
436
437
|
contentName: E,
|
|
437
438
|
titleName: U,
|
|
438
439
|
docsSlug: "dialog"
|
|
439
|
-
}),
|
|
440
|
+
}), Qe = ({ titleId: e }) => {
|
|
440
441
|
const t = fe(de), o = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
441
442
|
|
|
442
443
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -445,15 +446,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
445
446
|
return s.useEffect(() => {
|
|
446
447
|
e && (document.getElementById(e) || console.error(o));
|
|
447
448
|
}, [o, e]), null;
|
|
448
|
-
},
|
|
449
|
-
const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fe(
|
|
449
|
+
}, Xe = "DialogDescriptionWarning", et = ({ contentRef: e, descriptionId: t }) => {
|
|
450
|
+
const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fe(Xe).contentName}}.`;
|
|
450
451
|
return s.useEffect(() => {
|
|
451
452
|
var a;
|
|
452
453
|
const r = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
453
454
|
t && r && (document.getElementById(t) || console.warn(n));
|
|
454
455
|
}, [n, e, t]), null;
|
|
455
|
-
},
|
|
456
|
-
const
|
|
456
|
+
}, ft = Q, gt = ee, pt = ne, mt = oe, vt = re, Rt = se, xt = ce, bt = le;
|
|
457
|
+
const Dt = {
|
|
457
458
|
green: "text-green-600",
|
|
458
459
|
blue: "text-sky-600",
|
|
459
460
|
yellow: "text-yellow-600",
|
|
@@ -461,7 +462,7 @@ const xt = {
|
|
|
461
462
|
purple: "text-purple-600",
|
|
462
463
|
indigo: "text-indigo-600",
|
|
463
464
|
gray: "text-gray-600"
|
|
464
|
-
},
|
|
465
|
+
}, tt = {
|
|
465
466
|
green: "bg-green-400 dark:bg-green-800",
|
|
466
467
|
blue: "bg-sky-400 dark:bg-sky-800",
|
|
467
468
|
yellow: "bg-yellow-400 dark:bg-yellow-800",
|
|
@@ -469,7 +470,7 @@ const xt = {
|
|
|
469
470
|
purple: "bg-purple-400 dark:bg-purple-600",
|
|
470
471
|
indigo: "bg-indigo-400 dark:bg-indigo-600",
|
|
471
472
|
gray: "bg-gray-400 dark:bg-gray-600"
|
|
472
|
-
},
|
|
473
|
+
}, It = ({
|
|
473
474
|
color: e,
|
|
474
475
|
label: t,
|
|
475
476
|
className: o
|
|
@@ -478,26 +479,27 @@ const xt = {
|
|
|
478
479
|
{
|
|
479
480
|
className: Oe(
|
|
480
481
|
"mt-0.5 flex items-center duration-200 transition-opacity text-center uppercase font-mono text-[0.65rem] font-bold rounded text-background dark:text-zinc-50 h-4 px-1",
|
|
481
|
-
|
|
482
|
+
tt[e],
|
|
482
483
|
o
|
|
483
484
|
),
|
|
484
485
|
children: t
|
|
485
486
|
}
|
|
486
|
-
);
|
|
487
|
+
), Ct = ({ size: e = 16 }) => /* @__PURE__ */ i.jsx(Pe, { size: e, className: "animate-spin" });
|
|
487
488
|
export {
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
489
|
+
vt as C,
|
|
490
|
+
xt as D,
|
|
491
|
+
ut as I,
|
|
492
|
+
mt as O,
|
|
492
493
|
w as P,
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
494
|
+
ct as R,
|
|
495
|
+
It as S,
|
|
496
|
+
gt as T,
|
|
497
|
+
bt as a,
|
|
498
|
+
Rt as b,
|
|
499
|
+
it as c,
|
|
500
|
+
ft as d,
|
|
501
|
+
pt as e,
|
|
502
|
+
Ct as f,
|
|
503
|
+
Dt as g
|
|
502
504
|
};
|
|
503
|
-
//# sourceMappingURL=
|
|
505
|
+
//# sourceMappingURL=Spinner-DFQhPMBl.js.map
|