@tilde-nlp/ngx-translate 2.0.2 → 2.0.3-deepl-1

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.
Files changed (37) hide show
  1. package/esm2020/lib/i18n/en.mjs +5 -4
  2. package/esm2020/lib/i18n/lv.mjs +4 -2
  3. package/esm2020/lib/modules/tld-common/components/tld-list-menu/tld-list-menu.component.mjs +4 -3
  4. package/esm2020/lib/modules/tld-common/index.mjs +1 -1
  5. package/esm2020/lib/modules/tld-common/models/configs/tld-translate-text-config.model.mjs +1 -1
  6. package/esm2020/lib/modules/tld-common/pipes/capitalize.pipe.mjs +16 -0
  7. package/esm2020/lib/modules/tld-common/pipes/index.mjs +2 -1
  8. package/esm2020/lib/modules/tld-common/services/tld-alert.service.mjs +11 -3
  9. package/esm2020/lib/modules/tld-common/services/tld-translate-config.service.mjs +2 -1
  10. package/esm2020/lib/modules/tld-common/tld-common.module.mjs +9 -4
  11. package/esm2020/lib/modules/tld-document/services/tld-translate-file.service.mjs +6 -2
  12. package/esm2020/lib/modules/tld-text/components/textarea-with-background/textarea-with-background.component.mjs +2 -2
  13. package/esm2020/lib/modules/tld-text/components/tld-translate-text/tld-translate-text.component.mjs +2 -2
  14. package/esm2020/lib/modules/tld-text/services/tld-translate-text.service.mjs +5 -1
  15. package/esm2020/lib/modules/tld-tooltip/tld-domain-list/tld-domain-list.component.mjs +6 -5
  16. package/esm2020/lib/modules/tld-tooltip/tld-translate-switcher/tld-translate-switcher.component.mjs +5 -4
  17. package/esm2020/lib/tld-translate.component.mjs +7 -3
  18. package/fesm2015/tilde-nlp-ngx-translate.mjs +166 -123
  19. package/fesm2015/tilde-nlp-ngx-translate.mjs.map +1 -1
  20. package/fesm2020/tilde-nlp-ngx-translate.mjs +136 -94
  21. package/fesm2020/tilde-nlp-ngx-translate.mjs.map +1 -1
  22. package/lib/i18n/en.d.ts +2 -1
  23. package/lib/i18n/lv.d.ts +2 -0
  24. package/lib/modules/tld-common/models/configs/tld-translate-text-config.model.d.ts +2 -0
  25. package/lib/modules/tld-common/pipes/capitalize.pipe.d.ts +7 -0
  26. package/lib/modules/tld-common/pipes/index.d.ts +1 -0
  27. package/lib/modules/tld-common/services/tld-alert.service.d.ts +2 -0
  28. package/lib/modules/tld-common/tld-common.module.d.ts +8 -7
  29. package/lib/modules/tld-text/services/tld-translate-text.service.d.ts +1 -0
  30. package/lib/modules/tld-tooltip/tld-domain-list/tld-domain-list.component.d.ts +1 -1
  31. package/lib/modules/tld-tooltip/tld-translate-switcher/tld-translate-switcher.component.d.ts +1 -1
  32. package/lib/tld-translate.component.d.ts +2 -1
  33. package/package.json +2 -2
  34. package/src/assets/webcomponent/styles.css +1 -1
  35. package/src/assets/webcomponent/tld-translate.js +1 -1
  36. package/tilde-nlp-ngx-translate-2.0.3-deepl-1.tgz +0 -0
  37. package/tilde-nlp-ngx-translate-2.0.2.tgz +0 -0
@@ -563,8 +563,7 @@ const i18n_en = {
563
563
  "E_12_TITLE": "Text size limit",
564
564
  "E_12": "Text size limit reached. Send less text in the request.",
565
565
  "E_12_SUPPORT": " To increase the text size limit, please contact <a href=\"mailto:{{email}}\"><strong>support</strong></a>.",
566
- "E_21_TITLE": "Machine translation engine is starting",
567
- "E_21": "You will be able to translate in a few moments.",
566
+ "E_21": "The translation engine is starting up, this may take a moment!",
568
567
  "E_22_TITLE": "Machine translation engine not found",
569
568
  "E_22": "Machine translation engine not found.",
570
569
  "E_22_SUPPORT": " Please contact <a href=\"mailto:{{email}}\"><strong>support</strong></a>.",
@@ -652,7 +651,9 @@ const i18n_en = {
652
651
  "KO": "Korean",
653
652
  "TR": "Turkish",
654
653
  "HR": "Croatian",
655
- "RO": "Romanian"
654
+ "RO": "Romanian",
655
+ "UZ": "Uzbek",
656
+ "ID": "Indonesian"
656
657
  },
657
658
  "ARIA_LABELS": {
658
659
  "CLOSE_BUTTON": "Clear",
@@ -2115,7 +2116,9 @@ const i18n_lv = {
2115
2116
  "KO": "Korejiešu",
2116
2117
  "TR": "Turku",
2117
2118
  "HR": "Horvātu",
2118
- "RO": "Rumāņu"
2119
+ "RO": "Rumāņu",
2120
+ "UZ": "Uzbeku",
2121
+ "ID": "Indonēziešu"
2119
2122
  },
2120
2123
  "MULTIPLE_FILES": {
2121
2124
  "APPEND": "Pievienot failus",
@@ -3426,7 +3429,7 @@ class TldTranslateConfigService {
3426
3429
  return this._textToSpeechConfig;
3427
3430
  }
3428
3431
  initConfigs(configuration) {
3429
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36;
3432
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37;
3430
3433
  const config = (_a = configuration !== null && configuration !== void 0 ? configuration : this.config) !== null && _a !== void 0 ? _a : {};
3431
3434
  const core = config === null || config === void 0 ? void 0 : config.core;
3432
3435
  const file = config === null || config === void 0 ? void 0 : config.file;
@@ -3536,49 +3539,50 @@ class TldTranslateConfigService {
3536
3539
  this._textConfig.progressIndicatorTimeoutMiliSeconds = (_7 = text === null || text === void 0 ? void 0 : text.progressIndicatorTimeoutMiliSeconds) !== null && _7 !== void 0 ? _7 : 2000;
3537
3540
  this._textConfig.progressIndicatorTitleVisibleForVendors = (_8 = text === null || text === void 0 ? void 0 : text.progressIndicatorTitleVisibleForVendors) !== null && _8 !== void 0 ? _8 : ["ETranslation"];
3538
3541
  this._textConfig.progressIndicatorVisible = (_9 = text === null || text === void 0 ? void 0 : text.progressIndicatorVisible) !== null && _9 !== void 0 ? _9 : false;
3539
- this._audioConfig.audioTextInput = (_10 = audio === null || audio === void 0 ? void 0 : audio.audioTextInput) !== null && _10 !== void 0 ? _10 : false;
3542
+ this._textConfig.displaySingleAvailableDomain = (_10 = text === null || text === void 0 ? void 0 : text.displaySingleAvailableDomain) !== null && _10 !== void 0 ? _10 : false;
3543
+ this._audioConfig.audioTextInput = (_11 = audio === null || audio === void 0 ? void 0 : audio.audioTextInput) !== null && _11 !== void 0 ? _11 : false;
3540
3544
  // Not setting default url because there is no service provided by Tilde and this is not used by default in website project.
3541
3545
  this._audioConfig.audioApiUrl = audio === null || audio === void 0 ? void 0 : audio.audioApiUrl;
3542
- this._audioConfig.audioMaxSizeBytes = (_11 = audio === null || audio === void 0 ? void 0 : audio.audioMaxSizeBytes) !== null && _11 !== void 0 ? _11 : 10000000;
3543
- this._audioConfig.sourceLanguages = (_12 = audio === null || audio === void 0 ? void 0 : audio.sourceLanguages) !== null && _12 !== void 0 ? _12 : [];
3544
- this._audioConfig.dataUpdateTimeFrame = (_13 = audio === null || audio === void 0 ? void 0 : audio.dataUpdateTimeFrame) !== null && _13 !== void 0 ? _13 : 5000;
3545
- this._audioConfig.maximumRecordTime = (_14 = audio === null || audio === void 0 ? void 0 : audio.maximumRecordTime) !== null && _14 !== void 0 ? _14 : 300;
3546
- this._audioConfig.dictateApiUrl = (_15 = audio === null || audio === void 0 ? void 0 : audio.dictateApiUrl) !== null && _15 !== void 0 ? _15 : "runa.tilde.lv";
3546
+ this._audioConfig.audioMaxSizeBytes = (_12 = audio === null || audio === void 0 ? void 0 : audio.audioMaxSizeBytes) !== null && _12 !== void 0 ? _12 : 10000000;
3547
+ this._audioConfig.sourceLanguages = (_13 = audio === null || audio === void 0 ? void 0 : audio.sourceLanguages) !== null && _13 !== void 0 ? _13 : [];
3548
+ this._audioConfig.dataUpdateTimeFrame = (_14 = audio === null || audio === void 0 ? void 0 : audio.dataUpdateTimeFrame) !== null && _14 !== void 0 ? _14 : 5000;
3549
+ this._audioConfig.maximumRecordTime = (_15 = audio === null || audio === void 0 ? void 0 : audio.maximumRecordTime) !== null && _15 !== void 0 ? _15 : 300;
3550
+ this._audioConfig.dictateApiUrl = (_16 = audio === null || audio === void 0 ? void 0 : audio.dictateApiUrl) !== null && _16 !== void 0 ? _16 : "runa.tilde.lv";
3547
3551
  this._audioConfig.appId = audio === null || audio === void 0 ? void 0 : audio.appId;
3548
3552
  this._audioConfig.appSecret = audio === null || audio === void 0 ? void 0 : audio.appSecret;
3549
- this._audioConfig.punctuationMessage = (_16 = audio === null || audio === void 0 ? void 0 : audio.punctuationMessage) !== null && _16 !== void 0 ? _16 : true;
3550
- this._audioConfig.disableAutomaticTranslation = (_17 = audio === null || audio === void 0 ? void 0 : audio.disableAutomaticTranslation) !== null && _17 !== void 0 ? _17 : true;
3553
+ this._audioConfig.punctuationMessage = (_17 = audio === null || audio === void 0 ? void 0 : audio.punctuationMessage) !== null && _17 !== void 0 ? _17 : true;
3554
+ this._audioConfig.disableAutomaticTranslation = (_18 = audio === null || audio === void 0 ? void 0 : audio.disableAutomaticTranslation) !== null && _18 !== void 0 ? _18 : true;
3551
3555
  this._webtranslateConfig.logoLocation = (webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.logoLocation) || 'assets/webtranslate/tilde_logo.png';
3552
3556
  this._webtranslateConfig.translatePagePath = webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.translatePagePath;
3553
3557
  this._webtranslateConfig.debug = (webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.debug) || false;
3554
3558
  this._webtranslateConfig.webLangAutodetect = (webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.webLangAutodetect) || true;
3555
3559
  this._webtranslateConfig.allowSuggestions = (webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.allowSuggestions) || false;
3556
3560
  this._webtranslateConfig.hidePopup = (webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.hidePopup) || false;
3557
- this._webtranslateConfig.sandbox = (_18 = webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.sandbox) !== null && _18 !== void 0 ? _18 : "allow-forms allow-scripts allow-same-origin";
3561
+ this._webtranslateConfig.sandbox = (_19 = webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.sandbox) !== null && _19 !== void 0 ? _19 : "allow-forms allow-scripts allow-same-origin";
3558
3562
  this._termConfig.apiUrl = (termConfig === null || termConfig === void 0 ? void 0 : termConfig.apiUrl) || "https://term.tilde.com";
3559
3563
  this._termConfig.canCreateCollection = termConfig === null || termConfig === void 0 ? void 0 : termConfig.canCreateCollection;
3560
3564
  this._termConfig.isCollectionsActivated = termConfig === null || termConfig === void 0 ? void 0 : termConfig.isCollectionsActivated;
3561
- this._termConfig.isTermPortalSupported = (_19 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.isTermPortalSupported) !== null && _19 !== void 0 ? _19 : false;
3562
- this._termConfig.collectionNameMinLength = (_20 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.collectionNameMinLength) !== null && _20 !== void 0 ? _20 : 8;
3563
- this._termConfig.collectionNameMaxLength = (_21 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.collectionNameMaxLength) !== null && _21 !== void 0 ? _21 : 300;
3564
- this._termConfig.refreshTimeoutMs = (_22 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.refreshTimeoutMs) !== null && _22 !== void 0 ? _22 : 10000;
3565
- this._termConfig.refreshTimeoutMsWhenImporting = (_23 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.refreshTimeoutMsWhenImporting) !== null && _23 !== void 0 ? _23 : 5000;
3566
- this._termConfig.freeTrialUrl = (_24 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.freeTrialUrl) !== null && _24 !== void 0 ? _24 : "https://tilde.com/products-and-services/machine-translation/pricing/Tilde-MT";
3567
- this._termConfig.learnMoreUrl = (_25 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.learnMoreUrl) !== null && _25 !== void 0 ? _25 : "https://www.tilde.com/products-and-services/machine-translation/Tilde-MT-features-glossary";
3565
+ this._termConfig.isTermPortalSupported = (_20 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.isTermPortalSupported) !== null && _20 !== void 0 ? _20 : false;
3566
+ this._termConfig.collectionNameMinLength = (_21 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.collectionNameMinLength) !== null && _21 !== void 0 ? _21 : 8;
3567
+ this._termConfig.collectionNameMaxLength = (_22 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.collectionNameMaxLength) !== null && _22 !== void 0 ? _22 : 300;
3568
+ this._termConfig.refreshTimeoutMs = (_23 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.refreshTimeoutMs) !== null && _23 !== void 0 ? _23 : 10000;
3569
+ this._termConfig.refreshTimeoutMsWhenImporting = (_24 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.refreshTimeoutMsWhenImporting) !== null && _24 !== void 0 ? _24 : 5000;
3570
+ this._termConfig.freeTrialUrl = (_25 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.freeTrialUrl) !== null && _25 !== void 0 ? _25 : "https://tilde.com/products-and-services/machine-translation/pricing/Tilde-MT";
3571
+ this._termConfig.learnMoreUrl = (_26 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.learnMoreUrl) !== null && _26 !== void 0 ? _26 : "https://www.tilde.com/products-and-services/machine-translation/Tilde-MT-features-glossary";
3568
3572
  // seperated because following urls have method names added
3569
3573
  this._coreConfig.translationServiceUrl = (core === null || core === void 0 ? void 0 : core.translationServiceUrl) || "https://www.letsmt.eu/ws/service.svc/json/";
3570
- this._textConfig.translationUrl = (_26 = text === null || text === void 0 ? void 0 : text.translationUrl) !== null && _26 !== void 0 ? _26 : this._coreConfig.translationServiceUrl + "TranslateEx";
3571
- this._textConfig.updateTranslationUrl = (_27 = text === null || text === void 0 ? void 0 : text.updateTranslationUrl) !== null && _27 !== void 0 ? _27 : this._coreConfig.translationServiceUrl + "UpdateTranslation";
3572
- this._coreConfig.systemListUrl = (_28 = core === null || core === void 0 ? void 0 : core.systemListUrl) !== null && _28 !== void 0 ? _28 : this._coreConfig.translationServiceUrl + "GetSystemList";
3574
+ this._textConfig.translationUrl = (_27 = text === null || text === void 0 ? void 0 : text.translationUrl) !== null && _27 !== void 0 ? _27 : this._coreConfig.translationServiceUrl + "TranslateEx";
3575
+ this._textConfig.updateTranslationUrl = (_28 = text === null || text === void 0 ? void 0 : text.updateTranslationUrl) !== null && _28 !== void 0 ? _28 : this._coreConfig.translationServiceUrl + "UpdateTranslation";
3576
+ this._coreConfig.systemListUrl = (_29 = core === null || core === void 0 ? void 0 : core.systemListUrl) !== null && _29 !== void 0 ? _29 : this._coreConfig.translationServiceUrl + "GetSystemList";
3573
3577
  this._apiV2Config.xApiKey = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.xApiKey;
3574
- this._apiV2Config.mtApiUrl = (_29 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.mtApiUrl) !== null && _29 !== void 0 ? _29 : "api/translate/";
3575
- this._apiV2Config.systemListUrl = (_30 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.systemListUrl) !== null && _30 !== void 0 ? _30 : this._apiV2Config.mtApiUrl + "language-directions";
3576
- this._apiV2Config.translationUrl = (_31 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.translationUrl) !== null && _31 !== void 0 ? _31 : this._apiV2Config.mtApiUrl + "text";
3577
- this._apiV2Config.fileTranslationUrl = (_32 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.fileTranslationUrl) !== null && _32 !== void 0 ? _32 : this._apiV2Config.mtApiUrl + "file";
3578
- this._apiV2Config.grammarCheckUrl = (_33 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.grammarCheckUrl) !== null && _33 !== void 0 ? _33 : "https://mt.cs.ut.ee/api/grammar";
3579
- this._apiV2Config.autoDomainDetection = (_34 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.autoDomainDetection) !== null && _34 !== void 0 ? _34 : false;
3580
- this._textToSpeechConfig.languages = (_35 = textToSpeech === null || textToSpeech === void 0 ? void 0 : textToSpeech.languages) !== null && _35 !== void 0 ? _35 : {};
3581
- this._textToSpeechConfig.maxCharsInText = (_36 = textToSpeech === null || textToSpeech === void 0 ? void 0 : textToSpeech.maxCharsInText) !== null && _36 !== void 0 ? _36 : 3000;
3578
+ this._apiV2Config.mtApiUrl = (_30 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.mtApiUrl) !== null && _30 !== void 0 ? _30 : "api/translate/";
3579
+ this._apiV2Config.systemListUrl = (_31 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.systemListUrl) !== null && _31 !== void 0 ? _31 : this._apiV2Config.mtApiUrl + "language-directions";
3580
+ this._apiV2Config.translationUrl = (_32 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.translationUrl) !== null && _32 !== void 0 ? _32 : this._apiV2Config.mtApiUrl + "text";
3581
+ this._apiV2Config.fileTranslationUrl = (_33 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.fileTranslationUrl) !== null && _33 !== void 0 ? _33 : this._apiV2Config.mtApiUrl + "file";
3582
+ this._apiV2Config.grammarCheckUrl = (_34 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.grammarCheckUrl) !== null && _34 !== void 0 ? _34 : "https://mt.cs.ut.ee/api/grammar";
3583
+ this._apiV2Config.autoDomainDetection = (_35 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.autoDomainDetection) !== null && _35 !== void 0 ? _35 : false;
3584
+ this._textToSpeechConfig.languages = (_36 = textToSpeech === null || textToSpeech === void 0 ? void 0 : textToSpeech.languages) !== null && _36 !== void 0 ? _36 : {};
3585
+ this._textToSpeechConfig.maxCharsInText = (_37 = textToSpeech === null || textToSpeech === void 0 ? void 0 : textToSpeech.maxCharsInText) !== null && _37 !== void 0 ? _37 : 3000;
3582
3586
  this.editPropertiesBasedOnApi();
3583
3587
  }
3584
3588
  /**
@@ -3638,7 +3642,13 @@ class TldAlertService {
3638
3642
  getMessages() {
3639
3643
  return this.messageSubject.asObservable();
3640
3644
  }
3645
+ basic(text, params) {
3646
+ this.emit(NotificationMessageType.BASIC, text, null, params);
3647
+ }
3641
3648
  info(text, params) {
3649
+ this.emit(NotificationMessageType.INFO, text, null, params);
3650
+ }
3651
+ success(text, params) {
3642
3652
  this.emit(NotificationMessageType.SUCCESS, text, null, params);
3643
3653
  }
3644
3654
  error(text, error, params) {
@@ -3707,9 +3717,12 @@ class TldAlertService {
3707
3717
  return this.errorKey + (errorKey !== null && errorKey !== void 0 ? errorKey : this.defaultErrorKey);
3708
3718
  }
3709
3719
  emit(type, text, error, params) {
3720
+ var _a;
3721
+ // if there is no title for this text, text will be shown as title
3722
+ const title = (_a = this.findPostfix(text, this.titlePostFix)) !== null && _a !== void 0 ? _a : text;
3710
3723
  const message = {
3711
- body: text,
3712
- title: this.findPostfix(text, this.titlePostFix),
3724
+ body: text === title ? null : text,
3725
+ title,
3713
3726
  type,
3714
3727
  localizationParams: Object.assign(Object.assign({}, this.defaultParams), params),
3715
3728
  support: this.config.coreConfig.contactSupport ? this.findPostfix(text, this.supportPostFix) : null
@@ -3789,6 +3802,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
3789
3802
  }]
3790
3803
  }], ctorParameters: function () { return [{ type: i1$1.TranslateService }]; } });
3791
3804
 
3805
+ class CapitalizePipe {
3806
+ transform(value) {
3807
+ return `${value.charAt(0).toUpperCase()}${value.slice(1)}`;
3808
+ }
3809
+ }
3810
+ CapitalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
3811
+ CapitalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CapitalizePipe, name: "capitalize" });
3812
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CapitalizePipe, decorators: [{
3813
+ type: Pipe,
3814
+ args: [{
3815
+ name: 'capitalize',
3816
+ }]
3817
+ }] });
3818
+
3792
3819
  class TldTranslateAchievementComponent {
3793
3820
  constructor() {
3794
3821
  this.link = "https://tilde.com/news/tilde-machine-translation-technology-announced-worlds-most-accurate-wmt-competition";
@@ -4200,10 +4227,10 @@ class TldListMenuComponent {
4200
4227
  }
4201
4228
  }
4202
4229
  TldListMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldListMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4203
- TldListMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TldListMenuComponent, selector: "tld-list-menu", inputs: { titleKey: "titleKey", list: "list", showContent: "showContent", selectedValue: "selectedValue", disabled: "disabled", ariaLabel: "ariaLabel", valueKey: "valueKey", testId: "testId" }, outputs: { selectionChange: "selectionChange" }, viewQueries: [{ propertyName: "menu", first: true, predicate: MatMenu, descendants: true }], ngImport: i0, template: "<tld-open-close-button [isOpened]=\"state.menuOpen\" #state=\"matMenuTrigger\" [disabled]=\"disabled\"\r\n\r\n[matMenuTriggerFor]=\"listMenu\" (menuOpened)=\"onMenuOpen()\" [ariaLabelCode]=\"ariaLabel\">\r\n <ng-content *ngIf=\"showContent\"></ng-content>\r\n <ng-container *ngIf=\"!showContent && selected\">\r\n <span>{{(titleKey? selected[titleKey]:selected) | titlecase}}</span>\r\n </ng-container>\r\n</tld-open-close-button>\r\n<mat-menu #listMenu=\"matMenu\" fxLayout=\"column\">\r\n <ng-container *ngFor=\"let element of list\">\r\n <button fxLayoutAlign=\"start center\" mat-menu-item [attr.aria-label]=\"(titleKey? element[titleKey]:element)\"\r\n *ngIf=\"element\" class=\"tld-list-title\" (click)=\"select(element)\" [disabled]=\"disabled\">\r\n {{(titleKey? element[titleKey]:element) | titlecase}}\r\n </button>\r\n </ng-container>\r\n</mat-menu>", styles: [".tld-list-title{font-weight:500}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i3$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "directive", type: i4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "component", type: TldOpenCloseButtonComponent, selector: "tld-open-close-button", inputs: ["disableFocusOnAction", "isOpened", "disabled", "isIcon", "ariaLabelCode"] }, { kind: "pipe", type: i3.TitleCasePipe, name: "titlecase" }] });
4230
+ TldListMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TldListMenuComponent, selector: "tld-list-menu", inputs: { titleKey: "titleKey", list: "list", showContent: "showContent", selectedValue: "selectedValue", disabled: "disabled", ariaLabel: "ariaLabel", valueKey: "valueKey", testId: "testId" }, outputs: { selectionChange: "selectionChange" }, viewQueries: [{ propertyName: "menu", first: true, predicate: MatMenu, descendants: true }], ngImport: i0, template: "<tld-open-close-button [isOpened]=\"state.menuOpen\" #state=\"matMenuTrigger\" [disabled]=\"disabled\"\r\n\r\n[matMenuTriggerFor]=\"listMenu\" (menuOpened)=\"onMenuOpen()\" [ariaLabelCode]=\"ariaLabel\">\r\n <ng-content *ngIf=\"showContent\"></ng-content>\r\n <ng-container *ngIf=\"!showContent && selected\">\r\n <span>{{(titleKey? selected[titleKey]:selected) | capitalize}}</span>\r\n </ng-container>\r\n</tld-open-close-button>\r\n<mat-menu #listMenu=\"matMenu\" fxLayout=\"column\">\r\n <ng-container *ngFor=\"let element of list\">\r\n <button fxLayoutAlign=\"start center\" mat-menu-item [attr.aria-label]=\"(titleKey? element[titleKey]:element)\"\r\n *ngIf=\"element\" class=\"tld-list-title\" (click)=\"select(element)\" [disabled]=\"disabled\">\r\n {{(titleKey? element[titleKey]:element) | capitalize}}\r\n </button>\r\n </ng-container>\r\n</mat-menu>", styles: [".tld-list-title{font-weight:500}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i3$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "directive", type: i4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "component", type: TldOpenCloseButtonComponent, selector: "tld-open-close-button", inputs: ["disableFocusOnAction", "isOpened", "disabled", "isIcon", "ariaLabelCode"] }, { kind: "pipe", type: CapitalizePipe, name: "capitalize" }] });
4204
4231
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldListMenuComponent, decorators: [{
4205
4232
  type: Component,
4206
- args: [{ selector: 'tld-list-menu', template: "<tld-open-close-button [isOpened]=\"state.menuOpen\" #state=\"matMenuTrigger\" [disabled]=\"disabled\"\r\n\r\n[matMenuTriggerFor]=\"listMenu\" (menuOpened)=\"onMenuOpen()\" [ariaLabelCode]=\"ariaLabel\">\r\n <ng-content *ngIf=\"showContent\"></ng-content>\r\n <ng-container *ngIf=\"!showContent && selected\">\r\n <span>{{(titleKey? selected[titleKey]:selected) | titlecase}}</span>\r\n </ng-container>\r\n</tld-open-close-button>\r\n<mat-menu #listMenu=\"matMenu\" fxLayout=\"column\">\r\n <ng-container *ngFor=\"let element of list\">\r\n <button fxLayoutAlign=\"start center\" mat-menu-item [attr.aria-label]=\"(titleKey? element[titleKey]:element)\"\r\n *ngIf=\"element\" class=\"tld-list-title\" (click)=\"select(element)\" [disabled]=\"disabled\">\r\n {{(titleKey? element[titleKey]:element) | titlecase}}\r\n </button>\r\n </ng-container>\r\n</mat-menu>", styles: [".tld-list-title{font-weight:500}\n"] }]
4233
+ args: [{ selector: 'tld-list-menu', template: "<tld-open-close-button [isOpened]=\"state.menuOpen\" #state=\"matMenuTrigger\" [disabled]=\"disabled\"\r\n\r\n[matMenuTriggerFor]=\"listMenu\" (menuOpened)=\"onMenuOpen()\" [ariaLabelCode]=\"ariaLabel\">\r\n <ng-content *ngIf=\"showContent\"></ng-content>\r\n <ng-container *ngIf=\"!showContent && selected\">\r\n <span>{{(titleKey? selected[titleKey]:selected) | capitalize}}</span>\r\n </ng-container>\r\n</tld-open-close-button>\r\n<mat-menu #listMenu=\"matMenu\" fxLayout=\"column\">\r\n <ng-container *ngFor=\"let element of list\">\r\n <button fxLayoutAlign=\"start center\" mat-menu-item [attr.aria-label]=\"(titleKey? element[titleKey]:element)\"\r\n *ngIf=\"element\" class=\"tld-list-title\" (click)=\"select(element)\" [disabled]=\"disabled\">\r\n {{(titleKey? element[titleKey]:element) | capitalize}}\r\n </button>\r\n </ng-container>\r\n</mat-menu>", styles: [".tld-list-title{font-weight:500}\n"] }]
4207
4234
  }], propDecorators: { menu: [{
4208
4235
  type: ViewChild,
4209
4236
  args: [MatMenu]
@@ -4436,7 +4463,8 @@ TldCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
4436
4463
  TldOpenCloseButtonComponent,
4437
4464
  TranslateDomainPipe,
4438
4465
  TldListMenuComponent,
4439
- SourceAndTargetWrapperComponent], imports: [FormsModule,
4466
+ SourceAndTargetWrapperComponent,
4467
+ CapitalizePipe], imports: [FormsModule,
4440
4468
  CommonModule,
4441
4469
  MaterialModule,
4442
4470
  TranslateModule,
@@ -4450,7 +4478,8 @@ TldCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
4450
4478
  TldOpenCloseButtonComponent,
4451
4479
  TranslateDomainPipe,
4452
4480
  TldListMenuComponent,
4453
- SourceAndTargetWrapperComponent] });
4481
+ SourceAndTargetWrapperComponent,
4482
+ CapitalizePipe] });
4454
4483
  TldCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldCommonModule, imports: [FormsModule,
4455
4484
  CommonModule,
4456
4485
  MaterialModule,
@@ -4470,7 +4499,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4470
4499
  TldOpenCloseButtonComponent,
4471
4500
  TranslateDomainPipe,
4472
4501
  TldListMenuComponent,
4473
- SourceAndTargetWrapperComponent
4502
+ SourceAndTargetWrapperComponent,
4503
+ CapitalizePipe
4474
4504
  ],
4475
4505
  imports: [
4476
4506
  FormsModule,
@@ -4491,6 +4521,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4491
4521
  TranslateDomainPipe,
4492
4522
  TldListMenuComponent,
4493
4523
  SourceAndTargetWrapperComponent,
4524
+ CapitalizePipe
4494
4525
  ]
4495
4526
  }]
4496
4527
  }] });
@@ -4874,6 +4905,76 @@ var FileConversionTypes;
4874
4905
  FileConversionTypes["IMAGE"] = "IMAGE";
4875
4906
  })(FileConversionTypes || (FileConversionTypes = {}));
4876
4907
 
4908
+ var FileTypeIcons;
4909
+ (function (FileTypeIcons) {
4910
+ FileTypeIcons["WORD"] = "file_type_word";
4911
+ FileTypeIcons["WEB"] = "file_type_web";
4912
+ FileTypeIcons["OTHER"] = "file_type_other";
4913
+ FileTypeIcons["POWERPOINT"] = "file_type_powerpoint";
4914
+ FileTypeIcons["EXCEL"] = "file_type_excel";
4915
+ FileTypeIcons["OFFICE_OTHER"] = "file_type_office_other";
4916
+ FileTypeIcons["PDF"] = "file_type_pdf";
4917
+ FileTypeIcons["SCANNED"] = "file_type_scanned";
4918
+ FileTypeIcons["INTERCHANGE"] = "file_type_interchange";
4919
+ })(FileTypeIcons || (FileTypeIcons = {}));
4920
+
4921
+ var FileCategories;
4922
+ (function (FileCategories) {
4923
+ FileCategories["OFFICE"] = "OFFICE";
4924
+ FileCategories["SCANNED"] = "SCANNED";
4925
+ FileCategories["INTERCHANGE"] = "INTERCHANGE";
4926
+ FileCategories["WEB"] = "WEB";
4927
+ FileCategories["OTHER"] = "OTHER";
4928
+ })(FileCategories || (FileCategories = {}));
4929
+
4930
+ var FileTypes;
4931
+ (function (FileTypes) {
4932
+ FileTypes["WORD"] = "WORD";
4933
+ FileTypes["WEB"] = "WEB";
4934
+ FileTypes["OTHER"] = "OTHER";
4935
+ FileTypes["POWERPOINT"] = "POWERPOINT";
4936
+ FileTypes["EXCEL"] = "EXCEL";
4937
+ FileTypes["OFFICE_OTHER"] = "OFFICE_OTHER";
4938
+ FileTypes["PDF"] = "PDF";
4939
+ FileTypes["SCANNED"] = "SCANNED";
4940
+ FileTypes["INTERCHANGE"] = "INTERCHANGE";
4941
+ })(FileTypes || (FileTypes = {}));
4942
+
4943
+ var FileExtensions;
4944
+ (function (FileExtensions) {
4945
+ FileExtensions["DOC"] = "doc";
4946
+ FileExtensions["DOCX"] = "docx";
4947
+ FileExtensions["XLSX"] = "xlsx";
4948
+ FileExtensions["PPTX"] = "pptx";
4949
+ FileExtensions["ODT"] = "odt";
4950
+ FileExtensions["ODP"] = "odp";
4951
+ FileExtensions["ODS"] = "ods";
4952
+ FileExtensions["TXT"] = "txt";
4953
+ FileExtensions["RTF"] = "rtf";
4954
+ FileExtensions["PAGES"] = "pages";
4955
+ FileExtensions["SXW"] = "sxw";
4956
+ FileExtensions["JPG"] = "jpg";
4957
+ FileExtensions["JPEG"] = "jpeg";
4958
+ FileExtensions["PNG"] = "png";
4959
+ FileExtensions["BMP"] = "bmp";
4960
+ FileExtensions["PDF"] = "pdf";
4961
+ FileExtensions["SDLXLIFF"] = "sdlxliff";
4962
+ FileExtensions["SDLXLF"] = "sdlxlf";
4963
+ FileExtensions["TTX"] = "ttx";
4964
+ FileExtensions["TMX"] = "tmx";
4965
+ FileExtensions["XLF"] = "xlf";
4966
+ FileExtensions["XLIF"] = "xlif";
4967
+ FileExtensions["HTML"] = "html";
4968
+ FileExtensions["HTM"] = "htm";
4969
+ FileExtensions["JSON"] = "json";
4970
+ FileExtensions["XHTML"] = "xhtml";
4971
+ FileExtensions["XHT"] = "xht";
4972
+ FileExtensions["XLIFF"] = "xliff";
4973
+ FileExtensions["TEX"] = "tex";
4974
+ FileExtensions["TTL"] = "ttl";
4975
+ FileExtensions["SRT"] = "srt";
4976
+ })(FileExtensions || (FileExtensions = {}));
4977
+
4877
4978
  class TldTranslateFileService {
4878
4979
  constructor(fileApi, alerts, sanitizer, config, tldSystem) {
4879
4980
  this.fileApi = fileApi;
@@ -5162,8 +5263,11 @@ class TldTranslateFileService {
5162
5263
  translationFile.filePreviewProgress = data.percentDone;
5163
5264
  }
5164
5265
  translatedDocPreview(translationFile) {
5266
+ var _a, _b;
5267
+ // show preview for original extension if exists, if not, then preview for docx, if not then try with original filename.
5268
+ const fileName = (_b = (_a = translationFile.availableExtensions.find(ext => ext.extension === FileExtensions.DOCX)) === null || _a === void 0 ? void 0 : _a.fileName) !== null && _b !== void 0 ? _b : translationFile.originalFileName;
5165
5269
  const params = {
5166
- fileName: translationFile.originalFileName,
5270
+ fileName: fileName,
5167
5271
  translationDocId: translationFile.id
5168
5272
  };
5169
5273
  this.fileApi.translatedDocumentPreview(params)
@@ -6494,76 +6598,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
6494
6598
  }]
6495
6599
  }] });
6496
6600
 
6497
- var FileTypeIcons;
6498
- (function (FileTypeIcons) {
6499
- FileTypeIcons["WORD"] = "file_type_word";
6500
- FileTypeIcons["WEB"] = "file_type_web";
6501
- FileTypeIcons["OTHER"] = "file_type_other";
6502
- FileTypeIcons["POWERPOINT"] = "file_type_powerpoint";
6503
- FileTypeIcons["EXCEL"] = "file_type_excel";
6504
- FileTypeIcons["OFFICE_OTHER"] = "file_type_office_other";
6505
- FileTypeIcons["PDF"] = "file_type_pdf";
6506
- FileTypeIcons["SCANNED"] = "file_type_scanned";
6507
- FileTypeIcons["INTERCHANGE"] = "file_type_interchange";
6508
- })(FileTypeIcons || (FileTypeIcons = {}));
6509
-
6510
- var FileCategories;
6511
- (function (FileCategories) {
6512
- FileCategories["OFFICE"] = "OFFICE";
6513
- FileCategories["SCANNED"] = "SCANNED";
6514
- FileCategories["INTERCHANGE"] = "INTERCHANGE";
6515
- FileCategories["WEB"] = "WEB";
6516
- FileCategories["OTHER"] = "OTHER";
6517
- })(FileCategories || (FileCategories = {}));
6518
-
6519
- var FileTypes;
6520
- (function (FileTypes) {
6521
- FileTypes["WORD"] = "WORD";
6522
- FileTypes["WEB"] = "WEB";
6523
- FileTypes["OTHER"] = "OTHER";
6524
- FileTypes["POWERPOINT"] = "POWERPOINT";
6525
- FileTypes["EXCEL"] = "EXCEL";
6526
- FileTypes["OFFICE_OTHER"] = "OFFICE_OTHER";
6527
- FileTypes["PDF"] = "PDF";
6528
- FileTypes["SCANNED"] = "SCANNED";
6529
- FileTypes["INTERCHANGE"] = "INTERCHANGE";
6530
- })(FileTypes || (FileTypes = {}));
6531
-
6532
- var FileExtensions;
6533
- (function (FileExtensions) {
6534
- FileExtensions["DOC"] = "doc";
6535
- FileExtensions["DOCX"] = "docx";
6536
- FileExtensions["XLSX"] = "xlsx";
6537
- FileExtensions["PPTX"] = "pptx";
6538
- FileExtensions["ODT"] = "odt";
6539
- FileExtensions["ODP"] = "odp";
6540
- FileExtensions["ODS"] = "ods";
6541
- FileExtensions["TXT"] = "txt";
6542
- FileExtensions["RTF"] = "rtf";
6543
- FileExtensions["PAGES"] = "pages";
6544
- FileExtensions["SXW"] = "sxw";
6545
- FileExtensions["JPG"] = "jpg";
6546
- FileExtensions["JPEG"] = "jpeg";
6547
- FileExtensions["PNG"] = "png";
6548
- FileExtensions["BMP"] = "bmp";
6549
- FileExtensions["PDF"] = "pdf";
6550
- FileExtensions["SDLXLIFF"] = "sdlxliff";
6551
- FileExtensions["SDLXLF"] = "sdlxlf";
6552
- FileExtensions["TTX"] = "ttx";
6553
- FileExtensions["TMX"] = "tmx";
6554
- FileExtensions["XLF"] = "xlf";
6555
- FileExtensions["XLIF"] = "xlif";
6556
- FileExtensions["HTML"] = "html";
6557
- FileExtensions["HTM"] = "htm";
6558
- FileExtensions["JSON"] = "json";
6559
- FileExtensions["XHTML"] = "xhtml";
6560
- FileExtensions["XHT"] = "xht";
6561
- FileExtensions["XLIFF"] = "xliff";
6562
- FileExtensions["TEX"] = "tex";
6563
- FileExtensions["TTL"] = "ttl";
6564
- FileExtensions["SRT"] = "srt";
6565
- })(FileExtensions || (FileExtensions = {}));
6566
-
6567
6601
  class ExtensionDialogComponent {
6568
6602
  constructor(data) {
6569
6603
  this.data = data;
@@ -7510,6 +7544,7 @@ class TldTranslateTextService {
7510
7544
  /** How many paragraphs can be translated at the same time. */
7511
7545
  this.CONCURRENT_UPLOADS = 5;
7512
7546
  this.DEBOUNCE_TIME = 1000;
7547
+ this.standbyEngineNotificationErrorKey = '21';
7513
7548
  /** Whether progress indicator should be shown. This value must be set to true only if configured time has passed. */
7514
7549
  this._shouldShowProgressIndicator = false;
7515
7550
  this._untranslatedParagraphCount = 0;
@@ -7689,6 +7724,9 @@ class TldTranslateTextService {
7689
7724
  if (err.status === 500) {
7690
7725
  this.alertsService.unhandeledError({ ErrorCode: ErrorCode.TRANSLATION_FAILED });
7691
7726
  }
7727
+ else if (err.error.ErrorCode === this.standbyEngineNotificationErrorKey) {
7728
+ this.alertsService.info('ERRORS.E_21');
7729
+ }
7692
7730
  else {
7693
7731
  this.alertsService.unhandeledError(err);
7694
7732
  }
@@ -7977,10 +8015,10 @@ class TextareaWithBackgroundComponent {
7977
8015
  }
7978
8016
  }
7979
8017
  TextareaWithBackgroundComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TextareaWithBackgroundComponent, deps: [{ token: TldAlertService }, { token: TldTranslateTextService }], target: i0.ɵɵFactoryTarget.Component });
7980
- TextareaWithBackgroundComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TextareaWithBackgroundComponent, selector: "tld-textarea-with-background", inputs: { maxCharLength: "maxCharLength", autoFocuss: "autoFocuss", highlightTree: "highlightTree", highlight: "highlight", gramCheck: "gramCheck", textareaDisabled: "textareaDisabled" }, viewQueries: [{ propertyName: "sourceInput", first: true, predicate: ["sourceInput"], descendants: true }, { propertyName: "treeWrapper", first: true, predicate: ["treeWrapper"], descendants: true }], ngImport: i0, template: "<div class=\"textarea-with-background\">\r\n <textarea [disabled]=\"textareaDisabled\" cdkScrollable (paste)=\"onPaste($event)\" matInput [(ngModel)]=\"sourceText\" #sourceInput fxFlex\r\n spellcheck=\"false\" (mousemove)=\"onTextAreaMouseMove($event)\" [attr.maxLength]=\"maxCharLength? maxCharLength: null\"\r\n [attr.aria-label]=\"'TLD_TRANSLATE.SOURCE_TOOLTIP' | translate\" (click)=\"textareaClick($event)\"></textarea>\r\n <div class=\"{{wrapperClass}}\" *ngIf=\"gramCheck || highlight\" cdkScrollable #treeWrapper>\r\n <div class=\"textarea-highlight-backround-inner\" cdkScrollable>\r\n <div *ngFor=\"let paragraph of highlightTree\">\r\n <tld-highlight-tree [isSource]=\"true\" [tree]=\"paragraph\" [highlight]=\"highlight\" [gramCheck]=\"gramCheck\"\r\n (onReplace)=\"replace($event)\"></tld-highlight-tree>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [".textarea-with-background{position:relative}.textarea-with-background .textarea-highlight-background{position:absolute;color:transparent}.textarea-with-background textarea{resize:none!important;z-index:1;caret-color:#000!important}.textarea-with-background textarea,.textarea-with-background .textarea-highlight-backround-inner{padding:1em!important}.textarea-with-background .textarea-highlight-backround-inner{max-width:calc(100% - 2em);width:calc(100% - 2em);min-width:calc(100% - 2em);min-height:calc(100% - 2em);max-height:calc(100% - 2em);height:calc(100% - 2em);overflow-y:auto}.textarea-with-background,.textarea-highlight-background{width:100%;max-width:100%;min-width:100%;min-height:100%;max-height:100%;height:100%}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i2$2.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "directive", type: i4.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i3$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: HighlightTreeComponent, selector: "tld-highlight-tree", inputs: ["tree", "isSource", "correctionsEnabled", "highlight", "gramCheck", "selectSentence"], outputs: ["onReplace"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] });
8018
+ TextareaWithBackgroundComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TextareaWithBackgroundComponent, selector: "tld-textarea-with-background", inputs: { maxCharLength: "maxCharLength", autoFocuss: "autoFocuss", highlightTree: "highlightTree", highlight: "highlight", gramCheck: "gramCheck", textareaDisabled: "textareaDisabled" }, viewQueries: [{ propertyName: "sourceInput", first: true, predicate: ["sourceInput"], descendants: true }, { propertyName: "treeWrapper", first: true, predicate: ["treeWrapper"], descendants: true }], ngImport: i0, template: "<div class=\"textarea-with-background\">\r\n <textarea [disabled]=\"textareaDisabled\" cdkScrollable (paste)=\"onPaste($event)\" matInput [(ngModel)]=\"sourceText\" #sourceInput fxFlex\r\n spellcheck=\"false\" (mousemove)=\"onTextAreaMouseMove($event)\" [attr.maxLength]=\"maxCharLength? maxCharLength: null\"\r\n [attr.aria-label]=\"'TLD_TRANSLATE.SOURCE_TOOLTIP' | translate\" (click)=\"textareaClick($event)\"></textarea>\r\n <div class=\"{{wrapperClass}}\" *ngIf=\"gramCheck || highlight\" cdkScrollable #treeWrapper>\r\n <div class=\"textarea-highlight-backround-inner\" cdkScrollable>\r\n <div *ngFor=\"let paragraph of highlightTree\">\r\n <tld-highlight-tree [isSource]=\"true\" [tree]=\"paragraph\" [highlight]=\"highlight\" [gramCheck]=\"gramCheck\"\r\n (onReplace)=\"replace($event)\"></tld-highlight-tree>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [".textarea-with-background{position:relative}.textarea-with-background .textarea-highlight-background{position:absolute;color:transparent}.textarea-with-background textarea{resize:none!important;z-index:1;caret-color:#000!important}.textarea-with-background textarea,.textarea-with-background .textarea-highlight-backround-inner{padding:1em 3em 1em 1em!important}.textarea-with-background .textarea-highlight-backround-inner{max-width:calc(100% - 2em);width:calc(100% - 2em);min-width:calc(100% - 2em);min-height:calc(100% - 2em);max-height:calc(100% - 2em);height:calc(100% - 2em);overflow-y:auto}.textarea-with-background,.textarea-highlight-background{width:100%;max-width:100%;min-width:100%;min-height:100%;max-height:100%;height:100%}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i2$2.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "directive", type: i4.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i3$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: HighlightTreeComponent, selector: "tld-highlight-tree", inputs: ["tree", "isSource", "correctionsEnabled", "highlight", "gramCheck", "selectSentence"], outputs: ["onReplace"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] });
7981
8019
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TextareaWithBackgroundComponent, decorators: [{
7982
8020
  type: Component,
7983
- args: [{ selector: 'tld-textarea-with-background', template: "<div class=\"textarea-with-background\">\r\n <textarea [disabled]=\"textareaDisabled\" cdkScrollable (paste)=\"onPaste($event)\" matInput [(ngModel)]=\"sourceText\" #sourceInput fxFlex\r\n spellcheck=\"false\" (mousemove)=\"onTextAreaMouseMove($event)\" [attr.maxLength]=\"maxCharLength? maxCharLength: null\"\r\n [attr.aria-label]=\"'TLD_TRANSLATE.SOURCE_TOOLTIP' | translate\" (click)=\"textareaClick($event)\"></textarea>\r\n <div class=\"{{wrapperClass}}\" *ngIf=\"gramCheck || highlight\" cdkScrollable #treeWrapper>\r\n <div class=\"textarea-highlight-backround-inner\" cdkScrollable>\r\n <div *ngFor=\"let paragraph of highlightTree\">\r\n <tld-highlight-tree [isSource]=\"true\" [tree]=\"paragraph\" [highlight]=\"highlight\" [gramCheck]=\"gramCheck\"\r\n (onReplace)=\"replace($event)\"></tld-highlight-tree>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [".textarea-with-background{position:relative}.textarea-with-background .textarea-highlight-background{position:absolute;color:transparent}.textarea-with-background textarea{resize:none!important;z-index:1;caret-color:#000!important}.textarea-with-background textarea,.textarea-with-background .textarea-highlight-backround-inner{padding:1em!important}.textarea-with-background .textarea-highlight-backround-inner{max-width:calc(100% - 2em);width:calc(100% - 2em);min-width:calc(100% - 2em);min-height:calc(100% - 2em);max-height:calc(100% - 2em);height:calc(100% - 2em);overflow-y:auto}.textarea-with-background,.textarea-highlight-background{width:100%;max-width:100%;min-width:100%;min-height:100%;max-height:100%;height:100%}\n"] }]
8021
+ args: [{ selector: 'tld-textarea-with-background', template: "<div class=\"textarea-with-background\">\r\n <textarea [disabled]=\"textareaDisabled\" cdkScrollable (paste)=\"onPaste($event)\" matInput [(ngModel)]=\"sourceText\" #sourceInput fxFlex\r\n spellcheck=\"false\" (mousemove)=\"onTextAreaMouseMove($event)\" [attr.maxLength]=\"maxCharLength? maxCharLength: null\"\r\n [attr.aria-label]=\"'TLD_TRANSLATE.SOURCE_TOOLTIP' | translate\" (click)=\"textareaClick($event)\"></textarea>\r\n <div class=\"{{wrapperClass}}\" *ngIf=\"gramCheck || highlight\" cdkScrollable #treeWrapper>\r\n <div class=\"textarea-highlight-backround-inner\" cdkScrollable>\r\n <div *ngFor=\"let paragraph of highlightTree\">\r\n <tld-highlight-tree [isSource]=\"true\" [tree]=\"paragraph\" [highlight]=\"highlight\" [gramCheck]=\"gramCheck\"\r\n (onReplace)=\"replace($event)\"></tld-highlight-tree>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [".textarea-with-background{position:relative}.textarea-with-background .textarea-highlight-background{position:absolute;color:transparent}.textarea-with-background textarea{resize:none!important;z-index:1;caret-color:#000!important}.textarea-with-background textarea,.textarea-with-background .textarea-highlight-backround-inner{padding:1em 3em 1em 1em!important}.textarea-with-background .textarea-highlight-backround-inner{max-width:calc(100% - 2em);width:calc(100% - 2em);min-width:calc(100% - 2em);min-height:calc(100% - 2em);max-height:calc(100% - 2em);height:calc(100% - 2em);overflow-y:auto}.textarea-with-background,.textarea-highlight-background{width:100%;max-width:100%;min-width:100%;min-height:100%;max-height:100%;height:100%}\n"] }]
7984
8022
  }], ctorParameters: function () { return [{ type: TldAlertService }, { type: TldTranslateTextService }]; }, propDecorators: { sourceInput: [{
7985
8023
  type: ViewChild,
7986
8024
  args: ["sourceInput"]
@@ -8379,7 +8417,7 @@ class TldTranslateTextComponent {
8379
8417
  }
8380
8418
  copy() {
8381
8419
  this.clipboard.copy(this.translatedText);
8382
- this.alerts.info("TLD_TRANSLATE.TEXT_COPIED", { id: this.copyMessageId, closeButtonId: this.copyMessageCloseButtonId, parentId: this.copyButtonId });
8420
+ this.alerts.success("TLD_TRANSLATE.TEXT_COPIED", { id: this.copyMessageId, closeButtonId: this.copyMessageCloseButtonId, parentId: this.copyButtonId });
8383
8421
  }
8384
8422
  switchFocusFromCopy(event) {
8385
8423
  var _a, _b;
@@ -8564,6 +8602,7 @@ class TldDomainListComponent {
8564
8602
  this.selectionChange = new EventEmitter();
8565
8603
  this.titleKey = "title";
8566
8604
  this.valueKey = "domain";
8605
+ this.showTitle = this.config.coreConfig.showDomainTitle;
8567
8606
  }
8568
8607
  get list() { return this._list; }
8569
8608
  set list(value) {
@@ -8577,7 +8616,6 @@ class TldDomainListComponent {
8577
8616
  this.selectedDomainName = this.translateDomainName(value === null || value === void 0 ? void 0 : value.title);
8578
8617
  }
8579
8618
  ;
8580
- get showTitle() { return this.config.coreConfig.showDomainTitle; }
8581
8619
  ngOnInit() {
8582
8620
  this.translate.stream("DOMAINS").subscribe((translations) => {
8583
8621
  this.translations = translations;
@@ -8602,10 +8640,10 @@ class TldDomainListComponent {
8602
8640
  }
8603
8641
  }
8604
8642
  TldDomainListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldDomainListComponent, deps: [{ token: i1$1.TranslateService }, { token: TldTranslateConfigService }, { token: TranslateDomainPipe }], target: i0.ɵɵFactoryTarget.Component });
8605
- TldDomainListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TldDomainListComponent, selector: "tld-domain-list", inputs: { list: "list", selected: "selected", disabled: "disabled" }, outputs: { selectionChange: "selectionChange" }, providers: [TranslateDomainPipe], ngImport: i0, template: "<span fxHide.lt-md class=\"domain-title\" *ngIf=\"showTitle\">{{'DOMAINS.TITLE' | translate}}</span>\r\n<tld-list-menu (selectionChange)=\"select($event)\" [list]=\"translatedList | sortTranslations: null: 'title': currentLanguage | async\" [titleKey]=\"titleKey\" \r\n[valueKey]=\"valueKey\" testId=\"tld-domain-list\" [disabled]=\"disabled\" [ariaLabel]=\"'DOMAINS.OPEN_LIST_ARIA_LABEL' | translate\">\r\n {{selectedDomainName | titlecase}}\r\n</tld-list-menu>", styles: [""], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5$1.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "component", type: TldListMenuComponent, selector: "tld-list-menu", inputs: ["titleKey", "list", "showContent", "selectedValue", "disabled", "ariaLabel", "valueKey", "testId"], outputs: ["selectionChange"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }, { kind: "pipe", type: i12.SortTranslationsPipe, name: "sortTranslations" }] });
8643
+ TldDomainListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TldDomainListComponent, selector: "tld-domain-list", inputs: { list: "list", selected: "selected", disabled: "disabled" }, outputs: { selectionChange: "selectionChange" }, providers: [TranslateDomainPipe], ngImport: i0, template: "<span fxHide.lt-md class=\"domain-title\" *ngIf=\"showTitle\">{{'DOMAINS.TITLE' | translate}}</span>\r\n<tld-list-menu (selectionChange)=\"select($event)\" [list]=\"translatedList | sortTranslations: null: 'title': currentLanguage | async\" [titleKey]=\"titleKey\" \r\n[valueKey]=\"valueKey\" testId=\"tld-domain-list\" [disabled]=\"disabled\" [ariaLabel]=\"'DOMAINS.OPEN_LIST_ARIA_LABEL' | translate\">\r\n <span [ngClass.lt-sm]=\"'selected-domain'\">{{ selectedDomainName | capitalize }}</span> \r\n</tld-list-menu>", styles: [".selected-domain{max-width:60px;overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5$1.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "directive", type: i5$1.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: TldListMenuComponent, selector: "tld-list-menu", inputs: ["titleKey", "list", "showContent", "selectedValue", "disabled", "ariaLabel", "valueKey", "testId"], outputs: ["selectionChange"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }, { kind: "pipe", type: CapitalizePipe, name: "capitalize" }, { kind: "pipe", type: i12.SortTranslationsPipe, name: "sortTranslations" }] });
8606
8644
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldDomainListComponent, decorators: [{
8607
8645
  type: Component,
8608
- args: [{ selector: 'tld-domain-list', providers: [TranslateDomainPipe], template: "<span fxHide.lt-md class=\"domain-title\" *ngIf=\"showTitle\">{{'DOMAINS.TITLE' | translate}}</span>\r\n<tld-list-menu (selectionChange)=\"select($event)\" [list]=\"translatedList | sortTranslations: null: 'title': currentLanguage | async\" [titleKey]=\"titleKey\" \r\n[valueKey]=\"valueKey\" testId=\"tld-domain-list\" [disabled]=\"disabled\" [ariaLabel]=\"'DOMAINS.OPEN_LIST_ARIA_LABEL' | translate\">\r\n {{selectedDomainName | titlecase}}\r\n</tld-list-menu>" }]
8646
+ args: [{ selector: 'tld-domain-list', providers: [TranslateDomainPipe], template: "<span fxHide.lt-md class=\"domain-title\" *ngIf=\"showTitle\">{{'DOMAINS.TITLE' | translate}}</span>\r\n<tld-list-menu (selectionChange)=\"select($event)\" [list]=\"translatedList | sortTranslations: null: 'title': currentLanguage | async\" [titleKey]=\"titleKey\" \r\n[valueKey]=\"valueKey\" testId=\"tld-domain-list\" [disabled]=\"disabled\" [ariaLabel]=\"'DOMAINS.OPEN_LIST_ARIA_LABEL' | translate\">\r\n <span [ngClass.lt-sm]=\"'selected-domain'\">{{ selectedDomainName | capitalize }}</span> \r\n</tld-list-menu>", styles: [".selected-domain{max-width:60px;overflow:hidden;text-overflow:ellipsis}\n"] }]
8609
8647
  }], ctorParameters: function () { return [{ type: i1$1.TranslateService }, { type: TldTranslateConfigService }, { type: TranslateDomainPipe }]; }, propDecorators: { list: [{
8610
8648
  type: Input
8611
8649
  }], selected: [{
@@ -8668,11 +8706,12 @@ class TldTranslateSwitcherComponent {
8668
8706
  return ((_a = this.config) === null || _a === void 0 ? void 0 : _a.coreConfig.showVendors) && ((_b = this.settings.vendors) === null || _b === void 0 ? void 0 : _b.length) > 0;
8669
8707
  }
8670
8708
  get showDomains() {
8671
- var _a, _b, _c, _d, _e;
8672
- return ((_a = this.config) === null || _a === void 0 ? void 0 : _a.coreConfig.showDomains) &&
8709
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
8710
+ const singleDomainAvailable = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.textConfig.displaySingleAvailableDomain) && ((_d = (_c = (_b = this.settings) === null || _b === void 0 ? void 0 : _b.domains) === null || _c === void 0 ? void 0 : _c.domains) === null || _d === void 0 ? void 0 : _d.length) >= 1;
8711
+ return (((_e = this.config) === null || _e === void 0 ? void 0 : _e.coreConfig.showDomains) &&
8673
8712
  !this.showDomainsWithLanguageName &&
8674
- ((_d = (_c = (_b = this.settings) === null || _b === void 0 ? void 0 : _b.domains) === null || _c === void 0 ? void 0 : _c.domains) === null || _d === void 0 ? void 0 : _d.length) > 1 &&
8675
- ((_e = this.settings) === null || _e === void 0 ? void 0 : _e.source);
8713
+ ((((_h = (_g = (_f = this.settings) === null || _f === void 0 ? void 0 : _f.domains) === null || _g === void 0 ? void 0 : _g.domains) === null || _h === void 0 ? void 0 : _h.length) > 1 && ((_j = this.settings) === null || _j === void 0 ? void 0 : _j.source)) ||
8714
+ singleDomainAvailable));
8676
8715
  }
8677
8716
  get isSwapLanguagesDisabled() {
8678
8717
  return this.disabled || !this.settings.swapActive;
@@ -10079,6 +10118,7 @@ class TldTranslateComponent {
10079
10118
  this.wtwQueryService = wtwQueryService;
10080
10119
  this.systemPickerService = systemPickerService;
10081
10120
  this.onError = new EventEmitter();
10121
+ this.onSystemChange = new EventEmitter();
10082
10122
  this.messages = [];
10083
10123
  this.noSystemsError = { body: "TLD_TRANSLATE.ERROR_NO_SYSTEMS_LOADED", type: NotificationMessageType.ERROR, hideClose: true };
10084
10124
  this.languageMenuV1 = languageMenuVersion.V1;
@@ -10157,6 +10197,7 @@ class TldTranslateComponent {
10157
10197
  if (!val) {
10158
10198
  return;
10159
10199
  }
10200
+ this.onSystemChange.emit(val);
10160
10201
  this.switcherOptions = {
10161
10202
  domains: val.domains,
10162
10203
  source: { code: val.sourceLang.lang, systemId: val.systemId },
@@ -10248,7 +10289,7 @@ class TldTranslateComponent {
10248
10289
  }
10249
10290
  }
10250
10291
  TldTranslateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldTranslateComponent, deps: [{ token: i1$1.TranslateService }, { token: TldTranslateFileService }, { token: TldTranslateTextService }, { token: TldTranslateConfigService }, { token: TldAlertService }, { token: TldTranslateButtonService }, { token: TldSystemService }, { token: AudioRecordService }, { token: TldVoiceInputService }, { token: WtwLinkParamsService }, { token: TranslationSystemPickerService }, { token: IconService }], target: i0.ɵɵFactoryTarget.Component });
10251
- TldTranslateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TldTranslateComponent, selector: "tld-translate", outputs: { onError: "onError" }, viewQueries: [{ propertyName: "tldTranslateBody", first: true, predicate: TldTranslateBodyComponent, descendants: true }], ngImport: i0, template: "<div fxLayout=\"column\" class=\"h-100 tld-translate\" *ngIf=\"!showNoSystemsError\"\r\n [ngClass.lt-md]=\"'tld-translate-tablet tld-default-border-bottom'\"\r\n [ngClass.lt-sm]=\"'tld-translate-mobile tld-default-border-bottom'\"\r\n [class.tld-translate-multiple-files-active]=\"isMultipleFilesActive\">\r\n <div class=\"tld-translate-wrapper tld-default-border\" fxLayout=\"column\" fxFlex>\r\n <div class=\"tld-translate-switcher-wrapper tld-default-border-bottom\">\r\n <tld-translate-switcher *ngIf=\"switcherOptions && languageMenuVersion === languageMenuV1\"\r\n [disabled]=\"actionButtonDisabled\" [isCollectionsActivated]=\"isCollectionsActivated\" [settings]=\"switcherOptions\"\r\n [maxDisplayedLanguages]=\"maxDisplayedLanguages\" [showDomainsWithLanguageName]=\"showDomainsWithLanguageName\"\r\n [buttonDisabled]=\"actionButtonDisabled\" [hideLangMenuLabels]=\"hideLangMenuLabels\"\r\n (onDomainChange)=\"systemChange($event)\" (onActionClick)=\"translateButtonClick()\"\r\n (onLanguageSwap)=\"swapLanguages()\" (onSourceLanguageChange)=\"sourceLanguageChange($event)\"\r\n (onTargetLanguageChange)=\"targetLanguageChange($event)\" [loader]=\"actionButtonLoader\" [showTranslateButton]=\"showTranslateButton\">\r\n </tld-translate-switcher>\r\n <tld-translation-system-picker *ngIf=\"languageMenuVersion===languageMenuV2\"\r\n [isCollectionsActivated]=\"isCollectionsActivated\"></tld-translation-system-picker>\r\n </div>\r\n <lib-tld-notification-message [inline]=\"true\" *ngFor=\"let message of messages; let ix = index\" [message]=\"message\"\r\n (closeClicked)=\"removeMessage(ix)\">\r\n </lib-tld-notification-message>\r\n <div fxFlex style=\"position: relative;\">\r\n <tld-translate-body fxFlex fxLayoutAlign=\"column\" [attr.source-language]=\"sourceLanguage\"\r\n [attr.target-language]=\"targetLanguage\"></tld-translate-body>\r\n <tld-translation-system-picker-dropdown [ngClass.xs]=\"'mobile'\" *ngIf=\"systemPickerDropdownVisible\">\r\n </tld-translation-system-picker-dropdown>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<lib-tld-notification-message *ngIf=\"showNoSystemsError\" [message]=\"noSystemsError\">\r\n</lib-tld-notification-message>\r\n", styles: [".tld-translate-wrapper{overflow:hidden;background:#ffffff;box-shadow:0 3.2px 7.2px #00000021}.tld-translate-switcher-wrapper{padding:.5em 1em}.h-100{height:100%}tld-translation-system-picker-dropdown{z-index:2}tld-translation-system-picker-dropdown:not(.mobile){position:absolute;width:100%;height:100%}tld-translation-system-picker-dropdown.mobile{position:fixed;top:0;left:0;width:100vw;height:100vh}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i4.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i5$1.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: TldTranslateSwitcherComponent, selector: "tld-translate-switcher", inputs: ["buttonDisabled", "showTranslateButton", "hideOnSmallScreens", "disabled", "hideLangMenuLabels", "maxDisplayedLanguages", "collections", "showDomainsWithLanguageName", "isCollectionsActivated", "useParentWidth", "loader", "settings"], outputs: ["onDomainChange", "onActionClick", "onSourceLanguageChange", "onTargetLanguageChange", "onLanguageSwap", "onVendorChange"] }, { kind: "component", type: TranslationSystemPickerComponent, selector: "tld-translation-system-picker", inputs: ["isCollectionsActivated"] }, { kind: "component", type: TranslationSystemPickerDropdownComponent, selector: "tld-translation-system-picker-dropdown" }, { kind: "component", type: i12.NotificationMessageComponent, selector: "lib-tld-notification-message", inputs: ["message", "inline"], outputs: ["buttonClicked", "closeClicked", "linkClicked"] }, { kind: "component", type: TldTranslateBodyComponent, selector: "tld-translate-body" }], animations: [
10292
+ TldTranslateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TldTranslateComponent, selector: "tld-translate", outputs: { onError: "onError", onSystemChange: "onSystemChange" }, viewQueries: [{ propertyName: "tldTranslateBody", first: true, predicate: TldTranslateBodyComponent, descendants: true }], ngImport: i0, template: "<div fxLayout=\"column\" class=\"h-100 tld-translate\" *ngIf=\"!showNoSystemsError\"\r\n [ngClass.lt-md]=\"'tld-translate-tablet tld-default-border-bottom'\"\r\n [ngClass.lt-sm]=\"'tld-translate-mobile tld-default-border-bottom'\"\r\n [class.tld-translate-multiple-files-active]=\"isMultipleFilesActive\">\r\n <div class=\"tld-translate-wrapper tld-default-border\" fxLayout=\"column\" fxFlex>\r\n <div class=\"tld-translate-switcher-wrapper tld-default-border-bottom\">\r\n <tld-translate-switcher *ngIf=\"switcherOptions && languageMenuVersion === languageMenuV1\"\r\n [disabled]=\"actionButtonDisabled\" [isCollectionsActivated]=\"isCollectionsActivated\" [settings]=\"switcherOptions\"\r\n [maxDisplayedLanguages]=\"maxDisplayedLanguages\" [showDomainsWithLanguageName]=\"showDomainsWithLanguageName\"\r\n [buttonDisabled]=\"actionButtonDisabled\" [hideLangMenuLabels]=\"hideLangMenuLabels\"\r\n (onDomainChange)=\"systemChange($event)\" (onActionClick)=\"translateButtonClick()\"\r\n (onLanguageSwap)=\"swapLanguages()\" (onSourceLanguageChange)=\"sourceLanguageChange($event)\"\r\n (onTargetLanguageChange)=\"targetLanguageChange($event)\" [loader]=\"actionButtonLoader\" [showTranslateButton]=\"showTranslateButton\">\r\n </tld-translate-switcher>\r\n <tld-translation-system-picker *ngIf=\"languageMenuVersion===languageMenuV2\"\r\n [isCollectionsActivated]=\"isCollectionsActivated\"></tld-translation-system-picker>\r\n </div>\r\n <div *ngIf=\"messages.length\" class=\"message-wrapper\">\r\n <lib-tld-notification-message [inline]=\"true\" *ngFor=\"let message of messages; let ix = index\" [message]=\"message\"\r\n (closeClicked)=\"removeMessage(ix)\">\r\n </lib-tld-notification-message>\r\n </div>\r\n <div fxFlex style=\"position: relative;\">\r\n <tld-translate-body fxFlex fxLayoutAlign=\"column\" [attr.source-language]=\"sourceLanguage\"\r\n [attr.target-language]=\"targetLanguage\"></tld-translate-body>\r\n <tld-translation-system-picker-dropdown [ngClass.xs]=\"'mobile'\" *ngIf=\"systemPickerDropdownVisible\">\r\n </tld-translation-system-picker-dropdown>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<lib-tld-notification-message *ngIf=\"showNoSystemsError\" [message]=\"noSystemsError\">\r\n</lib-tld-notification-message>\r\n", styles: [".tld-translate-wrapper{overflow:hidden;background:#ffffff;box-shadow:0 3.2px 7.2px #00000021}.tld-translate-switcher-wrapper{padding:.5em 1em}.h-100{height:100%}tld-translation-system-picker-dropdown{z-index:2}tld-translation-system-picker-dropdown:not(.mobile){position:absolute;width:100%;height:100%}tld-translation-system-picker-dropdown.mobile{position:fixed;top:0;left:0;width:100vw;height:100vh}.tld-translate-tablet .message-wrapper,.tld-translate-mobile .message-wrapper{padding:0}.message-wrapper{padding:16px 32px 0}lib-tld-notification-message:not(:first-child){margin-top:4px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i4.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i5$1.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: TldTranslateSwitcherComponent, selector: "tld-translate-switcher", inputs: ["buttonDisabled", "showTranslateButton", "hideOnSmallScreens", "disabled", "hideLangMenuLabels", "maxDisplayedLanguages", "collections", "showDomainsWithLanguageName", "isCollectionsActivated", "useParentWidth", "loader", "settings"], outputs: ["onDomainChange", "onActionClick", "onSourceLanguageChange", "onTargetLanguageChange", "onLanguageSwap", "onVendorChange"] }, { kind: "component", type: TranslationSystemPickerComponent, selector: "tld-translation-system-picker", inputs: ["isCollectionsActivated"] }, { kind: "component", type: TranslationSystemPickerDropdownComponent, selector: "tld-translation-system-picker-dropdown" }, { kind: "component", type: i12.NotificationMessageComponent, selector: "lib-tld-notification-message", inputs: ["message", "inline"], outputs: ["buttonClicked", "closeClicked", "linkClicked"] }, { kind: "component", type: TldTranslateBodyComponent, selector: "tld-translate-body" }], animations: [
10252
10293
  trigger('openCloseAnimation', [
10253
10294
  transition(':enter', [
10254
10295
  style({ height: 0 }),
@@ -10267,9 +10308,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
10267
10308
  ]),
10268
10309
  transition(':leave', animate(500, style({ height: 0 })))
10269
10310
  ])
10270
- ], template: "<div fxLayout=\"column\" class=\"h-100 tld-translate\" *ngIf=\"!showNoSystemsError\"\r\n [ngClass.lt-md]=\"'tld-translate-tablet tld-default-border-bottom'\"\r\n [ngClass.lt-sm]=\"'tld-translate-mobile tld-default-border-bottom'\"\r\n [class.tld-translate-multiple-files-active]=\"isMultipleFilesActive\">\r\n <div class=\"tld-translate-wrapper tld-default-border\" fxLayout=\"column\" fxFlex>\r\n <div class=\"tld-translate-switcher-wrapper tld-default-border-bottom\">\r\n <tld-translate-switcher *ngIf=\"switcherOptions && languageMenuVersion === languageMenuV1\"\r\n [disabled]=\"actionButtonDisabled\" [isCollectionsActivated]=\"isCollectionsActivated\" [settings]=\"switcherOptions\"\r\n [maxDisplayedLanguages]=\"maxDisplayedLanguages\" [showDomainsWithLanguageName]=\"showDomainsWithLanguageName\"\r\n [buttonDisabled]=\"actionButtonDisabled\" [hideLangMenuLabels]=\"hideLangMenuLabels\"\r\n (onDomainChange)=\"systemChange($event)\" (onActionClick)=\"translateButtonClick()\"\r\n (onLanguageSwap)=\"swapLanguages()\" (onSourceLanguageChange)=\"sourceLanguageChange($event)\"\r\n (onTargetLanguageChange)=\"targetLanguageChange($event)\" [loader]=\"actionButtonLoader\" [showTranslateButton]=\"showTranslateButton\">\r\n </tld-translate-switcher>\r\n <tld-translation-system-picker *ngIf=\"languageMenuVersion===languageMenuV2\"\r\n [isCollectionsActivated]=\"isCollectionsActivated\"></tld-translation-system-picker>\r\n </div>\r\n <lib-tld-notification-message [inline]=\"true\" *ngFor=\"let message of messages; let ix = index\" [message]=\"message\"\r\n (closeClicked)=\"removeMessage(ix)\">\r\n </lib-tld-notification-message>\r\n <div fxFlex style=\"position: relative;\">\r\n <tld-translate-body fxFlex fxLayoutAlign=\"column\" [attr.source-language]=\"sourceLanguage\"\r\n [attr.target-language]=\"targetLanguage\"></tld-translate-body>\r\n <tld-translation-system-picker-dropdown [ngClass.xs]=\"'mobile'\" *ngIf=\"systemPickerDropdownVisible\">\r\n </tld-translation-system-picker-dropdown>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<lib-tld-notification-message *ngIf=\"showNoSystemsError\" [message]=\"noSystemsError\">\r\n</lib-tld-notification-message>\r\n", styles: [".tld-translate-wrapper{overflow:hidden;background:#ffffff;box-shadow:0 3.2px 7.2px #00000021}.tld-translate-switcher-wrapper{padding:.5em 1em}.h-100{height:100%}tld-translation-system-picker-dropdown{z-index:2}tld-translation-system-picker-dropdown:not(.mobile){position:absolute;width:100%;height:100%}tld-translation-system-picker-dropdown.mobile{position:fixed;top:0;left:0;width:100vw;height:100vh}\n"] }]
10311
+ ], template: "<div fxLayout=\"column\" class=\"h-100 tld-translate\" *ngIf=\"!showNoSystemsError\"\r\n [ngClass.lt-md]=\"'tld-translate-tablet tld-default-border-bottom'\"\r\n [ngClass.lt-sm]=\"'tld-translate-mobile tld-default-border-bottom'\"\r\n [class.tld-translate-multiple-files-active]=\"isMultipleFilesActive\">\r\n <div class=\"tld-translate-wrapper tld-default-border\" fxLayout=\"column\" fxFlex>\r\n <div class=\"tld-translate-switcher-wrapper tld-default-border-bottom\">\r\n <tld-translate-switcher *ngIf=\"switcherOptions && languageMenuVersion === languageMenuV1\"\r\n [disabled]=\"actionButtonDisabled\" [isCollectionsActivated]=\"isCollectionsActivated\" [settings]=\"switcherOptions\"\r\n [maxDisplayedLanguages]=\"maxDisplayedLanguages\" [showDomainsWithLanguageName]=\"showDomainsWithLanguageName\"\r\n [buttonDisabled]=\"actionButtonDisabled\" [hideLangMenuLabels]=\"hideLangMenuLabels\"\r\n (onDomainChange)=\"systemChange($event)\" (onActionClick)=\"translateButtonClick()\"\r\n (onLanguageSwap)=\"swapLanguages()\" (onSourceLanguageChange)=\"sourceLanguageChange($event)\"\r\n (onTargetLanguageChange)=\"targetLanguageChange($event)\" [loader]=\"actionButtonLoader\" [showTranslateButton]=\"showTranslateButton\">\r\n </tld-translate-switcher>\r\n <tld-translation-system-picker *ngIf=\"languageMenuVersion===languageMenuV2\"\r\n [isCollectionsActivated]=\"isCollectionsActivated\"></tld-translation-system-picker>\r\n </div>\r\n <div *ngIf=\"messages.length\" class=\"message-wrapper\">\r\n <lib-tld-notification-message [inline]=\"true\" *ngFor=\"let message of messages; let ix = index\" [message]=\"message\"\r\n (closeClicked)=\"removeMessage(ix)\">\r\n </lib-tld-notification-message>\r\n </div>\r\n <div fxFlex style=\"position: relative;\">\r\n <tld-translate-body fxFlex fxLayoutAlign=\"column\" [attr.source-language]=\"sourceLanguage\"\r\n [attr.target-language]=\"targetLanguage\"></tld-translate-body>\r\n <tld-translation-system-picker-dropdown [ngClass.xs]=\"'mobile'\" *ngIf=\"systemPickerDropdownVisible\">\r\n </tld-translation-system-picker-dropdown>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<lib-tld-notification-message *ngIf=\"showNoSystemsError\" [message]=\"noSystemsError\">\r\n</lib-tld-notification-message>\r\n", styles: [".tld-translate-wrapper{overflow:hidden;background:#ffffff;box-shadow:0 3.2px 7.2px #00000021}.tld-translate-switcher-wrapper{padding:.5em 1em}.h-100{height:100%}tld-translation-system-picker-dropdown{z-index:2}tld-translation-system-picker-dropdown:not(.mobile){position:absolute;width:100%;height:100%}tld-translation-system-picker-dropdown.mobile{position:fixed;top:0;left:0;width:100vw;height:100vh}.tld-translate-tablet .message-wrapper,.tld-translate-mobile .message-wrapper{padding:0}.message-wrapper{padding:16px 32px 0}lib-tld-notification-message:not(:first-child){margin-top:4px}\n"] }]
10271
10312
  }], ctorParameters: function () { return [{ type: i1$1.TranslateService }, { type: TldTranslateFileService }, { type: TldTranslateTextService }, { type: TldTranslateConfigService }, { type: TldAlertService }, { type: TldTranslateButtonService }, { type: TldSystemService }, { type: AudioRecordService }, { type: TldVoiceInputService }, { type: WtwLinkParamsService }, { type: TranslationSystemPickerService }, { type: IconService }]; }, propDecorators: { onError: [{
10272
10313
  type: Output
10314
+ }], onSystemChange: [{
10315
+ type: Output
10273
10316
  }], tldTranslateBody: [{
10274
10317
  type: ViewChild,
10275
10318
  args: [TldTranslateBodyComponent]
@@ -10887,5 +10930,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
10887
10930
  * Generated bundle index. Do not edit.
10888
10931
  */
10889
10932
 
10890
- export { AudioRecordService, Common, ConvertedCollectionTooltipKey, ConvertedCollectionType, ErrorCode, ExtensionDialogComponent, ExtensionDialogModule, ExtensionDialogService, FILE_API_SERVICE_TOKEN, FileCategories, FileExtensions, FileTranslationSubstatus, FileTypeIcons, FileTypes, HighlightParams, HighlightTreeComponent, IconService, MtCollectionsApiService, OPEN_CLOSE_BTN_ICONS_TOKEN, OpenExtensionDialogComponent, OpenedMenu, SYSTEM_SERVICE_TOKEN, SourceAndTargetWrapperComponent, TEXT_API_SERVICE_TOKEN, TLD_TRANSLATE_CONFIG_TOKEN, TRANSLATION_API_VERSION_TOKEN, TermApiService, TextToSpeechComponent, TextToSpeechModule, TextareaWithBackgroundComponent, TldAlertService, TldAudioModule, TldCommonModule, TldConvertedCollection, TldDictateComponent, TldDictionaryComponent, TldDocumentModule, TldDomainListComponent, TldFileTranslateBaseComponent, TldHighlightService, TldLangListComponent, TldListMenuComponent, TldLoaderComponent, TldMessageComponent, TldMessageType, TldOpenCloseButtonComponent, TldRecordComponent, TldSystemService, TldTermCollectionComponent, TldTermCollectionListComponent, TldTermCollectionsService, TldTermCreateCollectionDialogComponent, TldTermMenuComponent, TldTermModule, TldTermPromotionComponent, TldTextModule, TldTooltipModule, TldTranslateAchievementComponent, TldTranslateButtonComponent, TldTranslateComponent, TldTranslateConfigService, TldTranslateFileApiService, TldTranslateFileComponent, TldTranslateFileDownloadButtonComponent, TldTranslateFileMultipleComponent, TldTranslateFileService, TldTranslateImageConversionHelpComponent, TldTranslateModule, TldTranslatePdfConversionHelpComponent, TldTranslateSourceComponent, TldTranslateSuggestComponent, TldTranslateSuggestDialogComponent, TldTranslateSwitcherComponent, TldTranslateTextComponent, TldTranslateTextService, TldTranslateWebsiteComponent, TldVoiceInputApiService, TldVoiceInputService, TldWebModule, TranslateDomainPipe, TranslationApiVersion, TranslationStatuss, TranslationSystemPickerButtonComponent, TranslationSystemPickerComponent, TranslationSystemPickerDropdownComponent, TranslationSystemPickerFilterComponent, TranslationSystemPickerLanguageListComponent, TranslationSystemPickerService, VoiceToTextState, availableLanguages, languageMenuVersion };
10933
+ export { AudioRecordService, CapitalizePipe, Common, ConvertedCollectionTooltipKey, ConvertedCollectionType, ErrorCode, ExtensionDialogComponent, ExtensionDialogModule, ExtensionDialogService, FILE_API_SERVICE_TOKEN, FileCategories, FileExtensions, FileTranslationSubstatus, FileTypeIcons, FileTypes, HighlightParams, HighlightTreeComponent, IconService, MtCollectionsApiService, OPEN_CLOSE_BTN_ICONS_TOKEN, OpenExtensionDialogComponent, OpenedMenu, SYSTEM_SERVICE_TOKEN, SourceAndTargetWrapperComponent, TEXT_API_SERVICE_TOKEN, TLD_TRANSLATE_CONFIG_TOKEN, TRANSLATION_API_VERSION_TOKEN, TermApiService, TextToSpeechComponent, TextToSpeechModule, TextareaWithBackgroundComponent, TldAlertService, TldAudioModule, TldCommonModule, TldConvertedCollection, TldDictateComponent, TldDictionaryComponent, TldDocumentModule, TldDomainListComponent, TldFileTranslateBaseComponent, TldHighlightService, TldLangListComponent, TldListMenuComponent, TldLoaderComponent, TldMessageComponent, TldMessageType, TldOpenCloseButtonComponent, TldRecordComponent, TldSystemService, TldTermCollectionComponent, TldTermCollectionListComponent, TldTermCollectionsService, TldTermCreateCollectionDialogComponent, TldTermMenuComponent, TldTermModule, TldTermPromotionComponent, TldTextModule, TldTooltipModule, TldTranslateAchievementComponent, TldTranslateButtonComponent, TldTranslateComponent, TldTranslateConfigService, TldTranslateFileApiService, TldTranslateFileComponent, TldTranslateFileDownloadButtonComponent, TldTranslateFileMultipleComponent, TldTranslateFileService, TldTranslateImageConversionHelpComponent, TldTranslateModule, TldTranslatePdfConversionHelpComponent, TldTranslateSourceComponent, TldTranslateSuggestComponent, TldTranslateSuggestDialogComponent, TldTranslateSwitcherComponent, TldTranslateTextComponent, TldTranslateTextService, TldTranslateWebsiteComponent, TldVoiceInputApiService, TldVoiceInputService, TldWebModule, TranslateDomainPipe, TranslationApiVersion, TranslationStatuss, TranslationSystemPickerButtonComponent, TranslationSystemPickerComponent, TranslationSystemPickerDropdownComponent, TranslationSystemPickerFilterComponent, TranslationSystemPickerLanguageListComponent, TranslationSystemPickerService, VoiceToTextState, availableLanguages, languageMenuVersion };
10891
10934
  //# sourceMappingURL=tilde-nlp-ngx-translate.mjs.map