@knkcs/importhub-ui 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +2 -1
- package/dist/{importhub-client-fCWgKH03.js → importhub-client-BS6F4DW2.js} +7 -5
- package/dist/importhub-client-BS6F4DW2.js.map +1 -0
- package/dist/index.d.ts +131 -0
- package/dist/index.js +1331 -1075
- package/dist/index.js.map +1 -1
- package/dist/mapping-editor.d.ts +50 -0
- package/dist/mapping-editor.js +1 -1
- package/dist/mapping-editor.js.map +1 -1
- package/dist/{mapping-page-D92XwUq5.js → mapping-page-Lu48SY_L.js} +275 -271
- package/dist/mapping-page-Lu48SY_L.js.map +1 -0
- package/dist/testing.d.ts +58 -0
- package/dist/testing.js +298 -242
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- package/dist/importhub-client-fCWgKH03.js.map +0 -1
- package/dist/mapping-page-D92XwUq5.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as n, jsxs as g, Fragment as q } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { Modal as oe, StatusBadgeCell as
|
|
4
|
-
import { InputField as J, BaseSelectField as
|
|
2
|
+
import { EmptyState as ve, Button as x, StatusBadge as Y } from "@knkcs/anker/atoms";
|
|
3
|
+
import { Modal as oe, StatusBadgeCell as Ie, ContextRail as Z, Card as se, TruncatedTextCell as xe, IdentityCell as Ae, DateCell as Ne, ActionCell as ze, DataTable as He } from "@knkcs/anker/components";
|
|
4
|
+
import { InputField as J, BaseSelectField as Oe, TextareaField as Ke } from "@knkcs/anker/forms";
|
|
5
5
|
import { useHostIdentity as H } from "@knkcs/anker/host";
|
|
6
|
-
import {
|
|
7
|
-
import { DetailPageTemplate as
|
|
8
|
-
import { useMutation as X, useQueryClient as ae, useQuery as _, useQueries as
|
|
9
|
-
import { CircleAlert as qe, Tag as Xe, RotateCcw as
|
|
10
|
-
import { createContext as
|
|
11
|
-
import { useForm as
|
|
6
|
+
import { Box as B, Center as Be, Spinner as _e, Tabs as U, Stack as C, Text as R, Alert as E, List as A, Link as ue, HStack as $, Table as z, Code as ee } from "@knkcs/anker/primitives";
|
|
7
|
+
import { DetailPageTemplate as Pe, usePageRail as We } from "@knkcs/anker/templates";
|
|
8
|
+
import { useMutation as X, useQueryClient as ae, useQuery as _, useQueries as Ve, useInfiniteQuery as Le } from "@tanstack/react-query";
|
|
9
|
+
import { CircleAlert as qe, Tag as Xe, RotateCcw as Ge, History as $e, Trash2 as je, ArrowRightLeft as Qe } from "lucide-react";
|
|
10
|
+
import { createContext as Re, useContext as we, useEffect as G, useState as V, useMemo as W, useCallback as Ue } from "react";
|
|
11
|
+
import { useForm as ke, useWatch as Ze, FormProvider as Ee } from "react-hook-form";
|
|
12
12
|
import { useTranslation as w } from "react-i18next";
|
|
13
13
|
import { useSearchParams as Je, Link as me } from "react-router";
|
|
14
|
-
import { C as Ye, R as et } from "./importhub-client-
|
|
15
|
-
const tt = { imports: { title: "Importe", empty: "In diesem Workspace gibt es noch keine Importe." }, profiles: { title: "Importprofile", summary_zero: "In diesem Workspace gibt es noch keine Importprofile.", summary_one: "In diesem Workspace gibt es ein Importprofil.", summary_other: "In diesem Workspace gibt es {{count}} Importprofile." }, mappings: { title: "Mappings", empty: "In diesem Workspace gibt es noch keine Mappings." }, entitySets: { title: "Entity Sets", summary_zero: "In diesem Workspace gibt es noch keine Entity Sets.", summary_one: "In diesem Workspace gibt es ein Entity Set.", summary_other: "In diesem Workspace gibt es {{count}} Entity Sets." }, processors: { title: "Prozessoren", summary_zero: "importhub bietet keine Prozessoren an.", summary_one: "importhub bietet einen Prozessor an.", summary_other: "importhub bietet {{count}} Prozessoren an." } }, nt = { loading: "Wird geladen…", error: "Das konnte nicht geladen werden. Versuchen Sie es gleich noch einmal." }, it = { open: "Change Set in contenthub öffnen" }, rt = { cancel: "Abbrechen", delete: "Löschen", create: "Anlegen", save: "Speichern", apply: "Übernehmen", close: "Schließen" }, st = { name: "Name", description: "Beschreibung" }, ot = { column: "Gültigkeit", valid: "Gültig", invalid: "Ungültig", invalidTitle: "Diese Konfiguration ist ungültig und kann nicht freigegeben werden:" }, at = { column: "Letztes Release", number: "Release {{number}}", none: "Noch kein Release", state: { none: "Noch nicht freigegeben", differs: "Entwurf weicht von Release {{number}} ab", current: "Release {{number}} ist aktuell" } }, lt = { nameTaken: "Dieser Name ist schon vergeben.", nameRequired: "Ein Name ist erforderlich.", failed: "Es konnte nicht angelegt werden. Versuchen Sie es gleich noch einmal." }, dt = { failed: "Die Änderungen konnten nicht gespeichert werden." }, ct = { title: "Details", actions: "Aktionen" }, pt = { moveUp: "{{name}} nach oben", moveDown: "{{name}} nach unten", remove: "{{name}} entfernen" }, ut = { new: "Neues Importprofil", empty: "In diesem Workspace gibt es noch keine Importprofile.", general: "Allgemein", entitySet: "Entity Set", entitySetHelp: "Die externen Zeichen-Entities, mit denen die Quelldatei gelesen wird.", noEntitySet: "Keines", autoPublish: "Automatisch veröffentlichen", autoPublishHelp: "Das Change Set eines Imports ohne Item Problems veröffentlichen.", deleteOnSuccess: "Quelldatei nach Erfolg löschen", deleteOnSuccessHelp: "Die Quelldatei löschen, sobald ein Import ohne Item Problems erfolgreich ist, statt nach der Aufbewahrungsfrist.", preprocessors: "Präprozessoren", mappings: "Mappings", postProcessors: "Postprozessoren", noPreprocessors: "Keine Präprozessoren: Die Quelldatei wird gemappt, wie sie ist.", noPostProcessors: "Keine Postprozessoren.", noMappings: "Es enthält noch kein Mapping.", addPreprocessor: "Präprozessor hinzufügen", addPostProcessor: "Postprozessor hinzufügen", addMapping: "Mapping hinzufügen", missingMapping: "Ein Mapping, das es nicht mehr gibt", delete: "Importprofil löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Importprofil wird gelöscht, und kein Import kann es mehr ausführen. Importe, die es ausgeführt hat, bleiben erhalten." }, mt = { empty: "importhub bietet keine Prozessoren an.", kindColumn: "Art", targetColumn: "Konfiguriert in", settingsColumn: "Einstellungen", noSettings: "Keine Einstellungen", kind: { preprocessor: "Präprozessor", post_processor: "Postprozessor" }, target: { source_file: "Importprofil", rich_text_field: "Rich-Text-Feld eines Mappings" }, unknown: "Nicht im Katalog", settingsOf: "Einstellungen von {{name}}", configure: "{{name}} konfigurieren", viewSettings: "Einstellungen von {{name}}", settingsCount_zero: "Keine Einstellungen gesetzt", settingsCount_one: "Eine Einstellung", settingsCount_other: "{{count}} Einstellungen" }, ht = { new: "Neues Mapping", empty: "In diesem Workspace gibt es noch keine Mappings.", general: "Allgemein", blueprint: "Ziel-Blueprint", release: "Blueprint-Release", blueprintId: "Blueprint-ID", releaseId: "Blueprint-Release-ID", idsHelp: "Wie blueprinthub sie nennt.", newRelease: "Neues Blueprint-Release", newReleaseId: "Neue Blueprint-Release-ID", elementSelector: "Element-Selektor", elementSelectorHelp: "Der XPath, der die Elemente wählt, aus denen je ein Content wird.", sourceKeySelector: "Source-Key-Selektor", sourceKeyTemplate: "Source-Key-Vorlage", sourceKeyTemplateHelp: "XPath-Ausdrücke in geschweiften Klammern, etwa {ancestor::gesetz/@refid}-{@nr}; hat Vorrang vor dem Selektor.", fieldCount_zero: "Es mappt noch kein Feld. Feld-Mappings werden im Mapping-Editor bearbeitet.", fieldCount_one: "Es mappt ein Feld. Feld-Mappings werden im Mapping-Editor bearbeitet.", fieldCount_other: "Es mappt {{count}} Felder. Feld-Mappings werden im Mapping-Editor bearbeitet.", target: "Ziel", move: "Auf ein anderes Release umstellen", moveTitle: "Auf ein anderes Blueprint-Release umstellen", check: "Prüfen", checkFailed: "Das Release konnte nicht geprüft werden.", nothingLost: "Jeden gemappten Feldpfad gibt es auch in diesem Release.", lost_one: "Ein gemappter Pfad fehlt in diesem Release:", lost_other: "{{count}} gemappte Pfade fehlen in diesem Release:", lostFields: "Feldpfade", lostReleaseSpec: "Release-Spec-Felder", moveConfirm: "Umstellen", includedBy: "Importprofile, die es enthalten", noProfiles: "Kein Importprofil enthält es.", delete: "Mapping löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Mapping wird gelöscht. importhub lehnt das ab, solange ein Importprofil es enthält." }, gt = { new: "Neues Entity Set", empty: "In diesem Workspace gibt es noch keine Entity Sets.", general: "Allgemein", entities: "Entities", entity: "Entity", noEntities: "Es definiert noch keine Entity.", entityName: "Entity {{index}}", entityText: "Steht für (Entity {{index}})", addEntity: "Entity hinzufügen", removeEntity: "Entity {{index}} entfernen", delete: "Entity Set löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Entity Set wird gelöscht. importhub lehnt das ab, solange ein Importprofil es nennt." }, ft = { settings: "Einstellungen", history: "Verlauf" }, bt = { action: "Release erstellen", title: "Release erstellen", confirm: "Release erstellen", message: "Der gespeicherte Entwurf wird als Release {{number}} freigegeben. Echte Importe verwenden ihn ab ihrem nächsten Start.", unchanged: "Der Entwurf entspricht Release {{number}}: Es gibt nichts freizugeben.", unsaved: "Nicht gespeicherte Änderungen auf dieser Seite gehören nicht zum Release. Speichern Sie sie zuerst, um sie freizugeben.", profilesIntro: "Diese Importprofile enthalten das Mapping und übernehmen das Release bei ihrem nächsten Import:", profiles: "Importprofile, die dieses Release übernehmen", noProfiles: "Noch kein Importprofil enthält das Mapping.", refused: "importhub hat das Release nicht erstellt:", failed: "Das Release konnte nicht erstellt werden. Versuchen Sie es gleich noch einmal.", done: "Release {{number}} ist erstellt.", doneBody: "Echte Importe verwenden es ab ihrem nächsten Start." }, yt = { hint: "Jedes Speichern ist eine Revision. Wählen Sie zwei aus, um sie nebeneinander zu vergleichen.", none: "Noch keine Revisionen.", loadMore: "Ältere Revisionen laden", columns: { revision: "Revision", release: "Release", savedBy: "Gespeichert von", savedAt: "Gespeichert" }, draft: "Entwurf", revision: "Früherer Entwurf", revisionOf: "Revision vom {{time}}", restoredFrom: "Wiederhergestellt aus {{revision}}", cutBy: "Erstellt von {{name}}, {{time}}.", unknownPerson: "Jemand, der nicht mehr im Workspace ist", restore: "Als Entwurf wiederherstellen", restoreTitle: "{{revision}} wiederherstellen?", restoreConfirm: "Wiederherstellen", restoreMessage: "Ihr Inhalt wird als neuer Entwurf gespeichert. Echte Importe verwenden weiter das neueste Release, bis Sie ein neues erstellen.", restoreFailed: "Sie konnte nicht wiederhergestellt werden.", olderRelease: "{{release}} wurde von {{name}} am {{time}} aus einer älteren Revision erstellt: Laden Sie ältere Revisionen, um sie zu sehen.", earlierRevision: "Eine frühere Revision" }, St = { title: "Vergleich", between: "{{from}} verglichen mit {{to}}", field: "Feld", same: "Die beiden Revisionen sind gleich.", differing_one: "Ein Feld unterscheidet sich.", differing_other: "{{count}} Felder unterscheiden sich.", status: { unchanged: "Unverändert", added: "Hinzugefügt", removed: "Entfernt", changed: "Geändert" }, absent: "Nicht gesetzt", missingEntitySet: "Ein Entity Set, das nicht mehr existiert", yes: "Ja", no: "Nein" }, vt = { tabs: { fields: "Felder", versions: "Source Key & Source Versions", output: "Ausgabe" }, reasonsHere: "importhub hat hier einen Fehler gefunden:", tree: { label: "Felder des Blueprint-Release", mapped: "gemappt", unmapped: "nicht gemappt", invalid: "ungültig", toggle: "Felder von {{label}} ein- oder ausblenden", outside: "Gemappt, nicht in diesem Release", noLookup: "Dieser Host kann die Felder des Blueprint-Release nicht lesen, daher sind nur die Felder aufgeführt, die das Mapping mappt.", loadFailed: "Die Felder des Blueprint-Release konnten nicht gelesen werden.", selectField: "Wählen Sie ein Feld, um es zu mappen." }, field: { title: "Feld-Mapping", notMapped: "Das Mapping mappt dieses Feld nicht.", map: "Feld mappen", remove: "Mapping entfernen", selector: "XPath", selectorHelp: "Relativ zum Element; die Felder eines Fieldsets relativ zu dessen.", type: "Typ", optional: "Optional", optionalHelp: "Ein Element ohne diesen Wert ist kein Fehler.", dateFormat: "Datumsformat", dateFormatHelp: "Ein Go-Zeitlayout wie 02.01.2006; leer: ISO-Daten (2006-01-02).", dateFormats: "Weitere Datumsformate", dateFormatsHelp: "Ein Go-Zeitlayout pro Zeile, der Reihe nach nach dem Datumsformat versucht.", autoDetectDateFormat: "Gängige Datumsformate erkennen", numberLocale: "Zahlenformat", locale: { de: "Deutsch (1.234,56)", en: "Englisch (1,234.56)", ch: "Schweiz (1'234.56)" }, stripCurrency: "Währungszeichen entfernen", skipInvalid: "Ungültige Werte überspringen", skipInvalidHelp: "Ein nicht lesbarer Wert lässt das Feld leer, statt ein Problem zu melden.", selectOptions: "Auswahloptionen", selectOptionsHelp: "Eine pro Zeile: Schlüssel = Bezeichnung, etwa 0 = Gesetz.", textWrapperElement: "Text-Wrapper-Element", ignoreElements: "Ignorierte Elemente", passThroughElements: "Durchgereichte Elemente", elementsHelp: "Ein Elementname pro Zeile.", normalizeWhitespace: "Leerraum normalisieren", convertNewlinesToBreaks: "Zeilenumbrüche übernehmen", richTextMore: "Node- und Mark-Mappings und die übrigen Rich-Text-Einstellungen stehen unter Erweitert (JSON).", refBlueprintId: "ID des referenzierten Blueprints", refIdTemplate: "Vorlage der Referenz-ID", refIdTemplateHelp: "XPath-Ausdrücke in geschweiften Klammern; sie müssen den Source Key des Ziels bilden.", refIdExtractPattern: "Extraktionsmuster der Referenz-ID", refIdExtractSeparator: "Trennzeichen der Referenz-ID", refIdExtractSeparatorHelp: "Verbindet die Gruppen des Musters; ohne Angabe -.", concatSelectors: "Verkettete XPaths", concatSelectorsHelp: "Ein XPath pro Zeile, der Reihe nach verbunden.", normalizeUnicode: "Unicode normalisieren", childrenHelp: "Seine Felder werden einzeln gemappt: wählen Sie sie im Baum.", elementBlueprintMap: "Blueprint je Element", elementBlueprintMapHelp: "Eine pro Zeile: Elementname = ID des referenzierten Blueprints, für einen Selektor, der mehrere Elemente trifft.", elementRefIdTemplateMap: "Vorlage der Referenz-ID je Element", elementRefIdTemplateMapHelp: "Eine pro Zeile: Elementname = Vorlage der Referenz-ID." }, json: { title: "Erweitert (JSON)", help: "Alle xmlmapper-Einstellungen des Feld-Mappings. Schlüssel, für die das Formular oben kein Eingabefeld hat, bleiben beim Speichern erhalten.", label: "Feld-Mapping als JSON", apply: "JSON übernehmen", notJson: "Das ist kein gültiges JSON.", notObject: "Ein Feld-Mapping ist ein JSON-Objekt.", unapplied: "Noch nicht übernommen: JSON übernehmen setzt es ins Formular, Speichern speichert es." }, sourceKey: { title: "Extraktion des Source Key", help: "Selektor und Vorlage des Source Key stehen unter Einstellungen.", extractPattern: "Extraktionsmuster", extractPatternHelp: "Ein regulärer Ausdruck auf den Wert jedes Platzhalters; seine Gruppen ersetzen einen passenden Wert.", extractSeparator: "Trennzeichen", extractSeparatorHelp: "Verbindet die Gruppen; - solange nicht gesetzt. Einmal gesetzt und geleert, verbindet es sie ohne Zeichen.", normalize: "Allen Leerraum aus dem Source Key entfernen" }, versionMatch: { title: "Version Match", help: "Eine Source Version entspricht einem bestehenden Release, dessen Werte alle gleich sind. Ohne Angabe ist jedes Element eine einzige Source Version, verglichen mit dem Stand von Main.", validityPeriod: "Gültigkeitszeitraum vergleichen", releaseSpecFields: "Zu vergleichende Release-Spec-Felder", noReleaseSpecFields: "Das Release hat keine Release-Spec-Felder.", contentFields: "Zu vergleichende Inhaltsfelder", noContentFields: "Das Mapping mappt noch kein Feld." }, validityPeriod: { title: "Gültigkeitszeitraum", validFrom: "XPath für gültig ab", validTo: "XPath für gültig bis", validToHelp: "Leer für unbefristet.", dateFormats: "Datumsformate", dateFormatsHelp: "Ein Go-Zeitlayout pro Zeile, der Reihe nach versucht; leer: ISO-Daten." }, releaseSpec: { title: "Quellen der Release Spec", none: "Kein Release-Spec-Wert wird aus der Quelle gelesen.", field: "Release-Spec-Feld {{index}}", selector: "XPath {{index}}", remove: "Release-Spec-Quelle {{index}} entfernen", add: "Release-Spec-Quelle hinzufügen" }, changedVersion: { title: "Changed Version", label: "Wenn eine Source Version zu einem Release passt, ihre gemappten Daten aber abweichen", help: "Ohne Auswahl: Korrigieren.", correct: "Korrigieren: ein Planned Release, das das passende ersetzt", keep: "Bestehendes Release behalten", fail: "Import fehlschlagen lassen" }, stub: { title: "Stub Mapping", label: "Stub Mapping", help: "Legt für jeden Source Key, für den es noch keinen Inhalt gibt, einen Inhalt nur mit Content Key und den gemappten Feldern an und ändert nie bestehende Inhalte." }, naming: { title: "Name und Collections", displayNameTemplate: "Vorlage des Anzeigenamens", displayNameTemplateHelp: "Feldpfade in geschweiften Klammern, etwa {titelnum} — {titel}.", collections: "Ziel-Collections", collectionsHelp: "Ein Collection-Schlüssel pro Zeile; jeder Inhalt wird in jede abgelegt." }, routing: { title: "Collection-Routing", help: "Leitet eine Collection pro Inhalt ab: den Wert des Selektors, übersetzt; sonst den Treffer des ID-Musters in der Vorlage; sonst die Ersatz-Collection.", selector: "XPath", collectionMap: "Collection-Zuordnung", collectionMapHelp: "Eine pro Zeile: Wert = Collection-Schlüssel. Leer: der Wert ist der Schlüssel.", idPattern: "ID-Muster", collectionTemplate: "Collection-Vorlage", collectionTemplateHelp: "Mit {match} und {suffix}.", suffix: "Suffix", fallback: "Ersatz-Collection" }, titles: { title: "Title Contributions", help: "Schreibt Daten je Ausgabe auf den Title, dessen Content Key der Ausgabe-Code ist.", none: "Keine Title Contributions.", item: "Title Contribution {{index}}", remove: "Title Contribution {{index}} entfernen", add: "Title Contribution hinzufügen", selector: "XPath der Ausgabe-Elemente", selectorHelp: "Wählt die Elemente, die je die Daten einer Ausgabe tragen.", ausgabeCodeSelector: "XPath des Ausgabe-Codes", referenceSpecValues: "Reference-Spec-Werte", valueField: "Reference-Spec-Feld {{index}}", valueSelector: "XPath des Werts {{index}}", removeValue: "Reference-Spec-Wert {{index}} entfernen", addValue: "Reference-Spec-Wert hinzufügen", referenceFilterSelector: "XPath des Referenzfilters", intent: "Absicht", intents: { none: "Keine", exclude: "Ausschließen", replace: "Ersetzen", annotate: "Anmerken" }, intentTextSelector: "XPath des Absichtstexts", intentTextSelectorHelp: "Der Ersatz- oder Anmerkungstext." }, assets: { title: "Placeholder Assets", help: "Macht die Dateiverweise der Quelle zu mediahub-Assets ohne Datei.", none: "Keine Dateiverweise werden zu Placeholder Assets.", item: "Placeholder Assets {{index}}", remove: "Placeholder Assets {{index}} entfernen", add: "Placeholder Assets hinzufügen", selector: "XPath der Dateiverweise", selectorHelp: "Etwa .//grafik.", assetType: "Asset-Typ", keyParts: "Schlüsselteile", keyPartsHelp: "Ein XPath pro Zeile, relativ zum Verweis; ihre Werte, mit / verbunden, bilden den Schlüssel des Assets.", nameSelector: "XPath des Namens", descriptionSelector: "XPath der Beschreibung", metadata: "Metadaten", metadataHelp: "Eine pro Zeile: Metadatenfeld = XPath.", folderRoot: "Wurzelordner", folderPathSelector: "XPath des Ordnerpfads", folderPathSelectorHelp: "Der Pfad der Datei, als Ordner unter dem Wurzelordner gespiegelt." } }, Pt = { start: "Import starten", empty: "In diesem Workspace lief noch kein Import.", profile: "Importprofil", startedBy: "Gestartet von", started: "Gestartet", ended: "Beendet", matched: "Gefunden", created: "Angelegt", problems: "Probleme", planned: "Geplante Releases", corrected: "Korrigiert", kept: "Beibehalten", unchanged: "Unverändert", loadMore: "Mehr laden", phase: { queued: "Wartet", reading: "Liest", writing: "Schreibt", cancelling: "Wird abgebrochen" }, outcome: { succeeded: "Erfolgreich", succeeded_with_problems: "Erfolgreich mit Problemen", failed: "Fehlgeschlagen", cancelled: "Abgebrochen" }, progressTitle: "Fortschritt", phaseLong: { reading: "Liest die Quelldatei", writing: "Schreibt das Change Set in contenthub" }, progressOf: "{{done}} von {{total}} Einträgen", progressUnknown: "Zählt die Einträge…", queuedBody: "Er wartet, bis der laufende Import des Workspace beendet ist.", failedTitle: "Der Import ist fehlgeschlagen", cancelledBody: "{{person}} hat ihn abgebrochen. Das Change Set, das er geöffnet hatte, wurde verworfen.", cancellingBody: "{{person}} hat den Abbruch angefordert. Er hält beim nächsten Eintrag an.", problemsBody_one: "{{count}} Quellversion konnte nicht gespeichert werden und wurde übersprungen. Das Change Set bleibt erhalten, damit die Redaktion den Rest korrigiert.", problemsBody_other: "{{count}} Quellversionen konnten nicht gespeichert werden und wurden übersprungen. Das Change Set bleibt erhalten, damit die Redaktion den Rest korrigiert.", details: "Details", effectiveDate: "Stichtag", source: "Quelle", sourceValue: "{{reference}}, {{date}}", none: "Keine", changeSet: "Change Set", counts: "Zahlen", releases: "Verwendete Releases", releaseOf: "{{name}}, Release {{number}}", mapping: "Mapping", entitySet: "Entity Set", cancel: "Import abbrechen", cancelTitle: "Diesen Import abbrechen?", cancelMessage: "Er hält beim nächsten Eintrag an, und das Change Set, das er geöffnet hat, wird verworfen. Das lässt sich nicht rückgängig machen.", cancelConfirm: "Import abbrechen", keepRunning: "Weiterlaufen lassen", cancelFailed: "importhub hat den Import nicht abgebrochen: {{message}}", itemProblems: "Probleme je Eintrag", noItemProblems: "Keine Probleme.", noMatchingProblems: "Kein Problem passt.", searchSourceKey: "Nach Quellschlüssel suchen", filterMapping: "Nach Mapping filtern", allMappings: "Alle Mappings ({{count}})", mappingCount: "{{name}} ({{count}})", problemCount: "{{matching}} von {{total}}", sourceKey: "Quellschlüssel", field: "Feld", reason: "Grund", wholeVersion: "Die ganze Quellversion", noSourceKey: "Kein Quellschlüssel", subtitle: "Gestartet von {{person}}, {{time}}", outcomeColumn: "Ergebnis", someone: "Jemand", mappings: "Mappings" }, Rt = { title: "Import starten", fileCard: "Profil und Quelldatei", profile: "Importprofil", profileHelp: "Nur Profile mit einem Release stehen zur Wahl: Ein Import verwendet das neueste Release, nie einen Entwurf.", profileOption: "{{name}} (Release {{number}})", file: "Quelldatei", fileHelp: "Eine XML-Datei. Sie geht direkt in den Speicher von importhub.", dropHint: "XML-Datei hierher ziehen", dragActive: "Zum Hochladen loslassen", chooseFile: "Datei wählen", uploading: "{{name}} wird hochgeladen", uploaded: "{{name}} ist hochgeladen.", uploadFailed: "Das Hochladen von {{name}} ist fehlgeschlagen: {{message}}", notXml: "{{name}} ist keine XML-Datei.", datesCard: "Daten", datesHelp: "Für eine Datei ohne Daten: Ihre datierten Inhalte übernehmen diese. Ein Datum aus der Datei geht immer vor.", effectiveDate: "Stichtag", effectiveDateHelp: "Der Tag, an dem die geplanten Releases beginnen.", sourceDate: "Quelle: Datum", sourceReference: "Quelle: Fundstelle", sourceReferenceHelp: "Wie die Veröffentlichung zitiert wird, etwa „BGBl. 2026 I Nr. 270“.", sourceIncomplete: "Eine Quelle braucht Datum und Fundstelle.", profileRequired: "Wählen Sie ein Importprofil.", consentTitle: "Der Import handelt in Ihrem Namen", consent: "Mit dem Start erhält importhub für bis zu 24 Stunden Zugriff in Ihrem Namen. Damit liest importhub Blueprints in blueprinthub, legt Platzhalter-Assets in mediahub an und schreibt das Change Set des Imports in contenthub, mit Ihren Rechten und unter Ihrem Namen. Der Zugriff endet, wenn der Import endet.", refused: "importhub hat den Import nicht gestartet", notAllowed: "Sie dürfen Importe ansehen, aber nicht starten.", noProfiles: "Noch kein Importprofil hat ein Release. Ein Admin muss erst eines freigeben." }, It = {
|
|
14
|
+
import { C as Ye, R as et } from "./importhub-client-BS6F4DW2.js";
|
|
15
|
+
const tt = { imports: { title: "Importe", empty: "In diesem Workspace gibt es noch keine Importe." }, profiles: { title: "Importprofile", summary_zero: "In diesem Workspace gibt es noch keine Importprofile.", summary_one: "In diesem Workspace gibt es ein Importprofil.", summary_other: "In diesem Workspace gibt es {{count}} Importprofile." }, mappings: { title: "Mappings", empty: "In diesem Workspace gibt es noch keine Mappings." }, entitySets: { title: "Entity Sets", summary_zero: "In diesem Workspace gibt es noch keine Entity Sets.", summary_one: "In diesem Workspace gibt es ein Entity Set.", summary_other: "In diesem Workspace gibt es {{count}} Entity Sets." }, processors: { title: "Prozessoren", summary_zero: "importhub bietet keine Prozessoren an.", summary_one: "importhub bietet einen Prozessor an.", summary_other: "importhub bietet {{count}} Prozessoren an." } }, nt = { loading: "Wird geladen…", error: "Das konnte nicht geladen werden. Versuchen Sie es gleich noch einmal." }, it = { open: "Change Set in contenthub öffnen" }, rt = { cancel: "Abbrechen", delete: "Löschen", create: "Anlegen", save: "Speichern", apply: "Übernehmen", close: "Schließen" }, st = { name: "Name", description: "Beschreibung" }, ot = { column: "Gültigkeit", valid: "Gültig", invalid: "Ungültig", invalidTitle: "Diese Konfiguration ist ungültig und kann nicht freigegeben werden:" }, at = { column: "Letztes Release", number: "Release {{number}}", none: "Noch kein Release", state: { none: "Noch nicht freigegeben", differs: "Entwurf weicht von Release {{number}} ab", current: "Release {{number}} ist aktuell" } }, lt = { nameTaken: "Dieser Name ist schon vergeben.", nameRequired: "Ein Name ist erforderlich.", failed: "Es konnte nicht angelegt werden. Versuchen Sie es gleich noch einmal." }, dt = { failed: "Die Änderungen konnten nicht gespeichert werden." }, ct = { title: "Details", actions: "Aktionen" }, pt = { moveUp: "{{name}} nach oben", moveDown: "{{name}} nach unten", remove: "{{name}} entfernen" }, ut = { new: "Neues Importprofil", empty: "In diesem Workspace gibt es noch keine Importprofile.", general: "Allgemein", entitySet: "Entity Set", entitySetHelp: "Die externen Zeichen-Entities, mit denen die Quelldatei gelesen wird.", noEntitySet: "Keines", autoPublish: "Automatisch veröffentlichen", autoPublishHelp: "Das Change Set eines Imports ohne Item Problems veröffentlichen.", deleteOnSuccess: "Quelldatei nach Erfolg löschen", deleteOnSuccessHelp: "Die Quelldatei löschen, sobald ein Import ohne Item Problems erfolgreich ist, statt nach der Aufbewahrungsfrist.", preprocessors: "Präprozessoren", mappings: "Mappings", postProcessors: "Postprozessoren", noPreprocessors: "Keine Präprozessoren: Die Quelldatei wird gemappt, wie sie ist.", noPostProcessors: "Keine Postprozessoren.", noMappings: "Es enthält noch kein Mapping.", addPreprocessor: "Präprozessor hinzufügen", addPostProcessor: "Postprozessor hinzufügen", addMapping: "Mapping hinzufügen", missingMapping: "Ein Mapping, das es nicht mehr gibt", delete: "Importprofil löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Importprofil wird gelöscht, und kein Import kann es mehr ausführen. Importe, die es ausgeführt hat, bleiben erhalten." }, mt = { empty: "importhub bietet keine Prozessoren an.", kindColumn: "Art", targetColumn: "Konfiguriert in", settingsColumn: "Einstellungen", noSettings: "Keine Einstellungen", kind: { preprocessor: "Präprozessor", post_processor: "Postprozessor" }, target: { source_file: "Importprofil", rich_text_field: "Rich-Text-Feld eines Mappings" }, unknown: "Nicht im Katalog", settingsOf: "Einstellungen von {{name}}", configure: "{{name}} konfigurieren", viewSettings: "Einstellungen von {{name}}", settingsCount_zero: "Keine Einstellungen gesetzt", settingsCount_one: "Eine Einstellung", settingsCount_other: "{{count}} Einstellungen" }, ht = { new: "Neues Mapping", empty: "In diesem Workspace gibt es noch keine Mappings.", general: "Allgemein", blueprint: "Ziel-Blueprint", release: "Blueprint-Release", blueprintId: "Blueprint-ID", releaseId: "Blueprint-Release-ID", idsHelp: "Wie blueprinthub sie nennt.", newRelease: "Neues Blueprint-Release", newReleaseId: "Neue Blueprint-Release-ID", elementSelector: "Element-Selektor", elementSelectorHelp: "Der XPath, der die Elemente wählt, aus denen je ein Content wird.", sourceKeySelector: "Source-Key-Selektor", sourceKeyTemplate: "Source-Key-Vorlage", sourceKeyTemplateHelp: "XPath-Ausdrücke in geschweiften Klammern, etwa {ancestor::gesetz/@refid}-{@nr}; hat Vorrang vor dem Selektor.", fieldCount_zero: "Es mappt noch kein Feld. Feld-Mappings werden im Mapping-Editor bearbeitet.", fieldCount_one: "Es mappt ein Feld. Feld-Mappings werden im Mapping-Editor bearbeitet.", fieldCount_other: "Es mappt {{count}} Felder. Feld-Mappings werden im Mapping-Editor bearbeitet.", target: "Ziel", move: "Auf ein anderes Release umstellen", moveTitle: "Auf ein anderes Blueprint-Release umstellen", check: "Prüfen", checkFailed: "Das Release konnte nicht geprüft werden.", nothingLost: "Jeden gemappten Feldpfad gibt es auch in diesem Release.", lost_one: "Ein gemappter Pfad fehlt in diesem Release:", lost_other: "{{count}} gemappte Pfade fehlen in diesem Release:", lostFields: "Feldpfade", lostReleaseSpec: "Release-Spec-Felder", moveConfirm: "Umstellen", includedBy: "Importprofile, die es enthalten", noProfiles: "Kein Importprofil enthält es.", delete: "Mapping löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Mapping wird gelöscht. importhub lehnt das ab, solange ein Importprofil es enthält." }, gt = { new: "Neues Entity Set", empty: "In diesem Workspace gibt es noch keine Entity Sets.", general: "Allgemein", entities: "Entities", entity: "Entity", noEntities: "Es definiert noch keine Entity.", entityName: "Entity {{index}}", entityText: "Steht für (Entity {{index}})", addEntity: "Entity hinzufügen", removeEntity: "Entity {{index}} entfernen", delete: "Entity Set löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Entity Set wird gelöscht. importhub lehnt das ab, solange ein Importprofil es nennt." }, ft = { settings: "Einstellungen", history: "Verlauf" }, bt = { action: "Release erstellen", title: "Release erstellen", confirm: "Release erstellen", message: "Der gespeicherte Entwurf wird als Release {{number}} freigegeben. Echte Importe verwenden ihn ab ihrem nächsten Start.", unchanged: "Der Entwurf entspricht Release {{number}}: Es gibt nichts freizugeben.", unsaved: "Nicht gespeicherte Änderungen auf dieser Seite gehören nicht zum Release. Speichern Sie sie zuerst, um sie freizugeben.", profilesIntro: "Diese Importprofile enthalten das Mapping und übernehmen das Release bei ihrem nächsten Import:", profiles: "Importprofile, die dieses Release übernehmen", noProfiles: "Noch kein Importprofil enthält das Mapping.", refused: "importhub hat das Release nicht erstellt:", failed: "Das Release konnte nicht erstellt werden. Versuchen Sie es gleich noch einmal.", done: "Release {{number}} ist erstellt.", doneBody: "Echte Importe verwenden es ab ihrem nächsten Start." }, yt = { hint: "Jedes Speichern ist eine Revision. Wählen Sie zwei aus, um sie nebeneinander zu vergleichen.", none: "Noch keine Revisionen.", loadMore: "Ältere Revisionen laden", columns: { revision: "Revision", release: "Release", savedBy: "Gespeichert von", savedAt: "Gespeichert" }, draft: "Entwurf", revision: "Früherer Entwurf", revisionOf: "Revision vom {{time}}", restoredFrom: "Wiederhergestellt aus {{revision}}", cutBy: "Erstellt von {{name}}, {{time}}.", unknownPerson: "Jemand, der nicht mehr im Workspace ist", restore: "Als Entwurf wiederherstellen", restoreTitle: "{{revision}} wiederherstellen?", restoreConfirm: "Wiederherstellen", restoreMessage: "Ihr Inhalt wird als neuer Entwurf gespeichert. Echte Importe verwenden weiter das neueste Release, bis Sie ein neues erstellen.", restoreFailed: "Sie konnte nicht wiederhergestellt werden.", olderRelease: "{{release}} wurde von {{name}} am {{time}} aus einer älteren Revision erstellt: Laden Sie ältere Revisionen, um sie zu sehen.", earlierRevision: "Eine frühere Revision" }, St = { title: "Vergleich", between: "{{from}} verglichen mit {{to}}", field: "Feld", same: "Die beiden Revisionen sind gleich.", differing_one: "Ein Feld unterscheidet sich.", differing_other: "{{count}} Felder unterscheiden sich.", status: { unchanged: "Unverändert", added: "Hinzugefügt", removed: "Entfernt", changed: "Geändert" }, absent: "Nicht gesetzt", missingEntitySet: "Ein Entity Set, das nicht mehr existiert", yes: "Ja", no: "Nein" }, vt = { tabs: { fields: "Felder", versions: "Source Key & Source Versions", output: "Ausgabe" }, reasonsHere: "importhub hat hier einen Fehler gefunden:", tree: { label: "Felder des Blueprint-Release", mapped: "gemappt", unmapped: "nicht gemappt", invalid: "ungültig", toggle: "Felder von {{label}} ein- oder ausblenden", outside: "Gemappt, nicht in diesem Release", noLookup: "Dieser Host kann die Felder des Blueprint-Release nicht lesen, daher sind nur die Felder aufgeführt, die das Mapping mappt.", loadFailed: "Die Felder des Blueprint-Release konnten nicht gelesen werden.", selectField: "Wählen Sie ein Feld, um es zu mappen." }, field: { title: "Feld-Mapping", notMapped: "Das Mapping mappt dieses Feld nicht.", map: "Feld mappen", remove: "Mapping entfernen", selector: "XPath", selectorHelp: "Relativ zum Element; die Felder eines Fieldsets relativ zu dessen.", type: "Typ", optional: "Optional", optionalHelp: "Ein Element ohne diesen Wert ist kein Fehler.", dateFormat: "Datumsformat", dateFormatHelp: "Ein Go-Zeitlayout wie 02.01.2006; leer: ISO-Daten (2006-01-02).", dateFormats: "Weitere Datumsformate", dateFormatsHelp: "Ein Go-Zeitlayout pro Zeile, der Reihe nach nach dem Datumsformat versucht.", autoDetectDateFormat: "Gängige Datumsformate erkennen", numberLocale: "Zahlenformat", locale: { de: "Deutsch (1.234,56)", en: "Englisch (1,234.56)", ch: "Schweiz (1'234.56)" }, stripCurrency: "Währungszeichen entfernen", skipInvalid: "Ungültige Werte überspringen", skipInvalidHelp: "Ein nicht lesbarer Wert lässt das Feld leer, statt ein Problem zu melden.", selectOptions: "Auswahloptionen", selectOptionsHelp: "Eine pro Zeile: Schlüssel = Bezeichnung, etwa 0 = Gesetz.", textWrapperElement: "Text-Wrapper-Element", ignoreElements: "Ignorierte Elemente", passThroughElements: "Durchgereichte Elemente", elementsHelp: "Ein Elementname pro Zeile.", normalizeWhitespace: "Leerraum normalisieren", convertNewlinesToBreaks: "Zeilenumbrüche übernehmen", richTextMore: "Node- und Mark-Mappings und die übrigen Rich-Text-Einstellungen stehen unter Erweitert (JSON).", refBlueprintId: "ID des referenzierten Blueprints", refIdTemplate: "Vorlage der Referenz-ID", refIdTemplateHelp: "XPath-Ausdrücke in geschweiften Klammern; sie müssen den Source Key des Ziels bilden.", refIdExtractPattern: "Extraktionsmuster der Referenz-ID", refIdExtractSeparator: "Trennzeichen der Referenz-ID", refIdExtractSeparatorHelp: "Verbindet die Gruppen des Musters; ohne Angabe -.", concatSelectors: "Verkettete XPaths", concatSelectorsHelp: "Ein XPath pro Zeile, der Reihe nach verbunden.", normalizeUnicode: "Unicode normalisieren", childrenHelp: "Seine Felder werden einzeln gemappt: wählen Sie sie im Baum.", elementBlueprintMap: "Blueprint je Element", elementBlueprintMapHelp: "Eine pro Zeile: Elementname = ID des referenzierten Blueprints, für einen Selektor, der mehrere Elemente trifft.", elementRefIdTemplateMap: "Vorlage der Referenz-ID je Element", elementRefIdTemplateMapHelp: "Eine pro Zeile: Elementname = Vorlage der Referenz-ID." }, json: { title: "Erweitert (JSON)", help: "Alle xmlmapper-Einstellungen des Feld-Mappings. Schlüssel, für die das Formular oben kein Eingabefeld hat, bleiben beim Speichern erhalten.", label: "Feld-Mapping als JSON", apply: "JSON übernehmen", notJson: "Das ist kein gültiges JSON.", notObject: "Ein Feld-Mapping ist ein JSON-Objekt.", unapplied: "Noch nicht übernommen: JSON übernehmen setzt es ins Formular, Speichern speichert es." }, sourceKey: { title: "Extraktion des Source Key", help: "Selektor und Vorlage des Source Key stehen unter Einstellungen.", extractPattern: "Extraktionsmuster", extractPatternHelp: "Ein regulärer Ausdruck auf den Wert jedes Platzhalters; seine Gruppen ersetzen einen passenden Wert.", extractSeparator: "Trennzeichen", extractSeparatorHelp: "Verbindet die Gruppen; - solange nicht gesetzt. Einmal gesetzt und geleert, verbindet es sie ohne Zeichen.", normalize: "Allen Leerraum aus dem Source Key entfernen" }, versionMatch: { title: "Version Match", help: "Eine Source Version entspricht einem bestehenden Release, dessen Werte alle gleich sind. Ohne Angabe ist jedes Element eine einzige Source Version, verglichen mit dem Stand von Main.", validityPeriod: "Gültigkeitszeitraum vergleichen", releaseSpecFields: "Zu vergleichende Release-Spec-Felder", noReleaseSpecFields: "Das Release hat keine Release-Spec-Felder.", contentFields: "Zu vergleichende Inhaltsfelder", noContentFields: "Das Mapping mappt noch kein Feld." }, validityPeriod: { title: "Gültigkeitszeitraum", validFrom: "XPath für gültig ab", validTo: "XPath für gültig bis", validToHelp: "Leer für unbefristet.", dateFormats: "Datumsformate", dateFormatsHelp: "Ein Go-Zeitlayout pro Zeile, der Reihe nach versucht; leer: ISO-Daten." }, releaseSpec: { title: "Quellen der Release Spec", none: "Kein Release-Spec-Wert wird aus der Quelle gelesen.", field: "Release-Spec-Feld {{index}}", selector: "XPath {{index}}", remove: "Release-Spec-Quelle {{index}} entfernen", add: "Release-Spec-Quelle hinzufügen" }, changedVersion: { title: "Changed Version", label: "Wenn eine Source Version zu einem Release passt, ihre gemappten Daten aber abweichen", help: "Ohne Auswahl: Korrigieren.", correct: "Korrigieren: ein Planned Release, das das passende ersetzt", keep: "Bestehendes Release behalten", fail: "Import fehlschlagen lassen" }, stub: { title: "Stub Mapping", label: "Stub Mapping", help: "Legt für jeden Source Key, für den es noch keinen Inhalt gibt, einen Inhalt nur mit Content Key und den gemappten Feldern an und ändert nie bestehende Inhalte." }, naming: { title: "Name und Collections", displayNameTemplate: "Vorlage des Anzeigenamens", displayNameTemplateHelp: "Feldpfade in geschweiften Klammern, etwa {titelnum} — {titel}; {titel:40} behält höchstens 40 Zeichen.", collections: "Ziel-Collections", collectionsHelp: "Ein Collection-Name pro Zeile, wie contenthub ihn zeigt; jeder Inhalt wird in jede abgelegt." }, routing: { title: "Collection-Routing", help: "Leitet eine Collection pro Inhalt ab: den Wert des Selektors, übersetzt; sonst den Treffer des ID-Musters in der Vorlage; sonst die Ersatz-Collection.", selector: "XPath", collectionMap: "Collection-Zuordnung", collectionMapHelp: "Eine pro Zeile: Wert = Collection-Name. Leer: der Wert ist der Name.", idPattern: "ID-Muster", collectionTemplate: "Collection-Vorlage", collectionTemplateHelp: "Mit {match} und {suffix}.", suffix: "Suffix", fallback: "Ersatz-Collection" }, titles: { title: "Title Contributions", help: "Schreibt Daten je Ausgabe auf den Title, dessen Content Key der Ausgabe-Code ist.", none: "Keine Title Contributions.", item: "Title Contribution {{index}}", remove: "Title Contribution {{index}} entfernen", add: "Title Contribution hinzufügen", selector: "XPath der Ausgabe-Elemente", selectorHelp: "Wählt die Elemente, die je die Daten einer Ausgabe tragen.", ausgabeCodeSelector: "XPath des Ausgabe-Codes", referenceSpecValues: "Reference-Spec-Werte", valueField: "Reference-Spec-Feld {{index}}", valueSelector: "XPath des Werts {{index}}", removeValue: "Reference-Spec-Wert {{index}} entfernen", addValue: "Reference-Spec-Wert hinzufügen", referenceFilterSelector: "XPath des Referenzfilters", intent: "Absicht", intents: { none: "Keine", exclude: "Ausschließen", replace: "Ersetzen", annotate: "Anmerken" }, intentTextSelector: "XPath des Absichtstexts", intentTextSelectorHelp: "Der Ersatz- oder Anmerkungstext." }, assets: { title: "Placeholder Assets", help: "Macht die Dateiverweise der Quelle zu mediahub-Assets ohne Datei.", none: "Keine Dateiverweise werden zu Placeholder Assets.", item: "Placeholder Assets {{index}}", remove: "Placeholder Assets {{index}} entfernen", add: "Placeholder Assets hinzufügen", selector: "XPath der Dateiverweise", selectorHelp: "Etwa .//grafik.", assetType: "Asset-Typ", keyParts: "Schlüsselteile", keyPartsHelp: "Ein XPath pro Zeile, relativ zum Verweis; ihre Werte, mit / verbunden, bilden den Schlüssel des Assets.", nameSelector: "XPath des Namens", descriptionSelector: "XPath der Beschreibung", metadata: "Metadaten", metadataHelp: "Eine pro Zeile: Metadatenfeld = XPath.", folderRoot: "Wurzelordner", folderPathSelector: "XPath des Ordnerpfads", folderPathSelectorHelp: "Der Pfad der Datei, als Ordner unter dem Wurzelordner gespiegelt." } }, It = { start: "Import starten", empty: "In diesem Workspace lief noch kein Import.", profile: "Importprofil", startedBy: "Gestartet von", started: "Gestartet", ended: "Beendet", matched: "Gefunden", created: "Angelegt", problems: "Probleme", planned: "Geplante Releases", corrected: "Korrigiert", kept: "Beibehalten", unchanged: "Unverändert", loadMore: "Mehr laden", phase: { queued: "Wartet", reading: "Liest", writing: "Schreibt", cancelling: "Wird abgebrochen" }, outcome: { succeeded: "Erfolgreich", succeeded_with_problems: "Erfolgreich mit Problemen", failed: "Fehlgeschlagen", cancelled: "Abgebrochen" }, progressTitle: "Fortschritt", phaseLong: { reading: "Liest die Quelldatei", writing: "Schreibt das Change Set in contenthub" }, progressOf: "{{done}} von {{total}} Einträgen", progressUnknown: "Zählt die Einträge…", queuedBody: "Er wartet, bis der laufende Import des Workspace beendet ist.", failedTitle: "Der Import ist fehlgeschlagen", cancelledBody: "{{person}} hat ihn abgebrochen. Das Change Set, das er geöffnet hatte, wurde verworfen.", cancellingBody: "{{person}} hat den Abbruch angefordert. Er hält beim nächsten Eintrag an.", problemsBody_one: "{{count}} Quellversion konnte nicht gespeichert werden und wurde übersprungen. Das Change Set bleibt erhalten, damit die Redaktion den Rest korrigiert.", problemsBody_other: "{{count}} Quellversionen konnten nicht gespeichert werden und wurden übersprungen. Das Change Set bleibt erhalten, damit die Redaktion den Rest korrigiert.", details: "Details", effectiveDate: "Stichtag", source: "Quelle", sourceValue: "{{reference}}, {{date}}", none: "Keine", changeSet: "Change Set", counts: "Zahlen", releases: "Verwendete Releases", releaseOf: "{{name}}, Release {{number}}", mapping: "Mapping", entitySet: "Entity Set", cancel: "Import abbrechen", cancelTitle: "Diesen Import abbrechen?", cancelMessage: "Er hält beim nächsten Eintrag an, und das Change Set, das er geöffnet hat, wird verworfen. Das lässt sich nicht rückgängig machen.", cancelConfirm: "Import abbrechen", keepRunning: "Weiterlaufen lassen", cancelFailed: "importhub hat den Import nicht abgebrochen: {{message}}", itemProblems: "Probleme je Eintrag", noItemProblems: "Keine Probleme.", noMatchingProblems: "Kein Problem passt.", searchSourceKey: "Nach Quellschlüssel suchen", filterMapping: "Nach Mapping filtern", allMappings: "Alle Mappings ({{count}})", mappingCount: "{{name}} ({{count}})", problemCount: "{{matching}} von {{total}}", sourceKey: "Quellschlüssel", field: "Feld", reason: "Grund", wholeVersion: "Die ganze Quellversion", noSourceKey: "Kein Quellschlüssel", subtitle: "Gestartet von {{person}}, {{time}}", outcomeColumn: "Ergebnis", someone: "Jemand", mappings: "Mappings" }, Pt = { title: "Import starten", fileCard: "Profil und Quelldatei", profile: "Importprofil", profileHelp: "Nur Profile mit einem Release stehen zur Wahl: Ein Import verwendet das neueste Release, nie einen Entwurf.", profileOption: "{{name}} (Release {{number}})", file: "Quelldatei", fileHelp: "Eine XML-Datei. Sie geht direkt in den Speicher von importhub.", dropHint: "XML-Datei hierher ziehen", dragActive: "Zum Hochladen loslassen", chooseFile: "Datei wählen", uploading: "{{name}} wird hochgeladen", uploaded: "{{name}} ist hochgeladen.", uploadFailed: "Das Hochladen von {{name}} ist fehlgeschlagen: {{message}}", notXml: "{{name}} ist keine XML-Datei.", datesCard: "Daten", datesHelp: "Für eine Datei ohne Daten: Ihre datierten Inhalte übernehmen diese. Ein Datum aus der Datei geht immer vor.", effectiveDate: "Stichtag", effectiveDateHelp: "Der Tag, an dem die geplanten Releases beginnen.", sourceDate: "Quelle: Datum", sourceReference: "Quelle: Fundstelle", sourceReferenceHelp: "Wie die Veröffentlichung zitiert wird, etwa „BGBl. 2026 I Nr. 270“.", sourceIncomplete: "Eine Quelle braucht Datum und Fundstelle.", profileRequired: "Wählen Sie ein Importprofil.", consentTitle: "Der Import handelt in Ihrem Namen", consent: "Mit dem Start erhält importhub für bis zu 24 Stunden Zugriff in Ihrem Namen. Damit liest importhub Blueprints in blueprinthub, legt Platzhalter-Assets in mediahub an und schreibt das Change Set des Imports in contenthub, mit Ihren Rechten und unter Ihrem Namen. Der Zugriff endet, wenn der Import endet.", refused: "importhub hat den Import nicht gestartet", notAllowed: "Sie dürfen Importe ansehen, aber nicht starten.", noProfiles: "Noch kein Importprofil hat ein Release. Ein Admin muss erst eines freigeben." }, Rt = { title: "API-Schlüssel", subtitle: "Schlüssel, mit denen Pipelines und nächtliche Lieferungen Importe ohne eine Person starten und verfolgen.", new: "Neuer API-Schlüssel", empty: "Dieser Workspace hat noch keinen importhub-API-Schlüssel.", importersOnly: "Nur Importierende verwalten API-Schlüssel. Bitten Sie eine Workspace-Administration um Importrechte, um einen zu erstellen oder zu widerrufen.", prefix: "Präfix", owner: "Inhaber", created: "Erstellt", expires: "Läuft ab", never: "Nie", nameHelp: "Wofür der Schlüssel ist, etwa „Nächtliche gesetz-Lieferung“.", nameRequired: "Geben Sie dem Schlüssel einen Namen.", nameTooLong: "Der Name ist länger als {{max}} Zeichen.", expiresOn: "Läuft ab am", expiresOnHelp: "Der Schlüssel funktioniert bis zum Ende dieses Tages. Leer lassen für einen Schlüssel, der nicht abläuft.", expiryPast: "Wählen Sie heute oder einen späteren Tag.", consentTitle: "Der Schlüssel handelt in Ihrem Namen", consent: "Wer den Schlüssel hat, kann in diesem Workspace Importe in Ihrem Namen starten und verfolgen: Diese Importe lesen Blueprints in blueprinthub, legen Platzhalter-Assets in mediahub an und schreiben ihre Change Sets in contenthub, mit Ihren Rechten, und nennen Sie als Startende. Dafür hält importhub einen dauerhaften Delegation Grant in Ihrem Namen, der endet, wenn der Schlüssel abläuft oder widerrufen wird.", createFailed: "Der API-Schlüssel konnte nicht erstellt werden.", secretTitle: "Kopieren Sie das Geheimnis jetzt", secret: "Geheimnis", secretOnce: "Es wird nur dieses eine Mal angezeigt: importhub speichert es nicht, und niemand kann es erneut anzeigen. Senden Sie es als „Authorization: Bearer <secret>“.", copySecret: "Geheimnis kopieren", done: "Fertig", revoke: "Widerrufen", revokeKey: "{{name}} widerrufen", revokeTitle: "{{name}} widerrufen?", revokeMessage: "Der Schlüssel „{{name}}“ funktioniert sofort nicht mehr, und ein damit laufender Import schlägt fehl. importhub gibt den Delegation Grant frei, den es für den Schlüssel hält. Das lässt sich nicht rückgängig machen.", revokeFailed: "Der API-Schlüssel konnte nicht widerrufen werden." }, wt = {
|
|
16
16
|
section: tt,
|
|
17
17
|
startPage: nt,
|
|
18
18
|
changeSet: it,
|
|
@@ -34,36 +34,38 @@ const tt = { imports: { title: "Importe", empty: "In diesem Workspace gibt es no
|
|
|
34
34
|
history: yt,
|
|
35
35
|
compare: St,
|
|
36
36
|
editor: vt,
|
|
37
|
-
imports:
|
|
38
|
-
startImport:
|
|
39
|
-
}, wt = { imports: { title: "Imports", empty: "No Imports in this workspace yet." }, profiles: { title: "Import Profiles", summary_zero: "No Import Profiles in this workspace yet.", summary_one: "This workspace has one Import Profile.", summary_other: "This workspace has {{count}} Import Profiles." }, mappings: { title: "Mappings", empty: "No Mappings in this workspace yet." }, entitySets: { title: "Entity Sets", summary_zero: "No Entity Sets in this workspace yet.", summary_one: "This workspace has one Entity Set.", summary_other: "This workspace has {{count}} Entity Sets." }, processors: { title: "Processors", summary_zero: "importhub offers no Processors.", summary_one: "importhub offers one Processor.", summary_other: "importhub offers {{count}} Processors." } }, Et = { loading: "Loading…", error: "This could not be loaded. Try again in a moment." }, Ct = { open: "Open the Change Set in contenthub" }, kt = { cancel: "Cancel", delete: "Delete", create: "Create", save: "Save", apply: "Apply", close: "Close" }, Mt = { name: "Name", description: "Description" }, Tt = { column: "Validity", valid: "Valid", invalid: "Invalid", invalidTitle: "This configuration is invalid and cannot be released:" }, Ft = { column: "Latest Release", number: "Release {{number}}", none: "No Release yet", state: { none: "Not released yet", differs: "Draft differs from Release {{number}}", current: "Release {{number}} is current" } }, Dt = { nameTaken: "Another one already has this name.", nameRequired: "A name is required.", failed: "It could not be created. Try again in a moment." }, xt = { failed: "The changes could not be saved." }, At = { title: "Details", actions: "Actions" }, Nt = { moveUp: "Move {{name}} up", moveDown: "Move {{name}} down", remove: "Remove {{name}}" }, zt = { new: "New Import Profile", empty: "No Import Profiles in this workspace yet.", general: "General", entitySet: "Entity Set", entitySetHelp: "The external character entities the Source File is read with.", noEntitySet: "None", autoPublish: "Auto-publish", autoPublishHelp: "Publish the Change Set of an Import that succeeds without Item Problems.", deleteOnSuccess: "Delete the Source File on success", deleteOnSuccessHelp: "Delete the Source File as soon as an Import succeeds without Item Problems, instead of after the retention period.", preprocessors: "Preprocessors", mappings: "Mappings", postProcessors: "Post-processors", noPreprocessors: "No Preprocessors: the Source File is mapped as it is.", noPostProcessors: "No Post-processors.", noMappings: "It includes no Mapping yet.", addPreprocessor: "Add Preprocessor", addPostProcessor: "Add Post-processor", addMapping: "Add Mapping", missingMapping: "A Mapping that no longer exists", delete: "Delete Import Profile", deleteTitle: "Delete {{name}}?", deleteMessage: "The Import Profile is deleted, and no Import can run it any more. Imports it ran keep their record." }, Ht = { empty: "importhub offers no Processors.", kindColumn: "Kind", targetColumn: "Configured on", settingsColumn: "Settings", noSettings: "No settings", kind: { preprocessor: "Preprocessor", post_processor: "Post-processor" }, target: { source_file: "Import Profile", rich_text_field: "Rich-text field of a Mapping" }, unknown: "Not in the catalogue", settingsOf: "Settings of {{name}}", configure: "Configure {{name}}", viewSettings: "Settings of {{name}}", settingsCount_zero: "No settings set", settingsCount_one: "One setting", settingsCount_other: "{{count}} settings" }, Kt = { new: "New Mapping", empty: "No Mappings in this workspace yet.", general: "General", blueprint: "Target Blueprint", release: "Blueprint Release", blueprintId: "Blueprint ID", releaseId: "Blueprint Release ID", idsHelp: "As blueprinthub names them.", newRelease: "New Blueprint Release", newReleaseId: "New Blueprint Release ID", elementSelector: "Element selector", elementSelectorHelp: "The XPath selecting the elements that each become one Content.", sourceKeySelector: "Source Key selector", sourceKeyTemplate: "Source Key template", sourceKeyTemplateHelp: "XPath expressions in braces, such as {ancestor::gesetz/@refid}-{@nr}; wins over the selector.", fieldCount_zero: "It maps no field yet. Field mappings are edited in the Mapping editor.", fieldCount_one: "It maps one field. Field mappings are edited in the Mapping editor.", fieldCount_other: "It maps {{count}} fields. Field mappings are edited in the Mapping editor.", target: "Target", move: "Move to another Release", moveTitle: "Move to another Blueprint Release", check: "Check", checkFailed: "The Release could not be checked.", nothingLost: "Every mapped field path exists in this Release.", lost_one: "One mapped path does not exist in this Release:", lost_other: "{{count}} mapped paths do not exist in this Release:", lostFields: "Field paths", lostReleaseSpec: "Release Spec fields", moveConfirm: "Move", includedBy: "Import Profiles that include it", noProfiles: "No Import Profile includes it.", delete: "Delete Mapping", deleteTitle: "Delete {{name}}?", deleteMessage: "The Mapping is deleted. importhub refuses while an Import Profile includes it." }, Ot = { new: "New Entity Set", empty: "No Entity Sets in this workspace yet.", general: "General", entities: "Entities", entity: "Entity", noEntities: "It defines no entity yet.", entityName: "Entity {{index}}", entityText: "Stands for (entity {{index}})", addEntity: "Add entity", removeEntity: "Remove entity {{index}}", delete: "Delete Entity Set", deleteTitle: "Delete {{name}}?", deleteMessage: "The Entity Set is deleted. importhub refuses while an Import Profile names it." }, Bt = { settings: "Settings", history: "History" }, _t = { action: "Cut Release", title: "Cut a Release", confirm: "Cut Release", message: "The saved draft is released as Release {{number}}. Real Imports run it from their next Start.", unchanged: "The draft is the same as Release {{number}}: there is nothing to release.", unsaved: "Unsaved changes on this page are not part of the Release. Save them first to release them.", profilesIntro: "These Import Profiles include the Mapping and take the Release at their next Import:", profiles: "Import Profiles that take this Release", noProfiles: "No Import Profile includes the Mapping yet.", refused: "importhub did not cut the Release:", failed: "The Release could not be cut. Try again in a moment.", done: "Release {{number}} is cut.", doneBody: "Real Imports run it from their next Start." }, Vt = { hint: "Every save is a Revision. Choose two to compare them side by side.", none: "No Revisions yet.", loadMore: "Load older Revisions", columns: { revision: "Revision", release: "Release", savedBy: "Saved by", savedAt: "Saved" }, draft: "Draft", revision: "Earlier draft", revisionOf: "Revision of {{time}}", restoredFrom: "Restored from {{revision}}", cutBy: "Cut by {{name}}, {{time}}.", unknownPerson: "Someone no longer in the workspace", restore: "Restore as draft", restoreTitle: "Restore {{revision}}?", restoreConfirm: "Restore", restoreMessage: "Its content is saved as a new draft. Real Imports keep running the latest Release until you cut another.", restoreFailed: "It could not be restored.", olderRelease: "{{release}} was cut by {{name}}, {{time}}, from an older Revision: load older Revisions to see it.", earlierRevision: "An earlier Revision" }, Wt = { title: "Comparison", between: "{{from}} compared with {{to}}", field: "Field", same: "The two Revisions are the same.", differing_one: "One field differs.", differing_other: "{{count}} fields differ.", status: { unchanged: "Unchanged", added: "Added", removed: "Removed", changed: "Changed" }, absent: "Not set", missingEntitySet: "An Entity Set that no longer exists", yes: "Yes", no: "No" }, Lt = { tabs: { fields: "Fields", versions: "Source Key & Source Versions", output: "Output" }, reasonsHere: "importhub found this wrong here:", tree: { label: "Fields of the Blueprint Release", mapped: "mapped", unmapped: "not mapped", invalid: "invalid", toggle: "Show or hide the fields of {{label}}", outside: "Mapped, not in this Release", noLookup: "This host cannot read the Blueprint Release's fields, so only the fields the Mapping maps are listed.", loadFailed: "The Blueprint Release's fields could not be read.", selectField: "Select a field to map it." }, field: { title: "Field mapping", notMapped: "The Mapping does not map this field.", map: "Map this field", remove: "Remove mapping", selector: "XPath", selectorHelp: "Relative to the element; a fieldset's children relative to the fieldset's.", type: "Type", optional: "Optional", optionalHelp: "An element without it is not an error.", dateFormat: "Date format", dateFormatHelp: "A Go time layout, such as 02.01.2006; ISO dates (2006-01-02) when empty.", dateFormats: "Further date formats", dateFormatsHelp: "One Go time layout per line, tried in order after the date format.", autoDetectDateFormat: "Detect common date formats", numberLocale: "Number format", locale: { de: "German (1.234,56)", en: "English (1,234.56)", ch: "Swiss (1'234.56)" }, stripCurrency: "Strip currency symbols", skipInvalid: "Skip invalid values", skipInvalidHelp: "A value that cannot be read leaves the field empty instead of reporting a problem.", selectOptions: "Select options", selectOptionsHelp: "One per line: key = label, such as 0 = Gesetz.", textWrapperElement: "Text wrapper element", ignoreElements: "Ignored elements", passThroughElements: "Pass-through elements", elementsHelp: "One element name per line.", normalizeWhitespace: "Normalize whitespace", convertNewlinesToBreaks: "Turn newlines into line breaks", richTextMore: "Node and mark mappings and the other rich-text settings are in Advanced (JSON).", refBlueprintId: "Referenced Blueprint ID", refIdTemplate: "Reference ID template", refIdTemplateHelp: "XPath expressions in braces; it must build the target's Source Key.", refIdExtractPattern: "Reference ID extract pattern", refIdExtractSeparator: "Reference ID separator", refIdExtractSeparatorHelp: "Joins the pattern's groups; - when left out.", concatSelectors: "Concatenated XPaths", concatSelectorsHelp: "One XPath per line, joined in order.", normalizeUnicode: "Normalize Unicode", childrenHelp: "Its fields are mapped on their own: select them in the tree.", elementBlueprintMap: "Blueprint by element", elementBlueprintMapHelp: "One per line: element name = referenced Blueprint ID, for a selector matching several elements.", elementRefIdTemplateMap: "Reference ID template by element", elementRefIdTemplateMapHelp: "One per line: element name = reference ID template." }, json: { title: "Advanced (JSON)", help: "The field mapping's full xmlmapper settings. Keys the form above has no input for are kept when you save.", label: "Field mapping as JSON", apply: "Apply JSON", notJson: "This is not valid JSON.", notObject: "A field mapping is a JSON object.", unapplied: "Not applied yet: Apply JSON puts it into the form, and Save saves it." }, sourceKey: { title: "Source Key extraction", help: "The Source Key's selector and template are under Settings.", extractPattern: "Extract pattern", extractPatternHelp: "A regular expression applied to each placeholder's value; its groups replace a value it matches.", extractSeparator: "Extract separator", extractSeparatorHelp: "Joins the groups; - while left unset. Emptied once set, it joins them with nothing.", normalize: "Remove all whitespace from the Source Key" }, versionMatch: { title: "Version Match", help: "A Source Version matches an existing Release whose values are all equal. Unset, each element is a single Source Version, compared with Main's head.", validityPeriod: "Compare the Validity Period", releaseSpecFields: "Release Spec fields to compare", noReleaseSpecFields: "The Release has no Release Spec fields.", contentFields: "Content fields to compare", noContentFields: "The Mapping maps no field yet." }, validityPeriod: { title: "Validity Period", validFrom: "Valid from XPath", validTo: "Valid to XPath", validToHelp: "Empty for open-ended.", dateFormats: "Date formats", dateFormatsHelp: "One Go time layout per line, tried in order; ISO dates when empty." }, releaseSpec: { title: "Release Spec sources", none: "No Release Spec value is read from the source.", field: "Release Spec field {{index}}", selector: "XPath {{index}}", remove: "Remove Release Spec source {{index}}", add: "Add Release Spec source" }, changedVersion: { title: "Changed Version", label: "When a Source Version matches a Release but its mapped data differs", help: "Correct when nothing is chosen.", correct: "Correct: a Planned Release that Supersedes the matched one", keep: "Keep the existing Release", fail: "Fail the Import" }, stub: { title: "Stub Mapping", label: "Stub Mapping", help: "Creates Content holding only the Content Key and the fields it maps for each Source Key no Content has yet, and never changes existing Content." }, naming: { title: "Name and Collections", displayNameTemplate: "Display-name template", displayNameTemplateHelp: "Field paths in braces, such as {titelnum} — {titel}.", collections: "Target Collections", collectionsHelp: "One Collection key per line; every Content is filed into each." }, routing: { title: "Collection routing", help: "Derives one Collection per Content: the selector's value, mapped; else the ID pattern's match in the template; else the fallback.", selector: "XPath", collectionMap: "Collection map", collectionMapHelp: "One per line: value = Collection key. Empty: the value is the key.", idPattern: "ID pattern", collectionTemplate: "Collection template", collectionTemplateHelp: "With {match} and {suffix}.", suffix: "Suffix", fallback: "Fallback Collection" }, titles: { title: "Title Contributions", help: "Writes per-Ausgabe data onto the Title whose Content Key is the Ausgabe code.", none: "No Title Contributions.", item: "Title Contribution {{index}}", remove: "Remove Title Contribution {{index}}", add: "Add Title Contribution", selector: "Ausgabe elements XPath", selectorHelp: "Selects the elements that carry one Ausgabe's data each.", ausgabeCodeSelector: "Ausgabe code XPath", referenceSpecValues: "Reference Spec values", valueField: "Reference Spec field {{index}}", valueSelector: "Value XPath {{index}}", removeValue: "Remove Reference Spec value {{index}}", addValue: "Add Reference Spec value", referenceFilterSelector: "Reference filter XPath", intent: "Intent", intents: { none: "None", exclude: "Exclude", replace: "Replace", annotate: "Annotate" }, intentTextSelector: "Intent text XPath", intentTextSelectorHelp: "The replacement or annotation text." }, assets: { title: "Placeholder Assets", help: "Turns the file references the source names into mediahub assets without a file.", none: "No file references become Placeholder Assets.", item: "Placeholder Assets {{index}}", remove: "Remove Placeholder Assets {{index}}", add: "Add Placeholder Assets", selector: "File references XPath", selectorHelp: "Such as .//grafik.", assetType: "Asset type", keyParts: "Key parts", keyPartsHelp: "One XPath per line, relative to the reference; their values joined by / form the asset's key.", nameSelector: "Name XPath", descriptionSelector: "Description XPath", metadata: "Metadata", metadataHelp: "One per line: metadata field = XPath.", folderRoot: "Folder root", folderPathSelector: "Folder path XPath", folderPathSelectorHelp: "The file's path, mirrored as folders under the root." } }, qt = { start: "Start Import", empty: "No Import has run in this workspace yet.", profile: "Import Profile", startedBy: "Started by", started: "Started", ended: "Ended", matched: "Matched", created: "Created", problems: "Problems", planned: "Planned Releases", corrected: "Corrected", kept: "Kept", unchanged: "Unchanged", loadMore: "Load more", phase: { queued: "Queued", reading: "Reading", writing: "Writing", cancelling: "Cancelling" }, outcome: { succeeded: "Succeeded", succeeded_with_problems: "Succeeded with problems", failed: "Failed", cancelled: "Cancelled" }, progressTitle: "Progress", phaseLong: { reading: "Reading the Source File", writing: "Writing the Change Set in contenthub" }, progressOf: "{{done}} of {{total}} items", progressUnknown: "Counting the items…", queuedBody: "It waits until the workspace's running Import has ended.", failedTitle: "The Import failed", cancelledBody: "{{person}} cancelled it. The Change Set it opened was discarded.", cancellingBody: "{{person}} asked to cancel it. It stops at its next item.", problemsBody_one: "{{count}} Source Version could not be saved and was skipped. Its Change Set is kept, for editors to fix the rest.", problemsBody_other: "{{count}} Source Versions could not be saved and were skipped. Its Change Set is kept, for editors to fix the rest.", details: "Details", effectiveDate: "Effective date", source: "Source", sourceValue: "{{reference}}, {{date}}", none: "None", changeSet: "Change Set", counts: "Counts", releases: "Releases it ran with", releaseOf: "{{name}}, Release {{number}}", mapping: "Mapping", entitySet: "Entity Set", cancel: "Cancel Import", cancelTitle: "Cancel this Import?", cancelMessage: "It stops at its next item, and the Change Set it opened is discarded. This cannot be undone.", cancelConfirm: "Cancel Import", keepRunning: "Keep running", cancelFailed: "importhub did not cancel the Import: {{message}}", itemProblems: "Item Problems", noItemProblems: "No Item Problems.", noMatchingProblems: "No Item Problem matches.", searchSourceKey: "Search by Source Key", filterMapping: "Filter by Mapping", allMappings: "All Mappings ({{count}})", mappingCount: "{{name}} ({{count}})", problemCount: "{{matching}} of {{total}}", sourceKey: "Source Key", field: "Field", reason: "Reason", wholeVersion: "The whole Source Version", noSourceKey: "No Source Key", subtitle: "Started by {{person}}, {{time}}", outcomeColumn: "Outcome", someone: "Someone", mappings: "Mappings" }, Xt = { title: "Start an Import", fileCard: "Profile and Source File", profile: "Import Profile", profileHelp: "Only Profiles with a Release are offered: an Import runs the latest Release, never a draft.", profileOption: "{{name}} (Release {{number}})", file: "Source File", fileHelp: "One XML file. It goes straight to importhub's storage.", dropHint: "Drag an XML file here", dragActive: "Drop to upload", chooseFile: "Choose file", uploading: "Uploading {{name}}", uploaded: "{{name}} is uploaded.", uploadFailed: "The upload of {{name}} failed: {{message}}", notXml: "{{name}} is not an XML file.", datesCard: "Dates", datesHelp: "For a file that gives no dates: its Dated Content takes these. A date the file gives always wins.", effectiveDate: "Effective date", effectiveDateHelp: "The day the Planned Releases start.", sourceDate: "Source: date", sourceReference: "Source: reference", sourceReferenceHelp: "How the publication is cited, such as “BGBl. 2026 I Nr. 270”.", sourceIncomplete: "A Source needs both its date and its reference.", profileRequired: "Choose an Import Profile.", consentTitle: "The Import acts as you", consent: "Starting it grants importhub delegated access in your name for up to 24 hours. With it, importhub reads Blueprints in blueprinthub, creates Placeholder Assets in mediahub and writes the Import's Change Set in contenthub, with your rights and named as you. The access ends when the Import ends.", refused: "importhub did not start the Import", notAllowed: "You may look at Imports, but not start them.", noProfiles: "No Import Profile has a Release yet. An admin releases one first." }, $t = {
|
|
40
|
-
section: wt,
|
|
37
|
+
imports: It,
|
|
38
|
+
startImport: Pt,
|
|
39
|
+
apiKeys: Rt
|
|
40
|
+
}, kt = { imports: { title: "Imports", empty: "No Imports in this workspace yet." }, profiles: { title: "Import Profiles", summary_zero: "No Import Profiles in this workspace yet.", summary_one: "This workspace has one Import Profile.", summary_other: "This workspace has {{count}} Import Profiles." }, mappings: { title: "Mappings", empty: "No Mappings in this workspace yet." }, entitySets: { title: "Entity Sets", summary_zero: "No Entity Sets in this workspace yet.", summary_one: "This workspace has one Entity Set.", summary_other: "This workspace has {{count}} Entity Sets." }, processors: { title: "Processors", summary_zero: "importhub offers no Processors.", summary_one: "importhub offers one Processor.", summary_other: "importhub offers {{count}} Processors." } }, Et = { loading: "Loading…", error: "This could not be loaded. Try again in a moment." }, Ct = { open: "Open the Change Set in contenthub" }, Tt = { cancel: "Cancel", delete: "Delete", create: "Create", save: "Save", apply: "Apply", close: "Close" }, Mt = { name: "Name", description: "Description" }, Dt = { column: "Validity", valid: "Valid", invalid: "Invalid", invalidTitle: "This configuration is invalid and cannot be released:" }, Ft = { column: "Latest Release", number: "Release {{number}}", none: "No Release yet", state: { none: "Not released yet", differs: "Draft differs from Release {{number}}", current: "Release {{number}} is current" } }, xt = { nameTaken: "Another one already has this name.", nameRequired: "A name is required.", failed: "It could not be created. Try again in a moment." }, At = { failed: "The changes could not be saved." }, Nt = { title: "Details", actions: "Actions" }, zt = { moveUp: "Move {{name}} up", moveDown: "Move {{name}} down", remove: "Remove {{name}}" }, Ht = { new: "New Import Profile", empty: "No Import Profiles in this workspace yet.", general: "General", entitySet: "Entity Set", entitySetHelp: "The external character entities the Source File is read with.", noEntitySet: "None", autoPublish: "Auto-publish", autoPublishHelp: "Publish the Change Set of an Import that succeeds without Item Problems.", deleteOnSuccess: "Delete the Source File on success", deleteOnSuccessHelp: "Delete the Source File as soon as an Import succeeds without Item Problems, instead of after the retention period.", preprocessors: "Preprocessors", mappings: "Mappings", postProcessors: "Post-processors", noPreprocessors: "No Preprocessors: the Source File is mapped as it is.", noPostProcessors: "No Post-processors.", noMappings: "It includes no Mapping yet.", addPreprocessor: "Add Preprocessor", addPostProcessor: "Add Post-processor", addMapping: "Add Mapping", missingMapping: "A Mapping that no longer exists", delete: "Delete Import Profile", deleteTitle: "Delete {{name}}?", deleteMessage: "The Import Profile is deleted, and no Import can run it any more. Imports it ran keep their record." }, Ot = { empty: "importhub offers no Processors.", kindColumn: "Kind", targetColumn: "Configured on", settingsColumn: "Settings", noSettings: "No settings", kind: { preprocessor: "Preprocessor", post_processor: "Post-processor" }, target: { source_file: "Import Profile", rich_text_field: "Rich-text field of a Mapping" }, unknown: "Not in the catalogue", settingsOf: "Settings of {{name}}", configure: "Configure {{name}}", viewSettings: "Settings of {{name}}", settingsCount_zero: "No settings set", settingsCount_one: "One setting", settingsCount_other: "{{count}} settings" }, Kt = { new: "New Mapping", empty: "No Mappings in this workspace yet.", general: "General", blueprint: "Target Blueprint", release: "Blueprint Release", blueprintId: "Blueprint ID", releaseId: "Blueprint Release ID", idsHelp: "As blueprinthub names them.", newRelease: "New Blueprint Release", newReleaseId: "New Blueprint Release ID", elementSelector: "Element selector", elementSelectorHelp: "The XPath selecting the elements that each become one Content.", sourceKeySelector: "Source Key selector", sourceKeyTemplate: "Source Key template", sourceKeyTemplateHelp: "XPath expressions in braces, such as {ancestor::gesetz/@refid}-{@nr}; wins over the selector.", fieldCount_zero: "It maps no field yet. Field mappings are edited in the Mapping editor.", fieldCount_one: "It maps one field. Field mappings are edited in the Mapping editor.", fieldCount_other: "It maps {{count}} fields. Field mappings are edited in the Mapping editor.", target: "Target", move: "Move to another Release", moveTitle: "Move to another Blueprint Release", check: "Check", checkFailed: "The Release could not be checked.", nothingLost: "Every mapped field path exists in this Release.", lost_one: "One mapped path does not exist in this Release:", lost_other: "{{count}} mapped paths do not exist in this Release:", lostFields: "Field paths", lostReleaseSpec: "Release Spec fields", moveConfirm: "Move", includedBy: "Import Profiles that include it", noProfiles: "No Import Profile includes it.", delete: "Delete Mapping", deleteTitle: "Delete {{name}}?", deleteMessage: "The Mapping is deleted. importhub refuses while an Import Profile includes it." }, Bt = { new: "New Entity Set", empty: "No Entity Sets in this workspace yet.", general: "General", entities: "Entities", entity: "Entity", noEntities: "It defines no entity yet.", entityName: "Entity {{index}}", entityText: "Stands for (entity {{index}})", addEntity: "Add entity", removeEntity: "Remove entity {{index}}", delete: "Delete Entity Set", deleteTitle: "Delete {{name}}?", deleteMessage: "The Entity Set is deleted. importhub refuses while an Import Profile names it." }, _t = { settings: "Settings", history: "History" }, Wt = { action: "Cut Release", title: "Cut a Release", confirm: "Cut Release", message: "The saved draft is released as Release {{number}}. Real Imports run it from their next Start.", unchanged: "The draft is the same as Release {{number}}: there is nothing to release.", unsaved: "Unsaved changes on this page are not part of the Release. Save them first to release them.", profilesIntro: "These Import Profiles include the Mapping and take the Release at their next Import:", profiles: "Import Profiles that take this Release", noProfiles: "No Import Profile includes the Mapping yet.", refused: "importhub did not cut the Release:", failed: "The Release could not be cut. Try again in a moment.", done: "Release {{number}} is cut.", doneBody: "Real Imports run it from their next Start." }, Vt = { hint: "Every save is a Revision. Choose two to compare them side by side.", none: "No Revisions yet.", loadMore: "Load older Revisions", columns: { revision: "Revision", release: "Release", savedBy: "Saved by", savedAt: "Saved" }, draft: "Draft", revision: "Earlier draft", revisionOf: "Revision of {{time}}", restoredFrom: "Restored from {{revision}}", cutBy: "Cut by {{name}}, {{time}}.", unknownPerson: "Someone no longer in the workspace", restore: "Restore as draft", restoreTitle: "Restore {{revision}}?", restoreConfirm: "Restore", restoreMessage: "Its content is saved as a new draft. Real Imports keep running the latest Release until you cut another.", restoreFailed: "It could not be restored.", olderRelease: "{{release}} was cut by {{name}}, {{time}}, from an older Revision: load older Revisions to see it.", earlierRevision: "An earlier Revision" }, Lt = { title: "Comparison", between: "{{from}} compared with {{to}}", field: "Field", same: "The two Revisions are the same.", differing_one: "One field differs.", differing_other: "{{count}} fields differ.", status: { unchanged: "Unchanged", added: "Added", removed: "Removed", changed: "Changed" }, absent: "Not set", missingEntitySet: "An Entity Set that no longer exists", yes: "Yes", no: "No" }, qt = { tabs: { fields: "Fields", versions: "Source Key & Source Versions", output: "Output" }, reasonsHere: "importhub found this wrong here:", tree: { label: "Fields of the Blueprint Release", mapped: "mapped", unmapped: "not mapped", invalid: "invalid", toggle: "Show or hide the fields of {{label}}", outside: "Mapped, not in this Release", noLookup: "This host cannot read the Blueprint Release's fields, so only the fields the Mapping maps are listed.", loadFailed: "The Blueprint Release's fields could not be read.", selectField: "Select a field to map it." }, field: { title: "Field mapping", notMapped: "The Mapping does not map this field.", map: "Map this field", remove: "Remove mapping", selector: "XPath", selectorHelp: "Relative to the element; a fieldset's children relative to the fieldset's.", type: "Type", optional: "Optional", optionalHelp: "An element without it is not an error.", dateFormat: "Date format", dateFormatHelp: "A Go time layout, such as 02.01.2006; ISO dates (2006-01-02) when empty.", dateFormats: "Further date formats", dateFormatsHelp: "One Go time layout per line, tried in order after the date format.", autoDetectDateFormat: "Detect common date formats", numberLocale: "Number format", locale: { de: "German (1.234,56)", en: "English (1,234.56)", ch: "Swiss (1'234.56)" }, stripCurrency: "Strip currency symbols", skipInvalid: "Skip invalid values", skipInvalidHelp: "A value that cannot be read leaves the field empty instead of reporting a problem.", selectOptions: "Select options", selectOptionsHelp: "One per line: key = label, such as 0 = Gesetz.", textWrapperElement: "Text wrapper element", ignoreElements: "Ignored elements", passThroughElements: "Pass-through elements", elementsHelp: "One element name per line.", normalizeWhitespace: "Normalize whitespace", convertNewlinesToBreaks: "Turn newlines into line breaks", richTextMore: "Node and mark mappings and the other rich-text settings are in Advanced (JSON).", refBlueprintId: "Referenced Blueprint ID", refIdTemplate: "Reference ID template", refIdTemplateHelp: "XPath expressions in braces; it must build the target's Source Key.", refIdExtractPattern: "Reference ID extract pattern", refIdExtractSeparator: "Reference ID separator", refIdExtractSeparatorHelp: "Joins the pattern's groups; - when left out.", concatSelectors: "Concatenated XPaths", concatSelectorsHelp: "One XPath per line, joined in order.", normalizeUnicode: "Normalize Unicode", childrenHelp: "Its fields are mapped on their own: select them in the tree.", elementBlueprintMap: "Blueprint by element", elementBlueprintMapHelp: "One per line: element name = referenced Blueprint ID, for a selector matching several elements.", elementRefIdTemplateMap: "Reference ID template by element", elementRefIdTemplateMapHelp: "One per line: element name = reference ID template." }, json: { title: "Advanced (JSON)", help: "The field mapping's full xmlmapper settings. Keys the form above has no input for are kept when you save.", label: "Field mapping as JSON", apply: "Apply JSON", notJson: "This is not valid JSON.", notObject: "A field mapping is a JSON object.", unapplied: "Not applied yet: Apply JSON puts it into the form, and Save saves it." }, sourceKey: { title: "Source Key extraction", help: "The Source Key's selector and template are under Settings.", extractPattern: "Extract pattern", extractPatternHelp: "A regular expression applied to each placeholder's value; its groups replace a value it matches.", extractSeparator: "Extract separator", extractSeparatorHelp: "Joins the groups; - while left unset. Emptied once set, it joins them with nothing.", normalize: "Remove all whitespace from the Source Key" }, versionMatch: { title: "Version Match", help: "A Source Version matches an existing Release whose values are all equal. Unset, each element is a single Source Version, compared with Main's head.", validityPeriod: "Compare the Validity Period", releaseSpecFields: "Release Spec fields to compare", noReleaseSpecFields: "The Release has no Release Spec fields.", contentFields: "Content fields to compare", noContentFields: "The Mapping maps no field yet." }, validityPeriod: { title: "Validity Period", validFrom: "Valid from XPath", validTo: "Valid to XPath", validToHelp: "Empty for open-ended.", dateFormats: "Date formats", dateFormatsHelp: "One Go time layout per line, tried in order; ISO dates when empty." }, releaseSpec: { title: "Release Spec sources", none: "No Release Spec value is read from the source.", field: "Release Spec field {{index}}", selector: "XPath {{index}}", remove: "Remove Release Spec source {{index}}", add: "Add Release Spec source" }, changedVersion: { title: "Changed Version", label: "When a Source Version matches a Release but its mapped data differs", help: "Correct when nothing is chosen.", correct: "Correct: a Planned Release that Supersedes the matched one", keep: "Keep the existing Release", fail: "Fail the Import" }, stub: { title: "Stub Mapping", label: "Stub Mapping", help: "Creates Content holding only the Content Key and the fields it maps for each Source Key no Content has yet, and never changes existing Content." }, naming: { title: "Name and Collections", displayNameTemplate: "Display-name template", displayNameTemplateHelp: "Field paths in braces, such as {titelnum} — {titel}; {titel:40} keeps at most 40 characters.", collections: "Target Collections", collectionsHelp: "One Collection name per line, as contenthub shows it; every Content is filed into each." }, routing: { title: "Collection routing", help: "Derives one Collection per Content: the selector's value, mapped; else the ID pattern's match in the template; else the fallback.", selector: "XPath", collectionMap: "Collection map", collectionMapHelp: "One per line: value = Collection name. Empty: the value is the name.", idPattern: "ID pattern", collectionTemplate: "Collection template", collectionTemplateHelp: "With {match} and {suffix}.", suffix: "Suffix", fallback: "Fallback Collection" }, titles: { title: "Title Contributions", help: "Writes per-Ausgabe data onto the Title whose Content Key is the Ausgabe code.", none: "No Title Contributions.", item: "Title Contribution {{index}}", remove: "Remove Title Contribution {{index}}", add: "Add Title Contribution", selector: "Ausgabe elements XPath", selectorHelp: "Selects the elements that carry one Ausgabe's data each.", ausgabeCodeSelector: "Ausgabe code XPath", referenceSpecValues: "Reference Spec values", valueField: "Reference Spec field {{index}}", valueSelector: "Value XPath {{index}}", removeValue: "Remove Reference Spec value {{index}}", addValue: "Add Reference Spec value", referenceFilterSelector: "Reference filter XPath", intent: "Intent", intents: { none: "None", exclude: "Exclude", replace: "Replace", annotate: "Annotate" }, intentTextSelector: "Intent text XPath", intentTextSelectorHelp: "The replacement or annotation text." }, assets: { title: "Placeholder Assets", help: "Turns the file references the source names into mediahub assets without a file.", none: "No file references become Placeholder Assets.", item: "Placeholder Assets {{index}}", remove: "Remove Placeholder Assets {{index}}", add: "Add Placeholder Assets", selector: "File references XPath", selectorHelp: "Such as .//grafik.", assetType: "Asset type", keyParts: "Key parts", keyPartsHelp: "One XPath per line, relative to the reference; their values joined by / form the asset's key.", nameSelector: "Name XPath", descriptionSelector: "Description XPath", metadata: "Metadata", metadataHelp: "One per line: metadata field = XPath.", folderRoot: "Folder root", folderPathSelector: "Folder path XPath", folderPathSelectorHelp: "The file's path, mirrored as folders under the root." } }, Xt = { start: "Start Import", empty: "No Import has run in this workspace yet.", profile: "Import Profile", startedBy: "Started by", started: "Started", ended: "Ended", matched: "Matched", created: "Created", problems: "Problems", planned: "Planned Releases", corrected: "Corrected", kept: "Kept", unchanged: "Unchanged", loadMore: "Load more", phase: { queued: "Queued", reading: "Reading", writing: "Writing", cancelling: "Cancelling" }, outcome: { succeeded: "Succeeded", succeeded_with_problems: "Succeeded with problems", failed: "Failed", cancelled: "Cancelled" }, progressTitle: "Progress", phaseLong: { reading: "Reading the Source File", writing: "Writing the Change Set in contenthub" }, progressOf: "{{done}} of {{total}} items", progressUnknown: "Counting the items…", queuedBody: "It waits until the workspace's running Import has ended.", failedTitle: "The Import failed", cancelledBody: "{{person}} cancelled it. The Change Set it opened was discarded.", cancellingBody: "{{person}} asked to cancel it. It stops at its next item.", problemsBody_one: "{{count}} Source Version could not be saved and was skipped. Its Change Set is kept, for editors to fix the rest.", problemsBody_other: "{{count}} Source Versions could not be saved and were skipped. Its Change Set is kept, for editors to fix the rest.", details: "Details", effectiveDate: "Effective date", source: "Source", sourceValue: "{{reference}}, {{date}}", none: "None", changeSet: "Change Set", counts: "Counts", releases: "Releases it ran with", releaseOf: "{{name}}, Release {{number}}", mapping: "Mapping", entitySet: "Entity Set", cancel: "Cancel Import", cancelTitle: "Cancel this Import?", cancelMessage: "It stops at its next item, and the Change Set it opened is discarded. This cannot be undone.", cancelConfirm: "Cancel Import", keepRunning: "Keep running", cancelFailed: "importhub did not cancel the Import: {{message}}", itemProblems: "Item Problems", noItemProblems: "No Item Problems.", noMatchingProblems: "No Item Problem matches.", searchSourceKey: "Search by Source Key", filterMapping: "Filter by Mapping", allMappings: "All Mappings ({{count}})", mappingCount: "{{name}} ({{count}})", problemCount: "{{matching}} of {{total}}", sourceKey: "Source Key", field: "Field", reason: "Reason", wholeVersion: "The whole Source Version", noSourceKey: "No Source Key", subtitle: "Started by {{person}}, {{time}}", outcomeColumn: "Outcome", someone: "Someone", mappings: "Mappings" }, Gt = { title: "Start an Import", fileCard: "Profile and Source File", profile: "Import Profile", profileHelp: "Only Profiles with a Release are offered: an Import runs the latest Release, never a draft.", profileOption: "{{name}} (Release {{number}})", file: "Source File", fileHelp: "One XML file. It goes straight to importhub's storage.", dropHint: "Drag an XML file here", dragActive: "Drop to upload", chooseFile: "Choose file", uploading: "Uploading {{name}}", uploaded: "{{name}} is uploaded.", uploadFailed: "The upload of {{name}} failed: {{message}}", notXml: "{{name}} is not an XML file.", datesCard: "Dates", datesHelp: "For a file that gives no dates: its Dated Content takes these. A date the file gives always wins.", effectiveDate: "Effective date", effectiveDateHelp: "The day the Planned Releases start.", sourceDate: "Source: date", sourceReference: "Source: reference", sourceReferenceHelp: "How the publication is cited, such as “BGBl. 2026 I Nr. 270”.", sourceIncomplete: "A Source needs both its date and its reference.", profileRequired: "Choose an Import Profile.", consentTitle: "The Import acts as you", consent: "Starting it grants importhub delegated access in your name for up to 24 hours. With it, importhub reads Blueprints in blueprinthub, creates Placeholder Assets in mediahub and writes the Import's Change Set in contenthub, with your rights and named as you. The access ends when the Import ends.", refused: "importhub did not start the Import", notAllowed: "You may look at Imports, but not start them.", noProfiles: "No Import Profile has a Release yet. An admin releases one first." }, $t = { title: "API keys", subtitle: "Keys with which pipelines and nightly feeds start and follow Imports without a person.", new: "New API key", empty: "This workspace has no importhub API key yet.", importersOnly: "Only importers manage API keys. Ask a workspace admin for importer rights to create or revoke one.", prefix: "Prefix", owner: "Owner", created: "Created", expires: "Expires", never: "Never", nameHelp: "What the key is for, such as “Nightly gesetz feed”.", nameRequired: "Give the key a name.", nameTooLong: "The name is longer than {{max}} characters.", expiresOn: "Expires on", expiresOnHelp: "The key stops working at the end of this day. Leave it empty for a key that does not expire.", expiryPast: "Pick today or a day ahead.", consentTitle: "The key acts as you", consent: "Whoever holds the key can start and follow Imports in this workspace as you: those Imports read Blueprints in blueprinthub, create Placeholder Assets in mediahub and write their Change Sets in contenthub with your rights, and name you as their starter. For that, importhub holds a standing Delegation Grant in your name, which ends when the key expires or is revoked.", createFailed: "The API key could not be created.", secretTitle: "Copy the secret now", secret: "Secret", secretOnce: "It is shown only this once: importhub does not keep it, and nobody can show it again. Send it as “Authorization: Bearer <secret>”.", copySecret: "Copy secret", done: "Done", revoke: "Revoke", revokeKey: "Revoke {{name}}", revokeTitle: "Revoke {{name}}?", revokeMessage: "The key “{{name}}” stops working at once, and an Import running with it fails. importhub releases the Delegation Grant it holds for the key. This cannot be undone.", revokeFailed: "The API key could not be revoked." }, jt = {
|
|
41
|
+
section: kt,
|
|
41
42
|
startPage: Et,
|
|
42
43
|
changeSet: Ct,
|
|
43
|
-
common:
|
|
44
|
+
common: Tt,
|
|
44
45
|
fields: Mt,
|
|
45
|
-
validity:
|
|
46
|
+
validity: Dt,
|
|
46
47
|
release: Ft,
|
|
47
48
|
delete: { inUse: "It cannot be deleted while these Import Profiles use it:", failed: "It could not be deleted. Try again in a moment." },
|
|
48
|
-
create:
|
|
49
|
-
save:
|
|
50
|
-
rail:
|
|
51
|
-
order:
|
|
52
|
-
profiles:
|
|
53
|
-
processors:
|
|
49
|
+
create: xt,
|
|
50
|
+
save: At,
|
|
51
|
+
rail: Nt,
|
|
52
|
+
order: zt,
|
|
53
|
+
profiles: Ht,
|
|
54
|
+
processors: Ot,
|
|
54
55
|
mappings: Kt,
|
|
55
|
-
entitySets:
|
|
56
|
-
tabs:
|
|
57
|
-
cut:
|
|
56
|
+
entitySets: Bt,
|
|
57
|
+
tabs: _t,
|
|
58
|
+
cut: Wt,
|
|
58
59
|
history: Vt,
|
|
59
|
-
compare:
|
|
60
|
-
editor:
|
|
61
|
-
imports:
|
|
62
|
-
startImport:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
compare: Lt,
|
|
61
|
+
editor: qt,
|
|
62
|
+
imports: Xt,
|
|
63
|
+
startImport: Gt,
|
|
64
|
+
apiKeys: $t
|
|
65
|
+
}, I = "importhub-ui", Bn = {
|
|
66
|
+
en: { [I]: jt },
|
|
67
|
+
de: { [I]: wt }
|
|
68
|
+
}, _n = [
|
|
67
69
|
"imports",
|
|
68
70
|
"profiles",
|
|
69
71
|
"mappings",
|
|
@@ -79,15 +81,15 @@ const Qt = {
|
|
|
79
81
|
mappings: "/settings/mappings",
|
|
80
82
|
entitySets: "/settings/entity-sets",
|
|
81
83
|
processors: "/settings/processors"
|
|
82
|
-
},
|
|
84
|
+
}, Ut = {
|
|
83
85
|
paths: Qt,
|
|
84
86
|
changeSetHref: () => null
|
|
85
|
-
},
|
|
86
|
-
function
|
|
87
|
-
return /* @__PURE__ */ n(
|
|
87
|
+
}, Ce = Re(Ut);
|
|
88
|
+
function Wn({ host: e, children: t }) {
|
|
89
|
+
return /* @__PURE__ */ n(Ce.Provider, { value: e, children: t });
|
|
88
90
|
}
|
|
89
91
|
function j() {
|
|
90
|
-
return we(
|
|
92
|
+
return we(Ce);
|
|
91
93
|
}
|
|
92
94
|
const p = {
|
|
93
95
|
all: (e) => ["importhub", e],
|
|
@@ -103,6 +105,8 @@ const p = {
|
|
|
103
105
|
import: (e, t) => [...p.imports(e), t],
|
|
104
106
|
/** An Import's Item Problems under a filter, one entry per filter. */
|
|
105
107
|
itemProblems: (e, t, i, a) => [...p.import(e, t), "itemProblems", i, a],
|
|
108
|
+
/** The workspace's importhub API keys. */
|
|
109
|
+
apiKeys: (e) => [...p.all(e), "apiKeys"],
|
|
106
110
|
blueprints: (e) => [...p.all(e), "blueprints"],
|
|
107
111
|
blueprintReleases: (e, t) => [...p.blueprints(e), t, "releases"],
|
|
108
112
|
/** A Blueprint Release with its field tree; a Release never changes once cut. */
|
|
@@ -119,8 +123,16 @@ const p = {
|
|
|
119
123
|
s
|
|
120
124
|
]
|
|
121
125
|
};
|
|
122
|
-
function
|
|
123
|
-
const { t } = w(
|
|
126
|
+
function Zt() {
|
|
127
|
+
const { t: e } = w(I);
|
|
128
|
+
return /* @__PURE__ */ n(Be, { py: "12", children: /* @__PURE__ */ n(_e, { "aria-label": e("startPage.loading") }) });
|
|
129
|
+
}
|
|
130
|
+
function Jt() {
|
|
131
|
+
const { t: e } = w(I);
|
|
132
|
+
return /* @__PURE__ */ n(B, { px: "8", py: "6", children: /* @__PURE__ */ n(ve, { icon: /* @__PURE__ */ n(qe, { size: 32, "aria-hidden": !0 }), header: e("startPage.error") }) });
|
|
133
|
+
}
|
|
134
|
+
function Yt(e = []) {
|
|
135
|
+
const { t } = w(I), [i, a] = Je(), s = /* @__PURE__ */ new Set(["history", ...e.map((o) => o.value)]), r = i.get("tab") ?? "", l = s.has(r) ? r : "settings", d = (o) => {
|
|
124
136
|
const u = new URLSearchParams(i);
|
|
125
137
|
o !== "settings" ? u.set("tab", o) : u.delete("tab"), a(u, { replace: !0 });
|
|
126
138
|
}, c = /* @__PURE__ */ n(U.Root, { value: l, onValueChange: (o) => d(o.value), children: /* @__PURE__ */ g(U.List, { children: [
|
|
@@ -130,7 +142,7 @@ function Gt(e = []) {
|
|
|
130
142
|
] }) });
|
|
131
143
|
return [l, c];
|
|
132
144
|
}
|
|
133
|
-
function
|
|
145
|
+
function en({
|
|
134
146
|
open: e,
|
|
135
147
|
onClose: t,
|
|
136
148
|
title: i,
|
|
@@ -138,8 +150,8 @@ function Ut({
|
|
|
138
150
|
onDelete: s,
|
|
139
151
|
onDeleted: r
|
|
140
152
|
}) {
|
|
141
|
-
const { t: l } = w(
|
|
142
|
-
|
|
153
|
+
const { t: l } = w(I), { paths: d } = j(), c = X({ mutationFn: s, onSuccess: r }), { reset: o } = c;
|
|
154
|
+
G(() => {
|
|
143
155
|
e && o();
|
|
144
156
|
}, [e, o]);
|
|
145
157
|
const u = c.error instanceof Ye ? c.error : null;
|
|
@@ -151,7 +163,7 @@ function Ut({
|
|
|
151
163
|
header: i,
|
|
152
164
|
lazyMount: !0,
|
|
153
165
|
unmountOnExit: !0,
|
|
154
|
-
footer: /* @__PURE__ */ g(
|
|
166
|
+
footer: /* @__PURE__ */ g($, { gap: "2", children: [
|
|
155
167
|
/* @__PURE__ */ n(x, { variant: "outline", onClick: t, children: l("common.cancel") }),
|
|
156
168
|
/* @__PURE__ */ n(
|
|
157
169
|
x,
|
|
@@ -165,54 +177,46 @@ function Ut({
|
|
|
165
177
|
}
|
|
166
178
|
)
|
|
167
179
|
] }),
|
|
168
|
-
children: /* @__PURE__ */ g(
|
|
169
|
-
/* @__PURE__ */ n(
|
|
170
|
-
u ? /* @__PURE__ */ n(
|
|
180
|
+
children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
181
|
+
/* @__PURE__ */ n(R, { children: a }),
|
|
182
|
+
u ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: l("delete.inUse"), children: /* @__PURE__ */ n(A.Root, { ps: "4", children: u.importProfiles.map((y) => /* @__PURE__ */ n(A.Item, { children: /* @__PURE__ */ n(ue, { asChild: !0, children: /* @__PURE__ */ n(me, { to: he(d, "profiles", y.id), children: y.name }) }) }, y.id)) }) }) : c.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: l("delete.failed") }) : null
|
|
171
183
|
] })
|
|
172
184
|
}
|
|
173
185
|
);
|
|
174
186
|
}
|
|
175
|
-
function
|
|
176
|
-
const { t
|
|
177
|
-
return /* @__PURE__ */ n(Be, { py: "12", children: /* @__PURE__ */ n(_e, { "aria-label": e("startPage.loading") }) });
|
|
178
|
-
}
|
|
179
|
-
function Jt() {
|
|
180
|
-
const { t: e } = w(P);
|
|
181
|
-
return /* @__PURE__ */ n(B, { px: "8", py: "6", children: /* @__PURE__ */ n(ve, { icon: /* @__PURE__ */ n(qe, { size: 32, "aria-hidden": !0 }), header: e("startPage.error") }) });
|
|
182
|
-
}
|
|
183
|
-
function Yt({ state: e }) {
|
|
184
|
-
const { t } = w(P);
|
|
187
|
+
function tn({ state: e }) {
|
|
188
|
+
const { t } = w(I);
|
|
185
189
|
if (!e.latestRelease)
|
|
186
190
|
return /* @__PURE__ */ n(Y, { tone: "warning", label: t("release.state.none") });
|
|
187
191
|
const i = e.latestRelease.number;
|
|
188
192
|
return e.draftDiffersFromRelease ? /* @__PURE__ */ n(Y, { tone: "warning", label: t("release.state.differs", { number: i }) }) : /* @__PURE__ */ n(Y, { tone: "success", label: t("release.state.current", { number: i }) });
|
|
189
193
|
}
|
|
190
|
-
function
|
|
194
|
+
function Te() {
|
|
191
195
|
return j().canConfigure ?? !1;
|
|
192
196
|
}
|
|
193
|
-
function
|
|
194
|
-
const { t } = w(
|
|
195
|
-
return e.valid ? null : /* @__PURE__ */ n(
|
|
197
|
+
function Me({ validity: e }) {
|
|
198
|
+
const { t } = w(I);
|
|
199
|
+
return e.valid ? null : /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: t("validity.invalidTitle"), children: /* @__PURE__ */ n(A.Root, { ps: "4", children: e.reasons.map((i) => /* @__PURE__ */ n(A.Item, { children: i.message }, `${i.code}:${i.path}:${i.message}`)) }) });
|
|
196
200
|
}
|
|
197
|
-
const
|
|
201
|
+
const nn = (e) => ({
|
|
198
202
|
[e("validity.valid")]: "success",
|
|
199
203
|
[e("validity.invalid")]: "danger"
|
|
200
204
|
});
|
|
201
|
-
function
|
|
202
|
-
const { t } = w(
|
|
205
|
+
function rn({ validity: e }) {
|
|
206
|
+
const { t } = w(I);
|
|
203
207
|
return /* @__PURE__ */ n(
|
|
204
|
-
|
|
208
|
+
Ie,
|
|
205
209
|
{
|
|
206
210
|
value: e.valid ? t("validity.valid") : t("validity.invalid"),
|
|
207
|
-
toneMap:
|
|
211
|
+
toneMap: nn(t),
|
|
208
212
|
detail: e.valid ? null : e.reasons.map((i) => i.message).join(" ")
|
|
209
213
|
}
|
|
210
214
|
);
|
|
211
215
|
}
|
|
212
|
-
function
|
|
216
|
+
function Vn(e, t) {
|
|
213
217
|
return e.latestRelease ? t("release.number", { number: e.latestRelease.number }) : t("release.none");
|
|
214
218
|
}
|
|
215
|
-
function
|
|
219
|
+
function sn({
|
|
216
220
|
open: e,
|
|
217
221
|
onClose: t,
|
|
218
222
|
client: i,
|
|
@@ -223,7 +227,7 @@ function nn({
|
|
|
223
227
|
unsaved: d,
|
|
224
228
|
onCut: c
|
|
225
229
|
}) {
|
|
226
|
-
const { t: o } = w(
|
|
230
|
+
const { t: o } = w(I), { workspaceId: u } = H(), y = ae(), h = X({
|
|
227
231
|
mutationFn: () => i.cutRelease(a, s, l.draftRevisionId),
|
|
228
232
|
onSuccess: c,
|
|
229
233
|
// A refusal means the page's draft is not importhub's (somebody saved
|
|
@@ -235,14 +239,14 @@ function nn({
|
|
|
235
239
|
});
|
|
236
240
|
}
|
|
237
241
|
}), { reset: S } = h;
|
|
238
|
-
|
|
242
|
+
G(() => {
|
|
239
243
|
e && S();
|
|
240
244
|
}, [e, S]);
|
|
241
|
-
const
|
|
245
|
+
const P = _({
|
|
242
246
|
queryKey: p.mappingImportProfiles(u, s),
|
|
243
247
|
queryFn: () => i.listMappingImportProfiles(s),
|
|
244
248
|
enabled: e && a === "mapping"
|
|
245
|
-
}), m = (l.latestRelease?.number ?? 0) + 1, f = l.latestRelease !== void 0 && !l.draftDiffersFromRelease,
|
|
249
|
+
}), m = (l.latestRelease?.number ?? 0) + 1, f = l.latestRelease !== void 0 && !l.draftDiffersFromRelease, T = r.valid && !f, D = h.error instanceof et ? h.error : null;
|
|
246
250
|
return /* @__PURE__ */ n(
|
|
247
251
|
oe,
|
|
248
252
|
{
|
|
@@ -251,47 +255,47 @@ function nn({
|
|
|
251
255
|
header: o("cut.title"),
|
|
252
256
|
lazyMount: !0,
|
|
253
257
|
unmountOnExit: !0,
|
|
254
|
-
footer: /* @__PURE__ */ g(
|
|
255
|
-
/* @__PURE__ */ n(x, { variant: "outline", onClick: t, children: o(
|
|
256
|
-
|
|
258
|
+
footer: /* @__PURE__ */ g($, { gap: "2", children: [
|
|
259
|
+
/* @__PURE__ */ n(x, { variant: "outline", onClick: t, children: o(T ? "common.cancel" : "common.close") }),
|
|
260
|
+
T ? /* @__PURE__ */ n(
|
|
257
261
|
x,
|
|
258
262
|
{
|
|
259
263
|
variant: "solid",
|
|
260
264
|
loading: h.isPending,
|
|
261
|
-
disabled:
|
|
265
|
+
disabled: D !== null,
|
|
262
266
|
onClick: () => h.mutate(),
|
|
263
267
|
children: o("cut.confirm")
|
|
264
268
|
}
|
|
265
269
|
) : null
|
|
266
270
|
] }),
|
|
267
|
-
children: /* @__PURE__ */ g(
|
|
271
|
+
children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
268
272
|
r.valid ? f ? /* @__PURE__ */ n(
|
|
269
|
-
|
|
273
|
+
E,
|
|
270
274
|
{
|
|
271
275
|
status: "info",
|
|
272
276
|
colorPalette: "info",
|
|
273
277
|
title: o("cut.unchanged", { number: l.latestRelease?.number })
|
|
274
278
|
}
|
|
275
279
|
) : /* @__PURE__ */ g(q, { children: [
|
|
276
|
-
/* @__PURE__ */ n(
|
|
277
|
-
d ? /* @__PURE__ */ n(
|
|
278
|
-
a === "mapping" ? /* @__PURE__ */ n(
|
|
279
|
-
] }) : /* @__PURE__ */ n(
|
|
280
|
-
|
|
280
|
+
/* @__PURE__ */ n(R, { children: o("cut.message", { number: m }) }),
|
|
281
|
+
d ? /* @__PURE__ */ n(E, { status: "warning", colorPalette: "warning", title: o("cut.unsaved") }) : null,
|
|
282
|
+
a === "mapping" ? /* @__PURE__ */ n(on, { query: P }) : null
|
|
283
|
+
] }) : /* @__PURE__ */ n(Me, { validity: r }),
|
|
284
|
+
D && r.valid ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: o("cut.refused"), children: D.validity && !D.validity.valid ? /* @__PURE__ */ n(A.Root, { ps: "4", children: D.validity.reasons.map((M) => /* @__PURE__ */ n(A.Item, { children: M.message }, `${M.code}:${M.path}:${M.message}`)) }) : D.message }) : h.isError && !D ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: o("cut.failed") }) : null
|
|
281
285
|
] })
|
|
282
286
|
}
|
|
283
287
|
);
|
|
284
288
|
}
|
|
285
|
-
function
|
|
289
|
+
function on({
|
|
286
290
|
query: e
|
|
287
291
|
}) {
|
|
288
|
-
const { t } = w(
|
|
289
|
-
return e.isError ? /* @__PURE__ */ n(
|
|
290
|
-
/* @__PURE__ */ n(
|
|
292
|
+
const { t } = w(I), { paths: i } = j();
|
|
293
|
+
return e.isError ? /* @__PURE__ */ n(R, { color: "fg.muted", children: t("startPage.error") }) : e.data ? e.data.length === 0 ? /* @__PURE__ */ n(R, { children: t("cut.noProfiles") }) : /* @__PURE__ */ g(C, { gap: "2", children: [
|
|
294
|
+
/* @__PURE__ */ n(R, { children: t("cut.profilesIntro") }),
|
|
291
295
|
/* @__PURE__ */ n(A.Root, { ps: "4", "aria-label": t("cut.profiles"), children: e.data.map((a) => /* @__PURE__ */ n(A.Item, { children: /* @__PURE__ */ n(ue, { asChild: !0, children: /* @__PURE__ */ n(me, { to: he(i, "profiles", a.id), children: a.name }) }) }, a.id)) })
|
|
292
|
-
] }) : /* @__PURE__ */ n(
|
|
296
|
+
] }) : /* @__PURE__ */ n(R, { color: "fg.muted", children: t("startPage.loading") });
|
|
293
297
|
}
|
|
294
|
-
function
|
|
298
|
+
function an({
|
|
295
299
|
client: e,
|
|
296
300
|
kind: t,
|
|
297
301
|
id: i,
|
|
@@ -299,7 +303,7 @@ function sn({
|
|
|
299
303
|
state: s,
|
|
300
304
|
unsaved: r
|
|
301
305
|
}) {
|
|
302
|
-
const { t: l } = w(
|
|
306
|
+
const { t: l } = w(I), { workspaceId: d } = H(), c = ae(), [o, u] = V(!1), [y, h] = V(null);
|
|
303
307
|
return {
|
|
304
308
|
railAction: /* @__PURE__ */ n(
|
|
305
309
|
Z.IconButton,
|
|
@@ -312,7 +316,7 @@ function sn({
|
|
|
312
316
|
}
|
|
313
317
|
),
|
|
314
318
|
dialog: /* @__PURE__ */ n(
|
|
315
|
-
|
|
319
|
+
sn,
|
|
316
320
|
{
|
|
317
321
|
open: o,
|
|
318
322
|
onClose: () => u(!1),
|
|
@@ -333,22 +337,22 @@ function sn({
|
|
|
333
337
|
}
|
|
334
338
|
}
|
|
335
339
|
),
|
|
336
|
-
notice: y === null ? null : /* @__PURE__ */ n(
|
|
340
|
+
notice: y === null ? null : /* @__PURE__ */ n(E, { status: "success", colorPalette: "success", title: l("cut.done", { number: y }), children: l("cut.doneBody") })
|
|
337
341
|
};
|
|
338
342
|
}
|
|
339
|
-
function
|
|
343
|
+
function De(e) {
|
|
340
344
|
const { blueprints: t } = j(), { workspaceId: i } = H(), a = [...new Set(e.filter(Boolean))].sort(), s = _({
|
|
341
345
|
queryKey: p.blueprints(i),
|
|
342
346
|
queryFn: () => t?.listBlueprints() ?? Promise.resolve([]),
|
|
343
347
|
enabled: t !== void 0
|
|
344
|
-
}), r =
|
|
348
|
+
}), r = Ve({
|
|
345
349
|
queries: a.map((o) => ({
|
|
346
350
|
queryKey: p.blueprintReleases(i, o),
|
|
347
351
|
queryFn: () => t?.listReleases(o) ?? Promise.resolve([]),
|
|
348
352
|
enabled: t !== void 0
|
|
349
353
|
}))
|
|
350
354
|
}), l = r.map((o) => o.data), d = r.map((o) => o.dataUpdatedAt).join(), c = a.join();
|
|
351
|
-
return
|
|
355
|
+
return W(
|
|
352
356
|
() => ({
|
|
353
357
|
available: t !== void 0,
|
|
354
358
|
blueprintName: (o) => s.data?.find((u) => u.id === o)?.name,
|
|
@@ -357,12 +361,12 @@ function Fe(e) {
|
|
|
357
361
|
[t, s.data, d, c]
|
|
358
362
|
);
|
|
359
363
|
}
|
|
360
|
-
const
|
|
364
|
+
const ln = {
|
|
361
365
|
unchanged: "neutral",
|
|
362
366
|
added: "success",
|
|
363
367
|
removed: "danger",
|
|
364
368
|
changed: "warning"
|
|
365
|
-
},
|
|
369
|
+
}, dn = {
|
|
366
370
|
name: "fields.name",
|
|
367
371
|
description: "fields.description",
|
|
368
372
|
entities: "entitySets.entities",
|
|
@@ -379,7 +383,7 @@ const on = {
|
|
|
379
383
|
blueprint_id: "mappings.blueprintId",
|
|
380
384
|
blueprint_release_id: "mappings.releaseId"
|
|
381
385
|
};
|
|
382
|
-
function
|
|
386
|
+
function cn({
|
|
383
387
|
client: e,
|
|
384
388
|
kind: t,
|
|
385
389
|
id: i,
|
|
@@ -387,30 +391,30 @@ function ln({
|
|
|
387
391
|
toRevisionId: s,
|
|
388
392
|
labelOf: r
|
|
389
393
|
}) {
|
|
390
|
-
const { t: l } = w(
|
|
394
|
+
const { t: l } = w(I), { workspaceId: d } = H(), c = _({
|
|
391
395
|
queryKey: p.comparison(d, t, i, a, s),
|
|
392
396
|
queryFn: () => e.compareRevisions(t, i, a, s)
|
|
393
|
-
}), { format: o, blueprintIdsOnly: u } =
|
|
394
|
-
(f,
|
|
395
|
-
), S = h.filter((f) => f.status !== "unchanged").length,
|
|
396
|
-
return /* @__PURE__ */ n(B, { as: "section", "aria-label": l("compare.title"), children: /* @__PURE__ */ n(se, { title: l("compare.title"), children: /* @__PURE__ */ g(
|
|
397
|
-
/* @__PURE__ */ n(
|
|
398
|
-
c.isError ? /* @__PURE__ */ n(
|
|
397
|
+
}), { format: o, blueprintIdsOnly: u } = pn(e, t, c.data), y = (f) => u && f in pe ? pe[f] : dn[f], h = [...c.data?.fields ?? []].sort(
|
|
398
|
+
(f, T) => +(f.status === "unchanged") - +(T.status === "unchanged")
|
|
399
|
+
), S = h.filter((f) => f.status !== "unchanged").length, P = r(a), m = r(s);
|
|
400
|
+
return /* @__PURE__ */ n(B, { as: "section", "aria-label": l("compare.title"), children: /* @__PURE__ */ n(se, { title: l("compare.title"), children: /* @__PURE__ */ g(C, { gap: "3", children: [
|
|
401
|
+
/* @__PURE__ */ n(R, { children: l("compare.between", { from: P, to: m }) }),
|
|
402
|
+
c.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: l("startPage.error") }) : null,
|
|
399
403
|
c.data ? /* @__PURE__ */ g(q, { children: [
|
|
400
|
-
/* @__PURE__ */ n(
|
|
404
|
+
/* @__PURE__ */ n(R, { color: "fg.muted", children: S === 0 ? l("compare.same") : l("compare.differing", { count: S }) }),
|
|
401
405
|
/* @__PURE__ */ g(z.Root, { size: "sm", children: [
|
|
402
406
|
/* @__PURE__ */ n(z.Header, { children: /* @__PURE__ */ g(z.Row, { children: [
|
|
403
407
|
/* @__PURE__ */ n(z.ColumnHeader, { children: l("compare.field") }),
|
|
404
|
-
/* @__PURE__ */ n(z.ColumnHeader, { children:
|
|
408
|
+
/* @__PURE__ */ n(z.ColumnHeader, { children: P }),
|
|
405
409
|
/* @__PURE__ */ n(z.ColumnHeader, { children: m })
|
|
406
410
|
] }) }),
|
|
407
411
|
/* @__PURE__ */ n(z.Body, { children: h.map((f) => /* @__PURE__ */ g(z.Row, { verticalAlign: "top", children: [
|
|
408
|
-
/* @__PURE__ */ n(z.Cell, { as: "th", scope: "row", fontWeight: "normal", children: /* @__PURE__ */ g(
|
|
409
|
-
/* @__PURE__ */ n(
|
|
412
|
+
/* @__PURE__ */ n(z.Cell, { as: "th", scope: "row", fontWeight: "normal", children: /* @__PURE__ */ g(C, { gap: "1", align: "start", children: [
|
|
413
|
+
/* @__PURE__ */ n(R, { fontWeight: "medium", children: y(f.field) ? l(y(f.field)) : f.field }),
|
|
410
414
|
/* @__PURE__ */ n(
|
|
411
415
|
Y,
|
|
412
416
|
{
|
|
413
|
-
tone:
|
|
417
|
+
tone: ln[f.status],
|
|
414
418
|
label: l(`compare.status.${f.status}`)
|
|
415
419
|
}
|
|
416
420
|
)
|
|
@@ -419,15 +423,15 @@ function ln({
|
|
|
419
423
|
/* @__PURE__ */ n(z.Cell, { children: /* @__PURE__ */ n(fe, { text: o(f.field, "to") }) })
|
|
420
424
|
] }, f.field)) })
|
|
421
425
|
] })
|
|
422
|
-
] }) : c.isError ? null : /* @__PURE__ */ n(
|
|
426
|
+
] }) : c.isError ? null : /* @__PURE__ */ n(R, { color: "fg.muted", children: l("startPage.loading") })
|
|
423
427
|
] }) }) });
|
|
424
428
|
}
|
|
425
429
|
function fe({ text: e }) {
|
|
426
|
-
const { t } = w(
|
|
427
|
-
return e === null ? /* @__PURE__ */ n(
|
|
430
|
+
const { t } = w(I);
|
|
431
|
+
return e === null ? /* @__PURE__ */ n(R, { color: "fg.muted", children: t("compare.absent") }) : "plain" in e ? /* @__PURE__ */ n(R, { whiteSpace: "pre-wrap", children: e.plain }) : "code" in e ? /* @__PURE__ */ n(ee, { children: e.code }) : /* @__PURE__ */ n(ee, { display: "block", whiteSpace: "pre-wrap", p: "2", children: e.json });
|
|
428
432
|
}
|
|
429
|
-
function
|
|
430
|
-
const { t: a } = w(
|
|
433
|
+
function pn(e, t, i) {
|
|
434
|
+
const { t: a } = w(I), { workspaceId: s } = H(), r = t === "importProfile", l = _({
|
|
431
435
|
queryKey: p.mappings(s),
|
|
432
436
|
queryFn: () => e.listMappings(),
|
|
433
437
|
enabled: r
|
|
@@ -435,14 +439,14 @@ function dn(e, t, i) {
|
|
|
435
439
|
queryKey: p.entitySets(s),
|
|
436
440
|
queryFn: () => e.listEntitySets(),
|
|
437
441
|
enabled: r
|
|
438
|
-
}), c = t === "mapping" && i ? [i.from.content.blueprint_id, i.to.content.blueprint_id].map((h) => String(h ?? "")) : [], o =
|
|
442
|
+
}), c = t === "mapping" && i ? [i.from.content.blueprint_id, i.to.content.blueprint_id].map((h) => String(h ?? "")) : [], o = De(c), u = t === "mapping" && !o.available;
|
|
439
443
|
return { format: (h, S) => {
|
|
440
|
-
const
|
|
444
|
+
const P = i?.[S].content ?? {}, m = P[h];
|
|
441
445
|
if (m == null) return null;
|
|
442
446
|
if (r && h === "mapping_ids" && Array.isArray(m))
|
|
443
447
|
return m.length === 0 ? { plain: a("profiles.noMappings") } : {
|
|
444
448
|
plain: m.map(
|
|
445
|
-
(f) => l.data?.find((
|
|
449
|
+
(f) => l.data?.find((T) => T.id === f)?.content.name ?? a("profiles.missingMapping")
|
|
446
450
|
).join(`
|
|
447
451
|
`)
|
|
448
452
|
};
|
|
@@ -455,20 +459,20 @@ function dn(e, t, i) {
|
|
|
455
459
|
if (t === "mapping" && o.available && h === "blueprint_id")
|
|
456
460
|
return { plain: o.blueprintName(String(m)) ?? "…" };
|
|
457
461
|
if (t === "mapping" && o.available && h === "blueprint_release_id") {
|
|
458
|
-
const f = String(
|
|
462
|
+
const f = String(P.blueprint_id ?? "");
|
|
459
463
|
return { plain: o.releaseLabel(f, String(m)) ?? "…" };
|
|
460
464
|
}
|
|
461
465
|
return typeof m == "string" ? { plain: m === "" ? "—" : m } : typeof m == "boolean" ? { plain: a(m ? "compare.yes" : "compare.no") } : typeof m == "number" ? { plain: String(m) } : { json: JSON.stringify(m, null, 2) };
|
|
462
466
|
}, blueprintIdsOnly: u };
|
|
463
467
|
}
|
|
464
|
-
const
|
|
468
|
+
const un = "YYYY-MM-DD HH:mm", ie = (e) => String(e).padStart(2, "0");
|
|
465
469
|
function be(e) {
|
|
466
470
|
const t = new Date(e);
|
|
467
471
|
return Number.isNaN(t.getTime()) ? "" : `${t.getFullYear()}-${ie(t.getMonth() + 1)}-${ie(t.getDate())} ${ie(t.getHours())}:${ie(t.getMinutes())}`;
|
|
468
472
|
}
|
|
469
|
-
function
|
|
470
|
-
const { t: a } = w(
|
|
471
|
-
return
|
|
473
|
+
function mn(e, t, i) {
|
|
474
|
+
const { t: a } = w(I);
|
|
475
|
+
return W(
|
|
472
476
|
() => ({
|
|
473
477
|
of: (s) => {
|
|
474
478
|
if (s === i) return a("history.draft");
|
|
@@ -482,31 +486,31 @@ function pn(e, t, i) {
|
|
|
482
486
|
[a, e, t, i]
|
|
483
487
|
);
|
|
484
488
|
}
|
|
485
|
-
function
|
|
489
|
+
function hn({
|
|
486
490
|
client: e,
|
|
487
491
|
kind: t,
|
|
488
492
|
id: i,
|
|
489
493
|
draftRevisionId: a,
|
|
490
494
|
onRestored: s
|
|
491
495
|
}) {
|
|
492
|
-
const { t: r } = w(
|
|
496
|
+
const { t: r } = w(I), { workspaceId: l, members: d } = H(), c = Te(), o = Le({
|
|
493
497
|
queryKey: p.history(l, t, i),
|
|
494
498
|
queryFn: ({ pageParam: b }) => e.listHistory(t, i, b),
|
|
495
499
|
initialPageParam: "",
|
|
496
500
|
getNextPageParam: (b) => b.nextPageToken || void 0
|
|
497
|
-
}), u =
|
|
501
|
+
}), u = W(
|
|
498
502
|
() => (o.data?.pages ?? []).flatMap((b) => b.revisions),
|
|
499
503
|
[o.data]
|
|
500
|
-
), y =
|
|
504
|
+
), y = W(() => o.data?.pages[0]?.releases ?? [], [o.data]), h = mn(u, y, a), [S, P] = V(null), [m, f] = V([]), T = W(
|
|
501
505
|
() => Object.fromEntries(m.map((b) => [b, !0])),
|
|
502
506
|
[m]
|
|
503
|
-
),
|
|
504
|
-
const v = Object.fromEntries(
|
|
507
|
+
), D = (b) => f((F) => {
|
|
508
|
+
const v = Object.fromEntries(F.map((K) => [K, !0])), N = typeof b == "function" ? b(v) : b, O = Object.keys(N).filter((K) => N[K]), le = F.filter((K) => O.includes(K)), ne = O.filter((K) => !F.includes(K));
|
|
505
509
|
return [...le, ...ne].slice(-2);
|
|
506
|
-
}),
|
|
507
|
-
(b,
|
|
508
|
-
) : null,
|
|
509
|
-
const b = (v) => y.filter((N) => N.revisionId === v),
|
|
510
|
+
}), M = m.length === 2 ? [...m].sort(
|
|
511
|
+
(b, F) => u.findIndex((v) => v.id === F) - u.findIndex((v) => v.id === b)
|
|
512
|
+
) : null, Q = W(() => {
|
|
513
|
+
const b = (v) => y.filter((N) => N.revisionId === v), F = (v) => d.byId(v)?.displayName ?? r("history.unknownPerson");
|
|
510
514
|
return [
|
|
511
515
|
{
|
|
512
516
|
id: "revision",
|
|
@@ -529,15 +533,15 @@ function un({
|
|
|
529
533
|
cell: ({ row: v }) => {
|
|
530
534
|
const N = b(v.original.id);
|
|
531
535
|
return /* @__PURE__ */ n(
|
|
532
|
-
|
|
536
|
+
Ie,
|
|
533
537
|
{
|
|
534
|
-
value: N.length > 0 ? N.map((
|
|
538
|
+
value: N.length > 0 ? N.map((O) => r("release.number", { number: O.number })).join(", ") : null,
|
|
535
539
|
fallbackTone: "success",
|
|
536
540
|
detailColor: "fg.muted",
|
|
537
541
|
detail: N.length > 0 ? N.map(
|
|
538
|
-
(
|
|
539
|
-
name:
|
|
540
|
-
time: h.time(
|
|
542
|
+
(O) => r("history.cutBy", {
|
|
543
|
+
name: F(O.releasedBy),
|
|
544
|
+
time: h.time(O.releasedAt)
|
|
541
545
|
})
|
|
542
546
|
).join(" ") : null
|
|
543
547
|
}
|
|
@@ -548,20 +552,20 @@ function un({
|
|
|
548
552
|
id: "savedBy",
|
|
549
553
|
header: r("history.columns.savedBy"),
|
|
550
554
|
enableSorting: !1,
|
|
551
|
-
cell: ({ row: v }) => /* @__PURE__ */ n(Ae, { name:
|
|
555
|
+
cell: ({ row: v }) => /* @__PURE__ */ n(Ae, { name: F(v.original.savedBy) })
|
|
552
556
|
},
|
|
553
557
|
{
|
|
554
558
|
id: "savedAt",
|
|
555
559
|
header: r("history.columns.savedAt"),
|
|
556
560
|
enableSorting: !1,
|
|
557
561
|
size: 140,
|
|
558
|
-
cell: ({ row: v }) => /* @__PURE__ */ n(Ne, { value: v.original.savedAt, format:
|
|
562
|
+
cell: ({ row: v }) => /* @__PURE__ */ n(Ne, { value: v.original.savedAt, format: un })
|
|
559
563
|
},
|
|
560
564
|
{
|
|
561
565
|
id: "validity",
|
|
562
566
|
header: r("validity.column"),
|
|
563
567
|
enableSorting: !1,
|
|
564
|
-
cell: ({ row: v }) => /* @__PURE__ */ n(
|
|
568
|
+
cell: ({ row: v }) => /* @__PURE__ */ n(rn, { validity: v.original.validity })
|
|
565
569
|
},
|
|
566
570
|
{
|
|
567
571
|
id: "actions",
|
|
@@ -573,40 +577,40 @@ function un({
|
|
|
573
577
|
{
|
|
574
578
|
actions: [
|
|
575
579
|
{
|
|
576
|
-
icon:
|
|
580
|
+
icon: Ge,
|
|
577
581
|
label: r("history.restore"),
|
|
578
|
-
onClick: () =>
|
|
582
|
+
onClick: () => P(v.original)
|
|
579
583
|
}
|
|
580
584
|
]
|
|
581
585
|
}
|
|
582
586
|
) : null
|
|
583
587
|
}
|
|
584
588
|
];
|
|
585
|
-
}, [r, d, y, h, a, c]), L = (b) => d.byId(b)?.displayName ?? r("history.unknownPerson"), te = y.filter((b) => !u.some((
|
|
589
|
+
}, [r, d, y, h, a, c]), L = (b) => d.byId(b)?.displayName ?? r("history.unknownPerson"), te = y.filter((b) => !u.some((F) => F.id === b.revisionId));
|
|
586
590
|
return /* @__PURE__ */ g(q, { children: [
|
|
587
|
-
/* @__PURE__ */ n(B, { px: "8", py: "4", children: /* @__PURE__ */ g(
|
|
588
|
-
/* @__PURE__ */ n(
|
|
589
|
-
o.hasNextPage ? te.map((b) => /* @__PURE__ */ n(
|
|
591
|
+
/* @__PURE__ */ n(B, { px: "8", py: "4", children: /* @__PURE__ */ g(C, { gap: "1", children: [
|
|
592
|
+
/* @__PURE__ */ n(R, { color: "fg.muted", children: r("history.hint") }),
|
|
593
|
+
o.hasNextPage ? te.map((b) => /* @__PURE__ */ n(R, { color: "fg.muted", children: r("history.olderRelease", {
|
|
590
594
|
release: r("release.number", { number: b.number }),
|
|
591
595
|
name: L(b.releasedBy),
|
|
592
596
|
time: h.time(b.releasedAt)
|
|
593
597
|
}) }, b.id)) : null
|
|
594
598
|
] }) }),
|
|
595
|
-
o.isError ? /* @__PURE__ */ n(B, { px: "8", pb: "4", children: /* @__PURE__ */ n(
|
|
599
|
+
o.isError ? /* @__PURE__ */ n(B, { px: "8", pb: "4", children: /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: r("startPage.error") }) }) : null,
|
|
596
600
|
/* @__PURE__ */ n(
|
|
597
601
|
He,
|
|
598
602
|
{
|
|
599
|
-
columns:
|
|
603
|
+
columns: Q,
|
|
600
604
|
data: u,
|
|
601
605
|
loading: o.isLoading,
|
|
602
606
|
selectable: !0,
|
|
603
|
-
rowSelection:
|
|
604
|
-
onRowSelectionChange:
|
|
607
|
+
rowSelection: T,
|
|
608
|
+
onRowSelectionChange: D,
|
|
605
609
|
getRowId: (b) => b.id,
|
|
606
|
-
emptyState: /* @__PURE__ */ n(ve, { icon: /* @__PURE__ */ n(
|
|
610
|
+
emptyState: /* @__PURE__ */ n(ve, { icon: /* @__PURE__ */ n($e, { size: 32 }), header: r("history.none") })
|
|
607
611
|
}
|
|
608
612
|
),
|
|
609
|
-
o.hasNextPage ||
|
|
613
|
+
o.hasNextPage || M ? /* @__PURE__ */ n(B, { px: "8", py: "6", children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
610
614
|
o.hasNextPage ? /* @__PURE__ */ n(
|
|
611
615
|
x,
|
|
612
616
|
{
|
|
@@ -620,24 +624,24 @@ function un({
|
|
|
620
624
|
children: r("history.loadMore")
|
|
621
625
|
}
|
|
622
626
|
) : null,
|
|
623
|
-
|
|
624
|
-
|
|
627
|
+
M ? /* @__PURE__ */ n(
|
|
628
|
+
cn,
|
|
625
629
|
{
|
|
626
630
|
client: e,
|
|
627
631
|
kind: t,
|
|
628
632
|
id: i,
|
|
629
|
-
fromRevisionId:
|
|
630
|
-
toRevisionId:
|
|
633
|
+
fromRevisionId: M[0],
|
|
634
|
+
toRevisionId: M[1],
|
|
631
635
|
labelOf: h.of
|
|
632
636
|
}
|
|
633
637
|
) : null
|
|
634
638
|
] }) }) : null,
|
|
635
639
|
/* @__PURE__ */ n(
|
|
636
|
-
|
|
640
|
+
gn,
|
|
637
641
|
{
|
|
638
642
|
revision: S,
|
|
639
643
|
label: S ? h.of(S.id) : "",
|
|
640
|
-
onClose: () =>
|
|
644
|
+
onClose: () => P(null),
|
|
641
645
|
onRestore: (b) => e.restoreRevision(t, i, b.id, a),
|
|
642
646
|
onRestored: () => {
|
|
643
647
|
f([]), Promise.resolve(s?.()).catch(() => {
|
|
@@ -649,7 +653,7 @@ function un({
|
|
|
649
653
|
)
|
|
650
654
|
] });
|
|
651
655
|
}
|
|
652
|
-
function
|
|
656
|
+
function gn({
|
|
653
657
|
revision: e,
|
|
654
658
|
label: t,
|
|
655
659
|
onClose: i,
|
|
@@ -658,7 +662,7 @@ function mn({
|
|
|
658
662
|
kind: r,
|
|
659
663
|
id: l
|
|
660
664
|
}) {
|
|
661
|
-
const { t: d } = w(
|
|
665
|
+
const { t: d } = w(I), { workspaceId: c } = H(), o = ae(), u = e !== null, [y, h] = V({ revision: e, label: t });
|
|
662
666
|
e && e !== y.revision && h({ revision: e, label: t });
|
|
663
667
|
const S = X({
|
|
664
668
|
mutationFn: a,
|
|
@@ -669,10 +673,10 @@ function mn({
|
|
|
669
673
|
queryKey: p.configurations(c, r)
|
|
670
674
|
}), i();
|
|
671
675
|
}
|
|
672
|
-
}), { reset:
|
|
673
|
-
return
|
|
674
|
-
u &&
|
|
675
|
-
}, [u,
|
|
676
|
+
}), { reset: P } = S;
|
|
677
|
+
return G(() => {
|
|
678
|
+
u && P();
|
|
679
|
+
}, [u, P]), /* @__PURE__ */ n(
|
|
676
680
|
oe,
|
|
677
681
|
{
|
|
678
682
|
open: u,
|
|
@@ -680,7 +684,7 @@ function mn({
|
|
|
680
684
|
header: d("history.restoreTitle", { revision: y.label }),
|
|
681
685
|
lazyMount: !0,
|
|
682
686
|
unmountOnExit: !0,
|
|
683
|
-
footer: /* @__PURE__ */ g(
|
|
687
|
+
footer: /* @__PURE__ */ g($, { gap: "2", children: [
|
|
684
688
|
/* @__PURE__ */ n(x, { variant: "outline", onClick: i, children: d("common.cancel") }),
|
|
685
689
|
/* @__PURE__ */ n(
|
|
686
690
|
x,
|
|
@@ -692,42 +696,42 @@ function mn({
|
|
|
692
696
|
}
|
|
693
697
|
)
|
|
694
698
|
] }),
|
|
695
|
-
children: /* @__PURE__ */ g(
|
|
696
|
-
/* @__PURE__ */ n(
|
|
697
|
-
S.isError ? /* @__PURE__ */ n(
|
|
699
|
+
children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
700
|
+
/* @__PURE__ */ n(R, { children: d("history.restoreMessage") }),
|
|
701
|
+
S.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: d("history.restoreFailed"), children: S.error.message }) : null
|
|
698
702
|
] })
|
|
699
703
|
}
|
|
700
704
|
);
|
|
701
705
|
}
|
|
702
|
-
const
|
|
703
|
-
function
|
|
704
|
-
return !e || e === "/" ? "" : e.replace(/^\//, "").split("/").map((t) =>
|
|
706
|
+
const fn = (e) => e.replace(/_([a-z0-9])/g, (t, i) => i.toUpperCase());
|
|
707
|
+
function bn(e) {
|
|
708
|
+
return !e || e === "/" ? "" : e.replace(/^\//, "").split("/").map((t) => fn(t.replace(/~1/g, "/").replace(/~0/g, "~"))).join(".");
|
|
705
709
|
}
|
|
706
|
-
function
|
|
710
|
+
function yn(e) {
|
|
707
711
|
const t = /* @__PURE__ */ new Map();
|
|
708
712
|
for (const i of e) {
|
|
709
|
-
const a =
|
|
713
|
+
const a = bn(i.path);
|
|
710
714
|
if (!a) continue;
|
|
711
715
|
const s = t.get(a);
|
|
712
716
|
t.set(a, s ? `${s} ${i.message}` : i.message);
|
|
713
717
|
}
|
|
714
718
|
return t;
|
|
715
719
|
}
|
|
716
|
-
function
|
|
720
|
+
function Sn({
|
|
717
721
|
open: e,
|
|
718
722
|
onClose: t,
|
|
719
723
|
client: i,
|
|
720
724
|
mapping: a,
|
|
721
725
|
onMove: s
|
|
722
726
|
}) {
|
|
723
|
-
const { t: r } = w(
|
|
727
|
+
const { t: r } = w(I), l = ke({ defaultValues: { blueprintReleaseId: null } }), d = Ze({ control: l.control, name: "blueprintReleaseId" }) ?? "", c = X({
|
|
724
728
|
mutationFn: (m) => i.checkMappingBlueprintRelease(a.id, m)
|
|
725
729
|
}), o = X({ mutationFn: s, onSuccess: t }), { reset: u } = l, { reset: y } = c, { reset: h } = o;
|
|
726
|
-
|
|
730
|
+
G(() => {
|
|
727
731
|
e && (u({ blueprintReleaseId: null }), y(), h());
|
|
728
732
|
}, [e, u, y, h]);
|
|
729
|
-
const S = c.variables,
|
|
730
|
-
return
|
|
733
|
+
const S = c.variables, P = c.data && S === d ? c.data : null;
|
|
734
|
+
return G(() => {
|
|
731
735
|
S !== void 0 && S !== d && y();
|
|
732
736
|
}, [S, d, y]), /* @__PURE__ */ n(
|
|
733
737
|
oe,
|
|
@@ -737,7 +741,7 @@ function bn({
|
|
|
737
741
|
header: r("mappings.moveTitle"),
|
|
738
742
|
lazyMount: !0,
|
|
739
743
|
unmountOnExit: !0,
|
|
740
|
-
footer: /* @__PURE__ */ g(
|
|
744
|
+
footer: /* @__PURE__ */ g($, { gap: "2", children: [
|
|
741
745
|
/* @__PURE__ */ n(x, { variant: "outline", onClick: t, children: r("common.cancel") }),
|
|
742
746
|
/* @__PURE__ */ n(
|
|
743
747
|
x,
|
|
@@ -753,30 +757,30 @@ function bn({
|
|
|
753
757
|
x,
|
|
754
758
|
{
|
|
755
759
|
variant: "solid",
|
|
756
|
-
disabled: !
|
|
760
|
+
disabled: !P,
|
|
757
761
|
loading: o.isPending,
|
|
758
762
|
onClick: () => o.mutate(d),
|
|
759
763
|
children: r("mappings.moveConfirm")
|
|
760
764
|
}
|
|
761
765
|
)
|
|
762
766
|
] }),
|
|
763
|
-
children: /* @__PURE__ */ n(
|
|
764
|
-
/* @__PURE__ */ n(
|
|
765
|
-
c.isError ? /* @__PURE__ */ n(
|
|
766
|
-
|
|
767
|
-
o.isError ? /* @__PURE__ */ n(
|
|
767
|
+
children: /* @__PURE__ */ n(Ee, { ...l, children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
768
|
+
/* @__PURE__ */ n(vn, { mapping: a }),
|
|
769
|
+
c.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: r("mappings.checkFailed"), children: c.error.message }) : null,
|
|
770
|
+
P ? /* @__PURE__ */ n(In, { report: P }) : null,
|
|
771
|
+
o.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: r("save.failed"), children: o.error.message }) : null
|
|
768
772
|
] }) })
|
|
769
773
|
}
|
|
770
774
|
);
|
|
771
775
|
}
|
|
772
|
-
function
|
|
773
|
-
const { t } = w(
|
|
776
|
+
function vn({ mapping: e }) {
|
|
777
|
+
const { t } = w(I), { blueprints: i } = j(), { workspaceId: a } = H(), s = _({
|
|
774
778
|
queryKey: p.blueprintReleases(a, e.content.blueprintId),
|
|
775
779
|
queryFn: () => i?.listReleases(e.content.blueprintId) ?? Promise.resolve([]),
|
|
776
780
|
enabled: i !== void 0
|
|
777
781
|
});
|
|
778
782
|
return i ? /* @__PURE__ */ n(
|
|
779
|
-
|
|
783
|
+
Oe,
|
|
780
784
|
{
|
|
781
785
|
name: "blueprintReleaseId",
|
|
782
786
|
label: t("mappings.newRelease"),
|
|
@@ -785,34 +789,34 @@ function yn({ mapping: e }) {
|
|
|
785
789
|
}
|
|
786
790
|
) : /* @__PURE__ */ n(J, { name: "blueprintReleaseId", label: t("mappings.newReleaseId"), required: !0 });
|
|
787
791
|
}
|
|
788
|
-
function
|
|
789
|
-
const { t } = w(
|
|
790
|
-
return i === 0 ? /* @__PURE__ */ n(
|
|
792
|
+
function In({ report: e }) {
|
|
793
|
+
const { t } = w(I), i = e.missingFieldPaths.length + e.missingReleaseSpecFields.length;
|
|
794
|
+
return i === 0 ? /* @__PURE__ */ n(E, { status: "success", colorPalette: "success", title: t("mappings.nothingLost") }) : /* @__PURE__ */ n(E, { status: "warning", colorPalette: "warning", title: t("mappings.lost", { count: i }), children: /* @__PURE__ */ g(C, { gap: "2", children: [
|
|
791
795
|
e.missingFieldPaths.length > 0 ? /* @__PURE__ */ n(ye, { label: t("mappings.lostFields"), paths: e.missingFieldPaths }) : null,
|
|
792
796
|
e.missingReleaseSpecFields.length > 0 ? /* @__PURE__ */ n(ye, { label: t("mappings.lostReleaseSpec"), paths: e.missingReleaseSpecFields }) : null
|
|
793
797
|
] }) });
|
|
794
798
|
}
|
|
795
799
|
function ye({ label: e, paths: t }) {
|
|
796
|
-
return /* @__PURE__ */ g(
|
|
797
|
-
/* @__PURE__ */ n(
|
|
800
|
+
return /* @__PURE__ */ g(C, { gap: "1", children: [
|
|
801
|
+
/* @__PURE__ */ n(R, { fontWeight: "medium", children: e }),
|
|
798
802
|
/* @__PURE__ */ n(A.Root, { ps: "4", "aria-label": e, children: t.map((i) => /* @__PURE__ */ n(A.Item, { children: /* @__PURE__ */ n(ee, { children: i }) }, i)) })
|
|
799
803
|
] });
|
|
800
804
|
}
|
|
801
|
-
const
|
|
802
|
-
function
|
|
803
|
-
const e = we(
|
|
805
|
+
const Fe = Re(null);
|
|
806
|
+
function Ln() {
|
|
807
|
+
const e = we(Fe);
|
|
804
808
|
if (!e) throw new Error("useMappingPage outside a Mapping's page");
|
|
805
809
|
return e;
|
|
806
810
|
}
|
|
807
|
-
const ce = (e) => structuredClone(e),
|
|
811
|
+
const ce = (e) => structuredClone(e), Pn = [
|
|
808
812
|
["versionMatch"],
|
|
809
813
|
["validityPeriod"],
|
|
810
814
|
["collectionRouting"],
|
|
811
815
|
["sourceKey", "extractSeparator"]
|
|
812
|
-
],
|
|
816
|
+
], Rn = (e) => e === "" || e !== null && typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0;
|
|
813
817
|
function Se(e, t) {
|
|
814
818
|
const i = JSON.parse(JSON.stringify(e));
|
|
815
|
-
for (const a of
|
|
819
|
+
for (const a of Pn) {
|
|
816
820
|
const s = a.slice(0, -1), r = a[a.length - 1], l = s.reduce(
|
|
817
821
|
(c, o) => c?.[o],
|
|
818
822
|
i
|
|
@@ -820,56 +824,56 @@ function Se(e, t) {
|
|
|
820
824
|
(c, o) => c?.[o],
|
|
821
825
|
t
|
|
822
826
|
);
|
|
823
|
-
l && r in l &&
|
|
827
|
+
l && r in l && Rn(l[r]) && !(d && r in d) && delete l[r];
|
|
824
828
|
}
|
|
825
829
|
return i;
|
|
826
830
|
}
|
|
827
|
-
function
|
|
831
|
+
function qn({
|
|
828
832
|
client: e,
|
|
829
833
|
id: t,
|
|
830
834
|
onDeleted: i,
|
|
831
835
|
editor: a
|
|
832
836
|
}) {
|
|
833
|
-
const { t: s } = w(
|
|
837
|
+
const { t: s } = w(I), { workspaceId: r } = H(), l = _({
|
|
834
838
|
queryKey: p.mapping(r, t),
|
|
835
839
|
queryFn: () => e.getMapping(t)
|
|
836
840
|
});
|
|
837
|
-
return l.isError || !l.data ? /* @__PURE__ */ n(
|
|
841
|
+
return l.isError || !l.data ? /* @__PURE__ */ n(Pe, { title: s("section.mappings.title"), children: l.isError ? /* @__PURE__ */ n(Jt, {}) : /* @__PURE__ */ n(Zt, {}) }) : /* @__PURE__ */ n(wn, { client: e, mapping: l.data, onDeleted: i, editor: a });
|
|
838
842
|
}
|
|
839
|
-
function
|
|
843
|
+
function wn({
|
|
840
844
|
client: e,
|
|
841
845
|
mapping: t,
|
|
842
846
|
onDeleted: i,
|
|
843
847
|
editor: a
|
|
844
848
|
}) {
|
|
845
|
-
const { t: s } = w(
|
|
849
|
+
const { t: s } = w(I), { workspaceId: r } = H(), { paths: l } = j(), d = Te(), c = ae(), [o, u] = V(!1), [y, h] = V(!1), S = De([t.content.blueprintId]), P = _({
|
|
846
850
|
queryKey: p.mappingImportProfiles(r, t.id),
|
|
847
851
|
queryFn: () => e.listMappingImportProfiles(t.id)
|
|
848
|
-
}), m =
|
|
849
|
-
for (const [
|
|
850
|
-
|
|
851
|
-
}, [t,
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
}, [t, f,
|
|
855
|
-
const
|
|
856
|
-
c.setQueryData(p.mapping(r,
|
|
852
|
+
}), m = ke({ defaultValues: ce(t.content) }), { reset: f, formState: T, setError: D } = m, M = Ue(() => {
|
|
853
|
+
for (const [k, de] of yn(t.validity.reasons))
|
|
854
|
+
D(k, { type: "importhub", message: de });
|
|
855
|
+
}, [t, D]);
|
|
856
|
+
G(() => {
|
|
857
|
+
T.isDirty || f(ce(t.content)), M();
|
|
858
|
+
}, [t, f, T.isDirty, M]);
|
|
859
|
+
const Q = (k) => {
|
|
860
|
+
c.setQueryData(p.mapping(r, k.id), k), f(ce(k.content)), c.invalidateQueries({ queryKey: p.mappings(r) }), c.invalidateQueries({ queryKey: p.importProfiles(r) });
|
|
857
861
|
}, L = X({
|
|
858
|
-
mutationFn: (
|
|
859
|
-
onSuccess:
|
|
862
|
+
mutationFn: (k) => e.updateMapping(t.id, k, t.state.draftRevisionId),
|
|
863
|
+
onSuccess: Q,
|
|
860
864
|
// Nothing was saved: the draft's reasons still hold.
|
|
861
|
-
onError:
|
|
865
|
+
onError: M
|
|
862
866
|
}), te = () => {
|
|
863
|
-
m.clearErrors(), m.handleSubmit((
|
|
864
|
-
}, [b,
|
|
867
|
+
m.clearErrors(), m.handleSubmit((k) => L.mutate(Se(k, t.content)))();
|
|
868
|
+
}, [b, F] = Yt(a?.tabs), v = an({
|
|
865
869
|
client: e,
|
|
866
870
|
kind: "mapping",
|
|
867
871
|
id: t.id,
|
|
868
872
|
validity: t.validity,
|
|
869
873
|
state: t.state,
|
|
870
|
-
unsaved:
|
|
874
|
+
unsaved: T.isDirty
|
|
871
875
|
});
|
|
872
|
-
|
|
876
|
+
We(
|
|
873
877
|
d ? /* @__PURE__ */ g(Z, { storageKey: "importhub.mapping.rail", children: [
|
|
874
878
|
/* @__PURE__ */ n(Z.Header, { title: s("rail.title") }),
|
|
875
879
|
/* @__PURE__ */ g(Z.Section, { id: "actions", label: s("rail.actions"), children: [
|
|
@@ -886,23 +890,23 @@ function Rn({
|
|
|
886
890
|
] })
|
|
887
891
|
] }) : null
|
|
888
892
|
);
|
|
889
|
-
const N = S.blueprintName(t.content.blueprintId),
|
|
893
|
+
const N = S.blueprintName(t.content.blueprintId), O = S.releaseLabel(
|
|
890
894
|
t.content.blueprintId,
|
|
891
895
|
t.content.blueprintReleaseId
|
|
892
896
|
), le = t.content.fields?.length ?? 0, ne = /* @__PURE__ */ g(q, { children: [
|
|
893
897
|
v.notice,
|
|
894
|
-
/* @__PURE__ */ n(
|
|
895
|
-
L.isError ? /* @__PURE__ */ n(
|
|
896
|
-
] }),
|
|
898
|
+
/* @__PURE__ */ n(Me, { validity: t.validity }),
|
|
899
|
+
L.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: s("save.failed"), children: L.error.message }) : null
|
|
900
|
+
] }), K = W(
|
|
897
901
|
() => ({ mapping: t, canConfigure: d, reasons: t.validity.reasons }),
|
|
898
902
|
[t, d]
|
|
899
|
-
), ge = a?.tabs.some((
|
|
903
|
+
), ge = a?.tabs.some((k) => k.value === b) ? b : null;
|
|
900
904
|
return /* @__PURE__ */ g(
|
|
901
|
-
|
|
905
|
+
Pe,
|
|
902
906
|
{
|
|
903
907
|
title: t.content.name,
|
|
904
908
|
breadcrumbs: [{ label: s("section.mappings.title"), to: l.mappings }],
|
|
905
|
-
badges: /* @__PURE__ */ g(
|
|
909
|
+
badges: /* @__PURE__ */ g($, { gap: "2", children: [
|
|
906
910
|
/* @__PURE__ */ n(
|
|
907
911
|
Y,
|
|
908
912
|
{
|
|
@@ -910,14 +914,14 @@ function Rn({
|
|
|
910
914
|
label: t.validity.valid ? s("validity.valid") : s("validity.invalid")
|
|
911
915
|
}
|
|
912
916
|
),
|
|
913
|
-
/* @__PURE__ */ n(
|
|
917
|
+
/* @__PURE__ */ n(tn, { state: t.state })
|
|
914
918
|
] }),
|
|
915
|
-
tabs:
|
|
919
|
+
tabs: F,
|
|
916
920
|
actions: d ? /* @__PURE__ */ n(
|
|
917
921
|
x,
|
|
918
922
|
{
|
|
919
923
|
variant: "solid",
|
|
920
|
-
disabled: !
|
|
924
|
+
disabled: !T.isDirty,
|
|
921
925
|
loading: L.isPending,
|
|
922
926
|
onClick: te,
|
|
923
927
|
children: s("common.save")
|
|
@@ -925,25 +929,25 @@ function Rn({
|
|
|
925
929
|
) : void 0,
|
|
926
930
|
children: [
|
|
927
931
|
b === "history" ? /* @__PURE__ */ n(
|
|
928
|
-
|
|
932
|
+
hn,
|
|
929
933
|
{
|
|
930
934
|
client: e,
|
|
931
935
|
kind: "mapping",
|
|
932
936
|
id: t.id,
|
|
933
937
|
draftRevisionId: t.state.draftRevisionId,
|
|
934
938
|
onRestored: async () => {
|
|
935
|
-
|
|
939
|
+
Q(await e.getMapping(t.id));
|
|
936
940
|
}
|
|
937
941
|
}
|
|
938
|
-
) : /* @__PURE__ */ n(
|
|
942
|
+
) : /* @__PURE__ */ n(Fe.Provider, { value: K, children: /* @__PURE__ */ n(Ee, { ...m, children: /* @__PURE__ */ n(
|
|
939
943
|
"form",
|
|
940
944
|
{
|
|
941
|
-
onSubmit: (
|
|
942
|
-
|
|
945
|
+
onSubmit: (k) => {
|
|
946
|
+
k.preventDefault(), d && te();
|
|
943
947
|
},
|
|
944
|
-
children: a && ge ? a.render(ge, ne) : /* @__PURE__ */ n(B, { px: "8", py: "6", children: /* @__PURE__ */ g(
|
|
948
|
+
children: a && ge ? a.render(ge, ne) : /* @__PURE__ */ n(B, { px: "8", py: "6", children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
945
949
|
ne,
|
|
946
|
-
/* @__PURE__ */ n(se, { title: s("mappings.general"), children: /* @__PURE__ */ g(
|
|
950
|
+
/* @__PURE__ */ n(se, { title: s("mappings.general"), children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
947
951
|
/* @__PURE__ */ n(
|
|
948
952
|
J,
|
|
949
953
|
{
|
|
@@ -954,7 +958,7 @@ function Rn({
|
|
|
954
958
|
}
|
|
955
959
|
),
|
|
956
960
|
/* @__PURE__ */ n(
|
|
957
|
-
|
|
961
|
+
Ke,
|
|
958
962
|
{
|
|
959
963
|
name: "description",
|
|
960
964
|
label: s("fields.description"),
|
|
@@ -987,44 +991,44 @@ function Rn({
|
|
|
987
991
|
disabled: !d
|
|
988
992
|
}
|
|
989
993
|
),
|
|
990
|
-
a ? null : /* @__PURE__ */ n(
|
|
994
|
+
a ? null : /* @__PURE__ */ n(R, { color: "fg.muted", fontSize: "sm", children: s("mappings.fieldCount", { count: le }) })
|
|
991
995
|
] }) }),
|
|
992
|
-
/* @__PURE__ */ n(se, { title: s("mappings.target"), children: /* @__PURE__ */ g(
|
|
996
|
+
/* @__PURE__ */ n(se, { title: s("mappings.target"), children: /* @__PURE__ */ g(C, { gap: "3", children: [
|
|
993
997
|
S.available ? /* @__PURE__ */ g(q, { children: [
|
|
994
998
|
/* @__PURE__ */ n(re, { label: s("mappings.blueprint"), children: N ?? "…" }),
|
|
995
|
-
/* @__PURE__ */ n(re, { label: s("mappings.release"), children:
|
|
999
|
+
/* @__PURE__ */ n(re, { label: s("mappings.release"), children: O ?? "…" })
|
|
996
1000
|
] }) : /* @__PURE__ */ g(q, { children: [
|
|
997
1001
|
/* @__PURE__ */ n(re, { label: s("mappings.blueprintId"), children: /* @__PURE__ */ n(ee, { children: t.content.blueprintId }) }),
|
|
998
1002
|
/* @__PURE__ */ n(re, { label: s("mappings.releaseId"), children: /* @__PURE__ */ n(ee, { children: t.content.blueprintReleaseId }) })
|
|
999
1003
|
] }),
|
|
1000
1004
|
d ? /* @__PURE__ */ n(B, { children: /* @__PURE__ */ g(x, { variant: "outline", size: "sm", onClick: () => h(!0), children: [
|
|
1001
|
-
/* @__PURE__ */ n(
|
|
1005
|
+
/* @__PURE__ */ n(Qe, { size: 14, "aria-hidden": !0 }),
|
|
1002
1006
|
s("mappings.move")
|
|
1003
1007
|
] }) }) : null
|
|
1004
1008
|
] }) }),
|
|
1005
|
-
/* @__PURE__ */ n(se, { title: s("mappings.includedBy"), children:
|
|
1009
|
+
/* @__PURE__ */ n(se, { title: s("mappings.includedBy"), children: P.isError ? /* @__PURE__ */ n(R, { color: "fg.muted", children: s("startPage.error") }) : P.data ? P.data.length === 0 ? /* @__PURE__ */ n(R, { color: "fg.muted", children: s("mappings.noProfiles") }) : /* @__PURE__ */ n(A.Root, { ps: "4", "aria-label": s("mappings.includedBy"), children: P.data.map((k) => /* @__PURE__ */ n(A.Item, { children: /* @__PURE__ */ n(ue, { asChild: !0, children: /* @__PURE__ */ n(me, { to: he(l, "profiles", k.id), children: k.name }) }) }, k.id)) }) : /* @__PURE__ */ n(R, { color: "fg.muted", children: s("startPage.loading") }) })
|
|
1006
1010
|
] }) })
|
|
1007
1011
|
}
|
|
1008
1012
|
) }) }),
|
|
1009
1013
|
v.dialog,
|
|
1010
1014
|
/* @__PURE__ */ n(
|
|
1011
|
-
|
|
1015
|
+
Sn,
|
|
1012
1016
|
{
|
|
1013
1017
|
open: y,
|
|
1014
1018
|
onClose: () => h(!1),
|
|
1015
1019
|
client: e,
|
|
1016
1020
|
mapping: t,
|
|
1017
|
-
onMove: async (
|
|
1021
|
+
onMove: async (k) => {
|
|
1018
1022
|
const de = {
|
|
1019
1023
|
...Se(m.getValues(), t.content),
|
|
1020
|
-
blueprintReleaseId:
|
|
1024
|
+
blueprintReleaseId: k
|
|
1021
1025
|
};
|
|
1022
|
-
|
|
1026
|
+
Q(await e.updateMapping(t.id, de, t.state.draftRevisionId));
|
|
1023
1027
|
}
|
|
1024
1028
|
}
|
|
1025
1029
|
),
|
|
1026
1030
|
/* @__PURE__ */ n(
|
|
1027
|
-
|
|
1031
|
+
en,
|
|
1028
1032
|
{
|
|
1029
1033
|
open: o,
|
|
1030
1034
|
onClose: () => u(!1),
|
|
@@ -1041,34 +1045,34 @@ function Rn({
|
|
|
1041
1045
|
);
|
|
1042
1046
|
}
|
|
1043
1047
|
function re({ label: e, children: t }) {
|
|
1044
|
-
return /* @__PURE__ */ g(
|
|
1045
|
-
/* @__PURE__ */ n(
|
|
1048
|
+
return /* @__PURE__ */ g($, { gap: "4", align: "baseline", children: [
|
|
1049
|
+
/* @__PURE__ */ n(R, { color: "fg.muted", minW: "40", children: e }),
|
|
1046
1050
|
/* @__PURE__ */ n(B, { children: t })
|
|
1047
1051
|
] });
|
|
1048
1052
|
}
|
|
1049
1053
|
export {
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1054
|
+
hn as C,
|
|
1055
|
+
en as D,
|
|
1056
|
+
I,
|
|
1053
1057
|
Jt as L,
|
|
1054
|
-
|
|
1055
|
-
|
|
1058
|
+
qn as M,
|
|
1059
|
+
tn as R,
|
|
1056
1060
|
Qt as S,
|
|
1057
|
-
|
|
1061
|
+
Me as V,
|
|
1058
1062
|
Zt as a,
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1063
|
+
Te as b,
|
|
1064
|
+
Yt as c,
|
|
1065
|
+
an as d,
|
|
1062
1066
|
he as e,
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1067
|
+
rn as f,
|
|
1068
|
+
De as g,
|
|
1069
|
+
_n as h,
|
|
1066
1070
|
p as i,
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1071
|
+
Wn as j,
|
|
1072
|
+
Bn as k,
|
|
1073
|
+
Ln as l,
|
|
1074
|
+
bn as m,
|
|
1075
|
+
Vn as r,
|
|
1072
1076
|
j as u
|
|
1073
1077
|
};
|
|
1074
|
-
//# sourceMappingURL=mapping-page-
|
|
1078
|
+
//# sourceMappingURL=mapping-page-Lu48SY_L.js.map
|