@scalar/api-client 2.2.9 → 2.2.11

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.
@@ -1 +1 @@
1
- {"version":3,"file":"OAuthScopesInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAKjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAC;;AA6PF,wBAOG"}
1
+ {"version":3,"file":"OAuthScopesInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAKjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAC;;AA+PF,wBAOG"}
@@ -24,20 +24,20 @@ const z = { class: "flex h-fit w-full" }, E = { class: "flex-1" }, F = {
24
24
  description: c
25
25
  }));
26
26
  }
27
- ), i = x(() => {
27
+ ), u = x(() => {
28
28
  var e;
29
29
  return ((e = s.flow) == null ? void 0 : e.selectedScopes) || [];
30
30
  });
31
31
  function _(e, l) {
32
32
  l ? s.updateScheme(`flows.${s.flow.type}.selectedScopes`, [
33
- ...i.value,
33
+ ...u.value,
34
34
  e
35
35
  ]) : s.updateScheme(
36
36
  `flows.${s.flow.type}.selectedScopes`,
37
- i.value.filter((c) => c !== e)
37
+ u.value.filter((c) => c !== e)
38
38
  );
39
39
  }
40
- return (e, l) => (p(), w(t(S), { class: "items-center min-h-8 h-auto" }, {
40
+ return (e, l) => (p(), w(t(S), { class: "items-center min-h-8 h-auto !max-h-[initial]" }, {
41
41
  default: n(() => [
42
42
  o("div", z, [
43
43
  l[0] || (l[0] = o("div", { class: "text-c-1 min-w-[94px] items-center pl-2 h-full" }, [
@@ -57,9 +57,9 @@ const z = { class: "flex h-fit w-full" }, E = { class: "flex-1" }, F = {
57
57
  ])
58
58
  }, {
59
59
  default: n(({ open: a }) => {
60
- var f, u, m;
60
+ var f, i, m;
61
61
  return [
62
- o("div", E, " Selected " + d(((u = (f = e.flow) == null ? void 0 : f.selectedScopes) == null ? void 0 : u.length) || 0) + " / " + d(Object.keys(((m = e.flow) == null ? void 0 : m.scopes) ?? {}).length || 0), 1),
62
+ o("div", E, " Selected " + d(((i = (f = e.flow) == null ? void 0 : f.selectedScopes) == null ? void 0 : i.length) || 0) + " / " + d(Object.keys(((m = e.flow) == null ? void 0 : m.scopes) ?? {}).length || 0), 1),
63
63
  r(t(O), {
64
64
  class: "text-c-3 group-hover/scopes-accordion:text-c-2",
65
65
  icon: a ? "ChevronDown" : "ChevronRight",
@@ -72,25 +72,25 @@ const z = { class: "flex h-fit w-full" }, E = { class: "flex-1" }, F = {
72
72
  r(t(N), { as: "template" }, {
73
73
  default: n(() => [
74
74
  o("table", F, [
75
- (p(!0), v(b, null, k(g.value, ({ id: a, label: f, description: u }) => (p(), w(t(T), {
75
+ (p(!0), v(b, null, k(g.value, ({ id: a, label: f, description: i }) => (p(), w(t(T), {
76
76
  key: a,
77
77
  class: "text-c-2",
78
- onClick: (m) => _(a, !i.value.includes(a))
78
+ onClick: (m) => _(a, !u.value.includes(a))
79
79
  }, {
80
80
  default: n(() => [
81
- r(t(S), { class: "w-full px-2 py-1.5 hover:text-c-1 cursor-pointer" }, {
81
+ r(t(S), { class: "w-full px-2 py-1.5 hover:text-c-1 cursor-pointer !max-h-[initial]" }, {
82
82
  default: n(() => [
83
83
  o("span", null, [
84
- u ? (p(), v("span", I, [
84
+ i ? (p(), v("span", I, [
85
85
  o("span", R, d(f), 1),
86
- V(" – " + d(u), 1)
86
+ V(" – " + d(i), 1)
87
87
  ])) : D("", !0)
88
88
  ])
89
89
  ]),
90
90
  _: 2
91
91
  }, 1024),
92
92
  r(t(j), {
93
- modelValue: i.value.includes(a),
93
+ modelValue: u.value.includes(a),
94
94
  "onUpdate:modelValue": () => {
95
95
  }
96
96
  }, null, 8, ["modelValue"])
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAklBA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAo4BF,wBAOG"}
1
+ {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAolBA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAs4BF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-77d0f477"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7d610d02"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -2,11 +2,11 @@ import { defineComponent as Z, computed as b, ref as I, watch as W, openBlock as
2
2
  import oe from "../../../components/CodeInput/CodeInput.vue.js";
3
3
  import ne from "../../../components/DataTable/DataTable.vue.js";
4
4
  import le from "../../../components/DataTable/DataTableHeader.vue.js";
5
- import T from "../../../components/DataTable/DataTableRow.vue.js";
5
+ import E from "../../../components/DataTable/DataTableRow.vue.js";
6
6
  import re from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
7
  import { useActiveEntities as ie } from "../../../store/active-entities.js";
8
- import { ScalarListbox as A, ScalarButton as k, ScalarIcon as E } from "@scalar/components";
9
- import { requestExampleParametersSchema as J } from "@scalar/oas-utils/entities/spec";
8
+ import { ScalarListbox as J, ScalarButton as R, ScalarIcon as T } from "@scalar/components";
9
+ import { requestExampleParametersSchema as A } from "@scalar/oas-utils/entities/spec";
10
10
  import { canMethodHaveBody as ue } from "@scalar/oas-utils/helpers";
11
11
  import $ from "./RequestTable.vue.js";
12
12
  import { useWorkspace as de } from "../../../store/store.js";
@@ -42,12 +42,12 @@ const se = {
42
42
  }).map(([e, a]) => ({
43
43
  id: e,
44
44
  label: a
45
- })), R = b(() => {
45
+ })), k = b(() => {
46
46
  var e, a;
47
47
  return o.value ? o.value.body.activeBody === "formData" ? ((e = o.value.body.formData) == null ? void 0 : e.encoding) === "urlencoded" ? "formUrlEncoded" : "multipartForm" : o.value.body.activeBody === "binary" ? "binaryFile" : o.value.body.activeBody === "raw" && ((a = o.value.body.raw) != null && a.encoding) ? o.value.body.raw.encoding === "html" ? "other" : o.value.body.raw.encoding : "none" : "none";
48
48
  }), v = b({
49
49
  get: () => x.find(
50
- (e) => e.id === R.value
50
+ (e) => e.id === k.value
51
51
  ) ?? x[x.length - 1],
52
52
  set: (e) => {
53
53
  e != null && e.id && q(e.id);
@@ -70,7 +70,7 @@ const se = {
70
70
  n
71
71
  );
72
72
  } else {
73
- const n = [J.parse({ [a]: t })];
73
+ const n = [A.parse({ [a]: t })];
74
74
  i.edit(
75
75
  o.value.uid,
76
76
  "body.formData.value",
@@ -81,7 +81,7 @@ const se = {
81
81
  (y = B.value.querySelectorAll("input")[a === "key" ? 0 : 1]) == null || y.focus();
82
82
  });
83
83
  }
84
- e === l.length - 1 && j();
84
+ e === l.length - 1 && N();
85
85
  }, f = b(
86
86
  () => {
87
87
  var e, a, t;
@@ -89,10 +89,10 @@ const se = {
89
89
  }
90
90
  ), C = () => {
91
91
  const e = f.value[f.value.length - 1];
92
- (!e || e.key !== "" || e.value !== "") && j();
93
- }, j = () => {
92
+ (!e || e.key !== "" || e.value !== "") && N();
93
+ }, N = () => {
94
94
  if (!c.value || !o.value) return;
95
- const e = J.parse({
95
+ const e = A.parse({
96
96
  enabled: !1
97
97
  }), a = [...f.value, e];
98
98
  o.value.body.formData ? i.edit(
@@ -103,7 +103,7 @@ const se = {
103
103
  value: a,
104
104
  encoding: "form-data"
105
105
  });
106
- }, N = (e, a) => {
106
+ }, S = (e, a) => {
107
107
  if (!c.value || !o.value) return;
108
108
  const t = f.value;
109
109
  if (t.length > e) {
@@ -114,9 +114,9 @@ const se = {
114
114
  l
115
115
  );
116
116
  }
117
- }, O = (e) => {
117
+ }, j = (e) => {
118
118
  !c.value || !o.value || i.edit(o.value.uid, "body.raw.value", e);
119
- }, S = (e) => e === "multipartForm" ? {
119
+ }, O = (e) => e === "multipartForm" ? {
120
120
  activeBody: "formData",
121
121
  encoding: "form-data",
122
122
  header: "multipart/form-data"
@@ -151,7 +151,7 @@ const se = {
151
151
  } : { activeBody: "raw", encoding: void 0, header: void 0 }, q = (e) => {
152
152
  var m, y;
153
153
  if (!o.value) return;
154
- const { activeBody: a, encoding: t, header: l } = S(e);
154
+ const { activeBody: a, encoding: t, header: l } = O(e);
155
155
  if (i.edit(
156
156
  o.value.uid,
157
157
  "body.activeBody",
@@ -246,15 +246,15 @@ const se = {
246
246
  },
247
247
  () => {
248
248
  var e;
249
- (e = c.value) != null && e.method && ue(c.value.method) && q(R.value), ["multipartForm", "formUrlEncoded"].includes(
250
- R.value
249
+ (e = c.value) != null && e.method && ue(c.value.method) && q(k.value), ["multipartForm", "formUrlEncoded"].includes(
250
+ k.value
251
251
  ) && C();
252
252
  },
253
253
  { immediate: !0 }
254
254
  );
255
255
  const g = b(() => {
256
256
  var n, r, m;
257
- const e = v.value.id, { header: a } = S(e), t = ((r = (n = c.value) == null ? void 0 : n.requestBody) == null ? void 0 : r.content) || {}, l = a ? ((m = t[a]) == null ? void 0 : m.examples) || {} : {};
257
+ const e = v.value.id, { header: a } = O(e), t = ((r = (n = c.value) == null ? void 0 : n.requestBody) == null ? void 0 : r.content) || {}, l = a ? ((m = t[a]) == null ? void 0 : m.examples) || {} : {};
258
258
  return Object.entries(l).map(([y, D]) => ({
259
259
  id: y,
260
260
  label: y,
@@ -262,9 +262,12 @@ const se = {
262
262
  }));
263
263
  }), _ = b({
264
264
  get: () => {
265
- var n, r;
266
- const e = ((r = (n = o.value) == null ? void 0 : n.body.raw) == null ? void 0 : r.value) ?? "{}", a = JSON.parse(e), [t] = Object.keys(a), l = a[t];
267
- return g.value.find((m) => m.id === l) ?? g.value[0];
265
+ var l, n;
266
+ const e = ((n = (l = o.value) == null ? void 0 : l.body.raw) == null ? void 0 : n.value) ?? "{}", a = JSON.parse(e);
267
+ return g.value.find((r) => {
268
+ const m = r.value;
269
+ return JSON.stringify(m.value) === JSON.stringify(a);
270
+ }) ?? g.value[0];
268
271
  },
269
272
  set: (e) => {
270
273
  if (e != null && e.id) {
@@ -273,7 +276,7 @@ const se = {
273
276
  );
274
277
  if (a) {
275
278
  const t = a.value;
276
- O(JSON.stringify(t.value, null, 2));
279
+ j(JSON.stringify(t.value, null, 2));
277
280
  }
278
281
  }
279
282
  }
@@ -285,18 +288,18 @@ const se = {
285
288
  default: d(() => [
286
289
  s(ne, { columns: [""] }, {
287
290
  default: d(() => [
288
- s(T, null, {
291
+ s(E, null, {
289
292
  default: d(() => [
290
293
  s(le, { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between !p-0" }, {
291
294
  default: d(() => [
292
- s(u(A), {
295
+ s(u(J), {
293
296
  modelValue: v.value,
294
297
  "onUpdate:modelValue": a[0] || (a[0] = (t) => v.value = t),
295
298
  options: u(x),
296
299
  teleport: ""
297
300
  }, {
298
301
  default: d(() => [
299
- s(u(k), {
302
+ s(u(R), {
300
303
  class: "flex gap-1.5 h-full px-2 text-c-2 font-normal hover:text-c-1 w-fit",
301
304
  fullWidth: "",
302
305
  variant: "ghost"
@@ -305,7 +308,7 @@ const se = {
305
308
  var t;
306
309
  return [
307
310
  w("span", null, F((t = v.value) == null ? void 0 : t.label), 1),
308
- s(u(E), {
311
+ s(u(T), {
309
312
  icon: "ChevronDown",
310
313
  size: "md"
311
314
  })
@@ -316,7 +319,7 @@ const se = {
316
319
  ]),
317
320
  _: 1
318
321
  }, 8, ["modelValue", "options"]),
319
- g.value.length > 0 ? (p(), h(u(A), {
322
+ g.value.length > 0 ? (p(), h(u(J), {
320
323
  key: 0,
321
324
  modelValue: _.value,
322
325
  "onUpdate:modelValue": a[1] || (a[1] = (t) => _.value = t),
@@ -325,7 +328,7 @@ const se = {
325
328
  teleport: ""
326
329
  }, {
327
330
  default: d(() => [
328
- s(u(k), {
331
+ s(u(R), {
329
332
  class: "flex gap-1.5 h-full px-2 text-c-2 font-normal hover:text-c-1 w-fit",
330
333
  fullWidth: "",
331
334
  variant: "ghost"
@@ -334,7 +337,7 @@ const se = {
334
337
  var t;
335
338
  return [
336
339
  w("span", null, F((t = _.value) == null ? void 0 : t.label), 1),
337
- s(u(E), {
340
+ s(u(T), {
338
341
  icon: "ChevronDown",
339
342
  size: "md"
340
343
  })
@@ -351,7 +354,7 @@ const se = {
351
354
  ]),
352
355
  _: 1
353
356
  }),
354
- s(T, null, {
357
+ s(E, null, {
355
358
  default: d(() => {
356
359
  var t, l, n, r, m;
357
360
  return [
@@ -360,7 +363,7 @@ const se = {
360
363
  ]))) : v.value.id === "binaryFile" ? (p(), U("div", ce, [
361
364
  (t = u(o)) != null && t.body.binary ? (p(), U(ae, { key: 0 }, [
362
365
  w("span", me, F(((l = u(o)) == null ? void 0 : l.body.binary).name), 1),
363
- s(u(k), {
366
+ s(u(R), {
364
367
  class: "bg-b-2 hover:bg-b-3 border-0 text-c-2 ml-1 shadow-none",
365
368
  size: "sm",
366
369
  variant: "outlined",
@@ -371,7 +374,7 @@ const se = {
371
374
  ])),
372
375
  _: 1
373
376
  })
374
- ], 64)) : (p(), h(u(k), {
377
+ ], 64)) : (p(), h(u(R), {
375
378
  key: 1,
376
379
  class: "bg-b-2 hover:bg-b-3 border-0 text-c-2 shadow-none",
377
380
  size: "sm",
@@ -380,7 +383,7 @@ const se = {
380
383
  }, {
381
384
  default: d(() => [
382
385
  a[4] || (a[4] = w("span", null, "Upload File", -1)),
383
- s(u(E), {
386
+ s(u(T), {
384
387
  class: "ml-1",
385
388
  icon: "UploadSimple",
386
389
  size: "xs",
@@ -399,7 +402,7 @@ const se = {
399
402
  showUploadButton: "",
400
403
  onDeleteRow: V,
401
404
  onRemoveFile: M,
402
- onToggleRow: N,
405
+ onToggleRow: S,
403
406
  onUpdateRow: P,
404
407
  onUploadFile: L
405
408
  }, null, 8, ["items"])) : v.value.id == "formUrlEncoded" ? (p(), h($, {
@@ -412,23 +415,24 @@ const se = {
412
415
  showUploadButton: "",
413
416
  onDeleteRow: V,
414
417
  onRemoveFile: M,
415
- onToggleRow: N,
418
+ onToggleRow: S,
416
419
  onUpdateRow: P,
417
420
  onUploadFile: L
418
421
  }, null, 8, ["items"])) : (p(), h(oe, {
419
422
  key: 4,
423
+ class: "border-t-1/2",
420
424
  content: "",
421
425
  language: Y.value,
422
426
  lineNumbers: "",
423
427
  lint: "",
424
428
  modelValue: ((m = (r = (n = u(o)) == null ? void 0 : n.body) == null ? void 0 : r.raw) == null ? void 0 : m.value) ?? "",
425
- "onUpdate:modelValue": O
429
+ "onUpdate:modelValue": j
426
430
  }, null, 8, ["language", "modelValue"]))
427
431
  ];
428
432
  }),
429
433
  _: 1
430
434
  }),
431
- s(T)
435
+ s(E)
432
436
  ]),
433
437
  _: 1
434
438
  })
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestSidebar.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-36c16505"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2eb44014"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,15 +1,15 @@
1
- import { defineComponent as ne, useId as ie, reactive as le, watch as B, onMounted as de, onBeforeUnmount as ue, computed as ce, openBlock as n, createElementBlock as v, Fragment as k, withDirectives as me, createVNode as c, unref as s, normalizeClass as f, createSlots as pe, withCtx as l, createElementVNode as i, isRef as fe, withKeys as y, withModifiers as m, createBlock as d, renderList as O, createTextVNode as I, toDisplayString as be, createCommentVNode as C, vShow as he } from "vue";
1
+ import { defineComponent as ne, useId as ie, reactive as le, watch as O, onMounted as de, onBeforeUnmount as ue, computed as ce, openBlock as n, createElementBlock as v, Fragment as g, withDirectives as me, createVNode as c, unref as s, normalizeClass as f, createSlots as pe, withCtx as l, createElementVNode as i, isRef as fe, withKeys as k, withModifiers as m, createBlock as d, renderList as W, createTextVNode as I, toDisplayString as be, createCommentVNode as C, vShow as he } from "vue";
2
2
  import ve from "../../assets/rabbit.ascii.js";
3
3
  import Se from "../../assets/rabbitjump.ascii.js";
4
4
  import Re from "../../components/HttpMethod/HttpMethod.vue.js";
5
- import W from "../../components/ScalarAsciiArt.vue.js";
5
+ import A from "../../components/ScalarAsciiArt.vue.js";
6
6
  import { useSearch as we } from "../../components/Search/useSearch.js";
7
- import ge from "../../components/Sidebar/SidebarButton.vue.js";
8
- import { useActiveEntities as ke } from "../../store/active-entities.js";
9
- import { createInitialRequest as ye } from "../../store/requests.js";
7
+ import ye from "../../components/Sidebar/SidebarButton.vue.js";
8
+ import { useActiveEntities as ge } from "../../store/active-entities.js";
9
+ import { createInitialRequest as ke } from "../../store/requests.js";
10
10
  import Ie from "./RequestSidebarItemMenu.vue.js";
11
11
  import { dragHandlerFactory as Ce } from "./handle-drag.js";
12
- import { ScalarSearchInput as qe, ScalarSearchResultList as De, ScalarSearchResultItem as $e, ScalarIcon as A, ScalarButton as Me } from "@scalar/components";
12
+ import { ScalarSearchInput as qe, ScalarSearchResultList as De, ScalarSearchResultItem as $e, ScalarIcon as F, ScalarButton as Me } from "@scalar/components";
13
13
  import { LibraryIcon as xe } from "@scalar/icons";
14
14
  import { useToasts as Pe } from "@scalar/use-toasts";
15
15
  import { useRouter as Te } from "vue-router";
@@ -30,21 +30,21 @@ const We = {
30
30
  isReadonly: { type: Boolean }
31
31
  },
32
32
  emits: ["update:showSidebar", "newTab", "clearDrafts"],
33
- setup(F, { emit: K }) {
34
- const N = F, q = K, D = Be(), {
33
+ setup(K, { emit: N }) {
34
+ const q = K, D = N, $ = Be(), {
35
35
  activeWorkspaceCollections: u,
36
36
  activeRequest: U,
37
37
  activeWorkspaceRequests: S,
38
38
  activeWorkspace: R
39
- } = ke(), { findRequestParents: z, isReadOnly: H, events: b, requestMutators: $, requests: L } = D, { handleDragEnd: j, isDroppable: G } = Ce(
39
+ } = ge(), { findRequestParents: z, isReadOnly: H, events: b, requestMutators: M, requests: L } = $, { handleDragEnd: j, isDroppable: G } = Ce(
40
40
  R,
41
- D
42
- ), { collapsedSidebarFolders: J, setCollapsedSidebarFolder: Q } = Oe(), { replace: M } = Te(), X = () => {
41
+ $
42
+ ), { collapsedSidebarFolders: J, setCollapsedSidebarFolder: Q } = Oe(), { replace: x } = Te(), X = () => {
43
43
  b.commandPalette.emit({
44
44
  commandName: "Import from OpenAPI/Swagger/Postman"
45
45
  });
46
- }, x = ie(), { toast: Y } = Pe(), p = le({ open: !1 });
47
- B(
46
+ }, P = ie(), { toast: Y } = Pe(), p = le({ open: !1 });
47
+ O(
48
48
  U,
49
49
  (t) => {
50
50
  t && z(t).forEach(
@@ -56,19 +56,19 @@ const We = {
56
56
  const {
57
57
  searchText: h,
58
58
  searchResultsWithPlaceholderResults: w,
59
- selectedSearchResult: g,
59
+ selectedSearchResult: y,
60
60
  onSearchResultClick: Z,
61
61
  fuseSearch: _,
62
- searchInputRef: P,
62
+ searchInputRef: T,
63
63
  searchResultRefs: ee,
64
- navigateSearchResults: T,
64
+ navigateSearchResults: E,
65
65
  selectSearchResult: te
66
- } = we(), E = (t) => {
66
+ } = we(), V = (t) => {
67
67
  var e;
68
- t && (t.toggleSidebar && q("update:showSidebar", N.showSidebar), t.focusRequestSearch && ((e = P.value) == null || e.focus()));
68
+ t && (t.toggleSidebar && D("update:showSidebar", q.showSidebar), t.focusRequestSearch && ((e = T.value) == null || e.focus()));
69
69
  };
70
- de(() => b.hotKeys.on(E)), ue(() => {
71
- b.hotKeys.off(E);
70
+ de(() => b.hotKeys.on(V)), ue(() => {
71
+ b.hotKeys.off(V);
72
72
  });
73
73
  const oe = (t) => {
74
74
  if (t != null && t.documentUrl) {
@@ -79,12 +79,12 @@ const We = {
79
79
  e && (e.watchMode = t.watchMode);
80
80
  }
81
81
  };
82
- B(
82
+ O(
83
83
  () => u.value.map((t) => t.watchMode),
84
84
  (t, e) => {
85
85
  t.forEach((o, r) => {
86
86
  var a;
87
- if (o !== e[r]) {
87
+ if (!q.isReadonly && o !== e[r]) {
88
88
  const ae = `${(a = u.value[r].info) == null ? void 0 : a.title}: Watch Mode ${o ? "enabled" : "disabled"}`;
89
89
  Y(ae, "info");
90
90
  }
@@ -93,7 +93,7 @@ const We = {
93
93
  );
94
94
  const se = ce(() => {
95
95
  var e;
96
- const t = w.value[g.value];
96
+ const t = w.value[y.value];
97
97
  return (e = t == null ? void 0 : t.item) != null && e.id ? `#search-input-${t.item.id}` : void 0;
98
98
  }), re = () => {
99
99
  const t = u.value.find(
@@ -103,16 +103,16 @@ const We = {
103
103
  }
104
104
  );
105
105
  if (t && t.requests.forEach((o) => {
106
- $.delete(L[o], t.uid);
106
+ M.delete(L[o], t.uid);
107
107
  }), S.value.length) {
108
108
  const o = u.value[0], r = o == null ? void 0 : o.requests[0];
109
- r && M(`/workspace/${R.value.uid}/request/${r}`);
109
+ r && x(`/workspace/${R.value.uid}/request/${r}`);
110
110
  } else {
111
- const { request: o } = ye();
112
- t && ($.add(o, t.uid), M(`/workspace/${R.value.uid}/request/${o.uid}`));
111
+ const { request: o } = ke();
112
+ t && (M.add(o, t.uid), x(`/workspace/${R.value.uid}/request/${o.uid}`));
113
113
  }
114
114
  };
115
- return (t, e) => (n(), v(k, null, [
115
+ return (t, e) => (n(), v(g, null, [
116
116
  me(c(s(Ve), {
117
117
  class: f([t.showSidebar ? "sidebar-active-width" : ""]),
118
118
  showSidebar: t.showSidebar,
@@ -122,17 +122,17 @@ const We = {
122
122
  i("div", We, [
123
123
  c(s(qe), {
124
124
  ref_key: "searchInputRef",
125
- ref: P,
125
+ ref: T,
126
126
  modelValue: s(h),
127
127
  "onUpdate:modelValue": e[0] || (e[0] = (o) => fe(h) ? h.value = o : null),
128
128
  "aria-activedescendant": se.value,
129
- "aria-controls": s(x),
129
+ "aria-controls": s(P),
130
130
  sidebar: "",
131
131
  onInput: s(_),
132
132
  onKeydown: [
133
- e[1] || (e[1] = y(m((o) => s(T)("down"), ["stop"]), ["down"])),
134
- e[2] || (e[2] = y(m((o) => s(te)(), ["stop"]), ["enter"])),
135
- e[3] || (e[3] = y(m((o) => s(T)("up"), ["stop"]), ["up"]))
133
+ e[1] || (e[1] = k(m((o) => s(E)("down"), ["stop"]), ["down"])),
134
+ e[2] || (e[2] = k(m((o) => s(te)(), ["stop"]), ["enter"])),
135
+ e[3] || (e[3] = k(m((o) => s(E)("up"), ["stop"]), ["up"]))
136
136
  ]
137
137
  }, null, 8, ["modelValue", "aria-activedescendant", "aria-controls", "onInput"])
138
138
  ]),
@@ -147,22 +147,22 @@ const We = {
147
147
  }, [
148
148
  s(h) ? (n(), d(s(De), {
149
149
  key: 0,
150
- id: s(x),
150
+ id: s(P),
151
151
  "aria-label": "Search Results",
152
152
  class: "gap-px",
153
153
  noResults: !s(w).length
154
154
  }, {
155
155
  default: l(() => [
156
- (n(!0), v(k, null, O(s(w), (o, r) => (n(), d(s($e), {
156
+ (n(!0), v(g, null, W(s(w), (o, r) => (n(), d(s($e), {
157
157
  id: `#search-input-${o.item.id}`,
158
158
  key: o.refIndex,
159
159
  ref_for: !0,
160
160
  ref: (a) => s(ee)[r] = a,
161
- active: s(g) === r,
161
+ active: s(y) === r,
162
162
  class: "px-2",
163
163
  href: o.item.link,
164
164
  onClick: m((a) => s(Z)(o), ["prevent"]),
165
- onFocus: (a) => g.value = r
165
+ onFocus: (a) => y.value = r
166
166
  }, {
167
167
  addon: l(() => [
168
168
  e[10] || (e[10] = i("span", { class: "sr-only" }, "HTTP Method:", -1)),
@@ -179,7 +179,7 @@ const We = {
179
179
  ]),
180
180
  _: 1
181
181
  }, 8, ["id", "noResults"])) : (n(), v("nav", Ae, [
182
- (n(!0), v(k, null, O(s(u), (o) => {
182
+ (n(!0), v(g, null, W(s(u), (o) => {
183
183
  var r;
184
184
  return n(), d(Ee, {
185
185
  key: o.uid,
@@ -188,14 +188,14 @@ const We = {
188
188
  menuItem: p,
189
189
  parentUids: [],
190
190
  uid: o.uid,
191
- onNewTab: e[4] || (e[4] = (a, V) => q("newTab", { name: a, uid: V })),
191
+ onNewTab: e[4] || (e[4] = (a, B) => D("newTab", { name: a, uid: B })),
192
192
  onOnDragEnd: s(j),
193
193
  onOpenMenu: e[5] || (e[5] = (a) => Object.assign(p, a))
194
194
  }, {
195
195
  leftIcon: l(() => {
196
196
  var a;
197
197
  return [
198
- ((a = o.info) == null ? void 0 : a.title) === "Drafts" ? (n(), d(s(A), {
198
+ ((a = o.info) == null ? void 0 : a.title) === "Drafts" ? (n(), d(s(F), {
199
199
  key: 0,
200
200
  class: "text-sidebar-c-2 group-hover:hidden",
201
201
  icon: "Scribble",
@@ -210,7 +210,7 @@ const We = {
210
210
  "rotate-90": s(J)[o.uid]
211
211
  })
212
212
  }, [
213
- c(s(A), {
213
+ c(s(F), {
214
214
  class: "text-c-3 hidden text-sm group-hover:block",
215
215
  icon: "ChevronRight",
216
216
  size: "md"
@@ -232,11 +232,11 @@ const We = {
232
232
  }, [
233
233
  i("div", Fe, [
234
234
  i("div", Ke, [
235
- c(W, {
235
+ c(A, {
236
236
  art: s(ve),
237
237
  class: "font-bold rabbitsit"
238
238
  }, null, 8, ["art"]),
239
- c(W, {
239
+ c(A, {
240
240
  art: s(Se),
241
241
  class: "font-bold absolute top-0 left-0 rabbitjump"
242
242
  }, null, 8, ["art"])
@@ -258,7 +258,7 @@ const We = {
258
258
  ])),
259
259
  _: 1
260
260
  }, 8, ["class"])),
261
- t.isReadonly ? C("", !0) : (n(), d(ge, {
261
+ t.isReadonly ? C("", !0) : (n(), d(ye, {
262
262
  key: 1,
263
263
  click: s(b).commandPalette.emit,
264
264
  hotkey: "K"
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAmgBA,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEzE,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAO1B,KAAK,WAAW,GAAG;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AA+OJ,iBAAS,cAAc;WA0gBT,OAAO,IAA6B;;oBA3uBpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCArDlB,KAxdW;;;;;;;oCAwdX,KAjdsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAmwBnB,GAAG,8CAED,GAAG,yBACN,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgf1C;AAkCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;iBA9yBH,OAAO;uFAuzBvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAifA,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEzE,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAO1B,KAAK,WAAW,GAAG;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AA+OJ,iBAAS,cAAc;WAggBT,OAAO,IAA6B;;oBAjuBpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCArDlB,KAtcW;;;;;;;oCAscX,KA/bsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAsvB6B,GAAG,8CAA8C,GAAG,yBACpF,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAme3D;AAkCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;iBApyBH,OAAO;uFA6yBvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import t from "./RequestSidebarItem.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import e from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ e(t, [["__scopeId", "data-v-0e867e5f"]]);
4
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-390bf191"]]);
6
6
  export {
7
7
  a as default
8
8
  };