@knkcs/importhub-ui 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +5 -4
- package/dist/{importhub-client-Wrb4s3lw.js → importhub-client-BzOVIXA4.js} +16 -7
- package/dist/importhub-client-BzOVIXA4.js.map +1 -0
- package/dist/index.d.ts +298 -5
- package/dist/index.js +1781 -1411
- package/dist/index.js.map +1 -1
- package/dist/mapping-editor.d.ts +96 -1
- package/dist/mapping-editor.js +1 -1
- package/dist/{mapping-page-BTEJR0-z.js → mapping-page-Bl2rA1SR.js} +301 -291
- package/dist/mapping-page-Bl2rA1SR.js.map +1 -0
- package/dist/testing.d.ts +100 -2
- package/dist/testing.js +580 -481
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- package/dist/importhub-client-Wrb4s3lw.js.map +0 -1
- package/dist/mapping-page-BTEJR0-z.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as n, jsxs as g, Fragment as X } from "react/jsx-runtime";
|
|
2
2
|
import { EmptyState as ve, Button as A, StatusBadge as Y } from "@knkcs/anker/atoms";
|
|
3
|
-
import { Modal as oe, StatusBadgeCell as
|
|
4
|
-
import { InputField as J, BaseSelectField as Ke, TextareaField as
|
|
3
|
+
import { Modal as oe, StatusBadgeCell as Re, ContextRail as U, Card as se, TruncatedTextCell as Ae, IdentityCell as Ne, DateCell as xe, ActionCell as ze, DataTable as He } from "@knkcs/anker/components";
|
|
4
|
+
import { InputField as J, BaseSelectField as Ke, TextareaField as Be } from "@knkcs/anker/forms";
|
|
5
5
|
import { useHostIdentity as H } from "@knkcs/anker/host";
|
|
6
|
-
import { Box as
|
|
6
|
+
import { Box as O, Center as Oe, Spinner as _e, Tabs as Z, Stack as C, Text as P, 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 Ie, usePageRail as We } from "@knkcs/anker/templates";
|
|
8
8
|
import { useMutation as q, useQueryClient as ae, useQuery as _, useQueries as Ve, useInfiniteQuery as Le } from "@tanstack/react-query";
|
|
9
9
|
import { CircleAlert as Xe, Tag as qe, RotateCcw as Ge, History as $e, Trash2 as je, ArrowRightLeft as Qe } from "lucide-react";
|
|
10
|
-
import { createContext as
|
|
10
|
+
import { createContext as Pe, useContext as we, useEffect as G, useState as V, useMemo as W, useCallback as Ze } from "react";
|
|
11
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
|
-
import { C as Ye, R as et } from "./importhub-client-
|
|
15
|
-
const tt = { imports: { title: "Importe", empty: "In diesem Workspace gibt es noch keine Importe." }, profiles: { title: "Importprofile", summary_zero: "In diesem Workspace gibt es noch keine Importprofile.", summary_one: "In diesem Workspace gibt es ein Importprofil.", summary_other: "In diesem Workspace gibt es {{count}} Importprofile." }, mappings: { title: "Mappings", empty: "In diesem Workspace gibt es noch keine Mappings." }, entitySets: { title: "Entity Sets", summary_zero: "In diesem Workspace gibt es noch keine Entity Sets.", summary_one: "In diesem Workspace gibt es ein Entity Set.", summary_other: "In diesem Workspace gibt es {{count}} Entity Sets." }, processors: { title: "Prozessoren", summary_zero: "importhub bietet keine Prozessoren an.", summary_one: "importhub bietet einen Prozessor an.", summary_other: "importhub bietet {{count}} Prozessoren an." } }, nt = { loading: "Wird geladen…", error: "Das konnte nicht geladen werden. Versuchen Sie es gleich noch einmal." }, it = { open: "Change Set in contenthub öffnen" }, rt = { cancel: "Abbrechen", delete: "Löschen", create: "Anlegen", save: "Speichern", apply: "Übernehmen", close: "Schließen" }, st = { name: "Name", description: "Beschreibung" }, ot = { column: "Gültigkeit", valid: "Gültig", invalid: "Ungültig", invalidTitle: "Diese Konfiguration ist ungültig und kann nicht freigegeben werden:" }, at = { column: "Letztes Release", number: "Release {{number}}", none: "Noch kein Release", state: { none: "Noch nicht freigegeben", differs: "Entwurf weicht von Release {{number}} ab", current: "Release {{number}} ist aktuell" } }, lt = { nameTaken: "Dieser Name ist schon vergeben.", nameRequired: "Ein Name ist erforderlich.", failed: "Es konnte nicht angelegt werden. Versuchen Sie es gleich noch einmal." }, dt = { failed: "Die Änderungen konnten nicht gespeichert werden." }, ct = { title: "Details", actions: "Aktionen" }, pt = { moveUp: "{{name}} nach oben", moveDown: "{{name}} nach unten", remove: "{{name}} entfernen" }, ut = { new: "Neues Importprofil", empty: "In diesem Workspace gibt es noch keine Importprofile.", general: "Allgemein", entitySet: "Entity Set", entitySetHelp: "Die externen Zeichen-Entities, mit denen die Quelldatei gelesen wird.", noEntitySet: "Keines", autoPublish: "Automatisch veröffentlichen", autoPublishHelp: "Das Change Set eines Imports ohne Item Problems veröffentlichen.", deleteOnSuccess: "Quelldatei nach Erfolg löschen", deleteOnSuccessHelp: "Die Quelldatei löschen, sobald ein Import ohne Item Problems erfolgreich ist, statt nach der Aufbewahrungsfrist.", preprocessors: "Präprozessoren", mappings: "Mappings", postProcessors: "Postprozessoren", noPreprocessors: "Keine Präprozessoren: Die Quelldatei wird gemappt, wie sie ist.", noPostProcessors: "Keine Postprozessoren.", noMappings: "Es enthält noch kein Mapping.", addPreprocessor: "Präprozessor hinzufügen", addPostProcessor: "Postprozessor hinzufügen", addMapping: "Mapping hinzufügen", missingMapping: "Ein Mapping, das es nicht mehr gibt", delete: "Importprofil löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Importprofil wird gelöscht, und kein Import kann es mehr ausführen. Importe, die es ausgeführt hat, bleiben erhalten." }, mt = { empty: "importhub bietet keine Prozessoren an.", kindColumn: "Art", targetColumn: "Konfiguriert in", settingsColumn: "Einstellungen", noSettings: "Keine Einstellungen", kind: { preprocessor: "Präprozessor", post_processor: "Postprozessor" }, target: { source_file: "Importprofil", rich_text_field: "Rich-Text-Feld eines Mappings" }, unknown: "Nicht im Katalog", settingsOf: "Einstellungen von {{name}}", configure: "{{name}} konfigurieren", viewSettings: "Einstellungen von {{name}}", settingsCount_zero: "Keine Einstellungen gesetzt", settingsCount_one: "Eine Einstellung", settingsCount_other: "{{count}} Einstellungen" }, ht = { new: "Neues Mapping", empty: "In diesem Workspace gibt es noch keine Mappings.", general: "Allgemein", blueprint: "Ziel-Blueprint", release: "Blueprint-Release", blueprintId: "Blueprint-ID", releaseId: "Blueprint-Release-ID", idsHelp: "Wie blueprinthub sie nennt.", newRelease: "Neues Blueprint-Release", newReleaseId: "Neue Blueprint-Release-ID", elementSelector: "Element-Selektor", elementSelectorHelp: "Der XPath, der die Elemente wählt, aus denen je ein Content wird.", sourceKeySelector: "Source-Key-Selektor", sourceKeyTemplate: "Source-Key-Vorlage", sourceKeyTemplateHelp: "XPath-Ausdrücke in geschweiften Klammern, etwa {ancestor::gesetz/@refid}-{@nr}; hat Vorrang vor dem Selektor.", fieldCount_zero: "Es mappt noch kein Feld. Feld-Mappings werden im Mapping-Editor bearbeitet.", fieldCount_one: "Es mappt ein Feld. Feld-Mappings werden im Mapping-Editor bearbeitet.", fieldCount_other: "Es mappt {{count}} Felder. Feld-Mappings werden im Mapping-Editor bearbeitet.", target: "Ziel", move: "Auf ein anderes Release umstellen", moveTitle: "Auf ein anderes Blueprint-Release umstellen", check: "Prüfen", checkFailed: "Das Release konnte nicht geprüft werden.", nothingLost: "Jeden gemappten Feldpfad gibt es auch in diesem Release.", lost_one: "Ein gemappter Pfad fehlt in diesem Release:", lost_other: "{{count}} gemappte Pfade fehlen in diesem Release:", lostFields: "Feldpfade", lostReleaseSpec: "Release-Spec-Felder", moveConfirm: "Umstellen", includedBy: "Importprofile, die es enthalten", noProfiles: "Kein Importprofil enthält es.", delete: "Mapping löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Mapping wird gelöscht. importhub lehnt das ab, solange ein Importprofil es enthält." }, gt = { new: "Neues Entity Set", empty: "In diesem Workspace gibt es noch keine Entity Sets.", general: "Allgemein", entities: "Entities", entity: "Entity", noEntities: "Es definiert noch keine Entity.", entityName: "Entity {{index}}", entityText: "Steht für (Entity {{index}})", addEntity: "Entity hinzufügen", removeEntity: "Entity {{index}} entfernen", delete: "Entity Set löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Entity Set wird gelöscht. importhub lehnt das ab, solange ein Importprofil es nennt." }, ft = { settings: "Einstellungen", history: "Verlauf" }, bt = { action: "Release erstellen", title: "Release erstellen", confirm: "Release erstellen", message: "Der gespeicherte Entwurf wird als Release {{number}} freigegeben. Echte Importe verwenden ihn ab ihrem nächsten Start.", unchanged: "Der Entwurf entspricht Release {{number}}: Es gibt nichts freizugeben.", unsaved: "Nicht gespeicherte Änderungen auf dieser Seite gehören nicht zum Release. Speichern Sie sie zuerst, um sie freizugeben.", profilesIntro: "Diese Importprofile enthalten das Mapping und übernehmen das Release bei ihrem nächsten Import:", profiles: "Importprofile, die dieses Release übernehmen", noProfiles: "Noch kein Importprofil enthält das Mapping.", refused: "importhub hat das Release nicht erstellt:", failed: "Das Release konnte nicht erstellt werden. Versuchen Sie es gleich noch einmal.", done: "Release {{number}} ist erstellt.", doneBody: "Echte Importe verwenden es ab ihrem nächsten Start." }, yt = { hint: "Jedes Speichern ist eine Revision. Wählen Sie zwei aus, um sie nebeneinander zu vergleichen.", none: "Noch keine Revisionen.", loadMore: "Ältere Revisionen laden", columns: { revision: "Revision", release: "Release", savedBy: "Gespeichert von", savedAt: "Gespeichert" }, draft: "Entwurf", revision: "Früherer Entwurf", revisionOf: "Revision vom {{time}}", restoredFrom: "Wiederhergestellt aus {{revision}}", cutBy: "Erstellt von {{name}}, {{time}}.", unknownPerson: "Jemand, der nicht mehr im Workspace ist", restore: "Als Entwurf wiederherstellen", restoreTitle: "{{revision}} wiederherstellen?", restoreConfirm: "Wiederherstellen", restoreMessage: "Ihr Inhalt wird als neuer Entwurf gespeichert. Echte Importe verwenden weiter das neueste Release, bis Sie ein neues erstellen.", restoreFailed: "Sie konnte nicht wiederhergestellt werden.", olderRelease: "{{release}} wurde von {{name}} am {{time}} aus einer älteren Revision erstellt: Laden Sie ältere Revisionen, um sie zu sehen.", earlierRevision: "Eine frühere Revision" }, St = { title: "Vergleich", between: "{{from}} verglichen mit {{to}}", field: "Feld", same: "Die beiden Revisionen sind gleich.", differing_one: "Ein Feld unterscheidet sich.", differing_other: "{{count}} Felder unterscheiden sich.", status: { unchanged: "Unverändert", added: "Hinzugefügt", removed: "Entfernt", changed: "Geändert" }, absent: "Nicht gesetzt", missingEntitySet: "Ein Entity Set, das nicht mehr existiert", yes: "Ja", no: "Nein" }, vt = /* @__PURE__ */ JSON.parse(`{"tabs":{"fields":"Felder","versions":"Source Key & Source Versions","output":"Ausgabe","test":"Mapping Test"},"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."},"test":{"title":"Mapping Test","about":"Ein Mapping Test führt dieses Mapping so, wie Sie es gerade bearbeiten, einschließlich ungespeicherter Änderungen, über eine Beispieldatei aus und liest sie wie ein Import. Er berührt nichts außerhalb von importhub: Er legt nichts in contenthub oder mediahub an, fragt keinen anderen Dienst und speichert nichts, auch die Beispieldatei nicht.","aboutDerived":"Verweise bleiben, wie die Beispieldatei sie nennt, Platzhalter-Assets werden nicht verknüpft und kein Post-Processor läuft: Das gehört zum Import eines Importprofils.","adminOnly":"Nur ein Admin kann einen Mapping Test ausführen.","sampleCard":"Beispieldatei","sampleHelp":"Eine XML-Datei, die importhub liest und nicht aufbewahrt.","dropHint":"XML-Beispieldatei hierher ziehen","dragActive":"Zum Auswählen loslassen","chooseFile":"Datei wählen","chosen":"Beispiel","notXml":"{{name}} ist keine XML-Datei.","entitySet":"Entity Set","entitySetHelp":"Das Entity Set, dessen Entities die Beispieldatei verwendet, wie es das Importprofil mit diesem Mapping nennt. Es gilt sein Entwurf.","noEntitySet":"Keins","run":"Mapping Test ausführen","failed":"Der Mapping Test konnte nicht laufen","summary_one":"{{count}} Element gefunden, {{problems}} mit Problemen.","summary_other":"{{count}} Elemente gefunden, {{problems}} mit Problemen.","noElements":"Der Element-Selektor hat in der Beispieldatei kein Element gefunden.","onlyProblems":"Nur Elemente mit Problemen","element":"Element {{position}}: {{sourceKey}}","noSourceKey":"kein Source Key","field":"Feld","value":"Wert","problem":"Fehler","wholeElement":"Das Element","validityPeriod":"Gültigkeitszeitraum","validFromTo":"{{from}} bis {{to}}","open":"offen","displayName":"Anzeigename","collections":"Collections","releaseSpec":"Release Spec","showMore":"Weitere Elemente zeigen","shownOf":"{{shown}} von {{total}} Elementen werden gezeigt.","problemCount_one":"{{count}} Problem","problemCount_other":"{{count}} Probleme"}}`), Pt = { start: "Import starten", empty: "In diesem Workspace lief noch kein Import.", profile: "Importprofil", startedBy: "Gestartet von", started: "Gestartet", ended: "Beendet", matched: "Gefunden", created: "Angelegt", problems: "Probleme", planned: "Geplante Releases", corrected: "Korrigiert", kept: "Beibehalten", unchanged: "Unverändert", loadMore: "Mehr laden", phase: { queued: "Wartet", reading: "Liest", writing: "Schreibt", cancelling: "Wird abgebrochen" }, outcome: { succeeded: "Erfolgreich", succeeded_with_problems: "Erfolgreich mit Problemen", failed: "Fehlgeschlagen", cancelled: "Abgebrochen" }, progressTitle: "Fortschritt", phaseLong: { reading: "Liest die Quelldatei", writing: "Schreibt das Change Set in contenthub" }, progressOf: "{{done}} von {{total}} Einträgen", progressUnknown: "Zählt die Einträge…", queuedBody: "Er wartet, bis der laufende Import des Workspace beendet ist.", failedTitle: "Der Import ist fehlgeschlagen", cancelledBody: "{{person}} hat ihn abgebrochen. Das Change Set, das er geöffnet hatte, wurde verworfen.", cancellingBody: "{{person}} hat den Abbruch angefordert. Er hält beim nächsten Eintrag an.", problemsBody_one: "{{count}} Quellversion konnte nicht gespeichert werden und wurde übersprungen. Das Change Set bleibt erhalten, damit die Redaktion den Rest korrigiert.", problemsBody_other: "{{count}} Quellversionen konnten nicht gespeichert werden und wurden übersprungen. Das Change Set bleibt erhalten, damit die Redaktion den Rest korrigiert.", details: "Details", effectiveDate: "Stichtag", source: "Quelle", sourceValue: "{{reference}}, {{date}}", none: "Keine", changeSet: "Change Set", counts: "Zahlen", releases: "Verwendete Releases", releaseOf: "{{name}}, Release {{number}}", mapping: "Mapping", entitySet: "Entity Set", cancel: "Import abbrechen", cancelTitle: "Diesen Import abbrechen?", cancelMessage: "Er hält beim nächsten Eintrag an, und das Change Set, das er geöffnet hat, wird verworfen. Das lässt sich nicht rückgängig machen.", cancelConfirm: "Import abbrechen", keepRunning: "Weiterlaufen lassen", cancelFailed: "importhub hat den Import nicht abgebrochen: {{message}}", itemProblems: "Probleme je Eintrag", noItemProblems: "Keine Probleme.", noMatchingProblems: "Kein Problem passt.", searchSourceKey: "Nach Quellschlüssel suchen", filterMapping: "Nach Mapping filtern", allMappings: "Alle Mappings ({{count}})", mappingCount: "{{name}} ({{count}})", problemCount: "{{matching}} von {{total}}", sourceKey: "Quellschlüssel", field: "Feld", reason: "Grund", wholeVersion: "Die ganze Quellversion", noSourceKey: "Kein Quellschlüssel", subtitle: "Gestartet von {{person}}, {{time}}", outcomeColumn: "Ergebnis", someone: "Jemand", mappings: "Mappings" }, It = { 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 = {
|
|
14
|
+
import { C as Ye, R as et } from "./importhub-client-BzOVIXA4.js";
|
|
15
|
+
const tt = { imports: { title: "Importe", empty: "In diesem Workspace gibt es noch keine Importe." }, profiles: { title: "Importprofile", summary_zero: "In diesem Workspace gibt es noch keine Importprofile.", summary_one: "In diesem Workspace gibt es ein Importprofil.", summary_other: "In diesem Workspace gibt es {{count}} Importprofile." }, mappings: { title: "Mappings", empty: "In diesem Workspace gibt es noch keine Mappings." }, entitySets: { title: "Entity Sets", summary_zero: "In diesem Workspace gibt es noch keine Entity Sets.", summary_one: "In diesem Workspace gibt es ein Entity Set.", summary_other: "In diesem Workspace gibt es {{count}} Entity Sets." }, processors: { title: "Prozessoren", summary_zero: "importhub bietet keine Prozessoren an.", summary_one: "importhub bietet einen Prozessor an.", summary_other: "importhub bietet {{count}} Prozessoren an." } }, nt = { loading: "Wird geladen…", error: "Das konnte nicht geladen werden. Versuchen Sie es gleich noch einmal." }, it = { open: "Change Set in contenthub öffnen" }, rt = { cancel: "Abbrechen", delete: "Löschen", create: "Anlegen", save: "Speichern", apply: "Übernehmen", close: "Schließen" }, st = { name: "Name", description: "Beschreibung" }, ot = { column: "Gültigkeit", valid: "Gültig", invalid: "Ungültig", invalidTitle: "Diese Konfiguration ist ungültig und kann nicht freigegeben werden:" }, at = { column: "Letztes Release", number: "Release {{number}}", none: "Noch kein Release", state: { none: "Noch nicht freigegeben", differs: "Entwurf weicht von Release {{number}} ab", current: "Release {{number}} ist aktuell" } }, lt = { nameTaken: "Dieser Name ist schon vergeben.", nameRequired: "Ein Name ist erforderlich.", failed: "Es konnte nicht angelegt werden. Versuchen Sie es gleich noch einmal." }, dt = { failed: "Die Änderungen konnten nicht gespeichert werden." }, ct = { title: "Details", actions: "Aktionen" }, pt = { moveUp: "{{name}} nach oben", moveDown: "{{name}} nach unten", remove: "{{name}} entfernen" }, ut = { new: "Neues Importprofil", empty: "In diesem Workspace gibt es noch keine Importprofile.", general: "Allgemein", entitySet: "Entity Set", entitySetHelp: "Die externen Zeichen-Entities, mit denen die Quelldatei gelesen wird.", noEntitySet: "Keines", autoPublish: "Automatisch veröffentlichen", autoPublishHelp: "Das Change Set eines Imports ohne Item Problems veröffentlichen.", deleteOnSuccess: "Quelldatei nach Erfolg löschen", deleteOnSuccessHelp: "Die Quelldatei löschen, sobald ein Import ohne Item Problems erfolgreich ist, statt nach der Aufbewahrungsfrist.", preprocessors: "Präprozessoren", mappings: "Mappings", postProcessors: "Postprozessoren", noPreprocessors: "Keine Präprozessoren: Die Quelldatei wird gemappt, wie sie ist.", noPostProcessors: "Keine Postprozessoren.", noMappings: "Es enthält noch kein Mapping.", addPreprocessor: "Präprozessor hinzufügen", addPostProcessor: "Postprozessor hinzufügen", addMapping: "Mapping hinzufügen", missingMapping: "Ein Mapping, das es nicht mehr gibt", delete: "Importprofil löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Importprofil wird gelöscht, und kein Import kann es mehr ausführen. Importe, die es ausgeführt hat, bleiben erhalten." }, mt = { empty: "importhub bietet keine Prozessoren an.", kindColumn: "Art", targetColumn: "Konfiguriert in", settingsColumn: "Einstellungen", noSettings: "Keine Einstellungen", kind: { preprocessor: "Präprozessor", post_processor: "Postprozessor" }, target: { source_file: "Importprofil", rich_text_field: "Rich-Text-Feld eines Mappings" }, unknown: "Nicht im Katalog", settingsOf: "Einstellungen von {{name}}", configure: "{{name}} konfigurieren", viewSettings: "Einstellungen von {{name}}", settingsCount_zero: "Keine Einstellungen gesetzt", settingsCount_one: "Eine Einstellung", settingsCount_other: "{{count}} Einstellungen" }, ht = { new: "Neues Mapping", empty: "In diesem Workspace gibt es noch keine Mappings.", general: "Allgemein", blueprint: "Ziel-Blueprint", release: "Blueprint-Release", blueprintId: "Blueprint-ID", releaseId: "Blueprint-Release-ID", idsHelp: "Wie blueprinthub sie nennt.", newRelease: "Neues Blueprint-Release", newReleaseId: "Neue Blueprint-Release-ID", elementSelector: "Element-Selektor", elementSelectorHelp: "Der XPath, der die Elemente wählt, aus denen je ein Content wird.", sourceKeySelector: "Source-Key-Selektor", sourceKeyTemplate: "Source-Key-Vorlage", sourceKeyTemplateHelp: "XPath-Ausdrücke in geschweiften Klammern, etwa {ancestor::gesetz/@refid}-{@nr}; hat Vorrang vor dem Selektor.", fieldCount_zero: "Es mappt noch kein Feld. Feld-Mappings werden im Mapping-Editor bearbeitet.", fieldCount_one: "Es mappt ein Feld. Feld-Mappings werden im Mapping-Editor bearbeitet.", fieldCount_other: "Es mappt {{count}} Felder. Feld-Mappings werden im Mapping-Editor bearbeitet.", target: "Ziel", move: "Auf ein anderes Release umstellen", moveTitle: "Auf ein anderes Blueprint-Release umstellen", check: "Prüfen", checkFailed: "Das Release konnte nicht geprüft werden.", nothingLost: "Jeden gemappten Feldpfad gibt es auch in diesem Release.", lost_one: "Ein gemappter Pfad fehlt in diesem Release:", lost_other: "{{count}} gemappte Pfade fehlen in diesem Release:", lostFields: "Feldpfade", lostReleaseSpec: "Release-Spec-Felder", moveConfirm: "Umstellen", includedBy: "Importprofile, die es enthalten", noProfiles: "Kein Importprofil enthält es.", delete: "Mapping löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Mapping wird gelöscht. importhub lehnt das ab, solange ein Importprofil es enthält." }, gt = { new: "Neues Entity Set", empty: "In diesem Workspace gibt es noch keine Entity Sets.", general: "Allgemein", entities: "Entities", entity: "Entity", noEntities: "Es definiert noch keine Entity.", entityName: "Entity {{index}}", entityText: "Steht für (Entity {{index}})", addEntity: "Entity hinzufügen", removeEntity: "Entity {{index}} entfernen", delete: "Entity Set löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Entity Set wird gelöscht. importhub lehnt das ab, solange ein Importprofil es nennt." }, ft = { settings: "Einstellungen", history: "Verlauf" }, bt = { action: "Release erstellen", title: "Release erstellen", confirm: "Release erstellen", message: "Der gespeicherte Entwurf wird als Release {{number}} freigegeben. Echte Importe verwenden ihn ab ihrem nächsten Start.", unchanged: "Der Entwurf entspricht Release {{number}}: Es gibt nichts freizugeben.", unsaved: "Nicht gespeicherte Änderungen auf dieser Seite gehören nicht zum Release. Speichern Sie sie zuerst, um sie freizugeben.", profilesIntro: "Diese Importprofile enthalten das Mapping und übernehmen das Release bei ihrem nächsten Import:", profiles: "Importprofile, die dieses Release übernehmen", noProfiles: "Noch kein Importprofil enthält das Mapping.", refused: "importhub hat das Release nicht erstellt:", failed: "Das Release konnte nicht erstellt werden. Versuchen Sie es gleich noch einmal.", done: "Release {{number}} ist erstellt.", doneBody: "Echte Importe verwenden es ab ihrem nächsten Start." }, yt = { hint: "Jedes Speichern ist eine Revision. Wählen Sie zwei aus, um sie nebeneinander zu vergleichen.", none: "Noch keine Revisionen.", loadMore: "Ältere Revisionen laden", columns: { revision: "Revision", release: "Release", savedBy: "Gespeichert von", savedAt: "Gespeichert" }, draft: "Entwurf", revision: "Früherer Entwurf", revisionOf: "Revision vom {{time}}", restoredFrom: "Wiederhergestellt aus {{revision}}", cutBy: "Erstellt von {{name}}, {{time}}.", unknownPerson: "Jemand, der nicht mehr im Workspace ist", restore: "Als Entwurf wiederherstellen", restoreTitle: "{{revision}} wiederherstellen?", restoreConfirm: "Wiederherstellen", restoreMessage: "Ihr Inhalt wird als neuer Entwurf gespeichert. Echte Importe verwenden weiter das neueste Release, bis Sie ein neues erstellen.", restoreFailed: "Sie konnte nicht wiederhergestellt werden.", olderRelease: "{{release}} wurde von {{name}} am {{time}} aus einer älteren Revision erstellt: Laden Sie ältere Revisionen, um sie zu sehen.", earlierRevision: "Eine frühere Revision" }, St = { title: "Vergleich", between: "{{from}} verglichen mit {{to}}", field: "Feld", same: "Die beiden Revisionen sind gleich.", differing_one: "Ein Feld unterscheidet sich.", differing_other: "{{count}} Felder unterscheiden sich.", status: { unchanged: "Unverändert", added: "Hinzugefügt", removed: "Entfernt", changed: "Geändert" }, absent: "Nicht gesetzt", missingEntitySet: "Ein Entity Set, das nicht mehr existiert", yes: "Ja", no: "Nein" }, vt = /* @__PURE__ */ JSON.parse(`{"tabs":{"fields":"Felder","versions":"Source Key & Source Versions","output":"Ausgabe","test":"Mapping Test"},"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."},"test":{"title":"Mapping Test","about":"Ein Mapping Test führt dieses Mapping so, wie Sie es gerade bearbeiten, einschließlich ungespeicherter Änderungen, über eine Beispieldatei aus und liest sie wie ein Import. Er berührt nichts außerhalb von importhub: Er legt nichts in contenthub oder mediahub an, fragt keinen anderen Dienst und speichert nichts, auch die Beispieldatei nicht.","aboutDerived":"Verweise bleiben, wie die Beispieldatei sie nennt, Platzhalter-Assets werden nicht verknüpft und kein Post-Processor läuft: Das gehört zum Import eines Importprofils.","adminOnly":"Nur ein Admin kann einen Mapping Test ausführen.","sampleCard":"Beispieldatei","sampleHelp":"Eine XML-Datei, die importhub liest und nicht aufbewahrt.","dropHint":"XML-Beispieldatei hierher ziehen","dragActive":"Zum Auswählen loslassen","chooseFile":"Datei wählen","chosen":"Beispiel","notXml":"{{name}} ist keine XML-Datei.","entitySet":"Entity Set","entitySetHelp":"Das Entity Set, dessen Entities die Beispieldatei verwendet, wie es das Importprofil mit diesem Mapping nennt. Es gilt sein Entwurf.","noEntitySet":"Keins","run":"Mapping Test ausführen","failed":"Der Mapping Test konnte nicht laufen","summary_one":"{{count}} Element gefunden, {{problems}} mit Problemen.","summary_other":"{{count}} Elemente gefunden, {{problems}} mit Problemen.","noElements":"Der Element-Selektor hat in der Beispieldatei kein Element gefunden.","onlyProblems":"Nur Elemente mit Problemen","element":"Element {{position}}: {{sourceKey}}","noSourceKey":"kein Source Key","field":"Feld","value":"Wert","problem":"Fehler","wholeElement":"Das Element","validityPeriod":"Gültigkeitszeitraum","validFromTo":"{{from}} bis {{to}}","open":"offen","displayName":"Anzeigename","collections":"Collections","releaseSpec":"Release Spec","showMore":"Weitere Elemente zeigen","shownOf":"{{shown}} von {{total}} Elementen werden gezeigt.","problemCount_one":"{{count}} Problem","problemCount_other":"{{count}} Probleme"}}`), Rt = { 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: "Item Problems und Pending References", 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", kind: "Art", pendingReference: "Pending Reference", itemProblem: "Item Problem", problemCountWithPending_one: "{{matching}} von {{total}}, {{count}} Pending Reference", problemCountWithPending_other: "{{matching}} von {{total}}, {{count}} Pending References", kindColumn: "Art", kindImport: "Import", kindDryRun: "Dry Run" }, It = { 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.", on: "Ausführen auf", onRelease: "Den neuesten Releases, wie ein Import sie ausführt", onDraft: "Den Entwürfen des Profils, seiner Mappings und seines Entity Sets, um sie vor dem Release zu prüfen", profileDraftHelp: "Ein Dry Run auf Entwürfen führt den Entwurf jedes Profils aus, ob mit Release oder ohne.", profileDraftOption: "{{name}} (Entwurf)", startDryRun: "Dry Run starten", dryRunRefused: "importhub hat den Dry Run nicht gestartet", dryRunConsent: "Mit dem Start erhält importhub für bis zu 24 Stunden Zugriff in Ihrem Namen. Damit liest importhub Blueprints in blueprinthub, Content in contenthub und Assets in mediahub mit Ihren Rechten, um zu ermitteln, was ein Import täte. Ein Dry Run schreibt nichts und öffnet kein Change Set. Der Zugriff endet, wenn der Dry Run endet.", kind: "Was gestartet wird", kindImport: "Import: füllt ein Change Set in contenthub", kindDryRun: "Dry Run: zeigt, was ein Import täte, und schreibt nichts", kindCard: "Import oder Dry Run" }, Pt = { 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 = { badge: "Dry Run", subtitle: "Dry Run gestartet von {{person}}, {{time}}", failedTitle: "Der Dry Run ist fehlgeschlagen", cancelledBody: "{{person}} hat ihn abgebrochen. Er hatte nichts geschrieben.", problemsBody_one: "Ein echter Import mit denselben Eingaben würde {{count}} Item Problem melden. Es steht unten.", problemsBody_other: "Ein echter Import mit denselben Eingaben würde {{count}} Item Problems melden, Pending References darunter. Sie stehen unten.", cancel: "Dry Run abbrechen", cancelTitle: "Diesen Dry Run abbrechen?", cancelMessage: "Er hält beim nächsten Element an. Er hat nichts geschrieben, also wird nichts verworfen.", phaseLong: { reading: "Die Quelldatei wird gelesen", writing: "Es wird ermittelt, was ein Import schreiben würde" }, ranOn: "Ausgeführt auf", onReleases: "Den neuesten Releases", onDrafts: "Den Entwürfen", configuration: "Ausgeführte Konfiguration", draftOf: "{{name}}, Entwurf", correctionsTitle_one: "{{count}} Release würde korrigiert: Ein echter Import würde es durch eine Korrektur ersetzen.", correctionsTitle_other: "{{count}} Releases würden korrigiert: Ein echter Import würde sie durch Korrekturen ersetzen.", correctionsBody: "Ihre Changed Versions weichen von den Releases ab, zu denen sie passen, und ihre Mappings sagen Korrigieren. Prüfen Sie sie, bevor Sie den Import ausführen.", showCorrections: "Die Korrekturen zeigen", summary: "Was er gefunden hat", counts: { matched: "Gefundene Source Versions", created: "Anzulegender Content", planned: "Neue Planned Releases", corrected: "Korrekturen", kept: "Beibehalten", stubbed: "Stubs", unchanged: "Unverändert", problems: "Item Problems", pendingReferences: "Pending References" }, report: "Was ein Import mit jedem Content täte", actionColumn: "Was geschähe", displayName: "Name", validity: "Gültigkeitszeitraum", filterAction: "Nach dem filtern, was geschähe", allActions: "Alles", allMappings: "Alle Mappings", emptyReport: "Der Dry Run hat noch keinen Content gefunden.", noMatchingContent: "Kein Content passt.", validityRange: "{{from}} bis {{to}}", validityOpen: "ab {{from}}", action: { created: "Würde angelegt", planned: "Neues Planned Release", corrected: "Würde korrigiert", kept: "Beibehalten", stubbed: "Stub", unchanged: "Unverändert" }, notDryRun: "Dieser Import ist kein Dry Run und hat daher keinen Bericht. Seine Seite zeigt, was er getan hat.", contentCount: "{{matching}} von {{total}}" }, kt = {
|
|
16
16
|
section: tt,
|
|
17
17
|
startPage: nt,
|
|
18
18
|
changeSet: it,
|
|
@@ -34,38 +34,40 @@ const tt = { imports: { title: "Importe", empty: "In diesem Workspace gibt es no
|
|
|
34
34
|
history: yt,
|
|
35
35
|
compare: St,
|
|
36
36
|
editor: vt,
|
|
37
|
-
imports:
|
|
37
|
+
imports: Rt,
|
|
38
38
|
startImport: It,
|
|
39
|
-
apiKeys:
|
|
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" } }, At = { 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." }, xt = { 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" }, Xt = { tabs: { fields: "Fields", versions: "Source Key & Source Versions", output: "Output", test: "Mapping Test" }, 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." }, test: { title: "Mapping Test", about: "A Mapping Test runs this Mapping as you are editing it, unsaved changes included, over a sample file, and reads it as an Import would. It touches nothing outside importhub: it creates nothing in contenthub or mediahub, asks no other service, and saves nothing, not even the sample.", aboutDerived: "References stay as the sample names them, Placeholder Assets are not linked and no Post-processor runs: those belong to an Import Profile's Import.", adminOnly: "Only an admin can run a Mapping Test.", sampleCard: "Sample file", sampleHelp: "An XML file, read in importhub and not kept.", dropHint: "Drop a sample XML file here", dragActive: "Release to choose it", chooseFile: "Choose file", chosen: "Sample", notXml: "{{name}} is not an XML file.", entitySet: "Entity Set", entitySetHelp: "The Entity Set whose entities the sample uses, as the Import Profile including this Mapping names one. Its draft is used.", noEntitySet: "None", run: "Run Mapping Test", failed: "The Mapping Test could not run", summary_one: "{{count}} element matched, {{problems}} with problems.", summary_other: "{{count}} elements matched, {{problems}} with problems.", noElements: "The element selector matched no element in the sample.", onlyProblems: "Only elements with problems", element: "Element {{position}}: {{sourceKey}}", noSourceKey: "no Source Key", field: "Field", value: "Value", problem: "Error", wholeElement: "The element", validityPeriod: "Validity Period", validFromTo: "{{from}} to {{to}}", open: "open", displayName: "Display name", collections: "Collections", releaseSpec: "Release Spec", showMore: "Show more elements", shownOf: "Showing {{shown}} of {{total}} elements.", problemCount_one: "{{count}} problem", problemCount_other: "{{count}} problems" } }, qt = { start: "Start Import", empty: "No Import has run in this workspace yet.", profile: "Import Profile", startedBy: "Started by", started: "Started", ended: "Ended", matched: "Matched", created: "Created", problems: "Problems", planned: "Planned Releases", corrected: "Corrected", kept: "Kept", unchanged: "Unchanged", loadMore: "Load more", phase: { queued: "Queued", reading: "Reading", writing: "Writing", cancelling: "Cancelling" }, outcome: { succeeded: "Succeeded", succeeded_with_problems: "Succeeded with problems", failed: "Failed", cancelled: "Cancelled" }, progressTitle: "Progress", phaseLong: { reading: "Reading the Source File", writing: "Writing the Change Set in contenthub" }, progressOf: "{{done}} of {{total}} items", progressUnknown: "Counting the items…", queuedBody: "It waits until the workspace's running Import has ended.", failedTitle: "The Import failed", cancelledBody: "{{person}} cancelled it. The Change Set it opened was discarded.", cancellingBody: "{{person}} asked to cancel it. It stops at its next item.", problemsBody_one: "{{count}} Source Version could not be saved and was skipped. Its Change Set is kept, for editors to fix the rest.", problemsBody_other: "{{count}} Source Versions could not be saved and were skipped. Its Change Set is kept, for editors to fix the rest.", details: "Details", effectiveDate: "Effective date", source: "Source", sourceValue: "{{reference}}, {{date}}", none: "None", changeSet: "Change Set", counts: "Counts", releases: "Releases it ran with", releaseOf: "{{name}}, Release {{number}}", mapping: "Mapping", entitySet: "Entity Set", cancel: "Cancel Import", cancelTitle: "Cancel this Import?", cancelMessage: "It stops at its next item, and the Change Set it opened is discarded. This cannot be undone.", cancelConfirm: "Cancel Import", keepRunning: "Keep running", cancelFailed: "importhub did not cancel the Import: {{message}}", itemProblems: "Item Problems", noItemProblems: "No Item Problems.", noMatchingProblems: "No Item Problem matches.", searchSourceKey: "Search by Source Key", filterMapping: "Filter by Mapping", allMappings: "All Mappings ({{count}})", mappingCount: "{{name}} ({{count}})", problemCount: "{{matching}} of {{total}}", sourceKey: "Source Key", field: "Field", reason: "Reason", wholeVersion: "The whole Source Version", noSourceKey: "No Source Key", subtitle: "Started by {{person}}, {{time}}", outcomeColumn: "Outcome", someone: "Someone", mappings: "Mappings" }, Gt = { title: "Start an Import", fileCard: "Profile and Source File", profile: "Import Profile", profileHelp: "Only Profiles with a Release are offered: an Import runs the latest Release, never a draft.", profileOption: "{{name}} (Release {{number}})", file: "Source File", fileHelp: "One XML file. It goes straight to importhub's storage.", dropHint: "Drag an XML file here", dragActive: "Drop to upload", chooseFile: "Choose file", uploading: "Uploading {{name}}", uploaded: "{{name}} is uploaded.", uploadFailed: "The upload of {{name}} failed: {{message}}", notXml: "{{name}} is not an XML file.", datesCard: "Dates", datesHelp: "For a file that gives no dates: its Dated Content takes these. A date the file gives always wins.", effectiveDate: "Effective date", effectiveDateHelp: "The day the Planned Releases start.", sourceDate: "Source: date", sourceReference: "Source: reference", sourceReferenceHelp: "How the publication is cited, such as “BGBl. 2026 I Nr. 270”.", sourceIncomplete: "A Source needs both its date and its reference.", profileRequired: "Choose an Import Profile.", consentTitle: "The Import acts as you", consent: "Starting it grants importhub delegated access in your name for up to 24 hours. With it, importhub reads Blueprints in blueprinthub, creates Placeholder Assets in mediahub and writes the Import's Change Set in contenthub, with your rights and named as you. The access ends when the Import ends.", refused: "importhub did not start the Import", notAllowed: "You may look at Imports, but not start them.", noProfiles: "No Import Profile has a Release yet. An admin releases one first." }, $t = { title: "API keys", subtitle: "Keys with which pipelines and nightly feeds start and follow Imports without a person.", new: "New API key", empty: "This workspace has no importhub API key yet.", importersOnly: "Only importers manage API keys. Ask a workspace admin for importer rights to create or revoke one.", prefix: "Prefix", owner: "Owner", created: "Created", expires: "Expires", never: "Never", nameHelp: "What the key is for, such as “Nightly gesetz feed”.", nameRequired: "Give the key a name.", nameTooLong: "The name is longer than {{max}} characters.", expiresOn: "Expires on", expiresOnHelp: "The key stops working at the end of this day. Leave it empty for a key that does not expire.", expiryPast: "Pick today or a day ahead.", consentTitle: "The key acts as you", consent: "Whoever holds the key can start and follow Imports in this workspace as you: those Imports read Blueprints in blueprinthub, create Placeholder Assets in mediahub and write their Change Sets in contenthub with your rights, and name you as their starter. For that, importhub holds a standing Delegation Grant in your name, which ends when the key expires or is revoked.", createFailed: "The API key could not be created.", secretTitle: "Copy the secret now", secret: "Secret", secretOnce: "It is shown only this once: importhub does not keep it, and nobody can show it again. Send it as “Authorization: Bearer <secret>”.", copySecret: "Copy secret", done: "Done", revoke: "Revoke", revokeKey: "Revoke {{name}}", revokeTitle: "Revoke {{name}}?", revokeMessage: "The key “{{name}}” stops working at once, and an Import running with it fails. importhub releases the Delegation Grant it holds for the key. This cannot be undone.", revokeFailed: "The API key could not be revoked." }, jt = {
|
|
41
|
-
section: kt,
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
apiKeys: Pt,
|
|
40
|
+
dryRun: wt
|
|
41
|
+
}, Et = { 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." } }, Ct = { loading: "Loading…", error: "This could not be loaded. Try again in a moment." }, Dt = { 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" }, Ft = { column: "Validity", valid: "Valid", invalid: "Invalid", invalidTitle: "This configuration is invalid and cannot be released:" }, At = { 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" } }, Nt = { nameTaken: "Another one already has this name.", nameRequired: "A name is required.", failed: "It could not be created. Try again in a moment." }, xt = { failed: "The changes could not be saved." }, zt = { title: "Details", actions: "Actions" }, Ht = { moveUp: "Move {{name}} up", moveDown: "Move {{name}} down", remove: "Remove {{name}}" }, Kt = { 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." }, Bt = { 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." }, _t = { 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." }, Wt = { settings: "Settings", history: "History" }, Vt = { 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." }, Lt = { 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" }, Xt = { 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", test: "Mapping Test" }, 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." }, test: { title: "Mapping Test", about: "A Mapping Test runs this Mapping as you are editing it, unsaved changes included, over a sample file, and reads it as an Import would. It touches nothing outside importhub: it creates nothing in contenthub or mediahub, asks no other service, and saves nothing, not even the sample.", aboutDerived: "References stay as the sample names them, Placeholder Assets are not linked and no Post-processor runs: those belong to an Import Profile's Import.", adminOnly: "Only an admin can run a Mapping Test.", sampleCard: "Sample file", sampleHelp: "An XML file, read in importhub and not kept.", dropHint: "Drop a sample XML file here", dragActive: "Release to choose it", chooseFile: "Choose file", chosen: "Sample", notXml: "{{name}} is not an XML file.", entitySet: "Entity Set", entitySetHelp: "The Entity Set whose entities the sample uses, as the Import Profile including this Mapping names one. Its draft is used.", noEntitySet: "None", run: "Run Mapping Test", failed: "The Mapping Test could not run", summary_one: "{{count}} element matched, {{problems}} with problems.", summary_other: "{{count}} elements matched, {{problems}} with problems.", noElements: "The element selector matched no element in the sample.", onlyProblems: "Only elements with problems", element: "Element {{position}}: {{sourceKey}}", noSourceKey: "no Source Key", field: "Field", value: "Value", problem: "Error", wholeElement: "The element", validityPeriod: "Validity Period", validFromTo: "{{from}} to {{to}}", open: "open", displayName: "Display name", collections: "Collections", releaseSpec: "Release Spec", showMore: "Show more elements", shownOf: "Showing {{shown}} of {{total}} elements.", problemCount_one: "{{count}} problem", problemCount_other: "{{count}} problems" } }, Gt = { 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 and Pending References", 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", kind: "Kind", pendingReference: "Pending Reference", itemProblem: "Item Problem", problemCountWithPending_one: "{{matching}} of {{total}}, {{count}} Pending Reference", problemCountWithPending_other: "{{matching}} of {{total}}, {{count}} Pending References", kindColumn: "Kind", kindImport: "Import", kindDryRun: "Dry Run" }, $t = { 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.", on: "Run on", onRelease: "The latest Releases, as an Import runs them", onDraft: "The drafts of the Profile, its Mappings and its Entity Set, to check them before releasing", profileDraftHelp: "A Dry Run on drafts runs any Profile's draft, released or not.", profileDraftOption: "{{name}} (draft)", startDryRun: "Start Dry Run", dryRunRefused: "importhub did not start the Dry Run", dryRunConsent: "Starting it grants importhub delegated access in your name for up to 24 hours. With it, importhub reads Blueprints in blueprinthub, Content in contenthub and assets in mediahub as you, to find what an Import would do. A Dry Run writes nothing and opens no Change Set. The access ends when the Dry Run ends.", kind: "What to start", kindImport: "Import: fills a Change Set in contenthub", kindDryRun: "Dry Run: reports what an Import would do, and writes nothing", kindCard: "Import or Dry Run" }, jt = { 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." }, Qt = { badge: "Dry Run", subtitle: "Dry Run started by {{person}}, {{time}}", failedTitle: "The Dry Run failed", cancelledBody: "{{person}} cancelled it. It had written nothing.", problemsBody_one: "A real Import with the same inputs would report {{count}} Item Problem. It is listed below.", problemsBody_other: "A real Import with the same inputs would report {{count}} Item Problems, Pending References among them. They are listed below.", cancel: "Cancel Dry Run", cancelTitle: "Cancel this Dry Run?", cancelMessage: "It stops at its next item. It has written nothing, so nothing is discarded.", phaseLong: { reading: "Reading the Source File", writing: "Working out what an Import would write" }, ranOn: "Ran on", onReleases: "The latest Releases", onDrafts: "The drafts", configuration: "Configuration it ran with", draftOf: "{{name}}, draft", correctionsTitle_one: "{{count}} Release would be corrected: a real Import would Supersede it with a correction.", correctionsTitle_other: "{{count}} Releases would be corrected: a real Import would Supersede them with corrections.", correctionsBody: "Their Changed Versions differ from the Releases they match, and their Mappings say Correct. Check them before running the Import.", showCorrections: "Show the corrections", summary: "What it found", counts: { matched: "Source Versions matched", created: "Content to create", planned: "New Planned Releases", corrected: "Corrections", kept: "Kept", stubbed: "Stubs", unchanged: "Unchanged", problems: "Item Problems", pendingReferences: "Pending References" }, report: "What an Import would do with each Content", actionColumn: "What would happen", displayName: "Name", validity: "Validity Period", filterAction: "Filter by what would happen", allActions: "Everything", allMappings: "All Mappings", emptyReport: "The Dry Run has found no Content yet.", noMatchingContent: "No Content matches.", validityRange: "{{from}} to {{to}}", validityOpen: "from {{from}}", action: { created: "Would be created", planned: "New Planned Release", corrected: "Would be corrected", kept: "Kept", stubbed: "Stub", unchanged: "Unchanged" }, notDryRun: "This Import is no Dry Run, so it has no report. Its page shows what it did.", contentCount: "{{matching}} of {{total}}" }, Zt = {
|
|
42
|
+
section: Et,
|
|
43
|
+
startPage: Ct,
|
|
44
|
+
changeSet: Dt,
|
|
44
45
|
common: Tt,
|
|
45
46
|
fields: Mt,
|
|
46
|
-
validity:
|
|
47
|
-
release:
|
|
47
|
+
validity: Ft,
|
|
48
|
+
release: At,
|
|
48
49
|
delete: { inUse: "It cannot be deleted while these Import Profiles use it:", failed: "It could not be deleted. Try again in a moment." },
|
|
49
|
-
create:
|
|
50
|
-
save:
|
|
51
|
-
rail:
|
|
52
|
-
order:
|
|
53
|
-
profiles:
|
|
54
|
-
processors:
|
|
50
|
+
create: Nt,
|
|
51
|
+
save: xt,
|
|
52
|
+
rail: zt,
|
|
53
|
+
order: Ht,
|
|
54
|
+
profiles: Kt,
|
|
55
|
+
processors: Bt,
|
|
55
56
|
mappings: Ot,
|
|
56
|
-
entitySets:
|
|
57
|
-
tabs:
|
|
58
|
-
cut:
|
|
59
|
-
history:
|
|
60
|
-
compare:
|
|
61
|
-
editor:
|
|
62
|
-
imports:
|
|
63
|
-
startImport:
|
|
64
|
-
apiKeys:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
57
|
+
entitySets: _t,
|
|
58
|
+
tabs: Wt,
|
|
59
|
+
cut: Vt,
|
|
60
|
+
history: Lt,
|
|
61
|
+
compare: Xt,
|
|
62
|
+
editor: qt,
|
|
63
|
+
imports: Gt,
|
|
64
|
+
startImport: $t,
|
|
65
|
+
apiKeys: jt,
|
|
66
|
+
dryRun: Qt
|
|
67
|
+
}, R = "importhub-ui", Wn = {
|
|
68
|
+
en: { [R]: Zt },
|
|
69
|
+
de: { [R]: kt }
|
|
70
|
+
}, Vn = [
|
|
69
71
|
"imports",
|
|
70
72
|
"profiles",
|
|
71
73
|
"mappings",
|
|
@@ -75,17 +77,17 @@ const tt = { imports: { title: "Importe", empty: "In diesem Workspace gibt es no
|
|
|
75
77
|
function he(e, t, i) {
|
|
76
78
|
return `${e[t].replace(/\/$/, "")}/${encodeURIComponent(i)}`;
|
|
77
79
|
}
|
|
78
|
-
const
|
|
80
|
+
const Ut = {
|
|
79
81
|
imports: "/imports",
|
|
80
82
|
profiles: "/settings/import-profiles",
|
|
81
83
|
mappings: "/settings/mappings",
|
|
82
84
|
entitySets: "/settings/entity-sets",
|
|
83
85
|
processors: "/settings/processors"
|
|
84
|
-
},
|
|
85
|
-
paths:
|
|
86
|
+
}, Jt = {
|
|
87
|
+
paths: Ut,
|
|
86
88
|
changeSetHref: () => null
|
|
87
|
-
}, Ce =
|
|
88
|
-
function
|
|
89
|
+
}, Ce = Pe(Jt);
|
|
90
|
+
function Ln({ host: e, children: t }) {
|
|
89
91
|
return /* @__PURE__ */ n(Ce.Provider, { value: e, children: t });
|
|
90
92
|
}
|
|
91
93
|
function j() {
|
|
@@ -105,6 +107,14 @@ const p = {
|
|
|
105
107
|
import: (e, t) => [...p.imports(e), t],
|
|
106
108
|
/** An Import's Item Problems under a filter, one entry per filter. */
|
|
107
109
|
itemProblems: (e, t, i, a) => [...p.import(e, t), "itemProblems", i, a],
|
|
110
|
+
/** A Dry Run's report under a filter, one entry per filter. */
|
|
111
|
+
dryRunContents: (e, t, i, a, r) => [
|
|
112
|
+
...p.import(e, t),
|
|
113
|
+
"dryRunContents",
|
|
114
|
+
i,
|
|
115
|
+
a,
|
|
116
|
+
r
|
|
117
|
+
],
|
|
108
118
|
/** The workspace's importhub API keys. */
|
|
109
119
|
apiKeys: (e) => [...p.all(e), "apiKeys"],
|
|
110
120
|
blueprints: (e) => [...p.all(e), "blueprints"],
|
|
@@ -116,23 +126,23 @@ const p = {
|
|
|
116
126
|
/** Every list of a kind, so one change refreshes them all. */
|
|
117
127
|
configurations: (e, t) => t === "importProfile" ? p.importProfiles(e) : t === "mapping" ? p.mappings(e) : p.entitySets(e),
|
|
118
128
|
history: (e, t, i) => [...p.configuration(e, t, i), "history"],
|
|
119
|
-
comparison: (e, t, i, a,
|
|
129
|
+
comparison: (e, t, i, a, r) => [
|
|
120
130
|
...p.configuration(e, t, i),
|
|
121
131
|
"comparison",
|
|
122
132
|
a,
|
|
123
|
-
|
|
133
|
+
r
|
|
124
134
|
]
|
|
125
135
|
};
|
|
126
|
-
function
|
|
127
|
-
const { t: e } = w(
|
|
128
|
-
return /* @__PURE__ */ n(
|
|
136
|
+
function Yt() {
|
|
137
|
+
const { t: e } = w(R);
|
|
138
|
+
return /* @__PURE__ */ n(Oe, { py: "12", children: /* @__PURE__ */ n(_e, { "aria-label": e("startPage.loading") }) });
|
|
129
139
|
}
|
|
130
|
-
function
|
|
131
|
-
const { t: e } = w(
|
|
132
|
-
return /* @__PURE__ */ n(
|
|
140
|
+
function en() {
|
|
141
|
+
const { t: e } = w(R);
|
|
142
|
+
return /* @__PURE__ */ n(O, { px: "8", py: "6", children: /* @__PURE__ */ n(ve, { icon: /* @__PURE__ */ n(Xe, { size: 32, "aria-hidden": !0 }), header: e("startPage.error") }) });
|
|
133
143
|
}
|
|
134
|
-
function
|
|
135
|
-
const { t } = w(
|
|
144
|
+
function tn(e = []) {
|
|
145
|
+
const { t } = w(R), [i, a] = Je(), r = /* @__PURE__ */ new Set(["history", ...e.map((o) => o.value)]), s = i.get("tab") ?? "", l = r.has(s) ? s : "settings", d = (o) => {
|
|
136
146
|
const u = new URLSearchParams(i);
|
|
137
147
|
o !== "settings" ? u.set("tab", o) : u.delete("tab"), a(u, { replace: !0 });
|
|
138
148
|
}, c = /* @__PURE__ */ n(Z.Root, { value: l, onValueChange: (o) => d(o.value), children: /* @__PURE__ */ g(Z.List, { children: [
|
|
@@ -142,15 +152,15 @@ function Yt(e = []) {
|
|
|
142
152
|
] }) });
|
|
143
153
|
return [l, c];
|
|
144
154
|
}
|
|
145
|
-
function
|
|
155
|
+
function nn({
|
|
146
156
|
open: e,
|
|
147
157
|
onClose: t,
|
|
148
158
|
title: i,
|
|
149
159
|
message: a,
|
|
150
|
-
onDelete:
|
|
151
|
-
onDeleted:
|
|
160
|
+
onDelete: r,
|
|
161
|
+
onDeleted: s
|
|
152
162
|
}) {
|
|
153
|
-
const { t: l } = w(
|
|
163
|
+
const { t: l } = w(R), { paths: d } = j(), c = q({ mutationFn: r, onSuccess: s }), { reset: o } = c;
|
|
154
164
|
G(() => {
|
|
155
165
|
e && o();
|
|
156
166
|
}, [e, o]);
|
|
@@ -178,64 +188,64 @@ function en({
|
|
|
178
188
|
)
|
|
179
189
|
] }),
|
|
180
190
|
children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
181
|
-
/* @__PURE__ */ n(
|
|
191
|
+
/* @__PURE__ */ n(P, { children: a }),
|
|
182
192
|
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
193
|
] })
|
|
184
194
|
}
|
|
185
195
|
);
|
|
186
196
|
}
|
|
187
|
-
function
|
|
188
|
-
const { t } = w(
|
|
197
|
+
function rn({ state: e }) {
|
|
198
|
+
const { t } = w(R);
|
|
189
199
|
if (!e.latestRelease)
|
|
190
200
|
return /* @__PURE__ */ n(Y, { tone: "warning", label: t("release.state.none") });
|
|
191
201
|
const i = e.latestRelease.number;
|
|
192
202
|
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
203
|
}
|
|
194
|
-
function
|
|
204
|
+
function De() {
|
|
195
205
|
return j().canConfigure ?? !1;
|
|
196
206
|
}
|
|
197
|
-
function
|
|
198
|
-
const { t } = w(
|
|
207
|
+
function Te({ validity: e }) {
|
|
208
|
+
const { t } = w(R);
|
|
199
209
|
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
210
|
}
|
|
201
|
-
const
|
|
211
|
+
const sn = (e) => ({
|
|
202
212
|
[e("validity.valid")]: "success",
|
|
203
213
|
[e("validity.invalid")]: "danger"
|
|
204
214
|
});
|
|
205
|
-
function
|
|
206
|
-
const { t } = w(
|
|
215
|
+
function on({ validity: e }) {
|
|
216
|
+
const { t } = w(R);
|
|
207
217
|
return /* @__PURE__ */ n(
|
|
208
|
-
|
|
218
|
+
Re,
|
|
209
219
|
{
|
|
210
220
|
value: e.valid ? t("validity.valid") : t("validity.invalid"),
|
|
211
|
-
toneMap:
|
|
221
|
+
toneMap: sn(t),
|
|
212
222
|
detail: e.valid ? null : e.reasons.map((i) => i.message).join(" ")
|
|
213
223
|
}
|
|
214
224
|
);
|
|
215
225
|
}
|
|
216
|
-
function
|
|
226
|
+
function Xn(e, t) {
|
|
217
227
|
return e.latestRelease ? t("release.number", { number: e.latestRelease.number }) : t("release.none");
|
|
218
228
|
}
|
|
219
|
-
function
|
|
229
|
+
function an({
|
|
220
230
|
open: e,
|
|
221
231
|
onClose: t,
|
|
222
232
|
client: i,
|
|
223
233
|
kind: a,
|
|
224
|
-
id:
|
|
225
|
-
validity:
|
|
234
|
+
id: r,
|
|
235
|
+
validity: s,
|
|
226
236
|
state: l,
|
|
227
237
|
unsaved: d,
|
|
228
238
|
onCut: c
|
|
229
239
|
}) {
|
|
230
|
-
const { t: o } = w(
|
|
231
|
-
mutationFn: () => i.cutRelease(a,
|
|
240
|
+
const { t: o } = w(R), { workspaceId: u } = H(), y = ae(), h = q({
|
|
241
|
+
mutationFn: () => i.cutRelease(a, r, l.draftRevisionId),
|
|
232
242
|
onSuccess: c,
|
|
233
243
|
// A refusal means the page's draft is not importhub's (somebody saved
|
|
234
244
|
// in between, or its validity changed): read it again, so the next
|
|
235
245
|
// opening shows where it stands and cuts the draft that is there.
|
|
236
246
|
onError: () => {
|
|
237
247
|
y.invalidateQueries({
|
|
238
|
-
queryKey: p.configuration(u, a,
|
|
248
|
+
queryKey: p.configuration(u, a, r)
|
|
239
249
|
});
|
|
240
250
|
}
|
|
241
251
|
}), { reset: S } = h;
|
|
@@ -243,10 +253,10 @@ function sn({
|
|
|
243
253
|
e && S();
|
|
244
254
|
}, [e, S]);
|
|
245
255
|
const I = _({
|
|
246
|
-
queryKey: p.mappingImportProfiles(u,
|
|
247
|
-
queryFn: () => i.listMappingImportProfiles(
|
|
256
|
+
queryKey: p.mappingImportProfiles(u, r),
|
|
257
|
+
queryFn: () => i.listMappingImportProfiles(r),
|
|
248
258
|
enabled: e && a === "mapping"
|
|
249
|
-
}), m = (l.latestRelease?.number ?? 0) + 1, f = l.latestRelease !== void 0 && !l.draftDiffersFromRelease,
|
|
259
|
+
}), m = (l.latestRelease?.number ?? 0) + 1, f = l.latestRelease !== void 0 && !l.draftDiffersFromRelease, D = s.valid && !f, M = h.error instanceof et ? h.error : null;
|
|
250
260
|
return /* @__PURE__ */ n(
|
|
251
261
|
oe,
|
|
252
262
|
{
|
|
@@ -256,20 +266,20 @@ function sn({
|
|
|
256
266
|
lazyMount: !0,
|
|
257
267
|
unmountOnExit: !0,
|
|
258
268
|
footer: /* @__PURE__ */ g($, { gap: "2", children: [
|
|
259
|
-
/* @__PURE__ */ n(A, { variant: "outline", onClick: t, children: o(
|
|
260
|
-
|
|
269
|
+
/* @__PURE__ */ n(A, { variant: "outline", onClick: t, children: o(D ? "common.cancel" : "common.close") }),
|
|
270
|
+
D ? /* @__PURE__ */ n(
|
|
261
271
|
A,
|
|
262
272
|
{
|
|
263
273
|
variant: "solid",
|
|
264
274
|
loading: h.isPending,
|
|
265
|
-
disabled:
|
|
275
|
+
disabled: M !== null,
|
|
266
276
|
onClick: () => h.mutate(),
|
|
267
277
|
children: o("cut.confirm")
|
|
268
278
|
}
|
|
269
279
|
) : null
|
|
270
280
|
] }),
|
|
271
281
|
children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
272
|
-
|
|
282
|
+
s.valid ? f ? /* @__PURE__ */ n(
|
|
273
283
|
E,
|
|
274
284
|
{
|
|
275
285
|
status: "info",
|
|
@@ -277,33 +287,33 @@ function sn({
|
|
|
277
287
|
title: o("cut.unchanged", { number: l.latestRelease?.number })
|
|
278
288
|
}
|
|
279
289
|
) : /* @__PURE__ */ g(X, { children: [
|
|
280
|
-
/* @__PURE__ */ n(
|
|
290
|
+
/* @__PURE__ */ n(P, { children: o("cut.message", { number: m }) }),
|
|
281
291
|
d ? /* @__PURE__ */ n(E, { status: "warning", colorPalette: "warning", title: o("cut.unsaved") }) : null,
|
|
282
|
-
a === "mapping" ? /* @__PURE__ */ n(
|
|
283
|
-
] }) : /* @__PURE__ */ n(
|
|
284
|
-
|
|
292
|
+
a === "mapping" ? /* @__PURE__ */ n(ln, { query: I }) : null
|
|
293
|
+
] }) : /* @__PURE__ */ n(Te, { validity: s }),
|
|
294
|
+
M && s.valid ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: o("cut.refused"), children: M.validity && !M.validity.valid ? /* @__PURE__ */ n(N.Root, { ps: "4", children: M.validity.reasons.map((T) => /* @__PURE__ */ n(N.Item, { children: T.message }, `${T.code}:${T.path}:${T.message}`)) }) : M.message }) : h.isError && !M ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: o("cut.failed") }) : null
|
|
285
295
|
] })
|
|
286
296
|
}
|
|
287
297
|
);
|
|
288
298
|
}
|
|
289
|
-
function
|
|
299
|
+
function ln({
|
|
290
300
|
query: e
|
|
291
301
|
}) {
|
|
292
|
-
const { t } = w(
|
|
293
|
-
return e.isError ? /* @__PURE__ */ n(
|
|
294
|
-
/* @__PURE__ */ n(
|
|
302
|
+
const { t } = w(R), { paths: i } = j();
|
|
303
|
+
return e.isError ? /* @__PURE__ */ n(P, { color: "fg.muted", children: t("startPage.error") }) : e.data ? e.data.length === 0 ? /* @__PURE__ */ n(P, { children: t("cut.noProfiles") }) : /* @__PURE__ */ g(C, { gap: "2", children: [
|
|
304
|
+
/* @__PURE__ */ n(P, { children: t("cut.profilesIntro") }),
|
|
295
305
|
/* @__PURE__ */ n(N.Root, { ps: "4", "aria-label": t("cut.profiles"), children: e.data.map((a) => /* @__PURE__ */ n(N.Item, { children: /* @__PURE__ */ n(ue, { asChild: !0, children: /* @__PURE__ */ n(me, { to: he(i, "profiles", a.id), children: a.name }) }) }, a.id)) })
|
|
296
|
-
] }) : /* @__PURE__ */ n(
|
|
306
|
+
] }) : /* @__PURE__ */ n(P, { color: "fg.muted", children: t("startPage.loading") });
|
|
297
307
|
}
|
|
298
|
-
function
|
|
308
|
+
function dn({
|
|
299
309
|
client: e,
|
|
300
310
|
kind: t,
|
|
301
311
|
id: i,
|
|
302
312
|
validity: a,
|
|
303
|
-
state:
|
|
304
|
-
unsaved:
|
|
313
|
+
state: r,
|
|
314
|
+
unsaved: s
|
|
305
315
|
}) {
|
|
306
|
-
const { t: l } = w(
|
|
316
|
+
const { t: l } = w(R), { workspaceId: d } = H(), c = ae(), [o, u] = V(!1), [y, h] = V(null);
|
|
307
317
|
return {
|
|
308
318
|
railAction: /* @__PURE__ */ n(
|
|
309
319
|
U.IconButton,
|
|
@@ -316,7 +326,7 @@ function an({
|
|
|
316
326
|
}
|
|
317
327
|
),
|
|
318
328
|
dialog: /* @__PURE__ */ n(
|
|
319
|
-
|
|
329
|
+
an,
|
|
320
330
|
{
|
|
321
331
|
open: o,
|
|
322
332
|
onClose: () => u(!1),
|
|
@@ -324,8 +334,8 @@ function an({
|
|
|
324
334
|
kind: t,
|
|
325
335
|
id: i,
|
|
326
336
|
validity: a,
|
|
327
|
-
state:
|
|
328
|
-
unsaved:
|
|
337
|
+
state: r,
|
|
338
|
+
unsaved: s,
|
|
329
339
|
onCut: (S) => {
|
|
330
340
|
u(!1), h(S.release.number), c.invalidateQueries({
|
|
331
341
|
queryKey: p.configuration(d, t, i)
|
|
@@ -340,33 +350,33 @@ function an({
|
|
|
340
350
|
notice: y === null ? null : /* @__PURE__ */ n(E, { status: "success", colorPalette: "success", title: l("cut.done", { number: y }), children: l("cut.doneBody") })
|
|
341
351
|
};
|
|
342
352
|
}
|
|
343
|
-
function
|
|
344
|
-
const { blueprints: t } = j(), { workspaceId: i } = H(), a = [...new Set(e.filter(Boolean))].sort(),
|
|
353
|
+
function Me(e) {
|
|
354
|
+
const { blueprints: t } = j(), { workspaceId: i } = H(), a = [...new Set(e.filter(Boolean))].sort(), r = _({
|
|
345
355
|
queryKey: p.blueprints(i),
|
|
346
356
|
queryFn: () => t?.listBlueprints() ?? Promise.resolve([]),
|
|
347
357
|
enabled: t !== void 0
|
|
348
|
-
}),
|
|
358
|
+
}), s = Ve({
|
|
349
359
|
queries: a.map((o) => ({
|
|
350
360
|
queryKey: p.blueprintReleases(i, o),
|
|
351
361
|
queryFn: () => t?.listReleases(o) ?? Promise.resolve([]),
|
|
352
362
|
enabled: t !== void 0
|
|
353
363
|
}))
|
|
354
|
-
}), l =
|
|
364
|
+
}), l = s.map((o) => o.data), d = s.map((o) => o.dataUpdatedAt).join(), c = a.join();
|
|
355
365
|
return W(
|
|
356
366
|
() => ({
|
|
357
367
|
available: t !== void 0,
|
|
358
|
-
blueprintName: (o) =>
|
|
368
|
+
blueprintName: (o) => r.data?.find((u) => u.id === o)?.name,
|
|
359
369
|
releaseLabel: (o, u) => l[a.indexOf(o)]?.find((y) => y.id === u)?.label
|
|
360
370
|
}),
|
|
361
|
-
[t,
|
|
371
|
+
[t, r.data, d, c]
|
|
362
372
|
);
|
|
363
373
|
}
|
|
364
|
-
const
|
|
374
|
+
const cn = {
|
|
365
375
|
unchanged: "neutral",
|
|
366
376
|
added: "success",
|
|
367
377
|
removed: "danger",
|
|
368
378
|
changed: "warning"
|
|
369
|
-
},
|
|
379
|
+
}, pn = {
|
|
370
380
|
name: "fields.name",
|
|
371
381
|
description: "fields.description",
|
|
372
382
|
entities: "entitySets.entities",
|
|
@@ -383,25 +393,25 @@ const ln = {
|
|
|
383
393
|
blueprint_id: "mappings.blueprintId",
|
|
384
394
|
blueprint_release_id: "mappings.releaseId"
|
|
385
395
|
};
|
|
386
|
-
function
|
|
396
|
+
function un({
|
|
387
397
|
client: e,
|
|
388
398
|
kind: t,
|
|
389
399
|
id: i,
|
|
390
400
|
fromRevisionId: a,
|
|
391
|
-
toRevisionId:
|
|
392
|
-
labelOf:
|
|
401
|
+
toRevisionId: r,
|
|
402
|
+
labelOf: s
|
|
393
403
|
}) {
|
|
394
|
-
const { t: l } = w(
|
|
395
|
-
queryKey: p.comparison(d, t, i, a,
|
|
396
|
-
queryFn: () => e.compareRevisions(t, i, a,
|
|
397
|
-
}), { format: o, blueprintIdsOnly: u } =
|
|
398
|
-
(f,
|
|
399
|
-
), S = h.filter((f) => f.status !== "unchanged").length, I =
|
|
400
|
-
return /* @__PURE__ */ n(
|
|
401
|
-
/* @__PURE__ */ n(
|
|
404
|
+
const { t: l } = w(R), { workspaceId: d } = H(), c = _({
|
|
405
|
+
queryKey: p.comparison(d, t, i, a, r),
|
|
406
|
+
queryFn: () => e.compareRevisions(t, i, a, r)
|
|
407
|
+
}), { format: o, blueprintIdsOnly: u } = mn(e, t, c.data), y = (f) => u && f in pe ? pe[f] : pn[f], h = [...c.data?.fields ?? []].sort(
|
|
408
|
+
(f, D) => +(f.status === "unchanged") - +(D.status === "unchanged")
|
|
409
|
+
), S = h.filter((f) => f.status !== "unchanged").length, I = s(a), m = s(r);
|
|
410
|
+
return /* @__PURE__ */ n(O, { as: "section", "aria-label": l("compare.title"), children: /* @__PURE__ */ n(se, { title: l("compare.title"), children: /* @__PURE__ */ g(C, { gap: "3", children: [
|
|
411
|
+
/* @__PURE__ */ n(P, { children: l("compare.between", { from: I, to: m }) }),
|
|
402
412
|
c.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: l("startPage.error") }) : null,
|
|
403
413
|
c.data ? /* @__PURE__ */ g(X, { children: [
|
|
404
|
-
/* @__PURE__ */ n(
|
|
414
|
+
/* @__PURE__ */ n(P, { color: "fg.muted", children: S === 0 ? l("compare.same") : l("compare.differing", { count: S }) }),
|
|
405
415
|
/* @__PURE__ */ g(z.Root, { size: "sm", children: [
|
|
406
416
|
/* @__PURE__ */ n(z.Header, { children: /* @__PURE__ */ g(z.Row, { children: [
|
|
407
417
|
/* @__PURE__ */ n(z.ColumnHeader, { children: l("compare.field") }),
|
|
@@ -410,11 +420,11 @@ function cn({
|
|
|
410
420
|
] }) }),
|
|
411
421
|
/* @__PURE__ */ n(z.Body, { children: h.map((f) => /* @__PURE__ */ g(z.Row, { verticalAlign: "top", children: [
|
|
412
422
|
/* @__PURE__ */ n(z.Cell, { as: "th", scope: "row", fontWeight: "normal", children: /* @__PURE__ */ g(C, { gap: "1", align: "start", children: [
|
|
413
|
-
/* @__PURE__ */ n(
|
|
423
|
+
/* @__PURE__ */ n(P, { fontWeight: "medium", children: y(f.field) ? l(y(f.field)) : f.field }),
|
|
414
424
|
/* @__PURE__ */ n(
|
|
415
425
|
Y,
|
|
416
426
|
{
|
|
417
|
-
tone:
|
|
427
|
+
tone: cn[f.status],
|
|
418
428
|
label: l(`compare.status.${f.status}`)
|
|
419
429
|
}
|
|
420
430
|
)
|
|
@@ -423,34 +433,34 @@ function cn({
|
|
|
423
433
|
/* @__PURE__ */ n(z.Cell, { children: /* @__PURE__ */ n(fe, { text: o(f.field, "to") }) })
|
|
424
434
|
] }, f.field)) })
|
|
425
435
|
] })
|
|
426
|
-
] }) : c.isError ? null : /* @__PURE__ */ n(
|
|
436
|
+
] }) : c.isError ? null : /* @__PURE__ */ n(P, { color: "fg.muted", children: l("startPage.loading") })
|
|
427
437
|
] }) }) });
|
|
428
438
|
}
|
|
429
439
|
function fe({ text: e }) {
|
|
430
|
-
const { t } = w(
|
|
431
|
-
return e === null ? /* @__PURE__ */ n(
|
|
440
|
+
const { t } = w(R);
|
|
441
|
+
return e === null ? /* @__PURE__ */ n(P, { color: "fg.muted", children: t("compare.absent") }) : "plain" in e ? /* @__PURE__ */ n(P, { 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
442
|
}
|
|
433
|
-
function
|
|
434
|
-
const { t: a } = w(
|
|
435
|
-
queryKey: p.mappings(
|
|
443
|
+
function mn(e, t, i) {
|
|
444
|
+
const { t: a } = w(R), { workspaceId: r } = H(), s = t === "importProfile", l = _({
|
|
445
|
+
queryKey: p.mappings(r),
|
|
436
446
|
queryFn: () => e.listMappings(),
|
|
437
|
-
enabled:
|
|
447
|
+
enabled: s
|
|
438
448
|
}), d = _({
|
|
439
|
-
queryKey: p.entitySets(
|
|
449
|
+
queryKey: p.entitySets(r),
|
|
440
450
|
queryFn: () => e.listEntitySets(),
|
|
441
|
-
enabled:
|
|
442
|
-
}), c = t === "mapping" && i ? [i.from.content.blueprint_id, i.to.content.blueprint_id].map((h) => String(h ?? "")) : [], o =
|
|
451
|
+
enabled: s
|
|
452
|
+
}), c = t === "mapping" && i ? [i.from.content.blueprint_id, i.to.content.blueprint_id].map((h) => String(h ?? "")) : [], o = Me(c), u = t === "mapping" && !o.available;
|
|
443
453
|
return { format: (h, S) => {
|
|
444
454
|
const I = i?.[S].content ?? {}, m = I[h];
|
|
445
455
|
if (m == null) return null;
|
|
446
|
-
if (
|
|
456
|
+
if (s && h === "mapping_ids" && Array.isArray(m))
|
|
447
457
|
return m.length === 0 ? { plain: a("profiles.noMappings") } : {
|
|
448
458
|
plain: m.map(
|
|
449
|
-
(f) => l.data?.find((
|
|
459
|
+
(f) => l.data?.find((D) => D.id === f)?.content.name ?? a("profiles.missingMapping")
|
|
450
460
|
).join(`
|
|
451
461
|
`)
|
|
452
462
|
};
|
|
453
|
-
if (
|
|
463
|
+
if (s && h === "entity_set_id")
|
|
454
464
|
return m === "" ? { plain: a("profiles.noEntitySet") } : {
|
|
455
465
|
plain: d.data?.find((f) => f.id === m)?.content.name ?? a("compare.missingEntitySet")
|
|
456
466
|
};
|
|
@@ -465,20 +475,20 @@ function pn(e, t, i) {
|
|
|
465
475
|
return typeof m == "string" ? { plain: m === "" ? "—" : m } : typeof m == "boolean" ? { plain: a(m ? "compare.yes" : "compare.no") } : typeof m == "number" ? { plain: String(m) } : { json: JSON.stringify(m, null, 2) };
|
|
466
476
|
}, blueprintIdsOnly: u };
|
|
467
477
|
}
|
|
468
|
-
const
|
|
478
|
+
const hn = "YYYY-MM-DD HH:mm", ie = (e) => String(e).padStart(2, "0");
|
|
469
479
|
function be(e) {
|
|
470
480
|
const t = new Date(e);
|
|
471
481
|
return Number.isNaN(t.getTime()) ? "" : `${t.getFullYear()}-${ie(t.getMonth() + 1)}-${ie(t.getDate())} ${ie(t.getHours())}:${ie(t.getMinutes())}`;
|
|
472
482
|
}
|
|
473
|
-
function
|
|
474
|
-
const { t: a } = w(
|
|
483
|
+
function gn(e, t, i) {
|
|
484
|
+
const { t: a } = w(R);
|
|
475
485
|
return W(
|
|
476
486
|
() => ({
|
|
477
|
-
of: (
|
|
478
|
-
if (
|
|
479
|
-
const
|
|
480
|
-
if (
|
|
481
|
-
const l = e.find((d) => d.id ===
|
|
487
|
+
of: (r) => {
|
|
488
|
+
if (r === i) return a("history.draft");
|
|
489
|
+
const s = t.find((d) => d.revisionId === r);
|
|
490
|
+
if (s) return a("release.number", { number: s.number });
|
|
491
|
+
const l = e.find((d) => d.id === r);
|
|
482
492
|
return l ? a("history.revisionOf", { time: be(l.savedAt) }) : a("history.earlierRevision");
|
|
483
493
|
},
|
|
484
494
|
time: be
|
|
@@ -486,14 +496,14 @@ function mn(e, t, i) {
|
|
|
486
496
|
[a, e, t, i]
|
|
487
497
|
);
|
|
488
498
|
}
|
|
489
|
-
function
|
|
499
|
+
function fn({
|
|
490
500
|
client: e,
|
|
491
501
|
kind: t,
|
|
492
502
|
id: i,
|
|
493
503
|
draftRevisionId: a,
|
|
494
|
-
onRestored:
|
|
504
|
+
onRestored: r
|
|
495
505
|
}) {
|
|
496
|
-
const { t:
|
|
506
|
+
const { t: s } = w(R), { workspaceId: l, members: d } = H(), c = De(), o = Le({
|
|
497
507
|
queryKey: p.history(l, t, i),
|
|
498
508
|
queryFn: ({ pageParam: b }) => e.listHistory(t, i, b),
|
|
499
509
|
initialPageParam: "",
|
|
@@ -501,26 +511,26 @@ function hn({
|
|
|
501
511
|
}), u = W(
|
|
502
512
|
() => (o.data?.pages ?? []).flatMap((b) => b.revisions),
|
|
503
513
|
[o.data]
|
|
504
|
-
), y = W(() => o.data?.pages[0]?.releases ?? [], [o.data]), h =
|
|
514
|
+
), y = W(() => o.data?.pages[0]?.releases ?? [], [o.data]), h = gn(u, y, a), [S, I] = V(null), [m, f] = V([]), D = W(
|
|
505
515
|
() => Object.fromEntries(m.map((b) => [b, !0])),
|
|
506
516
|
[m]
|
|
507
|
-
),
|
|
508
|
-
const v = Object.fromEntries(F.map((
|
|
517
|
+
), M = (b) => f((F) => {
|
|
518
|
+
const v = Object.fromEntries(F.map((B) => [B, !0])), x = typeof b == "function" ? b(v) : b, K = Object.keys(x).filter((B) => x[B]), le = F.filter((B) => K.includes(B)), ne = K.filter((B) => !F.includes(B));
|
|
509
519
|
return [...le, ...ne].slice(-2);
|
|
510
|
-
}),
|
|
520
|
+
}), T = m.length === 2 ? [...m].sort(
|
|
511
521
|
(b, F) => u.findIndex((v) => v.id === F) - u.findIndex((v) => v.id === b)
|
|
512
522
|
) : null, Q = W(() => {
|
|
513
|
-
const b = (v) => y.filter((x) => x.revisionId === v), F = (v) => d.byId(v)?.displayName ??
|
|
523
|
+
const b = (v) => y.filter((x) => x.revisionId === v), F = (v) => d.byId(v)?.displayName ?? s("history.unknownPerson");
|
|
514
524
|
return [
|
|
515
525
|
{
|
|
516
526
|
id: "revision",
|
|
517
|
-
header:
|
|
527
|
+
header: s("history.columns.revision"),
|
|
518
528
|
enableSorting: !1,
|
|
519
529
|
cell: ({ row: v }) => /* @__PURE__ */ n(
|
|
520
530
|
Ae,
|
|
521
531
|
{
|
|
522
|
-
value: v.original.id === a ?
|
|
523
|
-
subText: v.original.restoredFromRevisionId ?
|
|
532
|
+
value: v.original.id === a ? s("history.draft") : s("history.revision"),
|
|
533
|
+
subText: v.original.restoredFromRevisionId ? s("history.restoredFrom", {
|
|
524
534
|
revision: h.of(v.original.restoredFromRevisionId)
|
|
525
535
|
}) : void 0
|
|
526
536
|
}
|
|
@@ -528,18 +538,18 @@ function hn({
|
|
|
528
538
|
},
|
|
529
539
|
{
|
|
530
540
|
id: "release",
|
|
531
|
-
header:
|
|
541
|
+
header: s("history.columns.release"),
|
|
532
542
|
enableSorting: !1,
|
|
533
543
|
cell: ({ row: v }) => {
|
|
534
544
|
const x = b(v.original.id);
|
|
535
545
|
return /* @__PURE__ */ n(
|
|
536
|
-
|
|
546
|
+
Re,
|
|
537
547
|
{
|
|
538
|
-
value: x.length > 0 ? x.map((K) =>
|
|
548
|
+
value: x.length > 0 ? x.map((K) => s("release.number", { number: K.number })).join(", ") : null,
|
|
539
549
|
fallbackTone: "success",
|
|
540
550
|
detailColor: "fg.muted",
|
|
541
551
|
detail: x.length > 0 ? x.map(
|
|
542
|
-
(K) =>
|
|
552
|
+
(K) => s("history.cutBy", {
|
|
543
553
|
name: F(K.releasedBy),
|
|
544
554
|
time: h.time(K.releasedAt)
|
|
545
555
|
})
|
|
@@ -550,22 +560,22 @@ function hn({
|
|
|
550
560
|
},
|
|
551
561
|
{
|
|
552
562
|
id: "savedBy",
|
|
553
|
-
header:
|
|
563
|
+
header: s("history.columns.savedBy"),
|
|
554
564
|
enableSorting: !1,
|
|
555
565
|
cell: ({ row: v }) => /* @__PURE__ */ n(Ne, { name: F(v.original.savedBy) })
|
|
556
566
|
},
|
|
557
567
|
{
|
|
558
568
|
id: "savedAt",
|
|
559
|
-
header:
|
|
569
|
+
header: s("history.columns.savedAt"),
|
|
560
570
|
enableSorting: !1,
|
|
561
571
|
size: 140,
|
|
562
|
-
cell: ({ row: v }) => /* @__PURE__ */ n(xe, { value: v.original.savedAt, format:
|
|
572
|
+
cell: ({ row: v }) => /* @__PURE__ */ n(xe, { value: v.original.savedAt, format: hn })
|
|
563
573
|
},
|
|
564
574
|
{
|
|
565
575
|
id: "validity",
|
|
566
|
-
header:
|
|
576
|
+
header: s("validity.column"),
|
|
567
577
|
enableSorting: !1,
|
|
568
|
-
cell: ({ row: v }) => /* @__PURE__ */ n(
|
|
578
|
+
cell: ({ row: v }) => /* @__PURE__ */ n(on, { validity: v.original.validity })
|
|
569
579
|
},
|
|
570
580
|
{
|
|
571
581
|
id: "actions",
|
|
@@ -578,7 +588,7 @@ function hn({
|
|
|
578
588
|
actions: [
|
|
579
589
|
{
|
|
580
590
|
icon: Ge,
|
|
581
|
-
label:
|
|
591
|
+
label: s("history.restore"),
|
|
582
592
|
onClick: () => I(v.original)
|
|
583
593
|
}
|
|
584
594
|
]
|
|
@@ -586,17 +596,17 @@ function hn({
|
|
|
586
596
|
) : null
|
|
587
597
|
}
|
|
588
598
|
];
|
|
589
|
-
}, [
|
|
599
|
+
}, [s, d, y, h, a, c]), L = (b) => d.byId(b)?.displayName ?? s("history.unknownPerson"), te = y.filter((b) => !u.some((F) => F.id === b.revisionId));
|
|
590
600
|
return /* @__PURE__ */ g(X, { children: [
|
|
591
|
-
/* @__PURE__ */ n(
|
|
592
|
-
/* @__PURE__ */ n(
|
|
593
|
-
o.hasNextPage ? te.map((b) => /* @__PURE__ */ n(
|
|
594
|
-
release:
|
|
601
|
+
/* @__PURE__ */ n(O, { px: "8", py: "4", children: /* @__PURE__ */ g(C, { gap: "1", children: [
|
|
602
|
+
/* @__PURE__ */ n(P, { color: "fg.muted", children: s("history.hint") }),
|
|
603
|
+
o.hasNextPage ? te.map((b) => /* @__PURE__ */ n(P, { color: "fg.muted", children: s("history.olderRelease", {
|
|
604
|
+
release: s("release.number", { number: b.number }),
|
|
595
605
|
name: L(b.releasedBy),
|
|
596
606
|
time: h.time(b.releasedAt)
|
|
597
607
|
}) }, b.id)) : null
|
|
598
608
|
] }) }),
|
|
599
|
-
o.isError ? /* @__PURE__ */ n(
|
|
609
|
+
o.isError ? /* @__PURE__ */ n(O, { px: "8", pb: "4", children: /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: s("startPage.error") }) }) : null,
|
|
600
610
|
/* @__PURE__ */ n(
|
|
601
611
|
He,
|
|
602
612
|
{
|
|
@@ -604,13 +614,13 @@ function hn({
|
|
|
604
614
|
data: u,
|
|
605
615
|
loading: o.isLoading,
|
|
606
616
|
selectable: !0,
|
|
607
|
-
rowSelection:
|
|
608
|
-
onRowSelectionChange:
|
|
617
|
+
rowSelection: D,
|
|
618
|
+
onRowSelectionChange: M,
|
|
609
619
|
getRowId: (b) => b.id,
|
|
610
|
-
emptyState: /* @__PURE__ */ n(ve, { icon: /* @__PURE__ */ n($e, { size: 32 }), header:
|
|
620
|
+
emptyState: /* @__PURE__ */ n(ve, { icon: /* @__PURE__ */ n($e, { size: 32 }), header: s("history.none") })
|
|
611
621
|
}
|
|
612
622
|
),
|
|
613
|
-
o.hasNextPage ||
|
|
623
|
+
o.hasNextPage || T ? /* @__PURE__ */ n(O, { px: "8", py: "6", children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
614
624
|
o.hasNextPage ? /* @__PURE__ */ n(
|
|
615
625
|
A,
|
|
616
626
|
{
|
|
@@ -621,30 +631,30 @@ function hn({
|
|
|
621
631
|
onClick: () => {
|
|
622
632
|
o.fetchNextPage();
|
|
623
633
|
},
|
|
624
|
-
children:
|
|
634
|
+
children: s("history.loadMore")
|
|
625
635
|
}
|
|
626
636
|
) : null,
|
|
627
|
-
|
|
628
|
-
|
|
637
|
+
T ? /* @__PURE__ */ n(
|
|
638
|
+
un,
|
|
629
639
|
{
|
|
630
640
|
client: e,
|
|
631
641
|
kind: t,
|
|
632
642
|
id: i,
|
|
633
|
-
fromRevisionId:
|
|
634
|
-
toRevisionId:
|
|
643
|
+
fromRevisionId: T[0],
|
|
644
|
+
toRevisionId: T[1],
|
|
635
645
|
labelOf: h.of
|
|
636
646
|
}
|
|
637
647
|
) : null
|
|
638
648
|
] }) }) : null,
|
|
639
649
|
/* @__PURE__ */ n(
|
|
640
|
-
|
|
650
|
+
bn,
|
|
641
651
|
{
|
|
642
652
|
revision: S,
|
|
643
653
|
label: S ? h.of(S.id) : "",
|
|
644
654
|
onClose: () => I(null),
|
|
645
655
|
onRestore: (b) => e.restoreRevision(t, i, b.id, a),
|
|
646
656
|
onRestored: () => {
|
|
647
|
-
f([]), Promise.resolve(
|
|
657
|
+
f([]), Promise.resolve(r?.()).catch(() => {
|
|
648
658
|
});
|
|
649
659
|
},
|
|
650
660
|
kind: t,
|
|
@@ -653,24 +663,24 @@ function hn({
|
|
|
653
663
|
)
|
|
654
664
|
] });
|
|
655
665
|
}
|
|
656
|
-
function
|
|
666
|
+
function bn({
|
|
657
667
|
revision: e,
|
|
658
668
|
label: t,
|
|
659
669
|
onClose: i,
|
|
660
670
|
onRestore: a,
|
|
661
|
-
onRestored:
|
|
662
|
-
kind:
|
|
671
|
+
onRestored: r,
|
|
672
|
+
kind: s,
|
|
663
673
|
id: l
|
|
664
674
|
}) {
|
|
665
|
-
const { t: d } = w(
|
|
675
|
+
const { t: d } = w(R), { workspaceId: c } = H(), o = ae(), u = e !== null, [y, h] = V({ revision: e, label: t });
|
|
666
676
|
e && e !== y.revision && h({ revision: e, label: t });
|
|
667
677
|
const S = q({
|
|
668
678
|
mutationFn: a,
|
|
669
679
|
onSuccess: () => {
|
|
670
|
-
|
|
671
|
-
queryKey: p.configuration(c,
|
|
680
|
+
r(), o.invalidateQueries({
|
|
681
|
+
queryKey: p.configuration(c, s, l)
|
|
672
682
|
}), o.invalidateQueries({
|
|
673
|
-
queryKey: p.configurations(c,
|
|
683
|
+
queryKey: p.configurations(c, s)
|
|
674
684
|
}), i();
|
|
675
685
|
}
|
|
676
686
|
}), { reset: I } = S;
|
|
@@ -697,36 +707,36 @@ function gn({
|
|
|
697
707
|
)
|
|
698
708
|
] }),
|
|
699
709
|
children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
700
|
-
/* @__PURE__ */ n(
|
|
710
|
+
/* @__PURE__ */ n(P, { children: d("history.restoreMessage") }),
|
|
701
711
|
S.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: d("history.restoreFailed"), children: S.error.message }) : null
|
|
702
712
|
] })
|
|
703
713
|
}
|
|
704
714
|
);
|
|
705
715
|
}
|
|
706
|
-
const
|
|
707
|
-
function
|
|
708
|
-
return !e || e === "/" ? "" : e.replace(/^\//, "").split("/").map((t) =>
|
|
716
|
+
const yn = (e) => e.replace(/_([a-z0-9])/g, (t, i) => i.toUpperCase());
|
|
717
|
+
function Sn(e) {
|
|
718
|
+
return !e || e === "/" ? "" : e.replace(/^\//, "").split("/").map((t) => yn(t.replace(/~1/g, "/").replace(/~0/g, "~"))).join(".");
|
|
709
719
|
}
|
|
710
|
-
function
|
|
720
|
+
function vn(e) {
|
|
711
721
|
const t = /* @__PURE__ */ new Map();
|
|
712
722
|
for (const i of e) {
|
|
713
|
-
const a =
|
|
723
|
+
const a = Sn(i.path);
|
|
714
724
|
if (!a) continue;
|
|
715
|
-
const
|
|
716
|
-
t.set(a,
|
|
725
|
+
const r = t.get(a);
|
|
726
|
+
t.set(a, r ? `${r} ${i.message}` : i.message);
|
|
717
727
|
}
|
|
718
728
|
return t;
|
|
719
729
|
}
|
|
720
|
-
function
|
|
730
|
+
function Rn({
|
|
721
731
|
open: e,
|
|
722
732
|
onClose: t,
|
|
723
733
|
client: i,
|
|
724
734
|
mapping: a,
|
|
725
|
-
onMove:
|
|
735
|
+
onMove: r
|
|
726
736
|
}) {
|
|
727
|
-
const { t:
|
|
737
|
+
const { t: s } = w(R), l = ke({ defaultValues: { blueprintReleaseId: null } }), d = Ue({ control: l.control, name: "blueprintReleaseId" }) ?? "", c = q({
|
|
728
738
|
mutationFn: (m) => i.checkMappingBlueprintRelease(a.id, m)
|
|
729
|
-
}), o = q({ mutationFn:
|
|
739
|
+
}), o = q({ mutationFn: r, onSuccess: t }), { reset: u } = l, { reset: y } = c, { reset: h } = o;
|
|
730
740
|
G(() => {
|
|
731
741
|
e && (u({ blueprintReleaseId: null }), y(), h());
|
|
732
742
|
}, [e, u, y, h]);
|
|
@@ -738,11 +748,11 @@ function Sn({
|
|
|
738
748
|
{
|
|
739
749
|
open: e,
|
|
740
750
|
onClose: t,
|
|
741
|
-
header:
|
|
751
|
+
header: s("mappings.moveTitle"),
|
|
742
752
|
lazyMount: !0,
|
|
743
753
|
unmountOnExit: !0,
|
|
744
754
|
footer: /* @__PURE__ */ g($, { gap: "2", children: [
|
|
745
|
-
/* @__PURE__ */ n(A, { variant: "outline", onClick: t, children:
|
|
755
|
+
/* @__PURE__ */ n(A, { variant: "outline", onClick: t, children: s("common.cancel") }),
|
|
746
756
|
/* @__PURE__ */ n(
|
|
747
757
|
A,
|
|
748
758
|
{
|
|
@@ -750,7 +760,7 @@ function Sn({
|
|
|
750
760
|
disabled: !d || d === a.content.blueprintReleaseId,
|
|
751
761
|
loading: c.isPending,
|
|
752
762
|
onClick: () => c.mutate(d),
|
|
753
|
-
children:
|
|
763
|
+
children: s("mappings.check")
|
|
754
764
|
}
|
|
755
765
|
),
|
|
756
766
|
/* @__PURE__ */ n(
|
|
@@ -760,21 +770,21 @@ function Sn({
|
|
|
760
770
|
disabled: !I,
|
|
761
771
|
loading: o.isPending,
|
|
762
772
|
onClick: () => o.mutate(d),
|
|
763
|
-
children:
|
|
773
|
+
children: s("mappings.moveConfirm")
|
|
764
774
|
}
|
|
765
775
|
)
|
|
766
776
|
] }),
|
|
767
777
|
children: /* @__PURE__ */ n(Ee, { ...l, children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
768
|
-
/* @__PURE__ */ n(
|
|
769
|
-
c.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title:
|
|
778
|
+
/* @__PURE__ */ n(In, { mapping: a }),
|
|
779
|
+
c.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: s("mappings.checkFailed"), children: c.error.message }) : null,
|
|
770
780
|
I ? /* @__PURE__ */ n(Pn, { report: I }) : null,
|
|
771
|
-
o.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title:
|
|
781
|
+
o.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: s("save.failed"), children: o.error.message }) : null
|
|
772
782
|
] }) })
|
|
773
783
|
}
|
|
774
784
|
);
|
|
775
785
|
}
|
|
776
|
-
function
|
|
777
|
-
const { t } = w(
|
|
786
|
+
function In({ mapping: e }) {
|
|
787
|
+
const { t } = w(R), { blueprints: i } = j(), { workspaceId: a } = H(), r = _({
|
|
778
788
|
queryKey: p.blueprintReleases(a, e.content.blueprintId),
|
|
779
789
|
queryFn: () => i?.listReleases(e.content.blueprintId) ?? Promise.resolve([]),
|
|
780
790
|
enabled: i !== void 0
|
|
@@ -785,12 +795,12 @@ function vn({ mapping: e }) {
|
|
|
785
795
|
name: "blueprintReleaseId",
|
|
786
796
|
label: t("mappings.newRelease"),
|
|
787
797
|
required: !0,
|
|
788
|
-
options: (
|
|
798
|
+
options: (r.data ?? []).filter((s) => s.id !== e.content.blueprintReleaseId).map((s) => ({ id: s.id, label: s.label }))
|
|
789
799
|
}
|
|
790
800
|
) : /* @__PURE__ */ n(J, { name: "blueprintReleaseId", label: t("mappings.newReleaseId"), required: !0 });
|
|
791
801
|
}
|
|
792
802
|
function Pn({ report: e }) {
|
|
793
|
-
const { t } = w(
|
|
803
|
+
const { t } = w(R), i = e.missingFieldPaths.length + e.missingReleaseSpecFields.length;
|
|
794
804
|
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
805
|
e.missingFieldPaths.length > 0 ? /* @__PURE__ */ n(ye, { label: t("mappings.lostFields"), paths: e.missingFieldPaths }) : null,
|
|
796
806
|
e.missingReleaseSpecFields.length > 0 ? /* @__PURE__ */ n(ye, { label: t("mappings.lostReleaseSpec"), paths: e.missingReleaseSpecFields }) : null
|
|
@@ -798,90 +808,90 @@ function Pn({ report: e }) {
|
|
|
798
808
|
}
|
|
799
809
|
function ye({ label: e, paths: t }) {
|
|
800
810
|
return /* @__PURE__ */ g(C, { gap: "1", children: [
|
|
801
|
-
/* @__PURE__ */ n(
|
|
811
|
+
/* @__PURE__ */ n(P, { fontWeight: "medium", children: e }),
|
|
802
812
|
/* @__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
813
|
] });
|
|
804
814
|
}
|
|
805
|
-
const Fe =
|
|
806
|
-
function
|
|
815
|
+
const Fe = Pe(null);
|
|
816
|
+
function qn() {
|
|
807
817
|
const e = we(Fe);
|
|
808
818
|
if (!e) throw new Error("useMappingPage outside a Mapping's page");
|
|
809
819
|
return e;
|
|
810
820
|
}
|
|
811
|
-
const ce = (e) => structuredClone(e),
|
|
821
|
+
const ce = (e) => structuredClone(e), wn = [
|
|
812
822
|
["versionMatch"],
|
|
813
823
|
["validityPeriod"],
|
|
814
824
|
["collectionRouting"],
|
|
815
825
|
["sourceKey", "extractSeparator"]
|
|
816
|
-
],
|
|
826
|
+
], kn = (e) => e === "" || e !== null && typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0;
|
|
817
827
|
function Se(e, t) {
|
|
818
828
|
const i = JSON.parse(JSON.stringify(e));
|
|
819
|
-
for (const a of
|
|
820
|
-
const
|
|
829
|
+
for (const a of wn) {
|
|
830
|
+
const r = a.slice(0, -1), s = a[a.length - 1], l = r.reduce(
|
|
821
831
|
(c, o) => c?.[o],
|
|
822
832
|
i
|
|
823
|
-
), d =
|
|
833
|
+
), d = r.reduce(
|
|
824
834
|
(c, o) => c?.[o],
|
|
825
835
|
t
|
|
826
836
|
);
|
|
827
|
-
l &&
|
|
837
|
+
l && s in l && kn(l[s]) && !(d && s in d) && delete l[s];
|
|
828
838
|
}
|
|
829
839
|
return i;
|
|
830
840
|
}
|
|
831
|
-
function
|
|
841
|
+
function Gn({
|
|
832
842
|
client: e,
|
|
833
843
|
id: t,
|
|
834
844
|
onDeleted: i,
|
|
835
845
|
editor: a
|
|
836
846
|
}) {
|
|
837
|
-
const { t:
|
|
838
|
-
queryKey: p.mapping(
|
|
847
|
+
const { t: r } = w(R), { workspaceId: s } = H(), l = _({
|
|
848
|
+
queryKey: p.mapping(s, t),
|
|
839
849
|
queryFn: () => e.getMapping(t)
|
|
840
850
|
});
|
|
841
|
-
return l.isError || !l.data ? /* @__PURE__ */ n(Ie, { title:
|
|
851
|
+
return l.isError || !l.data ? /* @__PURE__ */ n(Ie, { title: r("section.mappings.title"), children: l.isError ? /* @__PURE__ */ n(en, {}) : /* @__PURE__ */ n(Yt, {}) }) : /* @__PURE__ */ n(En, { client: e, mapping: l.data, onDeleted: i, editor: a });
|
|
842
852
|
}
|
|
843
|
-
function
|
|
853
|
+
function En({
|
|
844
854
|
client: e,
|
|
845
855
|
mapping: t,
|
|
846
856
|
onDeleted: i,
|
|
847
857
|
editor: a
|
|
848
858
|
}) {
|
|
849
|
-
const { t:
|
|
850
|
-
queryKey: p.mappingImportProfiles(
|
|
859
|
+
const { t: r } = w(R), { workspaceId: s } = H(), { paths: l } = j(), d = De(), c = ae(), [o, u] = V(!1), [y, h] = V(!1), S = Me([t.content.blueprintId]), I = _({
|
|
860
|
+
queryKey: p.mappingImportProfiles(s, t.id),
|
|
851
861
|
queryFn: () => e.listMappingImportProfiles(t.id)
|
|
852
|
-
}), m = ke({ defaultValues: ce(t.content) }), { reset: f, formState:
|
|
853
|
-
for (const [k, de] of
|
|
854
|
-
|
|
855
|
-
}, [t,
|
|
862
|
+
}), m = ke({ defaultValues: ce(t.content) }), { reset: f, formState: D, setError: M } = m, T = Ze(() => {
|
|
863
|
+
for (const [k, de] of vn(t.validity.reasons))
|
|
864
|
+
M(k, { type: "importhub", message: de });
|
|
865
|
+
}, [t, M]);
|
|
856
866
|
G(() => {
|
|
857
|
-
|
|
858
|
-
}, [t, f,
|
|
867
|
+
D.isDirty || f(ce(t.content)), T();
|
|
868
|
+
}, [t, f, D.isDirty, T]);
|
|
859
869
|
const Q = (k) => {
|
|
860
|
-
c.setQueryData(p.mapping(
|
|
870
|
+
c.setQueryData(p.mapping(s, k.id), k), f(ce(k.content)), c.invalidateQueries({ queryKey: p.mappings(s) }), c.invalidateQueries({ queryKey: p.importProfiles(s) });
|
|
861
871
|
}, L = q({
|
|
862
872
|
mutationFn: (k) => e.updateMapping(t.id, k, t.state.draftRevisionId),
|
|
863
873
|
onSuccess: Q,
|
|
864
874
|
// Nothing was saved: the draft's reasons still hold.
|
|
865
|
-
onError:
|
|
875
|
+
onError: T
|
|
866
876
|
}), te = () => {
|
|
867
877
|
m.clearErrors(), m.handleSubmit((k) => L.mutate(Se(k, t.content)))();
|
|
868
|
-
}, [b, F] =
|
|
878
|
+
}, [b, F] = tn(a?.tabs), v = dn({
|
|
869
879
|
client: e,
|
|
870
880
|
kind: "mapping",
|
|
871
881
|
id: t.id,
|
|
872
882
|
validity: t.validity,
|
|
873
883
|
state: t.state,
|
|
874
|
-
unsaved:
|
|
884
|
+
unsaved: D.isDirty
|
|
875
885
|
});
|
|
876
886
|
We(
|
|
877
887
|
d ? /* @__PURE__ */ g(U, { storageKey: "importhub.mapping.rail", children: [
|
|
878
|
-
/* @__PURE__ */ n(U.Header, { title:
|
|
879
|
-
/* @__PURE__ */ g(U.Section, { id: "actions", label:
|
|
888
|
+
/* @__PURE__ */ n(U.Header, { title: r("rail.title") }),
|
|
889
|
+
/* @__PURE__ */ g(U.Section, { id: "actions", label: r("rail.actions"), children: [
|
|
880
890
|
v.railAction,
|
|
881
891
|
/* @__PURE__ */ n(
|
|
882
892
|
U.IconButton,
|
|
883
893
|
{
|
|
884
|
-
label:
|
|
894
|
+
label: r("mappings.delete"),
|
|
885
895
|
icon: /* @__PURE__ */ n(je, { size: 16 }),
|
|
886
896
|
tone: "outline-red",
|
|
887
897
|
onClick: () => u(!0)
|
|
@@ -895,9 +905,9 @@ function wn({
|
|
|
895
905
|
t.content.blueprintReleaseId
|
|
896
906
|
), le = t.content.fields?.length ?? 0, ne = /* @__PURE__ */ g(X, { children: [
|
|
897
907
|
v.notice,
|
|
898
|
-
/* @__PURE__ */ n(
|
|
899
|
-
L.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title:
|
|
900
|
-
] }),
|
|
908
|
+
/* @__PURE__ */ n(Te, { validity: t.validity }),
|
|
909
|
+
L.isError ? /* @__PURE__ */ n(E, { status: "error", colorPalette: "danger", title: r("save.failed"), children: L.error.message }) : null
|
|
910
|
+
] }), B = W(
|
|
901
911
|
() => ({ mapping: t, canConfigure: d, reasons: t.validity.reasons }),
|
|
902
912
|
[t, d]
|
|
903
913
|
), ge = a?.tabs.some((k) => k.value === b) ? b : null;
|
|
@@ -905,31 +915,31 @@ function wn({
|
|
|
905
915
|
Ie,
|
|
906
916
|
{
|
|
907
917
|
title: t.content.name,
|
|
908
|
-
breadcrumbs: [{ label:
|
|
918
|
+
breadcrumbs: [{ label: r("section.mappings.title"), to: l.mappings }],
|
|
909
919
|
badges: /* @__PURE__ */ g($, { gap: "2", children: [
|
|
910
920
|
/* @__PURE__ */ n(
|
|
911
921
|
Y,
|
|
912
922
|
{
|
|
913
923
|
tone: t.validity.valid ? "success" : "danger",
|
|
914
|
-
label: t.validity.valid ?
|
|
924
|
+
label: t.validity.valid ? r("validity.valid") : r("validity.invalid")
|
|
915
925
|
}
|
|
916
926
|
),
|
|
917
|
-
/* @__PURE__ */ n(
|
|
927
|
+
/* @__PURE__ */ n(rn, { state: t.state })
|
|
918
928
|
] }),
|
|
919
929
|
tabs: F,
|
|
920
930
|
actions: d ? /* @__PURE__ */ n(
|
|
921
931
|
A,
|
|
922
932
|
{
|
|
923
933
|
variant: "solid",
|
|
924
|
-
disabled: !
|
|
934
|
+
disabled: !D.isDirty,
|
|
925
935
|
loading: L.isPending,
|
|
926
936
|
onClick: te,
|
|
927
|
-
children:
|
|
937
|
+
children: r("common.save")
|
|
928
938
|
}
|
|
929
939
|
) : void 0,
|
|
930
940
|
children: [
|
|
931
941
|
b === "history" ? /* @__PURE__ */ n(
|
|
932
|
-
|
|
942
|
+
fn,
|
|
933
943
|
{
|
|
934
944
|
client: e,
|
|
935
945
|
kind: "mapping",
|
|
@@ -939,29 +949,29 @@ function wn({
|
|
|
939
949
|
Q(await e.getMapping(t.id));
|
|
940
950
|
}
|
|
941
951
|
}
|
|
942
|
-
) : /* @__PURE__ */ n(Fe.Provider, { value:
|
|
952
|
+
) : /* @__PURE__ */ n(Fe.Provider, { value: B, children: /* @__PURE__ */ n(Ee, { ...m, children: /* @__PURE__ */ n(
|
|
943
953
|
"form",
|
|
944
954
|
{
|
|
945
955
|
onSubmit: (k) => {
|
|
946
956
|
k.preventDefault(), d && te();
|
|
947
957
|
},
|
|
948
|
-
children: a && ge ? a.render(ge, ne) : /* @__PURE__ */ n(
|
|
958
|
+
children: a && ge ? a.render(ge, ne) : /* @__PURE__ */ n(O, { px: "8", py: "6", children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
949
959
|
ne,
|
|
950
|
-
/* @__PURE__ */ n(se, { title:
|
|
960
|
+
/* @__PURE__ */ n(se, { title: r("mappings.general"), children: /* @__PURE__ */ g(C, { gap: "4", children: [
|
|
951
961
|
/* @__PURE__ */ n(
|
|
952
962
|
J,
|
|
953
963
|
{
|
|
954
964
|
name: "name",
|
|
955
|
-
label:
|
|
965
|
+
label: r("fields.name"),
|
|
956
966
|
required: !0,
|
|
957
967
|
disabled: !d
|
|
958
968
|
}
|
|
959
969
|
),
|
|
960
970
|
/* @__PURE__ */ n(
|
|
961
|
-
|
|
971
|
+
Be,
|
|
962
972
|
{
|
|
963
973
|
name: "description",
|
|
964
|
-
label:
|
|
974
|
+
label: r("fields.description"),
|
|
965
975
|
disabled: !d
|
|
966
976
|
}
|
|
967
977
|
),
|
|
@@ -969,8 +979,8 @@ function wn({
|
|
|
969
979
|
J,
|
|
970
980
|
{
|
|
971
981
|
name: "elementSelector",
|
|
972
|
-
label:
|
|
973
|
-
helperText:
|
|
982
|
+
label: r("mappings.elementSelector"),
|
|
983
|
+
helperText: r("mappings.elementSelectorHelp"),
|
|
974
984
|
disabled: !d
|
|
975
985
|
}
|
|
976
986
|
),
|
|
@@ -978,7 +988,7 @@ function wn({
|
|
|
978
988
|
J,
|
|
979
989
|
{
|
|
980
990
|
name: "sourceKey.selector",
|
|
981
|
-
label:
|
|
991
|
+
label: r("mappings.sourceKeySelector"),
|
|
982
992
|
disabled: !d
|
|
983
993
|
}
|
|
984
994
|
),
|
|
@@ -986,33 +996,33 @@ function wn({
|
|
|
986
996
|
J,
|
|
987
997
|
{
|
|
988
998
|
name: "sourceKey.template",
|
|
989
|
-
label:
|
|
990
|
-
helperText:
|
|
999
|
+
label: r("mappings.sourceKeyTemplate"),
|
|
1000
|
+
helperText: r("mappings.sourceKeyTemplateHelp"),
|
|
991
1001
|
disabled: !d
|
|
992
1002
|
}
|
|
993
1003
|
),
|
|
994
|
-
a ? null : /* @__PURE__ */ n(
|
|
1004
|
+
a ? null : /* @__PURE__ */ n(P, { color: "fg.muted", fontSize: "sm", children: r("mappings.fieldCount", { count: le }) })
|
|
995
1005
|
] }) }),
|
|
996
|
-
/* @__PURE__ */ n(se, { title:
|
|
1006
|
+
/* @__PURE__ */ n(se, { title: r("mappings.target"), children: /* @__PURE__ */ g(C, { gap: "3", children: [
|
|
997
1007
|
S.available ? /* @__PURE__ */ g(X, { children: [
|
|
998
|
-
/* @__PURE__ */ n(re, { label:
|
|
999
|
-
/* @__PURE__ */ n(re, { label:
|
|
1008
|
+
/* @__PURE__ */ n(re, { label: r("mappings.blueprint"), children: x ?? "…" }),
|
|
1009
|
+
/* @__PURE__ */ n(re, { label: r("mappings.release"), children: K ?? "…" })
|
|
1000
1010
|
] }) : /* @__PURE__ */ g(X, { children: [
|
|
1001
|
-
/* @__PURE__ */ n(re, { label:
|
|
1002
|
-
/* @__PURE__ */ n(re, { label:
|
|
1011
|
+
/* @__PURE__ */ n(re, { label: r("mappings.blueprintId"), children: /* @__PURE__ */ n(ee, { children: t.content.blueprintId }) }),
|
|
1012
|
+
/* @__PURE__ */ n(re, { label: r("mappings.releaseId"), children: /* @__PURE__ */ n(ee, { children: t.content.blueprintReleaseId }) })
|
|
1003
1013
|
] }),
|
|
1004
|
-
d ? /* @__PURE__ */ n(
|
|
1014
|
+
d ? /* @__PURE__ */ n(O, { children: /* @__PURE__ */ g(A, { variant: "outline", size: "sm", onClick: () => h(!0), children: [
|
|
1005
1015
|
/* @__PURE__ */ n(Qe, { size: 14, "aria-hidden": !0 }),
|
|
1006
|
-
|
|
1016
|
+
r("mappings.move")
|
|
1007
1017
|
] }) }) : null
|
|
1008
1018
|
] }) }),
|
|
1009
|
-
/* @__PURE__ */ n(se, { title:
|
|
1019
|
+
/* @__PURE__ */ n(se, { title: r("mappings.includedBy"), children: I.isError ? /* @__PURE__ */ n(P, { color: "fg.muted", children: r("startPage.error") }) : I.data ? I.data.length === 0 ? /* @__PURE__ */ n(P, { color: "fg.muted", children: r("mappings.noProfiles") }) : /* @__PURE__ */ n(N.Root, { ps: "4", "aria-label": r("mappings.includedBy"), children: I.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(P, { color: "fg.muted", children: r("startPage.loading") }) })
|
|
1010
1020
|
] }) })
|
|
1011
1021
|
}
|
|
1012
1022
|
) }) }),
|
|
1013
1023
|
v.dialog,
|
|
1014
1024
|
/* @__PURE__ */ n(
|
|
1015
|
-
|
|
1025
|
+
Rn,
|
|
1016
1026
|
{
|
|
1017
1027
|
open: y,
|
|
1018
1028
|
onClose: () => h(!1),
|
|
@@ -1028,15 +1038,15 @@ function wn({
|
|
|
1028
1038
|
}
|
|
1029
1039
|
),
|
|
1030
1040
|
/* @__PURE__ */ n(
|
|
1031
|
-
|
|
1041
|
+
nn,
|
|
1032
1042
|
{
|
|
1033
1043
|
open: o,
|
|
1034
1044
|
onClose: () => u(!1),
|
|
1035
|
-
title:
|
|
1036
|
-
message:
|
|
1045
|
+
title: r("mappings.deleteTitle", { name: t.content.name }),
|
|
1046
|
+
message: r("mappings.deleteMessage"),
|
|
1037
1047
|
onDelete: () => e.deleteMapping(t.id),
|
|
1038
1048
|
onDeleted: () => {
|
|
1039
|
-
u(!1), c.removeQueries({ queryKey: p.mapping(
|
|
1049
|
+
u(!1), c.removeQueries({ queryKey: p.mapping(s, t.id) }), c.invalidateQueries({ queryKey: p.mappings(s) }), i();
|
|
1040
1050
|
}
|
|
1041
1051
|
}
|
|
1042
1052
|
)
|
|
@@ -1046,35 +1056,35 @@ function wn({
|
|
|
1046
1056
|
}
|
|
1047
1057
|
function re({ label: e, children: t }) {
|
|
1048
1058
|
return /* @__PURE__ */ g($, { gap: "4", align: "baseline", children: [
|
|
1049
|
-
/* @__PURE__ */ n(
|
|
1050
|
-
/* @__PURE__ */ n(
|
|
1059
|
+
/* @__PURE__ */ n(P, { color: "fg.muted", minW: "40", children: e }),
|
|
1060
|
+
/* @__PURE__ */ n(O, { children: t })
|
|
1051
1061
|
] });
|
|
1052
1062
|
}
|
|
1053
1063
|
export {
|
|
1054
|
-
|
|
1055
|
-
|
|
1064
|
+
fn as C,
|
|
1065
|
+
nn as D,
|
|
1056
1066
|
re as F,
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1067
|
+
R as I,
|
|
1068
|
+
en as L,
|
|
1069
|
+
Gn as M,
|
|
1070
|
+
rn as R,
|
|
1071
|
+
Ut as S,
|
|
1072
|
+
Te as V,
|
|
1073
|
+
he as a,
|
|
1074
|
+
Yt as b,
|
|
1075
|
+
De as c,
|
|
1076
|
+
tn as d,
|
|
1077
|
+
dn as e,
|
|
1078
|
+
on as f,
|
|
1079
|
+
Me as g,
|
|
1080
|
+
Vn as h,
|
|
1071
1081
|
p as i,
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1082
|
+
Ln as j,
|
|
1083
|
+
Wn as k,
|
|
1084
|
+
qn as l,
|
|
1085
|
+
Sn as m,
|
|
1076
1086
|
Se as n,
|
|
1077
|
-
|
|
1087
|
+
Xn as r,
|
|
1078
1088
|
j as u
|
|
1079
1089
|
};
|
|
1080
|
-
//# sourceMappingURL=mapping-page-
|
|
1090
|
+
//# sourceMappingURL=mapping-page-Bl2rA1SR.js.map
|