@knkcs/importhub-ui 0.3.0 → 0.5.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.
@@ -0,0 +1,1149 @@
1
+ import { jsx as t, jsxs as s, Fragment as P } from "react/jsx-runtime";
2
+ import { useState as _, useEffect as ue, useMemo as ve } from "react";
3
+ import { useTranslation as $ } from "react-i18next";
4
+ import { I as F, l as D, m as te, u as Se, i as xe, M as Ce } from "./mapping-page-D92XwUq5.js";
5
+ import { Button as H, StatusBadge as Ee, IconButton as B } from "@knkcs/anker/atoms";
6
+ import { Card as y, NavList as Q } from "@knkcs/anker/components";
7
+ import { Stack as h, Text as g, Textarea as me, Alert as K, Box as x, List as oe, HStack as ee, Heading as Ie, Code as $e, Separator as ae, Grid as he, RadioGroup as Fe, Radio as Ne } from "@knkcs/anker/primitives";
8
+ import { SubNavLayout as Z } from "@knkcs/anker/templates";
9
+ import { Plus as z, Trash2 as A } from "lucide-react";
10
+ import { useFormContext as R, useWatch as U, useFieldArray as w } from "react-hook-form";
11
+ import { FormField as fe, InputField as p, BaseSelectField as j, SwitchField as C, CheckboxField as Pe } from "@knkcs/anker/forms";
12
+ import { useHostIdentity as He } from "@knkcs/anker/host";
13
+ import { useQuery as Me } from "@tanstack/react-query";
14
+ const se = (o) => JSON.stringify(o ?? {}, null, 2);
15
+ function _e({ name: o, disabled: e }) {
16
+ const { t: l } = $(F), { control: r, setValue: i } = R(), n = U({ control: r, name: o }), [a, c] = _(() => se(n)), [d, f] = _(!1), [b, u] = _(null);
17
+ ue(() => {
18
+ d || c(se(n));
19
+ }, [n, d]);
20
+ const m = () => {
21
+ let v;
22
+ try {
23
+ v = JSON.parse(a);
24
+ } catch {
25
+ u(l("editor.json.notJson"));
26
+ return;
27
+ }
28
+ if (!v || typeof v != "object" || Array.isArray(v)) {
29
+ u(l("editor.json.notObject"));
30
+ return;
31
+ }
32
+ u(null), f(!1), i(o, v, { shouldDirty: !0 });
33
+ };
34
+ return /* @__PURE__ */ t(y, { title: l("editor.json.title"), children: /* @__PURE__ */ s(h, { gap: "3", children: [
35
+ /* @__PURE__ */ t(g, { color: "fg.muted", fontSize: "sm", children: l("editor.json.help") }),
36
+ /* @__PURE__ */ t(
37
+ me,
38
+ {
39
+ "aria-label": l("editor.json.label"),
40
+ value: a,
41
+ rows: Math.min(24, Math.max(6, a.split(`
42
+ `).length)),
43
+ fontFamily: "mono",
44
+ spellCheck: !1,
45
+ disabled: e,
46
+ onChange: (v) => {
47
+ c(v.target.value), f(!0);
48
+ }
49
+ }
50
+ ),
51
+ d && !b ? /* @__PURE__ */ t(g, { color: "fg.warning", fontSize: "sm", children: l("editor.json.unapplied") }) : null,
52
+ b ? /* @__PURE__ */ t(K, { status: "error", colorPalette: "danger", children: b }) : null,
53
+ e ? null : /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(H, { variant: "outline", size: "sm", disabled: !d, onClick: m, children: l("editor.json.apply") }) })
54
+ ] }) });
55
+ }
56
+ const Re = ["fields", "virtualTableFields"], L = (o) => Array.isArray(o) ? o : [];
57
+ function Y(o, e = "", l = "fields") {
58
+ return L(o).flatMap((r, i) => {
59
+ const n = `${e}${String(r.name ?? "")}`, a = `${l}.${i}`;
60
+ return [
61
+ { path: n, name: a },
62
+ ...Re.flatMap((c) => Y(r[c], `${n}.`, `${a}.${c}`))
63
+ ];
64
+ });
65
+ }
66
+ function ke(o, e) {
67
+ return Y(o).find((l) => l.path === e)?.name ?? null;
68
+ }
69
+ function W(o, e) {
70
+ for (const l of o) {
71
+ if (l.path === e) return [l];
72
+ if (e.startsWith(`${l.path}.`)) {
73
+ const r = W(l.children, e);
74
+ if (r) return [l, ...r];
75
+ }
76
+ }
77
+ return null;
78
+ }
79
+ function G(o, e = "") {
80
+ return { accessor: o.split(".").pop() ?? o, path: o, fieldType: e, label: "", children: [] };
81
+ }
82
+ const ze = (o) => o.fieldType.includes("table") ? "virtualTableFields" : "fields";
83
+ function Ae(o, e, l) {
84
+ const r = structuredClone(L(o)), i = ke(r, l);
85
+ if (i) return { fields: r, name: i };
86
+ const n = W(e, l) ?? [{ ...G(l, "text"), accessor: l }];
87
+ let a = r, c = "fields", d = "";
88
+ return n.forEach((f, b) => {
89
+ const u = f.path.slice(d.length);
90
+ let m = a.findIndex((E) => String(E.name ?? "") === u);
91
+ const v = b === n.length - 1;
92
+ if (m < 0 && (a.push({
93
+ name: u,
94
+ selector: v ? "" : ".",
95
+ type: Ve(f.fieldType)
96
+ }), m = a.length - 1), c = `${c}.${m}`, !v) {
97
+ const E = ze(f), k = a[m];
98
+ k[E] = L(k[E]), a = k[E], c = `${c}.${E}`, d = `${f.path}.`;
99
+ }
100
+ }), { fields: r, name: c };
101
+ }
102
+ function Le(o, e) {
103
+ const l = structuredClone(L(o)), r = e.split(".").slice(1);
104
+ let i = l;
105
+ for (let n = 0; n < r.length - 1; n += 2) {
106
+ const a = i[Number(r[n])];
107
+ if (!a) return l;
108
+ i = L(a[r[n + 1]]);
109
+ }
110
+ return i.splice(Number(r[r.length - 1]), 1), l;
111
+ }
112
+ const Oe = [
113
+ "text",
114
+ "array",
115
+ "date",
116
+ "number",
117
+ "richtext",
118
+ "reference",
119
+ "toc_reference",
120
+ "concat",
121
+ "virtualtable",
122
+ "select",
123
+ "boolean",
124
+ "fieldset",
125
+ "title_scope",
126
+ "title_data",
127
+ "outline_tree",
128
+ "processing_instructions"
129
+ ], De = {
130
+ date: "date",
131
+ number: "number",
132
+ boolean: "boolean",
133
+ select: "select",
134
+ radio: "select",
135
+ checkboxes: "array",
136
+ list: "array",
137
+ array: "array",
138
+ rich_text: "richtext",
139
+ reference: "reference",
140
+ single_reference: "reference",
141
+ fieldset: "fieldset",
142
+ group: "fieldset",
143
+ card: "fieldset",
144
+ section: "fieldset",
145
+ virtual_table: "virtualtable"
146
+ };
147
+ function Ve(o) {
148
+ return De[o] ?? "text";
149
+ }
150
+ function O({ name: o, within: e = !1 }) {
151
+ const { t: l } = $(F), { reasons: r } = D(), i = r.filter(
152
+ (n) => e ? ge(n.path, o) : te(n.path) === o
153
+ );
154
+ return i.length === 0 ? null : /* @__PURE__ */ t(K, { status: "error", colorPalette: "danger", title: l("editor.reasonsHere"), children: /* @__PURE__ */ t(oe.Root, { ps: "4", children: i.map((n, a) => (
155
+ // Two reasons may read alike; their order is importhub's.
156
+ // biome-ignore lint/suspicious/noArrayIndexKey: a static list
157
+ /* @__PURE__ */ t(oe.Item, { children: n.message }, a)
158
+ )) }) });
159
+ }
160
+ function Be(o, e) {
161
+ return o.some((l) => ge(l.path, e));
162
+ }
163
+ function ge(o, e) {
164
+ const l = te(o);
165
+ return l === e || l.startsWith(`${e}.`);
166
+ }
167
+ function be({ name: o }) {
168
+ const { reasons: e } = D(), l = new Set(
169
+ e.map((r) => te(r.path)).filter((r) => r.startsWith(`${o}.`) && /^\d+$/.test(r.slice(o.length + 1)))
170
+ );
171
+ return /* @__PURE__ */ t(P, { children: [...l].map((r) => /* @__PURE__ */ t(O, { name: r }, r)) });
172
+ }
173
+ const Ke = " = ";
174
+ function V(o) {
175
+ return Array.isArray(o) ? o.join(`
176
+ `) : o && typeof o == "object" ? Object.entries(o).map(([e, l]) => `${e}${Ke}${l}`).join(`
177
+ `) : "";
178
+ }
179
+ function ce(o, e) {
180
+ const l = o.split(`
181
+ `).map((r) => r.trim()).filter((r) => r !== "");
182
+ return e === "list" ? l : Object.fromEntries(
183
+ l.map((r) => {
184
+ const i = r.indexOf("=");
185
+ return i < 0 ? [r, ""] : [r.slice(0, i).trim(), r.slice(i + 1).trim()];
186
+ })
187
+ );
188
+ }
189
+ function S({
190
+ name: o,
191
+ label: e,
192
+ helperText: l,
193
+ kind: r = "list",
194
+ disabled: i
195
+ }) {
196
+ return /* @__PURE__ */ s(h, { gap: "2", children: [
197
+ /* @__PURE__ */ t(
198
+ fe,
199
+ {
200
+ name: o,
201
+ label: e,
202
+ helperText: l,
203
+ disabled: i,
204
+ children: (n) => /* @__PURE__ */ t(
205
+ we,
206
+ {
207
+ value: n.value,
208
+ onChange: n.onChange,
209
+ onBlur: n.onBlur,
210
+ kind: r,
211
+ id: n.name,
212
+ name: n.name,
213
+ describedBy: n["aria-describedby"],
214
+ disabled: i
215
+ }
216
+ )
217
+ }
218
+ ),
219
+ /* @__PURE__ */ t(be, { name: o })
220
+ ] });
221
+ }
222
+ function we({
223
+ value: o,
224
+ onChange: e,
225
+ onBlur: l,
226
+ kind: r,
227
+ id: i,
228
+ name: n,
229
+ describedBy: a,
230
+ disabled: c
231
+ }) {
232
+ const [d, f] = _(() => V(o));
233
+ return ue(() => {
234
+ f(
235
+ (b) => V(ce(b, r)) === V(o) ? b : V(o)
236
+ );
237
+ }, [o, r]), /* @__PURE__ */ t(
238
+ me,
239
+ {
240
+ id: i,
241
+ name: n,
242
+ "aria-describedby": a,
243
+ value: d,
244
+ rows: Math.max(2, d.split(`
245
+ `).length),
246
+ fontFamily: "mono",
247
+ disabled: c,
248
+ onBlur: l,
249
+ onChange: (b) => {
250
+ f(b.target.value), e(ce(b.target.value, r));
251
+ }
252
+ }
253
+ );
254
+ }
255
+ const je = ["de", "en", "ch"];
256
+ function We({ name: o, disabled: e }) {
257
+ const { t: l } = $(F), { control: r } = R(), i = String(U({ control: r, name: `${o}.type` }) ?? ""), n = (a) => `${o}.${a}`;
258
+ return /* @__PURE__ */ s(h, { gap: "4", children: [
259
+ /* @__PURE__ */ t(
260
+ p,
261
+ {
262
+ name: n("selector"),
263
+ label: l("editor.field.selector"),
264
+ helperText: l("editor.field.selectorHelp"),
265
+ disabled: e
266
+ }
267
+ ),
268
+ /* @__PURE__ */ t(
269
+ j,
270
+ {
271
+ name: n("type"),
272
+ label: l("editor.field.type"),
273
+ isClearable: !1,
274
+ disabled: e,
275
+ options: Oe.map((a) => ({ id: a, label: a }))
276
+ }
277
+ ),
278
+ /* @__PURE__ */ t(
279
+ C,
280
+ {
281
+ name: n("optional"),
282
+ label: l("editor.field.optional"),
283
+ helperText: l("editor.field.optionalHelp"),
284
+ disabled: e
285
+ }
286
+ ),
287
+ i === "date" ? /* @__PURE__ */ s(P, { children: [
288
+ /* @__PURE__ */ t(
289
+ p,
290
+ {
291
+ name: n("dateFormat"),
292
+ label: l("editor.field.dateFormat"),
293
+ helperText: l("editor.field.dateFormatHelp"),
294
+ disabled: e
295
+ }
296
+ ),
297
+ /* @__PURE__ */ t(
298
+ S,
299
+ {
300
+ name: n("dateFormats"),
301
+ label: l("editor.field.dateFormats"),
302
+ helperText: l("editor.field.dateFormatsHelp"),
303
+ disabled: e
304
+ }
305
+ ),
306
+ /* @__PURE__ */ t(
307
+ C,
308
+ {
309
+ name: n("autoDetectDateFormat"),
310
+ label: l("editor.field.autoDetectDateFormat"),
311
+ disabled: e
312
+ }
313
+ )
314
+ ] }) : null,
315
+ i === "number" ? /* @__PURE__ */ s(P, { children: [
316
+ /* @__PURE__ */ t(
317
+ j,
318
+ {
319
+ name: n("numberLocale"),
320
+ label: l("editor.field.numberLocale"),
321
+ disabled: e,
322
+ options: je.map((a) => ({ id: a, label: l(`editor.field.locale.${a}`) }))
323
+ }
324
+ ),
325
+ /* @__PURE__ */ t(
326
+ C,
327
+ {
328
+ name: n("stripCurrency"),
329
+ label: l("editor.field.stripCurrency"),
330
+ disabled: e
331
+ }
332
+ )
333
+ ] }) : null,
334
+ i === "date" || i === "number" ? /* @__PURE__ */ t(
335
+ C,
336
+ {
337
+ name: n("skipInvalid"),
338
+ label: l("editor.field.skipInvalid"),
339
+ helperText: l("editor.field.skipInvalidHelp"),
340
+ disabled: e
341
+ }
342
+ ) : null,
343
+ i === "select" ? /* @__PURE__ */ t(
344
+ S,
345
+ {
346
+ name: n("selectOptions"),
347
+ kind: "map",
348
+ label: l("editor.field.selectOptions"),
349
+ helperText: l("editor.field.selectOptionsHelp"),
350
+ disabled: e
351
+ }
352
+ ) : null,
353
+ i === "richtext" ? /* @__PURE__ */ s(P, { children: [
354
+ /* @__PURE__ */ t(
355
+ p,
356
+ {
357
+ name: n("richTextConfig.textWrapperElement"),
358
+ label: l("editor.field.textWrapperElement"),
359
+ disabled: e
360
+ }
361
+ ),
362
+ /* @__PURE__ */ t(
363
+ S,
364
+ {
365
+ name: n("richTextConfig.ignoreElements"),
366
+ label: l("editor.field.ignoreElements"),
367
+ helperText: l("editor.field.elementsHelp"),
368
+ disabled: e
369
+ }
370
+ ),
371
+ /* @__PURE__ */ t(
372
+ S,
373
+ {
374
+ name: n("richTextConfig.passThroughElements"),
375
+ label: l("editor.field.passThroughElements"),
376
+ helperText: l("editor.field.elementsHelp"),
377
+ disabled: e
378
+ }
379
+ ),
380
+ /* @__PURE__ */ t(
381
+ C,
382
+ {
383
+ name: n("richTextConfig.normalizeWhitespace"),
384
+ label: l("editor.field.normalizeWhitespace"),
385
+ disabled: e
386
+ }
387
+ ),
388
+ /* @__PURE__ */ t(
389
+ C,
390
+ {
391
+ name: n("richTextConfig.convertNewlinesToBreaks"),
392
+ label: l("editor.field.convertNewlinesToBreaks"),
393
+ disabled: e
394
+ }
395
+ ),
396
+ /* @__PURE__ */ t(g, { color: "fg.muted", fontSize: "sm", children: l("editor.field.richTextMore") })
397
+ ] }) : null,
398
+ i === "reference" || i === "toc_reference" ? /* @__PURE__ */ s(P, { children: [
399
+ /* @__PURE__ */ t(
400
+ p,
401
+ {
402
+ name: n("refBlueprintId"),
403
+ label: l("editor.field.refBlueprintId"),
404
+ disabled: e
405
+ }
406
+ ),
407
+ /* @__PURE__ */ t(
408
+ p,
409
+ {
410
+ name: n("refIdTemplate"),
411
+ label: l("editor.field.refIdTemplate"),
412
+ helperText: l("editor.field.refIdTemplateHelp"),
413
+ disabled: e
414
+ }
415
+ ),
416
+ /* @__PURE__ */ t(
417
+ p,
418
+ {
419
+ name: n("refIdExtractPattern"),
420
+ label: l("editor.field.refIdExtractPattern"),
421
+ disabled: e
422
+ }
423
+ ),
424
+ /* @__PURE__ */ t(
425
+ p,
426
+ {
427
+ name: n("refIdExtractSeparator"),
428
+ label: l("editor.field.refIdExtractSeparator"),
429
+ helperText: l("editor.field.refIdExtractSeparatorHelp"),
430
+ disabled: e
431
+ }
432
+ ),
433
+ /* @__PURE__ */ t(
434
+ S,
435
+ {
436
+ name: n("elementBlueprintMap"),
437
+ kind: "map",
438
+ label: l("editor.field.elementBlueprintMap"),
439
+ helperText: l("editor.field.elementBlueprintMapHelp"),
440
+ disabled: e
441
+ }
442
+ ),
443
+ /* @__PURE__ */ t(
444
+ S,
445
+ {
446
+ name: n("elementRefIdTemplateMap"),
447
+ kind: "map",
448
+ label: l("editor.field.elementRefIdTemplateMap"),
449
+ helperText: l("editor.field.elementRefIdTemplateMapHelp"),
450
+ disabled: e
451
+ }
452
+ )
453
+ ] }) : null,
454
+ i === "concat" ? /* @__PURE__ */ t(
455
+ S,
456
+ {
457
+ name: n("concatSelectors"),
458
+ label: l("editor.field.concatSelectors"),
459
+ helperText: l("editor.field.concatSelectorsHelp"),
460
+ disabled: e
461
+ }
462
+ ) : null,
463
+ i === "text" || i === "concat" || i === "array" ? /* @__PURE__ */ t(
464
+ C,
465
+ {
466
+ name: n("normalizeUnicode"),
467
+ label: l("editor.field.normalizeUnicode"),
468
+ disabled: e
469
+ }
470
+ ) : null,
471
+ i === "fieldset" || i === "virtualtable" ? /* @__PURE__ */ t(g, { color: "fg.muted", fontSize: "sm", children: l("editor.field.childrenHelp") }) : null
472
+ ] });
473
+ }
474
+ function Te(o) {
475
+ const { blueprints: e } = Se(), { workspaceId: l } = He(), r = e?.getRelease?.bind(e), i = Me({
476
+ queryKey: xe.blueprintRelease(l, o),
477
+ queryFn: () => r(o),
478
+ enabled: !!(r && o),
479
+ staleTime: Number.POSITIVE_INFINITY
480
+ });
481
+ return {
482
+ available: !!r,
483
+ release: i.data,
484
+ isLoading: i.isLoading,
485
+ isError: i.isError
486
+ };
487
+ }
488
+ function Ge(o) {
489
+ const e = /* @__PURE__ */ new Map(), l = [];
490
+ for (const r of o) {
491
+ const i = G(r.path);
492
+ e.set(r.name, i);
493
+ const n = e.get(r.name.replace(/\.(fields|virtualTableFields)\.\d+$/, ""));
494
+ n && n !== i ? n.children.push(i) : l.push(i);
495
+ }
496
+ return l;
497
+ }
498
+ function Ue({ notices: o }) {
499
+ const { t: e } = $(F), { mapping: l, canConfigure: r, reasons: i } = D(), { control: n, setValue: a } = R(), c = U({ control: n, name: "fields" }), d = Y(c), f = Te(l.content.blueprintReleaseId), b = f.release ? f.release.fields : Ge(d), u = f.release ? d.filter((T) => !W(b, T.path)) : [], [m, v] = _(null), [E, k] = _(/* @__PURE__ */ new Set()), le = (T) => d.find((M) => M.path === T)?.name ?? null, J = (T) => {
500
+ const M = le(T.path), re = M !== null && Be(i, M), ie = e(re ? "editor.tree.invalid" : M ? "editor.tree.mapped" : "editor.tree.unmapped"), q = T.label || T.accessor, ne = T.children.length > 0;
501
+ return /* @__PURE__ */ t(
502
+ Q.Item,
503
+ {
504
+ asChild: !0,
505
+ active: m === T.path,
506
+ expanded: ne ? !E.has(T.path) : void 0,
507
+ onExpandedChange: (ye) => {
508
+ const X = new Set(E);
509
+ ye ? X.delete(T.path) : X.add(T.path), k(X);
510
+ },
511
+ toggleAriaLabel: e("editor.tree.toggle", { label: q }),
512
+ indicator: /* @__PURE__ */ t(x, { "aria-hidden": !0, children: /* @__PURE__ */ t(Ee, { tone: re ? "danger" : M ? "success" : "neutral", label: ie }) }),
513
+ subItems: ne ? T.children.map(J) : void 0,
514
+ children: /* @__PURE__ */ t(
515
+ "button",
516
+ {
517
+ type: "button",
518
+ "aria-label": `${q}, ${ie}`,
519
+ onClick: () => v(T.path),
520
+ children: q
521
+ }
522
+ )
523
+ },
524
+ T.path
525
+ );
526
+ }, I = m ? W(b, m)?.at(-1) ?? { ...G(m), accessor: m } : null, N = I ? le(I.path) : null;
527
+ return /* @__PURE__ */ s(Z, { storageKey: "importhub.mappingEditor.fields", children: [
528
+ /* @__PURE__ */ t(Z.Nav, { "aria-label": e("editor.tree.label"), children: /* @__PURE__ */ s(Q, { children: [
529
+ f.isLoading ? /* @__PURE__ */ t(g, { px: "3", color: "fg.muted", children: e("startPage.loading") }) : null,
530
+ b.map(J),
531
+ u.length > 0 ? /* @__PURE__ */ t(Q.Group, { label: e("editor.tree.outside"), children: u.map((T) => J({ ...G(T.path), accessor: T.path })) }) : null
532
+ ] }) }),
533
+ /* @__PURE__ */ t(Z.Detail, { children: /* @__PURE__ */ t(x, { px: "8", py: "6", children: /* @__PURE__ */ s(h, { gap: "4", children: [
534
+ o,
535
+ f.available ? null : /* @__PURE__ */ t(K, { status: "info", colorPalette: "info", children: e("editor.tree.noLookup") }),
536
+ f.isError ? /* @__PURE__ */ t(K, { status: "error", colorPalette: "danger", children: e("editor.tree.loadFailed") }) : null,
537
+ I ? /* @__PURE__ */ s(P, { children: [
538
+ /* @__PURE__ */ s(ee, { gap: "3", align: "baseline", wrap: "wrap", children: [
539
+ /* @__PURE__ */ t(Ie, { size: "md", children: I.label || I.accessor }),
540
+ /* @__PURE__ */ t($e, { children: I.path }),
541
+ I.fieldType ? /* @__PURE__ */ t(g, { color: "fg.muted", fontSize: "sm", children: I.fieldType }) : null
542
+ ] }),
543
+ N ? /* @__PURE__ */ t(O, { name: N, within: !0 }) : null,
544
+ N ? /* @__PURE__ */ s(P, { children: [
545
+ /* @__PURE__ */ t(y, { title: e("editor.field.title"), children: /* @__PURE__ */ s(h, { gap: "4", children: [
546
+ /* @__PURE__ */ t(We, { name: N, disabled: !r }, N),
547
+ r ? /* @__PURE__ */ t(x, { children: /* @__PURE__ */ s(
548
+ H,
549
+ {
550
+ variant: "outline",
551
+ colorPalette: "red",
552
+ size: "sm",
553
+ onClick: () => a("fields", Le(c, N), {
554
+ shouldDirty: !0
555
+ }),
556
+ children: [
557
+ /* @__PURE__ */ t(A, { size: 14, "aria-hidden": !0 }),
558
+ e("editor.field.remove")
559
+ ]
560
+ }
561
+ ) }) : null
562
+ ] }) }),
563
+ /* @__PURE__ */ t(
564
+ _e,
565
+ {
566
+ name: N,
567
+ disabled: !r
568
+ },
569
+ `json:${N}`
570
+ )
571
+ ] }) : /* @__PURE__ */ t(y, { title: e("editor.field.title"), children: /* @__PURE__ */ s(h, { gap: "3", children: [
572
+ /* @__PURE__ */ t(g, { color: "fg.muted", children: e("editor.field.notMapped") }),
573
+ r ? /* @__PURE__ */ t(x, { children: /* @__PURE__ */ s(
574
+ H,
575
+ {
576
+ variant: "outline",
577
+ size: "sm",
578
+ onClick: () => a("fields", Ae(c, b, I.path).fields, {
579
+ shouldDirty: !0
580
+ }),
581
+ children: [
582
+ /* @__PURE__ */ t(z, { size: 14, "aria-hidden": !0 }),
583
+ e("editor.field.map")
584
+ ]
585
+ }
586
+ ) }) : null
587
+ ] }) })
588
+ ] }) : /* @__PURE__ */ t(g, { color: "fg.muted", children: e("editor.tree.selectField") })
589
+ ] }) }) })
590
+ ] });
591
+ }
592
+ const Ye = [
593
+ ["TITLE_INTENT_UNSPECIFIED", "none"],
594
+ ["TITLE_INTENT_EXCLUDE", "exclude"],
595
+ ["TITLE_INTENT_REPLACE", "replace"],
596
+ ["TITLE_INTENT_ANNOTATE", "annotate"]
597
+ ];
598
+ function Je({ notices: o }) {
599
+ const { t: e } = $(F), { canConfigure: l } = D(), r = !l, { control: i } = R(), n = w({ control: i, name: "titleContributions" }), a = w({ control: i, name: "placeholderAssets" });
600
+ return /* @__PURE__ */ t(x, { px: "8", py: "6", children: /* @__PURE__ */ s(h, { gap: "4", children: [
601
+ o,
602
+ /* @__PURE__ */ t(y, { title: e("editor.stub.title"), children: /* @__PURE__ */ t(
603
+ C,
604
+ {
605
+ name: "stub",
606
+ label: e("editor.stub.label"),
607
+ helperText: e("editor.stub.help"),
608
+ disabled: r
609
+ }
610
+ ) }),
611
+ /* @__PURE__ */ t(y, { title: e("editor.naming.title"), children: /* @__PURE__ */ s(h, { gap: "4", children: [
612
+ /* @__PURE__ */ t(
613
+ p,
614
+ {
615
+ name: "displayNameTemplate",
616
+ label: e("editor.naming.displayNameTemplate"),
617
+ helperText: e("editor.naming.displayNameTemplateHelp"),
618
+ disabled: r
619
+ }
620
+ ),
621
+ /* @__PURE__ */ t(
622
+ S,
623
+ {
624
+ name: "collections",
625
+ label: e("editor.naming.collections"),
626
+ helperText: e("editor.naming.collectionsHelp"),
627
+ disabled: r
628
+ }
629
+ )
630
+ ] }) }),
631
+ /* @__PURE__ */ t(y, { title: e("editor.routing.title"), children: /* @__PURE__ */ s(h, { gap: "4", children: [
632
+ /* @__PURE__ */ t(g, { color: "fg.muted", fontSize: "sm", children: e("editor.routing.help") }),
633
+ /* @__PURE__ */ t(
634
+ p,
635
+ {
636
+ name: "collectionRouting.selector",
637
+ label: e("editor.routing.selector"),
638
+ disabled: r
639
+ }
640
+ ),
641
+ /* @__PURE__ */ t(
642
+ S,
643
+ {
644
+ name: "collectionRouting.collectionMap",
645
+ kind: "map",
646
+ label: e("editor.routing.collectionMap"),
647
+ helperText: e("editor.routing.collectionMapHelp"),
648
+ disabled: r
649
+ }
650
+ ),
651
+ /* @__PURE__ */ t(
652
+ p,
653
+ {
654
+ name: "collectionRouting.idPattern",
655
+ label: e("editor.routing.idPattern"),
656
+ disabled: r
657
+ }
658
+ ),
659
+ /* @__PURE__ */ t(
660
+ p,
661
+ {
662
+ name: "collectionRouting.collectionTemplate",
663
+ label: e("editor.routing.collectionTemplate"),
664
+ helperText: e("editor.routing.collectionTemplateHelp"),
665
+ disabled: r
666
+ }
667
+ ),
668
+ /* @__PURE__ */ t(
669
+ p,
670
+ {
671
+ name: "collectionRouting.suffix",
672
+ label: e("editor.routing.suffix"),
673
+ disabled: r
674
+ }
675
+ ),
676
+ /* @__PURE__ */ t(
677
+ p,
678
+ {
679
+ name: "collectionRouting.fallback",
680
+ label: e("editor.routing.fallback"),
681
+ disabled: r
682
+ }
683
+ )
684
+ ] }) }),
685
+ /* @__PURE__ */ t(y, { title: e("editor.titles.title"), children: /* @__PURE__ */ s(h, { gap: "4", children: [
686
+ /* @__PURE__ */ t(g, { color: "fg.muted", fontSize: "sm", children: e("editor.titles.help") }),
687
+ n.fields.length === 0 ? /* @__PURE__ */ t(g, { color: "fg.muted", children: e("editor.titles.none") }) : null,
688
+ n.fields.map((c, d) => /* @__PURE__ */ s(
689
+ h,
690
+ {
691
+ gap: "4",
692
+ role: "group",
693
+ "aria-label": e("editor.titles.item", { index: d + 1 }),
694
+ children: [
695
+ d > 0 ? /* @__PURE__ */ t(ae, {}) : null,
696
+ /* @__PURE__ */ s(ee, { justify: "space-between", children: [
697
+ /* @__PURE__ */ t(g, { fontWeight: "medium", children: e("editor.titles.item", { index: d + 1 }) }),
698
+ l ? /* @__PURE__ */ t(
699
+ B,
700
+ {
701
+ "aria-label": e("editor.titles.remove", { index: d + 1 }),
702
+ variant: "ghost",
703
+ colorPalette: "red",
704
+ onClick: () => n.remove(d),
705
+ children: /* @__PURE__ */ t(A, { size: 16 })
706
+ }
707
+ ) : null
708
+ ] }),
709
+ /* @__PURE__ */ t(O, { name: `titleContributions.${d}` }),
710
+ /* @__PURE__ */ t(qe, { index: d, disabled: r })
711
+ ]
712
+ },
713
+ c.id
714
+ )),
715
+ l ? /* @__PURE__ */ t(x, { children: /* @__PURE__ */ s(
716
+ H,
717
+ {
718
+ variant: "outline",
719
+ size: "sm",
720
+ onClick: () => n.append({ selector: "", ausgabeCodeSelector: "" }),
721
+ children: [
722
+ /* @__PURE__ */ t(z, { size: 14, "aria-hidden": !0 }),
723
+ e("editor.titles.add")
724
+ ]
725
+ }
726
+ ) }) : null
727
+ ] }) }),
728
+ /* @__PURE__ */ t(y, { title: e("editor.assets.title"), children: /* @__PURE__ */ s(h, { gap: "4", children: [
729
+ /* @__PURE__ */ t(g, { color: "fg.muted", fontSize: "sm", children: e("editor.assets.help") }),
730
+ a.fields.length === 0 ? /* @__PURE__ */ t(g, { color: "fg.muted", children: e("editor.assets.none") }) : null,
731
+ a.fields.map((c, d) => /* @__PURE__ */ s(
732
+ h,
733
+ {
734
+ gap: "4",
735
+ role: "group",
736
+ "aria-label": e("editor.assets.item", { index: d + 1 }),
737
+ children: [
738
+ d > 0 ? /* @__PURE__ */ t(ae, {}) : null,
739
+ /* @__PURE__ */ s(ee, { justify: "space-between", children: [
740
+ /* @__PURE__ */ t(g, { fontWeight: "medium", children: e("editor.assets.item", { index: d + 1 }) }),
741
+ l ? /* @__PURE__ */ t(
742
+ B,
743
+ {
744
+ "aria-label": e("editor.assets.remove", { index: d + 1 }),
745
+ variant: "ghost",
746
+ colorPalette: "red",
747
+ onClick: () => a.remove(d),
748
+ children: /* @__PURE__ */ t(A, { size: 16 })
749
+ }
750
+ ) : null
751
+ ] }),
752
+ /* @__PURE__ */ t(O, { name: `placeholderAssets.${d}` }),
753
+ /* @__PURE__ */ t(Xe, { index: d, disabled: r })
754
+ ]
755
+ },
756
+ c.id
757
+ )),
758
+ l ? /* @__PURE__ */ t(x, { children: /* @__PURE__ */ s(
759
+ H,
760
+ {
761
+ variant: "outline",
762
+ size: "sm",
763
+ onClick: () => a.append({ selector: "", assetType: "", keyParts: [] }),
764
+ children: [
765
+ /* @__PURE__ */ t(z, { size: 14, "aria-hidden": !0 }),
766
+ e("editor.assets.add")
767
+ ]
768
+ }
769
+ ) }) : null
770
+ ] }) })
771
+ ] }) });
772
+ }
773
+ function qe({ index: o, disabled: e }) {
774
+ const { t: l } = $(F), { control: r } = R(), i = `titleContributions.${o}`, n = w({ control: r, name: `${i}.referenceSpecValues` });
775
+ return /* @__PURE__ */ s(h, { gap: "4", children: [
776
+ /* @__PURE__ */ t(
777
+ p,
778
+ {
779
+ name: `${i}.selector`,
780
+ label: l("editor.titles.selector"),
781
+ helperText: l("editor.titles.selectorHelp"),
782
+ disabled: e
783
+ }
784
+ ),
785
+ /* @__PURE__ */ t(
786
+ p,
787
+ {
788
+ name: `${i}.ausgabeCodeSelector`,
789
+ label: l("editor.titles.ausgabeCodeSelector"),
790
+ disabled: e
791
+ }
792
+ ),
793
+ /* @__PURE__ */ s(h, { gap: "3", role: "group", "aria-label": l("editor.titles.referenceSpecValues"), children: [
794
+ /* @__PURE__ */ t(g, { fontWeight: "medium", children: l("editor.titles.referenceSpecValues") }),
795
+ n.fields.map((a, c) => /* @__PURE__ */ s(he, { templateColumns: "1fr 1fr auto", gap: "3", alignItems: "end", children: [
796
+ /* @__PURE__ */ t(
797
+ p,
798
+ {
799
+ name: `${i}.referenceSpecValues.${c}.field`,
800
+ label: l("editor.titles.valueField", { index: c + 1 }),
801
+ disabled: e
802
+ }
803
+ ),
804
+ /* @__PURE__ */ t(
805
+ p,
806
+ {
807
+ name: `${i}.referenceSpecValues.${c}.selector`,
808
+ label: l("editor.titles.valueSelector", { index: c + 1 }),
809
+ disabled: e
810
+ }
811
+ ),
812
+ e ? /* @__PURE__ */ t("span", {}) : /* @__PURE__ */ t(
813
+ B,
814
+ {
815
+ "aria-label": l("editor.titles.removeValue", { index: c + 1 }),
816
+ variant: "ghost",
817
+ colorPalette: "red",
818
+ onClick: () => n.remove(c),
819
+ children: /* @__PURE__ */ t(A, { size: 16 })
820
+ }
821
+ )
822
+ ] }, a.id)),
823
+ e ? null : /* @__PURE__ */ t(x, { children: /* @__PURE__ */ s(
824
+ H,
825
+ {
826
+ variant: "outline",
827
+ size: "sm",
828
+ onClick: () => n.append({ field: "", selector: "" }),
829
+ children: [
830
+ /* @__PURE__ */ t(z, { size: 14, "aria-hidden": !0 }),
831
+ l("editor.titles.addValue")
832
+ ]
833
+ }
834
+ ) })
835
+ ] }),
836
+ /* @__PURE__ */ t(
837
+ p,
838
+ {
839
+ name: `${i}.referenceFilterSelector`,
840
+ label: l("editor.titles.referenceFilterSelector"),
841
+ disabled: e
842
+ }
843
+ ),
844
+ /* @__PURE__ */ t(
845
+ j,
846
+ {
847
+ name: `${i}.intent`,
848
+ label: l("editor.titles.intent"),
849
+ placeholder: l("editor.titles.intents.none"),
850
+ disabled: e,
851
+ options: Ye.map(([a, c]) => ({ id: a, label: l(`editor.titles.intents.${c}`) }))
852
+ }
853
+ ),
854
+ /* @__PURE__ */ t(
855
+ p,
856
+ {
857
+ name: `${i}.intentTextSelector`,
858
+ label: l("editor.titles.intentTextSelector"),
859
+ helperText: l("editor.titles.intentTextSelectorHelp"),
860
+ disabled: e
861
+ }
862
+ )
863
+ ] });
864
+ }
865
+ function Xe({ index: o, disabled: e }) {
866
+ const { t: l } = $(F), r = `placeholderAssets.${o}`;
867
+ return /* @__PURE__ */ s(h, { gap: "4", children: [
868
+ /* @__PURE__ */ t(
869
+ p,
870
+ {
871
+ name: `${r}.selector`,
872
+ label: l("editor.assets.selector"),
873
+ helperText: l("editor.assets.selectorHelp"),
874
+ disabled: e
875
+ }
876
+ ),
877
+ /* @__PURE__ */ t(
878
+ p,
879
+ {
880
+ name: `${r}.assetType`,
881
+ label: l("editor.assets.assetType"),
882
+ disabled: e
883
+ }
884
+ ),
885
+ /* @__PURE__ */ t(
886
+ S,
887
+ {
888
+ name: `${r}.keyParts`,
889
+ label: l("editor.assets.keyParts"),
890
+ helperText: l("editor.assets.keyPartsHelp"),
891
+ disabled: e
892
+ }
893
+ ),
894
+ /* @__PURE__ */ t(
895
+ p,
896
+ {
897
+ name: `${r}.nameSelector`,
898
+ label: l("editor.assets.nameSelector"),
899
+ disabled: e
900
+ }
901
+ ),
902
+ /* @__PURE__ */ t(
903
+ p,
904
+ {
905
+ name: `${r}.descriptionSelector`,
906
+ label: l("editor.assets.descriptionSelector"),
907
+ disabled: e
908
+ }
909
+ ),
910
+ /* @__PURE__ */ t(
911
+ S,
912
+ {
913
+ name: `${r}.metadata`,
914
+ kind: "map",
915
+ label: l("editor.assets.metadata"),
916
+ helperText: l("editor.assets.metadataHelp"),
917
+ disabled: e
918
+ }
919
+ ),
920
+ /* @__PURE__ */ t(
921
+ p,
922
+ {
923
+ name: `${r}.folderRoot`,
924
+ label: l("editor.assets.folderRoot"),
925
+ disabled: e
926
+ }
927
+ ),
928
+ /* @__PURE__ */ t(
929
+ p,
930
+ {
931
+ name: `${r}.folderPathSelector`,
932
+ label: l("editor.assets.folderPathSelector"),
933
+ helperText: l("editor.assets.folderPathSelectorHelp"),
934
+ disabled: e
935
+ }
936
+ )
937
+ ] });
938
+ }
939
+ const de = {
940
+ correct: "CHANGED_VERSION_HANDLING_CORRECT",
941
+ keep: "CHANGED_VERSION_HANDLING_KEEP",
942
+ fail: "CHANGED_VERSION_HANDLING_FAIL"
943
+ };
944
+ function Qe({ notices: o }) {
945
+ const { t: e } = $(F), { mapping: l, canConfigure: r } = D(), i = !r, { control: n } = R(), c = Te(l.content.blueprintReleaseId).release?.releaseSpecFields ?? [], d = Y(U({ control: n, name: "fields" })).map((u) => u.path), f = w({ control: n, name: "releaseSpec" }), b = c.map((u) => ({ id: u.path, label: u.label || u.path }));
946
+ return /* @__PURE__ */ t(x, { px: "8", py: "6", children: /* @__PURE__ */ s(h, { gap: "4", children: [
947
+ o,
948
+ /* @__PURE__ */ t(y, { title: e("editor.sourceKey.title"), children: /* @__PURE__ */ s(h, { gap: "4", children: [
949
+ /* @__PURE__ */ t(O, { name: "sourceKey" }),
950
+ /* @__PURE__ */ t(g, { color: "fg.muted", fontSize: "sm", children: e("editor.sourceKey.help") }),
951
+ /* @__PURE__ */ t(
952
+ p,
953
+ {
954
+ name: "sourceKey.extractPattern",
955
+ label: e("editor.sourceKey.extractPattern"),
956
+ helperText: e("editor.sourceKey.extractPatternHelp"),
957
+ disabled: i
958
+ }
959
+ ),
960
+ /* @__PURE__ */ t(
961
+ p,
962
+ {
963
+ name: "sourceKey.extractSeparator",
964
+ label: e("editor.sourceKey.extractSeparator"),
965
+ helperText: e("editor.sourceKey.extractSeparatorHelp"),
966
+ disabled: i
967
+ }
968
+ ),
969
+ /* @__PURE__ */ t(
970
+ C,
971
+ {
972
+ name: "sourceKey.normalize",
973
+ label: e("editor.sourceKey.normalize"),
974
+ disabled: i
975
+ }
976
+ )
977
+ ] }) }),
978
+ /* @__PURE__ */ t(y, { title: e("editor.versionMatch.title"), children: /* @__PURE__ */ s(h, { gap: "4", children: [
979
+ /* @__PURE__ */ t(g, { color: "fg.muted", fontSize: "sm", children: e("editor.versionMatch.help") }),
980
+ /* @__PURE__ */ t(
981
+ C,
982
+ {
983
+ name: "versionMatch.validityPeriod",
984
+ label: e("editor.versionMatch.validityPeriod"),
985
+ disabled: i
986
+ }
987
+ ),
988
+ /* @__PURE__ */ t(
989
+ pe,
990
+ {
991
+ title: e("editor.versionMatch.releaseSpecFields"),
992
+ empty: e("editor.versionMatch.noReleaseSpecFields"),
993
+ name: "versionMatch.releaseSpecFields",
994
+ options: c.map((u) => ({ value: u.path, label: u.label || u.path })),
995
+ disabled: i
996
+ }
997
+ ),
998
+ /* @__PURE__ */ t(
999
+ pe,
1000
+ {
1001
+ title: e("editor.versionMatch.contentFields"),
1002
+ empty: e("editor.versionMatch.noContentFields"),
1003
+ name: "versionMatch.contentFields",
1004
+ options: d.map((u) => ({ value: u, label: u })),
1005
+ disabled: i
1006
+ }
1007
+ )
1008
+ ] }) }),
1009
+ /* @__PURE__ */ t(y, { title: e("editor.validityPeriod.title"), children: /* @__PURE__ */ s(h, { gap: "4", children: [
1010
+ /* @__PURE__ */ t(
1011
+ p,
1012
+ {
1013
+ name: "validityPeriod.validFromSelector",
1014
+ label: e("editor.validityPeriod.validFrom"),
1015
+ disabled: i
1016
+ }
1017
+ ),
1018
+ /* @__PURE__ */ t(
1019
+ p,
1020
+ {
1021
+ name: "validityPeriod.validToSelector",
1022
+ label: e("editor.validityPeriod.validTo"),
1023
+ helperText: e("editor.validityPeriod.validToHelp"),
1024
+ disabled: i
1025
+ }
1026
+ ),
1027
+ /* @__PURE__ */ t(
1028
+ S,
1029
+ {
1030
+ name: "validityPeriod.dateFormats",
1031
+ label: e("editor.validityPeriod.dateFormats"),
1032
+ helperText: e("editor.validityPeriod.dateFormatsHelp"),
1033
+ disabled: i
1034
+ }
1035
+ )
1036
+ ] }) }),
1037
+ /* @__PURE__ */ t(y, { title: e("editor.releaseSpec.title"), children: /* @__PURE__ */ s(h, { gap: "3", children: [
1038
+ f.fields.length === 0 ? /* @__PURE__ */ t(g, { color: "fg.muted", children: e("editor.releaseSpec.none") }) : null,
1039
+ f.fields.map((u, m) => /* @__PURE__ */ s(he, { templateColumns: "1fr 1fr auto", gap: "3", alignItems: "end", children: [
1040
+ b.length > 0 ? /* @__PURE__ */ t(
1041
+ j,
1042
+ {
1043
+ name: `releaseSpec.${m}.field`,
1044
+ label: e("editor.releaseSpec.field", { index: m + 1 }),
1045
+ options: b,
1046
+ disabled: i
1047
+ }
1048
+ ) : /* @__PURE__ */ t(
1049
+ p,
1050
+ {
1051
+ name: `releaseSpec.${m}.field`,
1052
+ label: e("editor.releaseSpec.field", { index: m + 1 }),
1053
+ disabled: i
1054
+ }
1055
+ ),
1056
+ /* @__PURE__ */ t(
1057
+ p,
1058
+ {
1059
+ name: `releaseSpec.${m}.selector`,
1060
+ label: e("editor.releaseSpec.selector", { index: m + 1 }),
1061
+ disabled: i
1062
+ }
1063
+ ),
1064
+ r ? /* @__PURE__ */ t(
1065
+ B,
1066
+ {
1067
+ "aria-label": e("editor.releaseSpec.remove", { index: m + 1 }),
1068
+ variant: "ghost",
1069
+ colorPalette: "red",
1070
+ onClick: () => f.remove(m),
1071
+ children: /* @__PURE__ */ t(A, { size: 16 })
1072
+ }
1073
+ ) : /* @__PURE__ */ t("span", {})
1074
+ ] }, u.id)),
1075
+ r ? /* @__PURE__ */ t(x, { children: /* @__PURE__ */ s(
1076
+ H,
1077
+ {
1078
+ variant: "outline",
1079
+ size: "sm",
1080
+ onClick: () => f.append({ field: "", selector: "" }),
1081
+ children: [
1082
+ /* @__PURE__ */ t(z, { size: 14, "aria-hidden": !0 }),
1083
+ e("editor.releaseSpec.add")
1084
+ ]
1085
+ }
1086
+ ) }) : null
1087
+ ] }) }),
1088
+ /* @__PURE__ */ t(y, { title: e("editor.changedVersion.title"), children: /* @__PURE__ */ t(
1089
+ fe,
1090
+ {
1091
+ name: "changedVersion",
1092
+ label: e("editor.changedVersion.label"),
1093
+ helperText: e("editor.changedVersion.help"),
1094
+ disabled: i,
1095
+ children: (u) => /* @__PURE__ */ t(
1096
+ Fe,
1097
+ {
1098
+ value: !u.value || u.value === "CHANGED_VERSION_HANDLING_UNSPECIFIED" ? de.correct : String(u.value),
1099
+ onValueChange: (m) => u.onChange(m.value),
1100
+ "aria-describedby": u["aria-describedby"],
1101
+ disabled: i,
1102
+ children: /* @__PURE__ */ t(h, { gap: "2", children: ["correct", "keep", "fail"].map((m) => /* @__PURE__ */ t(Ne, { value: de[m], children: e(`editor.changedVersion.${m}`) }, m)) })
1103
+ }
1104
+ )
1105
+ }
1106
+ ) })
1107
+ ] }) });
1108
+ }
1109
+ function pe({
1110
+ title: o,
1111
+ empty: e,
1112
+ name: l,
1113
+ options: r,
1114
+ disabled: i
1115
+ }) {
1116
+ return /* @__PURE__ */ s(h, { gap: "2", role: "group", "aria-label": o, children: [
1117
+ /* @__PURE__ */ t(g, { fontWeight: "medium", children: o }),
1118
+ r.length === 0 ? /* @__PURE__ */ t(g, { color: "fg.muted", children: e }) : null,
1119
+ r.map((n) => /* @__PURE__ */ t(
1120
+ Pe,
1121
+ {
1122
+ name: l,
1123
+ value: n.value,
1124
+ disabled: i,
1125
+ children: n.label
1126
+ },
1127
+ n.value
1128
+ )),
1129
+ /* @__PURE__ */ t(be, { name: l })
1130
+ ] });
1131
+ }
1132
+ function ut({ client: o, id: e, onDeleted: l }) {
1133
+ const { t: r } = $(F), i = ve(
1134
+ () => ({
1135
+ tabs: [
1136
+ { value: "fields", label: r("editor.tabs.fields") },
1137
+ { value: "versions", label: r("editor.tabs.versions") },
1138
+ { value: "output", label: r("editor.tabs.output") }
1139
+ ],
1140
+ render: (n, a) => n === "fields" ? /* @__PURE__ */ t(Ue, { notices: a }) : n === "versions" ? /* @__PURE__ */ t(Qe, { notices: a }) : /* @__PURE__ */ t(Je, { notices: a })
1141
+ }),
1142
+ [r]
1143
+ );
1144
+ return /* @__PURE__ */ t(Ce, { client: o, id: e, onDeleted: l, editor: i });
1145
+ }
1146
+ export {
1147
+ ut as MappingEditor
1148
+ };
1149
+ //# sourceMappingURL=mapping-editor.js.map