@scalar/api-client 2.24.0 → 2.26.0

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 (81) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  3. package/dist/components/DataTable/DataTableCheckbox.vue.js +8 -8
  4. package/dist/style.css +1 -1
  5. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  6. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +28 -19
  7. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
  8. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +1 -1
  9. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
  10. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
  11. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +18 -18
  12. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  13. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -1
  14. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +2 -2
  15. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue2.js +19 -19
  16. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  17. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +26 -26
  18. package/dist/v2/components/callout/Callout.vue.d.ts +17 -0
  19. package/dist/v2/components/callout/Callout.vue.d.ts.map +1 -0
  20. package/dist/v2/components/callout/Callout.vue.js +7 -0
  21. package/dist/v2/components/callout/Callout.vue2.js +43 -0
  22. package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts.map +1 -1
  23. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +8 -8
  24. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -2
  25. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  26. package/dist/v2/components/sidebar/Sidebar.vue.js +40 -41
  27. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -2
  28. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  29. package/dist/v2/components/sidebar/SidebarMenu.vue.js +6 -6
  30. package/dist/v2/features/app/App.vue.d.ts +6 -3
  31. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  32. package/dist/v2/features/app/App.vue.js +87 -86
  33. package/dist/v2/features/app/app-events.d.ts +1 -1
  34. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  35. package/dist/v2/features/app/app-events.js +10 -10
  36. package/dist/v2/features/app/app-state.d.ts +77 -96
  37. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  38. package/dist/v2/features/app/app-state.js +339 -322
  39. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +2 -2
  40. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  41. package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
  42. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
  43. package/dist/v2/features/app/components/DesktopTabs.vue.js +1 -1
  44. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -2
  45. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  46. package/dist/v2/features/app/helpers/create-api-client-app.js +9 -9
  47. package/dist/v2/features/app/helpers/filter-workspaces.d.ts +49 -0
  48. package/dist/v2/features/app/helpers/filter-workspaces.d.ts.map +1 -0
  49. package/dist/v2/features/app/helpers/filter-workspaces.js +5 -0
  50. package/dist/v2/features/app/helpers/get-route-param.d.ts +7 -0
  51. package/dist/v2/features/app/helpers/get-route-param.d.ts.map +1 -0
  52. package/dist/v2/features/app/helpers/get-route-param.js +9 -0
  53. package/dist/v2/features/app/helpers/group-workspaces.d.ts +24 -0
  54. package/dist/v2/features/app/helpers/group-workspaces.d.ts.map +1 -0
  55. package/dist/v2/features/app/helpers/group-workspaces.js +23 -0
  56. package/dist/v2/features/app/index.d.ts +1 -1
  57. package/dist/v2/features/app/index.d.ts.map +1 -1
  58. package/dist/v2/features/app/index.js +12 -12
  59. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  60. package/dist/v2/features/collection/DocumentCollection.vue.js +72 -65
  61. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +29 -2
  62. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -1
  63. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +110 -106
  64. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts +5 -1
  65. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts.map +1 -1
  66. package/dist/v2/features/command-palette/helpers/load-document-from-source.js +41 -23
  67. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +41 -8
  68. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  69. package/dist/v2/features/command-palette/index.d.ts +1 -2
  70. package/dist/v2/features/command-palette/index.d.ts.map +1 -1
  71. package/dist/v2/features/command-palette/index.js +4 -6
  72. package/dist/v2/features/operation/Operation.vue.js +1 -1
  73. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  74. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
  75. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +24 -23
  76. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  77. package/package.json +10 -10
  78. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +0 -41
  79. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +0 -1
  80. package/dist/v2/features/app/components/WebTopNav.vue.js +0 -27
  81. package/dist/v2/features/app/components/WebTopNav.vue2.js +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":"build-request-body.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request-body.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAA;AAIjG;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC3B,aAAa,iBAAiB,GAAG,SAAS;AAC1C,8DAA8D;AAC9D,MAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;AAChC,qCAAqC;AACrC,mBAAsB,KACrB,QAAQ,GAAG,IAyDb,CAAA"}
1
+ {"version":3,"file":"build-request-body.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request-body.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAA;AAIjG;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC3B,aAAa,iBAAiB,GAAG,SAAS;AAC1C,8DAA8D;AAC9D,MAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;AAChC,qCAAqC;AACrC,mBAAsB,KACrB,QAAQ,GAAG,IAgFb,CAAA"}
@@ -1,26 +1,35 @@
1
- import { replaceEnvVariables as l } from "@scalar/helpers/regex/replace-variables";
2
- import { unpackProxyObject as m } from "@scalar/workspace-store/helpers/unpack-proxy";
3
- import { getExampleFromBody as u } from "../../request-block/helpers/get-request-body-example.js";
4
- const w = (e, a = {}, p = "default") => {
5
- if (!e)
1
+ import { replaceEnvVariables as n } from "@scalar/helpers/regex/replace-variables";
2
+ import { unpackProxyObject as u } from "@scalar/workspace-store/helpers/unpack-proxy";
3
+ import { getExampleFromBody as m } from "../../request-block/helpers/get-request-body-example.js";
4
+ const b = (i, a = {}, f = "default") => {
5
+ if (!i)
6
6
  return null;
7
- const r = e?.["x-scalar-selected-content-type"]?.[p] ?? Object.keys(e?.content ?? {})[0] ?? "application/json", t = u(e, r, p);
8
- if (!t)
7
+ const l = i?.["x-scalar-selected-content-type"]?.[f] ?? Object.keys(i?.content ?? {})[0] ?? "application/json", e = m(i, l, f);
8
+ if (!e)
9
9
  return null;
10
- if ((r === "multipart/form-data" || r === "application/x-www-form-urlencoded") && Array.isArray(t.value)) {
11
- const s = t.value.filter((o) => !o.isDisabled), n = r === "multipart/form-data" ? new FormData() : new URLSearchParams();
12
- return s.forEach(({ name: o, value: i }) => {
13
- if (!o)
10
+ if ((l === "multipart/form-data" || l === "application/x-www-form-urlencoded") && Array.isArray(e.value)) {
11
+ const c = e.value.filter((t) => !t.isDisabled), r = l === "multipart/form-data" ? new FormData() : new URLSearchParams();
12
+ return c.forEach(({ name: t, value: o }) => {
13
+ if (!t)
14
14
  return;
15
- const c = l(o, a);
16
- if (i instanceof File && n instanceof FormData) {
17
- const f = m(i);
18
- n.append(c, f, f.name);
19
- } else typeof i == "string" && n.append(c, l(i, a));
20
- }), n;
15
+ const p = n(t, a);
16
+ if (o instanceof File && r instanceof FormData) {
17
+ const s = u(o);
18
+ r.append(p, s, s.name);
19
+ } else typeof o == "string" && r.append(p, n(o, a));
20
+ }), r;
21
+ }
22
+ if (l === "application/x-www-form-urlencoded" && e.value !== null && typeof e.value == "object" && !Array.isArray(e.value)) {
23
+ const c = new URLSearchParams();
24
+ for (const [r, t] of Object.entries(e.value))
25
+ if (r && t !== void 0 && t !== null) {
26
+ const o = n(r, a), p = typeof t == "string" ? t : String(t);
27
+ c.append(o, n(p, a));
28
+ }
29
+ return c;
21
30
  }
22
- return typeof t.value == "object" ? l(JSON.stringify(t.value), a) : typeof t.value == "string" ? l(t.value, a) : t.value;
31
+ return typeof e.value == "object" ? n(JSON.stringify(e.value), a) : typeof e.value == "string" ? n(e.value, a) : e.value;
23
32
  };
24
33
  export {
25
- w as buildRequestBody
34
+ b as buildRequestBody
26
35
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OperationCodeSample.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-code-sample/components/OperationCodeSample.vue"],"names":[],"mappings":"AAycA,OAAO,KAAK,EAAE,UAAU,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AAE,CAAA;CAChC,CAAA;AAED;;;;;;;;GAQG;;YAqBO,MAAM,OAAO;YACb,MAAM,OAAO;;AArBvB,wBA2fC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"OperationCodeSample.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-code-sample/components/OperationCodeSample.vue"],"names":[],"mappings":"AAycA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAErF,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AASrE,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,yCAAyC,CAAA;AAChD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAA;AAM7G,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;OAGG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;IACpC;;OAEG;IACH,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC;;;;OAIG;IACH,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACzC;;OAEG;IACH,cAAc,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IACpC;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;IAC3B;;OAEG;IACH,eAAe,EAAE,0BAA0B,EAAE,CAAA;IAC7C;;OAEG;IACH,MAAM,EAAE,cAAc,CAAA;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,SAAS,EAAE,eAAe,CAAA;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,MAAM,CAAA;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,EAAE,CAAA;CAChC,CAAA;AAED;;;;;;;;GAQG;;YAqBO,MAAM,OAAO;YACb,MAAM,OAAO;;AArBvB,wBA0fC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./OperationCodeSample.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8dad5801"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5c3c83a9"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -161,7 +161,7 @@ const te = ["innerHTML"], le = ["id"], ae = {
161
161
  text: h.value
162
162
  }, null, 8, ["text"])) : (s(), u(a(F), {
163
163
  key: 0,
164
- class: "bg-b-2 !min-h-full -outline-offset-2",
164
+ class: "bg-b-2 h-full",
165
165
  content: h.value,
166
166
  hideCredentials: H.value,
167
167
  lang: B.value,
@@ -1 +1 @@
1
- {"version":3,"file":"RequestCodeSnippet.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestCodeSnippet.vue"],"names":[],"mappings":"AAmKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAQvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sEAAsE,CAAA;AAQpH,KAAK,WAAW,GAAG,wBAAwB,GAAG;IAAE,QAAQ,EAAE,iBAAiB,CAAA;CAAE,CAAC;;AAiR9E,wBAMG"}
1
+ {"version":3,"file":"RequestCodeSnippet.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestCodeSnippet.vue"],"names":[],"mappings":"AAmKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAQvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sEAAsE,CAAA;AAQpH,KAAK,WAAW,GAAG,wBAAwB,GAAG;IAAE,QAAQ,EAAE,iBAAiB,CAAA;CAAE,CAAC;;AAgR9E,wBAMG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as g, computed as s, ref as S, watch as x, withDirectives as b, createBlock as y, openBlock as w, unref as l, withCtx as o, createVNode as n, createElementVNode as u, createTextVNode as m, toDisplayString as k, normalizeClass as B, vShow as V } from "vue";
1
+ import { defineComponent as g, computed as s, ref as S, watch as x, withDirectives as b, createBlock as y, openBlock as w, unref as l, withCtx as a, createVNode as n, createElementVNode as m, createTextVNode as u, toDisplayString as k, normalizeClass as B, vShow as V } from "vue";
2
2
  import { ScalarErrorBoundary as D, ScalarCodeBlock as T, ScalarCombobox as E, ScalarButton as N } from "@scalar/components";
3
3
  import { ScalarIconCaretDown as O } from "@scalar/icons";
4
4
  import { generateCodeSnippet as z } from "../../operation-code-sample/helpers/generate-code-snippet.js";
@@ -37,8 +37,8 @@ const H = { class: "flex flex-1" }, L = { class: "overflow-hidden" }, Z = /* @__
37
37
  x(
38
38
  () => e.selectedClient,
39
39
  (t) => {
40
- const a = f(c.value, t);
41
- a && (i.value = a);
40
+ const o = f(c.value, t);
41
+ o && (i.value = o);
42
42
  }
43
43
  );
44
44
  const p = s(() => W(e.securitySchemes ?? [])), C = (t) => {
@@ -60,29 +60,29 @@ const H = { class: "flex flex-1" }, L = { class: "overflow-hidden" }, Z = /* @__
60
60
  ), h = s(
61
61
  () => c.value.some((t) => t.options.length > 0)
62
62
  );
63
- return (t, a) => b((w(), y(l($), {
63
+ return (t, o) => b((w(), y(l($), {
64
64
  class: "group/preview w-full border-t",
65
65
  defaultOpen: !1
66
66
  }, {
67
- title: o(() => [...a[1] || (a[1] = [
68
- m("Code Snippet", -1)
67
+ title: a(() => [...o[1] || (o[1] = [
68
+ u("Code Snippet", -1)
69
69
  ])]),
70
- actions: o(() => [
71
- u("div", H, [
70
+ actions: a(() => [
71
+ m("div", H, [
72
72
  n(l(E), {
73
73
  modelValue: i.value,
74
74
  options: c.value,
75
75
  placement: "bottom-end",
76
- "onUpdate:modelValue": a[0] || (a[0] = (r) => C(r))
76
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => C(r))
77
77
  }, {
78
- default: o(({ open: r }) => [
78
+ default: a(({ open: r }) => [
79
79
  n(l(N), {
80
80
  class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-0.5 py-0 text-base font-normal",
81
81
  "data-testid": "client-picker",
82
82
  variant: "ghost"
83
83
  }, {
84
- default: o(() => [
85
- m(k(i.value?.title) + " ", 1),
84
+ default: a(() => [
85
+ u(k(i.value?.title) + " ", 1),
86
86
  n(l(O), {
87
87
  class: B(["mt-0.25 size-3 transition-transform duration-100", r && "rotate-180"]),
88
88
  weight: "bold"
@@ -95,19 +95,19 @@ const H = { class: "flex flex-1" }, L = { class: "overflow-hidden" }, Z = /* @__
95
95
  }, 8, ["modelValue", "options"])
96
96
  ])
97
97
  ]),
98
- default: o(() => [
98
+ default: a(() => [
99
99
  n(l(D), null, {
100
- default: o(() => [
100
+ default: a(() => [
101
101
  n(l(q), {
102
102
  columns: [""],
103
103
  presentational: ""
104
104
  }, {
105
- default: o(() => [
105
+ default: a(() => [
106
106
  n(l(F), null, {
107
- default: o(() => [
108
- u("div", L, [
107
+ default: a(() => [
108
+ m("div", L, [
109
109
  n(l(T), {
110
- class: "text-base -outline-offset-2",
110
+ class: "text-base",
111
111
  content: v.value,
112
112
  hideCredentials: p.value,
113
113
  lang: i.value?.lang ?? "plaintext",
@@ -1,7 +1,7 @@
1
1
  import { canMethodHaveBody as p } from "@scalar/helpers/http/can-method-have-body";
2
2
  import { getResolvedRef as n } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
3
  import { isElectron as u } from "../../../../libs/electron.js";
4
- const i = "2.24.0", m = "application/json", h = "*/*", c = (r, t, o) => ({
4
+ const i = "2.26.0", m = "application/json", h = "*/*", c = (r, t, o) => ({
5
5
  name: r,
6
6
  defaultValue: t,
7
7
  isOverridden: o.has(r.toLowerCase())
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseBodyRaw.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/response-block/components/ResponseBodyRaw.vue"],"names":[],"mappings":"AAmEA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAG/E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,GAAG,CAAA;IACZ,QAAQ,EAAE,kBAAkB,GAAG,SAAS,CAAA;CACzC,CAAC;;AAsGF,wBAMG"}
1
+ {"version":3,"file":"ResponseBodyRaw.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/response-block/components/ResponseBodyRaw.vue"],"names":[],"mappings":"AAmEA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAG/E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,GAAG,CAAA;IACZ,QAAQ,EAAE,kBAAkB,GAAG,SAAS,CAAA;CACzC,CAAC;;AAuGF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseBodyRaw.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-10022578"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9c64cd5e"]]);
5
5
  export {
6
- a as default
6
+ s as default
7
7
  };
@@ -1,38 +1,38 @@
1
- import { defineComponent as i, ref as u, useId as p, toRef as r, createElementBlock as m, openBlock as n, createBlock as f, createCommentVNode as _, createElementVNode as c, unref as l } from "vue";
2
- import { ScalarCodeBlockCopy as g } from "@scalar/components";
3
- import { prettyPrintJson as k } from "@scalar/oas-utils/helpers";
4
- import { useCodeMirror as y } from "@scalar/use-codemirror";
5
- const b = { class: "scalar-code-block group/code-block body-raw grid min-h-0 overflow-hidden p-px outline-none has-[:focus-visible]:outline" }, v = {
1
+ import { defineComponent as d, ref as u, useId as p, toRef as t, createElementBlock as m, openBlock as n, createElementVNode as c, createBlock as f, createCommentVNode as g, unref as l } from "vue";
2
+ import { ScalarCodeBlockCopy as _ } from "@scalar/components";
3
+ import { prettyPrintJson as b } from "@scalar/oas-utils/helpers";
4
+ import { useCodeMirror as k } from "@scalar/use-codemirror";
5
+ const v = { class: "scalar-code-block group/code-block body-raw relative grid min-h-0 overflow-hidden p-px outline-none has-focus-visible:outline" }, y = {
6
6
  class: "body-raw-scroller custom-scroll relative pr-1",
7
7
  tabindex: "0"
8
- }, M = /* @__PURE__ */ i({
8
+ }, M = /* @__PURE__ */ d({
9
9
  __name: "ResponseBodyRaw",
10
10
  props: {
11
11
  content: {},
12
12
  language: {}
13
13
  },
14
14
  setup(s) {
15
- const e = s, o = u(null), a = p(), { codeMirror: d } = y({
15
+ const e = s, o = u(null), a = p(), { codeMirror: i } = k({
16
16
  codeMirrorRef: o,
17
17
  readOnly: !0,
18
18
  lineNumbers: !0,
19
- content: r(() => k(e.content)),
20
- language: r(() => e.language),
19
+ content: t(() => b(e.content)),
20
+ language: t(() => e.language),
21
21
  forceFoldGutter: !0
22
- }), t = () => d.value?.state.doc.toString() || "";
23
- return (C, h) => (n(), m("div", b, [
24
- t() ? (n(), f(l(g), {
25
- key: 0,
26
- class: "z-context top-2 mr-2",
27
- content: t(),
28
- controls: l(a)
29
- }, null, 8, ["content", "controls"])) : _("", !0),
30
- c("div", v, [
22
+ }), r = () => i.value?.state.doc.toString() || "";
23
+ return (h, C) => (n(), m("div", v, [
24
+ c("div", y, [
31
25
  c("div", {
32
26
  ref_key: "codeMirrorRef",
33
27
  ref: o
34
28
  }, null, 512)
35
- ])
29
+ ]),
30
+ r() ? (n(), f(l(_), {
31
+ key: 0,
32
+ class: "absolute top-2 right-2",
33
+ content: r(),
34
+ "aria-controls": l(a)
35
+ }, null, 8, ["content", "aria-controls"])) : g("", !0)
36
36
  ]));
37
37
  }
38
38
  });
@@ -1 +1 @@
1
- {"version":3,"file":"AuthSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue"],"names":[],"mappings":"AAmTA,OAAO,EAML,KAAK,IAAI,EAEV,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AAGvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EAEf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAA;AAC1G,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,gEAAgE,CAAA;AAKvE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,qBAAqB,CAAA;IACtC,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,CAAA;IAC9C,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;;cA8BqC,IAAI;cAAQ,MAAM;;;;;AA4bzD,wBAOG"}
1
+ {"version":3,"file":"AuthSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue"],"names":[],"mappings":"AAmTA,OAAO,EAML,KAAK,IAAI,EAEV,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AAGvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EAEf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAA;AAC1G,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,gEAAgE,CAAA;AAKvE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,qBAAqB,CAAA;IACtC,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,CAAA;IAC9C,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;;cA8BqC,IAAI;cAAQ,MAAM;;;;;AA6bzD,wBAOG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as U, useId as $, ref as p, computed as x, createBlock as S, openBlock as c, unref as s, withCtx as r, createVNode as m, createCommentVNode as b, createElementBlock as v, Fragment as g, createElementVNode as u, createTextVNode as k, toDisplayString as y, withModifiers as q, normalizeClass as M } from "vue";
1
+ import { defineComponent as U, useId as $, ref as p, computed as S, createBlock as x, openBlock as c, unref as s, withCtx as r, createVNode as m, createCommentVNode as b, createElementBlock as v, Fragment as g, createElementVNode as u, createTextVNode as k, toDisplayString as y, withModifiers as q, normalizeClass as M } from "vue";
2
2
  import { useModal as N, ScalarComboboxMultiselect as T, ScalarButton as j, ScalarListboxCheckbox as z, ScalarIconButton as E } from "@scalar/components";
3
3
  import { ScalarIconCaretDown as L, ScalarIconTrash as P } from "@scalar/icons";
4
4
  import { getResolvedRef as F } from "@scalar/workspace-store/helpers/get-resolved-ref";
@@ -23,7 +23,7 @@ const Z = ["id"], _ = { class: "min-w-0 flex-1 truncate" }, ue = /* @__PURE__ */
23
23
  title: {}
24
24
  },
25
25
  setup(e, { expose: I }) {
26
- const C = $(), B = p(null), O = p(!1), d = N(), o = p(null), h = x(() => {
26
+ const C = $(), B = p(null), O = p(!1), d = N(), o = p(null), h = S(() => {
27
27
  if (!e.securityRequirements?.length)
28
28
  return null;
29
29
  const l = J(e.securityRequirements);
@@ -31,26 +31,26 @@ const Z = ["id"], _ = { class: "min-w-0 flex-1 truncate" }, ue = /* @__PURE__ */
31
31
  icon: l ? "Unlock" : "Lock",
32
32
  text: l ? "Optional" : "Required"
33
33
  };
34
- }), R = x(
34
+ }), R = S(
35
35
  () => K(
36
36
  e.securityRequirements ?? [],
37
37
  e.securitySchemes ?? {},
38
38
  e.selectedSecurity?.selectedSchemes ?? []
39
39
  )
40
- ), i = x(() => {
40
+ ), i = S(() => {
41
41
  const l = e.selectedSecurity?.selectedSchemes;
42
42
  return l?.length ? l.flatMap((t) => {
43
- const n = Object.keys(t);
44
- if (n.length === 0)
43
+ const a = Object.keys(t);
44
+ if (a.length === 0)
45
45
  return [];
46
- if (n.length > 1)
46
+ if (a.length > 1)
47
47
  return Q(t);
48
- const a = n[0];
49
- if (!a)
48
+ const n = a[0];
49
+ if (!n)
50
50
  return [];
51
- const f = F(e.securitySchemes?.[a]);
51
+ const f = F(e.securitySchemes?.[n]);
52
52
  return f ? W({
53
- name: a,
53
+ name: n,
54
54
  type: f.type,
55
55
  value: t
56
56
  }) : [];
@@ -58,13 +58,13 @@ const Z = ["id"], _ = { class: "min-w-0 flex-1 truncate" }, ue = /* @__PURE__ */
58
58
  }), w = (l) => {
59
59
  O.value && l.stopPropagation(), B.value?.$el.click();
60
60
  }, A = (l) => {
61
- const t = l.filter((a) => a.payload === void 0).map((a) => G(a.value, { depth: 2 })), n = l.filter((a) => a.payload !== void 0).map((a) => ({
62
- name: a.label,
63
- scheme: a.payload
61
+ const t = l.filter((n) => n.payload === void 0).map((n) => G(n.value, { depth: 2 })), a = l.filter((n) => n.payload !== void 0).map((n) => ({
62
+ name: n.label,
63
+ scheme: n.payload
64
64
  }));
65
65
  e.eventBus.emit("auth:update:selected-security-schemes", {
66
66
  selectedRequirements: t,
67
- newSchemes: n,
67
+ newSchemes: a,
68
68
  meta: e.meta
69
69
  });
70
70
  }, D = (l) => {
@@ -78,11 +78,11 @@ const Z = ["id"], _ = { class: "min-w-0 flex-1 truncate" }, ue = /* @__PURE__ */
78
78
  authIndicator: h,
79
79
  selectedSchemeOptions: i,
80
80
  schemeOptions: R
81
- }), (l, t) => (c(), S(s(Y), {
81
+ }), (l, t) => (c(), x(s(Y), {
82
82
  class: "group/params relative",
83
83
  isStatic: e.isStatic,
84
84
  itemCount: i.value.length,
85
- "onUpdate:modelValue": t[1] || (t[1] = (n) => O.value = n)
85
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => O.value = a)
86
86
  }, {
87
87
  title: r(() => [
88
88
  u("div", {
@@ -92,7 +92,7 @@ const Z = ["id"], _ = { class: "min-w-0 flex-1 truncate" }, ue = /* @__PURE__ */
92
92
  u("span", null, y(e.title), 1),
93
93
  h.value ? (c(), v("span", {
94
94
  key: 0,
95
- class: M(["text-c-3 hover:bg-b-3 hover:text-c-1 -mr-1 cursor-pointer rounded px-1 py-0.5 text-xs leading-[normal]", { "text-c-1": h.value.text === "Required" }]),
95
+ class: M(["text-c-3 hover:bg-b-3 hover:text-c-1 -my-0.5 -mr-1 cursor-pointer rounded px-1 py-0.5 leading-[normal] font-normal", { "text-c-1": h.value.text === "Required" }]),
96
96
  "data-testid": "auth-indicator",
97
97
  onClick: w
98
98
  }, y(h.value.text), 3)) : b("", !0)
@@ -109,19 +109,19 @@ const Z = ["id"], _ = { class: "min-w-0 flex-1 truncate" }, ue = /* @__PURE__ */
109
109
  onDelete: D,
110
110
  "onUpdate:modelValue": A
111
111
  }, {
112
- option: r(({ option: n, selected: a }) => [
112
+ option: r(({ option: a, selected: n }) => [
113
113
  m(s(z), {
114
114
  multiselect: "",
115
- selected: a
115
+ selected: n
116
116
  }, null, 8, ["selected"]),
117
- u("div", _, y(n.label), 1),
118
- n.isDeletable ? (c(), S(s(E), {
117
+ u("div", _, y(a.label), 1),
118
+ a.isDeletable ? (c(), x(s(E), {
119
119
  key: 0,
120
120
  class: "-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100",
121
121
  icon: s(P),
122
- label: `Delete ${n.label}`,
122
+ label: `Delete ${a.label}`,
123
123
  size: "xs",
124
- onClick: q((f) => D(n), ["stop"])
124
+ onClick: q((f) => D(a), ["stop"])
125
125
  }, null, 8, ["icon", "label", "onClick"])) : b("", !0)
126
126
  ]),
127
127
  default: r(() => [
@@ -166,12 +166,12 @@ const Z = ["id"], _ = { class: "min-w-0 flex-1 truncate" }, ue = /* @__PURE__ */
166
166
  selectedSchemeOptions: i.value,
167
167
  server: e.server
168
168
  }, null, 8, ["activeAuthIndex", "environment", "eventBus", "isStatic", "meta", "proxyUrl", "securitySchemes", "selectedSchemeOptions", "server"]),
169
- o.value ? (c(), S(H, {
169
+ o.value ? (c(), x(H, {
170
170
  key: 0,
171
171
  label: o.value.label,
172
172
  scheme: o.value,
173
173
  state: s(d),
174
- onClose: t[0] || (t[0] = (n) => s(d).hide()),
174
+ onClose: t[0] || (t[0] = (a) => s(d).hide()),
175
175
  onDelete: V
176
176
  }, null, 8, ["label", "scheme", "state"])) : b("", !0)
177
177
  ]),
@@ -0,0 +1,17 @@
1
+ type CalloutType = 'info' | 'success' | 'warning' | 'danger' | 'neutral';
2
+ type __VLS_Props = {
3
+ type: CalloutType;
4
+ };
5
+ type __VLS_Slots = {
6
+ default: () => string;
7
+ actions?: () => string;
8
+ };
9
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
17
+ //# sourceMappingURL=Callout.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Callout.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/callout/Callout.vue"],"names":[],"mappings":"AA8LA,KAAK,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAA;AAExE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,WAAW,CAAA;CAClB,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,MAAM,CAAA;CACvB,CAAC;AA0HF,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import o from "./Callout.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fa58cbab"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,43 @@
1
+ import { defineComponent as i, useSlots as r, createElementBlock as a, openBlock as c, normalizeClass as _, createElementVNode as e, createCommentVNode as d, createBlock as u, resolveDynamicComponent as m, createVNode as n } from "vue";
2
+ import { ScalarIconInfo as s, ScalarIconWarningCircle as p, ScalarIconWarning as f, ScalarIconCheckCircle as g } from "@scalar/icons";
3
+ const h = { class: "flex w-full flex-col gap-2" }, C = { class: "flex items-start gap-2" }, v = {
4
+ class: "callout-content__icon",
5
+ "data-scalar-name": "callout-icon"
6
+ }, x = { class: "callout-content__text" }, k = {
7
+ key: 0,
8
+ class: "flex justify-end gap-2"
9
+ }, N = /* @__PURE__ */ i({
10
+ __name: "Callout",
11
+ props: {
12
+ type: {}
13
+ },
14
+ setup(o) {
15
+ const t = r(), l = {
16
+ info: s,
17
+ success: g,
18
+ warning: f,
19
+ danger: p,
20
+ neutral: s
21
+ };
22
+ return (y, I) => (c(), a("div", {
23
+ class: _(`callout t-editor__callout callout__${o.type}`)
24
+ }, [
25
+ e("div", h, [
26
+ e("div", C, [
27
+ e("div", v, [
28
+ (c(), u(m(l[o.type]), { class: "size-5 shrink-0" }))
29
+ ]),
30
+ e("div", x, [
31
+ n(t.default)
32
+ ])
33
+ ]),
34
+ t.actions ? (c(), a("div", k, [
35
+ n(t.actions)
36
+ ])) : d("", !0)
37
+ ])
38
+ ], 2));
39
+ }
40
+ });
41
+ export {
42
+ N as default
43
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/data-table/DataTableCheckbox.vue"],"names":[],"mappings":"AA0DA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC1B,CAAC;;;;;;WADQ,MAAM,GAAG,QAAQ;;AAoH7B,wBAQG"}
1
+ {"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/data-table/DataTableCheckbox.vue"],"names":[],"mappings":"AA0DA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC1B,CAAC;;;;;;WADQ,MAAM,GAAG,QAAQ;;AAqH7B,wBAQG"}
@@ -1,7 +1,7 @@
1
- import { defineComponent as i, createBlock as r, openBlock as d, withCtx as u, createElementVNode as t, normalizeClass as l, unref as o, createVNode as m } from "vue";
2
- import { cva as p, ScalarIcon as b } from "@scalar/components";
3
- import f from "./DataTableCell.vue.js";
4
- const h = ["checked", "disabled"], x = /* @__PURE__ */ i({
1
+ import { defineComponent as n, createBlock as r, openBlock as d, withCtx as u, createElementVNode as t, normalizeClass as l, unref as o, createVNode as m } from "vue";
2
+ import { cva as p, ScalarIcon as f } from "@scalar/components";
3
+ import b from "./DataTableCell.vue.js";
4
+ const h = ["checked", "disabled"], x = /* @__PURE__ */ n({
5
5
  __name: "DataTableCheckbox",
6
6
  props: {
7
7
  modelValue: { type: Boolean },
@@ -19,14 +19,14 @@ const h = ["checked", "disabled"], x = /* @__PURE__ */ i({
19
19
  }
20
20
  }
21
21
  });
22
- return (n, a) => (d(), r(f, { class: "group/cell relative flex min-w-8" }, {
22
+ return (s, a) => (d(), r(b, { class: "group/cell relative flex min-w-8" }, {
23
23
  default: u(() => [
24
24
  t("input", {
25
25
  checked: e.modelValue,
26
- class: "peer absolute inset-0 cursor-pointer opacity-0 disabled:cursor-default",
26
+ class: "peer absolute inset-0 size-full cursor-pointer opacity-0 disabled:cursor-default",
27
27
  disabled: !!e.disabled,
28
28
  type: "checkbox",
29
- onChange: a[0] || (a[0] = (s) => n.$emit("update:modelValue", s.target.checked))
29
+ onChange: a[0] || (a[0] = (i) => s.$emit("update:modelValue", i.target.checked))
30
30
  }, null, 40, h),
31
31
  t("div", {
32
32
  class: l(o(c)({ align: e.align }))
@@ -37,7 +37,7 @@ const h = ["checked", "disabled"], x = /* @__PURE__ */ i({
37
37
  !e.disabled && "group-has-[:focus-visible]/cell:border-c-accent group-hover:opacity-100 group-has-[:focus-visible]/cell:opacity-100"
38
38
  ])
39
39
  }, null, 2),
40
- m(o(b), {
40
+ m(o(f), {
41
41
  icon: "Checkmark",
42
42
  size: "xs",
43
43
  thickness: "2.5"
@@ -1,4 +1,4 @@
1
- import { type ScalarListboxOption } from '@scalar/components';
1
+ import { type WorkspaceGroup } from '@scalar/components';
2
2
  import { type DraggingItem, type HoveredItem, type SidebarState } from '@scalar/sidebar';
3
3
  import type { WorkspaceDocument } from '@scalar/workspace-store/schemas';
4
4
  import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
@@ -13,7 +13,7 @@ type __VLS_Props = {
13
13
  id: string;
14
14
  };
15
15
  /** The list of all available workspaces */
16
- workspaces: ScalarListboxOption[];
16
+ workspaces: WorkspaceGroup[];
17
17
  /** The documents belonging to the workspace */
18
18
  documents: WorkspaceDocument[];
19
19
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/Sidebar.vue"],"names":[],"mappings":"AAyLA,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,YAAY,EAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,iBAAiB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