zudoku 0.42.1 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/entry.client.js +21 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/config/loader.d.ts +1 -16
- package/dist/config/loader.js +9 -90
- package/dist/config/loader.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.d.ts +1 -1
- package/dist/lib/authentication/components/SignIn.js +5 -2
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.d.ts +1 -1
- package/dist/lib/authentication/components/SignUp.js +4 -1
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.js +1 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +8 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +7 -3
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +9 -6
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
- package/dist/lib/plugins/openapi/schema/utils.js +3 -0
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +40 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/vite/config.js +1 -1
- package/dist/vite/config.js.map +1 -1
- package/lib/AuthenticationPlugin-ByDF051g.js +99 -0
- package/lib/AuthenticationPlugin-ByDF051g.js.map +1 -0
- package/lib/Card-BtheiD7j.js +61 -0
- package/lib/Card-BtheiD7j.js.map +1 -0
- package/lib/{OasProvider-CZiF_RMW.js → OasProvider-DOs0v9u7.js} +2 -2
- package/lib/{OasProvider-CZiF_RMW.js.map → OasProvider-DOs0v9u7.js.map} +1 -1
- package/lib/{OperationList-CMMzLfIZ.js → OperationList-CKac6iap.js} +1152 -1102
- package/lib/OperationList-CKac6iap.js.map +1 -0
- package/lib/{SchemaList-_d3Mf4IX.js → SchemaList-BTX2mRMW.js} +3 -3
- package/lib/{SchemaList-_d3Mf4IX.js.map → SchemaList-BTX2mRMW.js.map} +1 -1
- package/lib/SchemaView-BYRn_-2l.js +388 -0
- package/lib/SchemaView-BYRn_-2l.js.map +1 -0
- package/lib/{index-BPqJMdth.js → index-DuB48L78.js} +393 -442
- package/lib/index-DuB48L78.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +4 -4
- package/src/app/entry.client.tsx +26 -0
- package/src/lib/authentication/components/SignIn.tsx +35 -2
- package/src/lib/authentication/components/SignUp.tsx +35 -1
- package/src/lib/plugins/openapi/ParamInfos.tsx +1 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +30 -0
- package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +10 -4
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +31 -20
- package/src/lib/plugins/openapi/schema/utils.ts +5 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +45 -0
- package/lib/AuthenticationPlugin-DPCuR3xm.js +0 -58
- package/lib/AuthenticationPlugin-DPCuR3xm.js.map +0 -1
- package/lib/OperationList-CMMzLfIZ.js.map +0 -1
- package/lib/SchemaView-J7Srn-Iy.js +0 -357
- package/lib/SchemaView-J7Srn-Iy.js.map +0 -1
- package/lib/index-BPqJMdth.js.map +0 -1
|
@@ -3,33 +3,34 @@ var tt = (t) => {
|
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
5
|
var zt = (t, n, s) => n in t ? Ft(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s;
|
|
6
|
-
var J = (t, n, s) => zt(t, typeof n != "symbol" ? n + "" : n, s),
|
|
7
|
-
var pe = (t, n, s) => (
|
|
6
|
+
var J = (t, n, s) => zt(t, typeof n != "symbol" ? n + "" : n, s), Mt = (t, n, s) => n.has(t) || tt("Cannot " + s);
|
|
7
|
+
var pe = (t, n, s) => (Mt(t, n, "read from private field"), s ? s.call(t) : n.get(t)), he = (t, n, s) => n.has(t) ? tt("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(t) : n.set(t, s);
|
|
8
8
|
import { j as e } from "./jsx-runtime-C5mzlN2N.js";
|
|
9
|
-
import { ChevronRightIcon as Q, CheckIcon as
|
|
9
|
+
import { ChevronRightIcon as Q, CheckIcon as Ht, DotIcon as _t, Check as Bt, XIcon as Gt, Circle as Jt, ChevronDownIcon as Ut, InfoIcon as nt, LogInIcon as Qt, CirclePlayIcon as Wt } from "lucide-react";
|
|
10
10
|
import { r as Zt, m as st } from "./chunk-BAXFHI7N-BVBOl9s0.js";
|
|
11
|
-
import { p as xt, q as
|
|
11
|
+
import { p as xt, q as gt, r as Xt, m as Kt, t as Yt, f as R, l as en } from "./hook-CldJlP5c.js";
|
|
12
12
|
import { Button as W } from "./ui/Button.js";
|
|
13
13
|
import { Z as tn } from "./invariant-Caa8-XvF.js";
|
|
14
14
|
import { VisuallyHidden as nn } from "@radix-ui/react-visually-hidden";
|
|
15
|
-
import * as
|
|
16
|
-
import { Fragment as q, useRef as G, useEffect as
|
|
17
|
-
import { D as Pe, a as ke, b as Ie, d as
|
|
15
|
+
import * as b from "react";
|
|
16
|
+
import { Fragment as q, useRef as G, useEffect as ne, useMemo as sn, useState as k, useCallback as an, useTransition as rn } from "react";
|
|
17
|
+
import { D as Pe, a as ke, b as Ie, d as ft, e as yt, f as on } from "./Dialog-ByYz4ABw.js";
|
|
18
18
|
import { S as je, a as be, b as Ne, c as we, e as U, u as ln } from "./Select-CT64Ou40.js";
|
|
19
|
-
import { b as Re, u as Oe, C as L, a as
|
|
19
|
+
import { b as Re, u as Oe, C as L, a as cn, F as dn } from "./index.esm-D2ZUREQN.js";
|
|
20
20
|
import { c as vt } from "./index-CPNSgwSb.js";
|
|
21
|
-
import { c as
|
|
22
|
-
import { Tabs as jt, TabsList as bt, TabsTrigger as
|
|
21
|
+
import { c as g } from "./cn-qaFjX9_3.js";
|
|
22
|
+
import { Tabs as jt, TabsList as bt, TabsTrigger as M, TabsContent as H } from "./ui/Tabs.js";
|
|
23
23
|
import { o as mn } from "./objectEntries-yMIkr2mI.js";
|
|
24
24
|
import { u as un } from "./useLatest-hmRS46UF.js";
|
|
25
25
|
import { z as pn } from "./index-DwT-v3zK.js";
|
|
26
26
|
import { B as A } from "./Button-BBNrKpQd.js";
|
|
27
|
-
import * as
|
|
27
|
+
import * as j from "@radix-ui/react-dropdown-menu";
|
|
28
|
+
import { C as le } from "./Card-BtheiD7j.js";
|
|
28
29
|
import * as Ce from "@radix-ui/react-checkbox";
|
|
29
|
-
import * as
|
|
30
|
+
import * as se from "@radix-ui/react-popover";
|
|
30
31
|
import { PopoverAnchor as hn } from "@radix-ui/react-popover";
|
|
31
32
|
import { P as xn } from "./index-CuBIgTKC.js";
|
|
32
|
-
import { g as
|
|
33
|
+
import { g as gn, h as fn, C as yn, b as vn, f as jn } from "./Callout-D3Ja4OPX.js";
|
|
33
34
|
import { Input as qe } from "./ui/Input.js";
|
|
34
35
|
import { Slot as bn } from "@radix-ui/react-slot";
|
|
35
36
|
import * as Nt from "@radix-ui/react-label";
|
|
@@ -48,16 +49,16 @@ const Pn = (t) => {
|
|
|
48
49
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
49
50
|
});
|
|
50
51
|
};
|
|
51
|
-
var
|
|
52
|
+
var oe, ie;
|
|
52
53
|
class kn {
|
|
53
54
|
constructor(n) {
|
|
54
|
-
he(this,
|
|
55
|
+
he(this, oe, async () => (xe || (xe = import("./createServer-IW7v5hWm.js").then(
|
|
55
56
|
(n) => n.createServer(this.config)
|
|
56
57
|
)), xe));
|
|
57
|
-
he(this,
|
|
58
|
+
he(this, ie, async (n) => this.config.server ? fetch(this.config.server, n) : (await pe(this, oe).call(this)).fetch("http://localhost/graphql", n));
|
|
58
59
|
J(this, "fetch", async (n, s) => {
|
|
59
60
|
var l;
|
|
60
|
-
const a = (l = n.match(/query (\w+)/)) == null ? void 0 : l[1], r = await pe(this,
|
|
61
|
+
const a = (l = n.match(/query (\w+)/)) == null ? void 0 : l[1], r = await pe(this, ie).call(this, {
|
|
61
62
|
method: "POST",
|
|
62
63
|
body: JSON.stringify({ query: n, variables: s, operationName: a }),
|
|
63
64
|
headers: { "Content-Type": "application/json" }
|
|
@@ -70,8 +71,8 @@ class kn {
|
|
|
70
71
|
this.config = n;
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
|
|
74
|
-
class
|
|
74
|
+
oe = new WeakMap(), ie = new WeakMap();
|
|
75
|
+
class D extends String {
|
|
75
76
|
constructor(s, a) {
|
|
76
77
|
super(s);
|
|
77
78
|
J(this, "__apiType");
|
|
@@ -83,7 +84,7 @@ class E extends String {
|
|
|
83
84
|
return this.value;
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
|
-
const In = new
|
|
87
|
+
const In = new D(
|
|
87
88
|
`
|
|
88
89
|
fragment OperationsFragment on OperationItem {
|
|
89
90
|
slug
|
|
@@ -151,7 +152,7 @@ const In = new E(
|
|
|
151
152
|
}
|
|
152
153
|
`,
|
|
153
154
|
{ fragmentName: "OperationsFragment" }
|
|
154
|
-
), Rn = new
|
|
155
|
+
), Rn = new D(`
|
|
155
156
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
156
157
|
schema(input: $input, type: $type) {
|
|
157
158
|
url
|
|
@@ -160,13 +161,13 @@ const In = new E(
|
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
163
|
}
|
|
163
|
-
`), On = new
|
|
164
|
+
`), On = new D(`
|
|
164
165
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
165
166
|
schema(input: $input, type: $type) {
|
|
166
167
|
openapi
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
|
-
`), qn = new
|
|
170
|
+
`), qn = new D(`
|
|
170
171
|
query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
|
|
171
172
|
schema(input: $input, type: $type) {
|
|
172
173
|
servers {
|
|
@@ -258,7 +259,7 @@ const In = new E(
|
|
|
258
259
|
schema
|
|
259
260
|
}
|
|
260
261
|
}
|
|
261
|
-
}`), Ln = new
|
|
262
|
+
}`), Ln = new D(`
|
|
262
263
|
query GetSchemas($input: JSON!, $type: SchemaType!) {
|
|
263
264
|
schema(input: $input, type: $type) {
|
|
264
265
|
title
|
|
@@ -273,7 +274,7 @@ const In = new E(
|
|
|
273
274
|
}
|
|
274
275
|
}
|
|
275
276
|
}
|
|
276
|
-
`), An = new
|
|
277
|
+
`), An = new D(`
|
|
277
278
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
278
279
|
schema(input: $input, type: $type) {
|
|
279
280
|
url
|
|
@@ -282,7 +283,7 @@ const In = new E(
|
|
|
282
283
|
}
|
|
283
284
|
}
|
|
284
285
|
}
|
|
285
|
-
`),
|
|
286
|
+
`), En = new D(`
|
|
286
287
|
query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
|
|
287
288
|
schema(input: $input, type: $type) {
|
|
288
289
|
tags {
|
|
@@ -304,17 +305,17 @@ const In = new E(
|
|
|
304
305
|
}
|
|
305
306
|
}
|
|
306
307
|
}
|
|
307
|
-
`),
|
|
308
|
+
`), Dn = {
|
|
308
309
|
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Rn,
|
|
309
310
|
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": In,
|
|
310
311
|
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": On,
|
|
311
312
|
"\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": qn,
|
|
312
313
|
"\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": Ln,
|
|
313
314
|
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": An,
|
|
314
|
-
"\n query GetSidebarOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n":
|
|
315
|
+
"\n query GetSidebarOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": En
|
|
315
316
|
};
|
|
316
317
|
function Vn(t) {
|
|
317
|
-
return
|
|
318
|
+
return Dn[t] ?? {};
|
|
318
319
|
}
|
|
319
320
|
const Fn = vt(
|
|
320
321
|
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
@@ -329,30 +330,30 @@ const Fn = vt(
|
|
|
329
330
|
variant: "default"
|
|
330
331
|
}
|
|
331
332
|
}
|
|
332
|
-
), Se =
|
|
333
|
+
), Se = b.forwardRef(({ className: t, variant: n, ...s }, a) => /* @__PURE__ */ e.jsx(
|
|
333
334
|
"div",
|
|
334
335
|
{
|
|
335
336
|
ref: a,
|
|
336
337
|
role: "alert",
|
|
337
|
-
className:
|
|
338
|
+
className: g(Fn({ variant: n }), t),
|
|
338
339
|
...s
|
|
339
340
|
}
|
|
340
341
|
));
|
|
341
342
|
Se.displayName = "Alert";
|
|
342
|
-
const Te =
|
|
343
|
+
const Te = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
343
344
|
"h5",
|
|
344
345
|
{
|
|
345
346
|
ref: s,
|
|
346
|
-
className:
|
|
347
|
+
className: g("mb-1 font-medium leading-none tracking-tight", t),
|
|
347
348
|
...n
|
|
348
349
|
}
|
|
349
350
|
));
|
|
350
351
|
Te.displayName = "AlertTitle";
|
|
351
|
-
const $e =
|
|
352
|
+
const $e = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
352
353
|
"div",
|
|
353
354
|
{
|
|
354
355
|
ref: s,
|
|
355
|
-
className:
|
|
356
|
+
className: g("text-sm [&_p]:leading-relaxed", t),
|
|
356
357
|
...n
|
|
357
358
|
}
|
|
358
359
|
));
|
|
@@ -363,31 +364,31 @@ const zn = ({
|
|
|
363
364
|
}) => {
|
|
364
365
|
let s = 0;
|
|
365
366
|
return t.split("/").map((a, r, i) => {
|
|
366
|
-
const l = Array.from(a.matchAll(/{([^}]+)}/g)),
|
|
367
|
-
let
|
|
368
|
-
return l.forEach((
|
|
369
|
-
const [
|
|
367
|
+
const l = Array.from(a.matchAll(/{([^}]+)}/g)), d = [];
|
|
368
|
+
let c = 0;
|
|
369
|
+
return l.forEach((u) => {
|
|
370
|
+
const [x, w] = u;
|
|
370
371
|
if (!w) return;
|
|
371
|
-
const
|
|
372
|
-
|
|
373
|
-
/* @__PURE__ */ e.jsx(q, { children: a.slice(
|
|
374
|
-
),
|
|
375
|
-
/* @__PURE__ */ e.jsx(q, { children: n({ name: w, originalValue:
|
|
376
|
-
),
|
|
377
|
-
}),
|
|
378
|
-
/* @__PURE__ */ e.jsx(q, { children: a.slice(
|
|
372
|
+
const v = u.index;
|
|
373
|
+
v > c && d.push(
|
|
374
|
+
/* @__PURE__ */ e.jsx(q, { children: a.slice(c, v) }, `text-${c}-${v}`)
|
|
375
|
+
), d.push(
|
|
376
|
+
/* @__PURE__ */ e.jsx(q, { children: n({ name: w, originalValue: x, index: s++ }) }, `param-${w}`)
|
|
377
|
+
), c = v + x.length;
|
|
378
|
+
}), c < a.length && d.push(
|
|
379
|
+
/* @__PURE__ */ e.jsx(q, { children: a.slice(c) }, `text-${c}-${a.length}`)
|
|
379
380
|
), // eslint-disable-next-line react/no-array-index-key
|
|
380
381
|
/* @__PURE__ */ e.jsxs(q, { children: [
|
|
381
|
-
|
|
382
|
+
d,
|
|
382
383
|
r < i.length - 1 && "/",
|
|
383
384
|
/* @__PURE__ */ e.jsx("wbr", {})
|
|
384
385
|
] }, `${a}-${r}`);
|
|
385
386
|
});
|
|
386
|
-
}, Ct =
|
|
387
|
+
}, Ct = b.forwardRef(
|
|
387
388
|
({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
388
389
|
"textarea",
|
|
389
390
|
{
|
|
390
|
-
className:
|
|
391
|
+
className: g(
|
|
391
392
|
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
392
393
|
t
|
|
393
394
|
),
|
|
@@ -397,12 +398,12 @@ const zn = ({
|
|
|
397
398
|
)
|
|
398
399
|
);
|
|
399
400
|
Ct.displayName = "Textarea";
|
|
400
|
-
const
|
|
401
|
+
const ge = (t) => Math.abs(
|
|
401
402
|
isNaN(parseInt(t)) ? t.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(t)) ? 0 : parseInt(t)
|
|
402
|
-
),
|
|
403
|
-
const s = (3 *
|
|
403
|
+
), fe = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, s) => `${ge(n) + ge(s)}`)) : ge(t), it = (t, n = {}) => {
|
|
404
|
+
const s = (3 * fe(t) + 2 * fe(t) + fe(t)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
|
|
404
405
|
return `${s}deg ${a}% ${r}%`;
|
|
405
|
-
}, ye = "data-linked-param",
|
|
406
|
+
}, ye = "data-linked-param", Mn = (t) => {
|
|
406
407
|
const { resolvedTheme: n } = pn();
|
|
407
408
|
return {
|
|
408
409
|
text: it(
|
|
@@ -422,26 +423,26 @@ const fe = (t) => Math.abs(
|
|
|
422
423
|
children: r,
|
|
423
424
|
onClick: i
|
|
424
425
|
}) => {
|
|
425
|
-
const l = G(null),
|
|
426
|
-
return
|
|
427
|
-
if (!
|
|
428
|
-
const
|
|
429
|
-
document.querySelectorAll(`[${ye}="${
|
|
430
|
-
|
|
426
|
+
const l = G(null), d = s == null ? void 0 : s.replace(/[{}]/g, ""), c = t.replace(/[{}]/g, ""), { text: u, background: x } = Mn(c), w = `hsl(${u} / 100%)`, v = `hsl(${x} / 10%)`, p = `hsl(${x} / 50%)`;
|
|
427
|
+
return ne(() => {
|
|
428
|
+
if (!d || !l.current) return;
|
|
429
|
+
const f = () => {
|
|
430
|
+
document.querySelectorAll(`[${ye}="${d}"]`).forEach((h) => {
|
|
431
|
+
h instanceof HTMLElement && (h.dataset.active = "true");
|
|
431
432
|
});
|
|
432
433
|
}, m = () => {
|
|
433
|
-
document.querySelectorAll(`[${ye}="${
|
|
434
|
-
|
|
434
|
+
document.querySelectorAll(`[${ye}="${d}"]`).forEach((h) => {
|
|
435
|
+
h instanceof HTMLElement && (h.dataset.active = "false");
|
|
435
436
|
});
|
|
436
437
|
}, y = l.current;
|
|
437
|
-
return y.addEventListener("mouseenter",
|
|
438
|
-
y.removeEventListener("mouseenter",
|
|
438
|
+
return y.addEventListener("mouseenter", f), y.addEventListener("mouseleave", m), () => {
|
|
439
|
+
y.removeEventListener("mouseenter", f), y.removeEventListener("mouseleave", m);
|
|
439
440
|
};
|
|
440
|
-
}, [
|
|
441
|
+
}, [d]), /* @__PURE__ */ e.jsx(
|
|
441
442
|
"span",
|
|
442
443
|
{
|
|
443
|
-
[ye]:
|
|
444
|
-
className:
|
|
444
|
+
[ye]: d,
|
|
445
|
+
className: g(
|
|
445
446
|
// This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
|
|
446
447
|
"relative transition-all duration-100 rounded-lg",
|
|
447
448
|
"border border-[--border-color] p-0.5 text-[--param-color] bg-[--background-color]",
|
|
@@ -454,14 +455,14 @@ const fe = (t) => Math.abs(
|
|
|
454
455
|
onClick: i,
|
|
455
456
|
style: {
|
|
456
457
|
"--param-color": w,
|
|
457
|
-
"--border-color":
|
|
458
|
-
"--background-color":
|
|
458
|
+
"--border-color": p,
|
|
459
|
+
"--background-color": v
|
|
459
460
|
},
|
|
460
461
|
children: r ?? t
|
|
461
462
|
}
|
|
462
463
|
);
|
|
463
|
-
},
|
|
464
|
-
|
|
464
|
+
}, Hn = xt()(
|
|
465
|
+
gt(
|
|
465
466
|
(t) => ({
|
|
466
467
|
selectedServer: void 0,
|
|
467
468
|
setSelectedServer: (n) => t({ selectedServer: n })
|
|
@@ -469,7 +470,7 @@ const fe = (t) => Math.abs(
|
|
|
469
470
|
{ name: "zudoku-selected-server" }
|
|
470
471
|
)
|
|
471
472
|
), _n = (t) => {
|
|
472
|
-
const { selectedServer: n, setSelectedServer: s } =
|
|
473
|
+
const { selectedServer: n, setSelectedServer: s } = Hn();
|
|
473
474
|
return { selectedServer: sn(
|
|
474
475
|
() => {
|
|
475
476
|
var r;
|
|
@@ -479,9 +480,9 @@ const fe = (t) => Math.abs(
|
|
|
479
480
|
), setSelectedServer: s };
|
|
480
481
|
}, Bn = (t, n, s) => {
|
|
481
482
|
const a = n.replace(/(:\w+|\{\w+})/g, (i) => {
|
|
482
|
-
var
|
|
483
|
+
var c;
|
|
483
484
|
const l = i.replace(/[:{}]/g, "");
|
|
484
|
-
return ((
|
|
485
|
+
return ((c = s.pathParams.find((u) => u.name === l)) == null ? void 0 : c.value) ?? i;
|
|
485
486
|
}), r = new URL(
|
|
486
487
|
a.replace(/^\//, ""),
|
|
487
488
|
t.endsWith("/") ? t : `${t}/`
|
|
@@ -489,11 +490,11 @@ const fe = (t) => Math.abs(
|
|
|
489
490
|
return s.queryParams.filter((i) => i.active).forEach((i) => {
|
|
490
491
|
r.searchParams.set(i.name, i.value);
|
|
491
492
|
}), r;
|
|
492
|
-
}, Tt =
|
|
493
|
-
|
|
493
|
+
}, Tt = j.Root, $t = j.Trigger, Gn = j.Group, Jn = b.forwardRef(({ className: t, inset: n, children: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
|
|
494
|
+
j.SubTrigger,
|
|
494
495
|
{
|
|
495
496
|
ref: r,
|
|
496
|
-
className:
|
|
497
|
+
className: g(
|
|
497
498
|
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
498
499
|
n && "pl-8",
|
|
499
500
|
t
|
|
@@ -505,25 +506,25 @@ const fe = (t) => Math.abs(
|
|
|
505
506
|
]
|
|
506
507
|
}
|
|
507
508
|
));
|
|
508
|
-
Jn.displayName =
|
|
509
|
-
const Un =
|
|
510
|
-
|
|
509
|
+
Jn.displayName = j.SubTrigger.displayName;
|
|
510
|
+
const Un = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
511
|
+
j.SubContent,
|
|
511
512
|
{
|
|
512
513
|
ref: s,
|
|
513
|
-
className:
|
|
514
|
+
className: g(
|
|
514
515
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
515
516
|
t
|
|
516
517
|
),
|
|
517
518
|
...n
|
|
518
519
|
}
|
|
519
520
|
));
|
|
520
|
-
Un.displayName =
|
|
521
|
-
const Ae =
|
|
522
|
-
|
|
521
|
+
Un.displayName = j.SubContent.displayName;
|
|
522
|
+
const Ae = b.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__PURE__ */ e.jsx(j.Portal, { children: /* @__PURE__ */ e.jsx(
|
|
523
|
+
j.Content,
|
|
523
524
|
{
|
|
524
525
|
ref: a,
|
|
525
526
|
sideOffset: n,
|
|
526
|
-
className:
|
|
527
|
+
className: g(
|
|
527
528
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
528
529
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
529
530
|
t
|
|
@@ -531,12 +532,12 @@ const Ae = v.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__
|
|
|
531
532
|
...s
|
|
532
533
|
}
|
|
533
534
|
) }));
|
|
534
|
-
Ae.displayName =
|
|
535
|
-
const
|
|
536
|
-
|
|
535
|
+
Ae.displayName = j.Content.displayName;
|
|
536
|
+
const Ee = b.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
|
|
537
|
+
j.Item,
|
|
537
538
|
{
|
|
538
539
|
ref: a,
|
|
539
|
-
className:
|
|
540
|
+
className: g(
|
|
540
541
|
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
541
542
|
n && "pl-8",
|
|
542
543
|
t
|
|
@@ -544,45 +545,45 @@ const De = v.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */
|
|
|
544
545
|
...s
|
|
545
546
|
}
|
|
546
547
|
));
|
|
547
|
-
|
|
548
|
-
const Qn =
|
|
549
|
-
|
|
548
|
+
Ee.displayName = j.Item.displayName;
|
|
549
|
+
const Qn = b.forwardRef(({ className: t, children: n, checked: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
|
|
550
|
+
j.CheckboxItem,
|
|
550
551
|
{
|
|
551
552
|
ref: r,
|
|
552
|
-
className:
|
|
553
|
+
className: g(
|
|
553
554
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
554
555
|
t
|
|
555
556
|
),
|
|
556
557
|
checked: s,
|
|
557
558
|
...a,
|
|
558
559
|
children: [
|
|
559
|
-
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(
|
|
560
|
+
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(j.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Ht, { className: "h-4 w-4" }) }) }),
|
|
560
561
|
n
|
|
561
562
|
]
|
|
562
563
|
}
|
|
563
564
|
));
|
|
564
|
-
Qn.displayName =
|
|
565
|
-
const Wn =
|
|
566
|
-
|
|
565
|
+
Qn.displayName = j.CheckboxItem.displayName;
|
|
566
|
+
const Wn = b.forwardRef(({ className: t, children: n, ...s }, a) => /* @__PURE__ */ e.jsxs(
|
|
567
|
+
j.RadioItem,
|
|
567
568
|
{
|
|
568
569
|
ref: a,
|
|
569
|
-
className:
|
|
570
|
+
className: g(
|
|
570
571
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
571
572
|
t
|
|
572
573
|
),
|
|
573
574
|
...s,
|
|
574
575
|
children: [
|
|
575
|
-
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(
|
|
576
|
+
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(j.ItemIndicator, { children: /* @__PURE__ */ e.jsx(_t, { className: "h-4 w-4 fill-current" }) }) }),
|
|
576
577
|
n
|
|
577
578
|
]
|
|
578
579
|
}
|
|
579
580
|
));
|
|
580
|
-
Wn.displayName =
|
|
581
|
-
const Pt =
|
|
582
|
-
|
|
581
|
+
Wn.displayName = j.RadioItem.displayName;
|
|
582
|
+
const Pt = b.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
|
|
583
|
+
j.Label,
|
|
583
584
|
{
|
|
584
585
|
ref: a,
|
|
585
|
-
className:
|
|
586
|
+
className: g(
|
|
586
587
|
"px-2 py-1.5 text-sm font-semibold",
|
|
587
588
|
n && "pl-8",
|
|
588
589
|
t
|
|
@@ -590,16 +591,16 @@ const Pt = v.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */
|
|
|
590
591
|
...s
|
|
591
592
|
}
|
|
592
593
|
));
|
|
593
|
-
Pt.displayName =
|
|
594
|
-
const kt =
|
|
595
|
-
|
|
594
|
+
Pt.displayName = j.Label.displayName;
|
|
595
|
+
const kt = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
596
|
+
j.Separator,
|
|
596
597
|
{
|
|
597
598
|
ref: s,
|
|
598
|
-
className:
|
|
599
|
+
className: g("-mx-1 my-1 h-px bg-muted", t),
|
|
599
600
|
...n
|
|
600
601
|
}
|
|
601
602
|
));
|
|
602
|
-
kt.displayName =
|
|
603
|
+
kt.displayName = j.Separator.displayName;
|
|
603
604
|
const Zn = ({
|
|
604
605
|
examples: t,
|
|
605
606
|
onSelect: n
|
|
@@ -611,7 +612,7 @@ const Zn = ({
|
|
|
611
612
|
/* @__PURE__ */ e.jsx(Pt, { children: s.mediaType }),
|
|
612
613
|
/* @__PURE__ */ e.jsx(kt, {}),
|
|
613
614
|
/* @__PURE__ */ e.jsx(Gn, { children: (a = s.examples) == null ? void 0 : a.map((r) => /* @__PURE__ */ e.jsx(
|
|
614
|
-
|
|
615
|
+
Ee,
|
|
615
616
|
{
|
|
616
617
|
onSelect: () => n(r, s.mediaType),
|
|
617
618
|
children: /* @__PURE__ */ e.jsx(
|
|
@@ -627,61 +628,11 @@ const Zn = ({
|
|
|
627
628
|
)) })
|
|
628
629
|
] }, s.mediaType);
|
|
629
630
|
}) })
|
|
630
|
-
] }),
|
|
631
|
-
"div",
|
|
632
|
-
{
|
|
633
|
-
ref: s,
|
|
634
|
-
className: u(
|
|
635
|
-
"rounded-xl border bg-card text-card-foreground shadow-sm",
|
|
636
|
-
t
|
|
637
|
-
),
|
|
638
|
-
...n
|
|
639
|
-
}
|
|
640
|
-
));
|
|
641
|
-
X.displayName = "Card";
|
|
642
|
-
const Xn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
643
|
-
"div",
|
|
644
|
-
{
|
|
645
|
-
ref: s,
|
|
646
|
-
className: u("flex flex-col space-y-1.5 p-6", t),
|
|
647
|
-
...n
|
|
648
|
-
}
|
|
649
|
-
));
|
|
650
|
-
Xn.displayName = "CardHeader";
|
|
651
|
-
const Kn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
652
|
-
"h3",
|
|
653
|
-
{
|
|
654
|
-
ref: s,
|
|
655
|
-
className: u("font-semibold leading-none tracking-tight", t),
|
|
656
|
-
...n
|
|
657
|
-
}
|
|
658
|
-
));
|
|
659
|
-
Kn.displayName = "CardTitle";
|
|
660
|
-
const Yn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
661
|
-
"p",
|
|
662
|
-
{
|
|
663
|
-
ref: s,
|
|
664
|
-
className: u("text-sm text-muted-foreground", t),
|
|
665
|
-
...n
|
|
666
|
-
}
|
|
667
|
-
));
|
|
668
|
-
Yn.displayName = "CardDescription";
|
|
669
|
-
const es = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx("div", { ref: s, className: u("p-6 pt-0", t), ...n }));
|
|
670
|
-
es.displayName = "CardContent";
|
|
671
|
-
const ts = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
672
|
-
"div",
|
|
673
|
-
{
|
|
674
|
-
ref: s,
|
|
675
|
-
className: u("flex items-center p-6 pt-0", t),
|
|
676
|
-
...n
|
|
677
|
-
}
|
|
678
|
-
));
|
|
679
|
-
ts.displayName = "CardFooter";
|
|
680
|
-
const de = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
631
|
+
] }), ce = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
681
632
|
Ce.Root,
|
|
682
633
|
{
|
|
683
634
|
ref: s,
|
|
684
|
-
className:
|
|
635
|
+
className: g(
|
|
685
636
|
"peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",
|
|
686
637
|
"border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
|
|
687
638
|
t
|
|
@@ -690,28 +641,28 @@ const de = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
|
690
641
|
children: /* @__PURE__ */ e.jsx(
|
|
691
642
|
Ce.Indicator,
|
|
692
643
|
{
|
|
693
|
-
className:
|
|
644
|
+
className: g("flex items-center justify-center text-current"),
|
|
694
645
|
children: /* @__PURE__ */ e.jsx(Bt, { className: "h-4 w-4" })
|
|
695
646
|
}
|
|
696
647
|
)
|
|
697
648
|
}
|
|
698
649
|
));
|
|
699
|
-
|
|
700
|
-
const
|
|
701
|
-
|
|
650
|
+
ce.displayName = Ce.Root.displayName;
|
|
651
|
+
const Xn = se.Root, It = b.forwardRef(({ className: t, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ e.jsx(se.Portal, { children: /* @__PURE__ */ e.jsx(
|
|
652
|
+
se.Content,
|
|
702
653
|
{
|
|
703
654
|
ref: r,
|
|
704
655
|
align: n,
|
|
705
656
|
sideOffset: s,
|
|
706
|
-
className:
|
|
657
|
+
className: g(
|
|
707
658
|
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
708
659
|
t
|
|
709
660
|
),
|
|
710
661
|
...a
|
|
711
662
|
}
|
|
712
663
|
) }));
|
|
713
|
-
It.displayName =
|
|
714
|
-
const
|
|
664
|
+
It.displayName = se.Content.displayName;
|
|
665
|
+
const Kn = ({
|
|
715
666
|
value: t,
|
|
716
667
|
options: n,
|
|
717
668
|
onChange: s,
|
|
@@ -720,77 +671,77 @@ const ss = ({
|
|
|
720
671
|
onEnterPress: i,
|
|
721
672
|
ref: l
|
|
722
673
|
}) => {
|
|
723
|
-
const [
|
|
724
|
-
return /* @__PURE__ */ e.jsxs(
|
|
674
|
+
const [d, c] = k(!1), [u, x] = k(!1), w = xn((p) => p.filtered.count), v = G(null);
|
|
675
|
+
return /* @__PURE__ */ e.jsxs(Xn, { open: d, children: [
|
|
725
676
|
/* @__PURE__ */ e.jsx(hn, { children: /* @__PURE__ */ e.jsx(
|
|
726
|
-
|
|
677
|
+
fn,
|
|
727
678
|
{
|
|
728
|
-
ref: (
|
|
729
|
-
|
|
679
|
+
ref: (p) => {
|
|
680
|
+
v.current = p, typeof l == "function" ? l(p) : l && (l.current = p);
|
|
730
681
|
},
|
|
731
682
|
value: t,
|
|
732
683
|
placeholder: r,
|
|
733
|
-
className:
|
|
734
|
-
onFocus: () =>
|
|
684
|
+
className: g("h-9 bg-transparent", a),
|
|
685
|
+
onFocus: () => c(!0),
|
|
735
686
|
onBlur: () => {
|
|
736
|
-
|
|
687
|
+
u || c(!1);
|
|
737
688
|
},
|
|
738
|
-
onKeyDown: (
|
|
739
|
-
var
|
|
740
|
-
|
|
689
|
+
onKeyDown: (p) => {
|
|
690
|
+
var f;
|
|
691
|
+
p.key === "Enter" && (c(!1), (f = v.current) == null || f.blur(), i == null || i(p));
|
|
741
692
|
},
|
|
742
|
-
onValueChange: (
|
|
693
|
+
onValueChange: (p) => s(p)
|
|
743
694
|
}
|
|
744
695
|
) }),
|
|
745
696
|
/* @__PURE__ */ e.jsx(
|
|
746
697
|
It,
|
|
747
698
|
{
|
|
748
|
-
onMouseEnter: () =>
|
|
749
|
-
onMouseLeave: () =>
|
|
750
|
-
onOpenAutoFocus: (
|
|
751
|
-
className:
|
|
699
|
+
onMouseEnter: () => x(!0),
|
|
700
|
+
onMouseLeave: () => x(!1),
|
|
701
|
+
onOpenAutoFocus: (p) => p.preventDefault(),
|
|
702
|
+
className: g("p-0 w-[--radix-popover-trigger-width]", {
|
|
752
703
|
"border-0": w === 0
|
|
753
704
|
}),
|
|
754
705
|
align: "start",
|
|
755
706
|
side: "bottom",
|
|
756
|
-
onWheel: (
|
|
757
|
-
|
|
707
|
+
onWheel: (p) => {
|
|
708
|
+
p.stopPropagation();
|
|
758
709
|
},
|
|
759
|
-
onTouchMove: (
|
|
760
|
-
|
|
710
|
+
onTouchMove: (p) => {
|
|
711
|
+
p.stopPropagation();
|
|
761
712
|
},
|
|
762
|
-
children: /* @__PURE__ */ e.jsx(yn, { className: "max-h-[140px]", children: n.map((
|
|
713
|
+
children: /* @__PURE__ */ e.jsx(yn, { className: "max-h-[140px]", children: n.map((p) => /* @__PURE__ */ e.jsx(
|
|
763
714
|
vn,
|
|
764
715
|
{
|
|
765
|
-
value:
|
|
766
|
-
onSelect: (
|
|
767
|
-
s(
|
|
716
|
+
value: p,
|
|
717
|
+
onSelect: (f) => {
|
|
718
|
+
s(f), c(!1);
|
|
768
719
|
},
|
|
769
720
|
className: "cursor-pointer",
|
|
770
|
-
children:
|
|
721
|
+
children: p
|
|
771
722
|
},
|
|
772
|
-
|
|
723
|
+
p
|
|
773
724
|
)) })
|
|
774
725
|
}
|
|
775
726
|
)
|
|
776
727
|
] });
|
|
777
|
-
},
|
|
778
|
-
const s =
|
|
779
|
-
const
|
|
780
|
-
return
|
|
728
|
+
}, ae = ({ shouldFilter: t, ...n }) => /* @__PURE__ */ e.jsx(gn, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(Kn, { ...n }) }), De = (t, n) => {
|
|
729
|
+
const s = b.forwardRef(({ className: a, asChild: r, ...i }, l) => {
|
|
730
|
+
const d = r ? bn : t;
|
|
731
|
+
return b.createElement(d, {
|
|
781
732
|
...i,
|
|
782
733
|
ref: l,
|
|
783
|
-
className: typeof n == "function" ? n({ className: a }) :
|
|
734
|
+
className: typeof n == "function" ? n({ className: a }) : g(n, a)
|
|
784
735
|
});
|
|
785
736
|
});
|
|
786
737
|
return s.displayName = `VariantComponent(${t})`, s;
|
|
787
|
-
}, Ve =
|
|
738
|
+
}, Ve = De(
|
|
788
739
|
"div",
|
|
789
740
|
"grid grid-cols-[2fr_3fr] gap-2 items-center"
|
|
790
|
-
), Fe =
|
|
741
|
+
), Fe = De(
|
|
791
742
|
"div",
|
|
792
743
|
"group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
|
|
793
|
-
),
|
|
744
|
+
), Yn = Object.freeze([
|
|
794
745
|
"Accept",
|
|
795
746
|
"Accept-Encoding",
|
|
796
747
|
"Accept-Language",
|
|
@@ -817,32 +768,32 @@ const ss = ({
|
|
|
817
768
|
"Set-Cookie",
|
|
818
769
|
"User-Agent",
|
|
819
770
|
"X-Requested-With"
|
|
820
|
-
]),
|
|
771
|
+
]), es = ({
|
|
821
772
|
control: t,
|
|
822
773
|
headers: n
|
|
823
774
|
}) => {
|
|
824
775
|
const { fields: s, append: a, remove: r } = Re({
|
|
825
776
|
control: t,
|
|
826
777
|
name: "headers"
|
|
827
|
-
}), { setValue: i, watch: l } = Oe(),
|
|
778
|
+
}), { setValue: i, watch: l } = Oe(), d = G([]), c = G([]), u = l("headers"), x = an(() => {
|
|
828
779
|
a({ name: "", value: "", active: !1 });
|
|
829
780
|
}, [a]);
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
}, [
|
|
833
|
-
const w = (
|
|
781
|
+
ne(() => {
|
|
782
|
+
u.length === 0 && x();
|
|
783
|
+
}, [u, x]);
|
|
784
|
+
const w = (f) => {
|
|
834
785
|
var m;
|
|
835
|
-
(m =
|
|
836
|
-
},
|
|
837
|
-
|
|
786
|
+
(m = d.current[f]) == null || m.focus();
|
|
787
|
+
}, v = (f) => {
|
|
788
|
+
x(), requestAnimationFrame(() => {
|
|
838
789
|
var m;
|
|
839
|
-
return (m =
|
|
790
|
+
return (m = c.current[f + 1]) == null ? void 0 : m.focus();
|
|
840
791
|
});
|
|
841
|
-
},
|
|
792
|
+
}, p = n.filter((f) => !u.some((m) => m.name === f.name)).map(({ name: f }) => f);
|
|
842
793
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
843
|
-
/* @__PURE__ */ e.jsx(
|
|
794
|
+
/* @__PURE__ */ e.jsx(le, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Ve, { children: s.map((f, m) => {
|
|
844
795
|
const y = n.find(
|
|
845
|
-
(
|
|
796
|
+
(h) => h.name === l(`headers.${m}.name`)
|
|
846
797
|
);
|
|
847
798
|
return /* @__PURE__ */ e.jsxs(Fe, { children: [
|
|
848
799
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 ", children: [
|
|
@@ -851,13 +802,13 @@ const ss = ({
|
|
|
851
802
|
{
|
|
852
803
|
control: t,
|
|
853
804
|
name: `headers.${m}.active`,
|
|
854
|
-
render: ({ field:
|
|
855
|
-
|
|
805
|
+
render: ({ field: h }) => /* @__PURE__ */ e.jsx(
|
|
806
|
+
ce,
|
|
856
807
|
{
|
|
857
808
|
id: `headers.${m}.active`,
|
|
858
|
-
checked:
|
|
809
|
+
checked: h.value,
|
|
859
810
|
onCheckedChange: (T) => {
|
|
860
|
-
|
|
811
|
+
h.onChange(T);
|
|
861
812
|
}
|
|
862
813
|
}
|
|
863
814
|
)
|
|
@@ -868,19 +819,19 @@ const ss = ({
|
|
|
868
819
|
{
|
|
869
820
|
control: t,
|
|
870
821
|
name: `headers.${m}.name`,
|
|
871
|
-
render: ({ field:
|
|
872
|
-
|
|
822
|
+
render: ({ field: h }) => /* @__PURE__ */ e.jsx(
|
|
823
|
+
ae,
|
|
873
824
|
{
|
|
874
|
-
...
|
|
825
|
+
...h,
|
|
875
826
|
placeholder: "Name",
|
|
876
827
|
className: "border-0 shadow-none bg-transparent text-xs font-mono",
|
|
877
|
-
options: [...
|
|
828
|
+
options: [...p, ...Yn],
|
|
878
829
|
onEnterPress: () => w(m),
|
|
879
830
|
onChange: (T) => {
|
|
880
|
-
|
|
831
|
+
h.onChange(T), i(`headers.${m}.active`, !0);
|
|
881
832
|
},
|
|
882
833
|
ref: (T) => {
|
|
883
|
-
|
|
834
|
+
c.current[m] = T;
|
|
884
835
|
}
|
|
885
836
|
}
|
|
886
837
|
)
|
|
@@ -893,14 +844,14 @@ const ss = ({
|
|
|
893
844
|
{
|
|
894
845
|
control: t,
|
|
895
846
|
name: `headers.${m}.value`,
|
|
896
|
-
render: ({ field:
|
|
897
|
-
|
|
847
|
+
render: ({ field: h }) => (y == null ? void 0 : y.enum) && y.enum.length > 0 ? /* @__PURE__ */ e.jsx(
|
|
848
|
+
ae,
|
|
898
849
|
{
|
|
899
850
|
shouldFilter: !1,
|
|
900
|
-
value:
|
|
851
|
+
value: h.value,
|
|
901
852
|
options: y.enum ?? [],
|
|
902
853
|
onChange: ($) => {
|
|
903
|
-
|
|
854
|
+
h.onChange($), i(`headers.${m}.active`, !0);
|
|
904
855
|
},
|
|
905
856
|
className: "font-mono text-xs border-0"
|
|
906
857
|
}
|
|
@@ -909,12 +860,12 @@ const ss = ({
|
|
|
909
860
|
{
|
|
910
861
|
placeholder: "Value",
|
|
911
862
|
className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
|
|
912
|
-
...
|
|
863
|
+
...h,
|
|
913
864
|
ref: ($) => {
|
|
914
|
-
|
|
865
|
+
d.current[m] = $;
|
|
915
866
|
},
|
|
916
867
|
onKeyDown: ($) => {
|
|
917
|
-
$.key === "Enter" && $.currentTarget.value.trim() &&
|
|
868
|
+
$.key === "Enter" && $.currentTarget.value.trim() && v(m);
|
|
918
869
|
},
|
|
919
870
|
autoComplete: "off"
|
|
920
871
|
}
|
|
@@ -933,44 +884,44 @@ const ss = ({
|
|
|
933
884
|
}
|
|
934
885
|
)
|
|
935
886
|
] })
|
|
936
|
-
] },
|
|
887
|
+
] }, f.id);
|
|
937
888
|
}) }) }),
|
|
938
889
|
/* @__PURE__ */ e.jsx("div", { className: "text-end", children: /* @__PURE__ */ e.jsx(
|
|
939
890
|
W,
|
|
940
891
|
{
|
|
941
892
|
className: "",
|
|
942
|
-
onClick:
|
|
893
|
+
onClick: x,
|
|
943
894
|
type: "button",
|
|
944
895
|
variant: "secondary",
|
|
945
896
|
children: "Add header"
|
|
946
897
|
}
|
|
947
898
|
) })
|
|
948
899
|
] });
|
|
949
|
-
},
|
|
900
|
+
}, ts = vt(
|
|
950
901
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
951
|
-
), _ =
|
|
902
|
+
), _ = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
952
903
|
Nt.Root,
|
|
953
904
|
{
|
|
954
905
|
ref: s,
|
|
955
|
-
className:
|
|
906
|
+
className: g(ts(), t),
|
|
956
907
|
...n
|
|
957
908
|
}
|
|
958
909
|
));
|
|
959
910
|
_.displayName = Nt.Root.displayName;
|
|
960
|
-
const ze =
|
|
911
|
+
const ze = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
961
912
|
Z.Root,
|
|
962
913
|
{
|
|
963
|
-
className:
|
|
914
|
+
className: g("grid gap-2", t),
|
|
964
915
|
...n,
|
|
965
916
|
ref: s
|
|
966
917
|
}
|
|
967
918
|
));
|
|
968
919
|
ze.displayName = Z.Root.displayName;
|
|
969
|
-
const
|
|
920
|
+
const re = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
970
921
|
Z.Item,
|
|
971
922
|
{
|
|
972
923
|
ref: s,
|
|
973
|
-
className:
|
|
924
|
+
className: g(
|
|
974
925
|
"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
975
926
|
t
|
|
976
927
|
),
|
|
@@ -978,12 +929,12 @@ const oe = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
|
978
929
|
children: /* @__PURE__ */ e.jsx(Z.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(Jt, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
979
930
|
}
|
|
980
931
|
));
|
|
981
|
-
|
|
932
|
+
re.displayName = Z.Item.displayName;
|
|
982
933
|
const Rt = ({
|
|
983
934
|
identities: t,
|
|
984
935
|
setValue: n,
|
|
985
936
|
value: s
|
|
986
|
-
}) => /* @__PURE__ */ e.jsx(
|
|
937
|
+
}) => /* @__PURE__ */ e.jsx(le, { className: "w-full overflow-hidden", children: /* @__PURE__ */ e.jsxs(
|
|
987
938
|
ze,
|
|
988
939
|
{
|
|
989
940
|
onValueChange: (a) => n(a),
|
|
@@ -998,7 +949,7 @@ const Rt = ({
|
|
|
998
949
|
className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
|
|
999
950
|
htmlFor: "none",
|
|
1000
951
|
children: [
|
|
1001
|
-
/* @__PURE__ */ e.jsx(
|
|
952
|
+
/* @__PURE__ */ e.jsx(re, { value: B, id: "none", children: "None" }),
|
|
1002
953
|
/* @__PURE__ */ e.jsx(_, { htmlFor: "none", className: "ml-2", children: "None" })
|
|
1003
954
|
]
|
|
1004
955
|
}
|
|
@@ -1008,7 +959,7 @@ const Rt = ({
|
|
|
1008
959
|
{
|
|
1009
960
|
className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
|
|
1010
961
|
children: [
|
|
1011
|
-
/* @__PURE__ */ e.jsx(
|
|
962
|
+
/* @__PURE__ */ e.jsx(re, { value: a.id, id: a.id, children: a.label }),
|
|
1012
963
|
/* @__PURE__ */ e.jsx(_, { htmlFor: a.id, className: "ml-2", children: a.label })
|
|
1013
964
|
]
|
|
1014
965
|
},
|
|
@@ -1016,16 +967,16 @@ const Rt = ({
|
|
|
1016
967
|
))
|
|
1017
968
|
]
|
|
1018
969
|
}
|
|
1019
|
-
) }),
|
|
970
|
+
) }), ns = ({
|
|
1020
971
|
onSubmit: t,
|
|
1021
972
|
identities: n,
|
|
1022
973
|
open: s,
|
|
1023
974
|
onOpenChange: a
|
|
1024
975
|
}) => {
|
|
1025
|
-
const [r, i] = k(void 0), [l,
|
|
976
|
+
const [r, i] = k(void 0), [l, d] = k(!1);
|
|
1026
977
|
return /* @__PURE__ */ e.jsx(Pe, { open: s, onOpenChange: a, children: /* @__PURE__ */ e.jsxs(ke, { children: [
|
|
1027
978
|
/* @__PURE__ */ e.jsx(Ie, { children: "Select an auth identity" }),
|
|
1028
|
-
/* @__PURE__ */ e.jsx(
|
|
979
|
+
/* @__PURE__ */ e.jsx(ft, { children: "Please select an identity for this request." }),
|
|
1029
980
|
/* @__PURE__ */ e.jsx("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ e.jsx(
|
|
1030
981
|
Rt,
|
|
1031
982
|
{
|
|
@@ -1037,12 +988,12 @@ const Rt = ({
|
|
|
1037
988
|
/* @__PURE__ */ e.jsxs(yt, { className: "flex flex-col gap-2", children: [
|
|
1038
989
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1039
990
|
/* @__PURE__ */ e.jsx(
|
|
1040
|
-
|
|
991
|
+
ce,
|
|
1041
992
|
{
|
|
1042
993
|
id: "remember",
|
|
1043
994
|
checked: l,
|
|
1044
|
-
onCheckedChange: (
|
|
1045
|
-
|
|
995
|
+
onCheckedChange: (c) => d(
|
|
996
|
+
c === "indeterminate" ? !1 : !!c
|
|
1046
997
|
)
|
|
1047
998
|
}
|
|
1048
999
|
),
|
|
@@ -1057,7 +1008,7 @@ const Rt = ({
|
|
|
1057
1008
|
)
|
|
1058
1009
|
] })
|
|
1059
1010
|
] }) });
|
|
1060
|
-
},
|
|
1011
|
+
}, ss = ({
|
|
1061
1012
|
control: t,
|
|
1062
1013
|
url: n
|
|
1063
1014
|
}) => {
|
|
@@ -1067,7 +1018,7 @@ const Rt = ({
|
|
|
1067
1018
|
}), a = [...s].sort(
|
|
1068
1019
|
(r, i) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${i.name}}`)
|
|
1069
1020
|
);
|
|
1070
|
-
return /* @__PURE__ */ e.jsx(
|
|
1021
|
+
return /* @__PURE__ */ e.jsx(le, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx(Ve, { children: a.map((r, i) => /* @__PURE__ */ e.jsxs(Fe, { children: [
|
|
1071
1022
|
/* @__PURE__ */ e.jsx(
|
|
1072
1023
|
L,
|
|
1073
1024
|
{
|
|
@@ -1100,10 +1051,10 @@ const Rt = ({
|
|
|
1100
1051
|
}
|
|
1101
1052
|
) })
|
|
1102
1053
|
] }, r.id)) }) });
|
|
1103
|
-
},
|
|
1054
|
+
}, as = De(
|
|
1104
1055
|
"input",
|
|
1105
1056
|
"px-2 bg-transparent h-6 font-mono text-xs m-2"
|
|
1106
|
-
),
|
|
1057
|
+
), rs = ({
|
|
1107
1058
|
control: t,
|
|
1108
1059
|
queryParams: n
|
|
1109
1060
|
}) => {
|
|
@@ -1111,9 +1062,9 @@ const Rt = ({
|
|
|
1111
1062
|
control: t,
|
|
1112
1063
|
name: "queryParams"
|
|
1113
1064
|
}), a = Oe(), r = n.map((i) => !!i.isRequired);
|
|
1114
|
-
return /* @__PURE__ */ e.jsx(
|
|
1115
|
-
const
|
|
1116
|
-
(
|
|
1065
|
+
return /* @__PURE__ */ e.jsx(le, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "w-full ", children: /* @__PURE__ */ e.jsx(Ve, { children: s.map((i, l) => {
|
|
1066
|
+
const d = n.find(
|
|
1067
|
+
(c) => c.name === a.watch(`queryParams.${l}.name`)
|
|
1117
1068
|
);
|
|
1118
1069
|
return /* @__PURE__ */ e.jsxs(Fe, { children: [
|
|
1119
1070
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -1122,13 +1073,13 @@ const Rt = ({
|
|
|
1122
1073
|
{
|
|
1123
1074
|
control: t,
|
|
1124
1075
|
name: `queryParams.${l}.active`,
|
|
1125
|
-
render: ({ field:
|
|
1126
|
-
|
|
1076
|
+
render: ({ field: c }) => /* @__PURE__ */ e.jsx(
|
|
1077
|
+
ce,
|
|
1127
1078
|
{
|
|
1128
1079
|
id: `queryParams.${l}.active`,
|
|
1129
1080
|
className: "mr-2",
|
|
1130
|
-
checked:
|
|
1131
|
-
onCheckedChange:
|
|
1081
|
+
checked: c.value,
|
|
1082
|
+
onCheckedChange: c.onChange
|
|
1132
1083
|
}
|
|
1133
1084
|
)
|
|
1134
1085
|
}
|
|
@@ -1137,24 +1088,24 @@ const Rt = ({
|
|
|
1137
1088
|
L,
|
|
1138
1089
|
{
|
|
1139
1090
|
control: t,
|
|
1140
|
-
render: ({ field:
|
|
1091
|
+
render: ({ field: c }) => r[l] ? /* @__PURE__ */ e.jsx(as, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
1141
1092
|
"label",
|
|
1142
1093
|
{
|
|
1143
1094
|
className: "flex items-center cursor-pointer gap-1",
|
|
1144
1095
|
htmlFor: `queryParams.${l}.active`,
|
|
1145
1096
|
title: r[l] ? "Required field" : void 0,
|
|
1146
1097
|
children: [
|
|
1147
|
-
|
|
1098
|
+
c.value,
|
|
1148
1099
|
r[l] && /* @__PURE__ */ e.jsx("sup", { children: " *" })
|
|
1149
1100
|
]
|
|
1150
1101
|
}
|
|
1151
1102
|
) }) : /* @__PURE__ */ e.jsx(
|
|
1152
|
-
|
|
1103
|
+
ae,
|
|
1153
1104
|
{
|
|
1154
|
-
value:
|
|
1155
|
-
options: n.map((
|
|
1156
|
-
onChange: (
|
|
1157
|
-
|
|
1105
|
+
value: c.value,
|
|
1106
|
+
options: n.map((u) => u.name),
|
|
1107
|
+
onChange: (u) => {
|
|
1108
|
+
c.onChange(u);
|
|
1158
1109
|
},
|
|
1159
1110
|
className: "border-0 font-mono text-xs bg-transparent hover:bg-transparent"
|
|
1160
1111
|
}
|
|
@@ -1167,22 +1118,22 @@ const Rt = ({
|
|
|
1167
1118
|
L,
|
|
1168
1119
|
{
|
|
1169
1120
|
control: t,
|
|
1170
|
-
render: ({ field:
|
|
1171
|
-
|
|
1121
|
+
render: ({ field: c }) => (d == null ? void 0 : d.enum) && d.enum.length > 0 ? /* @__PURE__ */ e.jsx(
|
|
1122
|
+
ae,
|
|
1172
1123
|
{
|
|
1173
|
-
value:
|
|
1174
|
-
options:
|
|
1175
|
-
onChange: (
|
|
1176
|
-
|
|
1124
|
+
value: c.value,
|
|
1125
|
+
options: d.enum ?? [],
|
|
1126
|
+
onChange: (x) => {
|
|
1127
|
+
c.onChange(x), a.setValue(`queryParams.${l}.active`, !0);
|
|
1177
1128
|
},
|
|
1178
1129
|
className: "font-mono text-xs border-0 ring-1 ring-ring"
|
|
1179
1130
|
}
|
|
1180
1131
|
) : /* @__PURE__ */ e.jsx(
|
|
1181
1132
|
qe,
|
|
1182
1133
|
{
|
|
1183
|
-
...
|
|
1184
|
-
onChange: (
|
|
1185
|
-
|
|
1134
|
+
...c,
|
|
1135
|
+
onChange: (x) => {
|
|
1136
|
+
c.onChange(x.target.value), x.target.value.length > 0 && a.setValue(`queryParams.${l}.active`, !0);
|
|
1186
1137
|
},
|
|
1187
1138
|
placeholder: "Enter value",
|
|
1188
1139
|
className: "w-full border-0 shadow-none focus-visible:ring-0 text-xs font-mono"
|
|
@@ -1193,8 +1144,8 @@ const Rt = ({
|
|
|
1193
1144
|
) })
|
|
1194
1145
|
] }, i.id);
|
|
1195
1146
|
}) }) }) });
|
|
1196
|
-
},
|
|
1197
|
-
|
|
1147
|
+
}, os = xt()(
|
|
1148
|
+
gt(
|
|
1198
1149
|
(t, n) => ({
|
|
1199
1150
|
rememberedIdentity: null,
|
|
1200
1151
|
setRememberedIdentity: (s) => t({ rememberedIdentity: s }),
|
|
@@ -1207,14 +1158,14 @@ const Rt = ({
|
|
|
1207
1158
|
storage: Xt(() => sessionStorage)
|
|
1208
1159
|
}
|
|
1209
1160
|
)
|
|
1210
|
-
),
|
|
1161
|
+
), is = ({
|
|
1211
1162
|
open: t,
|
|
1212
1163
|
setOpen: n,
|
|
1213
1164
|
onSignUp: s,
|
|
1214
1165
|
onLogin: a
|
|
1215
1166
|
}) => /* @__PURE__ */ e.jsx(Pe, { open: t, onOpenChange: n, children: /* @__PURE__ */ e.jsxs(ke, { children: [
|
|
1216
1167
|
/* @__PURE__ */ e.jsx(Ie, { children: "Welcome to the Playground!" }),
|
|
1217
|
-
/* @__PURE__ */ e.jsx(
|
|
1168
|
+
/* @__PURE__ */ e.jsx(ft, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
|
|
1218
1169
|
/* @__PURE__ */ e.jsxs(yt, { className: "flex gap-2 sm:justify-between", children: [
|
|
1219
1170
|
/* @__PURE__ */ e.jsx(A, { type: "button", variant: "ghost", onClick: () => n(!1), children: "Skip" }),
|
|
1220
1171
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
|
|
@@ -1230,7 +1181,7 @@ const Rt = ({
|
|
|
1230
1181
|
purple: "text-purple-600",
|
|
1231
1182
|
indigo: "text-indigo-600",
|
|
1232
1183
|
gray: "text-gray-600"
|
|
1233
|
-
},
|
|
1184
|
+
}, ls = {
|
|
1234
1185
|
get: I.green,
|
|
1235
1186
|
post: I.blue,
|
|
1236
1187
|
put: I.yellow,
|
|
@@ -1239,14 +1190,14 @@ const Rt = ({
|
|
|
1239
1190
|
options: I.indigo,
|
|
1240
1191
|
head: I.gray,
|
|
1241
1192
|
trace: I.gray
|
|
1242
|
-
},
|
|
1193
|
+
}, cs = (t) => ls[t.toLocaleLowerCase()] ?? I.gray, ds = ({
|
|
1243
1194
|
method: t,
|
|
1244
1195
|
url: n,
|
|
1245
1196
|
headers: s,
|
|
1246
1197
|
body: a
|
|
1247
1198
|
}) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
|
|
1248
1199
|
/* @__PURE__ */ e.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
|
|
1249
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1200
|
+
/* @__PURE__ */ e.jsx("span", { className: g(cs(t), "font-semibold"), children: t }),
|
|
1250
1201
|
" ",
|
|
1251
1202
|
/* @__PURE__ */ e.jsx("span", { className: "break-all", children: n }),
|
|
1252
1203
|
" ",
|
|
@@ -1271,7 +1222,7 @@ const Rt = ({
|
|
|
1271
1222
|
/* @__PURE__ */ e.jsx(ot, { children: /* @__PURE__ */ e.jsx("div", { className: "pl-0 pt-2", children: /* @__PURE__ */ e.jsx(
|
|
1272
1223
|
"div",
|
|
1273
1224
|
{
|
|
1274
|
-
className:
|
|
1225
|
+
className: g(
|
|
1275
1226
|
"whitespace-pre-wrap break-all bg-muted p-2 rounded-md",
|
|
1276
1227
|
!a && "text-muted-foreground"
|
|
1277
1228
|
),
|
|
@@ -1280,29 +1231,29 @@ const Rt = ({
|
|
|
1280
1231
|
) }) })
|
|
1281
1232
|
] })
|
|
1282
1233
|
] })
|
|
1283
|
-
] }), lt = Le.Root,
|
|
1284
|
-
function
|
|
1234
|
+
] }), lt = Le.Root, ct = Le.CollapsibleTrigger, dt = Le.CollapsibleContent;
|
|
1235
|
+
function Me(t) {
|
|
1285
1236
|
if (t === null) return "null";
|
|
1286
1237
|
if (Array.isArray(t)) {
|
|
1287
1238
|
if (t.length === 0) return "any[]";
|
|
1288
1239
|
const n = t[0];
|
|
1289
|
-
return n === void 0 ? "any[]" : `${
|
|
1240
|
+
return n === void 0 ? "any[]" : `${Me(n)}[]`;
|
|
1290
1241
|
}
|
|
1291
|
-
return typeof t == "object" ?
|
|
1242
|
+
return typeof t == "object" ? ms(t) : typeof t;
|
|
1292
1243
|
}
|
|
1293
|
-
function
|
|
1244
|
+
function ms(t, n = "") {
|
|
1294
1245
|
const s = ["{"];
|
|
1295
1246
|
for (const [a, r] of Object.entries(t)) {
|
|
1296
|
-
const i =
|
|
1247
|
+
const i = Me(r);
|
|
1297
1248
|
s.push(` ${a}: ${i};`);
|
|
1298
1249
|
}
|
|
1299
1250
|
return s.push("}"), s.join(`
|
|
1300
1251
|
`);
|
|
1301
1252
|
}
|
|
1302
|
-
function
|
|
1303
|
-
return { lines: [`type GeneratedType = ${
|
|
1253
|
+
function us(t) {
|
|
1254
|
+
return { lines: [`type GeneratedType = ${Me(t)};`] };
|
|
1304
1255
|
}
|
|
1305
|
-
const
|
|
1256
|
+
const ps = {
|
|
1306
1257
|
200: "OK",
|
|
1307
1258
|
201: "Created",
|
|
1308
1259
|
202: "Accepted",
|
|
@@ -1318,7 +1269,7 @@ const ys = {
|
|
|
1318
1269
|
return `${(t / Math.pow(1e3, n)).toFixed(
|
|
1319
1270
|
n ? 2 : 0
|
|
1320
1271
|
)} ${n ? `${"kMGTPEZY"[n - 1]}B` : "B"}`;
|
|
1321
|
-
},
|
|
1272
|
+
}, hs = (t) => {
|
|
1322
1273
|
var s;
|
|
1323
1274
|
return (s = Object.entries({
|
|
1324
1275
|
"application/json": "json",
|
|
@@ -1331,17 +1282,17 @@ const ys = {
|
|
|
1331
1282
|
}).find(
|
|
1332
1283
|
([a]) => t.includes(a)
|
|
1333
1284
|
)) == null ? void 0 : s[1];
|
|
1334
|
-
},
|
|
1285
|
+
}, xs = (t) => {
|
|
1335
1286
|
var s;
|
|
1336
1287
|
const n = ((s = t.find(([a, r]) => a === "Content-Type")) == null ? void 0 : s[1]) || "";
|
|
1337
|
-
return
|
|
1338
|
-
},
|
|
1288
|
+
return hs(n);
|
|
1289
|
+
}, gs = (t) => {
|
|
1339
1290
|
try {
|
|
1340
1291
|
return JSON.stringify(JSON.parse(t), null, 2);
|
|
1341
1292
|
} catch {
|
|
1342
1293
|
return null;
|
|
1343
1294
|
}
|
|
1344
|
-
},
|
|
1295
|
+
}, fs = (t) => {
|
|
1345
1296
|
const n = [
|
|
1346
1297
|
"Content-Type",
|
|
1347
1298
|
"Content-Length",
|
|
@@ -1355,7 +1306,7 @@ const ys = {
|
|
|
1355
1306
|
const r = n.indexOf(s.toLowerCase()), i = n.indexOf(a.toLowerCase());
|
|
1356
1307
|
return r === i ? 0 : r === -1 ? 1 : i === -1 ? -1 : r - i;
|
|
1357
1308
|
});
|
|
1358
|
-
}, ut = 64e3,
|
|
1309
|
+
}, ut = 64e3, ys = ({
|
|
1359
1310
|
body: t = "",
|
|
1360
1311
|
headers: n,
|
|
1361
1312
|
status: s,
|
|
@@ -1363,33 +1314,33 @@ const ys = {
|
|
|
1363
1314
|
size: r,
|
|
1364
1315
|
url: i
|
|
1365
1316
|
}) => {
|
|
1366
|
-
var
|
|
1367
|
-
const l =
|
|
1368
|
-
|
|
1317
|
+
var f;
|
|
1318
|
+
const l = xs(n), d = gs(t), c = d || t, [u, x] = k(
|
|
1319
|
+
d ? "formatted" : "raw"
|
|
1369
1320
|
), w = Kt({
|
|
1370
|
-
queryKey: ["types",
|
|
1371
|
-
queryFn: async () =>
|
|
1372
|
-
enabled:
|
|
1373
|
-
}),
|
|
1321
|
+
queryKey: ["types", c],
|
|
1322
|
+
queryFn: async () => us(JSON.parse(c)),
|
|
1323
|
+
enabled: u === "types"
|
|
1324
|
+
}), v = fs([...n]), p = r > ut;
|
|
1374
1325
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
|
|
1375
1326
|
/* @__PURE__ */ e.jsxs(lt, { defaultOpen: !0, children: [
|
|
1376
|
-
/* @__PURE__ */ e.jsxs(
|
|
1327
|
+
/* @__PURE__ */ e.jsxs(ct, { className: "flex items-center gap-2 hover:text-primary group", children: [
|
|
1377
1328
|
/* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1378
1329
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
|
|
1379
1330
|
] }),
|
|
1380
|
-
/* @__PURE__ */ e.jsx(
|
|
1381
|
-
|
|
1331
|
+
/* @__PURE__ */ e.jsx(dt, { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2 font-mono text-xs", children: [
|
|
1332
|
+
v.slice(0, 5).map(([m, y]) => /* @__PURE__ */ e.jsxs(q, { children: [
|
|
1382
1333
|
/* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: m }),
|
|
1383
1334
|
/* @__PURE__ */ e.jsx("div", { className: "break-all", children: y })
|
|
1384
1335
|
] }, m)),
|
|
1385
|
-
|
|
1386
|
-
/* @__PURE__ */ e.jsxs(
|
|
1336
|
+
v.length > 5 && /* @__PURE__ */ e.jsxs(lt, { className: "col-span-full grid-cols-subgrid grid", children: [
|
|
1337
|
+
/* @__PURE__ */ e.jsxs(ct, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
|
|
1387
1338
|
/* @__PURE__ */ e.jsx(Q, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1388
1339
|
"Show ",
|
|
1389
|
-
|
|
1340
|
+
v.length - 5,
|
|
1390
1341
|
" more headers"
|
|
1391
1342
|
] }),
|
|
1392
|
-
/* @__PURE__ */ e.jsx(
|
|
1343
|
+
/* @__PURE__ */ e.jsx(dt, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: v.slice(5).map(([m, y]) => /* @__PURE__ */ e.jsxs(q, { children: [
|
|
1393
1344
|
/* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: m }),
|
|
1394
1345
|
/* @__PURE__ */ e.jsx("div", { className: "break-all", children: y })
|
|
1395
1346
|
] }, m)) })
|
|
@@ -1397,7 +1348,7 @@ const ys = {
|
|
|
1397
1348
|
] }) })
|
|
1398
1349
|
] }),
|
|
1399
1350
|
/* @__PURE__ */ e.jsxs(wt, { className: "shadow-none", children: [
|
|
1400
|
-
|
|
1351
|
+
p && /* @__PURE__ */ e.jsxs(jn, { type: "info", className: "my-0 p-2", children: [
|
|
1401
1352
|
"Code highlight is disabled for responses larger than",
|
|
1402
1353
|
" ",
|
|
1403
1354
|
mt(ut)
|
|
@@ -1405,13 +1356,13 @@ const ys = {
|
|
|
1405
1356
|
/* @__PURE__ */ e.jsx(
|
|
1406
1357
|
$n,
|
|
1407
1358
|
{
|
|
1408
|
-
language:
|
|
1359
|
+
language: u === "types" ? "typescript" : u === "raw" ? d ? "plain" : l : "json",
|
|
1409
1360
|
showCopy: "always",
|
|
1410
|
-
disabled:
|
|
1361
|
+
disabled: p,
|
|
1411
1362
|
noBackground: !0,
|
|
1412
1363
|
className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
|
|
1413
|
-
code: (
|
|
1414
|
-
`) :
|
|
1364
|
+
code: (u === "raw" ? t : u === "types" ? (f = w.data) == null ? void 0 : f.lines.join(`
|
|
1365
|
+
`) : c) ?? ""
|
|
1415
1366
|
}
|
|
1416
1367
|
)
|
|
1417
1368
|
] }),
|
|
@@ -1422,7 +1373,7 @@ const ys = {
|
|
|
1422
1373
|
" ",
|
|
1423
1374
|
s,
|
|
1424
1375
|
" ",
|
|
1425
|
-
|
|
1376
|
+
ps[s] ?? ""
|
|
1426
1377
|
] }),
|
|
1427
1378
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1428
1379
|
/* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Time" }),
|
|
@@ -1436,11 +1387,11 @@ const ys = {
|
|
|
1436
1387
|
mt(r)
|
|
1437
1388
|
] })
|
|
1438
1389
|
] }),
|
|
1439
|
-
|
|
1390
|
+
d && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
1440
1391
|
je,
|
|
1441
1392
|
{
|
|
1442
|
-
value:
|
|
1443
|
-
onValueChange: (m) =>
|
|
1393
|
+
value: u,
|
|
1394
|
+
onValueChange: (m) => x(m),
|
|
1444
1395
|
children: [
|
|
1445
1396
|
/* @__PURE__ */ e.jsx(be, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(Ne, { placeholder: "View" }) }),
|
|
1446
1397
|
/* @__PURE__ */ e.jsxs(we, { children: [
|
|
@@ -1453,7 +1404,7 @@ const ys = {
|
|
|
1453
1404
|
) })
|
|
1454
1405
|
] })
|
|
1455
1406
|
] });
|
|
1456
|
-
},
|
|
1407
|
+
}, vs = ({
|
|
1457
1408
|
queryMutation: t,
|
|
1458
1409
|
showPathParamsWarning: n,
|
|
1459
1410
|
showLongRunningWarning: s,
|
|
@@ -1473,13 +1424,13 @@ const ys = {
|
|
|
1473
1424
|
] })
|
|
1474
1425
|
] }) : t.data ? /* @__PURE__ */ e.jsxs(jt, { defaultValue: "response", children: [
|
|
1475
1426
|
/* @__PURE__ */ e.jsxs(bt, { children: [
|
|
1476
|
-
/* @__PURE__ */ e.jsx(
|
|
1477
|
-
/* @__PURE__ */ e.jsxs(
|
|
1427
|
+
/* @__PURE__ */ e.jsx(M, { value: "request", children: "Request" }),
|
|
1428
|
+
/* @__PURE__ */ e.jsxs(M, { value: "response", children: [
|
|
1478
1429
|
"Response",
|
|
1479
1430
|
/* @__PURE__ */ e.jsxs(
|
|
1480
1431
|
"span",
|
|
1481
1432
|
{
|
|
1482
|
-
className:
|
|
1433
|
+
className: g(
|
|
1483
1434
|
"text-xs font-mono ml-1",
|
|
1484
1435
|
r === "2" && "text-green-500",
|
|
1485
1436
|
r === "3" && "text-blue-500",
|
|
@@ -1495,9 +1446,9 @@ const ys = {
|
|
|
1495
1446
|
)
|
|
1496
1447
|
] })
|
|
1497
1448
|
] }),
|
|
1498
|
-
/* @__PURE__ */ e.jsx(
|
|
1499
|
-
/* @__PURE__ */ e.jsx(
|
|
1500
|
-
|
|
1449
|
+
/* @__PURE__ */ e.jsx(H, { value: "request", children: /* @__PURE__ */ e.jsx(ds, { ...t.data.request }) }),
|
|
1450
|
+
/* @__PURE__ */ e.jsx(H, { value: "response", children: /* @__PURE__ */ e.jsx(
|
|
1451
|
+
ys,
|
|
1501
1452
|
{
|
|
1502
1453
|
status: t.data.status,
|
|
1503
1454
|
time: t.data.time,
|
|
@@ -1512,7 +1463,7 @@ const ys = {
|
|
|
1512
1463
|
/* @__PURE__ */ e.jsxs(
|
|
1513
1464
|
"div",
|
|
1514
1465
|
{
|
|
1515
|
-
className:
|
|
1466
|
+
className: g(
|
|
1516
1467
|
"opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
|
|
1517
1468
|
s && "opacity-100 pointer-events-auto"
|
|
1518
1469
|
),
|
|
@@ -1533,7 +1484,7 @@ const ys = {
|
|
|
1533
1484
|
}
|
|
1534
1485
|
)
|
|
1535
1486
|
] }) : /* @__PURE__ */ e.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send a request first to see the response here" }) }) });
|
|
1536
|
-
},
|
|
1487
|
+
}, js = ({
|
|
1537
1488
|
identities: t,
|
|
1538
1489
|
formRef: n,
|
|
1539
1490
|
disabled: s
|
|
@@ -1564,16 +1515,16 @@ const ys = {
|
|
|
1564
1515
|
) }),
|
|
1565
1516
|
/* @__PURE__ */ e.jsx(ze, { value: r, children: /* @__PURE__ */ e.jsx(Ae, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: B, label: "None" }, ...t].map(
|
|
1566
1517
|
(l) => /* @__PURE__ */ e.jsxs(
|
|
1567
|
-
|
|
1518
|
+
Ee,
|
|
1568
1519
|
{
|
|
1569
1520
|
onClick: () => {
|
|
1570
|
-
var
|
|
1571
|
-
i(l.id), a("identity", l.id), (
|
|
1521
|
+
var d;
|
|
1522
|
+
i(l.id), a("identity", l.id), (d = n == null ? void 0 : n.current) == null || d.requestSubmit();
|
|
1572
1523
|
},
|
|
1573
1524
|
onMouseEnter: () => i(l.id),
|
|
1574
1525
|
onMouseLeave: () => i(void 0),
|
|
1575
1526
|
children: [
|
|
1576
|
-
/* @__PURE__ */ e.jsx(
|
|
1527
|
+
/* @__PURE__ */ e.jsx(re, { value: l.id, className: "mr-2" }),
|
|
1577
1528
|
l.label
|
|
1578
1529
|
]
|
|
1579
1530
|
},
|
|
@@ -1588,7 +1539,7 @@ const ys = {
|
|
|
1588
1539
|
XML: "application/xml",
|
|
1589
1540
|
YAML: "application/yaml",
|
|
1590
1541
|
CSV: "text/csv"
|
|
1591
|
-
},
|
|
1542
|
+
}, bs = ({
|
|
1592
1543
|
server: t,
|
|
1593
1544
|
servers: n = [],
|
|
1594
1545
|
url: s,
|
|
@@ -1596,18 +1547,18 @@ const ys = {
|
|
|
1596
1547
|
headers: r = [],
|
|
1597
1548
|
queryParams: i = [],
|
|
1598
1549
|
pathParams: l = [],
|
|
1599
|
-
defaultBody:
|
|
1600
|
-
examples:
|
|
1601
|
-
requiresLogin:
|
|
1602
|
-
onLogin:
|
|
1550
|
+
defaultBody: d = "",
|
|
1551
|
+
examples: c,
|
|
1552
|
+
requiresLogin: u = !1,
|
|
1553
|
+
onLogin: x,
|
|
1603
1554
|
onSignUp: w
|
|
1604
1555
|
}) => {
|
|
1605
1556
|
var Ze, Xe;
|
|
1606
|
-
const { selectedServer:
|
|
1557
|
+
const { selectedServer: v, setSelectedServer: p } = _n(
|
|
1607
1558
|
n.map((o) => ({ url: o }))
|
|
1608
|
-
), [
|
|
1559
|
+
), [f, m] = k(!1), y = Yt(), { setRememberedIdentity: h, getRememberedIdentity: T } = os(), [, $] = rn(), [de, X] = k(!1), [K, E] = k(!1), Y = G(void 0), Be = un(h), { register: Ge, control: ee, handleSubmit: Je, watch: Ue, setValue: V, ...me } = cn({
|
|
1609
1560
|
defaultValues: {
|
|
1610
|
-
body:
|
|
1561
|
+
body: d,
|
|
1611
1562
|
bodyContentType: "JSON",
|
|
1612
1563
|
queryParams: i.map((o) => ({
|
|
1613
1564
|
name: o.name,
|
|
@@ -1642,7 +1593,7 @@ const ys = {
|
|
|
1642
1593
|
)
|
|
1643
1594
|
}
|
|
1644
1595
|
}), C = Ue(), Qe = G(null);
|
|
1645
|
-
|
|
1596
|
+
ne(() => {
|
|
1646
1597
|
C.identity && Be.current(C.identity);
|
|
1647
1598
|
}, [Be, C.identity]);
|
|
1648
1599
|
const ue = ln({
|
|
@@ -1654,7 +1605,7 @@ const ys = {
|
|
|
1654
1605
|
...o.headers.filter((N) => N.name && N.active).map((N) => [N.name, N.value]),
|
|
1655
1606
|
...O ? [["content-type", ve[o.bodyContentType]]] : []
|
|
1656
1607
|
]), P = new Request(
|
|
1657
|
-
Bn(t ??
|
|
1608
|
+
Bn(t ?? v, s, o),
|
|
1658
1609
|
{
|
|
1659
1610
|
method: a.toUpperCase(),
|
|
1660
1611
|
headers: F,
|
|
@@ -1663,22 +1614,22 @@ const ys = {
|
|
|
1663
1614
|
);
|
|
1664
1615
|
o.identity !== B && await ((Ye = (Ke = y.data) == null ? void 0 : Ke.find((N) => N.id === o.identity)) == null ? void 0 : Ye.authorizeRequest(P));
|
|
1665
1616
|
const z = setTimeout(
|
|
1666
|
-
() =>
|
|
1617
|
+
() => E(!0),
|
|
1667
1618
|
3210
|
|
1668
1619
|
);
|
|
1669
|
-
|
|
1620
|
+
Y.current = new AbortController();
|
|
1670
1621
|
try {
|
|
1671
1622
|
const N = await fetch(P, {
|
|
1672
|
-
signal:
|
|
1623
|
+
signal: Y.current.signal
|
|
1673
1624
|
});
|
|
1674
|
-
clearTimeout(z),
|
|
1675
|
-
const
|
|
1625
|
+
clearTimeout(z), E(!1);
|
|
1626
|
+
const Dt = performance.now() - S, et = await N.text(), Vt = new URL(P.url);
|
|
1676
1627
|
return {
|
|
1677
1628
|
status: N.status,
|
|
1678
1629
|
headers: Array.from(N.headers.entries()),
|
|
1679
1630
|
size: et.length,
|
|
1680
1631
|
body: et,
|
|
1681
|
-
time:
|
|
1632
|
+
time: Dt,
|
|
1682
1633
|
request: {
|
|
1683
1634
|
method: P.method.toUpperCase(),
|
|
1684
1635
|
url: P.url,
|
|
@@ -1691,15 +1642,15 @@ const ys = {
|
|
|
1691
1642
|
}
|
|
1692
1643
|
};
|
|
1693
1644
|
} catch (N) {
|
|
1694
|
-
throw clearTimeout(z),
|
|
1645
|
+
throw clearTimeout(z), E(!1), N instanceof TypeError ? new Error(
|
|
1695
1646
|
"The request failed, possibly due to network issues or CORS policy."
|
|
1696
1647
|
) : N;
|
|
1697
1648
|
}
|
|
1698
1649
|
}
|
|
1699
1650
|
});
|
|
1700
|
-
|
|
1651
|
+
ne(() => () => {
|
|
1701
1652
|
var o;
|
|
1702
|
-
(o =
|
|
1653
|
+
(o = Y.current) == null || o.abort();
|
|
1703
1654
|
}, []);
|
|
1704
1655
|
const Lt = /* @__PURE__ */ e.jsx(
|
|
1705
1656
|
zn,
|
|
@@ -1732,23 +1683,23 @@ const ys = {
|
|
|
1732
1683
|
je,
|
|
1733
1684
|
{
|
|
1734
1685
|
onValueChange: (o) => {
|
|
1735
|
-
$(() =>
|
|
1686
|
+
$(() => p(o));
|
|
1736
1687
|
},
|
|
1737
|
-
value:
|
|
1738
|
-
defaultValue:
|
|
1688
|
+
value: v,
|
|
1689
|
+
defaultValue: v,
|
|
1739
1690
|
children: [
|
|
1740
1691
|
/* @__PURE__ */ e.jsx(be, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ e.jsx(Ne, {}) }),
|
|
1741
1692
|
/* @__PURE__ */ e.jsx(we, { children: n.map((o) => /* @__PURE__ */ e.jsx(U, { value: o, children: o.replace(/^https?:\/\//, "").replace(/\/$/, "") }, o)) })
|
|
1742
1693
|
]
|
|
1743
1694
|
}
|
|
1744
|
-
) }),
|
|
1695
|
+
) }), Et = u && !de, te = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
1745
1696
|
a.toUpperCase()
|
|
1746
1697
|
);
|
|
1747
1698
|
return /* @__PURE__ */ e.jsx(
|
|
1748
|
-
|
|
1699
|
+
dn,
|
|
1749
1700
|
{
|
|
1750
1701
|
register: Ge,
|
|
1751
|
-
control:
|
|
1702
|
+
control: ee,
|
|
1752
1703
|
handleSubmit: Je,
|
|
1753
1704
|
watch: Ue,
|
|
1754
1705
|
setValue: V,
|
|
@@ -1764,10 +1715,10 @@ const ys = {
|
|
|
1764
1715
|
className: "relative",
|
|
1765
1716
|
children: [
|
|
1766
1717
|
/* @__PURE__ */ e.jsx(
|
|
1767
|
-
|
|
1718
|
+
ns,
|
|
1768
1719
|
{
|
|
1769
1720
|
identities: y.data ?? [],
|
|
1770
|
-
open:
|
|
1721
|
+
open: f,
|
|
1771
1722
|
onOpenChange: m,
|
|
1772
1723
|
onSubmit: ({ rememberedIdentity: o, identity: S }) => {
|
|
1773
1724
|
o && V("identity", S ?? B), m(!1), ue.mutate({ ...C, identity: S });
|
|
@@ -1775,12 +1726,12 @@ const ys = {
|
|
|
1775
1726
|
}
|
|
1776
1727
|
),
|
|
1777
1728
|
/* @__PURE__ */ e.jsx(
|
|
1778
|
-
|
|
1729
|
+
is,
|
|
1779
1730
|
{
|
|
1780
|
-
open:
|
|
1781
|
-
setOpen: (o) =>
|
|
1731
|
+
open: Et,
|
|
1732
|
+
setOpen: (o) => X(!o),
|
|
1782
1733
|
onSignUp: w,
|
|
1783
|
-
onLogin:
|
|
1734
|
+
onLogin: x
|
|
1784
1735
|
}
|
|
1785
1736
|
),
|
|
1786
1737
|
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
|
|
@@ -1796,7 +1747,7 @@ const ys = {
|
|
|
1796
1747
|
] })
|
|
1797
1748
|
] }),
|
|
1798
1749
|
/* @__PURE__ */ e.jsx(
|
|
1799
|
-
|
|
1750
|
+
js,
|
|
1800
1751
|
{
|
|
1801
1752
|
identities: y.data ?? [],
|
|
1802
1753
|
formRef: Qe,
|
|
@@ -1806,35 +1757,35 @@ const ys = {
|
|
|
1806
1757
|
] }),
|
|
1807
1758
|
/* @__PURE__ */ e.jsxs(jt, { defaultValue: "parameters", children: [
|
|
1808
1759
|
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ e.jsxs(bt, { children: [
|
|
1809
|
-
/* @__PURE__ */ e.jsxs(
|
|
1760
|
+
/* @__PURE__ */ e.jsxs(M, { value: "parameters", children: [
|
|
1810
1761
|
"Parameters",
|
|
1811
1762
|
(C.pathParams.some((o) => o.value !== "") || C.queryParams.some((o) => o.active)) && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1812
1763
|
] }),
|
|
1813
|
-
/* @__PURE__ */ e.jsxs(
|
|
1764
|
+
/* @__PURE__ */ e.jsxs(M, { value: "headers", children: [
|
|
1814
1765
|
"Headers",
|
|
1815
1766
|
C.headers.filter((o) => o.active).length > 0 && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1816
1767
|
] }),
|
|
1817
|
-
/* @__PURE__ */ e.jsxs(
|
|
1768
|
+
/* @__PURE__ */ e.jsxs(M, { value: "auth", children: [
|
|
1818
1769
|
"Auth",
|
|
1819
1770
|
C.identity !== B && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1820
1771
|
] }),
|
|
1821
|
-
/* @__PURE__ */ e.jsxs(
|
|
1772
|
+
/* @__PURE__ */ e.jsxs(M, { value: "body", children: [
|
|
1822
1773
|
"Body",
|
|
1823
1774
|
C.body && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1824
1775
|
] })
|
|
1825
1776
|
] }) }),
|
|
1826
|
-
/* @__PURE__ */ e.jsx(
|
|
1827
|
-
/* @__PURE__ */ e.jsxs(
|
|
1777
|
+
/* @__PURE__ */ e.jsx(H, { value: "headers", children: /* @__PURE__ */ e.jsx(es, { control: ee, headers: r }) }),
|
|
1778
|
+
/* @__PURE__ */ e.jsxs(H, { value: "parameters", children: [
|
|
1828
1779
|
l.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1829
1780
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
|
|
1830
|
-
/* @__PURE__ */ e.jsx(
|
|
1781
|
+
/* @__PURE__ */ e.jsx(ss, { url: s, control: ee })
|
|
1831
1782
|
] }),
|
|
1832
1783
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1833
1784
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
|
|
1834
|
-
/* @__PURE__ */ e.jsx(
|
|
1785
|
+
/* @__PURE__ */ e.jsx(rs, { control: ee, queryParams: i })
|
|
1835
1786
|
] })
|
|
1836
1787
|
] }),
|
|
1837
|
-
/* @__PURE__ */ e.jsxs(
|
|
1788
|
+
/* @__PURE__ */ e.jsxs(H, { value: "body", children: [
|
|
1838
1789
|
!["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
1839
1790
|
a.toUpperCase()
|
|
1840
1791
|
) && /* @__PURE__ */ e.jsxs(Se, { className: "mb-2", children: [
|
|
@@ -1846,15 +1797,15 @@ const ys = {
|
|
|
1846
1797
|
Ct,
|
|
1847
1798
|
{
|
|
1848
1799
|
...Ge("body"),
|
|
1849
|
-
className:
|
|
1800
|
+
className: g(
|
|
1850
1801
|
"border w-full rounded-lg bg-muted/40 p-2 h-64 font-mono text-[13px]",
|
|
1851
|
-
!
|
|
1802
|
+
!te && "h-20 bg-muted"
|
|
1852
1803
|
),
|
|
1853
|
-
placeholder:
|
|
1854
|
-
disabled: !
|
|
1804
|
+
placeholder: te ? void 0 : "This request does not support a body",
|
|
1805
|
+
disabled: !te
|
|
1855
1806
|
}
|
|
1856
1807
|
),
|
|
1857
|
-
|
|
1808
|
+
te && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
|
|
1858
1809
|
/* @__PURE__ */ e.jsxs(
|
|
1859
1810
|
je,
|
|
1860
1811
|
{
|
|
@@ -1869,10 +1820,10 @@ const ys = {
|
|
|
1869
1820
|
]
|
|
1870
1821
|
}
|
|
1871
1822
|
),
|
|
1872
|
-
|
|
1823
|
+
c && c.length > 0 && /* @__PURE__ */ e.jsx(
|
|
1873
1824
|
Zn,
|
|
1874
1825
|
{
|
|
1875
|
-
examples:
|
|
1826
|
+
examples: c,
|
|
1876
1827
|
onSelect: (o, S) => {
|
|
1877
1828
|
var F;
|
|
1878
1829
|
V(
|
|
@@ -1888,7 +1839,7 @@ const ys = {
|
|
|
1888
1839
|
)
|
|
1889
1840
|
] })
|
|
1890
1841
|
] }),
|
|
1891
|
-
/* @__PURE__ */ e.jsx(
|
|
1842
|
+
/* @__PURE__ */ e.jsx(H, { value: "auth", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1892
1843
|
((Xe = y.data) == null ? void 0 : Xe.length) === 0 && /* @__PURE__ */ e.jsxs(Se, { children: [
|
|
1893
1844
|
/* @__PURE__ */ e.jsx(nt, { className: "w-4 h-4" }),
|
|
1894
1845
|
/* @__PURE__ */ e.jsx(Te, { children: "Authentication" }),
|
|
@@ -1906,18 +1857,18 @@ const ys = {
|
|
|
1906
1857
|
] })
|
|
1907
1858
|
] }),
|
|
1908
1859
|
/* @__PURE__ */ e.jsx(
|
|
1909
|
-
|
|
1860
|
+
vs,
|
|
1910
1861
|
{
|
|
1911
1862
|
queryMutation: ue,
|
|
1912
1863
|
showPathParamsWarning: C.pathParams.some(
|
|
1913
1864
|
(o) => o.value === ""
|
|
1914
1865
|
),
|
|
1915
|
-
showLongRunningWarning:
|
|
1866
|
+
showLongRunningWarning: K,
|
|
1916
1867
|
onCancel: () => {
|
|
1917
1868
|
var o;
|
|
1918
|
-
(o =
|
|
1869
|
+
(o = Y.current) == null || o.abort(
|
|
1919
1870
|
"Request cancelled by the user"
|
|
1920
|
-
),
|
|
1871
|
+
), E(!1);
|
|
1921
1872
|
}
|
|
1922
1873
|
}
|
|
1923
1874
|
)
|
|
@@ -1927,7 +1878,7 @@ const ys = {
|
|
|
1927
1878
|
)
|
|
1928
1879
|
}
|
|
1929
1880
|
);
|
|
1930
|
-
},
|
|
1881
|
+
}, Ns = ({
|
|
1931
1882
|
className: t,
|
|
1932
1883
|
size: n = 16
|
|
1933
1884
|
}) => /* @__PURE__ */ e.jsx(
|
|
@@ -1948,7 +1899,7 @@ const ys = {
|
|
|
1948
1899
|
}
|
|
1949
1900
|
)
|
|
1950
1901
|
}
|
|
1951
|
-
),
|
|
1902
|
+
), ws = (t) => {
|
|
1952
1903
|
const [n, s] = k(!1);
|
|
1953
1904
|
return /* @__PURE__ */ e.jsxs(Pe, { onOpenChange: (a) => s(a), children: [
|
|
1954
1905
|
/* @__PURE__ */ e.jsx(on, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
|
|
@@ -1958,7 +1909,7 @@ const ys = {
|
|
|
1958
1909
|
className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-sm hover:bg-primary/80",
|
|
1959
1910
|
children: [
|
|
1960
1911
|
"Test",
|
|
1961
|
-
/* @__PURE__ */ e.jsx(
|
|
1912
|
+
/* @__PURE__ */ e.jsx(Ns, { size: 14 })
|
|
1962
1913
|
]
|
|
1963
1914
|
}
|
|
1964
1915
|
) }),
|
|
@@ -1969,12 +1920,12 @@ const ys = {
|
|
|
1969
1920
|
"aria-describedby": void 0,
|
|
1970
1921
|
children: [
|
|
1971
1922
|
/* @__PURE__ */ e.jsx(nn, { children: /* @__PURE__ */ e.jsx(Ie, { children: "Playground" }) }),
|
|
1972
|
-
n && /* @__PURE__ */ e.jsx(
|
|
1923
|
+
n && /* @__PURE__ */ e.jsx(bs, { ...t })
|
|
1973
1924
|
]
|
|
1974
1925
|
}
|
|
1975
1926
|
)
|
|
1976
1927
|
] });
|
|
1977
|
-
},
|
|
1928
|
+
}, Cs = {
|
|
1978
1929
|
get: "green",
|
|
1979
1930
|
post: "blue",
|
|
1980
1931
|
put: "yellow",
|
|
@@ -2004,14 +1955,14 @@ const ys = {
|
|
|
2004
1955
|
href: `${n}#${i.slug}`,
|
|
2005
1956
|
badge: {
|
|
2006
1957
|
label: i.method,
|
|
2007
|
-
color:
|
|
1958
|
+
color: Cs[i.method.toLowerCase()],
|
|
2008
1959
|
invert: !0
|
|
2009
1960
|
}
|
|
2010
1961
|
}))
|
|
2011
1962
|
}), ht = (t) => ({
|
|
2012
1963
|
path: t.routePath,
|
|
2013
1964
|
async lazy() {
|
|
2014
|
-
const { OasProvider: n } = await import("./OasProvider-
|
|
1965
|
+
const { OasProvider: n } = await import("./OasProvider-DOs0v9u7.js");
|
|
2015
1966
|
return {
|
|
2016
1967
|
element: /* @__PURE__ */ e.jsx(
|
|
2017
1968
|
n,
|
|
@@ -2025,19 +1976,19 @@ const ys = {
|
|
|
2025
1976
|
};
|
|
2026
1977
|
},
|
|
2027
1978
|
children: t.routes
|
|
2028
|
-
}),
|
|
1979
|
+
}), He = ({
|
|
2029
1980
|
path: t,
|
|
2030
1981
|
tag: n,
|
|
2031
1982
|
untagged: s
|
|
2032
1983
|
}) => ({
|
|
2033
1984
|
path: t,
|
|
2034
1985
|
async lazy() {
|
|
2035
|
-
const { OperationList: a } = await import("./OperationList-
|
|
1986
|
+
const { OperationList: a } = await import("./OperationList-CKac6iap.js");
|
|
2036
1987
|
return { element: /* @__PURE__ */ e.jsx(a, { tag: n, untagged: s }) };
|
|
2037
1988
|
}
|
|
2038
1989
|
}), Ot = (t) => [
|
|
2039
1990
|
// Category without tagged operations
|
|
2040
|
-
|
|
1991
|
+
He({
|
|
2041
1992
|
path: R(t, _e),
|
|
2042
1993
|
untagged: !0
|
|
2043
1994
|
}),
|
|
@@ -2045,25 +1996,25 @@ const ys = {
|
|
|
2045
1996
|
{
|
|
2046
1997
|
path: R(t, "~schemas"),
|
|
2047
1998
|
lazy: async () => {
|
|
2048
|
-
const { SchemaList: n } = await import("./SchemaList-
|
|
1999
|
+
const { SchemaList: n } = await import("./SchemaList-BTX2mRMW.js");
|
|
2049
2000
|
return { element: /* @__PURE__ */ e.jsx(n, {}) };
|
|
2050
2001
|
}
|
|
2051
2002
|
}
|
|
2052
|
-
],
|
|
2003
|
+
], Ss = (t, n) => {
|
|
2053
2004
|
const s = R(t, n.at(0) ?? _e);
|
|
2054
2005
|
return [
|
|
2055
2006
|
// Redirect to first tag on the index route
|
|
2056
2007
|
{ index: !0, loader: () => Zt(s) },
|
|
2057
2008
|
// Create routes for each tag
|
|
2058
2009
|
...n.map(
|
|
2059
|
-
(a) =>
|
|
2010
|
+
(a) => He({
|
|
2060
2011
|
path: R(t, a),
|
|
2061
2012
|
tag: a
|
|
2062
2013
|
})
|
|
2063
2014
|
),
|
|
2064
2015
|
...Ot(t)
|
|
2065
2016
|
];
|
|
2066
|
-
}, qt = (t) => t.type === "file" ? Object.keys(t.input) : [],
|
|
2017
|
+
}, qt = (t) => t.type === "file" ? Object.keys(t.input) : [], Ts = ({
|
|
2067
2018
|
basePath: t,
|
|
2068
2019
|
config: n,
|
|
2069
2020
|
client: s
|
|
@@ -2075,7 +2026,7 @@ const ys = {
|
|
|
2075
2026
|
basePath: t,
|
|
2076
2027
|
routePath: t,
|
|
2077
2028
|
routes: [
|
|
2078
|
-
|
|
2029
|
+
He({ path: t + "/:tag?" }),
|
|
2079
2030
|
...Ot(t)
|
|
2080
2031
|
],
|
|
2081
2032
|
client: s,
|
|
@@ -2084,17 +2035,17 @@ const ys = {
|
|
|
2084
2035
|
];
|
|
2085
2036
|
const r = qt(n);
|
|
2086
2037
|
return (r.length > 1 ? [void 0, ...r] : [void 0]).map((l) => {
|
|
2087
|
-
const
|
|
2038
|
+
const d = R(t, l);
|
|
2088
2039
|
return ht({
|
|
2089
2040
|
basePath: t,
|
|
2090
2041
|
version: l,
|
|
2091
|
-
routePath:
|
|
2092
|
-
routes:
|
|
2042
|
+
routePath: d,
|
|
2043
|
+
routes: Ss(d, a),
|
|
2093
2044
|
client: s,
|
|
2094
2045
|
config: n
|
|
2095
2046
|
});
|
|
2096
2047
|
});
|
|
2097
|
-
},
|
|
2048
|
+
}, $s = Vn(`
|
|
2098
2049
|
query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
|
|
2099
2050
|
schema(input: $input, type: $type) {
|
|
2100
2051
|
tags {
|
|
@@ -2116,7 +2067,7 @@ const ys = {
|
|
|
2116
2067
|
}
|
|
2117
2068
|
}
|
|
2118
2069
|
}
|
|
2119
|
-
`), _e = "~endpoints",
|
|
2070
|
+
`), _e = "~endpoints", aa = (t) => {
|
|
2120
2071
|
const n = R(t.navigationId ?? "/reference"), s = new kn(t);
|
|
2121
2072
|
return {
|
|
2122
2073
|
getHead: () => {
|
|
@@ -2139,31 +2090,31 @@ const ys = {
|
|
|
2139
2090
|
server: r,
|
|
2140
2091
|
method: i,
|
|
2141
2092
|
url: l,
|
|
2142
|
-
children:
|
|
2143
|
-
...
|
|
2093
|
+
children: d,
|
|
2094
|
+
...c
|
|
2144
2095
|
}) => {
|
|
2145
|
-
const
|
|
2096
|
+
const u = en();
|
|
2146
2097
|
if (!r)
|
|
2147
2098
|
throw new Error("Server is required");
|
|
2148
|
-
return a && !
|
|
2099
|
+
return a && !u.isAuthenticated ? /* @__PURE__ */ e.jsxs(
|
|
2149
2100
|
W,
|
|
2150
2101
|
{
|
|
2151
2102
|
className: "gap-2 items-center",
|
|
2152
2103
|
variant: "outline",
|
|
2153
|
-
onClick:
|
|
2104
|
+
onClick: u.login,
|
|
2154
2105
|
children: [
|
|
2155
2106
|
"Login to open in Playground ",
|
|
2156
2107
|
/* @__PURE__ */ e.jsx(Qt, { size: 16 })
|
|
2157
2108
|
]
|
|
2158
2109
|
}
|
|
2159
2110
|
) : /* @__PURE__ */ e.jsx(
|
|
2160
|
-
|
|
2111
|
+
ws,
|
|
2161
2112
|
{
|
|
2162
2113
|
url: l ?? "/",
|
|
2163
2114
|
method: i ?? "get",
|
|
2164
2115
|
server: r,
|
|
2165
|
-
...
|
|
2166
|
-
children: /* @__PURE__ */ e.jsx(W, { className: "gap-2 items-center", variant: "outline", children:
|
|
2116
|
+
...c,
|
|
2117
|
+
children: /* @__PURE__ */ e.jsx(W, { className: "gap-2 items-center", variant: "outline", children: d ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2167
2118
|
"Open in Playground ",
|
|
2168
2119
|
/* @__PURE__ */ e.jsx(Wt, { size: 16 })
|
|
2169
2120
|
] }) })
|
|
@@ -2172,7 +2123,7 @@ const ys = {
|
|
|
2172
2123
|
}
|
|
2173
2124
|
}),
|
|
2174
2125
|
getSidebar: async (a, r) => {
|
|
2175
|
-
var l,
|
|
2126
|
+
var l, d, c, u;
|
|
2176
2127
|
if (!st({ path: n, end: !1 }, a))
|
|
2177
2128
|
return [];
|
|
2178
2129
|
const i = st(
|
|
@@ -2180,54 +2131,54 @@ const ys = {
|
|
|
2180
2131
|
a
|
|
2181
2132
|
);
|
|
2182
2133
|
try {
|
|
2183
|
-
const
|
|
2184
|
-
queryKey: ["sidebar-operations-query",
|
|
2185
|
-
queryFn: () => s.fetch(
|
|
2186
|
-
}), m =
|
|
2187
|
-
var
|
|
2188
|
-
if (!
|
|
2189
|
-
const T = R(n,
|
|
2134
|
+
const x = i == null ? void 0 : i.params.version, w = x ?? qt(t).at(0), { type: v } = t, p = v === "file" ? t.input[w] : t.input, f = await r.queryClient.ensureQueryData({
|
|
2135
|
+
queryKey: ["sidebar-operations-query", p],
|
|
2136
|
+
queryFn: () => s.fetch($s, { type: v, input: p })
|
|
2137
|
+
}), m = f.schema.tags.flatMap((h) => {
|
|
2138
|
+
var X, K, E;
|
|
2139
|
+
if (!h.name || h.operations.length === 0) return [];
|
|
2140
|
+
const T = R(n, x, h.slug), $ = ((X = h.extensions) == null ? void 0 : X["x-zudoku-collapsed"]) ?? !((K = t.options) != null && K.expandAllTags), de = ((E = h.extensions) == null ? void 0 : E["x-zudoku-collapsible"]) ?? !0;
|
|
2190
2141
|
return pt({
|
|
2191
|
-
label:
|
|
2142
|
+
label: h.name,
|
|
2192
2143
|
path: T,
|
|
2193
|
-
operations:
|
|
2144
|
+
operations: h.operations,
|
|
2194
2145
|
collapsed: $,
|
|
2195
|
-
collapsible:
|
|
2146
|
+
collapsible: de
|
|
2196
2147
|
});
|
|
2197
|
-
}), y = (l =
|
|
2198
|
-
(
|
|
2148
|
+
}), y = (l = f.schema.tags.find(
|
|
2149
|
+
(h) => !h.name
|
|
2199
2150
|
)) == null ? void 0 : l.operations;
|
|
2200
2151
|
return y && m.push(
|
|
2201
2152
|
pt({
|
|
2202
2153
|
label: "Other endpoints",
|
|
2203
|
-
path: R(n,
|
|
2154
|
+
path: R(n, x, _e),
|
|
2204
2155
|
operations: y,
|
|
2205
|
-
collapsed: !((
|
|
2156
|
+
collapsed: !((d = t.options) != null && d.expandAllTags)
|
|
2206
2157
|
})
|
|
2207
|
-
), (
|
|
2158
|
+
), (u = (c = f.schema.components) == null ? void 0 : c.schemas) != null && u.length && m.push({
|
|
2208
2159
|
type: "link",
|
|
2209
2160
|
label: "Schemas",
|
|
2210
|
-
href: R(n,
|
|
2161
|
+
href: R(n, x, "~schemas")
|
|
2211
2162
|
}), m;
|
|
2212
2163
|
} catch {
|
|
2213
2164
|
return [];
|
|
2214
2165
|
}
|
|
2215
2166
|
},
|
|
2216
|
-
getRoutes: () =>
|
|
2167
|
+
getRoutes: () => Ts({ basePath: n, config: t, client: s })
|
|
2217
2168
|
};
|
|
2218
2169
|
};
|
|
2219
2170
|
export {
|
|
2220
2171
|
lt as C,
|
|
2221
|
-
|
|
2172
|
+
ws as P,
|
|
2222
2173
|
_e as U,
|
|
2223
|
-
|
|
2224
|
-
|
|
2174
|
+
ct as a,
|
|
2175
|
+
dt as b,
|
|
2225
2176
|
Vn as c,
|
|
2226
2177
|
St as d,
|
|
2227
2178
|
zn as e,
|
|
2228
2179
|
qt as g,
|
|
2229
|
-
|
|
2230
|
-
|
|
2180
|
+
cs as m,
|
|
2181
|
+
aa as o,
|
|
2231
2182
|
_n as u
|
|
2232
2183
|
};
|
|
2233
|
-
//# sourceMappingURL=index-
|
|
2184
|
+
//# sourceMappingURL=index-DuB48L78.js.map
|