@scalar/api-client 2.0.47 → 2.0.48

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 (72) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +77 -71
  5. package/dist/components/CodeInput/CodeInput.vue.d.ts +3 -1
  6. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  7. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  8. package/dist/components/CodeInput/CodeInput.vue2.js +49 -44
  9. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  10. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  11. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +97 -106
  12. package/dist/components/Sidebar/Sidebar.vue.d.ts +24 -3
  13. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  14. package/dist/components/Sidebar/Sidebar.vue.js +57 -19
  15. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  16. package/dist/components/TopNav/TopNav.vue.js +1 -1
  17. package/dist/components/TopNav/TopNav.vue2.js +46 -43
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +9 -9
  21. package/dist/layouts/App/ApiClientApp.vue.js +1 -1
  22. package/dist/layouts/App/create-api-client-app.d.ts +56 -46
  23. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  24. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  25. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  26. package/dist/layouts/Modal/ApiClientModal.vue2.js +20 -20
  27. package/dist/layouts/Modal/create-api-client-modal.d.ts +112 -92
  28. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  29. package/dist/libs/create-client.d.ts +56 -46
  30. package/dist/libs/create-client.d.ts.map +1 -1
  31. package/dist/libs/event-busses/{command-palette.d.ts → command-palette-bus.d.ts} +1 -1
  32. package/dist/libs/event-busses/command-palette-bus.d.ts.map +1 -0
  33. package/dist/libs/event-busses/{execute-requestBus.d.ts → execute-request-bus.d.ts} +1 -1
  34. package/dist/libs/event-busses/execute-request-bus.d.ts.map +1 -0
  35. package/dist/libs/event-busses/hot-keys-bus.d.ts +33 -0
  36. package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -0
  37. package/dist/libs/event-busses/hot-keys-bus.js +33 -0
  38. package/dist/libs/event-busses/index.d.ts +3 -3
  39. package/dist/libs/event-busses/index.d.ts.map +1 -1
  40. package/dist/libs/event-busses/index.js +3 -3
  41. package/dist/libs/index.js +3 -3
  42. package/dist/libs/local-storage.d.ts +1 -1
  43. package/dist/libs/local-storage.d.ts.map +1 -1
  44. package/dist/libs/local-storage.js +15 -30
  45. package/dist/router.d.ts +2 -2
  46. package/dist/router.d.ts.map +1 -1
  47. package/dist/router.js +3 -3
  48. package/dist/store/workspace.d.ts +112 -92
  49. package/dist/store/workspace.d.ts.map +1 -1
  50. package/dist/store/workspace.js +140 -137
  51. package/dist/style.css +1 -1
  52. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  53. package/dist/views/Request/Request.vue.js +1 -1
  54. package/dist/views/Request/Request.vue2.js +135 -131
  55. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  56. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  57. package/dist/views/Request/RequestSidebarItem.vue2.js +252 -138
  58. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +27 -5
  59. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  60. package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
  61. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +83 -158
  62. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  63. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  64. package/dist/views/Request/components/WorkspaceDropdown.vue.js +214 -70
  65. package/package.json +6 -6
  66. package/dist/libs/event-busses/command-palette.d.ts.map +0 -1
  67. package/dist/libs/event-busses/execute-requestBus.d.ts.map +0 -1
  68. package/dist/libs/event-busses/hot-key.d.ts +0 -34
  69. package/dist/libs/event-busses/hot-key.d.ts.map +0 -1
  70. package/dist/libs/event-busses/hot-key.js +0 -25
  71. /package/dist/libs/event-busses/{command-palette.js → command-palette-bus.js} +0 -0
  72. /package/dist/libs/event-busses/{execute-requestBus.js → execute-request-bus.js} +0 -0
@@ -1,212 +1,216 @@
1
- import { defineComponent as ie, ref as ae, watch as F, onMounted as le, onBeforeUnmount as ne, openBlock as h, createElementBlock as U, Fragment as N, createElementVNode as v, normalizeClass as b, unref as s, createVNode as c, createCommentVNode as R, withCtx as p, withDirectives as de, createSlots as ce, withModifiers as P, renderList as ue, createBlock as O, createTextVNode as me, vShow as fe, pushScopeId as pe, popScopeId as ve } from "vue";
2
- import he from "../../components/AddressBar/AddressBar.vue.js";
3
- import be from "../../components/Search/SearchButton.vue.js";
4
- import xe from "../../components/Search/SearchModal.vue.js";
5
- import ye from "../../components/Sidebar/SidebarButton.vue.js";
1
+ import { defineComponent as se, ref as ie, watch as F, onMounted as ae, onBeforeUnmount as le, openBlock as h, createElementBlock as k, Fragment as N, createElementVNode as v, normalizeClass as b, unref as s, createVNode as c, createCommentVNode as U, withCtx as p, withDirectives as ne, createSlots as de, withModifiers as P, renderList as ce, createBlock as R, createTextVNode as ue, vShow as me, pushScopeId as fe, popScopeId as pe } from "vue";
2
+ import ve from "../../components/AddressBar/AddressBar.vue.js";
3
+ import he from "../../components/Search/SearchButton.vue.js";
4
+ import be from "../../components/Search/SearchModal.vue.js";
5
+ import xe from "../../components/Sidebar/SidebarButton.vue.js";
6
6
  import ge from "../../components/Sidebar/SidebarToggle.vue.js";
7
7
  import we from "../../components/ViewLayout/ViewLayout.vue.js";
8
- import _e from "../../components/ViewLayout/ViewLayoutContent.vue.js";
9
- import { commandPaletteBus as W } from "../../libs/event-busses/command-palette.js";
10
- import { useWorkspace as ke } from "../../store/workspace.js";
11
- import Se from "./RequestSection/RequestSection.vue.js";
8
+ import ye from "../../components/ViewLayout/ViewLayoutContent.vue.js";
9
+ import { useWorkspace as Se } from "../../store/workspace.js";
10
+ import _e from "./RequestSection/RequestSection.vue.js";
12
11
  /* empty css */
13
- import Ue from "./ResponseSection/ResponseSection.vue.js";
14
- import { useModal as Re, ScalarIcon as C } from "@scalar/components";
15
- import { useToasts as Oe } from "@scalar/use-toasts";
16
- import { isMacOS as z } from "@scalar/use-tooltip";
17
- import { useMediaQuery as Ce, useMagicKeys as Me, useEventListener as qe } from "@vueuse/core";
18
- import De from "./RequestSidebarItem.vue.js";
19
- import Be from "../../components/Sidebar/Sidebar.vue.js";
12
+ import ke from "./ResponseSection/ResponseSection.vue.js";
13
+ import { useModal as Ue, ScalarIcon as B } from "@scalar/components";
14
+ import { useToasts as Re } from "@scalar/use-toasts";
15
+ import { useMediaQuery as Be } from "@vueuse/core";
16
+ import Ce from "./RequestSidebarItem.vue.js";
17
+ import Oe from "../../components/Sidebar/Sidebar.vue.js";
20
18
  /* empty css */
21
- import Ie from "./components/WorkspaceDropdown.vue.js";
22
- import { useSidebar as Ve } from "../../hooks/useSidebar.js";
23
- import { sendRequest as $e } from "../../libs/sendRequest.js";
24
- import { executeRequestBus as L } from "../../libs/event-busses/execute-requestBus.js";
25
- import { requestStatusBus as k } from "../../libs/event-busses/request-status-bus.js";
26
- const Ee = (g) => (pe("data-v-660ba379"), g = g(), ve(), g), Fe = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container border-b-1/2" }, Ne = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, Pe = /* @__PURE__ */ Ee(() => /* @__PURE__ */ v("a", {
19
+ import qe from "./components/WorkspaceDropdown.vue.js";
20
+ import { useSidebar as De } from "../../hooks/useSidebar.js";
21
+ import { sendRequest as Me } from "../../libs/sendRequest.js";
22
+ import { executeRequestBus as W } from "../../libs/event-busses/execute-request-bus.js";
23
+ import { hotKeyBus as z } from "../../libs/event-busses/hot-keys-bus.js";
24
+ import { commandPaletteBus as j } from "../../libs/event-busses/command-palette-bus.js";
25
+ import { requestStatusBus as S } from "../../libs/event-busses/request-status-bus.js";
26
+ const Ie = (w) => (fe("data-v-1a28a88b"), w = w(), pe(), w), Ve = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container border-b-1/2" }, $e = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, Ee = /* @__PURE__ */ Ie(() => /* @__PURE__ */ v("a", {
27
27
  class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
28
28
  href: "https://scalar.com/",
29
29
  target: "_blank"
30
- }, " Powered by Scalar.com ", -1)), We = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, mt = /* @__PURE__ */ ie({
30
+ }, " Powered by Scalar.com ", -1)), Fe = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, dt = /* @__PURE__ */ se({
31
31
  __name: "Request",
32
- setup(g) {
32
+ setup(w) {
33
33
  var E;
34
34
  const {
35
- activeExample: w,
35
+ activeExample: y,
36
36
  activeRequest: f,
37
- activeSecuritySchemes: j,
37
+ activeSecuritySchemes: L,
38
38
  activeWorkspace: l,
39
39
  activeWorkspaceCollections: T,
40
40
  activeWorkspaceServers: A,
41
- activeWorkspaceRequests: H,
42
- collectionMutators: M,
43
- collections: u,
44
- cookies: J,
45
- environments: K,
41
+ activeWorkspaceRequests: K,
42
+ collectionMutators: C,
43
+ collections: m,
44
+ cookies: H,
45
+ environments: J,
46
46
  findRequestFolders: Q,
47
47
  folders: x,
48
- folderMutators: q,
48
+ folderMutators: O,
49
49
  modalState: G,
50
50
  requestMutators: X,
51
- workspaceMutators: D
52
- } = ke(), { collapsedSidebarFolders: Y, setCollapsedSidebarFolder: Z } = Ve(), { toast: B } = Oe(), I = Re(), ee = Ce("(max-width: 780px)"), m = ae(!((E = l.value) != null && E.isReadOnly));
53
- F(ee, (t) => m.value = !t), F(
51
+ workspaceMutators: q
52
+ } = Se(), { collapsedSidebarFolders: Y, setCollapsedSidebarFolder: Z } = De(), { toast: D } = Re(), M = Ue(), ee = Be("(max-width: 780px)"), u = ie(!((E = l.value) != null && E.isReadOnly));
53
+ F(ee, (r) => u.value = !r), F(
54
54
  f,
55
- (t) => {
56
- t && Q(t.uid).forEach(
57
- (o) => Z(o, !0)
55
+ (r) => {
56
+ r && Q(r.uid).forEach(
57
+ (e) => Z(e, !0)
58
58
  );
59
59
  },
60
60
  { immediate: !0 }
61
61
  );
62
- const V = async () => {
62
+ const I = async () => {
63
63
  var i;
64
- if (!f.value || !w.value) {
64
+ if (!f.value || !y.value) {
65
65
  console.warn(
66
66
  "There is no request active at the moment. Please select one then try again."
67
67
  );
68
68
  return;
69
69
  }
70
- let t = w.value.url;
71
- const o = Object.values(K).reduce(
72
- (e, a) => {
70
+ let r = y.value.url;
71
+ const e = Object.values(J).reduce(
72
+ (o, a) => {
73
73
  try {
74
- return { ...e, ...JSON.parse(a.raw) };
74
+ return { ...o, ...JSON.parse(a.raw) };
75
75
  } catch {
76
- return e;
76
+ return o;
77
77
  }
78
78
  },
79
79
  {}
80
- ), r = /\{\{(.*?)\}\}/g;
81
- t = t.replace(r, (e, a) => (A.value.forEach((n) => {
80
+ ), t = /\{\{(.*?)\}\}/g;
81
+ r = r.replace(t, (o, a) => (A.value.forEach((n) => {
82
82
  if (n.url === a)
83
83
  return a;
84
- }), o[a] || a)), k.emit("start");
84
+ }), e[a] || a)), S.emit("start");
85
85
  try {
86
- const { request: e, response: a, error: n } = await $e(
86
+ const { request: o, response: a, error: n } = await Me(
87
87
  f.value,
88
- w.value,
89
- t,
90
- j.value,
88
+ y.value,
89
+ r,
90
+ L.value,
91
91
  (i = l.value) == null ? void 0 : i.proxyUrl,
92
- J
92
+ H
93
93
  );
94
- e && a ? (X.edit(f.value.uid, "history", [
94
+ o && a ? (X.edit(f.value.uid, "history", [
95
95
  ...f.value.history,
96
96
  {
97
- request: e,
97
+ request: o,
98
98
  response: a,
99
99
  timestamp: Date.now()
100
100
  }
101
- ]), k.emit("stop")) : (B((n == null ? void 0 : n.message) ?? "Send Request Failed", "error"), k.emit("abort"));
102
- } catch (e) {
103
- console.error(e), B(`Oops!
104
- ${e}`, "error"), k.emit("abort");
101
+ ]), S.emit("stop")) : (D((n == null ? void 0 : n.message) ?? "Send Request Failed", "error"), S.emit("abort"));
102
+ } catch (o) {
103
+ console.error(o), D(`Oops!
104
+ ${o}`, "error"), S.emit("abort");
105
105
  }
106
+ }, V = (r) => {
107
+ r.toggleSidebar && (u.value = !u.value), r.openCommandPalette && j.emit();
106
108
  };
107
- le(() => L.on(V)), ne(() => L.off(V));
108
- const $ = (t, o) => {
109
- u[t] ? M.edit(t, "childUids", o) : x[t] && q.edit(t, "childUids", o);
110
- }, te = (t, o) => {
111
- if (!t || !o) return;
112
- const { id: r, parentId: i } = t, { id: e, parentId: a, offset: n } = o;
113
- if (i ? u[i] ? M.edit(
109
+ ae(() => {
110
+ W.on(I), z.on(V);
111
+ }), le(() => {
112
+ W.off(I), z.off(V);
113
+ });
114
+ const $ = (r, e) => {
115
+ m[r] ? C.edit(r, "childUids", e) : x[r] && O.edit(r, "childUids", e);
116
+ }, te = (r, e) => {
117
+ if (!r || !e) return;
118
+ const { id: t, parentId: i } = r, { id: o, parentId: a, offset: n } = e;
119
+ if (i ? m[i] ? C.edit(
114
120
  i,
115
121
  "childUids",
116
- u[i].childUids.filter(
117
- (d) => d !== r
122
+ m[i].childUids.filter(
123
+ (d) => d !== t
118
124
  )
119
- ) : x[i] && q.edit(
125
+ ) : x[i] && O.edit(
120
126
  i,
121
127
  "childUids",
122
- x[i].childUids.filter((d) => d !== r)
123
- ) : D.edit(
128
+ x[i].childUids.filter((d) => d !== t)
129
+ ) : q.edit(
124
130
  l.value.uid,
125
131
  "collectionUids",
126
- l.value.collectionUids.filter((d) => d !== r)
132
+ l.value.collectionUids.filter((d) => d !== t)
127
133
  ), n === 2) {
128
- const d = u[e] || x[e];
129
- $(e, [...d.childUids, r]);
134
+ const d = m[o] || x[o];
135
+ $(o, [...d.childUids, t]);
130
136
  } else if (a) {
131
- const y = [...(u[a] || x[a]).childUids], S = y.findIndex((se) => e === se) ?? 0;
132
- y.splice(S + n, 0, r), $(a, y);
137
+ const g = [...(m[a] || x[a]).childUids], _ = g.findIndex((re) => o === re) ?? 0;
138
+ g.splice(_ + n, 0, t), $(a, g);
133
139
  } else {
134
- const d = [...l.value.collectionUids], y = d.findIndex((S) => e === S) ?? 0;
135
- d.splice(y + n, 0, r), D.edit(
140
+ const d = [...l.value.collectionUids], g = d.findIndex((_) => o === _) ?? 0;
141
+ d.splice(g + n, 0, t), q.edit(
136
142
  l.value.uid,
137
143
  "collectionUids",
138
144
  d
139
145
  );
140
146
  }
141
- }, oe = () => W.emit(), _ = Me();
142
- qe(document, "keydown", (t) => {
143
- (z() ? _.meta.value : _.ctrl.value) && t.key === "b" && (m.value = !m.value), !l.value.isReadOnly && (z() ? _.meta.value : _.ctrl.value) && t.key === "k" && W.emit();
144
- });
145
- const re = (t, o) => {
146
- var r, i, e;
147
- return !(l.value.isReadOnly || !u[t.id] && o.offset !== 2 || u[t.id] && ((e = (i = (r = u[o.id]) == null ? void 0 : r.spec) == null ? void 0 : i.info) == null ? void 0 : e.title) === "Drafts");
147
+ }, oe = (r, e) => {
148
+ var t, i, o;
149
+ return !(l.value.isReadOnly || !m[r.id] && e.offset !== 2 || m[r.id] && ((o = (i = (t = m[e.id]) == null ? void 0 : t.spec) == null ? void 0 : i.info) == null ? void 0 : o.title) === "Drafts");
148
150
  };
149
- return (t, o) => (h(), U(N, null, [
151
+ return (r, e) => (h(), k(N, null, [
150
152
  v("div", {
151
153
  class: b(["flex flex-1 flex-col rounded pt-0 h-full bg-b-1 relative border-1/2 rounded mr-1.5 mb-1.5 overflow-hidden", {
152
154
  "!mr-0 !mb-0 !border-0": s(l).isReadOnly
153
155
  }])
154
156
  }, [
155
- v("div", Fe, [
156
- v("div", Ne, [
157
+ v("div", Ve, [
158
+ v("div", $e, [
157
159
  c(ge, {
158
- modelValue: m.value,
159
- "onUpdate:modelValue": o[0] || (o[0] = (r) => m.value = r),
160
+ modelValue: u.value,
161
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => u.value = t),
160
162
  class: "gitbook-hidden"
161
163
  }, null, 8, ["modelValue"]),
162
- Pe
164
+ Ee
163
165
  ]),
164
- c(he),
165
- v("div", We, [
166
- s(l).isReadOnly ? (h(), U("button", {
166
+ c(ve),
167
+ v("div", Fe, [
168
+ s(l).isReadOnly ? (h(), k("button", {
167
169
  key: 0,
168
170
  class: "text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded",
169
171
  type: "button",
170
- onClick: o[1] || (o[1] = (r) => s(G).hide())
172
+ onClick: e[1] || (e[1] = (t) => s(G).hide())
171
173
  }, [
172
- c(s(C), {
174
+ c(s(B), {
173
175
  icon: "Close",
174
176
  size: "lg",
175
177
  thickness: "1.75"
176
178
  })
177
- ])) : R("", !0)
179
+ ])) : U("", !0)
178
180
  ])
179
181
  ]),
180
182
  c(we, null, {
181
183
  default: p(() => [
182
- de(c(s(Be), {
183
- class: b([m.value ? "sidebar-active-width" : ""])
184
- }, ce({
184
+ ne(c(s(Oe), {
185
+ class: b([u.value ? "sidebar-active-width" : ""]),
186
+ showSideBar: u.value,
187
+ "onUpdate:showSideBar": e[5] || (e[5] = (t) => u.value = t)
188
+ }, de({
185
189
  content: p(() => [
186
- c(be, {
187
- onOpenSearchModal: o[2] || (o[2] = (r) => s(I).show())
190
+ c(he, {
191
+ onOpenSearchModal: e[2] || (e[2] = (t) => s(M).show())
188
192
  }),
189
193
  v("div", {
190
194
  class: b(["custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
191
195
  "pb-14": !s(l).isReadOnly
192
196
  }]),
193
- onDragenter: o[3] || (o[3] = P(() => {
197
+ onDragenter: e[3] || (e[3] = P(() => {
194
198
  }, ["prevent"])),
195
- onDragover: o[4] || (o[4] = P(() => {
199
+ onDragover: e[4] || (e[4] = P(() => {
196
200
  }, ["prevent"]))
197
201
  }, [
198
- (h(!0), U(N, null, ue(s(T), (r) => {
199
- var i, e;
200
- return h(), O(De, {
201
- key: r.uid,
202
- isDraggable: !s(l).isReadOnly && ((e = (i = r.spec) == null ? void 0 : i.info) == null ? void 0 : e.title) !== "Drafts",
203
- isDroppable: re,
204
- item: r,
202
+ (h(!0), k(N, null, ce(s(T), (t) => {
203
+ var i, o;
204
+ return h(), R(Ce, {
205
+ key: t.uid,
206
+ isDraggable: !s(l).isReadOnly && ((o = (i = t.spec) == null ? void 0 : i.info) == null ? void 0 : o.title) !== "Drafts",
207
+ isDroppable: oe,
208
+ item: t,
205
209
  parentUids: [],
206
210
  onOnDragEnd: te
207
211
  }, {
208
212
  leftIcon: p(() => [
209
- c(s(C), {
213
+ c(s(B), {
210
214
  class: "text-sidebar-c-2 text-sm group-hover:hidden",
211
215
  icon: "CodeFolder",
212
216
  size: "sm",
@@ -214,10 +218,10 @@ ${e}`, "error"), k.emit("abort");
214
218
  }),
215
219
  v("div", {
216
220
  class: b({
217
- "rotate-90": s(Y)[r.uid]
221
+ "rotate-90": s(Y)[t.uid]
218
222
  })
219
223
  }, [
220
- c(s(C), {
224
+ c(s(B), {
221
225
  class: "text-c-3 hidden text-sm group-hover:block",
222
226
  icon: "ChevronRight",
223
227
  size: "sm"
@@ -230,54 +234,54 @@ ${e}`, "error"), k.emit("abort");
230
234
  ], 34)
231
235
  ]),
232
236
  button: p(() => [
233
- s(l).isReadOnly ? R("", !0) : (h(), O(ye, {
237
+ s(l).isReadOnly ? U("", !0) : (h(), R(xe, {
234
238
  key: 0,
235
239
  class: b({
236
- "empty-sidebar-item": s(H).length === 1
240
+ "empty-sidebar-item": s(K).length === 1
237
241
  }),
238
- click: oe
242
+ click: s(j).emit
239
243
  }, {
240
244
  title: p(() => [
241
- me("Add Item")
245
+ ue("Add Item")
242
246
  ]),
243
247
  _: 1
244
- }, 8, ["class"]))
248
+ }, 8, ["class", "click"]))
245
249
  ]),
246
250
  _: 2
247
251
  }, [
248
252
  s(l).isReadOnly ? void 0 : {
249
253
  name: "header",
250
254
  fn: p(() => [
251
- c(s(Ie))
255
+ c(s(qe))
252
256
  ]),
253
257
  key: "0"
254
258
  }
255
- ]), 1032, ["class"]), [
256
- [fe, m.value]
259
+ ]), 1032, ["class", "showSideBar"]), [
260
+ [me, u.value]
257
261
  ]),
258
- s(w) ? (h(), O(_e, {
262
+ s(y) ? (h(), R(ye, {
259
263
  key: 0,
260
- class: b(["flex-1", [m.value ? "sidebar-active-hide-layout" : ""]])
264
+ class: b(["flex-1", [u.value ? "sidebar-active-hide-layout" : ""]])
261
265
  }, {
262
266
  default: p(() => {
263
- var r, i, e, a, n;
267
+ var t, i, o, a, n;
264
268
  return [
265
- c(Se),
266
- c(Ue, {
267
- response: (n = (a = (r = s(f)) == null ? void 0 : r.history) == null ? void 0 : a[((e = (i = s(f)) == null ? void 0 : i.history) == null ? void 0 : e.length) - 1]) == null ? void 0 : n.response
269
+ c(_e),
270
+ c(ke, {
271
+ response: (n = (a = (t = s(f)) == null ? void 0 : t.history) == null ? void 0 : a[((o = (i = s(f)) == null ? void 0 : i.history) == null ? void 0 : o.length) - 1]) == null ? void 0 : n.response
268
272
  }, null, 8, ["response"])
269
273
  ];
270
274
  }),
271
275
  _: 1
272
- }, 8, ["class"])) : R("", !0)
276
+ }, 8, ["class"])) : U("", !0)
273
277
  ]),
274
278
  _: 1
275
279
  })
276
280
  ], 2),
277
- c(xe, { modalState: s(I) }, null, 8, ["modalState"])
281
+ c(be, { modalState: s(M) }, null, 8, ["modalState"])
278
282
  ], 64));
279
283
  }
280
284
  });
281
285
  export {
282
- mt as default
286
+ dt as default
283
287
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA+TA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAA;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;AAgKlD,iBAAS,cAAc;gBA7HT,IAAI;;gBAAJ,IAAI;EA0cjB;AACD,QAAA,MAAM,eAAe;IArejB;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;IAdpD;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;;iBATtC,OAAO;MAuevB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,G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EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import o from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-481dd9cc"]]);
5
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-846321e2"]]);
6
6
  export {
7
7
  a as default
8
8
  };