@scalar/api-client 2.26.1 → 2.27.1
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 +102 -0
- package/dist/components/Server/ServerSelector.vue.js +6 -6
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +6 -6
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +48 -43
- package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +10 -10
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +29 -25
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/get-example.js +15 -15
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts +10 -0
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +4 -0
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +101 -100
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +62 -69
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +6 -6
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +36 -2
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +38 -3
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +68 -69
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +31 -40
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js +35 -41
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +37 -41
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +3 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +107 -87
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts +21 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +91 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue2.js +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +107 -93
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +87 -65
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +36 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +35 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +18 -10
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +5 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +27 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts +3 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +29 -37
- package/dist/v2/components/layout/CollapsibleSection.vue.js +1 -1
- package/dist/v2/components/modals/ModalClientContainer.vue.d.ts +2 -2
- package/dist/v2/components/modals/ModalClientContainer.vue.d.ts.map +1 -1
- package/dist/v2/components/modals/ModalClientContainer.vue.js +1 -1
- package/dist/v2/components/modals/ModalClientContainer.vue2.js +45 -42
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +25 -24
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +30 -30
- package/dist/v2/features/app/App.vue.d.ts +6 -1
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +48 -46
- package/dist/v2/features/app/app-events.d.ts +1 -1
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +95 -56
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
- package/dist/v2/features/app/components/AppSidebar.vue2.js +111 -105
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +12 -2
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +12 -10
- package/dist/v2/features/app/helpers/routes.d.ts +3 -1
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/hooks/use-theme.d.ts +42 -0
- package/dist/v2/features/app/hooks/use-theme.d.ts.map +1 -0
- package/dist/v2/features/app/hooks/use-theme.js +34 -0
- package/dist/v2/features/app/index.d.ts +0 -1
- package/dist/v2/features/app/index.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +27 -26
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +13 -12
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
- package/dist/v2/features/collection/components/Authentication.vue2.js +49 -40
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Cookies.vue.js +26 -13
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Environment.vue.js +27 -15
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Overview.vue.js +2 -2
- package/dist/v2/features/collection/components/Overview.vue2.js +68 -61
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue.js +93 -88
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Settings.vue.js +19 -17
- package/dist/v2/features/environments/EnvironmentsList.vue.js +1 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +2 -2
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +8 -8
- package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +15 -15
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +31 -34
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts +10 -7
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +183 -149
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/DocumentSettings.vue.js +88 -79
- package/dist/v2/features/settings/components/Section.vue.d.ts +2 -1
- package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/components/Section.vue.js +26 -15
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +4 -3
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -1
- package/dist/v2/features/settings/helpers/get-theme-colors.js +6 -7
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +2 -2
- package/dist/v2/helpers/index.d.ts +0 -1
- package/dist/v2/helpers/index.d.ts.map +1 -1
- package/dist/v2/hooks/use-global-hot-keys.d.ts +3 -1
- package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -1
- package/dist/v2/hooks/use-global-hot-keys.js +8 -6
- package/dist/v2/workspace-events.d.ts.map +1 -1
- package/dist/v2/workspace-events.js +10 -0
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +2 -2
- package/dist/views/Request/RequestSidebar.vue2.js +139 -155
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +104 -101
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +20 -18
- package/dist/v2/helpers/plugins.d.ts +0 -65
- package/dist/v2/helpers/plugins.d.ts.map +0 -1
- package/dist/v2/helpers/plugins.js +0 -11
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
|
|
2
|
+
import { type ClientPlugin } from '@scalar/oas-utils/helpers';
|
|
2
3
|
import { type AvailableClients } from '@scalar/types/snippetz';
|
|
3
4
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
4
5
|
import type { SelectedSecurity } from '@scalar/workspace-store/entities/auth';
|
|
@@ -10,7 +11,6 @@ import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/stric
|
|
|
10
11
|
import type { ClientLayout } from '../../../hooks/index.js';
|
|
11
12
|
import type { ExtendedScalarCookie } from '../../../v2/blocks/request-block/RequestBlock.vue.js';
|
|
12
13
|
import type { MergedSecuritySchemes } from '../../../v2/blocks/scalar-auth-selector-block/helpers/merge-security.js';
|
|
13
|
-
import { type ClientPlugin } from '../../../v2/helpers/plugins.js';
|
|
14
14
|
/**
|
|
15
15
|
* OperationBlock
|
|
16
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"names":[],"mappings":"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"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { AVAILABLE_CLIENTS as
|
|
3
|
-
import { useToasts as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { ERRORS as
|
|
7
|
-
import { buildRequest as
|
|
8
|
-
import { getSecuritySchemes as
|
|
9
|
-
import { harToFetchRequest as
|
|
10
|
-
import { harToFetchResponse as
|
|
11
|
-
import { sendRequest as
|
|
12
|
-
import
|
|
13
|
-
import { generateClientOptions as
|
|
14
|
-
import { getSecurityRequirements as
|
|
15
|
-
import { getSelectedSecurity as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
const
|
|
1
|
+
import { defineComponent as K, computed as a, ref as c, onMounted as O, onBeforeUnmount as g, watch as V, createElementBlock as w, openBlock as T, createElementVNode as I, createVNode as l, withCtx as x, unref as B } from "vue";
|
|
2
|
+
import { AVAILABLE_CLIENTS as M } from "@scalar/types/snippetz";
|
|
3
|
+
import { useToasts as A } from "@scalar/use-toasts";
|
|
4
|
+
import L from "../../../components/ViewLayout/ViewLayout.vue.js";
|
|
5
|
+
import N from "../../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
6
|
+
import { ERRORS as P } from "../../../libs/errors.js";
|
|
7
|
+
import { buildRequest as H } from "./helpers/build-request.js";
|
|
8
|
+
import { getSecuritySchemes as F } from "./helpers/build-request-security.js";
|
|
9
|
+
import { harToFetchRequest as $ } from "./helpers/har-to-fetch-request.js";
|
|
10
|
+
import { harToFetchResponse as j } from "./helpers/har-to-fetch-response.js";
|
|
11
|
+
import { sendRequest as D } from "./helpers/send-request.js";
|
|
12
|
+
import Q from "./components/Header.vue.js";
|
|
13
|
+
import { generateClientOptions as z } from "../operation-code-sample/helpers/generate-client-options.js";
|
|
14
|
+
import { getSecurityRequirements as G } from "../../features/operation/helpers/get-security-requirements.js";
|
|
15
|
+
import { getSelectedSecurity as J } from "../../features/operation/helpers/get-selected-security.js";
|
|
16
|
+
import W from "../request-block/RequestBlock.vue.js";
|
|
17
|
+
import X from "../response-block/ResponseBlock.vue.js";
|
|
18
|
+
const Y = { class: "bg-b-1 flex h-full flex-col" }, Z = { class: "lg:min-h-header flex w-full flex-wrap items-center justify-center p-2 lg:p-0" }, p = {
|
|
19
19
|
name: "OperationBlock"
|
|
20
|
-
},
|
|
21
|
-
...
|
|
20
|
+
}, fe = /* @__PURE__ */ K({
|
|
21
|
+
...p,
|
|
22
22
|
props: {
|
|
23
23
|
eventBus: {},
|
|
24
24
|
documentSecurity: {},
|
|
@@ -27,7 +27,7 @@ const X = { class: "bg-b-1 flex h-full flex-col" }, Y = { class: "lg:min-h-heade
|
|
|
27
27
|
globalCookies: { default: () => [] },
|
|
28
28
|
path: {},
|
|
29
29
|
method: {},
|
|
30
|
-
httpClients: { default: () =>
|
|
30
|
+
httpClients: { default: () => M },
|
|
31
31
|
history: { default: () => [] },
|
|
32
32
|
layout: {},
|
|
33
33
|
server: {},
|
|
@@ -51,19 +51,19 @@ const X = { class: "bg-b-1 flex h-full flex-col" }, Y = { class: "lg:min-h-heade
|
|
|
51
51
|
},
|
|
52
52
|
emits: ["update:servers"],
|
|
53
53
|
setup(e, { emit: q }) {
|
|
54
|
-
const R = q, C = a(() =>
|
|
55
|
-
() =>
|
|
54
|
+
const R = q, C = a(() => z(e.httpClients)), d = a(
|
|
55
|
+
() => G(e.documentSecurity, e.operation.security)
|
|
56
56
|
), h = a(
|
|
57
|
-
() =>
|
|
57
|
+
() => J(
|
|
58
58
|
e.documentSelectedSecurity,
|
|
59
59
|
e.operationSelectedSecurity,
|
|
60
60
|
d.value,
|
|
61
61
|
e.setOperationSecurity
|
|
62
62
|
)
|
|
63
63
|
), v = a(
|
|
64
|
-
() =>
|
|
65
|
-
), { toast: y } =
|
|
66
|
-
const [t, n] =
|
|
64
|
+
() => F(e.securitySchemes, h.value.selectedSchemes)
|
|
65
|
+
), { toast: y } = A(), f = c(null), i = c(null), u = c(null), s = () => f.value?.abort(P.REQUEST_ABORTED), m = async () => {
|
|
66
|
+
const [t, n] = H({
|
|
67
67
|
environment: e.environment,
|
|
68
68
|
exampleKey: e.exampleKey,
|
|
69
69
|
globalCookies: e.globalCookies,
|
|
@@ -85,7 +85,7 @@ const X = { class: "bg-b-1 flex h-full flex-col" }, Y = { class: "lg:min-h-heade
|
|
|
85
85
|
exampleKey: e.exampleKey
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
|
-
const [o, r] = await
|
|
88
|
+
const [o, r] = await D({
|
|
89
89
|
isUsingProxy: n.isUsingProxy,
|
|
90
90
|
operation: e.operation,
|
|
91
91
|
plugins: e.plugins,
|
|
@@ -109,7 +109,7 @@ const X = { class: "bg-b-1 flex h-full flex-col" }, Y = { class: "lg:min-h-heade
|
|
|
109
109
|
}
|
|
110
110
|
i.value = r.response, u.value = r.request;
|
|
111
111
|
};
|
|
112
|
-
|
|
112
|
+
O(() => {
|
|
113
113
|
e.eventBus.on("operation:send:request:hotkey", m), e.eventBus.on("operation:cancel:request", s);
|
|
114
114
|
}), g(() => {
|
|
115
115
|
e.eventBus.off("operation:send:request:hotkey", m), e.eventBus.off("operation:cancel:request", s);
|
|
@@ -125,19 +125,24 @@ const X = { class: "bg-b-1 flex h-full flex-col" }, Y = { class: "lg:min-h-heade
|
|
|
125
125
|
const n = (e.history.length ?? 0) - t - 1, o = e.history[n];
|
|
126
126
|
if (!o)
|
|
127
127
|
return;
|
|
128
|
-
const r = () => e.eventBus.emit("ui:
|
|
128
|
+
const r = () => e.eventBus.emit("ui:navigate", {
|
|
129
|
+
page: "example",
|
|
130
|
+
method: e.method,
|
|
131
|
+
path: e.path,
|
|
129
132
|
exampleName: "draft",
|
|
130
|
-
callback:
|
|
131
|
-
|
|
133
|
+
callback: (E) => {
|
|
134
|
+
if (E !== "success")
|
|
135
|
+
return;
|
|
136
|
+
const U = j({
|
|
132
137
|
harResponse: o.response,
|
|
133
138
|
url: o.request.url,
|
|
134
139
|
method: e.method,
|
|
135
140
|
path: e.path,
|
|
136
141
|
duration: o.time
|
|
137
|
-
}),
|
|
142
|
+
}), b = $({
|
|
138
143
|
harRequest: o.request
|
|
139
144
|
});
|
|
140
|
-
i.value =
|
|
145
|
+
i.value = U, u.value = b;
|
|
141
146
|
}
|
|
142
147
|
});
|
|
143
148
|
e.eventBus.emit("operation:reload:history", {
|
|
@@ -149,13 +154,13 @@ const X = { class: "bg-b-1 flex h-full flex-col" }, Y = { class: "lg:min-h-heade
|
|
|
149
154
|
callback: r
|
|
150
155
|
});
|
|
151
156
|
};
|
|
152
|
-
return
|
|
157
|
+
return V([() => e.path, () => e.method, () => e.exampleKey], () => {
|
|
153
158
|
i.value = null, u.value = null, s();
|
|
154
159
|
}), g(() => {
|
|
155
160
|
s();
|
|
156
|
-
}), (t, n) => (
|
|
157
|
-
|
|
158
|
-
l(
|
|
161
|
+
}), (t, n) => (T(), w("div", Y, [
|
|
162
|
+
I("div", Z, [
|
|
163
|
+
l(Q, {
|
|
159
164
|
activeEnvironment: e.activeEnvironment,
|
|
160
165
|
documentUrl: e.documentUrl,
|
|
161
166
|
environment: e.environment,
|
|
@@ -175,11 +180,11 @@ const X = { class: "bg-b-1 flex h-full flex-col" }, Y = { class: "lg:min-h-heade
|
|
|
175
180
|
"onUpdate:servers": n[0] || (n[0] = (o) => R("update:servers"))
|
|
176
181
|
}, null, 8, ["activeEnvironment", "documentUrl", "environment", "environments", "eventBus", "hideClientButton", "history", "integration", "layout", "method", "path", "server", "servers", "source"])
|
|
177
182
|
]),
|
|
178
|
-
l(
|
|
183
|
+
l(L, { class: "border-t" }, {
|
|
179
184
|
default: x(() => [
|
|
180
|
-
l(
|
|
185
|
+
l(N, { class: "flex-1" }, {
|
|
181
186
|
default: x(() => [
|
|
182
|
-
l(B(
|
|
187
|
+
l(B(W), {
|
|
183
188
|
authMeta: e.authMeta,
|
|
184
189
|
clientOptions: C.value,
|
|
185
190
|
environment: e.environment,
|
|
@@ -199,7 +204,7 @@ const X = { class: "bg-b-1 flex h-full flex-col" }, Y = { class: "lg:min-h-heade
|
|
|
199
204
|
selectedSecuritySchemes: v.value,
|
|
200
205
|
server: e.server
|
|
201
206
|
}, null, 8, ["authMeta", "clientOptions", "environment", "eventBus", "exampleKey", "globalCookies", "layout", "method", "operation", "path", "plugins", "proxyUrl", "securityRequirements", "securitySchemes", "selectedClient", "selectedSecurity", "selectedSecuritySchemes", "server"]),
|
|
202
|
-
l(B(
|
|
207
|
+
l(B(X), {
|
|
203
208
|
appVersion: e.appVersion,
|
|
204
209
|
eventBus: e.eventBus,
|
|
205
210
|
layout: e.layout,
|
|
@@ -218,5 +223,5 @@ const X = { class: "bg-b-1 flex h-full flex-col" }, Y = { class: "lg:min-h-heade
|
|
|
218
223
|
}
|
|
219
224
|
});
|
|
220
225
|
export {
|
|
221
|
-
|
|
226
|
+
fe as default
|
|
222
227
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Header.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7b4b0249"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, createElementBlock as s, openBlock as o, createElementVNode as i, createVNode as
|
|
1
|
+
import { defineComponent as g, createElementBlock as s, openBlock as o, createElementVNode as i, createVNode as a, unref as l, createBlock as v, createCommentVNode as m } from "vue";
|
|
2
2
|
import { ScalarIcon as d } from "@scalar/components";
|
|
3
3
|
import x from "../../scalar-address-bar-block/components/EnvironmentSelector.vue.js";
|
|
4
4
|
import B from "../../scalar-address-bar-block/components/AddressBar.vue.js";
|
|
@@ -23,16 +23,16 @@ const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap i
|
|
|
23
23
|
},
|
|
24
24
|
emits: ["execute", "update:servers", "select:history:item", "add:environment"],
|
|
25
25
|
setup(e, { emit: c }) {
|
|
26
|
-
const r = c, f = (
|
|
27
|
-
e.eventBus.emit("workspace:update:active-environment",
|
|
26
|
+
const r = c, f = (u) => {
|
|
27
|
+
e.eventBus.emit("workspace:update:active-environment", u);
|
|
28
28
|
}, y = () => {
|
|
29
|
-
e.eventBus.emit("ui:
|
|
29
|
+
e.eventBus.emit("ui:navigate", { page: "workspace", path: "environment" });
|
|
30
30
|
};
|
|
31
|
-
return (
|
|
31
|
+
return (u, t) => (o(), s("div", b, [
|
|
32
32
|
t[8] || (t[8] = i("div", { class: "mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1" }, [
|
|
33
33
|
i("div", { class: "size-8" })
|
|
34
34
|
], -1)),
|
|
35
|
-
|
|
35
|
+
a(l(B), {
|
|
36
36
|
activeEnvironment: e.activeEnvironment,
|
|
37
37
|
environment: e.environment,
|
|
38
38
|
environments: e.environments,
|
|
@@ -49,14 +49,14 @@ const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap i
|
|
|
49
49
|
"onUpdate:servers": t[3] || (t[3] = (n) => r("update:servers"))
|
|
50
50
|
}, null, 8, ["activeEnvironment", "environment", "environments", "eventBus", "history", "layout", "method", "path", "server", "servers"]),
|
|
51
51
|
i("div", C, [
|
|
52
|
-
e.layout !== "modal" ? (o(),
|
|
52
|
+
e.layout !== "modal" ? (o(), v(x, {
|
|
53
53
|
key: 0,
|
|
54
54
|
activeEnvironment: e.activeEnvironment,
|
|
55
55
|
environments: e.environments,
|
|
56
56
|
"onAdd:environment": y,
|
|
57
57
|
"onSelect:environment": f
|
|
58
58
|
}, null, 8, ["activeEnvironment", "environments"])) : m("", !0),
|
|
59
|
-
e.layout === "modal" && e.documentUrl && !e.hideClientButton ? (o(),
|
|
59
|
+
e.layout === "modal" && e.documentUrl && !e.hideClientButton ? (o(), v(l(k), {
|
|
60
60
|
key: 1,
|
|
61
61
|
buttonSource: "modal",
|
|
62
62
|
class: "!w-fit lg:-mr-1",
|
|
@@ -70,7 +70,7 @@ const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap i
|
|
|
70
70
|
type: "button",
|
|
71
71
|
onClick: t[4] || (t[4] = (n) => e.eventBus.emit("ui:close:client-modal"))
|
|
72
72
|
}, [
|
|
73
|
-
|
|
73
|
+
a(l(d), {
|
|
74
74
|
icon: "Close",
|
|
75
75
|
size: "lg",
|
|
76
76
|
thickness: "2"
|
|
@@ -83,7 +83,7 @@ const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap i
|
|
|
83
83
|
type: "button",
|
|
84
84
|
onClick: t[5] || (t[5] = (n) => e.eventBus.emit("ui:close:client-modal"))
|
|
85
85
|
}, [
|
|
86
|
-
|
|
86
|
+
a(l(d), {
|
|
87
87
|
icon: "Close",
|
|
88
88
|
size: "md",
|
|
89
89
|
thickness: "1.75"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-request-body.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request-body.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAA;
|
|
1
|
+
{"version":3,"file":"build-request-body.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request-body.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAA;AAKjG;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC3B,aAAa,iBAAiB,GAAG,SAAS;AAC1C,8DAA8D;AAC9D,MAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;AAChC,qCAAqC;AACrC,mBAAsB,KACrB,QAAQ,GAAG,IAgFb,CAAA"}
|
|
@@ -1,35 +1,39 @@
|
|
|
1
|
-
import { replaceEnvVariables as
|
|
2
|
-
import { unpackProxyObject as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { replaceEnvVariables as l } from "@scalar/helpers/regex/replace-variables";
|
|
2
|
+
import { unpackProxyObject as s } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
3
|
+
import { getSelectedBodyContentType as m } from "./get-selected-body-content-type.js";
|
|
4
|
+
import { getExampleFromBody as d } from "../../request-block/helpers/get-request-body-example.js";
|
|
5
|
+
const v = (p, a = {}, u = "default") => {
|
|
6
|
+
if (!p)
|
|
6
7
|
return null;
|
|
7
|
-
const
|
|
8
|
+
const o = m(p, u);
|
|
9
|
+
if (!o)
|
|
10
|
+
return null;
|
|
11
|
+
const e = d(p, o, u);
|
|
8
12
|
if (!e)
|
|
9
13
|
return null;
|
|
10
|
-
if ((
|
|
11
|
-
const
|
|
12
|
-
return
|
|
13
|
-
if (!
|
|
14
|
+
if ((o === "multipart/form-data" || o === "application/x-www-form-urlencoded") && Array.isArray(e.value)) {
|
|
15
|
+
const i = e.value.filter((r) => !r.isDisabled), t = o === "multipart/form-data" ? new FormData() : new URLSearchParams();
|
|
16
|
+
return i.forEach(({ name: r, value: n }) => {
|
|
17
|
+
if (!r)
|
|
14
18
|
return;
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
} else typeof
|
|
20
|
-
}),
|
|
19
|
+
const f = l(r, a);
|
|
20
|
+
if (n instanceof File && t instanceof FormData) {
|
|
21
|
+
const c = s(n);
|
|
22
|
+
t.append(f, c, c.name);
|
|
23
|
+
} else typeof n == "string" && t.append(f, l(n, a));
|
|
24
|
+
}), t;
|
|
21
25
|
}
|
|
22
|
-
if (
|
|
23
|
-
const
|
|
24
|
-
for (const [
|
|
25
|
-
if (
|
|
26
|
-
const
|
|
27
|
-
|
|
26
|
+
if (o === "application/x-www-form-urlencoded" && e.value !== null && typeof e.value == "object" && !Array.isArray(e.value)) {
|
|
27
|
+
const i = new URLSearchParams();
|
|
28
|
+
for (const [t, r] of Object.entries(e.value))
|
|
29
|
+
if (t && r !== void 0 && r !== null) {
|
|
30
|
+
const n = l(t, a), f = typeof r == "string" ? r : String(r);
|
|
31
|
+
i.append(n, l(f, a));
|
|
28
32
|
}
|
|
29
|
-
return
|
|
33
|
+
return i;
|
|
30
34
|
}
|
|
31
|
-
return typeof e.value == "object" ?
|
|
35
|
+
return typeof e.value == "object" ? l(JSON.stringify(e.value), a) : typeof e.value == "string" ? l(e.value, a) : e.value;
|
|
32
36
|
};
|
|
33
37
|
export {
|
|
34
|
-
|
|
38
|
+
v as buildRequestBody
|
|
35
39
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-example.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/get-example.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,eAAe,EACf,iBAAiB,EAClB,MAAM,8DAA8D,CAAA;
|
|
1
|
+
{"version":3,"file":"get-example.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/get-example.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,eAAe,EACf,iBAAiB,EAClB,MAAM,8DAA8D,CAAA;AAgCrE;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GACrB,OAAO,eAAe,GAAG,iBAAiB,GAAG,eAAe,EAC5D,YAAY,MAAM,GAAG,SAAS,EAC9B,aAAa,MAAM,GAAG,SAAS,KAC9B,aAAa,GAAG,SA6ClB,CAAA"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { getResolvedRefDeep as
|
|
2
|
-
const r = (t, n,
|
|
1
|
+
import { getResolvedRefDeep as u } from "../../operation-code-sample/helpers/get-resolved-ref-deep.js";
|
|
2
|
+
const r = (t, n, s) => {
|
|
3
3
|
if (!t && !n)
|
|
4
4
|
return;
|
|
5
|
-
const
|
|
6
|
-
if (
|
|
7
|
-
return
|
|
8
|
-
if (!o && n !== void 0)
|
|
9
|
-
return { value:
|
|
10
|
-
},
|
|
5
|
+
const o = !!t && Object.keys(t).length > 0, e = s || Object.keys(t ?? {})[0] || "", i = u(t?.[e]);
|
|
6
|
+
if (i !== void 0)
|
|
7
|
+
return i;
|
|
8
|
+
if ((!o || !s) && n !== void 0)
|
|
9
|
+
return { value: u(n) };
|
|
10
|
+
}, l = (t, n, s) => {
|
|
11
11
|
if ("content" in t) {
|
|
12
|
-
const e = t.content?.[
|
|
13
|
-
if (
|
|
14
|
-
return
|
|
12
|
+
const e = t.content?.[s ?? Object.keys(t.content)[0] ?? ""], i = r(e?.examples, e?.example, n);
|
|
13
|
+
if (i !== void 0)
|
|
14
|
+
return i;
|
|
15
15
|
}
|
|
16
16
|
if ("examples" in t || "example" in t) {
|
|
17
17
|
const e = r(t.examples, t.example, n);
|
|
18
18
|
if (e !== void 0)
|
|
19
19
|
return e;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
if ("schema" in
|
|
23
|
-
const e =
|
|
21
|
+
const o = u(t);
|
|
22
|
+
if ("schema" in o && o.schema) {
|
|
23
|
+
const e = o.schema;
|
|
24
24
|
if ("default" in e && e.default !== void 0)
|
|
25
25
|
return { value: e.default };
|
|
26
26
|
if ("enum" in e && e.enum?.[0] !== void 0)
|
|
@@ -32,5 +32,5 @@ const r = (t, n, o) => {
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
l as getExample
|
|
36
36
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RequestBodyObject } from '@scalar/workspace-store/schemas/v3.1/strict/request-body';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the selected body content type for the given request body and exampleKey.
|
|
4
|
+
* Priority:
|
|
5
|
+
* 1. requestBody?.['x-scalar-selected-content-type']?.[exampleKey] (if set)
|
|
6
|
+
* 2. First key in requestBody?.content (if available)
|
|
7
|
+
* 3. null (if none available)
|
|
8
|
+
*/
|
|
9
|
+
export declare const getSelectedBodyContentType: (requestBody: RequestBodyObject | undefined, exampleKey?: string) => string | null;
|
|
10
|
+
//# sourceMappingURL=get-selected-body-content-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-selected-body-content-type.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/get-selected-body-content-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAA;AAEjG;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GACrC,aAAa,iBAAiB,GAAG,SAAS,EAC1C,aAAY,MAAkB,KAC7B,MAAM,GAAG,IAIX,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
|
+
import { type ClientPlugin } from '@scalar/oas-utils/helpers';
|
|
2
3
|
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
4
|
import { type ErrorResponse } from '../../../../libs/errors.js';
|
|
4
|
-
import { type ClientPlugin } from '../../../../v2/helpers/plugins.js';
|
|
5
5
|
/** A single set of populated values for a sent request */
|
|
6
6
|
export type ResponseInstance = Omit<Response, 'headers'> & {
|
|
7
7
|
/** Store headers as an object to match what we had with axios */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-request.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/send-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"send-request.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/send-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,2BAA2B,CAAA;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAEnG,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,eAAe,CAAA;AAM1E,0DAA0D;AAC1D,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG;IACzD,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,wCAAwC;IACxC,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAC1B,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAA;IAChB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,0BAA0B;IAC1B,MAAM,EAAE,UAAU,CAAA;IAClB,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAA;CACb,GAAG,CACE;IACE,wBAAwB;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAA;CACb,GACD;IACE,qDAAqD;IACrD,MAAM,EAAE,2BAA2B,CAAC,UAAU,CAAC,CAAA;CAChD,CACJ,CAAA;AAKH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,GAAU,gDAK/B;IACD,YAAY,EAAE,OAAO,CAAA;IACrB,SAAS,EAAE,eAAe,CAAA;IAC1B,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,OAAO,EAAE,OAAO,CAAA;CACjB,KAAG,OAAO,CACT,aAAa,CAAC;IACZ,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB,EAAE,QAAQ,CAAA;CAC3B,CAAC,CA0DH,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { httpStatusCodes as S } from "@scalar/helpers/http/http-status-codes";
|
|
2
|
+
import { executeHook as f } from "@scalar/oas-utils/helpers";
|
|
2
3
|
import { normalizeError as b, ERRORS as q } from "../../../../libs/errors.js";
|
|
3
4
|
import { normalizeHeaders as x } from "../../../../libs/normalize-headers.js";
|
|
4
|
-
import { executeHook as f } from "../../../helpers/plugins.js";
|
|
5
5
|
import { decodeBuffer as D } from "./decode-buffer.js";
|
|
6
6
|
import { getCookieHeaderKeys as T } from "./get-cookie-header-keys.js";
|
|
7
7
|
const E = [204, 205, 304], v = async ({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
|
+
import type { ClientPlugin } from '@scalar/oas-utils/helpers';
|
|
2
3
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
3
4
|
import type { SelectedSecurity } from '@scalar/workspace-store/entities/auth';
|
|
4
5
|
import type { AuthMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
@@ -9,7 +10,6 @@ import type { ClientLayout } from '../../../hooks/index.js';
|
|
|
9
10
|
import type { ClientOptionGroup } from '../../../v2/blocks/operation-code-sample/index.js';
|
|
10
11
|
import { type MergedSecuritySchemes } from '../../../v2/blocks/scalar-auth-selector-block/index.js';
|
|
11
12
|
import type { SecuritySchemeObjectSecret } from '../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
12
|
-
import type { ClientPlugin } from '../../../v2/helpers/plugins.js';
|
|
13
13
|
export type ExtendedScalarCookie = XScalarCookie & {
|
|
14
14
|
location: 'document' | 'workspace';
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"AAqjBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,EAEV,QAAQ,EACR,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AAGvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAU1E,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAA;AAW7G,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IACjD,QAAQ,EAAE,UAAU,GAAG,WAAW,CAAA;CACnC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,QAAQ,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,oBAAoB,EAAE,CAAA;IACrC,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,qBAAqB,CAAA;IACtC,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,uBAAuB,EAAE,0BAA0B,EAAE,CAAA;IACrD,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;CAC5B,CAAC;AAorBF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBlock.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b1bbc64b"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|