1"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([[2630],{2630:(H,l,r)=>{r.r(l),r.d(l,{CategoryModule:()=>W,component:()=>P});var g=r(177),m=r(467),c=r(9379),t=r(3953),C=r(4452),h=r(8004),p=r(8251),v=r(610),u=r(3178),x=r(1210),y=r(2932),B=r(4365),f=function(o){return o.LATEST="latest",o.COVER="cover",o}(f||{});const I={template:f.COVER,currentIssue:{template:B.W9.COVER}};var R=r(362),E=r.n(R),d=r(7879),S=r(6010),T=r(4744);function $(o,n){if(1&o){const a=t.RV6();t.j41(0,"storefront-issue",4,0),t.bIt("click",function(){const s=t.eBV(a).$implicit,i=t.sdS(1),V=t.XpG(3);return t.Njj(V.onClickIssue(s,i))}),t.k0s()}if(2&o){const a=n.$implicit,e=t.XpG(3);t.Y8G("parentBaseContext",e.getIssueBaseContext(a))("parentBaseConfig",e.config.currentIssue)}}function k(o,n){if(1&o&&t.Z7z(0,$,2,2,"storefront-issue",3,t.BUC().trackByElement,!0),2&o){const a=t.XpG(2);t.Dyx(a.getIssues())}}function D(o,n){if(1&o&&(t.j41(0,"h3",1),t.EFF(1),t.k0s(),t.j41(2,"div",2),t.DNE(3,k,2,0),t.k0s()),2&o){const a=t.XpG();t.R7$(),t.JRh(null==a.category?null:a.category.name),t.R7$(2),t.vxM(a.config?3:-1)}}function F(o,n){if(1&o&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&o){const a=n.$implicit;t.ZvI("category-property ",a.key,""),t.R7$(),t.SpI(" ",a.value," ")}}function G(o,n){if(1&o&&(t.j41(0,"div",6),t.Z7z(1,F,2,4,"div",7,t.BUC().trackByProperty,!0),t.nI1(3,"keyvalue"),t.k0s()),2&o){const a=t.XpG(2);t.R7$(),t.Dyx(t.bMT(3,0,a.category.properties))}}function j(o,n){if(1&o&&(t.nrm(0,"storefront-image",5),t.j41(1,"h3",1),t.EFF(2),t.k0s(),t.DNE(3,G,4,2,"div",6)),2&o){const a=t.XpG();t.Y8G("src",null==a.category||null==a.category.thumbnails?null:a.category.thumbnails.default)("height",a.getImageHeight())("imageResolutionStrategy",null==a.config?null:a.config.imageResolutionStrategy),t.R7$(2),t.JRh(null==a.category?null:a.category.name),t.R7$(),t.vxM(a.category?3:-1)}}let A=(()=>{var o;class n extends x.${constructor(){super(...arguments),this.store=(0,t.WQX)(p.B),this.injector=(0,t.WQX)(t.zZn),this.eventActionService=(0,t.WQX)(h.G),this.purpleService=(0,t.WQX)(S.Wj),this.purpleEnv=(0,t.WQX)(d.r6),this.changeDetectorRef=(0,t.WQX)(t.gRc),this.defaultConfig=(0,c.A)({},I)}onConfigChanges(){var e=this;return(0,m.A)(function*(){e.config.dataSource?(e.dataSource=(0,C.O8)(e.injector,e.config.dataSource,e.elementRef.nativeElement,e.document),e.store.subscribe(e.dataSource.data$,s=>{e.category=s[0],e.context.category=e.category},u.lQ,u.lQ,"data"),yield e.dataSource.loadData()):e.category=e.context.category,e.changeDetectorRef.markForCheck()})()}getId(){return this.category?this.category.id:this.baseContext()&&this.baseContext().category&&this.baseContext().category.id}getImageHeight(){return this.config&&this.config.coverHeight||this.getDefaultImageHeight()}getDefaultImageHeight(){return y.q.DEFAULT}getIssues(){return this.category&&this.category.issues?this.category.issues.nodes:Array(this.config.dataSource&&this.config.dataSource.includeIssues||3).fill(null)}getIssueBaseContext(e){return e?(0,c.A)((0,c.A)({},this.baseContext()),{},{issue:e}):this.baseContext()}onClickIssue(e,s){e&&this.config.tapIssue&&(s.getDownloadHandler().then(i=>{this.store.dispatch((0,v.k4)({url:window.location.href,key:"".concat(this.getTrackingBaseKey(),"_").concat(s.getTrackingBaseKey(i),"_CLICKED"),params:(0,c.A)((0,c.A)({},this.getTrackingParams()),s.getTrackingParams(i))}))}),this.eventActionService.processEventAction(this.config.tapIssue,s))}isGhost(){return!this.category}hasContextChanged(e){return!this.config.dataSource&&!E()(e.category,this.category)||super.hasContextChanged(e)}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"currentIssue"]}getTrackingParams(){return(0,d.sZ)(this.category)}trackByElement(e,s){return null!=s&&s.id?s.id:"index-".concat(e)}trackByProperty(e,s){var i;return null!==(i=null==s?void 0:s.key)&&void 0!==i?i:e}}return(o=n).type="category",o.\u0275fac=(()=>{let a;return function(s){return(a||(a=t.xGo(o)))(s||o)}})(),o.\u0275cmp=t.VBU({type:o,selectors:[["storefront-category"]],standalone:!1,features:[t.Jv_([p.B]),t.Vt3],decls:2,vars:1,consts:[["issueComponent",""],[1,"category-title"],[1,"category-issues"],[3,"parentBaseContext","parentBaseConfig"],[3,"click","parentBaseContext","parentBaseConfig"],[3,"src","height","imageResolutionStrategy"],[1,"category-properties"],[3,"class"]],template:function(e,s){if(1&e&&t.DNE(0,D,4,2)(1,j,4,5),2&e){let i;t.vxM("latest"===(i=s.template)?0:1)}},dependencies:[T.z,y.h,g.lG],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-category,.pxp-category{display:flex;flex-direction:column}storefront-category .category-properties,.pxp-category .category-properties{display:none}storefront-category[template=cover] .category-title,storefront-category[data-pxp-template=cover] .category-title,.pxp-category[template=cover] .category-title,.pxp-category[data-pxp-template=cover] .category-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}storefront-category[template=latest] .category-title,storefront-category[data-pxp-template=latest] .category-title,.pxp-category[template=latest] .category-title,.pxp-category[data-pxp-template=latest] .category-title{display:block}storefront-category[template=latest] .category-issues,storefront-category[data-pxp-template=latest] .category-issues,.pxp-category[template=latest] .category-issues,.pxp-category[data-pxp-template=latest] .category-issues{display:flex;width:100%}\n'],encapsulation:2}),n})();var X=r(1367),M=r(6483),Q=r(4403);let W=(()=>{var o;class n{}return(o=n).\u0275fac=function(e){return new(e||o)}
1,o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({imports:[g.MD,X.IssueModule,Q.U,M.h]}),n})();const P=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.