@tilde-nlp/ngx-translate 9.1.51 → 9.1.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tilde-nlp/ngx-translate",
3
- "version": "9.1.51",
3
+ "version": "9.1.52",
4
4
  "description": "Tilde Translate box - solution for machine translating text and documents. Built with angular, but also exposed as web component.",
5
5
  "keywords": [
6
6
  "Machine translation",
@@ -207,4 +207,4 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
207
207
  `,Yee=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
208
208
  <path d="M18 15.0001V18.0001H6V15.0001H4V18.0001C4 19.1001 4.9 20.0001 6 20.0001H18C19.1 20.0001 20 19.1001 20 18.0001V15.0001H18ZM7 9.00012L8.41 10.4101L11 7.83012V16.0001H13V7.83012L15.59 10.4101L17 9.00012L12 4.00012L7 9.00012Z" fill="currentColor"/>
209
209
  </svg>
210
- `;var B2=(()=>{let n=class n{get defaultQueryString(){return`lang=${this.defaultQueryParams.lang}`}constructor(i){this.translate=i,this.defaultQueryParams={lang:""},this.queryString=new ln(this.defaultQueryString),this.defaultQueryParams.lang=this.translate.currentLang,this.translate.onLangChange.subscribe(r=>{this.defaultQueryParams.lang=r.lang,this.queryString.next(this.defaultQueryString)})}query(){return this.queryString.asObservable()}};n.\u0275fac=function(r){return new(r||n)(H(Pt))},n.\u0275prov=F({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function Zee(t,n){if(t&1){let e=ce();E(0,"tld-translate-switcher",9),W("onDomainChange",function(r){q(e);let o=I();return Y(o.systemChange(r))})("onActionClick",function(){q(e);let r=I();return Y(r.translateButtonClick())})("onLanguageSwap",function(){q(e);let r=I();return Y(r.swapLanguages())})("onSourceLanguageChange",function(r){q(e);let o=I();return Y(o.sourceLanguageChange(r))})("onTargetLanguageChange",function(r){q(e);let o=I();return Y(o.targetLanguageChange(r))}),C()}if(t&2){let e=I();v("disabled",e.actionButtonDisabled)("isCollectionsActivated",e.isCollectionsActivated)("settings",e.switcherOptions)("maxDisplayedLanguages",e.maxDisplayedLanguages)("showDomainsWithLanguageName",e.showDomainsWithLanguageName)("buttonDisabled",e.actionButtonDisabled)("hideLangMenuLabels",e.hideLangMenuLabels)("loader",e.actionButtonLoader)("showTranslateButton",e.showTranslateButton)}}function Xee(t,n){if(t&1&&Q(0,"tld-translation-system-picker",10),t&2){let e=I();v("isCollectionsActivated",e.isCollectionsActivated)}}function Qee(t,n){if(t&1){let e=ce();E(0,"lib-tld-notification-message",13),W("closeClicked",function(){let r=q(e).index,o=I(2);return Y(o.removeMessage(r))}),C()}if(t&2){let e=n.$implicit;v("inline",!0)("message",e)}}function Jee(t,n){if(t&1&&(E(0,"div",11),R(1,Qee,1,2,"lib-tld-notification-message",12),C()),t&2){let e=I();_(),v("ngForOf",e.messages)}}function ete(t,n){t&1&&Q(0,"tld-translation-system-picker-dropdown",14),t&2&&v("ngClass.xs","mobile")}var z2=(()=>{let n=class n{get actionButtonLoader(){return this.translateTextService.isTranslating}get showDomainsWithLanguageName(){return this.configService.coreConfig.showDomainsWithLanguageName}get maxDisplayedLanguages(){return this.configService.coreConfig.maxDisplayedLanguages}get actionButtonDisabled(){return this.translateFileService.disableTranslateButton||this.audioService.isRecording||this.voiceProcessingService.isProcessing||this.translateTextService.isDictating}get showTranslateButton(){return this.configService.textConfig.showTranslateButton&&!this.translateFileService.multipleFileUploadActive}get isMultipleFilesActive(){return this.tldTranslateBody?.multipleFilesUploaded}get hideLangMenuLabels(){return this.configService?.coreConfig.hideLangMenuLabels}get isCollectionsActivated(){return this.configService?.termConfig?.isCollectionsActivated}get sourceLanguage(){return this.activeSystemObj?.sourceLang.lang}get targetLanguage(){return this.activeSystemObj?.targetLang.lang}get systemPickerDropdownVisible(){return this.systemPickerService.openedMenu!==Fi.NONE}get languageMenuVersion(){return this.configService.coreConfig?.languageMenuVersion}constructor(i,r,o,s,a,l,d,f,g,x,S,w,j){this.translate=i,this.translateFileService=r,this.translateTextService=o,this.configService=s,this.alerts=a,this.translateButtonService=l,this.tldSystem=d,this.audioService=f,this.voiceProcessingService=g,this.wtwQueryService=x,this.systemPickerService=S,this.terminologyService=w,this.iconService=j,this.onError=new se,this.onSystemChange=new se,this.messages=[],this.noSystemsError={body:"TLD_TRANSLATE.ERROR_NO_SYSTEMS_LOADED",type:Er.ERROR,hideClose:!0},this.languageMenuV1=ju.V1,this.languageMenuV2=ju.V2,this.destroy$=new X}changeAuth(i){this.configService.coreConfig.isAuth=i.isAuth,this.configService.termConfig.canCreateCollection=i.canCreateTermCollection,this.translateFileService.clear(),this.initializeWidget()}initializeWidget(){this.tldSystem.init(this.tldSystem.getLastUsedSystem())}ngOnInit(){if(this.iconService.registerIcons(Gx),this.removeMessagesOnClear(),this.tldSystem.getLoadedSystems().pipe(ke(this.destroy$)).subscribe(r=>{r.length||this.messages.push(this.noSystemsError)}),this.configService.coreConfig.debug)for(let r in Kr)this.translate.setTranslation(r,Kr[r],!0);this.initializeWidget(),this.tldSystem.getActiveData().pipe(to(),ke(this.destroy$)).subscribe(r=>{this.activeSystemObj=r,r&&(this.onSystemChange.emit(r),this.switcherOptions={domains:r.domains,source:{code:r.sourceLang.lang,systemId:r.systemId},sourceLanguageList:r.sourceLangList,systemId:r.systemId,swapActive:r.swapLangActive,target:{code:r.targetLang.lang,systemId:r.systemId},targetLanguageList:r.targetLangList,vendors:r.vendors,languageId:r.languageId})}),this.translateTextService.sourceChange.pipe(ke(this.destroy$)).subscribe(r=>{r.swapSystems&&this.swapLanguages()}),this.translateButtonService.getActionClick().pipe(ke(this.destroy$)).subscribe(()=>{this.translateButtonClick()}),this.wtwQueryService.query().pipe(ke(this.destroy$)).subscribe(r=>{this.messages.forEach(o=>{o.localizationParams.queryString=r})}),this.alerts.getMessages().pipe(ke(this.destroy$)).subscribe(r=>{if(r.localizationParams.queryString=this.wtwQueryService.defaultQueryString,r?.delete){this.removeExistingMessage(r);return}r.type===Er.ERROR&&this.onError.emit(r.error),this.addMessage(r)});let i="APP_NAME";this.translate.stream([i]).pipe(ke(this.destroy$)).subscribe(r=>{this.configService.coreConfig.appName=r[i]}),this.terminologyService.getRetranslateSignal().pipe(ke(this.destroy$)).subscribe(()=>{this.translateFileService.fileNames.length||this.translateButtonClick()})}removeMessage(i){this.messages.splice(i,1)}swapLanguages(){this.tldSystem.swapSystemLanguages()}sourceLanguageChange(i){this.tldSystem.changeLanguage(i,this.switcherOptions.target.code)}systemChange(i){this.tldSystem.changeSystem(i)}targetLanguageChange(i){this.tldSystem.changeLanguage(this.switcherOptions.source.code,i)}translateButtonClick(){this.translateFileService.translationFiles?.length>0?this.translateFileService.translateButtonClick(this.activeSystemObj):this.translateTextService.onTranslateButtonClick()}removeMessagesOnClear(){this.translateFileService.onClear().pipe(ke(this.destroy$)).subscribe(()=>{this.messages=[]}),this.translateTextService.onClear().pipe(ke(this.destroy$)).subscribe(()=>{this.messages=[]})}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}removeExistingMessage(i){delete i.delete;let r=JSON.stringify(i),o=this.messages.find(a=>JSON.stringify(a)===r),s=this.messages.indexOf(o);s<0||this.removeMessage(s)}addMessage(i){let r=JSON.stringify(i.localizationParams);this.messages.find(s=>s.title===i.title&&s.type===i.type&&i.body===s.body&&JSON.stringify(s.localizationParams)===r)||this.messages.push(i)}};n.\u0275fac=function(r){return new(r||n)(k(Pt),k(dr),k(_s),k(Re),k(Ci),k(Mc),k(bt),k(Sm),k(xm),k(B2),k(ys),k(Sr),k(Am))},n.\u0275cmp=ee({type:n,selectors:[["tld-translate"]],viewQuery:function(r,o){if(r&1&&Oe(Xy,5),r&2){let s;Ae(s=be())&&(o.tldTranslateBody=s.first)}},outputs:{onError:"onError",onSystemChange:"onSystemChange"},standalone:!1,decls:9,vars:10,consts:[["fxLayout","column",1,"h-100","tld-translate",3,"ngClass.lt-md","ngClass.lt-sm"],["fxLayout","column","fxFlex","",1,"tld-translate-wrapper","tld-default-border"],[1,"tld-translate-switcher-wrapper","tld-default-border-bottom"],[3,"disabled","isCollectionsActivated","settings","maxDisplayedLanguages","showDomainsWithLanguageName","buttonDisabled","hideLangMenuLabels","loader","showTranslateButton","onDomainChange","onActionClick","onLanguageSwap","onSourceLanguageChange","onTargetLanguageChange",4,"ngIf"],[3,"isCollectionsActivated",4,"ngIf"],["class","message-wrapper",4,"ngIf"],["fxFlex","",2,"position","relative"],["fxFlex","","fxLayoutAlign","column"],[3,"ngClass.xs",4,"ngIf"],[3,"onDomainChange","onActionClick","onLanguageSwap","onSourceLanguageChange","onTargetLanguageChange","disabled","isCollectionsActivated","settings","maxDisplayedLanguages","showDomainsWithLanguageName","buttonDisabled","hideLangMenuLabels","loader","showTranslateButton"],[3,"isCollectionsActivated"],[1,"message-wrapper"],[3,"inline","message","closeClicked",4,"ngFor","ngForOf"],[3,"closeClicked","inline","message"],[3,"ngClass.xs"]],template:function(r,o){r&1&&(E(0,"div",0)(1,"div",1)(2,"div",2),R(3,Zee,1,9,"tld-translate-switcher",3)(4,Xee,1,1,"tld-translation-system-picker",4),C(),R(5,Jee,2,1,"div",5),E(6,"div",6),Q(7,"tld-translate-body",7),R(8,ete,1,1,"tld-translation-system-picker-dropdown",8),C()()()),r&2&&(Ee("tld-translate-multiple-files-active",o.isMultipleFilesActive),v("ngClass.lt-md","tld-translate-tablet tld-default-border-bottom")("ngClass.lt-sm","tld-translate-mobile tld-default-border-bottom"),_(3),v("ngIf",o.switcherOptions&&o.languageMenuVersion===o.languageMenuV1),_(),v("ngIf",o.languageMenuVersion===o.languageMenuV2),_(),v("ngIf",o.messages.length),_(2),he("source-language",o.sourceLanguage)("target-language",o.targetLanguage),_(),v("ngIf",o.systemPickerDropdownVisible))},dependencies:[nn,je,Vx,N2,U2,HP,yt,Vt,An,Lt,Xy],styles:[".tld-translate-wrapper[_ngcontent-%COMP%]{overflow:hidden;background:#fff}.tld-translate-switcher-wrapper[_ngcontent-%COMP%]{padding:5px 10px}.h-100[_ngcontent-%COMP%]{height:100%}tld-translation-system-picker-dropdown[_ngcontent-%COMP%]{z-index:2}tld-translation-system-picker-dropdown[_ngcontent-%COMP%]:not(.mobile){position:absolute;width:100%;height:100%}tld-translation-system-picker-dropdown.mobile[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh}.tld-translate-tablet[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%], .tld-translate-mobile[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{padding:0}.message-wrapper[_ngcontent-%COMP%]{padding:16px 16px 0}lib-tld-notification-message[_ngcontent-%COMP%]:not(:first-child){margin-top:4px}[_nghost-%COMP%] .notification-message{margin-bottom:0!important}"],data:{animation:[fp("openCloseAnimation",[Pd(":enter",[vr({height:0}),Nd(500)]),Pd(":leave",Nd(500,vr({height:0})))])]}});let t=n;return t})();var V2=(()=>{let n=class n{static forRoot(i){let r=[{provide:_x,useFactory:_F,deps:[Re]}];return i&&r.push({provide:gy,useValue:i}),{ngModule:n,providers:r}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ae({providers:[Pt],imports:[At,hn,zr,$_,fa,C2,PF,Hx,GP,Io,Gn]});let t=n;return t})();var H2={name:"@tilde-nlp/ngx-translate",version:"9.1.51",description:"Tilde Translate box - solution for machine translating text and documents. Built with angular, but also exposed as web component.",keywords:["Machine translation","translate","Tilde"],peerDependencies:{"@angular/common":"^20.0.0","@angular/core":"^20.0.0","@angular/material":"^20.0.0","@ngbracket/ngx-layout":"^20.0.0","@ngx-translate/core":"^17.0.0","file-saver":"^2.0.5","@tilde-nlp/ngx-common":"8.1.x"},dependencies:{tslib:"^2.0.0"},directories:{"web-component":"./../tld-translate-web-component/library"},license:"Apache-2.0"};function ite(t,n){t&1&&Q(0,"tld-translate")}var{version:rte}=H2,Qy=(()=>{let n=class n{constructor(i,r,o){this.translate=i,this.configService=r,this.terminologyConfigService=o,this.isAuth=!0,this.appId="TildeMT|TranslateBox",this.isCollectionsActivated=!1,this.hideGlossaryMenuWithoutCollections=!0,this.defaultUiLanguage="en",this.defaultExtensionCount=9,this.langAttributeKey="lang"}ngOnInit(){this.config={text:{allowWebsiteTranslation:this.ensureTypeBool(this.allowWebsiteTranslation)??!1,maxCharLength:this.maxCharLength,showAvailableExtensions:this.ensureTypeBool(this.showExtensions)??!1,showExtensionsUnauthOnly:this.ensureTypeBool(this.showExtensionsUnauthOnly),visibleExtensionCount:this.ensureTypeIsPositiveNumber(this.visibleExtensionCount)??this.defaultExtensionCount,showExtensionPopup:!0,isAutoLanguageDetectionEnabled:this.ensureTypeBool(this.isAutoLanguageDetectionEnabled),useDictionary:this.ensureTypeBool(this.isDictionaryEnabled),dictionaryUrls:JSON.parse(this.dictionaryUrls??null),showTranslateButton:this.ensureTypeBool(this.showTranslateButton)},core:{appId:`${this.appId}|${rte}`,xApiKey:this.xApiKey,isAuth:this.ensureTypeBool(this.isAuth),showVendors:this.ensureTypeBool(this.showVendors),registerLink:this.registerLink,isWebComponent:!0,showDomains:this.ensureTypeBool(this.showDomains),maxDisplayedLanguages:this.ensureTypeIsPositiveNumber(this.maxDisplayedLanguages)??1,contactSupport:this.ensureTypeBool(this.contactSupport),subscriptionSupport:this.ensureTypeBool(this.subscriptionSupport)??!1,languageMenuVersion:this.ensureTypeIsPositiveNumber(this.languageMenuVersion),apiBaseUrl:this.apiBaseUrl,defaultSourceLanguage:this.srcLanguage,defaultTargetLanguage:this.trgLanguage,defaultDomain:this.domain,supportEmail:this.supportEmail},llm:{disableRephrasing:this.ensureTypeBool(!this.isLlmEnabled)??!0,disableSummarization:this.ensureTypeBool(!this.isLlmEnabled)??!0,apiUrl:this.llmServiceUrl},file:{allowedFileTypes:this.ensureTypeBool(this.isAuth)?this.parseStringToArray(this.allowedFileTypesAuthUser):this.parseStringToArray(this.allowedFileTypes),ocrPageLimit:this.ensureTypeIsPositiveNumber(this.ocrPageLimit),showTranslationLimits:!this.ensureTypeBool(this.isAuth),maxSize:this.ensureTypeIsPositiveNumber(this.maxFileSize),fileWordsLength:this.ensureTypeIsPositiveNumber(this.fileWordsLength)},term:{isCollectionsActivated:this.ensureTypeBool(this.isCollectionsActivated),terminologyPortalUrl:this.terminologyPortalUrl},quota:{apiUrl:this.quotaServiceUrl}},this.configService.initConfigs(this.config),this.terminologyConfigService.initConfigs({xApiKey:this.configService.coreConfig.xApiKey,appId:this.configService.coreConfig.appId,hideGlossaryMenuWithoutCollections:this.ensureTypeBool(this.hideGlossaryMenuWithoutCollections),showGlossaryMenuAdvertisement:!0,signInUrl:this.signInLink,startTrialUrl:this.registerLink,engineTermUrl:this.engineTermUrl,systemListUrl:this.systemListUrl,terminologyPortalUrl:this.terminologyPortalUrl,filterCollectionsByLanguageDirection:this.filterCollectionsByLanguageDirection}),this.addPlausible(),this.setTranslations(this.defaultUiLanguage),this.translate.setDefaultLang(this.defaultUiLanguage),this.changeLanguage(this.uiLanguage??this.defaultUiLanguage),this.watchHtmlLangAttributeChanges(),this.isConfigLoaded=!0}changeLanguage(i){this.setTranslations(i),this.translate.use(i)}parseStringToArray(i){return typeof i=="string"?JSON.parse(i):i}setTranslations(i){Kr[i]&&this.translate.setTranslation(i,Kr[i],!0),this.overrideTranslations(i)}overrideTranslations(i){if(!this.translations)return;let r=JSON.parse(this.translations);if(r[i]){let o=r[i];this.translate.setTranslation(i,o,!0)}}ensureTypeBool(i){return i===!0||i==="true"?!0:i===!1||i==="false"?!1:null}ensureTypeIsPositiveNumber(i){let r=parseInt(i);return r>=0?r:null}watchHtmlLangAttributeChanges(){let i=this.getHtmlLangAttribute();!this.uiLanguage&&i!==this.defaultUiLanguage&&this.changeLanguage(i);let r=l=>{for(let d of l)if(d.type==="attributes"&&d.attributeName===this.langAttributeKey){let f=this.getHtmlLangAttribute();this.changeLanguage(f)}},o=new MutationObserver(r),s=document.querySelector("html"),a={attributes:!0,attributeFilter:[this.langAttributeKey]};o.observe(s,a)}getHtmlLangAttribute(){return document.querySelector("html").getAttribute(this.langAttributeKey).split("-")[0]}addPlausible(){this.plausibleDomain?.length&&ms.addPlausible(this.plausibleDomain)}};n.\u0275fac=function(r){return new(r||n)(k(Pt),k(Re),k(wo))},n.\u0275cmp=ee({type:n,selectors:[["tld-translate-web"]],inputs:{allowedFileTypes:"allowedFileTypes",allowedFileTypesAuthUser:"allowedFileTypesAuthUser",ocrPageLimit:"ocrPageLimit",isAuth:"isAuth",maxCharLength:"maxCharLength",fileWordsLength:"fileWordsLength",showVendors:"showVendors",allowWebsiteTranslation:"allowWebsiteTranslation",showExtensions:"showExtensions",showExtensionsUnauthOnly:"showExtensionsUnauthOnly",registerLink:"registerLink",signInLink:"signInLink",appId:"appId",showDomains:"showDomains",maxDisplayedLanguages:"maxDisplayedLanguages",xApiKey:"xApiKey",isCollectionsActivated:"isCollectionsActivated",terminologyPromotion:"terminologyPromotion",contactSupport:"contactSupport",subscriptionSupport:"subscriptionSupport",visibleExtensionCount:"visibleExtensionCount",languageMenuVersion:"languageMenuVersion",isAutoLanguageDetectionEnabled:"isAutoLanguageDetectionEnabled",hideGlossaryMenuWithoutCollections:"hideGlossaryMenuWithoutCollections",isLlmEnabled:"isLlmEnabled",apiBaseUrl:"apiBaseUrl",engineTermUrl:"engineTermUrl",systemListUrl:"systemListUrl",terminologyPortalUrl:"terminologyPortalUrl",llmServiceUrl:"llmServiceUrl",quotaServiceUrl:"quotaServiceUrl",plausibleDomain:"plausibleDomain",isDictionaryEnabled:"isDictionaryEnabled",dictionaryUrls:"dictionaryUrls",uiLanguage:"uiLanguage",defaultUiLanguage:"defaultUiLanguage",srcLanguage:"srcLanguage",trgLanguage:"trgLanguage",domain:"domain",supportEmail:"supportEmail",maxFileSize:"maxFileSize",showTranslateButton:"showTranslateButton",filterCollectionsByLanguageDirection:"filterCollectionsByLanguageDirection",translations:"translations"},standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"]],template:function(r,o){r&1&&R(0,ite,1,0,"tld-translate",0),r&2&&v("ngIf",o.isConfigLoaded)},dependencies:[je,z2],styles:['@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v145/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format("woff2")}.material-icons[_ngcontent-%COMP%]{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}@font-face{font-family:Material Icons Outlined;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialiconsoutlined/v110/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUce.woff2) format("woff2")}.material-icons-outlined[_ngcontent-%COMP%]{font-family:Material Icons Outlined;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}[_ngcontent-%COMP%]:root{--default-border-radius: 4px;--default-border-width: 2px}.mat-loading[_ngcontent-%COMP%] .mdc-button__label[_ngcontent-%COMP%]{visibility:hidden}.mat-loading[_ngcontent-%COMP%] .mat-mdc-progress-spinner[_ngcontent-%COMP%]{position:absolute;top:calc(50% - 10px);left:calc(50% - 10px)}[mat-menu-item].align-v-middle[_ngcontent-%COMP%] *[_ngcontent-%COMP%], button.align-v-middle[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{vertical-align:middle}.link-button[_ngcontent-%COMP%]:visited, .link-button[_ngcontent-%COMP%]:hover, .link-button[_ngcontent-%COMP%]:active, .link-button[_ngcontent-%COMP%]:link{text-decoration:none}mat-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{vertical-align:initial}.mat-mdc-icon-button[_ngcontent-%COMP%]:not([disabled]){color:var(--base-30)!important}.success-icon[_ngcontent-%COMP%]{color:var(--success-dark)}.error-icon[_ngcontent-%COMP%]{color:var(--error-dark)}.icon-center-vertically[_ngcontent-%COMP%]{vertical-align:middle}.mat-mdc-dialog-container[_ngcontent-%COMP%]{min-width:22rem;width:40rem!important}.mat-mdc-dialog-container[_ngcontent-%COMP%] h1[mat-dialog-title].mat-mdc-dialog-title[_ngcontent-%COMP%], .mat-mdc-dialog-container[_ngcontent-%COMP%] [mat-dialog-title].mat-dialog-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.5rem!important;font-weight:500!important;margin-bottom:0!important}mat-dialog-actions[_ngcontent-%COMP%]{display:flex;gap:8px;margin-right:1em!important;margin-bottom:.75em!important}.mdc-dialog__title[_ngcontent-%COMP%]{max-width:fit-content}.responsive-dialog[_ngcontent-%COMP%] .mat-mdc-dialog-container[_ngcontent-%COMP%]{width:100%!important;min-width:0!important}.mat-mdc-dialog-content[_ngcontent-%COMP%]{color:inherit!important}.close[_ngcontent-%COMP%]{position:absolute!important;top:1rem!important;right:1rem!important;z-index:1!important}.mat-mdc-dialog-surface[_ngcontent-%COMP%]{border-radius:12px!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:var(--base-95);background-clip:padding-box}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:var(--base-100)}@media (max-width: 959px){.cdk-overlay-pane[_ngcontent-%COMP%]{max-width:100%!important}.close[_ngcontent-%COMP%]{top:.25rem!important;right:.25rem!important}}strapi-html[_ngcontent-%COMP%] .text-tiny[_ngcontent-%COMP%]{font-size:.7rem}strapi-html[_ngcontent-%COMP%] .text-small[_ngcontent-%COMP%]{font-size:.85rem}strapi-html[_ngcontent-%COMP%] .text-big[_ngcontent-%COMP%]{font-size:1.4rem}strapi-html[_ngcontent-%COMP%] .text-huge[_ngcontent-%COMP%]{font-size:1.8rem}.semi-bold[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] a[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .text-s-semi-bold[_ngcontent-%COMP%], .text-m-semi-bold[_ngcontent-%COMP%], .text-l-semi-bold[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .text-xl-semi-bold[_ngcontent-%COMP%], .text-2-xl[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .text-3-xl[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .text-4-xl[_ngcontent-%COMP%]{font-weight:600}@media (min-width: 600px){.text-4-xl[_ngcontent-%COMP%]{font-size:2rem;line-height:3.375rem}}@media (min-width: 0) and (max-width: 599.9px){.text-4-xl[_ngcontent-%COMP%]{font-size:2rem;line-height:2.625rem}}.text-3-xl[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.75rem;line-height:2.625rem}.text-2-xl[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2.125rem}.text-xl[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .text-xl-semi-bold[_ngcontent-%COMP%]{font-size:1.25rem;line-height:2rem}.text-l[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%], .text-l-semi-bold[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:1rem;line-height:1.625rem}.text-m[_ngcontent-%COMP%], .text-m-semi-bold[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.4375rem}.text-s[_ngcontent-%COMP%], .text-s-semi-bold[_ngcontent-%COMP%]{font-size:.75rem;line-height:1.25rem}.tld-container[_ngcontent-%COMP%]{max-width:87rem;margin-left:auto;margin-right:auto;padding:0 2rem;width:100%}@media (min-width: 0) and (max-width: 599.9px){.tld-container[_ngcontent-%COMP%]{padding:0 1rem}}strapi-feature-list[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%]{color:var(--base-30)}strapi-feature-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] a[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--primary-accent)!important}strapi-feature-list[_ngcontent-%COMP%] a.mdc-button--raised[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] a.mdc-button--raised[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] a.mdc-button--raised[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] a.mdc-button--raised[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] a.mdc-button--raised[_ngcontent-%COMP%]{text-decoration:none;color:var(--base-100)!important;background-color:var(--primary-accent)!important}strapi-feature-list[_ngcontent-%COMP%] a.mdc-button--outlined[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] a.mdc-button--outlined[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] a.mdc-button--outlined[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] a.mdc-button--outlined[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] a.mdc-button--outlined[_ngcontent-%COMP%]{background-color:transparent!important}strapi-feature-list[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:var(--base-10)}strapi-feature-list[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-weight:700}strapi-html[_ngcontent-%COMP%]{margin-top:4rem}.strapi-feature-list[_ngcontent-%COMP%] .strapi-feature-list-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .strapi-feature-list[_ngcontent-%COMP%] .strapi-feature-list-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .strapi-feature-list[_ngcontent-%COMP%] .strapi-feature-list-title[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .strapi-feature-list[_ngcontent-%COMP%] .strapi-feature-list-title[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .strapi-feature-list[_ngcontent-%COMP%] .strapi-feature-list-title[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .strapi-feature-list[_ngcontent-%COMP%] .strapi-feature-list-title[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin-bottom:4rem;font-weight:700}[_nghost-%COMP%] .mdc-notched-outline__notch:has(.mdc-floating-label){border-right:none!important;border-left:none!important}[_nghost-%COMP%] .mat-mdc-icon-button, [_nghost-%COMP%] .mat-mdc-icon-button .mat-mdc-button-touch-target{height:40px!important;width:40px!important}[_nghost-%COMP%] .mat-mdc-icon-button mat-icon, [_nghost-%COMP%] .mat-mdc-icon-button .material-icons, [_nghost-%COMP%] .mat-mdc-icon-button .material-icons-outlined{position:absolute!important;top:8px!important;left:8px!important}[_nghost-%COMP%] .tld-custom-select .mat-mdc-select-value{max-width:100px!important;width:100%!important;overflow:hidden;text-overflow:ellipsis;color:var(--accent);margin-right:.5rem!important}[_nghost-%COMP%] .tld-custom-select .mat-mdc-select-arrow{color:var(--accent)!important}[_nghost-%COMP%] h1[mat-dialog-title]{margin-top:12px}']});let t=n;return t})();var G2=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=ee({type:n,selectors:[["app-root"]],standalone:!1,decls:1,vars:0,consts:[["clientId","clientId","app-id","TildeMT|Web"]],template:function(r,o){r&1&&Q(0,"tld-translate-web",0)},dependencies:[Qy],encapsulation:2});let t=n;return t})();var W2=()=>({provide:cx,useFactory:t=>({sharedConfiguration:{xAppId:t.coreConfig?.appId},llmService:{url:t?.llmConfig?.apiUrl},quotaService:{url:t?.quotaConfig?.apiUrl},speechApi:{url:""}}),deps:[Re]});var Y2=xA(q2());typeof window<"u"&&(typeof window.$>"u"&&(window.$=Y2),typeof window.jQuery>"u"&&(window.jQuery=Y2));var $2=(t,n)=>{let e=b(Re);if(e.coreConfig.xApiKey){let i=t.clone({setHeaders:{"X-Api-Key":`${e.coreConfig.xApiKey}`}});return n(i)}return n(t)};var Z2=(()=>{let n=class n{constructor(i){let r=$L(Qy,{injector:i});customElements.define("tilde-translate-box",r)}ngDoBootstrap(i){document.querySelector("app-root")&&i.bootstrap(G2)}};n.\u0275fac=function(r){return new(r||n)(H(Ne))},n.\u0275mod=le({type:n}),n.\u0275inj=ae({providers:[dp(_C([$2])),W2()],imports:[YR,sp,V2.forRoot(),hn.forRoot({missingTranslationHandler:{provide:qa,useClass:sy}}),zr,fs]});let t=n;return t})();var X2={production:!0};X2.production&&void 0;pC().bootstrapModule(Z2).catch(t=>console.error(t));
210
+ `;var B2=(()=>{let n=class n{get defaultQueryString(){return`lang=${this.defaultQueryParams.lang}`}constructor(i){this.translate=i,this.defaultQueryParams={lang:""},this.queryString=new ln(this.defaultQueryString),this.defaultQueryParams.lang=this.translate.currentLang,this.translate.onLangChange.subscribe(r=>{this.defaultQueryParams.lang=r.lang,this.queryString.next(this.defaultQueryString)})}query(){return this.queryString.asObservable()}};n.\u0275fac=function(r){return new(r||n)(H(Pt))},n.\u0275prov=F({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function Zee(t,n){if(t&1){let e=ce();E(0,"tld-translate-switcher",9),W("onDomainChange",function(r){q(e);let o=I();return Y(o.systemChange(r))})("onActionClick",function(){q(e);let r=I();return Y(r.translateButtonClick())})("onLanguageSwap",function(){q(e);let r=I();return Y(r.swapLanguages())})("onSourceLanguageChange",function(r){q(e);let o=I();return Y(o.sourceLanguageChange(r))})("onTargetLanguageChange",function(r){q(e);let o=I();return Y(o.targetLanguageChange(r))}),C()}if(t&2){let e=I();v("disabled",e.actionButtonDisabled)("isCollectionsActivated",e.isCollectionsActivated)("settings",e.switcherOptions)("maxDisplayedLanguages",e.maxDisplayedLanguages)("showDomainsWithLanguageName",e.showDomainsWithLanguageName)("buttonDisabled",e.actionButtonDisabled)("hideLangMenuLabels",e.hideLangMenuLabels)("loader",e.actionButtonLoader)("showTranslateButton",e.showTranslateButton)}}function Xee(t,n){if(t&1&&Q(0,"tld-translation-system-picker",10),t&2){let e=I();v("isCollectionsActivated",e.isCollectionsActivated)}}function Qee(t,n){if(t&1){let e=ce();E(0,"lib-tld-notification-message",13),W("closeClicked",function(){let r=q(e).index,o=I(2);return Y(o.removeMessage(r))}),C()}if(t&2){let e=n.$implicit;v("inline",!0)("message",e)}}function Jee(t,n){if(t&1&&(E(0,"div",11),R(1,Qee,1,2,"lib-tld-notification-message",12),C()),t&2){let e=I();_(),v("ngForOf",e.messages)}}function ete(t,n){t&1&&Q(0,"tld-translation-system-picker-dropdown",14),t&2&&v("ngClass.xs","mobile")}var z2=(()=>{let n=class n{get actionButtonLoader(){return this.translateTextService.isTranslating}get showDomainsWithLanguageName(){return this.configService.coreConfig.showDomainsWithLanguageName}get maxDisplayedLanguages(){return this.configService.coreConfig.maxDisplayedLanguages}get actionButtonDisabled(){return this.translateFileService.disableTranslateButton||this.audioService.isRecording||this.voiceProcessingService.isProcessing||this.translateTextService.isDictating}get showTranslateButton(){return this.configService.textConfig.showTranslateButton&&!this.translateFileService.multipleFileUploadActive}get isMultipleFilesActive(){return this.tldTranslateBody?.multipleFilesUploaded}get hideLangMenuLabels(){return this.configService?.coreConfig.hideLangMenuLabels}get isCollectionsActivated(){return this.configService?.termConfig?.isCollectionsActivated}get sourceLanguage(){return this.activeSystemObj?.sourceLang.lang}get targetLanguage(){return this.activeSystemObj?.targetLang.lang}get systemPickerDropdownVisible(){return this.systemPickerService.openedMenu!==Fi.NONE}get languageMenuVersion(){return this.configService.coreConfig?.languageMenuVersion}constructor(i,r,o,s,a,l,d,f,g,x,S,w,j){this.translate=i,this.translateFileService=r,this.translateTextService=o,this.configService=s,this.alerts=a,this.translateButtonService=l,this.tldSystem=d,this.audioService=f,this.voiceProcessingService=g,this.wtwQueryService=x,this.systemPickerService=S,this.terminologyService=w,this.iconService=j,this.onError=new se,this.onSystemChange=new se,this.messages=[],this.noSystemsError={body:"TLD_TRANSLATE.ERROR_NO_SYSTEMS_LOADED",type:Er.ERROR,hideClose:!0},this.languageMenuV1=ju.V1,this.languageMenuV2=ju.V2,this.destroy$=new X}changeAuth(i){this.configService.coreConfig.isAuth=i.isAuth,this.configService.termConfig.canCreateCollection=i.canCreateTermCollection,this.translateFileService.clear(),this.initializeWidget()}initializeWidget(){this.tldSystem.init(this.tldSystem.getLastUsedSystem())}ngOnInit(){if(this.iconService.registerIcons(Gx),this.removeMessagesOnClear(),this.tldSystem.getLoadedSystems().pipe(ke(this.destroy$)).subscribe(r=>{r.length||this.messages.push(this.noSystemsError)}),this.configService.coreConfig.debug)for(let r in Kr)this.translate.setTranslation(r,Kr[r],!0);this.initializeWidget(),this.tldSystem.getActiveData().pipe(to(),ke(this.destroy$)).subscribe(r=>{this.activeSystemObj=r,r&&(this.onSystemChange.emit(r),this.switcherOptions={domains:r.domains,source:{code:r.sourceLang.lang,systemId:r.systemId},sourceLanguageList:r.sourceLangList,systemId:r.systemId,swapActive:r.swapLangActive,target:{code:r.targetLang.lang,systemId:r.systemId},targetLanguageList:r.targetLangList,vendors:r.vendors,languageId:r.languageId})}),this.translateTextService.sourceChange.pipe(ke(this.destroy$)).subscribe(r=>{r.swapSystems&&this.swapLanguages()}),this.translateButtonService.getActionClick().pipe(ke(this.destroy$)).subscribe(()=>{this.translateButtonClick()}),this.wtwQueryService.query().pipe(ke(this.destroy$)).subscribe(r=>{this.messages.forEach(o=>{o.localizationParams.queryString=r})}),this.alerts.getMessages().pipe(ke(this.destroy$)).subscribe(r=>{if(r.localizationParams.queryString=this.wtwQueryService.defaultQueryString,r?.delete){this.removeExistingMessage(r);return}r.type===Er.ERROR&&this.onError.emit(r.error),this.addMessage(r)});let i="APP_NAME";this.translate.stream([i]).pipe(ke(this.destroy$)).subscribe(r=>{this.configService.coreConfig.appName=r[i]}),this.terminologyService.getRetranslateSignal().pipe(ke(this.destroy$)).subscribe(()=>{this.translateFileService.fileNames.length||this.translateButtonClick()})}removeMessage(i){this.messages.splice(i,1)}swapLanguages(){this.tldSystem.swapSystemLanguages()}sourceLanguageChange(i){this.tldSystem.changeLanguage(i,this.switcherOptions.target.code)}systemChange(i){this.tldSystem.changeSystem(i)}targetLanguageChange(i){this.tldSystem.changeLanguage(this.switcherOptions.source.code,i)}translateButtonClick(){this.translateFileService.translationFiles?.length>0?this.translateFileService.translateButtonClick(this.activeSystemObj):this.translateTextService.onTranslateButtonClick()}removeMessagesOnClear(){this.translateFileService.onClear().pipe(ke(this.destroy$)).subscribe(()=>{this.messages=[]}),this.translateTextService.onClear().pipe(ke(this.destroy$)).subscribe(()=>{this.messages=[]})}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}removeExistingMessage(i){delete i.delete;let r=JSON.stringify(i),o=this.messages.find(a=>JSON.stringify(a)===r),s=this.messages.indexOf(o);s<0||this.removeMessage(s)}addMessage(i){let r=JSON.stringify(i.localizationParams);this.messages.find(s=>s.title===i.title&&s.type===i.type&&i.body===s.body&&JSON.stringify(s.localizationParams)===r)||this.messages.push(i)}};n.\u0275fac=function(r){return new(r||n)(k(Pt),k(dr),k(_s),k(Re),k(Ci),k(Mc),k(bt),k(Sm),k(xm),k(B2),k(ys),k(Sr),k(Am))},n.\u0275cmp=ee({type:n,selectors:[["tld-translate"]],viewQuery:function(r,o){if(r&1&&Oe(Xy,5),r&2){let s;Ae(s=be())&&(o.tldTranslateBody=s.first)}},outputs:{onError:"onError",onSystemChange:"onSystemChange"},standalone:!1,decls:9,vars:10,consts:[["fxLayout","column",1,"h-100","tld-translate",3,"ngClass.lt-md","ngClass.lt-sm"],["fxLayout","column","fxFlex","",1,"tld-translate-wrapper","tld-default-border"],[1,"tld-translate-switcher-wrapper","tld-default-border-bottom"],[3,"disabled","isCollectionsActivated","settings","maxDisplayedLanguages","showDomainsWithLanguageName","buttonDisabled","hideLangMenuLabels","loader","showTranslateButton","onDomainChange","onActionClick","onLanguageSwap","onSourceLanguageChange","onTargetLanguageChange",4,"ngIf"],[3,"isCollectionsActivated",4,"ngIf"],["class","message-wrapper",4,"ngIf"],["fxFlex","",2,"position","relative"],["fxFlex","","fxLayoutAlign","column"],[3,"ngClass.xs",4,"ngIf"],[3,"onDomainChange","onActionClick","onLanguageSwap","onSourceLanguageChange","onTargetLanguageChange","disabled","isCollectionsActivated","settings","maxDisplayedLanguages","showDomainsWithLanguageName","buttonDisabled","hideLangMenuLabels","loader","showTranslateButton"],[3,"isCollectionsActivated"],[1,"message-wrapper"],[3,"inline","message","closeClicked",4,"ngFor","ngForOf"],[3,"closeClicked","inline","message"],[3,"ngClass.xs"]],template:function(r,o){r&1&&(E(0,"div",0)(1,"div",1)(2,"div",2),R(3,Zee,1,9,"tld-translate-switcher",3)(4,Xee,1,1,"tld-translation-system-picker",4),C(),R(5,Jee,2,1,"div",5),E(6,"div",6),Q(7,"tld-translate-body",7),R(8,ete,1,1,"tld-translation-system-picker-dropdown",8),C()()()),r&2&&(Ee("tld-translate-multiple-files-active",o.isMultipleFilesActive),v("ngClass.lt-md","tld-translate-tablet tld-default-border-bottom")("ngClass.lt-sm","tld-translate-mobile tld-default-border-bottom"),_(3),v("ngIf",o.switcherOptions&&o.languageMenuVersion===o.languageMenuV1),_(),v("ngIf",o.languageMenuVersion===o.languageMenuV2),_(),v("ngIf",o.messages.length),_(2),he("source-language",o.sourceLanguage)("target-language",o.targetLanguage),_(),v("ngIf",o.systemPickerDropdownVisible))},dependencies:[nn,je,Vx,N2,U2,HP,yt,Vt,An,Lt,Xy],styles:[".tld-translate-wrapper[_ngcontent-%COMP%]{overflow:hidden;background:#fff}.tld-translate-switcher-wrapper[_ngcontent-%COMP%]{padding:5px 10px}.h-100[_ngcontent-%COMP%]{height:100%}tld-translation-system-picker-dropdown[_ngcontent-%COMP%]{z-index:2}tld-translation-system-picker-dropdown[_ngcontent-%COMP%]:not(.mobile){position:absolute;width:100%;height:100%}tld-translation-system-picker-dropdown.mobile[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh}.tld-translate-tablet[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%], .tld-translate-mobile[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{padding:0}.message-wrapper[_ngcontent-%COMP%]{padding:16px 16px 0}lib-tld-notification-message[_ngcontent-%COMP%]:not(:first-child){margin-top:4px}[_nghost-%COMP%] .notification-message{margin-bottom:0!important}"],data:{animation:[fp("openCloseAnimation",[Pd(":enter",[vr({height:0}),Nd(500)]),Pd(":leave",Nd(500,vr({height:0})))])]}});let t=n;return t})();var V2=(()=>{let n=class n{static forRoot(i){let r=[{provide:_x,useFactory:_F,deps:[Re]}];return i&&r.push({provide:gy,useValue:i}),{ngModule:n,providers:r}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=le({type:n}),n.\u0275inj=ae({providers:[Pt],imports:[At,hn,zr,$_,fa,C2,PF,Hx,GP,Io,Gn]});let t=n;return t})();var H2={name:"@tilde-nlp/ngx-translate",version:"9.1.52",description:"Tilde Translate box - solution for machine translating text and documents. Built with angular, but also exposed as web component.",keywords:["Machine translation","translate","Tilde"],peerDependencies:{"@angular/common":"^20.0.0","@angular/core":"^20.0.0","@angular/material":"^20.0.0","@ngbracket/ngx-layout":"^20.0.0","@ngx-translate/core":"^17.0.0","file-saver":"^2.0.5","@tilde-nlp/ngx-common":"8.1.x"},dependencies:{tslib:"^2.0.0"},directories:{"web-component":"./../tld-translate-web-component/library"},license:"Apache-2.0"};function ite(t,n){t&1&&Q(0,"tld-translate")}var{version:rte}=H2,Qy=(()=>{let n=class n{constructor(i,r,o){this.translate=i,this.configService=r,this.terminologyConfigService=o,this.isAuth=!0,this.appId="TildeMT|TranslateBox",this.isCollectionsActivated=!1,this.hideGlossaryMenuWithoutCollections=!0,this.defaultUiLanguage="en",this.defaultExtensionCount=9,this.langAttributeKey="lang"}ngOnInit(){this.config={text:{allowWebsiteTranslation:this.ensureTypeBool(this.allowWebsiteTranslation)??!1,maxCharLength:this.maxCharLength,showAvailableExtensions:this.ensureTypeBool(this.showExtensions)??!1,showExtensionsUnauthOnly:this.ensureTypeBool(this.showExtensionsUnauthOnly),visibleExtensionCount:this.ensureTypeIsPositiveNumber(this.visibleExtensionCount)??this.defaultExtensionCount,showExtensionPopup:!0,isAutoLanguageDetectionEnabled:this.ensureTypeBool(this.isAutoLanguageDetectionEnabled),useDictionary:this.ensureTypeBool(this.isDictionaryEnabled),dictionaryUrls:JSON.parse(this.dictionaryUrls??null),showTranslateButton:this.ensureTypeBool(this.showTranslateButton)},core:{appId:`${this.appId}|${rte}`,xApiKey:this.xApiKey,isAuth:this.ensureTypeBool(this.isAuth),showVendors:this.ensureTypeBool(this.showVendors),registerLink:this.registerLink,isWebComponent:!0,showDomains:this.ensureTypeBool(this.showDomains),maxDisplayedLanguages:this.ensureTypeIsPositiveNumber(this.maxDisplayedLanguages)??1,contactSupport:this.ensureTypeBool(this.contactSupport),subscriptionSupport:this.ensureTypeBool(this.subscriptionSupport)??!1,languageMenuVersion:this.ensureTypeIsPositiveNumber(this.languageMenuVersion),apiBaseUrl:this.apiBaseUrl,defaultSourceLanguage:this.srcLanguage,defaultTargetLanguage:this.trgLanguage,defaultDomain:this.domain,supportEmail:this.supportEmail},llm:{disableRephrasing:this.ensureTypeBool(!this.isLlmEnabled)??!0,disableSummarization:this.ensureTypeBool(!this.isLlmEnabled)??!0,apiUrl:this.llmServiceUrl},file:{allowedFileTypes:this.ensureTypeBool(this.isAuth)?this.parseStringToArray(this.allowedFileTypesAuthUser):this.parseStringToArray(this.allowedFileTypes),ocrPageLimit:this.ensureTypeIsPositiveNumber(this.ocrPageLimit),showTranslationLimits:!this.ensureTypeBool(this.isAuth),maxSize:this.ensureTypeIsPositiveNumber(this.maxFileSize),fileWordsLength:this.ensureTypeIsPositiveNumber(this.fileWordsLength)},term:{isCollectionsActivated:this.ensureTypeBool(this.isCollectionsActivated),terminologyPortalUrl:this.terminologyPortalUrl},quota:{apiUrl:this.quotaServiceUrl}},this.configService.initConfigs(this.config),this.terminologyConfigService.initConfigs({xApiKey:this.configService.coreConfig.xApiKey,appId:this.configService.coreConfig.appId,hideGlossaryMenuWithoutCollections:this.ensureTypeBool(this.hideGlossaryMenuWithoutCollections),showGlossaryMenuAdvertisement:!0,signInUrl:this.signInLink,startTrialUrl:this.registerLink,engineTermUrl:this.engineTermUrl,systemListUrl:this.systemListUrl,terminologyPortalUrl:this.terminologyPortalUrl,filterCollectionsByLanguageDirection:this.filterCollectionsByLanguageDirection}),this.addPlausible(),this.setTranslations(this.defaultUiLanguage),this.translate.setDefaultLang(this.defaultUiLanguage),this.changeLanguage(this.uiLanguage??this.defaultUiLanguage),this.watchHtmlLangAttributeChanges(),this.isConfigLoaded=!0}changeLanguage(i){this.setTranslations(i),this.translate.use(i)}parseStringToArray(i){return typeof i=="string"?JSON.parse(i):i}setTranslations(i){Kr[i]&&this.translate.setTranslation(i,Kr[i],!0),this.overrideTranslations(i)}overrideTranslations(i){if(!this.translations)return;let r=JSON.parse(this.translations);if(r[i]){let o=r[i];this.translate.setTranslation(i,o,!0)}}ensureTypeBool(i){return i===!0||i==="true"?!0:i===!1||i==="false"?!1:null}ensureTypeIsPositiveNumber(i){let r=parseInt(i);return r>=0?r:null}watchHtmlLangAttributeChanges(){let i=this.getHtmlLangAttribute();!this.uiLanguage&&i!==this.defaultUiLanguage&&this.changeLanguage(i);let r=l=>{for(let d of l)if(d.type==="attributes"&&d.attributeName===this.langAttributeKey){let f=this.getHtmlLangAttribute();this.changeLanguage(f)}},o=new MutationObserver(r),s=document.querySelector("html"),a={attributes:!0,attributeFilter:[this.langAttributeKey]};o.observe(s,a)}getHtmlLangAttribute(){return document.querySelector("html").getAttribute(this.langAttributeKey).split("-")[0]}addPlausible(){this.plausibleDomain?.length&&ms.addPlausible(this.plausibleDomain)}};n.\u0275fac=function(r){return new(r||n)(k(Pt),k(Re),k(wo))},n.\u0275cmp=ee({type:n,selectors:[["tld-translate-web"]],inputs:{allowedFileTypes:"allowedFileTypes",allowedFileTypesAuthUser:"allowedFileTypesAuthUser",ocrPageLimit:"ocrPageLimit",isAuth:"isAuth",maxCharLength:"maxCharLength",fileWordsLength:"fileWordsLength",showVendors:"showVendors",allowWebsiteTranslation:"allowWebsiteTranslation",showExtensions:"showExtensions",showExtensionsUnauthOnly:"showExtensionsUnauthOnly",registerLink:"registerLink",signInLink:"signInLink",appId:"appId",showDomains:"showDomains",maxDisplayedLanguages:"maxDisplayedLanguages",xApiKey:"xApiKey",isCollectionsActivated:"isCollectionsActivated",terminologyPromotion:"terminologyPromotion",contactSupport:"contactSupport",subscriptionSupport:"subscriptionSupport",visibleExtensionCount:"visibleExtensionCount",languageMenuVersion:"languageMenuVersion",isAutoLanguageDetectionEnabled:"isAutoLanguageDetectionEnabled",hideGlossaryMenuWithoutCollections:"hideGlossaryMenuWithoutCollections",isLlmEnabled:"isLlmEnabled",apiBaseUrl:"apiBaseUrl",engineTermUrl:"engineTermUrl",systemListUrl:"systemListUrl",terminologyPortalUrl:"terminologyPortalUrl",llmServiceUrl:"llmServiceUrl",quotaServiceUrl:"quotaServiceUrl",plausibleDomain:"plausibleDomain",isDictionaryEnabled:"isDictionaryEnabled",dictionaryUrls:"dictionaryUrls",uiLanguage:"uiLanguage",defaultUiLanguage:"defaultUiLanguage",srcLanguage:"srcLanguage",trgLanguage:"trgLanguage",domain:"domain",supportEmail:"supportEmail",maxFileSize:"maxFileSize",showTranslateButton:"showTranslateButton",filterCollectionsByLanguageDirection:"filterCollectionsByLanguageDirection",translations:"translations"},standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"]],template:function(r,o){r&1&&R(0,ite,1,0,"tld-translate",0),r&2&&v("ngIf",o.isConfigLoaded)},dependencies:[je,z2],styles:['@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v145/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format("woff2")}.material-icons[_ngcontent-%COMP%]{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}@font-face{font-family:Material Icons Outlined;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialiconsoutlined/v110/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUce.woff2) format("woff2")}.material-icons-outlined[_ngcontent-%COMP%]{font-family:Material Icons Outlined;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}[_ngcontent-%COMP%]:root{--default-border-radius: 4px;--default-border-width: 2px}.mat-loading[_ngcontent-%COMP%] .mdc-button__label[_ngcontent-%COMP%]{visibility:hidden}.mat-loading[_ngcontent-%COMP%] .mat-mdc-progress-spinner[_ngcontent-%COMP%]{position:absolute;top:calc(50% - 10px);left:calc(50% - 10px)}[mat-menu-item].align-v-middle[_ngcontent-%COMP%] *[_ngcontent-%COMP%], button.align-v-middle[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{vertical-align:middle}.link-button[_ngcontent-%COMP%]:visited, .link-button[_ngcontent-%COMP%]:hover, .link-button[_ngcontent-%COMP%]:active, .link-button[_ngcontent-%COMP%]:link{text-decoration:none}mat-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{vertical-align:initial}.mat-mdc-icon-button[_ngcontent-%COMP%]:not([disabled]){color:var(--base-30)!important}.success-icon[_ngcontent-%COMP%]{color:var(--success-dark)}.error-icon[_ngcontent-%COMP%]{color:var(--error-dark)}.icon-center-vertically[_ngcontent-%COMP%]{vertical-align:middle}.mat-mdc-dialog-container[_ngcontent-%COMP%]{min-width:22rem;width:40rem!important}.mat-mdc-dialog-container[_ngcontent-%COMP%] h1[mat-dialog-title].mat-mdc-dialog-title[_ngcontent-%COMP%], .mat-mdc-dialog-container[_ngcontent-%COMP%] [mat-dialog-title].mat-dialog-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.5rem!important;font-weight:500!important;margin-bottom:0!important}mat-dialog-actions[_ngcontent-%COMP%]{display:flex;gap:8px;margin-right:1em!important;margin-bottom:.75em!important}.mdc-dialog__title[_ngcontent-%COMP%]{max-width:fit-content}.responsive-dialog[_ngcontent-%COMP%] .mat-mdc-dialog-container[_ngcontent-%COMP%]{width:100%!important;min-width:0!important}.mat-mdc-dialog-content[_ngcontent-%COMP%]{color:inherit!important}.close[_ngcontent-%COMP%]{position:absolute!important;top:1rem!important;right:1rem!important;z-index:1!important}.mat-mdc-dialog-surface[_ngcontent-%COMP%]{border-radius:12px!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:var(--base-95);background-clip:padding-box}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:var(--base-100)}@media (max-width: 959px){.cdk-overlay-pane[_ngcontent-%COMP%]{max-width:100%!important}.close[_ngcontent-%COMP%]{top:.25rem!important;right:.25rem!important}}strapi-html[_ngcontent-%COMP%] .text-tiny[_ngcontent-%COMP%]{font-size:.7rem}strapi-html[_ngcontent-%COMP%] .text-small[_ngcontent-%COMP%]{font-size:.85rem}strapi-html[_ngcontent-%COMP%] .text-big[_ngcontent-%COMP%]{font-size:1.4rem}strapi-html[_ngcontent-%COMP%] .text-huge[_ngcontent-%COMP%]{font-size:1.8rem}.semi-bold[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] a[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .text-s-semi-bold[_ngcontent-%COMP%], .text-m-semi-bold[_ngcontent-%COMP%], .text-l-semi-bold[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .text-xl-semi-bold[_ngcontent-%COMP%], .text-2-xl[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .text-3-xl[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .text-4-xl[_ngcontent-%COMP%]{font-weight:600}@media (min-width: 600px){.text-4-xl[_ngcontent-%COMP%]{font-size:2rem;line-height:3.375rem}}@media (min-width: 0) and (max-width: 599.9px){.text-4-xl[_ngcontent-%COMP%]{font-size:2rem;line-height:2.625rem}}.text-3-xl[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.75rem;line-height:2.625rem}.text-2-xl[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2.125rem}.text-xl[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .text-xl-semi-bold[_ngcontent-%COMP%]{font-size:1.25rem;line-height:2rem}.text-l[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%], .text-l-semi-bold[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:1rem;line-height:1.625rem}.text-m[_ngcontent-%COMP%], .text-m-semi-bold[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.4375rem}.text-s[_ngcontent-%COMP%], .text-s-semi-bold[_ngcontent-%COMP%]{font-size:.75rem;line-height:1.25rem}.tld-container[_ngcontent-%COMP%]{max-width:87rem;margin-left:auto;margin-right:auto;padding:0 2rem;width:100%}@media (min-width: 0) and (max-width: 599.9px){.tld-container[_ngcontent-%COMP%]{padding:0 1rem}}strapi-feature-list[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%]{color:var(--base-30)}strapi-feature-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] a[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--primary-accent)!important}strapi-feature-list[_ngcontent-%COMP%] a.mdc-button--raised[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] a.mdc-button--raised[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] a.mdc-button--raised[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] a.mdc-button--raised[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] a.mdc-button--raised[_ngcontent-%COMP%]{text-decoration:none;color:var(--base-100)!important;background-color:var(--primary-accent)!important}strapi-feature-list[_ngcontent-%COMP%] a.mdc-button--outlined[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] a.mdc-button--outlined[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] a.mdc-button--outlined[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] a.mdc-button--outlined[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] a.mdc-button--outlined[_ngcontent-%COMP%]{background-color:transparent!important}strapi-feature-list[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], strapi-feature-list[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:var(--base-10)}strapi-feature-list[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], strapi-html[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], dynamic-zone[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .universal-page-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-weight:700}strapi-html[_ngcontent-%COMP%]{margin-top:4rem}.strapi-feature-list[_ngcontent-%COMP%] .strapi-feature-list-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .strapi-feature-list[_ngcontent-%COMP%] .strapi-feature-list-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .strapi-feature-list[_ngcontent-%COMP%] .strapi-feature-list-title[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .strapi-feature-list[_ngcontent-%COMP%] .strapi-feature-list-title[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .strapi-feature-list[_ngcontent-%COMP%] .strapi-feature-list-title[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .strapi-feature-list[_ngcontent-%COMP%] .strapi-feature-list-title[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin-bottom:4rem;font-weight:700}[_nghost-%COMP%] .mdc-notched-outline__notch:has(.mdc-floating-label){border-right:none!important;border-left:none!important}[_nghost-%COMP%] .mat-mdc-icon-button, [_nghost-%COMP%] .mat-mdc-icon-button .mat-mdc-button-touch-target{height:40px!important;width:40px!important}[_nghost-%COMP%] .mat-mdc-icon-button mat-icon, [_nghost-%COMP%] .mat-mdc-icon-button .material-icons, [_nghost-%COMP%] .mat-mdc-icon-button .material-icons-outlined{position:absolute!important;top:8px!important;left:8px!important}[_nghost-%COMP%] .tld-custom-select .mat-mdc-select-value{max-width:100px!important;width:100%!important;overflow:hidden;text-overflow:ellipsis;color:var(--accent);margin-right:.5rem!important}[_nghost-%COMP%] .tld-custom-select .mat-mdc-select-arrow{color:var(--accent)!important}[_nghost-%COMP%] h1[mat-dialog-title]{margin-top:12px}']});let t=n;return t})();var G2=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=ee({type:n,selectors:[["app-root"]],standalone:!1,decls:1,vars:0,consts:[["clientId","clientId","app-id","TildeMT|Web"]],template:function(r,o){r&1&&Q(0,"tld-translate-web",0)},dependencies:[Qy],encapsulation:2});let t=n;return t})();var W2=()=>({provide:cx,useFactory:t=>({sharedConfiguration:{xAppId:t.coreConfig?.appId},llmService:{url:t?.llmConfig?.apiUrl},quotaService:{url:t?.quotaConfig?.apiUrl},speechApi:{url:""}}),deps:[Re]});var Y2=xA(q2());typeof window<"u"&&(typeof window.$>"u"&&(window.$=Y2),typeof window.jQuery>"u"&&(window.jQuery=Y2));var $2=(t,n)=>{let e=b(Re);if(e.coreConfig.xApiKey){let i=t.clone({setHeaders:{"X-Api-Key":`${e.coreConfig.xApiKey}`}});return n(i)}return n(t)};var Z2=(()=>{let n=class n{constructor(i){let r=$L(Qy,{injector:i});customElements.define("tilde-translate-box",r)}ngDoBootstrap(i){document.querySelector("app-root")&&i.bootstrap(G2)}};n.\u0275fac=function(r){return new(r||n)(H(Ne))},n.\u0275mod=le({type:n}),n.\u0275inj=ae({providers:[dp(_C([$2])),W2()],imports:[YR,sp,V2.forRoot(),hn.forRoot({missingTranslationHandler:{provide:qa,useClass:sy}}),zr,fs]});let t=n;return t})();var X2={production:!0};X2.production&&void 0;pC().bootstrapModule(Z2).catch(t=>console.error(t));