@scalar/api-client 2.5.31 → 2.5.33

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 +33 -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 +1 -1
  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,255 +1,230 @@
1
- import { defineComponent as ve, ref as k, computed as fe, watch as B, onMounted as pe, onBeforeUnmount as be, createBlock as _, openBlock as f, withCtx as c, createVNode as u, createTextVNode as L, createElementVNode as b, createElementBlock as O, unref as l, Fragment as K, renderList as G, withDirectives as xe, normalizeClass as J, toDisplayString as T, createCommentVNode as H, withModifiers as he, vShow as Ee, createSlots as Ce } from "vue";
2
- import { useModal as j, ScalarIcon as q, ScalarButton as ke, ScalarModal as ge } from "@scalar/components";
3
- import { LibraryIcon as ye } from "@scalar/icons/library";
4
- import { useToasts as _e } from "@scalar/use-toasts";
5
- import { useRouter as we, useRoute as Me } from "vue-router";
6
- import De from "../../components/CodeInput/CodeInput.vue.js";
7
- import Ie from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
8
- import Se from "../../components/Sidebar/Sidebar.vue.js";
9
- import $e from "../../components/Sidebar/SidebarButton.vue.js";
10
- import Ve from "../../components/Sidebar/SidebarList.vue.js";
11
- import P from "../../components/Sidebar/SidebarListElement.vue.js";
12
- import Oe from "../../components/ViewLayout/ViewLayout.vue.js";
13
- import je from "../../components/ViewLayout/ViewLayoutContent.vue.js";
14
- import Fe from "../../components/ViewLayout/ViewLayoutSection.vue.js";
15
- import { useSidebar as Ne } from "../../hooks/useSidebar.js";
16
- import { PathId as i } from "../../routes.js";
17
- import { useActiveEntities as Re } from "../../store/active-entities.js";
18
- import We from "./EnvironmentColorModal.vue.js";
19
- import Ue from "./EnvironmentModal.vue.js";
20
- import { environmentDragHandlerFactory as ze } from "./handle-drag.js";
21
- import { useWorkspace as Ae } from "../../store/store.js";
22
- const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-[14px] items-center justify-center" }, vn = /* @__PURE__ */ ve({
1
+ import { defineComponent as ve, ref as C, computed as de, watch as A, onMounted as fe, onBeforeUnmount as pe, createBlock as y, openBlock as d, withCtx as u, createVNode as s, createTextVNode as B, createElementVNode as p, createElementBlock as V, unref as a, Fragment as L, renderList as K, withDirectives as be, normalizeClass as G, toDisplayString as J, createCommentVNode as T, withModifiers as xe, vShow as he, createSlots as Ee } from "vue";
2
+ import { useModal as O, ScalarIcon as H, ScalarButton as Ce, ScalarModal as ke } from "@scalar/components";
3
+ import { LibraryIcon as ge } from "@scalar/icons/library";
4
+ import { useToasts as ye } from "@scalar/use-toasts";
5
+ import { useRouter as _e, useRoute as we } from "vue-router";
6
+ import Me from "../../components/CodeInput/CodeInput.vue.js";
7
+ import De from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
8
+ import Ie from "../../components/Sidebar/Sidebar.vue.js";
9
+ import Se from "../../components/Sidebar/SidebarButton.vue.js";
10
+ import $e from "../../components/Sidebar/SidebarList.vue.js";
11
+ import q from "../../components/Sidebar/SidebarListElement.vue.js";
12
+ import Ve from "../../components/ViewLayout/ViewLayout.vue.js";
13
+ import Oe from "../../components/ViewLayout/ViewLayoutContent.vue.js";
14
+ import je from "../../components/ViewLayout/ViewLayoutSection.vue.js";
15
+ import { useSidebar as Fe } from "../../hooks/useSidebar.js";
16
+ import { PathId as l } from "../../routes.js";
17
+ import { useActiveEntities as Ne } from "../../store/active-entities.js";
18
+ import Re from "./EnvironmentColorModal.vue.js";
19
+ import We from "./EnvironmentModal.vue.js";
20
+ import { environmentDragHandlerFactory as Ue } from "./handle-drag.js";
21
+ import { useWorkspace as ze } from "../../store/store.js";
22
+ const Ae = { class: "flex-1" }, Be = ["onClick"], Le = { class: "flex h-5 max-w-[14px] items-center justify-center" }, vn = /* @__PURE__ */ ve({
23
23
  __name: "Environment",
24
- setup(Ge) {
25
- const g = we(), x = Me(), {
26
- activeWorkspace: p,
27
- activeEnvironment: F,
28
- activeWorkspaceCollections: d,
29
- activeEnvVariables: Q
30
- } = Re(), { events: N, workspaceMutators: X, collectionMutators: h } = Ae(), { collapsedSidebarFolders: y, toggleSidebarFolder: w } = Ne(), M = j(), D = j(), I = j(), R = k(null), s = k("default"), W = k(""), E = k(void 0), v = k(void 0), S = k(void 0), { toast: U } = _e(), Y = (e) => JSON.parse(e);
31
- function z(e, o, n) {
32
- var t;
33
- e && (o.uid === n ? U(
34
- `Environment name already used in ${(t = o.info) == null ? void 0 : t.title}`,
24
+ setup(Ke) {
25
+ const k = _e(), b = we(), {
26
+ activeWorkspace: f,
27
+ activeEnvironment: j,
28
+ activeWorkspaceCollections: c,
29
+ activeEnvVariables: P
30
+ } = Ne(), { events: F, workspaceMutators: Q, collectionMutators: x } = ze(), { collapsedSidebarFolders: g, toggleSidebarFolder: _ } = Fe(), w = O(), M = O(), D = O(), N = C(null), r = C("default"), R = C(""), h = C(void 0), m = C(void 0), I = C(void 0), { toast: W } = ye(), X = (e) => JSON.parse(e);
31
+ function U(e, t, n) {
32
+ e && (t.uid === n ? W(
33
+ `Environment name already used in ${t.info?.title}`,
35
34
  "error"
36
- ) : U("Environment name already used in another collection", "error"));
35
+ ) : W("Environment name already used in another collection", "error"));
37
36
  }
38
- const C = fe(() => d.value.filter(
39
- (e) => {
40
- var o;
41
- return ((o = e.info) == null ? void 0 : o.title) !== "Drafts";
42
- }
37
+ const E = de(() => c.value.filter(
38
+ (e) => e.info?.title !== "Drafts"
43
39
  ));
44
- function Z(e) {
45
- C.value.some(
40
+ function Y(e) {
41
+ E.value.some(
46
42
  (n) => {
47
- const t = Object.keys(
43
+ const o = Object.keys(
48
44
  n["x-scalar-environments"] || {}
49
45
  ).includes(e.name);
50
- return z(t, n, e.collectionId), t;
46
+ return U(o, n, e.collectionId), o;
51
47
  }
52
- ) || (e.collectionId && (h.addEnvironment(
48
+ ) || (e.collectionId && (x.addEnvironment(
53
49
  e.name,
54
50
  {
55
51
  variables: {},
56
52
  color: e.color
57
53
  },
58
54
  e.collectionId
59
- ), y[e.collectionId] || w(e.collectionId), g.push({
55
+ ), g[e.collectionId] || _(e.collectionId), k.push({
60
56
  name: "environment.collection",
61
57
  params: {
62
- [i.Collection]: e.collectionId,
63
- [i.Environment]: e.name
58
+ [l.Collection]: e.collectionId,
59
+ [l.Environment]: e.name
64
60
  }
65
- })), D.hide());
61
+ })), M.hide());
66
62
  }
67
- function ee(e) {
68
- var n, t;
69
- if (!F)
63
+ function Z(e) {
64
+ if (!j)
70
65
  return;
71
- const o = Y(e);
72
- if (s.value === "default")
73
- X.edit(
74
- (n = p.value) == null ? void 0 : n.uid,
66
+ const t = X(e);
67
+ if (r.value === "default")
68
+ Q.edit(
69
+ f.value?.uid,
75
70
  "environments",
76
- o
71
+ t
77
72
  );
78
73
  else {
79
- const a = d.value.find(
80
- (r) => {
81
- var m;
82
- return (m = r["x-scalar-environments"]) == null ? void 0 : m[s.value ?? ""];
83
- }
74
+ const n = c.value.find(
75
+ (o) => o["x-scalar-environments"]?.[r.value ?? ""]
84
76
  );
85
- if ((t = a == null ? void 0 : a["x-scalar-environments"]) != null && t[s.value ?? ""]) {
86
- const r = a["x-scalar-environments"][s.value ?? ""];
87
- r && (r.variables = o, h.edit(
88
- a.uid,
77
+ if (n?.["x-scalar-environments"]?.[r.value ?? ""]) {
78
+ const o = n["x-scalar-environments"][r.value ?? ""];
79
+ o && (o.variables = t, x.edit(
80
+ n.uid,
89
81
  "x-scalar-environments",
90
- a["x-scalar-environments"]
82
+ n["x-scalar-environments"]
91
83
  ));
92
84
  }
93
85
  }
94
86
  }
95
- const $ = (e) => {
96
- E.value = e, D.show();
97
- }, ne = (e, o) => {
98
- v.value = e, E.value = o, S.value = e, I.show();
87
+ const S = (e) => {
88
+ h.value = e, M.show();
89
+ }, ee = (e, t) => {
90
+ m.value = e, h.value = t, I.value = e, D.show();
91
+ }, ne = (e) => {
92
+ N.value = e, R.value = c.value.find(
93
+ (t) => t["x-scalar-environments"]?.[e]
94
+ )?.["x-scalar-environments"]?.[e]?.color ?? "", w.show();
99
95
  }, te = (e) => {
100
- var o, n, t;
101
- R.value = e, W.value = ((t = (n = (o = d.value.find(
102
- (a) => {
103
- var r;
104
- return (r = a["x-scalar-environments"]) == null ? void 0 : r[e];
105
- }
106
- )) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[e]) == null ? void 0 : t.color) ?? "", M.show();
107
- }, oe = (e) => {
108
- const o = R.value;
109
- typeof o == "string" && (d.value.some(
110
- (t) => {
111
- var a;
112
- return (a = t["x-scalar-environments"]) == null ? void 0 : a[o];
113
- }
114
- ) && d.value.forEach((t) => {
115
- var a;
116
- (a = t["x-scalar-environments"]) != null && a[o] && (t["x-scalar-environments"][o].color = e, h.edit(
117
- t.uid,
96
+ const t = N.value;
97
+ typeof t == "string" && (c.value.some(
98
+ (o) => o["x-scalar-environments"]?.[t]
99
+ ) && c.value.forEach((o) => {
100
+ o["x-scalar-environments"]?.[t] && (o["x-scalar-environments"][t].color = e, x.edit(
101
+ o.uid,
118
102
  "x-scalar-environments",
119
- t["x-scalar-environments"]
103
+ o["x-scalar-environments"]
120
104
  ));
121
- }), M.hide());
105
+ }), w.hide());
122
106
  };
123
- function ae(e) {
124
- var n;
125
- C.value.forEach((t) => {
126
- h.removeEnvironment(e, t.uid);
107
+ function oe(e) {
108
+ E.value.forEach((n) => {
109
+ x.removeEnvironment(e, n.uid);
127
110
  });
128
- const o = C.value.flatMap(
129
- (t) => Object.keys(t["x-scalar-environments"] || {})
111
+ const t = E.value.flatMap(
112
+ (n) => Object.keys(n["x-scalar-environments"] || {})
130
113
  );
131
- if (o.length > 0) {
132
- const t = o[o.length - 1];
133
- if (!t)
114
+ if (t.length > 0) {
115
+ const n = t[t.length - 1];
116
+ if (!n)
134
117
  return;
135
- const a = d.value.find(
136
- (r) => Object.keys(r["x-scalar-environments"] || {}).includes(
137
- t
118
+ const o = c.value.find(
119
+ (i) => Object.keys(i["x-scalar-environments"] || {}).includes(
120
+ n
138
121
  )
139
122
  );
140
- s.value = t, g.push({
123
+ r.value = n, k.push({
141
124
  name: "environment.collection",
142
125
  params: {
143
- [i.Collection]: a == null ? void 0 : a.uid,
144
- [i.Environment]: t
126
+ [l.Collection]: o?.uid,
127
+ [l.Environment]: n
145
128
  }
146
- }), a && !y[a.uid] && w(a.uid);
129
+ }), o && !g[o.uid] && _(o.uid);
147
130
  } else
148
- s.value = "default", g.push({
131
+ r.value = "default", k.push({
149
132
  name: "environment.default",
150
133
  params: {
151
- [i.Workspace]: (n = p.value) == null ? void 0 : n.uid
134
+ [l.Workspace]: f.value?.uid
152
135
  }
153
136
  });
154
137
  }
155
- const re = () => s.value === "default" ? "Global Environment" : s.value, le = () => {
156
- var e, o, n, t;
157
- return s.value === "default" ? JSON.stringify((e = p.value) == null ? void 0 : e.environments, null, 2) : JSON.stringify(
158
- (t = (n = (o = d.value.find(
159
- (a) => {
160
- var r;
161
- return (r = a["x-scalar-environments"]) == null ? void 0 : r[s.value ?? ""];
162
- }
163
- )) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[s.value ?? ""]) == null ? void 0 : t.variables,
164
- null,
165
- 2
166
- );
167
- }, se = (e) => y[e], A = (e) => {
168
- e != null && e.createNew && x.name === "environment" && $();
138
+ const ae = () => r.value === "default" ? "Global Environment" : r.value, re = () => r.value === "default" ? JSON.stringify(f.value?.environments, null, 2) : JSON.stringify(
139
+ c.value.find(
140
+ (e) => e["x-scalar-environments"]?.[r.value ?? ""]
141
+ )?.["x-scalar-environments"]?.[r.value ?? ""]?.variables,
142
+ null,
143
+ 2
144
+ ), le = (e) => g[e], z = (e) => {
145
+ e?.createNew && b.name === "environment" && S();
169
146
  };
170
- B(
171
- () => [x.params[i.Collection], x.params[i.Environment]],
172
- ([e, o]) => {
173
- e ? s.value = o : s.value = "default";
147
+ A(
148
+ () => [b.params[l.Collection], b.params[l.Environment]],
149
+ ([e, t]) => {
150
+ e ? r.value = t : r.value = "default";
174
151
  }
175
- ), pe(() => {
176
- s.value = x.params[i.Environment] || "default", N.hotKeys.on(A);
177
- const e = x.params[i.Collection];
178
- e && !y[e] && w(e);
179
- }), be(() => N.hotKeys.off(A));
180
- const ie = (e, o, n) => {
181
- var a, r;
182
- const t = n ? {
152
+ ), fe(() => {
153
+ r.value = b.params[l.Environment] || "default", F.hotKeys.on(z);
154
+ const e = b.params[l.Collection];
155
+ e && !g[e] && _(e);
156
+ }), pe(() => F.hotKeys.off(z));
157
+ const ie = (e, t, n) => {
158
+ const o = n ? {
183
159
  name: "environment.collection",
184
160
  params: {
185
- [i.Workspace]: (a = p.value) == null ? void 0 : a.uid,
186
- [i.Collection]: n,
187
- [i.Environment]: o
161
+ [l.Workspace]: f.value?.uid,
162
+ [l.Collection]: n,
163
+ [l.Environment]: t
188
164
  }
189
165
  } : {
190
166
  name: "environment.default",
191
167
  params: {
192
- [i.Workspace]: (r = p.value) == null ? void 0 : r.uid,
193
- [i.Environment]: o
168
+ [l.Workspace]: f.value?.uid,
169
+ [l.Environment]: t
194
170
  }
195
171
  };
196
- e.metaKey ? window.open(g.resolve(t).href, "_blank") : g.push(t);
172
+ e.metaKey ? window.open(k.resolve(o).href, "_blank") : k.push(o);
197
173
  };
198
- function ue() {
199
- v.value = void 0, E.value = void 0, S.value = void 0, I.hide();
174
+ function se() {
175
+ m.value = void 0, h.value = void 0, I.value = void 0, D.hide();
200
176
  }
201
- function me(e) {
202
- C.value.some(
177
+ function ue(e) {
178
+ E.value.some(
203
179
  (n) => {
204
- const t = Object.keys(
180
+ const o = Object.keys(
205
181
  n["x-scalar-environments"] || {}
206
182
  ).includes(e);
207
- return z(
208
- t,
183
+ return U(
184
+ o,
209
185
  n,
210
- E.value
211
- ), t;
186
+ h.value
187
+ ), o;
212
188
  }
213
- ) || (e && v.value !== "default" && d.value.forEach((n) => {
214
- var t;
215
- if ((t = n["x-scalar-environments"]) != null && t[v.value ?? ""]) {
216
- const a = n["x-scalar-environments"], r = {};
217
- Object.keys(a).forEach((m) => {
218
- const V = a[m];
219
- V && (m === v.value ? r[e] = V : r[m] = V);
220
- }), n["x-scalar-environments"] = r, h.edit(
189
+ ) || (e && m.value !== "default" && c.value.forEach((n) => {
190
+ if (n["x-scalar-environments"]?.[m.value ?? ""]) {
191
+ const o = n["x-scalar-environments"], i = {};
192
+ Object.keys(o).forEach((v) => {
193
+ const $ = o[v];
194
+ $ && (v === m.value ? i[e] = $ : i[v] = $);
195
+ }), n["x-scalar-environments"] = i, x.edit(
221
196
  n.uid,
222
197
  "x-scalar-environments",
223
198
  n["x-scalar-environments"]
224
199
  );
225
200
  }
226
- }), e && s.value === v.value && (s.value = e), v.value = void 0, E.value = void 0, S.value = void 0, I.hide());
201
+ }), e && r.value === m.value && (r.value = e), m.value = void 0, h.value = void 0, I.value = void 0, D.hide());
227
202
  }
228
- const { handleDragEnd: ce, isDroppable: de } = ze(
229
- d,
230
- h
203
+ const { handleDragEnd: ce, isDroppable: me } = Ue(
204
+ c,
205
+ x
231
206
  );
232
- return B(
233
- () => x.query.openEnvironmentModal,
207
+ return A(
208
+ () => b.query.openEnvironmentModal,
234
209
  (e) => {
235
- e === "true" && $();
210
+ e === "true" && S();
236
211
  },
237
212
  { immediate: !0 }
238
- ), (e, o) => (f(), _(Oe, null, {
239
- default: c(() => [
240
- u(Se, { title: "Collections" }, {
241
- content: c(() => [
242
- b("div", Be, [
243
- u(Ve, null, {
244
- default: c(() => [
245
- (f(), _(P, {
213
+ ), (e, t) => (d(), y(Ve, null, {
214
+ default: u(() => [
215
+ s(Ie, { title: "Collections" }, {
216
+ content: u(() => [
217
+ p("div", Ae, [
218
+ s($e, null, {
219
+ default: u(() => [
220
+ (d(), y(q, {
246
221
  key: "default",
247
222
  class: "text-xs",
248
223
  isCopyable: !1,
249
224
  to: {
250
225
  name: "environment",
251
226
  params: {
252
- [l(i).Environment]: "default"
227
+ [a(l).Environment]: "default"
253
228
  }
254
229
  },
255
230
  type: "environment",
@@ -260,133 +235,130 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
260
235
  isDefault: !0
261
236
  }
262
237
  }, null, 8, ["to"])),
263
- (f(!0), O(K, null, G(C.value, (n) => {
264
- var t;
265
- return f(), O("li", {
266
- key: n.uid,
267
- class: "gap-1/2 flex flex-col"
238
+ (d(!0), V(L, null, K(E.value, (n) => (d(), V("li", {
239
+ key: n.uid,
240
+ class: "gap-1/2 flex flex-col"
241
+ }, [
242
+ p("button", {
243
+ class: "hover:bg-b-2 group flex w-full items-center gap-1.5 rounded p-1.5 text-left text-sm font-medium break-words",
244
+ type: "button",
245
+ onClick: (o) => a(_)(n.uid)
246
+ }, [
247
+ p("span", Le, [
248
+ s(a(ge), {
249
+ class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
250
+ src: n["x-scalar-icon"] || "interface-content-folder"
251
+ }, null, 8, ["src"]),
252
+ p("div", {
253
+ class: G({
254
+ "rotate-90": a(g)[n.uid]
255
+ })
256
+ }, [
257
+ s(a(H), {
258
+ class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
259
+ icon: "ChevronRight",
260
+ size: "md"
261
+ })
262
+ ], 2)
263
+ ]),
264
+ B(" " + J(n.info?.title ?? ""), 1)
265
+ ], 8, Be),
266
+ be(p("div", {
267
+ class: G({
268
+ "before:bg-border relative mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-3 before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full": Object.keys(n["x-scalar-environments"] || {}).length > 0
269
+ })
268
270
  }, [
269
- b("button", {
270
- class: "hover:bg-b-2 group flex w-full items-center gap-1.5 rounded p-1.5 text-left text-sm font-medium break-words",
271
- type: "button",
272
- onClick: (a) => l(w)(n.uid)
273
- }, [
274
- b("span", Ke, [
275
- u(l(ye), {
276
- class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
277
- src: n["x-scalar-icon"] || "interface-content-folder"
278
- }, null, 8, ["src"]),
279
- b("div", {
280
- class: J({
281
- "rotate-90": l(y)[n.uid]
282
- })
283
- }, [
284
- u(l(q), {
285
- class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
286
- icon: "ChevronRight",
287
- size: "md"
288
- })
289
- ], 2)
271
+ (d(!0), V(L, null, K(n["x-scalar-environments"], (o, i) => (d(), y(q, {
272
+ key: i,
273
+ class: "text-xs",
274
+ collectionId: n.uid,
275
+ isCopyable: !1,
276
+ isDeletable: !0,
277
+ isRenameable: !0,
278
+ isDraggable: !0,
279
+ isDroppable: a(me),
280
+ to: {
281
+ name: "environment.collection",
282
+ params: {
283
+ [a(l).Collection]: n.uid,
284
+ [a(l).Environment]: i
285
+ }
286
+ },
287
+ type: "environment",
288
+ variable: {
289
+ name: i,
290
+ uid: i,
291
+ color: o.color ?? "#FFFFFF",
292
+ isDefault: !1
293
+ },
294
+ warningMessage: "Are you sure you want to delete this environment?",
295
+ onClick: xe((v) => ie(v, i, n.uid), ["prevent"]),
296
+ onColorModal: (v) => ne(i),
297
+ onDelete: (v) => oe(i),
298
+ onRename: (v) => ee(i, n.uid),
299
+ onOnDragEnd: a(ce)
300
+ }, null, 8, ["collectionId", "isDroppable", "to", "variable", "onClick", "onColorModal", "onDelete", "onRename", "onOnDragEnd"]))), 128)),
301
+ Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (d(), y(a(Ce), {
302
+ key: 0,
303
+ class: "text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 pl-6 text-xs",
304
+ variant: "ghost",
305
+ onClick: (o) => S(n.uid)
306
+ }, {
307
+ default: u(() => [
308
+ s(a(H), {
309
+ icon: "Add",
310
+ size: "sm"
311
+ }),
312
+ t[2] || (t[2] = p("span", null, "Add Environment", -1))
290
313
  ]),
291
- L(" " + T(((t = n.info) == null ? void 0 : t.title) ?? ""), 1)
292
- ], 8, Le),
293
- xe(b("div", {
294
- class: J({
295
- "before:bg-border relative mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-3 before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full": Object.keys(n["x-scalar-environments"] || {}).length > 0
296
- })
297
- }, [
298
- (f(!0), O(K, null, G(n["x-scalar-environments"], (a, r) => (f(), _(P, {
299
- key: r,
300
- class: "text-xs",
301
- collectionId: n.uid,
302
- isCopyable: !1,
303
- isDeletable: !0,
304
- isRenameable: !0,
305
- isDraggable: !0,
306
- isDroppable: l(de),
307
- to: {
308
- name: "environment.collection",
309
- params: {
310
- [l(i).Collection]: n.uid,
311
- [l(i).Environment]: r
312
- }
313
- },
314
- type: "environment",
315
- variable: {
316
- name: r,
317
- uid: r,
318
- color: a.color ?? "#FFFFFF",
319
- isDefault: !1
320
- },
321
- warningMessage: "Are you sure you want to delete this environment?",
322
- onClick: he((m) => ie(m, r, n.uid), ["prevent"]),
323
- onColorModal: (m) => te(r),
324
- onDelete: (m) => ae(r),
325
- onRename: (m) => ne(r, n.uid),
326
- onOnDragEnd: l(ce)
327
- }, null, 8, ["collectionId", "isDroppable", "to", "variable", "onClick", "onColorModal", "onDelete", "onRename", "onOnDragEnd"]))), 128)),
328
- Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (f(), _(l(ke), {
329
- key: 0,
330
- class: "text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 pl-6 text-xs",
331
- variant: "ghost",
332
- onClick: (a) => $(n.uid)
333
- }, {
334
- default: c(() => [
335
- u(l(q), {
336
- icon: "Add",
337
- size: "sm"
338
- }),
339
- o[2] || (o[2] = b("span", null, "Add Environment", -1))
340
- ]),
341
- _: 2,
342
- __: [2]
343
- }, 1032, ["onClick"])) : H("", !0)
344
- ], 2), [
345
- [Ee, se(n.uid)]
346
- ])
347
- ]);
348
- }), 128))
314
+ _: 2,
315
+ __: [2]
316
+ }, 1032, ["onClick"])) : T("", !0)
317
+ ], 2), [
318
+ [he, le(n.uid)]
319
+ ])
320
+ ]))), 128))
349
321
  ]),
350
322
  _: 1
351
323
  })
352
324
  ])
353
325
  ]),
354
- button: c(() => [
355
- u($e, {
356
- click: $,
326
+ button: u(() => [
327
+ s(Se, {
328
+ click: S,
357
329
  hotkey: "N"
358
330
  }, {
359
- title: c(() => o[3] || (o[3] = [
360
- L(" Add Environment ")
331
+ title: u(() => t[3] || (t[3] = [
332
+ B(" Add Environment ")
361
333
  ])),
362
334
  _: 1
363
335
  })
364
336
  ]),
365
337
  _: 1
366
338
  }),
367
- u(je, { class: "flex-1" }, {
368
- default: c(() => [
369
- u(Fe, null, Ce({
370
- default: c(() => [
371
- s.value && l(p) ? (f(), _(De, {
339
+ s(Oe, { class: "flex-1" }, {
340
+ default: u(() => [
341
+ s(je, null, Ee({
342
+ default: u(() => [
343
+ r.value && a(f) ? (d(), y(Me, {
372
344
  key: 0,
373
345
  class: "py-2 pr-2 pl-px md:px-4",
374
- envVariables: l(Q),
375
- environment: l(F),
346
+ envVariables: a(P),
347
+ environment: a(j),
376
348
  language: "json",
377
349
  lineNumbers: "",
378
350
  lint: "",
379
- modelValue: le(),
380
- workspace: l(p),
381
- "onUpdate:modelValue": ee
382
- }, null, 8, ["envVariables", "environment", "modelValue", "workspace"])) : H("", !0)
351
+ modelValue: re(),
352
+ workspace: a(f),
353
+ "onUpdate:modelValue": Z
354
+ }, null, 8, ["envVariables", "environment", "modelValue", "workspace"])) : T("", !0)
383
355
  ]),
384
356
  _: 2
385
357
  }, [
386
- s.value ? {
358
+ r.value ? {
387
359
  name: "title",
388
- fn: c(() => [
389
- b("span", null, T(re()), 1)
360
+ fn: u(() => [
361
+ p("span", null, J(ae()), 1)
390
362
  ]),
391
363
  key: "0"
392
364
  } : void 0
@@ -394,29 +366,29 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
394
366
  ]),
395
367
  _: 1
396
368
  }),
397
- u(We, {
398
- selectedColor: W.value,
399
- state: l(M),
400
- onCancel: o[0] || (o[0] = (n) => l(M).hide()),
401
- onSubmit: oe
369
+ s(Re, {
370
+ selectedColor: R.value,
371
+ state: a(w),
372
+ onCancel: t[0] || (t[0] = (n) => a(w).hide()),
373
+ onSubmit: te
402
374
  }, null, 8, ["selectedColor", "state"]),
403
- u(Ue, {
404
- activeWorkspaceCollections: C.value,
405
- collectionId: E.value,
406
- state: l(D),
407
- onCancel: o[1] || (o[1] = (n) => l(D).hide()),
408
- onSubmit: Z
375
+ s(We, {
376
+ activeWorkspaceCollections: E.value,
377
+ collectionId: h.value,
378
+ state: a(M),
379
+ onCancel: t[1] || (t[1] = (n) => a(M).hide()),
380
+ onSubmit: Y
409
381
  }, null, 8, ["activeWorkspaceCollections", "collectionId", "state"]),
410
- u(l(ge), {
382
+ s(a(ke), {
411
383
  size: "xxs",
412
- state: l(I),
413
- title: `Edit ${v.value}`
384
+ state: a(D),
385
+ title: `Edit ${m.value}`
414
386
  }, {
415
- default: c(() => [
416
- u(Ie, {
417
- name: S.value ?? "",
418
- onClose: ue,
419
- onEdit: me
387
+ default: u(() => [
388
+ s(De, {
389
+ name: I.value ?? "",
390
+ onClose: se,
391
+ onEdit: ue
420
392
  }, null, 8, ["name"])
421
393
  ]),
422
394
  _: 1