@motiadev/plugin-endpoint 0.14.0-beta.165-246284 → 0.14.0-beta.165-076789
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/index.css +3 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +852 -952
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -16,25 +16,21 @@ import { atomDark, oneLight } from "react-syntax-highlighter/dist/esm/styles/pri
|
|
|
16
16
|
|
|
17
17
|
//#region src/components/endpoints-search.tsx
|
|
18
18
|
const EndpointsSearch = (t0) => {
|
|
19
|
-
const $ = c(
|
|
20
|
-
if ($[0] !== "b04fe9fcf2dc81964e7b2f3a7fac01e0ffd66006443485e8e32bf9d2d88776cf") {
|
|
21
|
-
for (let $i = 0; $i < 16; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
22
|
-
$[0] = "b04fe9fcf2dc81964e7b2f3a7fac01e0ffd66006443485e8e32bf9d2d88776cf";
|
|
23
|
-
}
|
|
19
|
+
const $ = c(15);
|
|
24
20
|
const { value, onChange, onClear } = t0;
|
|
25
21
|
let t1;
|
|
26
|
-
if ($[
|
|
22
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
27
23
|
t1 = /* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" });
|
|
28
|
-
$[
|
|
29
|
-
} else t1 = $[
|
|
24
|
+
$[0] = t1;
|
|
25
|
+
} else t1 = $[0];
|
|
30
26
|
let t2;
|
|
31
|
-
if ($[
|
|
27
|
+
if ($[1] !== onChange) {
|
|
32
28
|
t2 = (e) => onChange(e.target.value);
|
|
33
|
-
$[
|
|
34
|
-
$[
|
|
35
|
-
} else t2 = $[
|
|
29
|
+
$[1] = onChange;
|
|
30
|
+
$[2] = t2;
|
|
31
|
+
} else t2 = $[2];
|
|
36
32
|
let t3;
|
|
37
|
-
if ($[
|
|
33
|
+
if ($[3] !== t2 || $[4] !== value) {
|
|
38
34
|
t3 = /* @__PURE__ */ jsx(Input, {
|
|
39
35
|
variant: "shade",
|
|
40
36
|
value,
|
|
@@ -42,34 +38,34 @@ const EndpointsSearch = (t0) => {
|
|
|
42
38
|
className: "px-9! font-medium",
|
|
43
39
|
placeholder: "Search by Method or Path"
|
|
44
40
|
});
|
|
45
|
-
$[
|
|
46
|
-
$[
|
|
47
|
-
$[
|
|
48
|
-
} else t3 = $[
|
|
41
|
+
$[3] = t2;
|
|
42
|
+
$[4] = value;
|
|
43
|
+
$[5] = t3;
|
|
44
|
+
} else t3 = $[5];
|
|
49
45
|
const t4 = value !== "";
|
|
50
46
|
const t5 = value === "";
|
|
51
47
|
let t6;
|
|
52
|
-
if ($[
|
|
48
|
+
if ($[6] !== t4 || $[7] !== t5) {
|
|
53
49
|
t6 = cn("cursor-pointer absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50 hover:text-muted-foreground", {
|
|
54
50
|
visible: t4,
|
|
55
51
|
invisible: t5
|
|
56
52
|
});
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
60
|
-
} else t6 = $[
|
|
53
|
+
$[6] = t4;
|
|
54
|
+
$[7] = t5;
|
|
55
|
+
$[8] = t6;
|
|
56
|
+
} else t6 = $[8];
|
|
61
57
|
let t7;
|
|
62
|
-
if ($[
|
|
58
|
+
if ($[9] !== onClear || $[10] !== t6) {
|
|
63
59
|
t7 = /* @__PURE__ */ jsx(X, {
|
|
64
60
|
className: t6,
|
|
65
61
|
onClick: onClear
|
|
66
62
|
});
|
|
67
|
-
$[
|
|
68
|
-
$[
|
|
69
|
-
$[
|
|
70
|
-
} else t7 = $[
|
|
63
|
+
$[9] = onClear;
|
|
64
|
+
$[10] = t6;
|
|
65
|
+
$[11] = t7;
|
|
66
|
+
} else t7 = $[11];
|
|
71
67
|
let t8;
|
|
72
|
-
if ($[
|
|
68
|
+
if ($[12] !== t3 || $[13] !== t7) {
|
|
73
69
|
t8 = /* @__PURE__ */ jsx("div", {
|
|
74
70
|
className: "p-2 border-b gap-4",
|
|
75
71
|
"data-testid": "endpoints-search-container",
|
|
@@ -82,10 +78,10 @@ const EndpointsSearch = (t0) => {
|
|
|
82
78
|
]
|
|
83
79
|
})
|
|
84
80
|
});
|
|
85
|
-
$[
|
|
86
|
-
$[
|
|
87
|
-
$[
|
|
88
|
-
} else t8 = $[
|
|
81
|
+
$[12] = t3;
|
|
82
|
+
$[13] = t7;
|
|
83
|
+
$[14] = t8;
|
|
84
|
+
} else t8 = $[14];
|
|
89
85
|
return t8;
|
|
90
86
|
};
|
|
91
87
|
|
|
@@ -104,76 +100,64 @@ const getMethodStyles = (method) => {
|
|
|
104
100
|
}
|
|
105
101
|
};
|
|
106
102
|
const EndpointBadge = memo((t0) => {
|
|
107
|
-
const $ = c(
|
|
108
|
-
if ($[0] !== "1017d069da7af8d79b772819cd6ea273bc02186be5bf8c70750727fd63506daa") {
|
|
109
|
-
for (let $i = 0; $i < 11; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
110
|
-
$[0] = "1017d069da7af8d79b772819cd6ea273bc02186be5bf8c70750727fd63506daa";
|
|
111
|
-
}
|
|
103
|
+
const $ = c(10);
|
|
112
104
|
let className;
|
|
113
105
|
let props;
|
|
114
106
|
let variant;
|
|
115
|
-
if ($[
|
|
107
|
+
if ($[0] !== t0) {
|
|
116
108
|
({className, variant, ...props} = t0);
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
109
|
+
$[0] = t0;
|
|
110
|
+
$[1] = className;
|
|
111
|
+
$[2] = props;
|
|
112
|
+
$[3] = variant;
|
|
121
113
|
} else {
|
|
122
|
-
className = $[
|
|
123
|
-
props = $[
|
|
124
|
-
variant = $[
|
|
114
|
+
className = $[1];
|
|
115
|
+
props = $[2];
|
|
116
|
+
variant = $[3];
|
|
125
117
|
}
|
|
126
118
|
let t1;
|
|
127
|
-
if ($[
|
|
119
|
+
if ($[4] !== className || $[5] !== variant) {
|
|
128
120
|
t1 = cn("rounded-lg px-2 py-0.5 text-xs font-mono font-bold transition-colors", getMethodStyles(variant), className);
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
} else t1 = $[
|
|
121
|
+
$[4] = className;
|
|
122
|
+
$[5] = variant;
|
|
123
|
+
$[6] = t1;
|
|
124
|
+
} else t1 = $[6];
|
|
133
125
|
let t2;
|
|
134
|
-
if ($[
|
|
126
|
+
if ($[7] !== props || $[8] !== t1) {
|
|
135
127
|
t2 = /* @__PURE__ */ jsx("div", {
|
|
136
128
|
className: t1,
|
|
137
129
|
...props
|
|
138
130
|
});
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
} else t2 = $[
|
|
131
|
+
$[7] = props;
|
|
132
|
+
$[8] = t1;
|
|
133
|
+
$[9] = t2;
|
|
134
|
+
} else t2 = $[9];
|
|
143
135
|
return t2;
|
|
144
136
|
});
|
|
145
137
|
|
|
146
138
|
//#endregion
|
|
147
139
|
//#region src/components/endpoint-path.tsx
|
|
148
140
|
const PathSeparator = () => {
|
|
149
|
-
const $ = c(
|
|
150
|
-
if ($[0] !== "603f796b38bb9b15093370b94bc9b921b7621c9f6baa94432316d5a5ca450c9c") {
|
|
151
|
-
for (let $i = 0; $i < 2; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
152
|
-
$[0] = "603f796b38bb9b15093370b94bc9b921b7621c9f6baa94432316d5a5ca450c9c";
|
|
153
|
-
}
|
|
141
|
+
const $ = c(1);
|
|
154
142
|
let t0;
|
|
155
|
-
if ($[
|
|
143
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
156
144
|
t0 = /* @__PURE__ */ jsx("div", {
|
|
157
145
|
className: "text-muted-foreground",
|
|
158
146
|
children: "/"
|
|
159
147
|
});
|
|
160
|
-
$[
|
|
161
|
-
} else t0 = $[
|
|
148
|
+
$[0] = t0;
|
|
149
|
+
} else t0 = $[0];
|
|
162
150
|
return t0;
|
|
163
151
|
};
|
|
164
152
|
const EndpointPath = (t0) => {
|
|
165
|
-
const $ = c(
|
|
166
|
-
if ($[0] !== "603f796b38bb9b15093370b94bc9b921b7621c9f6baa94432316d5a5ca450c9c") {
|
|
167
|
-
for (let $i = 0; $i < 14; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
168
|
-
$[0] = "603f796b38bb9b15093370b94bc9b921b7621c9f6baa94432316d5a5ca450c9c";
|
|
169
|
-
}
|
|
153
|
+
const $ = c(13);
|
|
170
154
|
const { method, path } = t0;
|
|
171
155
|
let t1;
|
|
172
|
-
if ($[
|
|
156
|
+
if ($[0] !== path) {
|
|
173
157
|
const parts = path.split("/").filter(Boolean);
|
|
174
158
|
const partsLength = parts.length - 1;
|
|
175
159
|
let t2$1;
|
|
176
|
-
if ($[
|
|
160
|
+
if ($[2] !== partsLength) {
|
|
177
161
|
t2$1 = (part, index) => {
|
|
178
162
|
const isLast = index === partsLength;
|
|
179
163
|
const key = `part-${part}-${index}`;
|
|
@@ -184,78 +168,74 @@ const EndpointPath = (t0) => {
|
|
|
184
168
|
}, key), separator];
|
|
185
169
|
return [/* @__PURE__ */ jsx("div", { children: part }, key), separator];
|
|
186
170
|
};
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
} else t2$1 = $[
|
|
171
|
+
$[2] = partsLength;
|
|
172
|
+
$[3] = t2$1;
|
|
173
|
+
} else t2$1 = $[3];
|
|
190
174
|
t1 = parts.flatMap(t2$1);
|
|
191
|
-
$[
|
|
192
|
-
$[
|
|
193
|
-
} else t1 = $[
|
|
175
|
+
$[0] = path;
|
|
176
|
+
$[1] = t1;
|
|
177
|
+
} else t1 = $[1];
|
|
194
178
|
const pathView = t1;
|
|
195
179
|
const t2 = method;
|
|
196
180
|
let t3;
|
|
197
|
-
if ($[
|
|
181
|
+
if ($[4] !== method || $[5] !== t2) {
|
|
198
182
|
t3 = /* @__PURE__ */ jsx(EndpointBadge, {
|
|
199
183
|
variant: t2,
|
|
200
184
|
children: method
|
|
201
185
|
});
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
} else t3 = $[
|
|
186
|
+
$[4] = method;
|
|
187
|
+
$[5] = t2;
|
|
188
|
+
$[6] = t3;
|
|
189
|
+
} else t3 = $[6];
|
|
206
190
|
let t4;
|
|
207
|
-
if ($[
|
|
191
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
208
192
|
t4 = /* @__PURE__ */ jsx(PathSeparator, {});
|
|
209
|
-
$[
|
|
210
|
-
} else t4 = $[
|
|
193
|
+
$[7] = t4;
|
|
194
|
+
} else t4 = $[7];
|
|
211
195
|
let t5;
|
|
212
|
-
if ($[
|
|
196
|
+
if ($[8] !== pathView) {
|
|
213
197
|
t5 = /* @__PURE__ */ jsxs("span", {
|
|
214
198
|
className: "font-mono font-bold whitespace-nowrap flex flex-row gap-2 items-center truncate",
|
|
215
199
|
children: [t4, pathView]
|
|
216
200
|
});
|
|
217
|
-
$[
|
|
218
|
-
$[
|
|
219
|
-
} else t5 = $[
|
|
201
|
+
$[8] = pathView;
|
|
202
|
+
$[9] = t5;
|
|
203
|
+
} else t5 = $[9];
|
|
220
204
|
let t6;
|
|
221
|
-
if ($[
|
|
205
|
+
if ($[10] !== t3 || $[11] !== t5) {
|
|
222
206
|
t6 = /* @__PURE__ */ jsxs("div", {
|
|
223
207
|
className: "grid grid-cols-[auto_1fr] gap-2 items-center",
|
|
224
208
|
children: [t3, t5]
|
|
225
209
|
});
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
} else t6 = $[
|
|
210
|
+
$[10] = t3;
|
|
211
|
+
$[11] = t5;
|
|
212
|
+
$[12] = t6;
|
|
213
|
+
} else t6 = $[12];
|
|
230
214
|
return t6;
|
|
231
215
|
};
|
|
232
216
|
|
|
233
217
|
//#endregion
|
|
234
218
|
//#region src/components/endpoint-item.tsx
|
|
235
219
|
const EndpointItem = (t0) => {
|
|
236
|
-
const $ = c(
|
|
237
|
-
if ($[0] !== "29651f7b7dd25cd15fa149793a83da8eadabea6c1b2d872f1881f15627da1c3a") {
|
|
238
|
-
for (let $i = 0; $i < 22; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
239
|
-
$[0] = "29651f7b7dd25cd15fa149793a83da8eadabea6c1b2d872f1881f15627da1c3a";
|
|
240
|
-
}
|
|
220
|
+
const $ = c(21);
|
|
241
221
|
const { endpoint, isSelected, isLast, onSelect } = t0;
|
|
242
222
|
const t1 = `endpoint-${endpoint.method}-${endpoint.path}`;
|
|
243
223
|
let t2;
|
|
244
|
-
if ($[
|
|
224
|
+
if ($[0] !== endpoint.id || $[1] !== onSelect) {
|
|
245
225
|
t2 = () => onSelect(endpoint.id);
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
} else t2 = $[
|
|
226
|
+
$[0] = endpoint.id;
|
|
227
|
+
$[1] = onSelect;
|
|
228
|
+
$[2] = t2;
|
|
229
|
+
} else t2 = $[2];
|
|
250
230
|
const t3 = isSelected && "bg-muted-foreground/10";
|
|
251
231
|
let t4;
|
|
252
|
-
if ($[
|
|
232
|
+
if ($[3] !== t3) {
|
|
253
233
|
t4 = cn("grid grid-cols-[auto_1fr] items-center justify-center px-[17px] select-none hover:bg-muted-foreground/10 cursor-pointer", t3);
|
|
254
|
-
$[
|
|
255
|
-
$[
|
|
256
|
-
} else t4 = $[
|
|
234
|
+
$[3] = t3;
|
|
235
|
+
$[4] = t4;
|
|
236
|
+
} else t4 = $[4];
|
|
257
237
|
let t5;
|
|
258
|
-
if ($[
|
|
238
|
+
if ($[5] !== isLast) {
|
|
259
239
|
t5 = isLast ? /* @__PURE__ */ jsx("svg", {
|
|
260
240
|
width: "14",
|
|
261
241
|
height: "34",
|
|
@@ -277,110 +257,106 @@ const EndpointItem = (t0) => {
|
|
|
277
257
|
className: "fill-[#555]"
|
|
278
258
|
})
|
|
279
259
|
});
|
|
280
|
-
$[
|
|
281
|
-
$[
|
|
282
|
-
} else t5 = $[
|
|
260
|
+
$[5] = isLast;
|
|
261
|
+
$[6] = t5;
|
|
262
|
+
} else t5 = $[6];
|
|
283
263
|
let t6;
|
|
284
|
-
if ($[
|
|
264
|
+
if ($[7] !== endpoint.method || $[8] !== endpoint.path) {
|
|
285
265
|
t6 = /* @__PURE__ */ jsx(EndpointPath, {
|
|
286
266
|
method: endpoint.method,
|
|
287
267
|
path: endpoint.path
|
|
288
268
|
});
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
} else t6 = $[
|
|
269
|
+
$[7] = endpoint.method;
|
|
270
|
+
$[8] = endpoint.path;
|
|
271
|
+
$[9] = t6;
|
|
272
|
+
} else t6 = $[9];
|
|
293
273
|
let t7;
|
|
294
|
-
if ($[
|
|
274
|
+
if ($[10] !== endpoint.description) {
|
|
295
275
|
t7 = /* @__PURE__ */ jsx("span", {
|
|
296
276
|
className: "text-sm text-muted-foreground truncate",
|
|
297
277
|
children: endpoint.description
|
|
298
278
|
});
|
|
299
|
-
$[
|
|
300
|
-
$[
|
|
301
|
-
} else t7 = $[
|
|
279
|
+
$[10] = endpoint.description;
|
|
280
|
+
$[11] = t7;
|
|
281
|
+
} else t7 = $[11];
|
|
302
282
|
let t8;
|
|
303
|
-
if ($[
|
|
283
|
+
if ($[12] !== t6 || $[13] !== t7) {
|
|
304
284
|
t8 = /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", {
|
|
305
285
|
className: "grid grid-cols-[auto_1fr] items-center gap-3 px-2",
|
|
306
286
|
children: [t6, t7]
|
|
307
287
|
}) });
|
|
308
|
-
$[
|
|
309
|
-
$[
|
|
310
|
-
$[
|
|
311
|
-
} else t8 = $[
|
|
288
|
+
$[12] = t6;
|
|
289
|
+
$[13] = t7;
|
|
290
|
+
$[14] = t8;
|
|
291
|
+
} else t8 = $[14];
|
|
312
292
|
let t9;
|
|
313
|
-
if ($[
|
|
293
|
+
if ($[15] !== t1 || $[16] !== t2 || $[17] !== t4 || $[18] !== t5 || $[19] !== t8) {
|
|
314
294
|
t9 = /* @__PURE__ */ jsxs("div", {
|
|
315
295
|
"data-testid": t1,
|
|
316
296
|
onClick: t2,
|
|
317
297
|
className: t4,
|
|
318
298
|
children: [t5, t8]
|
|
319
299
|
});
|
|
320
|
-
$[
|
|
321
|
-
$[
|
|
322
|
-
$[
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
325
|
-
$[
|
|
326
|
-
} else t9 = $[
|
|
300
|
+
$[15] = t1;
|
|
301
|
+
$[16] = t2;
|
|
302
|
+
$[17] = t4;
|
|
303
|
+
$[18] = t5;
|
|
304
|
+
$[19] = t8;
|
|
305
|
+
$[20] = t9;
|
|
306
|
+
} else t9 = $[20];
|
|
327
307
|
return t9;
|
|
328
308
|
};
|
|
329
309
|
|
|
330
310
|
//#endregion
|
|
331
311
|
//#region src/components/flow-group.tsx
|
|
332
312
|
const FlowGroup = (t0) => {
|
|
333
|
-
const $ = c(
|
|
334
|
-
if ($[0] !== "a80b3cb43bb62d012f095b7847fb01d92f2a4fcd29fc05244f6ae839f1f0b9de") {
|
|
335
|
-
for (let $i = 0; $i < 41; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
336
|
-
$[0] = "a80b3cb43bb62d012f095b7847fb01d92f2a4fcd29fc05244f6ae839f1f0b9de";
|
|
337
|
-
}
|
|
313
|
+
const $ = c(40);
|
|
338
314
|
const { flow, endpoints, isOpen, isSelected, onToggle, onClearSelection, selectedEndpointId, onSelectEndpoint } = t0;
|
|
339
315
|
const t1 = `flow-group-${flow}`;
|
|
340
316
|
let t2;
|
|
341
|
-
if ($[
|
|
317
|
+
if ($[0] !== flow || $[1] !== isSelected || $[2] !== onClearSelection || $[3] !== onToggle) {
|
|
342
318
|
t2 = () => {
|
|
343
319
|
if (isSelected) onClearSelection();
|
|
344
320
|
onToggle(flow);
|
|
345
321
|
};
|
|
346
|
-
$[
|
|
347
|
-
$[
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
350
|
-
$[
|
|
351
|
-
} else t2 = $[
|
|
322
|
+
$[0] = flow;
|
|
323
|
+
$[1] = isSelected;
|
|
324
|
+
$[2] = onClearSelection;
|
|
325
|
+
$[3] = onToggle;
|
|
326
|
+
$[4] = t2;
|
|
327
|
+
} else t2 = $[4];
|
|
352
328
|
let t3;
|
|
353
|
-
if ($[
|
|
329
|
+
if ($[5] !== isOpen) {
|
|
354
330
|
t3 = cn("w-4 h-4 transition-transform duration-300 text-[#555]", { "rotate-180 mt-2.5": isOpen });
|
|
355
|
-
$[
|
|
356
|
-
$[
|
|
357
|
-
} else t3 = $[
|
|
331
|
+
$[5] = isOpen;
|
|
332
|
+
$[6] = t3;
|
|
333
|
+
} else t3 = $[6];
|
|
358
334
|
let t4;
|
|
359
|
-
if ($[
|
|
335
|
+
if ($[7] !== t3) {
|
|
360
336
|
t4 = /* @__PURE__ */ jsx(ChevronDown, {
|
|
361
337
|
className: t3,
|
|
362
338
|
strokeWidth: 1.5
|
|
363
339
|
});
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
} else t4 = $[
|
|
340
|
+
$[7] = t3;
|
|
341
|
+
$[8] = t4;
|
|
342
|
+
} else t4 = $[8];
|
|
367
343
|
const t5 = !isOpen;
|
|
368
344
|
let t6;
|
|
369
|
-
if ($[
|
|
345
|
+
if ($[9] !== t5) {
|
|
370
346
|
t6 = cn("ml-[7px]", { hidden: t5 });
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
373
|
-
} else t6 = $[
|
|
347
|
+
$[9] = t5;
|
|
348
|
+
$[10] = t6;
|
|
349
|
+
} else t6 = $[10];
|
|
374
350
|
let t7;
|
|
375
|
-
if ($[
|
|
351
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
376
352
|
t7 = /* @__PURE__ */ jsx("path", {
|
|
377
353
|
d: "M1.5 1C1.5 0.723858 1.27614 0.5 1 0.5C0.723858 0.5 0.5 0.723858 0.5 1H1H1.5ZM1 1H0.5V10H1H1.5V1H1Z",
|
|
378
354
|
className: "fill-[#555]"
|
|
379
355
|
});
|
|
380
|
-
$[
|
|
381
|
-
} else t7 = $[
|
|
356
|
+
$[11] = t7;
|
|
357
|
+
} else t7 = $[11];
|
|
382
358
|
let t8;
|
|
383
|
-
if ($[
|
|
359
|
+
if ($[12] !== t6) {
|
|
384
360
|
t8 = /* @__PURE__ */ jsx("svg", {
|
|
385
361
|
xmlns: "http://www.w3.org/2000/svg",
|
|
386
362
|
width: "2",
|
|
@@ -390,90 +366,90 @@ const FlowGroup = (t0) => {
|
|
|
390
366
|
className: t6,
|
|
391
367
|
children: t7
|
|
392
368
|
});
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
395
|
-
} else t8 = $[
|
|
369
|
+
$[12] = t6;
|
|
370
|
+
$[13] = t8;
|
|
371
|
+
} else t8 = $[13];
|
|
396
372
|
let t9;
|
|
397
|
-
if ($[
|
|
373
|
+
if ($[14] !== t4 || $[15] !== t8) {
|
|
398
374
|
t9 = /* @__PURE__ */ jsxs("div", {
|
|
399
375
|
className: "grid grid-cols-1",
|
|
400
376
|
children: [t4, t8]
|
|
401
377
|
});
|
|
402
|
-
$[
|
|
403
|
-
$[
|
|
404
|
-
$[
|
|
405
|
-
} else t9 = $[
|
|
378
|
+
$[14] = t4;
|
|
379
|
+
$[15] = t8;
|
|
380
|
+
$[16] = t9;
|
|
381
|
+
} else t9 = $[16];
|
|
406
382
|
let t10;
|
|
407
|
-
if ($[
|
|
383
|
+
if ($[17] !== flow) {
|
|
408
384
|
t10 = /* @__PURE__ */ jsx("h3", {
|
|
409
385
|
className: "text-sm font-medium text-left",
|
|
410
386
|
children: flow
|
|
411
387
|
});
|
|
412
|
-
$[
|
|
413
|
-
$[
|
|
414
|
-
} else t10 = $[
|
|
388
|
+
$[17] = flow;
|
|
389
|
+
$[18] = t10;
|
|
390
|
+
} else t10 = $[18];
|
|
415
391
|
let t11;
|
|
416
|
-
if ($[
|
|
392
|
+
if ($[19] !== t1 || $[20] !== t10 || $[21] !== t2 || $[22] !== t9) {
|
|
417
393
|
t11 = /* @__PURE__ */ jsxs("button", {
|
|
418
394
|
"data-testid": t1,
|
|
419
395
|
className: "w-full grid grid-cols-[auto_1fr] items-center gap-3 hover:bg-muted/40 cursor-pointer min-h-8.5 select-none hover:bg-muted-foreground/10 px-4",
|
|
420
396
|
onClick: t2,
|
|
421
397
|
children: [t9, t10]
|
|
422
398
|
});
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
426
|
-
$[
|
|
427
|
-
$[
|
|
428
|
-
} else t11 = $[
|
|
399
|
+
$[19] = t1;
|
|
400
|
+
$[20] = t10;
|
|
401
|
+
$[21] = t2;
|
|
402
|
+
$[22] = t9;
|
|
403
|
+
$[23] = t11;
|
|
404
|
+
} else t11 = $[23];
|
|
429
405
|
const t12 = !isOpen;
|
|
430
406
|
let t13;
|
|
431
|
-
if ($[
|
|
407
|
+
if ($[24] !== t12) {
|
|
432
408
|
t13 = cn("grid grid-cols-1 items-center justify-center", { hidden: t12 });
|
|
433
|
-
$[
|
|
434
|
-
$[
|
|
435
|
-
} else t13 = $[
|
|
409
|
+
$[24] = t12;
|
|
410
|
+
$[25] = t13;
|
|
411
|
+
} else t13 = $[25];
|
|
436
412
|
let t14;
|
|
437
|
-
if ($[
|
|
413
|
+
if ($[26] !== endpoints || $[27] !== onSelectEndpoint || $[28] !== selectedEndpointId) {
|
|
438
414
|
let t15$1;
|
|
439
|
-
if ($[
|
|
415
|
+
if ($[30] !== endpoints.length || $[31] !== onSelectEndpoint || $[32] !== selectedEndpointId) {
|
|
440
416
|
t15$1 = (endpoint, index) => /* @__PURE__ */ jsx(EndpointItem, {
|
|
441
417
|
endpoint,
|
|
442
418
|
isSelected: selectedEndpointId === endpoint.id,
|
|
443
419
|
isLast: index === endpoints.length - 1,
|
|
444
420
|
onSelect: onSelectEndpoint
|
|
445
421
|
}, endpoint.id);
|
|
446
|
-
$[
|
|
447
|
-
$[
|
|
448
|
-
$[
|
|
449
|
-
$[
|
|
450
|
-
} else t15$1 = $[
|
|
422
|
+
$[30] = endpoints.length;
|
|
423
|
+
$[31] = onSelectEndpoint;
|
|
424
|
+
$[32] = selectedEndpointId;
|
|
425
|
+
$[33] = t15$1;
|
|
426
|
+
} else t15$1 = $[33];
|
|
451
427
|
t14 = endpoints.map(t15$1);
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
} else t14 = $[
|
|
428
|
+
$[26] = endpoints;
|
|
429
|
+
$[27] = onSelectEndpoint;
|
|
430
|
+
$[28] = selectedEndpointId;
|
|
431
|
+
$[29] = t14;
|
|
432
|
+
} else t14 = $[29];
|
|
457
433
|
let t15;
|
|
458
|
-
if ($[
|
|
434
|
+
if ($[34] !== t13 || $[35] !== t14) {
|
|
459
435
|
t15 = /* @__PURE__ */ jsx("div", {
|
|
460
436
|
className: t13,
|
|
461
437
|
children: t14
|
|
462
438
|
});
|
|
463
|
-
$[
|
|
464
|
-
$[
|
|
465
|
-
$[
|
|
466
|
-
} else t15 = $[
|
|
439
|
+
$[34] = t13;
|
|
440
|
+
$[35] = t14;
|
|
441
|
+
$[36] = t15;
|
|
442
|
+
} else t15 = $[36];
|
|
467
443
|
let t16;
|
|
468
|
-
if ($[
|
|
444
|
+
if ($[37] !== t11 || $[38] !== t15) {
|
|
469
445
|
t16 = /* @__PURE__ */ jsxs("div", {
|
|
470
446
|
className: "pt-2",
|
|
471
447
|
children: [t11, t15]
|
|
472
448
|
});
|
|
473
|
-
$[
|
|
474
|
-
$[
|
|
475
|
-
$[
|
|
476
|
-
} else t16 = $[
|
|
449
|
+
$[37] = t11;
|
|
450
|
+
$[38] = t15;
|
|
451
|
+
$[39] = t16;
|
|
452
|
+
} else t16 = $[39];
|
|
477
453
|
return t16;
|
|
478
454
|
};
|
|
479
455
|
|
|
@@ -621,37 +597,33 @@ const useEndpointConfiguration = create()(persist(devtools((set) => ({
|
|
|
621
597
|
//#endregion
|
|
622
598
|
//#region src/hooks/use-get-endpoints.ts
|
|
623
599
|
const useGetEndpoints = () => {
|
|
624
|
-
const $ = c(
|
|
625
|
-
if ($[0] !== "cadd8d3432dfc6d2432c646eaf1f90c044b70a708974ecf5f816ef36004b4da0") {
|
|
626
|
-
for (let $i = 0; $i < 7; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
627
|
-
$[0] = "cadd8d3432dfc6d2432c646eaf1f90c044b70a708974ecf5f816ef36004b4da0";
|
|
628
|
-
}
|
|
600
|
+
const $ = c(6);
|
|
629
601
|
let t0;
|
|
630
|
-
if ($[
|
|
602
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
631
603
|
t0 = {
|
|
632
604
|
streamName: "__motia.api-endpoints",
|
|
633
605
|
groupId: "default"
|
|
634
606
|
};
|
|
635
|
-
$[
|
|
636
|
-
} else t0 = $[
|
|
607
|
+
$[0] = t0;
|
|
608
|
+
} else t0 = $[0];
|
|
637
609
|
const { data: endpoints } = useStreamGroup(t0);
|
|
638
610
|
let t1;
|
|
639
|
-
if ($[
|
|
611
|
+
if ($[1] !== endpoints) {
|
|
640
612
|
t1 = endpoints.reduce(_temp$8, {});
|
|
641
|
-
$[
|
|
642
|
-
$[
|
|
643
|
-
} else t1 = $[
|
|
613
|
+
$[1] = endpoints;
|
|
614
|
+
$[2] = t1;
|
|
615
|
+
} else t1 = $[2];
|
|
644
616
|
const groupedEndpoints = t1;
|
|
645
617
|
let t2;
|
|
646
|
-
if ($[
|
|
618
|
+
if ($[3] !== endpoints || $[4] !== groupedEndpoints) {
|
|
647
619
|
t2 = {
|
|
648
620
|
endpoints,
|
|
649
621
|
groupedEndpoints
|
|
650
622
|
};
|
|
651
|
-
$[
|
|
652
|
-
$[
|
|
653
|
-
$[
|
|
654
|
-
} else t2 = $[
|
|
623
|
+
$[3] = endpoints;
|
|
624
|
+
$[4] = groupedEndpoints;
|
|
625
|
+
$[5] = t2;
|
|
626
|
+
} else t2 = $[5];
|
|
655
627
|
return t2;
|
|
656
628
|
};
|
|
657
629
|
function _temp$8(acc, endpoint) {
|
|
@@ -719,47 +691,39 @@ const convertSchemaToJson = (schema, rootSchema) => {
|
|
|
719
691
|
//#endregion
|
|
720
692
|
//#region src/hooks/use-json-schema-to-json.tsx
|
|
721
693
|
const useJsonSchemaToJson = (schema) => {
|
|
722
|
-
const $ = c(
|
|
723
|
-
if ($[0] !== "ba29f15b5046bda288d763530dc1c4ad1bc3136b6950394508cecd61132b94a3") {
|
|
724
|
-
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
725
|
-
$[0] = "ba29f15b5046bda288d763530dc1c4ad1bc3136b6950394508cecd61132b94a3";
|
|
726
|
-
}
|
|
694
|
+
const $ = c(5);
|
|
727
695
|
const [body, setBody] = useState("");
|
|
728
696
|
let t0;
|
|
729
697
|
let t1;
|
|
730
|
-
if ($[
|
|
698
|
+
if ($[0] !== schema) {
|
|
731
699
|
t0 = () => {
|
|
732
700
|
if (schema) setBody(JSON.stringify(convertSchemaToJson(schema), null, 2));
|
|
733
701
|
};
|
|
734
702
|
t1 = [schema];
|
|
735
|
-
$[
|
|
736
|
-
$[
|
|
737
|
-
$[
|
|
703
|
+
$[0] = schema;
|
|
704
|
+
$[1] = t0;
|
|
705
|
+
$[2] = t1;
|
|
738
706
|
} else {
|
|
739
|
-
t0 = $[
|
|
740
|
-
t1 = $[
|
|
707
|
+
t0 = $[1];
|
|
708
|
+
t1 = $[2];
|
|
741
709
|
}
|
|
742
710
|
useEffect(t0, t1);
|
|
743
711
|
let t2;
|
|
744
|
-
if ($[
|
|
712
|
+
if ($[3] !== body) {
|
|
745
713
|
t2 = {
|
|
746
714
|
body,
|
|
747
715
|
setBody
|
|
748
716
|
};
|
|
749
|
-
$[
|
|
750
|
-
$[
|
|
751
|
-
} else t2 = $[
|
|
717
|
+
$[3] = body;
|
|
718
|
+
$[4] = t2;
|
|
719
|
+
} else t2 = $[4];
|
|
752
720
|
return t2;
|
|
753
721
|
};
|
|
754
722
|
|
|
755
723
|
//#endregion
|
|
756
724
|
//#region src/spec/spec-body-panel.tsx
|
|
757
725
|
const EndpointBodyPanel = (t0) => {
|
|
758
|
-
const $ = c(
|
|
759
|
-
if ($[0] !== "b8eff7f7ce8e9189baa5c639bfd152e5d0c4e2073eede72b1020744bec7ba947") {
|
|
760
|
-
for (let $i = 0; $i < 9; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
761
|
-
$[0] = "b8eff7f7ce8e9189baa5c639bfd152e5d0c4e2073eede72b1020744bec7ba947";
|
|
762
|
-
}
|
|
726
|
+
const $ = c(8);
|
|
763
727
|
const { endpoint, panelName, value } = t0;
|
|
764
728
|
if (![
|
|
765
729
|
"post",
|
|
@@ -768,29 +732,29 @@ const EndpointBodyPanel = (t0) => {
|
|
|
768
732
|
].includes(endpoint.method.toLowerCase())) return null;
|
|
769
733
|
const t1 = `endpoint-body-panel__${panelName}`;
|
|
770
734
|
let t2;
|
|
771
|
-
if ($[
|
|
735
|
+
if ($[0] !== value) {
|
|
772
736
|
t2 = value ? JSON.parse(value) : {};
|
|
773
|
-
$[
|
|
774
|
-
$[
|
|
775
|
-
} else t2 = $[
|
|
737
|
+
$[0] = value;
|
|
738
|
+
$[1] = t2;
|
|
739
|
+
} else t2 = $[1];
|
|
776
740
|
let t3;
|
|
777
|
-
if ($[
|
|
741
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
778
742
|
t3 = { backgroundColor: "transparent" };
|
|
779
|
-
$[
|
|
780
|
-
} else t3 = $[
|
|
743
|
+
$[2] = t3;
|
|
744
|
+
} else t3 = $[2];
|
|
781
745
|
let t4;
|
|
782
|
-
if ($[
|
|
746
|
+
if ($[3] !== t2) {
|
|
783
747
|
t4 = /* @__PURE__ */ jsx(ReactJson, {
|
|
784
748
|
src: t2,
|
|
785
749
|
theme: "default",
|
|
786
750
|
enableClipboard: false,
|
|
787
751
|
style: t3
|
|
788
752
|
});
|
|
789
|
-
$[
|
|
790
|
-
$[
|
|
791
|
-
} else t4 = $[
|
|
753
|
+
$[3] = t2;
|
|
754
|
+
$[4] = t4;
|
|
755
|
+
} else t4 = $[4];
|
|
792
756
|
let t5;
|
|
793
|
-
if ($[
|
|
757
|
+
if ($[5] !== t1 || $[6] !== t4) {
|
|
794
758
|
t5 = /* @__PURE__ */ jsx(Panel, {
|
|
795
759
|
title: "Body",
|
|
796
760
|
size: "sm",
|
|
@@ -798,37 +762,33 @@ const EndpointBodyPanel = (t0) => {
|
|
|
798
762
|
"data-testid": t1,
|
|
799
763
|
children: t4
|
|
800
764
|
});
|
|
801
|
-
$[
|
|
802
|
-
$[
|
|
803
|
-
$[
|
|
804
|
-
} else t5 = $[
|
|
765
|
+
$[5] = t1;
|
|
766
|
+
$[6] = t4;
|
|
767
|
+
$[7] = t5;
|
|
768
|
+
} else t5 = $[7];
|
|
805
769
|
return t5;
|
|
806
770
|
};
|
|
807
771
|
|
|
808
772
|
//#endregion
|
|
809
773
|
//#region src/spec/spec-path-params-panel.tsx
|
|
810
774
|
const EndpointPathParamsPanel = (t0) => {
|
|
811
|
-
const $ = c(
|
|
812
|
-
if ($[0] !== "4b99c635b467b8c34956e7f3473f52521462aab54a3d1e16ce1af5ee24ede587") {
|
|
813
|
-
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
814
|
-
$[0] = "4b99c635b467b8c34956e7f3473f52521462aab54a3d1e16ce1af5ee24ede587";
|
|
815
|
-
}
|
|
775
|
+
const $ = c(5);
|
|
816
776
|
const { endpoint } = t0;
|
|
817
777
|
const pathParams = usePathParams(endpoint.path);
|
|
818
778
|
if (!pathParams.length) return null;
|
|
819
779
|
let t1;
|
|
820
|
-
if ($[
|
|
780
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
821
781
|
t1 = { gridTemplateColumns: "1fr 2fr" };
|
|
822
|
-
$[
|
|
823
|
-
} else t1 = $[
|
|
782
|
+
$[0] = t1;
|
|
783
|
+
} else t1 = $[0];
|
|
824
784
|
let t2;
|
|
825
|
-
if ($[
|
|
785
|
+
if ($[1] !== pathParams) {
|
|
826
786
|
t2 = pathParams.map(_temp$7);
|
|
827
|
-
$[
|
|
828
|
-
$[
|
|
829
|
-
} else t2 = $[
|
|
787
|
+
$[1] = pathParams;
|
|
788
|
+
$[2] = t2;
|
|
789
|
+
} else t2 = $[2];
|
|
830
790
|
let t3;
|
|
831
|
-
if ($[
|
|
791
|
+
if ($[3] !== t2) {
|
|
832
792
|
t3 = /* @__PURE__ */ jsx(Panel, {
|
|
833
793
|
title: "Path params",
|
|
834
794
|
size: "sm",
|
|
@@ -839,9 +799,9 @@ const EndpointPathParamsPanel = (t0) => {
|
|
|
839
799
|
children: t2
|
|
840
800
|
})
|
|
841
801
|
});
|
|
842
|
-
$[
|
|
843
|
-
$[
|
|
844
|
-
} else t3 = $[
|
|
802
|
+
$[3] = t2;
|
|
803
|
+
$[4] = t3;
|
|
804
|
+
} else t3 = $[4];
|
|
845
805
|
return t3;
|
|
846
806
|
};
|
|
847
807
|
function _temp$7(param) {
|
|
@@ -854,29 +814,25 @@ function _temp$7(param) {
|
|
|
854
814
|
//#endregion
|
|
855
815
|
//#region src/spec/spec-query-params-panel.tsx
|
|
856
816
|
const EndpointQueryParamsPanel = (t0) => {
|
|
857
|
-
const $ = c(
|
|
858
|
-
if ($[0] !== "4e1364928f69469968044d4855a06c351178a75725f12806c407b9bdbee699b0") {
|
|
859
|
-
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
860
|
-
$[0] = "4e1364928f69469968044d4855a06c351178a75725f12806c407b9bdbee699b0";
|
|
861
|
-
}
|
|
817
|
+
const $ = c(5);
|
|
862
818
|
const { endpoint } = t0;
|
|
863
819
|
if (!endpoint.queryParams?.length) return null;
|
|
864
820
|
let t1;
|
|
865
|
-
if ($[
|
|
821
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
866
822
|
t1 = {
|
|
867
823
|
gridTemplateColumns: "1fr 2fr",
|
|
868
824
|
gridTemplateRows: "1fr 1fr"
|
|
869
825
|
};
|
|
870
|
-
$[
|
|
871
|
-
} else t1 = $[
|
|
826
|
+
$[0] = t1;
|
|
827
|
+
} else t1 = $[0];
|
|
872
828
|
let t2;
|
|
873
|
-
if ($[
|
|
829
|
+
if ($[1] !== endpoint.queryParams) {
|
|
874
830
|
t2 = endpoint.queryParams.map(_temp$6);
|
|
875
|
-
$[
|
|
876
|
-
$[
|
|
877
|
-
} else t2 = $[
|
|
831
|
+
$[1] = endpoint.queryParams;
|
|
832
|
+
$[2] = t2;
|
|
833
|
+
} else t2 = $[2];
|
|
878
834
|
let t3;
|
|
879
|
-
if ($[
|
|
835
|
+
if ($[3] !== t2) {
|
|
880
836
|
t3 = /* @__PURE__ */ jsx(Panel, {
|
|
881
837
|
title: "Query params",
|
|
882
838
|
size: "sm",
|
|
@@ -887,9 +843,9 @@ const EndpointQueryParamsPanel = (t0) => {
|
|
|
887
843
|
children: t2
|
|
888
844
|
})
|
|
889
845
|
});
|
|
890
|
-
$[
|
|
891
|
-
$[
|
|
892
|
-
} else t3 = $[
|
|
846
|
+
$[3] = t2;
|
|
847
|
+
$[4] = t3;
|
|
848
|
+
} else t3 = $[4];
|
|
893
849
|
return t3;
|
|
894
850
|
};
|
|
895
851
|
function _temp$6(param) {
|
|
@@ -905,23 +861,19 @@ function _temp$6(param) {
|
|
|
905
861
|
//#endregion
|
|
906
862
|
//#region src/spec/spec-response-schema.tsx
|
|
907
863
|
const EndpointResponseSchemaItem = (t0) => {
|
|
908
|
-
const $ = c(
|
|
909
|
-
if ($[0] !== "e4de7b36c48b33b1d8a3aa52a415bcc5b35556fbd21c0f6bc47983adc48a77ce") {
|
|
910
|
-
for (let $i = 0; $i < 10; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
911
|
-
$[0] = "e4de7b36c48b33b1d8a3aa52a415bcc5b35556fbd21c0f6bc47983adc48a77ce";
|
|
912
|
-
}
|
|
864
|
+
const $ = c(9);
|
|
913
865
|
const { responseCode, bodySchema } = t0;
|
|
914
866
|
const theme = useThemeStore(_temp$5);
|
|
915
867
|
let t1;
|
|
916
|
-
if ($[
|
|
868
|
+
if ($[0] !== bodySchema) {
|
|
917
869
|
t1 = convertSchemaToJson(bodySchema);
|
|
918
|
-
$[
|
|
919
|
-
$[
|
|
920
|
-
} else t1 = $[
|
|
870
|
+
$[0] = bodySchema;
|
|
871
|
+
$[1] = t1;
|
|
872
|
+
} else t1 = $[1];
|
|
921
873
|
const schema = t1;
|
|
922
874
|
const description = typeof bodySchema.description === "string" ? bodySchema.description : "";
|
|
923
875
|
let t2;
|
|
924
|
-
if ($[
|
|
876
|
+
if ($[2] !== description || $[3] !== schema || $[4] !== theme) {
|
|
925
877
|
t2 = /* @__PURE__ */ jsx("div", {
|
|
926
878
|
className: "text-xs font-mono rounded-lg whitespace-pre-wrap",
|
|
927
879
|
children: schema ? /* @__PURE__ */ jsx(ReactJson, {
|
|
@@ -934,41 +886,37 @@ const EndpointResponseSchemaItem = (t0) => {
|
|
|
934
886
|
children: description
|
|
935
887
|
})
|
|
936
888
|
});
|
|
937
|
-
$[
|
|
938
|
-
$[
|
|
939
|
-
$[
|
|
940
|
-
$[
|
|
941
|
-
} else t2 = $[
|
|
889
|
+
$[2] = description;
|
|
890
|
+
$[3] = schema;
|
|
891
|
+
$[4] = theme;
|
|
892
|
+
$[5] = t2;
|
|
893
|
+
} else t2 = $[5];
|
|
942
894
|
let t3;
|
|
943
|
-
if ($[
|
|
895
|
+
if ($[6] !== responseCode || $[7] !== t2) {
|
|
944
896
|
t3 = /* @__PURE__ */ jsx(TabsContent, {
|
|
945
897
|
value: responseCode,
|
|
946
898
|
className: "border-t",
|
|
947
899
|
children: t2
|
|
948
900
|
}, responseCode);
|
|
949
|
-
$[
|
|
950
|
-
$[
|
|
951
|
-
$[
|
|
952
|
-
} else t3 = $[
|
|
901
|
+
$[6] = responseCode;
|
|
902
|
+
$[7] = t2;
|
|
903
|
+
$[8] = t3;
|
|
904
|
+
} else t3 = $[8];
|
|
953
905
|
return t3;
|
|
954
906
|
};
|
|
955
907
|
const EndpointResponseSchema = (t0) => {
|
|
956
|
-
const $ = c(
|
|
957
|
-
if ($[0] !== "e4de7b36c48b33b1d8a3aa52a415bcc5b35556fbd21c0f6bc47983adc48a77ce") {
|
|
958
|
-
for (let $i = 0; $i < 11; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
959
|
-
$[0] = "e4de7b36c48b33b1d8a3aa52a415bcc5b35556fbd21c0f6bc47983adc48a77ce";
|
|
960
|
-
}
|
|
908
|
+
const $ = c(10);
|
|
961
909
|
const { items } = t0;
|
|
962
910
|
if (items.length === 0) return null;
|
|
963
911
|
const t1 = items[0].responseCode;
|
|
964
912
|
let t2;
|
|
965
|
-
if ($[
|
|
913
|
+
if ($[0] !== items) {
|
|
966
914
|
t2 = items.map(_temp2);
|
|
967
|
-
$[
|
|
968
|
-
$[
|
|
969
|
-
} else t2 = $[
|
|
915
|
+
$[0] = items;
|
|
916
|
+
$[1] = t2;
|
|
917
|
+
} else t2 = $[1];
|
|
970
918
|
let t3;
|
|
971
|
-
if ($[
|
|
919
|
+
if ($[2] !== t2) {
|
|
972
920
|
t3 = /* @__PURE__ */ jsx("div", {
|
|
973
921
|
className: "flex items-center justify-between bg-card",
|
|
974
922
|
children: /* @__PURE__ */ jsx(TabsList, {
|
|
@@ -976,17 +924,17 @@ const EndpointResponseSchema = (t0) => {
|
|
|
976
924
|
children: t2
|
|
977
925
|
})
|
|
978
926
|
});
|
|
979
|
-
$[
|
|
980
|
-
$[
|
|
981
|
-
} else t3 = $[
|
|
927
|
+
$[2] = t2;
|
|
928
|
+
$[3] = t3;
|
|
929
|
+
} else t3 = $[3];
|
|
982
930
|
let t4;
|
|
983
|
-
if ($[
|
|
931
|
+
if ($[4] !== items) {
|
|
984
932
|
t4 = items.map(_temp3);
|
|
985
|
-
$[
|
|
986
|
-
$[
|
|
987
|
-
} else t4 = $[
|
|
933
|
+
$[4] = items;
|
|
934
|
+
$[5] = t4;
|
|
935
|
+
} else t4 = $[5];
|
|
988
936
|
let t5;
|
|
989
|
-
if ($[
|
|
937
|
+
if ($[6] !== items[0].responseCode || $[7] !== t3 || $[8] !== t4) {
|
|
990
938
|
t5 = /* @__PURE__ */ jsx("div", {
|
|
991
939
|
className: "flex flex-col rounded-lg border",
|
|
992
940
|
children: /* @__PURE__ */ jsxs(Tabs, {
|
|
@@ -994,11 +942,11 @@ const EndpointResponseSchema = (t0) => {
|
|
|
994
942
|
children: [t3, t4]
|
|
995
943
|
})
|
|
996
944
|
});
|
|
997
|
-
$[
|
|
998
|
-
$[
|
|
999
|
-
$[
|
|
1000
|
-
$[
|
|
1001
|
-
} else t5 = $[
|
|
945
|
+
$[6] = items[0].responseCode;
|
|
946
|
+
$[7] = t3;
|
|
947
|
+
$[8] = t4;
|
|
948
|
+
$[9] = t5;
|
|
949
|
+
} else t5 = $[9];
|
|
1002
950
|
return t5;
|
|
1003
951
|
};
|
|
1004
952
|
function _temp$5(store) {
|
|
@@ -1018,73 +966,69 @@ function _temp3(props) {
|
|
|
1018
966
|
//#endregion
|
|
1019
967
|
//#region src/spec/spec-side-panel.tsx
|
|
1020
968
|
const SpecSidePanel = (t0) => {
|
|
1021
|
-
const $ = c(
|
|
1022
|
-
if ($[0] !== "1460e2628753bf80967063f35b14988afbd9dd8b96c8778ac3b5ebba7a833fc1") {
|
|
1023
|
-
for (let $i = 0; $i < 26; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1024
|
-
$[0] = "1460e2628753bf80967063f35b14988afbd9dd8b96c8778ac3b5ebba7a833fc1";
|
|
1025
|
-
}
|
|
969
|
+
const $ = c(25);
|
|
1026
970
|
const { endpoint, onClose } = t0;
|
|
1027
971
|
const { body } = useJsonSchemaToJson(endpoint.bodySchema);
|
|
1028
972
|
let t1;
|
|
1029
|
-
if ($[
|
|
973
|
+
if ($[0] !== endpoint.method || $[1] !== endpoint.path) {
|
|
1030
974
|
t1 = /* @__PURE__ */ jsx(EndpointPath, {
|
|
1031
975
|
method: endpoint.method,
|
|
1032
976
|
path: endpoint.path
|
|
1033
977
|
});
|
|
1034
|
-
$[
|
|
1035
|
-
$[
|
|
1036
|
-
$[
|
|
1037
|
-
} else t1 = $[
|
|
978
|
+
$[0] = endpoint.method;
|
|
979
|
+
$[1] = endpoint.path;
|
|
980
|
+
$[2] = t1;
|
|
981
|
+
} else t1 = $[2];
|
|
1038
982
|
let t2;
|
|
1039
|
-
if ($[
|
|
983
|
+
if ($[3] !== onClose) {
|
|
1040
984
|
t2 = /* @__PURE__ */ jsx(X, {
|
|
1041
985
|
className: "cursor-pointer w-4 h-4",
|
|
1042
986
|
onClick: onClose
|
|
1043
987
|
});
|
|
1044
|
-
$[
|
|
1045
|
-
$[
|
|
1046
|
-
} else t2 = $[
|
|
988
|
+
$[3] = onClose;
|
|
989
|
+
$[4] = t2;
|
|
990
|
+
} else t2 = $[4];
|
|
1047
991
|
let t3;
|
|
1048
|
-
if ($[
|
|
992
|
+
if ($[5] !== onClose || $[6] !== t2) {
|
|
1049
993
|
t3 = [{
|
|
1050
994
|
icon: t2,
|
|
1051
995
|
onClick: onClose
|
|
1052
996
|
}];
|
|
1053
|
-
$[
|
|
1054
|
-
$[
|
|
1055
|
-
$[
|
|
1056
|
-
} else t3 = $[
|
|
997
|
+
$[5] = onClose;
|
|
998
|
+
$[6] = t2;
|
|
999
|
+
$[7] = t3;
|
|
1000
|
+
} else t3 = $[7];
|
|
1057
1001
|
let t4;
|
|
1058
1002
|
let t5;
|
|
1059
|
-
if ($[
|
|
1003
|
+
if ($[8] !== endpoint) {
|
|
1060
1004
|
t4 = /* @__PURE__ */ jsx(EndpointPathParamsPanel, { endpoint });
|
|
1061
1005
|
t5 = /* @__PURE__ */ jsx(EndpointQueryParamsPanel, { endpoint });
|
|
1062
|
-
$[
|
|
1063
|
-
$[
|
|
1064
|
-
$[
|
|
1006
|
+
$[8] = endpoint;
|
|
1007
|
+
$[9] = t4;
|
|
1008
|
+
$[10] = t5;
|
|
1065
1009
|
} else {
|
|
1066
|
-
t4 = $[
|
|
1067
|
-
t5 = $[
|
|
1010
|
+
t4 = $[9];
|
|
1011
|
+
t5 = $[10];
|
|
1068
1012
|
}
|
|
1069
1013
|
let t6;
|
|
1070
|
-
if ($[
|
|
1014
|
+
if ($[11] !== body || $[12] !== endpoint) {
|
|
1071
1015
|
t6 = /* @__PURE__ */ jsx(EndpointBodyPanel, {
|
|
1072
1016
|
endpoint,
|
|
1073
1017
|
panelName: "details",
|
|
1074
1018
|
value: body
|
|
1075
1019
|
});
|
|
1076
|
-
$[
|
|
1077
|
-
$[
|
|
1078
|
-
$[
|
|
1079
|
-
} else t6 = $[
|
|
1020
|
+
$[11] = body;
|
|
1021
|
+
$[12] = endpoint;
|
|
1022
|
+
$[13] = t6;
|
|
1023
|
+
} else t6 = $[13];
|
|
1080
1024
|
let t7;
|
|
1081
|
-
if ($[
|
|
1025
|
+
if ($[14] !== endpoint.responseSchema) {
|
|
1082
1026
|
t7 = /* @__PURE__ */ jsx(EndpointResponseSchema, { items: Object.entries(endpoint?.responseSchema ?? {}).map(_temp$4) });
|
|
1083
|
-
$[
|
|
1084
|
-
$[
|
|
1085
|
-
} else t7 = $[
|
|
1027
|
+
$[14] = endpoint.responseSchema;
|
|
1028
|
+
$[15] = t7;
|
|
1029
|
+
} else t7 = $[15];
|
|
1086
1030
|
let t8;
|
|
1087
|
-
if ($[
|
|
1031
|
+
if ($[16] !== endpoint.description || $[17] !== onClose || $[18] !== t1 || $[19] !== t3 || $[20] !== t4 || $[21] !== t5 || $[22] !== t6 || $[23] !== t7) {
|
|
1088
1032
|
t8 = /* @__PURE__ */ jsxs(Sidebar, {
|
|
1089
1033
|
initialWidth: 600,
|
|
1090
1034
|
subtitle: endpoint.description,
|
|
@@ -1098,16 +1042,16 @@ const SpecSidePanel = (t0) => {
|
|
|
1098
1042
|
t7
|
|
1099
1043
|
]
|
|
1100
1044
|
});
|
|
1101
|
-
$[
|
|
1102
|
-
$[
|
|
1103
|
-
$[
|
|
1104
|
-
$[
|
|
1105
|
-
$[
|
|
1106
|
-
$[
|
|
1107
|
-
$[
|
|
1108
|
-
$[
|
|
1109
|
-
$[
|
|
1110
|
-
} else t8 = $[
|
|
1045
|
+
$[16] = endpoint.description;
|
|
1046
|
+
$[17] = onClose;
|
|
1047
|
+
$[18] = t1;
|
|
1048
|
+
$[19] = t3;
|
|
1049
|
+
$[20] = t4;
|
|
1050
|
+
$[21] = t5;
|
|
1051
|
+
$[22] = t6;
|
|
1052
|
+
$[23] = t7;
|
|
1053
|
+
$[24] = t8;
|
|
1054
|
+
} else t8 = $[24];
|
|
1111
1055
|
return t8;
|
|
1112
1056
|
};
|
|
1113
1057
|
function _temp$4(t0) {
|
|
@@ -1121,11 +1065,7 @@ function _temp$4(t0) {
|
|
|
1121
1065
|
//#endregion
|
|
1122
1066
|
//#region src/components/json-editor.tsx
|
|
1123
1067
|
const JsonEditor = (t0) => {
|
|
1124
|
-
const $ = c(
|
|
1125
|
-
if ($[0] !== "0b3355d4554a672310b1abdad893ca8974afca90f2334dd0d80cf3d8e960c55e") {
|
|
1126
|
-
for (let $i = 0; $i < 41; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1127
|
-
$[0] = "0b3355d4554a672310b1abdad893ca8974afca90f2334dd0d80cf3d8e960c55e";
|
|
1128
|
-
}
|
|
1068
|
+
const $ = c(40);
|
|
1129
1069
|
const { value, schema, onChange, onValidate, language: t1, readOnly: t2 } = t0;
|
|
1130
1070
|
const language = t1 === void 0 ? "json" : t1;
|
|
1131
1071
|
const readOnly = t2 === void 0 ? false : t2;
|
|
@@ -1136,7 +1076,7 @@ const JsonEditor = (t0) => {
|
|
|
1136
1076
|
const isValidatingRef = useRef(false);
|
|
1137
1077
|
let t3;
|
|
1138
1078
|
let t4;
|
|
1139
|
-
if ($[
|
|
1079
|
+
if ($[0] !== monaco) {
|
|
1140
1080
|
t3 = () => {
|
|
1141
1081
|
if (!monaco) return;
|
|
1142
1082
|
monaco.editor.defineTheme("transparent-light", {
|
|
@@ -1171,17 +1111,17 @@ const JsonEditor = (t0) => {
|
|
|
1171
1111
|
});
|
|
1172
1112
|
};
|
|
1173
1113
|
t4 = [monaco];
|
|
1174
|
-
$[
|
|
1175
|
-
$[
|
|
1176
|
-
$[
|
|
1114
|
+
$[0] = monaco;
|
|
1115
|
+
$[1] = t3;
|
|
1116
|
+
$[2] = t4;
|
|
1177
1117
|
} else {
|
|
1178
|
-
t3 = $[
|
|
1179
|
-
t4 = $[
|
|
1118
|
+
t3 = $[1];
|
|
1119
|
+
t4 = $[2];
|
|
1180
1120
|
}
|
|
1181
1121
|
useLayoutEffect(t3, t4);
|
|
1182
1122
|
let t5;
|
|
1183
1123
|
let t6;
|
|
1184
|
-
if ($[
|
|
1124
|
+
if ($[3] !== monaco || $[4] !== schema) {
|
|
1185
1125
|
t5 = () => {
|
|
1186
1126
|
if (!monaco) return;
|
|
1187
1127
|
monaco.languages.typescript.javascriptDefaults.setCompilerOptions({ isolatedModules: true });
|
|
@@ -1192,35 +1132,35 @@ const JsonEditor = (t0) => {
|
|
|
1192
1132
|
}] : [] });
|
|
1193
1133
|
};
|
|
1194
1134
|
t6 = [monaco, schema];
|
|
1195
|
-
$[
|
|
1196
|
-
$[
|
|
1197
|
-
$[
|
|
1198
|
-
$[
|
|
1135
|
+
$[3] = monaco;
|
|
1136
|
+
$[4] = schema;
|
|
1137
|
+
$[5] = t5;
|
|
1138
|
+
$[6] = t6;
|
|
1199
1139
|
} else {
|
|
1200
|
-
t5 = $[
|
|
1201
|
-
t6 = $[
|
|
1140
|
+
t5 = $[5];
|
|
1141
|
+
t6 = $[6];
|
|
1202
1142
|
}
|
|
1203
1143
|
useEffect(t5, t6);
|
|
1204
1144
|
let t7;
|
|
1205
1145
|
let t8;
|
|
1206
|
-
if ($[
|
|
1146
|
+
if ($[7] !== editorTheme || $[8] !== monaco) {
|
|
1207
1147
|
t7 = () => {
|
|
1208
1148
|
if (!monaco) return;
|
|
1209
1149
|
monaco.editor.setTheme(editorTheme);
|
|
1210
1150
|
};
|
|
1211
1151
|
t8 = [monaco, editorTheme];
|
|
1212
|
-
$[
|
|
1213
|
-
$[
|
|
1214
|
-
$[
|
|
1215
|
-
$[
|
|
1152
|
+
$[7] = editorTheme;
|
|
1153
|
+
$[8] = monaco;
|
|
1154
|
+
$[9] = t7;
|
|
1155
|
+
$[10] = t8;
|
|
1216
1156
|
} else {
|
|
1217
|
-
t7 = $[
|
|
1218
|
-
t8 = $[
|
|
1157
|
+
t7 = $[9];
|
|
1158
|
+
t8 = $[10];
|
|
1219
1159
|
}
|
|
1220
1160
|
useLayoutEffect(t7, t8);
|
|
1221
1161
|
let t10;
|
|
1222
1162
|
let t9;
|
|
1223
|
-
if ($[
|
|
1163
|
+
if ($[11] !== editor) {
|
|
1224
1164
|
t9 = () => {
|
|
1225
1165
|
if (!editor) return;
|
|
1226
1166
|
const container = editor.getContainerDomNode().parentElement?.parentElement;
|
|
@@ -1245,17 +1185,17 @@ const JsonEditor = (t0) => {
|
|
|
1245
1185
|
};
|
|
1246
1186
|
};
|
|
1247
1187
|
t10 = [editor];
|
|
1248
|
-
$[
|
|
1249
|
-
$[
|
|
1250
|
-
$[
|
|
1188
|
+
$[11] = editor;
|
|
1189
|
+
$[12] = t10;
|
|
1190
|
+
$[13] = t9;
|
|
1251
1191
|
} else {
|
|
1252
|
-
t10 = $[
|
|
1253
|
-
t9 = $[
|
|
1192
|
+
t10 = $[12];
|
|
1193
|
+
t9 = $[13];
|
|
1254
1194
|
}
|
|
1255
1195
|
useEffect(t9, t10);
|
|
1256
1196
|
let t11;
|
|
1257
1197
|
let t12;
|
|
1258
|
-
if ($[
|
|
1198
|
+
if ($[14] !== editor || $[15] !== monaco || $[16] !== onValidate || $[17] !== schema || $[18] !== value) {
|
|
1259
1199
|
t11 = () => {
|
|
1260
1200
|
if (!editor || !monaco || !onValidate || isValidatingRef.current) return;
|
|
1261
1201
|
const model = editor.getModel();
|
|
@@ -1283,35 +1223,35 @@ const JsonEditor = (t0) => {
|
|
|
1283
1223
|
value,
|
|
1284
1224
|
schema
|
|
1285
1225
|
];
|
|
1286
|
-
$[
|
|
1287
|
-
$[
|
|
1288
|
-
$[
|
|
1289
|
-
$[
|
|
1290
|
-
$[
|
|
1291
|
-
$[
|
|
1292
|
-
$[
|
|
1226
|
+
$[14] = editor;
|
|
1227
|
+
$[15] = monaco;
|
|
1228
|
+
$[16] = onValidate;
|
|
1229
|
+
$[17] = schema;
|
|
1230
|
+
$[18] = value;
|
|
1231
|
+
$[19] = t11;
|
|
1232
|
+
$[20] = t12;
|
|
1293
1233
|
} else {
|
|
1294
|
-
t11 = $[
|
|
1295
|
-
t12 = $[
|
|
1234
|
+
t11 = $[19];
|
|
1235
|
+
t12 = $[20];
|
|
1296
1236
|
}
|
|
1297
1237
|
useEffect(t11, t12);
|
|
1298
1238
|
let t13;
|
|
1299
|
-
if ($[
|
|
1239
|
+
if ($[21] !== schema) {
|
|
1300
1240
|
t13 = schema ? JSON.stringify(schema) : "no-schema";
|
|
1301
|
-
$[
|
|
1302
|
-
$[
|
|
1303
|
-
} else t13 = $[
|
|
1241
|
+
$[21] = schema;
|
|
1242
|
+
$[22] = t13;
|
|
1243
|
+
} else t13 = $[22];
|
|
1304
1244
|
const editorKey = t13;
|
|
1305
1245
|
let t14;
|
|
1306
|
-
if ($[
|
|
1246
|
+
if ($[23] !== onChange) {
|
|
1307
1247
|
t14 = (value_0) => {
|
|
1308
1248
|
onChange?.(value_0 ?? "");
|
|
1309
1249
|
};
|
|
1310
|
-
$[
|
|
1311
|
-
$[
|
|
1312
|
-
} else t14 = $[
|
|
1250
|
+
$[23] = onChange;
|
|
1251
|
+
$[24] = t14;
|
|
1252
|
+
} else t14 = $[24];
|
|
1313
1253
|
let t15;
|
|
1314
|
-
if ($[
|
|
1254
|
+
if ($[25] !== onValidate || $[26] !== schema || $[27] !== value) {
|
|
1315
1255
|
t15 = (markers_0) => {
|
|
1316
1256
|
if (!onValidate || isValidatingRef.current) return;
|
|
1317
1257
|
isValidatingRef.current = true;
|
|
@@ -1319,18 +1259,18 @@ const JsonEditor = (t0) => {
|
|
|
1319
1259
|
else onValidate(markers_0.length === 0);
|
|
1320
1260
|
isValidatingRef.current = false;
|
|
1321
1261
|
};
|
|
1322
|
-
$[
|
|
1323
|
-
$[
|
|
1324
|
-
$[
|
|
1325
|
-
$[
|
|
1326
|
-
} else t15 = $[
|
|
1262
|
+
$[25] = onValidate;
|
|
1263
|
+
$[26] = schema;
|
|
1264
|
+
$[27] = value;
|
|
1265
|
+
$[28] = t15;
|
|
1266
|
+
} else t15 = $[28];
|
|
1327
1267
|
let t16;
|
|
1328
|
-
if ($[
|
|
1268
|
+
if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1329
1269
|
t16 = { enabled: false };
|
|
1330
|
-
$[
|
|
1331
|
-
} else t16 = $[
|
|
1270
|
+
$[29] = t16;
|
|
1271
|
+
} else t16 = $[29];
|
|
1332
1272
|
let t17;
|
|
1333
|
-
if ($[
|
|
1273
|
+
if ($[30] !== readOnly) {
|
|
1334
1274
|
t17 = {
|
|
1335
1275
|
automaticLayout: false,
|
|
1336
1276
|
readOnly,
|
|
@@ -1338,11 +1278,11 @@ const JsonEditor = (t0) => {
|
|
|
1338
1278
|
minimap: t16,
|
|
1339
1279
|
overviewRulerLanes: 0
|
|
1340
1280
|
};
|
|
1341
|
-
$[
|
|
1342
|
-
$[
|
|
1343
|
-
} else t17 = $[
|
|
1281
|
+
$[30] = readOnly;
|
|
1282
|
+
$[31] = t17;
|
|
1283
|
+
} else t17 = $[31];
|
|
1344
1284
|
let t18;
|
|
1345
|
-
if ($[
|
|
1285
|
+
if ($[32] !== editorKey || $[33] !== editorTheme || $[34] !== language || $[35] !== t14 || $[36] !== t15 || $[37] !== t17 || $[38] !== value) {
|
|
1346
1286
|
t18 = /* @__PURE__ */ jsx(Editor, {
|
|
1347
1287
|
"data-testid": "json-editor",
|
|
1348
1288
|
language,
|
|
@@ -1354,15 +1294,15 @@ const JsonEditor = (t0) => {
|
|
|
1354
1294
|
onValidate: t15,
|
|
1355
1295
|
options: t17
|
|
1356
1296
|
}, editorKey);
|
|
1357
|
-
$[
|
|
1358
|
-
$[
|
|
1359
|
-
$[
|
|
1360
|
-
$[
|
|
1361
|
-
$[
|
|
1362
|
-
$[
|
|
1363
|
-
$[
|
|
1364
|
-
$[
|
|
1365
|
-
} else t18 = $[
|
|
1297
|
+
$[32] = editorKey;
|
|
1298
|
+
$[33] = editorTheme;
|
|
1299
|
+
$[34] = language;
|
|
1300
|
+
$[35] = t14;
|
|
1301
|
+
$[36] = t15;
|
|
1302
|
+
$[37] = t17;
|
|
1303
|
+
$[38] = value;
|
|
1304
|
+
$[39] = t18;
|
|
1305
|
+
} else t18 = $[39];
|
|
1366
1306
|
return t18;
|
|
1367
1307
|
};
|
|
1368
1308
|
function _temp$3(state) {
|
|
@@ -1372,11 +1312,7 @@ function _temp$3(state) {
|
|
|
1372
1312
|
//#endregion
|
|
1373
1313
|
//#region src/play/side-panel-body-tab.tsx
|
|
1374
1314
|
const SidePanelBodyTab = memo((t0) => {
|
|
1375
|
-
const $ = c(
|
|
1376
|
-
if ($[0] !== "15cdaf91612bb3c1ef34320b0f01a80a135e66606fb87beb7a4a2f7f95e53a69") {
|
|
1377
|
-
for (let $i = 0; $i < 21; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1378
|
-
$[0] = "15cdaf91612bb3c1ef34320b0f01a80a135e66606fb87beb7a4a2f7f95e53a69";
|
|
1379
|
-
}
|
|
1315
|
+
const $ = c(20);
|
|
1380
1316
|
const { schema } = t0;
|
|
1381
1317
|
const { setBody, setBodyIsValid } = useEndpointConfiguration();
|
|
1382
1318
|
const bodyIsValid = useEndpointConfiguration(useShallow(getBodyIsValidSelector));
|
|
@@ -1385,7 +1321,7 @@ const SidePanelBodyTab = memo((t0) => {
|
|
|
1385
1321
|
const userClearedRef = useRef(false);
|
|
1386
1322
|
let t1;
|
|
1387
1323
|
let t2;
|
|
1388
|
-
if ($[
|
|
1324
|
+
if ($[0] !== body || $[1] !== schema || $[2] !== setBody || $[3] !== setBodyIsValid) {
|
|
1389
1325
|
t1 = () => {
|
|
1390
1326
|
const schemaChanged = previousSchemaRef.current !== schema;
|
|
1391
1327
|
previousSchemaRef.current = schema;
|
|
@@ -1405,19 +1341,19 @@ const SidePanelBodyTab = memo((t0) => {
|
|
|
1405
1341
|
setBody,
|
|
1406
1342
|
setBodyIsValid
|
|
1407
1343
|
];
|
|
1408
|
-
$[
|
|
1409
|
-
$[
|
|
1410
|
-
$[
|
|
1411
|
-
$[
|
|
1412
|
-
$[
|
|
1413
|
-
$[
|
|
1344
|
+
$[0] = body;
|
|
1345
|
+
$[1] = schema;
|
|
1346
|
+
$[2] = setBody;
|
|
1347
|
+
$[3] = setBodyIsValid;
|
|
1348
|
+
$[4] = t1;
|
|
1349
|
+
$[5] = t2;
|
|
1414
1350
|
} else {
|
|
1415
|
-
t1 = $[
|
|
1416
|
-
t2 = $[
|
|
1351
|
+
t1 = $[4];
|
|
1352
|
+
t2 = $[5];
|
|
1417
1353
|
}
|
|
1418
1354
|
useEffect(t1, t2);
|
|
1419
1355
|
let t3;
|
|
1420
|
-
if ($[
|
|
1356
|
+
if ($[6] !== schema || $[7] !== setBody || $[8] !== setBodyIsValid) {
|
|
1421
1357
|
t3 = (value) => {
|
|
1422
1358
|
setBody(value);
|
|
1423
1359
|
if (schema && !value) {
|
|
@@ -1425,57 +1361,53 @@ const SidePanelBodyTab = memo((t0) => {
|
|
|
1425
1361
|
userClearedRef.current = true;
|
|
1426
1362
|
} else userClearedRef.current = false;
|
|
1427
1363
|
};
|
|
1428
|
-
$[
|
|
1429
|
-
$[
|
|
1430
|
-
$[
|
|
1431
|
-
$[
|
|
1432
|
-
} else t3 = $[
|
|
1364
|
+
$[6] = schema;
|
|
1365
|
+
$[7] = setBody;
|
|
1366
|
+
$[8] = setBodyIsValid;
|
|
1367
|
+
$[9] = t3;
|
|
1368
|
+
} else t3 = $[9];
|
|
1433
1369
|
const handleBodyChange = t3;
|
|
1434
1370
|
let t4;
|
|
1435
|
-
if ($[
|
|
1371
|
+
if ($[10] !== body || $[11] !== handleBodyChange || $[12] !== schema || $[13] !== setBodyIsValid) {
|
|
1436
1372
|
t4 = /* @__PURE__ */ jsx(JsonEditor, {
|
|
1437
1373
|
value: body,
|
|
1438
1374
|
schema,
|
|
1439
1375
|
onChange: handleBodyChange,
|
|
1440
1376
|
onValidate: setBodyIsValid
|
|
1441
1377
|
});
|
|
1442
|
-
$[
|
|
1443
|
-
$[
|
|
1444
|
-
$[
|
|
1445
|
-
$[
|
|
1446
|
-
$[
|
|
1447
|
-
} else t4 = $[
|
|
1378
|
+
$[10] = body;
|
|
1379
|
+
$[11] = handleBodyChange;
|
|
1380
|
+
$[12] = schema;
|
|
1381
|
+
$[13] = setBodyIsValid;
|
|
1382
|
+
$[14] = t4;
|
|
1383
|
+
} else t4 = $[14];
|
|
1448
1384
|
let t5;
|
|
1449
|
-
if ($[
|
|
1385
|
+
if ($[15] !== bodyIsValid) {
|
|
1450
1386
|
t5 = bodyIsValid === false && /* @__PURE__ */ jsxs("div", {
|
|
1451
1387
|
className: "absolute bottom-0 left-0 right-0 border-t border-border p-3 text-sm dark:text-yellow-500 text-yellow-700 flex items-center gap-1 font-medium",
|
|
1452
1388
|
"data-testid": "endpoint-body-tab-invalid",
|
|
1453
1389
|
children: [/* @__PURE__ */ jsx(CircleX, { className: "w-4 h-4" }), "The body payload is invalid"]
|
|
1454
1390
|
});
|
|
1455
|
-
$[
|
|
1456
|
-
$[
|
|
1457
|
-
} else t5 = $[
|
|
1391
|
+
$[15] = bodyIsValid;
|
|
1392
|
+
$[16] = t5;
|
|
1393
|
+
} else t5 = $[16];
|
|
1458
1394
|
let t6;
|
|
1459
|
-
if ($[
|
|
1395
|
+
if ($[17] !== t4 || $[18] !== t5) {
|
|
1460
1396
|
t6 = /* @__PURE__ */ jsxs("div", {
|
|
1461
1397
|
className: "max-h-full h-full relative",
|
|
1462
1398
|
children: [t4, t5]
|
|
1463
1399
|
});
|
|
1464
|
-
$[
|
|
1465
|
-
$[
|
|
1466
|
-
$[
|
|
1467
|
-
} else t6 = $[
|
|
1400
|
+
$[17] = t4;
|
|
1401
|
+
$[18] = t5;
|
|
1402
|
+
$[19] = t6;
|
|
1403
|
+
} else t6 = $[19];
|
|
1468
1404
|
return t6;
|
|
1469
1405
|
});
|
|
1470
1406
|
|
|
1471
1407
|
//#endregion
|
|
1472
1408
|
//#region src/components/configuration-list-item.tsx
|
|
1473
1409
|
const ConfigurationListItem = memo((t0) => {
|
|
1474
|
-
const $ = c(
|
|
1475
|
-
if ($[0] !== "49b457e4243ed5368ffc15725d84d290ce5fe7173cb1a11ee0a1be10ae181259") {
|
|
1476
|
-
for (let $i = 0; $i < 59; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1477
|
-
$[0] = "49b457e4243ed5368ffc15725d84d290ce5fe7173cb1a11ee0a1be10ae181259";
|
|
1478
|
-
}
|
|
1410
|
+
const $ = c(58);
|
|
1479
1411
|
const { value, id, onUpdate, onRemove, required: t1 } = t0;
|
|
1480
1412
|
const required = t1 === void 0 ? false : t1;
|
|
1481
1413
|
const [activeConfiguration, setActiveConfiguration] = useState(null);
|
|
@@ -1483,7 +1415,7 @@ const ConfigurationListItem = memo((t0) => {
|
|
|
1483
1415
|
const deleteTimeout = useRef(void 0);
|
|
1484
1416
|
const isActive = activeConfiguration === id;
|
|
1485
1417
|
let t2;
|
|
1486
|
-
if ($[
|
|
1418
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1487
1419
|
t2 = (key) => {
|
|
1488
1420
|
clearTimeout(deleteTimeout.current);
|
|
1489
1421
|
setValueToDelete(key);
|
|
@@ -1491,74 +1423,74 @@ const ConfigurationListItem = memo((t0) => {
|
|
|
1491
1423
|
setValueToDelete(null);
|
|
1492
1424
|
}, 5e3);
|
|
1493
1425
|
};
|
|
1494
|
-
$[
|
|
1495
|
-
} else t2 = $[
|
|
1426
|
+
$[0] = t2;
|
|
1427
|
+
} else t2 = $[0];
|
|
1496
1428
|
const onDelete = t2;
|
|
1497
1429
|
let t3;
|
|
1498
|
-
if ($[
|
|
1430
|
+
if ($[1] !== id || $[2] !== required) {
|
|
1499
1431
|
t3 = () => {
|
|
1500
1432
|
if (required) return;
|
|
1501
1433
|
setActiveConfiguration(id);
|
|
1502
1434
|
};
|
|
1503
|
-
$[
|
|
1504
|
-
$[
|
|
1505
|
-
$[
|
|
1506
|
-
} else t3 = $[
|
|
1435
|
+
$[1] = id;
|
|
1436
|
+
$[2] = required;
|
|
1437
|
+
$[3] = t3;
|
|
1438
|
+
} else t3 = $[3];
|
|
1507
1439
|
const onMouseOver = t3;
|
|
1508
1440
|
let t4;
|
|
1509
|
-
if ($[
|
|
1441
|
+
if ($[4] !== required) {
|
|
1510
1442
|
t4 = () => {
|
|
1511
1443
|
if (required) return;
|
|
1512
1444
|
setActiveConfiguration(null);
|
|
1513
1445
|
};
|
|
1514
|
-
$[
|
|
1515
|
-
$[
|
|
1516
|
-
} else t4 = $[
|
|
1446
|
+
$[4] = required;
|
|
1447
|
+
$[5] = t4;
|
|
1448
|
+
} else t4 = $[5];
|
|
1517
1449
|
const onMouseLeave = t4;
|
|
1518
1450
|
const t5 = isActive && "bg-card";
|
|
1519
1451
|
let t6;
|
|
1520
|
-
if ($[
|
|
1452
|
+
if ($[6] !== t5) {
|
|
1521
1453
|
t6 = cn("grid grid-cols-[auto_1fr_auto] items-center py-2 px-4 bg-muted/30 rounded-lg gap-2", t5);
|
|
1522
|
-
$[
|
|
1523
|
-
$[
|
|
1524
|
-
} else t6 = $[
|
|
1454
|
+
$[6] = t5;
|
|
1455
|
+
$[7] = t6;
|
|
1456
|
+
} else t6 = $[7];
|
|
1525
1457
|
let t7;
|
|
1526
|
-
if ($[
|
|
1458
|
+
if ($[8] !== id || $[9] !== onUpdate) {
|
|
1527
1459
|
t7 = (checked) => onUpdate(id, "active", checked);
|
|
1528
|
-
$[
|
|
1529
|
-
$[
|
|
1530
|
-
$[
|
|
1531
|
-
} else t7 = $[
|
|
1460
|
+
$[8] = id;
|
|
1461
|
+
$[9] = onUpdate;
|
|
1462
|
+
$[10] = t7;
|
|
1463
|
+
} else t7 = $[10];
|
|
1532
1464
|
let t8;
|
|
1533
|
-
if ($[
|
|
1465
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1534
1466
|
t8 = /* @__PURE__ */ jsx(Check, { className: "h-3 w-3" });
|
|
1535
|
-
$[
|
|
1536
|
-
} else t8 = $[
|
|
1467
|
+
$[11] = t8;
|
|
1468
|
+
} else t8 = $[11];
|
|
1537
1469
|
let t9;
|
|
1538
|
-
if ($[
|
|
1470
|
+
if ($[12] !== required || $[13] !== t7 || $[14] !== value.active) {
|
|
1539
1471
|
t9 = /* @__PURE__ */ jsx(Checkbox, {
|
|
1540
1472
|
checked: value.active,
|
|
1541
1473
|
onCheckedChange: t7,
|
|
1542
1474
|
disabled: required,
|
|
1543
1475
|
children: t8
|
|
1544
1476
|
});
|
|
1545
|
-
$[
|
|
1546
|
-
$[
|
|
1547
|
-
$[
|
|
1548
|
-
$[
|
|
1549
|
-
} else t9 = $[
|
|
1477
|
+
$[12] = required;
|
|
1478
|
+
$[13] = t7;
|
|
1479
|
+
$[14] = value.active;
|
|
1480
|
+
$[15] = t9;
|
|
1481
|
+
} else t9 = $[15];
|
|
1550
1482
|
const t10 = !value.active;
|
|
1551
1483
|
const t11 = required ? "outlineReadonly" : "outline";
|
|
1552
1484
|
const t12 = `name-${id}`;
|
|
1553
1485
|
let t13;
|
|
1554
|
-
if ($[
|
|
1486
|
+
if ($[16] !== id || $[17] !== onUpdate) {
|
|
1555
1487
|
t13 = (e) => onUpdate(id, "name", e.target.value);
|
|
1556
|
-
$[
|
|
1557
|
-
$[
|
|
1558
|
-
$[
|
|
1559
|
-
} else t13 = $[
|
|
1488
|
+
$[16] = id;
|
|
1489
|
+
$[17] = onUpdate;
|
|
1490
|
+
$[18] = t13;
|
|
1491
|
+
} else t13 = $[18];
|
|
1560
1492
|
let t14;
|
|
1561
|
-
if ($[
|
|
1493
|
+
if ($[19] !== required || $[20] !== t10 || $[21] !== t11 || $[22] !== t12 || $[23] !== t13 || $[24] !== value.name) {
|
|
1562
1494
|
t14 = /* @__PURE__ */ jsx(Input, {
|
|
1563
1495
|
readOnly: required,
|
|
1564
1496
|
disabled: t10,
|
|
@@ -1569,25 +1501,25 @@ const ConfigurationListItem = memo((t0) => {
|
|
|
1569
1501
|
placeholder: "Name",
|
|
1570
1502
|
className: "h-8"
|
|
1571
1503
|
});
|
|
1572
|
-
$[
|
|
1573
|
-
$[
|
|
1574
|
-
$[
|
|
1575
|
-
$[
|
|
1576
|
-
$[
|
|
1577
|
-
$[
|
|
1578
|
-
$[
|
|
1579
|
-
} else t14 = $[
|
|
1504
|
+
$[19] = required;
|
|
1505
|
+
$[20] = t10;
|
|
1506
|
+
$[21] = t11;
|
|
1507
|
+
$[22] = t12;
|
|
1508
|
+
$[23] = t13;
|
|
1509
|
+
$[24] = value.name;
|
|
1510
|
+
$[25] = t14;
|
|
1511
|
+
} else t14 = $[25];
|
|
1580
1512
|
const t15 = !value.active;
|
|
1581
1513
|
const t16 = `value-${id}`;
|
|
1582
1514
|
let t17;
|
|
1583
|
-
if ($[
|
|
1515
|
+
if ($[26] !== id || $[27] !== onUpdate) {
|
|
1584
1516
|
t17 = (e_0) => onUpdate(id, "value", e_0.target.value);
|
|
1585
|
-
$[
|
|
1586
|
-
$[
|
|
1587
|
-
$[
|
|
1588
|
-
} else t17 = $[
|
|
1517
|
+
$[26] = id;
|
|
1518
|
+
$[27] = onUpdate;
|
|
1519
|
+
$[28] = t17;
|
|
1520
|
+
} else t17 = $[28];
|
|
1589
1521
|
let t18;
|
|
1590
|
-
if ($[
|
|
1522
|
+
if ($[29] !== t15 || $[30] !== t16 || $[31] !== t17 || $[32] !== value.value) {
|
|
1591
1523
|
t18 = /* @__PURE__ */ jsx(Input, {
|
|
1592
1524
|
disabled: t15,
|
|
1593
1525
|
variant: "outline",
|
|
@@ -1597,50 +1529,50 @@ const ConfigurationListItem = memo((t0) => {
|
|
|
1597
1529
|
placeholder: "Value",
|
|
1598
1530
|
className: "h-8"
|
|
1599
1531
|
});
|
|
1600
|
-
$[
|
|
1601
|
-
$[
|
|
1602
|
-
$[
|
|
1603
|
-
$[
|
|
1604
|
-
$[
|
|
1605
|
-
} else t18 = $[
|
|
1532
|
+
$[29] = t15;
|
|
1533
|
+
$[30] = t16;
|
|
1534
|
+
$[31] = t17;
|
|
1535
|
+
$[32] = value.value;
|
|
1536
|
+
$[33] = t18;
|
|
1537
|
+
} else t18 = $[33];
|
|
1606
1538
|
let t19;
|
|
1607
|
-
if ($[
|
|
1539
|
+
if ($[34] !== t14 || $[35] !== t18) {
|
|
1608
1540
|
t19 = /* @__PURE__ */ jsxs("div", {
|
|
1609
1541
|
className: "grid grid-cols-2 gap-2",
|
|
1610
1542
|
children: [t14, t18]
|
|
1611
1543
|
});
|
|
1612
|
-
$[
|
|
1613
|
-
$[
|
|
1614
|
-
$[
|
|
1615
|
-
} else t19 = $[
|
|
1544
|
+
$[34] = t14;
|
|
1545
|
+
$[35] = t18;
|
|
1546
|
+
$[36] = t19;
|
|
1547
|
+
} else t19 = $[36];
|
|
1616
1548
|
let t20;
|
|
1617
|
-
if ($[
|
|
1549
|
+
if ($[37] !== id || $[38] !== onRemove || $[39] !== valueToDelete) {
|
|
1618
1550
|
t20 = () => {
|
|
1619
1551
|
if (valueToDelete === id) onRemove?.(id);
|
|
1620
1552
|
else onDelete(id);
|
|
1621
1553
|
};
|
|
1622
|
-
$[
|
|
1623
|
-
$[
|
|
1624
|
-
$[
|
|
1625
|
-
$[
|
|
1626
|
-
} else t20 = $[
|
|
1554
|
+
$[37] = id;
|
|
1555
|
+
$[38] = onRemove;
|
|
1556
|
+
$[39] = valueToDelete;
|
|
1557
|
+
$[40] = t20;
|
|
1558
|
+
} else t20 = $[40];
|
|
1627
1559
|
const t21 = isActive && "opacity-100";
|
|
1628
1560
|
let t22;
|
|
1629
|
-
if ($[
|
|
1561
|
+
if ($[41] !== t21) {
|
|
1630
1562
|
t22 = cn("h-6 w-6 opacity-0 transition-opacity duration-200", t21);
|
|
1631
|
-
$[
|
|
1632
|
-
$[
|
|
1633
|
-
} else t22 = $[
|
|
1563
|
+
$[41] = t21;
|
|
1564
|
+
$[42] = t22;
|
|
1565
|
+
} else t22 = $[42];
|
|
1634
1566
|
const t23 = valueToDelete === id && isActive ? "Click again to remove" : "Remove";
|
|
1635
1567
|
let t24;
|
|
1636
|
-
if ($[
|
|
1568
|
+
if ($[43] !== id || $[44] !== valueToDelete) {
|
|
1637
1569
|
t24 = valueToDelete === id ? /* @__PURE__ */ jsx(AlertCircle, { className: "h-3 w-3 text-destructive" }) : /* @__PURE__ */ jsx(Trash2, { className: "h-3 w-3" });
|
|
1638
|
-
$[
|
|
1639
|
-
$[
|
|
1640
|
-
$[
|
|
1641
|
-
} else t24 = $[
|
|
1570
|
+
$[43] = id;
|
|
1571
|
+
$[44] = valueToDelete;
|
|
1572
|
+
$[45] = t24;
|
|
1573
|
+
} else t24 = $[45];
|
|
1642
1574
|
let t25;
|
|
1643
|
-
if ($[
|
|
1575
|
+
if ($[46] !== t20 || $[47] !== t22 || $[48] !== t23 || $[49] !== t24) {
|
|
1644
1576
|
t25 = /* @__PURE__ */ jsx(Button, {
|
|
1645
1577
|
variant: "ghost",
|
|
1646
1578
|
size: "icon",
|
|
@@ -1649,14 +1581,14 @@ const ConfigurationListItem = memo((t0) => {
|
|
|
1649
1581
|
title: t23,
|
|
1650
1582
|
children: t24
|
|
1651
1583
|
});
|
|
1652
|
-
$[
|
|
1653
|
-
$[
|
|
1654
|
-
$[
|
|
1655
|
-
$[
|
|
1656
|
-
$[
|
|
1657
|
-
} else t25 = $[
|
|
1584
|
+
$[46] = t20;
|
|
1585
|
+
$[47] = t22;
|
|
1586
|
+
$[48] = t23;
|
|
1587
|
+
$[49] = t24;
|
|
1588
|
+
$[50] = t25;
|
|
1589
|
+
} else t25 = $[50];
|
|
1658
1590
|
let t26;
|
|
1659
|
-
if ($[
|
|
1591
|
+
if ($[51] !== onMouseLeave || $[52] !== onMouseOver || $[53] !== t19 || $[54] !== t25 || $[55] !== t6 || $[56] !== t9) {
|
|
1660
1592
|
t26 = /* @__PURE__ */ jsxs("div", {
|
|
1661
1593
|
className: t6,
|
|
1662
1594
|
onMouseOver,
|
|
@@ -1667,14 +1599,14 @@ const ConfigurationListItem = memo((t0) => {
|
|
|
1667
1599
|
t25
|
|
1668
1600
|
]
|
|
1669
1601
|
});
|
|
1670
|
-
$[
|
|
1671
|
-
$[
|
|
1672
|
-
$[
|
|
1673
|
-
$[
|
|
1674
|
-
$[
|
|
1675
|
-
$[
|
|
1676
|
-
$[
|
|
1677
|
-
} else t26 = $[
|
|
1602
|
+
$[51] = onMouseLeave;
|
|
1603
|
+
$[52] = onMouseOver;
|
|
1604
|
+
$[53] = t19;
|
|
1605
|
+
$[54] = t25;
|
|
1606
|
+
$[55] = t6;
|
|
1607
|
+
$[56] = t9;
|
|
1608
|
+
$[57] = t26;
|
|
1609
|
+
} else t26 = $[57];
|
|
1678
1610
|
return t26;
|
|
1679
1611
|
});
|
|
1680
1612
|
|
|
@@ -1735,31 +1667,27 @@ const SidePanelHeadersTab = () => {
|
|
|
1735
1667
|
//#region src/hooks/use-path-url.ts
|
|
1736
1668
|
const queryParamsSelector = (state) => Object.values(getQueryParamsSelector(state)).filter((param) => param.active && param.value !== "" && param.name !== "");
|
|
1737
1669
|
const usePathUrl = (path) => {
|
|
1738
|
-
const $ = c(
|
|
1739
|
-
if ($[0] !== "7e3e8f17b13eb81e00060ed9f39b6042cd1d077a2d43f0c27437d6309314f3aa") {
|
|
1740
|
-
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1741
|
-
$[0] = "7e3e8f17b13eb81e00060ed9f39b6042cd1d077a2d43f0c27437d6309314f3aa";
|
|
1742
|
-
}
|
|
1670
|
+
const $ = c(5);
|
|
1743
1671
|
const pathParams = useEndpointConfiguration(useShallow(getPathParamsSelector));
|
|
1744
1672
|
const queryParams = useEndpointConfiguration(useShallow(queryParamsSelector));
|
|
1745
1673
|
let t0;
|
|
1746
|
-
if ($[
|
|
1674
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1747
1675
|
t0 = /:(\w+)/g;
|
|
1748
|
-
$[
|
|
1749
|
-
} else t0 = $[
|
|
1676
|
+
$[0] = t0;
|
|
1677
|
+
} else t0 = $[0];
|
|
1750
1678
|
let t1;
|
|
1751
|
-
if ($[
|
|
1679
|
+
if ($[1] !== pathParams) {
|
|
1752
1680
|
t1 = (match, p1) => pathParams[p1]?.value || match;
|
|
1753
|
-
$[
|
|
1754
|
-
$[
|
|
1755
|
-
} else t1 = $[
|
|
1681
|
+
$[1] = pathParams;
|
|
1682
|
+
$[2] = t1;
|
|
1683
|
+
} else t1 = $[2];
|
|
1756
1684
|
const url = path.replace(t0, t1);
|
|
1757
1685
|
let t2;
|
|
1758
|
-
if ($[
|
|
1686
|
+
if ($[3] !== queryParams) {
|
|
1759
1687
|
t2 = queryParams.length > 0 ? `?${queryParams.map(_temp$2).join("&")}` : "";
|
|
1760
|
-
$[
|
|
1761
|
-
$[
|
|
1762
|
-
} else t2 = $[
|
|
1688
|
+
$[3] = queryParams;
|
|
1689
|
+
$[4] = t2;
|
|
1690
|
+
} else t2 = $[4];
|
|
1763
1691
|
return url + t2;
|
|
1764
1692
|
};
|
|
1765
1693
|
function _temp$2(param) {
|
|
@@ -1769,16 +1697,12 @@ function _temp$2(param) {
|
|
|
1769
1697
|
//#endregion
|
|
1770
1698
|
//#region src/components/endpoint-path-preview.tsx
|
|
1771
1699
|
const EndpointPathPreview = (t0) => {
|
|
1772
|
-
const $ = c(
|
|
1773
|
-
if ($[0] !== "d28e3e9329232a2b4ad7f30814822a8f9a40f9e19a3e5c4e80f13d7dbd0fed07") {
|
|
1774
|
-
for (let $i = 0; $i < 17; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1775
|
-
$[0] = "d28e3e9329232a2b4ad7f30814822a8f9a40f9e19a3e5c4e80f13d7dbd0fed07";
|
|
1776
|
-
}
|
|
1700
|
+
const $ = c(16);
|
|
1777
1701
|
const { path, baseUrl: t1 } = t0;
|
|
1778
1702
|
const fullUrl = `${t1 === void 0 ? window.location.origin : t1}${usePathUrl(path)}`;
|
|
1779
1703
|
const [copied, setCopied] = useState(false);
|
|
1780
1704
|
let t2;
|
|
1781
|
-
if ($[
|
|
1705
|
+
if ($[0] !== fullUrl) {
|
|
1782
1706
|
t2 = async () => {
|
|
1783
1707
|
try {
|
|
1784
1708
|
await navigator.clipboard.writeText(fullUrl);
|
|
@@ -1789,20 +1713,20 @@ const EndpointPathPreview = (t0) => {
|
|
|
1789
1713
|
console.error("Failed to copy URL:", err);
|
|
1790
1714
|
}
|
|
1791
1715
|
};
|
|
1792
|
-
$[
|
|
1793
|
-
$[
|
|
1794
|
-
} else t2 = $[
|
|
1716
|
+
$[0] = fullUrl;
|
|
1717
|
+
$[1] = t2;
|
|
1718
|
+
} else t2 = $[1];
|
|
1795
1719
|
const handleCopy = t2;
|
|
1796
1720
|
let t3;
|
|
1797
|
-
if ($[
|
|
1721
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1798
1722
|
t3 = /* @__PURE__ */ jsx("div", {
|
|
1799
1723
|
className: "text-sm font-medium py-2",
|
|
1800
1724
|
children: "URL Preview"
|
|
1801
1725
|
});
|
|
1802
|
-
$[
|
|
1803
|
-
} else t3 = $[
|
|
1726
|
+
$[2] = t3;
|
|
1727
|
+
} else t3 = $[2];
|
|
1804
1728
|
let t4;
|
|
1805
|
-
if ($[
|
|
1729
|
+
if ($[3] !== fullUrl) {
|
|
1806
1730
|
t4 = /* @__PURE__ */ jsx("div", {
|
|
1807
1731
|
className: "min-w-0",
|
|
1808
1732
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -1811,24 +1735,24 @@ const EndpointPathPreview = (t0) => {
|
|
|
1811
1735
|
children: fullUrl
|
|
1812
1736
|
})
|
|
1813
1737
|
});
|
|
1814
|
-
$[
|
|
1815
|
-
$[
|
|
1816
|
-
} else t4 = $[
|
|
1738
|
+
$[3] = fullUrl;
|
|
1739
|
+
$[4] = t4;
|
|
1740
|
+
} else t4 = $[4];
|
|
1817
1741
|
const t5 = copied ? "text-green-400" : "text-muted-foreground";
|
|
1818
1742
|
let t6;
|
|
1819
|
-
if ($[
|
|
1743
|
+
if ($[5] !== t5) {
|
|
1820
1744
|
t6 = cn("w-3 h-3 grid place-items-center transition-colors cursor-pointer", t5);
|
|
1821
|
-
$[
|
|
1822
|
-
$[
|
|
1823
|
-
} else t6 = $[
|
|
1745
|
+
$[5] = t5;
|
|
1746
|
+
$[6] = t6;
|
|
1747
|
+
} else t6 = $[6];
|
|
1824
1748
|
let t7;
|
|
1825
|
-
if ($[
|
|
1749
|
+
if ($[7] !== copied) {
|
|
1826
1750
|
t7 = copied ? /* @__PURE__ */ jsx(Check, { className: "w-2.5 h-2.5" }) : /* @__PURE__ */ jsx(Copy, { className: "w-2.5 h-2.5" });
|
|
1827
|
-
$[
|
|
1828
|
-
$[
|
|
1829
|
-
} else t7 = $[
|
|
1751
|
+
$[7] = copied;
|
|
1752
|
+
$[8] = t7;
|
|
1753
|
+
} else t7 = $[8];
|
|
1830
1754
|
let t8;
|
|
1831
|
-
if ($[
|
|
1755
|
+
if ($[9] !== handleCopy || $[10] !== t6 || $[11] !== t7) {
|
|
1832
1756
|
t8 = /* @__PURE__ */ jsx(Button, {
|
|
1833
1757
|
onClick: handleCopy,
|
|
1834
1758
|
className: t6,
|
|
@@ -1837,13 +1761,13 @@ const EndpointPathPreview = (t0) => {
|
|
|
1837
1761
|
"aria-label": "Copy URL",
|
|
1838
1762
|
children: t7
|
|
1839
1763
|
});
|
|
1840
|
-
$[
|
|
1841
|
-
$[
|
|
1842
|
-
$[
|
|
1843
|
-
$[
|
|
1844
|
-
} else t8 = $[
|
|
1764
|
+
$[9] = handleCopy;
|
|
1765
|
+
$[10] = t6;
|
|
1766
|
+
$[11] = t7;
|
|
1767
|
+
$[12] = t8;
|
|
1768
|
+
} else t8 = $[12];
|
|
1845
1769
|
let t9;
|
|
1846
|
-
if ($[
|
|
1770
|
+
if ($[13] !== t4 || $[14] !== t8) {
|
|
1847
1771
|
t9 = /* @__PURE__ */ jsxs("div", {
|
|
1848
1772
|
className: "grid grid-cols-[auto_1fr] items-center gap-5 px-5 relative border-b border-border",
|
|
1849
1773
|
children: [t3, /* @__PURE__ */ jsxs("div", {
|
|
@@ -1851,10 +1775,10 @@ const EndpointPathPreview = (t0) => {
|
|
|
1851
1775
|
children: [t4, t8]
|
|
1852
1776
|
})]
|
|
1853
1777
|
});
|
|
1854
|
-
$[
|
|
1855
|
-
$[
|
|
1856
|
-
$[
|
|
1857
|
-
} else t9 = $[
|
|
1778
|
+
$[13] = t4;
|
|
1779
|
+
$[14] = t8;
|
|
1780
|
+
$[15] = t9;
|
|
1781
|
+
} else t9 = $[15];
|
|
1858
1782
|
return t9;
|
|
1859
1783
|
};
|
|
1860
1784
|
|
|
@@ -1963,63 +1887,59 @@ const SidePanelParamsTab = ({ path }) => {
|
|
|
1963
1887
|
//#endregion
|
|
1964
1888
|
//#region src/hooks/use-state-stream.ts
|
|
1965
1889
|
const useStateStream = (object) => {
|
|
1966
|
-
const $ = c(
|
|
1967
|
-
if ($[0] !== "285f0ed50e2dd4fc3015728ea5aa13d2c7f564b6cdec2adc1e1f9b84c6cc298a") {
|
|
1968
|
-
for (let $i = 0; $i < 15; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1969
|
-
$[0] = "285f0ed50e2dd4fc3015728ea5aa13d2c7f564b6cdec2adc1e1f9b84c6cc298a";
|
|
1970
|
-
}
|
|
1890
|
+
const $ = c(14);
|
|
1971
1891
|
let t0;
|
|
1972
|
-
if ($[
|
|
1892
|
+
if ($[0] !== object) {
|
|
1973
1893
|
t0 = typeof object === "string" ? {} : object || {};
|
|
1974
|
-
$[
|
|
1975
|
-
$[
|
|
1976
|
-
} else t0 = $[
|
|
1894
|
+
$[0] = object;
|
|
1895
|
+
$[1] = t0;
|
|
1896
|
+
} else t0 = $[1];
|
|
1977
1897
|
let __motia;
|
|
1978
1898
|
let rest;
|
|
1979
|
-
if ($[
|
|
1899
|
+
if ($[2] !== t0) {
|
|
1980
1900
|
({__motia, ...rest} = t0);
|
|
1981
|
-
$[
|
|
1982
|
-
$[
|
|
1983
|
-
$[
|
|
1901
|
+
$[2] = t0;
|
|
1902
|
+
$[3] = __motia;
|
|
1903
|
+
$[4] = rest;
|
|
1984
1904
|
} else {
|
|
1985
|
-
__motia = $[
|
|
1986
|
-
rest = $[
|
|
1905
|
+
__motia = $[3];
|
|
1906
|
+
rest = $[4];
|
|
1987
1907
|
}
|
|
1988
1908
|
const { data } = useStreamItem(__motia);
|
|
1989
1909
|
const originalData = Array.isArray(object) ? object : rest || object;
|
|
1990
1910
|
if (typeof object === "string") {
|
|
1991
1911
|
let t1$1;
|
|
1992
|
-
if ($[
|
|
1912
|
+
if ($[5] !== object) {
|
|
1993
1913
|
t1$1 = {
|
|
1994
1914
|
data: object,
|
|
1995
1915
|
originalData: object,
|
|
1996
1916
|
isStreamed: false
|
|
1997
1917
|
};
|
|
1998
|
-
$[
|
|
1999
|
-
$[
|
|
2000
|
-
} else t1$1 = $[
|
|
1918
|
+
$[5] = object;
|
|
1919
|
+
$[6] = t1$1;
|
|
1920
|
+
} else t1$1 = $[6];
|
|
2001
1921
|
return t1$1;
|
|
2002
1922
|
}
|
|
2003
1923
|
let t1;
|
|
2004
|
-
if ($[
|
|
1924
|
+
if ($[7] !== data || $[8] !== originalData) {
|
|
2005
1925
|
t1 = JSON.stringify(data || originalData, null, 2);
|
|
2006
|
-
$[
|
|
2007
|
-
$[
|
|
2008
|
-
$[
|
|
2009
|
-
} else t1 = $[
|
|
1926
|
+
$[7] = data;
|
|
1927
|
+
$[8] = originalData;
|
|
1928
|
+
$[9] = t1;
|
|
1929
|
+
} else t1 = $[9];
|
|
2010
1930
|
const t2 = !!__motia;
|
|
2011
1931
|
let t3;
|
|
2012
|
-
if ($[
|
|
1932
|
+
if ($[10] !== originalData || $[11] !== t1 || $[12] !== t2) {
|
|
2013
1933
|
t3 = {
|
|
2014
1934
|
data: t1,
|
|
2015
1935
|
originalData,
|
|
2016
1936
|
isStreamed: t2
|
|
2017
1937
|
};
|
|
2018
|
-
$[
|
|
2019
|
-
$[
|
|
2020
|
-
$[
|
|
2021
|
-
$[
|
|
2022
|
-
} else t3 = $[
|
|
1938
|
+
$[10] = originalData;
|
|
1939
|
+
$[11] = t1;
|
|
1940
|
+
$[12] = t2;
|
|
1941
|
+
$[13] = t3;
|
|
1942
|
+
} else t3 = $[13];
|
|
2023
1943
|
return t3;
|
|
2024
1944
|
};
|
|
2025
1945
|
|
|
@@ -2096,18 +2016,14 @@ const getStatusMessage = (statusCode) => {
|
|
|
2096
2016
|
//#endregion
|
|
2097
2017
|
//#region src/play/response-code.tsx
|
|
2098
2018
|
const ResponseCode = (t0) => {
|
|
2099
|
-
const $ = c(
|
|
2100
|
-
if ($[0] !== "0a8e4c92b858ecb81d25d971cc42d057e6dc5a30e6757fd87f3755a59a3871b2") {
|
|
2101
|
-
for (let $i = 0; $i < 13; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2102
|
-
$[0] = "0a8e4c92b858ecb81d25d971cc42d057e6dc5a30e6757fd87f3755a59a3871b2";
|
|
2103
|
-
}
|
|
2019
|
+
const $ = c(12);
|
|
2104
2020
|
const { statusCode } = t0;
|
|
2105
2021
|
let t1;
|
|
2106
|
-
if ($[
|
|
2022
|
+
if ($[0] !== statusCode) {
|
|
2107
2023
|
t1 = getStatusMessage(statusCode);
|
|
2108
|
-
$[
|
|
2109
|
-
$[
|
|
2110
|
-
} else t1 = $[
|
|
2024
|
+
$[0] = statusCode;
|
|
2025
|
+
$[1] = t1;
|
|
2026
|
+
} else t1 = $[1];
|
|
2111
2027
|
const statusMessage = t1;
|
|
2112
2028
|
const isSuccess = statusCode > 0 && statusCode < 400;
|
|
2113
2029
|
const isWarning = statusCode >= 400 && statusCode < 500;
|
|
@@ -2116,24 +2032,24 @@ const ResponseCode = (t0) => {
|
|
|
2116
2032
|
const t3 = isError && "dark:bg-[#F8367D]/20 dark:text-[#F8367D] bg-[#F8367D] text-white";
|
|
2117
2033
|
const t4 = isSuccess && "dark:bg-accent-200 dark:text-primary bg-accent text-white";
|
|
2118
2034
|
let t5;
|
|
2119
|
-
if ($[
|
|
2035
|
+
if ($[2] !== t2 || $[3] !== t3 || $[4] !== t4) {
|
|
2120
2036
|
t5 = cn("px-2 py-1 rounded-sm flex items-center gap-1", t2, t3, t4);
|
|
2121
|
-
$[
|
|
2122
|
-
$[
|
|
2123
|
-
$[
|
|
2124
|
-
$[
|
|
2125
|
-
} else t5 = $[
|
|
2037
|
+
$[2] = t2;
|
|
2038
|
+
$[3] = t3;
|
|
2039
|
+
$[4] = t4;
|
|
2040
|
+
$[5] = t5;
|
|
2041
|
+
} else t5 = $[5];
|
|
2126
2042
|
let t6;
|
|
2127
|
-
if ($[
|
|
2043
|
+
if ($[6] !== statusCode) {
|
|
2128
2044
|
t6 = /* @__PURE__ */ jsx("span", {
|
|
2129
2045
|
className: "font-bold font-mono",
|
|
2130
2046
|
children: statusCode
|
|
2131
2047
|
});
|
|
2132
|
-
$[
|
|
2133
|
-
$[
|
|
2134
|
-
} else t6 = $[
|
|
2048
|
+
$[6] = statusCode;
|
|
2049
|
+
$[7] = t6;
|
|
2050
|
+
} else t6 = $[7];
|
|
2135
2051
|
let t7;
|
|
2136
|
-
if ($[
|
|
2052
|
+
if ($[8] !== statusMessage || $[9] !== t5 || $[10] !== t6) {
|
|
2137
2053
|
t7 = /* @__PURE__ */ jsxs("div", {
|
|
2138
2054
|
className: t5,
|
|
2139
2055
|
children: [
|
|
@@ -2142,11 +2058,11 @@ const ResponseCode = (t0) => {
|
|
|
2142
2058
|
statusMessage
|
|
2143
2059
|
]
|
|
2144
2060
|
});
|
|
2145
|
-
$[
|
|
2146
|
-
$[
|
|
2147
|
-
$[
|
|
2148
|
-
$[
|
|
2149
|
-
} else t7 = $[
|
|
2061
|
+
$[8] = statusMessage;
|
|
2062
|
+
$[9] = t5;
|
|
2063
|
+
$[10] = t6;
|
|
2064
|
+
$[11] = t7;
|
|
2065
|
+
} else t7 = $[11];
|
|
2150
2066
|
return t7;
|
|
2151
2067
|
};
|
|
2152
2068
|
|
|
@@ -2167,28 +2083,24 @@ const useLanguage = (contentType) => {
|
|
|
2167
2083
|
return "text";
|
|
2168
2084
|
};
|
|
2169
2085
|
const ResponseContent = (t0) => {
|
|
2170
|
-
const $ = c(
|
|
2171
|
-
if ($[0] !== "51b73d23c1291874f81ba55f0a6e81eecd3ad0cede326e91ed482cd0ab995a8f") {
|
|
2172
|
-
for (let $i = 0; $i < 14; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2173
|
-
$[0] = "51b73d23c1291874f81ba55f0a6e81eecd3ad0cede326e91ed482cd0ab995a8f";
|
|
2174
|
-
}
|
|
2086
|
+
const $ = c(13);
|
|
2175
2087
|
const { code, blob, contentType } = t0;
|
|
2176
2088
|
const themeStyle = useThemeStore(_temp$1) === "dark" ? atomDark : oneLight;
|
|
2177
2089
|
const language = useLanguage(contentType);
|
|
2178
2090
|
let t1;
|
|
2179
|
-
if ($[
|
|
2091
|
+
if ($[0] !== blob) {
|
|
2180
2092
|
t1 = () => {
|
|
2181
2093
|
if (blob) {
|
|
2182
2094
|
const url = URL.createObjectURL(blob);
|
|
2183
2095
|
window.open(url, "_blank");
|
|
2184
2096
|
}
|
|
2185
2097
|
};
|
|
2186
|
-
$[
|
|
2187
|
-
$[
|
|
2188
|
-
} else t1 = $[
|
|
2098
|
+
$[0] = blob;
|
|
2099
|
+
$[1] = t1;
|
|
2100
|
+
} else t1 = $[1];
|
|
2189
2101
|
const onDownload = t1;
|
|
2190
2102
|
let t2;
|
|
2191
|
-
if ($[
|
|
2103
|
+
if ($[2] !== blob || $[3] !== onDownload) {
|
|
2192
2104
|
t2 = blob && /* @__PURE__ */ jsx("div", {
|
|
2193
2105
|
className: "flex p-8 justify-center",
|
|
2194
2106
|
children: /* @__PURE__ */ jsxs(Button, {
|
|
@@ -2197,12 +2109,12 @@ const ResponseContent = (t0) => {
|
|
|
2197
2109
|
children: [/* @__PURE__ */ jsx(Download, { className: "h-4 w-4" }), " Download"]
|
|
2198
2110
|
})
|
|
2199
2111
|
});
|
|
2200
|
-
$[
|
|
2201
|
-
$[
|
|
2202
|
-
$[
|
|
2203
|
-
} else t2 = $[
|
|
2112
|
+
$[2] = blob;
|
|
2113
|
+
$[3] = onDownload;
|
|
2114
|
+
$[4] = t2;
|
|
2115
|
+
} else t2 = $[4];
|
|
2204
2116
|
let t3;
|
|
2205
|
-
if ($[
|
|
2117
|
+
if ($[5] !== blob || $[6] !== code || $[7] !== language || $[8] !== themeStyle) {
|
|
2206
2118
|
t3 = !blob && code && /* @__PURE__ */ jsx(Prism, {
|
|
2207
2119
|
showLineNumbers: true,
|
|
2208
2120
|
language,
|
|
@@ -2212,22 +2124,22 @@ const ResponseContent = (t0) => {
|
|
|
2212
2124
|
wrapLines: true,
|
|
2213
2125
|
children: code
|
|
2214
2126
|
});
|
|
2215
|
-
$[
|
|
2216
|
-
$[
|
|
2217
|
-
$[
|
|
2218
|
-
$[
|
|
2219
|
-
$[
|
|
2220
|
-
} else t3 = $[
|
|
2127
|
+
$[5] = blob;
|
|
2128
|
+
$[6] = code;
|
|
2129
|
+
$[7] = language;
|
|
2130
|
+
$[8] = themeStyle;
|
|
2131
|
+
$[9] = t3;
|
|
2132
|
+
} else t3 = $[9];
|
|
2221
2133
|
let t4;
|
|
2222
|
-
if ($[
|
|
2134
|
+
if ($[10] !== t2 || $[11] !== t3) {
|
|
2223
2135
|
t4 = /* @__PURE__ */ jsxs("div", {
|
|
2224
2136
|
className: "flex flex-col h-full overflow-y-auto",
|
|
2225
2137
|
children: [t2, t3]
|
|
2226
2138
|
});
|
|
2227
|
-
$[
|
|
2228
|
-
$[
|
|
2229
|
-
$[
|
|
2230
|
-
} else t4 = $[
|
|
2139
|
+
$[10] = t2;
|
|
2140
|
+
$[11] = t3;
|
|
2141
|
+
$[12] = t4;
|
|
2142
|
+
} else t4 = $[12];
|
|
2231
2143
|
return t4;
|
|
2232
2144
|
};
|
|
2233
2145
|
function _temp$1(state) {
|
|
@@ -2237,30 +2149,26 @@ function _temp$1(state) {
|
|
|
2237
2149
|
//#endregion
|
|
2238
2150
|
//#region src/play/side-panel-response.tsx
|
|
2239
2151
|
const SidePanelResponse = memo(() => {
|
|
2240
|
-
const $ = c(
|
|
2241
|
-
if ($[0] !== "c41d9d0c255bfb25883f458c9673498cbc698b0e44623ab8537e78707a43852c") {
|
|
2242
|
-
for (let $i = 0; $i < 29; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2243
|
-
$[0] = "c41d9d0c255bfb25883f458c9673498cbc698b0e44623ab8537e78707a43852c";
|
|
2244
|
-
}
|
|
2152
|
+
const $ = c(28);
|
|
2245
2153
|
const { setResponse } = useEndpointConfiguration();
|
|
2246
2154
|
const response = useEndpointConfiguration(getResponseSelector);
|
|
2247
2155
|
const { data } = useStateStream(response?.body instanceof Blob ? void 0 : response?.body);
|
|
2248
2156
|
const [activeTab, setActiveTab] = useState("preview");
|
|
2249
2157
|
let t0;
|
|
2250
|
-
if ($[
|
|
2158
|
+
if ($[0] !== setResponse) {
|
|
2251
2159
|
t0 = () => setResponse(void 0);
|
|
2252
|
-
$[
|
|
2253
|
-
$[
|
|
2254
|
-
} else t0 = $[
|
|
2160
|
+
$[0] = setResponse;
|
|
2161
|
+
$[1] = t0;
|
|
2162
|
+
} else t0 = $[1];
|
|
2255
2163
|
const onClose = t0;
|
|
2256
2164
|
if (!response) return null;
|
|
2257
2165
|
let t1;
|
|
2258
|
-
if ($[
|
|
2166
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2259
2167
|
t1 = (value) => setActiveTab(value);
|
|
2260
|
-
$[
|
|
2261
|
-
} else t1 = $[
|
|
2168
|
+
$[2] = t1;
|
|
2169
|
+
} else t1 = $[2];
|
|
2262
2170
|
let t2;
|
|
2263
|
-
if ($[
|
|
2171
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2264
2172
|
t2 = /* @__PURE__ */ jsxs(TabsList, { children: [/* @__PURE__ */ jsx(TabsTrigger, {
|
|
2265
2173
|
value: "preview",
|
|
2266
2174
|
className: "cursor-pointer",
|
|
@@ -2270,15 +2178,15 @@ const SidePanelResponse = memo(() => {
|
|
|
2270
2178
|
className: "grid grid-cols-[auto_auto] gap-2 items-center cursor-pointer",
|
|
2271
2179
|
children: "Headers"
|
|
2272
2180
|
})] });
|
|
2273
|
-
$[
|
|
2274
|
-
} else t2 = $[
|
|
2181
|
+
$[3] = t2;
|
|
2182
|
+
} else t2 = $[3];
|
|
2275
2183
|
let t3;
|
|
2276
|
-
if ($[
|
|
2184
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2277
2185
|
t3 = /* @__PURE__ */ jsx(X, { className: "h-4 w-4" });
|
|
2278
|
-
$[
|
|
2279
|
-
} else t3 = $[
|
|
2186
|
+
$[4] = t3;
|
|
2187
|
+
} else t3 = $[4];
|
|
2280
2188
|
let t4;
|
|
2281
|
-
if ($[
|
|
2189
|
+
if ($[5] !== onClose) {
|
|
2282
2190
|
t4 = /* @__PURE__ */ jsxs("div", {
|
|
2283
2191
|
className: "grid grid-cols-[1fr_auto] items-center h-10 border-b px-5 bg-card",
|
|
2284
2192
|
children: [t2, /* @__PURE__ */ jsx(Button, {
|
|
@@ -2288,26 +2196,26 @@ const SidePanelResponse = memo(() => {
|
|
|
2288
2196
|
children: t3
|
|
2289
2197
|
})]
|
|
2290
2198
|
});
|
|
2291
|
-
$[
|
|
2292
|
-
$[
|
|
2293
|
-
} else t4 = $[
|
|
2199
|
+
$[5] = onClose;
|
|
2200
|
+
$[6] = t4;
|
|
2201
|
+
} else t4 = $[6];
|
|
2294
2202
|
let t5;
|
|
2295
|
-
if ($[
|
|
2203
|
+
if ($[7] !== response.statusCode) {
|
|
2296
2204
|
t5 = /* @__PURE__ */ jsx(ResponseCode, { statusCode: response.statusCode });
|
|
2297
|
-
$[
|
|
2298
|
-
$[
|
|
2299
|
-
} else t5 = $[
|
|
2205
|
+
$[7] = response.statusCode;
|
|
2206
|
+
$[8] = t5;
|
|
2207
|
+
} else t5 = $[8];
|
|
2300
2208
|
let t6;
|
|
2301
|
-
if ($[
|
|
2209
|
+
if ($[9] !== response.executionTime) {
|
|
2302
2210
|
t6 = !!response.executionTime && /* @__PURE__ */ jsxs("div", {
|
|
2303
2211
|
className: "text-muted-foreground bg-muted-foreground/10 px-2 py-1 rounded-sm",
|
|
2304
2212
|
children: [response.executionTime, "ms"]
|
|
2305
2213
|
});
|
|
2306
|
-
$[
|
|
2307
|
-
$[
|
|
2308
|
-
} else t6 = $[
|
|
2214
|
+
$[9] = response.executionTime;
|
|
2215
|
+
$[10] = t6;
|
|
2216
|
+
} else t6 = $[10];
|
|
2309
2217
|
let t7;
|
|
2310
|
-
if ($[
|
|
2218
|
+
if ($[11] !== t5 || $[12] !== t6) {
|
|
2311
2219
|
t7 = /* @__PURE__ */ jsx("div", {
|
|
2312
2220
|
className: "sticky bottom-0 border-b border-border p-3 text-sm flex items-center gap-1 font-medium",
|
|
2313
2221
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -2315,14 +2223,14 @@ const SidePanelResponse = memo(() => {
|
|
|
2315
2223
|
children: [t5, t6]
|
|
2316
2224
|
})
|
|
2317
2225
|
});
|
|
2318
|
-
$[
|
|
2319
|
-
$[
|
|
2320
|
-
$[
|
|
2321
|
-
} else t7 = $[
|
|
2226
|
+
$[11] = t5;
|
|
2227
|
+
$[12] = t6;
|
|
2228
|
+
$[13] = t7;
|
|
2229
|
+
} else t7 = $[13];
|
|
2322
2230
|
const t8 = response?.body instanceof Blob ? response.body : void 0;
|
|
2323
2231
|
const t9 = response.headers["content-type"];
|
|
2324
2232
|
let t10;
|
|
2325
|
-
if ($[
|
|
2233
|
+
if ($[14] !== data || $[15] !== t8 || $[16] !== t9) {
|
|
2326
2234
|
t10 = /* @__PURE__ */ jsx(TabsContent, {
|
|
2327
2235
|
value: "preview",
|
|
2328
2236
|
children: /* @__PURE__ */ jsx(ResponseContent, {
|
|
@@ -2331,19 +2239,19 @@ const SidePanelResponse = memo(() => {
|
|
|
2331
2239
|
contentType: t9
|
|
2332
2240
|
})
|
|
2333
2241
|
});
|
|
2334
|
-
$[
|
|
2335
|
-
$[
|
|
2336
|
-
$[
|
|
2337
|
-
$[
|
|
2338
|
-
} else t10 = $[
|
|
2242
|
+
$[14] = data;
|
|
2243
|
+
$[15] = t8;
|
|
2244
|
+
$[16] = t9;
|
|
2245
|
+
$[17] = t10;
|
|
2246
|
+
} else t10 = $[17];
|
|
2339
2247
|
let t11;
|
|
2340
|
-
if ($[
|
|
2248
|
+
if ($[18] !== response.headers) {
|
|
2341
2249
|
t11 = response.headers && Object.entries(response.headers).map(_temp);
|
|
2342
|
-
$[
|
|
2343
|
-
$[
|
|
2344
|
-
} else t11 = $[
|
|
2250
|
+
$[18] = response.headers;
|
|
2251
|
+
$[19] = t11;
|
|
2252
|
+
} else t11 = $[19];
|
|
2345
2253
|
let t12;
|
|
2346
|
-
if ($[
|
|
2254
|
+
if ($[20] !== t11) {
|
|
2347
2255
|
t12 = /* @__PURE__ */ jsx(TabsContent, {
|
|
2348
2256
|
value: "headers",
|
|
2349
2257
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -2351,11 +2259,11 @@ const SidePanelResponse = memo(() => {
|
|
|
2351
2259
|
children: t11
|
|
2352
2260
|
})
|
|
2353
2261
|
});
|
|
2354
|
-
$[
|
|
2355
|
-
$[
|
|
2356
|
-
} else t12 = $[
|
|
2262
|
+
$[20] = t11;
|
|
2263
|
+
$[21] = t12;
|
|
2264
|
+
} else t12 = $[21];
|
|
2357
2265
|
let t13;
|
|
2358
|
-
if ($[
|
|
2266
|
+
if ($[22] !== activeTab || $[23] !== t10 || $[24] !== t12 || $[25] !== t4 || $[26] !== t7) {
|
|
2359
2267
|
t13 = /* @__PURE__ */ jsxs(Tabs, {
|
|
2360
2268
|
value: activeTab,
|
|
2361
2269
|
onValueChange: t1,
|
|
@@ -2368,13 +2276,13 @@ const SidePanelResponse = memo(() => {
|
|
|
2368
2276
|
t12
|
|
2369
2277
|
]
|
|
2370
2278
|
});
|
|
2371
|
-
$[
|
|
2372
|
-
$[
|
|
2373
|
-
$[
|
|
2374
|
-
$[
|
|
2375
|
-
$[
|
|
2376
|
-
$[
|
|
2377
|
-
} else t13 = $[
|
|
2279
|
+
$[22] = activeTab;
|
|
2280
|
+
$[23] = t10;
|
|
2281
|
+
$[24] = t12;
|
|
2282
|
+
$[25] = t4;
|
|
2283
|
+
$[26] = t7;
|
|
2284
|
+
$[27] = t13;
|
|
2285
|
+
} else t13 = $[27];
|
|
2378
2286
|
return t13;
|
|
2379
2287
|
});
|
|
2380
2288
|
function _temp(t0) {
|
|
@@ -2436,11 +2344,7 @@ const headersCountSelector = (state) => Object.keys(getHeadersSelector(state)).l
|
|
|
2436
2344
|
const hasResponseSelector = (state) => getResponseSelector(state) !== void 0;
|
|
2437
2345
|
const paramsCountSelector = (state) => Object.keys(getQueryParamsSelector(state)).length;
|
|
2438
2346
|
const SidePanel = memo((t0) => {
|
|
2439
|
-
const $ = c(
|
|
2440
|
-
if ($[0] !== "0020adea1162c54cf5aae85d8c5ed34a7262d6cfdf90ef6b8d89094328918944") {
|
|
2441
|
-
for (let $i = 0; $i < 62; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2442
|
-
$[0] = "0020adea1162c54cf5aae85d8c5ed34a7262d6cfdf90ef6b8d89094328918944";
|
|
2443
|
-
}
|
|
2347
|
+
const $ = c(61);
|
|
2444
2348
|
const { endpoint, onClose } = t0;
|
|
2445
2349
|
const [activeTab, setActiveTab] = useState(endpoint.method === "GET" || endpoint.method === "DELETE" ? "params" : "body");
|
|
2446
2350
|
const [isSpecOpen, setIsSpecOpen] = useState(false);
|
|
@@ -2449,52 +2353,52 @@ const SidePanel = memo((t0) => {
|
|
|
2449
2353
|
const pathParamsCount = usePathParams(endpoint.path).length;
|
|
2450
2354
|
const paramsCount = useEndpointConfiguration(useShallow(paramsCountSelector)) + pathParamsCount;
|
|
2451
2355
|
let t1;
|
|
2452
|
-
if ($[
|
|
2356
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2453
2357
|
t1 = /* @__PURE__ */ jsx(BackgroundEffect, {});
|
|
2454
|
-
$[
|
|
2455
|
-
} else t1 = $[
|
|
2358
|
+
$[0] = t1;
|
|
2359
|
+
} else t1 = $[0];
|
|
2456
2360
|
let t2;
|
|
2457
|
-
if ($[
|
|
2361
|
+
if ($[1] !== endpoint.method || $[2] !== endpoint.path) {
|
|
2458
2362
|
t2 = /* @__PURE__ */ jsx(EndpointPath, {
|
|
2459
2363
|
method: endpoint.method,
|
|
2460
2364
|
path: endpoint.path
|
|
2461
2365
|
});
|
|
2462
|
-
$[
|
|
2463
|
-
$[
|
|
2464
|
-
$[
|
|
2465
|
-
} else t2 = $[
|
|
2366
|
+
$[1] = endpoint.method;
|
|
2367
|
+
$[2] = endpoint.path;
|
|
2368
|
+
$[3] = t2;
|
|
2369
|
+
} else t2 = $[3];
|
|
2466
2370
|
let t3;
|
|
2467
|
-
if ($[
|
|
2371
|
+
if ($[4] !== endpoint.description) {
|
|
2468
2372
|
t3 = endpoint.description && /* @__PURE__ */ jsx("p", {
|
|
2469
2373
|
className: "text-sm text-muted-foreground",
|
|
2470
2374
|
children: endpoint.description
|
|
2471
2375
|
});
|
|
2472
|
-
$[
|
|
2473
|
-
$[
|
|
2474
|
-
} else t3 = $[
|
|
2376
|
+
$[4] = endpoint.description;
|
|
2377
|
+
$[5] = t3;
|
|
2378
|
+
} else t3 = $[5];
|
|
2475
2379
|
let t4;
|
|
2476
|
-
if ($[
|
|
2380
|
+
if ($[6] !== t2 || $[7] !== t3) {
|
|
2477
2381
|
t4 = /* @__PURE__ */ jsxs("div", {
|
|
2478
2382
|
className: "grid grid-rows-2 gap-2",
|
|
2479
2383
|
children: [t2, t3]
|
|
2480
2384
|
});
|
|
2481
|
-
$[
|
|
2482
|
-
$[
|
|
2483
|
-
$[
|
|
2484
|
-
} else t4 = $[
|
|
2385
|
+
$[6] = t2;
|
|
2386
|
+
$[7] = t3;
|
|
2387
|
+
$[8] = t4;
|
|
2388
|
+
} else t4 = $[8];
|
|
2485
2389
|
let t5;
|
|
2486
|
-
if ($[
|
|
2390
|
+
if ($[9] !== isSpecOpen) {
|
|
2487
2391
|
t5 = () => setIsSpecOpen(!isSpecOpen);
|
|
2488
|
-
$[
|
|
2489
|
-
$[
|
|
2490
|
-
} else t5 = $[
|
|
2392
|
+
$[9] = isSpecOpen;
|
|
2393
|
+
$[10] = t5;
|
|
2394
|
+
} else t5 = $[10];
|
|
2491
2395
|
let t6;
|
|
2492
|
-
if ($[
|
|
2396
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2493
2397
|
t6 = /* @__PURE__ */ jsx(Book, {});
|
|
2494
|
-
$[
|
|
2495
|
-
} else t6 = $[
|
|
2398
|
+
$[11] = t6;
|
|
2399
|
+
} else t6 = $[11];
|
|
2496
2400
|
let t7;
|
|
2497
|
-
if ($[
|
|
2401
|
+
if ($[12] !== t5) {
|
|
2498
2402
|
t7 = /* @__PURE__ */ jsx("div", {
|
|
2499
2403
|
className: "flex items-end justify-end",
|
|
2500
2404
|
children: /* @__PURE__ */ jsx(Button, {
|
|
@@ -2505,27 +2409,27 @@ const SidePanel = memo((t0) => {
|
|
|
2505
2409
|
children: t6
|
|
2506
2410
|
})
|
|
2507
2411
|
});
|
|
2508
|
-
$[
|
|
2509
|
-
$[
|
|
2510
|
-
} else t7 = $[
|
|
2412
|
+
$[12] = t5;
|
|
2413
|
+
$[13] = t7;
|
|
2414
|
+
} else t7 = $[13];
|
|
2511
2415
|
let t8;
|
|
2512
|
-
if ($[
|
|
2416
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2513
2417
|
t8 = /* @__PURE__ */ jsx(X, {});
|
|
2514
|
-
$[
|
|
2515
|
-
} else t8 = $[
|
|
2418
|
+
$[14] = t8;
|
|
2419
|
+
} else t8 = $[14];
|
|
2516
2420
|
let t9;
|
|
2517
|
-
if ($[
|
|
2421
|
+
if ($[15] !== onClose) {
|
|
2518
2422
|
t9 = /* @__PURE__ */ jsx(Button, {
|
|
2519
2423
|
variant: "icon",
|
|
2520
2424
|
size: "icon",
|
|
2521
2425
|
onClick: onClose,
|
|
2522
2426
|
children: t8
|
|
2523
2427
|
});
|
|
2524
|
-
$[
|
|
2525
|
-
$[
|
|
2526
|
-
} else t9 = $[
|
|
2428
|
+
$[15] = onClose;
|
|
2429
|
+
$[16] = t9;
|
|
2430
|
+
} else t9 = $[16];
|
|
2527
2431
|
let t10;
|
|
2528
|
-
if ($[
|
|
2432
|
+
if ($[17] !== t4 || $[18] !== t7 || $[19] !== t9) {
|
|
2529
2433
|
t10 = /* @__PURE__ */ jsxs("div", {
|
|
2530
2434
|
className: "grid grid-cols-[1fr_1fr_auto] items-start gap-4 px-5 py-4 border-b bg-card w-full",
|
|
2531
2435
|
children: [
|
|
@@ -2534,25 +2438,25 @@ const SidePanel = memo((t0) => {
|
|
|
2534
2438
|
t9
|
|
2535
2439
|
]
|
|
2536
2440
|
});
|
|
2537
|
-
$[
|
|
2538
|
-
$[
|
|
2539
|
-
$[
|
|
2540
|
-
$[
|
|
2541
|
-
} else t10 = $[
|
|
2441
|
+
$[17] = t4;
|
|
2442
|
+
$[18] = t7;
|
|
2443
|
+
$[19] = t9;
|
|
2444
|
+
$[20] = t10;
|
|
2445
|
+
} else t10 = $[20];
|
|
2542
2446
|
const t11 = !hasResponse && "grid-cols-1";
|
|
2543
2447
|
let t12;
|
|
2544
|
-
if ($[
|
|
2448
|
+
if ($[21] !== t11) {
|
|
2545
2449
|
t12 = cn("grid grid-cols-[minmax(380px,1fr)_minmax(auto,1fr)]", t11);
|
|
2546
|
-
$[
|
|
2547
|
-
$[
|
|
2548
|
-
} else t12 = $[
|
|
2450
|
+
$[21] = t11;
|
|
2451
|
+
$[22] = t12;
|
|
2452
|
+
} else t12 = $[22];
|
|
2549
2453
|
let t13;
|
|
2550
|
-
if ($[
|
|
2454
|
+
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2551
2455
|
t13 = (value) => setActiveTab(value);
|
|
2552
|
-
$[
|
|
2553
|
-
} else t13 = $[
|
|
2456
|
+
$[23] = t13;
|
|
2457
|
+
} else t13 = $[23];
|
|
2554
2458
|
let t14;
|
|
2555
|
-
if ($[
|
|
2459
|
+
if ($[24] !== paramsCount) {
|
|
2556
2460
|
t14 = /* @__PURE__ */ jsxs(TabsTrigger, {
|
|
2557
2461
|
value: "params",
|
|
2558
2462
|
className: "grid grid-cols-[auto_auto] gap-2 items-center cursor-pointer",
|
|
@@ -2563,21 +2467,21 @@ const SidePanel = memo((t0) => {
|
|
|
2563
2467
|
children: paramsCount
|
|
2564
2468
|
})]
|
|
2565
2469
|
});
|
|
2566
|
-
$[
|
|
2567
|
-
$[
|
|
2568
|
-
} else t14 = $[
|
|
2470
|
+
$[24] = paramsCount;
|
|
2471
|
+
$[25] = t14;
|
|
2472
|
+
} else t14 = $[25];
|
|
2569
2473
|
let t15;
|
|
2570
|
-
if ($[
|
|
2474
|
+
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2571
2475
|
t15 = /* @__PURE__ */ jsx(TabsTrigger, {
|
|
2572
2476
|
value: "body",
|
|
2573
2477
|
className: "cursor-pointer",
|
|
2574
2478
|
"data-testid": "endpoint-body-tab",
|
|
2575
2479
|
children: "Body"
|
|
2576
2480
|
});
|
|
2577
|
-
$[
|
|
2578
|
-
} else t15 = $[
|
|
2481
|
+
$[26] = t15;
|
|
2482
|
+
} else t15 = $[26];
|
|
2579
2483
|
let t16;
|
|
2580
|
-
if ($[
|
|
2484
|
+
if ($[27] !== headersCount) {
|
|
2581
2485
|
t16 = /* @__PURE__ */ jsxs(TabsTrigger, {
|
|
2582
2486
|
value: "headers",
|
|
2583
2487
|
className: "grid grid-cols-[auto_auto] gap-2 items-center cursor-pointer",
|
|
@@ -2588,75 +2492,75 @@ const SidePanel = memo((t0) => {
|
|
|
2588
2492
|
children: headersCount
|
|
2589
2493
|
})]
|
|
2590
2494
|
});
|
|
2591
|
-
$[
|
|
2592
|
-
$[
|
|
2593
|
-
} else t16 = $[
|
|
2495
|
+
$[27] = headersCount;
|
|
2496
|
+
$[28] = t16;
|
|
2497
|
+
} else t16 = $[28];
|
|
2594
2498
|
let t17;
|
|
2595
|
-
if ($[
|
|
2499
|
+
if ($[29] !== t14 || $[30] !== t16) {
|
|
2596
2500
|
t17 = /* @__PURE__ */ jsxs(TabsList, { children: [
|
|
2597
2501
|
t14,
|
|
2598
2502
|
t15,
|
|
2599
2503
|
t16
|
|
2600
2504
|
] });
|
|
2601
|
-
$[
|
|
2602
|
-
$[
|
|
2603
|
-
$[
|
|
2604
|
-
} else t17 = $[
|
|
2505
|
+
$[29] = t14;
|
|
2506
|
+
$[30] = t16;
|
|
2507
|
+
$[31] = t17;
|
|
2508
|
+
} else t17 = $[31];
|
|
2605
2509
|
const t18 = endpoint.method;
|
|
2606
2510
|
let t19;
|
|
2607
|
-
if ($[
|
|
2511
|
+
if ($[32] !== endpoint.path) {
|
|
2608
2512
|
t19 = endpoint.path.toString();
|
|
2609
|
-
$[
|
|
2610
|
-
$[
|
|
2611
|
-
} else t19 = $[
|
|
2513
|
+
$[32] = endpoint.path;
|
|
2514
|
+
$[33] = t19;
|
|
2515
|
+
} else t19 = $[33];
|
|
2612
2516
|
let t20;
|
|
2613
|
-
if ($[
|
|
2517
|
+
if ($[34] !== endpoint.method || $[35] !== t19) {
|
|
2614
2518
|
t20 = /* @__PURE__ */ jsx(TriggerButton, {
|
|
2615
2519
|
method: t18,
|
|
2616
2520
|
path: t19
|
|
2617
2521
|
});
|
|
2618
|
-
$[
|
|
2619
|
-
$[
|
|
2620
|
-
$[
|
|
2621
|
-
} else t20 = $[
|
|
2522
|
+
$[34] = endpoint.method;
|
|
2523
|
+
$[35] = t19;
|
|
2524
|
+
$[36] = t20;
|
|
2525
|
+
} else t20 = $[36];
|
|
2622
2526
|
let t21;
|
|
2623
|
-
if ($[
|
|
2527
|
+
if ($[37] !== t17 || $[38] !== t20) {
|
|
2624
2528
|
t21 = /* @__PURE__ */ jsxs("div", {
|
|
2625
2529
|
className: "grid grid-cols-[1fr_auto] items-center h-10 border-b px-5 bg-card",
|
|
2626
2530
|
children: [t17, t20]
|
|
2627
2531
|
});
|
|
2628
|
-
$[
|
|
2629
|
-
$[
|
|
2630
|
-
$[
|
|
2631
|
-
} else t21 = $[
|
|
2532
|
+
$[37] = t17;
|
|
2533
|
+
$[38] = t20;
|
|
2534
|
+
$[39] = t21;
|
|
2535
|
+
} else t21 = $[39];
|
|
2632
2536
|
let t22;
|
|
2633
|
-
if ($[
|
|
2537
|
+
if ($[40] !== endpoint.path) {
|
|
2634
2538
|
t22 = /* @__PURE__ */ jsx(TabsContent, {
|
|
2635
2539
|
value: "params",
|
|
2636
2540
|
children: /* @__PURE__ */ jsx(SidePanelParamsTab, { path: endpoint.path })
|
|
2637
2541
|
});
|
|
2638
|
-
$[
|
|
2639
|
-
$[
|
|
2640
|
-
} else t22 = $[
|
|
2542
|
+
$[40] = endpoint.path;
|
|
2543
|
+
$[41] = t22;
|
|
2544
|
+
} else t22 = $[41];
|
|
2641
2545
|
let t23;
|
|
2642
|
-
if ($[
|
|
2546
|
+
if ($[42] !== endpoint.bodySchema) {
|
|
2643
2547
|
t23 = /* @__PURE__ */ jsx(TabsContent, {
|
|
2644
2548
|
value: "body",
|
|
2645
2549
|
children: /* @__PURE__ */ jsx(SidePanelBodyTab, { schema: endpoint.bodySchema })
|
|
2646
2550
|
});
|
|
2647
|
-
$[
|
|
2648
|
-
$[
|
|
2649
|
-
} else t23 = $[
|
|
2551
|
+
$[42] = endpoint.bodySchema;
|
|
2552
|
+
$[43] = t23;
|
|
2553
|
+
} else t23 = $[43];
|
|
2650
2554
|
let t24;
|
|
2651
|
-
if ($[
|
|
2555
|
+
if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2652
2556
|
t24 = /* @__PURE__ */ jsx(TabsContent, {
|
|
2653
2557
|
value: "headers",
|
|
2654
2558
|
children: /* @__PURE__ */ jsx(SidePanelHeadersTab, {})
|
|
2655
2559
|
});
|
|
2656
|
-
$[
|
|
2657
|
-
} else t24 = $[
|
|
2560
|
+
$[44] = t24;
|
|
2561
|
+
} else t24 = $[44];
|
|
2658
2562
|
let t25;
|
|
2659
|
-
if ($[
|
|
2563
|
+
if ($[45] !== activeTab || $[46] !== t21 || $[47] !== t22 || $[48] !== t23) {
|
|
2660
2564
|
t25 = /* @__PURE__ */ jsxs(Tabs, {
|
|
2661
2565
|
value: activeTab,
|
|
2662
2566
|
onValueChange: t13,
|
|
@@ -2667,39 +2571,39 @@ const SidePanel = memo((t0) => {
|
|
|
2667
2571
|
t24
|
|
2668
2572
|
]
|
|
2669
2573
|
});
|
|
2670
|
-
$[
|
|
2671
|
-
$[
|
|
2672
|
-
$[
|
|
2673
|
-
$[
|
|
2674
|
-
$[
|
|
2675
|
-
} else t25 = $[
|
|
2574
|
+
$[45] = activeTab;
|
|
2575
|
+
$[46] = t21;
|
|
2576
|
+
$[47] = t22;
|
|
2577
|
+
$[48] = t23;
|
|
2578
|
+
$[49] = t25;
|
|
2579
|
+
} else t25 = $[49];
|
|
2676
2580
|
let t26;
|
|
2677
|
-
if ($[
|
|
2581
|
+
if ($[50] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2678
2582
|
t26 = /* @__PURE__ */ jsx(SidePanelResponse, {});
|
|
2679
|
-
$[
|
|
2680
|
-
} else t26 = $[
|
|
2583
|
+
$[50] = t26;
|
|
2584
|
+
} else t26 = $[50];
|
|
2681
2585
|
let t27;
|
|
2682
|
-
if ($[
|
|
2586
|
+
if ($[51] !== t12 || $[52] !== t25) {
|
|
2683
2587
|
t27 = /* @__PURE__ */ jsxs("div", {
|
|
2684
2588
|
className: t12,
|
|
2685
2589
|
children: [t25, t26]
|
|
2686
2590
|
});
|
|
2687
|
-
$[
|
|
2688
|
-
$[
|
|
2689
|
-
$[
|
|
2690
|
-
} else t27 = $[
|
|
2591
|
+
$[51] = t12;
|
|
2592
|
+
$[52] = t25;
|
|
2593
|
+
$[53] = t27;
|
|
2594
|
+
} else t27 = $[53];
|
|
2691
2595
|
let t28;
|
|
2692
|
-
if ($[
|
|
2596
|
+
if ($[54] !== endpoint || $[55] !== isSpecOpen) {
|
|
2693
2597
|
t28 = isSpecOpen && /* @__PURE__ */ jsx(SpecSidePanel, {
|
|
2694
2598
|
endpoint,
|
|
2695
2599
|
onClose: () => setIsSpecOpen(false)
|
|
2696
2600
|
});
|
|
2697
|
-
$[
|
|
2698
|
-
$[
|
|
2699
|
-
$[
|
|
2700
|
-
} else t28 = $[
|
|
2601
|
+
$[54] = endpoint;
|
|
2602
|
+
$[55] = isSpecOpen;
|
|
2603
|
+
$[56] = t28;
|
|
2604
|
+
} else t28 = $[56];
|
|
2701
2605
|
let t29;
|
|
2702
|
-
if ($[
|
|
2606
|
+
if ($[57] !== t10 || $[58] !== t27 || $[59] !== t28) {
|
|
2703
2607
|
t29 = /* @__PURE__ */ jsxs("div", {
|
|
2704
2608
|
className: "isolate grid grid-cols-1 overflow-y-auto min-w-0 grid-rows-[auto_1fr] border-l border-border",
|
|
2705
2609
|
"data-testid": "endpoint-details-panel",
|
|
@@ -2710,83 +2614,79 @@ const SidePanel = memo((t0) => {
|
|
|
2710
2614
|
t28
|
|
2711
2615
|
]
|
|
2712
2616
|
});
|
|
2713
|
-
$[
|
|
2714
|
-
$[
|
|
2715
|
-
$[
|
|
2716
|
-
$[
|
|
2717
|
-
} else t29 = $[
|
|
2617
|
+
$[57] = t10;
|
|
2618
|
+
$[58] = t27;
|
|
2619
|
+
$[59] = t28;
|
|
2620
|
+
$[60] = t29;
|
|
2621
|
+
} else t29 = $[60];
|
|
2718
2622
|
return t29;
|
|
2719
2623
|
});
|
|
2720
2624
|
|
|
2721
2625
|
//#endregion
|
|
2722
2626
|
//#region src/endpoints-page.tsx
|
|
2723
2627
|
const EndpointsPage = () => {
|
|
2724
|
-
const $ = c(
|
|
2725
|
-
if ($[0] !== "198b8272767e037dafaba995069a2aa9f7c2ab3fe909e2acb55498bc6d00f981") {
|
|
2726
|
-
for (let $i = 0; $i < 33; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2727
|
-
$[0] = "198b8272767e037dafaba995069a2aa9f7c2ab3fe909e2acb55498bc6d00f981";
|
|
2728
|
-
}
|
|
2628
|
+
const $ = c(32);
|
|
2729
2629
|
const { endpoints, groupedEndpoints } = useGetEndpoints();
|
|
2730
2630
|
const { selectedEndpointId, setSelectedEndpointId, toggleFlowGroupStatus, flowGroupStatus } = useEndpointConfiguration();
|
|
2731
2631
|
let t0;
|
|
2732
|
-
if ($[
|
|
2632
|
+
if ($[0] !== endpoints || $[1] !== selectedEndpointId) {
|
|
2733
2633
|
let t1$1;
|
|
2734
|
-
if ($[
|
|
2634
|
+
if ($[3] !== selectedEndpointId) {
|
|
2735
2635
|
t1$1 = (endpoint) => endpoint.id === selectedEndpointId;
|
|
2736
|
-
$[
|
|
2737
|
-
$[
|
|
2738
|
-
} else t1$1 = $[
|
|
2636
|
+
$[3] = selectedEndpointId;
|
|
2637
|
+
$[4] = t1$1;
|
|
2638
|
+
} else t1$1 = $[4];
|
|
2739
2639
|
t0 = endpoints.find(t1$1);
|
|
2740
|
-
$[
|
|
2741
|
-
$[
|
|
2742
|
-
$[
|
|
2743
|
-
} else t0 = $[
|
|
2640
|
+
$[0] = endpoints;
|
|
2641
|
+
$[1] = selectedEndpointId;
|
|
2642
|
+
$[2] = t0;
|
|
2643
|
+
} else t0 = $[2];
|
|
2744
2644
|
const selectedEndpoint = t0;
|
|
2745
2645
|
let t1;
|
|
2746
|
-
if ($[
|
|
2646
|
+
if ($[5] !== setSelectedEndpointId) {
|
|
2747
2647
|
t1 = () => {
|
|
2748
2648
|
setSelectedEndpointId("");
|
|
2749
2649
|
};
|
|
2750
|
-
$[
|
|
2751
|
-
$[
|
|
2752
|
-
} else t1 = $[
|
|
2650
|
+
$[5] = setSelectedEndpointId;
|
|
2651
|
+
$[6] = t1;
|
|
2652
|
+
} else t1 = $[6];
|
|
2753
2653
|
const onClose = t1;
|
|
2754
2654
|
const [search, setSearch] = useState("");
|
|
2755
2655
|
let t2;
|
|
2756
|
-
if ($[
|
|
2656
|
+
if ($[7] !== groupedEndpoints || $[8] !== search) {
|
|
2757
2657
|
t2 = Object.entries(groupedEndpoints).filter((t3$1) => {
|
|
2758
2658
|
const [, endpoints_0] = t3$1;
|
|
2759
2659
|
return endpoints_0.some((endpoint_0) => endpoint_0.method?.toLowerCase().includes(search.toLowerCase()) || endpoint_0.path?.toLowerCase().includes(search.toLowerCase()));
|
|
2760
2660
|
});
|
|
2761
|
-
$[
|
|
2762
|
-
$[
|
|
2763
|
-
$[
|
|
2764
|
-
} else t2 = $[
|
|
2661
|
+
$[7] = groupedEndpoints;
|
|
2662
|
+
$[8] = search;
|
|
2663
|
+
$[9] = t2;
|
|
2664
|
+
} else t2 = $[9];
|
|
2765
2665
|
const filteredEndpoints = t2;
|
|
2766
2666
|
const t3 = selectedEndpoint ? "grid-cols-[300px_1fr] " : "grid-cols-1";
|
|
2767
2667
|
let t4;
|
|
2768
|
-
if ($[
|
|
2668
|
+
if ($[10] !== t3) {
|
|
2769
2669
|
t4 = cn("grid h-full max-h-full", t3);
|
|
2770
|
-
$[
|
|
2771
|
-
$[
|
|
2772
|
-
} else t4 = $[
|
|
2670
|
+
$[10] = t3;
|
|
2671
|
+
$[11] = t4;
|
|
2672
|
+
} else t4 = $[11];
|
|
2773
2673
|
let t5;
|
|
2774
|
-
if ($[
|
|
2674
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2775
2675
|
t5 = () => setSearch("");
|
|
2776
|
-
$[
|
|
2777
|
-
} else t5 = $[
|
|
2676
|
+
$[12] = t5;
|
|
2677
|
+
} else t5 = $[12];
|
|
2778
2678
|
let t6;
|
|
2779
|
-
if ($[
|
|
2679
|
+
if ($[13] !== search) {
|
|
2780
2680
|
t6 = /* @__PURE__ */ jsx(EndpointsSearch, {
|
|
2781
2681
|
value: search,
|
|
2782
2682
|
onChange: setSearch,
|
|
2783
2683
|
onClear: t5
|
|
2784
2684
|
});
|
|
2785
|
-
$[
|
|
2786
|
-
$[
|
|
2787
|
-
} else t6 = $[
|
|
2685
|
+
$[13] = search;
|
|
2686
|
+
$[14] = t6;
|
|
2687
|
+
} else t6 = $[14];
|
|
2788
2688
|
let t7;
|
|
2789
|
-
if ($[
|
|
2689
|
+
if ($[15] !== filteredEndpoints || $[16] !== flowGroupStatus || $[17] !== search || $[18] !== selectedEndpointId || $[19] !== setSelectedEndpointId || $[20] !== toggleFlowGroupStatus) {
|
|
2790
2690
|
t7 = /* @__PURE__ */ jsx("div", {
|
|
2791
2691
|
className: "grid grid-cols-1 auto-rows-max overflow-auto min-w-0",
|
|
2792
2692
|
children: filteredEndpoints.map((t8$1) => {
|
|
@@ -2804,46 +2704,46 @@ const EndpointsPage = () => {
|
|
|
2804
2704
|
}, flow);
|
|
2805
2705
|
})
|
|
2806
2706
|
});
|
|
2807
|
-
$[
|
|
2808
|
-
$[
|
|
2809
|
-
$[
|
|
2810
|
-
$[
|
|
2811
|
-
$[
|
|
2812
|
-
$[
|
|
2813
|
-
$[
|
|
2814
|
-
} else t7 = $[
|
|
2707
|
+
$[15] = filteredEndpoints;
|
|
2708
|
+
$[16] = flowGroupStatus;
|
|
2709
|
+
$[17] = search;
|
|
2710
|
+
$[18] = selectedEndpointId;
|
|
2711
|
+
$[19] = setSelectedEndpointId;
|
|
2712
|
+
$[20] = toggleFlowGroupStatus;
|
|
2713
|
+
$[21] = t7;
|
|
2714
|
+
} else t7 = $[21];
|
|
2815
2715
|
let t8;
|
|
2816
|
-
if ($[
|
|
2716
|
+
if ($[22] !== t6 || $[23] !== t7) {
|
|
2817
2717
|
t8 = /* @__PURE__ */ jsxs("div", {
|
|
2818
2718
|
className: "grid grid-rows-[auto_1fr] h-full overflow-auto min-w-0",
|
|
2819
2719
|
children: [t6, t7]
|
|
2820
2720
|
});
|
|
2821
|
-
$[
|
|
2822
|
-
$[
|
|
2823
|
-
$[
|
|
2824
|
-
} else t8 = $[
|
|
2721
|
+
$[22] = t6;
|
|
2722
|
+
$[23] = t7;
|
|
2723
|
+
$[24] = t8;
|
|
2724
|
+
} else t8 = $[24];
|
|
2825
2725
|
let t9;
|
|
2826
|
-
if ($[
|
|
2726
|
+
if ($[25] !== onClose || $[26] !== selectedEndpoint) {
|
|
2827
2727
|
t9 = selectedEndpoint && /* @__PURE__ */ jsx(SidePanel, {
|
|
2828
2728
|
endpoint: selectedEndpoint,
|
|
2829
2729
|
onClose
|
|
2830
2730
|
});
|
|
2831
|
-
$[
|
|
2832
|
-
$[
|
|
2833
|
-
$[
|
|
2834
|
-
} else t9 = $[
|
|
2731
|
+
$[25] = onClose;
|
|
2732
|
+
$[26] = selectedEndpoint;
|
|
2733
|
+
$[27] = t9;
|
|
2734
|
+
} else t9 = $[27];
|
|
2835
2735
|
let t10;
|
|
2836
|
-
if ($[
|
|
2736
|
+
if ($[28] !== t4 || $[29] !== t8 || $[30] !== t9) {
|
|
2837
2737
|
t10 = /* @__PURE__ */ jsxs("div", {
|
|
2838
2738
|
className: t4,
|
|
2839
2739
|
"data-testid": "endpoints-list",
|
|
2840
2740
|
children: [t8, t9]
|
|
2841
2741
|
});
|
|
2842
|
-
$[
|
|
2843
|
-
$[
|
|
2844
|
-
$[
|
|
2845
|
-
$[
|
|
2846
|
-
} else t10 = $[
|
|
2742
|
+
$[28] = t4;
|
|
2743
|
+
$[29] = t8;
|
|
2744
|
+
$[30] = t9;
|
|
2745
|
+
$[31] = t10;
|
|
2746
|
+
} else t10 = $[31];
|
|
2847
2747
|
return t10;
|
|
2848
2748
|
};
|
|
2849
2749
|
|