@scalar/api-client 2.1.45 → 2.1.47

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 (192) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +66 -58
  5. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  6. package/dist/components/AddressBar/AddressBarHistory.vue2.js +8 -8
  7. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  8. package/dist/components/AddressBar/AddressBarServer.vue.js +40 -39
  9. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  10. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  11. package/dist/components/CodeInput/CodeInput.vue2.js +7 -7
  12. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  13. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +32 -26
  14. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
  15. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +14 -9
  16. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  17. package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
  18. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +15 -10
  19. package/dist/components/ContextBar.vue.d.ts +1 -1
  20. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  21. package/dist/components/ContextBar.vue.js +2 -2
  22. package/dist/components/ContextBar.vue2.js +30 -19
  23. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  24. package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
  25. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  26. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  27. package/dist/components/DataTable/DataTableInput.vue2.js +10 -10
  28. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  29. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +23 -18
  30. package/dist/components/Form/Form.vue.js +15 -15
  31. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  32. package/dist/components/ImportCollection/DropEventListener.vue.d.ts +2 -2
  33. package/dist/components/ImportCollection/DropEventListener.vue.js +6 -6
  34. package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -1
  35. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +22 -21
  36. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +1 -0
  37. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  38. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +87 -74
  39. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
  40. package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -13
  41. package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +2 -2
  42. package/dist/components/ImportCollection/PasteEventListener.vue.js +5 -5
  43. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +2 -2
  44. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +1 -1
  45. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +10 -5
  46. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  47. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +43 -33
  48. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -0
  49. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  50. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +31 -21
  51. package/dist/components/Search/useSearch.d.ts +2 -0
  52. package/dist/components/Search/useSearch.d.ts.map +1 -1
  53. package/dist/components/Search/useSearch.js +25 -24
  54. package/dist/components/SideNav/DownloadAppButton.vue.d.ts +3 -0
  55. package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -0
  56. package/dist/components/SideNav/DownloadAppButton.vue.js +7 -0
  57. package/dist/components/SideNav/DownloadAppButton.vue2.js +33 -0
  58. package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
  59. package/dist/components/SideNav/SideHelp.vue.js +55 -53
  60. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  61. package/dist/components/SideNav/SideNav.vue.js +82 -5
  62. package/dist/components/SideNav/SideNav.vue2.js +2 -72
  63. package/dist/components/{SubpageHeader.vue.d.ts → SideNav/SideNavGroup.vue.d.ts} +3 -3
  64. package/dist/components/SideNav/SideNavGroup.vue.d.ts.map +1 -0
  65. package/dist/components/SideNav/SideNavGroup.vue.js +16 -0
  66. package/dist/components/SideNav/SideNavGroup.vue2.js +4 -0
  67. package/dist/components/SideNav/SideNavLink.vue.d.ts +5 -5
  68. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  69. package/dist/components/SideNav/SideNavLink.vue.js +31 -34
  70. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +25 -0
  71. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -0
  72. package/dist/components/SideNav/SideNavRouterLink.vue.js +29 -0
  73. package/dist/components/SideNav/SideNavRouterLink.vue2.js +4 -0
  74. package/dist/components/Sidebar/SidebarButton.vue.d.ts +1 -4
  75. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  76. package/dist/components/Sidebar/SidebarButton.vue.js +17 -17
  77. package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
  78. package/dist/components/Sidebar/SidebarToggle.vue.js +16 -15
  79. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  80. package/dist/components/TopNav/TopNav.vue.js +2 -2
  81. package/dist/components/TopNav/TopNav.vue2.js +14 -14
  82. package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
  83. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  84. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +31 -31
  85. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  86. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +13 -21
  87. package/dist/hooks/index.d.ts +2 -1
  88. package/dist/hooks/index.d.ts.map +1 -1
  89. package/dist/hooks/index.js +6 -4
  90. package/dist/hooks/useLayout.d.ts +13 -0
  91. package/dist/hooks/useLayout.d.ts.map +1 -0
  92. package/dist/hooks/useLayout.js +7 -0
  93. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  94. package/dist/layouts/App/ApiClientApp.vue.js +37 -37
  95. package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
  96. package/dist/layouts/App/MainLayout.vue.js +21 -13
  97. package/dist/layouts/App/create-api-client-app.d.ts +28 -28
  98. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  99. package/dist/layouts/App/create-api-client-app.js +10 -8
  100. package/dist/layouts/Modal/ApiClientModal.vue.d.ts +3 -1
  101. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  102. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  103. package/dist/layouts/Modal/ApiClientModal.vue2.js +37 -25
  104. package/dist/layouts/Modal/create-api-client-modal.d.ts +56 -56
  105. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  106. package/dist/layouts/Modal/create-api-client-modal.js +8 -7
  107. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
  108. package/dist/layouts/Web/ApiClientWeb.vue.js +30 -30
  109. package/dist/layouts/Web/create-api-client-web.d.ts +28 -28
  110. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  111. package/dist/layouts/Web/create-api-client-web.js +9 -7
  112. package/dist/libs/create-client.d.ts +35 -29
  113. package/dist/libs/create-client.d.ts.map +1 -1
  114. package/dist/libs/create-client.js +55 -42
  115. package/dist/libs/hot-keys.d.ts +1 -1
  116. package/dist/router.d.ts +4 -41
  117. package/dist/router.d.ts.map +1 -1
  118. package/dist/router.js +18 -149
  119. package/dist/routes.d.ts +150 -0
  120. package/dist/routes.d.ts.map +1 -0
  121. package/dist/routes.js +182 -0
  122. package/dist/store/collections.d.ts +4 -4
  123. package/dist/store/cookies.d.ts +4 -4
  124. package/dist/store/request-example.d.ts +4 -4
  125. package/dist/store/requests.d.ts +4 -4
  126. package/dist/store/router-params.js +1 -1
  127. package/dist/store/security-schemes.d.ts +4 -4
  128. package/dist/store/store.d.ts +56 -56
  129. package/dist/store/store.d.ts.map +1 -1
  130. package/dist/store/store.js +90 -90
  131. package/dist/store/tags.d.ts +4 -4
  132. package/dist/store/workspace.d.ts +4 -4
  133. package/dist/style.css +1 -1
  134. package/dist/views/Cookies/CookieRaw.vue.js +10 -10
  135. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  136. package/dist/views/Cookies/Cookies.vue2.js +52 -53
  137. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  138. package/dist/views/Environment/Environment.vue2.js +79 -80
  139. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  140. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +20 -15
  141. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  142. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +146 -108
  143. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  144. package/dist/views/Request/RequestSection/RequestParams.vue.js +53 -52
  145. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  146. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  147. package/dist/views/Request/RequestSection/RequestSection.vue2.js +102 -97
  148. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
  149. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  150. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  151. package/dist/views/Request/RequestSection/RequestTable.vue2.js +44 -40
  152. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  153. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  154. package/dist/views/Request/RequestSidebar.vue2.js +152 -134
  155. package/dist/views/Request/RequestSidebarItem.vue.d.ts +2 -2
  156. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  157. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  158. package/dist/views/Request/RequestSidebarItem.vue2.js +129 -115
  159. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +6 -6
  160. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  161. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  162. package/dist/views/Request/RequestSubpageHeader.vue2.js +36 -34
  163. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  164. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
  165. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
  166. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +13 -10
  167. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
  168. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
  169. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +0 -2
  170. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
  171. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -8
  172. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  173. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +3 -3
  174. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +32 -33
  175. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
  176. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +61 -55
  177. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  178. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +32 -25
  179. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  180. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  181. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +102 -70
  182. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  183. package/dist/views/Request/components/WorkspaceDropdown.vue.js +60 -50
  184. package/dist/views/Request/types/sidebar-item.d.ts +2 -1
  185. package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
  186. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  187. package/dist/views/Servers/Servers.vue2.js +12 -7
  188. package/package.json +10 -8
  189. package/dist/components/SubpageHeader.vue.d.ts.map +0 -1
  190. package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +0 -4
  191. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +0 -7
  192. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +0 -1
@@ -1,17 +1,17 @@
1
- import { defineComponent as i, openBlock as r, createBlock as n, withCtx as m, createElementVNode as a, unref as e, createCommentVNode as l } from "vue";
2
- import s from "../../components/CodeInput/CodeInput.vue.js";
3
- import u from "../../components/ViewLayout/ViewLayoutSection.vue.js";
1
+ import { defineComponent as m, openBlock as r, createBlock as n, withCtx as p, createElementVNode as a, unref as e, createCommentVNode as l } from "vue";
2
+ import u from "../../components/CodeInput/CodeInput.vue.js";
3
+ import s from "../../components/ViewLayout/ViewLayoutSection.vue.js";
4
4
  import { useWorkspace as c } from "../../store/store.js";
5
- const w = /* @__PURE__ */ i({
5
+ const w = /* @__PURE__ */ m({
6
6
  __name: "CookieRaw",
7
- setup(f) {
8
- const { cookies: p, activeCookieId: o } = c();
9
- return (d, t) => (r(), n(u, null, {
10
- title: m(() => t[0] || (t[0] = [
7
+ setup(d) {
8
+ const { cookies: i, activeCookieId: o } = c();
9
+ return (f, t) => (r(), n(s, null, {
10
+ title: p(() => t[0] || (t[0] = [
11
11
  a("span", null, "Raw Cookie String", -1)
12
12
  ])),
13
- default: m(() => [
14
- e(o) && e(p)[e(o)] ? (r(), n(s, {
13
+ default: p(() => [
14
+ e(o) && e(i)[e(o)] ? (r(), n(u, {
15
15
  key: 0,
16
16
  class: "pl-px pr-2 md:px-2 py-2.5",
17
17
  lineNumbers: "",
@@ -1 +1 @@
1
- {"version":3,"file":"Cookies.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/Cookies.vue"],"names":[],"mappings":";AA8gBA,wBAMG"}
1
+ {"version":3,"file":"Cookies.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/Cookies.vue"],"names":[],"mappings":";AA0gBA,wBAMG"}
@@ -1,22 +1,22 @@
1
- import { defineComponent as D, inject as M, computed as R, onMounted as F, onBeforeUnmount as K, openBlock as l, createBlock as j, withCtx as a, createVNode as s, unref as n, createElementVNode as f, createElementBlock as m, Fragment as _, renderList as x, normalizeClass as O, createTextVNode as k, toDisplayString as $, withDirectives as E, vShow as N } from "vue";
2
- import A from "../../components/Sidebar/SidebarButton.vue.js";
3
- import H from "../../components/Sidebar/SidebarList.vue.js";
4
- import I from "../../components/Sidebar/SidebarListElement.vue.js";
5
- import P from "../../components/ViewLayout/ViewLayout.vue.js";
6
- import T from "../../components/ViewLayout/ViewLayoutContent.vue.js";
1
+ import { defineComponent as B, computed as D, onMounted as M, onBeforeUnmount as R, openBlock as n, createBlock as O, withCtx as a, createVNode as s, unref as l, createElementVNode as f, createElementBlock as m, Fragment as _, renderList as x, normalizeClass as $, createTextVNode as k, toDisplayString as j, withDirectives as E, vShow as N } from "vue";
2
+ import F from "../../components/Sidebar/SidebarButton.vue.js";
3
+ import K from "../../components/Sidebar/SidebarList.vue.js";
4
+ import A from "../../components/Sidebar/SidebarListElement.vue.js";
5
+ import H from "../../components/ViewLayout/ViewLayout.vue.js";
6
+ import I from "../../components/ViewLayout/ViewLayoutContent.vue.js";
7
7
  import { ScalarIcon as z } from "@scalar/components";
8
- import { cookieSchema as U } from "@scalar/oas-utils/entities/cookie";
9
- import { useRouter as W, useRoute as q } from "vue-router";
10
- import G from "./CookieForm.vue.js";
11
- import J from "./CookieRaw.vue.js";
8
+ import { cookieSchema as P } from "@scalar/oas-utils/entities/cookie";
9
+ import { useRouter as T, useRoute as U } from "vue-router";
10
+ import W from "./CookieForm.vue.js";
11
+ import q from "./CookieRaw.vue.js";
12
+ import { useWorkspace as G } from "../../store/store.js";
13
+ import J from "../../components/Sidebar/Sidebar.vue.js";
12
14
  import { useSidebar as Q } from "../../hooks/useSidebar.js";
13
- import { useWorkspace as X } from "../../store/store.js";
14
- import Y from "../../components/Sidebar/Sidebar.vue.js";
15
- const Z = { class: "flex-1" }, ee = ["onClick"], te = { class: "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(1rem_-_1.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, oe = ["onClick"], re = { class: "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(1.75rem_-_1.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, ve = /* @__PURE__ */ D({
15
+ const X = { class: "flex-1" }, Y = ["onClick"], Z = { class: "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(1rem_-_1.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, ee = ["onClick"], te = { class: "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(1.75rem_-_1.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, xe = /* @__PURE__ */ B({
16
16
  __name: "Cookies",
17
- setup(se) {
18
- const { cookies: p, cookieMutators: v, events: y } = X(), { collapsedSidebarFolders: i, toggleSidebarFolder: g } = Q(), b = W(), L = q(), V = M("layout"), C = () => {
19
- const t = Object.keys(p).length, e = U.parse({
17
+ setup(oe) {
18
+ const { cookies: p, cookieMutators: v, events: g } = G(), { collapsedSidebarFolders: i, toggleSidebarFolder: y } = Q(), b = T(), L = U(), C = () => {
19
+ const t = Object.keys(p).length, e = P.parse({
20
20
  name: `Cookie ${t}`,
21
21
  value: "",
22
22
  domain: "example.com",
@@ -26,7 +26,7 @@ const Z = { class: "flex-1" }, ee = ["onClick"], te = { class: "before:bg-border
26
26
  sameSite: "None"
27
27
  });
28
28
  v.add(e), b.push(e.uid);
29
- }, B = (t) => {
29
+ }, V = (t) => {
30
30
  v.delete(t);
31
31
  const e = Object.values(p).filter(
32
32
  (o) => o.uid !== t
@@ -35,7 +35,7 @@ const Z = { class: "flex-1" }, ee = ["onClick"], te = { class: "before:bg-border
35
35
  const o = e[e.length - 1];
36
36
  b.push(o.uid);
37
37
  } else e.length === 1 && e[0].uid === "default" && b.push("default");
38
- }, h = R(() => {
38
+ }, h = D(() => {
39
39
  const t = {};
40
40
  return Object.values(p).forEach((e) => {
41
41
  e.domain && e.path && (t[e.domain] || (t[e.domain] = {}), t[e.domain][e.path] || (t[e.domain][e.path] = []), t[e.domain][e.path].push(e));
@@ -43,7 +43,7 @@ const Z = { class: "flex-1" }, ee = ["onClick"], te = { class: "before:bg-border
43
43
  }), w = (t) => i[t], S = (t) => {
44
44
  t != null && t.createNew && L.name === "cookies" && C();
45
45
  };
46
- return F(() => {
46
+ return M(() => {
47
47
  const t = Object.keys(h.value), e = Object.entries(h.value).flatMap(
48
48
  ([o, r]) => Object.keys(r).map((d) => o + d)
49
49
  );
@@ -51,57 +51,57 @@ const Z = { class: "flex-1" }, ee = ["onClick"], te = { class: "before:bg-border
51
51
  i[o] = !0;
52
52
  }), e.forEach((o) => {
53
53
  i[o] = !0;
54
- }), y.hotKeys.on(S);
55
- }), K(() => y.hotKeys.off(S)), (t, e) => (l(), j(P, null, {
54
+ }), g.hotKeys.on(S);
55
+ }), R(() => g.hotKeys.off(S)), (t, e) => (n(), O(H, null, {
56
56
  default: a(() => [
57
- s(n(Y), { title: "Cookies" }, {
57
+ s(l(J), { title: "Cookies" }, {
58
58
  content: a(() => [
59
- f("div", Z, [
60
- s(H, null, {
59
+ f("div", X, [
60
+ s(K, null, {
61
61
  default: a(() => [
62
- (l(!0), m(_, null, x(h.value, (o, r) => (l(), m("div", { key: r }, [
62
+ (n(!0), m(_, null, x(h.value, (o, r) => (n(), m("div", { key: r }, [
63
63
  f("button", {
64
64
  class: "flex font-medium gap-1.5 items-center px-2 py-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
65
65
  type: "button",
66
- onClick: (d) => n(g)(r)
66
+ onClick: (d) => l(y)(r)
67
67
  }, [
68
- s(n(z), {
69
- class: O(["text-c-3", {
70
- "rotate-90": n(i)[r]
68
+ s(l(z), {
69
+ class: $(["text-c-3", {
70
+ "rotate-90": l(i)[r]
71
71
  }]),
72
72
  icon: "ChevronRight",
73
73
  size: "sm",
74
74
  thickness: "2.5"
75
75
  }, null, 8, ["class"]),
76
- k(" " + $(r), 1)
77
- ], 8, ee),
78
- E(f("div", te, [
79
- (l(!0), m(_, null, x(o, (d, u) => (l(), m("div", { key: u }, [
76
+ k(" " + j(r), 1)
77
+ ], 8, Y),
78
+ E(f("div", Z, [
79
+ (n(!0), m(_, null, x(o, (d, c) => (n(), m("div", { key: c }, [
80
80
  f("button", {
81
81
  class: "flex font-medium gap-1.5 items-center pl-5 pr-2 py-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
82
82
  type: "button",
83
- onClick: (c) => n(g)(r + u)
83
+ onClick: (u) => l(y)(r + c)
84
84
  }, [
85
- s(n(z), {
86
- class: O(["text-c-3", {
87
- "rotate-90": n(i)[r + u]
85
+ s(l(z), {
86
+ class: $(["text-c-3", {
87
+ "rotate-90": l(i)[r + c]
88
88
  }]),
89
89
  icon: "ChevronRight",
90
90
  size: "sm",
91
91
  thickness: "2.5"
92
92
  }, null, 8, ["class"]),
93
- k(" " + $(u), 1)
94
- ], 8, oe),
95
- E(f("div", re, [
96
- (l(!0), m(_, null, x(d, (c) => (l(), j(I, {
97
- key: c.uid,
93
+ k(" " + j(c), 1)
94
+ ], 8, ee),
95
+ E(f("div", te, [
96
+ (n(!0), m(_, null, x(d, (u) => (n(), O(A, {
97
+ key: u.uid,
98
98
  class: "cookie text-xs",
99
- variable: { name: c.name, uid: c.uid },
99
+ variable: { name: u.name, uid: u.uid },
100
100
  warningMessage: "Are you sure you want to delete this cookie?",
101
- onDelete: (ne) => B(c.uid)
101
+ onDelete: (re) => V(u.uid)
102
102
  }, null, 8, ["variable", "onDelete"]))), 128))
103
103
  ], 512), [
104
- [N, w(r + u)]
104
+ [N, w(r + c)]
105
105
  ])
106
106
  ]))), 128))
107
107
  ], 512), [
@@ -114,23 +114,22 @@ const Z = { class: "flex-1" }, ee = ["onClick"], te = { class: "before:bg-border
114
114
  ])
115
115
  ]),
116
116
  button: a(() => [
117
- s(A, {
117
+ s(F, {
118
118
  click: C,
119
- hotkey: "N",
120
- layout: n(V)
119
+ hotkey: "N"
121
120
  }, {
122
121
  title: a(() => e[0] || (e[0] = [
123
122
  k("Add Cookie")
124
123
  ])),
125
124
  _: 1
126
- }, 8, ["layout"])
125
+ })
127
126
  ]),
128
127
  _: 1
129
128
  }),
130
- s(T, { class: "flex-1" }, {
129
+ s(I, { class: "flex-1" }, {
131
130
  default: a(() => [
132
- s(G),
133
- s(J)
131
+ s(W),
132
+ s(q)
134
133
  ]),
135
134
  _: 1
136
135
  })
@@ -140,5 +139,5 @@ const Z = { class: "flex-1" }, ee = ["onClick"], te = { class: "before:bg-border
140
139
  }
141
140
  });
142
141
  export {
143
- ve as default
142
+ xe as default
144
143
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/Environment.vue"],"names":[],"mappings":";AA6zBA,wBAMG"}
1
+ {"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/Environment.vue"],"names":[],"mappings":";AAyzBA,wBAMG"}
@@ -1,37 +1,37 @@
1
- import { defineComponent as J, ref as d, inject as T, watch as F, onMounted as H, onBeforeUnmount as W, openBlock as m, createBlock as b, withCtx as i, createVNode as s, createElementVNode as q, createElementBlock as g, Fragment as G, renderList as P, unref as a, createTextVNode as Q, createSlots as X, createCommentVNode as Y, toDisplayString as Z, withKeys as ee, nextTick as ne } from "vue";
2
- import te from "../../components/CodeInput/CodeInput.vue.js";
3
- import oe from "../../components/Sidebar/Sidebar.vue.js";
4
- import le from "../../components/Sidebar/SidebarButton.vue.js";
5
- import ae from "../../components/Sidebar/SidebarList.vue.js";
6
- import ue from "../../components/Sidebar/SidebarListElement.vue.js";
7
- import ie from "../../components/ViewLayout/ViewLayout.vue.js";
8
- import re from "../../components/ViewLayout/ViewLayoutContent.vue.js";
9
- import se from "../../components/ViewLayout/ViewLayoutSection.vue.js";
10
- import { useModal as M } from "@scalar/components";
11
- import { environmentSchema as me } from "@scalar/oas-utils/entities/environment";
12
- import { nanoid as ce } from "nanoid";
13
- import { useRouter as de, useRoute as fe } from "vue-router";
14
- import ve from "./EnvironmentColorModal.vue.js";
15
- import pe from "./EnvironmentModal.vue.js";
16
- import { useWorkspace as ye } from "../../store/store.js";
17
- const Ee = { class: "flex-1" }, he = ["value"], Re = /* @__PURE__ */ J({
1
+ import { defineComponent as z, ref as d, watch as J, onMounted as T, onBeforeUnmount as F, openBlock as m, createBlock as b, withCtx as i, createVNode as s, createElementVNode as H, createElementBlock as g, Fragment as W, renderList as q, unref as u, createTextVNode as G, createSlots as P, createCommentVNode as Q, toDisplayString as X, withKeys as Y, nextTick as Z } from "vue";
2
+ import ee from "../../components/CodeInput/CodeInput.vue.js";
3
+ import ne from "../../components/Sidebar/Sidebar.vue.js";
4
+ import te from "../../components/Sidebar/SidebarButton.vue.js";
5
+ import oe from "../../components/Sidebar/SidebarList.vue.js";
6
+ import le from "../../components/Sidebar/SidebarListElement.vue.js";
7
+ import ae from "../../components/ViewLayout/ViewLayout.vue.js";
8
+ import ue from "../../components/ViewLayout/ViewLayoutContent.vue.js";
9
+ import ie from "../../components/ViewLayout/ViewLayoutSection.vue.js";
10
+ import { useModal as S } from "@scalar/components";
11
+ import { environmentSchema as re } from "@scalar/oas-utils/entities/environment";
12
+ import { nanoid as se } from "nanoid";
13
+ import { useRouter as me, useRoute as ce } from "vue-router";
14
+ import de from "./EnvironmentColorModal.vue.js";
15
+ import fe from "./EnvironmentModal.vue.js";
16
+ import { useWorkspace as ve } from "../../store/store.js";
17
+ const pe = { class: "flex-1" }, ye = ["value"], Ke = /* @__PURE__ */ z({
18
18
  __name: "Environment",
19
- setup(be) {
20
- const f = de(), k = fe(), { environments: l, environmentMutators: r, events: C } = ye(), v = M(), p = M(), o = d(null), _ = d(null), y = d(!1), E = d(null), V = d(""), O = T("layout"), c = (e) => JSON.parse(e), h = (e) => JSON.stringify(e, null, 2);
19
+ setup(Ee) {
20
+ const f = me(), k = ce(), { environments: l, environmentMutators: r, events: C } = ve(), v = S(), p = S(), o = d(null), V = d(null), y = d(!1), E = d(null), _ = d(""), c = (e) => JSON.parse(e), h = (e) => JSON.stringify(e, null, 2);
21
21
  function x(e) {
22
- const t = l[Object.keys(l)[0]], u = (t ? Object.keys(c(t.value)) : []).reduce(
23
- (D, z) => (D[z] = "", D),
22
+ const t = l[Object.keys(l)[0]], a = (t ? Object.keys(c(t.value)) : []).reduce(
23
+ (D, U) => (D[U] = "", D),
24
24
  {}
25
- ), w = me.parse({
25
+ ), w = re.parse({
26
26
  name: e.name,
27
- uid: ce(),
27
+ uid: se(),
28
28
  color: e.color,
29
- value: h(u),
29
+ value: h(a),
30
30
  isDefault: !1
31
31
  });
32
32
  r.add(w), o.value = w.uid, f.push(o.value), p.hide();
33
33
  }
34
- function S(e) {
34
+ function M(e) {
35
35
  Object.values(l).forEach((t) => {
36
36
  const n = c(t.value);
37
37
  e in n || (n[e] = "", r.edit(
@@ -41,7 +41,7 @@ const Ee = { class: "flex-1" }, he = ["value"], Re = /* @__PURE__ */ J({
41
41
  ));
42
42
  });
43
43
  }
44
- function $(e) {
44
+ function O(e) {
45
45
  Object.values(l).forEach((t) => {
46
46
  const n = c(t.value);
47
47
  e in n && (delete n[e], r.edit(
@@ -51,19 +51,19 @@ const Ee = { class: "flex-1" }, he = ["value"], Re = /* @__PURE__ */ J({
51
51
  ));
52
52
  });
53
53
  }
54
- function j(e) {
54
+ function $(e) {
55
55
  if (o.value) {
56
56
  const t = c(e), n = c(
57
57
  l[o.value].value
58
58
  );
59
- Object.keys(t).forEach((u) => {
60
- u in n || S(u);
61
- }), Object.keys(n).forEach((u) => {
62
- u in t || $(u);
59
+ Object.keys(t).forEach((a) => {
60
+ a in n || M(a);
61
+ }), Object.keys(n).forEach((a) => {
62
+ a in t || O(a);
63
63
  }), r.edit(o.value, "value", e);
64
64
  }
65
65
  }
66
- const K = (e) => {
66
+ const j = (e) => {
67
67
  if (r.delete(e), o.value === e) {
68
68
  const t = Object.values(l);
69
69
  if (t.length > 0) {
@@ -75,39 +75,39 @@ const Ee = { class: "flex-1" }, he = ["value"], Re = /* @__PURE__ */ J({
75
75
  } else
76
76
  o.value = l.default.uid, f.push({ name: "environment", params: { environment: "default" } });
77
77
  }
78
+ }, K = (e) => {
79
+ E.value = e, _.value = l[e].color || "", v.show();
78
80
  }, I = (e) => {
79
- E.value = e, V.value = l[e].color || "", v.show();
80
- }, R = (e) => {
81
81
  E.value && (r.edit(E.value, "color", e), v.hide());
82
- }, B = () => {
82
+ }, L = () => {
83
83
  const e = f.currentRoute.value.params.environment;
84
84
  e ? o.value = e : e === "default" && (o.value = l.default.uid);
85
- }, L = () => {
86
- o.value && !l[o.value].isDefault && (y.value = !0, ne(() => {
85
+ }, R = () => {
86
+ o.value && !l[o.value].isDefault && (y.value = !0, Z(() => {
87
87
  var e;
88
- (e = _.value) == null || e.focus();
88
+ (e = V.value) == null || e.focus();
89
89
  }));
90
- }, A = (e) => {
90
+ }, B = (e) => {
91
91
  const n = e.target.value;
92
92
  o.value && !l[o.value].isDefault && r.edit(o.value, "name", n);
93
93
  }, N = (e) => {
94
94
  e != null && e.createNew && k.name === "environment" && x({ name: "", color: "" });
95
- }, U = () => {
95
+ }, A = () => {
96
96
  p.show();
97
97
  };
98
- return F(
98
+ return J(
99
99
  () => k.params.environment,
100
100
  (e) => o.value = e || l.default.uid
101
- ), H(() => {
102
- B(), C.hotKeys.on(N);
103
- }), W(() => C.hotKeys.off(N)), (e, t) => (m(), b(ie, null, {
101
+ ), T(() => {
102
+ L(), C.hotKeys.on(N);
103
+ }), F(() => C.hotKeys.off(N)), (e, t) => (m(), b(ae, null, {
104
104
  default: i(() => [
105
- s(oe, { title: "Environment" }, {
105
+ s(ne, { title: "Environment" }, {
106
106
  content: i(() => [
107
- q("div", Ee, [
108
- s(ae, null, {
107
+ H("div", pe, [
108
+ s(oe, null, {
109
109
  default: i(() => [
110
- (m(!0), g(G, null, P(a(l), (n) => (m(), b(ue, {
110
+ (m(!0), g(W, null, q(u(l), (n) => (m(), b(le, {
111
111
  key: n.uid,
112
112
  class: "text-xs",
113
113
  isCopyable: !1,
@@ -118,9 +118,9 @@ const Ee = { class: "flex-1" }, he = ["value"], Re = /* @__PURE__ */ J({
118
118
  isDefault: n.isDefault
119
119
  },
120
120
  warningMessage: "Are you sure you want to delete this environment?",
121
- onClick: (u) => o.value = n.uid,
122
- onColorModal: I,
123
- onDelete: (u) => K(n.uid)
121
+ onClick: (a) => o.value = n.uid,
122
+ onColorModal: K,
123
+ onDelete: (a) => j(n.uid)
124
124
  }, null, 8, ["variable", "onClick", "onDelete"]))), 128))
125
125
  ]),
126
126
  _: 1
@@ -128,54 +128,53 @@ const Ee = { class: "flex-1" }, he = ["value"], Re = /* @__PURE__ */ J({
128
128
  ])
129
129
  ]),
130
130
  button: i(() => [
131
- s(le, {
132
- click: U,
133
- hotkey: "N",
134
- layout: a(O)
131
+ s(te, {
132
+ click: A,
133
+ hotkey: "N"
135
134
  }, {
136
135
  title: i(() => t[4] || (t[4] = [
137
- Q("Add Environment")
136
+ G("Add Environment")
138
137
  ])),
139
138
  _: 1
140
- }, 8, ["layout"])
139
+ })
141
140
  ]),
142
141
  _: 1
143
142
  }),
144
- s(re, { class: "flex-1" }, {
143
+ s(ue, { class: "flex-1" }, {
145
144
  default: i(() => [
146
- s(se, null, X({
145
+ s(ie, null, P({
147
146
  default: i(() => [
148
- o.value ? (m(), b(te, {
147
+ o.value ? (m(), b(ee, {
149
148
  key: 0,
150
149
  class: "pl-px pr-2 md:px-4 py-2",
151
150
  isCopyable: "",
152
151
  language: "json",
153
152
  lineNumbers: "",
154
153
  lint: "",
155
- modelValue: a(l)[o.value].value,
156
- "onUpdate:modelValue": j
157
- }, null, 8, ["modelValue"])) : Y("", !0)
154
+ modelValue: u(l)[o.value].value,
155
+ "onUpdate:modelValue": $
156
+ }, null, 8, ["modelValue"])) : Q("", !0)
158
157
  ]),
159
158
  _: 2
160
159
  }, [
161
160
  o.value ? {
162
161
  name: "title",
163
162
  fn: i(() => [
164
- !y.value || a(l)[o.value].isDefault ? (m(), g("span", {
163
+ !y.value || u(l)[o.value].isDefault ? (m(), g("span", {
165
164
  key: 0,
166
- onDblclick: L
167
- }, Z(a(l)[o.value].name), 33)) : (m(), g("input", {
165
+ onDblclick: R
166
+ }, X(u(l)[o.value].name), 33)) : (m(), g("input", {
168
167
  key: 1,
169
168
  ref_key: "nameInputRef",
170
- ref: _,
169
+ ref: V,
171
170
  class: "ring-1 ring-offset-4 ring-b-outline rounded",
172
171
  spellcheck: "false",
173
172
  type: "text",
174
- value: a(l)[o.value].name,
173
+ value: u(l)[o.value].name,
175
174
  onBlur: t[0] || (t[0] = (n) => y.value = !1),
176
- onInput: A,
177
- onKeyup: t[1] || (t[1] = ee((n) => y.value = !1, ["enter"]))
178
- }, null, 40, he))
175
+ onInput: B,
176
+ onKeyup: t[1] || (t[1] = Y((n) => y.value = !1, ["enter"]))
177
+ }, null, 40, ye))
179
178
  ]),
180
179
  key: "0"
181
180
  } : void 0
@@ -183,15 +182,15 @@ const Ee = { class: "flex-1" }, he = ["value"], Re = /* @__PURE__ */ J({
183
182
  ]),
184
183
  _: 1
185
184
  }),
186
- s(ve, {
187
- selectedColor: V.value,
188
- state: a(v),
189
- onCancel: t[2] || (t[2] = (n) => a(v).hide()),
190
- onSubmit: R
185
+ s(de, {
186
+ selectedColor: _.value,
187
+ state: u(v),
188
+ onCancel: t[2] || (t[2] = (n) => u(v).hide()),
189
+ onSubmit: I
191
190
  }, null, 8, ["selectedColor", "state"]),
192
- s(pe, {
193
- state: a(p),
194
- onCancel: t[3] || (t[3] = (n) => a(p).hide()),
191
+ s(fe, {
192
+ state: u(p),
193
+ onCancel: t[3] || (t[3] = (n) => u(p).hide()),
195
194
  onSubmit: x
196
195
  }, null, 8, ["state"])
197
196
  ]),
@@ -200,5 +199,5 @@ const Ee = { class: "flex-1" }, he = ["value"], Re = /* @__PURE__ */ J({
200
199
  }
201
200
  });
202
201
  export {
203
- Re as default
202
+ Ke as default
204
203
  };
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AAiKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAIxC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAA;IACtD,kBAAkB,EAAE,cAAc,CAAC,oBAAoB,CAAC,CAAA;IACxD,MAAM,EAAE,MAAM,CAAA;IAEd,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCA0DiC,IAAI,GAAG,MAAM;;;;;;;AAiNhD,wBASG"}
1
+ {"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AAwKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAIxC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAA;IACtD,kBAAkB,EAAE,cAAc,CAAC,oBAAoB,CAAC,CAAA;IACxD,MAAM,EAAE,MAAM,CAAA;IAEd,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAiEiC,IAAI,GAAG,MAAM;;;;;;;AAiNhD,wBASG"}
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, ref as d, computed as N, onMounted as P, openBlock as a, createBlock as w, unref as p, normalizeStyle as h, withCtx as y, createElementBlock as f, Fragment as R, renderList as j, normalizeClass as q, createElementVNode as v, createTextVNode as k, toDisplayString as b, createVNode as z } from "vue";
2
2
  import { ScalarDropdown as F, ScalarButton as K, ScalarIcon as T } from "@scalar/components";
3
- import { onClickOutside as $ } from "@vueuse/core";
4
- import L from "fuse.js";
3
+ import { onClickOutside as L } from "@vueuse/core";
4
+ import M from "fuse.js";
5
5
  import { parseEnvVariables as x } from "../../libs/environment-parser.js";
6
- const M = { key: 0 }, Q = ["onClick"], G = { class: "flex items-center gap-1.5 whitespace-nowrap" }, H = { class: "w-20 overflow-hidden text-ellipsis text-right whitespace-nowrap" }, oe = /* @__PURE__ */ I({
6
+ const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 whitespace-nowrap" }, H = { class: "w-20 overflow-hidden text-ellipsis text-right whitespace-nowrap" }, oe = /* @__PURE__ */ I({
7
7
  __name: "EnvironmentVariableDropdown",
8
8
  props: {
9
9
  query: {},
@@ -14,15 +14,20 @@ const M = { key: 0 }, Q = ["onClick"], G = { class: "flex items-center gap-1.5 w
14
14
  },
15
15
  emits: ["select"],
16
16
  setup(g, { expose: E, emit: V }) {
17
- const l = g, _ = V, c = d(!0), u = d(null), r = d(0), C = () => {
17
+ const s = g, _ = V, c = d(!0), u = d(null), r = d(0), C = () => {
18
18
  const e = A.value.params.workspace;
19
- S(`/workspace/${e}/environment/default`), c.value = !1;
20
- }, { push: S, currentRoute: A } = l.router, B = new L(x(l.activeEnvVariables.value), {
19
+ S({
20
+ name: "environment.default",
21
+ params: {
22
+ workspace: e
23
+ }
24
+ }), c.value = !1;
25
+ }, { push: S, currentRoute: A } = s.router, B = new M(x(s.activeEnvVariables.value), {
21
26
  keys: ["key", "value"]
22
- }), s = N(() => {
23
- const e = l.query;
27
+ }), l = N(() => {
28
+ const e = s.query;
24
29
  if (!e)
25
- return x(l.activeEnvVariables.value).slice(-4).filter(({ key: t, value: n }) => t !== "" || n !== "");
30
+ return x(s.activeEnvVariables.value).slice(-4).filter(({ key: t, value: n }) => t !== "" || n !== "");
26
31
  const o = B.search(e);
27
32
  return o.length > 0 ? o.map((t) => t.item).filter(({ key: t, value: n }) => t !== "" || n !== "") : [];
28
33
  }), m = (e) => {
@@ -30,18 +35,18 @@ const M = { key: 0 }, Q = ["onClick"], G = { class: "flex items-center gap-1.5 w
30
35
  }, O = (e) => e.value ? e.value.color : "#8E8E8E";
31
36
  return E({
32
37
  handleArrowKey: (e) => {
33
- const o = e === "up" ? -1 : 1, t = s.value.length;
38
+ const o = e === "up" ? -1 : 1, t = l.value.length;
34
39
  t !== 0 && (r.value = (r.value + o + t) % t);
35
40
  },
36
41
  handleSelect: () => {
37
42
  if (r.value >= 0) {
38
- const e = s.value[r.value];
43
+ const e = l.value[r.value];
39
44
  e && m(e.key);
40
45
  }
41
46
  }
42
47
  }), P(() => {
43
48
  r.value = 0;
44
- }), $(
49
+ }), L(
45
50
  u,
46
51
  () => {
47
52
  c.value = !1;
@@ -61,8 +66,8 @@ const M = { key: 0 }, Q = ["onClick"], G = { class: "flex items-center gap-1.5 w
61
66
  teleport: ".scalar-client"
62
67
  }, {
63
68
  items: y(() => [
64
- s.value.length ? (a(), f("ul", M, [
65
- (a(!0), f(R, null, j(s.value, (i, D) => (a(), f("li", {
69
+ l.value.length ? (a(), f("ul", Q, [
70
+ (a(!0), f(R, null, j(l.value, (i, D) => (a(), f("li", {
66
71
  key: i.key,
67
72
  class: q(["h-8 font-code text-xxs hover:bg-b-2 flex cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150", { "bg-b-2": D === r.value }]),
68
73
  onClick: (W) => m(i.key)
@@ -77,7 +82,7 @@ const M = { key: 0 }, Q = ["onClick"], G = { class: "flex items-center gap-1.5 w
77
82
  k(" " + b(i.key), 1)
78
83
  ]),
79
84
  v("span", H, b(i.value), 1)
80
- ], 10, Q))), 128))
85
+ ], 10, $))), 128))
81
86
  ])) : (a(), w(p(K), {
82
87
  key: 1,
83
88
  class: "font-code text-xxs hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150",
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuth.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-266d3491"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9d4fb132"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };