PageSourceSearch

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

js knorr-bremse.com collected 2026-09-24 08:29:57 UTC 14,785 bytes, 2 lines download raw bytes

1import{a as De,b as Xe}from"./chunk-GWQCMZ6W.js";import{a as ze}from"./chunk-UG7YBOA6.js";import{b as o,c as Be}from"./chunk-VA6LXZ5W.js";import{b as Ie}from"./chunk-7Y6Q6322.js";import"./chunk-S4AWNSO7.js";import{e as Ee,f as Pe,g as Oe,i as z,k as Me,m as Te,o as Ae,q as ke,z as Fe}from"./chunk-UEE7DFF5.js";import{a as Le}from"./chunk-SBZRMRFI.js";import{a as ve}from"./chunk-XNG7K7YH.js";import{a as Ne}from"./chunk-GZAELS7D.js";import{a as we}from"./chunk-VNJKHQVV.js";import{c as xe}from"./chunk-VWIFQUFK.js";import{a as $e}from"./chunk-CGVGCYTP.js";import{b as Ge}from"./chunk-E47CLQCT.js";import{a as H}from"./chunk-7QSQH44D.js";import{a as Re}from"./chunk-63AFCMXB.js";import{a as He}from"./chunk-6SQUI5RL.js";import{d as fe,f as he,g as ye,h as be}from"./chunk-FNKCSJ2W.js";import"./chunk-NBCYNH3F.js";import{b as me}from"./chunk-35KNJDM3.js";import{g as B,h as I}from"./chunk-ICF6KCOZ.js";import{c as Se}from"./chunk-RVWYYRQD.js";import"./chunk-WG2N6DNQ.js";import"./chunk-VG5YGNY5.js";import{K as Ce,O as ge,c as x}from"./chunk-OGUNFBL3.js";import{e as de,h as ue}from"./chunk-GSBPI73C.js";import{l as _e,m as pe}from"./chunk-MDFI7MM2.js";import"./chunk-QXPBSCBE.js";import{m as ae,o as le,s as se,w as ce}from"./chunk-46TIY27H.js";import{Gc as R,Ic as re,Jc as F,Lb as v,M as Y,Ob as C,Pa as K,Pb as te,Qb as g,Sb as w,Sc as oe,Tb as $,Ub as G,Vb as u,Wb as _,Wc as S,Xb as c,Xc as y,Yb as f,ac as O,ba as N,bc as M,da as L,ea as Q,fc as ne,hb as l,k as j,lc as P,oa as h,qc as ie,sb as ee,sc as m,ta as J,ua as Z,w as k,x as V}from"./chunk-ZKNABTT2.js";var qe=e=>({value:e});function je(e,a){if(e&1&&(_(0,"kb-chip",17),R(1),c()),e&2){let n=a.$implicit,r=m(2);u("value",n.value),l(),F(" ",r.filterTypeTranslations[n.value]," (",n.count,") ");}}function Ve(e,a){if(e&1&&(_(0,"kb-chip-set",12)(1,"kb-chip",15),O(2),P(3,2),M(),f(4,"kb-icon",16),c(),$(5,je,2,3,"kb-chip",17,w),c()),e&2){let n=m();l(4),u("icon",n.iconAllFilter),l(),G(a);}}function Ye(e,a){if(e&1&&(R(0),S(1,"date"),S(2,"date")),e&2){let n=m().$implicit;F(" ",y(1,2,n.startDate)," - ",y(2,4,n.endDate)," ");}}function Qe(e,a){if(e&1&&(O(0),P(1,3),M(),R(2),S(3,"bytes")),e&2){let n=m().$implicit;l(2),re(" (",y(3,1,n.fileSize),") ");}}function Je(e,a){e&1&&(O(0),P(1,4),M());}function Ze(e,a){if(e&1&&(_(0,"div",26),f(1,"kb-picture",27),c()),e&2){let n=m().$implicit;l(),u("picture",n.picture.sources)("alt",n.picture.alt)("rootColumns",2);}}function Ke(e,a){if(e&1&&(_(0,"section",19)(1,"a",20)(2,"div"),f(3,"h3",21),_(4,"p",22),C(5,Ye,3,6),c(),_(6,"kb-line-clamp",23),f(7,"kb-html",24),c(),_(8,"span",25),C(9,Qe,4,3)(10,Je,2,0,"ng-container"),c()(),C(11,Ze,2,3,"div",26),c()(),f(12,"hr")),e&2){let n=a.$implicit,r=m(2);l(),u("kbRouterOrExternalLink",n.link),v("target",n.type===r.resultTypes.File?"_blank":null),l(),v("kb-grid-item-columns",n.picture?9:12),l(),u("html",n.title),l(2),g(n.type===r.resultTypes.Event?5:-1),l(2),u("html",n.content),l(2),g(n.fileSize?9:10),l(2),g(n.picture?11:-1);}}function et(e,a){e&1&&f(0,"kb-progress-indicator",18),e&2&&u("visible",!0);}function tt(e,a){if(e&1){let n=ne();_(0,"button",29),ie("click",function(){J(n);let t=m(4);return Z(t.preparedSearch.next());}),O(1),P(2,5),M(),f(3,"kb-icon",30),c();}if(e&2){let n=m(4);l(3),u("icon",n.iconLoadMore);}}function nt(e,a){e&1&&(_(0,"p",22),O(1),P(2,6),M(),c());}function it(e,a){if(e&1&&(C(0,tt,4,1,"button",28),C(1,nt,3,0,"p",22)),e&2){let n=m(),r=m();g(n.value!==0&&r.length<n.value?0:-1),l(),g(n.value===0?1:-1);}}function rt(e,a){e&1&&C(0,it,2,2),e&2&&g(a.value!==null?0:-1);}function ot(e,a){if(e&1&&(_(0,"div",14),$(1,Ke,13,8,null,null,w),C(3,et,1,1,"kb-progress-indicator",18),S(4,"async"),C(5,rt,1,1),S(6,"async"),c()),e&2){let n,r=m();l(),G(a),l(2),g(y(4,2,r.loading$)?3:-1),l(2),g((n=oe(6,qe,y(6,4,r.numResults$)))?5:-1,n);}}function at(e,a){e&1&&f(0,"kb-progress-indicator",18),e&2&&u("visible",!0);}function lt(e,a){if(e&1&&(C(0,at,1,1,"kb-progress-indicator",18),S(1,"async")),e&2){let n=m();g(y(1,1,n.loading$)?0:-1);}}var st="PS_COMMON",ct=5,D="query",We="type",s=function(e){return e.Document="document",e.Page="page",e.MagazineArticle="magazine_article",e.PressRelease="press_release",e.Event="event",e.Product="product",e.CrossReference="cross-reference",e.Software="software",e.Training="training",e;}(s||{}),_t=new Set(Object.values(s));function pt(e){return _t.has(e);}var b=function(e){return e.InvestorRelations="investor-relations",e.Webshop="webshop",e;}(b||{});function Ue(e){return e.type_keyword[0]===s.Document;}function dt(e){return Ue(e)&&!("subType_keyword"in e);}function ut(e){return Ue(e)&&"subType_keyword"in e&&e.subType_keyword[0]===b.InvestorRelations;}function mt(e){return e.type_keyword[0]===s.Page&&!("subType_keyword"in e);}function Ct(e){return e.type_keyword[0]===s.Page&&"subType_keyword"in e&&e.subType_keyword[0]===b.InvestorRelations;}function gt(e){return e.type_keyword[0]===s.MagazineArticle;}function ft(e){return e.type_keyword[0]===s.PressRelease&&!("subType_keyword"in e);}function ht(e){return e.type_keyword[0]===s.PressRelease&&"subType_keyword"in e&&e.subType_keyword[0]===b.InvestorRelations;}function St(e){return e.type_keyword[0]===s.Event;}function yt(e){return e.type_keyword[0]===s.Product&&"subType_keyword"in e&&e.subType_keyword[0]===b.Webshop;}function bt(e){return e.type_keyword[0]===s.CrossReference&&"subType_keyword"in e&&e.subType_keyword[0]===b.Webshop;}function Et(e){return e.type_keyword[0]===s.Document&&"subType_keyword"in e&&e.subType_keyword[0]===b.Webshop;}function Pt(e){return e.type_keyword[0]===s.Software&&"subType_keyword"in e&&e.subType_keyword[0]===b.Webshop;}function Ot(e){return e.type_keyword[0]===s.Training&&"subType_keyword"in e&&e.subType_keyword[0]===b.Webshop;}var p=function(e){return e.File="file",e.Page="page",e.News="news",e.Event="event",e.Product="product",e.CrossReference="cross-reference",e.Software="software",e.Training="training",e.WebshopDocument="webshop-document",e;}(p||{});function A(...e){return e.filter(a=>a).join("<br>");}function T(e,a){return a?`${e}: ${a}`:"";}var on=(()=>{class e{meta=h(_e);title=h(pe);iconSearch=Le;iconAllFilter=H;iconLoadMore=H;resultTypes=p;filterTypeTranslations={[s.Event]:"Event",[s.MagazineArticle]:"Magazine Article",[s.Page]:"Page",[s.Document]:"Document",[s.PressRelease]:"Press Release",[s.Product]:"Product",[s.CrossReference]:"Cross Reference",[s.Softw
1are]:"Software",[s.Training]:"Training"};platformBrowser=ce(h(K));route=h(de);router=h(ue);mappService=h(Ie);logger=Ce(me.Renderer);preparedSearch=h(Be).prepareSearch(st,ct);searchForm=new Oe({query:new z(this.route.snapshot.queryParamMap.get(D)??"",{nonNullable:!0}),typeFilter:new z("",{nonNullable:!0})});filterTypes$=this.preparedSearch.results$.pipe(k(n=>n.facets?.type));numResults$=this.preparedSearch.results$.pipe(k(n=>n.numRows));loading$=this.preparedSearch.loading$;results$=this.preparedSearch.results$.pipe(Q(n=>{n.numRows!==null&&this.mappService.trackInternalSearch(this.searchForm.controls.query.value,n.numRows);}),k(n=>n.rows.map(r=>{try{let t=r.result,i=r.highlighting;if(dt(t))return{link:t.link,type:p.File,title:o(i.title,t.title),content:o(i.abstract,t.abstract),fileSize:t.fileSize_long};if(ut(t))return{link:t.link,type:p.File,title:o(i.title,i.fileName,t.title,t.fileName),content:o(i.abstract,t.abstract),fileSize:t.fileSize_long};if(mt(t))return{link:t.link,type:p.Page,title:o(i.headline,i.title,t.headline,t.title),content:o(i.abstract,i.content,i.intro,t.abstract)};if(Ct(t))return{link:t.link,type:p.Page,title:o(i.headline,i.title,t.headline,t.title),content:o(i.abstract,i.content,t.abstract)};if(gt(t)||ft(t))return{link:t.link,type:p.News,title:o(i.headline,t.headline),content:o(i.abstract,i.content,t.abstract),picture:I(JSON.parse(t.image_stored_only[0]).attributes,x.Standard)};if(ht(t))return{link:t.link,type:p.News,title:o(i.headline,t.headline),content:o(i.abstract,i.content,t.abstract)};if(St(t))return{link:t.link,type:p.Event,title:o(i.name,t.name),content:o(i.abstract,i.content,t.abstract),picture:I(JSON.parse(t.image_stored_only[0]).attributes,x.Standard),startDate:new Date(t.start_date),endDate:new Date(t.end_date)};if(yt(t)){let d={link:t.link,type:p.Product,title:o(t.partNumber),content:A(o(t.typeNumber_keyword),o(i.abstract,t.abstract),o(t.status_keyword))};return t.imageUrl_stored_only&&(d.picture=B(t.imageUrl_stored_only[0])),d;}if(bt(t)){let d={link:t.link,type:p.CrossReference,title:o(t.internalPartNumber),content:A(o(t.typeNumber_keyword),o(i.title,t.title),o(t.status_keyword),T("Cross Reference",o(t.crossReferencePartNumber)),T("Manufacturer",o(t.crossReferenceManufacturer_keyword)))};return t.imageUrl_stored_only&&(d.picture=B(t.imageUrl_stored_only[0])),d;}if(Et(t))return{link:t.link,type:p.WebshopDocument,title:o(i.title,t.title),content:A(o(t.documentNumber),o(t.category_keyword))};if(Pt(t))return{link:t.link,type:p.Software,title:o(t.softwarePackageName),content:A(T("Software Group",o(t.softwareGroup_keyword)),T("Software Type",o(t.softwareType_keyword)),T("Software Package Type",o(t.softwarePackageType_keyword)))};if(Ot(t))return{link:t.link,type:p.Training,title:o(i.title,t.title),content:A(T("Shortcode",o(t.trainingShortCode_keyword)),o(i.abstract,i.content,t.abstract))};this.logger.warning("Could not match search result type",{row:r});}catch(t){this.logger.warning("Failed to transform search result",{row:r,error:t});}}).filter(r=>r!==void 0)));destroy$=new j();projectedMultipleTypeFilters=!1;activeTypeFilters=[];settings=h(he);titleSuffix=Se(this.settings.titleSuffix);constructor(){h(be).setSpecialPage(),this.meta.updateTag({name:"robots",content:"noindex"});}ngOnInit(){let n=this.route.snapshot.paramMap.get("region");this.settings.setRegionCode(n),this.route.queryParamMap.pipe(L(this.destroy$)).subscribe(r=>{let t=r.get(D);if(t===null)return;let i=this.getTypeFiltersFromQueryParams(r);this.activeTypeFilters=i,this.projectedMultipleTypeFilters=i.length>1;let d=i.length===1?i[0]:"";this.searchForm.controls.typeFilter.setValue(d,{emitEvent:!1}),i.length>0?this.preparedSearch.setFacetFilterManually("type",i):this.preparedSearch.removeFacetFilter("type"),this.searchForm.controls.query.setValue(t,{emitEvent:!1}),n?this.preparedSearch.setFacetFilterManually("countryCode",[n,fe]):this.preparedSearch.removeFacetFilter("countryCode"),this.preparedSearch.setQuery(t);}),V([this.searchForm.controls.query.valueChanges.pipe(N(this.searchForm.controls.query.value),Y(800)),this.searchForm.controls.typeFilter.valueChanges.pipe(N(this.searchForm.controls.typeFilter.value))]).pipe(L(this.destroy$)).subscribe(([r,t])=>{let i=this.getEffectiveTypeFilters(t);this.router.navigate([],ye({relativeTo:this.route,queryParams:{[D]:r||void 0,[We]:i.length>0?i:void 0},queryParamsHandling:"merge",replaceUrl:!0},this.platformBrowser)),this.title.setTitle(`${r}${this.titleSuffix()}`),i.length>0?this.preparedSearch.setFacetFilterManually("type",i):this.preparedSearch.removeFacetFilter("type"),this.preparedSearch.setQuery(r);});}getTypeFiltersFromQueryParams(n){let r=n.getAll(We).flatMap(t=>t.split(",")).map(t=>t.trim()).filter(t=>t.length>0).filter(pt);return Array.from(new Set(r));}getEffectiveTypeFilters(n){return n?(this.projectedMultipleTypeFilters=!1,this.activeTypeFilters=[n],this.activeTypeFilters):this.projectedMultipleTypeFilters?this.activeTypeFilters:(this.activeTypeFilters=[],this.activeTypeFilters);}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.preparedSearch.close();}static ɵfac=function(r){return new(r||e)();};static ɵcmp=ee({type:e,selectors:[["app-global-search"]],decls:14,vars:9,consts:()=>{let n;n="Search";let r;r="Search";let t;t="Your search.";let i;i="Search results";let d;d="All";let X;X="Download";let W;W="Read more";let U;U="Load more";let q;return q="Your search returned no results.",[t,i,d,X,W,U,q,["kb-grid-item-columns","12"],["kb-grid-item-columns","12","kb-heading",""],["kb-grid-item-columns","12","kb-next-grid-row","related","kb-layout","flex",1,"indented",3,"formGroup"],["formControlName","query","on","background","ariaLabel",n,"placeholder",r,"type","search",1,"search-input",3,"standalone"],["slot","trailer","aria-hidden","true","icon-uppercase","","icon-center","",3,"icon"],["type","filter","formControlName","typeFilter","name","typeFilter"],["kb-grid-item-columns","12","kb-next-grid-row","related","kb-heading","","type","divider"],["kb-grid-item-columns","8","kb-layout","flex",1,"global-search-results","indented"],["type","filter","value",""],["icon-uppercase","","icon-center","",3,"icon"],["type","filter",3,"value"],[3,"visible"],[1,"global-search-result-item"],["kb-layout","grid",3,"kbRouterOrExternalLink"],["kb-heading","","kb-html","",3,"html"],["kb-paragraph",""],["lines","4","kb-paragraph",""],[3,"html"],["kb-standalone-link",""],["kb-grid-item-columns","3"],[3,"picture","alt","rootColumns"],["kb-button",""],["kb-button","",3,"click"],[3,"icon"]];},template:function(r,t){if(r&1&&(_(0,"kb-main-grid"),f(1,"div",7),_(2,"h1",8),P(3,0),c(),_(4,"form",9)(5,"kb-input",10),f(6,"kb-icon",11),c(),C(7,Ve,7,1,"kb-chip-set",12),S(8,"async"),c(),_(9,"h2",13),P(10,1),c(),C(11,ot,7,8,"div",14),S(12,"async"),te(13,lt,2,3),c()),r&2){let i,d;l(4),u("formGroup",t.searchForm),l(),u("standalone",!0),l(),u("icon",t.iconSearch),l(),g((i=y(8,5,t.filterTypes$))?7:-1,i),l(4),g((d=y(12,7,t.results$))?11:13,d);}},dependencies:[se,ke,Me,Ee,Pe,Te,Ae,ge,xe,Ne,ve,we,Re,He,Xe,De,Fe,$e,Ge,ae,le,ze],styles:[`[_nghost-%COMP%]{display:block}[_nghost-%COMP%]   .indented[_ngcontent-%COMP%]{margin-left:var(--kb-gap--outer-row)}[_nghost-%COMP%]   kb-chip-set[_ngcontent-%COMP%]{margin-left:0;flex-basis:100%}[_nghost-%COMP%]   kb-progress-indicator[_ngcontent-%COMP%]{flex-basis:100%}[_nghost-%COMP%]   .global-search-results[_ngcontent-%COMP%]   .global-search-result-item[_ngcontent-%COMP%], [_nghost-%COMP%]   .global-search-results[_ngcontent-%COMP%]   hr[_ngcontent-%COMP%]{flex-basis:100%}[_nghost-%COMP%]   .global-search-results[_ngcontent-%COMP%]   .global-search-result-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}[_nghost-%COMP%]   .global-search-results[_ngcontent-%COMP%]   .global-search-result-item[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], [_nghost-%COMP%]   .global-search-results[_ngcontent-%COMP%]   .global-search-result-item[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%]   .global-search-results[_ngcontent-%COMP%]   .global-search-result-item[_ngcontent-%COMP%]   kb-line-clamp[_ngcontent-%COMP%]{display:block}
2/*# sourceMappingURL=global-search.component-JRNE5MLU.css.map */`],changeDetection:0});}return e;})();export{on as GlobalSearchComponent};/**i18n:9b2f1e34af068233b6abd63a66684d4e9dbff90014448b8ec97e38af3af71f01*///# sourceMappingURL=chunk-FN2ZIU5B.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.