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