@scalar/api-client 2.0.29 → 2.0.30

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 (39) hide show
  1. package/CHANGELOG.md +11 -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 +23 -23
  5. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  6. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  7. package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
  8. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
  9. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +5 -5
  10. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  11. package/dist/components/SideNav/SideNav.vue.js +5 -43
  12. package/dist/components/SideNav/SideNav.vue2.js +44 -2
  13. package/dist/components/SideNav/SideNavLink.vue.d.ts +2 -0
  14. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  15. package/dist/components/SideNav/SideNavLink.vue.js +29 -20
  16. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +1 -1
  17. package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
  18. package/dist/components/SubpageHeader.vue.js +1 -1
  19. package/dist/constants.d.ts +4 -0
  20. package/dist/constants.d.ts.map +1 -1
  21. package/dist/constants.js +4 -4
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +11 -10
  25. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  26. package/dist/layouts/App/ApiClientApp.vue.js +9 -9
  27. package/dist/router.d.ts +10 -4
  28. package/dist/router.d.ts.map +1 -1
  29. package/dist/router.js +31 -27
  30. package/dist/style.css +1 -1
  31. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  32. package/dist/views/Request/Request.vue.js +2 -2
  33. package/dist/views/Request/Request.vue2.js +11 -11
  34. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  35. package/dist/views/Request/RequestSection/RequestBody.vue.js +13 -13
  36. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  37. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  38. package/dist/views/Request/RequestSection/RequestTable.vue2.js +2 -2
  39. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.0.30
4
+
5
+ ### Patch Changes
6
+
7
+ - b4199e9: fix: api client app clean up (font sizes, spacing, etc)
8
+ - Updated dependencies [a5f3a84]
9
+ - Updated dependencies [9a08f46]
10
+ - @scalar/components@0.12.19
11
+ - @scalar/themes@0.9.16
12
+ - @scalar/oas-utils@0.2.17
13
+
3
14
  ## 2.0.29
4
15
 
5
16
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";AAwkBA,wBAKG"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";AAykBA,wBAKG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-231a70ec"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-48f9b777"]]);
5
5
  export {
6
- e as default
6
+ f as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as q, ref as m, watch as V, unref as l, openBlock as B, createElementBlock as I, createElementVNode as o, createVNode as r, withCtx as _, normalizeClass as b, normalizeStyle as R, createCommentVNode as z, pushScopeId as M, popScopeId as U } from "vue";
1
+ import { defineComponent as q, ref as c, watch as V, unref as l, openBlock as B, createElementBlock as I, createElementVNode as o, createVNode as s, withCtx as _, normalizeClass as b, normalizeStyle as R, createCommentVNode as z, pushScopeId as M, popScopeId as U } from "vue";
2
2
  import $ from "../CodeInput/CodeInput.vue.js";
3
3
  import { useWorkspace as O } from "../../store/workspace.js";
4
4
  import { Listbox as H } from "@headlessui/vue";
@@ -8,11 +8,11 @@ import { isMacOS as A } from "@scalar/use-tooltip";
8
8
  import { useMagicKeys as D, whenever as K } from "@vueuse/core";
9
9
  import Q from "../HttpMethod/HttpMethod.vue.js";
10
10
  import W from "./AddressBarHistory.vue.js";
11
- import { executeRequestBus as c } from "../../libs/eventBusses/executeRequestBus.js";
12
- const f = (n) => (M("data-v-231a70ec"), n = n(), U(), n), j = {
11
+ import { executeRequestBus as m } from "../../libs/eventBusses/executeRequestBus.js";
12
+ const f = (n) => (M("data-v-48f9b777"), n = n(), U(), n), j = {
13
13
  key: 0,
14
14
  class: "order-last lg:order-none lg:w-auto w-full"
15
- }, F = { class: "m-auto flex basis-1/2 flex-row items-center" }, G = { class: "pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden" }, J = { class: "flex gap-1" }, P = { class: "scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, X = /* @__PURE__ */ f(() => /* @__PURE__ */ o("div", { class: "fade-left" }, null, -1)), Y = /* @__PURE__ */ f(() => /* @__PURE__ */ o("div", { class: "fade-right" }, null, -1)), Z = /* @__PURE__ */ f(() => /* @__PURE__ */ o("span", { class: "text-xxs relative z-10 lg:flex hidden" }, "Send", -1)), me = /* @__PURE__ */ q({
15
+ }, F = { class: "m-auto flex basis-1/2 flex-row items-center" }, G = { class: "pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden" }, J = { class: "flex gap-1" }, P = { class: "scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, X = /* @__PURE__ */ f(() => /* @__PURE__ */ o("div", { class: "fade-left" }, null, -1)), Y = /* @__PURE__ */ f(() => /* @__PURE__ */ o("div", { class: "fade-right" }, null, -1)), Z = /* @__PURE__ */ f(() => /* @__PURE__ */ o("span", { class: "text-xxs relative z-10 lg:flex hidden" }, "Send", -1)), ce = /* @__PURE__ */ q({
16
16
  __name: "AddressBar",
17
17
  setup(n) {
18
18
  const {
@@ -22,10 +22,10 @@ const f = (n) => (M("data-v-231a70ec"), n = n(), U(), n), j = {
22
22
  requestMutators: v,
23
23
  requestExampleMutators: g,
24
24
  requestsHistory: w
25
- } = O(), x = m(w.value[0]), h = D();
25
+ } = O(), x = c(w.value[0]), h = D();
26
26
  K(
27
27
  A() ? h.meta_enter : h.ctrl_enter,
28
- () => c.emit()
28
+ () => m.emit()
29
29
  );
30
30
  const k = (e) => {
31
31
  !t.value || t.value.path === e || v.edit(t.value.uid, "path", e);
@@ -39,8 +39,8 @@ const f = (n) => (M("data-v-231a70ec"), n = n(), U(), n), j = {
39
39
  t.value && k(e);
40
40
  }
41
41
  );
42
- const d = m(100), u = m(!1);
43
- c.on(() => {
42
+ const d = c(100), u = c(!1);
43
+ m.on(() => {
44
44
  if (u.value) return;
45
45
  u.value = !0;
46
46
  const e = setInterval(() => {
@@ -58,18 +58,18 @@ const f = (n) => (M("data-v-231a70ec"), n = n(), U(), n), j = {
58
58
  const y = (e) => {
59
59
  i.value && g.edit(i.value.uid, "url", e);
60
60
  };
61
- return (e, a) => l(t) && l(i) ? (B(), I("div", j, [
61
+ return (e, r) => l(t) && l(i) ? (B(), I("div", j, [
62
62
  o("div", F, [
63
- r(l(H), {
63
+ s(l(H), {
64
64
  modelValue: x.value,
65
- "onUpdate:modelValue": a[2] || (a[2] = (s) => x.value = s)
65
+ "onUpdate:modelValue": r[2] || (r[2] = (a) => x.value = a)
66
66
  }, {
67
- default: _(({ open: s }) => [
67
+ default: _(({ open: a }) => [
68
68
  o("div", {
69
69
  class: b([
70
70
  "text-xxs bg-b-1 relative flex w-full lg:min-w-[720px] lg:max-w-[720px] order-last lg:order-none flex-1 flex-row items-stretch rounded border p-[3px]",
71
- { "rounded-b-none": s },
72
- { "border-transparent": s }
71
+ { "rounded-b-none": a },
72
+ { "border-transparent": a }
73
73
  ])
74
74
  }, [
75
75
  o("div", G, [
@@ -79,7 +79,7 @@ const f = (n) => (M("data-v-231a70ec"), n = n(), U(), n), j = {
79
79
  }, null, 6)
80
80
  ]),
81
81
  o("div", J, [
82
- r(Q, {
82
+ s(Q, {
83
83
  class: "font-code text-xxs font-medium",
84
84
  isEditable: !l(p),
85
85
  isSquare: "",
@@ -89,7 +89,7 @@ const f = (n) => (M("data-v-231a70ec"), n = n(), U(), n), j = {
89
89
  ]),
90
90
  o("div", P, [
91
91
  X,
92
- r($, {
92
+ s($, {
93
93
  disableCloseBrackets: "",
94
94
  disabled: l(p),
95
95
  disableEnter: "",
@@ -98,19 +98,19 @@ const f = (n) => (M("data-v-231a70ec"), n = n(), U(), n), j = {
98
98
  modelValue: l(i).url,
99
99
  placeholder: "Enter URL to get started",
100
100
  server: "",
101
- onSubmit: a[0] || (a[0] = (C) => l(c).emit()),
101
+ onSubmit: r[0] || (r[0] = (C) => l(m).emit()),
102
102
  "onUpdate:modelValue": y
103
103
  }, null, 8, ["disabled", "modelValue"]),
104
104
  Y
105
105
  ]),
106
- r(W, { open: s }, null, 8, ["open"]),
107
- r(l(N), {
108
- class: "relative h-auto shrink-0 gap-1 overflow-hidden pl-2 pr-2.5 py-1 z-[1]",
106
+ s(W, { open: a }, null, 8, ["open"]),
107
+ s(l(N), {
108
+ class: "relative h-auto shrink-0 gap-1 overflow-hidden pl-2 pr-2.5 py-1 z-[1] font-bold",
109
109
  disabled: u.value,
110
- onClick: a[1] || (a[1] = (C) => l(c).emit())
110
+ onClick: r[1] || (r[1] = (C) => l(m).emit())
111
111
  }, {
112
112
  default: _(() => [
113
- r(l(T), {
113
+ s(l(T), {
114
114
  class: "relative z-10 shrink-0 fill-current",
115
115
  icon: "Play",
116
116
  size: "xs"
@@ -128,5 +128,5 @@ const f = (n) => (M("data-v-231a70ec"), n = n(), U(), n), j = {
128
128
  }
129
129
  });
130
130
  export {
131
- me as default
131
+ ce as default
132
132
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OA6RO,EAGL,KAAK,kBAAkB,EAExB,MAAM,wBAAwB,CAAA;;kBAeb,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;kBACT,OAAO;;;;;;;;;;;;;;kBAlBP,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;kBACT,OAAO;;;;;;;;;;;;;;cAFV,OAAO;iBAEJ,OAAO;iBAlBP,OAAO;gBAGR,OAAO;sBAGD,OAAO;kBAMX,OAAO;0BACC,OAAO;mBAId,OAAO;;qBA8PG,GAAG;kBACN,GAAG;;AAnR9B,wBAsTC;AAMD,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAA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,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"}
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a5840d90"]]);
5
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-407f2835"]]);
6
6
  export {
7
7
  _ as default
8
8
  };
@@ -10,7 +10,7 @@ const j = ["id"], z = {
10
10
  class: "absolute centered-y right-7 text-orange text-xs"
11
11
  }, D = {
12
12
  key: 4,
13
- class: "required 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-has-[.cm-focused]:opacity-0"
13
+ class: "required 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-has-[.cm-focused]:opacity-0 pointer-events-none"
14
14
  }, G = {
15
15
  inheritAttrs: !1
16
16
  }, Z = /* @__PURE__ */ S({
@@ -1 +1 @@
1
- {"version":3,"file":"DarkModeIconToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DarkModeToggle/DarkModeIconToggle.vue"],"names":[],"mappings":";AAuGA,wBAKG"}
1
+ {"version":3,"file":"DarkModeIconToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DarkModeToggle/DarkModeIconToggle.vue"],"names":[],"mappings":";AAwGA,wBAKG"}
@@ -1,5 +1,5 @@
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
- import m from "../ScreenReader.vue.js";
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 m } from "vue";
2
+ import d from "../ScreenReader.vue.js";
3
3
  import { ScalarIcon as u } from "@scalar/components";
4
4
  import { useDarkModeState as f } from "../../hooks/useDarkModeState.js";
5
5
  const b = /* @__PURE__ */ c({
@@ -7,7 +7,7 @@ const b = /* @__PURE__ */ c({
7
7
  setup(g) {
8
8
  const { toggleDarkMode: t, isDark: n } = f();
9
9
  return (k, o) => (i(), l("button", {
10
- class: "w-[37px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[7px]",
10
+ class: "min-w-[37px] max-w-[42px] 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))
@@ -17,9 +17,9 @@ const b = /* @__PURE__ */ c({
17
17
  icon: "LightDarkModeToggle",
18
18
  thickness: "1.5"
19
19
  }),
20
- r(m, null, {
20
+ r(d, null, {
21
21
  default: s(() => [
22
- p(" Switch to " + d(e(n) ? "Light" : "Dark") + " Mode ", 1)
22
+ p(" Switch to " + m(e(n) ? "Light" : "Dark") + " Mode ", 1)
23
23
  ]),
24
24
  _: 1
25
25
  })
@@ -1 +1 @@
1
- {"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";AAwIA,wBAKG"}
1
+ {"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";AAkJA,wBAKG"}
@@ -1,45 +1,7 @@
1
- import { defineComponent as m, openBlock as t, createElementBlock as o, createVNode as r, createElementVNode as a, Fragment as _, renderList as f, unref as c, withCtx as p, createTextVNode as u, toDisplayString as d } from "vue";
2
- import x from "../DarkModeToggle/DarkModeIconToggle.vue.js";
3
- import { ROUTES as h } from "../../constants.js";
4
- import { useRouter as v } from "vue-router";
5
- import g from "./SideNavLink.vue.js";
6
- import N from "./WorkspaceProfileIcon.vue.js";
7
- /* empty css */
8
- const y = {
9
- "aria-label": "Side Navigation",
10
- class: "text-c-2 w-15 flex flex-col items-center px-2 py-2 scalar-sidenav",
11
- role: "navigation"
12
- }, S = { class: "mt-3.5 flex flex-col gap-1.5" }, k = { class: "mt-auto flex flex-col gap-2 py-1.5" }, E = { class: "flex items-center" }, L = /* @__PURE__ */ m({
13
- __name: "SideNav",
14
- setup(R) {
15
- const { currentRoute: n } = v();
16
- return (V, $) => (t(), o("nav", y, [
17
- r(N),
18
- a("ul", S, [
19
- (t(!0), o(_, null, f(c(h), ({ icon: s, name: e }, l) => {
20
- var i;
21
- return t(), o("li", { key: l }, [
22
- r(g, {
23
- active: (i = c(n).name) == null ? void 0 : i.startsWith(e),
24
- icon: s,
25
- name: e
26
- }, {
27
- default: p(() => [
28
- u(d(e), 1)
29
- ]),
30
- _: 2
31
- }, 1032, ["active", "icon", "name"])
32
- ]);
33
- }), 128))
34
- ]),
35
- a("ul", k, [
36
- a("li", E, [
37
- r(x)
38
- ])
39
- ])
40
- ]));
41
- }
42
- });
1
+ import o from "./SideNav.vue2.js";
2
+ /* empty css */
3
+ import a from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-10f3a9af"]]);
43
5
  export {
44
- L as default
6
+ m as default
45
7
  };
@@ -1,4 +1,46 @@
1
- import f from "./SideNav.vue.js";
1
+ import { defineComponent as _, openBlock as t, createElementBlock as o, createVNode as r, createElementVNode as a, Fragment as f, renderList as p, unref as c, withCtx as u, createTextVNode as d, toDisplayString as x } from "vue";
2
+ import v from "../DarkModeToggle/DarkModeIconToggle.vue.js";
3
+ import { ROUTES as h } from "../../constants.js";
4
+ import { useRouter as g } from "vue-router";
5
+ import N from "./SideNavLink.vue.js";
6
+ import y from "./WorkspaceProfileIcon.vue.js";
7
+ /* empty css */
8
+ const S = {
9
+ "aria-label": "Side Navigation",
10
+ class: "text-c-2 w-15 flex flex-col items-center px-2 py-2 scalar-sidenav relative",
11
+ role: "navigation"
12
+ }, k = { class: "mt-3.5 flex flex-col gap-1.5" }, E = { class: "mt-auto flex flex-col gap-2 py-1.5" }, R = { class: "flex items-center" }, O = /* @__PURE__ */ _({
13
+ __name: "SideNav",
14
+ setup(V) {
15
+ const { currentRoute: n } = g();
16
+ return ($, w) => (t(), o("nav", S, [
17
+ r(y),
18
+ a("ul", k, [
19
+ (t(!0), o(f, null, p(c(h), ({ icon: s, name: e, prettyName: l }, m) => {
20
+ var i;
21
+ return t(), o("li", { key: m }, [
22
+ r(N, {
23
+ active: (i = c(n).name) == null ? void 0 : i.startsWith(e),
24
+ icon: s,
25
+ name: e,
26
+ prettyName: l
27
+ }, {
28
+ default: u(() => [
29
+ d(x(e), 1)
30
+ ]),
31
+ _: 2
32
+ }, 1032, ["active", "icon", "name", "prettyName"])
33
+ ]);
34
+ }), 128))
35
+ ]),
36
+ a("ul", E, [
37
+ a("li", R, [
38
+ r(v)
39
+ ])
40
+ ])
41
+ ]));
42
+ }
43
+ });
2
44
  export {
3
- f as default
45
+ O as default
4
46
  };
@@ -7,10 +7,12 @@ declare function __VLS_template(): {
7
7
  declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
8
8
  icon: IconProps["icon"];
9
9
  name: (typeof ROUTES)[number]["name"];
10
+ prettyName: (typeof ROUTES)[number]["prettyName"];
10
11
  active?: boolean;
11
12
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
12
13
  icon: IconProps["icon"];
13
14
  name: (typeof ROUTES)[number]["name"];
15
+ prettyName: (typeof ROUTES)[number]["prettyName"];
14
16
  active?: boolean;
15
17
  }>>>, {}, {}>;
16
18
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -1 +1 @@
1
- {"version":3,"file":"SideNavLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNavLink.vue"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAI/C,KAAK,SAAS,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;AAgB1D,iBAAS,cAAc;qBAuDO,GAAG;EAgBhC;AACD,QAAA,MAAM,eAAe;UArFb,SAAS,CAAC,MAAM,CAAC;UACjB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC;aAC5B,OAAO;;UAFV,SAAS,CAAC,MAAM,CAAC;UACjB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC;aAC5B,OAAO;aAyFhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,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,CAA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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,36 +1,45 @@
1
- import { defineComponent as r, resolveComponent as a, openBlock as s, createBlock as c, normalizeClass as i, unref as o, withCtx as l, createVNode as p, createElementVNode as u, renderSlot as m } from "vue";
2
- import { useWorkspace as d } from "../../store/workspace.js";
3
- import { ScalarIcon as f } from "@scalar/components";
4
- const k = { class: "sr-only" }, x = /* @__PURE__ */ r({
1
+ import { defineComponent as a, resolveComponent as s, openBlock as i, createBlock as c, unref as t, withCtx as p, createElementVNode as o, normalizeClass as l, createVNode as m, toDisplayString as u, renderSlot as d } from "vue";
2
+ import { useWorkspace as f } from "../../store/workspace.js";
3
+ import { ScalarIcon as v } from "@scalar/components";
4
+ import { useRouter as _ } from "vue-router";
5
+ const k = { class: "no-underline font-medium text-[11px] hidden scalar-app-show capitalize" }, g = { class: "sr-only" }, b = /* @__PURE__ */ a({
5
6
  __name: "SideNavLink",
6
7
  props: {
7
8
  icon: {},
8
9
  name: {},
10
+ prettyName: {},
9
11
  active: { type: Boolean }
10
12
  },
11
- setup(v) {
12
- const { activeWorkspace: t } = d();
13
- return (e, _) => {
14
- const n = a("router-link");
15
- return s(), c(n, {
13
+ setup(h) {
14
+ const { activeWorkspace: n } = f();
15
+ return _(), (e, x) => {
16
+ const r = s("router-link");
17
+ return i(), c(r, {
16
18
  activeClass: "active-link",
17
- class: i(["w-[37px] hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[7px]", { "bg-b-2 transition-none hover:cursor-auto text-c-1": e.active }]),
18
- to: `/workspace/${o(t).uid}/${e.name}/default`
19
+ class: "flex flex-col items-center gap-1 group no-underline",
20
+ to: `/workspace/${t(n).uid}/${e.name}/default`
19
21
  }, {
20
- default: l(() => [
21
- p(o(f), {
22
- icon: e.icon,
23
- thickness: "1.5"
24
- }, null, 8, ["icon"]),
25
- u("span", k, [
26
- m(e.$slots, "default")
22
+ default: p(() => [
23
+ o("div", {
24
+ class: l(["min-w-[37px] max-w-[42px] group-hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[7px] scalar-app-nav-padding", {
25
+ "bg-b-2 transition-none group-hover:cursor-auto text-c-1": e.active
26
+ }])
27
+ }, [
28
+ m(t(v), {
29
+ icon: e.icon,
30
+ thickness: "1.5"
31
+ }, null, 8, ["icon"])
32
+ ], 2),
33
+ o("div", k, u(e.prettyName), 1),
34
+ o("span", g, [
35
+ d(e.$slots, "default")
27
36
  ])
28
37
  ]),
29
38
  _: 3
30
- }, 8, ["class", "to"]);
39
+ }, 8, ["to"]);
31
40
  };
32
41
  }
33
42
  });
34
43
  export {
35
- x as default
44
+ b as default
36
45
  };
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceProfileIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/WorkspaceProfileIcon.vue"],"names":[],"mappings":";iBAqGe;QACX,WAAW,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;KAClB;;iBAHY;QACX,WAAW,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;KAClB;;AAwEH,wBAMG;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":"WorkspaceProfileIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/WorkspaceProfileIcon.vue"],"names":[],"mappings":";iBAsGe;QACX,WAAW,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;KAClB;;iBAHY;QACX,WAAW,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;KAClB;;AAwEH,wBAMG;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 +1 @@
1
- {"version":3,"file":"SubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/SubpageHeader.vue"],"names":[],"mappings":"AA+BA,iBAAS,cAAc;qBA2EO,GAAG;EAchC;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/SubpageHeader.vue"],"names":[],"mappings":"AA+BA,iBAAS,cAAc;qBA4EO,GAAG;EAchC;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as r, resolveComponent as l, openBlock as s, createElementBlock as c, createElementVNode as t, createVNode as e, withCtx as a, unref as d, renderSlot as i } from "vue";
2
2
  import { ScalarIcon as u } from "@scalar/components";
3
- const p = { class: "flex flex-1 flex-col rounded-lg rounded-b-none rounded-r-none pt-0 h-full bg-b-2" }, m = { class: "lg:min-h-header items-center w-full p-1 t-app__top-container flex items-center" }, f = /* @__PURE__ */ t("span", null, "Back To Requests", -1), g = /* @__PURE__ */ r({
3
+ const p = { class: "flex flex-1 flex-col rounded-lg rounded-b-none rounded-r-none pt-0 h-full bg-b-2 relative" }, m = { class: "lg:min-h-header items-center w-full p-1 t-app__top-container flex items-center" }, f = /* @__PURE__ */ t("span", null, "Back To Requests", -1), g = /* @__PURE__ */ r({
4
4
  __name: "SubpageHeader",
5
5
  setup(_) {
6
6
  return (o, h) => {
@@ -1,13 +1,17 @@
1
1
  export declare const ROUTES: readonly [{
2
+ readonly prettyName: "Request";
2
3
  readonly name: "request";
3
4
  readonly icon: "ExternalLink";
4
5
  }, {
6
+ readonly prettyName: "Cookies";
5
7
  readonly name: "cookies";
6
8
  readonly icon: "Cookie";
7
9
  }, {
10
+ readonly prettyName: "Env Vars";
8
11
  readonly name: "environment";
9
12
  readonly icon: "Brackets";
10
13
  }, {
14
+ readonly prettyName: "Servers";
11
15
  readonly name: "servers";
12
16
  readonly icon: "Server";
13
17
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;EAMT,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;EAMT,CAAA"}
package/dist/constants.js CHANGED
@@ -1,8 +1,8 @@
1
1
  const e = [
2
- { name: "request", icon: "ExternalLink" },
3
- { name: "cookies", icon: "Cookie" },
4
- { name: "environment", icon: "Brackets" },
5
- { name: "servers", icon: "Server" }
2
+ { prettyName: "Request", name: "request", icon: "ExternalLink" },
3
+ { prettyName: "Cookies", name: "cookies", icon: "Cookie" },
4
+ { prettyName: "Env Vars", name: "environment", icon: "Brackets" },
5
+ { prettyName: "Servers", name: "servers", icon: "Server" }
6
6
  // { label: 'Git Sync', icon: 'Branch', path: '/git-sync' },
7
7
  ];
8
8
  export {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from './layouts/Modal/index.js';
2
2
  export * from './layouts/App/index.js';
3
3
  export { useWorkspace } from './store/workspace.js';
4
- export { modalRouter, router } from './router.js';
4
+ export { modalRouter, webHashRouter, router } from './router.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA"}
package/dist/index.js CHANGED
@@ -1,17 +1,18 @@
1
1
  import { useWorkspace as t } from "./store/workspace.js";
2
- import { modalRouter as a, router as i } from "./router.js";
3
- import { default as f } from "./layouts/App/ApiClientApp.vue.js";
2
+ import { modalRouter as a, router as i, webHashRouter as l } from "./router.js";
3
+ import { default as m } from "./layouts/App/ApiClientApp.vue.js";
4
4
  /* empty css */
5
- import { default as A } from "./layouts/Modal/ApiClientModal.vue.js";
6
- import { createApiClientModal as n, createApiClientModalSync as x } from "./layouts/Modal/api-client-modal.js";
7
- import { createApiClientApp as u } from "./layouts/App/createApiClientApp.js";
5
+ import { default as d } from "./layouts/Modal/ApiClientModal.vue.js";
6
+ import { createApiClientModal as u, createApiClientModalSync as x } from "./layouts/Modal/api-client-modal.js";
7
+ import { createApiClientApp as s } from "./layouts/App/createApiClientApp.js";
8
8
  export {
9
- f as ApiClientApp,
10
- A as ApiClientModal,
11
- u as createApiClientApp,
12
- n as createApiClientModal,
9
+ m as ApiClientApp,
10
+ d as ApiClientModal,
11
+ s as createApiClientApp,
12
+ u as createApiClientModal,
13
13
  x as createApiClientModalSync,
14
14
  a as modalRouter,
15
15
  i as router,
16
- t as useWorkspace
16
+ t as useWorkspace,
17
+ l as webHashRouter
17
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";AAiTA,wBAKG"}
1
+ {"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";AA4TA,wBAKG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, onMounted as u, watchEffect as _, onBeforeMount as g, computed as h, openBlock as r, createElementBlock as m, Fragment as k, createElementVNode as i, createVNode as a, unref as s, withCtx as v, createBlock as p, KeepAlive as y, resolveDynamicComponent as x, createCommentVNode as S } from "vue";
1
+ import { defineComponent as u, onMounted as f, watchEffect as _, onBeforeMount as g, computed as h, openBlock as r, createElementBlock as m, Fragment as k, createElementVNode as i, createVNode as a, unref as s, withCtx as v, createBlock as p, KeepAlive as y, resolveDynamicComponent as S, createCommentVNode as x } from "vue";
2
2
  import T from "../../components/SideNav/SideNav.vue.js";
3
3
  import C from "../../components/TopNav/TopNav.vue.js";
4
4
  import { useWorkspace as w } from "../../store/workspace.js";
@@ -9,19 +9,19 @@ import { ScalarToasts as W } from "@scalar/use-toasts";
9
9
  import { RouterView as A } from "vue-router";
10
10
  import { loadAllResources as E } from "../../libs/local-storage.js";
11
11
  import K from "../../components/CommandPalette/TheCommandPalette.vue.js";
12
- import { useDarkModeState as b } from "../../hooks/useDarkModeState.js";
13
- const N = ["innerHTML"], V = {
12
+ import { useDarkModeState as N } from "../../hooks/useDarkModeState.js";
13
+ const b = ["innerHTML"], V = {
14
14
  key: 0,
15
15
  class: "flex min-h-0 flex-1"
16
- }, D = { class: "flex flex-1 flex-col min-w-0" }, J = /* @__PURE__ */ f({
16
+ }, D = { class: "flex flex-1 flex-col min-w-0" }, J = /* @__PURE__ */ u({
17
17
  __name: "ApiClientApp",
18
18
  setup(F) {
19
- u(() => {
19
+ f(() => {
20
20
  _(() => {
21
21
  document.body.classList.toggle("dark-mode", n.value), document.body.classList.toggle("light-mode", !n.value);
22
22
  });
23
23
  });
24
- const { isDark: n } = b(), t = w();
24
+ const { isDark: n } = N(), t = w();
25
25
  g(async () => {
26
26
  if (localStorage.getItem(L.WORKSPACE)) {
27
27
  const l = {};
@@ -46,7 +46,7 @@ const N = ["innerHTML"], V = {
46
46
  return (l, c) => {
47
47
  var o;
48
48
  return r(), m(k, null, [
49
- i("div", { innerHTML: d.value }, null, 8, N),
49
+ i("div", { innerHTML: d.value }, null, 8, b),
50
50
  a(C),
51
51
  (o = s(t).activeWorkspace.value) != null && o.uid ? (r(), m("main", V, [
52
52
  a(T),
@@ -55,13 +55,13 @@ const N = ["innerHTML"], V = {
55
55
  a(s(A), null, {
56
56
  default: v(({ Component: e }) => [
57
57
  (r(), p(y, null, [
58
- (r(), p(x(e)))
58
+ (r(), p(S(e)))
59
59
  ], 1024))
60
60
  ]),
61
61
  _: 1
62
62
  })
63
63
  ])
64
- ])) : S("", !0),
64
+ ])) : x("", !0),
65
65
  a(s(W))
66
66
  ], 64);
67
67
  };
package/dist/router.d.ts CHANGED
@@ -8,7 +8,7 @@ export declare enum PathId {
8
8
  Servers = "servers",
9
9
  Workspace = "workspace"
10
10
  }
11
- /** Routes required by the client modal */
11
+ /** Routes required by the API client modal */
12
12
  export declare const modalRoutes: ({
13
13
  path: string;
14
14
  redirect: string;
@@ -21,7 +21,7 @@ export declare const modalRoutes: ({
21
21
  name?: undefined;
22
22
  component?: undefined;
23
23
  } | {
24
- name: string;
24
+ name: PathId;
25
25
  path: string;
26
26
  component: () => Promise<typeof import("./views/Request/Request.vue.js")>;
27
27
  redirect?: undefined;
@@ -29,10 +29,16 @@ export declare const modalRoutes: ({
29
29
  redirect?: undefined;
30
30
  })[];
31
31
  /**
32
- * Router for the API Client app
32
+ * Router for the API client app
33
33
  */
34
34
  export declare const router: import("vue-router").Router;
35
- /** Router for the API Client modal */
35
+ /**
36
+ * Router for the API client app (but using hash history)
37
+ */
38
+ export declare const webHashRouter: import("vue-router").Router;
39
+ /**
40
+ * Router for the API client modal
41
+ */
36
42
  export declare const modalRouter: import("vue-router").Router;
37
43
  export declare const activeRouterParams: import("vue").ComputedRef<{
38
44
  collection: string;
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAQA,oBAAY,MAAM;IAChB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAwBD,0CAA0C;AAC1C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;IAaI,CAAA;AA2E5B;;GAEG;AACH,eAAO,MAAM,MAAM,6BAGjB,CAAA;AAEF,sCAAsC;AACtC,eAAO,MAAM,WAAW,6BAGtB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;EA0B7B,CAAA;AAEF,gGAAgG;AAChG,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,QAmBtC"}
1
+ {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AASA,oBAAY,MAAM;IAChB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAwBD,8CAA8C;AAC9C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;IAaI,CAAA;AA2E5B;;GAEG;AACH,eAAO,MAAM,MAAM,6BAGjB,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,6BAGxB,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,6BAGtB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;EA4B7B,CAAA;AAEF,gGAAgG;AAChG,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,QAmBtC"}