PageSourceSearch

https://rail.knorr-bremse.com/en/chunk-S4AWNSO7.js

js knorr-bremse.com collected 2026-09-24 08:26:35 UTC 4,585 bytes, 3 lines download raw bytes

1import{f as j,h as D}from"./chunk-FNKCSJ2W.js";import{a as i}from"./chunk-RVWYYRQD.js";import{c as T,h as $}from"./chunk-GSBPI73C.js";import{x as p}from"./chunk-46TIY27H.js";import{C as v,I as f,M as g,O as S,Pa as l,ba as k,ja as d,k as y,m as a,ma as u,oa as s,p as b,v as C,x as c,ya as w,za as I}from"./chunk-ZKNABTT2.js";var o=class{_id;constructor(h){this._id=h}get id(){return this._id}},A=new u("user-consent:manager"),m=class{categoryId;userConsentManager;givenSubject$=new a(1);given$=this.givenSubject$.asObservable();constructor(h,e,t){this.categoryId=h,this.userConsentManager=e,t?this.givenSubject$.next(!1):this.userConsentManager.isBot()?this.givenSubject$.next(!0):this.userConsentManager.acceptedCategories$.pipe(i()).subscribe(n=>{this.givenSubject$.next(n.includes(this.categoryId))})}async request(){return this.userConsentManager.request(this.categoryId)}consent(){this.userConsentManager.consent(this.categoryId)}onDestroy(){this.givenSubject$.complete()}},H=(()=>{class r{userConsentManager=s(A);instances=new Map;platformServer=p(s(l));forCategory(e){return this.instances.has(e.id)||this.instances.set(e.id,new m(e.id,this.userConsentManager,this.platformServer)),this.instances.get(e.id)}ngOnDestroy(){this.instances.forEach(e=>e.onDestroy())}static \u0275fac=function(t){return new(t||r)};static \u0275prov=d({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var x=new u("oneTrustServiceConfiguration"),_=new o("C0001"),J=new o("C0002"),Q=new o("C0003"),X=new o("C0004"),Z=(()=>{class r{acceptedCategoriesSubject$=new a(1);acceptedCategories$=this.acceptedCategoriesSubject$.asObservable();loaded$=new a(1);router=s($);document=s(w);configuration=s(x);settingsService=s(j);platformId=s(l);pageService=s(D);destroyRef=s(I);ngOnDestroy(){this.loaded$.complete()}async request(){throw new Error("Method not implemented.")}consent(e){OneTrust.UpdateConsent("Category",`${e}:1`)}isBot(){for(let e of["bot","spider","OneTrust","slurp","crawler"])if(navigator.userAgent.toLowerCase().includes(e.toLowerCase()))return!0;return!1}init(){p(this.platformId)||(this.settingsService.oneTrustDomainScript.pipe(S(1),f(e=>!!e),i(this.destroyRef)).subscribe(e=>{this.setupScriptLoadedHandler(),this.loadScript(e)}),this.setupConsentChangedHandler(),this.setupCookieDetailsLinkHandler(),this.setupRenderButtonAndListHandler(),this.setupHideInitialDialogHandler())}renderButtonAndList$=new y;renderButtonAndList(){this.renderButtonAndList$.next()}setupCookieDetailsLinkHandler(){c([this.settingsService.cookieMoreLink,this.settingsService.privacyPolicyLink,this.loaded$]).pipe(i(this.destroyRef)).subscribe(([e,t])=>{this.document.getElementById("ot--cookie-notice-link")?.setAttribute("href",e),this.document.getElementById("ot--privacy-notice-link")?.setAttribute("href",t)})}setupConsentChangedHandler(){v(window,"OneTrustGroupsUpdated").pipe(i(this.destroyRef)).subscribe(e=>{this.acceptedCategoriesSubject$.next(e.detail)})}loadScript(e){let t=`${e}${this.configuration.production?"":"-test"}`,n=this.document.createElement("script");n.src=`https://cdn.cookielaw.org/consent/${t}/otSDKStub.js`,n.async=!0,n.setAttribute("type","text/javascript"),n.setAttribute("charset",'"UTF-8'),n.setAttribute("data-document-language","true"),n.setAttribute("data-domain-script",t),this.document.head.insertBefore(n,this.document.head.firstChild)}setupScriptLoadedHandler(){let e=!1;window.OptanonWrapper=()=>{e||(e=!0,this.loaded$.next())}}setupHideInitialDialogHandler(){c([this.loaded$,this.router.events.pipe(f(e=>e instanceof T),k(b))]).pipe(g(0),i(this.destroyRef)).subscribe(async()=>{let e=await C(this.pageService.page);if(!OneTrust.IsAlertBoxClosed()){let t=this.document.querySelector(".onetrust-pc-dark-filter"),n=this.document.querySelector("#onetrust-pc-sdk");e.disableInitialCookieDialog?(t.style.display="none",n.style.display="none"):(t.style.removeProperty("display"),n.style.removeProperty("display"))}})}setupRenderButtonAndListHandler(){c([this.renderButtonAndList$,this.loaded$]).pipe(g(0),i(this.destroyRef)).subscribe(async()=>{OneTrust.initializeCookiePolicyHtml(),this.document.querySelectorAll(".ot-sdk-show-settings").forEach(t=>{t.removeEventListener("click",OneTrust.ToggleInfoDisplay),t.addEventListener("click",OneTrust.ToggleInfoDisplay)})})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=d({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{A as a,H as b,x as c,J as d,X as e,Z as f};
2/**i18n:9b2f1e34af068233b6abd63a66684d4e9dbff90014448b8ec97e38af3af71f01*/
3//# sourceMappingURL=chunk-S4AWNSO7.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.