{{ t('Import configuration items from JSON File') }}
{{ t('Export') }} {{ t('Import') }}
{{ t('Select image') }} {{ t('Max allowed file size: ') }} {{ maxUploadLimit?.string }}

{{ t('Drop JSON file here or click to upload.') }}

{{ t('File information') }} {{ t('Uploaded file contains errors!') }}

{{ t('Error') }}
{{ errorMessage }}
{{ t('Information') }} {{ t('Value') }}
{{ t('Created with {0} version', { '0': SystemnameService.systemName$ | async }) }} {{ fileInformation.openITCOCKPIT_version }}
{{ t('Checksum') }} {{ fileInformation.checksum }}
{{ t('Object type') }} {{ t('Count') }}
{{ t('Commands') }} {{ fileInformation.commands_count }}
{{ t('Time periods') }} {{ fileInformation.timeperiods_count }}
{{ t('Contacts') }} {{ fileInformation.contacts_count }}
{{ t('Contact groups') }} {{ fileInformation.contactgroups_count }}
{{ t('Service templates') }} {{ fileInformation.servicetemplates_count }}
{{ t('Service template groups') }} {{ fileInformation.servicetemplategroups_count }}
{{ t('It is recommended that you create a backup before starting the import!') }}
{{ t('No changes were applied yet. If not already done make sure that you have a backup of your current configuration.') }}

{{ t('Import') }} {{ t('Error while importing data!') }}

{{ t('Error while importing ') }} {{ importResponse.error.Model }} {{ t('Source UUID:') }} {{ importResponse.error.sourceUuid }}
- {{ vError.key }}: {{ error.value }}

{{ t('Please see the log file for more information.') }}
{{ t('Ready to import') }}
{{ t('No conflicts were found.') }}
{{ t('Possible dangerous changes detected') }}
{{ t('Importing this configuration could break your currently running monitoring configuration.') }} {{ t('Before importing, please check the shown comparison.') }}
{{ t('This overview will only show potential dangerous changes. For example if command arguments get removed from an existing check command.') }}
{{ t('It will not mean that the change will break something. {0} can not detected if a change was made intentionally or by accident.', { '0': SystemnameService.systemName$ | async }) }}
{{ t('Current configuration') }}
{{ t('New configuration after import') }}
@for (objectTypeChanges of relevantChanges; track $index) {

@switch (objectTypeChanges.objectType) { @case (ConfigurationItemsExportImport.commands) { {{ t('Commands') }} } @case (ConfigurationItemsExportImport.timeperiods) { {{ t('Time periods') }} } @case (ConfigurationItemsExportImport.contacts) { {{ t('Contacts') }} } @case (ConfigurationItemsExportImport.contactgroups) { {{ t('Contact groups') }} } @case (ConfigurationItemsExportImport.servicetemplates) { {{ t('Service templates') }} } @case (ConfigurationItemsExportImport.servicetemplategroups) { {{ t('Service templates groups') }} } }

@for (object of objectTypeChanges.relevantObjects; track $index) {
{{ object.name }}
@for (change of object.modelChanges; track $index) {
{{ change.modelName }} @for (currentValues of change.current; track $index) {
@for (currentValue of currentValues; track $index) {
{{ currentValue.key }} {{ currentValue.value }}
}
}
@for (newValues of change.new; track $index) {
@for (newValue of newValues; track $index) {
{{ newValue.key }} {{ newValue.value }}
}
}
}
}
}
{{ t('Import finished successfully') }}
{{ t('The new configuration got imported successfully. All changes where documented within the change log.') }}