@knkcs/importhub-ui 0.5.0 → 0.6.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.
- package/CHANGELOG.md +7 -0
- package/README.md +2 -1
- package/dist/{importhub-client-fCWgKH03.js → importhub-client-BS6F4DW2.js} +7 -5
- package/dist/importhub-client-BS6F4DW2.js.map +1 -0
- package/dist/index.d.ts +131 -0
- package/dist/index.js +1331 -1075
- package/dist/index.js.map +1 -1
- package/dist/mapping-editor.d.ts +50 -0
- package/dist/mapping-editor.js +1 -1
- package/dist/{mapping-page-D92XwUq5.js → mapping-page-wJywO-hg.js} +368 -364
- package/dist/mapping-page-wJywO-hg.js.map +1 -0
- package/dist/testing.d.ts +58 -0
- package/dist/testing.js +298 -242
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- package/dist/importhub-client-fCWgKH03.js.map +0 -1
- package/dist/mapping-page-D92XwUq5.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
import { toJson as
|
|
2
|
-
import { file_google_protobuf_timestamp as
|
|
3
|
-
import { createClient as
|
|
4
|
-
import { createConnectTransport as
|
|
5
|
-
import {
|
|
6
|
-
import { S as
|
|
7
|
-
import { jsxs as
|
|
8
|
-
import { Link as
|
|
9
|
-
import { ExternalLink as
|
|
10
|
-
import { useTranslation as
|
|
11
|
-
import { I
|
|
12
|
-
import { h as
|
|
13
|
-
import { EmptyState as
|
|
1
|
+
import { toJson as Be, fromJson as qt, create as Ke } from "@bufbuild/protobuf";
|
|
2
|
+
import { file_google_protobuf_timestamp as oe, file_google_protobuf_struct as _e, timestampFromDate as _t, timestampDate as $t } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import { createClient as le, ConnectError as Ce, Code as O } from "@connectrpc/connect";
|
|
4
|
+
import { createConnectTransport as en } from "@connectrpc/connect-web";
|
|
5
|
+
import { serviceDesc as re, fileDesc as $, messageDesc as ce } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { S as tn, R as nn, C as ln, N as Pe, A as ct } from "./importhub-client-BS6F4DW2.js";
|
|
7
|
+
import { jsxs as g, jsx as t, Fragment as _ } from "react/jsx-runtime";
|
|
8
|
+
import { Link as $e, Box as H, Spinner as an, Stack as X, Alert as f, HStack as D, Text as Q, Grid as Zt, NativeSelect as on, Center as Et, Progress as Xt, List as st, MenuRoot as rn, MenuTrigger as cn, MenuContent as sn, MenuItem as dn } from "@knkcs/anker/primitives";
|
|
9
|
+
import { ExternalLink as mn, Blocks as pn, Ampersand as un, Waypoints as bn, FileCog as gn, FileUp as Vn, Trash2 as be, KeyRound as yn, Plus as se, CircleStop as hn, Play as Bt, ArrowUp as Rn, ArrowDown as In, Settings2 as Sn, Lock as An } from "lucide-react";
|
|
10
|
+
import { useTranslation as R } from "react-i18next";
|
|
11
|
+
import { I, u as K, i as h, L as z, a as ge, b as Ve, c as Wt, d as ft, C as vt, V as Jt, D as Ct, R as Ut, e as de, f as et, r as wt, M as Gn, g as Zn } from "./mapping-page-wJywO-hg.js";
|
|
12
|
+
import { h as bi, j as gi, S as Vi, k as yi } from "./mapping-page-wJywO-hg.js";
|
|
13
|
+
import { EmptyState as tt, StatusBadge as Ue, ClipboardInput as En, Button as B, IconButton as We, SearchInput as Xn } from "@knkcs/anker/atoms";
|
|
14
14
|
import { useHostIdentity as W } from "@knkcs/anker/host";
|
|
15
|
-
import { IndexPageTemplate as
|
|
16
|
-
import { useQuery as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { useForm as
|
|
21
|
-
import { Link as
|
|
22
|
-
import { zodResolver as
|
|
23
|
-
import { FieldKitProvider as
|
|
24
|
-
import { specToZodSchema as
|
|
25
|
-
const Re = /* @__PURE__ */
|
|
26
|
-
var
|
|
27
|
-
const
|
|
28
|
-
var
|
|
29
|
-
const Cl = /* @__PURE__ */ se(Jl, 0), $e = /* @__PURE__ */ te("CiFpbXBvcnRodWIvdj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DRVNTT1IQARIhCh1QUk9DRVNTT1JfS0lORF9QT1NUX1BST0NFU1NPUhACKnsKD1Byb2Nlc3NvclRhcmdldBIgChxQUk9DRVNTT1JfVEFSR0VUX1VOU1BFQ0lGSUVEEAASIAocUFJPQ0VTU09SX1RBUkdFVF9TT1VSQ0VfRklMRRABEiQKIFBST0NFU1NPUl9UQVJHRVRfUklDSF9URVhUX0ZJRUxEEAIybwoQUHJvY2Vzc29yU2VydmljZRJbCg5MaXN0UHJvY2Vzc29ycxIjLmltcG9ydGh1Yi52MS5MaXN0UHJvY2Vzc29yc1JlcXVlc3QaJC5pbXBvcnRodWIudjEuTGlzdFByb2Nlc3NvcnNSZXNwb25zZUI5WjdnaXRodWIuY29tL2tua2NzL2ltcG9ydGh1Yi9nZW4vaW1wb3J0aHViL3YxO2ltcG9ydGh1YnYxYgZwcm90bzM", [Te]);
|
|
30
|
-
var
|
|
31
|
-
const
|
|
32
|
-
function
|
|
33
|
-
return new Promise((i,
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
m.lengthComputable && m.total > 0 &&
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
},
|
|
15
|
+
import { IndexPageTemplate as ee, DetailPageTemplate as L, usePageRail as nt } from "@knkcs/anker/templates";
|
|
16
|
+
import { useQuery as C, useQueryClient as P, useMutation as te, useInfiniteQuery as Yt } from "@tanstack/react-query";
|
|
17
|
+
import { StatusBadgeCell as Bn, Modal as ye, TruncatedTextCell as w, CodeCell as ve, IdentityCell as Wn, DateCell as je, ActionCell as fn, DataTable as ne, ContextRail as x, Card as N, LinkCell as we, CountCell as vn, SlugCell as Nt, Toolbar as xe, DescriptionList as Y, NumberCell as Qe, UploadDropZone as Jn } from "@knkcs/anker/components";
|
|
18
|
+
import { useCallback as Cn, useEffect as j, useState as F, useMemo as k, useRef as Ft } from "react";
|
|
19
|
+
import { InputField as T, DatePickerField as Oe, TextareaField as lt, BaseSelectField as Je, SwitchField as dt } from "@knkcs/anker/forms";
|
|
20
|
+
import { useForm as me, FormProvider as pe, useFieldArray as Un, useFormContext as Kt, useWatch as he } from "react-hook-form";
|
|
21
|
+
import { Link as xt } from "react-router";
|
|
22
|
+
import { zodResolver as wn } from "@hookform/resolvers/zod";
|
|
23
|
+
import { FieldKitProvider as Yn, SpecForm as mt } from "@knkcs/fieldkit/renderer";
|
|
24
|
+
import { specToZodSchema as Nn, builtInFieldTypes as pt } from "@knkcs/fieldkit/schema";
|
|
25
|
+
const Fn = /* @__PURE__ */ $("ChppbXBvcnRodWIvdjEvYXBpX2tleS5wcm90bxIMaW1wb3J0aHViLnYxIlQKE0NyZWF0ZUFQSUtleVJlcXVlc3QSDAoEbmFtZRgBIAEoCRIvCgtleHBpcmVfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiTQoUQ3JlYXRlQVBJS2V5UmVzcG9uc2USJQoHYXBpX2tleRgBIAEoCzIULmltcG9ydGh1Yi52MS5BUElLZXkSDgoGc2VjcmV0GAIgASgJIhQKEkxpc3RBUElLZXlzUmVxdWVzdCI9ChNMaXN0QVBJS2V5c1Jlc3BvbnNlEiYKCGFwaV9rZXlzGAEgAygLMhQuaW1wb3J0aHViLnYxLkFQSUtleSIhChNSZXZva2VBUElLZXlSZXF1ZXN0EgoKAmlkGAEgASgJIhYKFFJldm9rZUFQSUtleVJlc3BvbnNlIqcBCgZBUElLZXkSCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRISCgprZXlfcHJlZml4GAMgASgJEg0KBW93bmVyGAQgASgJEi8KC2V4cGlyZV90aW1lGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgtjcmVhdGVfdGltZRgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAykQIKDUFQSUtleVNlcnZpY2USVQoMQ3JlYXRlQVBJS2V5EiEuaW1wb3J0aHViLnYxLkNyZWF0ZUFQSUtleVJlcXVlc3QaIi5pbXBvcnRod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", e[e.ADDED = 2] = "ADDED", e[e.REMOVED = 3] = "REMOVED", e[e.CHANGED = 4] = "CHANGED", e))(ie || {});
|
|
27
|
+
const Qt = /* @__PURE__ */ $("Ch1pbXBvcnRodWIvdjEvZW50aXR5X3NldC5wcm90bxIMaW1wb3J0aHViLnYxIugBCglFbnRpdHlTZXQSCgoCaWQYASABKAkSEwoLcmV2aXNpb25faWQYAiABKAkSLwoHY29udGVudBgDIAEoCzIeLmltcG9ydGh1Yi52MS5FbnRpdHlTZXRDb250ZW50EigKCHZhbGlkaXR5GAQgASgLMhYuaW1wb3J0aHViLnYxLlZhbGlkaXR5Ei8KBXN0YXRlGAUgASgLMiAuaW1wb3J0aHViLnYxLkNvbmZpZ3VyYXRpb25TdGF0ZRIuCgpjcmVhdGVkX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCKmAQoQRW50aXR5U2V0Q29udGVudBIMCgRuYW1lGAEgASgJEhMKC2Rlc2NyaXB0aW9uGAIgASgJEj4KCGVudGl0aWVzGAMgAygLMiwuaW1wb3J0aHViLnYxLkVudGl0eVNldENvbnRlbnQuRW50aXRpZXNFbnRyeRovCg1FbnRpdGllc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiFwoVTGlzdEVudGl0eVNldHNSZXF1ZXN0IkYKFkxpc3RFbnRpdHlTZXRzUmVzcG9uc2USLAoLZW50aXR5X3NldHMYASADKAsyFy5pbXBvcnRodWIudjEuRW50aXR5U2V0IjYKE0dldEVudGl0eVNldFJlcXVlc3QSCgoCaWQYASABKAkSEwoLcmV2aXNpb25faWQYAiABKAkiQwoUR2V0RW50aXR5U2V0UmVzcG9uc2USKwoKZW50aXR5X3NldBgBIAEoCzIXLmltcG9ydGh1Yi52MS5FbnRpdHlTZXQiSQoWQ3JlYXRlRW50aXR5U2V0UmVxdWVzdBIvCgdjb250ZW50GAEgASgLMh4uaW1wb3J0aHViLnYxLkVudGl0eVNldENvbnR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3J0aHViLnYxLkNyZWF0ZVNvdXJjZUZpbGVVcGxvYWRSZXNwb25zZRJSCgtTdGFydEltcG9ydBIgLmltcG9ydGh1Yi52MS5TdGFydEltcG9ydFJlcXVlc3QaIS5pbXBvcnRodWIudjEuU3RhcnRJbXBvcnRSZXNwb25zZRJSCgtMaXN0SW1wb3J0cxIgLmltcG9ydGh1Yi52MS5MaXN0SW1wb3J0c1JlcXVlc3QaIS5pbXBvcnRodWIudjEuTGlzdEltcG9ydHNSZXNwb25zZRJMCglHZXRJbXBvcnQSHi5pbXBvcnRodWIudjEuR2V0SW1wb3J0UmVxdWVzdBofLmltcG9ydGh1Yi52MS5HZXRJbXBvcnRSZXNwb25zZRJVCgxDYW5jZWxJbXBvcnQSIS5pbXBvcnRodWIudjEuQ2FuY2VsSW1wb3J0UmVxdWVzdBoiLmltcG9ydGh1Yi52MS5DYW5jZWxJbXBvcnRSZXNwb25zZRJhChBMaXN0SXRlbVByb2JsZW1zEiUuaW1wb3J0aHViLnYxLkxpc3RJdGVtUHJvYmxlbXNSZXF1ZXN0GiYuaW1wb3J0aHViLnYxLkxpc3RJdGVtUHJvYmxlbXNSZXNwb25zZUI5WjdnaXRodWIuY29tL2tua2NzL2ltcG9ydGh1Yi9nZW4vaW1wb3J0aHViL3YxO2ltcG9ydGh1YnYxYgZwcm90bzM", [oe]);
|
|
28
|
+
var ae = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.QUEUED = 1] = "QUEUED", e[e.READING = 2] = "READING", e[e.WRITING = 3] = "WRITING", e[e.ENDED = 4] = "ENDED", e))(ae || {}), ue = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.SUCCEEDED = 1] = "SUCCEEDED", e[e.SUCCEEDED_WITH_PROBLEMS = 2] = "SUCCEEDED_WITH_PROBLEMS", e[e.FAILED = 3] = "FAILED", e[e.CANCELLED = 4] = "CANCELLED", e))(ue || {});
|
|
29
|
+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0tJTkRfVU5TUEVDSUZJRUQQABIfChtQUk9DRVNTT1JfS0lORF9QUkVQUk9DRVNTT1IQARIhCh1QUk9DRVNTT1JfS0lORF9QT1NUX1BST0NFU1NPUhACKnsKD1Byb2Nlc3NvclRhcmdldBIgChxQUk9DRVNTT1JfVEFSR0VUX1VOU1BFQ0lGSUVEEAASIAocUFJPQ0VTU09SX1RBUkdFVF9TT1VSQ0VfRklMRRABEiQKIFBST0NFU1NPUl9UQVJHRVRfUklDSF9URVhUX0ZJRUxEEAIybwoQUHJvY2Vzc29yU2VydmljZRJbCg5MaXN0UHJvY2Vzc29ycxIjLmltcG9ydGh1Yi52MS5MaXN0UHJvY2Vzc29yc1JlcXVlc3QaJC5pbXBvcnRodWIudjEuTGlzdFByb2Nlc3NvcnNSZXNwb25zZUI5WjdnaXRodWIuY29tL2tua2NzL2ltcG9ydGh1Yi9nZW4vaW1wb3J0aHViL3YxO2ltcG9ydGh1YnYxYgZwcm90bzM", [_e]);
|
|
30
|
+
var Lt = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.PREPROCESSOR = 1] = "PREPROCESSOR", e[e.POST_PROCESSOR = 2] = "POST_PROCESSOR", e))(Lt || {}), Ht = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.SOURCE_FILE = 1] = "SOURCE_FILE", e[e.RICH_TEXT_FIELD = 2] = "RICH_TEXT_FIELD", e))(Ht || {});
|
|
31
|
+
const Pn = /* @__PURE__ */ re(Dn, 0);
|
|
32
|
+
function jn(e, n, l) {
|
|
33
|
+
return new Promise((i, c) => {
|
|
34
|
+
const s = new XMLHttpRequest();
|
|
35
|
+
s.open("PUT", e), s.setRequestHeader("x-ms-blob-type", "BlockBlob"), s.setRequestHeader("Content-Type", n.type || "application/xml"), s.upload.onprogress = (m) => {
|
|
36
|
+
m.lengthComputable && m.total > 0 && l(m.loaded / m.total);
|
|
37
|
+
}, s.onload = () => {
|
|
38
|
+
s.status >= 200 && s.status < 300 ? (l(1), i()) : c(new Error(`the upload failed: ${s.status} ${s.statusText}`));
|
|
39
|
+
}, s.onerror = () => c(new Error("the upload failed: the network is away")), s.send(n);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const Ie = (e) => ({
|
|
43
43
|
valid: e?.valid ?? !1,
|
|
44
|
-
reasons: (e?.reasons ?? []).map((
|
|
45
|
-
}),
|
|
44
|
+
reasons: (e?.reasons ?? []).map((n) => ({ path: n.path, code: n.code, message: n.message }))
|
|
45
|
+
}), ot = (e) => ({
|
|
46
46
|
draftRevisionId: e?.draftRevisionId ?? "",
|
|
47
47
|
draftDiffersFromRelease: e?.draftDiffersFromRelease ?? !0,
|
|
48
48
|
...e?.latestRelease ? { latestRelease: { id: e.latestRelease.id, number: e.latestRelease.number } } : {}
|
|
49
|
-
}),
|
|
49
|
+
}), bt = (e) => ({
|
|
50
50
|
processor: e.processor,
|
|
51
51
|
settings: { ...e.settings ?? {} }
|
|
52
|
-
}),
|
|
52
|
+
}), gt = (e) => ({
|
|
53
53
|
processor: e.processor,
|
|
54
54
|
settings: e.settings
|
|
55
55
|
});
|
|
56
|
-
function
|
|
57
|
-
const
|
|
56
|
+
function Se(e) {
|
|
57
|
+
const n = e.content;
|
|
58
58
|
return {
|
|
59
59
|
id: e.id,
|
|
60
60
|
content: {
|
|
61
|
-
name:
|
|
62
|
-
description:
|
|
63
|
-
entitySetId:
|
|
64
|
-
preprocessors: (
|
|
65
|
-
mappingIds: [...
|
|
66
|
-
postProcessors: (
|
|
67
|
-
autoPublish:
|
|
68
|
-
deleteSourceFileOnSuccess:
|
|
61
|
+
name: n?.name ?? "",
|
|
62
|
+
description: n?.description ?? "",
|
|
63
|
+
entitySetId: n?.entitySetId ?? "",
|
|
64
|
+
preprocessors: (n?.preprocessors ?? []).map(bt),
|
|
65
|
+
mappingIds: [...n?.mappingIds ?? []],
|
|
66
|
+
postProcessors: (n?.postProcessors ?? []).map(bt),
|
|
67
|
+
autoPublish: n?.autoPublish ?? !1,
|
|
68
|
+
deleteSourceFileOnSuccess: n?.deleteSourceFileOnSuccess ?? !1
|
|
69
69
|
},
|
|
70
70
|
// What an Import would meet now, not only what was decided at the save
|
|
71
71
|
// (manage-import-profiles:AC6).
|
|
72
|
-
validity:
|
|
73
|
-
state:
|
|
72
|
+
validity: Ie(e.currentValidity ?? e.validity),
|
|
73
|
+
state: ot(e.state)
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const Vt = (e) => Ke(kt, {
|
|
77
77
|
...e,
|
|
78
|
-
preprocessors: e.preprocessors.map((
|
|
79
|
-
postProcessors: e.postProcessors.map((
|
|
78
|
+
preprocessors: e.preprocessors.map((n) => Ke(ut, gt(n))),
|
|
79
|
+
postProcessors: e.postProcessors.map((n) => Ke(ut, gt(n)))
|
|
80
80
|
});
|
|
81
|
-
function
|
|
82
|
-
const
|
|
81
|
+
function Ae(e) {
|
|
82
|
+
const n = e.content ? Be(at, e.content) : { name: "", blueprintId: "", blueprintReleaseId: "" };
|
|
83
83
|
return {
|
|
84
84
|
id: e.id,
|
|
85
85
|
content: {
|
|
86
|
-
...
|
|
87
|
-
name:
|
|
88
|
-
blueprintId:
|
|
89
|
-
blueprintReleaseId:
|
|
86
|
+
...n,
|
|
87
|
+
name: n.name ?? "",
|
|
88
|
+
blueprintId: n.blueprintId ?? "",
|
|
89
|
+
blueprintReleaseId: n.blueprintReleaseId ?? ""
|
|
90
90
|
},
|
|
91
|
-
validity:
|
|
92
|
-
state:
|
|
91
|
+
validity: Ie(e.currentValidity ?? e.validity),
|
|
92
|
+
state: ot(e.state)
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
95
|
+
const yt = (e) => qt(at, e, { ignoreUnknownFields: !1 });
|
|
96
|
+
function Ge(e) {
|
|
97
97
|
return {
|
|
98
98
|
id: e.id,
|
|
99
99
|
content: {
|
|
@@ -101,298 +101,306 @@ function ye(e) {
|
|
|
101
101
|
description: e.content?.description ?? "",
|
|
102
102
|
entities: { ...e.content?.entities ?? {} }
|
|
103
103
|
},
|
|
104
|
-
validity:
|
|
105
|
-
state:
|
|
104
|
+
validity: Ie(e.validity),
|
|
105
|
+
state: ot(e.state)
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
const
|
|
108
|
+
const q = (e) => e ? $t(e).toISOString() : "", fe = (e) => ({
|
|
109
109
|
id: e?.id ?? "",
|
|
110
110
|
number: e?.number ?? 0,
|
|
111
111
|
revisionId: e?.revisionId ?? "",
|
|
112
112
|
releasedBy: e?.releasedBy ?? "",
|
|
113
|
-
releasedAt:
|
|
114
|
-
}),
|
|
113
|
+
releasedAt: q(e?.releasedAt)
|
|
114
|
+
}), On = (e) => ({
|
|
115
115
|
id: e.id,
|
|
116
116
|
savedBy: e.savedBy,
|
|
117
|
-
savedAt:
|
|
118
|
-
validity:
|
|
117
|
+
savedAt: q(e.savedAt),
|
|
118
|
+
validity: Ie(e.validity),
|
|
119
119
|
restoredFromRevisionId: e.restoredFromRevisionId
|
|
120
|
-
}),
|
|
121
|
-
revisions: e.revisions.map(
|
|
122
|
-
releases: e.releases.map(
|
|
120
|
+
}), ke = (e) => ({
|
|
121
|
+
revisions: e.revisions.map(On),
|
|
122
|
+
releases: e.releases.map(fe),
|
|
123
123
|
nextPageToken: e.nextPageToken
|
|
124
|
-
}),
|
|
125
|
-
[
|
|
126
|
-
[
|
|
127
|
-
[
|
|
128
|
-
[
|
|
129
|
-
[
|
|
130
|
-
},
|
|
124
|
+
}), qn = {
|
|
125
|
+
[ie.UNSPECIFIED]: "changed",
|
|
126
|
+
[ie.UNCHANGED]: "unchanged",
|
|
127
|
+
[ie.ADDED]: "added",
|
|
128
|
+
[ie.REMOVED]: "removed",
|
|
129
|
+
[ie.CHANGED]: "changed"
|
|
130
|
+
}, ht = (e, n) => ({
|
|
131
131
|
revisionId: e?.revisionId ?? "",
|
|
132
|
-
content: e?.content ?
|
|
133
|
-
}),
|
|
134
|
-
from:
|
|
135
|
-
to:
|
|
136
|
-
fields: e.fields.map((
|
|
137
|
-
}),
|
|
138
|
-
[
|
|
139
|
-
[
|
|
140
|
-
[
|
|
141
|
-
[
|
|
142
|
-
[
|
|
143
|
-
},
|
|
144
|
-
[
|
|
145
|
-
[
|
|
146
|
-
[
|
|
147
|
-
[
|
|
148
|
-
},
|
|
132
|
+
content: e?.content ? n(e.content) : {}
|
|
133
|
+
}), ze = { useProtoFieldName: !0, alwaysEmitImplicit: !0 }, Le = (e, n) => ({
|
|
134
|
+
from: ht(e.from, n),
|
|
135
|
+
to: ht(e.to, n),
|
|
136
|
+
fields: e.fields.map((l) => ({ field: l.field, status: qn[l.status] ?? "changed" }))
|
|
137
|
+
}), _n = {
|
|
138
|
+
[ae.UNSPECIFIED]: "queued",
|
|
139
|
+
[ae.QUEUED]: "queued",
|
|
140
|
+
[ae.READING]: "reading",
|
|
141
|
+
[ae.WRITING]: "writing",
|
|
142
|
+
[ae.ENDED]: "ended"
|
|
143
|
+
}, $n = {
|
|
144
|
+
[ue.SUCCEEDED]: "succeeded",
|
|
145
|
+
[ue.SUCCEEDED_WITH_PROBLEMS]: "succeeded_with_problems",
|
|
146
|
+
[ue.FAILED]: "failed",
|
|
147
|
+
[ue.CANCELLED]: "cancelled"
|
|
148
|
+
}, He = (e) => ({
|
|
149
149
|
configurationId: e.configurationId,
|
|
150
150
|
name: e.name,
|
|
151
151
|
releaseId: e.releaseId,
|
|
152
152
|
number: e.number
|
|
153
153
|
});
|
|
154
|
-
function
|
|
155
|
-
const
|
|
154
|
+
function Ze(e) {
|
|
155
|
+
const n = e.counts, l = $n[e.outcome];
|
|
156
156
|
return {
|
|
157
157
|
id: e.id,
|
|
158
158
|
importProfileId: e.importProfileId,
|
|
159
159
|
importProfileName: e.importProfileName,
|
|
160
160
|
sourceFileId: e.sourceFileId,
|
|
161
161
|
startedBy: e.startedBy,
|
|
162
|
-
phase:
|
|
163
|
-
...
|
|
162
|
+
phase: _n[e.phase] ?? "queued",
|
|
163
|
+
...l ? { outcome: l } : {},
|
|
164
164
|
failureReason: e.failureReason,
|
|
165
165
|
progress: { done: e.progress?.done ?? 0, total: e.progress?.total ?? 0 },
|
|
166
166
|
counts: {
|
|
167
|
-
matched:
|
|
168
|
-
created:
|
|
169
|
-
problems:
|
|
170
|
-
planned:
|
|
171
|
-
corrected:
|
|
172
|
-
kept:
|
|
173
|
-
unchanged:
|
|
167
|
+
matched: n?.matched ?? 0,
|
|
168
|
+
created: n?.created ?? 0,
|
|
169
|
+
problems: n?.problems ?? 0,
|
|
170
|
+
planned: n?.planned ?? 0,
|
|
171
|
+
corrected: n?.corrected ?? 0,
|
|
172
|
+
kept: n?.kept ?? 0,
|
|
173
|
+
unchanged: n?.unchanged ?? 0
|
|
174
174
|
},
|
|
175
175
|
changeSetId: e.changeSetId,
|
|
176
176
|
releases: {
|
|
177
|
-
...e.releases?.importProfile ? { importProfile:
|
|
178
|
-
mappings: (e.releases?.mappings ?? []).map(
|
|
179
|
-
...e.releases?.entitySet ? { entitySet:
|
|
177
|
+
...e.releases?.importProfile ? { importProfile: He(e.releases.importProfile) } : {},
|
|
178
|
+
mappings: (e.releases?.mappings ?? []).map(He),
|
|
179
|
+
...e.releases?.entitySet ? { entitySet: He(e.releases.entitySet) } : {}
|
|
180
180
|
},
|
|
181
|
-
createTime:
|
|
182
|
-
startTime:
|
|
183
|
-
endTime:
|
|
181
|
+
createTime: q(e.createTime),
|
|
182
|
+
startTime: q(e.startTime),
|
|
183
|
+
endTime: q(e.endTime),
|
|
184
184
|
cancelledBy: e.cancelledBy,
|
|
185
185
|
effectiveDate: e.effectiveDate,
|
|
186
186
|
...e.source ? { source: { date: e.source.date, reference: e.source.reference } } : {}
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
const Rt = (e) => ({
|
|
190
|
+
id: e.id,
|
|
191
|
+
name: e.name,
|
|
192
|
+
keyPrefix: e.keyPrefix,
|
|
193
|
+
owner: e.owner,
|
|
194
|
+
expireTime: q(e.expireTime),
|
|
195
|
+
createTime: q(e.createTime)
|
|
196
|
+
});
|
|
197
|
+
async function el(e) {
|
|
190
198
|
try {
|
|
191
199
|
return await e();
|
|
192
|
-
} catch (
|
|
193
|
-
const
|
|
194
|
-
throw
|
|
200
|
+
} catch (n) {
|
|
201
|
+
const l = Ce.from(n);
|
|
202
|
+
throw l.code === O.PermissionDenied || l.code === O.FailedPrecondition || l.code === O.NotFound ? new tn(l.rawMessage) : l;
|
|
195
203
|
}
|
|
196
204
|
}
|
|
197
|
-
function
|
|
198
|
-
const
|
|
199
|
-
if (
|
|
200
|
-
const [
|
|
201
|
-
if (
|
|
202
|
-
throw new
|
|
203
|
-
|
|
204
|
-
|
|
205
|
+
function Mt(e) {
|
|
206
|
+
const n = Ce.from(e);
|
|
207
|
+
if (n.code === O.FailedPrecondition) {
|
|
208
|
+
const [l] = n.findDetails(Qn);
|
|
209
|
+
if (l)
|
|
210
|
+
throw new ln(
|
|
211
|
+
l.importProfiles.map((i) => ({ id: i.id, name: i.name })),
|
|
212
|
+
n.rawMessage
|
|
205
213
|
);
|
|
206
214
|
}
|
|
207
|
-
throw
|
|
215
|
+
throw n.code === O.AlreadyExists ? new Pe(n.rawMessage) : n;
|
|
208
216
|
}
|
|
209
|
-
async function
|
|
217
|
+
async function tl(e) {
|
|
210
218
|
try {
|
|
211
219
|
return await e();
|
|
212
|
-
} catch (
|
|
213
|
-
const
|
|
214
|
-
if (
|
|
215
|
-
const [i] =
|
|
216
|
-
throw new
|
|
220
|
+
} catch (n) {
|
|
221
|
+
const l = Ce.from(n);
|
|
222
|
+
if (l.code === O.FailedPrecondition) {
|
|
223
|
+
const [i] = l.findDetails(xn);
|
|
224
|
+
throw new nn(l.rawMessage, i ? Ie(i) : void 0);
|
|
217
225
|
}
|
|
218
|
-
|
|
226
|
+
Mt(n);
|
|
219
227
|
}
|
|
220
228
|
}
|
|
221
229
|
async function A(e) {
|
|
222
230
|
try {
|
|
223
231
|
return await e();
|
|
224
|
-
} catch (
|
|
225
|
-
|
|
232
|
+
} catch (n) {
|
|
233
|
+
Mt(n);
|
|
226
234
|
}
|
|
227
235
|
}
|
|
228
|
-
function
|
|
229
|
-
const
|
|
236
|
+
function $l(e) {
|
|
237
|
+
const n = e.transport ?? en({ baseUrl: e.baseUrl, fetch: e.fetch }), l = le(Mn, n), i = le(Pn, n), c = le(Tn, n), s = le(zn, n), m = le(Hn, n), p = le(Kn, n), u = e.putFile ?? jn;
|
|
230
238
|
return {
|
|
231
|
-
listImportProfiles: () => A(async () => (await
|
|
239
|
+
listImportProfiles: () => A(async () => (await l.listImportProfiles({})).importProfiles.map(Se)),
|
|
232
240
|
getImportProfile: (o) => A(
|
|
233
|
-
async () =>
|
|
241
|
+
async () => Se(U((await l.getImportProfile({ id: o })).importProfile))
|
|
234
242
|
),
|
|
235
243
|
createImportProfile: (o) => A(
|
|
236
|
-
async () =>
|
|
237
|
-
|
|
238
|
-
(await
|
|
244
|
+
async () => Se(
|
|
245
|
+
U(
|
|
246
|
+
(await l.createImportProfile({ content: Vt(o) })).importProfile
|
|
239
247
|
)
|
|
240
248
|
)
|
|
241
249
|
),
|
|
242
|
-
updateImportProfile: (o,
|
|
243
|
-
async () =>
|
|
244
|
-
|
|
245
|
-
(await
|
|
250
|
+
updateImportProfile: (o, r, a) => A(
|
|
251
|
+
async () => Se(
|
|
252
|
+
U(
|
|
253
|
+
(await l.updateImportProfile({
|
|
246
254
|
id: o,
|
|
247
|
-
content:
|
|
248
|
-
draftRevisionId:
|
|
255
|
+
content: Vt(r),
|
|
256
|
+
draftRevisionId: a
|
|
249
257
|
})).importProfile
|
|
250
258
|
)
|
|
251
259
|
)
|
|
252
260
|
),
|
|
253
261
|
deleteImportProfile: (o) => A(async () => {
|
|
254
|
-
await
|
|
262
|
+
await l.deleteImportProfile({ id: o });
|
|
255
263
|
}),
|
|
256
264
|
listProcessors: () => A(
|
|
257
265
|
async () => (await i.listProcessors({})).processors.map((o) => ({
|
|
258
266
|
name: o.name,
|
|
259
|
-
kind: o.kind ===
|
|
260
|
-
target: o.target ===
|
|
267
|
+
kind: o.kind === Lt.POST_PROCESSOR ? "post_processor" : "preprocessor",
|
|
268
|
+
target: o.target === Ht.RICH_TEXT_FIELD ? "rich_text_field" : "source_file",
|
|
261
269
|
description: o.description,
|
|
262
270
|
settingsSpec: o.settingsSpec
|
|
263
271
|
}))
|
|
264
272
|
),
|
|
265
|
-
listMappings: () => A(async () => (await
|
|
266
|
-
getMapping: (o) => A(async () =>
|
|
273
|
+
listMappings: () => A(async () => (await c.listMappings({})).mappings.map(Ae)),
|
|
274
|
+
getMapping: (o) => A(async () => Ae(U((await c.getMapping({ id: o })).mapping))),
|
|
267
275
|
createMapping: (o) => A(
|
|
268
|
-
async () =>
|
|
269
|
-
|
|
270
|
-
(await
|
|
276
|
+
async () => Ae(
|
|
277
|
+
U(
|
|
278
|
+
(await c.createMapping({ content: yt(o) })).mapping
|
|
271
279
|
)
|
|
272
280
|
)
|
|
273
281
|
),
|
|
274
|
-
updateMapping: (o,
|
|
275
|
-
async () =>
|
|
276
|
-
|
|
277
|
-
(await
|
|
282
|
+
updateMapping: (o, r, a) => A(
|
|
283
|
+
async () => Ae(
|
|
284
|
+
U(
|
|
285
|
+
(await c.updateMapping({
|
|
278
286
|
id: o,
|
|
279
|
-
content:
|
|
280
|
-
draftRevisionId:
|
|
287
|
+
content: yt(r),
|
|
288
|
+
draftRevisionId: a
|
|
281
289
|
})).mapping
|
|
282
290
|
)
|
|
283
291
|
)
|
|
284
292
|
),
|
|
285
293
|
deleteMapping: (o) => A(async () => {
|
|
286
|
-
await
|
|
294
|
+
await c.deleteMapping({ id: o });
|
|
287
295
|
}),
|
|
288
296
|
listMappingImportProfiles: (o) => A(
|
|
289
|
-
async () => (await
|
|
290
|
-
id:
|
|
291
|
-
name:
|
|
297
|
+
async () => (await c.listMappingImportProfiles({ id: o })).importProfiles.map((r) => ({
|
|
298
|
+
id: r.id,
|
|
299
|
+
name: r.name
|
|
292
300
|
}))
|
|
293
301
|
),
|
|
294
|
-
checkMappingBlueprintRelease: (o,
|
|
295
|
-
const
|
|
302
|
+
checkMappingBlueprintRelease: (o, r) => A(async () => {
|
|
303
|
+
const a = await c.checkMappingBlueprintRelease({ id: o, blueprintReleaseId: r });
|
|
296
304
|
return {
|
|
297
|
-
blueprintId:
|
|
298
|
-
missingFieldPaths: [...
|
|
299
|
-
missingReleaseSpecFields: [...
|
|
305
|
+
blueprintId: a.blueprintId,
|
|
306
|
+
missingFieldPaths: [...a.missingFieldPaths],
|
|
307
|
+
missingReleaseSpecFields: [...a.missingReleaseSpecFields]
|
|
300
308
|
};
|
|
301
309
|
}),
|
|
302
|
-
listEntitySets: () => A(async () => (await
|
|
310
|
+
listEntitySets: () => A(async () => (await s.listEntitySets({})).entitySets.map(Ge)),
|
|
303
311
|
getEntitySet: (o) => A(
|
|
304
|
-
async () =>
|
|
312
|
+
async () => Ge(U((await s.getEntitySet({ id: o })).entitySet))
|
|
305
313
|
),
|
|
306
314
|
createEntitySet: (o) => A(
|
|
307
|
-
async () =>
|
|
315
|
+
async () => Ge(U((await s.createEntitySet({ content: o })).entitySet))
|
|
308
316
|
),
|
|
309
|
-
updateEntitySet: (o,
|
|
310
|
-
async () =>
|
|
311
|
-
|
|
312
|
-
(await
|
|
317
|
+
updateEntitySet: (o, r, a) => A(
|
|
318
|
+
async () => Ge(
|
|
319
|
+
U(
|
|
320
|
+
(await s.updateEntitySet({ id: o, content: r, draftRevisionId: a })).entitySet
|
|
313
321
|
)
|
|
314
322
|
)
|
|
315
323
|
),
|
|
316
324
|
deleteEntitySet: (o) => A(async () => {
|
|
317
|
-
await
|
|
325
|
+
await s.deleteEntitySet({ id: o });
|
|
318
326
|
}),
|
|
319
327
|
// One RPC per kind of configuration, each on its own service (the
|
|
320
328
|
// protos have no configuration service: a client always knows which
|
|
321
329
|
// kind it looks at); the screens ask by kind.
|
|
322
|
-
cutRelease: (o,
|
|
323
|
-
const
|
|
330
|
+
cutRelease: (o, r, a) => tl(async () => {
|
|
331
|
+
const d = { id: r, draftRevisionId: a };
|
|
324
332
|
switch (o) {
|
|
325
333
|
case "importProfile":
|
|
326
334
|
return {
|
|
327
|
-
release:
|
|
335
|
+
release: fe((await l.cutImportProfileRelease(d)).release),
|
|
328
336
|
importProfiles: []
|
|
329
337
|
};
|
|
330
338
|
case "mapping": {
|
|
331
|
-
const
|
|
339
|
+
const b = await c.cutMappingRelease(d);
|
|
332
340
|
return {
|
|
333
|
-
release:
|
|
334
|
-
importProfiles:
|
|
341
|
+
release: fe(b.release),
|
|
342
|
+
importProfiles: b.importProfiles.map((V) => ({ id: V.id, name: V.name }))
|
|
335
343
|
};
|
|
336
344
|
}
|
|
337
345
|
case "entitySet":
|
|
338
346
|
return {
|
|
339
|
-
release:
|
|
347
|
+
release: fe((await s.cutEntitySetRelease(d)).release),
|
|
340
348
|
importProfiles: []
|
|
341
349
|
};
|
|
342
350
|
}
|
|
343
351
|
}),
|
|
344
|
-
listHistory: (o,
|
|
345
|
-
const
|
|
352
|
+
listHistory: (o, r, a) => A(async () => {
|
|
353
|
+
const d = { id: r, pageToken: a };
|
|
346
354
|
switch (o) {
|
|
347
355
|
case "importProfile":
|
|
348
|
-
return
|
|
356
|
+
return ke(await l.listImportProfileHistory(d));
|
|
349
357
|
case "mapping":
|
|
350
|
-
return
|
|
358
|
+
return ke(await c.listMappingHistory(d));
|
|
351
359
|
case "entitySet":
|
|
352
|
-
return
|
|
360
|
+
return ke(await s.listEntitySetHistory(d));
|
|
353
361
|
}
|
|
354
362
|
}),
|
|
355
|
-
compareRevisions: (o,
|
|
356
|
-
const
|
|
363
|
+
compareRevisions: (o, r, a, d) => A(async () => {
|
|
364
|
+
const b = { id: r, fromRevisionId: a, toRevisionId: d };
|
|
357
365
|
switch (o) {
|
|
358
366
|
case "importProfile":
|
|
359
|
-
return
|
|
360
|
-
await
|
|
361
|
-
(V) =>
|
|
367
|
+
return Le(
|
|
368
|
+
await l.compareImportProfileRevisions(b),
|
|
369
|
+
(V) => Be(kt, V, ze)
|
|
362
370
|
);
|
|
363
371
|
case "mapping":
|
|
364
|
-
return
|
|
365
|
-
await
|
|
366
|
-
(V) =>
|
|
372
|
+
return Le(
|
|
373
|
+
await c.compareMappingRevisions(b),
|
|
374
|
+
(V) => Be(at, V, ze)
|
|
367
375
|
);
|
|
368
376
|
case "entitySet":
|
|
369
|
-
return
|
|
370
|
-
await
|
|
371
|
-
(V) =>
|
|
377
|
+
return Le(
|
|
378
|
+
await s.compareEntitySetRevisions(b),
|
|
379
|
+
(V) => Be(kn, V, ze)
|
|
372
380
|
);
|
|
373
381
|
}
|
|
374
382
|
}),
|
|
375
|
-
restoreRevision: (o,
|
|
376
|
-
const
|
|
383
|
+
restoreRevision: (o, r, a, d) => A(async () => {
|
|
384
|
+
const b = { id: r, revisionId: a, draftRevisionId: d };
|
|
377
385
|
switch (o) {
|
|
378
386
|
case "importProfile":
|
|
379
|
-
await
|
|
387
|
+
await l.restoreImportProfileRevision(b);
|
|
380
388
|
return;
|
|
381
389
|
case "mapping":
|
|
382
|
-
await
|
|
390
|
+
await c.restoreMappingRevision(b);
|
|
383
391
|
return;
|
|
384
392
|
case "entitySet":
|
|
385
|
-
await
|
|
393
|
+
await s.restoreEntitySetRevision(b);
|
|
386
394
|
return;
|
|
387
395
|
}
|
|
388
396
|
}),
|
|
389
|
-
uploadSourceFile: (o,
|
|
390
|
-
const
|
|
391
|
-
return await u(
|
|
397
|
+
uploadSourceFile: (o, r) => A(async () => {
|
|
398
|
+
const a = await m.createSourceFileUpload({ fileName: o.name }), d = U(a.sourceFile);
|
|
399
|
+
return await u(a.uploadUrl, o, r), { id: d.id, fileName: d.fileName };
|
|
392
400
|
}),
|
|
393
|
-
startImport: (o) =>
|
|
394
|
-
async () =>
|
|
395
|
-
|
|
401
|
+
startImport: (o) => el(
|
|
402
|
+
async () => Ze(
|
|
403
|
+
U(
|
|
396
404
|
(await m.startImport({
|
|
397
405
|
importProfileId: o.importProfileId,
|
|
398
406
|
sourceFileId: o.sourceFileId,
|
|
@@ -403,224 +411,514 @@ function Qn(e) {
|
|
|
403
411
|
)
|
|
404
412
|
),
|
|
405
413
|
listImports: (o) => A(async () => {
|
|
406
|
-
const
|
|
407
|
-
return { imports:
|
|
414
|
+
const r = await m.listImports({ pageToken: o });
|
|
415
|
+
return { imports: r.imports.map(Ze), nextPageToken: r.nextPageToken };
|
|
408
416
|
}),
|
|
409
|
-
getImport: (o) => A(async () =>
|
|
410
|
-
cancelImport: (o) => A(async () =>
|
|
411
|
-
listItemProblems: (o,
|
|
412
|
-
const
|
|
417
|
+
getImport: (o) => A(async () => Ze(U((await m.getImport({ id: o })).import))),
|
|
418
|
+
cancelImport: (o) => A(async () => Ze(U((await m.cancelImport({ id: o })).import))),
|
|
419
|
+
listItemProblems: (o, r) => A(async () => {
|
|
420
|
+
const a = await m.listItemProblems({
|
|
413
421
|
importId: o,
|
|
414
|
-
mappingId:
|
|
415
|
-
sourceKeyQuery:
|
|
416
|
-
pageToken:
|
|
422
|
+
mappingId: r.mappingId,
|
|
423
|
+
sourceKeyQuery: r.sourceKeyQuery,
|
|
424
|
+
pageToken: r.pageToken
|
|
417
425
|
});
|
|
418
426
|
return {
|
|
419
|
-
itemProblems:
|
|
420
|
-
id:
|
|
421
|
-
mappingId:
|
|
422
|
-
mappingName:
|
|
423
|
-
sourceKey:
|
|
424
|
-
field:
|
|
425
|
-
reason:
|
|
427
|
+
itemProblems: a.itemProblems.map((d) => ({
|
|
428
|
+
id: d.id,
|
|
429
|
+
mappingId: d.mappingId,
|
|
430
|
+
mappingName: d.mappingName,
|
|
431
|
+
sourceKey: d.sourceKey,
|
|
432
|
+
field: d.field,
|
|
433
|
+
reason: d.reason
|
|
426
434
|
})),
|
|
427
|
-
totalCount:
|
|
428
|
-
matchingCount:
|
|
429
|
-
mappings:
|
|
430
|
-
mappingId:
|
|
431
|
-
mappingName:
|
|
432
|
-
count:
|
|
435
|
+
totalCount: a.totalCount,
|
|
436
|
+
matchingCount: a.matchingCount,
|
|
437
|
+
mappings: a.mappings.map((d) => ({
|
|
438
|
+
mappingId: d.mappingId,
|
|
439
|
+
mappingName: d.mappingName,
|
|
440
|
+
count: d.count
|
|
433
441
|
})),
|
|
434
|
-
nextPageToken:
|
|
442
|
+
nextPageToken: a.nextPageToken
|
|
435
443
|
};
|
|
444
|
+
}),
|
|
445
|
+
listApiKeys: () => A(async () => (await p.listAPIKeys({})).apiKeys.map(Rt)),
|
|
446
|
+
createApiKey: (o) => A(async () => {
|
|
447
|
+
const r = await p.createAPIKey({
|
|
448
|
+
name: o.name,
|
|
449
|
+
// Unset for never, as CreateAPIKey reads it.
|
|
450
|
+
expireTime: o.expireTime ? _t(new Date(o.expireTime)) : void 0
|
|
451
|
+
});
|
|
452
|
+
return { apiKey: Rt(U(r.apiKey)), secret: r.secret };
|
|
453
|
+
}),
|
|
454
|
+
revokeApiKey: (o) => A(async () => {
|
|
455
|
+
await p.revokeAPIKey({ id: o });
|
|
436
456
|
})
|
|
437
457
|
};
|
|
438
458
|
}
|
|
439
|
-
function
|
|
459
|
+
function U(e) {
|
|
440
460
|
if (e === void 0)
|
|
441
|
-
throw new
|
|
461
|
+
throw new Ce("importhub answered without a message", O.Internal);
|
|
442
462
|
return e;
|
|
443
463
|
}
|
|
444
|
-
function
|
|
445
|
-
const { t:
|
|
446
|
-
return
|
|
447
|
-
|
|
448
|
-
/* @__PURE__ */ t(
|
|
464
|
+
function nl({ changeSetId: e }) {
|
|
465
|
+
const { t: n } = R(I), l = K().changeSetHref(e);
|
|
466
|
+
return l ? /* @__PURE__ */ g($e, { href: l, target: "_blank", rel: "noopener noreferrer", children: [
|
|
467
|
+
n("changeSet.open"),
|
|
468
|
+
/* @__PURE__ */ t(mn, { size: 14, "aria-hidden": !0 })
|
|
449
469
|
] }) : null;
|
|
450
470
|
}
|
|
451
|
-
const
|
|
452
|
-
imports:
|
|
453
|
-
profiles:
|
|
454
|
-
mappings:
|
|
455
|
-
entitySets:
|
|
456
|
-
processors:
|
|
471
|
+
const ll = {
|
|
472
|
+
imports: Vn,
|
|
473
|
+
profiles: gn,
|
|
474
|
+
mappings: bn,
|
|
475
|
+
entitySets: un,
|
|
476
|
+
processors: pn
|
|
457
477
|
};
|
|
458
|
-
function
|
|
459
|
-
const { t:
|
|
460
|
-
return /* @__PURE__ */ t(
|
|
461
|
-
|
|
478
|
+
function ei({ client: e, section: n }) {
|
|
479
|
+
const { t: l } = R(I), i = ll[n];
|
|
480
|
+
return /* @__PURE__ */ t(ee, { title: l(`section.${n}.title`), children: /* @__PURE__ */ t(H, { px: "8", py: "6", children: /* @__PURE__ */ t(
|
|
481
|
+
tt,
|
|
462
482
|
{
|
|
463
483
|
icon: /* @__PURE__ */ t(i, { size: 32, "aria-hidden": !0 }),
|
|
464
|
-
header:
|
|
465
|
-
description: /* @__PURE__ */ t(
|
|
484
|
+
header: l(`section.${n}.title`),
|
|
485
|
+
description: /* @__PURE__ */ t(il, { client: e, section: n })
|
|
466
486
|
}
|
|
467
487
|
) }) });
|
|
468
488
|
}
|
|
469
|
-
function
|
|
470
|
-
switch (
|
|
489
|
+
function il({ client: e, section: n }) {
|
|
490
|
+
switch (n) {
|
|
471
491
|
case "profiles":
|
|
472
492
|
return /* @__PURE__ */ t(
|
|
473
|
-
|
|
493
|
+
Me,
|
|
474
494
|
{
|
|
475
|
-
section:
|
|
495
|
+
section: n,
|
|
476
496
|
queryKey: h.importProfiles,
|
|
477
497
|
read: () => e.listImportProfiles()
|
|
478
498
|
}
|
|
479
499
|
);
|
|
480
500
|
case "entitySets":
|
|
481
501
|
return /* @__PURE__ */ t(
|
|
482
|
-
|
|
502
|
+
Me,
|
|
483
503
|
{
|
|
484
|
-
section:
|
|
504
|
+
section: n,
|
|
485
505
|
queryKey: h.entitySets,
|
|
486
506
|
read: () => e.listEntitySets()
|
|
487
507
|
}
|
|
488
508
|
);
|
|
489
509
|
case "processors":
|
|
490
510
|
return /* @__PURE__ */ t(
|
|
491
|
-
|
|
511
|
+
Me,
|
|
492
512
|
{
|
|
493
|
-
section:
|
|
513
|
+
section: n,
|
|
494
514
|
queryKey: h.processors,
|
|
495
515
|
read: () => e.listProcessors()
|
|
496
516
|
}
|
|
497
517
|
);
|
|
498
518
|
default:
|
|
499
|
-
return /* @__PURE__ */ t(
|
|
519
|
+
return /* @__PURE__ */ t(al, { section: n });
|
|
500
520
|
}
|
|
501
521
|
}
|
|
502
|
-
function
|
|
503
|
-
const { t:
|
|
504
|
-
return /* @__PURE__ */ t(
|
|
522
|
+
function al({ section: e }) {
|
|
523
|
+
const { t: n } = R(I);
|
|
524
|
+
return /* @__PURE__ */ t(_, { children: n(`section.${e}.empty`) });
|
|
505
525
|
}
|
|
506
|
-
function
|
|
526
|
+
function Me({
|
|
507
527
|
section: e,
|
|
508
|
-
queryKey:
|
|
509
|
-
read:
|
|
528
|
+
queryKey: n,
|
|
529
|
+
read: l
|
|
510
530
|
}) {
|
|
511
|
-
const { t: i } =
|
|
512
|
-
return
|
|
531
|
+
const { t: i } = R(I), { workspaceId: c } = W(), s = C({ queryKey: n(c), queryFn: l });
|
|
532
|
+
return s.isPending ? /* @__PURE__ */ t(an, { size: "sm", "aria-label": i("startPage.loading") }) : s.isError ? /* @__PURE__ */ t(_, { children: i("startPage.error") }) : /* @__PURE__ */ t(_, { children: i(`section.${e}.summary`, { count: s.data.length }) });
|
|
533
|
+
}
|
|
534
|
+
function Tt(e) {
|
|
535
|
+
return e.outcome ? e.outcome : e.cancelledBy ? "cancelling" : e.phase === "ended" ? "succeeded" : e.phase;
|
|
536
|
+
}
|
|
537
|
+
const Dt = {
|
|
538
|
+
queued: "neutral",
|
|
539
|
+
reading: "info",
|
|
540
|
+
writing: "info",
|
|
541
|
+
cancelling: "warning",
|
|
542
|
+
succeeded: "success",
|
|
543
|
+
succeeded_with_problems: "warning",
|
|
544
|
+
failed: "danger",
|
|
545
|
+
cancelled: "neutral"
|
|
546
|
+
};
|
|
547
|
+
function qe(e, n) {
|
|
548
|
+
switch (e) {
|
|
549
|
+
case "queued":
|
|
550
|
+
case "reading":
|
|
551
|
+
case "writing":
|
|
552
|
+
case "cancelling":
|
|
553
|
+
return n(`imports.phase.${e}`);
|
|
554
|
+
default:
|
|
555
|
+
return n(`imports.outcome.${e}`);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
const Pt = 2e3, Ye = (e) => e.phase !== "ended";
|
|
559
|
+
function ol({ im: e }) {
|
|
560
|
+
const { t: n } = R(I), l = Tt(e);
|
|
561
|
+
return /* @__PURE__ */ t(Ue, { tone: Dt[l], label: qe(l, n) });
|
|
562
|
+
}
|
|
563
|
+
function rl({ im: e }) {
|
|
564
|
+
const { t: n } = R(I), l = Tt(e);
|
|
565
|
+
return /* @__PURE__ */ t(Bn, { value: qe(l, n), toneMap: { [qe(l, n)]: Dt[l] } });
|
|
566
|
+
}
|
|
567
|
+
function Ne() {
|
|
568
|
+
const { t: e } = R(I), { members: n } = W();
|
|
569
|
+
return Cn(
|
|
570
|
+
(l) => n.byId(l)?.displayName ?? e("imports.someone"),
|
|
571
|
+
[n, e]
|
|
572
|
+
);
|
|
573
|
+
}
|
|
574
|
+
function Fe() {
|
|
575
|
+
return K().canImport ?? !1;
|
|
576
|
+
}
|
|
577
|
+
const It = { name: "", expiresOn: "" };
|
|
578
|
+
function St() {
|
|
579
|
+
const e = /* @__PURE__ */ new Date(), n = (l) => String(l).padStart(2, "0");
|
|
580
|
+
return `${e.getFullYear()}-${n(e.getMonth() + 1)}-${n(e.getDate())}`;
|
|
581
|
+
}
|
|
582
|
+
function cl(e) {
|
|
583
|
+
return e ? (/* @__PURE__ */ new Date(`${e}T23:59:59`)).toISOString() : "";
|
|
584
|
+
}
|
|
585
|
+
function sl({ client: e, open: n, onClose: l }) {
|
|
586
|
+
const { t: i } = R(I), { workspaceId: c } = W(), s = P(), m = me({ defaultValues: It }), p = te({
|
|
587
|
+
mutationFn: (b) => e.createApiKey({ name: b.name.trim(), expireTime: cl(b.expiresOn) }),
|
|
588
|
+
onSuccess: () => s.invalidateQueries({ queryKey: h.apiKeys(c) })
|
|
589
|
+
}), { reset: u } = m, { reset: o } = p;
|
|
590
|
+
j(() => {
|
|
591
|
+
n && (u(It), o());
|
|
592
|
+
}, [n, u, o]);
|
|
593
|
+
const r = () => {
|
|
594
|
+
o(), l();
|
|
595
|
+
}, a = m.handleSubmit((b) => {
|
|
596
|
+
const V = b.name.trim();
|
|
597
|
+
if (!V) {
|
|
598
|
+
m.setError("name", { message: i("apiKeys.nameRequired") });
|
|
599
|
+
return;
|
|
600
|
+
}
|
|
601
|
+
if (V.length > ct) {
|
|
602
|
+
m.setError("name", { message: i("apiKeys.nameTooLong", { max: ct }) });
|
|
603
|
+
return;
|
|
604
|
+
}
|
|
605
|
+
if (b.expiresOn && b.expiresOn < St()) {
|
|
606
|
+
m.setError("expiresOn", { message: i("apiKeys.expiryPast") });
|
|
607
|
+
return;
|
|
608
|
+
}
|
|
609
|
+
p.mutate(b);
|
|
610
|
+
}), d = p.data?.secret;
|
|
611
|
+
return /* @__PURE__ */ t(
|
|
612
|
+
ye,
|
|
613
|
+
{
|
|
614
|
+
open: n,
|
|
615
|
+
onClose: r,
|
|
616
|
+
header: i("apiKeys.new"),
|
|
617
|
+
lazyMount: !0,
|
|
618
|
+
unmountOnExit: !0,
|
|
619
|
+
closeOnEscape: !d,
|
|
620
|
+
closeOnInteractOutside: !d,
|
|
621
|
+
footer: d ? /* @__PURE__ */ t(B, { variant: "solid", onClick: r, children: i("apiKeys.done") }) : /* @__PURE__ */ g(D, { gap: "2", children: [
|
|
622
|
+
/* @__PURE__ */ t(B, { variant: "outline", onClick: r, children: i("common.cancel") }),
|
|
623
|
+
/* @__PURE__ */ t(B, { variant: "solid", loading: p.isPending, onClick: () => {
|
|
624
|
+
a();
|
|
625
|
+
}, children: i("common.create") })
|
|
626
|
+
] }),
|
|
627
|
+
children: d ? /* @__PURE__ */ g(X, { gap: "4", children: [
|
|
628
|
+
/* @__PURE__ */ t(f, { status: "warning", colorPalette: "warning", title: i("apiKeys.secretTitle"), children: i("apiKeys.secretOnce") }),
|
|
629
|
+
/* @__PURE__ */ t(
|
|
630
|
+
En,
|
|
631
|
+
{
|
|
632
|
+
value: d,
|
|
633
|
+
label: i("apiKeys.copySecret"),
|
|
634
|
+
inputProps: { "aria-label": i("apiKeys.secret"), fontFamily: "mono" }
|
|
635
|
+
}
|
|
636
|
+
)
|
|
637
|
+
] }) : /* @__PURE__ */ t(pe, { ...m, children: /* @__PURE__ */ t(
|
|
638
|
+
"form",
|
|
639
|
+
{
|
|
640
|
+
onSubmit: (b) => {
|
|
641
|
+
b.preventDefault(), a();
|
|
642
|
+
},
|
|
643
|
+
children: /* @__PURE__ */ g(X, { gap: "4", children: [
|
|
644
|
+
/* @__PURE__ */ t(
|
|
645
|
+
T,
|
|
646
|
+
{
|
|
647
|
+
name: "name",
|
|
648
|
+
label: i("fields.name"),
|
|
649
|
+
helperText: i("apiKeys.nameHelp"),
|
|
650
|
+
required: !0
|
|
651
|
+
}
|
|
652
|
+
),
|
|
653
|
+
/* @__PURE__ */ t(
|
|
654
|
+
Oe,
|
|
655
|
+
{
|
|
656
|
+
name: "expiresOn",
|
|
657
|
+
label: i("apiKeys.expiresOn"),
|
|
658
|
+
helperText: i("apiKeys.expiresOnHelp"),
|
|
659
|
+
min: St()
|
|
660
|
+
}
|
|
661
|
+
),
|
|
662
|
+
/* @__PURE__ */ t(f, { status: "info", colorPalette: "info", title: i("apiKeys.consentTitle"), children: i("apiKeys.consent") }),
|
|
663
|
+
p.isError ? /* @__PURE__ */ t(f, { status: "error", colorPalette: "danger", title: i("apiKeys.createFailed") }) : null
|
|
664
|
+
] })
|
|
665
|
+
}
|
|
666
|
+
) })
|
|
667
|
+
}
|
|
668
|
+
);
|
|
669
|
+
}
|
|
670
|
+
function dl({ client: e, apiKey: n, open: l, onClose: i }) {
|
|
671
|
+
const { t: c } = R(I), { workspaceId: s } = W(), m = P(), p = te({
|
|
672
|
+
mutationFn: (r) => e.revokeApiKey(r),
|
|
673
|
+
onSuccess: async () => {
|
|
674
|
+
await m.invalidateQueries({ queryKey: h.apiKeys(s) }), i();
|
|
675
|
+
}
|
|
676
|
+
}), { reset: u } = p;
|
|
677
|
+
j(() => {
|
|
678
|
+
l && u();
|
|
679
|
+
}, [l, u]);
|
|
680
|
+
const o = n?.name ?? "";
|
|
681
|
+
return /* @__PURE__ */ t(
|
|
682
|
+
ye,
|
|
683
|
+
{
|
|
684
|
+
open: l,
|
|
685
|
+
onClose: i,
|
|
686
|
+
header: c("apiKeys.revokeTitle", { name: o }),
|
|
687
|
+
lazyMount: !0,
|
|
688
|
+
unmountOnExit: !0,
|
|
689
|
+
footer: /* @__PURE__ */ g(D, { gap: "2", children: [
|
|
690
|
+
/* @__PURE__ */ t(B, { variant: "outline", onClick: i, children: c("common.cancel") }),
|
|
691
|
+
/* @__PURE__ */ t(
|
|
692
|
+
B,
|
|
693
|
+
{
|
|
694
|
+
variant: "solid",
|
|
695
|
+
colorPalette: "red",
|
|
696
|
+
loading: p.isPending,
|
|
697
|
+
disabled: !n,
|
|
698
|
+
onClick: () => n && p.mutate(n.id),
|
|
699
|
+
children: c("apiKeys.revoke")
|
|
700
|
+
}
|
|
701
|
+
)
|
|
702
|
+
] }),
|
|
703
|
+
children: /* @__PURE__ */ g(X, { gap: "4", children: [
|
|
704
|
+
/* @__PURE__ */ t(Q, { children: c("apiKeys.revokeMessage", { name: o }) }),
|
|
705
|
+
p.isError ? /* @__PURE__ */ t(f, { status: "error", colorPalette: "danger", title: c("apiKeys.revokeFailed") }) : null
|
|
706
|
+
] })
|
|
707
|
+
}
|
|
708
|
+
);
|
|
709
|
+
}
|
|
710
|
+
function ti({ client: e }) {
|
|
711
|
+
const { t: n } = R(I), { workspaceId: l } = W(), i = Fe(), c = Ne(), [s, m] = F(!1), [p, u] = F(null), [o, r] = F(!1), a = C({
|
|
712
|
+
queryKey: h.apiKeys(l),
|
|
713
|
+
queryFn: () => e.listApiKeys(),
|
|
714
|
+
enabled: i
|
|
715
|
+
}), d = k(
|
|
716
|
+
() => [
|
|
717
|
+
{
|
|
718
|
+
id: "name",
|
|
719
|
+
header: n("fields.name"),
|
|
720
|
+
cell: (b) => /* @__PURE__ */ t(w, { value: b.row.original.name })
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
// The secret's first characters, which tell keys apart where a
|
|
724
|
+
// pipeline's settings show the key; never the secret.
|
|
725
|
+
id: "prefix",
|
|
726
|
+
header: n("apiKeys.prefix"),
|
|
727
|
+
size: 120,
|
|
728
|
+
cell: (b) => /* @__PURE__ */ t(ve, { value: b.row.original.keyPrefix })
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
id: "owner",
|
|
732
|
+
header: n("apiKeys.owner"),
|
|
733
|
+
size: 160,
|
|
734
|
+
cell: (b) => /* @__PURE__ */ t(Wn, { name: c(b.row.original.owner) })
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
id: "created",
|
|
738
|
+
header: n("apiKeys.created"),
|
|
739
|
+
size: 130,
|
|
740
|
+
cell: (b) => /* @__PURE__ */ t(je, { value: b.row.original.createTime })
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
id: "expires",
|
|
744
|
+
header: n("apiKeys.expires"),
|
|
745
|
+
size: 130,
|
|
746
|
+
cell: (b) => b.row.original.expireTime ? /* @__PURE__ */ t(je, { value: b.row.original.expireTime }) : /* @__PURE__ */ t(w, { value: n("apiKeys.never") })
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
id: "actions",
|
|
750
|
+
header: "",
|
|
751
|
+
minSize: 60,
|
|
752
|
+
cell: (b) => /* @__PURE__ */ t(
|
|
753
|
+
fn,
|
|
754
|
+
{
|
|
755
|
+
actions: [
|
|
756
|
+
{
|
|
757
|
+
icon: be,
|
|
758
|
+
label: n("apiKeys.revokeKey", { name: b.row.original.name }),
|
|
759
|
+
colorPalette: "red",
|
|
760
|
+
onClick: () => {
|
|
761
|
+
u(b.row.original), r(!0);
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
]
|
|
765
|
+
}
|
|
766
|
+
)
|
|
767
|
+
}
|
|
768
|
+
],
|
|
769
|
+
[n, c]
|
|
770
|
+
);
|
|
771
|
+
return /* @__PURE__ */ g(
|
|
772
|
+
ee,
|
|
773
|
+
{
|
|
774
|
+
title: n("apiKeys.title"),
|
|
775
|
+
subtitle: n("apiKeys.subtitle"),
|
|
776
|
+
actions: i ? /* @__PURE__ */ g(B, { variant: "solid", onClick: () => m(!0), children: [
|
|
777
|
+
/* @__PURE__ */ t(se, { size: 16, "aria-hidden": !0 }),
|
|
778
|
+
n("apiKeys.new")
|
|
779
|
+
] }) : void 0,
|
|
780
|
+
children: [
|
|
781
|
+
i ? a.isError ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ t(
|
|
782
|
+
ne,
|
|
783
|
+
{
|
|
784
|
+
columns: d,
|
|
785
|
+
data: a.data ?? [],
|
|
786
|
+
loading: a.isPending,
|
|
787
|
+
getRowId: (b) => b.id,
|
|
788
|
+
emptyState: n("apiKeys.empty")
|
|
789
|
+
}
|
|
790
|
+
) : /* @__PURE__ */ t(H, { px: "8", py: "6", children: /* @__PURE__ */ t(
|
|
791
|
+
tt,
|
|
792
|
+
{
|
|
793
|
+
icon: /* @__PURE__ */ t(yn, { size: 32, "aria-hidden": !0 }),
|
|
794
|
+
header: n("apiKeys.title"),
|
|
795
|
+
description: n("apiKeys.importersOnly")
|
|
796
|
+
}
|
|
797
|
+
) }),
|
|
798
|
+
/* @__PURE__ */ t(sl, { client: e, open: s, onClose: () => m(!1) }),
|
|
799
|
+
/* @__PURE__ */ t(
|
|
800
|
+
dl,
|
|
801
|
+
{
|
|
802
|
+
client: e,
|
|
803
|
+
apiKey: p,
|
|
804
|
+
open: o,
|
|
805
|
+
onClose: () => r(!1)
|
|
806
|
+
}
|
|
807
|
+
)
|
|
808
|
+
]
|
|
809
|
+
}
|
|
810
|
+
);
|
|
513
811
|
}
|
|
514
|
-
const
|
|
812
|
+
const Ee = (e) => ({
|
|
515
813
|
name: e.name,
|
|
516
814
|
description: e.description,
|
|
517
|
-
entities: Object.entries(e.entities).sort(([
|
|
518
|
-
}),
|
|
815
|
+
entities: Object.entries(e.entities).sort(([n], [l]) => n.localeCompare(l)).map(([n, l]) => ({ name: n, text: l }))
|
|
816
|
+
}), ml = (e) => ({
|
|
519
817
|
name: e.name,
|
|
520
818
|
description: e.description,
|
|
521
819
|
entities: Object.fromEntries(
|
|
522
|
-
e.entities.filter((
|
|
820
|
+
e.entities.filter((n) => n.name.trim() !== "").map((n) => [n.name.trim(), n.text])
|
|
523
821
|
)
|
|
524
822
|
});
|
|
525
|
-
function
|
|
526
|
-
const { t: i } =
|
|
527
|
-
queryKey: h.entitySet(
|
|
528
|
-
queryFn: () => e.getEntitySet(
|
|
823
|
+
function ni({ client: e, id: n, onDeleted: l }) {
|
|
824
|
+
const { t: i } = R(I), { workspaceId: c } = W(), s = C({
|
|
825
|
+
queryKey: h.entitySet(c, n),
|
|
826
|
+
queryFn: () => e.getEntitySet(n)
|
|
529
827
|
});
|
|
530
|
-
return
|
|
828
|
+
return s.isError || !s.data ? /* @__PURE__ */ t(L, { title: i("section.entitySets.title"), children: s.isError ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ t(ge, {}) }) : /* @__PURE__ */ t(pl, { client: e, entitySet: s.data, onDeleted: l });
|
|
531
829
|
}
|
|
532
|
-
function
|
|
830
|
+
function pl({
|
|
533
831
|
client: e,
|
|
534
|
-
entitySet:
|
|
535
|
-
onDeleted:
|
|
832
|
+
entitySet: n,
|
|
833
|
+
onDeleted: l
|
|
536
834
|
}) {
|
|
537
|
-
const { t: i } =
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
}, [
|
|
541
|
-
const
|
|
542
|
-
mutationFn: (Z) => e.updateEntitySet(
|
|
835
|
+
const { t: i } = R(I), { workspaceId: c } = W(), { paths: s } = K(), m = Ve(), p = P(), [u, o] = F(!1), r = me({ defaultValues: Ee(n.content) }), { reset: a, formState: d, control: b } = r, V = Un({ control: b, name: "entities" });
|
|
836
|
+
j(() => {
|
|
837
|
+
d.isDirty || a(Ee(n.content));
|
|
838
|
+
}, [n, a, d.isDirty]);
|
|
839
|
+
const S = te({
|
|
840
|
+
mutationFn: (Z) => e.updateEntitySet(n.id, ml(Z), n.state.draftRevisionId),
|
|
543
841
|
onSuccess: (Z) => {
|
|
544
|
-
|
|
842
|
+
p.setQueryData(h.entitySet(c, Z.id), Z), a(Ee(Z.content)), p.invalidateQueries({ queryKey: h.entitySets(c) });
|
|
545
843
|
}
|
|
546
|
-
}),
|
|
844
|
+
}), y = r.handleSubmit((Z) => S.mutate(Z)), [M, G] = Wt(), v = ft({
|
|
547
845
|
client: e,
|
|
548
846
|
kind: "entitySet",
|
|
549
|
-
id:
|
|
550
|
-
validity:
|
|
551
|
-
state:
|
|
552
|
-
unsaved:
|
|
847
|
+
id: n.id,
|
|
848
|
+
validity: n.validity,
|
|
849
|
+
state: n.state,
|
|
850
|
+
unsaved: d.isDirty
|
|
553
851
|
});
|
|
554
|
-
return
|
|
555
|
-
m ? /* @__PURE__ */
|
|
556
|
-
/* @__PURE__ */ t(
|
|
557
|
-
/* @__PURE__ */
|
|
558
|
-
|
|
852
|
+
return nt(
|
|
853
|
+
m ? /* @__PURE__ */ g(x, { storageKey: "importhub.entitySet.rail", children: [
|
|
854
|
+
/* @__PURE__ */ t(x.Header, { title: i("rail.title") }),
|
|
855
|
+
/* @__PURE__ */ g(x.Section, { id: "actions", label: i("rail.actions"), children: [
|
|
856
|
+
v.railAction,
|
|
559
857
|
/* @__PURE__ */ t(
|
|
560
|
-
|
|
858
|
+
x.IconButton,
|
|
561
859
|
{
|
|
562
860
|
label: i("entitySets.delete"),
|
|
563
|
-
icon: /* @__PURE__ */ t(
|
|
861
|
+
icon: /* @__PURE__ */ t(be, { size: 16 }),
|
|
564
862
|
tone: "outline-red",
|
|
565
|
-
onClick: () =>
|
|
863
|
+
onClick: () => o(!0)
|
|
566
864
|
}
|
|
567
865
|
)
|
|
568
866
|
] })
|
|
569
867
|
] }) : null
|
|
570
|
-
), /* @__PURE__ */
|
|
571
|
-
|
|
868
|
+
), /* @__PURE__ */ g(
|
|
869
|
+
L,
|
|
572
870
|
{
|
|
573
|
-
title:
|
|
574
|
-
breadcrumbs: [{ label: i("section.entitySets.title"), to:
|
|
575
|
-
badges: /* @__PURE__ */
|
|
871
|
+
title: n.content.name,
|
|
872
|
+
breadcrumbs: [{ label: i("section.entitySets.title"), to: s.entitySets }],
|
|
873
|
+
badges: /* @__PURE__ */ g(D, { gap: "2", children: [
|
|
576
874
|
/* @__PURE__ */ t(
|
|
577
|
-
|
|
875
|
+
Ue,
|
|
578
876
|
{
|
|
579
|
-
tone:
|
|
580
|
-
label:
|
|
877
|
+
tone: n.validity.valid ? "success" : "danger",
|
|
878
|
+
label: n.validity.valid ? i("validity.valid") : i("validity.invalid")
|
|
581
879
|
}
|
|
582
880
|
),
|
|
583
|
-
/* @__PURE__ */ t(
|
|
881
|
+
/* @__PURE__ */ t(Ut, { state: n.state })
|
|
584
882
|
] }),
|
|
585
883
|
tabs: G,
|
|
586
884
|
actions: m ? /* @__PURE__ */ t(
|
|
587
|
-
|
|
885
|
+
B,
|
|
588
886
|
{
|
|
589
887
|
variant: "solid",
|
|
590
|
-
disabled: !
|
|
591
|
-
loading:
|
|
888
|
+
disabled: !d.isDirty,
|
|
889
|
+
loading: S.isPending,
|
|
592
890
|
onClick: () => {
|
|
593
|
-
|
|
891
|
+
y();
|
|
594
892
|
},
|
|
595
893
|
children: i("common.save")
|
|
596
894
|
}
|
|
597
895
|
) : void 0,
|
|
598
896
|
children: [
|
|
599
|
-
|
|
600
|
-
|
|
897
|
+
M === "history" ? /* @__PURE__ */ t(
|
|
898
|
+
vt,
|
|
601
899
|
{
|
|
602
900
|
client: e,
|
|
603
901
|
kind: "entitySet",
|
|
604
|
-
id:
|
|
605
|
-
draftRevisionId:
|
|
902
|
+
id: n.id,
|
|
903
|
+
draftRevisionId: n.state.draftRevisionId,
|
|
606
904
|
onRestored: async () => {
|
|
607
|
-
const Z = await e.getEntitySet(
|
|
608
|
-
|
|
905
|
+
const Z = await e.getEntitySet(n.id);
|
|
906
|
+
p.setQueryData(h.entitySet(c, Z.id), Z), a(Ee(Z.content));
|
|
609
907
|
}
|
|
610
908
|
}
|
|
611
|
-
) : /* @__PURE__ */ t(
|
|
909
|
+
) : /* @__PURE__ */ t(H, { px: "8", py: "6", children: /* @__PURE__ */ t(pe, { ...r, children: /* @__PURE__ */ t(
|
|
612
910
|
"form",
|
|
613
911
|
{
|
|
614
912
|
onSubmit: (Z) => {
|
|
615
|
-
Z.preventDefault(), m &&
|
|
913
|
+
Z.preventDefault(), m && y();
|
|
616
914
|
},
|
|
617
|
-
children: /* @__PURE__ */
|
|
618
|
-
|
|
619
|
-
/* @__PURE__ */ t(
|
|
620
|
-
|
|
621
|
-
/* @__PURE__ */ t(
|
|
915
|
+
children: /* @__PURE__ */ g(X, { gap: "4", children: [
|
|
916
|
+
v.notice,
|
|
917
|
+
/* @__PURE__ */ t(Jt, { validity: n.validity }),
|
|
918
|
+
S.isError ? /* @__PURE__ */ t(f, { status: "error", colorPalette: "danger", title: i("save.failed"), children: S.error.message }) : null,
|
|
919
|
+
/* @__PURE__ */ t(N, { title: i("entitySets.general"), children: /* @__PURE__ */ g(X, { gap: "4", children: [
|
|
622
920
|
/* @__PURE__ */ t(
|
|
623
|
-
|
|
921
|
+
T,
|
|
624
922
|
{
|
|
625
923
|
name: "name",
|
|
626
924
|
label: i("fields.name"),
|
|
@@ -629,7 +927,7 @@ function jl({
|
|
|
629
927
|
}
|
|
630
928
|
),
|
|
631
929
|
/* @__PURE__ */ t(
|
|
632
|
-
|
|
930
|
+
lt,
|
|
633
931
|
{
|
|
634
932
|
name: "description",
|
|
635
933
|
label: i("fields.description"),
|
|
@@ -637,46 +935,46 @@ function jl({
|
|
|
637
935
|
}
|
|
638
936
|
)
|
|
639
937
|
] }) }),
|
|
640
|
-
/* @__PURE__ */ t(
|
|
641
|
-
|
|
642
|
-
|
|
938
|
+
/* @__PURE__ */ t(N, { title: i("entitySets.entities"), children: /* @__PURE__ */ g(X, { gap: "3", children: [
|
|
939
|
+
V.fields.length === 0 ? /* @__PURE__ */ t(Q, { color: "fg.muted", children: i("entitySets.noEntities") }) : null,
|
|
940
|
+
V.fields.map((Z, J) => /* @__PURE__ */ g(Zt, { templateColumns: "1fr 1fr auto", gap: "3", alignItems: "end", children: [
|
|
643
941
|
/* @__PURE__ */ t(
|
|
644
|
-
|
|
942
|
+
T,
|
|
645
943
|
{
|
|
646
|
-
name: `entities.${
|
|
647
|
-
label: i("entitySets.entityName", { index:
|
|
944
|
+
name: `entities.${J}.name`,
|
|
945
|
+
label: i("entitySets.entityName", { index: J + 1 }),
|
|
648
946
|
prepend: "&",
|
|
649
947
|
append: ";",
|
|
650
948
|
disabled: !m
|
|
651
949
|
}
|
|
652
950
|
),
|
|
653
951
|
/* @__PURE__ */ t(
|
|
654
|
-
|
|
952
|
+
T,
|
|
655
953
|
{
|
|
656
|
-
name: `entities.${
|
|
657
|
-
label: i("entitySets.entityText", { index:
|
|
954
|
+
name: `entities.${J}.text`,
|
|
955
|
+
label: i("entitySets.entityText", { index: J + 1 }),
|
|
658
956
|
disabled: !m
|
|
659
957
|
}
|
|
660
958
|
),
|
|
661
959
|
m ? /* @__PURE__ */ t(
|
|
662
|
-
|
|
960
|
+
We,
|
|
663
961
|
{
|
|
664
|
-
"aria-label": i("entitySets.removeEntity", { index:
|
|
962
|
+
"aria-label": i("entitySets.removeEntity", { index: J + 1 }),
|
|
665
963
|
variant: "ghost",
|
|
666
964
|
colorPalette: "red",
|
|
667
|
-
onClick: () =>
|
|
668
|
-
children: /* @__PURE__ */ t(
|
|
965
|
+
onClick: () => V.remove(J),
|
|
966
|
+
children: /* @__PURE__ */ t(be, { size: 16 })
|
|
669
967
|
}
|
|
670
968
|
) : /* @__PURE__ */ t("span", {})
|
|
671
969
|
] }, Z.id)),
|
|
672
|
-
m ? /* @__PURE__ */ t(
|
|
673
|
-
|
|
970
|
+
m ? /* @__PURE__ */ t(H, { children: /* @__PURE__ */ g(
|
|
971
|
+
B,
|
|
674
972
|
{
|
|
675
973
|
variant: "outline",
|
|
676
974
|
size: "sm",
|
|
677
|
-
onClick: () =>
|
|
975
|
+
onClick: () => V.append({ name: "", text: "" }),
|
|
678
976
|
children: [
|
|
679
|
-
/* @__PURE__ */ t(
|
|
977
|
+
/* @__PURE__ */ t(se, { size: 14, "aria-hidden": !0 }),
|
|
680
978
|
i("entitySets.addEntity")
|
|
681
979
|
]
|
|
682
980
|
}
|
|
@@ -685,19 +983,19 @@ function jl({
|
|
|
685
983
|
] })
|
|
686
984
|
}
|
|
687
985
|
) }) }),
|
|
688
|
-
|
|
986
|
+
v.dialog,
|
|
689
987
|
/* @__PURE__ */ t(
|
|
690
|
-
|
|
988
|
+
Ct,
|
|
691
989
|
{
|
|
692
|
-
open:
|
|
693
|
-
onClose: () =>
|
|
694
|
-
title: i("entitySets.deleteTitle", { name:
|
|
990
|
+
open: u,
|
|
991
|
+
onClose: () => o(!1),
|
|
992
|
+
title: i("entitySets.deleteTitle", { name: n.content.name }),
|
|
695
993
|
message: i("entitySets.deleteMessage"),
|
|
696
|
-
onDelete: () => e.deleteEntitySet(
|
|
994
|
+
onDelete: () => e.deleteEntitySet(n.id),
|
|
697
995
|
onDeleted: () => {
|
|
698
|
-
|
|
699
|
-
queryKey: h.entitySet(
|
|
700
|
-
}),
|
|
996
|
+
o(!1), p.removeQueries({
|
|
997
|
+
queryKey: h.entitySet(c, n.id)
|
|
998
|
+
}), p.invalidateQueries({ queryKey: h.entitySets(c) }), l();
|
|
701
999
|
}
|
|
702
1000
|
}
|
|
703
1001
|
)
|
|
@@ -705,138 +1003,138 @@ function jl({
|
|
|
705
1003
|
}
|
|
706
1004
|
);
|
|
707
1005
|
}
|
|
708
|
-
function
|
|
1006
|
+
function rt({
|
|
709
1007
|
open: e,
|
|
710
|
-
onClose:
|
|
711
|
-
title:
|
|
1008
|
+
onClose: n,
|
|
1009
|
+
title: l,
|
|
712
1010
|
children: i,
|
|
713
|
-
defaultValues:
|
|
714
|
-
onCreate:
|
|
1011
|
+
defaultValues: c,
|
|
1012
|
+
onCreate: s,
|
|
715
1013
|
onCreated: m
|
|
716
1014
|
}) {
|
|
717
|
-
const { t:
|
|
718
|
-
defaultValues: { name: "", description: "", ...
|
|
719
|
-
}),
|
|
720
|
-
|
|
721
|
-
e && (
|
|
722
|
-
}, [e,
|
|
723
|
-
const
|
|
724
|
-
if (!
|
|
725
|
-
|
|
1015
|
+
const { t: p } = R(I), u = me({
|
|
1016
|
+
defaultValues: { name: "", description: "", ...c }
|
|
1017
|
+
}), o = te({ mutationFn: s, onSuccess: m }), { reset: r } = u, { reset: a } = o;
|
|
1018
|
+
j(() => {
|
|
1019
|
+
e && (r({ name: "", description: "", ...c }), a());
|
|
1020
|
+
}, [e, r, a, c]);
|
|
1021
|
+
const d = u.handleSubmit((b) => {
|
|
1022
|
+
if (!b.name.trim()) {
|
|
1023
|
+
u.setError("name", { message: p("create.nameRequired") });
|
|
726
1024
|
return;
|
|
727
1025
|
}
|
|
728
|
-
|
|
729
|
-
onError: (
|
|
730
|
-
|
|
1026
|
+
o.mutate(b, {
|
|
1027
|
+
onError: (V) => {
|
|
1028
|
+
V instanceof Pe && u.setError("name", { message: p("create.nameTaken") });
|
|
731
1029
|
}
|
|
732
1030
|
});
|
|
733
1031
|
});
|
|
734
1032
|
return /* @__PURE__ */ t(
|
|
735
|
-
|
|
1033
|
+
ye,
|
|
736
1034
|
{
|
|
737
1035
|
open: e,
|
|
738
|
-
onClose:
|
|
739
|
-
header:
|
|
1036
|
+
onClose: n,
|
|
1037
|
+
header: l,
|
|
740
1038
|
lazyMount: !0,
|
|
741
1039
|
unmountOnExit: !0,
|
|
742
|
-
saveLabel:
|
|
743
|
-
cancelLabel:
|
|
1040
|
+
saveLabel: p("common.create"),
|
|
1041
|
+
cancelLabel: p("common.cancel"),
|
|
744
1042
|
onSave: () => {
|
|
745
|
-
|
|
1043
|
+
d();
|
|
746
1044
|
},
|
|
747
|
-
loading:
|
|
748
|
-
children: /* @__PURE__ */ t(
|
|
1045
|
+
loading: o.isPending,
|
|
1046
|
+
children: /* @__PURE__ */ t(pe, { ...u, children: /* @__PURE__ */ t(
|
|
749
1047
|
"form",
|
|
750
1048
|
{
|
|
751
|
-
onSubmit: (
|
|
752
|
-
|
|
1049
|
+
onSubmit: (b) => {
|
|
1050
|
+
b.preventDefault(), d();
|
|
753
1051
|
},
|
|
754
|
-
children: /* @__PURE__ */
|
|
755
|
-
/* @__PURE__ */ t(
|
|
756
|
-
/* @__PURE__ */ t(
|
|
1052
|
+
children: /* @__PURE__ */ g(X, { gap: "4", children: [
|
|
1053
|
+
/* @__PURE__ */ t(T, { name: "name", label: p("fields.name"), required: !0 }),
|
|
1054
|
+
/* @__PURE__ */ t(lt, { name: "description", label: p("fields.description") }),
|
|
757
1055
|
i,
|
|
758
|
-
|
|
1056
|
+
o.isError && !(o.error instanceof Pe) ? /* @__PURE__ */ t(f, { status: "error", colorPalette: "danger", title: p("create.failed") }) : null
|
|
759
1057
|
] })
|
|
760
1058
|
}
|
|
761
1059
|
) })
|
|
762
1060
|
}
|
|
763
1061
|
);
|
|
764
1062
|
}
|
|
765
|
-
function
|
|
766
|
-
const { t:
|
|
1063
|
+
function li({ client: e, onOpen: n }) {
|
|
1064
|
+
const { t: l } = R(I), { workspaceId: i } = W(), { paths: c } = K(), s = Ve(), m = P(), [p, u] = F(!1), o = C({
|
|
767
1065
|
queryKey: h.entitySets(i),
|
|
768
1066
|
queryFn: () => e.listEntitySets()
|
|
769
|
-
}),
|
|
1067
|
+
}), r = k(
|
|
770
1068
|
() => [
|
|
771
1069
|
{
|
|
772
1070
|
id: "name",
|
|
773
|
-
header:
|
|
1071
|
+
header: l("fields.name"),
|
|
774
1072
|
cell: (a) => /* @__PURE__ */ t(
|
|
775
|
-
|
|
1073
|
+
we,
|
|
776
1074
|
{
|
|
777
|
-
to:
|
|
1075
|
+
to: de(c, "entitySets", a.row.original.id),
|
|
778
1076
|
label: a.row.original.content.name
|
|
779
1077
|
}
|
|
780
1078
|
)
|
|
781
1079
|
},
|
|
782
1080
|
{
|
|
783
1081
|
id: "entities",
|
|
784
|
-
header:
|
|
1082
|
+
header: l("entitySets.entities"),
|
|
785
1083
|
size: 120,
|
|
786
1084
|
cell: (a) => /* @__PURE__ */ t(
|
|
787
|
-
|
|
1085
|
+
vn,
|
|
788
1086
|
{
|
|
789
1087
|
value: a.row.original.content.entities,
|
|
790
|
-
singular:
|
|
791
|
-
plural:
|
|
1088
|
+
singular: l("entitySets.entity"),
|
|
1089
|
+
plural: l("entitySets.entities")
|
|
792
1090
|
}
|
|
793
1091
|
)
|
|
794
1092
|
},
|
|
795
1093
|
{
|
|
796
1094
|
id: "validity",
|
|
797
|
-
header:
|
|
798
|
-
cell: (a) => /* @__PURE__ */ t(
|
|
1095
|
+
header: l("validity.column"),
|
|
1096
|
+
cell: (a) => /* @__PURE__ */ t(et, { validity: a.row.original.validity })
|
|
799
1097
|
},
|
|
800
1098
|
{
|
|
801
1099
|
id: "release",
|
|
802
|
-
header:
|
|
1100
|
+
header: l("release.column"),
|
|
803
1101
|
size: 140,
|
|
804
|
-
cell: (a) => /* @__PURE__ */ t(
|
|
1102
|
+
cell: (a) => /* @__PURE__ */ t(w, { value: wt(a.row.original.state, l) })
|
|
805
1103
|
}
|
|
806
1104
|
],
|
|
807
|
-
[
|
|
1105
|
+
[l, c]
|
|
808
1106
|
);
|
|
809
|
-
return /* @__PURE__ */
|
|
810
|
-
|
|
1107
|
+
return /* @__PURE__ */ g(
|
|
1108
|
+
ee,
|
|
811
1109
|
{
|
|
812
|
-
title:
|
|
813
|
-
actions:
|
|
814
|
-
/* @__PURE__ */ t(
|
|
815
|
-
|
|
1110
|
+
title: l("section.entitySets.title"),
|
|
1111
|
+
actions: s ? /* @__PURE__ */ g(B, { variant: "solid", onClick: () => u(!0), children: [
|
|
1112
|
+
/* @__PURE__ */ t(se, { size: 16, "aria-hidden": !0 }),
|
|
1113
|
+
l("entitySets.new")
|
|
816
1114
|
] }) : void 0,
|
|
817
1115
|
children: [
|
|
818
|
-
|
|
819
|
-
|
|
1116
|
+
o.isError ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ t(
|
|
1117
|
+
ne,
|
|
820
1118
|
{
|
|
821
|
-
columns:
|
|
822
|
-
data:
|
|
823
|
-
loading:
|
|
1119
|
+
columns: r,
|
|
1120
|
+
data: o.data ?? [],
|
|
1121
|
+
loading: o.isPending,
|
|
824
1122
|
getRowId: (a) => a.id,
|
|
825
|
-
emptyState:
|
|
1123
|
+
emptyState: l("entitySets.empty")
|
|
826
1124
|
}
|
|
827
1125
|
),
|
|
828
1126
|
/* @__PURE__ */ t(
|
|
829
|
-
|
|
1127
|
+
rt,
|
|
830
1128
|
{
|
|
831
|
-
open:
|
|
832
|
-
onClose: () =>
|
|
833
|
-
title:
|
|
834
|
-
onCreate: async ({ name: a, description:
|
|
835
|
-
const
|
|
836
|
-
return await m.invalidateQueries({ queryKey: h.entitySets(i) }),
|
|
1129
|
+
open: p,
|
|
1130
|
+
onClose: () => u(!1),
|
|
1131
|
+
title: l("entitySets.new"),
|
|
1132
|
+
onCreate: async ({ name: a, description: d }) => {
|
|
1133
|
+
const b = await e.createEntitySet({ name: a, description: d, entities: {} });
|
|
1134
|
+
return await m.invalidateQueries({ queryKey: h.entitySets(i) }), b.id;
|
|
837
1135
|
},
|
|
838
1136
|
onCreated: (a) => {
|
|
839
|
-
|
|
1137
|
+
u(!1), n(a);
|
|
840
1138
|
}
|
|
841
1139
|
}
|
|
842
1140
|
)
|
|
@@ -844,209 +1142,166 @@ function kn({ client: e, onOpen: l }) {
|
|
|
844
1142
|
}
|
|
845
1143
|
);
|
|
846
1144
|
}
|
|
847
|
-
function
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
queued: "neutral",
|
|
852
|
-
reading: "info",
|
|
853
|
-
writing: "info",
|
|
854
|
-
cancelling: "warning",
|
|
855
|
-
succeeded: "success",
|
|
856
|
-
succeeded_with_problems: "warning",
|
|
857
|
-
failed: "danger",
|
|
858
|
-
cancelled: "neutral"
|
|
859
|
-
};
|
|
860
|
-
function De(e, l) {
|
|
861
|
-
switch (e) {
|
|
862
|
-
case "queued":
|
|
863
|
-
case "reading":
|
|
864
|
-
case "writing":
|
|
865
|
-
case "cancelling":
|
|
866
|
-
return l(`imports.phase.${e}`);
|
|
867
|
-
default:
|
|
868
|
-
return l(`imports.outcome.${e}`);
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
const Lt = 2e3, Ne = (e) => e.phase !== "ended";
|
|
872
|
-
function Ol({ im: e }) {
|
|
873
|
-
const { t: l } = S(y), n = xt(e);
|
|
874
|
-
return /* @__PURE__ */ t(Je, { tone: kt[n], label: De(n, l) });
|
|
875
|
-
}
|
|
876
|
-
function ql({ im: e }) {
|
|
877
|
-
const { t: l } = S(y), n = xt(e);
|
|
878
|
-
return /* @__PURE__ */ t(Il, { value: De(n, l), toneMap: { [De(n, l)]: kt[n] } });
|
|
879
|
-
}
|
|
880
|
-
function nt() {
|
|
881
|
-
const { t: e } = S(y), { members: l } = W();
|
|
882
|
-
return Gl(
|
|
883
|
-
(n) => l.byId(n)?.displayName ?? e("imports.someone"),
|
|
884
|
-
[l, e]
|
|
885
|
-
);
|
|
886
|
-
}
|
|
887
|
-
function it() {
|
|
888
|
-
return w().canImport ?? !1;
|
|
889
|
-
}
|
|
890
|
-
function _l({ client: e, im: l }) {
|
|
891
|
-
const { t: n } = S(y), { workspaceId: i } = W(), [s, r] = x(""), [m, u] = x(""), o = vt({
|
|
892
|
-
queryKey: h.itemProblems(i, l.id, s, m),
|
|
893
|
-
queryFn: ({ pageParam: g }) => e.listItemProblems(l.id, { mappingId: s, sourceKeyQuery: m, pageToken: g }),
|
|
1145
|
+
function ul({ client: e, im: n }) {
|
|
1146
|
+
const { t: l } = R(I), { workspaceId: i } = W(), [c, s] = F(""), [m, p] = F(""), u = Yt({
|
|
1147
|
+
queryKey: h.itemProblems(i, n.id, c, m),
|
|
1148
|
+
queryFn: ({ pageParam: y }) => e.listItemProblems(n.id, { mappingId: c, sourceKeyQuery: m, pageToken: y }),
|
|
894
1149
|
initialPageParam: "",
|
|
895
|
-
getNextPageParam: (
|
|
1150
|
+
getNextPageParam: (y) => y.nextPageToken || void 0,
|
|
896
1151
|
// Keeps the rows while a new filter's answer loads, rather than
|
|
897
1152
|
// flashing an empty table at every keystroke.
|
|
898
|
-
placeholderData: (
|
|
899
|
-
}),
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
}, [
|
|
903
|
-
const
|
|
904
|
-
() =>
|
|
905
|
-
[
|
|
906
|
-
),
|
|
1153
|
+
placeholderData: (y) => y
|
|
1154
|
+
}), o = n.counts.problems, r = Ft(o), { refetch: a } = u;
|
|
1155
|
+
j(() => {
|
|
1156
|
+
o !== r.current && (r.current = o, a());
|
|
1157
|
+
}, [o, a]);
|
|
1158
|
+
const d = u.data?.pages[0], b = k(
|
|
1159
|
+
() => u.data?.pages.flatMap((y) => y.itemProblems) ?? [],
|
|
1160
|
+
[u.data]
|
|
1161
|
+
), V = k(
|
|
907
1162
|
() => [
|
|
908
1163
|
{
|
|
909
1164
|
id: "sourceKey",
|
|
910
|
-
header:
|
|
1165
|
+
header: l("imports.sourceKey"),
|
|
911
1166
|
size: 180,
|
|
912
|
-
cell: (
|
|
1167
|
+
cell: (y) => /* @__PURE__ */ t(Nt, { value: y.row.original.sourceKey || l("imports.noSourceKey") })
|
|
913
1168
|
},
|
|
914
1169
|
{
|
|
915
1170
|
id: "mapping",
|
|
916
|
-
header:
|
|
1171
|
+
header: l("imports.mapping"),
|
|
917
1172
|
size: 160,
|
|
918
|
-
cell: (
|
|
1173
|
+
cell: (y) => /* @__PURE__ */ t(w, { value: y.row.original.mappingName })
|
|
919
1174
|
},
|
|
920
1175
|
{
|
|
921
1176
|
id: "field",
|
|
922
|
-
header:
|
|
1177
|
+
header: l("imports.field"),
|
|
923
1178
|
size: 160,
|
|
924
|
-
cell: (
|
|
1179
|
+
cell: (y) => y.row.original.field ? /* @__PURE__ */ t(ve, { value: y.row.original.field }) : /* @__PURE__ */ t(w, { value: l("imports.wholeVersion") })
|
|
925
1180
|
},
|
|
926
1181
|
{
|
|
927
1182
|
id: "reason",
|
|
928
|
-
header:
|
|
1183
|
+
header: l("imports.reason"),
|
|
929
1184
|
minSize: 240,
|
|
930
|
-
cell: (
|
|
1185
|
+
cell: (y) => /* @__PURE__ */ t(w, { value: y.row.original.reason })
|
|
931
1186
|
}
|
|
932
1187
|
],
|
|
933
|
-
[
|
|
1188
|
+
[l]
|
|
934
1189
|
);
|
|
935
|
-
if (
|
|
936
|
-
const
|
|
937
|
-
return /* @__PURE__ */
|
|
938
|
-
/* @__PURE__ */
|
|
1190
|
+
if (u.isError) return /* @__PURE__ */ t(z, {});
|
|
1191
|
+
const S = d?.totalCount ?? 0;
|
|
1192
|
+
return /* @__PURE__ */ g(X, { gap: "3", children: [
|
|
1193
|
+
/* @__PURE__ */ g(xe, { children: [
|
|
939
1194
|
/* @__PURE__ */ t(
|
|
940
|
-
|
|
1195
|
+
Xn,
|
|
941
1196
|
{
|
|
942
|
-
"aria-label":
|
|
943
|
-
placeholder:
|
|
944
|
-
onSearch:
|
|
1197
|
+
"aria-label": l("imports.searchSourceKey"),
|
|
1198
|
+
placeholder: l("imports.searchSourceKey"),
|
|
1199
|
+
onSearch: p,
|
|
945
1200
|
debounceMs: 200,
|
|
946
1201
|
maxWidth: "260px"
|
|
947
1202
|
}
|
|
948
1203
|
),
|
|
949
|
-
/* @__PURE__ */
|
|
950
|
-
|
|
1204
|
+
/* @__PURE__ */ g(
|
|
1205
|
+
on,
|
|
951
1206
|
{
|
|
952
|
-
"aria-label":
|
|
1207
|
+
"aria-label": l("imports.filterMapping"),
|
|
953
1208
|
size: "sm",
|
|
954
1209
|
width: "auto",
|
|
955
|
-
value:
|
|
956
|
-
onChange: (
|
|
1210
|
+
value: c,
|
|
1211
|
+
onChange: (y) => s(y.currentTarget.value),
|
|
957
1212
|
children: [
|
|
958
|
-
/* @__PURE__ */ t("option", { value: "", children:
|
|
959
|
-
(
|
|
1213
|
+
/* @__PURE__ */ t("option", { value: "", children: l("imports.allMappings", { count: S }) }),
|
|
1214
|
+
(d?.mappings ?? []).map((y) => /* @__PURE__ */ t("option", { value: y.mappingId, children: l("imports.mappingCount", { name: y.mappingName, count: y.count }) }, y.mappingId))
|
|
960
1215
|
]
|
|
961
1216
|
}
|
|
962
1217
|
),
|
|
963
|
-
/* @__PURE__ */ t(
|
|
1218
|
+
/* @__PURE__ */ t(xe.Right, { children: /* @__PURE__ */ t(xe.Count, { children: l("imports.problemCount", { matching: d?.matchingCount ?? 0, total: S }) }) })
|
|
964
1219
|
] }),
|
|
965
1220
|
/* @__PURE__ */ t(
|
|
966
|
-
|
|
1221
|
+
ne,
|
|
967
1222
|
{
|
|
968
|
-
columns:
|
|
969
|
-
data:
|
|
970
|
-
loading:
|
|
971
|
-
getRowId: (
|
|
972
|
-
emptyState:
|
|
1223
|
+
columns: V,
|
|
1224
|
+
data: b,
|
|
1225
|
+
loading: u.isPending,
|
|
1226
|
+
getRowId: (y) => y.id,
|
|
1227
|
+
emptyState: l(S === 0 ? "imports.noItemProblems" : "imports.noMatchingProblems")
|
|
973
1228
|
}
|
|
974
1229
|
),
|
|
975
|
-
|
|
976
|
-
|
|
1230
|
+
u.hasNextPage ? /* @__PURE__ */ t(Et, { children: /* @__PURE__ */ t(
|
|
1231
|
+
B,
|
|
977
1232
|
{
|
|
978
1233
|
variant: "outline",
|
|
979
|
-
loading:
|
|
1234
|
+
loading: u.isFetchingNextPage,
|
|
980
1235
|
onClick: () => {
|
|
981
|
-
|
|
1236
|
+
u.fetchNextPage();
|
|
982
1237
|
},
|
|
983
|
-
children:
|
|
1238
|
+
children: l("imports.loadMore")
|
|
984
1239
|
}
|
|
985
1240
|
) }) : null
|
|
986
1241
|
] });
|
|
987
1242
|
}
|
|
988
|
-
function
|
|
1243
|
+
function ii({
|
|
989
1244
|
client: e,
|
|
990
|
-
id:
|
|
991
|
-
pollIntervalMs:
|
|
1245
|
+
id: n,
|
|
1246
|
+
pollIntervalMs: l = Pt
|
|
992
1247
|
}) {
|
|
993
|
-
const { t: i } =
|
|
994
|
-
queryKey: h.import(
|
|
995
|
-
queryFn: () => e.getImport(
|
|
996
|
-
refetchInterval: (m) => m.state.data &&
|
|
1248
|
+
const { t: i } = R(I), { workspaceId: c } = W(), s = C({
|
|
1249
|
+
queryKey: h.import(c, n),
|
|
1250
|
+
queryFn: () => e.getImport(n),
|
|
1251
|
+
refetchInterval: (m) => m.state.data && Ye(m.state.data) ? l : !1
|
|
997
1252
|
});
|
|
998
|
-
return
|
|
1253
|
+
return s.isError || !s.data ? /* @__PURE__ */ t(L, { title: i("section.imports.title"), children: s.isError ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ t(ge, {}) }) : /* @__PURE__ */ t(bl, { client: e, im: s.data });
|
|
999
1254
|
}
|
|
1000
|
-
function
|
|
1001
|
-
const { t:
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
/* @__PURE__ */ t(
|
|
1005
|
-
/* @__PURE__ */ t(
|
|
1006
|
-
|
|
1255
|
+
function bl({ client: e, im: n }) {
|
|
1256
|
+
const { t: l, i18n: i } = R(I), c = i.language, { workspaceId: s } = W(), { paths: m } = K(), p = Fe(), u = Ne(), o = P(), [r, a] = F(!1), d = p && Ye(n) && !n.cancelledBy;
|
|
1257
|
+
nt(
|
|
1258
|
+
d ? /* @__PURE__ */ g(x, { storageKey: "importhub.import.rail", children: [
|
|
1259
|
+
/* @__PURE__ */ t(x.Header, { title: l("rail.title") }),
|
|
1260
|
+
/* @__PURE__ */ t(x.Section, { id: "actions", label: l("rail.actions"), children: /* @__PURE__ */ t(
|
|
1261
|
+
x.IconButton,
|
|
1007
1262
|
{
|
|
1008
|
-
label:
|
|
1009
|
-
icon: /* @__PURE__ */ t(
|
|
1263
|
+
label: l("imports.cancel"),
|
|
1264
|
+
icon: /* @__PURE__ */ t(hn, { size: 16 }),
|
|
1010
1265
|
tone: "outline-red",
|
|
1011
1266
|
onClick: () => a(!0)
|
|
1012
1267
|
}
|
|
1013
1268
|
) })
|
|
1014
1269
|
] }) : null
|
|
1015
1270
|
);
|
|
1016
|
-
const
|
|
1017
|
-
mutationFn: () => e.cancelImport(
|
|
1018
|
-
onSuccess: (
|
|
1019
|
-
|
|
1271
|
+
const b = te({
|
|
1272
|
+
mutationFn: () => e.cancelImport(n.id),
|
|
1273
|
+
onSuccess: (S) => {
|
|
1274
|
+
o.setQueryData(h.import(s, S.id), S), o.invalidateQueries({ queryKey: h.imports(s) }), a(!1);
|
|
1020
1275
|
}
|
|
1021
|
-
}), { reset:
|
|
1022
|
-
return
|
|
1023
|
-
|
|
1024
|
-
}, [
|
|
1025
|
-
|
|
1276
|
+
}), { reset: V } = b;
|
|
1277
|
+
return j(() => {
|
|
1278
|
+
r && V();
|
|
1279
|
+
}, [r, V]), /* @__PURE__ */ g(
|
|
1280
|
+
L,
|
|
1026
1281
|
{
|
|
1027
|
-
title:
|
|
1028
|
-
subtitle:
|
|
1029
|
-
person:
|
|
1030
|
-
time:
|
|
1282
|
+
title: n.importProfileName,
|
|
1283
|
+
subtitle: l("imports.subtitle", {
|
|
1284
|
+
person: u(n.startedBy),
|
|
1285
|
+
time: Te(c, n.createTime)
|
|
1031
1286
|
}),
|
|
1032
|
-
breadcrumbs: [{ label:
|
|
1033
|
-
badges: /* @__PURE__ */ t(
|
|
1287
|
+
breadcrumbs: [{ label: l("section.imports.title"), to: m.imports }],
|
|
1288
|
+
badges: /* @__PURE__ */ t(ol, { im: n }),
|
|
1034
1289
|
children: [
|
|
1035
|
-
/* @__PURE__ */ t(
|
|
1036
|
-
/* @__PURE__ */ t(
|
|
1037
|
-
|
|
1038
|
-
/* @__PURE__ */ t(
|
|
1039
|
-
/* @__PURE__ */ t(Y.Row, { label:
|
|
1040
|
-
/* @__PURE__ */ t(Y.Row, { label:
|
|
1041
|
-
|
|
1042
|
-
/* @__PURE__ */ t(Y.Row, { label:
|
|
1043
|
-
/* @__PURE__ */ t(Y.Row, { label:
|
|
1044
|
-
reference:
|
|
1045
|
-
date:
|
|
1046
|
-
}) :
|
|
1047
|
-
|
|
1290
|
+
/* @__PURE__ */ t(H, { px: "8", py: "6", children: /* @__PURE__ */ g(X, { gap: "6", children: [
|
|
1291
|
+
/* @__PURE__ */ t(gl, { im: n }),
|
|
1292
|
+
n.phase === "reading" || n.phase === "writing" ? /* @__PURE__ */ t(Vl, { im: n }) : null,
|
|
1293
|
+
/* @__PURE__ */ t(N, { title: l("imports.details"), children: /* @__PURE__ */ g(Y, { children: [
|
|
1294
|
+
/* @__PURE__ */ t(Y.Row, { label: l("imports.startedBy"), children: u(n.startedBy) }),
|
|
1295
|
+
/* @__PURE__ */ t(Y.Row, { label: l("imports.started"), children: Te(c, n.startTime || n.createTime) }),
|
|
1296
|
+
n.endTime ? /* @__PURE__ */ t(Y.Row, { label: l("imports.ended"), children: Te(c, n.endTime) }) : null,
|
|
1297
|
+
/* @__PURE__ */ t(Y.Row, { label: l("imports.effectiveDate"), children: n.effectiveDate || l("imports.none") }),
|
|
1298
|
+
/* @__PURE__ */ t(Y.Row, { label: l("imports.source"), children: n.source ? l("imports.sourceValue", {
|
|
1299
|
+
reference: n.source.reference,
|
|
1300
|
+
date: n.source.date
|
|
1301
|
+
}) : l("imports.none") }),
|
|
1302
|
+
n.changeSetId ? /* @__PURE__ */ t(Y.Row, { label: l("imports.changeSet"), children: /* @__PURE__ */ t(nl, { changeSetId: n.changeSetId }) }) : null
|
|
1048
1303
|
] }) }),
|
|
1049
|
-
/* @__PURE__ */ t(
|
|
1304
|
+
/* @__PURE__ */ t(N, { title: l("imports.counts"), children: /* @__PURE__ */ t(Y, { children: [
|
|
1050
1305
|
"matched",
|
|
1051
1306
|
"created",
|
|
1052
1307
|
"planned",
|
|
@@ -1054,39 +1309,39 @@ function $l({ client: e, im: l }) {
|
|
|
1054
1309
|
"kept",
|
|
1055
1310
|
"unchanged",
|
|
1056
1311
|
"problems"
|
|
1057
|
-
].map((
|
|
1058
|
-
/* @__PURE__ */ t(
|
|
1059
|
-
/* @__PURE__ */ t(
|
|
1312
|
+
].map((S) => /* @__PURE__ */ t(Y.Row, { label: l(`imports.${S}`), children: n.counts[S].toLocaleString() }, S)) }) }),
|
|
1313
|
+
/* @__PURE__ */ t(yl, { im: n }),
|
|
1314
|
+
/* @__PURE__ */ t(N, { title: l("imports.itemProblems"), children: /* @__PURE__ */ t(ul, { client: e, im: n }) })
|
|
1060
1315
|
] }) }),
|
|
1061
1316
|
/* @__PURE__ */ t(
|
|
1062
|
-
|
|
1317
|
+
ye,
|
|
1063
1318
|
{
|
|
1064
|
-
open:
|
|
1319
|
+
open: r,
|
|
1065
1320
|
onClose: () => a(!1),
|
|
1066
|
-
header:
|
|
1321
|
+
header: l("imports.cancelTitle"),
|
|
1067
1322
|
lazyMount: !0,
|
|
1068
1323
|
unmountOnExit: !0,
|
|
1069
|
-
footer: /* @__PURE__ */
|
|
1070
|
-
/* @__PURE__ */ t(
|
|
1324
|
+
footer: /* @__PURE__ */ g(D, { gap: "2", children: [
|
|
1325
|
+
/* @__PURE__ */ t(B, { variant: "outline", onClick: () => a(!1), children: l("imports.keepRunning") }),
|
|
1071
1326
|
/* @__PURE__ */ t(
|
|
1072
|
-
|
|
1327
|
+
B,
|
|
1073
1328
|
{
|
|
1074
1329
|
variant: "solid",
|
|
1075
1330
|
colorPalette: "red",
|
|
1076
|
-
loading:
|
|
1077
|
-
onClick: () =>
|
|
1078
|
-
children:
|
|
1331
|
+
loading: b.isPending,
|
|
1332
|
+
onClick: () => b.mutate(),
|
|
1333
|
+
children: l("imports.cancelConfirm")
|
|
1079
1334
|
}
|
|
1080
1335
|
)
|
|
1081
1336
|
] }),
|
|
1082
|
-
children: /* @__PURE__ */
|
|
1083
|
-
/* @__PURE__ */ t(Q, { children:
|
|
1084
|
-
|
|
1085
|
-
|
|
1337
|
+
children: /* @__PURE__ */ g(X, { gap: "4", children: [
|
|
1338
|
+
/* @__PURE__ */ t(Q, { children: l("imports.cancelMessage") }),
|
|
1339
|
+
b.isError ? /* @__PURE__ */ t(
|
|
1340
|
+
f,
|
|
1086
1341
|
{
|
|
1087
1342
|
status: "error",
|
|
1088
1343
|
colorPalette: "danger",
|
|
1089
|
-
title:
|
|
1344
|
+
title: l("imports.cancelFailed", { message: b.error.message })
|
|
1090
1345
|
}
|
|
1091
1346
|
) : null
|
|
1092
1347
|
] })
|
|
@@ -1096,63 +1351,63 @@ function $l({ client: e, im: l }) {
|
|
|
1096
1351
|
}
|
|
1097
1352
|
);
|
|
1098
1353
|
}
|
|
1099
|
-
const
|
|
1100
|
-
function
|
|
1101
|
-
const { t:
|
|
1102
|
-
return e.outcome === "failed" ? /* @__PURE__ */ t(
|
|
1354
|
+
const Te = (e, n) => new Date(n).toLocaleString(e);
|
|
1355
|
+
function gl({ im: e }) {
|
|
1356
|
+
const { t: n } = R(I), l = Ne();
|
|
1357
|
+
return e.outcome === "failed" ? /* @__PURE__ */ t(f, { status: "error", colorPalette: "danger", title: n("imports.failedTitle"), children: e.failureReason }) : e.outcome === "cancelled" ? /* @__PURE__ */ t(f, { status: "info", colorPalette: "gray", children: n("imports.cancelledBody", { person: l(e.cancelledBy) }) }) : e.outcome === "succeeded_with_problems" ? /* @__PURE__ */ t(f, { status: "warning", colorPalette: "warning", children: n("imports.problemsBody", { count: e.counts.problems }) }) : Ye(e) && e.cancelledBy ? /* @__PURE__ */ t(f, { status: "warning", colorPalette: "warning", children: n("imports.cancellingBody", { person: l(e.cancelledBy) }) }) : e.phase === "queued" ? /* @__PURE__ */ t(f, { status: "info", colorPalette: "info", children: n("imports.queuedBody") }) : null;
|
|
1103
1358
|
}
|
|
1104
|
-
function
|
|
1105
|
-
const { t:
|
|
1106
|
-
return /* @__PURE__ */ t(
|
|
1359
|
+
function Vl({ im: e }) {
|
|
1360
|
+
const { t: n } = R(I), { done: l, total: i } = e.progress, c = i > 0;
|
|
1361
|
+
return /* @__PURE__ */ t(N, { title: n("imports.progressTitle"), children: /* @__PURE__ */ g(X, { gap: "2", children: [
|
|
1107
1362
|
/* @__PURE__ */ t(
|
|
1108
|
-
|
|
1363
|
+
Xt,
|
|
1109
1364
|
{
|
|
1110
|
-
label:
|
|
1111
|
-
value:
|
|
1365
|
+
label: n(`imports.phaseLong.${e.phase}`),
|
|
1366
|
+
value: c ? Math.round(l / i * 100) : null,
|
|
1112
1367
|
colorPalette: "info"
|
|
1113
1368
|
}
|
|
1114
1369
|
),
|
|
1115
|
-
/* @__PURE__ */ t(Q, { color: "muted", fontSize: "sm", children:
|
|
1370
|
+
/* @__PURE__ */ t(Q, { color: "muted", fontSize: "sm", children: c ? n("imports.progressOf", { done: l, total: i }) : n("imports.progressUnknown") })
|
|
1116
1371
|
] }) });
|
|
1117
1372
|
}
|
|
1118
|
-
function
|
|
1119
|
-
const { t:
|
|
1120
|
-
return /* @__PURE__ */ t(
|
|
1121
|
-
|
|
1122
|
-
/* @__PURE__ */ t(Y.Row, { label:
|
|
1123
|
-
/* @__PURE__ */ t(Y.Row, { label:
|
|
1373
|
+
function yl({ im: e }) {
|
|
1374
|
+
const { t: n } = R(I), { importProfile: l, mappings: i, entitySet: c } = e.releases;
|
|
1375
|
+
return /* @__PURE__ */ t(N, { title: n("imports.releases"), children: /* @__PURE__ */ g(Y, { children: [
|
|
1376
|
+
l ? /* @__PURE__ */ t(Y.Row, { label: n("imports.profile"), children: /* @__PURE__ */ t(De, { section: "profiles", release: l }) }) : null,
|
|
1377
|
+
/* @__PURE__ */ t(Y.Row, { label: n("imports.mappings"), children: /* @__PURE__ */ t(st.Root, { ps: "0", listStyleType: "none", children: i.map((s) => /* @__PURE__ */ t(st.Item, { children: /* @__PURE__ */ t(De, { section: "mappings", release: s }) }, s.releaseId)) }) }),
|
|
1378
|
+
/* @__PURE__ */ t(Y.Row, { label: n("imports.entitySet"), children: c ? /* @__PURE__ */ t(De, { section: "entitySets", release: c }) : n("imports.none") })
|
|
1124
1379
|
] }) });
|
|
1125
1380
|
}
|
|
1126
|
-
function
|
|
1381
|
+
function De({
|
|
1127
1382
|
section: e,
|
|
1128
|
-
release:
|
|
1383
|
+
release: n
|
|
1129
1384
|
}) {
|
|
1130
|
-
const { t:
|
|
1131
|
-
return /* @__PURE__ */ t(
|
|
1385
|
+
const { t: l } = R(I), { paths: i } = K();
|
|
1386
|
+
return /* @__PURE__ */ t($e, { asChild: !0, children: /* @__PURE__ */ t(xt, { to: de(i, e, n.configurationId), children: l("imports.releaseOf", { name: n.name, number: n.number }) }) });
|
|
1132
1387
|
}
|
|
1133
|
-
function
|
|
1388
|
+
function ai({
|
|
1134
1389
|
client: e,
|
|
1135
|
-
onStart:
|
|
1136
|
-
pollIntervalMs:
|
|
1390
|
+
onStart: n,
|
|
1391
|
+
pollIntervalMs: l = Pt
|
|
1137
1392
|
}) {
|
|
1138
|
-
const { t: i } =
|
|
1139
|
-
queryKey: h.imports(
|
|
1393
|
+
const { t: i } = R(I), { workspaceId: c } = W(), { paths: s } = K(), m = Fe(), p = Ne(), u = Yt({
|
|
1394
|
+
queryKey: h.imports(c),
|
|
1140
1395
|
queryFn: ({ pageParam: a }) => e.listImports(a),
|
|
1141
1396
|
initialPageParam: "",
|
|
1142
1397
|
getNextPageParam: (a) => a.nextPageToken || void 0,
|
|
1143
|
-
refetchInterval: (a) => a.state.data?.pages.some((
|
|
1144
|
-
}),
|
|
1145
|
-
() =>
|
|
1146
|
-
[
|
|
1147
|
-
),
|
|
1398
|
+
refetchInterval: (a) => a.state.data?.pages.some((d) => d.imports.some(Ye)) ? l : !1
|
|
1399
|
+
}), o = k(
|
|
1400
|
+
() => u.data?.pages.flatMap((a) => a.imports) ?? [],
|
|
1401
|
+
[u.data]
|
|
1402
|
+
), r = k(
|
|
1148
1403
|
() => [
|
|
1149
1404
|
{
|
|
1150
1405
|
id: "profile",
|
|
1151
1406
|
header: i("imports.profile"),
|
|
1152
1407
|
cell: (a) => /* @__PURE__ */ t(
|
|
1153
|
-
|
|
1408
|
+
we,
|
|
1154
1409
|
{
|
|
1155
|
-
to:
|
|
1410
|
+
to: de(s, "imports", a.row.original.id),
|
|
1156
1411
|
label: a.row.original.importProfileName
|
|
1157
1412
|
}
|
|
1158
1413
|
)
|
|
@@ -1161,68 +1416,68 @@ function Hn({
|
|
|
1161
1416
|
id: "startedBy",
|
|
1162
1417
|
header: i("imports.startedBy"),
|
|
1163
1418
|
size: 160,
|
|
1164
|
-
cell: (a) => /* @__PURE__ */ t(
|
|
1419
|
+
cell: (a) => /* @__PURE__ */ t(w, { value: p(a.row.original.startedBy) })
|
|
1165
1420
|
},
|
|
1166
1421
|
{
|
|
1167
1422
|
id: "started",
|
|
1168
1423
|
header: i("imports.started"),
|
|
1169
1424
|
size: 150,
|
|
1170
|
-
cell: (a) => /* @__PURE__ */ t(
|
|
1425
|
+
cell: (a) => /* @__PURE__ */ t(je, { value: a.row.original.createTime })
|
|
1171
1426
|
},
|
|
1172
1427
|
{
|
|
1173
1428
|
// Its Outcome once it has one, its phase until then.
|
|
1174
1429
|
id: "outcome",
|
|
1175
1430
|
header: i("imports.outcomeColumn"),
|
|
1176
1431
|
size: 190,
|
|
1177
|
-
cell: (a) => /* @__PURE__ */ t(
|
|
1432
|
+
cell: (a) => /* @__PURE__ */ t(rl, { im: a.row.original })
|
|
1178
1433
|
},
|
|
1179
1434
|
{
|
|
1180
1435
|
id: "matched",
|
|
1181
1436
|
header: i("imports.matched"),
|
|
1182
1437
|
size: 90,
|
|
1183
|
-
cell: (a) => /* @__PURE__ */ t(
|
|
1438
|
+
cell: (a) => /* @__PURE__ */ t(Qe, { value: a.row.original.counts.matched })
|
|
1184
1439
|
},
|
|
1185
1440
|
{
|
|
1186
1441
|
id: "created",
|
|
1187
1442
|
header: i("imports.created"),
|
|
1188
1443
|
size: 90,
|
|
1189
|
-
cell: (a) => /* @__PURE__ */ t(
|
|
1444
|
+
cell: (a) => /* @__PURE__ */ t(Qe, { value: a.row.original.counts.created })
|
|
1190
1445
|
},
|
|
1191
1446
|
{
|
|
1192
1447
|
id: "problems",
|
|
1193
1448
|
header: i("imports.problems"),
|
|
1194
1449
|
size: 90,
|
|
1195
|
-
cell: (a) => /* @__PURE__ */ t(
|
|
1450
|
+
cell: (a) => /* @__PURE__ */ t(Qe, { value: a.row.original.counts.problems })
|
|
1196
1451
|
}
|
|
1197
1452
|
],
|
|
1198
|
-
[i,
|
|
1453
|
+
[i, s, p]
|
|
1199
1454
|
);
|
|
1200
1455
|
return /* @__PURE__ */ t(
|
|
1201
|
-
|
|
1456
|
+
ee,
|
|
1202
1457
|
{
|
|
1203
1458
|
title: i("section.imports.title"),
|
|
1204
|
-
actions: m ? /* @__PURE__ */
|
|
1205
|
-
/* @__PURE__ */ t(
|
|
1459
|
+
actions: m ? /* @__PURE__ */ g(B, { variant: "solid", onClick: n, children: [
|
|
1460
|
+
/* @__PURE__ */ t(Bt, { size: 16, "aria-hidden": !0 }),
|
|
1206
1461
|
i("imports.start")
|
|
1207
1462
|
] }) : void 0,
|
|
1208
|
-
children:
|
|
1463
|
+
children: u.isError ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ g(_, { children: [
|
|
1209
1464
|
/* @__PURE__ */ t(
|
|
1210
|
-
|
|
1465
|
+
ne,
|
|
1211
1466
|
{
|
|
1212
|
-
columns:
|
|
1213
|
-
data:
|
|
1214
|
-
loading:
|
|
1467
|
+
columns: r,
|
|
1468
|
+
data: o,
|
|
1469
|
+
loading: u.isPending,
|
|
1215
1470
|
getRowId: (a) => a.id,
|
|
1216
1471
|
emptyState: i("imports.empty")
|
|
1217
1472
|
}
|
|
1218
1473
|
),
|
|
1219
|
-
|
|
1220
|
-
|
|
1474
|
+
u.hasNextPage ? /* @__PURE__ */ t(Et, { py: "4", children: /* @__PURE__ */ t(
|
|
1475
|
+
B,
|
|
1221
1476
|
{
|
|
1222
1477
|
variant: "outline",
|
|
1223
|
-
loading:
|
|
1478
|
+
loading: u.isFetchingNextPage,
|
|
1224
1479
|
onClick: () => {
|
|
1225
|
-
|
|
1480
|
+
u.fetchNextPage();
|
|
1226
1481
|
},
|
|
1227
1482
|
children: i("imports.loadMore")
|
|
1228
1483
|
}
|
|
@@ -1231,15 +1486,15 @@ function Hn({
|
|
|
1231
1486
|
}
|
|
1232
1487
|
);
|
|
1233
1488
|
}
|
|
1234
|
-
function
|
|
1235
|
-
return /* @__PURE__ */ t(
|
|
1489
|
+
function oi({ client: e, id: n, onDeleted: l }) {
|
|
1490
|
+
return /* @__PURE__ */ t(Gn, { client: e, id: n, onDeleted: l });
|
|
1236
1491
|
}
|
|
1237
|
-
function
|
|
1238
|
-
const { t: e } =
|
|
1239
|
-
return
|
|
1240
|
-
/* @__PURE__ */ t(
|
|
1492
|
+
function hl() {
|
|
1493
|
+
const { t: e } = R(I), { blueprints: n } = K();
|
|
1494
|
+
return n ? /* @__PURE__ */ t(Rl, {}) : /* @__PURE__ */ g(_, { children: [
|
|
1495
|
+
/* @__PURE__ */ t(T, { name: "blueprintId", label: e("mappings.blueprintId"), required: !0 }),
|
|
1241
1496
|
/* @__PURE__ */ t(
|
|
1242
|
-
|
|
1497
|
+
T,
|
|
1243
1498
|
{
|
|
1244
1499
|
name: "blueprintReleaseId",
|
|
1245
1500
|
label: e("mappings.releaseId"),
|
|
@@ -1249,217 +1504,217 @@ function nn() {
|
|
|
1249
1504
|
)
|
|
1250
1505
|
] });
|
|
1251
1506
|
}
|
|
1252
|
-
function
|
|
1253
|
-
const { t: e } =
|
|
1254
|
-
|
|
1255
|
-
m.current !==
|
|
1256
|
-
}, [
|
|
1257
|
-
const
|
|
1258
|
-
queryKey: h.blueprints(
|
|
1259
|
-
queryFn: () =>
|
|
1260
|
-
}),
|
|
1261
|
-
queryKey: h.blueprintReleases(
|
|
1262
|
-
queryFn: () =>
|
|
1263
|
-
enabled: !!
|
|
1507
|
+
function Rl() {
|
|
1508
|
+
const { t: e } = R(I), { blueprints: n } = K(), { workspaceId: l } = W(), { control: i, setValue: c } = Kt(), s = he({ control: i, name: "blueprintId" }), m = Ft(s);
|
|
1509
|
+
j(() => {
|
|
1510
|
+
m.current !== s && c("blueprintReleaseId", ""), m.current = s;
|
|
1511
|
+
}, [s, c]);
|
|
1512
|
+
const p = C({
|
|
1513
|
+
queryKey: h.blueprints(l),
|
|
1514
|
+
queryFn: () => n?.listBlueprints() ?? Promise.resolve([])
|
|
1515
|
+
}), u = C({
|
|
1516
|
+
queryKey: h.blueprintReleases(l, s ?? ""),
|
|
1517
|
+
queryFn: () => n?.listReleases(s) ?? Promise.resolve([]),
|
|
1518
|
+
enabled: !!s
|
|
1264
1519
|
});
|
|
1265
|
-
return /* @__PURE__ */
|
|
1520
|
+
return /* @__PURE__ */ g(_, { children: [
|
|
1266
1521
|
/* @__PURE__ */ t(
|
|
1267
|
-
|
|
1522
|
+
Je,
|
|
1268
1523
|
{
|
|
1269
1524
|
name: "blueprintId",
|
|
1270
1525
|
label: e("mappings.blueprint"),
|
|
1271
1526
|
required: !0,
|
|
1272
|
-
options: (
|
|
1527
|
+
options: (p.data ?? []).map((o) => ({ id: o.id, label: o.name }))
|
|
1273
1528
|
}
|
|
1274
1529
|
),
|
|
1275
1530
|
/* @__PURE__ */ t(
|
|
1276
|
-
|
|
1531
|
+
Je,
|
|
1277
1532
|
{
|
|
1278
1533
|
name: "blueprintReleaseId",
|
|
1279
1534
|
label: e("mappings.release"),
|
|
1280
1535
|
required: !0,
|
|
1281
|
-
disabled: !
|
|
1282
|
-
options: (
|
|
1536
|
+
disabled: !s,
|
|
1537
|
+
options: (u.data ?? []).map((o) => ({ id: o.id, label: o.label }))
|
|
1283
1538
|
}
|
|
1284
1539
|
)
|
|
1285
1540
|
] });
|
|
1286
1541
|
}
|
|
1287
|
-
const
|
|
1288
|
-
function
|
|
1289
|
-
const { t:
|
|
1542
|
+
const Il = { blueprintId: "", blueprintReleaseId: "" };
|
|
1543
|
+
function ri({ client: e, onOpen: n }) {
|
|
1544
|
+
const { t: l } = R(I), { workspaceId: i } = W(), { paths: c } = K(), s = Ve(), m = P(), [p, u] = F(!1), o = C({
|
|
1290
1545
|
queryKey: h.mappings(i),
|
|
1291
1546
|
queryFn: () => e.listMappings()
|
|
1292
|
-
}),
|
|
1547
|
+
}), r = Zn((o.data ?? []).map((d) => d.content.blueprintId)), a = k(
|
|
1293
1548
|
() => [
|
|
1294
1549
|
{
|
|
1295
1550
|
id: "name",
|
|
1296
|
-
header:
|
|
1297
|
-
cell: (
|
|
1298
|
-
|
|
1551
|
+
header: l("fields.name"),
|
|
1552
|
+
cell: (d) => /* @__PURE__ */ t(
|
|
1553
|
+
we,
|
|
1299
1554
|
{
|
|
1300
|
-
to:
|
|
1301
|
-
label:
|
|
1555
|
+
to: de(c, "mappings", d.row.original.id),
|
|
1556
|
+
label: d.row.original.content.name
|
|
1302
1557
|
}
|
|
1303
1558
|
)
|
|
1304
1559
|
},
|
|
1305
|
-
|
|
1560
|
+
r.available ? {
|
|
1306
1561
|
id: "blueprint",
|
|
1307
|
-
header:
|
|
1308
|
-
cell: (
|
|
1309
|
-
|
|
1562
|
+
header: l("mappings.blueprint"),
|
|
1563
|
+
cell: (d) => /* @__PURE__ */ t(
|
|
1564
|
+
w,
|
|
1310
1565
|
{
|
|
1311
|
-
value:
|
|
1566
|
+
value: r.blueprintName(d.row.original.content.blueprintId) ?? ""
|
|
1312
1567
|
}
|
|
1313
1568
|
)
|
|
1314
1569
|
} : {
|
|
1315
1570
|
id: "blueprint",
|
|
1316
|
-
header:
|
|
1317
|
-
cell: (
|
|
1571
|
+
header: l("mappings.blueprintId"),
|
|
1572
|
+
cell: (d) => /* @__PURE__ */ t(ve, { value: d.row.original.content.blueprintId })
|
|
1318
1573
|
},
|
|
1319
|
-
|
|
1574
|
+
r.available ? {
|
|
1320
1575
|
id: "release",
|
|
1321
|
-
header:
|
|
1322
|
-
cell: (
|
|
1323
|
-
|
|
1576
|
+
header: l("mappings.release"),
|
|
1577
|
+
cell: (d) => /* @__PURE__ */ t(
|
|
1578
|
+
w,
|
|
1324
1579
|
{
|
|
1325
|
-
value:
|
|
1326
|
-
|
|
1327
|
-
|
|
1580
|
+
value: r.releaseLabel(
|
|
1581
|
+
d.row.original.content.blueprintId,
|
|
1582
|
+
d.row.original.content.blueprintReleaseId
|
|
1328
1583
|
) ?? ""
|
|
1329
1584
|
}
|
|
1330
1585
|
)
|
|
1331
1586
|
} : {
|
|
1332
1587
|
id: "release",
|
|
1333
|
-
header:
|
|
1334
|
-
cell: (
|
|
1588
|
+
header: l("mappings.releaseId"),
|
|
1589
|
+
cell: (d) => /* @__PURE__ */ t(ve, { value: d.row.original.content.blueprintReleaseId })
|
|
1335
1590
|
},
|
|
1336
1591
|
{
|
|
1337
1592
|
id: "validity",
|
|
1338
|
-
header:
|
|
1339
|
-
cell: (
|
|
1593
|
+
header: l("validity.column"),
|
|
1594
|
+
cell: (d) => /* @__PURE__ */ t(et, { validity: d.row.original.validity })
|
|
1340
1595
|
}
|
|
1341
1596
|
],
|
|
1342
|
-
[
|
|
1597
|
+
[l, c, r]
|
|
1343
1598
|
);
|
|
1344
|
-
return /* @__PURE__ */
|
|
1345
|
-
|
|
1599
|
+
return /* @__PURE__ */ g(
|
|
1600
|
+
ee,
|
|
1346
1601
|
{
|
|
1347
|
-
title:
|
|
1348
|
-
actions:
|
|
1349
|
-
/* @__PURE__ */ t(
|
|
1350
|
-
|
|
1602
|
+
title: l("section.mappings.title"),
|
|
1603
|
+
actions: s ? /* @__PURE__ */ g(B, { variant: "solid", onClick: () => u(!0), children: [
|
|
1604
|
+
/* @__PURE__ */ t(se, { size: 16, "aria-hidden": !0 }),
|
|
1605
|
+
l("mappings.new")
|
|
1351
1606
|
] }) : void 0,
|
|
1352
1607
|
children: [
|
|
1353
|
-
|
|
1354
|
-
|
|
1608
|
+
o.isError ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ t(
|
|
1609
|
+
ne,
|
|
1355
1610
|
{
|
|
1356
1611
|
columns: a,
|
|
1357
|
-
data:
|
|
1358
|
-
loading:
|
|
1359
|
-
getRowId: (
|
|
1360
|
-
emptyState:
|
|
1612
|
+
data: o.data ?? [],
|
|
1613
|
+
loading: o.isPending,
|
|
1614
|
+
getRowId: (d) => d.id,
|
|
1615
|
+
emptyState: l("mappings.empty")
|
|
1361
1616
|
}
|
|
1362
1617
|
),
|
|
1363
1618
|
/* @__PURE__ */ t(
|
|
1364
|
-
|
|
1619
|
+
rt,
|
|
1365
1620
|
{
|
|
1366
|
-
open:
|
|
1367
|
-
onClose: () =>
|
|
1368
|
-
title:
|
|
1369
|
-
defaultValues:
|
|
1370
|
-
onCreate: async ({ name:
|
|
1371
|
-
const
|
|
1372
|
-
name:
|
|
1373
|
-
description:
|
|
1374
|
-
blueprintId:
|
|
1375
|
-
blueprintReleaseId:
|
|
1621
|
+
open: p,
|
|
1622
|
+
onClose: () => u(!1),
|
|
1623
|
+
title: l("mappings.new"),
|
|
1624
|
+
defaultValues: Il,
|
|
1625
|
+
onCreate: async ({ name: d, description: b, blueprintId: V, blueprintReleaseId: S }) => {
|
|
1626
|
+
const y = await e.createMapping({
|
|
1627
|
+
name: d,
|
|
1628
|
+
description: b,
|
|
1629
|
+
blueprintId: V ?? "",
|
|
1630
|
+
blueprintReleaseId: S ?? ""
|
|
1376
1631
|
});
|
|
1377
|
-
return await m.invalidateQueries({ queryKey: h.mappings(i) }),
|
|
1632
|
+
return await m.invalidateQueries({ queryKey: h.mappings(i) }), y.id;
|
|
1378
1633
|
},
|
|
1379
|
-
onCreated: (
|
|
1380
|
-
|
|
1634
|
+
onCreated: (d) => {
|
|
1635
|
+
u(!1), n(d);
|
|
1381
1636
|
},
|
|
1382
|
-
children: /* @__PURE__ */ t(
|
|
1637
|
+
children: /* @__PURE__ */ t(hl, {})
|
|
1383
1638
|
}
|
|
1384
1639
|
)
|
|
1385
1640
|
]
|
|
1386
1641
|
}
|
|
1387
1642
|
);
|
|
1388
1643
|
}
|
|
1389
|
-
function
|
|
1390
|
-
const { t:
|
|
1391
|
-
queryKey: h.processors(
|
|
1644
|
+
function ci({ client: e }) {
|
|
1645
|
+
const { t: n } = R(I), { workspaceId: l } = W(), i = C({
|
|
1646
|
+
queryKey: h.processors(l),
|
|
1392
1647
|
queryFn: () => e.listProcessors()
|
|
1393
|
-
}),
|
|
1648
|
+
}), c = k(
|
|
1394
1649
|
() => [
|
|
1395
1650
|
{
|
|
1396
1651
|
id: "name",
|
|
1397
|
-
header:
|
|
1652
|
+
header: n("fields.name"),
|
|
1398
1653
|
size: 180,
|
|
1399
|
-
cell: (
|
|
1654
|
+
cell: (s) => /* @__PURE__ */ t(Nt, { value: s.row.original.name })
|
|
1400
1655
|
},
|
|
1401
1656
|
{
|
|
1402
1657
|
id: "kind",
|
|
1403
|
-
header:
|
|
1658
|
+
header: n("processors.kindColumn"),
|
|
1404
1659
|
size: 140,
|
|
1405
|
-
cell: (
|
|
1660
|
+
cell: (s) => /* @__PURE__ */ t(w, { value: n(`processors.kind.${s.row.original.kind}`) })
|
|
1406
1661
|
},
|
|
1407
1662
|
{
|
|
1408
1663
|
id: "target",
|
|
1409
|
-
header:
|
|
1664
|
+
header: n("processors.targetColumn"),
|
|
1410
1665
|
size: 160,
|
|
1411
|
-
cell: (
|
|
1666
|
+
cell: (s) => /* @__PURE__ */ t(w, { value: n(`processors.target.${s.row.original.target}`) })
|
|
1412
1667
|
},
|
|
1413
1668
|
{
|
|
1414
1669
|
id: "description",
|
|
1415
|
-
header:
|
|
1416
|
-
cell: (
|
|
1670
|
+
header: n("fields.description"),
|
|
1671
|
+
cell: (s) => /* @__PURE__ */ t(w, { value: s.row.original.description })
|
|
1417
1672
|
},
|
|
1418
1673
|
{
|
|
1419
1674
|
id: "settings",
|
|
1420
|
-
header:
|
|
1421
|
-
cell: (
|
|
1422
|
-
|
|
1675
|
+
header: n("processors.settingsColumn"),
|
|
1676
|
+
cell: (s) => /* @__PURE__ */ t(
|
|
1677
|
+
w,
|
|
1423
1678
|
{
|
|
1424
|
-
value:
|
|
1679
|
+
value: s.row.original.settingsSpec.length === 0 ? n("processors.noSettings") : s.row.original.settingsSpec.map((m) => m.config.name || m.config.api_accessor).join(", ")
|
|
1425
1680
|
}
|
|
1426
1681
|
)
|
|
1427
1682
|
}
|
|
1428
1683
|
],
|
|
1429
|
-
[
|
|
1684
|
+
[n]
|
|
1430
1685
|
);
|
|
1431
|
-
return /* @__PURE__ */ t(
|
|
1432
|
-
|
|
1686
|
+
return /* @__PURE__ */ t(ee, { title: n("section.processors.title"), children: i.isError ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ t(
|
|
1687
|
+
ne,
|
|
1433
1688
|
{
|
|
1434
|
-
columns:
|
|
1689
|
+
columns: c,
|
|
1435
1690
|
data: i.data ?? [],
|
|
1436
1691
|
loading: i.isPending,
|
|
1437
|
-
getRowId: (
|
|
1438
|
-
emptyState:
|
|
1692
|
+
getRowId: (s) => s.name,
|
|
1693
|
+
emptyState: n("processors.empty")
|
|
1439
1694
|
}
|
|
1440
1695
|
) });
|
|
1441
1696
|
}
|
|
1442
|
-
function
|
|
1443
|
-
const i = [...e], [
|
|
1444
|
-
return i.splice(
|
|
1697
|
+
function At(e, n, l) {
|
|
1698
|
+
const i = [...e], [c] = i.splice(n, 1);
|
|
1699
|
+
return i.splice(l, 0, c), i;
|
|
1445
1700
|
}
|
|
1446
|
-
function
|
|
1701
|
+
function jt({
|
|
1447
1702
|
items: e,
|
|
1448
|
-
renderItem:
|
|
1449
|
-
nameOf:
|
|
1703
|
+
renderItem: n,
|
|
1704
|
+
nameOf: l,
|
|
1450
1705
|
editable: i,
|
|
1451
|
-
onChange:
|
|
1452
|
-
emptyLabel:
|
|
1706
|
+
onChange: c,
|
|
1707
|
+
emptyLabel: s,
|
|
1453
1708
|
addLabel: m,
|
|
1454
|
-
addOptions:
|
|
1455
|
-
onAdd:
|
|
1709
|
+
addOptions: p,
|
|
1710
|
+
onAdd: u
|
|
1456
1711
|
}) {
|
|
1457
|
-
const { t:
|
|
1458
|
-
return /* @__PURE__ */
|
|
1459
|
-
e.length === 0 ? /* @__PURE__ */ t(Q, { color: "fg.muted", children:
|
|
1460
|
-
const
|
|
1461
|
-
return /* @__PURE__ */
|
|
1462
|
-
|
|
1712
|
+
const { t: o } = R(I);
|
|
1713
|
+
return /* @__PURE__ */ g(X, { gap: "2", children: [
|
|
1714
|
+
e.length === 0 ? /* @__PURE__ */ t(Q, { color: "fg.muted", children: s }) : /* @__PURE__ */ t(X, { as: "ol", gap: "0", listStyleType: "none", ms: "0", children: e.map((r, a) => {
|
|
1715
|
+
const d = l(r);
|
|
1716
|
+
return /* @__PURE__ */ g(
|
|
1717
|
+
D,
|
|
1463
1718
|
{
|
|
1464
1719
|
as: "li",
|
|
1465
1720
|
gap: "3",
|
|
@@ -1468,43 +1723,43 @@ function Ht({
|
|
|
1468
1723
|
borderColor: "border",
|
|
1469
1724
|
align: "start",
|
|
1470
1725
|
children: [
|
|
1471
|
-
/* @__PURE__ */
|
|
1726
|
+
/* @__PURE__ */ g(Q, { color: "fg.muted", minW: "6", textAlign: "end", children: [
|
|
1472
1727
|
a + 1,
|
|
1473
1728
|
"."
|
|
1474
1729
|
] }),
|
|
1475
|
-
/* @__PURE__ */ t(
|
|
1476
|
-
i ? /* @__PURE__ */
|
|
1730
|
+
/* @__PURE__ */ t(H, { flex: "1", minW: "0", children: n(r, a) }),
|
|
1731
|
+
i ? /* @__PURE__ */ g(D, { gap: "1", children: [
|
|
1477
1732
|
/* @__PURE__ */ t(
|
|
1478
|
-
|
|
1733
|
+
We,
|
|
1479
1734
|
{
|
|
1480
|
-
"aria-label":
|
|
1735
|
+
"aria-label": o("order.moveUp", { name: d }),
|
|
1481
1736
|
size: "xs",
|
|
1482
1737
|
variant: "ghost",
|
|
1483
1738
|
disabled: a === 0,
|
|
1484
|
-
onClick: () =>
|
|
1485
|
-
children: /* @__PURE__ */ t(
|
|
1739
|
+
onClick: () => c(At(e, a, a - 1)),
|
|
1740
|
+
children: /* @__PURE__ */ t(Rn, { size: 14 })
|
|
1486
1741
|
}
|
|
1487
1742
|
),
|
|
1488
1743
|
/* @__PURE__ */ t(
|
|
1489
|
-
|
|
1744
|
+
We,
|
|
1490
1745
|
{
|
|
1491
|
-
"aria-label":
|
|
1746
|
+
"aria-label": o("order.moveDown", { name: d }),
|
|
1492
1747
|
size: "xs",
|
|
1493
1748
|
variant: "ghost",
|
|
1494
1749
|
disabled: a === e.length - 1,
|
|
1495
|
-
onClick: () =>
|
|
1496
|
-
children: /* @__PURE__ */ t(
|
|
1750
|
+
onClick: () => c(At(e, a, a + 1)),
|
|
1751
|
+
children: /* @__PURE__ */ t(In, { size: 14 })
|
|
1497
1752
|
}
|
|
1498
1753
|
),
|
|
1499
1754
|
/* @__PURE__ */ t(
|
|
1500
|
-
|
|
1755
|
+
We,
|
|
1501
1756
|
{
|
|
1502
|
-
"aria-label":
|
|
1757
|
+
"aria-label": o("order.remove", { name: d }),
|
|
1503
1758
|
size: "xs",
|
|
1504
1759
|
variant: "ghost",
|
|
1505
1760
|
colorPalette: "red",
|
|
1506
|
-
onClick: () =>
|
|
1507
|
-
children: /* @__PURE__ */ t(
|
|
1761
|
+
onClick: () => c(e.filter((b, V) => V !== a)),
|
|
1762
|
+
children: /* @__PURE__ */ t(be, { size: 14 })
|
|
1508
1763
|
}
|
|
1509
1764
|
)
|
|
1510
1765
|
] }) : null
|
|
@@ -1513,169 +1768,169 @@ function Ht({
|
|
|
1513
1768
|
a
|
|
1514
1769
|
);
|
|
1515
1770
|
}) }),
|
|
1516
|
-
i ? /* @__PURE__ */ t(
|
|
1517
|
-
/* @__PURE__ */ t(
|
|
1518
|
-
/* @__PURE__ */ t(
|
|
1771
|
+
i ? /* @__PURE__ */ t(H, { children: /* @__PURE__ */ g(rn, { onSelect: (r) => u(r.value), children: [
|
|
1772
|
+
/* @__PURE__ */ t(cn, { asChild: !0, children: /* @__PURE__ */ g(B, { variant: "outline", size: "sm", disabled: p.length === 0, children: [
|
|
1773
|
+
/* @__PURE__ */ t(se, { size: 14, "aria-hidden": !0 }),
|
|
1519
1774
|
m
|
|
1520
1775
|
] }) }),
|
|
1521
|
-
/* @__PURE__ */ t(
|
|
1776
|
+
/* @__PURE__ */ t(sn, { children: p.map((r) => /* @__PURE__ */ t(dn, { value: r.value, children: r.label }, r.value)) })
|
|
1522
1777
|
] }) }) : null
|
|
1523
1778
|
] });
|
|
1524
1779
|
}
|
|
1525
|
-
const
|
|
1526
|
-
function
|
|
1780
|
+
const Sl = {};
|
|
1781
|
+
function Al({
|
|
1527
1782
|
open: e,
|
|
1528
|
-
onClose:
|
|
1529
|
-
processor:
|
|
1783
|
+
onClose: n,
|
|
1784
|
+
processor: l,
|
|
1530
1785
|
settings: i,
|
|
1531
|
-
readOnly:
|
|
1532
|
-
onApply:
|
|
1786
|
+
readOnly: c,
|
|
1787
|
+
onApply: s
|
|
1533
1788
|
}) {
|
|
1534
|
-
const { t: m } =
|
|
1535
|
-
|
|
1536
|
-
e &&
|
|
1537
|
-
}, [e, i,
|
|
1538
|
-
const a =
|
|
1789
|
+
const { t: m } = R(I), p = l?.settingsSpec ?? [], u = k(() => wn(Nn(p, pt)), [p]), o = me({ defaultValues: i, resolver: u }), { reset: r } = o;
|
|
1790
|
+
j(() => {
|
|
1791
|
+
e && r(i ?? Sl);
|
|
1792
|
+
}, [e, i, r]);
|
|
1793
|
+
const a = o.handleSubmit((d) => s(d));
|
|
1539
1794
|
return /* @__PURE__ */ t(
|
|
1540
|
-
|
|
1795
|
+
ye,
|
|
1541
1796
|
{
|
|
1542
1797
|
open: e,
|
|
1543
|
-
onClose:
|
|
1544
|
-
header: m("processors.settingsOf", { name:
|
|
1798
|
+
onClose: n,
|
|
1799
|
+
header: m("processors.settingsOf", { name: l?.name ?? "" }),
|
|
1545
1800
|
lazyMount: !0,
|
|
1546
1801
|
unmountOnExit: !0,
|
|
1547
|
-
cancelLabel: m(
|
|
1802
|
+
cancelLabel: m(c ? "common.close" : "common.cancel"),
|
|
1548
1803
|
saveLabel: m("common.apply"),
|
|
1549
|
-
onSave:
|
|
1804
|
+
onSave: c ? void 0 : () => {
|
|
1550
1805
|
a();
|
|
1551
1806
|
},
|
|
1552
|
-
children: /* @__PURE__ */ t(
|
|
1807
|
+
children: /* @__PURE__ */ t(pe, { ...o, children: /* @__PURE__ */ t(
|
|
1553
1808
|
"form",
|
|
1554
1809
|
{
|
|
1555
|
-
onSubmit: (
|
|
1556
|
-
|
|
1810
|
+
onSubmit: (d) => {
|
|
1811
|
+
d.preventDefault(), a();
|
|
1557
1812
|
},
|
|
1558
|
-
children: /* @__PURE__ */ t(
|
|
1813
|
+
children: /* @__PURE__ */ t(Yn, { plugins: pt, children: c ? /* @__PURE__ */ t(mt, { schema: p, mode: "read", values: i }) : /* @__PURE__ */ t(mt, { schema: p }) })
|
|
1559
1814
|
}
|
|
1560
1815
|
) })
|
|
1561
1816
|
}
|
|
1562
1817
|
);
|
|
1563
1818
|
}
|
|
1564
|
-
const
|
|
1819
|
+
const Xe = (e) => ({
|
|
1565
1820
|
...e,
|
|
1566
1821
|
entitySetId: e.entitySetId || null
|
|
1567
|
-
}),
|
|
1822
|
+
}), Gl = (e) => ({
|
|
1568
1823
|
...e,
|
|
1569
1824
|
entitySetId: e.entitySetId ?? ""
|
|
1570
1825
|
});
|
|
1571
|
-
function
|
|
1572
|
-
const { t: i } =
|
|
1573
|
-
queryKey: h.importProfile(
|
|
1574
|
-
queryFn: () => e.getImportProfile(
|
|
1826
|
+
function si({ client: e, id: n, onDeleted: l }) {
|
|
1827
|
+
const { t: i } = R(I), { workspaceId: c } = W(), s = C({
|
|
1828
|
+
queryKey: h.importProfile(c, n),
|
|
1829
|
+
queryFn: () => e.getImportProfile(n)
|
|
1575
1830
|
});
|
|
1576
|
-
return
|
|
1831
|
+
return s.isError ? /* @__PURE__ */ t(L, { title: i("section.profiles.title"), children: /* @__PURE__ */ t(z, {}) }) : s.data ? /* @__PURE__ */ t(Zl, { client: e, profile: s.data, onDeleted: l }) : /* @__PURE__ */ t(L, { title: i("section.profiles.title"), children: /* @__PURE__ */ t(ge, {}) });
|
|
1577
1832
|
}
|
|
1578
|
-
function
|
|
1833
|
+
function Zl({
|
|
1579
1834
|
client: e,
|
|
1580
|
-
profile:
|
|
1581
|
-
onDeleted:
|
|
1835
|
+
profile: n,
|
|
1836
|
+
onDeleted: l
|
|
1582
1837
|
}) {
|
|
1583
|
-
const { t: i } =
|
|
1584
|
-
queryKey: h.processors(
|
|
1838
|
+
const { t: i } = R(I), { workspaceId: c } = W(), { paths: s } = K(), m = Ve(), p = P(), [u, o] = F(!1), r = C({
|
|
1839
|
+
queryKey: h.processors(c),
|
|
1585
1840
|
queryFn: () => e.listProcessors()
|
|
1586
|
-
}), a =
|
|
1587
|
-
queryKey: h.mappings(
|
|
1841
|
+
}), a = C({
|
|
1842
|
+
queryKey: h.mappings(c),
|
|
1588
1843
|
queryFn: () => e.listMappings()
|
|
1589
|
-
}),
|
|
1590
|
-
queryKey: h.entitySets(
|
|
1844
|
+
}), d = C({
|
|
1845
|
+
queryKey: h.entitySets(c),
|
|
1591
1846
|
queryFn: () => e.listEntitySets()
|
|
1592
|
-
}),
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
}, [
|
|
1596
|
-
const
|
|
1597
|
-
mutationFn: (E) => e.updateImportProfile(
|
|
1847
|
+
}), b = me({ defaultValues: Xe(n.content) }), { reset: V, formState: S } = b;
|
|
1848
|
+
j(() => {
|
|
1849
|
+
S.isDirty || V(Xe(n.content));
|
|
1850
|
+
}, [n, V, S.isDirty]);
|
|
1851
|
+
const y = te({
|
|
1852
|
+
mutationFn: (E) => e.updateImportProfile(n.id, Gl(E), n.state.draftRevisionId),
|
|
1598
1853
|
onSuccess: (E) => {
|
|
1599
|
-
|
|
1854
|
+
p.setQueryData(h.importProfile(c, E.id), E), V(Xe(E.content)), p.invalidateQueries({ queryKey: h.importProfiles(c) });
|
|
1600
1855
|
}
|
|
1601
|
-
}),
|
|
1856
|
+
}), M = b.handleSubmit((E) => y.mutate(E)), G = he({ control: b.control, name: "name" }), [v, Z] = Wt(), J = ft({
|
|
1602
1857
|
client: e,
|
|
1603
1858
|
kind: "importProfile",
|
|
1604
|
-
id:
|
|
1605
|
-
validity:
|
|
1606
|
-
state:
|
|
1607
|
-
unsaved:
|
|
1859
|
+
id: n.id,
|
|
1860
|
+
validity: n.validity,
|
|
1861
|
+
state: n.state,
|
|
1862
|
+
unsaved: S.isDirty
|
|
1608
1863
|
});
|
|
1609
|
-
return
|
|
1610
|
-
m ? /* @__PURE__ */
|
|
1611
|
-
/* @__PURE__ */ t(
|
|
1612
|
-
/* @__PURE__ */
|
|
1613
|
-
|
|
1864
|
+
return nt(
|
|
1865
|
+
m ? /* @__PURE__ */ g(x, { storageKey: "importhub.profile.rail", children: [
|
|
1866
|
+
/* @__PURE__ */ t(x.Header, { title: i("rail.title") }),
|
|
1867
|
+
/* @__PURE__ */ g(x.Section, { id: "actions", label: i("rail.actions"), children: [
|
|
1868
|
+
J.railAction,
|
|
1614
1869
|
/* @__PURE__ */ t(
|
|
1615
|
-
|
|
1870
|
+
x.IconButton,
|
|
1616
1871
|
{
|
|
1617
1872
|
label: i("profiles.delete"),
|
|
1618
|
-
icon: /* @__PURE__ */ t(
|
|
1873
|
+
icon: /* @__PURE__ */ t(be, { size: 16 }),
|
|
1619
1874
|
tone: "outline-red",
|
|
1620
|
-
onClick: () =>
|
|
1875
|
+
onClick: () => o(!0)
|
|
1621
1876
|
}
|
|
1622
1877
|
)
|
|
1623
1878
|
] })
|
|
1624
1879
|
] }) : null
|
|
1625
|
-
), /* @__PURE__ */
|
|
1626
|
-
|
|
1880
|
+
), /* @__PURE__ */ g(
|
|
1881
|
+
L,
|
|
1627
1882
|
{
|
|
1628
|
-
title:
|
|
1629
|
-
breadcrumbs: [{ label: i("section.profiles.title"), to:
|
|
1630
|
-
badges: /* @__PURE__ */
|
|
1883
|
+
title: n.content.name,
|
|
1884
|
+
breadcrumbs: [{ label: i("section.profiles.title"), to: s.profiles }],
|
|
1885
|
+
badges: /* @__PURE__ */ g(D, { gap: "2", children: [
|
|
1631
1886
|
/* @__PURE__ */ t(
|
|
1632
|
-
|
|
1887
|
+
Ue,
|
|
1633
1888
|
{
|
|
1634
|
-
tone:
|
|
1635
|
-
label:
|
|
1889
|
+
tone: n.validity.valid ? "success" : "danger",
|
|
1890
|
+
label: n.validity.valid ? i("validity.valid") : i("validity.invalid")
|
|
1636
1891
|
}
|
|
1637
1892
|
),
|
|
1638
|
-
/* @__PURE__ */ t(
|
|
1893
|
+
/* @__PURE__ */ t(Ut, { state: n.state })
|
|
1639
1894
|
] }),
|
|
1640
1895
|
tabs: Z,
|
|
1641
1896
|
actions: m ? /* @__PURE__ */ t(
|
|
1642
|
-
|
|
1897
|
+
B,
|
|
1643
1898
|
{
|
|
1644
1899
|
variant: "solid",
|
|
1645
|
-
disabled: !
|
|
1646
|
-
loading:
|
|
1900
|
+
disabled: !S.isDirty,
|
|
1901
|
+
loading: y.isPending,
|
|
1647
1902
|
onClick: () => {
|
|
1648
|
-
|
|
1903
|
+
M();
|
|
1649
1904
|
},
|
|
1650
1905
|
children: i("common.save")
|
|
1651
1906
|
}
|
|
1652
1907
|
) : void 0,
|
|
1653
1908
|
children: [
|
|
1654
|
-
|
|
1655
|
-
|
|
1909
|
+
v === "history" ? /* @__PURE__ */ t(
|
|
1910
|
+
vt,
|
|
1656
1911
|
{
|
|
1657
1912
|
client: e,
|
|
1658
1913
|
kind: "importProfile",
|
|
1659
|
-
id:
|
|
1660
|
-
draftRevisionId:
|
|
1914
|
+
id: n.id,
|
|
1915
|
+
draftRevisionId: n.state.draftRevisionId,
|
|
1661
1916
|
onRestored: async () => {
|
|
1662
|
-
const E = await e.getImportProfile(
|
|
1663
|
-
|
|
1917
|
+
const E = await e.getImportProfile(n.id);
|
|
1918
|
+
p.setQueryData(h.importProfile(c, E.id), E), V(Xe(E.content));
|
|
1664
1919
|
}
|
|
1665
1920
|
}
|
|
1666
|
-
) : /* @__PURE__ */ t(
|
|
1921
|
+
) : /* @__PURE__ */ t(H, { px: "8", py: "6", children: r.isPending || a.isPending || d.isPending ? /* @__PURE__ */ t(ge, {}) : /* @__PURE__ */ t(pe, { ...b, children: /* @__PURE__ */ t(
|
|
1667
1922
|
"form",
|
|
1668
1923
|
{
|
|
1669
1924
|
onSubmit: (E) => {
|
|
1670
|
-
E.preventDefault(), m &&
|
|
1925
|
+
E.preventDefault(), m && M();
|
|
1671
1926
|
},
|
|
1672
|
-
children: /* @__PURE__ */
|
|
1673
|
-
|
|
1674
|
-
/* @__PURE__ */ t(
|
|
1675
|
-
|
|
1676
|
-
/* @__PURE__ */ t(
|
|
1927
|
+
children: /* @__PURE__ */ g(X, { gap: "4", children: [
|
|
1928
|
+
J.notice,
|
|
1929
|
+
/* @__PURE__ */ t(Jt, { validity: n.validity }),
|
|
1930
|
+
y.isError ? /* @__PURE__ */ t(f, { status: "error", colorPalette: "danger", title: i("save.failed"), children: y.error.message }) : null,
|
|
1931
|
+
/* @__PURE__ */ t(N, { title: i("profiles.general"), children: /* @__PURE__ */ g(X, { gap: "4", children: [
|
|
1677
1932
|
/* @__PURE__ */ t(
|
|
1678
|
-
|
|
1933
|
+
T,
|
|
1679
1934
|
{
|
|
1680
1935
|
name: "name",
|
|
1681
1936
|
label: i("fields.name"),
|
|
@@ -1684,7 +1939,7 @@ function dn({
|
|
|
1684
1939
|
}
|
|
1685
1940
|
),
|
|
1686
1941
|
/* @__PURE__ */ t(
|
|
1687
|
-
|
|
1942
|
+
lt,
|
|
1688
1943
|
{
|
|
1689
1944
|
name: "description",
|
|
1690
1945
|
label: i("fields.description"),
|
|
@@ -1692,13 +1947,13 @@ function dn({
|
|
|
1692
1947
|
}
|
|
1693
1948
|
),
|
|
1694
1949
|
/* @__PURE__ */ t(
|
|
1695
|
-
|
|
1950
|
+
Je,
|
|
1696
1951
|
{
|
|
1697
1952
|
name: "entitySetId",
|
|
1698
1953
|
label: i("profiles.entitySet"),
|
|
1699
1954
|
helperText: i("profiles.entitySetHelp"),
|
|
1700
1955
|
placeholder: i("profiles.noEntitySet"),
|
|
1701
|
-
options: (
|
|
1956
|
+
options: (d.data ?? []).map((E) => ({
|
|
1702
1957
|
id: E.id,
|
|
1703
1958
|
label: E.content.name
|
|
1704
1959
|
})),
|
|
@@ -1706,7 +1961,7 @@ function dn({
|
|
|
1706
1961
|
}
|
|
1707
1962
|
),
|
|
1708
1963
|
/* @__PURE__ */ t(
|
|
1709
|
-
|
|
1964
|
+
dt,
|
|
1710
1965
|
{
|
|
1711
1966
|
name: "autoPublish",
|
|
1712
1967
|
label: i("profiles.autoPublish"),
|
|
@@ -1715,7 +1970,7 @@ function dn({
|
|
|
1715
1970
|
}
|
|
1716
1971
|
),
|
|
1717
1972
|
/* @__PURE__ */ t(
|
|
1718
|
-
|
|
1973
|
+
dt,
|
|
1719
1974
|
{
|
|
1720
1975
|
name: "deleteSourceFileOnSuccess",
|
|
1721
1976
|
label: i("profiles.deleteOnSuccess"),
|
|
@@ -1724,17 +1979,17 @@ function dn({
|
|
|
1724
1979
|
}
|
|
1725
1980
|
)
|
|
1726
1981
|
] }) }),
|
|
1727
|
-
/* @__PURE__ */ t(
|
|
1728
|
-
|
|
1982
|
+
/* @__PURE__ */ t(N, { title: i("profiles.preprocessors"), children: /* @__PURE__ */ t(
|
|
1983
|
+
Gt,
|
|
1729
1984
|
{
|
|
1730
1985
|
name: "preprocessors",
|
|
1731
1986
|
kind: "preprocessor",
|
|
1732
|
-
catalogue:
|
|
1987
|
+
catalogue: r.data ?? [],
|
|
1733
1988
|
editable: m
|
|
1734
1989
|
}
|
|
1735
1990
|
) }),
|
|
1736
|
-
/* @__PURE__ */ t(
|
|
1737
|
-
|
|
1991
|
+
/* @__PURE__ */ t(N, { title: i("profiles.mappings"), children: /* @__PURE__ */ t(
|
|
1992
|
+
Xl,
|
|
1738
1993
|
{
|
|
1739
1994
|
mappings: (a.data ?? []).map((E) => ({
|
|
1740
1995
|
id: E.id,
|
|
@@ -1742,36 +1997,36 @@ function dn({
|
|
|
1742
1997
|
valid: E.validity.valid
|
|
1743
1998
|
})),
|
|
1744
1999
|
editable: m,
|
|
1745
|
-
hrefOf: (E) =>
|
|
2000
|
+
hrefOf: (E) => de(s, "mappings", E)
|
|
1746
2001
|
}
|
|
1747
2002
|
) }),
|
|
1748
|
-
/* @__PURE__ */ t(
|
|
1749
|
-
|
|
2003
|
+
/* @__PURE__ */ t(N, { title: i("profiles.postProcessors"), children: /* @__PURE__ */ t(
|
|
2004
|
+
Gt,
|
|
1750
2005
|
{
|
|
1751
2006
|
name: "postProcessors",
|
|
1752
2007
|
kind: "post_processor",
|
|
1753
|
-
catalogue:
|
|
2008
|
+
catalogue: r.data ?? [],
|
|
1754
2009
|
editable: m
|
|
1755
2010
|
}
|
|
1756
2011
|
) })
|
|
1757
2012
|
] })
|
|
1758
2013
|
}
|
|
1759
2014
|
) }) }),
|
|
1760
|
-
|
|
2015
|
+
J.dialog,
|
|
1761
2016
|
/* @__PURE__ */ t(
|
|
1762
|
-
|
|
2017
|
+
Ct,
|
|
1763
2018
|
{
|
|
1764
|
-
open:
|
|
1765
|
-
onClose: () =>
|
|
1766
|
-
title: i("profiles.deleteTitle", { name: G ||
|
|
2019
|
+
open: u,
|
|
2020
|
+
onClose: () => o(!1),
|
|
2021
|
+
title: i("profiles.deleteTitle", { name: G || n.content.name }),
|
|
1767
2022
|
message: i("profiles.deleteMessage"),
|
|
1768
|
-
onDelete: () => e.deleteImportProfile(
|
|
2023
|
+
onDelete: () => e.deleteImportProfile(n.id),
|
|
1769
2024
|
onDeleted: () => {
|
|
1770
|
-
|
|
1771
|
-
queryKey: h.importProfile(
|
|
1772
|
-
}),
|
|
1773
|
-
queryKey: h.importProfiles(
|
|
1774
|
-
}),
|
|
2025
|
+
o(!1), p.removeQueries({
|
|
2026
|
+
queryKey: h.importProfile(c, n.id)
|
|
2027
|
+
}), p.invalidateQueries({
|
|
2028
|
+
queryKey: h.importProfiles(c)
|
|
2029
|
+
}), l();
|
|
1775
2030
|
}
|
|
1776
2031
|
}
|
|
1777
2032
|
)
|
|
@@ -1779,50 +2034,50 @@ function dn({
|
|
|
1779
2034
|
}
|
|
1780
2035
|
);
|
|
1781
2036
|
}
|
|
1782
|
-
function
|
|
2037
|
+
function Gt({
|
|
1783
2038
|
name: e,
|
|
1784
|
-
kind:
|
|
1785
|
-
catalogue:
|
|
2039
|
+
kind: n,
|
|
2040
|
+
catalogue: l,
|
|
1786
2041
|
editable: i
|
|
1787
2042
|
}) {
|
|
1788
|
-
const { t:
|
|
1789
|
-
return /* @__PURE__ */
|
|
2043
|
+
const { t: c } = R(I), { control: s, setValue: m } = Ot(), p = he({ control: s, name: e }) ?? [], [u, o] = F(null), r = (V) => m(e, V, { shouldDirty: !0 }), a = (V) => l.find((S) => S.name === V.processor), d = u === null ? void 0 : p[u], b = l.filter((V) => V.kind === n && V.target === "source_file");
|
|
2044
|
+
return /* @__PURE__ */ g(_, { children: [
|
|
1790
2045
|
/* @__PURE__ */ t(
|
|
1791
|
-
|
|
2046
|
+
jt,
|
|
1792
2047
|
{
|
|
1793
|
-
items:
|
|
1794
|
-
nameOf: (
|
|
2048
|
+
items: p,
|
|
2049
|
+
nameOf: (V) => V.processor,
|
|
1795
2050
|
editable: i,
|
|
1796
|
-
onChange:
|
|
1797
|
-
emptyLabel:
|
|
1798
|
-
|
|
2051
|
+
onChange: r,
|
|
2052
|
+
emptyLabel: c(
|
|
2053
|
+
n === "preprocessor" ? "profiles.noPreprocessors" : "profiles.noPostProcessors"
|
|
1799
2054
|
),
|
|
1800
|
-
addLabel:
|
|
1801
|
-
|
|
2055
|
+
addLabel: c(
|
|
2056
|
+
n === "preprocessor" ? "profiles.addPreprocessor" : "profiles.addPostProcessor"
|
|
1802
2057
|
),
|
|
1803
|
-
addOptions:
|
|
1804
|
-
onAdd: (
|
|
1805
|
-
|
|
2058
|
+
addOptions: b.map((V) => ({ value: V.name, label: V.name })),
|
|
2059
|
+
onAdd: (V) => {
|
|
2060
|
+
r([...p, { processor: V, settings: {} }]), (b.find((S) => S.name === V)?.settingsSpec.length ?? 0) > 0 && o(p.length);
|
|
1806
2061
|
},
|
|
1807
|
-
renderItem: (
|
|
1808
|
-
const
|
|
1809
|
-
return /* @__PURE__ */
|
|
1810
|
-
/* @__PURE__ */
|
|
1811
|
-
/* @__PURE__ */ t(Q, { fontFamily: "mono", fontSize: "sm", children:
|
|
1812
|
-
/* @__PURE__ */ t(Q, { color: "fg.muted", fontSize: "sm", children:
|
|
2062
|
+
renderItem: (V, S) => {
|
|
2063
|
+
const y = a(V), M = Object.keys(V.settings).length;
|
|
2064
|
+
return /* @__PURE__ */ g(D, { justify: "space-between", gap: "3", children: [
|
|
2065
|
+
/* @__PURE__ */ g(X, { gap: "0", minW: "0", children: [
|
|
2066
|
+
/* @__PURE__ */ t(Q, { fontFamily: "mono", fontSize: "sm", children: V.processor }),
|
|
2067
|
+
/* @__PURE__ */ t(Q, { color: "fg.muted", fontSize: "sm", children: y ? y.description : c("processors.unknown") })
|
|
1813
2068
|
] }),
|
|
1814
|
-
|
|
1815
|
-
|
|
2069
|
+
y && y.settingsSpec.length > 0 ? /* @__PURE__ */ g(
|
|
2070
|
+
B,
|
|
1816
2071
|
{
|
|
1817
2072
|
size: "xs",
|
|
1818
2073
|
variant: "outline",
|
|
1819
|
-
onClick: () =>
|
|
1820
|
-
"aria-label":
|
|
1821
|
-
name:
|
|
2074
|
+
onClick: () => o(S),
|
|
2075
|
+
"aria-label": c(i ? "processors.configure" : "processors.viewSettings", {
|
|
2076
|
+
name: V.processor
|
|
1822
2077
|
}),
|
|
1823
2078
|
children: [
|
|
1824
|
-
/* @__PURE__ */ t(
|
|
1825
|
-
|
|
2079
|
+
/* @__PURE__ */ t(Sn, { size: 14, "aria-hidden": !0 }),
|
|
2080
|
+
c("processors.settingsCount", { count: M })
|
|
1826
2081
|
]
|
|
1827
2082
|
}
|
|
1828
2083
|
) : null
|
|
@@ -1831,109 +2086,109 @@ function Rt({
|
|
|
1831
2086
|
}
|
|
1832
2087
|
),
|
|
1833
2088
|
/* @__PURE__ */ t(
|
|
1834
|
-
|
|
2089
|
+
Al,
|
|
1835
2090
|
{
|
|
1836
|
-
open:
|
|
1837
|
-
onClose: () =>
|
|
1838
|
-
processor:
|
|
1839
|
-
settings:
|
|
2091
|
+
open: d !== void 0,
|
|
2092
|
+
onClose: () => o(null),
|
|
2093
|
+
processor: d ? a(d) ?? null : null,
|
|
2094
|
+
settings: d?.settings ?? El,
|
|
1840
2095
|
readOnly: !i,
|
|
1841
|
-
onApply: (
|
|
1842
|
-
|
|
2096
|
+
onApply: (V) => {
|
|
2097
|
+
u !== null && (r(p.map((S, y) => y === u ? { ...S, settings: V } : S)), o(null));
|
|
1843
2098
|
}
|
|
1844
2099
|
}
|
|
1845
2100
|
)
|
|
1846
2101
|
] });
|
|
1847
2102
|
}
|
|
1848
|
-
const
|
|
1849
|
-
function
|
|
2103
|
+
const El = {};
|
|
2104
|
+
function Xl({
|
|
1850
2105
|
mappings: e,
|
|
1851
|
-
editable:
|
|
1852
|
-
hrefOf:
|
|
2106
|
+
editable: n,
|
|
2107
|
+
hrefOf: l
|
|
1853
2108
|
}) {
|
|
1854
|
-
const { t: i } =
|
|
2109
|
+
const { t: i } = R(I), { control: c, setValue: s } = Ot(), m = he({ control: c, name: "mappingIds" }) ?? [], p = k(() => new Map(e.map((r) => [r.id, r])), [e]), u = (r) => s("mappingIds", r, { shouldDirty: !0 });
|
|
1855
2110
|
return /* @__PURE__ */ t(
|
|
1856
|
-
|
|
2111
|
+
jt,
|
|
1857
2112
|
{
|
|
1858
2113
|
items: m,
|
|
1859
|
-
nameOf: (
|
|
1860
|
-
editable:
|
|
1861
|
-
onChange:
|
|
2114
|
+
nameOf: (r) => p.get(r)?.name ?? i("profiles.missingMapping"),
|
|
2115
|
+
editable: n,
|
|
2116
|
+
onChange: u,
|
|
1862
2117
|
emptyLabel: i("profiles.noMappings"),
|
|
1863
2118
|
addLabel: i("profiles.addMapping"),
|
|
1864
|
-
addOptions: e.filter((
|
|
1865
|
-
onAdd: (
|
|
1866
|
-
renderItem: (
|
|
1867
|
-
const a =
|
|
1868
|
-
return a ? /* @__PURE__ */
|
|
1869
|
-
/* @__PURE__ */ t(
|
|
1870
|
-
a.valid ? null : /* @__PURE__ */ t(
|
|
2119
|
+
addOptions: e.filter((r) => !m.includes(r.id)).map((r) => ({ value: r.id, label: r.name })),
|
|
2120
|
+
onAdd: (r) => u([...m, r]),
|
|
2121
|
+
renderItem: (r) => {
|
|
2122
|
+
const a = p.get(r);
|
|
2123
|
+
return a ? /* @__PURE__ */ g(D, { gap: "2", children: [
|
|
2124
|
+
/* @__PURE__ */ t($e, { asChild: !0, children: /* @__PURE__ */ t(xt, { to: l(a.id), children: a.name }) }),
|
|
2125
|
+
a.valid ? null : /* @__PURE__ */ t(Ue, { tone: "danger", label: i("validity.invalid") })
|
|
1871
2126
|
] }) : /* @__PURE__ */ t(Q, { color: "fg.muted", children: i("profiles.missingMapping") });
|
|
1872
2127
|
}
|
|
1873
2128
|
}
|
|
1874
2129
|
);
|
|
1875
2130
|
}
|
|
1876
|
-
const
|
|
1877
|
-
function
|
|
1878
|
-
const { t:
|
|
2131
|
+
const Ot = () => Kt();
|
|
2132
|
+
function di({ client: e, onOpen: n }) {
|
|
2133
|
+
const { t: l } = R(I), { workspaceId: i } = W(), { paths: c } = K(), s = Ve(), m = P(), [p, u] = F(!1), o = C({
|
|
1879
2134
|
queryKey: h.importProfiles(i),
|
|
1880
2135
|
queryFn: () => e.listImportProfiles()
|
|
1881
|
-
}),
|
|
2136
|
+
}), r = k(
|
|
1882
2137
|
() => [
|
|
1883
2138
|
{
|
|
1884
2139
|
id: "name",
|
|
1885
|
-
header:
|
|
2140
|
+
header: l("fields.name"),
|
|
1886
2141
|
cell: (a) => /* @__PURE__ */ t(
|
|
1887
|
-
|
|
2142
|
+
we,
|
|
1888
2143
|
{
|
|
1889
|
-
to:
|
|
2144
|
+
to: de(c, "profiles", a.row.original.id),
|
|
1890
2145
|
label: a.row.original.content.name
|
|
1891
2146
|
}
|
|
1892
2147
|
)
|
|
1893
2148
|
},
|
|
1894
2149
|
{
|
|
1895
2150
|
id: "validity",
|
|
1896
|
-
header:
|
|
1897
|
-
cell: (a) => /* @__PURE__ */ t(
|
|
2151
|
+
header: l("validity.column"),
|
|
2152
|
+
cell: (a) => /* @__PURE__ */ t(et, { validity: a.row.original.validity })
|
|
1898
2153
|
},
|
|
1899
2154
|
{
|
|
1900
2155
|
id: "release",
|
|
1901
|
-
header:
|
|
2156
|
+
header: l("release.column"),
|
|
1902
2157
|
size: 140,
|
|
1903
|
-
cell: (a) => /* @__PURE__ */ t(
|
|
2158
|
+
cell: (a) => /* @__PURE__ */ t(w, { value: wt(a.row.original.state, l) })
|
|
1904
2159
|
}
|
|
1905
2160
|
],
|
|
1906
|
-
[
|
|
2161
|
+
[l, c]
|
|
1907
2162
|
);
|
|
1908
|
-
return /* @__PURE__ */
|
|
1909
|
-
|
|
2163
|
+
return /* @__PURE__ */ g(
|
|
2164
|
+
ee,
|
|
1910
2165
|
{
|
|
1911
|
-
title:
|
|
1912
|
-
actions:
|
|
1913
|
-
/* @__PURE__ */ t(
|
|
1914
|
-
|
|
2166
|
+
title: l("section.profiles.title"),
|
|
2167
|
+
actions: s ? /* @__PURE__ */ g(B, { variant: "solid", onClick: () => u(!0), children: [
|
|
2168
|
+
/* @__PURE__ */ t(se, { size: 16, "aria-hidden": !0 }),
|
|
2169
|
+
l("profiles.new")
|
|
1915
2170
|
] }) : void 0,
|
|
1916
2171
|
children: [
|
|
1917
|
-
|
|
1918
|
-
|
|
2172
|
+
o.isError ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ t(
|
|
2173
|
+
ne,
|
|
1919
2174
|
{
|
|
1920
|
-
columns:
|
|
1921
|
-
data:
|
|
1922
|
-
loading:
|
|
2175
|
+
columns: r,
|
|
2176
|
+
data: o.data ?? [],
|
|
2177
|
+
loading: o.isPending,
|
|
1923
2178
|
getRowId: (a) => a.id,
|
|
1924
|
-
emptyState:
|
|
2179
|
+
emptyState: l("profiles.empty")
|
|
1925
2180
|
}
|
|
1926
2181
|
),
|
|
1927
2182
|
/* @__PURE__ */ t(
|
|
1928
|
-
|
|
2183
|
+
rt,
|
|
1929
2184
|
{
|
|
1930
|
-
open:
|
|
1931
|
-
onClose: () =>
|
|
1932
|
-
title:
|
|
1933
|
-
onCreate: async ({ name: a, description:
|
|
1934
|
-
const
|
|
2185
|
+
open: p,
|
|
2186
|
+
onClose: () => u(!1),
|
|
2187
|
+
title: l("profiles.new"),
|
|
2188
|
+
onCreate: async ({ name: a, description: d }) => {
|
|
2189
|
+
const b = await e.createImportProfile({
|
|
1935
2190
|
name: a,
|
|
1936
|
-
description:
|
|
2191
|
+
description: d,
|
|
1937
2192
|
entitySetId: "",
|
|
1938
2193
|
preprocessors: [],
|
|
1939
2194
|
mappingIds: [],
|
|
@@ -1943,10 +2198,10 @@ function jn({ client: e, onOpen: l }) {
|
|
|
1943
2198
|
});
|
|
1944
2199
|
return await m.invalidateQueries({
|
|
1945
2200
|
queryKey: h.importProfiles(i)
|
|
1946
|
-
}),
|
|
2201
|
+
}), b.id;
|
|
1947
2202
|
},
|
|
1948
2203
|
onCreated: (a) => {
|
|
1949
|
-
|
|
2204
|
+
u(!1), n(a);
|
|
1950
2205
|
}
|
|
1951
2206
|
}
|
|
1952
2207
|
)
|
|
@@ -1954,46 +2209,46 @@ function jn({ client: e, onOpen: l }) {
|
|
|
1954
2209
|
}
|
|
1955
2210
|
);
|
|
1956
2211
|
}
|
|
1957
|
-
const
|
|
2212
|
+
const Bl = {
|
|
1958
2213
|
importProfileId: "",
|
|
1959
2214
|
effectiveDate: "",
|
|
1960
2215
|
sourceDate: "",
|
|
1961
2216
|
sourceReference: ""
|
|
1962
|
-
},
|
|
1963
|
-
function
|
|
1964
|
-
const { t:
|
|
2217
|
+
}, Wl = (e) => /\.xml$/i.test(e.name) || e.type === "text/xml" || e.type === "application/xml";
|
|
2218
|
+
function mi({ client: e, onStarted: n }) {
|
|
2219
|
+
const { t: l } = R(I), { workspaceId: i } = W(), { paths: c } = K(), s = Fe(), m = P(), p = C({
|
|
1965
2220
|
queryKey: h.importProfiles(i),
|
|
1966
2221
|
queryFn: () => e.listImportProfiles(),
|
|
1967
|
-
enabled:
|
|
1968
|
-
}),
|
|
1969
|
-
const [
|
|
1970
|
-
if (
|
|
1971
|
-
if (!
|
|
2222
|
+
enabled: s
|
|
2223
|
+
}), u = me({ defaultValues: Bl }), o = he({ control: u.control, name: "importProfileId" }), [r, a] = F(null), d = (G) => {
|
|
2224
|
+
const [v] = G;
|
|
2225
|
+
if (v) {
|
|
2226
|
+
if (!Wl(v)) {
|
|
1972
2227
|
a({
|
|
1973
2228
|
state: "failed",
|
|
1974
|
-
name:
|
|
1975
|
-
message:
|
|
2229
|
+
name: v.name,
|
|
2230
|
+
message: l("startImport.notXml", { name: v.name })
|
|
1976
2231
|
});
|
|
1977
2232
|
return;
|
|
1978
2233
|
}
|
|
1979
|
-
a({ state: "uploading", name:
|
|
1980
|
-
|
|
2234
|
+
a({ state: "uploading", name: v.name, fraction: 0 }), e.uploadSourceFile(
|
|
2235
|
+
v,
|
|
1981
2236
|
(Z) => a(
|
|
1982
|
-
(
|
|
2237
|
+
(J) => J?.state === "uploading" && J.name === v.name ? { ...J, fraction: Z } : J
|
|
1983
2238
|
)
|
|
1984
2239
|
).then(
|
|
1985
|
-
(Z) => a({ state: "uploaded", name:
|
|
2240
|
+
(Z) => a({ state: "uploaded", name: v.name, sourceFile: Z }),
|
|
1986
2241
|
(Z) => a({
|
|
1987
2242
|
state: "failed",
|
|
1988
|
-
name:
|
|
1989
|
-
message:
|
|
1990
|
-
name:
|
|
2243
|
+
name: v.name,
|
|
2244
|
+
message: l("startImport.uploadFailed", {
|
|
2245
|
+
name: v.name,
|
|
1991
2246
|
message: Z instanceof Error ? Z.message : String(Z)
|
|
1992
2247
|
})
|
|
1993
2248
|
})
|
|
1994
2249
|
);
|
|
1995
2250
|
}
|
|
1996
|
-
},
|
|
2251
|
+
}, b = te({
|
|
1997
2252
|
mutationFn: (G) => e.startImport({
|
|
1998
2253
|
importProfileId: G.importProfileId,
|
|
1999
2254
|
sourceFileId: G.sourceFileId,
|
|
@@ -2001,173 +2256,174 @@ function On({ client: e, onStarted: l }) {
|
|
|
2001
2256
|
...G.sourceDate ? { source: { date: G.sourceDate, reference: G.sourceReference.trim() } } : {}
|
|
2002
2257
|
}),
|
|
2003
2258
|
onSuccess: (G) => {
|
|
2004
|
-
m.invalidateQueries({ queryKey: h.imports(i) }),
|
|
2259
|
+
m.invalidateQueries({ queryKey: h.imports(i) }), n(G.id);
|
|
2005
2260
|
}
|
|
2006
|
-
}),
|
|
2007
|
-
if (
|
|
2261
|
+
}), V = u.handleSubmit((G) => {
|
|
2262
|
+
if (r?.state === "uploaded") {
|
|
2008
2263
|
if (!G.importProfileId) {
|
|
2009
|
-
|
|
2264
|
+
u.setError("importProfileId", { message: l("startImport.profileRequired") });
|
|
2010
2265
|
return;
|
|
2011
2266
|
}
|
|
2012
2267
|
if (!!G.sourceDate != !!G.sourceReference.trim()) {
|
|
2013
|
-
|
|
2014
|
-
message:
|
|
2268
|
+
u.setError(G.sourceDate ? "sourceReference" : "sourceDate", {
|
|
2269
|
+
message: l("startImport.sourceIncomplete")
|
|
2015
2270
|
});
|
|
2016
2271
|
return;
|
|
2017
2272
|
}
|
|
2018
|
-
|
|
2273
|
+
b.mutate({ ...G, sourceFileId: r.sourceFile.id });
|
|
2019
2274
|
}
|
|
2020
|
-
}),
|
|
2021
|
-
title:
|
|
2022
|
-
breadcrumbs: [{ label:
|
|
2275
|
+
}), S = o !== "" && r?.state === "uploaded", y = {
|
|
2276
|
+
title: l("startImport.title"),
|
|
2277
|
+
breadcrumbs: [{ label: l("section.imports.title"), to: c.imports }]
|
|
2023
2278
|
};
|
|
2024
|
-
if (!
|
|
2025
|
-
return /* @__PURE__ */ t(
|
|
2026
|
-
if (
|
|
2027
|
-
return /* @__PURE__ */ t(
|
|
2028
|
-
const
|
|
2279
|
+
if (!s)
|
|
2280
|
+
return /* @__PURE__ */ t(L, { ...y, children: /* @__PURE__ */ t(H, { px: "8", py: "6", children: /* @__PURE__ */ t(tt, { icon: /* @__PURE__ */ t(An, { size: 32, "aria-hidden": !0 }), header: l("startImport.notAllowed") }) }) });
|
|
2281
|
+
if (p.isError || !p.data)
|
|
2282
|
+
return /* @__PURE__ */ t(L, { ...y, children: p.isError ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ t(ge, {}) });
|
|
2283
|
+
const M = p.data.filter((G) => G.state.latestRelease);
|
|
2029
2284
|
return /* @__PURE__ */ t(
|
|
2030
|
-
|
|
2285
|
+
L,
|
|
2031
2286
|
{
|
|
2032
|
-
...
|
|
2033
|
-
actions: /* @__PURE__ */
|
|
2034
|
-
|
|
2287
|
+
...y,
|
|
2288
|
+
actions: /* @__PURE__ */ g(
|
|
2289
|
+
B,
|
|
2035
2290
|
{
|
|
2036
2291
|
variant: "solid",
|
|
2037
|
-
disabled: !
|
|
2038
|
-
loading:
|
|
2292
|
+
disabled: !S,
|
|
2293
|
+
loading: b.isPending,
|
|
2039
2294
|
onClick: () => {
|
|
2040
|
-
|
|
2295
|
+
V();
|
|
2041
2296
|
},
|
|
2042
2297
|
children: [
|
|
2043
|
-
/* @__PURE__ */ t(
|
|
2044
|
-
|
|
2298
|
+
/* @__PURE__ */ t(Bt, { size: 16, "aria-hidden": !0 }),
|
|
2299
|
+
l("imports.start")
|
|
2045
2300
|
]
|
|
2046
2301
|
}
|
|
2047
2302
|
),
|
|
2048
|
-
children: /* @__PURE__ */ t(
|
|
2049
|
-
|
|
2050
|
-
/* @__PURE__ */ t(
|
|
2051
|
-
|
|
2303
|
+
children: /* @__PURE__ */ t(H, { px: "8", py: "6", children: /* @__PURE__ */ t(pe, { ...u, children: /* @__PURE__ */ g(X, { gap: "6", children: [
|
|
2304
|
+
b.isError ? /* @__PURE__ */ t(f, { status: "error", colorPalette: "danger", title: l("startImport.refused"), children: b.error.message }) : null,
|
|
2305
|
+
/* @__PURE__ */ t(N, { title: l("startImport.fileCard"), children: /* @__PURE__ */ g(X, { gap: "4", children: [
|
|
2306
|
+
M.length === 0 ? /* @__PURE__ */ t(f, { status: "info", colorPalette: "info", title: l("startImport.noProfiles") }) : null,
|
|
2052
2307
|
/* @__PURE__ */ t(
|
|
2053
|
-
|
|
2308
|
+
Je,
|
|
2054
2309
|
{
|
|
2055
2310
|
name: "importProfileId",
|
|
2056
|
-
label:
|
|
2057
|
-
helperText:
|
|
2311
|
+
label: l("startImport.profile"),
|
|
2312
|
+
helperText: l("startImport.profileHelp"),
|
|
2058
2313
|
required: !0,
|
|
2059
|
-
options:
|
|
2314
|
+
options: M.map((G) => ({
|
|
2060
2315
|
id: G.id,
|
|
2061
|
-
label:
|
|
2316
|
+
label: l("startImport.profileOption", {
|
|
2062
2317
|
name: G.content.name,
|
|
2063
2318
|
number: G.state.latestRelease?.number
|
|
2064
2319
|
})
|
|
2065
2320
|
}))
|
|
2066
2321
|
}
|
|
2067
2322
|
),
|
|
2068
|
-
/* @__PURE__ */
|
|
2069
|
-
/* @__PURE__ */ t(Q, { fontWeight: "medium", children:
|
|
2070
|
-
/* @__PURE__ */ t(Q, { color: "muted", fontSize: "sm", children:
|
|
2323
|
+
/* @__PURE__ */ g(X, { gap: "2", children: [
|
|
2324
|
+
/* @__PURE__ */ t(Q, { fontWeight: "medium", children: l("startImport.file") }),
|
|
2325
|
+
/* @__PURE__ */ t(Q, { color: "muted", fontSize: "sm", children: l("startImport.fileHelp") }),
|
|
2071
2326
|
/* @__PURE__ */ t(
|
|
2072
|
-
|
|
2327
|
+
Jn,
|
|
2073
2328
|
{
|
|
2074
|
-
onFiles:
|
|
2329
|
+
onFiles: d,
|
|
2075
2330
|
accept: ".xml,text/xml,application/xml",
|
|
2076
|
-
disabled:
|
|
2077
|
-
dropHintText:
|
|
2078
|
-
dragActiveText:
|
|
2079
|
-
buttonLabel:
|
|
2331
|
+
disabled: r?.state === "uploading" || b.isPending,
|
|
2332
|
+
dropHintText: l("startImport.dropHint"),
|
|
2333
|
+
dragActiveText: l("startImport.dragActive"),
|
|
2334
|
+
buttonLabel: l("startImport.chooseFile")
|
|
2080
2335
|
}
|
|
2081
2336
|
),
|
|
2082
|
-
/* @__PURE__ */ t(
|
|
2337
|
+
/* @__PURE__ */ t(fl, { upload: r })
|
|
2083
2338
|
] })
|
|
2084
2339
|
] }) }),
|
|
2085
|
-
/* @__PURE__ */ t(
|
|
2086
|
-
/* @__PURE__ */ t(Q, { color: "muted", fontSize: "sm", children:
|
|
2340
|
+
/* @__PURE__ */ t(N, { title: l("startImport.datesCard"), children: /* @__PURE__ */ g(X, { gap: "4", children: [
|
|
2341
|
+
/* @__PURE__ */ t(Q, { color: "muted", fontSize: "sm", children: l("startImport.datesHelp") }),
|
|
2087
2342
|
/* @__PURE__ */ t(
|
|
2088
|
-
|
|
2343
|
+
Oe,
|
|
2089
2344
|
{
|
|
2090
2345
|
name: "effectiveDate",
|
|
2091
|
-
label:
|
|
2092
|
-
helperText:
|
|
2346
|
+
label: l("startImport.effectiveDate"),
|
|
2347
|
+
helperText: l("startImport.effectiveDateHelp")
|
|
2093
2348
|
}
|
|
2094
2349
|
),
|
|
2095
|
-
/* @__PURE__ */
|
|
2350
|
+
/* @__PURE__ */ g(Zt, { templateColumns: { base: "1fr", md: "1fr 2fr" }, gap: "4", children: [
|
|
2096
2351
|
/* @__PURE__ */ t(
|
|
2097
|
-
|
|
2352
|
+
Oe,
|
|
2098
2353
|
{
|
|
2099
2354
|
name: "sourceDate",
|
|
2100
|
-
label:
|
|
2355
|
+
label: l("startImport.sourceDate")
|
|
2101
2356
|
}
|
|
2102
2357
|
),
|
|
2103
2358
|
/* @__PURE__ */ t(
|
|
2104
|
-
|
|
2359
|
+
T,
|
|
2105
2360
|
{
|
|
2106
2361
|
name: "sourceReference",
|
|
2107
|
-
label:
|
|
2108
|
-
helperText:
|
|
2362
|
+
label: l("startImport.sourceReference"),
|
|
2363
|
+
helperText: l("startImport.sourceReferenceHelp")
|
|
2109
2364
|
}
|
|
2110
2365
|
)
|
|
2111
2366
|
] })
|
|
2112
2367
|
] }) }),
|
|
2113
|
-
/* @__PURE__ */ t(
|
|
2368
|
+
/* @__PURE__ */ t(f, { status: "info", colorPalette: "info", title: l("startImport.consentTitle"), children: l("startImport.consent") })
|
|
2114
2369
|
] }) }) })
|
|
2115
2370
|
}
|
|
2116
2371
|
);
|
|
2117
2372
|
}
|
|
2118
|
-
function
|
|
2119
|
-
const { t:
|
|
2373
|
+
function fl({ upload: e }) {
|
|
2374
|
+
const { t: n } = R(I);
|
|
2120
2375
|
if (!e) return null;
|
|
2121
2376
|
switch (e.state) {
|
|
2122
2377
|
case "uploading":
|
|
2123
2378
|
return /* @__PURE__ */ t(
|
|
2124
|
-
|
|
2379
|
+
Xt,
|
|
2125
2380
|
{
|
|
2126
|
-
label:
|
|
2381
|
+
label: n("startImport.uploading", { name: e.name }),
|
|
2127
2382
|
value: Math.round(e.fraction * 100),
|
|
2128
2383
|
showValue: !0
|
|
2129
2384
|
}
|
|
2130
2385
|
);
|
|
2131
2386
|
case "uploaded":
|
|
2132
2387
|
return /* @__PURE__ */ t(
|
|
2133
|
-
|
|
2388
|
+
f,
|
|
2134
2389
|
{
|
|
2135
2390
|
status: "success",
|
|
2136
2391
|
colorPalette: "success",
|
|
2137
|
-
title:
|
|
2392
|
+
title: n("startImport.uploaded", { name: e.name })
|
|
2138
2393
|
}
|
|
2139
2394
|
);
|
|
2140
2395
|
case "failed":
|
|
2141
|
-
return /* @__PURE__ */ t(
|
|
2396
|
+
return /* @__PURE__ */ t(f, { status: "error", colorPalette: "danger", title: e.message });
|
|
2142
2397
|
}
|
|
2143
2398
|
}
|
|
2144
2399
|
export {
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2400
|
+
ti as ApiKeysIndex,
|
|
2401
|
+
nl as ChangeSetLink,
|
|
2402
|
+
vt as ConfigurationHistory,
|
|
2403
|
+
ln as ConfigurationInUseError,
|
|
2404
|
+
ni as EntitySetDetail,
|
|
2405
|
+
li as EntitySetsIndex,
|
|
2406
|
+
bi as IMPORTHUB_SECTIONS,
|
|
2407
|
+
ll as IMPORTHUB_SECTION_ICONS,
|
|
2408
|
+
I as IMPORTHUB_UI_NS,
|
|
2409
|
+
ii as ImportDetail,
|
|
2410
|
+
si as ImportProfileDetail,
|
|
2411
|
+
di as ImportProfilesIndex,
|
|
2412
|
+
gi as ImporthubHostProvider,
|
|
2413
|
+
ei as ImporthubStartPage,
|
|
2414
|
+
ai as ImportsIndex,
|
|
2415
|
+
oi as MappingDetail,
|
|
2416
|
+
ri as MappingsIndex,
|
|
2417
|
+
Pe as NameTakenError,
|
|
2418
|
+
ci as ProcessorCatalogue,
|
|
2419
|
+
nn as ReleaseRefusedError,
|
|
2420
|
+
Vi as STANDALONE_IMPORTHUB_PATHS,
|
|
2421
|
+
mi as StartImport,
|
|
2422
|
+
tn as StartRefusedError,
|
|
2423
|
+
$l as createConnectImporthubClient,
|
|
2424
|
+
yi as i18nResources,
|
|
2169
2425
|
h as importhubKeys,
|
|
2170
|
-
|
|
2171
|
-
|
|
2426
|
+
de as itemPath,
|
|
2427
|
+
K as useImporthubHost
|
|
2172
2428
|
};
|
|
2173
2429
|
//# sourceMappingURL=index.js.map
|