@scalar/api-client 2.3.30 → 2.3.32

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 (182) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/components/AddressBar/AddressBar.vue2.js +3 -3
  3. package/dist/components/AddressBar/AddressBarHistory.vue2.js +1 -1
  4. package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
  5. package/dist/components/CodeInput/codeVariableWidget.js +4 -4
  6. package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
  7. package/dist/components/CommandPalette/CommandActionInput.vue.js +2 -2
  8. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +2 -2
  9. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +6 -6
  10. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +5 -5
  11. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +7 -7
  12. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +7 -7
  13. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +6 -6
  14. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +4 -4
  15. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  16. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +5 -5
  17. package/dist/components/CommandPalette/WatchModeToggle.vue.js +2 -2
  18. package/dist/components/DataTable/DataTable.vue.js +5 -5
  19. package/dist/components/DataTable/DataTableCell.vue.js +2 -2
  20. package/dist/components/DataTable/DataTableCheckbox.vue.js +2 -2
  21. package/dist/components/DataTable/DataTableHeader.vue.js +2 -2
  22. package/dist/components/DataTable/DataTableInput.vue2.js +9 -9
  23. package/dist/components/DataTable/DataTableInputSelect.vue.js +5 -5
  24. package/dist/components/DataTable/DataTableRow.vue.js +2 -2
  25. package/dist/components/DataTable/DataTableText.vue.js +2 -2
  26. package/dist/components/DataTable/index.js +14 -14
  27. package/dist/components/EmptyState.vue2.js +2 -2
  28. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +12 -12
  29. package/dist/components/Form/Form.vue.js +4 -4
  30. package/dist/components/Form/LabelInput.vue2.js +4 -4
  31. package/dist/components/HelpfulLink.vue.js +2 -2
  32. package/dist/components/HttpMethod/HttpMethod.vue2.js +3 -3
  33. package/dist/components/IconSelector.vue.js +5 -5
  34. package/dist/components/ImportCollection/DropEventListener.vue.js +3 -3
  35. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +2 -2
  36. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
  37. package/dist/components/ImportCollection/ImportNowButton.vue.js +3 -3
  38. package/dist/components/ImportCollection/IntegrationLogo.vue.js +2 -2
  39. package/dist/components/ImportCollection/PrefetchError.vue.js +4 -4
  40. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +10 -10
  41. package/dist/components/OpenApiClientButton.vue2.js +4 -4
  42. package/dist/components/ScalarAsciiArt.vue2.js +3 -3
  43. package/dist/components/ScalarHotkey.vue.js +2 -2
  44. package/dist/components/SectionFilter.vue2.js +1 -1
  45. package/dist/components/SectionFilterButton.vue.js +2 -2
  46. package/dist/components/Server/ServerDropdown.vue.js +21 -21
  47. package/dist/components/Server/ServerDropdownItem.vue2.js +4 -4
  48. package/dist/components/Server/ServerSelector.vue.js +1 -1
  49. package/dist/components/Server/ServerVariablesForm.vue.js +4 -4
  50. package/dist/components/Server/ServerVariablesSelect.vue.js +1 -1
  51. package/dist/components/Server/ServerVariablesTextbox.vue.js +2 -2
  52. package/dist/components/Server/index.js +6 -6
  53. package/dist/components/SideNav/DownloadAppButton.vue2.js +5 -5
  54. package/dist/components/SideNav/SideHelp.vue.js +2 -2
  55. package/dist/components/SideNav/SideNav.vue.js +5 -5
  56. package/dist/components/SideNav/SideNavGroup.vue.js +2 -2
  57. package/dist/components/SideNav/SideNavLink.vue.js +4 -4
  58. package/dist/components/SideNav/SideNavRouterLink.vue.js +2 -2
  59. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +2 -2
  60. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +2 -2
  61. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +2 -2
  62. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -2
  63. package/dist/components/Sidebar/Sidebar.vue2.js +4 -4
  64. package/dist/components/Sidebar/SidebarButton.vue.js +3 -3
  65. package/dist/components/Sidebar/SidebarList.vue.js +2 -2
  66. package/dist/components/Sidebar/SidebarListElement.vue2.js +9 -9
  67. package/dist/components/Sidebar/SidebarListElementActions.vue.js +1 -1
  68. package/dist/components/Sidebar/SidebarToggle.vue.js +3 -3
  69. package/dist/components/TopNav/TopNav.vue.js +2 -2
  70. package/dist/components/TopNav/TopNavItem.vue2.js +20 -20
  71. package/dist/components/ViewLayout/ViewLayout.vue.js +2 -2
  72. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +7 -7
  73. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +2 -2
  74. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +3 -3
  75. package/dist/hooks/useClientConfig.d.ts +3 -3
  76. package/dist/layouts/App/ApiClientApp.vue.js +10 -10
  77. package/dist/layouts/App/MainLayout.vue.js +2 -2
  78. package/dist/layouts/App/create-api-client-app.d.ts +2 -2
  79. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  80. package/dist/layouts/App/index.js +5 -4
  81. package/dist/layouts/Modal/ApiClientModal.vue2.js +2 -2
  82. package/dist/layouts/Modal/create-api-client-modal.d.ts +4 -4
  83. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  84. package/dist/layouts/Web/ApiClientWeb.vue.js +6 -6
  85. package/dist/layouts/Web/create-api-client-web.d.ts +2 -2
  86. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  87. package/dist/libs/create-client.d.ts +2 -2
  88. package/dist/libs/create-client.d.ts.map +1 -1
  89. package/dist/libs/find-request.d.ts.map +1 -1
  90. package/dist/libs/hot-keys.d.ts +1 -1
  91. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  92. package/dist/router.js +4 -4
  93. package/dist/store/active-entities.d.ts.map +1 -1
  94. package/dist/store/active-entities.js +1 -1
  95. package/dist/store/import-spec.js +3 -3
  96. package/dist/store/requests.d.ts.map +1 -1
  97. package/dist/store/store.d.ts +2 -2
  98. package/dist/store/store.d.ts.map +1 -1
  99. package/dist/store/store.js +37 -42
  100. package/dist/store/workspace.d.ts +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/views/Collection/Collection.vue2.js +2 -2
  103. package/dist/views/Collection/CollectionAuthentication.vue2.js +5 -5
  104. package/dist/views/Collection/CollectionCookies.vue2.js +2 -2
  105. package/dist/views/Collection/CollectionEnvironment.vue2.js +2 -2
  106. package/dist/views/Collection/CollectionInfoForm.vue2.js +2 -2
  107. package/dist/views/Collection/CollectionNavigation.vue.js +1 -1
  108. package/dist/views/Collection/CollectionOverview.vue2.js +3 -3
  109. package/dist/views/Collection/CollectionScripts.vue2.js +2 -2
  110. package/dist/views/Collection/CollectionServerForm.vue.js +1 -1
  111. package/dist/views/Collection/CollectionServers.vue2.js +3 -3
  112. package/dist/views/Collection/CollectionSettings.vue2.js +4 -4
  113. package/dist/views/Collection/CollectionSync.vue2.js +2 -2
  114. package/dist/views/Collection/components/MarkdownInput.vue2.js +1 -1
  115. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +2 -0
  116. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
  117. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +16 -14
  118. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +3 -1
  119. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
  120. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +74 -31
  121. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +3 -1
  122. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
  123. package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +8 -6
  124. package/dist/views/Components/CodeSnippet/index.js +8 -8
  125. package/dist/views/Cookies/CookieForm.vue.js +2 -2
  126. package/dist/views/Cookies/CookieModal.vue2.js +2 -2
  127. package/dist/views/Cookies/Cookies.vue2.js +6 -6
  128. package/dist/views/Environment/Environment.vue2.js +7 -7
  129. package/dist/views/Environment/EnvironmentColorModal.vue.js +2 -2
  130. package/dist/views/Environment/EnvironmentColors.vue.js +1 -1
  131. package/dist/views/Environment/EnvironmentModal.vue.js +7 -7
  132. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +10 -10
  133. package/dist/views/Request/Request.vue2.js +1 -1
  134. package/dist/views/Request/RequestRoot.vue2.js +1 -1
  135. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +2 -2
  136. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +1 -1
  137. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +5 -5
  138. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +10 -10
  139. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +11 -11
  140. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +2 -2
  141. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +1 -1
  142. package/dist/views/Request/RequestSection/RequestBody.vue2.js +1 -1
  143. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +2 -0
  144. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
  145. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  146. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +56 -61
  147. package/dist/views/Request/RequestSection/RequestParams.vue.js +13 -13
  148. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +5 -5
  149. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  150. package/dist/views/Request/RequestSection/RequestSection.vue.js +3 -3
  151. package/dist/views/Request/RequestSection/RequestSection.vue2.js +23 -22
  152. package/dist/views/Request/RequestSection/RequestTable.vue2.js +7 -7
  153. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +9 -9
  154. package/dist/views/Request/RequestSidebar.vue2.js +25 -25
  155. package/dist/views/Request/RequestSidebarItem.vue2.js +25 -25
  156. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +1 -1
  157. package/dist/views/Request/RequestSubpageHeader.vue2.js +1 -1
  158. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +1 -1
  159. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +5 -5
  160. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +2 -2
  161. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +2 -2
  162. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +1 -1
  163. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +5 -5
  164. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +7 -7
  165. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +6 -6
  166. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +4 -4
  167. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
  168. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +15 -15
  169. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +1 -1
  170. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +3 -3
  171. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +1 -1
  172. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +5 -5
  173. package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
  174. package/dist/views/Request/consts/mediaTypes.d.ts.map +1 -1
  175. package/dist/views/Request/consts/mediaTypes.js +1 -0
  176. package/dist/views/Request/libs/oauth2.d.ts +1 -1
  177. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  178. package/dist/views/Settings/Settings.vue2.js +3 -3
  179. package/dist/views/Settings/SettingsGeneral.vue.js +1 -1
  180. package/dist/views/Settings/components/SettingsAppearance.vue.js +10 -10
  181. package/dist/views/Settings/components/SettingsSection.vue.js +4 -4
  182. package/package.json +19 -19
@@ -1,70 +1,64 @@
1
- import { defineComponent as H, computed as a, ref as U, openBlock as v, createElementBlock as j, createVNode as i, withCtx as c, createTextVNode as D, createElementVNode as x, unref as r, toDisplayString as N, createBlock as C } from "vue";
2
- import { ScalarCombobox as R, ScalarButton as T, ScalarIcon as W, ScalarCodeBlock as q } from "@scalar/components";
3
- import { snippetz as z } from "@scalar/snippetz";
4
- import I from "../../../components/DataTable/DataTable.vue.js";
5
- import O from "../../../components/DataTable/DataTableRow.vue.js";
1
+ import { defineComponent as H, computed as a, ref as U, createElementBlock as j, openBlock as y, createVNode as i, withCtx as c, createElementVNode as x, createBlock as C, unref as r, toDisplayString as D, createTextVNode as N } from "vue";
2
+ import { ScalarCodeBlock as T, ScalarCombobox as W, ScalarButton as z, ScalarIcon as I } from "@scalar/components";
3
+ import { snippetz as O } from "@scalar/snippetz";
4
+ import R from "../../../components/DataTable/DataTable.vue.js";
5
+ import q from "../../../components/DataTable/DataTableRow.vue.js";
6
6
  import M from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
- import { filterSecurityRequirements as P } from "./helpers/filter-security-requirements.js";
8
- import A from "../../Components/CodeSnippet/CodeSnippet.vue.js";
9
- import { useWorkspace as F } from "../../../store/store.js";
10
- const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class: "bg-b-1 flex items-center justify-center overflow-hidden border-t" }, ne = /* @__PURE__ */ H({
7
+ import P from "../../Components/CodeSnippet/CodeSnippet.vue.js";
8
+ import { useWorkspace as A } from "../../../store/store.js";
9
+ const F = { class: "w-full" }, G = { class: "-mx-1 flex flex-1" }, J = { class: "bg-b-1 flex items-center justify-center overflow-hidden border-t" }, le = /* @__PURE__ */ H({
11
10
  __name: "RequestCodeExample",
12
11
  props: {
13
12
  collection: {},
14
13
  example: {},
15
14
  operation: {},
16
15
  server: {},
17
- workspace: {}
16
+ workspace: {},
17
+ environment: {}
18
18
  },
19
- setup(n) {
20
- var b, K, S, h;
21
- const { securitySchemes: k, workspaceMutators: w } = F(), f = a(() => {
19
+ setup(o) {
20
+ var b, K, h, S;
21
+ const { securitySchemes: k, workspaceMutators: w } = A(), f = a(() => {
22
22
  var t, e, l;
23
23
  return d.value.targetKey === "custom" && ((t = u.value) == null ? void 0 : t.some(
24
- (o) => o.lang === d.value.clientKey
24
+ (n) => n.lang === d.value.clientKey
25
25
  )) ? d.value : {
26
- targetKey: ((e = n.workspace.selectedHttpClient) == null ? void 0 : e.targetKey) ?? "js",
27
- clientKey: ((l = n.workspace.selectedHttpClient) == null ? void 0 : l.clientKey) ?? "fetch"
26
+ targetKey: ((e = o.workspace.selectedHttpClient) == null ? void 0 : e.targetKey) ?? "js",
27
+ clientKey: ((l = o.workspace.selectedHttpClient) == null ? void 0 : l.clientKey) ?? "fetch"
28
28
  };
29
29
  }), u = a(
30
- () => n.operation["x-codeSamples"] || n.operation["x-code-samples"] || n.operation["x-custom-examples"]
30
+ () => o.operation["x-codeSamples"] || o.operation["x-code-samples"] || o.operation["x-custom-examples"]
31
31
  ), d = U(
32
32
  (b = u.value) != null && b.length ? {
33
33
  targetKey: "custom",
34
34
  clientKey: (K = u.value[0]) == null ? void 0 : K.lang
35
35
  } : {
36
- targetKey: ((S = n.workspace.selectedHttpClient) == null ? void 0 : S.targetKey) ?? "js",
37
- clientKey: ((h = n.workspace.selectedHttpClient) == null ? void 0 : h.clientKey) ?? "fetch"
36
+ targetKey: ((h = o.workspace.selectedHttpClient) == null ? void 0 : h.targetKey) ?? "js",
37
+ clientKey: ((S = o.workspace.selectedHttpClient) == null ? void 0 : S.clientKey) ?? "fetch"
38
38
  }
39
- ), $ = a(
40
- () => P(
41
- n.operation.security || n.collection.security || [],
42
- n.operation.selectedSecuritySchemeUids || n.collection.selectedSecuritySchemeUids,
43
- k
44
- )
45
- ), y = a(() => {
46
- const t = {}, e = z().clients().map((o) => ({
47
- label: o.title,
48
- options: o.clients.map((p) => (t[`${o.key},${p.client}`] = p.title, {
49
- id: `${o.key},${p.client}`,
39
+ ), $ = a(() => (o.operation.selectedSecuritySchemeUids || o.collection.selectedSecuritySchemeUids || []).flat().map((e) => k[e]).filter((e) => !!e)), v = a(() => {
40
+ const t = {}, e = O().clients().map((n) => ({
41
+ label: n.title,
42
+ options: n.clients.map((p) => (t[`${n.key},${p.client}`] = p.title, {
43
+ id: `${n.key},${p.client}`,
50
44
  label: p.title
51
45
  }))
52
- })), l = (n.operation["x-codeSamples"] || n.operation["x-code-samples"] || n.operation["x-custom-examples"] || []).map((o) => ({
53
- id: `custom,${o.lang}`,
54
- label: o.label || o.lang
46
+ })), l = (o.operation["x-codeSamples"] || o.operation["x-code-samples"] || o.operation["x-custom-examples"] || []).map((n) => ({
47
+ id: `custom,${n.lang}`,
48
+ label: n.label || n.lang
55
49
  })), m = l.length > 0 ? [
56
50
  {
57
51
  id: "customExamples",
58
52
  label: "Code Examples",
59
- options: l.map((o) => ({
60
- id: o.id,
61
- label: o.label ?? o.id
53
+ options: l.map((n) => ({
54
+ id: n.id,
55
+ label: n.label ?? n.id
62
56
  }))
63
57
  },
64
58
  ...e
65
59
  ] : e;
66
- return l.forEach((o) => {
67
- t[o.id] = o.label ?? o.id;
60
+ return l.forEach((n) => {
61
+ t[n.id] = n.label ?? n.id;
68
62
  }), {
69
63
  options: m,
70
64
  dict: t
@@ -75,24 +69,24 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
75
69
  const l = `custom,${t.clientKey}`;
76
70
  return {
77
71
  id: l,
78
- label: y.value.dict[l] ?? "Unknown"
72
+ label: v.value.dict[l] ?? "Unknown"
79
73
  };
80
74
  }
81
75
  const e = `${t.targetKey},${t.clientKey}`;
82
76
  return {
83
77
  id: e,
84
- label: y.value.dict[e] ?? "Unknown"
78
+ label: v.value.dict[e] ?? "Unknown"
85
79
  };
86
80
  }), E = a(
87
81
  () => f.value.targetKey
88
- ), V = a(
82
+ ), B = a(
89
83
  () => f.value.clientKey
90
- ), B = ({ id: t }) => {
84
+ ), V = ({ id: t }) => {
91
85
  const [e, l] = t.split(",");
92
86
  !e || !l || (d.value = {
93
87
  targetKey: e,
94
88
  clientKey: l
95
- }, e !== "custom" && w.edit(n.workspace.uid, "selectedHttpClient", {
89
+ }, e !== "custom" && w.edit(o.workspace.uid, "selectedHttpClient", {
96
90
  targetKey: e,
97
91
  clientKey: l
98
92
  }));
@@ -103,24 +97,24 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
103
97
  const t = s.value.id.split(",")[1], e = (l = u.value) == null ? void 0 : l.find((m) => m.lang === t);
104
98
  return e == null ? void 0 : e.source;
105
99
  });
106
- return (t, e) => (v(), j("div", G, [
100
+ return (t, e) => (y(), j("div", F, [
107
101
  i(M, {
108
102
  class: "group/preview w-full border-b-0",
109
103
  defaultOpen: !1
110
104
  }, {
111
105
  title: c(() => e[0] || (e[0] = [
112
- D("Code Snippet")
106
+ N("Code Snippet")
113
107
  ])),
114
108
  actions: c(() => [
115
- x("div", J, [
116
- i(r(R), {
109
+ x("div", G, [
110
+ i(r(W), {
117
111
  modelValue: s.value,
118
- options: y.value.options,
112
+ options: v.value.options,
119
113
  placement: "bottom-end",
120
- "onUpdate:modelValue": B
114
+ "onUpdate:modelValue": V
121
115
  }, {
122
116
  default: c(() => [
123
- i(r(T), {
117
+ i(r(z), {
124
118
  class: "text-c-1 hover:bg-b-3 py-0.75 flex h-full w-fit gap-1.5 px-1.5 font-normal",
125
119
  fullWidth: "",
126
120
  variant: "ghost"
@@ -128,8 +122,8 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
128
122
  default: c(() => {
129
123
  var l;
130
124
  return [
131
- x("span", null, N((l = s.value) == null ? void 0 : l.label), 1),
132
- i(r(W), {
125
+ x("span", null, D((l = s.value) == null ? void 0 : l.label), 1),
126
+ i(r(I), {
133
127
  icon: "ChevronDown",
134
128
  size: "md"
135
129
  })
@@ -143,29 +137,30 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
143
137
  ])
144
138
  ]),
145
139
  default: c(() => [
146
- i(I, {
140
+ i(R, {
147
141
  columns: [""],
148
142
  presentational: ""
149
143
  }, {
150
144
  default: c(() => [
151
- i(O, null, {
145
+ i(q, null, {
152
146
  default: c(() => [
153
- x("div", L, [
154
- g.value ? (v(), C(r(q), {
147
+ x("div", J, [
148
+ g.value ? (y(), C(r(T), {
155
149
  key: 0,
156
150
  class: "px-3 py-1.5",
157
151
  content: g.value,
158
152
  lang: s.value.id.split(",")[1] ?? "plaintext"
159
- }, null, 8, ["content", "lang"])) : (v(), C(r(A), {
153
+ }, null, 8, ["content", "lang"])) : (y(), C(r(P), {
160
154
  key: 1,
161
155
  class: "px-3 py-1.5",
162
- client: V.value,
156
+ client: B.value,
163
157
  example: t.example,
164
158
  operation: t.operation,
165
159
  securitySchemes: $.value,
166
160
  server: t.server,
167
- target: E.value
168
- }, null, 8, ["client", "example", "operation", "securitySchemes", "server", "target"]))
161
+ target: E.value,
162
+ environment: t.environment
163
+ }, null, 8, ["client", "example", "operation", "securitySchemes", "server", "target", "environment"]))
169
164
  ])
170
165
  ]),
171
166
  _: 1
@@ -180,5 +175,5 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
180
175
  }
181
176
  });
182
177
  export {
183
- ne as default
178
+ le as default
184
179
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as N, ref as h, computed as u, onMounted as z, nextTick as d, watch as A, openBlock as v, createBlock as f, withCtx as i, createTextVNode as P, toDisplayString as w, createElementVNode as r, unref as R, createVNode as V, withModifiers as B, createCommentVNode as C, normalizeClass as M } from "vue";
1
+ import { defineComponent as N, ref as h, computed as u, onMounted as z, nextTick as d, watch as A, createBlock as v, openBlock as f, withCtx as i, createElementVNode as r, createCommentVNode as P, createVNode as w, normalizeClass as B, unref as R, withModifiers as M, createTextVNode as V, toDisplayString as C } from "vue";
2
2
  import { ScalarTooltip as W, ScalarButton as D } from "@scalar/components";
3
3
  import { requestExampleParametersSchema as x } from "@scalar/oas-utils/entities/spec";
4
4
  import G from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
@@ -91,30 +91,30 @@ const j = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
91
91
  { immediate: !0 }
92
92
  );
93
93
  const g = u(() => (t.readOnlyEntries ?? []).length > 0);
94
- return (e, a) => (v(), f(G, {
94
+ return (e, a) => (f(), v(G, {
95
95
  class: "group/params",
96
96
  itemCount: O.value
97
97
  }, {
98
98
  title: i(() => [
99
- P(w(e.title), 1)
99
+ V(C(e.title), 1)
100
100
  ]),
101
101
  actions: i(() => [
102
102
  r("div", j, [
103
- S.value ? (v(), f(R(W), {
103
+ S.value ? (f(), v(R(W), {
104
104
  key: 0,
105
105
  side: "left",
106
106
  sideOffset: 6
107
107
  }, {
108
108
  trigger: i(() => [
109
- V(R(D), {
109
+ w(R(D), {
110
110
  class: "pr-0.75 pl-1 transition-none",
111
111
  size: "sm",
112
112
  variant: "ghost",
113
- onClick: B(E, ["stop"])
113
+ onClick: M(E, ["stop"])
114
114
  }, {
115
115
  default: i(() => [
116
- a[0] || (a[0] = P(" Clear ")),
117
- r("span", F, "All " + w(e.title), 1)
116
+ a[0] || (a[0] = V(" Clear ")),
117
+ r("span", F, "All " + C(e.title), 1)
118
118
  ]),
119
119
  _: 1
120
120
  })
@@ -127,7 +127,7 @@ const j = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
127
127
  ], -1)
128
128
  ])),
129
129
  _: 1
130
- })) : C("", !0)
130
+ })) : P("", !0)
131
131
  ])
132
132
  ]),
133
133
  default: i(() => [
@@ -135,9 +135,9 @@ const j = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
135
135
  ref_key: "tableWrapperRef",
136
136
  ref: c
137
137
  }, [
138
- g.value ? (v(), f(K, {
138
+ g.value ? (f(), v(K, {
139
139
  key: 0,
140
- class: M(["flex-1", {
140
+ class: B(["flex-1", {
141
141
  "bg-mix-transparent bg-mix-amount-95 bg-c-3": g.value
142
142
  }]),
143
143
  columns: ["32px", "", ""],
@@ -149,8 +149,8 @@ const j = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
149
149
  items: e.readOnlyEntries,
150
150
  label: e.label,
151
151
  workspace: e.workspace
152
- }, null, 8, ["class", "envVariables", "environment", "invalidParams", "items", "label", "workspace"])) : C("", !0),
153
- V(K, {
152
+ }, null, 8, ["class", "envVariables", "environment", "invalidParams", "items", "label", "workspace"])) : P("", !0),
153
+ w(K, {
154
154
  class: "flex-1",
155
155
  columns: ["32px", "", ""],
156
156
  envVariables: e.envVariables,
@@ -1,4 +1,4 @@
1
- import { defineComponent as R, computed as $, watch as K, openBlock as d, createBlock as h, withCtx as f, createTextVNode as b, toDisplayString as x, createCommentVNode as V } from "vue";
1
+ import { defineComponent as R, computed as $, watch as K, createBlock as d, openBlock as h, withCtx as f, createCommentVNode as b, createTextVNode as x, toDisplayString as V } from "vue";
2
2
  import { REGEX as C } from "@scalar/oas-utils/helpers";
3
3
  import q from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
4
4
  import E from "./RequestTable.vue.js";
@@ -69,14 +69,14 @@ const A = /* @__PURE__ */ R({
69
69
  (e) => {
70
70
  e && g(e);
71
71
  }
72
- ), (e, r) => (d(), h(q, {
72
+ ), (e, r) => (h(), d(q, {
73
73
  itemCount: s.value.length
74
74
  }, {
75
75
  title: f(() => [
76
- b(x(e.title), 1)
76
+ x(V(e.title), 1)
77
77
  ]),
78
78
  default: f(() => [
79
- s.value.length ? (d(), h(E, {
79
+ s.value.length ? (h(), d(E, {
80
80
  key: 0,
81
81
  class: "flex-1",
82
82
  columns: ["32px", "", ""],
@@ -87,7 +87,7 @@ const A = /* @__PURE__ */ R({
87
87
  workspace: e.workspace,
88
88
  onUpdateRow: v,
89
89
  onDeleteRow: y
90
- }, null, 8, ["envVariables", "environment", "invalidParams", "items", "workspace"])) : V("", !0)
90
+ }, null, 8, ["envVariables", "environment", "invalidParams", "items", "workspace"])) : b("", !0)
91
91
  ]),
92
92
  _: 1
93
93
  }, 8, ["itemCount"]));
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"AAgUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AASrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAU1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAoVF,wBAOG"}
1
+ {"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"AAiUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AASrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAU1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAoVF,wBAOG"}
@@ -1,7 +1,7 @@
1
- import e from "./RequestSection.vue2.js";
1
+ import o from "./RequestSection.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-2e516ee8"]]);
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-83e16b0b"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as H, computed as p, useId as A, ref as N, watch as I, openBlock as i, createBlock as d, withCtx as v, createElementVNode as c, unref as n, createElementBlock as f, createCommentVNode as y, toDisplayString as U, createVNode as t, withDirectives as s, vShow as m } from "vue";
1
+ import { defineComponent as H, computed as p, useId as A, ref as N, watch as I, createBlock as v, openBlock as i, withCtx as d, createElementVNode as c, withDirectives as s, createCommentVNode as f, createVNode as t, unref as n, vShow as m, createElementBlock as y, toDisplayString as U } from "vue";
2
2
  import { ScalarErrorBoundary as D } from "@scalar/components";
3
- import { canMethodHaveBody as h, isDefined as K, REGEX as q } from "@scalar/oas-utils/helpers";
3
+ import { canMethodHaveBody as b, isDefined as K, REGEX as q } from "@scalar/oas-utils/helpers";
4
4
  import Q from "../../../components/SectionFilter.vue.js";
5
5
  import $ from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
6
6
  import { matchesDomain as L } from "../../../libs/send-request/set-request-cookies.js";
7
7
  import j from "./RequestBody.vue.js";
8
- import b from "./RequestParams.vue.js";
8
+ import h from "./RequestParams.vue.js";
9
9
  import F from "./RequestPathParams.vue.js";
10
10
  import M from "./RequestAuth/RequestAuth.vue.js";
11
11
  import T from "./RequestCodeExample.vue.js";
@@ -37,7 +37,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
37
37
  "Body"
38
38
  ], { requestMutators: S, cookies: g, securitySchemes: B } = W(), { layout: u } = z(), k = p(() => {
39
39
  const e = /* @__PURE__ */ new Set(["All", ...P]);
40
- return l.example.parameters.path.length || e.delete("Variables"), h(l.operation.method ?? "get") || e.delete("Body"), w.value && e.delete("Auth"), [...e];
40
+ return l.example.parameters.path.length || e.delete("Variables"), b(l.operation.method ?? "get") || e.delete("Body"), w.value && e.delete("Auth"), [...e];
41
41
  }), r = p(
42
42
  () => Object.fromEntries(
43
43
  k.value.map((e) => [e, A()])
@@ -51,7 +51,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
51
51
  I(
52
52
  () => l.operation,
53
53
  (e) => {
54
- a.value === "Body" && e && !h(e.method) && (a.value = "All");
54
+ a.value === "Body" && e && !b(e.method) && (a.value = "All");
55
55
  }
56
56
  );
57
57
  const C = (e) => {
@@ -75,24 +75,24 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
75
75
  enabled: !0
76
76
  }))
77
77
  ), E = () => l.operation.summary ? l.operation.summary : l.operation.path.replace(q.PROTOCOL, "") ? l.operation.path.replace(q.PROTOCOL, "") : "Request Name", V = A();
78
- return (e, o) => (i(), d($, {
78
+ return (e, o) => (i(), v($, {
79
79
  "aria-label": `Request: ${e.operation.summary}`
80
80
  }, {
81
- title: v(() => [
81
+ title: d(() => [
82
82
  c("div", G, [
83
- n(u) !== "modal" ? (i(), f("label", {
83
+ n(u) !== "modal" ? (i(), y("label", {
84
84
  key: 0,
85
85
  class: "pointer-events-auto absolute left-0 top-0 h-full w-full cursor-text opacity-0",
86
86
  for: n(V)
87
- }, null, 8, X)) : y("", !0),
88
- n(u) !== "modal" ? (i(), f("input", {
87
+ }, null, 8, X)) : f("", !0),
88
+ n(u) !== "modal" ? (i(), y("input", {
89
89
  key: 1,
90
90
  id: n(V),
91
91
  class: "text-c-1 group-hover-input pl-1.25 md:-ml-1.25 pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded has-[:focus-visible]:outline",
92
92
  placeholder: E(),
93
93
  value: e.operation.summary,
94
94
  onInput: C
95
- }, null, 40, J)) : (i(), f("span", Y, U(e.operation.summary), 1))
95
+ }, null, 40, J)) : (i(), y("span", Y, U(e.operation.summary), 1))
96
96
  ]),
97
97
  t(Q, {
98
98
  modelValue: a.value,
@@ -101,13 +101,13 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
101
101
  filters: k.value
102
102
  }, null, 8, ["modelValue", "filterIds", "filters"])
103
103
  ]),
104
- default: v(() => [
104
+ default: d(() => [
105
105
  c("div", {
106
106
  id: r.value.All,
107
107
  class: "request-section-content custom-scroll relative flex flex-1 flex-col divide-y",
108
108
  role: a.value === "All" ? "tabpanel" : "none"
109
109
  }, [
110
- e.collection && e.workspace && (n(u) !== "modal" || Object.keys(n(B) ?? {}).length) ? s((i(), d(M, {
110
+ e.collection && e.workspace && (n(u) !== "modal" || Object.keys(n(B) ?? {}).length) ? s((i(), v(M, {
111
111
  key: 0,
112
112
  id: r.value.Auth,
113
113
  class: "request-section-content-auth border-b-0",
@@ -126,7 +126,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
126
126
  m,
127
127
  !w.value && (a.value === "All" || a.value === "Auth")
128
128
  ]
129
- ]) : y("", !0),
129
+ ]) : f("", !0),
130
130
  s(t(F, {
131
131
  id: r.value.Variables,
132
132
  class: "request-section-content-path-params",
@@ -145,7 +145,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
145
145
  (a.value === "All" || a.value === "Variables") && e.example.parameters.path.length
146
146
  ]
147
147
  ]),
148
- s(t(b, {
148
+ s(t(h, {
149
149
  id: r.value.Cookies,
150
150
  class: "request-section-content-cookies",
151
151
  envVariables: e.envVariables,
@@ -162,7 +162,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
162
162
  }, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "readOnlyEntries", "role", "workspace"]), [
163
163
  [m, a.value === "All" || a.value === "Cookies"]
164
164
  ]),
165
- s(t(b, {
165
+ s(t(h, {
166
166
  id: r.value.Headers,
167
167
  class: "request-section-content-headers",
168
168
  envVariables: e.envVariables,
@@ -178,7 +178,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
178
178
  }, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "role", "workspace"]), [
179
179
  [m, a.value === "All" || a.value === "Headers"]
180
180
  ]),
181
- s(t(b, {
181
+ s(t(h, {
182
182
  id: r.value.Query,
183
183
  class: "request-section-content-query",
184
184
  envVariables: e.envVariables,
@@ -194,7 +194,7 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
194
194
  }, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "role", "workspace"]), [
195
195
  [m, a.value === "All" || a.value === "Query"]
196
196
  ]),
197
- e.operation.method && (a.value === "All" || a.value === "Body") && n(h)(e.operation.method) ? (i(), d(j, {
197
+ e.operation.method && (a.value === "All" || a.value === "Body") && n(b)(e.operation.method) ? (i(), v(j, {
198
198
  key: 1,
199
199
  id: r.value.Body,
200
200
  class: "request-section-content-body",
@@ -205,18 +205,19 @@ const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
205
205
  role: a.value === "All" ? "none" : "tabpanel",
206
206
  title: "Body",
207
207
  workspace: e.workspace
208
- }, null, 8, ["id", "envVariables", "environment", "example", "operation", "role", "workspace"])) : y("", !0),
208
+ }, null, 8, ["id", "envVariables", "environment", "example", "operation", "role", "workspace"])) : f("", !0),
209
209
  o[1] || (o[1] = c("div", { class: "-my-0.25 flex flex-grow" }, null, -1)),
210
210
  t(n(D), null, {
211
- default: v(() => [
211
+ default: d(() => [
212
212
  t(T, {
213
213
  class: "request-section-content-code-example",
214
214
  collection: e.collection,
215
215
  example: e.example,
216
216
  operation: e.operation,
217
217
  server: e.server,
218
- workspace: e.workspace
219
- }, null, 8, ["collection", "example", "operation", "server", "workspace"])
218
+ workspace: e.workspace,
219
+ environment: e.envVariables
220
+ }, null, 8, ["collection", "example", "operation", "server", "workspace", "environment"])
220
221
  ]),
221
222
  _: 1
222
223
  })
@@ -1,4 +1,4 @@
1
- import { defineComponent as _, openBlock as d, createBlock as p, withCtx as n, createVNode as t, createTextVNode as f, toDisplayString as c, createElementBlock as b, Fragment as h, renderList as q, normalizeClass as v, unref as r, createElementVNode as i, createCommentVNode as k } from "vue";
1
+ import { defineComponent as _, createBlock as p, openBlock as d, withCtx as n, createVNode as t, createElementBlock as f, createTextVNode as b, toDisplayString as c, Fragment as h, renderList as q, normalizeClass as v, unref as r, createCommentVNode as k, createElementVNode as i } from "vue";
2
2
  import { ScalarTooltip as D, ScalarIcon as x, ScalarButton as B } from "@scalar/components";
3
3
  import { ScalarIconTrash as E } from "@scalar/icons";
4
4
  import { RouterLink as G } from "vue-router";
@@ -43,26 +43,26 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
43
43
  default: n(() => [
44
44
  t(w, null, {
45
45
  default: n(() => [
46
- f(c(e.label) + " Enabled", 1)
46
+ b(c(e.label) + " Enabled", 1)
47
47
  ]),
48
48
  _: 1
49
49
  }),
50
50
  t(w, null, {
51
51
  default: n(() => [
52
- f(c(e.label) + " Key", 1)
52
+ b(c(e.label) + " Key", 1)
53
53
  ]),
54
54
  _: 1
55
55
  }),
56
56
  t(w, null, {
57
57
  default: n(() => [
58
- f(c(e.label) + " Value", 1)
58
+ b(c(e.label) + " Value", 1)
59
59
  ]),
60
60
  _: 1
61
61
  })
62
62
  ]),
63
63
  _: 1
64
64
  }),
65
- (d(!0), b(h, null, q(e.items, (l, u) => (d(), p(C, {
65
+ (d(!0), f(h, null, q(e.items, (l, u) => (d(), p(C, {
66
66
  id: l.key,
67
67
  key: u,
68
68
  class: v({
@@ -189,7 +189,7 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
189
189
  default: n(() => {
190
190
  var a;
191
191
  return [
192
- l.file ? (d(), b(h, { key: 0 }, [
192
+ l.file ? (d(), f(h, { key: 0 }, [
193
193
  i("div", A, [
194
194
  i("span", null, c((a = l.file) == null ? void 0 : a.name), 1)
195
195
  ]),
@@ -198,7 +198,7 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
198
198
  type: "button",
199
199
  onClick: (I) => s("removeFile", u)
200
200
  }, " Delete ", 8, K)
201
- ], 64)) : (d(), b("div", L, [
201
+ ], 64)) : (d(), f("div", L, [
202
202
  t(r(B), {
203
203
  class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
204
204
  size: "sm",
@@ -1,4 +1,4 @@
1
- import { defineComponent as u, computed as c, openBlock as t, createBlock as n, unref as s, withCtx as m, createElementVNode as l, createElementBlock as i, toDisplayString as a, createCommentVNode as o } from "vue";
1
+ import { defineComponent as u, computed as c, createBlock as n, openBlock as t, unref as s, withCtx as m, createElementVNode as l, createElementBlock as i, createCommentVNode as a, toDisplayString as o } from "vue";
2
2
  import { ScalarTooltip as g } from "@scalar/components";
3
3
  import { ScalarIconWarning as f, ScalarIconInfo as y } from "@scalar/icons";
4
4
  import { parameterIsInvalid as p } from "../libs/request.js";
@@ -43,14 +43,14 @@ const h = ["aria-label", "role"], v = { class: "w-content bg-b-1 text-xxs text-c
43
43
  ]),
44
44
  content: m(() => [
45
45
  l("div", v, [
46
- r.value ? (t(), i("div", k, a(s(p)(e.item).value), 1)) : e.item.type || e.item.format || e.item.minimum || e.item.maximum || e.item.default ? (t(), i("div", b, [
47
- e.item.type ? (t(), i("span", _, a(e.item.type), 1)) : o("", !0),
48
- e.item.format ? (t(), i("span", I, a(e.item.format), 1)) : o("", !0),
49
- e.item.minimum ? (t(), i("span", w, "min: " + a(e.item.minimum), 1)) : o("", !0),
50
- e.item.maximum ? (t(), i("span", x, "max: " + a(e.item.maximum), 1)) : o("", !0),
51
- e.item.default ? (t(), i("span", C, "default: " + a(e.item.default), 1)) : o("", !0)
52
- ])) : o("", !0),
53
- e.item.description && !r.value ? (t(), i("span", S, a(e.item.description), 1)) : o("", !0)
46
+ r.value ? (t(), i("div", k, o(s(p)(e.item).value), 1)) : e.item.type || e.item.format || e.item.minimum || e.item.maximum || e.item.default ? (t(), i("div", b, [
47
+ e.item.type ? (t(), i("span", _, o(e.item.type), 1)) : a("", !0),
48
+ e.item.format ? (t(), i("span", I, o(e.item.format), 1)) : a("", !0),
49
+ e.item.minimum ? (t(), i("span", w, "min: " + o(e.item.minimum), 1)) : a("", !0),
50
+ e.item.maximum ? (t(), i("span", x, "max: " + o(e.item.maximum), 1)) : a("", !0),
51
+ e.item.default ? (t(), i("span", C, "default: " + o(e.item.default), 1)) : a("", !0)
52
+ ])) : a("", !0),
53
+ e.item.description && !r.value ? (t(), i("span", S, o(e.item.description), 1)) : a("", !0)
54
54
  ])
55
55
  ]),
56
56
  _: 1