1"use strict";(self.webpackChunkenergy_tcm=self.webpackChunkenergy_tcm||[]).push([[585],{5191:(D,x,a)=>{a.d(x,{q:()=>O});var s=a(54438),m=a(60177),l=a(4379),T=a(26588),f=a(34085);const p=["*"];function b(d,v){if(1&d){const h=s.RV6();s.j41(0,"button",4),s.bIt("click",function(){s.eBV(h);const u=s.XpG();return s.Njj(u.goBack())}),s.j41(1,"mcrai-icon"),s.EFF(2,"arrow-left-2"),s.k0s()()}}function R(d,v){1&d&&s.nrm(0,"img",1)}function C(d,v){if(1&d&&(s.j41(0,"h1"),s.EFF(1),s.k0s()),2&d){const h=s.XpG();s.R7$(),s.SpI(" ",h.pageTitle," ")}}function M(d,v){1&d&&s.nrm(0,"shop-search",2)}let O=(()=>{class d{constructor(h){this.location=h,this.logo=!1,this.backButton=!1,this.search=!1}ngOnInit(){}goBack(){this.location.back()}static#t=this.\u0275fac=function(y){return new(y||d)(s.rXU(m.aZ))};static#e=this.\u0275cmp=s.VBU({type:d,selectors:[["shop-mobile-app-header"]],inputs:{logo:"logo",backButton:"backButton",search:"search",pageTitle:"pageTitle"},ngContentSelectors:p,decls:6,vars:4,consts:[["mcrai-icon-button","",1,"back-button"],["src","/assets/images/logo.png","width","80px","alt","Energy TCM logo"],["compact","true",1,"pr0"],[1,"ng-content-wrapper"],["mcrai-icon-button","",1,"back-button",3,"click"]],template:function(y,u){1&y&&(s.NAR(),s.DNE(0,b,3,0,"button",0)(1,R,1,0,"img",1)(2,C,2,1,"h1")(3,M,1,0,"shop-search",2),s.j41(4,"div",3),s.SdG(5),s.k0s()),2&y&&(s.vxM(0,u.backButton?0:-1),s.R7$(),s.vxM(1,u.logo?1:-1),s.R7$(),s.vxM(2,u.pageTitle?2:-1),s.R7$(),s.vxM(3,u.search?3:-1))},dependencies:[l.x,T.R,f.S],styles:["[_nghost-%COMP%]{display:flex;align-items:center;padding:16px;min-height:66px}.back-button[_ngcontent-%COMP%]{margin-right:8px}h1[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:20px}.ng-content-wrapper[_ngcontent-%COMP%]{margin-left:auto}"],changeDetection:0})}return d})()},10585:(D,x,a)=>{a.r(x),a.d(x,{CategoryModule:()=>Ce});var s=a(60177),m=a(63040),l=a(76965),T=a(45286),f=a(7605),p=a(95006),b=a(58728),R=a(31113),C=a(96919),M=a(18007),O=a(85483),d=a(16518),v=a(86929),h=a(26410),y=a(68515),u=a(57736),E=a(55526),w=a(39902),j=a(55410),V=a(79341),N=a(70746);const L="[Category] GET category brands",G="[Category] GET category brands success",F="[Category] GET category brands error";class U{constructor(r){this.payload=r,this.type=L}}class Y{constructor(r){this.payload=r,this.type=G}}class k{constructor(r){this.payload=r,this.type=F}}const I=(0,N.p)({selectId:n=>n.parent.info[0].url}),W=I.getInitialState(),A="shopBrands";function H(n=W,r){return r.type===G?I.upsertOne(r.payload,n):n}const P=(0,l.UX)(A),{selectIds:z,selectEntities:K,selectAll:J,selectTotal:Q}=I.getSelectors(),Z=((0,l.Mz)(P,z),(0,l.Mz)(P,K));(0,l.Mz)(P,J),(0,l.Mz)(P,Q);var t=a(54438),$=a(345),q=a(73524),B=a(87173),tt=a(22474),et=a(5191),nt=a(22193),ot=a(61136),at=a(48033),it=a(63649),st=a(7165),rt=a(82318),ct=a(10224),lt=a(91424),S=a(65388),dt=a(82372),pt=a(11856),ht=a(33579),gt=a(33555),ut=a(19727),mt=a(48235),yt=a(48390),X=a(7887);function _t(n,r){if(1&n&&(t.j41(0,"a",0)(1,"div",1),t.EFF(2),t.k0s()()),2&n){const e=t.XpG();t.Y8G("routerLink",e.linkService.getBrandLink(e.brand)),t.R7$(2),t.JRh(e.brand.name)}}function ft(n,r){if(1&n&&(t.j41(0,"a",2),t.nrm(1,"mcrai-media",3),t.j41(2,"div",1),t.EFF(3),t.k0s()()),2&n){const e=t.XpG();t.Y8G("routerLink",e.linkService.getBrandLink(e.brand)),t.R7$(),t.Y8G("data",null==e.brand||null==e.brand.image?null:e.brand.image.thumbnail)("width",64)("height",64),t.R7$(2),t.JRh(e.brand.name)}}function Ct(n,r){if(1&n&&(t.j41(0,"a",4),t.nrm(1,"mcrai-media",3),t.j41(2,"div",5)(3,"div",1),t.EFF(4),t.k0s()()()),2&n){const e=t.XpG();t.Y8G("routerLink",e.linkService.getBrandLink(e.brand)),t.R7$(),t.Y8G("data",null==e.brand||null==e.brand.image?null:e.brand.image.thumbnail)("width",64)("height",64),t.R7$(3),t.JRh(e.brand.name)}}let vt=(()=>{class n{constructor(e){this.linkService=e}ngOnInit(){}static#t=this.\u0275fac=function(o){return new(o||n)(t.rXU(B._))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["shop-brand-list-brand"]],inputs:{brand:"brand",layout:"layout"},decls:3,vars:1,consts:[[1,"brand","brand--layout-0",3,"routerLink"],[1,"brand__name"],[1,"brand","brand--layout-1",3,"routerLink"],["type","image",1,"brand__image",3,"data","width","height"],[1,"brand","brand--layout-2",3,"routerLink"],[1,"brand__info"]],template:function(o,i){if(1&o&&t.DNE(0,_t,3,2)(1,ft,4,5)(2,Ct,5,5),2&o){let c;t.vxM(0,0===(c=i.layout)?0:1===c?1:2===c?2:-1)}},dependencies:[m.Wk,X.h],styles:[".brand[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:8px 8px 8px 16px;height:100%;background-color:#fff;border:1px solid #ddd;border-radius:4px;text-decoration:none;color:#000}.brand__image[_ngcontent-%COMP%]{margin-right:16px;min-width:64px}.brand__name[_ngcontent-%COMP%]{font-size:16px}.brand__description[_ngcontent-%COMP%]{opacity:.66}
1.brand--layout-2[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.brand--layout-2[_ngcontent-%COMP%] .brand__image[_ngcontent-%COMP%]{width:calc(100% - 8px)!important;min-width:0;height:160px!important}"],changeDetection:0})}return n})();function xt(n,r){if(1&n&&t.nrm(0,"h2",1),2&n){const e=t.XpG();t.Y8G("innerHTML",e.title,t.npT)}}function bt(n,r){if(1&n&&(t.j41(0,"mcrai-li",3),t.nrm(1,"shop-brand-list-brand",4),t.k0s()),2&n){const e=r.$implicit,o=t.XpG();t.R7$(),t.Y8G("brand",e)("layout",o.layout)}}function Mt(n,r){if(1&n){const e=t.RV6();t.j41(0,"mcrai-row")(1,"mcrai-col")(2,"mcrai-paginator",5),t.bIt("page",function(i){t.eBV(e);const c=t.XpG();return t.Njj(c.pageChange.emit(i))}),t.k0s()()()}if(2&n){const e=t.XpG();t.R7$(2),t.Y8G("paginator",null==e.brands?null:e.brands.paginator)}}let Pt=(()=>{class n{constructor(){this.pageChange=new t.bkB}ngOnInit(){}isRowLayout(){return-1!==[1,2].indexOf(this.layout)}isColumnLayout(){return-1!==[0].indexOf(this.layout)}static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["shop-brand-list"]],inputs:{brands:"brands",layout:"layout",title:"title"},outputs:{pageChange:"pageChange"},decls:6,vars:2,consts:[["centering-container",""],[1,"title",3,"innerHTML"],[1,"brand-list-ul"],[1,"brand-list__item"],[3,"brand","layout"],[3,"page","paginator"]],template:function(o,i){1&o&&(t.j41(0,"div",0),t.DNE(1,xt,1,1,"h2",1),t.j41(2,"mcrai-ul",2),t.Z7z(3,bt,2,2,"mcrai-li",3,t.fX1),t.k0s(),t.DNE(5,Mt,3,1,"mcrai-row"),t.k0s()),2&o&&(t.R
17$(),t.vxM(1,i.title?1:-1),t.R7$(2),t.Dyx(null==i.brands?null:i.brands.items),t.R7$(2),t.vxM(5,null!=i.brands&&i.brands.paginator?5:-1))},dependencies:[ht.o,gt.g,ut.E,mt.R,yt.h,vt],styles:[".title[_ngcontent-%COMP%]{padding:16px 0;letter-spacing:.4px;text-align:center;text-transform:uppercase;font-size:29px}.mcrai-panel[_ngcontent-%COMP%], .mcrai-panel__actions[_ngcontent-%COMP%], .mcrai-panel__header[_ngcontent-%COMP%]{border:0!important}.brand-list-ul[_ngcontent-%COMP%]{flex-flow:row wrap;justify-content:flex-start;align-items:stretch;margin:0 -8px 12px;width:calc(100% + 16px)}.brand-list__item[_ngcontent-%COMP%]{min-width:0;flex:0 0 100%;padding:8px}@media (min-width: 640px){.brand-list__item[_ngcontent-%COMP%]{flex-basis:50%}}@media (min-width: 960px){.side-nav-closed [_nghost-%COMP%] .brand-list__item[_ngcontent-%COMP%]{flex-basis:33.3333%}}@media (min-width: 1366px){.side-nav-opened [_nghost-%COMP%] .brand-list__item[_ngcontent-%COMP%]{flex-basis:33.3333%}.side-nav-closed [_nghost-%COMP%] .brand-list__item[_ngcontent-%COMP%]{flex-basis:25%}}@media (min-width: 1600px){.side-nav-opened [_nghost-%COMP%] .brand-list__item[_ngcontent-%COMP%]{flex-basis:25%}.side-nav-closed [_nghost-%COMP%] .brand-list__item[_ngcontent-%COMP%]{flex-basis:20%}}[centering-container][_ngcontent-%COMP%]{margin:0;padding-left:32px;padding-right:32px}"],changeDetection:0})}return n})();var Tt=a(69624),Rt=a(32350),Ot=a(6985);function Gt(n,r){if(1&n&&t.nrm(0,"div",3),2&n){const e=t.XpG();t.Y8G("safeHTML",null==e.category||null==e.category.info[0]?null:e.category.info[0].description)}}function It(n,r){if(1&n&&t.nrm(0,"mcrai-media",5),2&n){const e=t.XpG();t.Y8G("data",null==e.category.preview_image?null:e.category.preview_image.medium)("width","auto")("height",312)}}let Bt=(()=>{class n{constructor(e){this.linkService=e}ngOnInit(){}static#t=this.\u0275fac=function(o){return new(o||n)(t.rXU(B._))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["shop-headline"]],inputs:{category:"category",categoryWithAside:"categoryWithAside"},decls:8,vars:7,consts:[[1,"headline"],[1,"headeline__texts"],[1,"h1-style","h1-style--align-left","mb32"],[1,"headline__description",3,"safeHTML"],[1,"headline__images"],["type","image",1,"headline__image",3,"data","width","height"],[1,"headline__slider",3,"category","groupID"]],template:function(o,i){1&o&&(t.j41(0,"div",0)(1,"div",1)(2,"h1",2),t.EFF(3),t.k0s(),t.DNE(4,Gt,1,1,"div",3),t.k0s(),t.j41(5,"div",4),t.DNE(6,It,1,3,"mcrai-media",5),t.nrm(7,"shop-banner",6),t.k0s()()),2&o&&(t.AVh("headline--without-aside",!i.categoryWithAside),t.R7$(3),t.SpI(" ",null!=i.category&&null!=i.category.info[0]&&i.category.info[0].name_detail?null==i.category||null==i.category.info[0]?null:i.category.info[0].name_detail:null==i.category||null==i.category.info[0]?null:i.category.info[0].name," "),t.R7$(),t.vxM(4,null!=i.category&&null!=i.category.info[0]&&i.category.info[0].description?4:-1),t.R7$(2),t.vxM(6,null!=i.category.preview_image&&i.category.preview_image.medium?6:-1),t.R7$(),t.Y8G("category",i.category)("groupID","vedle-popisu"))},dependencies:[Ot.m,S.K,X.h],styles:[".headline[_ngcontent-%COMP%]{max-width:1714px;margin-inline:auto;display:flex;padding:20px 24px}@media (max-width: 1365px){.headline[_ngcontent-%COMP%]{flex-direction:column;padding:20px 18px}.headline[_ngcontent-%COMP%] .headeline__texts[_ngcontent-%COMP%], .headline[_ngcontent-%COMP%] .headline__images[_ngcontent-%COMP%]{flex:0 0 auto}.headline[_ngcontent-%COMP%] .headline__images[_ngcontent-%COMP%]{align-items:center;padding:0}}.headeline__texts[_ngcontent-%COMP%]{flex:1 1 700px;max-width:900px}.headline__images[_ngcontent-%COMP%]{flex:0 1 821px;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;padding-top:56px}.headline__images[_ngcontent-%COMP%] .headline__slider[_ngcontent-%COMP%]{width:100%;max-width:821px}.headline__description[_ngcontent-%COMP%]{margin-bottom:20px;line-height:26px;font-size:18px;color:inherit}.headline__description[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:8px}.headline--without-aside[_ngcontent-%COMP%]{padding-inline:0}.headline--without-aside[_ngcontent-%COMP%] .headline__description[_ngcontent-%COMP%]{padding-bottom:24px;max-width:658px}@media (max-width: 1279px){.headline[_ngcontent-%COMP%]{padding-bottom:16px}}"]})}return n})();var Et=a(73955);const jt=()=>({lat:49.8037633,lng:15.4749126}),Lt=()=>["/"];function Ft(n,r){1&n&&t.nrm(0,"shop-header")}function At(n,r){1&n&&t.nrm(0,"shop-mobile-app-header",0)}function $t(n,r){if(1&n&&t.nrm(0,"shop-headline",5),2&n){const e=t.XpG(2);t.Y8G("category",e.category)("categoryWithAside",e.showAside())}}function St(n,r){if(1&n){const e=t.RV6();t.j41(0,"aside",19),t.nrm(1,"shop-categories-nav",20),t.j41(2,"shop-filter",21),t.nI1(3,"async"),t.bIt("refresh",function(i){t.eBV(e);const c=t.XpG(2);return t.Njj(c.onActiveTabChange(i))})("apply",function(i){t.eBV(e);const c=t.XpG(2);return t.Njj(c.applyFilter(i))}),t.k0s()()}if(2&n){const e=t.XpG(2);t.AVh("aside--with-categories",e.hasCategories()),t.R7$(),t.AVh("side-nav-opened",!0),t.R7$(),t.Y8G("activeParam",t.bMT(3,8,e.activeParam))("filter",e.filter)("layout",e.stagedLayout)("fetchFull",!0)}}function Xt(n,r){if(1&n&&t.nrm(0,"shop-headline",5),2&n){const e=t.XpG(2);t.Y8G("category",e.category)("categoryWithAside",e.showAside())}}function Dt(n,r){if(1&n){const e=t.RV6();t.j41(0,"shop-category-list",22),t.nI1(1,"async"),t.bIt("pageChange",function(i){t.eBV(e);const c=t.XpG(2);return t.Njj(c.fetchCategories(i))}),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("categories",t.bMT(1,2,e.categories))("layout",null==e.category?null:e.category.layout)}}function wt(n,r){if(1&n){const e=t.RV6();t.j41(0,"shop-product-list",23),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async"),t.nI1(4,"async"),t.nI1(5,"translate"),t.bIt("pageChange",function(i){t.eBV(e);const c=t.XpG(2);return t.Njj(c.fetchTopProducts(i))}),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("products",t.bMT(1,6,e.topProducts))("productsInComparator",t.bMT(2,8,e.productsInComparator))("productsInWishlist",t.bMT(3,10,e.productsInWishlist))("variables",t.bMT(4,12,e.variables))("layout",e.stagedLayout)("title",t.bMT(5,14,"category.best_selling_products"))}}function Vt(n,r){if(1&n){const e=t.RV6();t.j41(0,"shop-filter",24),t.nI1(1,"async"),t.bIt("refresh",function(i){t.eBV(e);const c=t.XpG(2);return t.Njj(c.onActiveTabChange(i))})("apply",function(i){t.eBV(e);const c=t.XpG(2);return t.Njj(c.applyFilter(i))}),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("activeParam",t.bMT(1,6,e.activeParam))("filter",e.filter)("layout",e.stagedLayout)("fetchFull",!0)("isFilterInPanel",!0)("loadD
1ata",!1)}}function Nt(n,r){if(1&n){const e=t.RV6();t.j41(0,"shop-product-list",25),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async"),t.bIt("pageChange",function(i){t.eBV(e);const c=t.XpG(2);return t.Njj(c.changeProductsPage(i))})("appendPage",function(i){t.eBV(e);const c=t.XpG(2);return t.Njj(c.appendPage(i))}),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("products",e.products)("productsInComparator",t.bMT(1,6,e.productsInComparator))("productsInWishlist",t.bMT(2,8,e.productsInWishlist))("variables",t.bMT(3,10,e.variables))("layout",e.stagedLayout)("showMoreLoading",e.showMoreLoading)}}function Ut(n,r){1&n&&(t.j41(0,"div",14),t.nrm(1,"mcrai-loader"),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&n&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"common.data_is_loading")," "))}function Yt(n,r){if(1&n){const e=t.RV6();t.j41(0,"shop-article-list",26),t.nI1(1,"async"),t.bIt("pageChange",function(i){t.eBV(e);const c=t.XpG(2);return t.Njj(c.fetchArticles(i))}),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("articles",t.bMT(1,2,e.articles))("layout",null==e.category?null:e.category.articles_layout)}}function kt(n,r){if(1&n){const e=t.RV6();t.j41(0,"shop-brand-list",27),t.nI1(1,"async"),t.bIt("pageChange",function(i){t.eBV(e);const c=t.XpG(2);return t.Njj(c.fetchBrands(i))}),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("brands",t.bMT(1,2,e.brands))("layout",null==e.category?null:e.category.articles_layout)}}function Wt(n,r){if(1&n&&t.nrm(0,"shop-google-map",17),2&n){const e=t.XpG(2);t.Y8G("markers",e.category.map)("center",t.lJ4(3,jt))("zoom",8)}}function Ht(n,r){if(1&n&&(t.j41(0,"div",18)(1,"h2"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",28)(5,"a",29),t.EFF(6," Pokra\u010dovat na hlavn\xed str\xe1nku "),t.k0s(),t.j41(7,"a",29),t.EFF(8," Pokra\u010dovat na mapu str\xe1nek "),t.k0s()()()),2&n){const e=t.XpG(2);t.R7$(2),t.SpI(" ",t.bMT(3,3,"category.category_is_empty")," "),t.R7$(3),t.Y8G("mcraiLink",t.lJ4(5,Lt)),t.R7$(2),t.Y8G("mcraiLink",e.linkService.getSitemapLink())}}function zt(n,r){if(1&n&&(t.j41(0,"div",4),t.DNE(1,$t,1,2,"shop-headline",5),t.j41(2,"div",6),t.DNE(3,St,4,10,"aside",7),t.j41(4,"div",8),t.DNE(5,Xt,1,2,"shop-headline",5),t.nrm(6,"shop-banner",9),t.DNE(7,Dt,2,4,"shop-category-list",10)(8,wt,6,16,"shop-product-list",11),t.nI1(9,"async"),t.DNE(10,Vt,2,8,"shop-filter",12)(11,Nt,4,12,"shop-product-list",13)(12,Ut,4,3,"div",14)(13,Yt,2,4,"shop-article-list",15)(14,kt,2,4,"shop-brand-list",16)(15,Wt,1,4,"shop-google-map",17)(16,Ht,9,6,"div",18),t.k0s()()()),2&n){let e;const o=t.XpG();t.AVh("category--with-background",o.hasBackground())("category--without-background",!o.hasBackground()),t.Y8G("ngStyle",o.styles),t.R7$(),t.vxM(1,o.showAside()?1:-1),t.R7$(2),t.vxM(3,o.showAside()?3:-1),t.R7$(),t.xc7("width",o.showAside()?"calc(100% - 338px)":"100%"),t.R7$(),t.vxM(5,o.showAside()?-1:5),t.R7$(),t.Y8G("category",o.category)("groupID","hlavni"),t.R7$(),t.vxM(7,o.hasCategories()?7:-1),t.R7$(),t.vxM(8,(null==(e=t.bMT(9,21,o.topProducts))||null==e.items?null:e.items.length)>0?8:-1),t.R7$(2),t.vxM(10,o.showFilter()&&o.hasFilter()&&o.hasProducts()&&(o.category.visible_products_count>1||o.category.sets_count>1)?10:-1),t.R7$(),t.vxM(11,o.hasProducts()&&!o.productsLoading?11:-1),t.R7$(),t.vxM(12,o.hasProducts()&&o.productsLoading?12:-1),t.R7$(),t.vxM(13,o.hasArticles()?13:-1),t.R7$(),t.vxM(14,o.hasBrands()?14:-1),t.R7$(),t.vxM(15,null!=o.category&&o.category.enable_map?15:-1),t.R7$(),t.vxM(16,o.hasCategories()||o.hasProducts()||o.hasArticles()||o.hasBrands()?-1:16)}}function Kt(n,r){1&n&&(t.j41(0,"div",3),t.nrm(1,"br")(2,"mcrai-loader"),t.EFF(3),t.nI1(4,"translate"),t.k0s()),2&n&&(t.R7$(3),t.SpI(" ",t.bMT(4,1,"common.data_is_loading")," "))}function Jt(n,r){1&n&&t.nrm(0,"shop-footer")}const Qt=[{path:"",redirectTo:"root",pathMatch:"full"},{path:":id",component:(()=>{class n{constructor(e,o,i,c,ve,xe,be,Me){this.store=e,this.router=o,this.activatedRoute=i,this.titleService=c,this.metaService=ve,this.userChangeService=xe,this.linkService=be,this.mobileApp=Me,this.destroy=new T.B7,this.productsLoading=!1,this.showMoreLoading=!1,this.stagedLayout=1,this.productsPage=1,this.newUrlParams=null}ngOnInit(){this.activatedRoute.params.pipe((0,f.Q)(this.destroy)).subscribe(e=>{this.id=e.id,this.filter=null,this.fetchCategory(),this.fetchFilter(this.activatedRoute.snapshot.queryParams),this.fetchCategories(),this.fetchArticles(),this.fetchTopProducts(),this.fetchBrands()}),this.store.pipe((0,l.Lt)(R.N2),(0,f.Q)(this.destroy),(0,p.T)(e=>
1e.get(this.id)),(0,b.p)(e=>!!e)).subscribe(e=>{this.category=e,this.stagedLayout=e.products_layout,this.updateSEO(e.info[0],e.preview_image,e.path),(1===this.category.visible_products_count||this.category.enable_products&&!this.category.enable_filter)&&(this.stagedFilter={},this.fetchProducts(1))}),this.topProducts=this.store.pipe((0,l.Lt)(M.N5),(0,p.T)(e=>e[this.id])),this.categories=this.store.pipe((0,l.Lt)(y.ws),(0,p.T)(e=>e[this.id])),this.store.pipe((0,l.Lt)(C.M$),(0,p.T)(e=>e[this.id])).subscribe(e=>{this.filter=e}),this.store.pipe((0,l.Lt)(M.WV),(0,f.Q)(this.destroy),(0,p.T)(e=>e[this.id])).subscribe(e=>{this.products=e,this.productsLoading=!1,this.showMoreLoading=!1,this.newUrlParams&&(this.upsertQueryParams(this.newUrlParams),this.newUrlParams=null)}),this.activeParam=this.store.pipe((0,l.Lt)(C.yS)),this.articles=this.store.pipe((0,l.Lt)(v.R2),(0,p.T)(e=>e[this.id])),this.brands=this.store.pipe((0,l.Lt)(Z),(0,p.T)(e=>e[this.id])),this.productsInComparator=this.store.pipe((0,l.Lt)(O.lq)),this.productsInWishlist=this.store.pipe((0,l.Lt)(u.A9),(0,b.p)(e=>!!e),(0,p.T)(e=>e.items)),this.store.pipe((0,l.Lt)(C.M$),(0,p.T)(e=>e[this.id])).subscribe(e=>this.filter=e),this.variables=this.store.pipe((0,l.Lt)(V.Ys)),this.userChangeService.addCallback("category",()=>{this.fetchProducts(this.productsPage),this.fetchTopProducts(1)})}ngOnDestroy(){this.userChangeService.removeCallback("category"),this.destroy.next(),this.destroy.complete()}upsertQueryParams(e={}){this.router.navigate([],{queryParams:e,relativeTo:this.activatedRoute})}updateSEO(e,o,i){e&&(e.seo_title&&(this.titleService.setTitle(e.seo_title),this.metaService.updateTag({property:"og:title",content:e.seo_title})),e.seo_description&&(this.metaService.updateTag({name:"description",content:e.seo_description}),this.metaService.updateTag({property:"og:description",content:e.seo_description})),o?.original&&this.metaService.updateTag({property:"og:image",content:o.original.path}),this.metaService.updateTag({property:"og:url",content:window.location.href}))}onActiveTabChange(e){e.currentActiveParam&&(e.fetchFull?this.fetchFilter(e.currentFilter):this.store.dispatch(new E.iP({category_id:this.id,param_name:e.currentActiveParam.info[0].url,filter:e.currentFilter})))}get styles(){if(this.category&&this.category.background_image)return{background:"#fff",background:`url('${this.category.background_image.large.path}') left top no-repeat #fff`}}categoryExists(){return!!this.category}hasFilter(){return!!this.filter}hasCategories(){return this.category.enable_categories&&this.category.categories_count>0}hasProducts(){return this.category.enable_products&&this.category.visible_products_count>0||this.category.enable_sets&&this.category.sets_count>0}hasArticles(){return this.category.enable_articles&&this.category.articles_count>0}hasBrands(){return this.category.enable_brands&&this.category.brands_count>0}hasBackground(){return!!this.category.background_image}showFilter(){return this.category.enable_filter}showAside(){return this.showFilter()&&this.hasFilter()&&this.hasProducts()}fetchCategory(){this.store.dispatch(new w.zS({id:this.id}))}fetchFilter(e){this.store.dispatch(new E.H9({id:this.id,filter:e}))}fetchCategories(e=1){this.store.dispatch(new h.B3({id:this.id,page:e}))}fetchProducts(e=1,o=!1){o?this.showMoreLoading=!0:this.productsLoading=!0,this.store.dispatch(new j.jq({id:this.id,page:e,layout:this.stagedLayout,filter:this.stagedFilter,append:o}))}fetchTopProducts(e=1){this.store.dispatch(new j.ow({id:this.id,page:e}))}fetchArticles(e=1){this.store.dispatch(new d.K2({id:this.id,page:e}))}fetchBrands(e=1){this.store.dispatch(new U({id:this.id,page:e}))}applyFilter(e){this.stagedFilter=e.currentFilter,this.stagedLayout=e.currentLayout,e.currentPage&&(this.productsPage=e.currentPage),e.currentParams&&(this.newUrlParams=e.currentParams),this.fetchProducts(this.productsPage)}changeProductsPage(e){this.productsPage=e,this.fetchProducts(e)}appendPage(e){this.productsPage=e,this.fetchProducts(e,!0)}static#t=this.\u0275fac=function(o){return new(o||n)(t.rXU(l.il),t.rXU(m.Ix),t.rXU(m.nX),t.rXU($.hE),t.rXU($.W8),t.rXU(q.p),t.rXU(B._),t.rXU("MOBILE_APP"))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["shop-category"]],hostVars:2,hostBindings:function(o,i){2&o&&t.Aen(i._styles)},decls:7,vars:7,consts:[["backButton","true","pageTitle","Nakupovat"],[3,"path","current"],[1,"category",3,"category--with-background","category--without-background","ngStyle"],["to-column","","center-xy","",1,"p32"],[1,"category",3,"ngStyle"],[3,"category","categoryWithAside"],["flex","","centering-container",""],["hidden","","visible-block-m","",1,"aside","mr24",3,"aside--with-categories"],[1,"page-content"],[3,"category","groupID"],[1,"p0",3,"categories","layout"],[3,"products","productsInComparator","productsInWishlist","variables","layout","title"],[1,"mt16",3,"activeParam","filter","layout","fetchFull","isFilterInPanel","loadData"],[1,"mt32",3,"products","productsInComparator","productsInWishlist","variables","layout","showMoreLoading"],["container","","to-column","","center-xy","",1,"p32"],[1,"p0",3,"articles","layout"],[3,"brands","layout"],[3,"markers","center","zoom"],["to-column","","center-x","",1,"container","pt32","pr16","pb32","pl16"],["hidden","","visible-block-m","",1,"aside","mr24"],[1,"categories-nav"],["hidden","","visible-block-m","",1,"mt20",3,"refresh","apply","activeParam","filter","layout","fetchFull"],[1,"p0",3,"pageChange","categories","layout"],[3,"pageChange","products","productsInComparator","productsInWishlist","variables","layout","title"],[1,"mt16",3,"refresh","apply","activeParam","filter","layout","fetchFull","isFilterInPanel","loadData"],[1,"mt32",3,"pageChange","appendPage","products","productsInComparator","productsInWishlist","variables","layout","showMoreLoading"],[1,"p0",3,"pageChange","articles","layout"],[3,"pageChange","brands","layout"],["center-x","","wrap","",1,"mt16"],["mcrai-button","positive",3,"mcraiLink"]],template:function(o,i){1&o&&(t.DNE(0,Ft,1,0,"shop-header")(1,At,1,0,"shop-mobile-app-header",0),t.j41(2,"shop-content"),t.nrm(3,"mcrai-breadcrumbs",1),t.DNE(4,zt,17,23,"div",2)(5,Kt,5,3,"div",3),t.k0s(),t.DNE(6,Jt,1,0,"shop-footer")),2&o&&(t.vxM(0,i.mobileAp
1p?-1:0),t.R7$(),t.vxM(1,i.mobileApp?1:-1),t.R7$(2),t.Y8G("path",null==i.category?null:i.category.breadcrumbs)("current",null==i.category?null:i.category.info[0].name),t.R7$(),t.vxM(4,i.categoryExists()?4:-1),t.R7$(),t.vxM(5,i.categoryExists()?-1:5),t.R7$(),t.vxM(6,i.mobileApp?-1:6))},dependencies:[s.B3,tt.I,et.q,nt.B,ot.Z,at.m,it.Q,st.g,rt.I,ct.q,lt.e,S.K,dt.t,pt.i,Pt,Tt.i,Rt.V,Bt,s.Jj,Et.D9],styles:[".aside[_ngcontent-%COMP%]{margin-top:71px;width:100%;max-width:314px}.aside--with-categories[_ngcontent-%COMP%]{margin-top:52px}.page-content[_ngcontent-%COMP%]{margin-top:39px}@media (max-width: 839px){.page-content[_ngcontent-%COMP%]{width:100%!important}}@media (max-width: 767px){.page-content[_ngcontent-%COMP%]{margin-top:16px}}[_nghost-%COMP%] shop-category-list [centering-container], [_nghost-%COMP%] shop-article-list [centering-container], [_nghost-%COMP%] shop-brand-list [centering-container]{padding:0}"]})}return n})()}];let Zt=(()=>{class n{static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[m.iI.forChild(Qt),m.iI]})}return n})();var qt=a(70842),te=a(50289),ee=a(94831),ne=a(68339),g=a(29262),oe=a(9990),ae=a(51415),ie=a(7483),se=a(46271),re=a(68098),ce=a(86464),le=a(25532),de=a(6560),_=a(41635),pe=a(18456),he=a(83921),ge=a(14421),ue=a(59722);let me=(()=>{class n extends ue.G{constructor(){super(...arguments),this.getCategoryArticles=(0,_.EH)(()=>this.actions.pipe((0,_.gp)(L),(0,pe.ZZ)(e=>this.dataService.getBrands(e.payload.id,e.payload.page).pipe((0,p.T)(o=>new Y(o)),(0,he.W)(o=>(0,ge.of)(new k(o))))))),this.getCategoryArticlesSuccess=(0,_.EH)(()=>this.actions.pipe((0,_.gp)(G)),{dispatch:!1}),this.getCategoryArticlesError=(0,_.EH)(()=>this.actions.pipe((0,_.gp)(F)),{dispatch:!1})}static#t=this.\u0275fac=(()=>{let e;return function(i){return(e||(e=t.xGo(n)))(i||n)}})();static#e=this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac})}return n})();var ye=a(52759),_e=a(41333);let fe=(()=>{class n{static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[s.MD,_e.A,l.md.forFeature(A,H),_.Vm.forFeature([me]),ye.V,g.F8,g.LU,g.Tm,g.SD]})}return n})(),Ce=(()=>{class n{static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[s.MD,Zt,qt.G,ee.f,g.LU,g.Tm,ce.X,te.G,ne.k,ie.G,ae.r,oe.H,se.z,re.j,fe,g.pj,de.j,le.r,g.wl,g.F8]})}return n})()}}]);
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.