@scalar/api-client 2.0.43 → 2.0.45
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.
- package/CHANGELOG.md +24 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +77 -69
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +5 -23
- package/dist/components/ContextBar.vue2.js +25 -2
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +1 -1
- package/dist/components/Form/Form.vue.d.ts +12 -3
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.js +24 -24
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +25 -22
- package/dist/components/SideNav/SideHelp.vue.js +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +21 -21
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +19 -18
- package/dist/components/Sidebar/SidebarToggle.vue.js +1 -1
- package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
- package/dist/components/SubpageHeader.vue.js +3 -3
- package/dist/components/SubpageHeader.vue2.js +7 -7
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +6 -6
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
- package/dist/errors.d.ts +5 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +7 -0
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +36 -36
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/create-api-client-modal.d.ts +72 -72
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +26 -18
- package/dist/libs/create-client.d.ts +39 -37
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/eventBusses/index.d.ts +1 -0
- package/dist/libs/eventBusses/index.d.ts.map +1 -1
- package/dist/libs/eventBusses/index.js +3 -1
- package/dist/libs/eventBusses/requestStatusBus.d.ts +5 -0
- package/dist/libs/eventBusses/requestStatusBus.d.ts.map +1 -0
- package/dist/libs/eventBusses/requestStatusBus.js +5 -0
- package/dist/libs/index.js +7 -5
- package/dist/libs/sendRequest.d.ts +2 -0
- package/dist/libs/sendRequest.d.ts.map +1 -1
- package/dist/libs/sendRequest.js +46 -37
- package/dist/store/workspace.d.ts +121 -120
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +274 -274
- package/dist/style.css +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +34 -17
- package/dist/views/Cookies/Cookies.vue2.js +9 -9
- package/dist/views/Environment/Environment.vue2.js +24 -24
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +170 -166
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth.vue2.js +115 -126
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +63 -42
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +69 -51
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +47 -44
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +30 -28
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +18 -18
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +1 -1
- package/package.json +4 -4
|
@@ -1,219 +1,223 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
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
|
|
9
|
-
import { commandPaletteBus as
|
|
10
|
-
import { useWorkspace as
|
|
11
|
-
import
|
|
8
|
+
import we from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
9
|
+
import { commandPaletteBus as P } from "../../libs/eventBusses/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
|
|
14
|
-
import { useModal as
|
|
15
|
-
import {
|
|
16
|
-
import { isMacOS as
|
|
17
|
-
import { useMagicKeys as
|
|
18
|
-
import
|
|
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
|
|
23
|
-
import { sendRequest as
|
|
24
|
-
import { executeRequestBus as
|
|
25
|
-
|
|
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/eventBusses/executeRequestBus.js";
|
|
25
|
+
import { requestStatusBus as k } from "../../libs/eventBusses/requestStatusBus.js";
|
|
26
|
+
const Ve = (g) => (fe("data-v-e97689ec"), 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" },
|
|
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(
|
|
32
|
-
var
|
|
32
|
+
setup(g) {
|
|
33
|
+
var E;
|
|
33
34
|
const {
|
|
34
35
|
activeExample: w,
|
|
35
|
-
activeRequest:
|
|
36
|
-
activeSecuritySchemes:
|
|
37
|
-
activeWorkspace:
|
|
38
|
-
activeWorkspaceCollections:
|
|
39
|
-
activeWorkspaceServers:
|
|
40
|
-
activeWorkspaceRequests:
|
|
41
|
-
collectionMutators:
|
|
42
|
-
collections:
|
|
43
|
-
cookies:
|
|
44
|
-
environments:
|
|
45
|
-
findRequestFolders:
|
|
46
|
-
folders:
|
|
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:
|
|
49
|
-
requestMutators:
|
|
49
|
+
modalState: G,
|
|
50
|
+
requestMutators: Q,
|
|
50
51
|
workspaceMutators: M
|
|
51
|
-
} =
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
(
|
|
55
|
-
|
|
56
|
-
(t) =>
|
|
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
|
|
62
|
-
var
|
|
63
|
-
if (!
|
|
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
|
|
70
|
-
const t = Object.values(
|
|
71
|
-
(
|
|
70
|
+
let r = w.value.url;
|
|
71
|
+
const t = Object.values(J).reduce(
|
|
72
|
+
(e, a) => {
|
|
72
73
|
try {
|
|
73
|
-
return { ...
|
|
74
|
+
return { ...e, ...JSON.parse(a.raw) };
|
|
74
75
|
} catch {
|
|
75
|
-
return
|
|
76
|
+
return e;
|
|
76
77
|
}
|
|
77
78
|
},
|
|
78
79
|
{}
|
|
79
80
|
), o = /\{\{(.*?)\}\}/g;
|
|
80
|
-
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
83
|
-
}), t[
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
if (!
|
|
106
|
-
const { id: o, parentId:
|
|
107
|
-
if (
|
|
108
|
-
|
|
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
|
-
|
|
111
|
-
(
|
|
116
|
+
u[i].childUids.filter(
|
|
117
|
+
(d) => d !== o
|
|
112
118
|
)
|
|
113
|
-
) :
|
|
114
|
-
|
|
119
|
+
) : x[i] && D.edit(
|
|
120
|
+
i,
|
|
115
121
|
"childUids",
|
|
116
|
-
|
|
122
|
+
x[i].childUids.filter((d) => d !== o)
|
|
117
123
|
) : M.edit(
|
|
118
|
-
|
|
124
|
+
l.value.uid,
|
|
119
125
|
"collectionUids",
|
|
120
|
-
|
|
121
|
-
),
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
} else if (
|
|
125
|
-
const
|
|
126
|
-
|
|
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
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
138
|
+
d
|
|
133
139
|
);
|
|
134
140
|
}
|
|
135
|
-
},
|
|
136
|
-
Ce(document, "keydown", (
|
|
137
|
-
(
|
|
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
|
|
140
|
-
|
|
141
|
-
|
|
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 (
|
|
148
|
-
|
|
149
|
-
class:
|
|
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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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
|
-
|
|
162
|
+
Fe
|
|
159
163
|
]),
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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-
|
|
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) =>
|
|
170
|
+
onClick: t[1] || (t[1] = (o) => s(G).hide())
|
|
167
171
|
}, [
|
|
168
|
-
|
|
172
|
+
c(s(C), {
|
|
169
173
|
icon: "Close",
|
|
170
174
|
size: "lg",
|
|
171
175
|
thickness: "1.75"
|
|
172
176
|
})
|
|
173
|
-
])) :
|
|
177
|
+
])) : R("", !0)
|
|
174
178
|
])
|
|
175
179
|
]),
|
|
176
|
-
|
|
177
|
-
default:
|
|
178
|
-
|
|
179
|
-
class:
|
|
180
|
-
},
|
|
181
|
-
content:
|
|
182
|
-
|
|
183
|
-
onOpenSearchModal: t[2] || (t[2] = (o) =>
|
|
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
|
-
|
|
186
|
-
class:
|
|
187
|
-
"pb-14": !
|
|
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
|
-
(
|
|
195
|
-
var
|
|
196
|
-
return
|
|
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: !
|
|
199
|
-
isDroppable:
|
|
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:
|
|
206
|
+
onOnDragEnd: Z
|
|
203
207
|
}, {
|
|
204
|
-
leftIcon:
|
|
205
|
-
|
|
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
|
-
|
|
212
|
-
class:
|
|
213
|
-
"rotate-90":
|
|
215
|
+
v("div", {
|
|
216
|
+
class: b({
|
|
217
|
+
"rotate-90": s(X)[o.uid]
|
|
214
218
|
})
|
|
215
219
|
}, [
|
|
216
|
-
|
|
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:
|
|
229
|
-
|
|
232
|
+
button: p(() => [
|
|
233
|
+
s(l).isReadOnly ? R("", !0) : (h(), O(xe, {
|
|
230
234
|
key: 0,
|
|
231
|
-
class:
|
|
232
|
-
"empty-sidebar-item":
|
|
235
|
+
class: b({
|
|
236
|
+
"empty-sidebar-item": s(A).length === 1
|
|
233
237
|
}),
|
|
234
|
-
click:
|
|
238
|
+
click: ee
|
|
235
239
|
}, {
|
|
236
|
-
title:
|
|
237
|
-
|
|
240
|
+
title: p(() => [
|
|
241
|
+
ue("Add Item")
|
|
238
242
|
]),
|
|
239
243
|
_: 1
|
|
240
244
|
}, 8, ["class"]))
|
|
241
245
|
]),
|
|
242
246
|
_: 2
|
|
243
247
|
}, [
|
|
244
|
-
|
|
248
|
+
s(l).isReadOnly ? void 0 : {
|
|
245
249
|
name: "header",
|
|
246
|
-
fn:
|
|
247
|
-
|
|
250
|
+
fn: p(() => [
|
|
251
|
+
c(s(Me))
|
|
248
252
|
]),
|
|
249
253
|
key: "0"
|
|
250
254
|
}
|
|
251
255
|
]), 1032, ["class"]), [
|
|
252
|
-
[
|
|
256
|
+
[me, f.value]
|
|
253
257
|
]),
|
|
254
|
-
|
|
258
|
+
s(w) ? (h(), O(we, {
|
|
255
259
|
key: 0,
|
|
256
|
-
class:
|
|
260
|
+
class: b(["flex-1", [f.value ? "sidebar-active-hide-layout" : ""]])
|
|
257
261
|
}, {
|
|
258
|
-
default:
|
|
259
|
-
var o,
|
|
262
|
+
default: p(() => {
|
|
263
|
+
var o, i, e, a, n;
|
|
260
264
|
return [
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
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"])) :
|
|
272
|
+
}, 8, ["class"])) : R("", !0)
|
|
269
273
|
]),
|
|
270
274
|
_: 1
|
|
271
275
|
})
|
|
272
276
|
], 2),
|
|
273
|
-
|
|
277
|
+
c(be, { modalState: s(I) }, null, 8, ["modalState"])
|
|
274
278
|
], 64));
|
|
275
279
|
}
|
|
276
280
|
});
|
|
277
281
|
export {
|
|
278
|
-
|
|
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":";
|
|
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
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-24e41ef0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|