1import{a as Ke}from"./chunk-K5GSLGN2.js";import{a as U,b as ft,c as He}from"./chunk-IF3N6WAZ.js";import{b as Ye}from"./chunk-ERRX4H7R.js";import{a as Ae}from"./chunk-ORUJWJLE.js";import{b as We}from"./chunk-ALJRPISX.js";import"./chunk-67G6I4IJ.js";import{a as Fe,b as Oe}from"./chunk-D52GLFIV.js";import{a as ke}from"./chunk-LPGUNCCP.js";import"./chunk-OP2UBPE3.js";import"./chunk-PTRJ5RAQ.js";import{a as Ge}from"./chunk-R6ZO34LB.js";import{a as je}from"./chunk-2AHQTEEM.js";import{e as qe}from"./chunk-7I4G5UFK.js";import"./chunk-3UKPYNIW.js";import"./chunk-Y6USKZFL.js";import"./chunk-MGW3EAAL.js";import{a as gt}from"./chunk-AQRVVNWR.js";import{d as Ue}from"./chunk-K4CZDJZV.js";import{a as Me}from"./chunk-NIJKEK5F.js";import{a as Qe}from"./chunk-E2QI65RR.js";import{a as Ie}from"./chunk-5HAQKFWU.js";import"./chunk-HN43BYW7.js";import"./chunk-2NQQXHZP.js";import"./chunk-FWUNQENX.js";import{a as Ct}from"./chunk-WNC5E6S7.js";import"./chunk-2ZAC44V3.js";import"./chunk-NYLZZFFH.js";import"./chunk-AALIZUAX.js";import{j as Ee,k as Ne,l as Re,m as $e,n as Be,o as De,q as ze}from"./chunk-LGKPJLGV.js";import"./chunk-LJDPFN3F.js";import"./chunk-YLPUROS7.js";import{p as Ve}from"./chunk-3R4MIBCX.js";import"./chunk-UOZUOGP2.js";import"./chunk-2VZ3UZZQ.js";import"./chunk-NXXOTJBJ.js";import{a as Le}from"./chunk-X27BAMVH.js";import"./chunk-LXJFCHQ7.js";import{a as Ft}from"./chunk-6E6BIMAS.js";import"./chunk-WSEGJ5JB.js";import"./chunk-OEHTK7OD.js";import"./chunk-5EHSVCUQ.js";import{Aa as kt,Ba as xe,Ea as ve,Eb as Te,J as pe,N as me,P as ue,Q as Ce,Qa as be,Va as he,d as ae,h as ce,ha as ge,i as le,ia as fe,jb as ye,l as se,lb as Pe,o as de,p as _e,qb as Se,rb as we}from"./chunk-ZP3ZUIUJ.js";import{Cd as ut,Da as ee,Dd as re,J as Zt,V as _t,Va as pt,Y as Xt,Z as Jt,_a as mt,aa as te,bc as ie,f as st,id as ne,j as Yt,k as V,p as dt,q as Ht,s as Qt,td as oe,z as Kt}from"./chunk-34ES7PFP.js";import{$ as L,$b as D,Aa as Rt,Ac as T,Ad as A,Ba as B,Bb as tt,Bc as M,Cc as d,Db as At,Dc as c,Ea as Y,Ec as l,Fc as b,Fd as x,Gc as qt,Gd as y,Hc as Tt,Hd as ct,Ib as a,Id as lt,J as $,Jc as H,Kc as Q,Kd as j,Lc as et,Oa as u,Pa as C,Pc as v,Sa as $t,Vb as g,W as E,Wa as Bt,Xa as Dt,Xb as jt,Xc as f,Zc as r,_b as I,a as X,be as Wt,d as Vt,ec as F,hd as z,jd as it,lb as zt,md as _,nd as P,od as w,pd as K,ra as Nt,rd as nt,sd as ot,ta as J,tc as N,td as rt,ua as O,ud as at,vc as p,vd as Mt,w as S,x as Et,xc as m,xd as Z,yc as Ut,zc as k,zd as Gt}from"./chunk-FICYTAQ6.js";import{a as St,b as wt}from"./chunk-NCEQPEJE.js";var oi=i=>({"category-breakdown":i});function ri(i,e){if(i&1&&_(0),i&2){let t=r().$implicit;w(" ",t.facetValueName," ")}}function ai(i,e){if(i&1&&_(0),i&2){let t=r().$implicit;w(" ",t.facetValueCode," ")}}function ci(i,e){if(i&1){let t=v();c(0,"div",11)(1,"button",12),f("click",function(){let o=u(t).$implicit,s=r(4);return C(s.toggleValue(o.removeQuery))}),c(2,"span",13),b(3,"i",10),l()(),c(4,"span",14),p(5,ri,1,1)(6,ai,1,1),l()()}if(i&2){let t=e.$implicit;a(5),m(t.facetValueName?5:6)}}function li(i,e){if(i&1){let t=v();c(0,"div")(1,"div",5)(2,"div",6)(3,"div",7)(4,"h4",8),_(5),x(6,"cxTranslate"),c(7,"button",9),f("click",function(){u(t);let o=r(3);return C(o.removeAllFacet())}),b(8,"i",10),_(9," T\xFCm\xFCn\xFC Temizle"),l()(),T(10,ci,7,1,"div",11,k),l()()()()}if(i&2){let t=r(3);a(5),w(" ",y(6,1,"productList.filter")," "),a(5),M(t.activeFilters)}}function si(i,e){if(i&1){let t=v();c(0,"button",19),f("click",function(){u(t);let o=r(3).$implicit,s=r(4);return C(s.sortTerm[o.priority]=!s.sortTerm[o.priority])}),b(1,"i",20),l()}if(i&2){let t=r(3).$implicit,n=r(4);a(),d("ngClass",n.sortTerm[t.priority]?"fa-sort-alpha-up-alt":"fa-sort-alpha-up")}}function di(i,e){if(i&1){let t=v();c(0,"div",21),b(1,"i",24),c(2,"input",25),x(3,"cxTranslate"),rt("ngModelChange",function(o){u(t);let s=r(4).$implicit,h=r(4);return ot(h.searchTerm[s.priority],o)||(h.searchTerm[s.priority]=o),C(o)}),l()()}if(i&2){let t=r(4).$implicit,n=r(4);a(2),d("placeholder",at(y(3,3,"searchBox.placeholder"))),nt("ngModel",n.searchTerm[t.priority])}}function _i(i,e){if(i&1){let t=v();H(0),c(1,"li")(2,"div",26)(3,"input",27),f("change",function(){let o=u(t).$implicit,s=r(8);
1return C(s.toggleValue(o.query))}),l(),c(4,"label",28),b(5,"cx-star-rating",29),c(6,"span",30),_(7),l()()()(),Q()}if(i&2){let t=e.$implicit,n=e.index,o=r(8);a(3),d("id",Mt("star-rating-",n))("checked",t.selected),a(),d("for",Mt("star-rating-",n)),a(),d("rating",o.parseFloat(t.name))("disabled",!0),a(2),P(t.count)}}function pi(i,e){if(i&1&&(p(0,di,4,5,"div",21),c(1,"ul",22),F(2,_i,8,8,"ng-container",23),l()),i&2){let t=r(3).$implicit,n=r(4);m(n.showSearchInput(t.values,t.code)?0:-1),a(2),d("rxForOf",n.facetConditon(t.values,n.searchTerm[t.priority],!0,t.code))}}function mi(i,e){if(i&1){let t=v();c(0,"div")(1,"div",5)(2,"div",15)(3,"h2")(4,"a",16),f("click",function(){u(t);let o=r(2).$implicit,s=r(4);return C(s.toggleFacet(o))}),_(5),l()(),c(6,"cx-icon",17),f("click",function(){u(t);let o=r(2).$implicit,s=r(4);return C(s.toggleFacet(o))}),l(),p(7,si,2,1,"button",18),l(),p(8,pi,3,2),l()()}if(i&2){let t=r(2).$implicit,n=r(4);a(4),N("aria-expanded",t.isFacetOpen),a(),w(" ",t.name," "),a(),d("type",t.isFacetOpen?n.iconTypes.COLLAPSE:n.iconTypes.EXPAND),a(),m(n.showSearchInput(t.values,t.code)?7:-1),a(),m(t.isFacetOpen?8:-1)}}function ui(i,e){if(i&1){let t=v();c(0,"button",19),f("click",function(){u(t);let o=r(4).$implicit,s=r(4);return C(s.sortTerm[o.priority]=!s.sortTerm[o.priority])}),b(1,"i",20),l()}if(i&2){let t=r(4).$implicit,n=r(4);a(),d("ngClass",n.sortTerm[t.priority]?"fa-sort-alpha-up-alt":"fa-sort-alpha-up")}}function Ci(i,e){if(i&1){let t=v();c(0,"div",21),b(1,"i",24),c(2,"input",25),x(3,"cxTranslate"),rt("ngModelChange",function(o){u(t);let s=r(5).$implicit,h=r(4);return ot(h.searchTerm[s.priority],o)||(h.searchTerm[s.priority]=o),C(o)}),l()()}if(i&2){let t=r(5).$implicit,n=r(4);a(2),d("placeholder",at(y(3,3,"searchBox.placeholder"))),nt("ngModel",n.searchTerm[t.priority])}}function gi(i,e){if(i&1){let t=v();c(0,"ul")(1,"li",34),f("click",function(){let o=u(t).$implicit,s=r(9),h=r();return C(h.toggleCategoryValue(s.currentQuery.query.value,o.facetValueCode))}),_(2),l()()}if(i&2){let t=e.$implicit;a(2),P(t.facetValueName)}}function fi(i,e){if(i&1&&(c(0,"div",31),T(1,gi,3,1,"ul",null,k),l()),i&2){let t=r(8),n=r();a(),M(n.filterCategoryBreadcrumbs(t.breadcrumbs))}}function xi(i,e){if(i&1){let t=v();c(0,"label",36)(1,"div",26)(2,"input",37),f("change",function(){u(t);let o=r().$implicit,s=r(9);return C(s.toggleValue(o.query))}),l()(),c(3,"span",38),_(4),c(5,"span",30),_(6),l()()()}if(i&2){let t=r().$implicit;a(2),d("checked",t.selected),a(2),P(t.name),a(2),P(t.count)}}function vi(i,e){if(i&1&&(c(0,"a",39),_(1),c(2,"span",30),_(3),l()()),i&2){let t=r(2).$implicit,n=r(9);d("routerLink",n.urlService.getPathWithoutBaseSite(t.query.url)),a(),w(" ",t.name," "),a(2),P(t.count)}}function bi(i,e){if(i&1){let t=v();c(0,"a",41),f("click",function(){u(t);let o=r(2).$implicit,s=r(9);return C(s.toggleCategoryValue(o.query.query.value))}),_(1),c(2,"span",30),_(3),l()()}if(i&2){let t=r(2).$implicit;a(),w("",t.name," "),a(2),P(t.count)}}function hi(i,e){if(i&1&&(c(0,"label",36),p(1,vi,4,3,"a",39),p(2,bi,4,2,"a",40),l()),i&2){let t=r(10);a(),m(!t.isSearchPage&&!t.isBrandPage?1:-1),a(),m(t.isSearchPage||t.isBrandPage?2:-1)}}function yi(i,e){if(i&1&&(c(0,"li",33)(1,"div",35),p(2,xi,7,3,"label",36)(3,hi,3,2,"label",36),l()()),i&2){let t=r(5).$implicit;a(2),m(t.multiSelect?2:3)}}function Pi(i,e){if(i&1&&(p(0,Ci,4,5,"div",21),p(1,fi,3,0,"div",31),c(2,"ul",32),T(3,yi,4,1,"li",33,k),l()),i&2){let t=r(4).$implicit,n=r(3),o=r();m(o.showSearchInput(t.values,t.code)?0:-1),a(),m((o.isSearchPage||o.isBrandPage)&&o.filterCategoryBreadcrumbs(n.breadcrumbs).length>0?1:-1),a(),d("ngClass",A(3,oi,(o.isSearchPage||o.isBrandPage)&&o.filterCategoryBreadcrumbs(n.breadcrumbs).length>0)),a(),M(o.facetConditon(t.values,o.searchTerm[t.priority],o.sortTerm[t.priority],t.code))}}function Si(i,e){if(i&1){let t=v();c(0,"div",5)(1,"div",15)(2,"h2")(3,"a",16),f("click",function(){u(t);let o=r(3).$implicit,s=r(4);return C(s.toggleFacet(o))}),_(4),l()(),c(5,"cx-icon",17),f("click",function(){u(t);let o=r(3).$implicit,s=r(4);return C(s.toggleFacet(o))}),l(),p(6,ui,2,1,"button",18),l(),p(7,Pi,5,5),l()}if(i&2){let t=r(3).$implicit,n=r(4);a(3),N("aria-expanded",t.isFacetOpen),a(),w(" ",t.name," "),a(),d("type",t.isFacetOpen?n.iconTypes.COLLAPSE:n.iconTypes.EXPAND),a(),m(n.showSearchInput(t.values,t.code)?6:-1),a(),m(t.isFacetOpen?7:-1)}}function wi(i,e){if(i&1&&(c(0,"div"),p(1,Si,8,5,"div",5),l()),i&2){let t=r(2).$implicit;a(),m(((t==null||t.values==null?null:t.values.length)??0)>0?1:-1)}}function Ti(i,e){if(i&1){let t=v();c(0,"button",19),f("click",function(o){u(t);let s=r(3).$implicit,h=r(4);return C(h.sortFacet(o,s.priority))}),b(1,"i",20),l()}if(i&2){let t=r(3).$implicit,n=r(4);a(),d("ngClass",n.sortTerm[t.priority]?"fa-sort-alpha-up-alt":"fa-sort-alpha-up")}}function Mi(i,e){if(i&1){let t=v();c(0,"div",21),b(1,"i",24),c(2,"input",25),x(3,"cxTranslate"),rt("ngModelChange",function(o){u(t);let s=r(4).$implicit,h=r(4);return ot(h.searchTerm[s.priority],o)||(h.searchTerm[s.priority]=o),C(o)}),l()()}if(i&2){let t=r(4).$implicit,n=r(4);a(2),d("placeholder",at(y(3,3,"searchBox.placeholder"))),nt("ngModel",n.searchTerm[t.priority])}}function ki(i,e){if(i&1){let t=v();c(0,"li")(1,"div",26)(2,"input",27),f("change",function(){let o=u(t).$implicit,s=r(8);
1return C(s.toggleValue(o.query))}),l(),c(3,"label",28)(4,"span",45),_(5),l(),c(6,"span",30),_(7),l()()()()}if(i&2){let t=e.$implicit,n=e.$index,o=r(4).$implicit;a(2),d("id",Z("filter-",o.code,"-",t.name,"-",n))("checked",t.selected),a(),d("for",Z("filter-",o.code,"-",t.name,"-",n)),a(2),P(t.name),a(2),P(t.count)}}function Fi(i,e){if(i&1){let t=v();H(0),c(1,"li")(2,"div",26)(3,"input",27),f("change",function(){let o=u(t).$implicit,s=r(8);return C(s.toggleValue(o.query))}),l(),c(4,"label",28)(5,"span",45),_(6),l(),c(7,"span",30),_(8),l()()()(),Q()}if(i&2){let t=e.$implicit,n=e.index,o=r(4).$implicit;a(3),d("id",Z("filter-",o.code,"-",t.name,"-",n))("checked",t.selected),a(),d("for",Z("filter-",o.code,"-",t.name,"-",n)),a(2),P(t.name),a(2),P(t.count)}}function Oi(i,e){if(i&1&&(p(0,Mi,4,5,"div",21),c(1,"ul",22),T(2,ki,8,11,"li",null,k),x(4,"slice"),F(5,Fi,9,11,"ng-container",23),x(6,"slice"),l()),i&2){let t=r(3).$implicit,n=r(4);m(n.showSearchInput(t.values,t.code)?0:-1),a(2),M(lt(4,2,n.facetConditon(t.values,n.searchTerm[t.priority],n.sortTerm[t.priority],t.code),0,7)),a(3),d("rxForOf",ct(6,6,n.facetConditon(t.values,n.searchTerm[t.priority],n.sortTerm[t.priority],t.code),7))}}function Li(i,e){if(i&1){let t=v();c(0,"div")(1,"div",5)(2,"div",42),f("click",function(){u(t);let o=r(2).$implicit,s=r(4);return C(s.toggleFacet(o))}),c(3,"h2")(4,"a",43),_(5),l()(),b(6,"cx-icon",44),p(7,Ti,2,1,"button",18),l(),p(8,Oi,7,9),l()()}if(i&2){let t=r(2).$implicit,n=r(4);a(4),N("aria-expanded",t.isFacetOpen),a(),w(" ",t.name," "),a(),d("type",t.isFacetOpen?n.iconTypes.COLLAPSE:n.iconTypes.EXPAND),a(),m(n.showSearchInput(t.values,t.code)?7:-1),a(),m(t.isFacetOpen?8:-1)}}function Ii(i,e){if(i&1&&(c(0,"div"),p(1,mi,9,5,"div")(2,wi,2,1,"div")(3,Li,9,5,"div"),l()),i&2){let t,n=r().$implicit;a(),m((t=n.code)==="reviewRatingStar"?1:t==="category"?2:3)}}function Vi(i,e){if(i&1&&p(0,Ii,4,1,"div"),i&2){let t=e.$implicit;m(((t==null||t.values==null?null:t.values.length)??0)>0?0:-1)}}function Ei(i,e){i&1&&T(0,Vi,1,1,null,null,k),i&2&&M(e)}function Ni(i,e){if(i&1){let t=v();c(0,"li")(1,"div",35)(2,"label",36)(3,"div",26)(4,"input",37),f("change",function(){let o=u(t).$implicit,s=r(5);return C(s.toggleValue(o.query))}),l()(),c(5,"span",38),_(6),l()()()()}if(i&2){let t=e.$implicit;a(4),d("checked",t.selected),a(2),K("",t.name," (",t.count,")")}}function Ri(i,e){if(i&1&&(c(0,"div",50)(1,"h4",51),_(2),l(),c(3,"div",52)(4,"ul",53),T(5,Ni,7,3,"li",null,k),l()()()),i&2){let t=e.$implicit;a(2),w(" ",t.name," "),a(3),M(t.values)}}function $i(i,e){if(i&1){let t=v();c(0,"div",46)(1,"h3",47),_(2),x(3,"cxTranslate"),l(),c(4,"button",48),f("click",function(){let o=u(t).dismiss;return C(o("Cross click"))}),c(5,"span",13),_(6,"\xD7"),l()()(),c(7,"div",49)(8,"form"),T(9,Ri,7,1,"div",50,k),l()()}if(i&2){let t=r(2);a(2),P(y(3,1,"productList.filterBy.label")),a(7),M(t.facets)}}function Bi(i,e){if(i&1&&(c(0,"div",3)(1,"div",4),p(2,li,12,3,"div"),p(3,Ei,2,0),x(4,"async"),l(),F(5,$i,11,3,"ng-template",null,0,j),l()),i&2){let t,n=r(2);it("d-block",n.isModal),a(2),m(n.activeFilters.length>0?2:-1),a(),m((t=y(4,4,n.visibleFacets$))?3:-1,t)}}function Di(i,e){if(i&1&&p(0,Bi,7,6,"div",2),i&2){let t=e;m(((t.products==null?null:t.products.length)??0)>0?0:-1)}}var q=class i{constructor(e,t,n,o,s,h,W){this.activatedRoute=e;this.productListComponentService=t;this.breakpointService=n;this.router=o;this.pageLayoutService=s;this.urlService=h;this.cdr=W;this.breakpoint$=this.breakpointService.breakpoint$;this.destroy$=new Vt;this.parseFloat=parseFloat;this.iconTypes=me;this.showLoading=!1;this.isLoading=new Bt;this.isModal=!1;this.searchTerm=[];this.sortTerm=[];this.activeFilters=[];this.isBrandPage=!1;this.isSearchPage=!1;this.showAllPerFacetMap=new Map,this.queryCodec=new Kt,this.pageLayoutService.page$.pipe(E(1)).subscribe(Pt=>{this.isBrandPage=Pt.pageId==="brand",this.isSearchPage=Pt.pageId==="search"})}ngOnInit(){this.activatedRoute.params.pipe(J(this.destroy$)).subscribe(e=>{this.activeFacetValueCode=e.categoryCode||e.brandCode}),this.searchResult$=Et([this.productListComponentService.model$,this.pageLayoutService.page$]).pipe(L(),S(([e,t])=>(e.facets&&t.pageId==="brand"&&(e.facets=e.facets.map(n=>(n?.code==="brand"&&(n.visible=!1),n))),e)),O(e=>
1{e.facets&&e.facets.forEach(t=>{this.showAllPerFacetMap.set(t.name,!1)})})),this.productListComponentService.model$.pipe(L(),J(this.destroy$)).subscribe(e=>{this.showLoading=!1}),this.visibleFacets$=this.searchResult$.pipe(S(e=>e?.facets?.filter(t=>t.visible)||[])),this.searchResult$.pipe(J(this.destroy$)).subscribe(e=>{this.activeFilters=e?.breadcrumbs?.filter(t=>{if(!(this.isBrandPage&&t?.facetCode==="brand")&&t?.facetCode!=="allCategories"&&t.hasOwnProperty("removeQuery"))return t})})}toggleValue(e){let t=e.url;if(e.urlForStorefront){let n=this.urlService.getPathWithoutBaseSite(t);this.router.navigateByUrl(this.decodeUrl(n))}else this.productListComponentService.setQuery(this.decodeUrl(e.query.value))}decodeUrl(e){return this.queryCodec.decodeValue(e).replace(/\+/g," ")}toggleCategoryValue(e,t){let n=e.match(":category.+?(?=:)");if(n!==null&&n.length>0)for(let o of n)e=e.replace(o,"");if(t){let o=e.match(":category:(.*)");e=e.replace(o[o.length-1],t)}this.productListComponentService.setQuery(this.queryCodec.decodeValue(e).replace(/\+/g," "))}toggleFacet(e){e.isFacetOpen=!e.isFacetOpen,this.cdr.markForCheck()}sortFacet(e,t){this.sortTerm[t]=!this.sortTerm[t],e.stopPropagation()}showSearchInput(e,t=null){return e.length>10&&!["priceRangeValue"].includes(t)}facetConditon(e,t=null,n=!1,o=null){let s=[...e];return o&&["priceRangeValue","size"].includes(o)||(e=s.sort((h,W)=>h?.name?.localeCompare(W?.name,"tr-TR")),n&&(e=e.reverse())),t?e.filter(h=>JSON.stringify(h.name).toLocaleLowerCase("tr-TR").indexOf(t.toLocaleLowerCase("tr-TR"))!==-1):e}filterCategoryBreadcrumbs(e){return e.filter(t=>t.facetCode==="category"||t.facetCode.includes("subCategory"))}removeAllFacet(){this.showLoading=!0;let e=this.getCategories();if(e){let t=e.truncateQuery.url;this.router.navigateByUrl(t);return}this.productListComponentService.setQuery("")}getCategories(){let e;return this.searchResult$.pipe(E(1),S(t=>t.breadcrumbs),O(t=>e=t.find(n=>n.truncateQuery&&n.facetCode==="allCategories"))).subscribe(),e}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(t){return new(t||i)(g(_t),g(U),g(ge),g(Xt),g(fe),g(Fe),g(Wt))}}static{this.\u0275cmp=I({type:i,selectors:[["ozd-custom-product-facet-navigation"]],inputs:{isModal:"isModal"},outputs:{isLoading:"isLoading"},standalone:!1,decls:3,vars:4,consts:[["content",""],[3,"show"],[1,"filter-item-list","d-none","d-lg-block",3,"d-block"],[1,"filter-item-list","d-none","d-lg-block"],[1,"cx-search-facet"],[1,"cx-facet-group"],[1,"cx-facet-mobile"],[1,"cx-facet-filter-container"],[1,"cx-facet-filter-header","w-100"],[1,"btn","btn-link","remove-queries",3,"click"],[1,"fa","fa-times-circle"],["role","filter",1,"cx-facet-filter-pill"],["type","button","aria-label","Close",1,"btn","btn-xs","btn-link",3,"click"],["aria-hidden","true"],[1,"cx-facet-pill-value"],[1,"cx-facet-header"],["aria-controls","","tabindex","0",1,"cx-facet-header-link",3,"click"],[3,"click","type"],[1,"btn","btn-link"],[1,"btn","btn-link",3,"click"],["aria-hidden","true",1,"fa",3,"ngClass"],[1,"facet-search-box"],[1,"cx-facet-list","scrollable-filter"],[4,"rxFor","rxForOf"],[1,"fas","fa-search"],["type","text",1,"form-control",3,"ngModelChange","placeholder","ngModel"],[1,"custom-control","custom-checkbox"],["type","checkbox","aria-checked","true",1,"custom-control-input",3,"change","checked","id"],[1,"custom-control-label",3,"for"],[3,"rating","disabled"],[1,"count"],[1,"category-tab"],[1,"cx-facet-list","scrollable-filter",3,"ngClass"],[1,"facet-list-sub"],[3,"click"],[1,"form-check"],[1,"form-checkbox","cx-facet-label"],["type","checkbox","aria-checked","true",1,"custom-control-input",3,"change","checked"],[1,"cx-facet-text"],[1,"cx-facet-text",3,"routerLink"],[1,"cx-facet-text","category-facet"],[1,"cx-facet-text","category-facet",3,"click"],[1,"cx-facet-header",3,"click"],["aria-controls","","tabindex","0",1,"cx-facet-header-link"],[3,"type"],[1,"text"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],[1,"modal-body"],[1,"form-group"],["for","megapixels",1,"cx-facet-modal-label"],[1,"input-group"],[1,"cx-facet-list"]],template:function(t,n){if(t&1&&(b(0,"ozd-loading-spinner",1),p(1,Di,1,1),x(2,"async")),t&2){let o;d("show",n.showLoading),a(),m((o=y(2,2,n.searchResult$))?1:-1,o)}},dependencies:[st,ue,Jt,_e,ae,ce,le,de,se,gt,Se,Ct,V,dt,ut],styles:[`.santorini-updated[_ngcontent-%COMP%]{--cx-color-background: #f4f4f4;--cx-color-text: #14293a;--cx-color-inverse: #ffffff;--cx-color-transparent: transparent;--cx-color-primary: #055f9f;--cx-color-secondary: #556b82;--cx-color-success: #256f3a;--cx-color-info: #0064d8;--cx-color-warning: #b44f00;--cx-color-danger: #aa0808;--cx-color-light: #f1f1f1;--cx-color-dark: #77818b;--cx-color-primary-accent: #0f4880;--cx-color-success-accent: #f0fbe4;--cx-color-danger-accent: #fff1f1;--cx-color-warning-accent: #fff5df;--cx-color-info-accent: #deeffe;--cx-color-medium: #d3d6db;--cx-color-background-dark: #212738;--cx-color-visual-focus: #1f3a93;--cx-color-background-focus: rgba(80, 176, 244, .1);--cx-color-border-focus: rgba(166, 204, 232, .6);--cx-page-width-max: 1140px;--cx-font-weight-light: 300;--cx-font-weight-normal: 400;--cx-font-weight-semi: 600;--cx-font-weight-bold: 700;--cx-text-transform: capitalize;--cx-direction: ltr;--cx-transition-duration: .5s;--cx-animation-duration: 1s;--cx-border-radius: 1em;--cx-buttons-border-radius: 2rem;--cx-buttons-border-width: 3px;--cx-border-style: solid}.filter-item-list[_ngcontent-%COMP%]{width:100%;background:#fff;border:1px solid #f1f1f1;padding:10px}.cx-facet-group[_ngcontent-%COMP%]{width:100%;padding:5px 0 0}@media(max-width:991.98px){.cx-facet-group[_ngcontent-%COMP%]{border:1px solid #ececec;padding:10px}}.cx-facet-header[_ngcontent-%COMP%]{width:100%;position:relative;transition:all .5s ease-in-out;cursor:pointer;padding:0 5px}.cx-facet-header[_ngcontent-%COMP%] > .cx-icon[_ngcontent-%COMP%]{margin-top:3px}.cx-facet-header[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]{float:right;min-height:28px;padding:0 0 10px;width:20px;height:20px;color:var(--cx-color-primary)}.cx-facet-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{display:contents}.cx-facet-header-link[_ngcontent-%COMP%]{min-height:initial}.cx-facet-header-link[_ngcontent-%COMP%], .cx-facet-filter-header[_ngcontent-%COMP%]{display:inline-block;color:var(--cx-color-text);font-size:.775rem;line-height:1;font-weight:700}.cx-facet-filter-header[_ngcontent-%COMP%]{padding-bottom:10px;border-bottom:1px solid rgba(201,201,201,.3)}.cx-facet-filter-header[_ngcontent-%COMP%] > .remove-queries[_ngcontent-%COMP%]{float:right;padding:0;min-height:unset;font-weight:400;font-size:12px;color:var(--cx-color-primary)}.cx-facet-filter-header[_ngcontent-%COMP%] > .remove-queries[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{color:#e3e3e3}.cx-icon[_ngcontent-%COMP%]{font-size:12px;float:right;color:#909090}.form-check[_ngcontent-%COMP%]{padding-left:0;margin-bottom:0;line-height:1}.form-check[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-bottom:0}.form-check[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .cx-facet-checkbox-container[_ngcontent-%COMP%]{display:block}.custom-control-label[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{width:180px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-control-label[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{float:right}.cx-facet-checkbox-container[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;margin-right:10px;pointer-events:none}.cx-facet-checkbox.form-check-input[_ngcontent-%COMP%]{border-radius:0;width:18px;height:18px;position:relative;margin:2px;float:left;border:none}.cx-facet-list[_ngcontent-%COMP%]{margin-top:10px;max-height:205px;overflow:auto}.cx-facet-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{padding:5px;cursor:pointer}.cx-facet-text[_ngcontent-%COMP%]{cursor:pointer}.cx-facet-text[_ngcontent-%COMP%]:hover{text-decoration:underline!important}.cx-facet-text[_ngcontent-%COMP%], .cx-facet-pill-value[_ngcontent-%COMP%]{font-size:.75rem;color:var(--cx-color-text)}.cx-facet-text[_ngcontent-%COMP%] .count[_ngcontent-%COMP%], .cx-facet-pill-value[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{position:absolute;right:0;top:50%;transform:translateY(-50%)}.cx-facet-filter-container[_ngcontent-%COMP%] .cx-icon[_ngcontent-%COMP%]{color:var(--cx-color-primary);padding-top:5px}.cx-facet-filter-container[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{top:0}.facet-search-box[_ngcontent-%COMP%]{position:relative}.facet-search-box[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{padding-left:1.5rem;height:24px;margin-bottom:5px;margin-top:5px;font-size:12px;width:100%}.form-control[_ngcontent-%COMP%]:focus{background-color:transparent}.scrollable-filter[_ngcontent-%COMP%]::-webkit-scrollbar{width:0}.cx-facet-filter-pill[_ngcontent-%COMP%] .btn-link[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e3e3e3;font-size:12px}.category-facet[_ngcontent-%COMP%]{cursor:pointer;font-weight:400}.category-tab[_ngcontent-%COMP%]{font-size:.75rem;margin-top:10px}.category-tab[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{cursor:pointer;border-left:1px solid #dddddd;padding-left:10px}.category-tab[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:nth-child(2){padding-left:10px}.category-tab[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:nth-child(3){padding-left:30px}.category-tab[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:nth-child(4){padding-left:50px}.category-tab[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:last-child{color:var(--cx-color-primary);font-weight:700}.category-breakdown[_ngcontent-%COMP%]{padding-left:revert}.category-breakdown[_ngcontent-%COMP%] .facet-list-sub[_ngcontent-%COMP%]{margin-top:0;padding-left:10px;border-left:1px solid #ddd}.fa-search[_ngcontent-%COMP%]{font-size:12px;padding:15px 5px} 2 3 4 5 6 7 8 9`],changeDetection:0})}};var xt=class i{constructor(e,t,n,o){this.productSearchService=e;this.serverResponseService=t;this.winRef=n;this.meta=o;this.subscription=new X;this.setNotFoundIfNoResults()}setNotFoundIfNoResults(){this.winRef.isBrowser()||this.subscription.add(this.productSearchService.getResults().pipe(O(e=>{e?.pagination?.totalResults!==null&&(e.pagination?.totalResults??0)<1?(this.serverResponseService.setNotFound(),this.meta.updateTag({name:"ssr-status",content:"404"})):this.meta.removeTag('name="ssr-status"')})).subscribe())}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(t){return new(t||i)(Y(He),Y(Qe),Y(pt),Y(Zt))}}static{this.\u0275prov=Rt({token:i,factory:i.\u0275fac,providedIn:"root"})}};var Ui=()=>[],It=i=>({col:i});function qi(i,e){if(i&1&&(c(0,"div",7),b(1,"img",8),c(2,"div",9)(3,"span")(4,"strong"),_(5),x(6,"cxTranslate"),l()(),b(7,"br")(8,"span",10),x(9,"cxTranslate"),l()()),i&2){let t=r(2);a(),d("src",t.imgPaths.product.searchResultIcon,At),a(4),P(y(6,3,"pageMetaResolver.search.noResult")),a(3),d("innerHTML",y(9,5,"pageMetaResolver.search.noResultAlternate"),tt)}}function Gi(i,e){i&1&&b(0,"span",38)}function Wi(i,e){if(i&1){let t=v();c(0,"a",37),f("click",function(){let o=u(t).$implicit,s=r(4);return C(s.clickEvent(o))}),T(1,Gi,1,0,"span",38,Ut),l()}if(i&2){let t=e.$implicit,n=r(4);d("ngClass",n.colCountClass===t?"active":""),a(),M(Gt(1,Ui).constructor(t))}}function Yi(i,e){if(i&1&&(c(0,"div",21)(1,"div",34)(2,"span",35),T(3,Wi,3,2,"a",36,k),l()()()),i&2){let t=r(3);a(3),M(t.allowCols)}}function Hi(i,e){if(i&1){let t=v();c(0,"button",39),f("click",function(){let o=u(t).$implicit,s=r(3);return C(s.sortList(o.code))}),_(1),l()}if(i&2){let t=e.$implicit;a(),w(" ",t.name," ")}}function Qi(i,e){i&1&&(c(0,"div",31),b(1,"cx-spinner"),l())}function Ki(i,e){i&1&&et(0)}function Zi(i,e){if(i&1&&F(0,Ki,1,0,"ng-container",42),i&2){r();let t=z(5),n=r(4);d("ngTemplateOutlet",t)("ngTemplateOutletContext",A(2,It,n.colCountClass))}}function Xi(i,e){i&1&&et(0)}function Ji(i,e){if(i&1&&F(0,Xi,1,0,"ng-container",42),i&2){r();let t=z(5),n=r(4);d("ngTemplateOutlet",t)("ngTemplateOutletContext",A(2,It,n.colCountClass))}}function tn(i,e){i&1&&et(0)}function en(i,e){if(i&1&&F(0,tn,1,0,"ng-container",42),i&2){r();let t=z(5),n=r(4);d("ngTemplateOutlet",t)("ngTemplateOutletContext",A(2,It,n.colCountClass))}}function nn(i,e){if(i&1&&b(0,"ozd-custom-product-grid-item",43),i&2){let t=e.$implicit,n=e.$index,o=r(6);d("product",t)("searchTerm",o.searchTerm)("imageLoading",o.ImageLoadingStrategy.EAGE
9R)("ngClass","col-xl-"+12/o.colCountClass)("quickOrder",o.quickorder)("itemList",o.item_list),N("data-index",n)("data-id",t.code)}}function on(i,e){if(i&1&&b(0,"ozd-custom-product-grid-item",45),i&2){let t=e.$implicit,n=e.index,o=r(6);d("product",t)("searchTerm",o.searchTerm)("ngClass","col-xl-"+12/o.colCountClass)("quickOrder",o.quickorder)("itemList",o.item_list),N("data-index",n+o.colInitialProductItemCount)("data-id",t.code)}}function rn(i,e){if(i&1&&(T(0,nn,1,8,"ozd-custom-product-grid-item",43,k),x(2,"slice"),F(3,on,1,7,"ozd-custom-product-grid-item",44),x(4,"slice")),i&2){let t=r(4),n=r();M(lt(2,2,t==null?null:t.products,0,n.colInitialProductItemCount)),a(3),d("rxForOf",ct(4,6,t==null?null:t.products,n.colInitialProductItemCount))("rxForTrackBy","code")}}function an(i,e){if(i&1){let t=v();c(0,"div",41),f("childrenVisible",function(o){u(t);let s=r(4);return C(s.onBatchVisible(o))}),p(1,Zi,1,4,"ng-container"),p(2,Ji,1,4,"ng-container"),p(3,en,1,4,"ng-container"),F(4,rn,5,9,"ng-template",null,2,j),l()}if(i&2){let t=r(4);d("threshold",.5)("visibilityDelay",1e3),a(),m(t.colCountClass===3?1:-1),a(),m(t.colCountClass===4?2:-1),a(),m(t.colCountClass===6?3:-1)}}function cn(i,e){if(i&1&&(c(0,"div",32),H(1)(2),p(3,an,6,5,"div",40),Q()(),l()),i&2){let t=r(2);a(3),m((t==null?null:t.products.length)>0?3:-1)}}function ln(i,e){if(i&1&&(c(0,"div",33)(1,"div",12)(2,"div",46),b(3,"br"),c(4,"div",23),b(5,"cx-pagination",24),l()()()()),i&2){let t=r(2);a(5),d("pagination",t.pagination)("defaultPage",0)}}function sn(i,e){if(i&1){let t=v();c(0,"div",11)(1,"div",12)(2,"div",13)(3,"div",14)(4,"div",15)(5,"button",16),f("click",function(){u(t);let o=r(2),s=z(4);return C(o.onOpenFilter(s))}),b(6,"i",17),_(7),x(8,"cxTranslate"),l()(),c(9,"div",18)(10,"button",19),f("click",function(){u(t);let o=r(2),s=z(6);return C(o.onOpenSort(s))}),b(11,"i",20),_(12),x(13,"cxTranslate"),l()()()(),p(14,Yi,5,0,"div",21),c(15,"div",22)(16,"div",23),b(17,"cx-pagination",24),l()(),c(18,"div",25)(19,"div",26)(20,"button",27),_(21),x(22,"cxTranslate"),l(),c(23,"div",28),T(24,Hi,2,1,"button",29,k),l()(),c(26,"span",30),_(27),x(28,"cxTranslate"),l()()()(),p(29,Qi,2,0,"div",31),p(30,cn,4,1,"div",32),p(31,ln,6,2,"div",33)}if(i&2){let t=r(),n=r();a(7),P(y(8,12,"productList.filter")),a(5),P(y(13,14,"productList.sort")),a(2),m(n.showLoading?-1:14),a(3),d("pagination",t.pagination)("defaultPage",0),a(4),K("",y(22,16,"productList.sort"),": ",n.currentSortName.name),a(3),M(t.sorts),a(3),K("",y(28,18,"productList.products")," (",n.printPagination(t==null?null:t.pagination),")"),a(2),m(n.showLoading?29:-1),a(),m(n.showLoading?-1:30),a(),m(n.showLoading?-1:31)}}function dn(i,e){if(i&1&&(c(0,"div",4)(1,"section")(2,"div",5)(3,"div",6),p(4,qi,10,7,"div",7),p(5,sn,32,20),l()()()()),i&2){let t=e;a(4),m((t==null||t.products==null?null:t.products.length)===0?4:-1),a(),m(((t==null||t.products==null?null:t.products.length)??0)>0?5:-1)}}function _n(i,e){if(i&1){let t=v();c(0,"div",47)(1,"h3",48),_(2),x(3,"cxTranslate"),l(),c(4,"button",49),f("click",function(){u(t);let o=r();return C(o.closeModal("Cross click"))}),c(5,"span",50),_(6,"\xD7"),l()()(),c(7,"div",51)(8,"ozd-custom-product-facet-navigation",52),f("isLoading",function(o){u(t);let s=r();return C(s.isLoading(o))}),l()(),c(9,"div",53)(10,"button",54),f("click",function(){u(t);let o=r();return C(o.closeModal("Save click"))}),_(11),x(12,"cxTranslate"),l()()}i&2&&(a(2),P(y(3,3,"productList.filter")),a(6),d("isModal",!0),a(3),P(y(12,5,"productList.appliedFilter")))}function pn(i,e){if(i&1){let t=v();c(0,"button",57),f("click",function(){let o=u(t).$implicit,s=r(3);return s.sortList(o.code),C(s.closeModal("Sort click"))}),_(1),l()}if(i&2){let t=e.$implicit,n=r(3);it("selected",n.currentSortName.code===t.code),a(),w(" ",t.name," ")}}function mn(i,e){i&1&&(c(0,"div",51)(1,"div",55),T(2,pn,2,3,"button",56,k),l()()),i&2&&(a(2),M(e.sorts))}function un(i,e){if(i&1){let t=v();c(0,"div",47)(1,"h3",48),_(2),x(3,"cxTranslate"),l(),c(4,"button",49),f("click",function(){u(t);let o=r();return C(o.closeModal("Cross click"))}),c(5,"span",50),_(6,"\xD7"),l()()(),p(7,mn,4,0,"div",51),x(8,"async")}if(i&2){let t,n=r();a(2),P(y(3,2,"productList.sort")),a(5),m((t=y(8,4,n.model$))?7:-1,t)}}var G=class i{constructor(e,t,n,o,s,h,W,Pt,fn,xn,vn,bn,hn,yn,Pn){this.productListComponentService=e;this.scrollConfig=t;this.pageMetaService=n;this.linkService=o;this.injector=s;this.platformId=h;this.analyticsService=W;this.occEndpoints=Pt;this.windowRef=fn;this.route=xn;this.pickupStorageService=vn;this.launchDialogService=bn;this.vcr=hn;this.zone=yn;this.ImageLoadingStrategy=ve;this.EAGER_LOADING_THRESHOLD=4;this.productImg=Ft.product;this.item_list={};this.breadcrumbTitle$=this.pageMetaService.getMeta().pipe($(mt),S(e=>e.breadcrumbTitle??e.heading??e.title??e.name??""),O(e=>{this.item_list={item_list_name:e}}));this.model$=this.productListComponentService.model$.pipe(L(),S(e=>{this.searchTerm=e.freeTextSearch,this.searchTerm&&(this.item_list={item_list_name:"Search"});let t=e.breadcrumbs.filter(n=>n.facetCode==="allCategories");return e.products=(e.products||[]).map(n=>{let o=n?.images?.PRIMARY?.product?.url;if(o&&(n.images.PRIMARY.product.url=o.replace("mnresize/300/300","mnresize/424/636")),n?.images?.GALLERY)for(let s in n.images.GALLERY){let h=n.images.GALLERY[s]?.product?.url;h&&(n.images.GALLERY[s].product.url=h.replace("mnresize/300/300","mnresize/424/636"))}return n}),e}));this.productList=[];this.colCountClass=6;this.colInitialProductItemCount=8;this.allowCols=[3,4,6];this.subscription=new X;this.showLoading=!1;this.columnKey="magazaPLPColumnNumber";this.quickorder=!1;this.pickupStore="";this.imgPaths=Ft;this.windowRef?.localStorage?.getItem(this.columnKey)&&(this.colCountClass=+this.windowRef.localStorage.getItem(this.columnKey))}addPaginationMeta(){this.subscription.add(this.model$.subscribe(e=>{if(e.pagination.totalPages>1){this.currentPage=e.pagination.currentPage+1;let t="next",n=h=>h.split("/").filter(W=>W!=="").join("/");e.pagination.totalPages===e.pagination.currentPage+1?(this.linkService.removeTag({rel:"next"}),t="prev",this.currentPage=e.pagination.currentPage-1):this.linkService.removeTag({rel:"prev"});let s=[(Qt(this.platformId)?location.origin:this.windowRef.location?.origin||ke.webSiteUrlOrigin).replace(/\/$/,""),n(this.windowRef.document.location.pathname)].join("/");this.linkService.updateTag({rel:t,href:`${s}?currentPage=${this.currentPage}`})}else this.linkService.removeTag({rel:"next"}),this.linkService.removeTag({rel:"prev"})}))}printPagination(e){let t=e.currentPage*e.pageSize+1,n=e.totalResults,o=n;return e.pageSize+t-1>n?o=n:o=e.pageSize+t-1,`${t} - ${o} / ${n}`}ngOnInit(){this.productListComponentService.clearSearchResults();let e;this.productListComponentService.model$.subscribe(t=>e=t).unsubscribe(),this.subscription.add(this.productListComponentService.model$.pipe(L()).subscribe(t=>{this.currentSortName=t.sorts.find(n=>n.selected===!0),e=null,this.showLoading=!1})),this.isStoreTypeMagaza=this.occEndpoints.getSelectedStore().includes("magaza"),this.isStoreTypeMagaza&&(this.allowCols=[3,4],this.colCountClass=this.allowCols.includes(this.colCountClass)?this.colCountClass:4),this.getQuickOrder()}sortList(e){this.productListComponentService.sort(e,0)}onOpenSort(e){let t={content:e,modalDialogClass:"fullscreen-modal"}
9,n=this.launchDialogService.openDialog(kt.STATIC_MODAL,null,this.vcr,t);n&&n.pipe(E(1)).subscribe()}onOpenFilter(e){let t={content:e,modalDialogClass:"modal-dialog-scrollable"},n=this.launchDialogService.openDialog(kt.STATIC_MODAL,null,this.vcr,t);n&&n.pipe(E(1)).subscribe()}closeModal(e){this.launchDialogService.closeDialog(e)}ngOnDestroy(){this.linkService.removeTag({rel:"next"}),this.subscription.unsubscribe()}ngAfterViewInit(){this.addPaginationMeta()}isLoading(e){this.showLoading=e}clickEvent(e=3){this.colCountClass=e,this.windowRef.localStorage.setItem(this.columnKey,this.colCountClass.toString())}onBatchVisible(e){let t=e.map(o=>o.getAttribute("data-id")),n=e.map(o=>+o.getAttribute("data-index"));this.model$.pipe(E(1),S(o=>wt(St({},o),{products:o.products.filter(s=>t.includes(s.code))}))).subscribe(o=>{this.analyticsService.sendEvent({event:"viewList",productList:o,params:wt(St({},this.item_list),{index:Math.min(...n)})})})}getQuickOrder(){this.subscription.add(this.route.queryParams.subscribe(e=>{if(this.quickorder=e?.quickorder==="true",e?.pickupStore){let t={deliveryModeId:"pickup",POS_name:e.pickupStore,displayName:e.pickupStore,store:Ue,storeType:"MAGAZA"};this.pickupStore=e.pickupStore,this.windowRef.isBrowser()&&this.zone.runOutsideAngular(()=>setTimeout(()=>{this.zone.run(()=>this.pickupStorageService.setData(t))},1e3))}}))}static{this.\u0275fac=function(t){return new(t||i)(g(U),g(Te),g(ft),g(Oe),g($t),g(zt),g(Me),g(Le),g(pt),g(_t),g(Ve),g(xe),g(jt),g(Dt),g(xt))}}static{this.\u0275cmp=I({type:i,selectors:[["ozd-custom-product-list"]],standalone:!1,decls:7,vars:4,consts:[["openFilter",""],["openSort",""],["columnTemplate",""],[3,"show"],[1,"cx-page"],[1,"container"],[1,"row"],[1,"no-result-container","text-center","w-100"],["alt","\xFCr\xFCn arama ikon",3,"src"],[1,"results-description"],[3,"innerHTML"],[1,"cx-sorting","top","w-100","clearfix"],[1,"row","mr-0","ml-0"],[1,"col-12","pl-0","pr-0","d-lg-none","d-md-block"],[1,"row","mr-0","ml-0","pl-0","pr-0"],[1,"col-6","mb-0","pl-0","pr-1"],[1,"trigger-button","open-filter",3,"click"],[1,"fas","fa-filter"],[1,"col-6","mb-0","pr-0","pl-1"],[1,"trigger-button","open-sort",3,"click"],[1,"fas","fa-sort-amount-down-alt"],[1,"col-12","col-lg-4","plp-view"],[1,"col-12","col-lg-4","plp-pagination"],[1,"cx-pagination"],["queryParam","currentPage",3,"pagination","defaultPage"],[1,"col-12","col-lg-4","ml-auto","float-right","d-none","d-lg-block"],["ngbDropdown","","display","dynamic","placement","bottom-right",1,"btn-sort"],["id","dropdownBasic1","ngbDropdownToggle","",1,""],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1"],["ngbDropdownItem",""],["hidden","",1,"paging-text"],[1,"cx-spinner","w-100"],[1,"cx-product-container","w-100"],[1,"cx-sorting","bottom","w-100"],[1,"switch"],[1,"list-bars"],[3,"ngClass"],[3,"click","ngClass"],[1,"box"],["ngbDropdownItem","",3,"click"],["trackChildrenVisibility","",1,"form-row",3,"threshold","visibilityDelay"],["trackChildrenVisibility","",1,"form-row",3,"childrenVisible","threshold","visibilityDelay"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-track","false",1,"col-6","col-md-4",3,"product","searchTerm","imageLoading","ngClass","quickOrder","itemList"],["class","col-6 col-md-4","data-track","false",3,"product","searchTerm","ngClass","quickOrder","itemList",4,"rxFor","rxForOf","rxForTrackBy"],["data-track","false",1,"col-6","col-md-4",3,"product","searchTerm","ngClass","quickOrder","itemList"],["aria-label","product search pagination",1,"col-12"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[3,"isLoading","isModal"],[1,"modal-footer","filter-close"],["type","button",1,"btn","btn-primary","btn-block",3,"click"],[1,"btn-sorts"],[1,"btn","btn-outline-gray","btn-block",3,"selected"],[1,"btn","btn-outline-gray","btn-block",3,"click"]],template:function(t,n){if(t&1&&(b(0,"ozd-loading-spinner",3),p(1,dn,6,2,"div",4),x(2,"async"),F(3,_n,13,7,"ng-template",null,0,j)(5,un,9,6,"ng-template",null,1,j)),t&2){let o;d("show",n.showLoading),a(),m((o=y(2,2,n.model$))?1:-1,o)}},dependencies:[st,Yt,ye,Be,$e,Re,Ee,Ne,qe,gt,be,Ct,je,q,V,dt,ut],styles:[`.santorini-updated[_ngcontent-%COMP%]{--cx-color-background: #f4f4f4;--cx-color-text: #14293a;--cx-color-inverse: #ffffff;--cx-color-transparent: transparent;--cx-color-primary: #055f9f;--cx-color-secondary: #556b82;--cx-color-success: #256f3a;--cx-color-info: #0064d8;--cx-color-warning: #b44f00;--cx-color-danger: #aa0808;--cx-color-light: #f1f1f1;--cx-color-dark: #77818b;--cx-color-primary-accent: #0f4880;--cx-color-success-accent: #f0fbe4;--cx-color-danger-accent: #fff1f1;--cx-color-warning-accent: #fff5df;--cx-color-info-accent: #deeffe;--cx-color-medium: #d3d6db;--cx-color-background-dark: #212738;--cx-color-visual-focus: #1f3a93;--cx-color-background-focus: rgba(80, 176, 244, .1);--cx-color-border-focus: rgba(166, 204, 232, .6);--cx-page-width-max: 1140px;--cx-font-weight-light: 300;--cx-font-weight-normal: 400;--cx-font-weight-semi: 600;--cx-font-weight-bold: 700;--cx-text-transform: capitalize;--cx-direction: ltr;--cx-transition-duration: .5s;--cx-animation-duration: 1s;--cx-border-radius: 1em;--cx-buttons-border-radius: 2rem;--cx-buttons-border-width: 3px;--cx-border-style: solid}.cx-page[_ngcontent-%COMP%]{max-width:100vw;padding-bottom:25px}.cx-page[_ngcontent-%COMP%]:has(.no-result-container){display:flex}.cx-product-container[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{row-gap:1rem}.cx-sorting.top[_ngcontent-%COMP%]{padding:10px 0;margin:0 0 15px;background:#fafafa}@media(max-width:991.98px){.cx-sorting.top[_ngcontent-%COMP%]{margin-left:-15px;margin-right:-15px;flex-grow:1;padding:1rem}}.cx-sorting.top[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{align-items:center}.paging-text[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;font-size:1rem;color:#6a6a6a;padding-top:.5rem;font-weight:700}.cx-sorting.top[_ngcontent-%COMP%] .btn-sort[_ngcontent-%COMP%]{float:right;font-size:14px}.cx-sorting.top[_ngcontent-%COMP%] .btn-sort[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{padding:0 40px;height:40px;line-height:40px;background:#fff;color:#494949;border:1px solid #c9c9c9;font-weight:700;border-radius:6px}.cx-sorting.top[_ngcontent-%COMP%] .trigger-button[_ngcontent-%COMP%]{vertical-align:middle;border-radius:3px;padding:9px;font-size:.7rem;color:#0f0f0f;font-weight:700;text-align:center;cursor:pointer;border:solid 1px #c9c9c9;transition:all .15s ease-in-out;width:100%;white-space:nowrap;background-color:#f9f9f9}.cx-sorting.top[_ngcontent-%COMP%] .trigger-button[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{font-size:16px;margin-right:5px;vertical-align:sub;display:inline-block}.cx-sorting.top[_ngcontent-%COMP%] .trigger-button[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]:before{color:var(--cx-color-primary)}.cx-sorting.bottom[_ngcontent-%COMP%] .cx-pagination[_ngcontent-%COMP%] cx-pagination[_ngcontent-%COMP%]{float:right}.btn-sorts[_ngcontent-%COMP%]{padding-top:1rem}.btn.selected[_ngcontent-%COMP%]{background-color:var(--cx-color-primary);color:#fff;border-color:var(--cx-color-primary)}.no-result-container[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-bottom:15px}.no-result-container[_ngcontent-%COMP%] > .results-description[_ngcontent-%COMP%]{margin:6px auto 36px;max-width:480px;line-height:34px} .fullscreen-modal{z-index:16000003} cx-pagination{height:44px} cx-pagination a{color:#6a6a6a;font-weight:700;border:none} cx-pagination a.current{background-color:#fff;border:1px solid #c5c5c5;opacity:1;color:#494949;border-radius:6px} cx-pagination a:last-child{-webkit-border-end:none;border-inline-end:none}.switch[_ngcontent-%COMP%]{float:left}.switch[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 4px;border-radius:4px;display:block;float:left;cursor:pointer}.switch[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{width:10px;height:12px;background:#d8d8d8;display:block;float:left;margin:0 1px}.switch[_ngcontent-%COMP%] .list-title[_ngcontent-%COMP%]{font-size:14px;text-align:center;display:block}.switch[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{border:1px solid #979797}.switch[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{background:#979797}@media(max-width:991.98px){.plp-view[_ngcontent-%COMP%], .plp-pagination[_ngcontent-%COMP%]{display:none}} 10 11 12 13 14 15 16 17`],changeDetection:0})}};function Cn(i,e){i&1&&b(0,"div",0),i&2&&d("innerHTML",e,tt)}var vt=class i{constructor(e,t){this.cms=e;this.categoryService=t;this.category$=this.cms.getCurrentPage().pipe($(e=>e?.type===ee.CATEGORY_PAGE),S(e=>e?.contextId),Nt(e=>this.categoryService.get(e)),S(e=>e??null))}ngOnInit(){this.content$=this.category$.pipe(S(e=>e?.content??""))}static{this.\u0275fac=function(t){return new(t||i)(g(ne),g(Ie))}}static{this.\u0275cmp=I({type:i,selectors:[["ozd-custom-dynamic-banner"]],standalone:!1,decls:2,vars:3,consts:[[1,"category-content",3,"innerHTML"]],template:function(t,n){if(t&1&&(p(0,Cn,1,1,"div",0),x(1,"async")),t&2){let o;m((o=y(1,1,n.content$))?0:-1,o)}},dependencies:[V],encapsulation:2,changeDetection:0})}};function gn(i,e){if(i&1&&(qt(0,"div")(1,"div",0)(2,"h1"),_(3),x(4,"async"),Tt(),_(5),Tt()()),i&2){let t=e,n=r();a(3),w('"',y(4,2,n.breadcrumbTitle$),'"'),a(2),w(" aramas\u0131 i\xE7in ",t.pagination==null?null:t.pagination.totalResults," sonu\xE7 listeleniyor")}}var bt=class i{constructor(e,t){this.pageMetaService=e;this.productListComponentService=t;this.item_list={};this.breadcrumbTitle$=this.pageMetaService.getMeta().pipe($(mt),S(e=>e.breadcrumbTitle??e.heading??e.title??e.name??""),S(e=>decodeURIComponent(e)),O(e=>{this.item_list={item_list_name:e}}));this.model$=this.productListComponentService.model$.pipe(L(),S(e=>{this.searchTerm=e.freeTextSearch,this.searchTerm&&(this.item_list={item_list_name:"Search"});let t=e.breadcrumbs.filter(n=>n.facetCode==="allCategories");return e.products=(e.products||[]).map(n=>{let o=n?.images?.PRIMARY?.product?.url;if(o&&(n.images.PRIMARY.product.url=o.replace("mnresize/300/300","mnresize/424/636")),n?.images?.GALLERY)for(let s in n.images.GALLERY){let h=n.images.GALLERY[s]?.product?.url;h&&(n.images.GALLERY[s].product.url=h.replace("mnresize/300/300","mnresize/424/636"))}return n}),e}))}static{this.\u0275fac=function(t){return new(t||i)(g(ft),g(U))}}static{this.\u0275cmp=I({type:i,selectors:[["ozd-product-list-category-title"]],decls:2,vars:3,consts:[[1,"category-title","h1","w-100"]],template:function(t,n){if(t&1&&(p(0,gn,6,4,"div"),x(1,"async")),t&2){let o;m((o=y(1,1,n.model$))?0:-1,o)}},dependencies:[V],styles:[`.santorini-updated[_ngcontent-%COMP%]{--cx-color-background: #f4f4f4;--cx-color-text: #14293a;--cx-color-inverse: #ffffff;--cx-color-transparent: transparent;--cx-color-primary: #055f9f;--cx-color-secondary: #556b82;--cx-color-success: #256f3a;--cx-color-info: #0064d8;--cx-color-warning: #b44f00;--cx-color-danger: #aa0808;--cx-color-light: #f1f1f1;--cx-color-dark: #77818b;--cx-color-primary-accent: #0f4880;--cx-color-success-accent: #f0fbe4;--cx-color-danger-accent: #fff1f1;--cx-color-warning-accent: #fff5df;--cx-color-info-accent: #deeffe;--cx-color-medium: #d3d6db;--cx-color-background-dark: #212738;--cx-color-visual-focus: #1f3a93;--cx-color-background-focus: rgba(80, 176, 244, .1);--cx-color-border-focus: rgba(166, 204, 232, .6);--cx-page-width-max: 1140px;--cx-font-weight-light: 300;--cx-font-weight-normal: 400;--cx-font-weight-semi: 600;--cx-font-weight-bold: 700;--cx-text-transform: capitalize;--cx-direction: ltr;--cx-transition-duration: .5s;--cx-animation-duration: 1s;--cx-border-radius: 1em;--cx-buttons-border-radius: 2rem;--cx-buttons-border-width: 3px;--cx-border-style: solid}.category-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;margin-bottom:0rem;display:flex}.category-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:inline-block;margin-bottom:0;font-size:1.125rem}@media(max-width:991.98px){.category-title[_ngcontent-%COMP%]{margin:0 0 1rem;font-size:.75rem;display:inline}.category-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:.75rem}} 18 19 20 21 22 23 24 25`]})}};var ht=class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=D({type:i})}static{this.\u0275inj=B({imports:[Ht,re,Ce,Pe,te,Ke,oe,ie.withConfig({cmsComponents:{ProductRefinementComponent:{component:q},CMSProductListComponent:{component:G},ProductGridComponent:{component:G},SearchResultsListComponent:{component:G},DynamicBannerComponent:{component:vt},ProductListCategoryTitleComponent:{component:bt}}}),De,ze,We,pe,Ye,Ge,we,he,Ae]})}};var yt=class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=D({type:i})}static{this.\u0275inj=B({imports:[ht]})}};var Je=class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=D({type:i})}static{this.\u0275inj=B({imports:[yt]})}};export{Je as OzdilekProductListModule};
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.