@knkcs/importhub-ui 0.10.0 → 0.11.0

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