@scalar/api-client 2.5.32 → 2.5.34

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 (235) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue2.js +120 -128
  4. package/dist/components/AddressBar/AddressBarHistory.vue.js +1 -1
  5. package/dist/components/AddressBar/AddressBarHistory.vue2.js +57 -63
  6. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  7. package/dist/components/CodeInput/CodeInput.vue2.js +143 -150
  8. package/dist/components/CodeInput/codeVariableWidget.js +70 -75
  9. package/dist/components/CommandPalette/CommandActionInput.vue.js +17 -19
  10. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +26 -27
  11. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +53 -55
  12. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +129 -133
  13. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +1 -1
  14. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +84 -98
  15. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +64 -74
  16. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +5 -11
  17. package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
  18. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +164 -183
  19. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  20. package/dist/components/DataTable/DataTableInput.vue.js +4 -4
  21. package/dist/components/DataTable/DataTableInput.vue2.js +31 -31
  22. package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -2
  23. package/dist/components/EmptyState.vue.js +1 -1
  24. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +75 -84
  25. package/dist/components/Form/LabelInput.vue.js +1 -1
  26. package/dist/components/HttpMethod/HttpMethod.vue.js +1 -1
  27. package/dist/components/HttpMethod/HttpMethod.vue2.js +11 -11
  28. package/dist/components/ImportCollection/DropEventListener.vue.js +42 -44
  29. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +22 -23
  30. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +141 -149
  31. package/dist/components/ImportCollection/ImportCollectionModal.vue3.js +1 -1
  32. package/dist/components/ImportCollection/ImportNowButton.vue.js +22 -23
  33. package/dist/components/ImportCollection/IntegrationLogo.vue.js +12 -13
  34. package/dist/components/ImportCollection/PasteEventListener.vue.js +11 -12
  35. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +69 -76
  36. package/dist/components/ImportCollection/utils/get-openapi-version.js +8 -8
  37. package/dist/components/ImportCollection/utils/import-collection.js +14 -14
  38. package/dist/components/OpenApiClientButton.vue.js +1 -1
  39. package/dist/components/OpenApiClientButton.vue2.js +10 -10
  40. package/dist/components/ScalarAsciiArt.vue.js +1 -1
  41. package/dist/components/ScalarAsciiArt.vue2.js +19 -22
  42. package/dist/components/Search/useSearch.js +51 -61
  43. package/dist/components/SectionFilter.vue.js +1 -1
  44. package/dist/components/SectionFilter.vue2.js +26 -29
  45. package/dist/components/Server/ServerDropdown.vue.js +70 -96
  46. package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
  47. package/dist/components/Server/ServerDropdownItem.vue2.js +57 -67
  48. package/dist/components/Server/ServerSelector.vue.js +44 -55
  49. package/dist/components/Server/ServerVariablesForm.vue.js +36 -42
  50. package/dist/components/Server/ServerVariablesSelect.vue.js +6 -6
  51. package/dist/components/SideNav/DownloadAppButton.vue.js +1 -1
  52. package/dist/components/SideNav/SideNav.vue.js +68 -74
  53. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
  54. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  55. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  56. package/dist/components/TopNav/TopNav.vue.js +107 -122
  57. package/dist/components/TopNav/TopNavItem.vue.js +1 -1
  58. package/dist/hooks/useFileDialog.js +12 -12
  59. package/dist/hooks/useResponseBody.js +14 -16
  60. package/dist/index.d.ts +1 -1
  61. package/dist/index.js +2 -2
  62. package/dist/layouts/App/ApiClientApp.vue.js +50 -56
  63. package/dist/layouts/App/ApiClientApp.vue3.js +1 -1
  64. package/dist/layouts/App/create-api-client-app.js +19 -20
  65. package/dist/layouts/App/index.js +1 -1
  66. package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
  67. package/dist/layouts/Modal/ApiClientModal.vue2.js +18 -21
  68. package/dist/layouts/Web/ApiClientWeb.vue.js +45 -51
  69. package/dist/layouts/Web/ApiClientWeb.vue3.js +1 -1
  70. package/dist/layouts/Web/create-api-client-web.js +19 -20
  71. package/dist/layouts/Web/index.js +1 -1
  72. package/dist/libs/create-client.js +102 -109
  73. package/dist/libs/env-helpers.js +3 -3
  74. package/dist/libs/event-bus.js +15 -15
  75. package/dist/libs/extractAttachmentFilename.js +5 -6
  76. package/dist/libs/find-request.js +9 -10
  77. package/dist/libs/get-request-uid-by-path-method.js +12 -12
  78. package/dist/libs/getOpenApiDocumentDetails.js +7 -7
  79. package/dist/libs/importers/curl.js +3 -3
  80. package/dist/libs/normalize-headers.js +9 -10
  81. package/dist/libs/postman.js +15 -17
  82. package/dist/libs/send-request/build-request-security.js +9 -10
  83. package/dist/libs/send-request/create-fetch-body.js +11 -12
  84. package/dist/libs/send-request/create-fetch-query-params.js +13 -13
  85. package/dist/libs/send-request/create-request-operation.js +83 -84
  86. package/dist/libs/send-request/decode-buffer.d.ts.map +1 -1
  87. package/dist/libs/send-request/set-request-cookies.js +12 -12
  88. package/dist/libs/string-template.js +21 -21
  89. package/dist/libs/validate-parameters.js +5 -8
  90. package/dist/plugins/plugin-manager.js +11 -17
  91. package/dist/store/active-entities.js +90 -117
  92. package/dist/store/collections.js +41 -42
  93. package/dist/store/import-spec.js +25 -26
  94. package/dist/store/request-example.js +20 -24
  95. package/dist/store/requests.js +63 -81
  96. package/dist/store/router-params.js +7 -7
  97. package/dist/store/security-schemes.js +35 -36
  98. package/dist/store/store.js +2 -2
  99. package/dist/store/tags.js +20 -21
  100. package/dist/style.css +1 -1
  101. package/dist/views/Collection/Collection.vue2.js +21 -22
  102. package/dist/views/Collection/CollectionAuthentication.vue.js +1 -1
  103. package/dist/views/Collection/CollectionAuthentication.vue2.js +43 -47
  104. package/dist/views/Collection/CollectionEnvironment.vue.js +1 -1
  105. package/dist/views/Collection/CollectionEnvironment.vue2.js +196 -207
  106. package/dist/views/Collection/CollectionInfoForm.vue.js +1 -1
  107. package/dist/views/Collection/CollectionInfoForm.vue2.js +34 -41
  108. package/dist/views/Collection/CollectionNavigation.vue.js +116 -125
  109. package/dist/views/Collection/CollectionOverview.vue2.js +22 -25
  110. package/dist/views/Collection/CollectionServerForm.vue.js +39 -45
  111. package/dist/views/Collection/CollectionServers.vue2.js +88 -98
  112. package/dist/views/Collection/CollectionSettings.vue.js +1 -1
  113. package/dist/views/Collection/CollectionSettings.vue2.js +101 -108
  114. package/dist/views/Collection/components/EnvironmentForm.vue.js +1 -1
  115. package/dist/views/Collection/components/EnvironmentForm.vue2.js +141 -145
  116. package/dist/views/Collection/components/MarkdownInput.vue.js +1 -1
  117. package/dist/views/Collection/components/MarkdownInput.vue2.js +1 -2
  118. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +15 -15
  119. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +15 -16
  120. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +61 -64
  121. package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +9 -10
  122. package/dist/views/Cookies/CookieModal.vue.js +1 -1
  123. package/dist/views/Cookies/Cookies.vue2.js +90 -93
  124. package/dist/views/Environment/Environment.vue2.js +267 -295
  125. package/dist/views/Environment/EnvironmentModal.vue.js +63 -70
  126. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -42
  127. package/dist/views/Request/Request.vue.js +1 -1
  128. package/dist/views/Request/Request.vue2.js +60 -67
  129. package/dist/views/Request/RequestRoot.vue.js +1 -1
  130. package/dist/views/Request/RequestRoot.vue2.js +78 -89
  131. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +37 -44
  132. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -45
  133. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +111 -127
  134. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  135. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +120 -139
  136. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
  137. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +97 -97
  138. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
  139. package/dist/views/Request/RequestSection/RequestBody.vue2.js +287 -310
  140. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +1 -1
  141. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +86 -94
  142. package/dist/views/Request/RequestSection/RequestParams.vue.js +37 -38
  143. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +36 -38
  144. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  145. package/dist/views/Request/RequestSection/RequestSection.vue2.js +28 -31
  146. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  147. package/dist/views/Request/RequestSection/RequestTable.vue2.js +49 -52
  148. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
  149. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +16 -16
  150. package/dist/views/Request/RequestSection/helpers/getting-started.js +7 -11
  151. package/dist/views/Request/RequestSection/helpers/update-scheme.js +7 -8
  152. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  153. package/dist/views/Request/RequestSidebar.vue2.js +199 -211
  154. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  155. package/dist/views/Request/RequestSidebarItem.vue2.js +332 -349
  156. package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
  157. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +210 -240
  158. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  159. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +38 -41
  160. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +1 -1
  161. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +58 -64
  162. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -2
  163. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
  164. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +1 -1
  165. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +20 -23
  166. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue3.js +1 -1
  167. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  168. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +29 -30
  169. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +38 -41
  170. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +3 -3
  171. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +28 -29
  172. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  173. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +128 -140
  174. package/dist/views/Request/components/WorkspaceDropdown.vue.js +116 -124
  175. package/dist/views/Request/consts/mediaTypes.js +2 -3
  176. package/dist/views/Request/handle-drag.js +24 -28
  177. package/dist/views/Request/hooks/useOpenApiWatcher.js +26 -33
  178. package/dist/views/Request/libs/auth.js +37 -43
  179. package/dist/views/Request/libs/oauth2.js +30 -32
  180. package/dist/views/Request/libs/watch-mode.js +100 -103
  181. package/dist/views/Settings/SettingsGeneral.vue.js +206 -236
  182. package/package.json +22 -22
  183. package/dist/components/AddressBar/AddressBar.vue3.js +0 -4
  184. package/dist/components/AddressBar/AddressBarHistory.vue3.js +0 -4
  185. package/dist/components/CodeInput/CodeInput.vue3.js +0 -4
  186. package/dist/components/CodeInput/CodeInput.vue4.js +0 -4
  187. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue3.js +0 -4
  188. package/dist/components/CommandPalette/TheCommandPalette.vue3.js +0 -4
  189. package/dist/components/DataTable/DataTableInput.vue3.js +0 -4
  190. package/dist/components/EmptyState.vue3.js +0 -4
  191. package/dist/components/Form/LabelInput.vue3.js +0 -4
  192. package/dist/components/HttpMethod/HttpMethod.vue3.js +0 -4
  193. package/dist/components/ImportCollection/ImportCollectionModal.vue2.js +0 -4
  194. package/dist/components/OpenApiClientButton.vue3.js +0 -4
  195. package/dist/components/ScalarAsciiArt.vue3.js +0 -4
  196. package/dist/components/SectionFilter.vue3.js +0 -4
  197. package/dist/components/Server/ServerDropdownItem.vue3.js +0 -4
  198. package/dist/components/SideNav/DownloadAppButton.vue3.js +0 -4
  199. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue3.js +0 -4
  200. package/dist/components/Sidebar/Sidebar.vue3.js +0 -4
  201. package/dist/components/Sidebar/SidebarListElement.vue3.js +0 -4
  202. package/dist/components/Sidebar/SidebarListElement.vue4.js +0 -4
  203. package/dist/components/TopNav/TopNavItem.vue3.js +0 -4
  204. package/dist/layouts/App/ApiClientApp.vue2.js +0 -4
  205. package/dist/layouts/Modal/ApiClientModal.vue3.js +0 -4
  206. package/dist/layouts/Web/ApiClientWeb.vue2.js +0 -4
  207. package/dist/style.css.js +0 -4
  208. package/dist/views/Collection/CollectionAuthentication.vue3.js +0 -4
  209. package/dist/views/Collection/CollectionEnvironment.vue3.js +0 -4
  210. package/dist/views/Collection/CollectionInfoForm.vue3.js +0 -4
  211. package/dist/views/Collection/CollectionSettings.vue3.js +0 -4
  212. package/dist/views/Collection/components/EnvironmentForm.vue3.js +0 -4
  213. package/dist/views/Collection/components/MarkdownInput.vue3.js +0 -4
  214. package/dist/views/Cookies/CookieModal.vue3.js +0 -4
  215. package/dist/views/Request/Request.vue3.js +0 -4
  216. package/dist/views/Request/RequestRoot.vue3.js +0 -4
  217. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue3.js +0 -4
  218. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue3.js +0 -4
  219. package/dist/views/Request/RequestSection/RequestBody.vue3.js +0 -4
  220. package/dist/views/Request/RequestSection/RequestCodeExample.vue3.js +0 -4
  221. package/dist/views/Request/RequestSection/RequestSection.vue3.js +0 -4
  222. package/dist/views/Request/RequestSection/RequestTable.vue3.js +0 -4
  223. package/dist/views/Request/RequestSection/RequestTableTooltip.vue3.js +0 -4
  224. package/dist/views/Request/RequestSidebar.vue3.js +0 -4
  225. package/dist/views/Request/RequestSidebarItem.vue3.js +0 -4
  226. package/dist/views/Request/RequestSidebarItem.vue4.js +0 -4
  227. package/dist/views/Request/RequestSidebarItemMenu.vue3.js +0 -4
  228. package/dist/views/Request/RequestSubpageHeader.vue3.js +0 -4
  229. package/dist/views/Request/ResponseSection/ResponseBody.vue3.js +0 -4
  230. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue3.js +0 -4
  231. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue3.js +0 -4
  232. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue2.js +0 -4
  233. package/dist/views/Request/ResponseSection/ResponseEmpty.vue3.js +0 -4
  234. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue3.js +0 -4
  235. package/dist/views/Request/ResponseSection/ResponseSection.vue3.js +0 -4
@@ -1,22 +1,22 @@
1
- import { defineComponent as ee, computed as h, ref as ne, watch as $, createBlock as g, openBlock as b, withCtx as m, createVNode as c, createCommentVNode as ae, unref as y, createElementVNode as w, toDisplayString as D, createElementBlock as j, Fragment as te, createTextVNode as H, nextTick as oe } from "vue";
2
- import { ScalarListbox as X, ScalarButton as F, ScalarIcon as C } from "@scalar/components";
3
- import { requestExampleParametersSchema as Y } from "@scalar/oas-utils/entities/spec";
4
- import { canMethodHaveBody as le } from "@scalar/oas-utils/helpers";
5
- import ie from "../../../components/CodeInput/CodeInput.vue.js";
6
- import re from "../../../components/DataTable/DataTable.vue.js";
7
- import de from "../../../components/DataTable/DataTableHeader.vue.js";
8
- import E from "../../../components/DataTable/DataTableRow.vue.js";
9
- import se from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
10
- import G from "./RequestTable.vue.js";
11
- import { useWorkspace as ue } from "../../../store/store.js";
12
- import { useFileDialog as K } from "../../../hooks/useFileDialog.js";
13
- const me = {
1
+ import { defineComponent as K, computed as v, ref as Q, watch as L, createBlock as y, openBlock as f, withCtx as d, createVNode as s, createCommentVNode as Z, unref as c, createElementVNode as g, toDisplayString as w, createElementBlock as F, Fragment as I, createTextVNode as M, nextTick as _ } from "vue";
2
+ import { ScalarListbox as W, ScalarButton as k, ScalarIcon as T } from "@scalar/components";
3
+ import { requestExampleParametersSchema as z } from "@scalar/oas-utils/entities/spec";
4
+ import { canMethodHaveBody as ee } from "@scalar/oas-utils/helpers";
5
+ import ae from "../../../components/CodeInput/CodeInput.vue.js";
6
+ import te from "../../../components/DataTable/DataTable.vue.js";
7
+ import ne from "../../../components/DataTable/DataTableHeader.vue.js";
8
+ import R from "../../../components/DataTable/DataTableRow.vue.js";
9
+ import oe from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
10
+ import J from "./RequestTable.vue.js";
11
+ import { useWorkspace as le } from "../../../store/store.js";
12
+ import { useFileDialog as A } from "../../../hooks/useFileDialog.js";
13
+ const ie = {
14
14
  key: 0,
15
15
  class: "text-c-3 flex min-h-10 w-full items-center justify-center border-t p-2 text-sm"
16
- }, ce = {
16
+ }, re = {
17
17
  key: 1,
18
18
  class: "flex items-center justify-center overflow-hidden border-t p-1.5"
19
- }, fe = { class: "text-c-2 w-full max-w-full overflow-hidden rounded border px-1.5 py-1 text-xs whitespace-nowrap" }, Ue = /* @__PURE__ */ ee({
19
+ }, de = { class: "text-c-2 w-full max-w-full overflow-hidden rounded border px-1.5 py-1 text-xs whitespace-nowrap" }, ke = /* @__PURE__ */ K({
20
20
  __name: "RequestBody",
21
21
  props: {
22
22
  example: {},
@@ -27,13 +27,13 @@ const me = {
27
27
  title: {}
28
28
  },
29
29
  setup(l) {
30
- const { requestExampleMutators: d } = ue(), Q = {
30
+ const { requestExampleMutators: i } = le(), $ = {
31
31
  json: "json",
32
32
  xml: "xml",
33
33
  yaml: "yaml",
34
34
  edn: "edn",
35
35
  other: "html"
36
- }, x = Object.entries({
36
+ }, b = Object.entries({
37
37
  multipartForm: "Multipart Form",
38
38
  formUrlEncoded: "Form URL Encoded",
39
39
  binaryFile: "Binary File",
@@ -43,402 +43,379 @@ const me = {
43
43
  edn: "EDN",
44
44
  other: "Other",
45
45
  none: "None"
46
- }).map(([e, n]) => ({
46
+ }).map(([e, a]) => ({
47
47
  id: e,
48
- label: n
49
- })), T = h(() => {
50
- var o;
51
- const { activeBody: e, formData: n, raw: a } = l.example.body;
52
- return e === "formData" ? (n == null ? void 0 : n.encoding) === "urlencoded" ? "formUrlEncoded" : "multipartForm" : e === "binary" ? "binaryFile" : e === "raw" && (a != null && a.encoding) ? a.encoding === "html" ? "other" : a.encoding : Object.keys(((o = l.operation.requestBody) == null ? void 0 : o.content) || {})[0] || "none";
53
- }), p = h({
54
- get: () => x.find(
55
- (e) => e.id === T.value
56
- ) ?? x[x.length - 1] ?? x[0],
48
+ label: a
49
+ })), B = v(() => {
50
+ const { activeBody: e, formData: a, raw: t } = l.example.body;
51
+ return e === "formData" ? a?.encoding === "urlencoded" ? "formUrlEncoded" : "multipartForm" : e === "binary" ? "binaryFile" : e === "raw" && t?.encoding ? t.encoding === "html" ? "other" : t.encoding : Object.keys(l.operation.requestBody?.content || {})[0] || "none";
52
+ }), u = v({
53
+ get: () => b.find(
54
+ (e) => e.id === B.value
55
+ ) ?? b[b.length - 1] ?? b[0],
57
56
  set: (e) => {
58
- e != null && e.id && M(e.id);
57
+ e?.id && O(e.id);
59
58
  }
60
- }), B = ne(null), Z = h(() => {
61
- var n;
62
- const e = (n = p.value) == null ? void 0 : n.id;
63
- return Q[e] ?? "plaintext";
64
- }), P = (e) => {
65
- const n = v.value;
66
- if (n.length > e) {
67
- const a = [...n];
68
- a.splice(e, 1), d.edit(
59
+ }), x = Q(null), H = v(() => {
60
+ const e = u.value?.id;
61
+ return $[e] ?? "plaintext";
62
+ }), U = (e) => {
63
+ const a = m.value;
64
+ if (a.length > e) {
65
+ const t = [...a];
66
+ t.splice(e, 1), i.edit(
69
67
  l.example.uid,
70
68
  "body.formData.value",
71
- a
69
+ t
72
70
  );
73
71
  }
74
- }, N = (e, n, a) => {
75
- var o, i, u, r, f, V, J;
76
- const t = v.value;
77
- if (t.length > e) {
78
- const s = [...t];
79
- s[e] = {
80
- ...s[e],
81
- value: ((o = s[e]) == null ? void 0 : o.value) || "",
82
- key: ((i = s[e]) == null ? void 0 : i.key) || "",
83
- enabled: ((u = s[e]) == null ? void 0 : u.enabled) ?? !1,
84
- [n]: a || ""
85
- }, (((r = s[e]) == null ? void 0 : r.key) !== "" || ((f = s[e]) == null ? void 0 : f.value) !== "") && (s[e].enabled = !0), ((V = s[e]) == null ? void 0 : V.key) === "" && ((J = s[e]) == null ? void 0 : J.value) === "" && s.splice(e, 1), d.edit(
72
+ }, j = (e, a, t) => {
73
+ const o = m.value;
74
+ if (o.length > e) {
75
+ const n = [...o];
76
+ n[e] = {
77
+ ...n[e],
78
+ value: n[e]?.value || "",
79
+ key: n[e]?.key || "",
80
+ enabled: n[e]?.enabled ?? !1,
81
+ [a]: t || ""
82
+ }, (n[e]?.key !== "" || n[e]?.value !== "") && (n[e].enabled = !0), n[e]?.key === "" && n[e]?.value === "" && n.splice(e, 1), i.edit(
86
83
  l.example.uid,
87
84
  "body.formData.value",
88
- s
85
+ n
89
86
  );
90
87
  } else {
91
- const s = [Y.parse({ [n]: a })];
92
- d.edit(l.example.uid, "body.formData.value", s), oe(() => {
93
- var A;
94
- if (!B.value)
88
+ const n = [z.parse({ [a]: t })];
89
+ i.edit(l.example.uid, "body.formData.value", n), _(() => {
90
+ if (!x.value)
95
91
  return;
96
- (A = B.value.querySelectorAll("input")[n === "key" ? 0 : 1]) == null || A.focus();
92
+ x.value.querySelectorAll("input")[a === "key" ? 0 : 1]?.focus();
97
93
  });
98
94
  }
99
- e === t.length - 1 && O();
100
- }, v = h(() => {
101
- var e;
102
- return ((e = l.example.body.formData) == null ? void 0 : e.value) ?? [];
103
- }), R = () => {
104
- const e = v.value[v.value.length - 1];
105
- (!e || e.key !== "" || e.value !== "") && O();
106
- }, O = () => {
107
- const e = Y.parse({
95
+ e === o.length - 1 && C();
96
+ }, m = v(() => l.example.body.formData?.value ?? []), D = () => {
97
+ const e = m.value[m.value.length - 1];
98
+ (!e || e.key !== "" || e.value !== "") && C();
99
+ }, C = () => {
100
+ const e = z.parse({
108
101
  enabled: !1
109
- }), n = [...v.value, e];
110
- l.example.body.formData ? d.edit(l.example.uid, "body.formData.value", n) : d.edit(l.example.uid, "body.formData", {
111
- value: n,
102
+ }), a = [...m.value, e];
103
+ l.example.body.formData ? i.edit(l.example.uid, "body.formData.value", a) : i.edit(l.example.uid, "body.formData", {
104
+ value: a,
112
105
  encoding: "form-data"
113
106
  });
114
- }, S = (e, n) => {
115
- const a = v.value;
116
- if (a.length > e) {
117
- const t = [...a];
118
- t[e] && (t[e].enabled = n), d.edit(
107
+ }, E = (e, a) => {
108
+ const t = m.value;
109
+ if (t.length > e) {
110
+ const o = [...t];
111
+ o[e] && (o[e].enabled = a), i.edit(
119
112
  l.example.uid,
120
113
  "body.formData.value",
121
- t
114
+ o
122
115
  );
123
116
  }
124
- }, q = (e) => d.edit(l.example.uid, "body.raw.value", e), L = (e) => {
125
- var n;
126
- return e === "multipartForm" ? {
127
- activeBody: "formData",
128
- encoding: "form-data",
129
- header: "multipart/form-data"
130
- } : e === "formUrlEncoded" ? {
131
- activeBody: "formData",
132
- encoding: "urlencoded",
133
- header: "application/x-www-form-urlencoded"
134
- } : e === "binaryFile" ? {
135
- activeBody: "binary",
136
- encoding: void 0,
137
- header: "application/octet-stream"
138
- } : e === "json" ? {
139
- activeBody: "raw",
140
- encoding: "json",
141
- header: Object.keys(((n = l.operation.requestBody) == null ? void 0 : n.content) ?? {}).find((o) => o.includes("json") || o.endsWith("+json")) || "application/json"
142
- } : e === "xml" ? {
143
- activeBody: "raw",
144
- encoding: "xml",
145
- header: "application/xml"
146
- } : e === "yaml" ? {
147
- activeBody: "raw",
148
- encoding: "yaml",
149
- header: "application/yaml"
150
- } : e === "edn" ? {
151
- activeBody: "raw",
152
- encoding: "edn",
153
- header: "application/edn"
154
- } : e === "other" ? {
155
- activeBody: "raw",
156
- encoding: "html",
157
- header: "application/html"
158
- } : { activeBody: "raw", encoding: void 0, header: void 0 };
159
- }, M = (e) => {
160
- var u, r;
161
- const { activeBody: n, encoding: a, header: t } = L(e);
162
- if (d.edit(l.example.uid, "body.activeBody", n), a && n === "raw")
163
- d.edit(l.example.uid, "body.raw", {
164
- encoding: a,
165
- value: ((u = l.example.body.raw) == null ? void 0 : u.value) ?? ""
117
+ }, P = (e) => i.edit(l.example.uid, "body.raw.value", e), N = (e) => e === "multipartForm" ? {
118
+ activeBody: "formData",
119
+ encoding: "form-data",
120
+ header: "multipart/form-data"
121
+ } : e === "formUrlEncoded" ? {
122
+ activeBody: "formData",
123
+ encoding: "urlencoded",
124
+ header: "application/x-www-form-urlencoded"
125
+ } : e === "binaryFile" ? {
126
+ activeBody: "binary",
127
+ encoding: void 0,
128
+ header: "application/octet-stream"
129
+ } : e === "json" ? {
130
+ activeBody: "raw",
131
+ encoding: "json",
132
+ header: Object.keys(l.operation.requestBody?.content ?? {}).find((o) => o.includes("json") || o.endsWith("+json")) || "application/json"
133
+ } : e === "xml" ? {
134
+ activeBody: "raw",
135
+ encoding: "xml",
136
+ header: "application/xml"
137
+ } : e === "yaml" ? {
138
+ activeBody: "raw",
139
+ encoding: "yaml",
140
+ header: "application/yaml"
141
+ } : e === "edn" ? {
142
+ activeBody: "raw",
143
+ encoding: "edn",
144
+ header: "application/edn"
145
+ } : e === "other" ? {
146
+ activeBody: "raw",
147
+ encoding: "html",
148
+ header: "application/html"
149
+ } : { activeBody: "raw", encoding: void 0, header: void 0 }, O = (e) => {
150
+ const { activeBody: a, encoding: t, header: o } = N(e);
151
+ if (i.edit(l.example.uid, "body.activeBody", a), t && a === "raw")
152
+ i.edit(l.example.uid, "body.raw", {
153
+ encoding: t,
154
+ value: l.example.body.raw?.value ?? ""
166
155
  });
167
- else if (a && n === "formData")
168
- d.edit(l.example.uid, "body.formData", {
169
- encoding: a,
170
- value: ((r = l.example.body.formData) == null ? void 0 : r.value) ?? []
156
+ else if (t && a === "formData")
157
+ i.edit(l.example.uid, "body.formData", {
158
+ encoding: t,
159
+ value: l.example.body.formData?.value ?? []
171
160
  });
172
- else if (!a && n !== "binary") {
173
- const { raw: f, ...V } = l.example.body;
174
- d.edit(l.example.uid, "body", V);
161
+ else if (!t && a !== "binary") {
162
+ const { raw: p, ...G } = l.example.body;
163
+ i.edit(l.example.uid, "body", G);
175
164
  }
176
- const o = [...l.example.parameters.headers], i = o.findIndex(
177
- (f) => f.key.toLowerCase() === "content-type"
165
+ const n = [...l.example.parameters.headers], r = n.findIndex(
166
+ (p) => p.key.toLowerCase() === "content-type"
178
167
  );
179
- if (i >= 0)
180
- t && o[i] ? o[i].value = t : o[i] && (n !== "raw" || e === "none") && o.splice(i, 1);
181
- else if (t) {
182
- const f = o[o.length - 1];
183
- f && f.key === "" && f.value === "" ? o.splice(o.length - 1, 0, {
168
+ if (r >= 0)
169
+ o && n[r] ? n[r].value = o : n[r] && (a !== "raw" || e === "none") && n.splice(r, 1);
170
+ else if (o) {
171
+ const p = n[n.length - 1];
172
+ p && p.key === "" && p.value === "" ? n.splice(n.length - 1, 0, {
184
173
  key: "Content-Type",
185
- value: t,
174
+ value: o,
186
175
  enabled: !0
187
- }) : o.push({
176
+ }) : n.push({
188
177
  key: "Content-Type",
189
- value: t,
178
+ value: o,
190
179
  enabled: !0
191
180
  });
192
181
  }
193
- d.edit(l.example.uid, "parameters.headers", o);
194
- }, W = async (e) => {
195
- const { open: n } = K({
196
- onChange: async (a) => {
197
- var o, i;
198
- const t = a == null ? void 0 : a[0];
199
- if (t) {
200
- const r = [...v.value];
182
+ i.edit(l.example.uid, "parameters.headers", n);
183
+ }, S = async (e) => {
184
+ const { open: a } = A({
185
+ onChange: async (t) => {
186
+ const o = t?.[0];
187
+ if (o) {
188
+ const r = [...m.value];
201
189
  r[e] = {
202
190
  ...r[e],
203
- file: t,
204
- value: ((o = r[e]) == null ? void 0 : o.value) || t.name,
205
- key: ((i = r[e]) == null ? void 0 : i.key) || t.name,
191
+ file: o,
192
+ value: r[e]?.value || o.name,
193
+ key: r[e]?.key || o.name,
206
194
  enabled: !0
207
- }, d.edit(
195
+ }, i.edit(
208
196
  l.example.uid,
209
197
  "body.formData.value",
210
198
  r
211
- ), R();
199
+ ), D();
212
200
  }
213
201
  },
214
202
  multiple: !1,
215
203
  accept: "*/*"
216
204
  });
217
- n();
218
- }, I = () => d.edit(l.example.uid, "body.binary", void 0);
219
- function z(e) {
220
- const n = v.value, a = [...n], t = n[e], o = t == null ? void 0 : t.file;
221
- n.length > 1 && (!(t != null && t.key) && !(t != null && t.value) || o && (t == null ? void 0 : t.key) === o.name && (t == null ? void 0 : t.value) === o.name) ? a.splice(e, 1) : a[e] && (a[e].file = void 0), d.edit(l.example.uid, "body.formData.value", a);
205
+ a();
206
+ }, X = () => i.edit(l.example.uid, "body.binary", void 0);
207
+ function q(e) {
208
+ const a = m.value, t = [...a], o = a[e], n = o?.file;
209
+ a.length > 1 && (!o?.key && !o?.value || n && o?.key === n.name && o?.value === n.name) ? t.splice(e, 1) : t[e] && (t[e].file = void 0), i.edit(l.example.uid, "body.formData.value", t);
222
210
  }
223
- function _() {
224
- const { open: e } = K({
225
- onChange: async (n) => {
226
- const a = n == null ? void 0 : n[0];
227
- a && d.edit(l.example.uid, "body.binary", a);
211
+ function Y() {
212
+ const { open: e } = A({
213
+ onChange: async (a) => {
214
+ const t = a?.[0];
215
+ t && i.edit(l.example.uid, "body.binary", t);
228
216
  },
229
217
  multiple: !1,
230
218
  accept: "*/*"
231
219
  });
232
220
  e();
233
221
  }
234
- $(
235
- p,
222
+ L(
223
+ u,
236
224
  (e) => {
237
- ["multipartForm", "formUrlEncoded"].includes((e == null ? void 0 : e.id) || "") && R();
225
+ ["multipartForm", "formUrlEncoded"].includes(e?.id || "") && D();
238
226
  },
239
227
  { immediate: !0 }
240
- ), $(
228
+ ), L(
241
229
  () => l.example.uid,
242
230
  () => {
243
- l.operation.method && le(l.operation.method) && M(T.value), ["multipartForm", "formUrlEncoded"].includes(
244
- T.value
245
- ) && R();
231
+ l.operation.method && ee(l.operation.method) && O(B.value), ["multipartForm", "formUrlEncoded"].includes(
232
+ B.value
233
+ ) && D();
246
234
  },
247
235
  { immediate: !0 }
248
236
  );
249
- const k = h(() => {
250
- var o, i, u;
251
- const e = (o = p.value) == null ? void 0 : o.id, { header: n } = L(e), a = ((i = l.operation.requestBody) == null ? void 0 : i.content) || {}, t = n ? ((u = a[n]) == null ? void 0 : u.examples) || {} : {};
252
- return Object.entries(t).map(([r, f]) => ({
253
- id: r,
254
- label: r,
255
- value: f
237
+ const h = v(() => {
238
+ const e = u.value?.id, { header: a } = N(e), t = l.operation.requestBody?.content || {}, o = a ? t[a]?.examples || {} : {};
239
+ return Object.entries(o).map(([n, r]) => ({
240
+ id: n,
241
+ label: n,
242
+ value: r
256
243
  }));
257
- }), U = h({
244
+ }), V = v({
258
245
  get: () => {
259
- var t;
260
- const e = ((t = l.example.body.raw) == null ? void 0 : t.value) ?? "{}", n = JSON.parse(e);
261
- return k.value.find((o) => {
262
- const i = o.value;
263
- return JSON.stringify(i.value) === JSON.stringify(n);
264
- }) ?? k.value[0];
246
+ const e = l.example.body.raw?.value ?? "{}", a = JSON.parse(e);
247
+ return h.value.find((o) => {
248
+ const n = o.value;
249
+ return JSON.stringify(n.value) === JSON.stringify(a);
250
+ }) ?? h.value[0];
265
251
  },
266
252
  set: (e) => {
267
- if (e != null && e.id) {
268
- const n = k.value.find((a) => a.id === e.id);
269
- if (n) {
270
- const a = n.value;
271
- q(JSON.stringify(a.value, null, 2));
253
+ if (e?.id) {
254
+ const a = h.value.find((t) => t.id === e.id);
255
+ if (a) {
256
+ const t = a.value;
257
+ P(JSON.stringify(t.value, null, 2));
272
258
  }
273
259
  }
274
260
  }
275
261
  });
276
- return (e, n) => (b(), g(se, null, {
277
- title: m(() => [
278
- H(D(e.title), 1)
262
+ return (e, a) => (f(), y(oe, null, {
263
+ title: d(() => [
264
+ M(w(e.title), 1)
279
265
  ]),
280
- default: m(() => [
281
- c(re, {
266
+ default: d(() => [
267
+ s(te, {
282
268
  columns: [""],
283
269
  presentational: ""
284
270
  }, {
285
- default: m(() => [
286
- c(E, null, {
287
- default: m(() => [
288
- c(de, { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between !p-0" }, {
289
- default: m(() => [
290
- c(y(X), {
291
- modelValue: p.value,
292
- "onUpdate:modelValue": n[0] || (n[0] = (a) => p.value = a),
293
- options: y(x),
271
+ default: d(() => [
272
+ s(R, null, {
273
+ default: d(() => [
274
+ s(ne, { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between !p-0" }, {
275
+ default: d(() => [
276
+ s(c(W), {
277
+ modelValue: u.value,
278
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => u.value = t),
279
+ options: c(b),
294
280
  teleport: ""
295
281
  }, {
296
- default: m(() => [
297
- c(y(F), {
282
+ default: d(() => [
283
+ s(c(k), {
298
284
  class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-3 font-normal",
299
285
  fullWidth: "",
300
286
  variant: "ghost"
301
287
  }, {
302
- default: m(() => {
303
- var a;
304
- return [
305
- w("span", null, D((a = p.value) == null ? void 0 : a.label), 1),
306
- c(y(C), {
307
- icon: "ChevronDown",
308
- size: "md"
309
- })
310
- ];
311
- }),
288
+ default: d(() => [
289
+ g("span", null, w(u.value?.label), 1),
290
+ s(c(T), {
291
+ icon: "ChevronDown",
292
+ size: "md"
293
+ })
294
+ ]),
312
295
  _: 1
313
296
  })
314
297
  ]),
315
298
  _: 1
316
299
  }, 8, ["modelValue", "options"]),
317
- k.value.length > 0 ? (b(), g(y(X), {
300
+ h.value.length > 0 ? (f(), y(c(W), {
318
301
  key: 0,
319
- modelValue: U.value,
320
- "onUpdate:modelValue": n[1] || (n[1] = (a) => U.value = a),
321
- options: k.value,
302
+ modelValue: V.value,
303
+ "onUpdate:modelValue": a[1] || (a[1] = (t) => V.value = t),
304
+ options: h.value,
322
305
  side: "left",
323
306
  teleport: ""
324
307
  }, {
325
- default: m(() => [
326
- c(y(F), {
308
+ default: d(() => [
309
+ s(c(k), {
327
310
  class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-2 font-normal",
328
311
  fullWidth: "",
329
312
  variant: "ghost"
330
313
  }, {
331
- default: m(() => {
332
- var a;
333
- return [
334
- w("span", null, D((a = U.value) == null ? void 0 : a.label), 1),
335
- c(y(C), {
336
- icon: "ChevronDown",
337
- size: "md"
338
- })
339
- ];
340
- }),
314
+ default: d(() => [
315
+ g("span", null, w(V.value?.label), 1),
316
+ s(c(T), {
317
+ icon: "ChevronDown",
318
+ size: "md"
319
+ })
320
+ ]),
341
321
  _: 1
342
322
  })
343
323
  ]),
344
324
  _: 1
345
- }, 8, ["modelValue", "options"])) : ae("", !0)
325
+ }, 8, ["modelValue", "options"])) : Z("", !0)
346
326
  ]),
347
327
  _: 1
348
328
  })
349
329
  ]),
350
330
  _: 1
351
331
  }),
352
- c(E, null, {
353
- default: m(() => {
354
- var a, t, o, i, u, r;
355
- return [
356
- ((a = p.value) == null ? void 0 : a.id) === "none" ? (b(), j("div", me, n[2] || (n[2] = [
357
- w("span", null, "No Body", -1)
358
- ]))) : ((t = p.value) == null ? void 0 : t.id) === "binaryFile" ? (b(), j("div", ce, [
359
- e.example.body.binary ? (b(), j(te, { key: 0 }, [
360
- w("span", fe, D(e.example.body.binary.name), 1),
361
- c(y(F), {
362
- class: "bg-b-2 hover:bg-b-3 text-c-2 ml-1 border-0 shadow-none",
363
- size: "sm",
364
- variant: "outlined",
365
- onClick: I
366
- }, {
367
- default: m(() => n[3] || (n[3] = [
368
- H(" Delete ")
369
- ])),
370
- _: 1,
371
- __: [3]
372
- })
373
- ], 64)) : (b(), g(y(F), {
374
- key: 1,
375
- class: "bg-b-2 hover:bg-b-3 text-c-2 border-0 shadow-none",
332
+ s(R, null, {
333
+ default: d(() => [
334
+ u.value?.id === "none" ? (f(), F("div", ie, a[2] || (a[2] = [
335
+ g("span", null, "No Body", -1)
336
+ ]))) : u.value?.id === "binaryFile" ? (f(), F("div", re, [
337
+ e.example.body.binary ? (f(), F(I, { key: 0 }, [
338
+ g("span", de, w(e.example.body.binary.name), 1),
339
+ s(c(k), {
340
+ class: "bg-b-2 hover:bg-b-3 text-c-2 ml-1 border-0 shadow-none",
376
341
  size: "sm",
377
342
  variant: "outlined",
378
- onClick: _
343
+ onClick: X
379
344
  }, {
380
- default: m(() => [
381
- n[4] || (n[4] = w("span", null, "Upload File", -1)),
382
- c(y(C), {
383
- class: "ml-1",
384
- icon: "Upload",
385
- size: "xs",
386
- thickness: "2.5"
387
- })
388
- ]),
345
+ default: d(() => a[3] || (a[3] = [
346
+ M(" Delete ")
347
+ ])),
389
348
  _: 1,
390
- __: [4]
391
- }))
392
- ])) : ((o = p.value) == null ? void 0 : o.id) == "multipartForm" ? (b(), g(G, {
393
- key: 2,
394
- ref_key: "tableWrapperRef",
395
- ref: B,
396
- class: "!m-0 rounded-t-none border-t-0 border-r-0 border-b-0 border-l-0 shadow-none",
397
- columns: ["32px", "", "", "104px"],
398
- envVariables: e.envVariables,
399
- environment: e.environment,
400
- items: v.value,
401
- showUploadButton: "",
402
- workspace: e.workspace,
403
- onDeleteRow: P,
404
- onRemoveFile: z,
405
- onToggleRow: S,
406
- onUpdateRow: N,
407
- onUploadFile: W
408
- }, null, 8, ["envVariables", "environment", "items", "workspace"])) : ((i = p.value) == null ? void 0 : i.id) == "formUrlEncoded" ? (b(), g(G, {
409
- key: 3,
410
- ref_key: "tableWrapperRef",
411
- ref: B,
412
- class: "!m-0 rounded-t-none border-t-0 border-r-0 border-b-0 border-l-0 shadow-none",
413
- columns: ["32px", "", "", "104px"],
414
- envVariables: e.envVariables,
415
- environment: e.environment,
416
- items: v.value,
417
- showUploadButton: "",
418
- workspace: e.workspace,
419
- onDeleteRow: P,
420
- onRemoveFile: z,
421
- onToggleRow: S,
422
- onUpdateRow: N,
423
- onUploadFile: W
424
- }, null, 8, ["envVariables", "environment", "items", "workspace"])) : (b(), g(ie, {
425
- key: 4,
426
- class: "border-t px-3",
427
- content: "",
428
- envVariables: e.envVariables,
429
- environment: e.environment,
430
- language: Z.value,
431
- lineNumbers: "",
432
- lint: "",
433
- modelValue: ((r = (u = e.example.body) == null ? void 0 : u.raw) == null ? void 0 : r.value) ?? "",
434
- workspace: e.workspace,
435
- "onUpdate:modelValue": q
436
- }, null, 8, ["envVariables", "environment", "language", "modelValue", "workspace"]))
437
- ];
438
- }),
349
+ __: [3]
350
+ })
351
+ ], 64)) : (f(), y(c(k), {
352
+ key: 1,
353
+ class: "bg-b-2 hover:bg-b-3 text-c-2 border-0 shadow-none",
354
+ size: "sm",
355
+ variant: "outlined",
356
+ onClick: Y
357
+ }, {
358
+ default: d(() => [
359
+ a[4] || (a[4] = g("span", null, "Upload File", -1)),
360
+ s(c(T), {
361
+ class: "ml-1",
362
+ icon: "Upload",
363
+ size: "xs",
364
+ thickness: "2.5"
365
+ })
366
+ ]),
367
+ _: 1,
368
+ __: [4]
369
+ }))
370
+ ])) : u.value?.id == "multipartForm" ? (f(), y(J, {
371
+ key: 2,
372
+ ref_key: "tableWrapperRef",
373
+ ref: x,
374
+ class: "!m-0 rounded-t-none border-t-0 border-r-0 border-b-0 border-l-0 shadow-none",
375
+ columns: ["32px", "", "", "104px"],
376
+ envVariables: e.envVariables,
377
+ environment: e.environment,
378
+ items: m.value,
379
+ showUploadButton: "",
380
+ workspace: e.workspace,
381
+ onDeleteRow: U,
382
+ onRemoveFile: q,
383
+ onToggleRow: E,
384
+ onUpdateRow: j,
385
+ onUploadFile: S
386
+ }, null, 8, ["envVariables", "environment", "items", "workspace"])) : u.value?.id == "formUrlEncoded" ? (f(), y(J, {
387
+ key: 3,
388
+ ref_key: "tableWrapperRef",
389
+ ref: x,
390
+ class: "!m-0 rounded-t-none border-t-0 border-r-0 border-b-0 border-l-0 shadow-none",
391
+ columns: ["32px", "", "", "104px"],
392
+ envVariables: e.envVariables,
393
+ environment: e.environment,
394
+ items: m.value,
395
+ showUploadButton: "",
396
+ workspace: e.workspace,
397
+ onDeleteRow: U,
398
+ onRemoveFile: q,
399
+ onToggleRow: E,
400
+ onUpdateRow: j,
401
+ onUploadFile: S
402
+ }, null, 8, ["envVariables", "environment", "items", "workspace"])) : (f(), y(ae, {
403
+ key: 4,
404
+ class: "border-t px-3",
405
+ content: "",
406
+ envVariables: e.envVariables,
407
+ environment: e.environment,
408
+ language: H.value,
409
+ lineNumbers: "",
410
+ lint: "",
411
+ modelValue: e.example.body?.raw?.value ?? "",
412
+ workspace: e.workspace,
413
+ "onUpdate:modelValue": P
414
+ }, null, 8, ["envVariables", "environment", "language", "modelValue", "workspace"]))
415
+ ]),
439
416
  _: 1
440
417
  }),
441
- c(E)
418
+ s(R)
442
419
  ]),
443
420
  _: 1
444
421
  })
@@ -448,5 +425,5 @@ const me = {
448
425
  }
449
426
  });
450
427
  export {
451
- Ue as default
428
+ ke as default
452
429
  };