@scalar/api-client 2.2.17 → 2.2.19

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