@knkcs/importhub-ui 0.6.0 → 0.8.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/dist/field-tree-CghMgGKm.js +108 -0
- package/dist/field-tree-CghMgGKm.js.map +1 -0
- package/dist/importhub-client-BS6F4DW2.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/index.js +555 -555
- package/dist/index.js.map +1 -1
- package/dist/mapping-editor.d.ts +5 -0
- package/dist/mapping-editor.js +536 -608
- package/dist/mapping-editor.js.map +1 -1
- package/dist/{mapping-page-wJywO-hg.js → mapping-page-tIHPNu7C.js} +279 -279
- package/dist/{mapping-page-wJywO-hg.js.map → mapping-page-tIHPNu7C.js.map} +1 -1
- package/dist/testing.d.ts +5 -0
- package/dist/testing.js +364 -329
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as n, jsxs as g, Fragment as q } from "react/jsx-runtime";
|
|
2
2
|
import { EmptyState as ve, Button as x, StatusBadge as Y } from "@knkcs/anker/atoms";
|
|
3
|
-
import { Modal as
|
|
4
|
-
import { InputField as J, BaseSelectField as
|
|
3
|
+
import { Modal as ae, StatusBadgeCell as Ie, ContextRail as U, Card as se, TruncatedTextCell as xe, IdentityCell as Ne, DateCell as Ae, ActionCell as ze, DataTable as He } from "@knkcs/anker/components";
|
|
4
|
+
import { InputField as J, BaseSelectField as Ke, TextareaField as Oe } from "@knkcs/anker/forms";
|
|
5
5
|
import { useHostIdentity as H } from "@knkcs/anker/host";
|
|
6
|
-
import { Box as B, Center as Be, Spinner as _e, Tabs as
|
|
6
|
+
import { Box as B, Center as Be, Spinner as _e, Tabs as Z, Stack as C, Text as R, Alert as E, List as N, Link as ue, HStack as $, Table as z, Code as ee } from "@knkcs/anker/primitives";
|
|
7
7
|
import { DetailPageTemplate as Pe, usePageRail as We } from "@knkcs/anker/templates";
|
|
8
|
-
import { useMutation as X, useQueryClient as
|
|
8
|
+
import { useMutation as X, useQueryClient as oe, useQuery as _, useQueries as Ve, useInfiniteQuery as Le } from "@tanstack/react-query";
|
|
9
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
|
|
11
|
-
import { useForm as ke, useWatch as
|
|
10
|
+
import { createContext as Re, useContext as we, useEffect as G, useState as V, useMemo as W, useCallback as Ze } from "react";
|
|
11
|
+
import { useForm as ke, useWatch as Ue, 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
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." }, rt = { open: "Change Set in contenthub öffnen" }, it = { 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." } }, 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 = {
|
|
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" }, at = { column: "Gültigkeit", valid: "Gültig", invalid: "Ungültig", invalidTitle: "Diese Konfiguration ist ungültig und kann nicht freigegeben werden:" }, ot = { 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.", displayNameField: "Feld des Anzeigenamens", displayNameFieldHelp: "Das Textfeld des festgelegten Releases, in das der Anzeigename jedes Inhalts geschrieben wird. Zusammen mit der Vorlage setzen.", displayNameFieldNone: "Kein Anzeigename", displayNameFieldPathHelp: "Der Pfad des Textfelds, in das der Anzeigename jedes Inhalts geschrieben wird, etwa titel oder meta.label. Zusammen mit der Vorlage setzen.", 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
|
-
changeSet:
|
|
19
|
-
common:
|
|
18
|
+
changeSet: it,
|
|
19
|
+
common: rt,
|
|
20
20
|
fields: st,
|
|
21
|
-
validity:
|
|
22
|
-
release:
|
|
21
|
+
validity: at,
|
|
22
|
+
release: ot,
|
|
23
23
|
delete: { inUse: "Es kann nicht gelöscht werden, solange diese Importprofile es verwenden:", failed: "Es konnte nicht gelöscht werden. Versuchen Sie es gleich noch einmal." },
|
|
24
24
|
create: lt,
|
|
25
25
|
save: dt,
|
|
@@ -37,22 +37,22 @@ const tt = { imports: { title: "Importe", empty: "In diesem Workspace gibt es no
|
|
|
37
37
|
imports: It,
|
|
38
38
|
startImport: Pt,
|
|
39
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}.", 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." } }, 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 = {
|
|
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" }, Ft = { name: "Name", description: "Description" }, Mt = { column: "Validity", valid: "Valid", invalid: "Invalid", invalidTitle: "This configuration is invalid and cannot be released:" }, Dt = { 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." }, Nt = { failed: "The changes could not be saved." }, At = { 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." }, Kt = { 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" }, Ot = { 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.", displayNameField: "Display-name field", displayNameFieldHelp: "The plain-text field of the pinned Release each Content's display name is written into. Set it with the template.", displayNameFieldNone: "No display name", displayNameFieldPathHelp: "The path of the plain-text field each Content's display name is written into, such as titel or meta.label. Set it with the template.", 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
41
|
section: kt,
|
|
42
42
|
startPage: Et,
|
|
43
43
|
changeSet: Ct,
|
|
44
44
|
common: Tt,
|
|
45
|
-
fields:
|
|
46
|
-
validity:
|
|
47
|
-
release:
|
|
45
|
+
fields: Ft,
|
|
46
|
+
validity: Mt,
|
|
47
|
+
release: Dt,
|
|
48
48
|
delete: { inUse: "It cannot be deleted while these Import Profiles use it:", failed: "It could not be deleted. Try again in a moment." },
|
|
49
49
|
create: xt,
|
|
50
|
-
save:
|
|
51
|
-
rail:
|
|
50
|
+
save: Nt,
|
|
51
|
+
rail: At,
|
|
52
52
|
order: zt,
|
|
53
53
|
profiles: Ht,
|
|
54
|
-
processors:
|
|
55
|
-
mappings:
|
|
54
|
+
processors: Kt,
|
|
55
|
+
mappings: Ot,
|
|
56
56
|
entitySets: Bt,
|
|
57
57
|
tabs: _t,
|
|
58
58
|
cut: Wt,
|
|
@@ -72,8 +72,8 @@ const tt = { imports: { title: "Importe", empty: "In diesem Workspace gibt es no
|
|
|
72
72
|
"entitySets",
|
|
73
73
|
"processors"
|
|
74
74
|
];
|
|
75
|
-
function he(e, t,
|
|
76
|
-
return `${e[t].replace(/\/$/, "")}/${encodeURIComponent(
|
|
75
|
+
function he(e, t, i) {
|
|
76
|
+
return `${e[t].replace(/\/$/, "")}/${encodeURIComponent(i)}`;
|
|
77
77
|
}
|
|
78
78
|
const Qt = {
|
|
79
79
|
imports: "/imports",
|
|
@@ -81,10 +81,10 @@ const Qt = {
|
|
|
81
81
|
mappings: "/settings/mappings",
|
|
82
82
|
entitySets: "/settings/entity-sets",
|
|
83
83
|
processors: "/settings/processors"
|
|
84
|
-
},
|
|
84
|
+
}, Zt = {
|
|
85
85
|
paths: Qt,
|
|
86
86
|
changeSetHref: () => null
|
|
87
|
-
}, Ce = Re(
|
|
87
|
+
}, Ce = Re(Zt);
|
|
88
88
|
function Wn({ host: e, children: t }) {
|
|
89
89
|
return /* @__PURE__ */ n(Ce.Provider, { value: e, children: t });
|
|
90
90
|
}
|
|
@@ -104,7 +104,7 @@ const p = {
|
|
|
104
104
|
imports: (e) => [...p.all(e), "imports"],
|
|
105
105
|
import: (e, t) => [...p.imports(e), t],
|
|
106
106
|
/** An Import's Item Problems under a filter, one entry per filter. */
|
|
107
|
-
itemProblems: (e, t,
|
|
107
|
+
itemProblems: (e, t, i, o) => [...p.import(e, t), "itemProblems", i, o],
|
|
108
108
|
/** The workspace's importhub API keys. */
|
|
109
109
|
apiKeys: (e) => [...p.all(e), "apiKeys"],
|
|
110
110
|
blueprints: (e) => [...p.all(e), "blueprints"],
|
|
@@ -112,18 +112,18 @@ const p = {
|
|
|
112
112
|
/** A Blueprint Release with its field tree; a Release never changes once cut. */
|
|
113
113
|
blueprintRelease: (e, t) => [...p.blueprints(e), "release", t],
|
|
114
114
|
/** One configuration of a kind, as its page reads it. */
|
|
115
|
-
configuration: (e, t,
|
|
115
|
+
configuration: (e, t, i) => t === "importProfile" ? p.importProfile(e, i) : t === "mapping" ? p.mapping(e, i) : p.entitySet(e, i),
|
|
116
116
|
/** Every list of a kind, so one change refreshes them all. */
|
|
117
117
|
configurations: (e, t) => t === "importProfile" ? p.importProfiles(e) : t === "mapping" ? p.mappings(e) : p.entitySets(e),
|
|
118
|
-
history: (e, t,
|
|
119
|
-
comparison: (e, t,
|
|
120
|
-
...p.configuration(e, t,
|
|
118
|
+
history: (e, t, i) => [...p.configuration(e, t, i), "history"],
|
|
119
|
+
comparison: (e, t, i, o, s) => [
|
|
120
|
+
...p.configuration(e, t, i),
|
|
121
121
|
"comparison",
|
|
122
|
-
|
|
122
|
+
o,
|
|
123
123
|
s
|
|
124
124
|
]
|
|
125
125
|
};
|
|
126
|
-
function
|
|
126
|
+
function Ut() {
|
|
127
127
|
const { t: e } = w(I);
|
|
128
128
|
return /* @__PURE__ */ n(Be, { py: "12", children: /* @__PURE__ */ n(_e, { "aria-label": e("startPage.loading") }) });
|
|
129
129
|
}
|
|
@@ -132,35 +132,35 @@ function Jt() {
|
|
|
132
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
133
|
}
|
|
134
134
|
function Yt(e = []) {
|
|
135
|
-
const { t } = w(I), [
|
|
136
|
-
const u = new URLSearchParams(
|
|
137
|
-
|
|
138
|
-
}, c = /* @__PURE__ */ n(
|
|
139
|
-
/* @__PURE__ */ n(
|
|
140
|
-
e.map((
|
|
141
|
-
/* @__PURE__ */ n(
|
|
135
|
+
const { t } = w(I), [i, o] = Je(), s = /* @__PURE__ */ new Set(["history", ...e.map((a) => a.value)]), r = i.get("tab") ?? "", l = s.has(r) ? r : "settings", d = (a) => {
|
|
136
|
+
const u = new URLSearchParams(i);
|
|
137
|
+
a !== "settings" ? u.set("tab", a) : u.delete("tab"), o(u, { replace: !0 });
|
|
138
|
+
}, c = /* @__PURE__ */ n(Z.Root, { value: l, onValueChange: (a) => d(a.value), children: /* @__PURE__ */ g(Z.List, { children: [
|
|
139
|
+
/* @__PURE__ */ n(Z.Trigger, { value: "settings", children: t("tabs.settings") }),
|
|
140
|
+
e.map((a) => /* @__PURE__ */ n(Z.Trigger, { value: a.value, children: a.label }, a.value)),
|
|
141
|
+
/* @__PURE__ */ n(Z.Trigger, { value: "history", children: t("tabs.history") })
|
|
142
142
|
] }) });
|
|
143
143
|
return [l, c];
|
|
144
144
|
}
|
|
145
145
|
function en({
|
|
146
146
|
open: e,
|
|
147
147
|
onClose: t,
|
|
148
|
-
title:
|
|
149
|
-
message:
|
|
148
|
+
title: i,
|
|
149
|
+
message: o,
|
|
150
150
|
onDelete: s,
|
|
151
|
-
onDeleted:
|
|
151
|
+
onDeleted: r
|
|
152
152
|
}) {
|
|
153
|
-
const { t: l } = w(I), { paths: d } = j(), c = X({ mutationFn: s, onSuccess:
|
|
153
|
+
const { t: l } = w(I), { paths: d } = j(), c = X({ mutationFn: s, onSuccess: r }), { reset: a } = c;
|
|
154
154
|
G(() => {
|
|
155
|
-
e &&
|
|
156
|
-
}, [e,
|
|
155
|
+
e && a();
|
|
156
|
+
}, [e, a]);
|
|
157
157
|
const u = c.error instanceof Ye ? c.error : null;
|
|
158
158
|
return /* @__PURE__ */ n(
|
|
159
|
-
|
|
159
|
+
ae,
|
|
160
160
|
{
|
|
161
161
|
open: e,
|
|
162
162
|
onClose: t,
|
|
163
|
-
header:
|
|
163
|
+
header: i,
|
|
164
164
|
lazyMount: !0,
|
|
165
165
|
unmountOnExit: !0,
|
|
166
166
|
footer: /* @__PURE__ */ g($, { gap: "2", children: [
|
|
@@ -178,8 +178,8 @@ function en({
|
|
|
178
178
|
)
|
|
179
179
|
] }),
|
|
180
180
|
children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
181
|
-
/* @__PURE__ */ n(R, { children:
|
|
182
|
-
u ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: l("delete.inUse"), children: /* @__PURE__ */ n(
|
|
181
|
+
/* @__PURE__ */ n(R, { children: o }),
|
|
182
|
+
u ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: l("delete.inUse"), children: /* @__PURE__ */ n(N.Root, { ps: "4", children: u.importProfiles.map((y) => /* @__PURE__ */ n(N.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
|
|
183
183
|
] })
|
|
184
184
|
}
|
|
185
185
|
);
|
|
@@ -188,15 +188,15 @@ function tn({ state: e }) {
|
|
|
188
188
|
const { t } = w(I);
|
|
189
189
|
if (!e.latestRelease)
|
|
190
190
|
return /* @__PURE__ */ n(Y, { tone: "warning", label: t("release.state.none") });
|
|
191
|
-
const
|
|
192
|
-
return e.draftDiffersFromRelease ? /* @__PURE__ */ n(Y, { tone: "warning", label: t("release.state.differs", { number:
|
|
191
|
+
const i = e.latestRelease.number;
|
|
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 }) });
|
|
193
193
|
}
|
|
194
194
|
function Te() {
|
|
195
195
|
return j().canConfigure ?? !1;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Fe({ validity: e }) {
|
|
198
198
|
const { t } = w(I);
|
|
199
|
-
return e.valid ? null : /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: t("validity.invalidTitle"), children: /* @__PURE__ */ n(
|
|
199
|
+
return e.valid ? null : /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: t("validity.invalidTitle"), children: /* @__PURE__ */ n(N.Root, { ps: "4", children: e.reasons.map((i) => /* @__PURE__ */ n(N.Item, { children: i.message }, `${i.code}:${i.path}:${i.message}`)) }) });
|
|
200
200
|
}
|
|
201
201
|
const nn = (e) => ({
|
|
202
202
|
[e("validity.valid")]: "success",
|
|
@@ -209,7 +209,7 @@ function rn({ validity: e }) {
|
|
|
209
209
|
{
|
|
210
210
|
value: e.valid ? t("validity.valid") : t("validity.invalid"),
|
|
211
211
|
toneMap: nn(t),
|
|
212
|
-
detail: e.valid ? null : e.reasons.map((
|
|
212
|
+
detail: e.valid ? null : e.reasons.map((i) => i.message).join(" ")
|
|
213
213
|
}
|
|
214
214
|
);
|
|
215
215
|
}
|
|
@@ -219,23 +219,23 @@ function Vn(e, t) {
|
|
|
219
219
|
function sn({
|
|
220
220
|
open: e,
|
|
221
221
|
onClose: t,
|
|
222
|
-
client:
|
|
223
|
-
kind:
|
|
222
|
+
client: i,
|
|
223
|
+
kind: o,
|
|
224
224
|
id: s,
|
|
225
|
-
validity:
|
|
225
|
+
validity: r,
|
|
226
226
|
state: l,
|
|
227
227
|
unsaved: d,
|
|
228
228
|
onCut: c
|
|
229
229
|
}) {
|
|
230
|
-
const { t:
|
|
231
|
-
mutationFn: () =>
|
|
230
|
+
const { t: a } = w(I), { workspaceId: u } = H(), y = oe(), h = X({
|
|
231
|
+
mutationFn: () => i.cutRelease(o, s, l.draftRevisionId),
|
|
232
232
|
onSuccess: c,
|
|
233
233
|
// A refusal means the page's draft is not importhub's (somebody saved
|
|
234
234
|
// in between, or its validity changed): read it again, so the next
|
|
235
235
|
// opening shows where it stands and cuts the draft that is there.
|
|
236
236
|
onError: () => {
|
|
237
237
|
y.invalidateQueries({
|
|
238
|
-
queryKey: p.configuration(u,
|
|
238
|
+
queryKey: p.configuration(u, o, s)
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
241
|
}), { reset: S } = h;
|
|
@@ -244,69 +244,69 @@ function sn({
|
|
|
244
244
|
}, [e, S]);
|
|
245
245
|
const P = _({
|
|
246
246
|
queryKey: p.mappingImportProfiles(u, s),
|
|
247
|
-
queryFn: () =>
|
|
248
|
-
enabled: e &&
|
|
249
|
-
}), m = (l.latestRelease?.number ?? 0) + 1, f = l.latestRelease !== void 0 && !l.draftDiffersFromRelease, T =
|
|
247
|
+
queryFn: () => i.listMappingImportProfiles(s),
|
|
248
|
+
enabled: e && o === "mapping"
|
|
249
|
+
}), m = (l.latestRelease?.number ?? 0) + 1, f = l.latestRelease !== void 0 && !l.draftDiffersFromRelease, T = r.valid && !f, M = h.error instanceof et ? h.error : null;
|
|
250
250
|
return /* @__PURE__ */ n(
|
|
251
|
-
|
|
251
|
+
ae,
|
|
252
252
|
{
|
|
253
253
|
open: e,
|
|
254
254
|
onClose: t,
|
|
255
|
-
header:
|
|
255
|
+
header: a("cut.title"),
|
|
256
256
|
lazyMount: !0,
|
|
257
257
|
unmountOnExit: !0,
|
|
258
258
|
footer: /* @__PURE__ */ g($, { gap: "2", children: [
|
|
259
|
-
/* @__PURE__ */ n(x, { variant: "outline", onClick: t, children:
|
|
259
|
+
/* @__PURE__ */ n(x, { variant: "outline", onClick: t, children: a(T ? "common.cancel" : "common.close") }),
|
|
260
260
|
T ? /* @__PURE__ */ n(
|
|
261
261
|
x,
|
|
262
262
|
{
|
|
263
263
|
variant: "solid",
|
|
264
264
|
loading: h.isPending,
|
|
265
|
-
disabled:
|
|
265
|
+
disabled: M !== null,
|
|
266
266
|
onClick: () => h.mutate(),
|
|
267
|
-
children:
|
|
267
|
+
children: a("cut.confirm")
|
|
268
268
|
}
|
|
269
269
|
) : null
|
|
270
270
|
] }),
|
|
271
271
|
children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
272
|
-
|
|
272
|
+
r.valid ? f ? /* @__PURE__ */ n(
|
|
273
273
|
E,
|
|
274
274
|
{
|
|
275
275
|
status: "info",
|
|
276
276
|
colorPalette: "info",
|
|
277
|
-
title:
|
|
277
|
+
title: a("cut.unchanged", { number: l.latestRelease?.number })
|
|
278
278
|
}
|
|
279
279
|
) : /* @__PURE__ */ g(q, { children: [
|
|
280
|
-
/* @__PURE__ */ n(R, { children:
|
|
281
|
-
d ? /* @__PURE__ */ n(E, { status: "warning", colorPalette: "warning", title:
|
|
282
|
-
|
|
283
|
-
] }) : /* @__PURE__ */ n(
|
|
284
|
-
|
|
280
|
+
/* @__PURE__ */ n(R, { children: a("cut.message", { number: m }) }),
|
|
281
|
+
d ? /* @__PURE__ */ n(E, { status: "warning", colorPalette: "warning", title: a("cut.unsaved") }) : null,
|
|
282
|
+
o === "mapping" ? /* @__PURE__ */ n(an, { query: P }) : null
|
|
283
|
+
] }) : /* @__PURE__ */ n(Fe, { validity: r }),
|
|
284
|
+
M && r.valid ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: a("cut.refused"), children: M.validity && !M.validity.valid ? /* @__PURE__ */ n(N.Root, { ps: "4", children: M.validity.reasons.map((F) => /* @__PURE__ */ n(N.Item, { children: F.message }, `${F.code}:${F.path}:${F.message}`)) }) : M.message }) : h.isError && !M ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: a("cut.failed") }) : null
|
|
285
285
|
] })
|
|
286
286
|
}
|
|
287
287
|
);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function an({
|
|
290
290
|
query: e
|
|
291
291
|
}) {
|
|
292
|
-
const { t } = w(I), { paths:
|
|
292
|
+
const { t } = w(I), { paths: i } = j();
|
|
293
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
294
|
/* @__PURE__ */ n(R, { children: t("cut.profilesIntro") }),
|
|
295
|
-
/* @__PURE__ */ n(
|
|
295
|
+
/* @__PURE__ */ n(N.Root, { ps: "4", "aria-label": t("cut.profiles"), children: e.data.map((o) => /* @__PURE__ */ n(N.Item, { children: /* @__PURE__ */ n(ue, { asChild: !0, children: /* @__PURE__ */ n(me, { to: he(i, "profiles", o.id), children: o.name }) }) }, o.id)) })
|
|
296
296
|
] }) : /* @__PURE__ */ n(R, { color: "fg.muted", children: t("startPage.loading") });
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function on({
|
|
299
299
|
client: e,
|
|
300
300
|
kind: t,
|
|
301
|
-
id:
|
|
302
|
-
validity:
|
|
301
|
+
id: i,
|
|
302
|
+
validity: o,
|
|
303
303
|
state: s,
|
|
304
|
-
unsaved:
|
|
304
|
+
unsaved: r
|
|
305
305
|
}) {
|
|
306
|
-
const { t: l } = w(I), { workspaceId: d } = H(), c =
|
|
306
|
+
const { t: l } = w(I), { workspaceId: d } = H(), c = oe(), [a, u] = V(!1), [y, h] = V(null);
|
|
307
307
|
return {
|
|
308
308
|
railAction: /* @__PURE__ */ n(
|
|
309
|
-
|
|
309
|
+
U.IconButton,
|
|
310
310
|
{
|
|
311
311
|
label: l("cut.action"),
|
|
312
312
|
icon: /* @__PURE__ */ n(Xe, { size: 16 }),
|
|
@@ -318,17 +318,17 @@ function an({
|
|
|
318
318
|
dialog: /* @__PURE__ */ n(
|
|
319
319
|
sn,
|
|
320
320
|
{
|
|
321
|
-
open:
|
|
321
|
+
open: a,
|
|
322
322
|
onClose: () => u(!1),
|
|
323
323
|
client: e,
|
|
324
324
|
kind: t,
|
|
325
|
-
id:
|
|
326
|
-
validity:
|
|
325
|
+
id: i,
|
|
326
|
+
validity: o,
|
|
327
327
|
state: s,
|
|
328
|
-
unsaved:
|
|
328
|
+
unsaved: r,
|
|
329
329
|
onCut: (S) => {
|
|
330
330
|
u(!1), h(S.release.number), c.invalidateQueries({
|
|
331
|
-
queryKey: p.configuration(d, t,
|
|
331
|
+
queryKey: p.configuration(d, t, i)
|
|
332
332
|
}), c.invalidateQueries({
|
|
333
333
|
queryKey: p.configurations(d, t)
|
|
334
334
|
}), t === "mapping" && c.invalidateQueries({
|
|
@@ -340,23 +340,23 @@ function an({
|
|
|
340
340
|
notice: y === null ? null : /* @__PURE__ */ n(E, { status: "success", colorPalette: "success", title: l("cut.done", { number: y }), children: l("cut.doneBody") })
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
const { blueprints: t } = j(), { workspaceId:
|
|
345
|
-
queryKey: p.blueprints(
|
|
343
|
+
function Me(e) {
|
|
344
|
+
const { blueprints: t } = j(), { workspaceId: i } = H(), o = [...new Set(e.filter(Boolean))].sort(), s = _({
|
|
345
|
+
queryKey: p.blueprints(i),
|
|
346
346
|
queryFn: () => t?.listBlueprints() ?? Promise.resolve([]),
|
|
347
347
|
enabled: t !== void 0
|
|
348
|
-
}),
|
|
349
|
-
queries:
|
|
350
|
-
queryKey: p.blueprintReleases(
|
|
351
|
-
queryFn: () => t?.listReleases(
|
|
348
|
+
}), r = Ve({
|
|
349
|
+
queries: o.map((a) => ({
|
|
350
|
+
queryKey: p.blueprintReleases(i, a),
|
|
351
|
+
queryFn: () => t?.listReleases(a) ?? Promise.resolve([]),
|
|
352
352
|
enabled: t !== void 0
|
|
353
353
|
}))
|
|
354
|
-
}), l =
|
|
354
|
+
}), l = r.map((a) => a.data), d = r.map((a) => a.dataUpdatedAt).join(), c = o.join();
|
|
355
355
|
return W(
|
|
356
356
|
() => ({
|
|
357
357
|
available: t !== void 0,
|
|
358
|
-
blueprintName: (
|
|
359
|
-
releaseLabel: (
|
|
358
|
+
blueprintName: (a) => s.data?.find((u) => u.id === a)?.name,
|
|
359
|
+
releaseLabel: (a, u) => l[o.indexOf(a)]?.find((y) => y.id === u)?.label
|
|
360
360
|
}),
|
|
361
361
|
[t, s.data, d, c]
|
|
362
362
|
);
|
|
@@ -386,17 +386,17 @@ const ln = {
|
|
|
386
386
|
function cn({
|
|
387
387
|
client: e,
|
|
388
388
|
kind: t,
|
|
389
|
-
id:
|
|
390
|
-
fromRevisionId:
|
|
389
|
+
id: i,
|
|
390
|
+
fromRevisionId: o,
|
|
391
391
|
toRevisionId: s,
|
|
392
|
-
labelOf:
|
|
392
|
+
labelOf: r
|
|
393
393
|
}) {
|
|
394
394
|
const { t: l } = w(I), { workspaceId: d } = H(), c = _({
|
|
395
|
-
queryKey: p.comparison(d, t,
|
|
396
|
-
queryFn: () => e.compareRevisions(t,
|
|
397
|
-
}), { format:
|
|
395
|
+
queryKey: p.comparison(d, t, i, o, s),
|
|
396
|
+
queryFn: () => e.compareRevisions(t, i, o, s)
|
|
397
|
+
}), { format: a, blueprintIdsOnly: u } = pn(e, t, c.data), y = (f) => u && f in pe ? pe[f] : dn[f], h = [...c.data?.fields ?? []].sort(
|
|
398
398
|
(f, T) => +(f.status === "unchanged") - +(T.status === "unchanged")
|
|
399
|
-
), S = h.filter((f) => f.status !== "unchanged").length, P =
|
|
399
|
+
), S = h.filter((f) => f.status !== "unchanged").length, P = r(o), m = r(s);
|
|
400
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
401
|
/* @__PURE__ */ n(R, { children: l("compare.between", { from: P, to: m }) }),
|
|
402
402
|
c.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: l("startPage.error") }) : null,
|
|
@@ -419,8 +419,8 @@ function cn({
|
|
|
419
419
|
}
|
|
420
420
|
)
|
|
421
421
|
] }) }),
|
|
422
|
-
/* @__PURE__ */ n(z.Cell, { children: /* @__PURE__ */ n(fe, { text:
|
|
423
|
-
/* @__PURE__ */ n(z.Cell, { children: /* @__PURE__ */ n(fe, { text:
|
|
422
|
+
/* @__PURE__ */ n(z.Cell, { children: /* @__PURE__ */ n(fe, { text: a(f.field, "from") }) }),
|
|
423
|
+
/* @__PURE__ */ n(z.Cell, { children: /* @__PURE__ */ n(fe, { text: a(f.field, "to") }) })
|
|
424
424
|
] }, f.field)) })
|
|
425
425
|
] })
|
|
426
426
|
] }) : c.isError ? null : /* @__PURE__ */ n(R, { color: "fg.muted", children: l("startPage.loading") })
|
|
@@ -430,97 +430,97 @@ function fe({ text: e }) {
|
|
|
430
430
|
const { t } = w(I);
|
|
431
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 });
|
|
432
432
|
}
|
|
433
|
-
function pn(e, t,
|
|
434
|
-
const { t:
|
|
433
|
+
function pn(e, t, i) {
|
|
434
|
+
const { t: o } = w(I), { workspaceId: s } = H(), r = t === "importProfile", l = _({
|
|
435
435
|
queryKey: p.mappings(s),
|
|
436
436
|
queryFn: () => e.listMappings(),
|
|
437
|
-
enabled:
|
|
437
|
+
enabled: r
|
|
438
438
|
}), d = _({
|
|
439
439
|
queryKey: p.entitySets(s),
|
|
440
440
|
queryFn: () => e.listEntitySets(),
|
|
441
|
-
enabled:
|
|
442
|
-
}), c = t === "mapping" &&
|
|
441
|
+
enabled: r
|
|
442
|
+
}), c = t === "mapping" && i ? [i.from.content.blueprint_id, i.to.content.blueprint_id].map((h) => String(h ?? "")) : [], a = Me(c), u = t === "mapping" && !a.available;
|
|
443
443
|
return { format: (h, S) => {
|
|
444
|
-
const P =
|
|
444
|
+
const P = i?.[S].content ?? {}, m = P[h];
|
|
445
445
|
if (m == null) return null;
|
|
446
|
-
if (
|
|
447
|
-
return m.length === 0 ? { plain:
|
|
446
|
+
if (r && h === "mapping_ids" && Array.isArray(m))
|
|
447
|
+
return m.length === 0 ? { plain: o("profiles.noMappings") } : {
|
|
448
448
|
plain: m.map(
|
|
449
|
-
(f) => l.data?.find((T) => T.id === f)?.content.name ??
|
|
449
|
+
(f) => l.data?.find((T) => T.id === f)?.content.name ?? o("profiles.missingMapping")
|
|
450
450
|
).join(`
|
|
451
451
|
`)
|
|
452
452
|
};
|
|
453
|
-
if (
|
|
454
|
-
return m === "" ? { plain:
|
|
455
|
-
plain: d.data?.find((f) => f.id === m)?.content.name ??
|
|
453
|
+
if (r && h === "entity_set_id")
|
|
454
|
+
return m === "" ? { plain: o("profiles.noEntitySet") } : {
|
|
455
|
+
plain: d.data?.find((f) => f.id === m)?.content.name ?? o("compare.missingEntitySet")
|
|
456
456
|
};
|
|
457
457
|
if (u && h in pe)
|
|
458
458
|
return m === "" ? { plain: "—" } : { code: String(m) };
|
|
459
|
-
if (t === "mapping" &&
|
|
460
|
-
return { plain:
|
|
461
|
-
if (t === "mapping" &&
|
|
459
|
+
if (t === "mapping" && a.available && h === "blueprint_id")
|
|
460
|
+
return { plain: a.blueprintName(String(m)) ?? "…" };
|
|
461
|
+
if (t === "mapping" && a.available && h === "blueprint_release_id") {
|
|
462
462
|
const f = String(P.blueprint_id ?? "");
|
|
463
|
-
return { plain:
|
|
463
|
+
return { plain: a.releaseLabel(f, String(m)) ?? "…" };
|
|
464
464
|
}
|
|
465
|
-
return typeof m == "string" ? { plain: m === "" ? "—" : m } : typeof m == "boolean" ? { plain:
|
|
465
|
+
return typeof m == "string" ? { plain: m === "" ? "—" : m } : typeof m == "boolean" ? { plain: o(m ? "compare.yes" : "compare.no") } : typeof m == "number" ? { plain: String(m) } : { json: JSON.stringify(m, null, 2) };
|
|
466
466
|
}, blueprintIdsOnly: u };
|
|
467
467
|
}
|
|
468
|
-
const un = "YYYY-MM-DD HH:mm",
|
|
468
|
+
const un = "YYYY-MM-DD HH:mm", ie = (e) => String(e).padStart(2, "0");
|
|
469
469
|
function be(e) {
|
|
470
470
|
const t = new Date(e);
|
|
471
|
-
return Number.isNaN(t.getTime()) ? "" : `${t.getFullYear()}-${
|
|
471
|
+
return Number.isNaN(t.getTime()) ? "" : `${t.getFullYear()}-${ie(t.getMonth() + 1)}-${ie(t.getDate())} ${ie(t.getHours())}:${ie(t.getMinutes())}`;
|
|
472
472
|
}
|
|
473
|
-
function mn(e, t,
|
|
474
|
-
const { t:
|
|
473
|
+
function mn(e, t, i) {
|
|
474
|
+
const { t: o } = w(I);
|
|
475
475
|
return W(
|
|
476
476
|
() => ({
|
|
477
477
|
of: (s) => {
|
|
478
|
-
if (s ===
|
|
479
|
-
const
|
|
480
|
-
if (
|
|
478
|
+
if (s === i) return o("history.draft");
|
|
479
|
+
const r = t.find((d) => d.revisionId === s);
|
|
480
|
+
if (r) return o("release.number", { number: r.number });
|
|
481
481
|
const l = e.find((d) => d.id === s);
|
|
482
|
-
return l ?
|
|
482
|
+
return l ? o("history.revisionOf", { time: be(l.savedAt) }) : o("history.earlierRevision");
|
|
483
483
|
},
|
|
484
484
|
time: be
|
|
485
485
|
}),
|
|
486
|
-
[
|
|
486
|
+
[o, e, t, i]
|
|
487
487
|
);
|
|
488
488
|
}
|
|
489
489
|
function hn({
|
|
490
490
|
client: e,
|
|
491
491
|
kind: t,
|
|
492
|
-
id:
|
|
493
|
-
draftRevisionId:
|
|
492
|
+
id: i,
|
|
493
|
+
draftRevisionId: o,
|
|
494
494
|
onRestored: s
|
|
495
495
|
}) {
|
|
496
|
-
const { t:
|
|
497
|
-
queryKey: p.history(l, t,
|
|
498
|
-
queryFn: ({ pageParam: b }) => e.listHistory(t,
|
|
496
|
+
const { t: r } = w(I), { workspaceId: l, members: d } = H(), c = Te(), a = Le({
|
|
497
|
+
queryKey: p.history(l, t, i),
|
|
498
|
+
queryFn: ({ pageParam: b }) => e.listHistory(t, i, b),
|
|
499
499
|
initialPageParam: "",
|
|
500
500
|
getNextPageParam: (b) => b.nextPageToken || void 0
|
|
501
501
|
}), u = W(
|
|
502
|
-
() => (
|
|
503
|
-
[
|
|
504
|
-
), y = W(() =>
|
|
502
|
+
() => (a.data?.pages ?? []).flatMap((b) => b.revisions),
|
|
503
|
+
[a.data]
|
|
504
|
+
), y = W(() => a.data?.pages[0]?.releases ?? [], [a.data]), h = mn(u, y, o), [S, P] = V(null), [m, f] = V([]), T = W(
|
|
505
505
|
() => Object.fromEntries(m.map((b) => [b, !0])),
|
|
506
506
|
[m]
|
|
507
|
-
),
|
|
508
|
-
const v = Object.fromEntries(
|
|
507
|
+
), M = (b) => f((D) => {
|
|
508
|
+
const v = Object.fromEntries(D.map((O) => [O, !0])), A = typeof b == "function" ? b(v) : b, K = Object.keys(A).filter((O) => A[O]), le = D.filter((O) => K.includes(O)), ne = K.filter((O) => !D.includes(O));
|
|
509
509
|
return [...le, ...ne].slice(-2);
|
|
510
|
-
}),
|
|
511
|
-
(b,
|
|
510
|
+
}), F = m.length === 2 ? [...m].sort(
|
|
511
|
+
(b, D) => u.findIndex((v) => v.id === D) - u.findIndex((v) => v.id === b)
|
|
512
512
|
) : null, Q = W(() => {
|
|
513
|
-
const b = (v) => y.filter((
|
|
513
|
+
const b = (v) => y.filter((A) => A.revisionId === v), D = (v) => d.byId(v)?.displayName ?? r("history.unknownPerson");
|
|
514
514
|
return [
|
|
515
515
|
{
|
|
516
516
|
id: "revision",
|
|
517
|
-
header:
|
|
517
|
+
header: r("history.columns.revision"),
|
|
518
518
|
enableSorting: !1,
|
|
519
519
|
cell: ({ row: v }) => /* @__PURE__ */ n(
|
|
520
520
|
xe,
|
|
521
521
|
{
|
|
522
|
-
value: v.original.id ===
|
|
523
|
-
subText: v.original.restoredFromRevisionId ?
|
|
522
|
+
value: v.original.id === o ? r("history.draft") : r("history.revision"),
|
|
523
|
+
subText: v.original.restoredFromRevisionId ? r("history.restoredFrom", {
|
|
524
524
|
revision: h.of(v.original.restoredFromRevisionId)
|
|
525
525
|
}) : void 0
|
|
526
526
|
}
|
|
@@ -528,20 +528,20 @@ function hn({
|
|
|
528
528
|
},
|
|
529
529
|
{
|
|
530
530
|
id: "release",
|
|
531
|
-
header:
|
|
531
|
+
header: r("history.columns.release"),
|
|
532
532
|
enableSorting: !1,
|
|
533
533
|
cell: ({ row: v }) => {
|
|
534
|
-
const
|
|
534
|
+
const A = b(v.original.id);
|
|
535
535
|
return /* @__PURE__ */ n(
|
|
536
536
|
Ie,
|
|
537
537
|
{
|
|
538
|
-
value:
|
|
538
|
+
value: A.length > 0 ? A.map((K) => r("release.number", { number: K.number })).join(", ") : null,
|
|
539
539
|
fallbackTone: "success",
|
|
540
540
|
detailColor: "fg.muted",
|
|
541
|
-
detail:
|
|
542
|
-
(
|
|
543
|
-
name:
|
|
544
|
-
time: h.time(
|
|
541
|
+
detail: A.length > 0 ? A.map(
|
|
542
|
+
(K) => r("history.cutBy", {
|
|
543
|
+
name: D(K.releasedBy),
|
|
544
|
+
time: h.time(K.releasedAt)
|
|
545
545
|
})
|
|
546
546
|
).join(" ") : null
|
|
547
547
|
}
|
|
@@ -550,20 +550,20 @@ function hn({
|
|
|
550
550
|
},
|
|
551
551
|
{
|
|
552
552
|
id: "savedBy",
|
|
553
|
-
header:
|
|
553
|
+
header: r("history.columns.savedBy"),
|
|
554
554
|
enableSorting: !1,
|
|
555
|
-
cell: ({ row: v }) => /* @__PURE__ */ n(
|
|
555
|
+
cell: ({ row: v }) => /* @__PURE__ */ n(Ne, { name: D(v.original.savedBy) })
|
|
556
556
|
},
|
|
557
557
|
{
|
|
558
558
|
id: "savedAt",
|
|
559
|
-
header:
|
|
559
|
+
header: r("history.columns.savedAt"),
|
|
560
560
|
enableSorting: !1,
|
|
561
561
|
size: 140,
|
|
562
|
-
cell: ({ row: v }) => /* @__PURE__ */ n(
|
|
562
|
+
cell: ({ row: v }) => /* @__PURE__ */ n(Ae, { value: v.original.savedAt, format: un })
|
|
563
563
|
},
|
|
564
564
|
{
|
|
565
565
|
id: "validity",
|
|
566
|
-
header:
|
|
566
|
+
header: r("validity.column"),
|
|
567
567
|
enableSorting: !1,
|
|
568
568
|
cell: ({ row: v }) => /* @__PURE__ */ n(rn, { validity: v.original.validity })
|
|
569
569
|
},
|
|
@@ -572,13 +572,13 @@ function hn({
|
|
|
572
572
|
header: "",
|
|
573
573
|
enableSorting: !1,
|
|
574
574
|
minSize: 60,
|
|
575
|
-
cell: ({ row: v }) => c && v.original.id !==
|
|
575
|
+
cell: ({ row: v }) => c && v.original.id !== o ? /* @__PURE__ */ n(
|
|
576
576
|
ze,
|
|
577
577
|
{
|
|
578
578
|
actions: [
|
|
579
579
|
{
|
|
580
580
|
icon: Ge,
|
|
581
|
-
label:
|
|
581
|
+
label: r("history.restore"),
|
|
582
582
|
onClick: () => P(v.original)
|
|
583
583
|
}
|
|
584
584
|
]
|
|
@@ -586,52 +586,52 @@ function hn({
|
|
|
586
586
|
) : null
|
|
587
587
|
}
|
|
588
588
|
];
|
|
589
|
-
}, [
|
|
589
|
+
}, [r, d, y, h, o, c]), L = (b) => d.byId(b)?.displayName ?? r("history.unknownPerson"), te = y.filter((b) => !u.some((D) => D.id === b.revisionId));
|
|
590
590
|
return /* @__PURE__ */ g(q, { children: [
|
|
591
591
|
/* @__PURE__ */ n(B, { px: "8", py: "4", children: /* @__PURE__ */ g(C, { gap: "1", children: [
|
|
592
|
-
/* @__PURE__ */ n(R, { color: "fg.muted", children:
|
|
593
|
-
|
|
594
|
-
release:
|
|
592
|
+
/* @__PURE__ */ n(R, { color: "fg.muted", children: r("history.hint") }),
|
|
593
|
+
a.hasNextPage ? te.map((b) => /* @__PURE__ */ n(R, { color: "fg.muted", children: r("history.olderRelease", {
|
|
594
|
+
release: r("release.number", { number: b.number }),
|
|
595
595
|
name: L(b.releasedBy),
|
|
596
596
|
time: h.time(b.releasedAt)
|
|
597
597
|
}) }, b.id)) : null
|
|
598
598
|
] }) }),
|
|
599
|
-
|
|
599
|
+
a.isError ? /* @__PURE__ */ n(B, { px: "8", pb: "4", children: /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: r("startPage.error") }) }) : null,
|
|
600
600
|
/* @__PURE__ */ n(
|
|
601
601
|
He,
|
|
602
602
|
{
|
|
603
603
|
columns: Q,
|
|
604
604
|
data: u,
|
|
605
|
-
loading:
|
|
605
|
+
loading: a.isLoading,
|
|
606
606
|
selectable: !0,
|
|
607
607
|
rowSelection: T,
|
|
608
|
-
onRowSelectionChange:
|
|
608
|
+
onRowSelectionChange: M,
|
|
609
609
|
getRowId: (b) => b.id,
|
|
610
|
-
emptyState: /* @__PURE__ */ n(ve, { icon: /* @__PURE__ */ n($e, { size: 32 }), header:
|
|
610
|
+
emptyState: /* @__PURE__ */ n(ve, { icon: /* @__PURE__ */ n($e, { size: 32 }), header: r("history.none") })
|
|
611
611
|
}
|
|
612
612
|
),
|
|
613
|
-
|
|
614
|
-
|
|
613
|
+
a.hasNextPage || F ? /* @__PURE__ */ n(B, { px: "8", py: "6", children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
614
|
+
a.hasNextPage ? /* @__PURE__ */ n(
|
|
615
615
|
x,
|
|
616
616
|
{
|
|
617
617
|
size: "sm",
|
|
618
618
|
variant: "outline",
|
|
619
619
|
alignSelf: "center",
|
|
620
|
-
loading:
|
|
620
|
+
loading: a.isFetchingNextPage,
|
|
621
621
|
onClick: () => {
|
|
622
|
-
|
|
622
|
+
a.fetchNextPage();
|
|
623
623
|
},
|
|
624
|
-
children:
|
|
624
|
+
children: r("history.loadMore")
|
|
625
625
|
}
|
|
626
626
|
) : null,
|
|
627
|
-
|
|
627
|
+
F ? /* @__PURE__ */ n(
|
|
628
628
|
cn,
|
|
629
629
|
{
|
|
630
630
|
client: e,
|
|
631
631
|
kind: t,
|
|
632
|
-
id:
|
|
633
|
-
fromRevisionId:
|
|
634
|
-
toRevisionId:
|
|
632
|
+
id: i,
|
|
633
|
+
fromRevisionId: F[0],
|
|
634
|
+
toRevisionId: F[1],
|
|
635
635
|
labelOf: h.of
|
|
636
636
|
}
|
|
637
637
|
) : null
|
|
@@ -642,13 +642,13 @@ function hn({
|
|
|
642
642
|
revision: S,
|
|
643
643
|
label: S ? h.of(S.id) : "",
|
|
644
644
|
onClose: () => P(null),
|
|
645
|
-
onRestore: (b) => e.restoreRevision(t,
|
|
645
|
+
onRestore: (b) => e.restoreRevision(t, i, b.id, o),
|
|
646
646
|
onRestored: () => {
|
|
647
647
|
f([]), Promise.resolve(s?.()).catch(() => {
|
|
648
648
|
});
|
|
649
649
|
},
|
|
650
650
|
kind: t,
|
|
651
|
-
id:
|
|
651
|
+
id: i
|
|
652
652
|
}
|
|
653
653
|
)
|
|
654
654
|
] });
|
|
@@ -656,36 +656,36 @@ function hn({
|
|
|
656
656
|
function gn({
|
|
657
657
|
revision: e,
|
|
658
658
|
label: t,
|
|
659
|
-
onClose:
|
|
660
|
-
onRestore:
|
|
659
|
+
onClose: i,
|
|
660
|
+
onRestore: o,
|
|
661
661
|
onRestored: s,
|
|
662
|
-
kind:
|
|
662
|
+
kind: r,
|
|
663
663
|
id: l
|
|
664
664
|
}) {
|
|
665
|
-
const { t: d } = w(I), { workspaceId: c } = H(),
|
|
665
|
+
const { t: d } = w(I), { workspaceId: c } = H(), a = oe(), u = e !== null, [y, h] = V({ revision: e, label: t });
|
|
666
666
|
e && e !== y.revision && h({ revision: e, label: t });
|
|
667
667
|
const S = X({
|
|
668
|
-
mutationFn:
|
|
668
|
+
mutationFn: o,
|
|
669
669
|
onSuccess: () => {
|
|
670
|
-
s(),
|
|
671
|
-
queryKey: p.configuration(c,
|
|
672
|
-
}),
|
|
673
|
-
queryKey: p.configurations(c,
|
|
674
|
-
}),
|
|
670
|
+
s(), a.invalidateQueries({
|
|
671
|
+
queryKey: p.configuration(c, r, l)
|
|
672
|
+
}), a.invalidateQueries({
|
|
673
|
+
queryKey: p.configurations(c, r)
|
|
674
|
+
}), i();
|
|
675
675
|
}
|
|
676
676
|
}), { reset: P } = S;
|
|
677
677
|
return G(() => {
|
|
678
678
|
u && P();
|
|
679
679
|
}, [u, P]), /* @__PURE__ */ n(
|
|
680
|
-
|
|
680
|
+
ae,
|
|
681
681
|
{
|
|
682
682
|
open: u,
|
|
683
|
-
onClose:
|
|
683
|
+
onClose: i,
|
|
684
684
|
header: d("history.restoreTitle", { revision: y.label }),
|
|
685
685
|
lazyMount: !0,
|
|
686
686
|
unmountOnExit: !0,
|
|
687
687
|
footer: /* @__PURE__ */ g($, { gap: "2", children: [
|
|
688
|
-
/* @__PURE__ */ n(x, { variant: "outline", onClick:
|
|
688
|
+
/* @__PURE__ */ n(x, { variant: "outline", onClick: i, children: d("common.cancel") }),
|
|
689
689
|
/* @__PURE__ */ n(
|
|
690
690
|
x,
|
|
691
691
|
{
|
|
@@ -703,30 +703,30 @@ function gn({
|
|
|
703
703
|
}
|
|
704
704
|
);
|
|
705
705
|
}
|
|
706
|
-
const fn = (e) => e.replace(/_([a-z0-9])/g, (t,
|
|
706
|
+
const fn = (e) => e.replace(/_([a-z0-9])/g, (t, i) => i.toUpperCase());
|
|
707
707
|
function bn(e) {
|
|
708
708
|
return !e || e === "/" ? "" : e.replace(/^\//, "").split("/").map((t) => fn(t.replace(/~1/g, "/").replace(/~0/g, "~"))).join(".");
|
|
709
709
|
}
|
|
710
710
|
function yn(e) {
|
|
711
711
|
const t = /* @__PURE__ */ new Map();
|
|
712
|
-
for (const
|
|
713
|
-
const
|
|
714
|
-
if (!
|
|
715
|
-
const s = t.get(
|
|
716
|
-
t.set(
|
|
712
|
+
for (const i of e) {
|
|
713
|
+
const o = bn(i.path);
|
|
714
|
+
if (!o) continue;
|
|
715
|
+
const s = t.get(o);
|
|
716
|
+
t.set(o, s ? `${s} ${i.message}` : i.message);
|
|
717
717
|
}
|
|
718
718
|
return t;
|
|
719
719
|
}
|
|
720
720
|
function Sn({
|
|
721
721
|
open: e,
|
|
722
722
|
onClose: t,
|
|
723
|
-
client:
|
|
724
|
-
mapping:
|
|
723
|
+
client: i,
|
|
724
|
+
mapping: o,
|
|
725
725
|
onMove: s
|
|
726
726
|
}) {
|
|
727
|
-
const { t:
|
|
728
|
-
mutationFn: (m) =>
|
|
729
|
-
}),
|
|
727
|
+
const { t: r } = w(I), l = ke({ defaultValues: { blueprintReleaseId: null } }), d = Ue({ control: l.control, name: "blueprintReleaseId" }) ?? "", c = X({
|
|
728
|
+
mutationFn: (m) => i.checkMappingBlueprintRelease(o.id, m)
|
|
729
|
+
}), a = X({ mutationFn: s, onSuccess: t }), { reset: u } = l, { reset: y } = c, { reset: h } = a;
|
|
730
730
|
G(() => {
|
|
731
731
|
e && (u({ blueprintReleaseId: null }), y(), h());
|
|
732
732
|
}, [e, u, y, h]);
|
|
@@ -734,23 +734,23 @@ function Sn({
|
|
|
734
734
|
return G(() => {
|
|
735
735
|
S !== void 0 && S !== d && y();
|
|
736
736
|
}, [S, d, y]), /* @__PURE__ */ n(
|
|
737
|
-
|
|
737
|
+
ae,
|
|
738
738
|
{
|
|
739
739
|
open: e,
|
|
740
740
|
onClose: t,
|
|
741
|
-
header:
|
|
741
|
+
header: r("mappings.moveTitle"),
|
|
742
742
|
lazyMount: !0,
|
|
743
743
|
unmountOnExit: !0,
|
|
744
744
|
footer: /* @__PURE__ */ g($, { gap: "2", children: [
|
|
745
|
-
/* @__PURE__ */ n(x, { variant: "outline", onClick: t, children:
|
|
745
|
+
/* @__PURE__ */ n(x, { variant: "outline", onClick: t, children: r("common.cancel") }),
|
|
746
746
|
/* @__PURE__ */ n(
|
|
747
747
|
x,
|
|
748
748
|
{
|
|
749
749
|
variant: "outline",
|
|
750
|
-
disabled: !d || d ===
|
|
750
|
+
disabled: !d || d === o.content.blueprintReleaseId,
|
|
751
751
|
loading: c.isPending,
|
|
752
752
|
onClick: () => c.mutate(d),
|
|
753
|
-
children:
|
|
753
|
+
children: r("mappings.check")
|
|
754
754
|
}
|
|
755
755
|
),
|
|
756
756
|
/* @__PURE__ */ n(
|
|
@@ -758,40 +758,40 @@ function Sn({
|
|
|
758
758
|
{
|
|
759
759
|
variant: "solid",
|
|
760
760
|
disabled: !P,
|
|
761
|
-
loading:
|
|
762
|
-
onClick: () =>
|
|
763
|
-
children:
|
|
761
|
+
loading: a.isPending,
|
|
762
|
+
onClick: () => a.mutate(d),
|
|
763
|
+
children: r("mappings.moveConfirm")
|
|
764
764
|
}
|
|
765
765
|
)
|
|
766
766
|
] }),
|
|
767
767
|
children: /* @__PURE__ */ n(Ee, { ...l, children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
768
|
-
/* @__PURE__ */ n(vn, { mapping:
|
|
769
|
-
c.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title:
|
|
768
|
+
/* @__PURE__ */ n(vn, { mapping: o }),
|
|
769
|
+
c.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: r("mappings.checkFailed"), children: c.error.message }) : null,
|
|
770
770
|
P ? /* @__PURE__ */ n(In, { report: P }) : null,
|
|
771
|
-
|
|
771
|
+
a.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: r("save.failed"), children: a.error.message }) : null
|
|
772
772
|
] }) })
|
|
773
773
|
}
|
|
774
774
|
);
|
|
775
775
|
}
|
|
776
776
|
function vn({ mapping: e }) {
|
|
777
|
-
const { t } = w(I), { blueprints:
|
|
778
|
-
queryKey: p.blueprintReleases(
|
|
779
|
-
queryFn: () =>
|
|
780
|
-
enabled:
|
|
777
|
+
const { t } = w(I), { blueprints: i } = j(), { workspaceId: o } = H(), s = _({
|
|
778
|
+
queryKey: p.blueprintReleases(o, e.content.blueprintId),
|
|
779
|
+
queryFn: () => i?.listReleases(e.content.blueprintId) ?? Promise.resolve([]),
|
|
780
|
+
enabled: i !== void 0
|
|
781
781
|
});
|
|
782
|
-
return
|
|
783
|
-
|
|
782
|
+
return i ? /* @__PURE__ */ n(
|
|
783
|
+
Ke,
|
|
784
784
|
{
|
|
785
785
|
name: "blueprintReleaseId",
|
|
786
786
|
label: t("mappings.newRelease"),
|
|
787
787
|
required: !0,
|
|
788
|
-
options: (s.data ?? []).filter((
|
|
788
|
+
options: (s.data ?? []).filter((r) => r.id !== e.content.blueprintReleaseId).map((r) => ({ id: r.id, label: r.label }))
|
|
789
789
|
}
|
|
790
790
|
) : /* @__PURE__ */ n(J, { name: "blueprintReleaseId", label: t("mappings.newReleaseId"), required: !0 });
|
|
791
791
|
}
|
|
792
792
|
function In({ report: e }) {
|
|
793
|
-
const { t } = w(I),
|
|
794
|
-
return
|
|
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: [
|
|
795
795
|
e.missingFieldPaths.length > 0 ? /* @__PURE__ */ n(ye, { label: t("mappings.lostFields"), paths: e.missingFieldPaths }) : null,
|
|
796
796
|
e.missingReleaseSpecFields.length > 0 ? /* @__PURE__ */ n(ye, { label: t("mappings.lostReleaseSpec"), paths: e.missingReleaseSpecFields }) : null
|
|
797
797
|
] }) });
|
|
@@ -799,12 +799,12 @@ function In({ report: e }) {
|
|
|
799
799
|
function ye({ label: e, paths: t }) {
|
|
800
800
|
return /* @__PURE__ */ g(C, { gap: "1", children: [
|
|
801
801
|
/* @__PURE__ */ n(R, { fontWeight: "medium", children: e }),
|
|
802
|
-
/* @__PURE__ */ n(
|
|
802
|
+
/* @__PURE__ */ n(N.Root, { ps: "4", "aria-label": e, children: t.map((i) => /* @__PURE__ */ n(N.Item, { children: /* @__PURE__ */ n(ee, { children: i }) }, i)) })
|
|
803
803
|
] });
|
|
804
804
|
}
|
|
805
|
-
const
|
|
805
|
+
const De = Re(null);
|
|
806
806
|
function Ln() {
|
|
807
|
-
const e = we(
|
|
807
|
+
const e = we(De);
|
|
808
808
|
if (!e) throw new Error("useMappingPage outside a Mapping's page");
|
|
809
809
|
return e;
|
|
810
810
|
}
|
|
@@ -815,57 +815,57 @@ const ce = (e) => structuredClone(e), Pn = [
|
|
|
815
815
|
["sourceKey", "extractSeparator"]
|
|
816
816
|
], Rn = (e) => e === "" || e !== null && typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0;
|
|
817
817
|
function Se(e, t) {
|
|
818
|
-
const
|
|
819
|
-
for (const
|
|
820
|
-
const s =
|
|
821
|
-
(c,
|
|
822
|
-
|
|
818
|
+
const i = JSON.parse(JSON.stringify(e));
|
|
819
|
+
for (const o of Pn) {
|
|
820
|
+
const s = o.slice(0, -1), r = o[o.length - 1], l = s.reduce(
|
|
821
|
+
(c, a) => c?.[a],
|
|
822
|
+
i
|
|
823
823
|
), d = s.reduce(
|
|
824
|
-
(c,
|
|
824
|
+
(c, a) => c?.[a],
|
|
825
825
|
t
|
|
826
826
|
);
|
|
827
|
-
l &&
|
|
827
|
+
l && r in l && Rn(l[r]) && !(d && r in d) && delete l[r];
|
|
828
828
|
}
|
|
829
|
-
return
|
|
829
|
+
return i;
|
|
830
830
|
}
|
|
831
831
|
function qn({
|
|
832
832
|
client: e,
|
|
833
833
|
id: t,
|
|
834
|
-
onDeleted:
|
|
835
|
-
editor:
|
|
834
|
+
onDeleted: i,
|
|
835
|
+
editor: o
|
|
836
836
|
}) {
|
|
837
|
-
const { t: s } = w(I), { workspaceId:
|
|
838
|
-
queryKey: p.mapping(
|
|
837
|
+
const { t: s } = w(I), { workspaceId: r } = H(), l = _({
|
|
838
|
+
queryKey: p.mapping(r, t),
|
|
839
839
|
queryFn: () => e.getMapping(t)
|
|
840
840
|
});
|
|
841
|
-
return l.isError || !l.data ? /* @__PURE__ */ n(Pe, { title: s("section.mappings.title"), children: l.isError ? /* @__PURE__ */ n(Jt, {}) : /* @__PURE__ */ n(
|
|
841
|
+
return l.isError || !l.data ? /* @__PURE__ */ n(Pe, { title: s("section.mappings.title"), children: l.isError ? /* @__PURE__ */ n(Jt, {}) : /* @__PURE__ */ n(Ut, {}) }) : /* @__PURE__ */ n(wn, { client: e, mapping: l.data, onDeleted: i, editor: o });
|
|
842
842
|
}
|
|
843
843
|
function wn({
|
|
844
844
|
client: e,
|
|
845
845
|
mapping: t,
|
|
846
|
-
onDeleted:
|
|
847
|
-
editor:
|
|
846
|
+
onDeleted: i,
|
|
847
|
+
editor: o
|
|
848
848
|
}) {
|
|
849
|
-
const { t: s } = w(I), { workspaceId:
|
|
850
|
-
queryKey: p.mappingImportProfiles(
|
|
849
|
+
const { t: s } = w(I), { workspaceId: r } = H(), { paths: l } = j(), d = Te(), c = oe(), [a, u] = V(!1), [y, h] = V(!1), S = Me([t.content.blueprintId]), P = _({
|
|
850
|
+
queryKey: p.mappingImportProfiles(r, t.id),
|
|
851
851
|
queryFn: () => e.listMappingImportProfiles(t.id)
|
|
852
|
-
}), m = ke({ defaultValues: ce(t.content) }), { reset: f, formState: T, setError:
|
|
852
|
+
}), m = ke({ defaultValues: ce(t.content) }), { reset: f, formState: T, setError: M } = m, F = Ze(() => {
|
|
853
853
|
for (const [k, de] of yn(t.validity.reasons))
|
|
854
|
-
|
|
855
|
-
}, [t,
|
|
854
|
+
M(k, { type: "importhub", message: de });
|
|
855
|
+
}, [t, M]);
|
|
856
856
|
G(() => {
|
|
857
|
-
T.isDirty || f(ce(t.content)),
|
|
858
|
-
}, [t, f, T.isDirty,
|
|
857
|
+
T.isDirty || f(ce(t.content)), F();
|
|
858
|
+
}, [t, f, T.isDirty, F]);
|
|
859
859
|
const Q = (k) => {
|
|
860
|
-
c.setQueryData(p.mapping(
|
|
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) });
|
|
861
861
|
}, L = X({
|
|
862
862
|
mutationFn: (k) => e.updateMapping(t.id, k, t.state.draftRevisionId),
|
|
863
863
|
onSuccess: Q,
|
|
864
864
|
// Nothing was saved: the draft's reasons still hold.
|
|
865
|
-
onError:
|
|
865
|
+
onError: F
|
|
866
866
|
}), te = () => {
|
|
867
867
|
m.clearErrors(), m.handleSubmit((k) => L.mutate(Se(k, t.content)))();
|
|
868
|
-
}, [b,
|
|
868
|
+
}, [b, D] = Yt(o?.tabs), v = on({
|
|
869
869
|
client: e,
|
|
870
870
|
kind: "mapping",
|
|
871
871
|
id: t.id,
|
|
@@ -874,12 +874,12 @@ function wn({
|
|
|
874
874
|
unsaved: T.isDirty
|
|
875
875
|
});
|
|
876
876
|
We(
|
|
877
|
-
d ? /* @__PURE__ */ g(
|
|
878
|
-
/* @__PURE__ */ n(
|
|
879
|
-
/* @__PURE__ */ g(
|
|
877
|
+
d ? /* @__PURE__ */ g(U, { storageKey: "importhub.mapping.rail", children: [
|
|
878
|
+
/* @__PURE__ */ n(U.Header, { title: s("rail.title") }),
|
|
879
|
+
/* @__PURE__ */ g(U.Section, { id: "actions", label: s("rail.actions"), children: [
|
|
880
880
|
v.railAction,
|
|
881
881
|
/* @__PURE__ */ n(
|
|
882
|
-
|
|
882
|
+
U.IconButton,
|
|
883
883
|
{
|
|
884
884
|
label: s("mappings.delete"),
|
|
885
885
|
icon: /* @__PURE__ */ n(je, { size: 16 }),
|
|
@@ -890,17 +890,17 @@ function wn({
|
|
|
890
890
|
] })
|
|
891
891
|
] }) : null
|
|
892
892
|
);
|
|
893
|
-
const
|
|
893
|
+
const A = S.blueprintName(t.content.blueprintId), K = S.releaseLabel(
|
|
894
894
|
t.content.blueprintId,
|
|
895
895
|
t.content.blueprintReleaseId
|
|
896
896
|
), le = t.content.fields?.length ?? 0, ne = /* @__PURE__ */ g(q, { children: [
|
|
897
897
|
v.notice,
|
|
898
|
-
/* @__PURE__ */ n(
|
|
898
|
+
/* @__PURE__ */ n(Fe, { validity: t.validity }),
|
|
899
899
|
L.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: s("save.failed"), children: L.error.message }) : null
|
|
900
|
-
] }),
|
|
900
|
+
] }), O = W(
|
|
901
901
|
() => ({ mapping: t, canConfigure: d, reasons: t.validity.reasons }),
|
|
902
902
|
[t, d]
|
|
903
|
-
), ge =
|
|
903
|
+
), ge = o?.tabs.some((k) => k.value === b) ? b : null;
|
|
904
904
|
return /* @__PURE__ */ g(
|
|
905
905
|
Pe,
|
|
906
906
|
{
|
|
@@ -916,7 +916,7 @@ function wn({
|
|
|
916
916
|
),
|
|
917
917
|
/* @__PURE__ */ n(tn, { state: t.state })
|
|
918
918
|
] }),
|
|
919
|
-
tabs:
|
|
919
|
+
tabs: D,
|
|
920
920
|
actions: d ? /* @__PURE__ */ n(
|
|
921
921
|
x,
|
|
922
922
|
{
|
|
@@ -939,13 +939,13 @@ function wn({
|
|
|
939
939
|
Q(await e.getMapping(t.id));
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
|
-
) : /* @__PURE__ */ n(
|
|
942
|
+
) : /* @__PURE__ */ n(De.Provider, { value: O, children: /* @__PURE__ */ n(Ee, { ...m, children: /* @__PURE__ */ n(
|
|
943
943
|
"form",
|
|
944
944
|
{
|
|
945
945
|
onSubmit: (k) => {
|
|
946
946
|
k.preventDefault(), d && te();
|
|
947
947
|
},
|
|
948
|
-
children:
|
|
948
|
+
children: o && ge ? o.render(ge, ne) : /* @__PURE__ */ n(B, { px: "8", py: "6", children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
949
949
|
ne,
|
|
950
950
|
/* @__PURE__ */ n(se, { title: s("mappings.general"), children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
951
951
|
/* @__PURE__ */ n(
|
|
@@ -958,7 +958,7 @@ function wn({
|
|
|
958
958
|
}
|
|
959
959
|
),
|
|
960
960
|
/* @__PURE__ */ n(
|
|
961
|
-
|
|
961
|
+
Oe,
|
|
962
962
|
{
|
|
963
963
|
name: "description",
|
|
964
964
|
label: s("fields.description"),
|
|
@@ -991,22 +991,22 @@ function wn({
|
|
|
991
991
|
disabled: !d
|
|
992
992
|
}
|
|
993
993
|
),
|
|
994
|
-
|
|
994
|
+
o ? null : /* @__PURE__ */ n(R, { color: "fg.muted", fontSize: "sm", children: s("mappings.fieldCount", { count: le }) })
|
|
995
995
|
] }) }),
|
|
996
996
|
/* @__PURE__ */ n(se, { title: s("mappings.target"), children: /* @__PURE__ */ g(C, { gap: "3", children: [
|
|
997
997
|
S.available ? /* @__PURE__ */ g(q, { children: [
|
|
998
|
-
/* @__PURE__ */ n(
|
|
999
|
-
/* @__PURE__ */ n(
|
|
998
|
+
/* @__PURE__ */ n(re, { label: s("mappings.blueprint"), children: A ?? "…" }),
|
|
999
|
+
/* @__PURE__ */ n(re, { label: s("mappings.release"), children: K ?? "…" })
|
|
1000
1000
|
] }) : /* @__PURE__ */ g(q, { children: [
|
|
1001
|
-
/* @__PURE__ */ n(
|
|
1002
|
-
/* @__PURE__ */ n(
|
|
1001
|
+
/* @__PURE__ */ n(re, { label: s("mappings.blueprintId"), children: /* @__PURE__ */ n(ee, { children: t.content.blueprintId }) }),
|
|
1002
|
+
/* @__PURE__ */ n(re, { label: s("mappings.releaseId"), children: /* @__PURE__ */ n(ee, { children: t.content.blueprintReleaseId }) })
|
|
1003
1003
|
] }),
|
|
1004
1004
|
d ? /* @__PURE__ */ n(B, { children: /* @__PURE__ */ g(x, { variant: "outline", size: "sm", onClick: () => h(!0), children: [
|
|
1005
1005
|
/* @__PURE__ */ n(Qe, { size: 14, "aria-hidden": !0 }),
|
|
1006
1006
|
s("mappings.move")
|
|
1007
1007
|
] }) }) : null
|
|
1008
1008
|
] }) }),
|
|
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(
|
|
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(N.Root, { ps: "4", "aria-label": s("mappings.includedBy"), children: P.data.map((k) => /* @__PURE__ */ n(N.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") }) })
|
|
1010
1010
|
] }) })
|
|
1011
1011
|
}
|
|
1012
1012
|
) }) }),
|
|
@@ -1030,13 +1030,13 @@ function wn({
|
|
|
1030
1030
|
/* @__PURE__ */ n(
|
|
1031
1031
|
en,
|
|
1032
1032
|
{
|
|
1033
|
-
open:
|
|
1033
|
+
open: a,
|
|
1034
1034
|
onClose: () => u(!1),
|
|
1035
1035
|
title: s("mappings.deleteTitle", { name: t.content.name }),
|
|
1036
1036
|
message: s("mappings.deleteMessage"),
|
|
1037
1037
|
onDelete: () => e.deleteMapping(t.id),
|
|
1038
1038
|
onDeleted: () => {
|
|
1039
|
-
u(!1), c.removeQueries({ queryKey: p.mapping(
|
|
1039
|
+
u(!1), c.removeQueries({ queryKey: p.mapping(r, t.id) }), c.invalidateQueries({ queryKey: p.mappings(r) }), i();
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
1042
|
)
|
|
@@ -1044,7 +1044,7 @@ function wn({
|
|
|
1044
1044
|
}
|
|
1045
1045
|
);
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function re({ label: e, children: t }) {
|
|
1048
1048
|
return /* @__PURE__ */ g($, { gap: "4", align: "baseline", children: [
|
|
1049
1049
|
/* @__PURE__ */ n(R, { color: "fg.muted", minW: "40", children: e }),
|
|
1050
1050
|
/* @__PURE__ */ n(B, { children: t })
|
|
@@ -1058,14 +1058,14 @@ export {
|
|
|
1058
1058
|
qn as M,
|
|
1059
1059
|
tn as R,
|
|
1060
1060
|
Qt as S,
|
|
1061
|
-
|
|
1062
|
-
|
|
1061
|
+
Fe as V,
|
|
1062
|
+
Ut as a,
|
|
1063
1063
|
Te as b,
|
|
1064
1064
|
Yt as c,
|
|
1065
|
-
|
|
1065
|
+
on as d,
|
|
1066
1066
|
he as e,
|
|
1067
1067
|
rn as f,
|
|
1068
|
-
|
|
1068
|
+
Me as g,
|
|
1069
1069
|
_n as h,
|
|
1070
1070
|
p as i,
|
|
1071
1071
|
Wn as j,
|
|
@@ -1075,4 +1075,4 @@ export {
|
|
|
1075
1075
|
Vn as r,
|
|
1076
1076
|
j as u
|
|
1077
1077
|
};
|
|
1078
|
-
//# sourceMappingURL=mapping-page-
|
|
1078
|
+
//# sourceMappingURL=mapping-page-tIHPNu7C.js.map
|