strapi-content-embeddings 0.2.0 → 0.2.1
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.
- package/dist/_chunks/en-B4KWt_jN.js +0 -1
- package/dist/_chunks/en-Byx4XI2L.mjs +0 -1
- package/dist/admin/index.js +686 -4
- package/dist/admin/index.mjs +683 -4
- package/dist/server/index.js +293 -287
- package/dist/server/index.mjs +293 -287
- package/dist/server/src/index.d.ts +5 -0
- package/dist/server/src/mcp/schemas/index.d.ts +3 -0
- package/dist/server/src/mcp/tools/create-embedding.d.ts +3 -4
- package/dist/server/src/mcp/tools/get-embedding.d.ts +3 -3
- package/dist/server/src/mcp/tools/index.d.ts +1 -0
- package/dist/server/src/mcp/tools/list-embeddings.d.ts +3 -3
- package/dist/server/src/mcp/tools/rag-query.d.ts +3 -3
- package/dist/server/src/mcp/tools/semantic-search.d.ts +3 -3
- package/dist/server/src/services/ai-tools.d.ts +13 -0
- package/dist/server/src/services/embeddings.d.ts +2 -2
- package/dist/server/src/services/index.d.ts +5 -0
- package/dist/server/src/tools/create-embedding.d.ts +9 -0
- package/dist/server/src/tools/get-embedding.d.ts +8 -0
- package/dist/server/src/tools/index.d.ts +14 -0
- package/dist/server/src/tools/list-embeddings.d.ts +8 -0
- package/dist/server/src/tools/rag-query.d.ts +8 -0
- package/dist/server/src/tools/semantic-search.d.ts +8 -0
- package/dist/server/src/tools/types.d.ts +14 -0
- package/package.json +1 -1
- package/dist/_chunks/App-ByRBbkZn.js +0 -1600
- package/dist/_chunks/App-ByRBbkZn.js.map +0 -1
- package/dist/_chunks/App-MjsTrWRS.mjs +0 -1596
- package/dist/_chunks/App-MjsTrWRS.mjs.map +0 -1
- package/dist/_chunks/en-B4KWt_jN.js.map +0 -1
- package/dist/_chunks/en-Byx4XI2L.mjs.map +0 -1
- package/dist/_chunks/index-TWbcT-zJ.js +0 -785
- package/dist/_chunks/index-TWbcT-zJ.js.map +0 -1
- package/dist/_chunks/index-ifqYByO5.mjs +0 -783
- package/dist/_chunks/index-ifqYByO5.mjs.map +0 -1
- package/dist/admin/index.js.map +0 -1
- package/dist/admin/index.mjs.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/server/index.mjs.map +0 -1
|
@@ -1,785 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
-
const react = require("react");
|
|
4
|
-
const designSystem = require("@strapi/design-system");
|
|
5
|
-
const reactRouterDom = require("react-router-dom");
|
|
6
|
-
const styled = require("styled-components");
|
|
7
|
-
const qs = require("qs");
|
|
8
|
-
const admin = require("@strapi/strapi/admin");
|
|
9
|
-
const icons = require("@strapi/icons");
|
|
10
|
-
const editor = require("@mdxeditor/editor");
|
|
11
|
-
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
12
|
-
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
13
|
-
const qs__default = /* @__PURE__ */ _interopDefault(qs);
|
|
14
|
-
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
15
|
-
const v = glob[path];
|
|
16
|
-
if (v) {
|
|
17
|
-
return typeof v === "function" ? v() : Promise.resolve(v);
|
|
18
|
-
}
|
|
19
|
-
return new Promise((_, reject) => {
|
|
20
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
21
|
-
reject.bind(
|
|
22
|
-
null,
|
|
23
|
-
new Error(
|
|
24
|
-
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
|
25
|
-
)
|
|
26
|
-
)
|
|
27
|
-
);
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
const PLUGIN_ID = "strapi-content-embeddings";
|
|
31
|
-
const getTranslation = (id) => `${PLUGIN_ID}.${id}`;
|
|
32
|
-
const Initializer = ({ setPlugin }) => {
|
|
33
|
-
const ref = react.useRef(setPlugin);
|
|
34
|
-
react.useEffect(() => {
|
|
35
|
-
ref.current(PLUGIN_ID);
|
|
36
|
-
}, []);
|
|
37
|
-
return null;
|
|
38
|
-
};
|
|
39
|
-
function RobotIcon({ height = 48, width = 48 }) {
|
|
40
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
41
|
-
"svg",
|
|
42
|
-
{
|
|
43
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
44
|
-
height,
|
|
45
|
-
viewBox: "0 -960 960 960",
|
|
46
|
-
width,
|
|
47
|
-
fill: "currentColor",
|
|
48
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M160-120v-220q0-24.75 17.625-42.375T220-400h520q24.75 0 42.375 17.625T800-340v220H160Zm200-320q-83 0-141.5-58.5T160-640q0-83 58.5-141.5T360-840h240q83 0 141.5 58.5T800-640q0 83-58.5 141.5T600-440H360ZM220-180h520v-160H220v160Zm140-320h240q58.333 0 99.167-40.765 40.833-40.764 40.833-99Q740-698 699.167-739 658.333-780 600-780H360q-58.333 0-99.167 40.765-40.833 40.764-40.833 99Q220-582 260.833-541q40.834 41 99.167 41Zm.175-110q12.825 0 21.325-8.675 8.5-8.676 8.5-21.5 0-12.825-8.675-21.325-8.676-8.5-21.5-8.5-12.825 0-21.325 8.675-8.5 8.676-8.5 21.5 0 12.825 8.675 21.325 8.676 8.5 21.5 8.5Zm240 0q12.825 0 21.325-8.675 8.5-8.676 8.5-21.5 0-12.825-8.675-21.325-8.676-8.5-21.5-8.5-12.825 0-21.325 8.675-8.5 8.676-8.5 21.5 0 12.825 8.675 21.325 8.676 8.5 21.5 8.5ZM480-180Zm0-460Z" })
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
const PluginIcon = () => /* @__PURE__ */ jsxRuntime.jsx(RobotIcon, { height: 24, width: 24 });
|
|
53
|
-
const MDXEditorStyles = styled.createGlobalStyle`
|
|
54
|
-
/* MDXEditor CSS Variables */
|
|
55
|
-
:root {
|
|
56
|
-
--mdx-spacing-0_5: 0.125rem;
|
|
57
|
-
--mdx-spacing-1: 0.25rem;
|
|
58
|
-
--mdx-spacing-1_5: 0.375rem;
|
|
59
|
-
--mdx-spacing-2: 0.5rem;
|
|
60
|
-
--mdx-spacing-3: 0.75rem;
|
|
61
|
-
--mdx-spacing-4: 1rem;
|
|
62
|
-
--mdx-spacing-36: 9rem;
|
|
63
|
-
--mdx-radius-base: 0.25rem;
|
|
64
|
-
--mdx-radius-medium: 0.375rem;
|
|
65
|
-
--mdx-text-sm: 0.875rem;
|
|
66
|
-
--mdx-baseBg: #f6f6f9;
|
|
67
|
-
--mdx-baseBgActive: #e8e8ec;
|
|
68
|
-
--mdx-basePageBg: #ffffff;
|
|
69
|
-
--mdx-baseBorder: #dcdce4;
|
|
70
|
-
--mdx-baseBorderHover: #b9bbc6;
|
|
71
|
-
--mdx-baseBase: #e0e1e6;
|
|
72
|
-
--mdx-baseTextContrast: #1c2024;
|
|
73
|
-
--mdx-accentText: #4945ff;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* Toolbar Root - critical for horizontal layout */
|
|
77
|
-
[class*="_toolbarRoot"] {
|
|
78
|
-
z-index: 2;
|
|
79
|
-
display: flex !important;
|
|
80
|
-
flex-direction: row !important;
|
|
81
|
-
flex-wrap: wrap !important;
|
|
82
|
-
gap: var(--mdx-spacing-1);
|
|
83
|
-
border-radius: var(--mdx-radius-medium);
|
|
84
|
-
padding: var(--mdx-spacing-1_5);
|
|
85
|
-
align-items: center !important;
|
|
86
|
-
overflow-x: auto;
|
|
87
|
-
position: sticky;
|
|
88
|
-
top: 0;
|
|
89
|
-
background-color: var(--mdx-baseBg) !important;
|
|
90
|
-
border-bottom: 1px solid var(--mdx-baseBorder);
|
|
91
|
-
width: 100%;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
[class*="_toolbarRoot"] div[role='separator'] {
|
|
95
|
-
margin: var(--mdx-spacing-2) var(--mdx-spacing-1);
|
|
96
|
-
border-left: 1px solid var(--mdx-baseBorder);
|
|
97
|
-
border-right: 1px solid var(--mdx-baseBase);
|
|
98
|
-
height: var(--mdx-spacing-4);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
[class*="_toolbarRoot"] svg {
|
|
102
|
-
color: var(--mdx-baseTextContrast);
|
|
103
|
-
display: block;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/* Toolbar button groups */
|
|
107
|
-
[class*="_toolbarGroupOfGroups"] {
|
|
108
|
-
display: flex;
|
|
109
|
-
margin: 0 var(--mdx-spacing-1);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
[class*="_toolbarToggleSingleGroup"] {
|
|
113
|
-
display: flex;
|
|
114
|
-
align-items: center;
|
|
115
|
-
white-space: nowrap;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/* Toolbar buttons and toggle items */
|
|
119
|
-
[class*="_toolbarToggleItem"],
|
|
120
|
-
[class*="_toolbarButton"] {
|
|
121
|
-
border: 0;
|
|
122
|
-
background-color: transparent;
|
|
123
|
-
font-size: inherit;
|
|
124
|
-
appearance: none;
|
|
125
|
-
box-sizing: border-box;
|
|
126
|
-
cursor: pointer;
|
|
127
|
-
padding: var(--mdx-spacing-0_5);
|
|
128
|
-
border-radius: var(--mdx-radius-base);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
[class*="_toolbarToggleItem"]:hover,
|
|
132
|
-
[class*="_toolbarButton"]:hover {
|
|
133
|
-
background-color: var(--mdx-baseBgActive);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
[class*="_toolbarToggleItem"][data-state='on'],
|
|
137
|
-
[class*="_toolbarButton"][data-state='on'],
|
|
138
|
-
[class*="_toolbarToggleItem"]:active,
|
|
139
|
-
[class*="_toolbarButton"]:active {
|
|
140
|
-
color: var(--mdx-baseTextContrast);
|
|
141
|
-
background-color: var(--mdx-baseBgActive);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/* Block type select dropdown */
|
|
145
|
-
[class*="_toolbarNodeKindSelectTrigger"],
|
|
146
|
-
[class*="_selectTrigger"] {
|
|
147
|
-
border: 0;
|
|
148
|
-
display: flex;
|
|
149
|
-
color: inherit;
|
|
150
|
-
align-items: center;
|
|
151
|
-
width: var(--mdx-spacing-36);
|
|
152
|
-
padding: var(--mdx-spacing-0_5) var(--mdx-spacing-1);
|
|
153
|
-
padding-inline-start: var(--mdx-spacing-2);
|
|
154
|
-
border-radius: var(--mdx-radius-medium);
|
|
155
|
-
white-space: nowrap;
|
|
156
|
-
font-size: var(--mdx-text-sm);
|
|
157
|
-
background-color: var(--mdx-basePageBg);
|
|
158
|
-
margin: 0 var(--mdx-spacing-1);
|
|
159
|
-
cursor: pointer;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/* Dropdown containers */
|
|
163
|
-
[class*="_toolbarNodeKindSelectContainer"],
|
|
164
|
-
[class*="_selectContainer"] {
|
|
165
|
-
filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.2));
|
|
166
|
-
z-index: 100;
|
|
167
|
-
width: var(--mdx-spacing-36);
|
|
168
|
-
border-radius: var(--mdx-radius-base);
|
|
169
|
-
background-color: var(--mdx-basePageBg);
|
|
170
|
-
font-size: var(--mdx-text-sm);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/* Select items */
|
|
174
|
-
[class*="_toolbarNodeKindSelectItem"],
|
|
175
|
-
[class*="_selectItem"] {
|
|
176
|
-
cursor: pointer;
|
|
177
|
-
display: flex;
|
|
178
|
-
padding: var(--mdx-spacing-2);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
[class*="_toolbarNodeKindSelectItem"][data-highlighted],
|
|
182
|
-
[class*="_selectItem"][data-highlighted],
|
|
183
|
-
[class*="_toolbarNodeKindSelectItem"][data-state='checked'],
|
|
184
|
-
[class*="_selectItem"][data-state='checked'] {
|
|
185
|
-
background-color: var(--mdx-baseBg);
|
|
186
|
-
outline: none;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/* Dropdown arrow */
|
|
190
|
-
[class*="_selectDropdownArrow"] {
|
|
191
|
-
margin-left: auto;
|
|
192
|
-
display: flex;
|
|
193
|
-
align-items: center;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/* Content editable area */
|
|
197
|
-
[class*="_contentEditable"] {
|
|
198
|
-
box-sizing: border-box;
|
|
199
|
-
width: 100%;
|
|
200
|
-
color: var(--mdx-baseTextContrast);
|
|
201
|
-
padding: var(--mdx-spacing-3);
|
|
202
|
-
min-height: 200px;
|
|
203
|
-
outline: none;
|
|
204
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
205
|
-
font-size: 14px;
|
|
206
|
-
line-height: 1.6;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
[class*="_contentEditable"]:focus {
|
|
210
|
-
outline: none;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/* Placeholder positioning - ensure it's at the top */
|
|
214
|
-
[class*="_contentEditable"] {
|
|
215
|
-
position: relative;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
[class*="_contentEditable"][data-placeholder]::before {
|
|
219
|
-
position: absolute;
|
|
220
|
-
top: var(--mdx-spacing-3);
|
|
221
|
-
left: var(--mdx-spacing-3);
|
|
222
|
-
color: #a5a5ba;
|
|
223
|
-
pointer-events: none;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/* MDXEditor/Lexical placeholder styles */
|
|
227
|
-
[class*="_placeholder"],
|
|
228
|
-
[class*="ContentEditable__placeholder"],
|
|
229
|
-
[class*="editor-placeholder"] {
|
|
230
|
-
position: absolute !important;
|
|
231
|
-
top: var(--mdx-spacing-3) !important;
|
|
232
|
-
left: var(--mdx-spacing-3) !important;
|
|
233
|
-
color: #a5a5ba;
|
|
234
|
-
pointer-events: none;
|
|
235
|
-
overflow: hidden;
|
|
236
|
-
text-overflow: ellipsis;
|
|
237
|
-
user-select: none;
|
|
238
|
-
display: inline-block;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/* Editor root wrapper needs relative positioning for placeholder */
|
|
242
|
-
[class*="_rootContentEditableWrapper"],
|
|
243
|
-
[class*="_editorWrapper"] {
|
|
244
|
-
position: relative;
|
|
245
|
-
display: flex;
|
|
246
|
-
flex-direction: column;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
/* Heading styles */
|
|
250
|
-
[class*="_contentEditable"] h1 {
|
|
251
|
-
font-size: 1.75rem;
|
|
252
|
-
font-weight: 600;
|
|
253
|
-
margin: 0 0 1rem;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
[class*="_contentEditable"] h2 {
|
|
257
|
-
font-size: 1.5rem;
|
|
258
|
-
font-weight: 600;
|
|
259
|
-
margin: 1rem 0 0.75rem;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
[class*="_contentEditable"] h3 {
|
|
263
|
-
font-size: 1.25rem;
|
|
264
|
-
font-weight: 600;
|
|
265
|
-
margin: 1rem 0 0.5rem;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/* Paragraph and list styles */
|
|
269
|
-
[class*="_contentEditable"] p {
|
|
270
|
-
margin: 0 0 1rem;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
[class*="_contentEditable"] ul,
|
|
274
|
-
[class*="_contentEditable"] ol {
|
|
275
|
-
margin: 0 0 1rem;
|
|
276
|
-
padding-left: 1.5rem;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
[class*="_contentEditable"] li {
|
|
280
|
-
margin: 0.25rem 0;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
/* Code styles */
|
|
284
|
-
[class*="_contentEditable"] code {
|
|
285
|
-
background: #f0f0f5;
|
|
286
|
-
padding: 0.2em 0.4em;
|
|
287
|
-
border-radius: 3px;
|
|
288
|
-
font-family: "Monaco", "Menlo", monospace;
|
|
289
|
-
font-size: 0.9em;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
[class*="_contentEditable"] pre {
|
|
293
|
-
background: #2d2d2d;
|
|
294
|
-
color: #f8f8f2;
|
|
295
|
-
padding: 1rem;
|
|
296
|
-
border-radius: 4px;
|
|
297
|
-
overflow-x: auto;
|
|
298
|
-
margin: 0 0 1rem;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
[class*="_contentEditable"] pre code {
|
|
302
|
-
background: none;
|
|
303
|
-
padding: 0;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
/* Blockquote */
|
|
307
|
-
[class*="_contentEditable"] blockquote {
|
|
308
|
-
border-left: 3px solid #dcdce4;
|
|
309
|
-
margin: 0 0 1rem;
|
|
310
|
-
padding-left: 1rem;
|
|
311
|
-
color: #666;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/* Links */
|
|
315
|
-
[class*="_contentEditable"] a {
|
|
316
|
-
color: #4945ff;
|
|
317
|
-
text-decoration: underline;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
/* Horizontal rule */
|
|
321
|
-
[class*="_contentEditable"] hr {
|
|
322
|
-
border: none;
|
|
323
|
-
border-top: 1px solid #dcdce4;
|
|
324
|
-
margin: 1.5rem 0;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
/* Editor root */
|
|
328
|
-
[class*="_editorRoot"] {
|
|
329
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
330
|
-
color: var(--mdx-baseTextContrast);
|
|
331
|
-
background: var(--mdx-basePageBg);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
/* Link dialog */
|
|
335
|
-
[class*="_linkDialogPopoverContent"] {
|
|
336
|
-
display: flex;
|
|
337
|
-
flex-direction: column;
|
|
338
|
-
gap: var(--mdx-spacing-2);
|
|
339
|
-
padding: var(--mdx-spacing-3);
|
|
340
|
-
background-color: var(--mdx-basePageBg);
|
|
341
|
-
border-radius: var(--mdx-radius-medium);
|
|
342
|
-
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
|
|
343
|
-
z-index: 100;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
[class*="_linkDialogInputWrapper"] {
|
|
347
|
-
display: flex;
|
|
348
|
-
gap: var(--mdx-spacing-1);
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
[class*="_linkDialogInputWrapper"] input {
|
|
352
|
-
flex: 1;
|
|
353
|
-
padding: var(--mdx-spacing-1) var(--mdx-spacing-2);
|
|
354
|
-
border: 1px solid var(--mdx-baseBorder);
|
|
355
|
-
border-radius: var(--mdx-radius-base);
|
|
356
|
-
font-size: var(--mdx-text-sm);
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
[class*="_linkDialogInputWrapper"] button {
|
|
360
|
-
padding: var(--mdx-spacing-1) var(--mdx-spacing-2);
|
|
361
|
-
background-color: var(--mdx-accentText);
|
|
362
|
-
color: white;
|
|
363
|
-
border: none;
|
|
364
|
-
border-radius: var(--mdx-radius-base);
|
|
365
|
-
cursor: pointer;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
/* Popover positioning */
|
|
369
|
-
[data-radix-popper-content-wrapper] {
|
|
370
|
-
z-index: 100 !important;
|
|
371
|
-
}
|
|
372
|
-
`;
|
|
373
|
-
const EditorWrapper = styled__default.default(designSystem.Box)`
|
|
374
|
-
border: 1px solid ${({ $isFocused }) => $isFocused ? "#4945ff" : "#dcdce4"};
|
|
375
|
-
border-radius: 4px;
|
|
376
|
-
overflow: hidden;
|
|
377
|
-
background: #fff;
|
|
378
|
-
transition: border-color 0.2s, box-shadow 0.2s;
|
|
379
|
-
box-shadow: ${({ $isFocused }) => $isFocused ? "0 0 0 2px rgba(73, 69, 255, 0.2)" : "none"};
|
|
380
|
-
`;
|
|
381
|
-
function ToolbarContents() {
|
|
382
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
383
|
-
/* @__PURE__ */ jsxRuntime.jsx(editor.UndoRedo, {}),
|
|
384
|
-
/* @__PURE__ */ jsxRuntime.jsx(editor.Separator, {}),
|
|
385
|
-
/* @__PURE__ */ jsxRuntime.jsx(editor.BlockTypeSelect, {}),
|
|
386
|
-
/* @__PURE__ */ jsxRuntime.jsx(editor.Separator, {}),
|
|
387
|
-
/* @__PURE__ */ jsxRuntime.jsx(editor.BoldItalicUnderlineToggles, {}),
|
|
388
|
-
/* @__PURE__ */ jsxRuntime.jsx(editor.Separator, {}),
|
|
389
|
-
/* @__PURE__ */ jsxRuntime.jsx(editor.CreateLink, {}),
|
|
390
|
-
/* @__PURE__ */ jsxRuntime.jsx(editor.Separator, {}),
|
|
391
|
-
/* @__PURE__ */ jsxRuntime.jsx(editor.ListsToggle, {})
|
|
392
|
-
] });
|
|
393
|
-
}
|
|
394
|
-
function MarkdownEditor({ content, onChange, height = 300 }) {
|
|
395
|
-
const [isFocused, setIsFocused] = react.useState(false);
|
|
396
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
397
|
-
/* @__PURE__ */ jsxRuntime.jsx(MDXEditorStyles, {}),
|
|
398
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
399
|
-
EditorWrapper,
|
|
400
|
-
{
|
|
401
|
-
$isFocused: isFocused,
|
|
402
|
-
onFocus: () => setIsFocused(true),
|
|
403
|
-
onBlur: () => setIsFocused(false),
|
|
404
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: { minHeight: `${height}px` }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
405
|
-
editor.MDXEditor,
|
|
406
|
-
{
|
|
407
|
-
markdown: content,
|
|
408
|
-
onChange,
|
|
409
|
-
placeholder: "Write your content here...",
|
|
410
|
-
plugins: [
|
|
411
|
-
editor.headingsPlugin(),
|
|
412
|
-
editor.listsPlugin(),
|
|
413
|
-
editor.quotePlugin(),
|
|
414
|
-
editor.thematicBreakPlugin(),
|
|
415
|
-
editor.linkPlugin(),
|
|
416
|
-
editor.linkDialogPlugin(),
|
|
417
|
-
editor.markdownShortcutPlugin(),
|
|
418
|
-
editor.toolbarPlugin({
|
|
419
|
-
toolbarContents: ToolbarContents
|
|
420
|
-
})
|
|
421
|
-
]
|
|
422
|
-
}
|
|
423
|
-
) })
|
|
424
|
-
}
|
|
425
|
-
)
|
|
426
|
-
] });
|
|
427
|
-
}
|
|
428
|
-
styled__default.default(designSystem.Typography)`
|
|
429
|
-
display: block;
|
|
430
|
-
margin-top: 1rem;
|
|
431
|
-
margin-bottom: 0.5rem;
|
|
432
|
-
`;
|
|
433
|
-
const CHUNK_SIZE = 4e3;
|
|
434
|
-
function EmbeddingsModal() {
|
|
435
|
-
const { post, get } = admin.useFetchClient();
|
|
436
|
-
const { toggleNotification } = admin.useNotification();
|
|
437
|
-
const navigate = reactRouterDom.useNavigate();
|
|
438
|
-
const context = admin.unstable_useContentManagerContext();
|
|
439
|
-
const { form, id, slug, collectionType } = context;
|
|
440
|
-
const modifiedValues = form?.values || {};
|
|
441
|
-
const [isVisible, setIsVisible] = react.useState(false);
|
|
442
|
-
const [title, setTitle] = react.useState("");
|
|
443
|
-
const [content, setContent] = react.useState("");
|
|
444
|
-
const [fieldName, setFieldName] = react.useState("");
|
|
445
|
-
const [availableFields, setAvailableFields] = react.useState([]);
|
|
446
|
-
const [isLoading, setIsLoading] = react.useState(false);
|
|
447
|
-
const [isCheckingExisting, setIsCheckingExisting] = react.useState(true);
|
|
448
|
-
const [existingEmbedding, setExistingEmbedding] = react.useState(null);
|
|
449
|
-
react.useEffect(() => {
|
|
450
|
-
async function checkExistingEmbedding() {
|
|
451
|
-
if (!id || !slug) {
|
|
452
|
-
setIsCheckingExisting(false);
|
|
453
|
-
return;
|
|
454
|
-
}
|
|
455
|
-
try {
|
|
456
|
-
const query = qs__default.default.stringify({
|
|
457
|
-
filters: {
|
|
458
|
-
metadata: { $containsi: id }
|
|
459
|
-
}
|
|
460
|
-
});
|
|
461
|
-
const response = await get(`/${PLUGIN_ID}/embeddings/find?${query}`);
|
|
462
|
-
const embeddings = response.data?.data || response.data || [];
|
|
463
|
-
if (Array.isArray(embeddings) && embeddings.length > 0) {
|
|
464
|
-
setExistingEmbedding({
|
|
465
|
-
documentId: embeddings[0].documentId,
|
|
466
|
-
title: embeddings[0].title,
|
|
467
|
-
content: embeddings[0].content
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
} catch (error) {
|
|
471
|
-
console.error("Failed to check for existing embedding:", error);
|
|
472
|
-
} finally {
|
|
473
|
-
setIsCheckingExisting(false);
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
checkExistingEmbedding();
|
|
477
|
-
}, [id, slug, get]);
|
|
478
|
-
const extractTextFromField = react.useCallback((value, depth = 0) => {
|
|
479
|
-
if (!value || depth > 5) return "";
|
|
480
|
-
if (typeof value === "string") {
|
|
481
|
-
return value.trim();
|
|
482
|
-
}
|
|
483
|
-
if (Array.isArray(value)) {
|
|
484
|
-
const texts = [];
|
|
485
|
-
for (const item of value) {
|
|
486
|
-
if (item && typeof item === "object" && item.__component) {
|
|
487
|
-
for (const [key, fieldValue] of Object.entries(item)) {
|
|
488
|
-
if (key === "__component" || key === "id") continue;
|
|
489
|
-
const extracted = extractTextFromField(fieldValue, depth + 1);
|
|
490
|
-
if (extracted) texts.push(extracted);
|
|
491
|
-
}
|
|
492
|
-
} else if (item && item.children) {
|
|
493
|
-
const blockText = item.children.map((child) => child.text || "").join("");
|
|
494
|
-
if (blockText) texts.push(blockText);
|
|
495
|
-
} else if (item && typeof item === "object") {
|
|
496
|
-
const extracted = extractTextFromField(item, depth + 1);
|
|
497
|
-
if (extracted) texts.push(extracted);
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
return texts.join("\n\n").trim();
|
|
501
|
-
}
|
|
502
|
-
if (typeof value === "object") {
|
|
503
|
-
const texts = [];
|
|
504
|
-
for (const [key, fieldValue] of Object.entries(value)) {
|
|
505
|
-
if (["id", "__component", "documentId", "createdAt", "updatedAt"].includes(key)) continue;
|
|
506
|
-
const extracted = extractTextFromField(fieldValue, depth + 1);
|
|
507
|
-
if (extracted) texts.push(extracted);
|
|
508
|
-
}
|
|
509
|
-
return texts.join("\n\n").trim();
|
|
510
|
-
}
|
|
511
|
-
return "";
|
|
512
|
-
}, []);
|
|
513
|
-
const isDynamicZone = (value) => {
|
|
514
|
-
return Array.isArray(value) && value.length > 0 && value[0]?.__component;
|
|
515
|
-
};
|
|
516
|
-
const detectTextFields = react.useCallback(() => {
|
|
517
|
-
if (!modifiedValues) return [];
|
|
518
|
-
const fields = [];
|
|
519
|
-
for (const [name, value] of Object.entries(modifiedValues)) {
|
|
520
|
-
if (["id", "documentId", "createdAt", "updatedAt", "publishedAt", "locale", "localizations"].includes(name)) {
|
|
521
|
-
continue;
|
|
522
|
-
}
|
|
523
|
-
const textValue = extractTextFromField(value);
|
|
524
|
-
if (textValue && textValue.length > 0) {
|
|
525
|
-
let label = name.replace(/([A-Z])/g, " $1").replace(/^./, (str) => str.toUpperCase()).trim();
|
|
526
|
-
if (isDynamicZone(value)) {
|
|
527
|
-
const componentCount = value.length;
|
|
528
|
-
label += ` (${componentCount} component${componentCount > 1 ? "s" : ""})`;
|
|
529
|
-
}
|
|
530
|
-
fields.push({
|
|
531
|
-
name,
|
|
532
|
-
label,
|
|
533
|
-
value: textValue,
|
|
534
|
-
charCount: textValue.length
|
|
535
|
-
});
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
fields.sort((a, b) => b.charCount - a.charCount);
|
|
539
|
-
return fields;
|
|
540
|
-
}, [modifiedValues, extractTextFromField]);
|
|
541
|
-
react.useEffect(() => {
|
|
542
|
-
const fields = detectTextFields();
|
|
543
|
-
setAvailableFields(fields);
|
|
544
|
-
if (fields.length > 0 && !fieldName) {
|
|
545
|
-
setFieldName(fields[0].name);
|
|
546
|
-
setContent(fields[0].value);
|
|
547
|
-
}
|
|
548
|
-
}, [detectTextFields, fieldName]);
|
|
549
|
-
const handleFieldChange = (selectedFieldName) => {
|
|
550
|
-
setFieldName(selectedFieldName);
|
|
551
|
-
const selectedField = availableFields.find((f) => f.name === selectedFieldName);
|
|
552
|
-
if (selectedField) {
|
|
553
|
-
setContent(selectedField.value);
|
|
554
|
-
}
|
|
555
|
-
};
|
|
556
|
-
const contentLength = content.length;
|
|
557
|
-
const willChunk = contentLength > CHUNK_SIZE;
|
|
558
|
-
const estimatedChunks = willChunk ? Math.ceil(contentLength / (CHUNK_SIZE - 200)) : 1;
|
|
559
|
-
const isSaved = !!id;
|
|
560
|
-
function generateMetadata() {
|
|
561
|
-
return {
|
|
562
|
-
source: "content-manager",
|
|
563
|
-
collectionType: slug || collectionType || "unknown",
|
|
564
|
-
fieldName: fieldName || "content",
|
|
565
|
-
documentId: id,
|
|
566
|
-
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
567
|
-
};
|
|
568
|
-
}
|
|
569
|
-
const isValid = title.trim() && content.trim();
|
|
570
|
-
function handleOpenCreate() {
|
|
571
|
-
setTitle("");
|
|
572
|
-
const fields = detectTextFields();
|
|
573
|
-
setAvailableFields(fields);
|
|
574
|
-
if (fields.length > 0) {
|
|
575
|
-
setFieldName(fields[0].name);
|
|
576
|
-
setContent(fields[0].value);
|
|
577
|
-
}
|
|
578
|
-
setIsVisible(true);
|
|
579
|
-
}
|
|
580
|
-
async function handleSubmit(e) {
|
|
581
|
-
e.preventDefault();
|
|
582
|
-
if (!title.trim()) {
|
|
583
|
-
toggleNotification({
|
|
584
|
-
type: "warning",
|
|
585
|
-
message: "Embeddings title is required"
|
|
586
|
-
});
|
|
587
|
-
return;
|
|
588
|
-
}
|
|
589
|
-
if (!content.trim()) {
|
|
590
|
-
toggleNotification({
|
|
591
|
-
type: "warning",
|
|
592
|
-
message: "Embeddings content is required"
|
|
593
|
-
});
|
|
594
|
-
return;
|
|
595
|
-
}
|
|
596
|
-
setIsLoading(true);
|
|
597
|
-
try {
|
|
598
|
-
const contentToEmbed = content.trim();
|
|
599
|
-
const shouldChunk = contentToEmbed.length > CHUNK_SIZE;
|
|
600
|
-
const chunks = shouldChunk ? Math.ceil(contentToEmbed.length / CHUNK_SIZE) : 1;
|
|
601
|
-
if (shouldChunk) {
|
|
602
|
-
console.log(`Creating chunked embedding: ${contentToEmbed.length} chars (~${chunks} parts)`);
|
|
603
|
-
}
|
|
604
|
-
const result = await post(`/${PLUGIN_ID}/embeddings/create-embedding`, {
|
|
605
|
-
data: {
|
|
606
|
-
title: title.trim(),
|
|
607
|
-
content: contentToEmbed,
|
|
608
|
-
collectionType: slug || collectionType,
|
|
609
|
-
fieldName,
|
|
610
|
-
metadata: generateMetadata(),
|
|
611
|
-
autoChunk: shouldChunk
|
|
612
|
-
}
|
|
613
|
-
});
|
|
614
|
-
const responseData = result?.data || result;
|
|
615
|
-
if (responseData?.documentId) {
|
|
616
|
-
setExistingEmbedding({
|
|
617
|
-
documentId: responseData.documentId,
|
|
618
|
-
title: responseData.title,
|
|
619
|
-
content: responseData.content
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
setIsVisible(false);
|
|
623
|
-
const message = shouldChunk ? `Embedding created and chunked into ${chunks} parts` : "Embedding created successfully";
|
|
624
|
-
toggleNotification({ type: "success", message });
|
|
625
|
-
} catch (error) {
|
|
626
|
-
console.error("Failed to create embedding:", error);
|
|
627
|
-
toggleNotification({
|
|
628
|
-
type: "danger",
|
|
629
|
-
message: error.message || "Failed to create embedding"
|
|
630
|
-
});
|
|
631
|
-
} finally {
|
|
632
|
-
setIsLoading(false);
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
function handleViewEmbedding() {
|
|
636
|
-
if (existingEmbedding?.documentId) {
|
|
637
|
-
navigate(`/plugins/${PLUGIN_ID}/embeddings/${existingEmbedding.documentId}`);
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
if (!form || !id) {
|
|
641
|
-
return null;
|
|
642
|
-
}
|
|
643
|
-
if (isCheckingExisting) {
|
|
644
|
-
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingTop: 2, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Loader, { small: true, children: "Checking embeddings..." }) });
|
|
645
|
-
}
|
|
646
|
-
const submitButtonText = isLoading ? "Creating..." : "Create Embedding";
|
|
647
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { paddingTop: 2, children: [
|
|
648
|
-
existingEmbedding ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: handleViewEmbedding, startIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.Eye, {}), fullWidth: true, children: "View Embedding" }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
649
|
-
designSystem.Button,
|
|
650
|
-
{
|
|
651
|
-
onClick: handleOpenCreate,
|
|
652
|
-
startIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.Plus, {}),
|
|
653
|
-
disabled: !isSaved,
|
|
654
|
-
fullWidth: true,
|
|
655
|
-
children: "Create Embedding"
|
|
656
|
-
}
|
|
657
|
-
),
|
|
658
|
-
!isSaved && !existingEmbedding && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", style: { display: "block", marginTop: "0.5rem" }, children: "Save content first to create embedding" }),
|
|
659
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Root, { open: isVisible, onOpenChange: setIsVisible, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Modal.Content, { children: [
|
|
660
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Title, { children: "Create Embedding from Content" }) }),
|
|
661
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Body, { children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { children: [
|
|
662
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { marginBottom: 4, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { children: [
|
|
663
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: "Title" }),
|
|
664
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
665
|
-
designSystem.TextInput,
|
|
666
|
-
{
|
|
667
|
-
placeholder: "Enter embedding title",
|
|
668
|
-
value: title,
|
|
669
|
-
onChange: (e) => setTitle(e.target.value)
|
|
670
|
-
}
|
|
671
|
-
)
|
|
672
|
-
] }) }),
|
|
673
|
-
availableFields.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { marginBottom: 4, children: [
|
|
674
|
-
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { children: [
|
|
675
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: "Source Field" }),
|
|
676
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Hint, { children: "Select which field to use for the embedding content" })
|
|
677
|
-
] }),
|
|
678
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
679
|
-
designSystem.SingleSelect,
|
|
680
|
-
{
|
|
681
|
-
value: fieldName,
|
|
682
|
-
onChange: (value) => handleFieldChange(value),
|
|
683
|
-
placeholder: "Select a field",
|
|
684
|
-
children: availableFields.map((field) => /* @__PURE__ */ jsxRuntime.jsxs(designSystem.SingleSelectOption, { value: field.name, children: [
|
|
685
|
-
field.label,
|
|
686
|
-
" (",
|
|
687
|
-
field.charCount.toLocaleString(),
|
|
688
|
-
" chars)"
|
|
689
|
-
] }, field.name))
|
|
690
|
-
}
|
|
691
|
-
)
|
|
692
|
-
] }),
|
|
693
|
-
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { marginBottom: 4, children: [
|
|
694
|
-
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", alignItems: "center", children: [
|
|
695
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Root, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: "Content Preview" }) }),
|
|
696
|
-
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Typography, { variant: "pi", textColor: "neutral600", children: [
|
|
697
|
-
contentLength.toLocaleString(),
|
|
698
|
-
" characters",
|
|
699
|
-
willChunk && /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Typography, { textColor: "primary600", children: [
|
|
700
|
-
" (~",
|
|
701
|
-
estimatedChunks,
|
|
702
|
-
" chunks)"
|
|
703
|
-
] })
|
|
704
|
-
] })
|
|
705
|
-
] }),
|
|
706
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
707
|
-
MarkdownEditor,
|
|
708
|
-
{
|
|
709
|
-
content,
|
|
710
|
-
onChange: setContent,
|
|
711
|
-
height: 200
|
|
712
|
-
}
|
|
713
|
-
)
|
|
714
|
-
] })
|
|
715
|
-
] }) }),
|
|
716
|
-
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Modal.Footer, { children: [
|
|
717
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Modal.Close, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { variant: "tertiary", children: "Cancel" }) }),
|
|
718
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
719
|
-
designSystem.Button,
|
|
720
|
-
{
|
|
721
|
-
onClick: handleSubmit,
|
|
722
|
-
disabled: isLoading || !isValid,
|
|
723
|
-
loading: isLoading,
|
|
724
|
-
children: submitButtonText
|
|
725
|
-
}
|
|
726
|
-
)
|
|
727
|
-
] })
|
|
728
|
-
] }) })
|
|
729
|
-
] });
|
|
730
|
-
}
|
|
731
|
-
function EmbeddingsWidget() {
|
|
732
|
-
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { children: /* @__PURE__ */ jsxRuntime.jsx(EmbeddingsModal, {}) });
|
|
733
|
-
}
|
|
734
|
-
const index = {
|
|
735
|
-
register(app) {
|
|
736
|
-
app.addMenuLink({
|
|
737
|
-
to: `plugins/${PLUGIN_ID}`,
|
|
738
|
-
icon: PluginIcon,
|
|
739
|
-
intlLabel: {
|
|
740
|
-
id: `${PLUGIN_ID}.plugin.name`,
|
|
741
|
-
defaultMessage: PLUGIN_ID
|
|
742
|
-
},
|
|
743
|
-
Component: async () => {
|
|
744
|
-
const { App } = await Promise.resolve().then(() => require("./App-ByRBbkZn.js"));
|
|
745
|
-
return App;
|
|
746
|
-
}
|
|
747
|
-
});
|
|
748
|
-
app.registerPlugin({
|
|
749
|
-
id: PLUGIN_ID,
|
|
750
|
-
initializer: Initializer,
|
|
751
|
-
isReady: false,
|
|
752
|
-
name: PLUGIN_ID
|
|
753
|
-
});
|
|
754
|
-
},
|
|
755
|
-
bootstrap(app) {
|
|
756
|
-
app.getPlugin("content-manager").injectComponent("editView", "right-links", {
|
|
757
|
-
name: "open-ai-embeddings",
|
|
758
|
-
Component: () => /* @__PURE__ */ jsxRuntime.jsx(EmbeddingsWidget, {})
|
|
759
|
-
});
|
|
760
|
-
},
|
|
761
|
-
async registerTrads(app) {
|
|
762
|
-
const { locales } = app;
|
|
763
|
-
const importedTranslations = await Promise.all(
|
|
764
|
-
locales.map((locale) => {
|
|
765
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-B4KWt_jN.js")) }), `./translations/${locale}.json`, 3).then(({ default: data }) => {
|
|
766
|
-
return {
|
|
767
|
-
data: getTranslation(data),
|
|
768
|
-
locale
|
|
769
|
-
};
|
|
770
|
-
}).catch(() => {
|
|
771
|
-
return {
|
|
772
|
-
data: {},
|
|
773
|
-
locale
|
|
774
|
-
};
|
|
775
|
-
});
|
|
776
|
-
})
|
|
777
|
-
);
|
|
778
|
-
return importedTranslations;
|
|
779
|
-
}
|
|
780
|
-
};
|
|
781
|
-
exports.MarkdownEditor = MarkdownEditor;
|
|
782
|
-
exports.PLUGIN_ID = PLUGIN_ID;
|
|
783
|
-
exports.RobotIcon = RobotIcon;
|
|
784
|
-
exports.index = index;
|
|
785
|
-
//# sourceMappingURL=index-TWbcT-zJ.js.map
|