1"use strict";(self.webpackChunkdspace_angular=self.webpackChunkdspace_angular||[]).push([[996],{4255(D,U,r){r.d(U,{U:()=>j});var g=r(59640),F=r(84572),I=r(7673),f=r(96354),B=r(23294),L=r(89777),C=r(8417),P=r(77868),h=r(75548),b=r(73664);let T=(()=>{var u;class p{constructor(){this.specials=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],this.regex=RegExp("["+this.specials.join("\\")+"]","g")}transform(t,s){const m=this.escapeRegExp(s),d=new RegExp(m,"gi");return t.replace(d,"<em>$&</em>")}escapeRegExp(t){return t.replace(this.regex,"\\$&")}static#e=u=()=>(this.\u0275fac=function(s){return new(s||p)},this.\u0275pipe=b.EJ8({name:"dsEmphasize",type:p,pure:!0}))}return u(),p})();var x=r(70998),M=r(87507),e=r(4093),V=r(40645),y=r(2615);const O=u=>u.searchFilter;let j=(()=>{var u;class p{constructor(t,s,m){this.searchService=t,this.store=s,this.routeService=m}isFilterActiveWithValue(t,s){return this.routeService.hasQueryParamWithValue(t,s)}isFilterActive(t){return this.routeService.hasQueryParam(t)}getCurrentScope(){return this.routeService.getQueryParameterValue("scope")}getCurrentQuery(){return this.routeService.getQueryParameterValue("query")}getCurrentPagination(t={}){const s=this.routeService.getQueryParameterValue("page"),m=this.routeService.getQueryParameterValue("pageSize");return(0,F.z)(s,m).pipe((0,f.T)(([d,v])=>Object.assign(new C.W,t,{currentPage:d||1,pageSize:v||t.pageSize})))}getCurrentSort(t){const s=this.routeService.getQueryParameterValue("sortDirection"),m=this.routeService.getQueryParameterValue("sortField");return(0,F.z)(s,m).pipe((0,f.T)(([d,v])=>new x.z(v||t.field,x.U[d]||t.direction)))}getCurrentFilters(){return this.routeService.getQueryParamsWithPrefix("f.")}getCurrentView(){return this.routeService.getQueryParameterValue("view")}findSuggestions(t,s,m){return(0,L.hj)(m)?this.searchService.getFacetValuesFor(t,1,s,m.toLowerCase()).pipe((0,e.yd)(),(0,f.T)(d=>d.payload.page.map(v=>({displayValue:this.getDisplayValue(v,m),query:(0,P.SB)(v,t),value:(0,P.gp)((0,P.SB)(v,t))})))):(0,I.of)([])}getDisplayValue(t,s){return`${(new T).transform(t.value,s)} (${t.count})`}isCollapsed(t){return this.store.pipe((0,g.Lt)(S(t)),(0,f.T)(s=>!!s&&(s.filterCollapsed||s.minimized)),(0,B.F)())}getPage(t){return this.store.pipe((0,g.Lt)(S(t)),(0,f.T)(s=>s?s.page:1),(0,B.F)())}collapse(t){this.store.dispatch(new h.ge(t))}expand(t){this.store.dispatch(new h.nj(t))}toggle(t){this.store.dispatch(new h.Fi(t))}initializeFilter(t){this.store.dispatch(new h.L2(t))}decrementPage(t){this.store.dispatch(new h.R0(t))}incrementPage(t){this.store.dispatch(new h.tq(t))}resetPage(t){this.store.dispatch(new h.Bf(t))}minimizeAll(){this.store.dispatch(new h.Po)}static#e=u=()=>(this.\u0275fac=function(s){return new(s||p)(y.KVO(V.S),y.KVO(g.il),y.KVO(M.v$))},this.\u0275prov=y.jDH({token:p,factory:p.\u0275fac,providedIn:"root"}))}return u(),p})();function S(u){return function R(u){return(0,g.Mz)(O,p=>{if((0,L.a4)(p))return p[u]})}(u)}},10996(D,U,r){r.d(U,{L:()=>z});var g=r(72200),F=r(40645),I=r(43764),f=r(60163),L=(r(43537),r(89777)),C=r(21193),P=r(38132),h=r(68018),b=r(31),T=r(74272),x=r(4255),M=r(54034),e=r(73664),V=r(91029);const y=(i,a)=>({type:i,value:a}),O=i=>({default:i});let j=(()=>{var i;class a{constructor(c,n,o,$,k){this.paginationService=c,this.router=n,this.searchConfigurationService=o,this.searchService=$,this.searchFilterService=k}ngOnInit(){this.searchLink=this.getSearchLink(),this.removeParameters$=this.updateRemoveParams()}updateRemoveParams(){return this.searchConfigurationService.unselectAppliedFilterParams(this.appliedFilter.filter,this.appliedFilter.value,this.appliedFilter.operator)}getSearchLink(){return this.inPlaceSearch?(0,M.N)(this.router):this.searchService.getSearchLink()}static#e=i=()=>(this.\u0275fac=function(n){return new(n||a)(e.rXU(b.m),e.rXU(V.Ix),e.rXU(T.g),e.rXU(F.S),e.rXU(x.U))},this.\u0275cmp=e.VBU({type:a,selectors:[["ds-search-label"]],inputs:{inPlaceSearch:"inPlaceSearch",appliedFilter:"appliedFilter"},decls:12,vars:25,consts:[[1,"badge","bg-primary","me-1","mb-1","text-capitalize",3,"click","routerLink","queryParams"],[1,"d-flex"],[1,"flex-grow-1","text-start"],["aria-hidden","true",1,"ps-1"]],template:function(n,o){1&n&&(e.j41(0,"a",0),e.nI1(1,"async"),e.nI1(2,"translate"),e.nI1(3,"translate"),e.bIt("click",function(){return o.searchFilterService.minimizeAll()}),e.j41(4,"span",1)(5,"span",2),e.EFF(6),e.nI1(7,"translate"),e.nI1(8,"translate"),e.nI1(9,"translate"),e.k0s(),e.j41(10,"span",3),e.
1EFF(11,"\xd7"),e.k0s()()()),2&n&&(e.Y8G("routerLink",o.searchLink)("queryParams",e.bMT(1,6,o.removeParameters$)),e.BMQ("aria-label",e.i5U(3,10,"search.filters.remove",e.l_i(20,y,e.bMT(2,8,"search.filters.applied.f."+o.appliedFilter.filter),o.appliedFilter.label))),e.R7$(6),e.E5c("",e.bMT(7,13,"search.filters.applied.f."+o.appliedFilter.filter),"",e.bMT(8,15,"search.filters.applied.operator."+o.appliedFilter.operator),": ",e.i5U(9,17,"search.filters."+o.appliedFilter.filter+"."+o.appliedFilter.label,e.eq3(23,O,o.appliedFilter.label))))},dependencies:[P.Wk,h.h,g.Jj,h.D9],styles:[".badge[_ngcontent-%COMP%]{white-space:inherit}"]}))}return i(),a})();var S=r(2615);const R=(i,a)=>({type:i,value:a});function u(i,a){if(1&i){const l=e.RV6();e.j41(0,"a",1),e.nI1(1,"async"),e.nI1(2,"translate"),e.nI1(3,"translate"),e.bIt("click",function(){S.eBV(l);const n=e.XpG();return S.Njj(n.searchFilterService.minimizeAll())}),e.j41(4,"span",2)(5,"span",3),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"span",4),e.EFF(9,"\xd7"),e.k0s()()()}if(2&i){const l=e.XpG();e.Y8G("routerLink",l.searchLink)("queryParams",e.bMT(1,5,l.removeParametersMin$)),e.BMQ("aria-label",e.i5U(3,9,"search.filters.remove",e.l_i(14,R,e.bMT(2,7,"search.filters.applied.f."+l.appliedFilter.filter+".min"),l.min))),e.R7$(6),e.Lme("",e.bMT(7,12,"search.filters.applied.f."+l.appliedFilter.filter+".min"),": ",l.min)}}function p(i,a){if(1&i){const l=e.RV6();e.j41(0,"a",1),e.nI1(1,"async"),e.nI1(2,"translate"),e.nI1(3,"translate"),e.bIt("click",function(){S.eBV(l);const n=e.XpG();return S.Njj(n.searchFilterService.minimizeAll())}
1),e.j41(4,"span",2)(5,"span",3),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"span",4),e.EFF(9,"\xd7"),e.k0s()()()}if(2&i){const l=e.XpG();e.Y8G("routerLink",l.searchLink)("queryParams",e.bMT(1,5,l.removeParametersMax$)),e.BMQ("aria-label",e.i5U(3,9,"search.filters.remove",e.l_i(14,R,e.bMT(2,7,"search.filters.applied.f."+l.appliedFilter.filter+".max"),l.max))),e.R7$(6),e.Lme("",e.bMT(7,12,"search.filters.applied.f."+l.appliedFilter.filter+".max"),": ",l.max)}}let X=(()=>{var i;class a{constructor(c,n,o,$,k){this.paginationService=c,this.router=n,this.searchConfigurationService=o,this.searchService=$,this.searchFilterService=k}ngOnInit(){this.searchLink=this.getSearchLink(),this.min=this.appliedFilter.value.substring(1,this.appliedFilter.value.indexOf("TO")-1),this.max=this.appliedFilter.value.substring(this.appliedFilter.value.indexOf("TO")+3,this.appliedFilter.value.length-1),this.removeParametersMin$=this.updateRemoveParams(`${this.appliedFilter.filter}.min`,this.min),this.removeParametersMax$=this.updateRemoveParams(`${this.appliedFilter.filter}.max`,this.max)}updateRemoveParams(c,n,o){return this.searchConfigurationService.unselectAppliedFilterParams(c,n,o)}getSearchLink(){return this.inPlaceSearch?(0,M.N)(this.router):this.searchService.getSearchLink()}static#e=i=()=>(this.\u0275fac=function(n){return new(n||a)(e.rXU(b.m),e.rXU(V.Ix),e.rXU(T.g),e.rXU(F.S),e.rXU(x.U))},this.\u0275cmp=e.VBU({type:a,selectors:[["ds-search-label-range"]],inputs:{inPlaceSearch:"inPlaceSearch",appliedFilter:"appliedFilter"},decls:2,vars:2,consts:[[1,"badge","bg-primary",3,"routerLink","queryParams"],[1,"badge","bg-primary",3,"click","routerLink","queryParams"],[1,"d-flex"],[1,"flex-grow-1","text-start"],["aria-hidden","true",1,"ps-1"]],template:function(n,o){1&n&&(e.nVh(0,u,10,17,"a",0),e.nVh(1,p,10,17,"a",0)),2&n&&(e.vxM("*"!==o.min?0:-1),e.R7$(),e.vxM("*"!==o.max?1:-1))},dependencies:[P.Wk,h.h,g.Jj,h.D9],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:wrap;gap:calc(var(--bs-spacer) / 4)}.badge[_ngcontent-%COMP%]{white-space:inherit}"]}))}return i(),a})();const t=void 0,s=new Map([[t,new Map([[C.SS,j]])],["range",new Map([[C.SS,X]])]]);function d(i,a){}let v=(()=>{var i;class a extends I.e{constructor(){super(...arguments),this.inputNamesDependentForComponent=["appliedFilter"],this.inputNames=["inPlaceSearch","appliedFilter"]}getComponent(){return function m(i,a){let l=s.get(i);(0,L.Tn)(l)&&(l=s.get(t));const c=l.get(a);return(0,L.Tn)(c)?l.get(C.SS):c}(this.appliedFilter.operator,this.themeService.getThemeName())}static#e=i=()=>(this.\u0275fac=(()=>{let c;return function(o){return(c||(c=e.xGo(a)))(o||a)}})(),this.\u0275cmp=e.VBU({type:a,selectors:[["ds-search-label-loader"]],inputs:{inPlaceSearch:"inPlaceSearch",appliedFilter:"appliedFilter"},features:[e.Vt3],decls:2,vars:0,consts:[["DynamicComponentLoader",""],["dsDynamicComponentLoader",""]],template:function(n,o){1&n&&e.DNE(0,d,0,0,"ng-template",1,0,e.C5r)},dependencies:[f.z],encapsulation:2}))}return i(),a})();function E(i,a){if(1&i&&e.nrm(0,"ds-search-label-loader",1),2&i){const l=a.$implicit,c=e.XpG();e.Y8G("appliedFilter",l)("inPlaceSearch",c.inPlaceSearch)}}let z=(()=>{var i;class a{constructor(c){this.searchService=c}ngOnInit(){this.appliedFilters$=this.searchService.appliedFilters$}static#e=i=()=>(this.\u0275fac=function(n){return new(n||a)(e.rXU(F.S))},this.\u0275cmp=e.VBU({type:a,selectors:[["ds-search-labels"]],inputs:{inPlaceSearch:"inPlaceSearch"},decls:4,vars:2,consts:[[1,"labels"],[3,"appliedFilter","inPlaceSearch"]],template:function(n,o){1&n&&(e.j41(0,"div",0),e.Z7z(1,E,1,2,"ds-search-label-loader",1,e.fX1),e.nI1(3,"async"),e.k0s()),2&n&&(e.R7$(),e.Dyx(e.bMT(3,0,o.appliedFilters$)))},dependencies:[v,g.Jj],styles:["[_nghost-%COMP%]{line-height:1}[_nghost-%COMP%] .labels[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:calc(var(--bs-spacer) / 4)}"]}))}return i(),a})()}}]);
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.