@scalar/api-client 2.0.22 → 2.0.25

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 +48 -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 +80 -84
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +11 -10
  7. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  8. package/dist/components/CodeInput/CodeInput.vue.d.ts +10 -0
  9. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  10. package/dist/components/CodeInput/CodeInput.vue.js +3 -2
  11. package/dist/components/CodeInput/CodeInput.vue2.js +42 -37
  12. package/dist/components/CodeInput/codeDropdownWidget.d.ts +24 -0
  13. package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +1 -0
  14. package/dist/components/CodeInput/codeDropdownWidget.js +110 -0
  15. package/dist/components/CodeInput/codeVariableWidget.d.ts +8 -0
  16. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -0
  17. package/dist/components/CodeInput/codeVariableWidget.js +124 -0
  18. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -15
  19. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  20. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +51 -54
  21. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +4 -2
  22. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  23. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +106 -92
  24. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts +2 -15
  25. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
  26. package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +68 -74
  27. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -15
  28. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  29. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -62
  30. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -15
  31. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  32. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +106 -99
  33. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +7 -0
  34. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -0
  35. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +57 -0
  36. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +4 -0
  37. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +50 -0
  38. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -0
  39. package/dist/components/CommandPalette/TheCommandPalette.vue.js +9 -0
  40. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +198 -0
  41. package/dist/components/CommandPalette/index.d.ts +2 -0
  42. package/dist/components/CommandPalette/index.d.ts.map +1 -0
  43. package/dist/components/CommandPalette/index.js +4 -0
  44. package/dist/components/ContextBar.vue.js +4 -4
  45. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +7 -6
  46. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  47. package/dist/components/DataTable/DataTableCheckbox.vue.js +3 -2
  48. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  49. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  50. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  51. package/dist/components/DataTable/DataTableInput.vue2.js +36 -49
  52. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  53. package/dist/components/DataTable/DataTableInputSelect.vue.js +15 -14
  54. package/dist/components/Search/SearchButton.vue.d.ts.map +1 -1
  55. package/dist/components/Search/SearchButton.vue.js +7 -6
  56. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  57. package/dist/components/SideNav/SideNav.vue.js +26 -23
  58. package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -2
  59. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  60. package/dist/components/SideNav/SideNavLink.vue.js +18 -16
  61. package/dist/components/Sidebar/Sidebar.vue.d.ts +15 -2
  62. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  63. package/dist/components/Sidebar/Sidebar.vue.js +14 -12
  64. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  65. package/dist/components/Sidebar/SidebarButton.vue.js +5 -5
  66. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  67. package/dist/components/Sidebar/SidebarListElementActions.vue.js +2 -2
  68. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  69. package/dist/components/TopNav/TopNav.vue.js +1 -1
  70. package/dist/components/TopNav/TopNav.vue2.js +31 -29
  71. package/dist/components/TopNav/TopNavItem.vue.d.ts +7 -3
  72. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  73. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  74. package/dist/components/TopNav/TopNavItem.vue2.js +18 -18
  75. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  76. package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
  77. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  78. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -1
  79. package/dist/constants.d.ts +13 -7
  80. package/dist/constants.d.ts.map +1 -1
  81. package/dist/constants.js +4 -4
  82. package/dist/index.d.ts +2 -4
  83. package/dist/index.d.ts.map +1 -1
  84. package/dist/index.js +11 -16
  85. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -0
  86. package/dist/layouts/App/ApiClientApp.vue.js +72 -0
  87. package/dist/{App → layouts/App}/createApiClientApp.d.ts +1 -1
  88. package/dist/layouts/App/createApiClientApp.d.ts.map +1 -0
  89. package/dist/{App → layouts/App}/createApiClientApp.js +2 -2
  90. package/dist/layouts/App/index.d.ts.map +1 -0
  91. package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.d.ts +1 -0
  92. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -0
  93. package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.js +2 -2
  94. package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -0
  95. package/dist/{Modal → layouts/Modal}/api-client-modal.js +7 -7
  96. package/dist/layouts/Modal/index.d.ts.map +1 -0
  97. package/dist/libs/eventBusses/command-palette.d.ts +14 -0
  98. package/dist/libs/eventBusses/command-palette.d.ts.map +1 -0
  99. package/dist/libs/eventBusses/command-palette.js +5 -0
  100. package/dist/libs/local-storage.d.ts +1 -1
  101. package/dist/libs/local-storage.d.ts.map +1 -1
  102. package/dist/libs/local-storage.js +19 -19
  103. package/dist/router.d.ts +18 -6
  104. package/dist/router.d.ts.map +1 -1
  105. package/dist/router.js +107 -71
  106. package/dist/store/topNav.d.ts +94 -82
  107. package/dist/store/topNav.d.ts.map +1 -1
  108. package/dist/store/topNav.js +21 -20
  109. package/dist/store/workspace.d.ts +312 -82
  110. package/dist/store/workspace.d.ts.map +1 -1
  111. package/dist/store/workspace.js +299 -224
  112. package/dist/style.css +1 -1
  113. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  114. package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
  115. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  116. package/dist/views/Cookies/Cookies.vue2.js +9 -12
  117. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  118. package/dist/views/Environment/Environment.vue2.js +22 -25
  119. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  120. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -47
  121. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  122. package/dist/views/Request/Request.vue.js +1 -1
  123. package/dist/views/Request/Request.vue2.js +125 -108
  124. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
  125. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  126. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  127. package/dist/views/Request/RequestSection/RequestBody.vue.js +5 -4
  128. package/dist/views/Request/RequestSection/RequestSection.vue.js +3 -2
  129. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  130. package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -4
  131. package/dist/views/Request/RequestSection/RequestTable.vue2.js +22 -21
  132. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  133. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +6 -5
  134. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  135. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  136. package/dist/views/Request/RequestSidebarItem.vue2.js +84 -79
  137. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  138. package/dist/views/Request/RequestSidebarItemMenu.vue.js +58 -38
  139. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  140. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +3 -2
  141. package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
  142. package/dist/views/Request/components/OAuth2.vue.js +2 -0
  143. package/dist/{App.vue.d.ts → views/Request/components/WorkspaceDropdown.vue.d.ts} +1 -2
  144. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -0
  145. package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -0
  146. package/dist/views/Request/components/WorkspaceDropdown.vue2.js +4 -0
  147. package/dist/views/Request/components/index.d.ts +1 -0
  148. package/dist/views/Request/components/index.d.ts.map +1 -1
  149. package/dist/views/Request/components/index.js +4 -2
  150. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  151. package/dist/views/Servers/Servers.vue2.js +12 -15
  152. package/package.json +19 -15
  153. package/dist/App/ApiClientApp.vue.d.ts.map +0 -1
  154. package/dist/App/ApiClientApp.vue.js +0 -56
  155. package/dist/App/createApiClientApp.d.ts.map +0 -1
  156. package/dist/App/index.d.ts.map +0 -1
  157. package/dist/App.vue.d.ts.map +0 -1
  158. package/dist/App.vue.js +0 -77
  159. package/dist/App.vue3.js +0 -5
  160. package/dist/Modal/ApiClientModal.vue.d.ts.map +0 -1
  161. package/dist/Modal/api-client-modal.d.ts.map +0 -1
  162. package/dist/Modal/index.d.ts.map +0 -1
  163. package/dist/components/AddressBar/AddressBarServer.vue.js +0 -106
  164. package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
  165. package/dist/components/CommandPalette/CommandPalette.vue.d.ts +0 -17
  166. package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +0 -1
  167. package/dist/components/CommandPalette/CommandPalette.vue.js +0 -7
  168. package/dist/components/CommandPalette/CommandPalette.vue2.js +0 -184
  169. package/dist/main.d.ts +0 -2
  170. package/dist/main.d.ts.map +0 -1
  171. package/dist/views/Collection/Collection.vue.js +0 -4
  172. package/dist/views/Collection/Collection.vue2.js +0 -136
  173. package/dist/views/Components/Schemas/Schemas.vue.js +0 -4
  174. package/dist/views/Components/Schemas/Schemas.vue2.js +0 -20
  175. /package/dist/{App → layouts/App}/ApiClientApp.vue.d.ts +0 -0
  176. /package/dist/{App → layouts/App}/ApiClientApp.vue3.js +0 -0
  177. /package/dist/{App → layouts/App}/index.d.ts +0 -0
  178. /package/dist/{App → layouts/App}/index.js +0 -0
  179. /package/dist/{Modal → layouts/Modal}/ApiClientModal.vue2.js +0 -0
  180. /package/dist/{Modal → layouts/Modal}/api-client-modal.d.ts +0 -0
  181. /package/dist/{Modal → layouts/Modal}/index.d.ts +0 -0
  182. /package/dist/{Modal → layouts/Modal}/index.js +0 -0
@@ -0,0 +1,57 @@
1
+ import { defineComponent as m, ref as l, onMounted as d, openBlock as f, createElementBlock as h, withModifiers as w, createElementVNode as o, withDirectives as x, vModelText as _, createVNode as k, unref as b, withCtx as v, createTextVNode as N } from "vue";
2
+ import { useWorkspace as g } from "../../store/workspace.js";
3
+ import { ScalarButton as y } from "@scalar/components";
4
+ import { useRouter as C } from "vue-router";
5
+ const M = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, V = /* @__PURE__ */ o("label", {
6
+ class: "absolute w-full h-full opacity-0 cursor-text",
7
+ for: "workspacename"
8
+ }, null, -1), W = { class: "flex" }, B = /* @__PURE__ */ o("div", { class: "flex flex-1 gap-2 max-h-8" }, null, -1), P = /* @__PURE__ */ m({
9
+ __name: "CommandPaletteWorkspace",
10
+ emits: ["close"],
11
+ setup(S, { emit: n }) {
12
+ const r = n, { push: c } = C(), { workspaceMutators: u } = g(), t = l(""), i = () => {
13
+ const e = u.add({
14
+ name: t.value
15
+ });
16
+ c(`/workspace/${e.uid}`), r("close");
17
+ }, s = l(null);
18
+ return d(() => {
19
+ var e;
20
+ (e = s.value) == null || e.focus();
21
+ }), (e, a) => (f(), h("form", {
22
+ class: "flex w-full flex-col gap-3",
23
+ onSubmit: w(i, ["prevent"])
24
+ }, [
25
+ o("div", M, [
26
+ V,
27
+ x(o("input", {
28
+ id: "workspacename",
29
+ ref_key: "workspaceInput",
30
+ ref: s,
31
+ "onUpdate:modelValue": a[0] || (a[0] = (p) => t.value = p),
32
+ autofocus: "",
33
+ class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
34
+ label: "Workspace Name",
35
+ placeholder: "Workspace Name"
36
+ }, null, 512), [
37
+ [_, t.value]
38
+ ])
39
+ ]),
40
+ o("div", W, [
41
+ B,
42
+ k(b(y), {
43
+ class: "max-h-8 text-xs p-0 px-3",
44
+ type: "submit"
45
+ }, {
46
+ default: v(() => [
47
+ N(" Continue ")
48
+ ]),
49
+ _: 1
50
+ })
51
+ ])
52
+ ], 32));
53
+ }
54
+ });
55
+ export {
56
+ P as default
57
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./CommandPaletteWorkspace.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,50 @@
1
+ /**
2
+ * The Command Palette
3
+ *
4
+ * This component is a singleton so should only exist in our app once we will use the event bus to trigger it
5
+ */
6
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
7
+ export default _default;
8
+ export declare const PaletteComponents: {
9
+ readonly 'Import Collection': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ close: () => void;
11
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
12
+ onClose?: (() => any) | undefined;
13
+ }, {}, {}>;
14
+ readonly 'Create Request': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ close: () => void;
16
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
17
+ onClose?: (() => any) | undefined;
18
+ }, {}, {}>;
19
+ readonly 'Create Workspace': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ close: () => void;
21
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
22
+ onClose?: (() => any) | undefined;
23
+ }, {}, {}>;
24
+ readonly 'Add Folder': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ close: () => void;
26
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
27
+ onClose?: (() => any) | undefined;
28
+ }, {}, {}>;
29
+ readonly 'Create Collection': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ close: () => void;
31
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
32
+ onClose?: (() => any) | undefined;
33
+ }, {}, {}>;
34
+ readonly 'Add Example': import("vue").DefineComponent<{
35
+ metaData: {
36
+ type: import("vue").PropType<string>;
37
+ };
38
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
+ close: () => void;
40
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
41
+ metaData: {
42
+ type: import("vue").PropType<string>;
43
+ };
44
+ }>> & {
45
+ onClose?: (() => any) | undefined;
46
+ }, {}, {}>;
47
+ };
48
+ /** Infer the types from the commands */
49
+ export type CommandNames = keyof typeof PaletteComponents;
50
+ //# sourceMappingURL=TheCommandPalette.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAqWA;;;;GAIG;;AACH,wBA8XI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpB,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CACxD"}
@@ -0,0 +1,9 @@
1
+ import o from "./TheCommandPalette.vue2.js";
2
+ import { PaletteComponents as f } from "./TheCommandPalette.vue2.js";
3
+ /* empty css */
4
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-caaeb4c4"]]);
6
+ export {
7
+ f as PaletteComponents,
8
+ r as default
9
+ };
@@ -0,0 +1,198 @@
1
+ import { defineComponent as z, ref as d, computed as I, onMounted as M, onBeforeUnmount as P, openBlock as r, createElementBlock as s, Fragment as u, withDirectives as h, createElementVNode as m, vShow as A, unref as v, createVNode as $, vModelText as F, renderList as R, toDisplayString as E, normalizeClass as q, createTextVNode as N, createBlock as T, resolveDynamicComponent as U } from "vue";
2
+ import { useModal as G, ScalarIcon as S } from "@scalar/components";
3
+ import { useMagicKeys as H, whenever as C } from "@vueuse/core";
4
+ import { useRouter as K } from "vue-router";
5
+ import { commandPaletteBus as B } from "../../libs/eventBusses/command-palette.js";
6
+ import { useWorkspace as Q } from "../../store/workspace.js";
7
+ import j from "./CommandPaletteCollection.vue.js";
8
+ import J from "./CommandPaletteExample.vue.js";
9
+ import O from "./CommandPaletteFolder.vue.js";
10
+ import X from "./CommandPaletteImport.vue.js";
11
+ import Y from "./CommandPaletteRequest.vue.js";
12
+ import Z from "./CommandPaletteWorkspace.vue.js";
13
+ const ee = { class: "commandmenu" }, oe = { class: "bg-b-2 flex items-center rounded mb-2 pl-2 focus-within:bg-b-1 focus-within:shadow-border" }, te = { for: "commandmenu" }, ne = ["onClick"], ae = {
14
+ name: "TheCommandPalette"
15
+ }, le = {
16
+ "Import Collection": X,
17
+ "Create Request": Y,
18
+ "Create Workspace": Z,
19
+ "Add Folder": O,
20
+ "Create Collection": j,
21
+ "Add Example": J
22
+ }, ke = /* @__PURE__ */ z({
23
+ ...ae,
24
+ setup(re) {
25
+ const b = [
26
+ {
27
+ label: "Add to Request Sidebar",
28
+ commands: [
29
+ {
30
+ name: "Create Request",
31
+ icon: "ExternalLink"
32
+ },
33
+ {
34
+ name: "Import Collection",
35
+ icon: "Import"
36
+ },
37
+ {
38
+ name: "Add Folder",
39
+ icon: "Folder"
40
+ },
41
+ {
42
+ name: "Create Collection",
43
+ icon: "Collection"
44
+ },
45
+ {
46
+ name: "Add Example",
47
+ icon: "Example"
48
+ }
49
+ ]
50
+ },
51
+ {
52
+ label: "More Actions",
53
+ commands: [
54
+ {
55
+ name: "Create Workspace",
56
+ icon: "Workspace"
57
+ },
58
+ {
59
+ name: "Add Server",
60
+ icon: "Brackets",
61
+ path: "/servers"
62
+ },
63
+ {
64
+ name: "Add Environment",
65
+ icon: "Server",
66
+ path: "/environment"
67
+ },
68
+ {
69
+ name: "Add Cookie",
70
+ icon: "Cookie",
71
+ path: "/cookies"
72
+ }
73
+ ]
74
+ }
75
+ ], p = H(), a = G(), { push: V } = K(), { activeWorkspace: W } = Q(), g = d(), c = d(""), i = d(null), o = d(0), k = d([]), _ = I(
76
+ () => b.reduce((e, t) => {
77
+ const n = t.commands.filter(
78
+ (f) => f.name.toLowerCase().includes(c.value.toLowerCase())
79
+ );
80
+ return [...e, ...n];
81
+ }, [])
82
+ ), w = () => {
83
+ a.hide(), c.value = "", i.value = null;
84
+ };
85
+ C(p.escape, () => {
86
+ a.open && a.hide();
87
+ }), C(p.enter, () => {
88
+ if (!a.open) return;
89
+ const e = _.value[o.value];
90
+ L(e);
91
+ }), C(p.ArrowDown, () => {
92
+ var e;
93
+ a.open && (o.value < _.value.length - 1 ? o.value++ : o.value = 0, (e = k.value[o.value]) == null || e.scrollIntoView({
94
+ behavior: "smooth",
95
+ block: "center"
96
+ }));
97
+ }), C(p.ArrowUp, () => {
98
+ var e;
99
+ a.open && (o.value > 0 ? o.value-- : o.value = _.value.length - 1, (e = k.value[o.value]) == null || e.scrollIntoView({
100
+ behavior: "smooth",
101
+ block: "center"
102
+ }));
103
+ });
104
+ const L = (e) => {
105
+ "path" in e ? (V(`/workspace/${W.value.uid}${e.path}`), w()) : i.value = e.name;
106
+ }, D = ({
107
+ commandName: e,
108
+ metaData: t
109
+ } = {}) => {
110
+ i.value = e ?? null, g.value = t, a.show();
111
+ };
112
+ return M(() => B.on(D)), P(() => B.off(D)), (e, t) => (r(), s(u, null, [
113
+ h(m("div", {
114
+ class: "commandmenu-clickout",
115
+ onClick: t[0] || (t[0] = (n) => w())
116
+ }, null, 512), [
117
+ [A, v(a).open]
118
+ ]),
119
+ h(m("div", ee, [
120
+ i.value ? (r(), s(u, { key: 1 }, [
121
+ m("button", {
122
+ class: "absolute p-1 hover:bg-b-3 rounded text-c-3 active:text-c-1 m-1.5 z-10",
123
+ type: "button",
124
+ onClick: t[2] || (t[2] = (n) => i.value = null)
125
+ }, [
126
+ $(v(S), {
127
+ icon: "ChevronLeft",
128
+ size: "sm"
129
+ })
130
+ ]),
131
+ (r(), T(U(le[i.value]), {
132
+ metaData: g.value,
133
+ onClose: w
134
+ }, null, 40, ["metaData"]))
135
+ ], 64)) : (r(), s(u, { key: 0 }, [
136
+ m("div", oe, [
137
+ m("label", te, [
138
+ $(v(S), {
139
+ class: "text-c-1 mr-2.5",
140
+ icon: "Search",
141
+ size: "sm",
142
+ thickness: "1.5"
143
+ })
144
+ ]),
145
+ h(m("input", {
146
+ id: "commandmenu",
147
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => c.value = n),
148
+ class: "w-full rounded bg-none border-none py-1.5 text-sm focus:outline-none",
149
+ placeholder: "Search commands...",
150
+ type: "text"
151
+ }, null, 512), [
152
+ [F, c.value]
153
+ ])
154
+ ]),
155
+ (r(), s(u, null, R(b, (n, f) => (r(), s(u, {
156
+ key: n.label
157
+ }, [
158
+ h(m("div", { class: "text-c-3 font-medium text-xs mt-2" }, E(n.label), 513), [
159
+ [
160
+ A,
161
+ n.commands.filter(
162
+ (l) => l.name.toLowerCase().includes(c.value.toLowerCase())
163
+ ).length > 0
164
+ ]
165
+ ]),
166
+ (r(!0), s(u, null, R(n.commands.filter(
167
+ (l) => l.name.toLowerCase().includes(c.value.toLowerCase())
168
+ ), (l, x) => (r(), s("div", {
169
+ key: l.name,
170
+ ref_for: !0,
171
+ ref: (y) => {
172
+ y && (k.value[x] = y);
173
+ },
174
+ class: q(["commandmenu-item text-sm flex items-center py-1.5 px-2 rounded hover:bg-b-2 cursor-pointer", {
175
+ "bg-b-2": f > 0 ? o.value === x + b[f - 1].commands.length : o.value === x
176
+ }]),
177
+ onClick: (y) => L(l)
178
+ }, [
179
+ $(v(S), {
180
+ class: "text-c-1 mr-2.5",
181
+ icon: l.icon,
182
+ size: "md",
183
+ thickness: "1.5"
184
+ }, null, 8, ["icon"]),
185
+ N(" " + E(l.name), 1)
186
+ ], 10, ne))), 128))
187
+ ], 64))), 64))
188
+ ], 64))
189
+ ], 512), [
190
+ [A, v(a).open]
191
+ ])
192
+ ], 64));
193
+ }
194
+ });
195
+ export {
196
+ le as PaletteComponents,
197
+ ke as default
198
+ };
@@ -0,0 +1,2 @@
1
+ export { default as TheCommandPalette } from './TheCommandPalette.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as t } from "./TheCommandPalette.vue.js";
2
+ export {
3
+ t as TheCommandPalette
4
+ };
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as r, openBlock as n, createElementBlock as o, Fragment as i, renderList as s, normalizeClass as c, toDisplayString as a } from "vue";
2
- const b = { class: "request-section-content request-section-content-filter bg-b-2 text-c-3 bg-b-1 sticky top-0 z-10 mb-2.5 hidden xl:flex justify-center rounded p-[2.25px] text-xs gap-0.5" }, l = ["isActive", "onClick"], v = /* @__PURE__ */ r({
2
+ const p = { class: "request-section-content request-section-content-filter bg-b-2 text-c-3 bg-b-1 sticky top-0 z-10 mb-2.5 hidden xl:flex justify-center rounded p-[2.25px] text-xs gap-0.5" }, l = ["isActive", "onClick"], v = /* @__PURE__ */ r({
3
3
  __name: "ContextBar",
4
4
  props: {
5
5
  sections: {},
6
6
  activeSection: {}
7
7
  },
8
8
  emits: ["setActiveSection"],
9
- setup(p) {
10
- return (t, d) => (n(), o("div", b, [
9
+ setup(d) {
10
+ return (t, b) => (n(), o("div", p, [
11
11
  (n(!0), o(i, null, s(t.sections, (e) => (n(), o("button", {
12
12
  key: e,
13
13
  class: c(["hover:bg-b-3 w-full rounded px-1 py-1 text-center font-medium", [
14
- t.activeSection === e ? "!bg-b-1 text-c-1 dark:bg-b-3 border hover:bg-b-1" : "border border-transparent"
14
+ t.activeSection === e ? "bg-b-1 text-c-1 dark:bg-b-3 border pointer-events-none" : "border border-transparent"
15
15
  ]]),
16
16
  isActive: t.activeSection === e,
17
17
  type: "button",
@@ -1,20 +1,21 @@
1
- import { defineComponent as c, openBlock as l, createElementBlock as i, unref as e, createVNode as r, withCtx as s, createTextVNode as p, toDisplayString as d } from "vue";
1
+ import { defineComponent as c, openBlock as i, createElementBlock as l, unref as e, createVNode as r, withCtx as s, createTextVNode as p, toDisplayString as d } from "vue";
2
2
  import m from "../ScreenReader.vue.js";
3
3
  import { ScalarIcon as u } from "@scalar/components";
4
4
  import { useDarkModeState as f } from "../../hooks/useDarkModeState.js";
5
- const h = /* @__PURE__ */ c({
5
+ const b = /* @__PURE__ */ c({
6
6
  __name: "DarkModeIconToggle",
7
7
  setup(g) {
8
8
  const { toggleDarkMode: t, isDark: n } = f();
9
- return (k, o) => (l(), i("button", {
9
+ return (k, o) => (i(), l("button", {
10
10
  class: "w-[37px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[7px]",
11
11
  type: "button",
12
12
  onClick: o[0] || (o[0] = //@ts-ignore
13
13
  (...a) => e(t) && e(t)(...a))
14
14
  }, [
15
15
  r(e(u), {
16
- class: "block h-6 w-6 stroke-[1.5]",
17
- icon: "LightDarkModeToggle"
16
+ class: "block h-6 w-6",
17
+ icon: "LightDarkModeToggle",
18
+ thickness: "1.5"
18
19
  }),
19
20
  r(m, null, {
20
21
  default: s(() => [
@@ -26,5 +27,5 @@ const h = /* @__PURE__ */ c({
26
27
  }
27
28
  });
28
29
  export {
29
- h as default
30
+ b as default
30
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":";gBAwCc,OAAO;eACR,OAAO;;;;gBADN,OAAO;eACR,OAAO;;;;AAqGpB,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":";gBAyCc,OAAO;eACR,OAAO;;;;gBADN,OAAO;eACR,OAAO;;;;AAoGpB,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as a, openBlock as l, createBlock as s, withCtx as n, createElementVNode as t, createVNode as c, unref as d } from "vue";
2
2
  import { ScalarIcon as i } from "@scalar/components";
3
3
  import f from "./DataTableCell.vue.js";
4
- const p = ["checked", "disabled"], b = { class: "w-full h-full flex items-center justify-center centered text-border peer-checked:text-c-2 pointer-events-none absolute stroke-[1.2] before:absolute before:opacity-0 group-hover/cell:before:opacity-100 before:border before:rounded before:w-9/12 before:aspect-square before:top-1/2 before:left-1/2 before:transform before:-translate-x-1/2 before:-translate-y-1/2 before:border-[1px]" }, x = /* @__PURE__ */ a({
4
+ const p = ["checked", "disabled"], b = { class: "w-full h-full flex items-center justify-center centered text-border peer-checked:text-c-2 pointer-events-none absolute before:absolute before:opacity-0 group-hover/cell:before:opacity-100 before:border before:rounded before:w-9/12 before:aspect-square before:top-1/2 before:left-1/2 before:transform before:-translate-x-1/2 before:-translate-y-1/2 before:border-[1px]" }, x = /* @__PURE__ */ a({
5
5
  __name: "DataTableCheckbox",
6
6
  props: {
7
7
  modelValue: { type: Boolean },
@@ -22,7 +22,8 @@ const p = ["checked", "disabled"], b = { class: "w-full h-full flex items-center
22
22
  t("div", b, [
23
23
  c(d(i), {
24
24
  icon: "Checkmark",
25
- size: "xs"
25
+ size: "xs",
26
+ thickness: "2.5"
26
27
  })
27
28
  ])
28
29
  ]),
@@ -42,8 +42,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
42
42
  onInputFocus?: (() => any) | undefined;
43
43
  onInputBlur?: (() => any) | undefined;
44
44
  }, {
45
- readOnly: boolean;
46
45
  required: boolean;
46
+ readOnly: boolean;
47
47
  }, {}>;
48
48
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
49
49
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInput.vue.d.ts","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,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import t from "./DataTableInput.vue2.js";
2
2
  /* empty css */
3
- import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-266b624d"]]);
3
+ import a from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ a(t, [["__scopeId", "data-v-7949fbac"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,18 +1,17 @@
1
- import { defineComponent as $, ref as d, computed as x, openBlock as o, createBlock as p, normalizeClass as B, withCtx as q, createElementBlock as r, renderSlot as m, createCommentVNode as s, createElementVNode as f, Fragment as C, mergeProps as S, unref as D, createVNode as _ } from "vue";
2
- import F from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
3
- import { ScalarIconButton as I } from "@scalar/components";
4
- import M from "./DataTableCell.vue.js";
5
- import O from "./DataTableInputSelect.vue.js";
6
- const N = {
1
+ import { defineComponent as k, ref as i, computed as V, openBlock as o, createBlock as d, normalizeClass as b, withCtx as x, createElementBlock as r, renderSlot as p, createCommentVNode as s, createElementVNode as m, Fragment as B, mergeProps as $, unref as q } from "vue";
2
+ import { ScalarIconButton as C } from "@scalar/components";
3
+ import F from "./DataTableCell.vue.js";
4
+ import I from "./DataTableInputSelect.vue.js";
5
+ const O = {
7
6
  key: 0,
8
7
  class: "text-c-2 flex min-w-[100px] items-center border-r-1/2 pl-2 pr-0"
9
- }, P = { class: "row-1" }, E = ["id", "max", "min", "readOnly", "required", "type", "value"], H = {
8
+ }, S = { class: "row-1" }, P = ["id", "max", "min", "readOnly", "required", "type", "value"], _ = {
10
9
  key: 0,
11
10
  class: "absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-focus:opacity-0"
12
- }, T = {
11
+ }, D = {
13
12
  key: 1,
14
13
  class: "absolute centered-y right-7 text-orange text-xs"
15
- }, j = /* @__PURE__ */ $({
14
+ }, z = /* @__PURE__ */ k({
16
15
  inheritAttrs: !1,
17
16
  __name: "DataTableInput",
18
17
  props: {
@@ -27,36 +26,30 @@ const N = {
27
26
  max: {}
28
27
  },
29
28
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
30
- setup(v, { emit: y }) {
31
- const l = v, n = y, a = d(!0), c = d(""), u = d(!1), w = () => {
32
- u.value || n("inputBlur");
33
- }, h = x(
29
+ setup(c, { emit: f }) {
30
+ const l = c, n = f, a = i(!0), y = i(""), v = i(!1), w = () => {
31
+ v.value || n("inputBlur");
32
+ }, g = V(
34
33
  () => l.type === "password" ? a.value ? "password" : "text" : l.type ?? "text"
35
- ), V = (e) => {
34
+ ), h = (e) => {
36
35
  const t = e.target;
37
- c.value = t.value, n("update:modelValue", t.value);
38
- }, g = (e) => {
39
- n("update:modelValue", e);
40
- }, k = () => {
41
- u.value = !0;
42
- }, b = () => {
43
- u.value = !1;
36
+ y.value = t.value, n("update:modelValue", t.value);
44
37
  };
45
- return (e, t) => (o(), p(M, {
46
- class: B(["relative row", e.containerClass])
38
+ return (e, t) => (o(), d(F, {
39
+ class: b(["relative row", e.containerClass])
47
40
  }, {
48
- default: q(() => [
49
- e.$slots.default ? (o(), r("div", N, [
50
- m(e.$slots, "default", {}, void 0, !0)
41
+ default: x(() => [
42
+ e.$slots.default ? (o(), r("div", O, [
43
+ p(e.$slots, "default", {}, void 0, !0)
51
44
  ])) : s("", !0),
52
- f("div", P, [
53
- l.enum && l.enum.length ? (o(), p(O, {
45
+ m("div", S, [
46
+ l.enum && l.enum.length ? (o(), d(I, {
54
47
  key: 0,
55
48
  modelValue: l.modelValue,
56
49
  value: l.enum,
57
- "onUpdate:modelValue": t[0] || (t[0] = (i) => n("update:modelValue", i))
58
- }, null, 8, ["modelValue", "value"])) : (o(), r(C, { key: 1 }, [
59
- f("input", S(e.$attrs, {
50
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => n("update:modelValue", u))
51
+ }, null, 8, ["modelValue", "value"])) : (o(), r(B, { key: 1 }, [
52
+ m("input", $(e.$attrs, {
60
53
  id: e.id,
61
54
  autocomplete: "off",
62
55
  class: "border-none focus:text-c-1 text-c-2 min-w-0 w-full peer px-2 py-1.5 outline-none",
@@ -66,37 +59,31 @@ const N = {
66
59
  readOnly: e.readOnly,
67
60
  required: e.required,
68
61
  spellcheck: "false",
69
- type: h.value,
62
+ type: g.value,
70
63
  value: e.modelValue,
71
64
  onBlur: w,
72
- onFocus: t[1] || (t[1] = (i) => n("inputFocus")),
73
- onInput: V
74
- }), null, 16, E),
75
- e.required ? (o(), r("div", H, " Required ")) : s("", !0)
65
+ onFocus: t[1] || (t[1] = (u) => n("inputFocus")),
66
+ onInput: h
67
+ }), null, 16, P),
68
+ e.required ? (o(), r("div", _, " Required ")) : s("", !0)
76
69
  ], 64))
77
70
  ]),
78
- e.$slots.warning ? (o(), r("div", T, [
79
- m(e.$slots, "warning", {}, void 0, !0)
71
+ e.$slots.warning ? (o(), r("div", D, [
72
+ p(e.$slots, "warning", {}, void 0, !0)
80
73
  ])) : s("", !0),
81
- m(e.$slots, "icon", {}, void 0, !0),
82
- e.type === "password" ? (o(), p(D(I), {
74
+ p(e.$slots, "icon", {}, void 0, !0),
75
+ e.type === "password" ? (o(), d(q(C), {
83
76
  key: 2,
84
77
  class: "-ml-.5 mr-1 h-6 w-6 self-center p-1.5",
85
78
  icon: a.value ? "Show" : "Hide",
86
79
  label: a.value ? "Show Password" : "Hide Password",
87
- onClick: t[2] || (t[2] = (i) => a.value = !a.value)
88
- }, null, 8, ["icon", "label"])) : s("", !0),
89
- _(F, {
90
- query: c.value,
91
- onMousedown: k,
92
- onMouseup: b,
93
- onSelect: g
94
- }, null, 8, ["query"])
80
+ onClick: t[2] || (t[2] = (u) => a.value = !a.value)
81
+ }, null, 8, ["icon", "label"])) : s("", !0)
95
82
  ]),
96
83
  _: 3
97
84
  }, 8, ["class"]));
98
85
  }
99
86
  });
100
87
  export {
101
- j as default
88
+ z as default
102
89
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":";gBAyIc,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;;;;gBADJ,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;;;;AA0TlB,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAA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