PageSourceSearch

https://caritas-sbk.de/chunk-6NR5SJA3.js

js caritas-sbk.de collected 2026-10-08 01:15:35 UTC 8,837 bytes, 1 lines download raw bytes

1import{A as z,c as G,e as T,f as $,g as j,h as Y}from"./chunk-SNY2KDPT.js";import"./chunk-JSH4D3IG.js";import"./chunk-QBQCDPX2.js";import{$b as h,Ab as b,Bb as P,Cb as y,Db as d,Eb as c,Fb as p,Gb as w,H as I,Jb as M,Nb as m,Ob as a,Ta as s,Zb as x,bc as k,cb as E,cc as J,g as v,ga as f,ha as C,hb as V,jb as S,oc as B,sb as D,ub as A,uc as g,vc as u,wb as N,wc as L,yb as R}from"./chunk-VR5SO3ZF.js";import"./chunk-EQDQRRRY.js";var X=()=>[T,$,import("./chunk-LT44Y4PX.js").then(i=>i.FilterComponent)],K=i=>({backgroundColor:i});function q(i,l){if(i&1){let r=M();c(0,"button",10),m("click",function(){let e=f(r).$implicit,t=a().$implicit,o=a();return C(o.onSelectOption(e,t.key[0],!1))}),h(1),c(2,"span"),h(3,"\u292B"),p()()}if(i&2){let r=l.$implicit,n=a(2);x("hidden",!r.active),d("ngClass",n.areaSettings.styles.chipsButtonSTYLE),s(),k(" ",r.name)}}function H(i,l){if(i&1&&(c(0,"span"),P(1,q,4,4,"button",11,b),p()),i&2){let r=l.$implicit;s(),y(r.value)}}function Q(i,l){if(i&1){let r=M();c(0,"button",10),m("click",function(){f(r);let e=a();return C(e.removeAllFilters())}),h(1),p()}if(i&2){let r=a();d("ngClass",r.areaSettings.styles.chipsButtonSTYLE),s(),k(" ",r.areaSettings.variables.deleteFilter," ")}}function U(i,l){if(i&1){let r=M();c(0,"div"),g(1,"async"),c(2,"lib-filter",12),g(3,"async"),m("selectOption",function(e){f(r);let t=a().$implicit,o=a();return C(o.onSelectOption(e,t.key[0],!0))})("removeOption",function(e){f(r);let t=a().$implicit,o=a();return C(o.onSelectOption(e,t.key[0],!1))})("priceRangeChanged",function(e){f(r);let t=a(2);return C(t.onPriceRangeChanged(e))}),p(),w(4,"div",8),p()}if(i&2){let r,n,e=a().$implicit,t=a();x("hidden",!(!((r=u(1,9,t.filterSettings$))==null||(r=r.get(e.key[0]))==null)&&r.active)||!e.value.length&&e.key[0]!=="Price"),s(2),d("filterSettings",(n=u(3,11,t.filterSettings$))==null?null:n.get(e.key[0]))("name",e.key[0])("filters",e.value)("areaSettings",t.areaSettings)("maxPrice",t.activeFilter==null?null:t.activeFilter.maxPrice)("minPrice",t.activeFilter==null?null:t.activeFilter.minPrice),s(2),d("ngStyle",B(13,K,t.areaSettings.styles.lineCOLOR))}}function W(i,l){i&1&&(V(0,U,5,15),D(1,0,X),A())}var ae=(()=>{let l=class l{constructor(){this.selectedAmount=0,this.allAttributes=[],this._activeFilter=null,this.closeFilters=new S,this.filtersChanged=new S,this.addBackdrop=new v(!1),this.addBackdrop$=this.addBackdrop.asObservable(),this.filterSettings=new v(new Map),this.filterSettings$=this.filterSettings.asObservable(),this.filtersMap=new v(new Map),this.filtersMap$=this.filtersMap.asObservable()}get areaSettings(){return this._areaSettings}set areaSettings(n){this._areaSettings=n,this.filterSettings.next(new Map(n.filters.map(e=>[e.name,e])))}get activeFilter(){return this._activeFilter}set activeFilter(n){this._activeFilter=n,this.setFilters()}ngOnInit(){this.filtersOpened$.pipe(I(500)).subscribe(n=>{this.addBackdrop.next(n)})}identify(n,e){return e.key[0]}sort(n,e){return n.key[1]>e.key[1]?1:-1}setFilters(){if(this.activeFilter){let n=new Map;n.set(["Category",this.areaSettings.filters.findIndex(e=>e.name==="Category")??0],this.activeFilter.categories),n.set(["Brand",this.areaSettings.filters.findIndex(e=>e.name==="Brand")??0],this.activeFilter.brands),n.set(["Price",this.areaSettings.filters.findIndex(e=>e.name==="Price")??0],[]);for(let e of this.activeFilter.attributeGroups){let t=this.allAttributes?.find(o=>o.name===e.name);n.set([e.name,this.areaSettings.filters.findIndex(o=>o.name===e.name)??0],e.options.sort((o,_)=>t&&t.options?t.options.indexOf(o.name)-t.options.indexOf(_.name):o.name.localeCompare(_.name)))}this.filtersMap.next(n)}}onCloseFilters(){this.addBackdrop.next(!1),this.closeFilters.emit()}onSelectOption(n,e,t){if(this.activeFilter){let o=JSON.parse(JSON.stringify(this.activeFilter)),_;if(e==="Category"||e==="Brand")_=(e==="Category"?o.categories:o.brands).find(O=>O.optionId===n.optionId);else{let F=o.attributeGroups.find(O=>O.name===e);F&&(_=F.options.find(O=>O.optionId===n.optionId))}_&&(_.active=t),this.filtersChanged.emit(o)}}removeAllFilters(){let n=JSON.parse(JSON.stringify(this.activeFilter));n.categories&&n.categories.map(e=>e.active=!1),n.brands&&n.brands.map(e=>e.active=!1);for(let e of n.attributeGroups)e.options.map(t=>t.active=!1);this.filtersChanged.emit(n)}onPriceRangeChanged(n){let e=JSON.parse(JSON.stringify(this.activeFilter));e.minPrice=n.from,e.maxPrice=n.to,this.filtersChanged.emit(e)}};l.\u0275fac=function(e){return new(e||l)},l.\u0275cmp=E({type:l,selectors:[["lib-filters"]],inputs:{filtersOpened$:"filtersOpened$",area:"area",selectedAmount:"selectedAmount",allAttributes:"allAttributes",areaSettings:"areaSettings",activeFilter:"activeFilter"},outputs:{closeFilters:"closeFilters",filtersChanged:"filtersChanged"},decls:25,vars:21,consts:[[1,"outer"],[1,"left",3,"click"],[1,"filters",3,"ngClass"],[1,"close"],[3,"click"],[1,"selected"],[1,"delete"],[3,"ngClass"],[1,"line",3,"ngStyle"],[1,"footer"],[3,"click","ngClass"],[3,"ngClass","hidden"],[3,"selectOption","removeOption","priceRangeChanged","filterSettings","name","filters","areaSettings","maxPrice","minPrice"]],template:function(e,t){e&1&&(c(0,"div",0)(1,"div",1),g(2,"async"),m("click",function(){return t.onCloseFilters()}),p(),c(3,"div",2)(4,"div")(5,"section")(6,"div",3)(7,"div",4),m("click",function(){return t.onCloseFilters()}),h(8,"\u292B"),p()(),c(9,"div",5),P(10,H,3,0,"span",null,b),g(12,"async"),g(13,"keyvalue"),c(14,"div",6),N(15,Q,2,2,"button",7),p()()(),w(16,"div",8),P(17,W,3,0,null,null,t.identify,!0),g(19,"async"),g(20,"keyvalue"),p(),c(21,"div",9)(22,"section")(23,"button",10),m("click",function(){return t.onCloseFilters()}),h(24),p()()()()()),e&2&&(s(),x("show",u(2,8,t.addBackdrop$)),s(2),d("ngClass",t.areaSettings.styles.backgroundBOX),s(7),y(u(13,12,u(12,10,t.filtersMap$))),s(5),R(t.selectedAmount?15:-1),s(),d("ngStyle",B(19,K,t.areaSettings.styles.lineCOLOR)),s(),y(L(20,16,u(19,14,t.filtersMap$),t.sort)),s(6),d("ngClass",t.areaSettings.styles.buttonSTYLE),s(),J(" ",t.areaSettings.variables.showResult," (",t.activeFilter==null?null:t.activeFilter.total,") "))},dependencies:[Y,G,T,$,j,z],styles:[".outer[_ngcontent-%COMP%]{width:100vw;height:100vh;display:grid;grid-template-columns:1fr 500px;max-height:-webkit-fill-available}.outer[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%], .outer[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{height:100%;width:100%}.outer[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{background-color:transparent;transition:none}.outer[_ngcontent-%COMP%]   .left.show[_ngcontent-%COMP%]{background-color:#00000029;transition:all .5s ease-in}.outer[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{display:none}.outer[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-bottom:8px}.outer[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.outer[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]   .hidden[_ngcontent-%COMP%]{display:none}.outer[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]   .delete[_ng
1content-%COMP%]{width:100%}.outer[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-right:8px;margin-bottom:8px}.outer[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{transform:scale(1.8);margin-top:2px;cursor:pointer}.outer[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]{display:flex!important;margin:0!important;flex-direction:column!important;justify-content:space-between!important;overflow-x:hidden;overflow-y:auto;border-top-right-radius:0!important;border-bottom-right-radius:0!important;align-items:stretch!important}.outer[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{height:1px;width:100%}.outer[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]{padding:16px}.outer[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]{position:sticky;bottom:0;background-color:inherit;z-index:1}.outer[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%;cursor:pointer}.hidden[_ngcontent-%COMP%]{display:none}button[_ngcontent-%COMP%]{cursor:pointer}@media (max-width: 599px){.outer[_ngcontent-%COMP%]{grid-template-columns:1fr}.outer[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{display:none}.outer[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:flex-end}.outer[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{transform:scale(2)}.outer[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]   .delete[_ngcontent-%COMP%]{width:fit-content}.outer[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]{padding-bottom:50px}}"],changeDetection:0});let i=l;return i})();export{ae as FiltersComponent};

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.