1import{a as S}from"./chunk-JDLRJ3EN.js";import{R as v,da as T}from"./chunk-5B73PZKH.js";import{$ as u,Be as d,Fa as b,_ as f}from"./chunk-BDKH7HVI.js";import{Hb as o,e as n,gd as m,hc as l,hd as h,ic as g,jc as p,na as a,xc as c}from"./chunk-4Q6BE6NT.js";import"./chunk-DIQPMGB2.js";var x=(()=>{class r{constructor(){this.mgnlOverviewService=a(T),this.mgnlPageService=a(v),this.urlHashService=a(d),this.hostConfig=a(b),this.pageCategories=[],this.facets=null,this.tags=[],this.tagsSubject=new n([]),this.tags$=this.tagsSubject.asObservable()}ngOnInit(){this.mgnlPageService.pageCategories$.subscribe(e=>{this.pageCategories=e,this.mgnlOverviewService.getData(this.metadata["@path"],[]).subscribe(t=>{this.facets=t.facets[0],this.facets&&(this.facets.children.map(i=>{if(this.pageCategories?.find(s=>s["@path"]===i.id)){let s={id:i.id,label:i.label,path:this.facets?.id};this.tags.push(s)}}),this.tagsSubject.next(this.tags))})})}selectTag(e){let t=this.topicsHubPage["@link"];if(t){let i=this.hostConfig?.publishServer||window.location.origin,s=new URL(t,i);this.urlHashService.redirect(s,this.mapTagToUrlFilter(e))}}mapTagToUrlFilter(e){return{topicsHub:[{filter:e.id,value:e.label}]}}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275cmp=o({type:r,selectors:[["basf-mgnl-tag-list"]],inputs:{topicsHubPage:"topicsHubPage",metadata:"metadata"},decls:2,vars:5,consts:[[3,"selectionTagFilter","items$","multiple","filtersLabel"]],template:function(t,i){t&1&&(g(0,"basf-wxp-tags-filter",0),m(1,"translate"),c("selectionTagFilter",function(C){return i.selectTag(C)}),p()),t&2&&l("items$",i.tags$)("multiple",!1)("filtersLabel",h(1,3,"tag-list.tagsLabel"))},dependencies:[S,u,f],encapsulation:2})}}return r})();export{x as MgnlTagListComponent};
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.