@redocly/realm 0.124.2 → 0.124.3

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 (110) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/client/runtime/generated/browser-plugins.js +12 -0
  3. package/dist/client/runtime/generated/package.json +1 -0
  4. package/dist/client/runtime/generated/routes.js +6 -0
  5. package/dist/client/runtime/generated/templates.js +27 -0
  6. package/dist/server/esbuild/cache/server/api-request-handlers-entry.js +13 -0
  7. package/dist/server/esbuild/cache/server/chunks/403-QNUJFFYN.js +21 -0
  8. package/dist/server/esbuild/cache/server/chunks/403OIDC-XVNN4OKQ.js +20 -0
  9. package/dist/server/esbuild/cache/server/chunks/404-TJA4JKKM.js +22 -0
  10. package/dist/server/esbuild/cache/server/chunks/AsyncApiDocs-DO2XADGJ.js +5012 -0
  11. package/dist/server/esbuild/cache/server/chunks/AsyncApiDocs-LWZY6WLJ.css +228 -0
  12. package/dist/server/esbuild/cache/server/chunks/CatalogClassic-62FIL6VX.js +27 -0
  13. package/dist/server/esbuild/cache/server/chunks/CompilationError-3AK7S6GQ.js +28 -0
  14. package/dist/server/esbuild/cache/server/chunks/ErrorDetails-NOXCZVSO.css +228 -0
  15. package/dist/server/esbuild/cache/server/chunks/ErrorDetails-Z6XTH26B.js +32 -0
  16. package/dist/server/esbuild/cache/server/chunks/GraphQLDocs-R7GIPOHX.js +14517 -0
  17. package/dist/server/esbuild/cache/server/chunks/GraphQLDocs-XWEZKQTJ.css +228 -0
  18. package/dist/server/esbuild/cache/server/chunks/Invite-JG7HOKGB.js +72 -0
  19. package/dist/server/esbuild/cache/server/chunks/Markdown-U5QMVBIW.js +90 -0
  20. package/dist/server/esbuild/cache/server/chunks/OpenAPIDocs-33NUY4VY.js +93 -0
  21. package/dist/server/esbuild/cache/server/chunks/OpenAPIDocs-QNK5DFJC.css +228 -0
  22. package/dist/server/esbuild/cache/server/chunks/ar-QYSYPAAE.js +9 -0
  23. package/dist/server/esbuild/cache/server/chunks/changelog.page-P7J4MWQX.js +9133 -0
  24. package/dist/server/esbuild/cache/server/chunks/chunk-27G3BZUU.js +6053 -0
  25. package/dist/server/esbuild/cache/server/chunks/chunk-37VWTTWG.js +112 -0
  26. package/dist/server/esbuild/cache/server/chunks/chunk-3F23673J.js +63 -0
  27. package/dist/server/esbuild/cache/server/chunks/chunk-5Q7CA7UT.js +3610 -0
  28. package/dist/server/esbuild/cache/server/chunks/chunk-5RECXZNE.js +23042 -0
  29. package/dist/server/esbuild/cache/server/chunks/chunk-5WWZZ3I5.js +148 -0
  30. package/dist/server/esbuild/cache/server/chunks/chunk-65DJDEU7.js +21923 -0
  31. package/dist/server/esbuild/cache/server/chunks/chunk-6TWMFDXM.js +50 -0
  32. package/dist/server/esbuild/cache/server/chunks/chunk-6ZPXNRVV.js +72349 -0
  33. package/dist/server/esbuild/cache/server/chunks/chunk-72YI47PJ.js +61 -0
  34. package/dist/server/esbuild/cache/server/chunks/chunk-AOEKZ7MP.js +1653 -0
  35. package/dist/server/esbuild/cache/server/chunks/chunk-ARMFCOWJ.js +58 -0
  36. package/dist/server/esbuild/cache/server/chunks/chunk-CEMEM3CC.js +1201 -0
  37. package/dist/server/esbuild/cache/server/chunks/chunk-CYRM4SZM.js +200 -0
  38. package/dist/server/esbuild/cache/server/chunks/chunk-CZ4WUWHR.js +145 -0
  39. package/dist/server/esbuild/cache/server/chunks/chunk-EPDKKVDX.js +49 -0
  40. package/dist/server/esbuild/cache/server/chunks/chunk-F2FIOV3B.js +3564 -0
  41. package/dist/server/esbuild/cache/server/chunks/chunk-FN46NAFA.js +880 -0
  42. package/dist/server/esbuild/cache/server/chunks/chunk-FWP7SBRO.js +40 -0
  43. package/dist/server/esbuild/cache/server/chunks/chunk-HH6YBD7K.js +39 -0
  44. package/dist/server/esbuild/cache/server/chunks/chunk-HMCVWUH5.js +21734 -0
  45. package/dist/server/esbuild/cache/server/chunks/chunk-IPLOR6BM.js +39 -0
  46. package/dist/server/esbuild/cache/server/chunks/chunk-IU4AXQIQ.js +20 -0
  47. package/dist/server/esbuild/cache/server/chunks/chunk-OFZF52DH.js +367 -0
  48. package/dist/server/esbuild/cache/server/chunks/chunk-ORVLLFH3.js +34 -0
  49. package/dist/server/esbuild/cache/server/chunks/chunk-PLCILU3C.js +189 -0
  50. package/dist/server/esbuild/cache/server/chunks/chunk-PP5BCTYO.js +481 -0
  51. package/dist/server/esbuild/cache/server/chunks/chunk-PS2DM6W4.js +233 -0
  52. package/dist/server/esbuild/cache/server/chunks/chunk-PX5DFLJN.js +6418 -0
  53. package/dist/server/esbuild/cache/server/chunks/chunk-QD5LMSMC.js +39 -0
  54. package/dist/server/esbuild/cache/server/chunks/chunk-R2ATFYSQ.js +18 -0
  55. package/dist/server/esbuild/cache/server/chunks/chunk-RAOSTGG5.js +68 -0
  56. package/dist/server/esbuild/cache/server/chunks/chunk-RD675JLY.js +63 -0
  57. package/dist/server/esbuild/cache/server/chunks/chunk-RP4GABLB.js +104 -0
  58. package/dist/server/esbuild/cache/server/chunks/chunk-TSM7ATHM.js +63 -0
  59. package/dist/server/esbuild/cache/server/chunks/chunk-UNPSJPQX.js +421 -0
  60. package/dist/server/esbuild/cache/server/chunks/chunk-UOJU7UCE.js +117 -0
  61. package/dist/server/esbuild/cache/server/chunks/chunk-VQWN4DGI.js +117 -0
  62. package/dist/server/esbuild/cache/server/chunks/chunk-ZTN3K75A.js +17085 -0
  63. package/dist/server/esbuild/cache/server/chunks/de-NFTIOJWS.js +9 -0
  64. package/dist/server/esbuild/cache/server/chunks/en-MHWJMBVA.js +9 -0
  65. package/dist/server/esbuild/cache/server/chunks/es-FNU5GYZ3.js +9 -0
  66. package/dist/server/esbuild/cache/server/chunks/fr-26CHXVGL.js +9 -0
  67. package/dist/server/esbuild/cache/server/chunks/get-server-props-6AZWGXNL.js +23 -0
  68. package/dist/server/esbuild/cache/server/chunks/get-server-props-7QLMUENA.js +35 -0
  69. package/dist/server/esbuild/cache/server/chunks/get-server-props-CBKOAQ63.js +23 -0
  70. package/dist/server/esbuild/cache/server/chunks/get-server-props-UVJ7E655.js +257 -0
  71. package/dist/server/esbuild/cache/server/chunks/get-server-props-custom-fields-3L6PMPKS.js +30 -0
  72. package/dist/server/esbuild/cache/server/chunks/getMachineId-bsd-XBQCAKER.js +41 -0
  73. package/dist/server/esbuild/cache/server/chunks/getMachineId-darwin-75TDDERU.js +41 -0
  74. package/dist/server/esbuild/cache/server/chunks/getMachineId-linux-ZVY3HPZF.js +33 -0
  75. package/dist/server/esbuild/cache/server/chunks/getMachineId-unsupported-Z55ZGKX4.js +24 -0
  76. package/dist/server/esbuild/cache/server/chunks/getMachineId-win-XFRAFDV7.js +43 -0
  77. package/dist/server/esbuild/cache/server/chunks/hi-LMIMTEVV.js +9 -0
  78. package/dist/server/esbuild/cache/server/chunks/it-KQBB6UHC.js +9 -0
  79. package/dist/server/esbuild/cache/server/chunks/ja-M4G7SWOW.js +9 -0
  80. package/dist/server/esbuild/cache/server/chunks/ko-UMCYPTNU.js +9 -0
  81. package/dist/server/esbuild/cache/server/chunks/lib-7OVRXOGN.js +9738 -0
  82. package/dist/server/esbuild/cache/server/chunks/mock-server-request-handler-EPNUNSB4.js +19760 -0
  83. package/dist/server/esbuild/cache/server/chunks/openapi-PYAD6YIG.js +211 -0
  84. package/dist/server/esbuild/cache/server/chunks/openapi-SWJOOCDZ.css +228 -0
  85. package/dist/server/esbuild/cache/server/chunks/pl-WFS4SBNZ.js +9 -0
  86. package/dist/server/esbuild/cache/server/chunks/pt-BR-6UMAIW4R.js +9 -0
  87. package/dist/server/esbuild/cache/server/chunks/pt-H3U3OOD6.js +9 -0
  88. package/dist/server/esbuild/cache/server/chunks/replay-SG7SV62B.js +44 -0
  89. package/dist/server/esbuild/cache/server/chunks/replay-tauri-path-CUezwea2-PVNYM2NO.js +51 -0
  90. package/dist/server/esbuild/cache/server/chunks/ru-XWABYCCX.js +9 -0
  91. package/dist/server/esbuild/cache/server/chunks/schema-OQNNVD4I.js +9 -0
  92. package/dist/server/esbuild/cache/server/chunks/spec-download.api-224C7JPA.js +2678 -0
  93. package/dist/server/esbuild/cache/server/chunks/spec-download.api-456PUG54.js +36 -0
  94. package/dist/server/esbuild/cache/server/chunks/template-NMUEV3UV.css +228 -0
  95. package/dist/server/esbuild/cache/server/chunks/template-TMZOF26J.js +6490 -0
  96. package/dist/server/esbuild/cache/server/chunks/uk-SANI42KH.js +9 -0
  97. package/dist/server/esbuild/cache/server/chunks/zh-FC3S2NSG.js +9 -0
  98. package/dist/server/esbuild/cache/server/middleware-entry.js +9 -0
  99. package/dist/server/esbuild/cache/server/migrations/catalog-sqlite/0000_initial_migration.sql +46 -0
  100. package/dist/server/esbuild/cache/server/migrations/catalog-sqlite/meta/0000_snapshot.json +307 -0
  101. package/dist/server/esbuild/cache/server/migrations/catalog-sqlite/meta/_journal.json +13 -0
  102. package/dist/server/esbuild/cache/server/migrations/main-sqlite/0000_initial_migration.sql +11 -0
  103. package/dist/server/esbuild/cache/server/migrations/main-sqlite/meta/0000_snapshot.json +82 -0
  104. package/dist/server/esbuild/cache/server/migrations/main-sqlite/meta/_journal.json +13 -0
  105. package/dist/server/esbuild/cache/server/package.json +1 -0
  106. package/dist/server/esbuild/cache/server/server-entry.css +294 -0
  107. package/dist/server/esbuild/cache/server/server-entry.js +1716 -0
  108. package/dist/server/esbuild/cache/server/server-props-entry.js +15 -0
  109. package/dist/server/esbuild/cache/server/user-tags-entry.js +9 -0
  110. package/package.json +5 -5
@@ -0,0 +1,421 @@
1
+ import { createRequire as topLevelCreateRequire } from 'module';
2
+ const require = topLevelCreateRequire(import.meta.url);
3
+ import {
4
+ CheckmarkFilledIcon,
5
+ Dropdown,
6
+ DropdownMenu,
7
+ SearchIcon,
8
+ init_CheckmarkFilledIcon,
9
+ init_Dropdown,
10
+ init_DropdownMenu,
11
+ init_SearchIcon
12
+ } from "./chunk-PP5BCTYO.js";
13
+ import {
14
+ init_hooks,
15
+ useInputKeyCommands,
16
+ usePageActions,
17
+ useRecentSearches,
18
+ useThemeHooks
19
+ } from "./chunk-F2FIOV3B.js";
20
+ import {
21
+ Button,
22
+ Link,
23
+ init_Button,
24
+ init_Link
25
+ } from "./chunk-5WWZZ3I5.js";
26
+ import {
27
+ $e,
28
+ concatClassNames,
29
+ getCssColorVariable,
30
+ init_styled_components_esm,
31
+ init_utils,
32
+ styled_components_esm_default
33
+ } from "./chunk-27G3BZUU.js";
34
+ import {
35
+ __esm
36
+ } from "./chunk-6TWMFDXM.js";
37
+
38
+ // ../../packages/theme/src/icons/CircleDashIcon/CircleDashIcon.tsx
39
+ import React from "react";
40
+ var Icon, CircleDashIcon;
41
+ var init_CircleDashIcon = __esm({
42
+ "../../packages/theme/src/icons/CircleDashIcon/CircleDashIcon.tsx"() {
43
+ init_styled_components_esm();
44
+ init_utils();
45
+ Icon = (props) => /* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M3.84997 2.35009C3.27647 2.79018 2.77103 3.31247 2.34997 3.90009L3.14997 4.50009C3.5172 3.99081 3.9549 3.53627 4.44997 3.15009L3.84997 2.35009Z" }), /* @__PURE__ */ React.createElement("path", { d: "M2.29997 6.15009L1.34997 5.85009C1.10845 6.54077 0.98999 7.26847 0.999972 8.00009H1.99997C1.99794 7.37116 2.09929 6.74616 2.29997 6.15009Z" }), /* @__PURE__ */ React.createElement("path", { d: "M1.34997 10.2001C1.58185 10.8973 1.91909 11.5549 2.34997 12.1501L3.14997 11.5501C2.78851 11.044 2.50221 10.4882 2.29997 9.90009L1.34997 10.2001Z" }), /* @__PURE__ */ React.createElement("path", { d: "M3.89997 13.6501C4.49514 14.081 5.15275 14.4182 5.84997 14.6501L6.14997 13.7001C5.56184 13.4979 5.00608 13.2116 4.49997 12.8501L3.89997 13.6501Z" }), /* @__PURE__ */ React.createElement("path", { d: "M5.84997 1.35009L6.14997 2.30009C6.74604 2.09942 7.37103 1.99806 7.99997 2.00009V1.00009C7.26835 0.990112 6.54065 1.10858 5.84997 1.35009Z" }), /* @__PURE__ */ React.createElement("path", { d: "M12.1 13.6501C12.6889 13.2111 13.211 12.689 13.65 12.1001L12.85 11.5001C12.4781 12.022 12.0219 12.4783 11.5 12.8501L12.1 13.6501Z" }), /* @__PURE__ */ React.createElement("path", { d: "M13.7 9.85009L14.65 10.1501C14.8675 9.45352 14.9853 8.72968 15 8.00009H14C14.002 8.62903 13.9007 9.25403 13.7 9.85009Z" }), /* @__PURE__ */ React.createElement("path", { d: "M14.6 5.80009C14.3681 5.10288 14.0309 4.44526 13.6 3.85009L12.8 4.45009C13.1614 4.9562 13.4477 5.51196 13.65 6.10009L14.6 5.80009Z" }), /* @__PURE__ */ React.createElement("path", { d: "M12.05 2.30009C11.4548 1.86921 10.7972 1.53197 10.1 1.30009L9.79997 2.25009C10.3881 2.45233 10.9439 2.73863 11.45 3.10009L12.05 2.30009Z" }), /* @__PURE__ */ React.createElement("path", { d: "M10.15 14.6501L9.84997 13.7001C9.25391 13.9008 8.62891 14.0021 7.99997 14.0001V15.0001C8.72667 14.9568 9.44706 14.8395 10.15 14.6501Z" }));
46
+ CircleDashIcon = styled_components_esm_default(Icon).attrs(() => ({
47
+ "data-component-name": "icons/CircleDashIcon/CircleDashIcon"
48
+ })).withConfig({
49
+ displayName: "CircleDashIcon",
50
+ componentId: "sc-1vqu36r-0"
51
+ })(["path{fill:", ";}height:", ";width:", ";"], ({
52
+ color
53
+ }) => getCssColorVariable(color), ({
54
+ size
55
+ }) => size || "16px", ({
56
+ size
57
+ }) => size || "16px");
58
+ }
59
+ });
60
+
61
+ // ../../packages/theme/src/icons/Spinner/Spinner.tsx
62
+ var rotate, Spinner;
63
+ var init_Spinner = __esm({
64
+ "../../packages/theme/src/icons/Spinner/Spinner.tsx"() {
65
+ init_styled_components_esm();
66
+ init_CircleDashIcon();
67
+ rotate = $e(["0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}"]);
68
+ Spinner = styled_components_esm_default(CircleDashIcon).attrs(() => ({
69
+ "data-component-name": "icons/Spinner/Spinner"
70
+ })).withConfig({
71
+ displayName: "Spinner",
72
+ componentId: "sc-1fob0gr-0"
73
+ })(["animation:2s ", " linear infinite;"], rotate);
74
+ }
75
+ });
76
+
77
+ // ../../packages/theme/src/icons/CloseFilledIcon/CloseFilledIcon.tsx
78
+ import React2 from "react";
79
+ var Icon2, CloseFilledIcon;
80
+ var init_CloseFilledIcon = __esm({
81
+ "../../packages/theme/src/icons/CloseFilledIcon/CloseFilledIcon.tsx"() {
82
+ init_styled_components_esm();
83
+ init_utils();
84
+ Icon2 = (props) => /* @__PURE__ */ React2.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React2.createElement("path", { d: "M8 1C4.1 1 1 4.1 1 8C1 11.9 4.1 15 8 15C11.9 15 15 11.9 15 8C15 4.1 11.9 1 8 1ZM10.7 11.5L8 8.8L5.3 11.5L4.5 10.7L7.2 8L4.5 5.3L5.3 4.5L8 7.2L10.7 4.5L11.5 5.3L8.8 8L11.5 10.7L10.7 11.5Z" }));
85
+ CloseFilledIcon = styled_components_esm_default(Icon2).attrs(() => ({
86
+ "data-component-name": "icons/CloseFilledIcon/CloseFilledIcon"
87
+ })).withConfig({
88
+ displayName: "CloseFilledIcon",
89
+ componentId: "sc-178399b-0"
90
+ })(["path{fill:", ";}height:", ";width:", ";"], ({
91
+ color
92
+ }) => getCssColorVariable(color), ({
93
+ size
94
+ }) => size || "16px", ({
95
+ size
96
+ }) => size || "16px");
97
+ }
98
+ });
99
+
100
+ // ../../packages/theme/src/icons/ChevronLeftIcon/ChevronLeftIcon.tsx
101
+ import React3 from "react";
102
+ var Icon3, ChevronLeftIcon;
103
+ var init_ChevronLeftIcon = __esm({
104
+ "../../packages/theme/src/icons/ChevronLeftIcon/ChevronLeftIcon.tsx"() {
105
+ init_styled_components_esm();
106
+ init_utils();
107
+ Icon3 = (props) => /* @__PURE__ */ React3.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React3.createElement("path", { d: "M5 8L10 3L10.7 3.7L6.4 8L10.7 12.3L10 13L5 8Z" }));
108
+ ChevronLeftIcon = styled_components_esm_default(Icon3).attrs(() => ({
109
+ "data-component-name": "icons/ChevronLeftIcon/ChevronLeftIcon"
110
+ })).withConfig({
111
+ displayName: "ChevronLeftIcon",
112
+ componentId: "sc-1fnvms0-0"
113
+ })(["path{fill:", ";}height:", ";width:", ";"], ({
114
+ color
115
+ }) => getCssColorVariable(color), ({
116
+ size
117
+ }) => size || "16px", ({
118
+ size
119
+ }) => size || "16px");
120
+ }
121
+ });
122
+
123
+ // ../../packages/theme/src/components/Search/SearchInput.tsx
124
+ import React4 from "react";
125
+ function SearchInput({
126
+ placeholder,
127
+ value,
128
+ onChange,
129
+ isLoading,
130
+ showReturnButton,
131
+ inputRef,
132
+ onReturn,
133
+ onSubmit,
134
+ className
135
+ }) {
136
+ const {
137
+ useTelemetry
138
+ } = useThemeHooks();
139
+ const {
140
+ addSearchHistoryItem
141
+ } = useRecentSearches();
142
+ const telemetry = useTelemetry();
143
+ const {
144
+ onKeyDown
145
+ } = useInputKeyCommands({
146
+ onEnter: (event) => onSubmit?.(event),
147
+ onClear: () => addSearchHistoryItem(value)
148
+ });
149
+ const stopPropagation = (event) => event.stopPropagation();
150
+ const handleOnChange = (event) => {
151
+ onChange(event.target.value);
152
+ };
153
+ const handleOnReset = () => {
154
+ onChange("");
155
+ addSearchHistoryItem(value);
156
+ telemetry.send({
157
+ type: "search_input_reset_button.clicked"
158
+ });
159
+ };
160
+ return /* @__PURE__ */ React4.createElement(SearchInputWrapper, { "data-component-name": "Search/SearchInput", className }, showReturnButton ? /* @__PURE__ */ React4.createElement(Button, { icon: /* @__PURE__ */ React4.createElement(ChevronLeftIcon, null), onClick: onReturn }) : value && isLoading ? /* @__PURE__ */ React4.createElement(Spinner, { size: "24px", color: "--search-input-icon-color" }) : /* @__PURE__ */ React4.createElement(SearchIcon, { size: "24px", color: "--search-input-icon-color" }), /* @__PURE__ */ React4.createElement(SearchInputField, { value, ref: inputRef, placeholder, onChange: handleOnChange, onClick: stopPropagation, onKeyDown }), !!value && /* @__PURE__ */ React4.createElement(ResetButton, { variant: "ghost", onClick: handleOnReset, icon: /* @__PURE__ */ React4.createElement(CloseFilledIcon, null), tabIndex: -1 }));
161
+ }
162
+ var SearchInputWrapper, SearchInputField, ResetButton;
163
+ var init_SearchInput = __esm({
164
+ "../../packages/theme/src/components/Search/SearchInput.tsx"() {
165
+ init_styled_components_esm();
166
+ init_SearchIcon();
167
+ init_Spinner();
168
+ init_Button();
169
+ init_hooks();
170
+ init_CloseFilledIcon();
171
+ init_ChevronLeftIcon();
172
+ SearchInputWrapper = styled_components_esm_default.div.withConfig({
173
+ displayName: "SearchInput__SearchInputWrapper",
174
+ componentId: "sc-1srz3np-0"
175
+ })(["display:flex;flex-grow:1;align-items:center;padding:var(--search-input-padding);height:var(--search-input-height);gap:var(--search-input-gap);"]);
176
+ SearchInputField = styled_components_esm_default.input.withConfig({
177
+ displayName: "SearchInput__SearchInputField",
178
+ componentId: "sc-1srz3np-1"
179
+ })(["width:100%;outline:none;background-color:var(--search-input-bg-color);border-radius:var(--search-input-border-radius);border:var(--search-input-border);color:var(--search-input-text-color);font-size:var(--search-input-font-size);font-family:var(--search-input-font-family);font-weight:var(--search-input-font-weight);line-height:var(--search-input-line-height);&::placeholder{color:var(--search-input-placeholder-color);}"]);
180
+ ResetButton = styled_components_esm_default(Button).withConfig({
181
+ displayName: "SearchInput__ResetButton",
182
+ componentId: "sc-1srz3np-2"
183
+ })(["color:var(--color-warm-grey-5);"]);
184
+ }
185
+ });
186
+
187
+ // ../../packages/theme/src/icons/LinkIcon/LinkIcon.tsx
188
+ import React5 from "react";
189
+ var Icon4, LinkIcon;
190
+ var init_LinkIcon = __esm({
191
+ "../../packages/theme/src/icons/LinkIcon/LinkIcon.tsx"() {
192
+ init_styled_components_esm();
193
+ init_utils();
194
+ Icon4 = (props) => /* @__PURE__ */ React5.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React5.createElement("path", { d: "M14.625 3.37992C14.3463 3.10024 14.0151 2.87833 13.6505 2.72692C13.2858 2.5755 12.8949 2.49756 12.5 2.49756C12.1052 2.49756 11.7142 2.5755 11.3496 2.72692C10.9849 2.87833 10.6537 3.10024 10.375 3.37992L11.085 4.08992C11.2712 3.90378 11.4922 3.75611 11.7354 3.65537C11.9786 3.55463 12.2393 3.50278 12.5025 3.50278C12.7658 3.50278 13.0264 3.55463 13.2697 3.65537C13.5129 3.75611 13.7339 3.90378 13.92 4.08992C14.1062 4.27607 14.2538 4.49706 14.3546 4.74028C14.4553 4.98349 14.5072 5.24417 14.5072 5.50742C14.5072 5.77068 14.4553 6.03135 14.3546 6.27457C14.2538 6.51778 14.1062 6.73878 13.92 6.92492L9.92002 10.9249C9.54473 11.3009 9.03548 11.5123 8.50428 11.5128C7.97309 11.5133 7.46346 11.3027 7.08752 10.9274C6.71157 10.5521 6.5001 10.0429 6.49964 9.51169C6.49917 8.98049 6.70973 8.47087 7.08502 8.09492L7.79002 7.38492L7.08502 6.67492L6.37502 7.38492C6.09534 7.66363 5.87343 7.99481 5.72201 8.35947C5.57059 8.72412 5.49265 9.11508 5.49265 9.50992C5.49265 9.90477 5.57059 10.2957 5.72201 10.6604C5.87343 11.025 6.09534 11.3562 6.37502 11.6349C6.94076 12.1934 7.70505 12.5045 8.50002 12.4999C8.89637 12.5016 9.28913 12.4246 9.65558 12.2736C10.022 12.1225 10.3549 11.9004 10.635 11.6199L14.635 7.61992C15.1955 7.0561 15.5093 6.29286 15.5074 5.49785C15.5055 4.70285 15.1881 3.9411 14.625 3.37992Z" }), /* @__PURE__ */ React5.createElement("path", { d: "M2.09502 12.4099C1.90831 12.2241 1.76016 12.0032 1.65907 11.7599C1.55798 11.5167 1.50593 11.2559 1.50593 10.9924C1.50593 10.729 1.55798 10.4682 1.65907 10.2249C1.76016 9.98165 1.90831 9.76076 2.09502 9.57492L6.09502 5.57492C6.28085 5.38822 6.50174 5.24007 6.745 5.13898C6.98826 5.03788 7.24909 4.98584 7.51252 4.98584C7.77594 4.98584 8.03677 5.03788 8.28003 5.13898C8.52329 5.24007 8.74418 5.38822 8.93002 5.57492C9.11554 5.76222 9.26158 5.98486 9.35949 6.22963C9.4574 6.47441 9.50519 6.73634 9.50002 6.99992C9.50154 7.26433 9.45062 7.52641 9.35021 7.771C9.2498 8.0156 9.10188 8.23786 8.91502 8.42492L7.85502 9.49992L8.56501 10.2099L9.62502 9.14992C10.1893 8.58568 10.5063 7.82039 10.5063 7.02242C10.5063 6.22446 10.1893 5.45917 9.62502 4.89492C9.06077 4.33068 8.29548 4.01368 7.49752 4.01368C6.69955 4.01368 5.93426 4.33068 5.37002 4.89492L1.37002 8.89492C1.08958 9.17373 0.867037 9.50522 0.715177 9.87033C0.563316 10.2354 0.485138 10.627 0.485138 11.0224C0.485138 11.4179 0.563316 11.8094 0.715177 12.1745C0.867037 12.5396 1.08958 12.8711 1.37002 13.1499C1.93943 13.7042 2.70546 14.0099 3.50002 13.9999C4.30157 14.0007 5.07087 13.6843 5.64002 13.1199L4.93002 12.4099C4.74418 12.5966 4.52329 12.7448 4.28003 12.8459C4.03677 12.947 3.77594 12.999 3.51252 12.999C3.24909 12.999 2.98826 12.947 2.745 12.8459C2.50174 12.7448 2.28085 12.5966 2.09502 12.4099Z" }));
195
+ LinkIcon = styled_components_esm_default(Icon4).attrs(() => ({
196
+ "data-component-name": "icons/LinkIcon/LinkIcon"
197
+ })).withConfig({
198
+ displayName: "LinkIcon",
199
+ componentId: "sc-q8trda-0"
200
+ })(["path{fill:", ";}height:", ";width:", ";"], ({
201
+ color
202
+ }) => getCssColorVariable(color), ({
203
+ size
204
+ }) => size || "16px", ({
205
+ size
206
+ }) => size || "16px");
207
+ }
208
+ });
209
+
210
+ // ../../packages/theme/src/icons/LaunchIcon/LaunchIcon.tsx
211
+ import React6 from "react";
212
+ var Icon5, LaunchIcon;
213
+ var init_LaunchIcon = __esm({
214
+ "../../packages/theme/src/icons/LaunchIcon/LaunchIcon.tsx"() {
215
+ init_styled_components_esm();
216
+ init_utils();
217
+ Icon5 = (props) => /* @__PURE__ */ React6.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React6.createElement("path", { d: "M13 14H3C2.73489 13.9996 2.48075 13.8942 2.29329 13.7067C2.10583 13.5193 2.00036 13.2651 2 13V3C2.00036 2.73489 2.10583 2.48075 2.29329 2.29329C2.48075 2.10583 2.73489 2.00036 3 2H8V3H3V13H13V8H14V13C13.9996 13.2651 13.8942 13.5193 13.7067 13.7067C13.5193 13.8942 13.2651 13.9996 13 14Z" }), /* @__PURE__ */ React6.createElement("path", { d: "M10 1V2H13.293L9 6.293L9.707 7L14 2.707V6H15V1H10Z" }));
218
+ LaunchIcon = styled_components_esm_default(Icon5).attrs(() => ({
219
+ "data-component-name": "icons/LaunchIcon/LaunchIcon"
220
+ })).withConfig({
221
+ displayName: "LaunchIcon",
222
+ componentId: "sc-7fd1mp-0"
223
+ })(["path{fill:", ";}height:", ";width:", ";"], ({
224
+ color
225
+ }) => getCssColorVariable(color), ({
226
+ size
227
+ }) => size || "16px", ({
228
+ size
229
+ }) => size || "16px");
230
+ }
231
+ });
232
+
233
+ // ../../packages/theme/src/components/PageActions/PageActionsMenuItem.tsx
234
+ import React7 from "react";
235
+ function PageActionsMenuItem(props) {
236
+ const {
237
+ pageAction
238
+ } = props;
239
+ return /* @__PURE__ */ React7.createElement(MenuItemWrapper, { "data-component-name": "PageActions/PageActionsMenuItem" }, /* @__PURE__ */ React7.createElement(IconWrapper, null, /* @__PURE__ */ React7.createElement(pageAction.iconComponent, null)), /* @__PURE__ */ React7.createElement(ContentWrapper, null, /* @__PURE__ */ React7.createElement(Title, null, pageAction.title, "link" in pageAction ? /* @__PURE__ */ React7.createElement(LaunchIcon, { color: "var(--page-actions-menu-item-title-icon-color)", size: "14px" }) : null), /* @__PURE__ */ React7.createElement(Description, null, pageAction.description)));
240
+ }
241
+ var MenuItemWrapper, IconWrapper, ContentWrapper, Title, Description;
242
+ var init_PageActionsMenuItem = __esm({
243
+ "../../packages/theme/src/components/PageActions/PageActionsMenuItem.tsx"() {
244
+ init_styled_components_esm();
245
+ init_LaunchIcon();
246
+ MenuItemWrapper = styled_components_esm_default.div.withConfig({
247
+ displayName: "PageActionsMenuItem__MenuItemWrapper",
248
+ componentId: "sc-1mwyh2n-0"
249
+ })(["padding:var(--page-actions-menu-item-padding);display:flex;flex-direction:row;align-items:center;gap:var(--page-actions-menu-item-gap);"]);
250
+ IconWrapper = styled_components_esm_default.div.withConfig({
251
+ displayName: "PageActionsMenuItem__IconWrapper",
252
+ componentId: "sc-1mwyh2n-1"
253
+ })(["color:var(--page-actions-menu-item-icon-color);border:1px solid var(--page-actions-menu-item-icon-border-color);border-radius:var(--page-actions-menu-item-icon-border-radius);width:var(--page-actions-menu-item-icon-wrapper-size);height:var(--page-actions-menu-item-icon-wrapper-size);display:flex;align-items:center;justify-content:center;"]);
254
+ ContentWrapper = styled_components_esm_default.div.withConfig({
255
+ displayName: "PageActionsMenuItem__ContentWrapper",
256
+ componentId: "sc-1mwyh2n-2"
257
+ })(["display:flex;flex-direction:column;gap:var(--page-actions-menu-item-text-gap);"]);
258
+ Title = styled_components_esm_default.div.withConfig({
259
+ displayName: "PageActionsMenuItem__Title",
260
+ componentId: "sc-1mwyh2n-3"
261
+ })(["font-weight:var(--page-actions-menu-item-title-font-weight);font-size:var(--page-actions-menu-item-title-font-size);line-height:var(--page-actions-menu-item-title-line-height);color:var(--page-actions-menu-item-title-color);display:flex;align-items:center;gap:var(--page-actions-menu-item-title-icon-gap);"]);
262
+ Description = styled_components_esm_default.div.withConfig({
263
+ displayName: "PageActionsMenuItem__Description",
264
+ componentId: "sc-1mwyh2n-4"
265
+ })(["font-weight:var(--page-actions-menu-item-description-font-weight);font-size:var(--page-actions-menu-item-description-font-size);line-height:var(--page-actions-menu-item-description-line-height);color:var(--page-actions-menu-item-description-color);"]);
266
+ }
267
+ });
268
+
269
+ // ../../packages/theme/src/components/Button/ButtonGroup.tsx
270
+ import React8 from "react";
271
+ function ButtonGroup(props) {
272
+ const {
273
+ variant = "outlined",
274
+ className = "",
275
+ children,
276
+ size = "medium"
277
+ } = props;
278
+ return /* @__PURE__ */ React8.createElement(ButtonGroupWrapper, { "data-component-name": "Button/ButtonGroup", className: `button-group-${variant} button-group-size-${size} ${className}` }, children);
279
+ }
280
+ var ButtonGroupWrapper;
281
+ var init_ButtonGroup = __esm({
282
+ "../../packages/theme/src/components/Button/ButtonGroup.tsx"() {
283
+ init_styled_components_esm();
284
+ ButtonGroupWrapper = styled_components_esm_default.div.withConfig({
285
+ displayName: "ButtonGroup__ButtonGroupWrapper",
286
+ componentId: "sc-wc419o-0"
287
+ })(["display:flex;line-height:var(--button-line-height);.button{border-radius:0;}& > .button:first-child,*:first-child > .button{border-top-left-radius:var(--button-border-radius);border-bottom-left-radius:var(--button-border-radius);}& > .button:last-child,*:last-child > .button{border-top-right-radius:var(--button-border-radius);border-bottom-right-radius:var(--button-border-radius);}& > .button:not(:first-child),*:not(:first-child) > .button{border-left:none;}"]);
288
+ }
289
+ });
290
+
291
+ // ../../packages/theme/src/components/PageActions/PageActions.tsx
292
+ import React9, { useState } from "react";
293
+ function PageActions(props) {
294
+ const {
295
+ pageSlug
296
+ } = props;
297
+ const actions = usePageActions(pageSlug || "/");
298
+ const [actionState, setActionState] = useState("idle");
299
+ if (!actions.length) {
300
+ return null;
301
+ }
302
+ const buttonAction = actions[0];
303
+ const handleActionClick = async (action) => {
304
+ if (!("onClick" in action)) {
305
+ return;
306
+ }
307
+ setActionState("processing");
308
+ await action.onClick();
309
+ setActionState("done");
310
+ setTimeout(() => {
311
+ setActionState("idle");
312
+ }, ACTION_DONE_DISPLAY_DURATION);
313
+ };
314
+ const menuItems = actions.map((action) => ({
315
+ content: "link" in action ? /* @__PURE__ */ React9.createElement(LinkMenuItem, { to: action.link, external: true }, /* @__PURE__ */ React9.createElement(PageActionsMenuItem, { pageAction: action })) : /* @__PURE__ */ React9.createElement(PageActionsMenuItem, { pageAction: action }),
316
+ onAction: "onClick" in action ? () => handleActionClick(action) : void 0
317
+ }));
318
+ return /* @__PURE__ */ React9.createElement(PageActionsWrapper, null, /* @__PURE__ */ React9.createElement(ButtonGroup, { variant: "outlined", size: "medium" }, /* @__PURE__ */ React9.createElement(Button, { icon: renderIcon(buttonAction, actionState), to: "link" in buttonAction ? buttonAction.link : void 0, external: true, onClick: () => handleActionClick(buttonAction) }, buttonAction.buttonText), actions.length > 1 ? /* @__PURE__ */ React9.createElement(Dropdown, { withArrow: true, trigger: /* @__PURE__ */ React9.createElement(Button, null), placement: "bottom", alignment: "end" }, /* @__PURE__ */ React9.createElement(DropdownMenu, { items: menuItems })) : null));
319
+ }
320
+ function renderIcon(buttonAction, actionState) {
321
+ switch (actionState) {
322
+ case "processing":
323
+ return /* @__PURE__ */ React9.createElement(Spinner, { color: "var(--page-actions-processing-icon-color)" });
324
+ case "done":
325
+ return /* @__PURE__ */ React9.createElement(CheckmarkFilledIcon, { color: "var(--page-actions-done-icon-color)" });
326
+ default:
327
+ return /* @__PURE__ */ React9.createElement(buttonAction.iconComponent, null);
328
+ }
329
+ }
330
+ var ACTION_DONE_DISPLAY_DURATION, PageActionsWrapper, LinkMenuItem;
331
+ var init_PageActions = __esm({
332
+ "../../packages/theme/src/components/PageActions/PageActions.tsx"() {
333
+ init_styled_components_esm();
334
+ init_PageActionsMenuItem();
335
+ init_Link();
336
+ init_ButtonGroup();
337
+ init_Button();
338
+ init_Dropdown();
339
+ init_DropdownMenu();
340
+ init_Spinner();
341
+ init_CheckmarkFilledIcon();
342
+ init_hooks();
343
+ ACTION_DONE_DISPLAY_DURATION = 1e3;
344
+ PageActionsWrapper = styled_components_esm_default.div.withConfig({
345
+ displayName: "PageActions__PageActionsWrapper",
346
+ componentId: "sc-c0efl6-0"
347
+ })(["margin-left:auto;padding-left:var(--page-actions-padding-left);--button-color:var(--page-actions-button-text-color);.button-group-size-medium .button.button-size-medium{--button-icon-left-padding:var(--page-actions-button-padding);}"]);
348
+ LinkMenuItem = styled_components_esm_default(Link).withConfig({
349
+ displayName: "PageActions__LinkMenuItem",
350
+ componentId: "sc-c0efl6-1"
351
+ })(["text-decoration:none;--link-decoration-hover:none;"]);
352
+ }
353
+ });
354
+
355
+ // ../../packages/theme/src/markdoc/components/Heading/Heading.tsx
356
+ import React10, { createElement } from "react";
357
+ import { useLocation } from "react-router-dom";
358
+ function Heading({
359
+ level,
360
+ id,
361
+ children,
362
+ "data-source": dataSource,
363
+ "data-hash": dataHash,
364
+ className,
365
+ __idx
366
+ }) {
367
+ const {
368
+ pathname
369
+ } = useLocation();
370
+ const {
371
+ usePageProps
372
+ } = useThemeHooks();
373
+ const pageProps = usePageProps();
374
+ const isMarkdownPage = pageProps?.metadata?.type === "markdown";
375
+ const linkEl = /* @__PURE__ */ React10.createElement("a", { "aria-label": `link to ${id}`, href: `#${id}`, className: concatClassNames("anchor", "before") }, /* @__PURE__ */ React10.createElement(LinkIcon, { size: "14px", color: "--heading-anchor-color" }));
376
+ return createElement(`h${level}`, {
377
+ id,
378
+ className: concatClassNames("heading-anchor", mdClassName, className),
379
+ "data-component-name": "Markdoc/Heading/Heading",
380
+ "data-source": dataSource,
381
+ "data-hash": dataHash
382
+ }, /* @__PURE__ */ React10.createElement(HeadingContentWrapper, null, linkEl, /* @__PURE__ */ React10.createElement("span", null, children), isMarkdownPage && __idx === 0 ? /* @__PURE__ */ React10.createElement(PageActions, { pageSlug: pathname }) : null));
383
+ }
384
+ var mdClassName, HeadingContentWrapper;
385
+ var init_Heading = __esm({
386
+ "../../packages/theme/src/markdoc/components/Heading/Heading.tsx"() {
387
+ init_styled_components_esm();
388
+ init_utils();
389
+ init_LinkIcon();
390
+ init_PageActions();
391
+ init_hooks();
392
+ mdClassName = "md";
393
+ HeadingContentWrapper = styled_components_esm_default.div.withConfig({
394
+ displayName: "Heading__HeadingContentWrapper",
395
+ componentId: "sc-1vddr3t-0"
396
+ })(["display:flex;gap:var(--spacing-xs);align-items:center;"]);
397
+ }
398
+ });
399
+
400
+ export {
401
+ ButtonGroup,
402
+ init_ButtonGroup,
403
+ ChevronLeftIcon,
404
+ init_ChevronLeftIcon,
405
+ CircleDashIcon,
406
+ init_CircleDashIcon,
407
+ Spinner,
408
+ init_Spinner,
409
+ LaunchIcon,
410
+ init_LaunchIcon,
411
+ PageActions,
412
+ init_PageActions,
413
+ CloseFilledIcon,
414
+ init_CloseFilledIcon,
415
+ SearchInput,
416
+ init_SearchInput,
417
+ LinkIcon,
418
+ init_LinkIcon,
419
+ Heading,
420
+ init_Heading
421
+ };
@@ -0,0 +1,117 @@
1
+ import { createRequire as topLevelCreateRequire } from 'module';
2
+ const require = topLevelCreateRequire(import.meta.url);
3
+ import {
4
+ init_src,
5
+ src_exports
6
+ } from "./chunk-65DJDEU7.js";
7
+ import {
8
+ __export
9
+ } from "./chunk-6TWMFDXM.js";
10
+
11
+ // @theme/markdoc/components.tsx
12
+ var components_exports = {};
13
+ __export(components_exports, {
14
+ ThemeIcon: () => ThemeIcon
15
+ });
16
+
17
+ // @theme/markdoc/components/ThemeIcon/ThemeIcon.tsx
18
+ init_src();
19
+ import * as React from "react";
20
+ function ThemeIcon({ name, size = 24, color = "currentColor" }) {
21
+ const IconComponent = src_exports[name];
22
+ if (!IconComponent) {
23
+ console.warn(`Icon "${name}" not found`);
24
+ return null;
25
+ }
26
+ return /* @__PURE__ */ React.createElement(IconComponent, { size, color, style: { width: size, height: size } });
27
+ }
28
+
29
+ // markdoc-schema-ns:@redocly-markdoc/components
30
+ var components = {
31
+ ...components_exports
32
+ };
33
+
34
+ // ../../packages/portal/products/realm/dist/client/ScriptLoader.js
35
+ import { useEffect as f } from "react";
36
+ import { useLocation as m } from "react-router-dom";
37
+ var i = [];
38
+ var c = [];
39
+ var s = /* @__PURE__ */ new Map();
40
+ var p = null;
41
+ function E(t, e = false, n2) {
42
+ e ? i.push({ content: t, attributes: n2 }) : i.push({ src: t, attributes: n2 });
43
+ }
44
+ function P(t, e) {
45
+ t && c.push({ src: t, attributes: e });
46
+ }
47
+ function x() {
48
+ return p || Promise.resolve();
49
+ }
50
+ function A() {
51
+ const t = m();
52
+ return f(() => {
53
+ p = new Promise((e) => {
54
+ y(i).then(() => {
55
+ const n2 = h(c);
56
+ return c = [], n2;
57
+ }).then(() => {
58
+ e();
59
+ }), i = [];
60
+ });
61
+ }, [t.pathname]), null;
62
+ }
63
+ function a(t, e) {
64
+ const n2 = s.get(t);
65
+ if (n2) return n2;
66
+ const o = new Promise((u2, d) => {
67
+ const r = document.createElement("script");
68
+ r.src = t, l(r, e), r.addEventListener("load", () => u2()), r.addEventListener("error", () => d(`Error loading script: ${t}`)), document.body.appendChild(r);
69
+ });
70
+ return s.set(t, o), o;
71
+ }
72
+ function S(t, e) {
73
+ return new Promise((n2) => {
74
+ const o = document.createElement("script");
75
+ o.textContent = t, l(o, e), document.body.appendChild(o), n2();
76
+ });
77
+ }
78
+ async function y(t) {
79
+ for (const e of t) "src" in e ? await a(e.src, e.attributes) : "content" in e && await S(e.content, e.attributes);
80
+ }
81
+ async function h(t) {
82
+ return Promise.allSettled(t.map(({ src: e, attributes: n2 }) => a(e, n2)));
83
+ }
84
+ function l(t, e) {
85
+ e && Object.entries(e).forEach(([n2, o]) => {
86
+ typeof o == "boolean" ? o && t.setAttribute(n2, "") : t.setAttribute(n2, o);
87
+ });
88
+ }
89
+
90
+ // ../../packages/portal/products/realm/dist/server/plugins/markdown/markdoc/custom-components/index.js
91
+ var custom_components_exports = {};
92
+ __export(custom_components_exports, {
93
+ HtmlScript: () => u,
94
+ openapi: () => n
95
+ });
96
+
97
+ // ../../packages/portal/products/realm/dist/server/plugins/markdown/markdoc/custom-components/html-script.js
98
+ import * as s2 from "react";
99
+ function u(n2) {
100
+ let r = false;
101
+ const { children: c2, src: e, async: o, ...t } = n2;
102
+ return typeof document < "u" && (r = !!(e ? document.querySelector(`script[src="${e}"]`) : null)), s2.useEffect(() => {
103
+ r || (e ? o ? P(e, t) : E(e, false, t) : c2 && E(c2.toString(), true, t));
104
+ }, [e]), null;
105
+ }
106
+
107
+ // ../../packages/portal/products/realm/dist/server/plugins/markdown/markdoc/custom-components/index.js
108
+ async function n() {
109
+ return await import("./openapi-PYAD6YIG.js");
110
+ }
111
+
112
+ export {
113
+ components,
114
+ x,
115
+ A,
116
+ custom_components_exports
117
+ };
@@ -0,0 +1,117 @@
1
+ import { createRequire as topLevelCreateRequire } from 'module';
2
+ const require = topLevelCreateRequire(import.meta.url);
3
+ import {
4
+ _
5
+ } from "./chunk-72YI47PJ.js";
6
+ import {
7
+ getPathPrefix,
8
+ init_utils,
9
+ withPathPrefix
10
+ } from "./chunk-27G3BZUU.js";
11
+
12
+ // ../../packages/portal/products/realm/dist/utils/url/remove-trailing-slash.js
13
+ function e(n2) {
14
+ return n2.endsWith("/") && n2 !== "/" ? n2.substring(0, n2.length - 1) : n2;
15
+ }
16
+
17
+ // ../../packages/portal/products/realm/dist/shared/utils.js
18
+ var a = (t) => t != null && !t.match(/^[a-z]+:\/\//) && !t.startsWith("//") && !t.startsWith("mailto:");
19
+ var p = (t) => t != null && (t.startsWith("/assets/") || !!t.match(/\.\w{3,4}($|\?)/g));
20
+ var d = (t) => !!t?.startsWith("javascript:");
21
+ function f(t) {
22
+ return t.endsWith("/") ? t : `${t}/`;
23
+ }
24
+ function o(t) {
25
+ return t.startsWith("/") ? t.substring(1) : t;
26
+ }
27
+ function l(t) {
28
+ return t?.$$mdtype === "Function";
29
+ }
30
+ function g(t) {
31
+ return t?.$$mdtype === "Tag";
32
+ }
33
+ function n(t) {
34
+ return t?.$$mdtype === "Node";
35
+ }
36
+ function m(t) {
37
+ return n(t) && t.tag === "if";
38
+ }
39
+ function h(t) {
40
+ return n(t) && t.tag === "markdoc-example";
41
+ }
42
+ function y(t) {
43
+ return n(t) && t.type === "text";
44
+ }
45
+ function W(t) {
46
+ return n(t) && t.type === "code";
47
+ }
48
+ function L(t) {
49
+ return n(t) && t.type === "fence";
50
+ }
51
+ function N(t) {
52
+ return t?.$$mdtype === "Variable";
53
+ }
54
+ var b = (t) => getComputedStyle(document.documentElement).getPropertyValue(t);
55
+ function S(t) {
56
+ return t = t.split("?")[0].split("#")[0], t.endsWith("/") && (t = e(t)), t.startsWith("/") || (t = "/" + t), decodeURI(t);
57
+ }
58
+ function k(t) {
59
+ return ["string", "boolean", "number"].includes(typeof t);
60
+ }
61
+
62
+ // ../../packages/portal/products/realm/dist/shared/urls.js
63
+ init_utils();
64
+ function P(t) {
65
+ return `/page-data${t === "/" ? "/index" : t}/data.json`;
66
+ }
67
+ function U(t) {
68
+ const e2 = getPathPrefix();
69
+ if (e2) {
70
+ const o2 = t.slice(e2.length);
71
+ return `${e2}/page-data${o2 === "/" ? "/index" : o2}/data.json`;
72
+ }
73
+ return P(t);
74
+ }
75
+ function L2(t) {
76
+ return `/page-data/shared/${t}.json`;
77
+ }
78
+ var _2 = "/app-data.json";
79
+ function x(t, e2) {
80
+ const o2 = t.indexOf("?") > -1 ? "&" : "?";
81
+ return `${t}${o2}${new URLSearchParams(e2).toString()}`;
82
+ }
83
+ var $ = process.env.SERVER_EDITOR_APP_URL || "http://127.0.0.1:3000";
84
+ function y2(t) {
85
+ return /^https?:\/\//.test(t);
86
+ }
87
+ function j(t, e2, o2, i, a2, c = {}) {
88
+ if (!t) return;
89
+ const n2 = i?.[e2] || withPathPrefix(_.IDP_LOGIN), r = { idpId: t, localePrefix: o2, redirectTo: a2 || "", ...c };
90
+ return x(n2, r);
91
+ }
92
+
93
+ export {
94
+ e,
95
+ a,
96
+ p,
97
+ d,
98
+ f,
99
+ o,
100
+ l,
101
+ g,
102
+ n,
103
+ m,
104
+ h,
105
+ y,
106
+ W,
107
+ L,
108
+ N,
109
+ b,
110
+ S,
111
+ k,
112
+ U,
113
+ L2,
114
+ _2 as _,
115
+ y2,
116
+ j
117
+ };