@scalar/api-client 2.0.44 → 2.0.46

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