@scalar/api-client 2.2.20 → 2.2.22

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue2.js +1 -1
  5. package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +3 -0
  6. package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -1
  7. package/dist/components/ImportCurl/ImportCurlModal.vue.js +2 -2
  8. package/dist/components/ImportCurl/ImportCurlModal.vue2.js +85 -49
  9. package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -2
  10. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  11. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  12. package/dist/components/Sidebar/Sidebar.vue2.js +16 -16
  13. package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
  14. package/dist/components/Sidebar/SidebarToggle.vue.js +3 -3
  15. package/dist/layouts/App/create-api-client-app.d.ts +8 -7
  16. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  17. package/dist/layouts/Modal/create-api-client-modal.d.ts +16 -14
  18. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  19. package/dist/layouts/Web/create-api-client-web.d.ts +8 -7
  20. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  21. package/dist/libs/create-client.d.ts +8 -7
  22. package/dist/libs/create-client.d.ts.map +1 -1
  23. package/dist/libs/create-client.js +19 -18
  24. package/dist/store/environment.d.ts +4 -4
  25. package/dist/store/requests.d.ts +2 -2
  26. package/dist/store/store.d.ts +11 -11
  27. package/dist/store/store.d.ts.map +1 -1
  28. package/dist/store/store.js +53 -48
  29. package/dist/style.css +1 -1
  30. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  31. package/dist/views/Request/Request.vue.js +2 -2
  32. package/dist/views/Request/Request.vue2.js +159 -149
  33. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  34. package/dist/views/Request/RequestSection/RequestParams.vue.js +74 -61
  35. package/dist/views/Request/RequestSidebar.vue.d.ts +3 -4
  36. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  37. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  38. package/dist/views/Request/RequestSidebar.vue2.js +160 -163
  39. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +0 -1
  40. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  41. package/dist/views/Request/RequestSubpageHeader.vue.js +2 -2
  42. package/dist/views/Request/RequestSubpageHeader.vue2.js +44 -49
  43. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  44. package/package.json +8 -8
@@ -1,17 +1,17 @@
1
- import { defineComponent as ce, useId as me, reactive as pe, watch as A, onMounted as fe, onBeforeUnmount as be, computed as he, ref as ve, openBlock as r, createElementBlock as S, Fragment as C, withDirectives as F, createVNode as u, unref as s, normalizeClass as f, createSlots as Se, withCtx as d, createElementVNode as i, createBlock as l, createCommentVNode as b, isRef as ye, withKeys as x, withModifiers as h, vShow as K, renderList as N, createTextVNode as $, toDisplayString as Re, nextTick as ge } from "vue";
2
- import ke from "../../assets/rabbit.ascii.js";
3
- import we from "../../assets/rabbitjump.ascii.js";
4
- import Ie from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
5
- import Ce from "../../components/HttpMethod/HttpMethod.vue.js";
6
- import U from "../../components/ScalarAsciiArt.vue.js";
7
- import { useSearch as xe } from "../../components/Search/useSearch.js";
1
+ import { defineComponent as ce, useId as pe, reactive as me, watch as z, onMounted as fe, onBeforeUnmount as be, computed as ve, ref as he, openBlock as r, createElementBlock as g, Fragment as C, withDirectives as A, createVNode as c, unref as t, normalizeClass as b, createSlots as Se, withCtx as u, createElementVNode as i, createBlock as d, createCommentVNode as v, isRef as ge, withKeys as $, withModifiers as h, vShow as F, renderList as K, createTextVNode as O, toDisplayString as ke, nextTick as Re } from "vue";
2
+ import ye from "../../assets/rabbit.ascii.js";
3
+ import xe from "../../assets/rabbitjump.ascii.js";
4
+ import we from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
5
+ import Ie from "../../components/HttpMethod/HttpMethod.vue.js";
6
+ import N from "../../components/ScalarAsciiArt.vue.js";
7
+ import { useSearch as Ce } from "../../components/Search/useSearch.js";
8
8
  import $e from "../../components/Sidebar/SidebarButton.vue.js";
9
- import qe from "../../components/Sidebar/SidebarToggle.vue.js";
10
- import { useActiveEntities as De } from "../../store/active-entities.js";
11
- import { createInitialRequest as Me } from "../../store/requests.js";
12
- import Ve from "./RequestSidebarItemMenu.vue.js";
13
- import { dragHandlerFactory as Te } from "./handle-drag.js";
14
- import { ScalarIcon as q, ScalarSearchInput as Pe, ScalarSearchResultList as Ee, ScalarSearchResultItem as Be, ScalarButton as Oe } from "@scalar/components";
9
+ import Oe from "../../components/Sidebar/SidebarToggle.vue.js";
10
+ import { useActiveEntities as qe } from "../../store/active-entities.js";
11
+ import { createInitialRequest as De } from "../../store/requests.js";
12
+ import Me from "./RequestSidebarItemMenu.vue.js";
13
+ import { dragHandlerFactory as Ve } from "./handle-drag.js";
14
+ import { ScalarIcon as q, ScalarSearchInput as Te, ScalarSearchResultList as Pe, ScalarSearchResultItem as Ee, ScalarButton as Be } from "@scalar/components";
15
15
  import { LibraryIcon as We } from "@scalar/icons";
16
16
  import { useToasts as ze } from "@scalar/use-toasts";
17
17
  import { useRouter as Ae } from "vue-router";
@@ -30,224 +30,221 @@ const je = { class: "flex items-center h-[48px] px-3 top-0 bg-b-1 sticky z-20" }
30
30
  }, Qe = {
31
31
  key: 1,
32
32
  class: "contents"
33
- }, Xe = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, Ye = { class: "w-[60px] h-[68px] m-auto rabbit-ascii mt-2 relative" }, gt = /* @__PURE__ */ ce({
33
+ }, Xe = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, Ye = { class: "w-[60px] h-[68px] m-auto rabbit-ascii mt-2 relative" }, Rt = /* @__PURE__ */ ce({
34
34
  __name: "RequestSidebar",
35
35
  props: {
36
- showSidebar: { type: Boolean },
37
- isReadonly: { type: Boolean }
36
+ isSidebarOpen: { type: Boolean }
38
37
  },
39
- emits: ["update:modelValue", "update:showSidebar", "newTab", "clearDrafts"],
40
- setup(L, { emit: H }) {
41
- const D = L, M = H, { layout: V } = Ue();
42
- console.log("layout", V);
43
- const T = Le(), {
38
+ emits: ["update:modelValue", "update:isSidebarOpen", "newTab", "clearDrafts"],
39
+ setup(U, { emit: L }) {
40
+ const H = U, D = L, { layout: j } = Ue(), M = Le(), {
44
41
  activeWorkspaceCollections: m,
45
- activeRequest: j,
42
+ activeRequest: G,
46
43
  activeWorkspaceRequests: R,
47
- activeWorkspace: g
48
- } = De(), { findRequestParents: G, isReadOnly: J, events: y, requestMutators: P, requests: Q } = T, { handleDragEnd: X, isDroppable: Y } = Te(
49
- g,
50
- T
51
- ), { collapsedSidebarFolders: Z, setCollapsedSidebarFolder: _ } = He(), { replace: E } = Ae(), ee = () => {
52
- y.commandPalette.emit({
44
+ activeWorkspace: y
45
+ } = qe(), { findRequestParents: J, isReadOnly: l, events: k, requestMutators: V, requests: Q } = M, { handleDragEnd: X, isDroppable: Y } = Ve(
46
+ y,
47
+ M
48
+ ), { collapsedSidebarFolders: Z, setCollapsedSidebarFolder: _ } = He(), { replace: T } = Ae(), ee = () => {
49
+ k.commandPalette.emit({
53
50
  commandName: "Import from OpenAPI/Swagger/Postman"
54
51
  });
55
- }, B = me(), { toast: te } = ze(), v = pe({ open: !1 });
56
- A(
57
- j,
58
- (e) => {
59
- e && G(e).forEach(
60
- (t) => _(t, !0)
52
+ }, P = pe(), { toast: te } = ze(), S = me({ open: !1 });
53
+ z(
54
+ G,
55
+ (o) => {
56
+ o && J(o).forEach(
57
+ (e) => _(e, !0)
61
58
  );
62
59
  },
63
60
  { immediate: !0 }
64
61
  );
65
62
  const {
66
- searchText: c,
67
- searchResultsWithPlaceholderResults: k,
63
+ searchText: p,
64
+ searchResultsWithPlaceholderResults: x,
68
65
  selectedSearchResult: w,
69
- onSearchResultClick: oe,
70
- fuseSearch: se,
66
+ onSearchResultClick: se,
67
+ fuseSearch: oe,
71
68
  searchInputRef: I,
72
69
  searchResultRefs: ae,
73
- navigateSearchResults: O,
70
+ navigateSearchResults: E,
74
71
  selectSearchResult: re
75
- } = xe(), W = (e) => {
76
- var t;
77
- e && (e.toggleSidebar && M("update:showSidebar", D.showSidebar), e.focusRequestSearch && ((t = I.value) == null || t.focus()));
72
+ } = Ce(), B = (o) => {
73
+ var e;
74
+ o && (o.toggleSidebar && D("update:isSidebarOpen", H.isSidebarOpen), o.focusRequestSearch && ((e = I.value) == null || e.focus()));
78
75
  };
79
- fe(() => y.hotKeys.on(W)), be(() => {
80
- y.hotKeys.off(W);
76
+ fe(() => k.hotKeys.on(B)), be(() => {
77
+ k.hotKeys.off(B);
81
78
  });
82
- const ne = (e) => {
83
- if (e != null && e.documentUrl) {
84
- e.watchMode = !e.watchMode;
85
- const t = m.value.find(
86
- (o) => o.uid === e.entity.uid
79
+ const ne = (o) => {
80
+ if (o != null && o.documentUrl) {
81
+ o.watchMode = !o.watchMode;
82
+ const e = m.value.find(
83
+ (s) => s.uid === o.entity.uid
87
84
  );
88
- t && (t.watchMode = e.watchMode);
85
+ e && (e.watchMode = o.watchMode);
89
86
  }
90
87
  };
91
- A(
92
- () => m.value.map((e) => e.watchMode),
93
- (e, t) => {
94
- e.forEach((o, a) => {
88
+ z(
89
+ () => m.value.map((o) => o.watchMode),
90
+ (o, e) => {
91
+ o.forEach((s, a) => {
95
92
  var n;
96
- if (!D.isReadonly && o !== t[a]) {
97
- const ue = `${(n = m.value[a].info) == null ? void 0 : n.title}: Watch Mode ${o ? "enabled" : "disabled"}`;
93
+ if (!l && s !== e[a]) {
94
+ const ue = `${(n = m.value[a].info) == null ? void 0 : n.title}: Watch Mode ${s ? "enabled" : "disabled"}`;
98
95
  te(ue, "info");
99
96
  }
100
97
  });
101
98
  }
102
99
  );
103
- const ie = he(() => {
104
- var t;
105
- const e = k.value[w.value];
106
- return (t = e == null ? void 0 : e.item) != null && t.id ? `#search-input-${e.item.id}` : void 0;
100
+ const ie = ve(() => {
101
+ var e;
102
+ const o = x.value[w.value];
103
+ return (e = o == null ? void 0 : o.item) != null && e.id ? `#search-input-${o.item.id}` : void 0;
107
104
  }), le = () => {
108
- const e = m.value.find(
109
- (o) => {
105
+ const o = m.value.find(
106
+ (s) => {
110
107
  var a;
111
- return ((a = o.info) == null ? void 0 : a.title) === "Drafts";
108
+ return ((a = s.info) == null ? void 0 : a.title) === "Drafts";
112
109
  }
113
110
  );
114
- if (e && e.requests.forEach((o) => {
115
- P.delete(Q[o], e.uid);
111
+ if (o && o.requests.forEach((s) => {
112
+ V.delete(Q[s], o.uid);
116
113
  }), R.value.length) {
117
- const o = m.value[0], a = o == null ? void 0 : o.requests[0];
118
- a && E(`/workspace/${g.value.uid}/request/${a}`);
114
+ const s = m.value[0], a = s == null ? void 0 : s.requests[0];
115
+ a && T(`/workspace/${y.value.uid}/request/${a}`);
119
116
  } else {
120
- const { request: o } = Me();
121
- e && (P.add(o, e.uid), E(`/workspace/${g.value.uid}/request/${o.uid}`));
117
+ const { request: s } = De();
118
+ o && (V.add(s, o.uid), T(`/workspace/${y.value.uid}/request/${s.uid}`));
122
119
  }
123
- }, p = ve(!1), de = () => {
124
- p.value = !p.value, p.value || (c.value = ""), p.value && ge(() => {
125
- var e;
126
- (e = I.value) == null || e.focus();
120
+ }, f = he(!1), de = () => {
121
+ f.value = !f.value, f.value || (p.value = ""), f.value && Re(() => {
122
+ var o;
123
+ (o = I.value) == null || o.focus();
127
124
  });
128
125
  };
129
- return (e, t) => (r(), S(C, null, [
130
- F(u(s(Ke), {
131
- class: f([e.showSidebar ? "sidebar-active-width" : ""]),
132
- showSidebar: e.showSidebar,
133
- "onUpdate:showSidebar": t[10] || (t[10] = (o) => e.$emit("update:showSidebar", o))
126
+ return (o, e) => (r(), g(C, null, [
127
+ A(c(t(Ke), {
128
+ class: b([o.isSidebarOpen ? "sidebar-active-width" : ""]),
129
+ isSidebarOpen: o.isSidebarOpen,
130
+ "onUpdate:isSidebarOpen": e[10] || (e[10] = (s) => o.$emit("update:isSidebarOpen", s))
134
131
  }, Se({
135
- content: d(() => [
132
+ content: u(() => [
136
133
  i("div", je, [
137
- u(qe, {
138
- class: f(["gitbook-hidden xl:hidden", [{ "!flex": s(V) === "modal" }]]),
139
- modelValue: e.showSidebar,
140
- "onUpdate:modelValue": t[0] || (t[0] = (o) => e.$emit("update:showSidebar", o))
134
+ c(Oe, {
135
+ class: b(["xl:hidden", [{ "!flex": t(j) === "modal" }]]),
136
+ modelValue: o.isSidebarOpen,
137
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => o.$emit("update:isSidebarOpen", s))
141
138
  }, null, 8, ["class", "modelValue"]),
142
- e.isReadonly ? b("", !0) : (r(), l(s(Ne), { key: 0 })),
143
- e.isReadonly ? b("", !0) : (r(), S("span", Ge, "/")),
144
- e.isReadonly ? b("", !0) : (r(), l(Ie, { key: 2 })),
139
+ t(l) ? v("", !0) : (r(), d(t(Ne), { key: 0 })),
140
+ t(l) ? v("", !0) : (r(), g("span", Ge, " / ")),
141
+ t(l) ? v("", !0) : (r(), d(we, { key: 2 })),
145
142
  i("button", {
146
143
  class: "ml-auto",
147
144
  type: "button",
148
145
  onClick: de
149
146
  }, [
150
- u(s(q), {
147
+ c(t(q), {
151
148
  class: "text-c-3 text-sm hover:bg-b-2 p-1.75 rounded-lg max-w-8 max-h-8",
152
149
  icon: "Search"
153
150
  })
154
151
  ])
155
152
  ]),
156
- F(i("div", Je, [
157
- u(s(Pe), {
153
+ A(i("div", Je, [
154
+ c(t(Te), {
158
155
  ref_key: "searchInputRef",
159
156
  ref: I,
160
- modelValue: s(c),
161
- "onUpdate:modelValue": t[1] || (t[1] = (o) => ye(c) ? c.value = o : null),
157
+ modelValue: t(p),
158
+ "onUpdate:modelValue": e[1] || (e[1] = (s) => ge(p) ? p.value = s : null),
162
159
  "aria-activedescendant": ie.value,
163
- "aria-controls": s(B),
160
+ "aria-controls": t(P),
164
161
  sidebar: "",
165
- onBlur: t[2] || (t[2] = (o) => p.value = s(c).length > 0),
166
- onInput: s(se),
162
+ onBlur: e[2] || (e[2] = (s) => f.value = t(p).length > 0),
163
+ onInput: t(oe),
167
164
  onKeydown: [
168
- t[3] || (t[3] = x(h((o) => s(O)("down"), ["stop"]), ["down"])),
169
- t[4] || (t[4] = x(h((o) => s(re)(), ["stop"]), ["enter"])),
170
- t[5] || (t[5] = x(h((o) => s(O)("up"), ["stop"]), ["up"]))
165
+ e[3] || (e[3] = $(h((s) => t(E)("down"), ["stop"]), ["down"])),
166
+ e[4] || (e[4] = $(h((s) => t(re)(), ["stop"]), ["enter"])),
167
+ e[5] || (e[5] = $(h((s) => t(E)("up"), ["stop"]), ["up"]))
171
168
  ]
172
169
  }, null, 8, ["modelValue", "aria-activedescendant", "aria-controls", "onInput"])
173
170
  ], 512), [
174
- [K, p.value || s(c)]
171
+ [F, f.value || t(p)]
175
172
  ]),
176
173
  i("div", {
177
- class: f(["flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
178
- "pb-14": !e.isReadonly
174
+ class: b(["flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
175
+ "pb-14": !t(l)
179
176
  }]),
180
- onDragenter: t[8] || (t[8] = h(() => {
177
+ onDragenter: e[8] || (e[8] = h(() => {
181
178
  }, ["prevent"])),
182
- onDragover: t[9] || (t[9] = h(() => {
179
+ onDragover: e[9] || (e[9] = h(() => {
183
180
  }, ["prevent"]))
184
181
  }, [
185
- s(c) ? (r(), l(s(Ee), {
182
+ t(p) ? (r(), d(t(Pe), {
186
183
  key: 0,
187
- id: s(B),
184
+ id: t(P),
188
185
  "aria-label": "Search Results",
189
186
  class: "gap-px",
190
- noResults: !s(k).length
187
+ noResults: !t(x).length
191
188
  }, {
192
- default: d(() => [
193
- (r(!0), S(C, null, N(s(k), (o, a) => (r(), l(s(Be), {
194
- id: `#search-input-${o.item.id}`,
195
- key: o.refIndex,
189
+ default: u(() => [
190
+ (r(!0), g(C, null, K(t(x), (s, a) => (r(), d(t(Ee), {
191
+ id: `#search-input-${s.item.id}`,
192
+ key: s.refIndex,
196
193
  ref_for: !0,
197
- ref: (n) => s(ae)[a] = n,
198
- active: s(w) === a,
194
+ ref: (n) => t(ae)[a] = n,
195
+ active: t(w) === a,
199
196
  class: "px-2",
200
- href: o.item.link,
201
- onClick: h((n) => s(oe)(o), ["prevent"]),
197
+ href: s.item.link,
198
+ onClick: h((n) => t(se)(s), ["prevent"]),
202
199
  onFocus: (n) => w.value = a
203
200
  }, {
204
- addon: d(() => [
205
- t[12] || (t[12] = i("span", { class: "sr-only" }, "HTTP Method:", -1)),
206
- u(Ce, {
201
+ addon: u(() => [
202
+ e[12] || (e[12] = i("span", { class: "sr-only" }, "HTTP Method:", -1)),
203
+ c(Ie, {
207
204
  class: "font-bold",
208
- method: o.item.httpVerb ?? "get"
205
+ method: s.item.httpVerb ?? "get"
209
206
  }, null, 8, ["method"])
210
207
  ]),
211
- default: d(() => [
212
- $(Re(o.item.title) + " ", 1)
208
+ default: u(() => [
209
+ O(ke(s.item.title) + " ", 1)
213
210
  ]),
214
211
  _: 2
215
212
  }, 1032, ["id", "active", "href", "onClick", "onFocus"]))), 128))
216
213
  ]),
217
214
  _: 1
218
- }, 8, ["id", "noResults"])) : (r(), S("nav", Qe, [
219
- (r(!0), S(C, null, N(s(m), (o) => {
215
+ }, 8, ["id", "noResults"])) : (r(), g("nav", Qe, [
216
+ (r(!0), g(C, null, K(t(m), (s) => {
220
217
  var a;
221
- return r(), l(Fe, {
222
- key: o.uid,
223
- isDraggable: !e.isReadonly && ((a = o.info) == null ? void 0 : a.title) !== "Drafts",
224
- isDroppable: s(Y),
225
- menuItem: v,
218
+ return r(), d(Fe, {
219
+ key: s.uid,
220
+ isDraggable: !t(l) && ((a = s.info) == null ? void 0 : a.title) !== "Drafts",
221
+ isDroppable: t(Y),
222
+ menuItem: S,
226
223
  parentUids: [],
227
- uid: o.uid,
228
- onNewTab: t[6] || (t[6] = (n, z) => M("newTab", { name: n, uid: z })),
229
- onOnDragEnd: s(X),
230
- onOpenMenu: t[7] || (t[7] = (n) => Object.assign(v, n))
224
+ uid: s.uid,
225
+ onNewTab: e[6] || (e[6] = (n, W) => D("newTab", { name: n, uid: W })),
226
+ onOnDragEnd: t(X),
227
+ onOpenMenu: e[7] || (e[7] = (n) => Object.assign(S, n))
231
228
  }, {
232
- leftIcon: d(() => {
229
+ leftIcon: u(() => {
233
230
  var n;
234
231
  return [
235
- ((n = o.info) == null ? void 0 : n.title) === "Drafts" ? (r(), l(s(q), {
232
+ ((n = s.info) == null ? void 0 : n.title) === "Drafts" ? (r(), d(t(q), {
236
233
  key: 0,
237
234
  class: "text-sidebar-c-2 group-hover:hidden",
238
235
  icon: "Scribble",
239
236
  thickness: "2.25"
240
- })) : (r(), l(s(We), {
237
+ })) : (r(), d(t(We), {
241
238
  key: 1,
242
239
  class: "min-w-3.5 text-sidebar-c-2 size-3.5 stroke-2 group-hover:hidden",
243
- src: o["x-scalar-icon"] || "interface-content-folder"
240
+ src: s["x-scalar-icon"] || "interface-content-folder"
244
241
  }, null, 8, ["src"])),
245
242
  i("div", {
246
- class: f({
247
- "rotate-90": s(Z)[o.uid]
243
+ class: b({
244
+ "rotate-90": t(Z)[s.uid]
248
245
  })
249
246
  }, [
250
- u(s(q), {
247
+ c(t(q), {
251
248
  class: "text-c-3 hidden text-sm group-hover:block",
252
249
  icon: "ChevronRight",
253
250
  size: "md"
@@ -261,47 +258,47 @@ const je = { class: "flex items-center h-[48px] px-3 top-0 bg-b-1 sticky z-20" }
261
258
  ]))
262
259
  ], 34)
263
260
  ]),
264
- button: d(() => [
261
+ button: u(() => [
265
262
  i("div", {
266
- class: f({
267
- "empty-sidebar-item": s(R).length <= 1
263
+ class: b({
264
+ "empty-sidebar-item": t(R).length <= 1
268
265
  })
269
266
  }, [
270
267
  i("div", Xe, [
271
268
  i("div", Ye, [
272
- u(U, {
273
- art: s(ke),
269
+ c(N, {
270
+ art: t(ye),
274
271
  class: "font-bold rabbitsit"
275
272
  }, null, 8, ["art"]),
276
- u(U, {
277
- art: s(we),
273
+ c(N, {
274
+ art: t(xe),
278
275
  class: "font-bold absolute top-0 left-0 rabbitjump"
279
276
  }, null, 8, ["art"])
280
277
  ]),
281
- t[13] || (t[13] = i("div", { class: "text-center text-balance text-sm mb-2 mt-2" }, [
278
+ e[13] || (e[13] = i("div", { class: "text-center text-balance text-sm mb-2 mt-2" }, [
282
279
  i("b", { class: "font-medium" }, "Let's Get Started"),
283
280
  i("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
284
281
  ], -1))
285
282
  ]),
286
- e.isReadonly ? b("", !0) : (r(), l(s(Oe), {
283
+ t(l) ? v("", !0) : (r(), d(t(Be), {
287
284
  key: 0,
288
- class: f(["mb-1.5 w-full h-fit hidden opacity-0 p-1.5", {
289
- "flex opacity-100": s(R).length <= 1
285
+ class: b(["mb-1.5 w-full h-fit hidden opacity-0 p-1.5", {
286
+ "flex opacity-100": t(R).length <= 1
290
287
  }]),
291
288
  onClick: ee
292
289
  }, {
293
- default: d(() => t[14] || (t[14] = [
294
- $(" Import Collection ")
290
+ default: u(() => e[14] || (e[14] = [
291
+ O(" Import Collection ")
295
292
  ])),
296
293
  _: 1
297
294
  }, 8, ["class"])),
298
- e.isReadonly ? b("", !0) : (r(), l($e, {
295
+ t(l) ? v("", !0) : (r(), d($e, {
299
296
  key: 1,
300
- click: s(y).commandPalette.emit,
297
+ click: t(k).commandPalette.emit,
301
298
  hotkey: "K"
302
299
  }, {
303
- title: d(() => t[15] || (t[15] = [
304
- $("Add Item")
300
+ title: u(() => e[15] || (e[15] = [
301
+ O("Add Item")
305
302
  ])),
306
303
  _: 1
307
304
  }, 8, ["click"]))
@@ -309,24 +306,24 @@ const je = { class: "flex items-center h-[48px] px-3 top-0 bg-b-1 sticky z-20" }
309
306
  ]),
310
307
  _: 2
311
308
  }, [
312
- e.isReadonly ? void 0 : {
309
+ t(l) ? void 0 : {
313
310
  name: "header",
314
- fn: d(() => []),
311
+ fn: u(() => []),
315
312
  key: "0"
316
313
  }
317
- ]), 1032, ["class", "showSidebar"]), [
318
- [K, e.showSidebar]
314
+ ]), 1032, ["class", "isSidebarOpen"]), [
315
+ [F, o.isSidebarOpen]
319
316
  ]),
320
- !s(J) && v ? (r(), l(Ve, {
317
+ !t(l) && S ? (r(), d(Me, {
321
318
  key: 0,
322
- menuItem: v,
319
+ menuItem: S,
323
320
  onClearDrafts: le,
324
- onCloseMenu: t[11] || (t[11] = (o) => v.open = !1),
321
+ onCloseMenu: e[11] || (e[11] = (s) => S.open = !1),
325
322
  onToggleWatchMode: ne
326
- }, null, 8, ["menuItem"])) : b("", !0)
323
+ }, null, 8, ["menuItem"])) : v("", !0)
327
324
  ], 64));
328
325
  }
329
326
  });
330
327
  export {
331
- gt as default
328
+ Rt as default
332
329
  };
@@ -1,6 +1,5 @@
1
1
  type __VLS_Props = {
2
2
  modelValue: boolean;
3
- isReadonly: boolean;
4
3
  };
5
4
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
5
  importCurl: (value: string) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSubpageHeader.vue"],"names":[],"mappings":"AAmHA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;;;;;AAmPF,wBAQG"}
1
+ {"version":3,"file":"RequestSubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSubpageHeader.vue"],"names":[],"mappings":"AA2GA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;;;;;AA2OF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import e from "./RequestSubpageHeader.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-69d0a8c3"]]);
4
+ const f = /* @__PURE__ */ o(e, [["__scopeId", "data-v-d6f5cf38"]]);
5
5
  export {
6
- p as default
6
+ f as default
7
7
  };