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