@pronto-tools-and-more/files 13.2.0 → 13.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/files/framework-latest/src/default/storefront/buildInfo.json +3 -3
- package/files/framework-latest/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +80 -80
- package/files/framework-latest/src/default/storefront/index.html +2 -2
- package/files/framework-latest/src/default/storefront/modules/common.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-node_modules_angular_forms_fesm2022_forms_mjs.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_base-component_base-datacollection_component_ts-4706f8.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_html_html_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_image_image_leandom_component_ts-projects_store-571069.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_image_image_leandom_component_ts-projects_store-a6979f.js +1 -0
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_issue_issue_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_section_section_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_service_tts_tts_service_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/main.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-445afb.js +1 -0
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-7956f0.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_action-executor_action-executor_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_ad_ad_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_app-menu-xml_app-menu-xml_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_bookmark_bookmark_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-body_content-body_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-featured-image_content-featured-c9ba26.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_category_category_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_collection_collection_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_component_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_coupon_coupon_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_dev-components_user-tag-testing_user-tag-testing_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_download-issues_download-issues_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_dropdown_dropdown_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_iframe_iframe_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_issue-search-result_issue-search-result_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_login_login_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_menu_menu_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_product_product_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_publication-completion_publication-completion_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_publication_publication_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_recommendations_recommendations_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_search-field_search-field_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_subscription_subscription_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_swiper_swiper_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_ticker_ticker_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_toggle_toggle_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_toolbar_toolbar_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_web-presenter_presenter_presenter_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_widget_widget_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_directive_check-overflow_check-overflow_directive_ts.js +1 -0
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_modal_modal_leandom_component_ts.js +1 -0
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_preview_preview_leandom_component_ts.js +1 -0
- package/files/schema/views-schema.json +23 -116
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_publication_publication_module_ts"],{3942:(Ft,C,s)=>{s.r(C),s.d(C,{PublicationModule:()=>Lt,component:()=>Nt});var l=s(177),Y=s(467),g=s(9379),t=s(4438),S=s(4404),d=s(8251),$=s(4365),k=s(2085),v=function(i){return i.LATEST="latest",i.COVER="cover",i.META="meta",i}(v||{});const E={template:v.COVER,currentIssue:{template:$.W9.COVER},currentContent:{template:k.qc.COVER},titleMessage:"PUBLICATION_TITLE",descriptionMessage:"PUBLICATION_DESCRIPTION",issuesPerYearMessage:"PUBLICATION_ISSUES_PER_YEAR",contentsPerYearMessage:"PUBLICATION_CONTENTS_PER_YEAR"};var M=s(1210),A=s(610),_=s(2932),h=s(3178),j=s(4452),L=s(7374),N=s.n(L),V=s(362),B=s.n(V),G=s(7879),F=s(8004),O=s(9516),U=s(5102),H=s(1652),Z=s(5927),T=s(7808),y=s(8490),P=s(4744),R=s(4354),I=s(1302),D=s(8909);const w=["listContent"],u=i=>[i];function z(i,o){if(1&i){const e=t.RV6();t.j41(0,"div",11,0),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentContent)}}function Q(i,o){if(1&i){const e=t.RV6();t.j41(0,"div",12,1),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentIssue)}}function K(i,o){if(1&i&&t.DNE(0,z,2,2,"div",9)(1,Q,2,2,"div",10),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.vxM(n.isIssue(e)?1:0)}}function J(i,o){if(1&i){const e=t.RV6();t.j41(0,"storefront-content",14,0),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentContent)}}function W(i,o){if(1&i){const e=t.RV6();t.j41(0,"storefront-issue",14,1),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentIssue)}}function q(i,o){if(1&i&&t.DNE(0,J,2,2,"storefront-content",13)(1,W,2,2,"storefront-issue",13),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.vxM(n.isIssue(e)?1:0)}}function tt(i,o){if(1&i&&(t.qex(0),t.DNE(1,K,2,1)(2,q,2,1),t.bVm()),2&i){const e=t.XpG(3);t.R7$(),t.vxM(e.domHelper.leanDom?1:2)}}function et(i,o){if(1&i&&(t.qex(0),t.DNE(1,tt,3,1,"ng-container",8),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.contents)}}function it(i,o){if(1&i&&(t.qex(0),t.nrm(1,"h3",5),t.j41(2,"div",6),t.DNE(3,et,2,1,"ng-container",7),t.k0s(),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.titleMessage)("storefrontTranslateArgs",t.eq3(3,u,e.publication&&e.publication.name)),t.R7$(2),t.Y8G("ngIf",e.config)}}function nt(i,o){if(1&i&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&i){const e=o.$implicit;t.ZvI("publication-property ",e.key,""),t.R7$(),t.SpI(" ",e.value," ")}}function ot(i,o){if(1&i&&(t.j41(0,"div",18),t.DNE(1,nt,2,4,"div",19),t.nI1(2,"keyvalue"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,e.publication.properties))}}function at(i,o){if(1&i&&t.nrm(0,"div",20),2&i){const e=t.XpG(2);t.Y8G("storefrontTranslate",e.config&&(e.config.issuesPerYearMessage||e.config.contentsPerYearMessage))("storefrontTranslateArgs",t.eq3(2,u,e.contentsPerYear))}}function st(i,o){if(1&i&&(t.qex(0),t.nrm(1,"h3",5)(2,"div",15),t.DNE(3,ot,3,3,"div",16)(4,at,1,4,"div",17),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.titleMessage)("storefrontTranslateArgs",t.eq3(6,u,e.publication&&e.publication.name)),t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(8,u,e.publication&&e.publication.description)),t.R7$(),t.Y8G("ngIf",e.publication),t.R7$(),t.Y8G("ngIf",void 0!==e.contentsPerYear)}}function pt(i,o){if(1&i&&t.nrm(0,"div",21),2&i){const e=t.XpG(2);t.Y8G("src",e.publication&&e.publication.thumbnails.default)("height",e.getImageHeight())("imageResolutionStrategy",null==e.config?null:e.config.imageResolutionStrategy)}}function ct(i,o){if(1&i&&t.nrm(0,"storefront-image",22),2&i){const e=t.XpG(2);t.Y8G("src",e.publication&&e.publication.thumbnails.default)("height",e.getImageHeight())("imageResolutionStrategy",null==e.config?null:e.config.imageResolutionStrategy)}}function lt(i,o){if(1&i&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&i){const e=o.$implicit;t.ZvI("publication-property ",e.key,""),t.R7$(),t.SpI(" ",e.value," ")}}function rt(i,o){if(1&i&&(t.j41(0,"div",18),t.DNE(1,lt,2,4,"div",19),t.nI1(2,"keyvalue"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,e.publication.properties))}}function ut(i,o){if(1&i&&t.nrm(0,"div",20),2&i){const e=t.XpG(2);t.Y8G("storefrontTranslate",e.config&&e.config.contentsPerYearMessage)("storefrontTranslateArgs",t.eq3(2,u,e.contentsPerYear))}}function bt(i,o){if(1&i&&(t.qex(0),t.DNE(1,pt,1,3,"div",21)(2,ct,1,3,"storefront-image",22),t.nrm(3,"h3",5)(4,"div",15),t.DNE(5,rt,3,3,"div",16)(6,ut,1,4,"div",17),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.vxM(e.domHelper.leanDom?1:2),t.R7$(2),t.Y8G("storefrontTranslate",e.config&&e.config.titleMessage)("storefrontTranslateArgs",t.eq3(7,u,e.publication&&e.publication.name)),t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(9,u,e.publication&&e.publication.description)),t.R7$(),t.Y8G("ngIf",e.publication),t.R7$(),t.Y8G("ngIf",void 0!==e.contentsPerYear)}}let X=(()=>{var i;class o extends M.${constructor(n,a,p,c,x,m,r,f,Vt,Bt){super(a,n,x,m,f),this.elementRef=n,this.injector=a,this.store=p,this.eventActionService=c,this.contextService=x,this.document=m,this.purpleService=r,this.globalService=f,this.purpleEnv=Vt,this.domHelper=Bt,this.defaultConfig=(0,g.A)({},E),this.contentContexts={}}ngOnInit(){super.ngOnInit(),this.setContents()}ngOnDestroy(){super.ngOnDestroy(),this.dataSource&&this.contextService.unregisterDataSource(this.dataSource)}onConfigChanges(){var n=this;return(0,Y.A)(function*(){n.config.dataSource?(n.dataSource=(0,j.O8)(n.injector,n.config.dataSource,n.elementRef.nativeElement,n.document),n.store.subscribe(n.dataSource.data$,a=>{n.publication=a[0],n.context.publication=n.publication,n.setContents()},h.lQ,h.lQ,"data"),yield n.dataSource.loadData()):(n.publication=n.context.publication,n.setContents()),n.changeDetectorRef.markForCheck()})()}getTrackingParams(){return(0,G.GA)(this.publication)}getId(){return this.publication?this.publication.id:this.baseContext&&this.baseContext.publication&&this.baseContext.publication.id}setContents(){if(this.contentContexts={},this.publication&&(this.publication.issues||this.publication.contents)){var n,a,p;this.contents=null!==(n=null===(a=this.publication.contents)||void 0===a?void 0:a.nodes)&&void 0!==n?n:null===(p=this.publication.issues)||void 0===p?void 0:p.nodes,this.contentContexts=this.contents.reduce((r,f)=>(r[f.id]=this.getContentBaseContext(f),r),{});const m=N()(new Date).subtract(1,"year").toDate();this.contentsPerYear=this.contents.filter(r=>r.publicationDate>m.getTime()).length}else{var c,x;const m=this.config||this.baseConfig,r=(null===(c=m.dataSource)||void 0===c?void 0:c.includeContents)||(null===(x=m.dataSource)||void 0===x?void 0:x.includeIssues);this.contents=Array(r&&("number"==typeof r?r:r.first)||3).fill({})}}getContentBaseContext(n){return(0,g.A)((0,g.A)({},this.baseContext),{},{content:n})}onClickContent(n,a){const p=this.config.tapContent||this.config.tapIssue;p&&(a.getDownloadHandler().then(c=>{this.store.dispatch((0,A.k4)({url:this.document.location.href,key:"".concat(this.getTrackingBaseKey(),"_").concat(a.getTrackingBaseKey(c),"_CLICKED"),params:a.getTrackingParams(c)}))}),this.eventActionService.processEventAction(p,a))}getImageHeight(){return this.config&&this.config.coverHeight||this.getDefaultImageHeight()}getDefaultImageHeight(){return _.q.DEFAULT}isGhost(){return!this.publication}hasContextChanged(n){return!this.config.dataSource&&!B()(n.publication,this.publication)||super.hasContextChanged(n)}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"currentIssue"]}isIssue(n){return n&&n.contentType===S.CatalogContentType.ISSUE}}return(i=o).type="publication",i.\u0275fac=function(n){return new(n||i)(t.rXU(t.aKT),t.rXU(t.zZn),t.rXU(d.B),t.rXU(F.G),t.rXU(O.V),t.rXU(l.qQ),t.rXU(U.Wj),t.rXU(H.d),t.rXU(G.r6),t.rXU(Z.S))},i.\u0275cmp=t.VBU({type:i,selectors:[["storefront-publication"]],viewQuery:function(n,a){if(1&n&&t.GBs(w,7,t.c1b),2&n){let p;t.mGM(p=t.lsd())&&(a.listContent=p.first)}},standalone:!1,features:[t.Jv_([d.B]),t.Vt3],decls:4,vars:3,consts:[["contentComponent",""],["issueComponent",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"publication-title",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"publication-issues"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"pxp-content",3,"baseContext","baseConfig"],[1,"pxp-issue",3,"baseContext","baseConfig"],[1,"pxp-content",3,"click","baseContext","baseConfig"],[1,"pxp-issue",3,"click","baseContext","baseConfig"],[3,"baseContext","baseConfig"],[3,"click","baseContext","baseConfig"],[1,"publication-description",3,"storefrontTranslate","storefrontTranslateArgs"],["class","publication-properties",4,"ngIf"],["class","publication-issues-per-year",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[1,"publication-properties"],[3,"class",4,"ngFor","ngForOf"],[1,"publication-issues-per-year",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"pxp-image",3,"src","height","imageResolutionStrategy"],[3,"src","height","imageResolutionStrategy"]],template:function(n,a){1&n&&(t.qex(0,2),t.DNE(1,it,4,5,"ng-container",3)(2,st,5,10,"ng-container",3)(3,bt,7,11,"ng-container",4),t.bVm()),2&n&&(t.Y8G("ngSwitch",a.template),t.R7$(),t.Y8G("ngSwitchCase","latest"),t.R7$(),t.Y8G("ngSwitchCase","meta"))},dependencies:[l.Sq,l.bT,l.ux,l.e1,l.fG,T.B,y.x,P.z,R.n,_.h,I.x,D.M,l.lG],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-publication,.pxp-publication{display:flex;flex-direction:column}storefront-publication .publication-description,.pxp-publication .publication-description{width:100%;white-space:pre-wrap}storefront-publication[template=cover],storefront-publication[data-pxp-template=cover],.pxp-publication[template=cover],.pxp-publication[data-pxp-template=cover]{border-radius:100%;overflow:hidden;transform:translateZ(1px)}storefront-publication[template=cover] .publication-title,storefront-publication[template=cover] .publication-description,storefront-publication[template=cover] .publication-properties,storefront-publication[template=cover] .publication-issues-per-year,storefront-publication[data-pxp-template=cover] .publication-title,storefront-publication[data-pxp-template=cover] .publication-description,storefront-publication[data-pxp-template=cover] .publication-properties,storefront-publication[data-pxp-template=cover] .publication-issues-per-year,.pxp-publication[template=cover] .publication-title,.pxp-publication[template=cover] .publication-description,.pxp-publication[template=cover] .publication-properties,.pxp-publication[template=cover] .publication-issues-per-year,.pxp-publication[data-pxp-template=cover] .publication-title,.pxp-publication[data-pxp-template=cover] .publication-description,.pxp-publication[data-pxp-template=cover] .publication-properties,.pxp-publication[data-pxp-template=cover] .publication-issues-per-year{display:none}storefront-publication[template=latest] .publication-title,storefront-publication[data-pxp-template=latest] .publication-title,.pxp-publication[template=latest] .publication-title,.pxp-publication[data-pxp-template=latest] .publication-title{display:block;text-align:center;order:2;opacity:0;transition:opacity .2s ease}storefront-publication[template=latest] .publication-description,storefront-publication[template=latest] .publication-properties,storefront-publication[data-pxp-template=latest] .publication-description,storefront-publication[data-pxp-template=latest] .publication-properties,.pxp-publication[template=latest] .publication-description,.pxp-publication[template=latest] .publication-properties,.pxp-publication[data-pxp-template=latest] .publication-description,.pxp-publication[data-pxp-template=latest] .publication-properties{display:none}storefront-publication[template=latest] .publication-issues,storefront-publication[data-pxp-template=latest] .publication-issues,.pxp-publication[template=latest] .publication-issues,.pxp-publication[data-pxp-template=latest] .publication-issues{display:flex;width:100%}storefront-publication[template=latest] .publication-issues storefront-content .content-image storefront-image,storefront-publication[template=latest] .publication-issues storefront-content .content-image .pxp-image,storefront-publication[template=latest] .publication-issues .pxp-content .content-image storefront-image,storefront-publication[template=latest] .publication-issues .pxp-content .content-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image .pxp-image,.pxp-publication[template=latest] .publication-issues storefront-content .content-image storefront-image,.pxp-publication[template=latest] .publication-issues storefront-content .content-image .pxp-image,.pxp-publication[template=latest] .publication-issues .pxp-content .content-image storefront-image,.pxp-publication[template=latest] .publication-issues .pxp-content .content-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image .pxp-image{width:100%;max-width:100%;height:auto}storefront-publication[template=latest] .publication-issues storefront-content .content-description,storefront-publication[template=latest] .publication-issues storefront-content .content-pub-date,storefront-publication[template=latest] .publication-issues storefront-content .content-categories,storefront-publication[template=latest] .publication-issues storefront-content .content-properties,storefront-publication[template=latest] .publication-issues .pxp-content .content-description,storefront-publication[template=latest] .publication-issues .pxp-content .content-pub-date,storefront-publication[template=latest] .publication-issues .pxp-content .content-categories,storefront-publication[template=latest] .publication-issues .pxp-content .content-properties,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-description,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-categories,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-properties,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-description,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-categories,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-properties,.pxp-publication[template=latest] .publication-issues storefront-content .content-description,.pxp-publication[template=latest] .publication-issues storefront-content .content-pub-date,.pxp-publication[template=latest] .publication-issues storefront-content .content-categories,.pxp-publication[template=latest] .publication-issues storefront-content .content-properties,.pxp-publication[template=latest] .publication-issues .pxp-content .content-description,.pxp-publication[template=latest] .publication-issues .pxp-content .content-pub-date,.pxp-publication[template=latest] .publication-issues .pxp-content .content-categories,.pxp-publication[template=latest] .publication-issues .pxp-content .content-properties,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-description,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-categories,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-properties,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-description,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-categories,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-properties{display:none}storefront-publication[template=latest] .publication-issues storefront-issue .issue-image storefront-image,storefront-publication[template=latest] .publication-issues storefront-issue .issue-image .pxp-image,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-image storefront-image,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image .pxp-image,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-image storefront-image,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-image .pxp-image,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-image storefront-image,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image .pxp-image{width:100%;max-width:100%;height:auto}storefront-publication[template=latest] .publication-issues storefront-issue .issue-description,storefront-publication[template=latest] .publication-issues storefront-issue .issue-pub-date,storefront-publication[template=latest] .publication-issues storefront-issue .issue-categories,storefront-publication[template=latest] .publication-issues storefront-issue .issue-properties,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-description,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-pub-date,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-categories,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-properties,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-description,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-categories,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-properties,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-description,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-categories,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-properties,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-description,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-pub-date,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-categories,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-properties,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-description,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-pub-date,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-categories,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-properties,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-description,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-categories,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-properties,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-description,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-categories,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-properties{display:none}storefront-publication[template=meta] .publication-title,storefront-publication[template=meta] .publication-description,storefront-publication[template=meta] .publication-properties,storefront-publication[template=meta] .publication-issues-per-year,storefront-publication[data-pxp-template=meta] .publication-title,storefront-publication[data-pxp-template=meta] .publication-description,storefront-publication[data-pxp-template=meta] .publication-properties,storefront-publication[data-pxp-template=meta] .publication-issues-per-year,.pxp-publication[template=meta] .publication-title,.pxp-publication[template=meta] .publication-description,.pxp-publication[template=meta] .publication-properties,.pxp-publication[template=meta] .publication-issues-per-year,.pxp-publication[data-pxp-template=meta] .publication-title,.pxp-publication[data-pxp-template=meta] .publication-description,.pxp-publication[data-pxp-template=meta] .publication-properties,.pxp-publication[data-pxp-template=meta] .publication-issues-per-year{display:none}storefront-publication.ghost .publication-title,.pxp-publication.ghost .publication-title{background-image:linear-gradient(90deg,var(--ghostColor) 0px,rgb(236,236,236) 40px,var(--ghostColor) 80px);background-size:80vw;animation:ghost-lines 2s infinite linear;background-color:var(--ghostColor);color:transparent!important;border-radius:4px;width:40%}storefront-publication.ghost .publication-title:before,.pxp-publication.ghost .publication-title:before{content:" ";display:inline}storefront-publication.ghost storefront-image,storefront-publication.ghost .pxp-image,.pxp-publication.ghost storefront-image,.pxp-publication.ghost .pxp-image{background-color:var(--ghostColor);animation:ghost-opacity 2s infinite linear}\n'],encapsulation:2}),o})();var mt=s(4403),ft=s(6483),xt=s(8399),gt=s(1367);const dt=["class","pxp-publication"],b=i=>[i];function _t(i,o){if(1&i){const e=t.RV6();t.j41(0,"div",11,0),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentContent)}}function Ct(i,o){if(1&i){const e=t.RV6();t.j41(0,"div",12,1),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentIssue)}}function vt(i,o){if(1&i&&t.DNE(0,_t,2,2,"div",9)(1,Ct,2,2,"div",10),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.vxM(n.isIssue(e)?1:0)}}function ht(i,o){if(1&i){const e=t.RV6();t.j41(0,"storefront-content",14,0),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentContent)}}function Gt(i,o){if(1&i){const e=t.RV6();t.j41(0,"storefront-issue",14,1),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentIssue)}}function Tt(i,o){if(1&i&&t.DNE(0,ht,2,2,"storefront-content",13)(1,Gt,2,2,"storefront-issue",13),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.vxM(n.isIssue(e)?1:0)}}function yt(i,o){if(1&i&&(t.qex(0),t.DNE(1,vt,2,1)(2,Tt,2,1),t.bVm()),2&i){const e=t.XpG(3);t.R7$(),t.vxM(e.domHelper.leanDom?1:2)}}function Pt(i,o){if(1&i&&(t.qex(0),t.DNE(1,yt,3,1,"ng-container",8),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.contents)}}function Rt(i,o){if(1&i&&(t.qex(0),t.nrm(1,"h3",5),t.j41(2,"div",6),t.DNE(3,Pt,2,1,"ng-container",7),t.k0s(),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.titleMessage)("storefrontTranslateArgs",t.eq3(3,b,e.publication&&e.publication.name)),t.R7$(2),t.Y8G("ngIf",e.config)}}function It(i,o){if(1&i&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&i){const e=o.$implicit;t.ZvI("publication-property ",e.key,""),t.R7$(),t.SpI(" ",e.value," ")}}function Dt(i,o){if(1&i&&(t.j41(0,"div",18),t.DNE(1,It,2,4,"div",19),t.nI1(2,"keyvalue"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,e.publication.properties))}}function Xt(i,o){if(1&i&&t.nrm(0,"div",20),2&i){const e=t.XpG(2);t.Y8G("storefrontTranslate",e.config&&(e.config.issuesPerYearMessage||e.config.contentsPerYearMessage))("storefrontTranslateArgs",t.eq3(2,b,e.contentsPerYear))}}function Yt(i,o){if(1&i&&(t.qex(0),t.nrm(1,"h3",5)(2,"div",15),t.DNE(3,Dt,3,3,"div",16)(4,Xt,1,4,"div",17),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.titleMessage)("storefrontTranslateArgs",t.eq3(6,b,e.publication&&e.publication.name)),t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(8,b,e.publication&&e.publication.description)),t.R7$(),t.Y8G("ngIf",e.publication),t.R7$(),t.Y8G("ngIf",void 0!==e.contentsPerYear)}}function St(i,o){if(1&i&&t.nrm(0,"div",21),2&i){const e=t.XpG(2);t.Y8G("src",e.publication&&e.publication.thumbnails.default)("height",e.getImageHeight())("imageResolutionStrategy",null==e.config?null:e.config.imageResolutionStrategy)}}function $t(i,o){if(1&i&&t.nrm(0,"storefront-image",22),2&i){const e=t.XpG(2);t.Y8G("src",e.publication&&e.publication.thumbnails.default)("height",e.getImageHeight())("imageResolutionStrategy",null==e.config?null:e.config.imageResolutionStrategy)}}function kt(i,o){if(1&i&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&i){const e=o.$implicit;t.ZvI("publication-property ",e.key,""),t.R7$(),t.SpI(" ",e.value," ")}}function Et(i,o){if(1&i&&(t.j41(0,"div",18),t.DNE(1,kt,2,4,"div",19),t.nI1(2,"keyvalue"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,e.publication.properties))}}function Mt(i,o){if(1&i&&t.nrm(0,"div",20),2&i){const e=t.XpG(2);t.Y8G("storefrontTranslate",e.config&&e.config.contentsPerYearMessage)("storefrontTranslateArgs",t.eq3(2,b,e.contentsPerYear))}}function At(i,o){if(1&i&&(t.qex(0),t.DNE(1,St,1,3,"div",21)(2,$t,1,3,"storefront-image",22),t.nrm(3,"h3",5)(4,"div",15),t.DNE(5,Et,3,3,"div",16)(6,Mt,1,4,"div",17),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.vxM(e.domHelper.leanDom?1:2),t.R7$(2),t.Y8G("storefrontTranslate",e.config&&e.config.titleMessage)("storefrontTranslateArgs",t.eq3(7,b,e.publication&&e.publication.name)),t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(9,b,e.publication&&e.publication.description)),t.R7$(),t.Y8G("ngIf",e.publication),t.R7$(),t.Y8G("ngIf",void 0!==e.contentsPerYear)}}let jt=(()=>{var i;class o extends X{}return(i=o).\u0275fac=(()=>{let e;return function(a){return(e||(e=t.xGo(i)))(a||i)}})(),i.\u0275cmp=t.VBU({type:i,selectors:[["div",8,"pxp-publication"]],standalone:!1,features:[t.Jv_([d.B]),t.Vt3],attrs:dt,decls:4,vars:3,consts:[["contentComponent",""],["issueComponent",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"publication-title",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"publication-issues"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"pxp-content",3,"baseContext","baseConfig"],[1,"pxp-issue",3,"baseContext","baseConfig"],[1,"pxp-content",3,"click","baseContext","baseConfig"],[1,"pxp-issue",3,"click","baseContext","baseConfig"],[3,"baseContext","baseConfig"],[3,"click","baseContext","baseConfig"],[1,"publication-description",3,"storefrontTranslate","storefrontTranslateArgs"],["class","publication-properties",4,"ngIf"],["class","publication-issues-per-year",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[1,"publication-properties"],[3,"class",4,"ngFor","ngForOf"],[1,"publication-issues-per-year",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"pxp-image",3,"src","height","imageResolutionStrategy"],[3,"src","height","imageResolutionStrategy"]],template:function(n,a){1&n&&(t.qex(0,2),t.DNE(1,Rt,4,5,"ng-container",3)(2,Yt,5,10,"ng-container",3)(3,At,7,11,"ng-container",4),t.bVm()),2&n&&(t.Y8G("ngSwitch",a.template),t.R7$(),t.Y8G("ngSwitchCase","latest"),t.R7$(),t.Y8G("ngSwitchCase","meta"))},dependencies:[l.Sq,l.bT,l.ux,l.e1,l.fG,T.B,y.x,P.z,R.n,_.h,I.x,D.M,l.lG],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-publication,.pxp-publication{display:flex;flex-direction:column}storefront-publication .publication-description,.pxp-publication .publication-description{width:100%;white-space:pre-wrap}storefront-publication[template=cover],storefront-publication[data-pxp-template=cover],.pxp-publication[template=cover],.pxp-publication[data-pxp-template=cover]{border-radius:100%;overflow:hidden;transform:translateZ(1px)}storefront-publication[template=cover] .publication-title,storefront-publication[template=cover] .publication-description,storefront-publication[template=cover] .publication-properties,storefront-publication[template=cover] .publication-issues-per-year,storefront-publication[data-pxp-template=cover] .publication-title,storefront-publication[data-pxp-template=cover] .publication-description,storefront-publication[data-pxp-template=cover] .publication-properties,storefront-publication[data-pxp-template=cover] .publication-issues-per-year,.pxp-publication[template=cover] .publication-title,.pxp-publication[template=cover] .publication-description,.pxp-publication[template=cover] .publication-properties,.pxp-publication[template=cover] .publication-issues-per-year,.pxp-publication[data-pxp-template=cover] .publication-title,.pxp-publication[data-pxp-template=cover] .publication-description,.pxp-publication[data-pxp-template=cover] .publication-properties,.pxp-publication[data-pxp-template=cover] .publication-issues-per-year{display:none}storefront-publication[template=latest] .publication-title,storefront-publication[data-pxp-template=latest] .publication-title,.pxp-publication[template=latest] .publication-title,.pxp-publication[data-pxp-template=latest] .publication-title{display:block;text-align:center;order:2;opacity:0;transition:opacity .2s ease}storefront-publication[template=latest] .publication-description,storefront-publication[template=latest] .publication-properties,storefront-publication[data-pxp-template=latest] .publication-description,storefront-publication[data-pxp-template=latest] .publication-properties,.pxp-publication[template=latest] .publication-description,.pxp-publication[template=latest] .publication-properties,.pxp-publication[data-pxp-template=latest] .publication-description,.pxp-publication[data-pxp-template=latest] .publication-properties{display:none}storefront-publication[template=latest] .publication-issues,storefront-publication[data-pxp-template=latest] .publication-issues,.pxp-publication[template=latest] .publication-issues,.pxp-publication[data-pxp-template=latest] .publication-issues{display:flex;width:100%}storefront-publication[template=latest] .publication-issues storefront-content .content-image storefront-image,storefront-publication[template=latest] .publication-issues storefront-content .content-image .pxp-image,storefront-publication[template=latest] .publication-issues .pxp-content .content-image storefront-image,storefront-publication[template=latest] .publication-issues .pxp-content .content-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image .pxp-image,.pxp-publication[template=latest] .publication-issues storefront-content .content-image storefront-image,.pxp-publication[template=latest] .publication-issues storefront-content .content-image .pxp-image,.pxp-publication[template=latest] .publication-issues .pxp-content .content-image storefront-image,.pxp-publication[template=latest] .publication-issues .pxp-content .content-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image .pxp-image{width:100%;max-width:100%;height:auto}storefront-publication[template=latest] .publication-issues storefront-content .content-description,storefront-publication[template=latest] .publication-issues storefront-content .content-pub-date,storefront-publication[template=latest] .publication-issues storefront-content .content-categories,storefront-publication[template=latest] .publication-issues storefront-content .content-properties,storefront-publication[template=latest] .publication-issues .pxp-content .content-description,storefront-publication[template=latest] .publication-issues .pxp-content .content-pub-date,storefront-publication[template=latest] .publication-issues .pxp-content .content-categories,storefront-publication[template=latest] .publication-issues .pxp-content .content-properties,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-description,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-categories,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-properties,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-description,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-categories,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-properties,.pxp-publication[template=latest] .publication-issues storefront-content .content-description,.pxp-publication[template=latest] .publication-issues storefront-content .content-pub-date,.pxp-publication[template=latest] .publication-issues storefront-content .content-categories,.pxp-publication[template=latest] .publication-issues storefront-content .content-properties,.pxp-publication[template=latest] .publication-issues .pxp-content .content-description,.pxp-publication[template=latest] .publication-issues .pxp-content .content-pub-date,.pxp-publication[template=latest] .publication-issues .pxp-content .content-categories,.pxp-publication[template=latest] .publication-issues .pxp-content .content-properties,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-description,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-categories,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-properties,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-description,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-categories,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-properties{display:none}storefront-publication[template=latest] .publication-issues storefront-issue .issue-image storefront-image,storefront-publication[template=latest] .publication-issues storefront-issue .issue-image .pxp-image,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-image storefront-image,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image .pxp-image,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-image storefront-image,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-image .pxp-image,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-image storefront-image,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image .pxp-image{width:100%;max-width:100%;height:auto}storefront-publication[template=latest] .publication-issues storefront-issue .issue-description,storefront-publication[template=latest] .publication-issues storefront-issue .issue-pub-date,storefront-publication[template=latest] .publication-issues storefront-issue .issue-categories,storefront-publication[template=latest] .publication-issues storefront-issue .issue-properties,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-description,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-pub-date,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-categories,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-properties,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-description,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-categories,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-properties,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-description,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-categories,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-properties,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-description,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-pub-date,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-categories,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-properties,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-description,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-pub-date,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-categories,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-properties,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-description,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-categories,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-properties,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-description,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-categories,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-properties{display:none}storefront-publication[template=meta] .publication-title,storefront-publication[template=meta] .publication-description,storefront-publication[template=meta] .publication-properties,storefront-publication[template=meta] .publication-issues-per-year,storefront-publication[data-pxp-template=meta] .publication-title,storefront-publication[data-pxp-template=meta] .publication-description,storefront-publication[data-pxp-template=meta] .publication-properties,storefront-publication[data-pxp-template=meta] .publication-issues-per-year,.pxp-publication[template=meta] .publication-title,.pxp-publication[template=meta] .publication-description,.pxp-publication[template=meta] .publication-properties,.pxp-publication[template=meta] .publication-issues-per-year,.pxp-publication[data-pxp-template=meta] .publication-title,.pxp-publication[data-pxp-template=meta] .publication-description,.pxp-publication[data-pxp-template=meta] .publication-properties,.pxp-publication[data-pxp-template=meta] .publication-issues-per-year{display:none}storefront-publication.ghost .publication-title,.pxp-publication.ghost .publication-title{background-image:linear-gradient(90deg,var(--ghostColor) 0px,rgb(236,236,236) 40px,var(--ghostColor) 80px);background-size:80vw;animation:ghost-lines 2s infinite linear;background-color:var(--ghostColor);color:transparent!important;border-radius:4px;width:40%}storefront-publication.ghost .publication-title:before,.pxp-publication.ghost .publication-title:before{content:" ";display:inline}storefront-publication.ghost storefront-image,storefront-publication.ghost .pxp-image,.pxp-publication.ghost storefront-image,.pxp-publication.ghost .pxp-image{background-color:var(--ghostColor);animation:ghost-opacity 2s infinite linear}\n'],encapsulation:2}),o})(),Lt=(()=>{var i;class o{}return(i=o).\u0275fac=function(n){return new(n||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=t.G2t({imports:[l.MD,xt.ContentModule,gt.IssueModule,mt.U,ft.h]}),o})();const Nt={component:X,leanDomComponent:jt}}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_publication_publication_module_ts"],{3942:(jt,C,s)=>{s.r(C),s.d(C,{PublicationModule:()=>Et,component:()=>Mt});var l=s(177),Y=s(467),x=s(9379),t=s(3953),S=s(4404),g=s(8251),k=s(4365),$=s(2085),v=function(i){return i.LATEST="latest",i.COVER="cover",i.META="meta",i}(v||{});const E={template:v.COVER,currentIssue:{template:k.W9.COVER},currentContent:{template:$.qc.COVER},titleMessage:"PUBLICATION_TITLE",descriptionMessage:"PUBLICATION_DESCRIPTION",issuesPerYearMessage:"PUBLICATION_ISSUES_PER_YEAR",contentsPerYearMessage:"PUBLICATION_CONTENTS_PER_YEAR"};var M=s(1210),j=s(610),A=s(8004),d=s(2932),h=s(3178),L=s(4452),N=s(7374),V=s.n(N),B=s(362),F=s.n(B),G=s(7879),O=s(5102),T=s(7808),y=s(8490),P=s(4744),R=s(4354),D=s(1302),I=s(8909);const H=["listContent"],u=i=>[i];function Q(i,o){if(1&i){const e=t.RV6();t.j41(0,"div",11,0),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentContent)}}function U(i,o){if(1&i){const e=t.RV6();t.j41(0,"div",12,1),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentIssue)}}function w(i,o){if(1&i&&t.DNE(0,Q,2,2,"div",9)(1,U,2,2,"div",10),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.vxM(n.isIssue(e)?1:0)}}function W(i,o){if(1&i){const e=t.RV6();t.j41(0,"storefront-content",14,0),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentContent)}}function Z(i,o){if(1&i){const e=t.RV6();t.j41(0,"storefront-issue",14,1),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentIssue)}}function z(i,o){if(1&i&&t.DNE(0,W,2,2,"storefront-content",13)(1,Z,2,2,"storefront-issue",13),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.vxM(n.isIssue(e)?1:0)}}function K(i,o){if(1&i&&(t.qex(0),t.DNE(1,w,2,1)(2,z,2,1),t.bVm()),2&i){const e=t.XpG(3);t.R7$(),t.vxM(e.domHelper.leanDom?1:2)}}function q(i,o){if(1&i&&(t.qex(0),t.DNE(1,K,3,1,"ng-container",8),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.contents)}}function J(i,o){if(1&i&&(t.qex(0),t.nrm(1,"h3",5),t.j41(2,"div",6),t.DNE(3,q,2,1,"ng-container",7),t.k0s(),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.titleMessage)("storefrontTranslateArgs",t.eq3(3,u,e.publication&&e.publication.name)),t.R7$(2),t.Y8G("ngIf",e.config)}}function tt(i,o){if(1&i&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&i){const e=o.$implicit;t.ZvI("publication-property ",e.key,""),t.R7$(),t.SpI(" ",e.value," ")}}function et(i,o){if(1&i&&(t.j41(0,"div",18),t.DNE(1,tt,2,4,"div",19),t.nI1(2,"keyvalue"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,e.publication.properties))}}function it(i,o){if(1&i&&t.nrm(0,"div",20),2&i){const e=t.XpG(2);t.Y8G("storefrontTranslate",e.config&&(e.config.issuesPerYearMessage||e.config.contentsPerYearMessage))("storefrontTranslateArgs",t.eq3(2,u,e.contentsPerYear))}}function nt(i,o){if(1&i&&(t.qex(0),t.nrm(1,"h3",5)(2,"div",15),t.DNE(3,et,3,3,"div",16)(4,it,1,4,"div",17),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.titleMessage)("storefrontTranslateArgs",t.eq3(6,u,e.publication&&e.publication.name)),t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(8,u,e.publication&&e.publication.description)),t.R7$(),t.Y8G("ngIf",e.publication),t.R7$(),t.Y8G("ngIf",void 0!==e.contentsPerYear)}}function ot(i,o){if(1&i&&t.nrm(0,"div",21),2&i){const e=t.XpG(2);t.Y8G("src",e.publication&&e.publication.thumbnails.default)("height",e.getImageHeight())("imageResolutionStrategy",null==e.config?null:e.config.imageResolutionStrategy)}}function at(i,o){if(1&i&&t.nrm(0,"storefront-image",22),2&i){const e=t.XpG(2);t.Y8G("src",e.publication&&e.publication.thumbnails.default)("height",e.getImageHeight())("imageResolutionStrategy",null==e.config?null:e.config.imageResolutionStrategy)}}function st(i,o){if(1&i&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&i){const e=o.$implicit;t.ZvI("publication-property ",e.key,""),t.R7$(),t.SpI(" ",e.value," ")}}function pt(i,o){if(1&i&&(t.j41(0,"div",18),t.DNE(1,st,2,4,"div",19),t.nI1(2,"keyvalue"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,e.publication.properties))}}function ct(i,o){if(1&i&&t.nrm(0,"div",20),2&i){const e=t.XpG(2);t.Y8G("storefrontTranslate",e.config&&e.config.contentsPerYearMessage)("storefrontTranslateArgs",t.eq3(2,u,e.contentsPerYear))}}function lt(i,o){if(1&i&&(t.qex(0),t.DNE(1,ot,1,3,"div",21)(2,at,1,3,"storefront-image",22),t.nrm(3,"h3",5)(4,"div",15),t.DNE(5,pt,3,3,"div",16)(6,ct,1,4,"div",17),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.vxM(e.domHelper.leanDom?1:2),t.R7$(2),t.Y8G("storefrontTranslate",e.config&&e.config.titleMessage)("storefrontTranslateArgs",t.eq3(7,u,e.publication&&e.publication.name)),t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(9,u,e.publication&&e.publication.description)),t.R7$(),t.Y8G("ngIf",e.publication),t.R7$(),t.Y8G("ngIf",void 0!==e.contentsPerYear)}}let X=(()=>{var i;class o extends M.${constructor(){super(...arguments),this.injector=(0,t.WQX)(t.zZn),this.store=(0,t.WQX)(g.B),this.eventActionService=(0,t.WQX)(A.G),this.purpleService=(0,t.WQX)(O.Wj),this.purpleEnv=(0,t.WQX)(G.r6),this.changeDetectorRef=(0,t.WQX)(t.gRc),this.defaultConfig=(0,x.A)({},E),this.contentContexts={}}ngOnInit(){super.ngOnInit(),this.setContents()}ngOnDestroy(){super.ngOnDestroy(),this.dataSource&&this.contextService.unregisterDataSource(this.dataSource)}onConfigChanges(){var n=this;return(0,Y.A)(function*(){n.config.dataSource?(n.dataSource=(0,L.O8)(n.injector,n.config.dataSource,n.elementRef.nativeElement,n.document),n.store.subscribe(n.dataSource.data$,a=>{n.publication=a[0],n.context.publication=n.publication,n.setContents()},h.lQ,h.lQ,"data"),yield n.dataSource.loadData()):(n.publication=n.context.publication,n.setContents()),n.changeDetectorRef.markForCheck()})()}getTrackingParams(){return(0,G.GA)(this.publication)}getId(){return this.publication?this.publication.id:this.baseContext&&this.baseContext.publication&&this.baseContext.publication.id}setContents(){if(this.contentContexts={},this.publication&&(this.publication.issues||this.publication.contents)){var n,a,p;this.contents=null!==(n=null===(a=this.publication.contents)||void 0===a?void 0:a.nodes)&&void 0!==n?n:null===(p=this.publication.issues)||void 0===p?void 0:p.nodes,this.contentContexts=this.contents.reduce((r,f)=>(r[f.id]=this.getContentBaseContext(f),r),{});const m=V()(new Date).subtract(1,"year").toDate();this.contentsPerYear=this.contents.filter(r=>r.publicationDate>m.getTime()).length}else{var c,_;const m=this.config||this.baseConfig,r=(null===(c=m.dataSource)||void 0===c?void 0:c.includeContents)||(null===(_=m.dataSource)||void 0===_?void 0:_.includeIssues);this.contents=Array(r&&("number"==typeof r?r:r.first)||3).fill({})}}getContentBaseContext(n){return(0,x.A)((0,x.A)({},this.baseContext),{},{content:n})}onClickContent(n,a){const p=this.config.tapContent||this.config.tapIssue;p&&(a.getDownloadHandler().then(c=>{this.store.dispatch((0,j.k4)({url:this.document.location.href,key:"".concat(this.getTrackingBaseKey(),"_").concat(a.getTrackingBaseKey(c),"_CLICKED"),params:a.getTrackingParams(c)}))}),this.eventActionService.processEventAction(p,a))}getImageHeight(){return this.config&&this.config.coverHeight||this.getDefaultImageHeight()}getDefaultImageHeight(){return d.q.DEFAULT}isGhost(){return!this.publication}hasContextChanged(n){return!this.config.dataSource&&!F()(n.publication,this.publication)||super.hasContextChanged(n)}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"currentIssue"]}isIssue(n){return n&&n.contentType===S.CatalogContentType.ISSUE}}return(i=o).type="publication",i.\u0275fac=(()=>{let e;return function(a){return(e||(e=t.xGo(i)))(a||i)}})(),i.\u0275cmp=t.VBU({type:i,selectors:[["storefront-publication"]],viewQuery:function(n,a){if(1&n&&t.GBs(H,7,t.c1b),2&n){let p;t.mGM(p=t.lsd())&&(a.listContent=p.first)}},standalone:!1,features:[t.Jv_([g.B]),t.Vt3],decls:4,vars:3,consts:[["contentComponent",""],["issueComponent",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"publication-title",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"publication-issues"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"pxp-content",3,"baseContext","baseConfig"],[1,"pxp-issue",3,"baseContext","baseConfig"],[1,"pxp-content",3,"click","baseContext","baseConfig"],[1,"pxp-issue",3,"click","baseContext","baseConfig"],[3,"baseContext","baseConfig"],[3,"click","baseContext","baseConfig"],[1,"publication-description",3,"storefrontTranslate","storefrontTranslateArgs"],["class","publication-properties",4,"ngIf"],["class","publication-issues-per-year",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[1,"publication-properties"],[3,"class",4,"ngFor","ngForOf"],[1,"publication-issues-per-year",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"pxp-image",3,"src","height","imageResolutionStrategy"],[3,"src","height","imageResolutionStrategy"]],template:function(n,a){1&n&&(t.qex(0,2),t.DNE(1,J,4,5,"ng-container",3)(2,nt,5,10,"ng-container",3)(3,lt,7,11,"ng-container",4),t.bVm()),2&n&&(t.Y8G("ngSwitch",a.template),t.R7$(),t.Y8G("ngSwitchCase","latest"),t.R7$(),t.Y8G("ngSwitchCase","meta"))},dependencies:[l.Sq,l.bT,l.ux,l.e1,l.fG,T.B,y.x,P.z,R.n,d.h,D.x,I.M,l.lG],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-publication,.pxp-publication{display:flex;flex-direction:column}storefront-publication .publication-description,.pxp-publication .publication-description{width:100%;white-space:pre-wrap}storefront-publication[template=cover],storefront-publication[data-pxp-template=cover],.pxp-publication[template=cover],.pxp-publication[data-pxp-template=cover]{border-radius:100%;overflow:hidden;transform:translateZ(1px)}storefront-publication[template=cover] .publication-title,storefront-publication[template=cover] .publication-description,storefront-publication[template=cover] .publication-properties,storefront-publication[template=cover] .publication-issues-per-year,storefront-publication[data-pxp-template=cover] .publication-title,storefront-publication[data-pxp-template=cover] .publication-description,storefront-publication[data-pxp-template=cover] .publication-properties,storefront-publication[data-pxp-template=cover] .publication-issues-per-year,.pxp-publication[template=cover] .publication-title,.pxp-publication[template=cover] .publication-description,.pxp-publication[template=cover] .publication-properties,.pxp-publication[template=cover] .publication-issues-per-year,.pxp-publication[data-pxp-template=cover] .publication-title,.pxp-publication[data-pxp-template=cover] .publication-description,.pxp-publication[data-pxp-template=cover] .publication-properties,.pxp-publication[data-pxp-template=cover] .publication-issues-per-year{display:none}storefront-publication[template=latest] .publication-title,storefront-publication[data-pxp-template=latest] .publication-title,.pxp-publication[template=latest] .publication-title,.pxp-publication[data-pxp-template=latest] .publication-title{display:block;text-align:center;order:2;opacity:0;transition:opacity .2s ease}storefront-publication[template=latest] .publication-description,storefront-publication[template=latest] .publication-properties,storefront-publication[data-pxp-template=latest] .publication-description,storefront-publication[data-pxp-template=latest] .publication-properties,.pxp-publication[template=latest] .publication-description,.pxp-publication[template=latest] .publication-properties,.pxp-publication[data-pxp-template=latest] .publication-description,.pxp-publication[data-pxp-template=latest] .publication-properties{display:none}storefront-publication[template=latest] .publication-issues,storefront-publication[data-pxp-template=latest] .publication-issues,.pxp-publication[template=latest] .publication-issues,.pxp-publication[data-pxp-template=latest] .publication-issues{display:flex;width:100%}storefront-publication[template=latest] .publication-issues storefront-content .content-image storefront-image,storefront-publication[template=latest] .publication-issues storefront-content .content-image .pxp-image,storefront-publication[template=latest] .publication-issues .pxp-content .content-image storefront-image,storefront-publication[template=latest] .publication-issues .pxp-content .content-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image .pxp-image,.pxp-publication[template=latest] .publication-issues storefront-content .content-image storefront-image,.pxp-publication[template=latest] .publication-issues storefront-content .content-image .pxp-image,.pxp-publication[template=latest] .publication-issues .pxp-content .content-image storefront-image,.pxp-publication[template=latest] .publication-issues .pxp-content .content-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image .pxp-image{width:100%;max-width:100%;height:auto}storefront-publication[template=latest] .publication-issues storefront-content .content-description,storefront-publication[template=latest] .publication-issues storefront-content .content-pub-date,storefront-publication[template=latest] .publication-issues storefront-content .content-categories,storefront-publication[template=latest] .publication-issues storefront-content .content-properties,storefront-publication[template=latest] .publication-issues .pxp-content .content-description,storefront-publication[template=latest] .publication-issues .pxp-content .content-pub-date,storefront-publication[template=latest] .publication-issues .pxp-content .content-categories,storefront-publication[template=latest] .publication-issues .pxp-content .content-properties,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-description,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-categories,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-properties,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-description,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-categories,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-properties,.pxp-publication[template=latest] .publication-issues storefront-content .content-description,.pxp-publication[template=latest] .publication-issues storefront-content .content-pub-date,.pxp-publication[template=latest] .publication-issues storefront-content .content-categories,.pxp-publication[template=latest] .publication-issues storefront-content .content-properties,.pxp-publication[template=latest] .publication-issues .pxp-content .content-description,.pxp-publication[template=latest] .publication-issues .pxp-content .content-pub-date,.pxp-publication[template=latest] .publication-issues .pxp-content .content-categories,.pxp-publication[template=latest] .publication-issues .pxp-content .content-properties,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-description,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-categories,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-properties,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-description,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-categories,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-properties{display:none}storefront-publication[template=latest] .publication-issues storefront-issue .issue-image storefront-image,storefront-publication[template=latest] .publication-issues storefront-issue .issue-image .pxp-image,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-image storefront-image,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image .pxp-image,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-image storefront-image,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-image .pxp-image,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-image storefront-image,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image .pxp-image{width:100%;max-width:100%;height:auto}storefront-publication[template=latest] .publication-issues storefront-issue .issue-description,storefront-publication[template=latest] .publication-issues storefront-issue .issue-pub-date,storefront-publication[template=latest] .publication-issues storefront-issue .issue-categories,storefront-publication[template=latest] .publication-issues storefront-issue .issue-properties,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-description,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-pub-date,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-categories,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-properties,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-description,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-categories,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-properties,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-description,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-categories,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-properties,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-description,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-pub-date,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-categories,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-properties,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-description,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-pub-date,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-categories,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-properties,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-description,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-categories,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-properties,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-description,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-categories,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-properties{display:none}storefront-publication[template=meta] .publication-title,storefront-publication[template=meta] .publication-description,storefront-publication[template=meta] .publication-properties,storefront-publication[template=meta] .publication-issues-per-year,storefront-publication[data-pxp-template=meta] .publication-title,storefront-publication[data-pxp-template=meta] .publication-description,storefront-publication[data-pxp-template=meta] .publication-properties,storefront-publication[data-pxp-template=meta] .publication-issues-per-year,.pxp-publication[template=meta] .publication-title,.pxp-publication[template=meta] .publication-description,.pxp-publication[template=meta] .publication-properties,.pxp-publication[template=meta] .publication-issues-per-year,.pxp-publication[data-pxp-template=meta] .publication-title,.pxp-publication[data-pxp-template=meta] .publication-description,.pxp-publication[data-pxp-template=meta] .publication-properties,.pxp-publication[data-pxp-template=meta] .publication-issues-per-year{display:none}storefront-publication.ghost .publication-title,.pxp-publication.ghost .publication-title{background-image:linear-gradient(90deg,var(--ghostColor) 0px,rgb(236,236,236) 40px,var(--ghostColor) 80px);background-size:80vw;animation:ghost-lines 2s infinite linear;background-color:var(--ghostColor);color:transparent!important;border-radius:4px;width:40%}storefront-publication.ghost .publication-title:before,.pxp-publication.ghost .publication-title:before{content:" ";display:inline}storefront-publication.ghost storefront-image,storefront-publication.ghost .pxp-image,.pxp-publication.ghost storefront-image,.pxp-publication.ghost .pxp-image{background-color:var(--ghostColor);animation:ghost-opacity 2s infinite linear}\n'],encapsulation:2}),o})();var rt=s(4403),ut=s(8399),bt=s(1367);const mt=["class","pxp-publication"],b=i=>[i];function ft(i,o){if(1&i){const e=t.RV6();t.j41(0,"div",11,0),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentContent)}}function xt(i,o){if(1&i){const e=t.RV6();t.j41(0,"div",12,1),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentIssue)}}function gt(i,o){if(1&i&&t.DNE(0,ft,2,2,"div",9)(1,xt,2,2,"div",10),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.vxM(n.isIssue(e)?1:0)}}function dt(i,o){if(1&i){const e=t.RV6();t.j41(0,"storefront-content",14,0),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentContent)}}function _t(i,o){if(1&i){const e=t.RV6();t.j41(0,"storefront-issue",14,1),t.bIt("click",function(){t.eBV(e);const a=t.sdS(1),p=t.XpG(2).$implicit,c=t.XpG(3);return t.Njj(c.onClickContent(p,a))}),t.k0s()}if(2&i){const e=t.XpG(2).$implicit,n=t.XpG(3);t.Y8G("baseContext",e&&n.contentContexts[e.id])("baseConfig",n.config.currentIssue)}}function Ct(i,o){if(1&i&&t.DNE(0,dt,2,2,"storefront-content",13)(1,_t,2,2,"storefront-issue",13),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.vxM(n.isIssue(e)?1:0)}}function vt(i,o){if(1&i&&(t.qex(0),t.DNE(1,gt,2,1)(2,Ct,2,1),t.bVm()),2&i){const e=t.XpG(3);t.R7$(),t.vxM(e.domHelper.leanDom?1:2)}}function ht(i,o){if(1&i&&(t.qex(0),t.DNE(1,vt,3,1,"ng-container",8),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.contents)}}function Gt(i,o){if(1&i&&(t.qex(0),t.nrm(1,"h3",5),t.j41(2,"div",6),t.DNE(3,ht,2,1,"ng-container",7),t.k0s(),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.titleMessage)("storefrontTranslateArgs",t.eq3(3,b,e.publication&&e.publication.name)),t.R7$(2),t.Y8G("ngIf",e.config)}}function Tt(i,o){if(1&i&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&i){const e=o.$implicit;t.ZvI("publication-property ",e.key,""),t.R7$(),t.SpI(" ",e.value," ")}}function yt(i,o){if(1&i&&(t.j41(0,"div",18),t.DNE(1,Tt,2,4,"div",19),t.nI1(2,"keyvalue"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,e.publication.properties))}}function Pt(i,o){if(1&i&&t.nrm(0,"div",20),2&i){const e=t.XpG(2);t.Y8G("storefrontTranslate",e.config&&(e.config.issuesPerYearMessage||e.config.contentsPerYearMessage))("storefrontTranslateArgs",t.eq3(2,b,e.contentsPerYear))}}function Rt(i,o){if(1&i&&(t.qex(0),t.nrm(1,"h3",5)(2,"div",15),t.DNE(3,yt,3,3,"div",16)(4,Pt,1,4,"div",17),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.titleMessage)("storefrontTranslateArgs",t.eq3(6,b,e.publication&&e.publication.name)),t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(8,b,e.publication&&e.publication.description)),t.R7$(),t.Y8G("ngIf",e.publication),t.R7$(),t.Y8G("ngIf",void 0!==e.contentsPerYear)}}function Dt(i,o){if(1&i&&t.nrm(0,"div",21),2&i){const e=t.XpG(2);t.Y8G("src",e.publication&&e.publication.thumbnails.default)("height",e.getImageHeight())("imageResolutionStrategy",null==e.config?null:e.config.imageResolutionStrategy)}}function It(i,o){if(1&i&&t.nrm(0,"storefront-image",22),2&i){const e=t.XpG(2);t.Y8G("src",e.publication&&e.publication.thumbnails.default)("height",e.getImageHeight())("imageResolutionStrategy",null==e.config?null:e.config.imageResolutionStrategy)}}function Xt(i,o){if(1&i&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&i){const e=o.$implicit;t.ZvI("publication-property ",e.key,""),t.R7$(),t.SpI(" ",e.value," ")}}function Yt(i,o){if(1&i&&(t.j41(0,"div",18),t.DNE(1,Xt,2,4,"div",19),t.nI1(2,"keyvalue"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,e.publication.properties))}}function St(i,o){if(1&i&&t.nrm(0,"div",20),2&i){const e=t.XpG(2);t.Y8G("storefrontTranslate",e.config&&e.config.contentsPerYearMessage)("storefrontTranslateArgs",t.eq3(2,b,e.contentsPerYear))}}function kt(i,o){if(1&i&&(t.qex(0),t.DNE(1,Dt,1,3,"div",21)(2,It,1,3,"storefront-image",22),t.nrm(3,"h3",5)(4,"div",15),t.DNE(5,Yt,3,3,"div",16)(6,St,1,4,"div",17),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.vxM(e.domHelper.leanDom?1:2),t.R7$(2),t.Y8G("storefrontTranslate",e.config&&e.config.titleMessage)("storefrontTranslateArgs",t.eq3(7,b,e.publication&&e.publication.name)),t.R7$(),t.Y8G("storefrontTranslate",e.config&&e.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(9,b,e.publication&&e.publication.description)),t.R7$(),t.Y8G("ngIf",e.publication),t.R7$(),t.Y8G("ngIf",void 0!==e.contentsPerYear)}}let $t=(()=>{var i;class o extends X{}return(i=o).\u0275fac=(()=>{let e;return function(a){return(e||(e=t.xGo(i)))(a||i)}})(),i.\u0275cmp=t.VBU({type:i,selectors:[["div",8,"pxp-publication"]],standalone:!1,features:[t.Jv_([g.B]),t.Vt3],attrs:mt,decls:4,vars:3,consts:[["contentComponent",""],["issueComponent",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"publication-title",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"publication-issues"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"pxp-content",3,"baseContext","baseConfig"],[1,"pxp-issue",3,"baseContext","baseConfig"],[1,"pxp-content",3,"click","baseContext","baseConfig"],[1,"pxp-issue",3,"click","baseContext","baseConfig"],[3,"baseContext","baseConfig"],[3,"click","baseContext","baseConfig"],[1,"publication-description",3,"storefrontTranslate","storefrontTranslateArgs"],["class","publication-properties",4,"ngIf"],["class","publication-issues-per-year",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[1,"publication-properties"],[3,"class",4,"ngFor","ngForOf"],[1,"publication-issues-per-year",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"pxp-image",3,"src","height","imageResolutionStrategy"],[3,"src","height","imageResolutionStrategy"]],template:function(n,a){1&n&&(t.qex(0,2),t.DNE(1,Gt,4,5,"ng-container",3)(2,Rt,5,10,"ng-container",3)(3,kt,7,11,"ng-container",4),t.bVm()),2&n&&(t.Y8G("ngSwitch",a.template),t.R7$(),t.Y8G("ngSwitchCase","latest"),t.R7$(),t.Y8G("ngSwitchCase","meta"))},dependencies:[l.Sq,l.bT,l.ux,l.e1,l.fG,T.B,y.x,P.z,R.n,d.h,D.x,I.M,l.lG],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-publication,.pxp-publication{display:flex;flex-direction:column}storefront-publication .publication-description,.pxp-publication .publication-description{width:100%;white-space:pre-wrap}storefront-publication[template=cover],storefront-publication[data-pxp-template=cover],.pxp-publication[template=cover],.pxp-publication[data-pxp-template=cover]{border-radius:100%;overflow:hidden;transform:translateZ(1px)}storefront-publication[template=cover] .publication-title,storefront-publication[template=cover] .publication-description,storefront-publication[template=cover] .publication-properties,storefront-publication[template=cover] .publication-issues-per-year,storefront-publication[data-pxp-template=cover] .publication-title,storefront-publication[data-pxp-template=cover] .publication-description,storefront-publication[data-pxp-template=cover] .publication-properties,storefront-publication[data-pxp-template=cover] .publication-issues-per-year,.pxp-publication[template=cover] .publication-title,.pxp-publication[template=cover] .publication-description,.pxp-publication[template=cover] .publication-properties,.pxp-publication[template=cover] .publication-issues-per-year,.pxp-publication[data-pxp-template=cover] .publication-title,.pxp-publication[data-pxp-template=cover] .publication-description,.pxp-publication[data-pxp-template=cover] .publication-properties,.pxp-publication[data-pxp-template=cover] .publication-issues-per-year{display:none}storefront-publication[template=latest] .publication-title,storefront-publication[data-pxp-template=latest] .publication-title,.pxp-publication[template=latest] .publication-title,.pxp-publication[data-pxp-template=latest] .publication-title{display:block;text-align:center;order:2;opacity:0;transition:opacity .2s ease}storefront-publication[template=latest] .publication-description,storefront-publication[template=latest] .publication-properties,storefront-publication[data-pxp-template=latest] .publication-description,storefront-publication[data-pxp-template=latest] .publication-properties,.pxp-publication[template=latest] .publication-description,.pxp-publication[template=latest] .publication-properties,.pxp-publication[data-pxp-template=latest] .publication-description,.pxp-publication[data-pxp-template=latest] .publication-properties{display:none}storefront-publication[template=latest] .publication-issues,storefront-publication[data-pxp-template=latest] .publication-issues,.pxp-publication[template=latest] .publication-issues,.pxp-publication[data-pxp-template=latest] .publication-issues{display:flex;width:100%}storefront-publication[template=latest] .publication-issues storefront-content .content-image storefront-image,storefront-publication[template=latest] .publication-issues storefront-content .content-image .pxp-image,storefront-publication[template=latest] .publication-issues .pxp-content .content-image storefront-image,storefront-publication[template=latest] .publication-issues .pxp-content .content-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image .pxp-image,.pxp-publication[template=latest] .publication-issues storefront-content .content-image storefront-image,.pxp-publication[template=latest] .publication-issues storefront-content .content-image .pxp-image,.pxp-publication[template=latest] .publication-issues .pxp-content .content-image storefront-image,.pxp-publication[template=latest] .publication-issues .pxp-content .content-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-image .pxp-image{width:100%;max-width:100%;height:auto}storefront-publication[template=latest] .publication-issues storefront-content .content-description,storefront-publication[template=latest] .publication-issues storefront-content .content-pub-date,storefront-publication[template=latest] .publication-issues storefront-content .content-categories,storefront-publication[template=latest] .publication-issues storefront-content .content-properties,storefront-publication[template=latest] .publication-issues .pxp-content .content-description,storefront-publication[template=latest] .publication-issues .pxp-content .content-pub-date,storefront-publication[template=latest] .publication-issues .pxp-content .content-categories,storefront-publication[template=latest] .publication-issues .pxp-content .content-properties,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-description,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-categories,storefront-publication[data-pxp-template=latest] .publication-issues storefront-content .content-properties,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-description,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-categories,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-properties,.pxp-publication[template=latest] .publication-issues storefront-content .content-description,.pxp-publication[template=latest] .publication-issues storefront-content .content-pub-date,.pxp-publication[template=latest] .publication-issues storefront-content .content-categories,.pxp-publication[template=latest] .publication-issues storefront-content .content-properties,.pxp-publication[template=latest] .publication-issues .pxp-content .content-description,.pxp-publication[template=latest] .publication-issues .pxp-content .content-pub-date,.pxp-publication[template=latest] .publication-issues .pxp-content .content-categories,.pxp-publication[template=latest] .publication-issues .pxp-content .content-properties,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-description,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-categories,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-content .content-properties,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-description,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-categories,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-content .content-properties{display:none}storefront-publication[template=latest] .publication-issues storefront-issue .issue-image storefront-image,storefront-publication[template=latest] .publication-issues storefront-issue .issue-image .pxp-image,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-image storefront-image,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image .pxp-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image storefront-image,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image .pxp-image,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-image storefront-image,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-image .pxp-image,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-image storefront-image,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-image .pxp-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image storefront-image,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-image .pxp-image{width:100%;max-width:100%;height:auto}storefront-publication[template=latest] .publication-issues storefront-issue .issue-description,storefront-publication[template=latest] .publication-issues storefront-issue .issue-pub-date,storefront-publication[template=latest] .publication-issues storefront-issue .issue-categories,storefront-publication[template=latest] .publication-issues storefront-issue .issue-properties,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-description,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-pub-date,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-categories,storefront-publication[template=latest] .publication-issues .pxp-issue .issue-properties,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-description,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-categories,storefront-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-properties,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-description,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-pub-date,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-categories,storefront-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-properties,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-description,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-pub-date,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-categories,.pxp-publication[template=latest] .publication-issues storefront-issue .issue-properties,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-description,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-pub-date,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-categories,.pxp-publication[template=latest] .publication-issues .pxp-issue .issue-properties,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-description,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-categories,.pxp-publication[data-pxp-template=latest] .publication-issues storefront-issue .issue-properties,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-description,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-pub-date,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-categories,.pxp-publication[data-pxp-template=latest] .publication-issues .pxp-issue .issue-properties{display:none}storefront-publication[template=meta] .publication-title,storefront-publication[template=meta] .publication-description,storefront-publication[template=meta] .publication-properties,storefront-publication[template=meta] .publication-issues-per-year,storefront-publication[data-pxp-template=meta] .publication-title,storefront-publication[data-pxp-template=meta] .publication-description,storefront-publication[data-pxp-template=meta] .publication-properties,storefront-publication[data-pxp-template=meta] .publication-issues-per-year,.pxp-publication[template=meta] .publication-title,.pxp-publication[template=meta] .publication-description,.pxp-publication[template=meta] .publication-properties,.pxp-publication[template=meta] .publication-issues-per-year,.pxp-publication[data-pxp-template=meta] .publication-title,.pxp-publication[data-pxp-template=meta] .publication-description,.pxp-publication[data-pxp-template=meta] .publication-properties,.pxp-publication[data-pxp-template=meta] .publication-issues-per-year{display:none}storefront-publication.ghost .publication-title,.pxp-publication.ghost .publication-title{background-image:linear-gradient(90deg,var(--ghostColor) 0px,rgb(236,236,236) 40px,var(--ghostColor) 80px);background-size:80vw;animation:ghost-lines 2s infinite linear;background-color:var(--ghostColor);color:transparent!important;border-radius:4px;width:40%}storefront-publication.ghost .publication-title:before,.pxp-publication.ghost .publication-title:before{content:" ";display:inline}storefront-publication.ghost storefront-image,storefront-publication.ghost .pxp-image,.pxp-publication.ghost storefront-image,.pxp-publication.ghost .pxp-image{background-color:var(--ghostColor);animation:ghost-opacity 2s infinite linear}\n'],encapsulation:2}),o})(),Et=(()=>{var i;class o{}return(i=o).\u0275fac=function(n){return new(n||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=t.G2t({imports:[l.MD,ut.ContentModule,bt.IssueModule,rt.U]}),o})();const Mt={component:X,leanDomComponent:$t}}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_recommendations_recommendations_module_ts"],{6284:(B,
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_recommendations_recommendations_module_ts"],{6284:(B,g,s)=>{s.r(g),s.d(g,{RecommendationsModule:()=>M,component:()=>$});var l=s(177),p=s(467),u=s(9379),o=s(3953),A=s(1210);const R={limit:5,weights:{source_target:50,recency:10,topicHierarchy:2,retentionTime:5},origin:"https://acm-dev.cloud.sprylabprojects.com/core",resourceBaseUrl:"https://acm-stage.sprylab.com/static/"};var C=s(4404),h=s(8179),T=s(8004),x=s(4748),D=s(7879);let y=(()=>{var t;class r extends A.${constructor(){super(...arguments),this.purpleEnv=(0,o.WQX)(D.r6),this.ssrService=(0,o.WQX)(x.i),this.eventActionService=(0,o.WQX)(T.G),this.defaultConfig=(0,u.A)({},R)}loadResources(){var e=this;return(0,p.A)(function*(){const n="".concat(e.config.resourceBaseUrl,"/acm.js"),a="".concat(e.config.resourceBaseUrl,"/setup/config.js"),E="".concat(e.config.resourceBaseUrl,"/acm.css");let i=document.querySelector('link[href="'.concat(E,'"]'));i||(i=document.createElement("link"),i.setAttribute("rel","stylesheet"),i.setAttribute("href",E),document.head.appendChild(i));const f=[];let m=document.querySelector('script[src="'.concat(n,'"]'));m||(m=document.createElement("script"),m.setAttribute("src",n),document.head.appendChild(m),f.push(new Promise(v=>m.addEventListener("load",v))));let d=document.querySelector('script[src="'.concat(a,'"]'));return d||(d=document.createElement("script"),d.setAttribute("src",a),document.head.appendChild(d),f.push(new Promise(v=>d.addEventListener("load",v)))),Promise.all(f)})()}onConfigChanges(){var e=this;return(0,p.A)(function*(){if((0,l.Vy)(e.platformId))return;yield e.loadResources();const n=e.contextService.getMetadata(),a=n[C.METADATA_KEY.ENTITLEMENT_LOGIN]||n[C.METADATA_KEY.DEVICE_ID];(0,l.UE)(e.platformId)&&e.purpleEnv.isUniversal&&(yield e.ssrService.prebootCompletedPromise),window.acm.recommend({acmConfig:{apiToken:e.config.apiToken}},{reader_id:a,item_id:e.config.item_id,limit:e.config.limit,weights:e.config.weights})})()}getEntryContext(e){return(0,u.A)((0,u.A)({},this.context),{},{acm_article:e})}onArticleClick(e){var n=this;return(0,p.A)(function*(){if(n.config.tapEntry){const a=(0,h.uQ)(n.config.tapEntry,n.getEntryContext(e),n.contextService.$functions,n.globalService.getGlobalData());yield n.eventActionService.processEventAction((0,h.v3)(a),n)}})()}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"tapEntry"]}}return(t=r).type="recommendations",t.\u0275fac=(()=>{let c;return function(n){return(c||(c=o.xGo(t)))(n||t)}})(),t.\u0275cmp=o.VBU({type:t,selectors:[["storefront-recommendations"]],standalone:!1,features:[o.Vt3],decls:1,vars:0,consts:[["id","acm-content-recommendations"]],template:function(e,n){1&e&&o.nrm(0,"div",0)},encapsulation:2}),r})();const S=["class","pxp-recommendations"];let L=(()=>{var t;class r extends y{}return(t=r).\u0275fac=(()=>{let c;return function(n){return(c||(c=o.xGo(t)))(n||t)}})(),t.\u0275cmp=o.VBU({type:t,selectors:[["div",8,"pxp-recommendations"]],standalone:!1,features:[o.Vt3],attrs:S,decls:1,vars:0,consts:[["id","acm-content-recommendations"]],template:function(e,n){1&e&&o.nrm(0,"div",0)},encapsulation:2}),r})(),M=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.$C({type:t}),t.\u0275inj=o.G2t({imports:[l.MD]}),r})();const $={component:y,leanDomComponent:L}}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_search-field_search-field_module_ts"],{8792:(U,f,c)=>{c.r(f),c.d(f,{SearchFieldModule:()=>A,component:()=>X});var h=c(177),C=c(467),u=c(9379),e=c(4438),d=c(8251),F=c(610),j=c(3178),y=c(1210);const T={param:"phrase"};var p=c(8075),k=c(9745),g=c(3331),B=c(9516),E=c(8004),V=c(1652),D=c(345),m=c(8448);const R=["input"];function x(o,l){if(1&o){const r=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const n=e.eBV(r).$implicit,i=e.XpG(2);return e.Njj(i.onClickSuggestion(n))})("mousedown",function(n){e.eBV(r);const i=e.XpG(2);return e.Njj(i.onSuggestionMousedown(n))}),e.EFF(1),e.k0s()}if(2&o){const r=l.$implicit;e.R7$(),e.JRh(r)}}function I(o,l){if(1&o&&(e.j41(0,"div",7),e.DNE(1,x,2,1,"div",8),e.k0s()),2&o){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.getSuggestions())}}let v=(()=>{var o;class l extends y.${constructor(t,n,i,a,s,b,M,_,S,O){super(n,i,b,_,S),this.router=t,this.injector=n,this.elementRef=i,this.route=a,this.store=s,this.contextService=b,this.eventActionService=M,this.document=_,this.globalService=S,this.sanitizer=O,this.defaultConfig=(0,u.A)({},T),this.searched=!1,this.phrase="",this.suggestions=null}ngOnInit(){super.ngOnInit();let t=!1;this.store.subscribe(this.route.queryParams,n=>{if(!t&&n&&this.config&&this.config.param&&n[this.config.param]){const i=n[this.config.param];let a=this.sanitizer.sanitize(e.WPN.HTML,i)||"";a=this.decodeImportantChars(a),a!==i&&(t=!0,this.router.navigate([],{relativeTo:this.route,queryParams:(0,u.A)((0,u.A)({},n),{},{[this.config.param]:a}),queryParamsHandling:"merge"}).then(()=>{t=!1})),this.input.nativeElement.value=this.phrase=a,this.searched=this.input.nativeElement.value.trim().length>0}})}decodeImportantChars(t){return t.replace(/ä/g,"\xe4").replace(/ö/g,"\xf6").replace(/ü/g,"\xfc").replace(/ß/g,"\xdf").replace(/Ä/g,"\xc4").replace(/Ö/g,"\xd6").replace(/Ü/g,"\xdc").replace(/"/g,'"').replace(/&/g,"&").replace(/“/g,"\u201c").replace(/”/g,"\u201d").replace(/£/g,"\xa3").replace(/§/g,"\xa7").replace(/€/g,"\u20ac")}onConfigChanges(){var t=this;return(0,C.A)(function*(){if(t.config.param&&t.context[t.config.param]&&(t.phrase=t.context[t.config.param],t.input.nativeElement.value=t.phrase,t.searched=t.input.nativeElement.value.trim().length>0),t.config.suggestions)try{t.suggestions=yield(0,j.hI)(t.config.suggestions.url)}catch(n){console.warn("Error fetching search suggestions")}t.changeDetectorRef.markForCheck()})()}onClickReset(t){this.phrase="",this.input.nativeElement.value=this.phrase,this.input.nativeElement.blur(),this.searched=!1,this.config.param&&(0,p.CV)(this.router,{[this.config.param]:null})}onSearch(){if(this.config.param&&this.input.nativeElement.value.trim().length>0){this.phrase=this.input.nativeElement.value,this.searched=!0;const t=(0,u.A)((0,u.A)({},this.config.params),{},{[this.config.param]:this.phrase});this.config.publicationType&&(t.publicationType=this.config.publicationType),this.store.dispatch((0,F.k4)({url:window.location.href,key:"SEARCH_PERFORMED",params:{phrase:this.phrase}})),this.config.path?this.eventActionService.processNavigateAction({type:k.H.NAVIGATE,path:this.config.path,params:t},this):(0,p.CV)(this.router,t)}}focus(t){return t&&t.preventDefault(),this.searched=this.input.nativeElement.value.trim().length>0,this.input.nativeElement.focus(),this.elementRef.nativeElement.classList.add("focus"),!1}focusOrSearch(t){t&&t.preventDefault();const n=this.input.nativeElement.value.trim();n.length>0&&n!==this.phrase?this.onSearch():this.focus()}onInput(t){this.searched=this.input.nativeElement.value.length>0}onBlur(t){setTimeout(()=>{this.input.nativeElement.value=this.phrase,this.searched=this.phrase.length>0;try{this.changeDetectorRef.detectChanges()}catch(n){console.warn("Error in change detection of Blur event",n)}},100),this.elementRef.nativeElement.classList.remove("focus"),this.searched=!1}onFocus(t){this.elementRef.nativeElement.classList.add("focus")}onKeyUp(t){13===(t.keyCode||t.which)?(this.input.nativeElement.blur(),this.onSearch()):8===(t.keyCode||t.which)&&(this.searched=this.input.nativeElement.value.length>0)}getSuggestions(){const t=this.input.nativeElement.value;return this.suggestions&&this.suggestions.filter(n=>0===n.toLowerCase().indexOf(t.toLowerCase()))}onClickSuggestion(t){this.input.nativeElement.value=t,this.phrase=t,this.onInput(),this.focus()}onSuggestionMousedown(t){return t.preventDefault(),!1}getId(){return null}}return(o=l).type="search-field",o.\u0275fac=function(t){return new(t||o)(e.rXU(g.Ix),e.rXU(e.zZn),e.rXU(e.aKT),e.rXU(g.nX),e.rXU(d.B),e.rXU(B.V),e.rXU(E.G),e.rXU(h.qQ),e.rXU(V.d),e.rXU(D.up))},o.\u0275cmp=e.VBU({type:o,selectors:[["storefront-search-field"]],viewQuery:function(t,n){if(1&t&&e.GBs(R,7),2&t){let i;e.mGM(i=e.lsd())&&(n.input=i.first)}},hostVars:2,hostBindings:function(t,n){2&t&&e.AVh("searched",n.searched)},standalone:!1,features:[e.Jv_([d.B]),e.Vt3],decls:9,vars:6,consts:[["input",""],[1,"search-field-container"],["type","search",3,"click","input","focus","blur","keyup","placeholder"],["class","search-field-suggestions",4,"ngIf"],[1,"search-field-buttons"],[1,"icon","icon-search","search-btn",3,"mousedown","touchstart"],[1,"icon","icon-delete","reset-btn",3,"mousedown","touchstart"],[1,"search-field-suggestions"],["class","search-field-suggestion",3,"click","mousedown",4,"ngFor","ngForOf"],[1,"search-field-suggestion",3,"click","mousedown"]],template:function(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",1)(1,"input",2,0),e.nI1(3,"storefrontTranslate"),e.nI1(4,"async"),e.bIt("click",function(s){return e.eBV(i),e.Njj(n.focus(s))})("input",function(s){return e.eBV(i),e.Njj(n.onInput(s))})("focus",function(s){return e.eBV(i),e.Njj(n.onFocus(s))})("blur",function(s){return e.eBV(i),e.Njj(n.onBlur(s))})("keyup",function(s){return e.eBV(i),e.Njj(n.onKeyUp(s))}),e.k0s(),e.DNE(5,I,2,1,"div",3),e.j41(6,"div",4)(7,"button",5),e.bIt("mousedown",function(s){return e.eBV(i),e.Njj(n.focusOrSearch(s))})("touchstart",function(s){return e.eBV(i),e.Njj(n.focusOrSearch(s))}),e.k0s(),e.j41(8,"button",6),e.bIt("mousedown",function(s){return e.eBV(i),e.Njj(n.onClickReset(s))})("touchstart",function(s){return e.eBV(i),e.Njj(n.onClickReset(s))}),e.k0s()()()}2&t&&(e.R7$(),e.Y8G("placeholder",e.bMT(4,4,e.bMT(3,2,"SEARCH_FIELD_PLACEHOLDER"))),e.R7$(4),e.Y8G("ngIf",n.getSuggestions()))},dependencies:[h.Sq,h.bT,h.Jj,m.D],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-search-field,.pxp-search-field{display:block;position:relative;box-sizing:border-box;font-size:var(--searchFieldFontSize)}storefront-search-field *,.pxp-search-field *{font-size:inherit}storefront-search-field .search-field-container,.pxp-search-field .search-field-container{position:relative}storefront-search-field .search-field-container input,.pxp-search-field .search-field-container input{width:100%;padding:var(--gutter)}storefront-search-field .search-field-container .search-field-buttons,.pxp-search-field .search-field-container .search-field-buttons{position:absolute;top:0;right:0;display:flex;align-items:center;height:100%;z-index:1}storefront-search-field .search-field-container .search-field-buttons button,.pxp-search-field .search-field-container .search-field-buttons button{cursor:pointer;padding:var(--gutter)}storefront-search-field .search-field-container .search-field-buttons button.search-btn,.pxp-search-field .search-field-container .search-field-buttons button.search-btn{display:block}storefront-search-field .search-field-container .search-field-buttons button.reset-btn,.pxp-search-field .search-field-container .search-field-buttons button.reset-btn{display:none;font-size:10px}storefront-search-field .search-field-container .search-field-suggestions,.pxp-search-field .search-field-container .search-field-suggestions{display:none;position:absolute;width:100%}storefront-search-field .search-field-container .search-field-suggestions .search-field-suggestion,.pxp-search-field .search-field-container .search-field-suggestions .search-field-suggestion{padding:var(--gutter)}storefront-search-field.searched .search-field-buttons button.search-btn,.pxp-search-field.searched .search-field-buttons button.search-btn{display:none}storefront-search-field.searched .search-field-buttons button.reset-btn,.pxp-search-field.searched .search-field-buttons button.reset-btn{display:block}storefront-search-field.focus .search-field-suggestions,.pxp-search-field.focus .search-field-suggestions{display:block}\n'],encapsulation:2}),l})();var L=c(6483);const N=["class","pxp-search-field"];function w(o,l){if(1&o){const r=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const n=e.eBV(r).$implicit,i=e.XpG(2);return e.Njj(i.onClickSuggestion(n))})("mousedown",function(n){e.eBV(r);const i=e.XpG(2);return e.Njj(i.onSuggestionMousedown(n))}),e.EFF(1),e.k0s()}if(2&o){const r=l.$implicit;e.R7$(),e.JRh(r)}}function G(o,l){if(1&o&&(e.j41(0,"div",7),e.DNE(1,w,2,1,"div",8),e.k0s()),2&o){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.getSuggestions())}}let z=(()=>{var o;class l extends v{}return(o=l).\u0275fac=(()=>{let r;return function(n){return(r||(r=e.xGo(o)))(n||o)}})(),o.\u0275cmp=e.VBU({type:o,selectors:[["div",8,"pxp-search-field"]],standalone:!1,features:[e.Jv_([d.B]),e.Vt3],attrs:N,decls:9,vars:6,consts:[["input",""],[1,"search-field-container"],["type","search",3,"click","input","focus","blur","keyup","placeholder"],["class","search-field-suggestions",4,"ngIf"],[1,"search-field-buttons"],[1,"icon","icon-search","search-btn",3,"mousedown","touchstart"],[1,"icon","icon-delete","reset-btn",3,"mousedown","touchstart"],[1,"search-field-suggestions"],["class","search-field-suggestion",3,"click","mousedown",4,"ngFor","ngForOf"],[1,"search-field-suggestion",3,"click","mousedown"]],template:function(t,n){if(1&t){const i=e.RV6();e.j41(0,"div",1)(1,"input",2,0),e.nI1(3,"storefrontTranslate"),e.nI1(4,"async"),e.bIt("click",function(s){return e.eBV(i),e.Njj(n.focus(s))})("input",function(s){return e.eBV(i),e.Njj(n.onInput(s))})("focus",function(s){return e.eBV(i),e.Njj(n.onFocus(s))})("blur",function(s){return e.eBV(i),e.Njj(n.onBlur(s))})("keyup",function(s){return e.eBV(i),e.Njj(n.onKeyUp(s))}),e.k0s(),e.DNE(5,G,2,1,"div",3),e.j41(6,"div",4)(7,"button",5),e.bIt("mousedown",function(s){return e.eBV(i),e.Njj(n.focusOrSearch(s))})("touchstart",function(s){return e.eBV(i),e.Njj(n.focusOrSearch(s))}),e.k0s(),e.j41(8,"button",6),e.bIt("mousedown",function(s){return e.eBV(i),e.Njj(n.onClickReset(s))})("touchstart",function(s){return e.eBV(i),e.Njj(n.onClickReset(s))}),e.k0s()()()}2&t&&(e.R7$(),e.Y8G("placeholder",e.bMT(4,4,e.bMT(3,2,"SEARCH_FIELD_PLACEHOLDER"))),e.R7$(4),e.Y8G("ngIf",n.getSuggestions()))},dependencies:[h.Sq,h.bT,h.Jj,m.D],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-search-field,.pxp-search-field{display:block;position:relative;box-sizing:border-box;font-size:var(--searchFieldFontSize)}storefront-search-field *,.pxp-search-field *{font-size:inherit}storefront-search-field .search-field-container,.pxp-search-field .search-field-container{position:relative}storefront-search-field .search-field-container input,.pxp-search-field .search-field-container input{width:100%;padding:var(--gutter)}storefront-search-field .search-field-container .search-field-buttons,.pxp-search-field .search-field-container .search-field-buttons{position:absolute;top:0;right:0;display:flex;align-items:center;height:100%;z-index:1}storefront-search-field .search-field-container .search-field-buttons button,.pxp-search-field .search-field-container .search-field-buttons button{cursor:pointer;padding:var(--gutter)}storefront-search-field .search-field-container .search-field-buttons button.search-btn,.pxp-search-field .search-field-container .search-field-buttons button.search-btn{display:block}storefront-search-field .search-field-container .search-field-buttons button.reset-btn,.pxp-search-field .search-field-container .search-field-buttons button.reset-btn{display:none;font-size:10px}storefront-search-field .search-field-container .search-field-suggestions,.pxp-search-field .search-field-container .search-field-suggestions{display:none;position:absolute;width:100%}storefront-search-field .search-field-container .search-field-suggestions .search-field-suggestion,.pxp-search-field .search-field-container .search-field-suggestions .search-field-suggestion{padding:var(--gutter)}storefront-search-field.searched .search-field-buttons button.search-btn,.pxp-search-field.searched .search-field-buttons button.search-btn{display:none}storefront-search-field.searched .search-field-buttons button.reset-btn,.pxp-search-field.searched .search-field-buttons button.reset-btn{display:block}storefront-search-field.focus .search-field-suggestions,.pxp-search-field.focus .search-field-suggestions{display:block}\n'],encapsulation:2}),l})(),A=(()=>{var o;class l{}return(o=l).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[h.MD,L.h]}),l})();const X={component:v,leanDomComponent:z}}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_search-field_search-field_module_ts"],{8792:(w,f,c)=>{c.r(f),c.d(f,{SearchFieldModule:()=>L,component:()=>N});var h=c(177),_=c(467),u=c(9379),e=c(3953),p=c(3331),d=c(8251),v=c(610),S=c(3178),C=c(1210);const F={param:"phrase"};var g=c(8075),y=c(8004),j=c(9745),k=c(345),m=c(8448);const T=["input"];function B(i,l){if(1&i){const r=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const n=e.eBV(r).$implicit,o=e.XpG(2);return e.Njj(o.onClickSuggestion(n))})("mousedown",function(n){e.eBV(r);const o=e.XpG(2);return e.Njj(o.onSuggestionMousedown(n))}),e.EFF(1),e.k0s()}if(2&i){const r=l.$implicit;e.R7$(),e.JRh(r)}}function E(i,l){if(1&i&&(e.j41(0,"div",7),e.DNE(1,B,2,1,"div",8),e.k0s()),2&i){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.getSuggestions())}}let b=(()=>{var i;class l extends C.${constructor(){super(...arguments),this.router=(0,e.WQX)(p.Ix),this.route=(0,e.WQX)(p.nX),this.store=(0,e.WQX)(d.B),this.eventActionService=(0,e.WQX)(y.G),this.sanitizer=(0,e.WQX)(k.up),this.changeDetectorRef=(0,e.WQX)(e.gRc),this.defaultConfig=(0,u.A)({},F),this.searched=!1,this.phrase="",this.suggestions=null}ngOnInit(){super.ngOnInit();let t=!1;this.store.subscribe(this.route.queryParams,n=>{if(!t&&n&&this.config&&this.config.param&&n[this.config.param]){const o=n[this.config.param];let a=this.sanitizer.sanitize(e.WPN.HTML,o)||"";a=this.decodeImportantChars(a),a!==o&&(t=!0,this.router.navigate([],{relativeTo:this.route,queryParams:(0,u.A)((0,u.A)({},n),{},{[this.config.param]:a}),queryParamsHandling:"merge"}).then(()=>{t=!1})),this.input.nativeElement.value=this.phrase=a,this.searched=this.input.nativeElement.value.trim().length>0}})}decodeImportantChars(t){return t.replace(/ä/g,"\xe4").replace(/ö/g,"\xf6").replace(/ü/g,"\xfc").replace(/ß/g,"\xdf").replace(/Ä/g,"\xc4").replace(/Ö/g,"\xd6").replace(/Ü/g,"\xdc").replace(/"/g,'"').replace(/&/g,"&").replace(/“/g,"\u201c").replace(/”/g,"\u201d").replace(/£/g,"\xa3").replace(/§/g,"\xa7").replace(/€/g,"\u20ac")}onConfigChanges(){var t=this;return(0,_.A)(function*(){if(t.config.param&&t.context[t.config.param]&&(t.phrase=t.context[t.config.param],t.input.nativeElement.value=t.phrase,t.searched=t.input.nativeElement.value.trim().length>0),t.config.suggestions)try{t.suggestions=yield(0,S.hI)(t.config.suggestions.url)}catch(n){console.warn("Error fetching search suggestions")}t.changeDetectorRef.markForCheck()})()}onClickReset(t){this.phrase="",this.input.nativeElement.value=this.phrase,this.input.nativeElement.blur(),this.searched=!1,this.config.param&&(0,g.CV)(this.router,{[this.config.param]:null})}onSearch(){if(this.config.param&&this.input.nativeElement.value.trim().length>0){this.phrase=this.input.nativeElement.value,this.searched=!0;const t=(0,u.A)((0,u.A)({},this.config.params),{},{[this.config.param]:this.phrase});this.config.publicationType&&(t.publicationType=this.config.publicationType),this.store.dispatch((0,v.k4)({url:window.location.href,key:"SEARCH_PERFORMED",params:{phrase:this.phrase}})),this.config.path?this.eventActionService.processNavigateAction({type:j.H.NAVIGATE,path:this.config.path,params:t},this):(0,g.CV)(this.router,t)}}focus(t){return t&&t.preventDefault(),this.searched=this.input.nativeElement.value.trim().length>0,this.input.nativeElement.focus(),this.elementRef.nativeElement.classList.add("focus"),!1}focusOrSearch(t){t&&t.preventDefault();const n=this.input.nativeElement.value.trim();n.length>0&&n!==this.phrase?this.onSearch():this.focus()}onInput(t){this.searched=this.input.nativeElement.value.length>0}onBlur(t){setTimeout(()=>{this.input.nativeElement.value=this.phrase,this.searched=this.phrase.length>0;try{this.changeDetectorRef.detectChanges()}catch(n){console.warn("Error in change detection of Blur event",n)}},100),this.elementRef.nativeElement.classList.remove("focus"),this.searched=!1}onFocus(t){this.elementRef.nativeElement.classList.add("focus")}onKeyUp(t){13===(t.keyCode||t.which)?(this.input.nativeElement.blur(),this.onSearch()):8===(t.keyCode||t.which)&&(this.searched=this.input.nativeElement.value.length>0)}getSuggestions(){const t=this.input.nativeElement.value;return this.suggestions&&this.suggestions.filter(n=>0===n.toLowerCase().indexOf(t.toLowerCase()))}onClickSuggestion(t){this.input.nativeElement.value=t,this.phrase=t,this.onInput(),this.focus()}onSuggestionMousedown(t){return t.preventDefault(),!1}getId(){return null}}return(i=l).type="search-field",i.\u0275fac=(()=>{let r;return function(n){return(r||(r=e.xGo(i)))(n||i)}})(),i.\u0275cmp=e.VBU({type:i,selectors:[["storefront-search-field"]],viewQuery:function(t,n){if(1&t&&e.GBs(T,7),2&t){let o;e.mGM(o=e.lsd())&&(n.input=o.first)}},hostVars:2,hostBindings:function(t,n){2&t&&e.AVh("searched",n.searched)},standalone:!1,features:[e.Jv_([d.B]),e.Vt3],decls:9,vars:6,consts:[["input",""],[1,"search-field-container"],["type","search",3,"click","input","focus","blur","keyup","placeholder"],["class","search-field-suggestions",4,"ngIf"],[1,"search-field-buttons"],["aria-label","search",1,"icon","icon-search","search-btn",3,"mousedown","touchstart"],["aria-label","reset",1,"icon","icon-delete","reset-btn",3,"mousedown","touchstart"],[1,"search-field-suggestions"],["class","search-field-suggestion",3,"click","mousedown",4,"ngFor","ngForOf"],[1,"search-field-suggestion",3,"click","mousedown"]],template:function(t,n){if(1&t){const o=e.RV6();e.j41(0,"div",1)(1,"input",2,0),e.nI1(3,"storefrontTranslate"),e.nI1(4,"async"),e.bIt("click",function(s){return e.eBV(o),e.Njj(n.focus(s))})("input",function(s){return e.eBV(o),e.Njj(n.onInput(s))})("focus",function(s){return e.eBV(o),e.Njj(n.onFocus(s))})("blur",function(s){return e.eBV(o),e.Njj(n.onBlur(s))})("keyup",function(s){return e.eBV(o),e.Njj(n.onKeyUp(s))}),e.k0s(),e.DNE(5,E,2,1,"div",3),e.j41(6,"div",4)(7,"button",5),e.bIt("mousedown",function(s){return e.eBV(o),e.Njj(n.focusOrSearch(s))})("touchstart",function(s){return e.eBV(o),e.Njj(n.focusOrSearch(s))}),e.k0s(),e.j41(8,"button",6),e.bIt("mousedown",function(s){return e.eBV(o),e.Njj(n.onClickReset(s))})("touchstart",function(s){return e.eBV(o),e.Njj(n.onClickReset(s))}),e.k0s()()()}2&t&&(e.R7$(),e.Y8G("placeholder",e.bMT(4,4,e.bMT(3,2,"SEARCH_FIELD_PLACEHOLDER"))),e.R7$(4),e.Y8G("ngIf",n.getSuggestions()))},dependencies:[h.Sq,h.bT,h.Jj,m.D],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-search-field,.pxp-search-field{display:block;position:relative;box-sizing:border-box;font-size:var(--searchFieldFontSize)}storefront-search-field *,.pxp-search-field *{font-size:inherit}storefront-search-field .search-field-container,.pxp-search-field .search-field-container{position:relative}storefront-search-field .search-field-container input,.pxp-search-field .search-field-container input{width:100%;padding:var(--gutter)}storefront-search-field .search-field-container .search-field-buttons,.pxp-search-field .search-field-container .search-field-buttons{position:absolute;top:0;right:0;display:flex;align-items:center;height:100%;z-index:1}storefront-search-field .search-field-container .search-field-buttons button,.pxp-search-field .search-field-container .search-field-buttons button{cursor:pointer;padding:var(--gutter)}storefront-search-field .search-field-container .search-field-buttons button.search-btn,.pxp-search-field .search-field-container .search-field-buttons button.search-btn{display:block}storefront-search-field .search-field-container .search-field-buttons button.reset-btn,.pxp-search-field .search-field-container .search-field-buttons button.reset-btn{display:none;font-size:10px}storefront-search-field .search-field-container .search-field-suggestions,.pxp-search-field .search-field-container .search-field-suggestions{display:none;position:absolute;width:100%}storefront-search-field .search-field-container .search-field-suggestions .search-field-suggestion,.pxp-search-field .search-field-container .search-field-suggestions .search-field-suggestion{padding:var(--gutter)}storefront-search-field.searched .search-field-buttons button.search-btn,.pxp-search-field.searched .search-field-buttons button.search-btn{display:none}storefront-search-field.searched .search-field-buttons button.reset-btn,.pxp-search-field.searched .search-field-buttons button.reset-btn{display:block}storefront-search-field.focus .search-field-suggestions,.pxp-search-field.focus .search-field-suggestions{display:block}\n'],encapsulation:2}),l})();var R=c(6483);const D=["class","pxp-search-field"];function V(i,l){if(1&i){const r=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const n=e.eBV(r).$implicit,o=e.XpG(2);return e.Njj(o.onClickSuggestion(n))})("mousedown",function(n){e.eBV(r);const o=e.XpG(2);return e.Njj(o.onSuggestionMousedown(n))}),e.EFF(1),e.k0s()}if(2&i){const r=l.$implicit;e.R7$(),e.JRh(r)}}function x(i,l){if(1&i&&(e.j41(0,"div",7),e.DNE(1,V,2,1,"div",8),e.k0s()),2&i){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.getSuggestions())}}let I=(()=>{var i;class l extends b{}return(i=l).\u0275fac=(()=>{let r;return function(n){return(r||(r=e.xGo(i)))(n||i)}})(),i.\u0275cmp=e.VBU({type:i,selectors:[["div",8,"pxp-search-field"]],standalone:!1,features:[e.Jv_([d.B]),e.Vt3],attrs:D,decls:9,vars:6,consts:[["input",""],[1,"search-field-container"],["type","search",3,"click","input","focus","blur","keyup","placeholder"],["class","search-field-suggestions",4,"ngIf"],[1,"search-field-buttons"],["aria-label","search",1,"icon","icon-search","search-btn",3,"mousedown","touchstart"],["aria-label","reset",1,"icon","icon-delete","reset-btn",3,"mousedown","touchstart"],[1,"search-field-suggestions"],["class","search-field-suggestion",3,"click","mousedown",4,"ngFor","ngForOf"],[1,"search-field-suggestion",3,"click","mousedown"]],template:function(t,n){if(1&t){const o=e.RV6();e.j41(0,"div",1)(1,"input",2,0),e.nI1(3,"storefrontTranslate"),e.nI1(4,"async"),e.bIt("click",function(s){return e.eBV(o),e.Njj(n.focus(s))})("input",function(s){return e.eBV(o),e.Njj(n.onInput(s))})("focus",function(s){return e.eBV(o),e.Njj(n.onFocus(s))})("blur",function(s){return e.eBV(o),e.Njj(n.onBlur(s))})("keyup",function(s){return e.eBV(o),e.Njj(n.onKeyUp(s))}),e.k0s(),e.DNE(5,x,2,1,"div",3),e.j41(6,"div",4)(7,"button",5),e.bIt("mousedown",function(s){return e.eBV(o),e.Njj(n.focusOrSearch(s))})("touchstart",function(s){return e.eBV(o),e.Njj(n.focusOrSearch(s))}),e.k0s(),e.j41(8,"button",6),e.bIt("mousedown",function(s){return e.eBV(o),e.Njj(n.onClickReset(s))})("touchstart",function(s){return e.eBV(o),e.Njj(n.onClickReset(s))}),e.k0s()()()}2&t&&(e.R7$(),e.Y8G("placeholder",e.bMT(4,4,e.bMT(3,2,"SEARCH_FIELD_PLACEHOLDER"))),e.R7$(4),e.Y8G("ngIf",n.getSuggestions()))},dependencies:[h.Sq,h.bT,h.Jj,m.D],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-search-field,.pxp-search-field{display:block;position:relative;box-sizing:border-box;font-size:var(--searchFieldFontSize)}storefront-search-field *,.pxp-search-field *{font-size:inherit}storefront-search-field .search-field-container,.pxp-search-field .search-field-container{position:relative}storefront-search-field .search-field-container input,.pxp-search-field .search-field-container input{width:100%;padding:var(--gutter)}storefront-search-field .search-field-container .search-field-buttons,.pxp-search-field .search-field-container .search-field-buttons{position:absolute;top:0;right:0;display:flex;align-items:center;height:100%;z-index:1}storefront-search-field .search-field-container .search-field-buttons button,.pxp-search-field .search-field-container .search-field-buttons button{cursor:pointer;padding:var(--gutter)}storefront-search-field .search-field-container .search-field-buttons button.search-btn,.pxp-search-field .search-field-container .search-field-buttons button.search-btn{display:block}storefront-search-field .search-field-container .search-field-buttons button.reset-btn,.pxp-search-field .search-field-container .search-field-buttons button.reset-btn{display:none;font-size:10px}storefront-search-field .search-field-container .search-field-suggestions,.pxp-search-field .search-field-container .search-field-suggestions{display:none;position:absolute;width:100%}storefront-search-field .search-field-container .search-field-suggestions .search-field-suggestion,.pxp-search-field .search-field-container .search-field-suggestions .search-field-suggestion{padding:var(--gutter)}storefront-search-field.searched .search-field-buttons button.search-btn,.pxp-search-field.searched .search-field-buttons button.search-btn{display:none}storefront-search-field.searched .search-field-buttons button.reset-btn,.pxp-search-field.searched .search-field-buttons button.reset-btn{display:block}storefront-search-field.focus .search-field-suggestions,.pxp-search-field.focus .search-field-suggestions{display:block}\n'],encapsulation:2}),l})(),L=(()=>{var i;class l{}return(i=l).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[h.MD,R.h]}),l})();const N={component:b,leanDomComponent:I}}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_subscription_subscription_module_ts"],{2932:(V,I,o)=>{o.d(I,{h:()=>v,q:()=>G});var m=o(177),a=o(4438),c=o(8251),h=o(8890),_=o(9516),T=o(9876),g=o(5102),C=o(3307),L=o(5927),x=o(3647);const y=["image"],u=(d,U,l)=>({imgRef:d,imageResolutionStrategy:U,focalPoint:l});function S(d,U){if(1&d){const l=a.RV6();a.j41(0,"img",2,0),a.nI1(2,"sanitizeUrl"),a.bIt("error",function(){a.eBV(l);const r=a.XpG();return a.Njj(r.onError())}),a.k0s()}if(2&d){const l=a.XpG();a.Y8G("priority",l.lcpPrioritized()||l.inViewPort())("ngSrc",a.i5U(2,6,l.src,"resourceUrl"))("alt",l.alt)("title",l.title)("loaderParams",a.sMw(9,u,l.elementRef.nativeElement,l.imageResolutionStrategy,l.focalPoint)),a.BMQ("aria-label",l.ariaLabel)}}let v=(()=>{var d;class U{get regularSrc(){return this.domHelper.regularSelector(this.src)}get prefixedPostType(){return this.domHelper.prefixedSelector(this.src)}get regularLabel(){return this.domHelper.regularSelector(this.label)}get prefixedLabel(){return this.domHelper.prefixedSelector(this.label)}get regularResolutionStrategy(){return this.domHelper.regularSelector(this.imageResolutionStrategy)}get prefixedResolutionStrategy(){return this.domHelper.prefixedSelector(this.imageResolutionStrategy)}set image(t){t&&this.onLoad(t),this._image=t}get image(){return this._image}get regularAlt(){return this.domHelper.regularSelector(this.alt)}get prefixedAlt(){return this.domHelper.prefixedSelector(this.alt)}get regularTitle(){return this.domHelper.regularSelector(this.title)}get prefixedTitle(){return this.domHelper.prefixedSelector(this.title)}get regularAriaLabel(){return this.domHelper.regularSelector(this.ariaLabel)}get prefixedAriaLabel(){return this.domHelper.prefixedSelector(this.ariaLabel)}get regularFocalPoint(){return this.domHelper.regularSelector(this.focalPoint)}get prefixedFocalPoint(){return this.domHelper.prefixedSelector(this.focalPoint)}get regularHeightStrategy(){return this.domHelper.regularSelector(this.height)}get prefixedHeightStrategy(){return this.domHelper.prefixedSelector(this.height)}constructor(t,r,f,P,M,O,B,X){this.changeDetectorRef=t,this.elementRef=r,this.subscriptions=f,this.platformId=P,this.contextService=M,this.purpleService=O,this.imagePreloaderService=B,this.domHelper=X,this.inViewPort=(0,a.vPA)(!1),this.lcpPrioritized=(0,a.hFB)(!1),this.error=new a.bkB,this.height=G.AUTO,(0,m.UE)(this.platformId)&&this.subscriptions.subscribe((0,h.eh)(this,this.elementRef),Y=>this.load())}get empty(){return!this.src}ngOnInit(){var t;(0,m.UE)(this.platformId)&&(this.imagePreloaderService.getAboveFoldImg()===(null===(t=this.src)||void 0===t?void 0:t.split("?")[0])&&this.inViewPort.set(!0));this.initProperties()}initProperties(){var t,r,f,P;this.alt=(null===(t=this.extendedThumbnail)||void 0===t?void 0:t.properties.alt)||(null===(r=this.extendedThumbnail)||void 0===r?void 0:r.properties.caption)||"",this.title=this.alt,this.ariaLabel=null!==(f=this.label)&&void 0!==f?f:this.alt,this.focalPoint=null===(P=this.extendedThumbnail)||void 0===P?void 0:P.properties.focuspoint}initAndLoad(){this.initProperties(),this.load()}load(){this.loaded||(this.loaded=!0,this.src&&this.update(),this.changeDetectorRef.detectChanges())}ngOnChanges(t){t.src&&this.loaded&&this.update()}update(){this.updateImageRatio()}onLoad(t){t.nativeElement.classList.add("loaded"),this.elementRef.nativeElement.classList.add("loaded"),this.changeDetectorRef.detectChanges(),t.nativeElement.addEventListener("load",()=>{this.updateImageRatio(!0,t),this.changeDetectorRef.markForCheck()}),t.nativeElement.addEventListener("error",function(){t.nativeElement.style.display="none",t.nativeElement.nextElementSibling&&(t.nativeElement.nextElementSibling.style.display="inline")}),this.purpleService.addImageSrc(this.resizeSrc)}onError(){if(!this.src)return;const t=this.purpleService.getAlternativeSrc(this.resizeSrc);var r;t&&t!==this.resizeSrc?(this.setResizeSrc(t),this.changeDetectorRef.detectChanges()):(null===(r=this.image)||void 0===r||r.nativeElement.classList.add("error"),this.elementRef.nativeElement.classList.add("error"),this.error.emit(this))}updateImageRatio(t=!1,r=this.image){this.imageRatio=this.height===G.AUTO?(0,T.z)(!t,null==r?void 0:r.nativeElement,this.src)+"%":void 0}setResizeSrc(t){const r=this.contextService.toResourceUrl(t);this.resizeSrc=this.src=r}}return(d=U).\u0275fac=function(t){return new(t||d)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(c.v),a.rXU(a.Agw),a.rXU(_.V),a.rXU(g.Wj),a.rXU(C.d),a.rXU(L.S))},d.\u0275cmp=a.VBU({type:d,selectors:[["storefront-image"]],viewQuery:function(t,r){if(1&t&&a.GBs(y,5),2&t){let f;a.mGM(f=a.lsd())&&(r.image=f.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:20,hostBindings:function(t,r){2&t&&(a.BMQ("src",r.regularSrc)("data-pxp-src",r.prefixedPostType)("label",r.regularLabel)("data-pxp-label",r.prefixedLabel)("resolution-strategy",r.regularResolutionStrategy)("data-pxp-resolution-strategy",r.prefixedResolutionStrategy)("alt",r.regularAlt)("data-pxp-alt",r.prefixedAlt)("title",r.regularTitle)("data-pxp-title",r.prefixedTitle)("aria-label",r.regularAriaLabel)("data-pxp-aria-label",r.prefixedAriaLabel)("focal-point",r.regularFocalPoint)("data-pxp-focal-point",r.prefixedFocalPoint)("height-strategy",r.regularHeightStrategy)("data-pxp-height-strategy",r.prefixedHeightStrategy),a.xc7("padding-top",r.imageRatio),a.AVh("empty",r.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",lcpPrioritized:[1,"lcpPrioritized"],height:"height"},outputs:{error:"error"},standalone:!1,features:[a.Jv_([c.v,{provide:m.WM,useFactory:(l,t)=>r=>{var f;const P=null==r||null===(f=r.loaderParams)||void 0===f?void 0:f.imgRef;if(P.offsetWidth){var M,O;const B=null==r||null===(M=r.loaderParams)||void 0===M?void 0:M.imageResolutionStrategy,X=(null==r||null===(O=r.loaderParams)||void 0===O?void 0:O.focalPoint)||"",Y=t.toResourceUrl((0,T.G)(P,r.src,B,X));return l.resizeSrc=Y,Y}return""},deps:[d,_.V]}]),a.OA$],decls:1,vars:1,consts:[["image",""],["fill","true","disableOptimizedSrcset","",3,"priority","ngSrc","alt","title","loaderParams"],["fill","true","disableOptimizedSrcset","",3,"error","priority","ngSrc","alt","title","loaderParams"]],template:function(t,r){1&t&&a.DNE(0,S,3,13,"img",1),2&t&&a.vxM(r.src&&r.loaded?0:-1)},dependencies:[m.kt,x.R],styles:["storefront-image,.pxp-image{display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--imageLoadingColor);transition:.2s background-color ease-in}storefront-image[height-strategy=FIXED]>img,storefront-image[data-pxp-height-strategy=FIXED]>img,storefront-image[height-strategy=AUTO]>img,storefront-image[data-pxp-height-strategy=AUTO]>img,.pxp-image[height-strategy=FIXED]>img,.pxp-image[data-pxp-height-strategy=FIXED]>img,.pxp-image[height-strategy=AUTO]>img,.pxp-image[data-pxp-height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain}storefront-image[height-strategy=DEFAULT]>img,storefront-image[data-pxp-height-strategy=DEFAULT]>img,.pxp-image[height-strategy=DEFAULT]>img,.pxp-image[data-pxp-height-strategy=DEFAULT]>img{position:static!important}storefront-image.img-with-hidden-alt,.pxp-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-image>img,.pxp-image>img{display:block;transition:opacity .2s ease-in,background-color .2s ease-in;background-color:#fff0;max-width:100%;max-height:100%;opacity:0}storefront-image>img.loaded,.pxp-image>img.loaded{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded,.pxp-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),U})();var G=function(d){return d.AUTO="AUTO",d.FIXED="FIXED",d.DEFAULT="DEFAULT",d}(G||{})},1302:(V,I,o)=>{o.d(I,{x:()=>L});var m=o(8251),a=o(2932),c=o(4438),h=o(177),_=o(3647);const T=["class","pxp-image"],g=(x,y,u)=>({imgRef:x,imageResolutionStrategy:y,focalPoint:u});function C(x,y){if(1&x){const u=c.RV6();c.j41(0,"img",2,0),c.nI1(2,"sanitizeUrl"),c.bIt("error",function(){c.eBV(u);const v=c.XpG();return c.Njj(v.onError())}),c.k0s()}if(2&x){const u=c.XpG();c.Y8G("priority",u.lcpPrioritized()||u.inViewPort())("ngSrc",c.i5U(2,6,u.src,"resourceUrl"))("alt",u.alt)("title",u.title)("loaderParams",c.sMw(9,g,u.elementRef.nativeElement,u.imageResolutionStrategy,u.focalPoint)),c.BMQ("aria-label",u.ariaLabel)}}let L=(()=>{var x;class y extends a.h{}return(x=y).\u0275fac=(()=>{let u;return function(v){return(u||(u=c.xGo(x)))(v||x)}})(),x.\u0275cmp=c.VBU({type:x,selectors:[["div",8,"pxp-image"]],hostAttrs:["ngSkipHydration","true"],standalone:!1,features:[c.Jv_([m.v]),c.Vt3],attrs:T,decls:1,vars:1,consts:[["image",""],["fill","true","disableOptimizedSrcset","",3,"priority","ngSrc","alt","title","loaderParams"],["fill","true","disableOptimizedSrcset","",3,"error","priority","ngSrc","alt","title","loaderParams"]],template:function(S,v){1&S&&c.DNE(0,C,3,13,"img",1),2&S&&c.vxM(v.src&&v.loaded?0:-1)},dependencies:[h.kt,_.R],styles:["storefront-image,.pxp-image{display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--imageLoadingColor);transition:.2s background-color ease-in}storefront-image[height-strategy=FIXED]>img,storefront-image[data-pxp-height-strategy=FIXED]>img,storefront-image[height-strategy=AUTO]>img,storefront-image[data-pxp-height-strategy=AUTO]>img,.pxp-image[height-strategy=FIXED]>img,.pxp-image[data-pxp-height-strategy=FIXED]>img,.pxp-image[height-strategy=AUTO]>img,.pxp-image[data-pxp-height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain}storefront-image[height-strategy=DEFAULT]>img,storefront-image[data-pxp-height-strategy=DEFAULT]>img,.pxp-image[height-strategy=DEFAULT]>img,.pxp-image[data-pxp-height-strategy=DEFAULT]>img{position:static!important}storefront-image.img-with-hidden-alt,.pxp-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-image>img,.pxp-image>img{display:block;transition:opacity .2s ease-in,background-color .2s ease-in;background-color:#fff0;max-width:100%;max-height:100%;opacity:0}storefront-image>img.loaded,.pxp-image>img.loaded{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded,.pxp-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),y})()},4403:(V,I,o)=>{o.d(I,{U:()=>h});var m=o(177),a=o(4871),c=o(4438);let h=(()=>{var _;class T{}return(_=T).\u0275fac=function(C){return new(C||_)},_.\u0275mod=c.$C({type:_}),_.\u0275inj=c.G2t({imports:[m.MD,a.E]}),T})()},189:(V,I,o)=>{o.r(I),o.d(I,{SubscriptionModule:()=>Ei,component:()=>Ri});var m=o(177),a=o(467),c=o(9379),h=o(4404),_=o(8251),T=o(1210),g=function(i){return i.DEFAULT="default",i.ISSUES="issues",i.DETAILS="details",i}(g||{});const C={template:g.DEFAULT,maxDisplayIssues:3,purchase:{showErrorDialog:!0},titleMessage:"SUBSCRIPTION_TITLE",purchaseButtonMessage:"SUBSCRIPTION_ACTION_PURCHASE",purchaseUnavailableButtonMessage:"SUBSCRIPTION_ACTION_PURCHASE_UNAVAILABLE",promotionMessage:"SUBSCRIPTION_ISSUES_PROMOTION",promotionAdditionalMessage:"SUBSCRIPTION_ISSUES_ADDITIONAL_PROMOTION",priceMessage:"SUBSCRIPTION_PRICE",finalPriceMessage:"SUBSCRIPTION_PRICE_FINAL",introductoryPriceMessage:"SUBSCRIPTION_PRICE_INTRODUCTORY",trialPriceMessage:"SUBSCRIPTION_PRICE_TRIAL",discountPriceMessage:"SUBSCRIPTION_PRICE_DISCOUNT",descriptionMessage:"SUBSCRIPTION_DESCRIPTION"};var L=o(3178),x=o(4622),y=o(4004),u=o(4333),S=o(7967),v=o(8179),G=o(7879),d=o(4452),U=o(362),l=o.n(U),t=o(4438),r=o(8004),f=o(9516),P=o(5102),M=o(1652),O=o(5927),B=o(8909),X=o(7240),Y=o(6962),Q=o(2932),J=o(1302),w=o(2868);const z=i=>[i],st=()=>[];function ot(i,s){1&i&&t.nrm(0,"div",8),2&i&&t.Y8G("src",s.$implicit.thumbnails.default)}function rt(i,s){if(1&i&&t.DNE(0,ot,1,1,"div",10),2&i){const n=t.XpG(5);t.Y8G("ngForOf",n.displayedIssues)}}function at(i,s){1&i&&t.nrm(0,"storefront-image",9),2&i&&t.Y8G("src",s.$implicit.thumbnails.default)}function pt(i,s){if(1&i&&t.DNE(0,at,1,1,"storefront-image",11),2&i){const n=t.XpG(5);t.Y8G("ngForOf",n.displayedIssues)}}function ct(i,s){if(1&i&&(t.j41(0,"div",7),t.DNE(1,rt,1,1,"div",8)(2,pt,1,1,"storefront-image",9),t.k0s()),2&i){const n=t.XpG(4);t.R7$(),t.vxM(n.domHelper.leanDom?1:2)}}function ut(i,s){if(1&i&&t.nrm(0,"p",12),2&i){const n=t.XpG(4);t.Y8G("storefrontTranslate",n.issuesPromotionMessage)("storefrontTranslateArgs",n.issuesPromotionArgs)}}function lt(i,s){1&i&&t.nrm(0,"div",13)}function gt(i,s){if(1&i&&t.DNE(0,lt,1,0,"div",13),2&i){const n=t.XpG(4);t.vxM(n.purchaseLoading?0:-1)}}function mt(i,s){1&i&&t.nrm(0,"storefront-spinner",14)}function _t(i,s){if(1&i&&t.DNE(0,mt,1,0,"storefront-spinner",14),2&i){const n=t.XpG(4);t.vxM(n.purchaseLoading?0:-1)}}function dt(i,s){if(1&i&&t.nrm(0,"span",2),2&i){const n=t.XpG(4);t.Y8G("storefrontTranslate",n.config.purchaseButtonMessage)("storefrontTranslateArgs",t.eq3(2,z,n.subscription.price.formattedPrice))}}function ft(i,s){if(1&i&&t.nrm(0,"span",15),2&i){const n=t.XpG(4);t.Y8G("storefrontTranslate",n.config.purchaseUnavailableButtonMessage)}}function bt(i,s){if(1&i){const n=t.RV6();t.qex(0),t.DNE(1,ct,3,1,"div",1),t.nrm(2,"h3",2),t.DNE(3,ut,1,2,"p",3),t.j41(4,"button",4),t.bIt("click",function(){t.eBV(n);const p=t.XpG(3);return t.Njj(p.onClickPurchase())}),t.DNE(5,gt,1,1)(6,_t,1,1)(7,dt,1,4,"span",5)(8,ft,1,1,"span",6),t.k0s(),t.bVm()}if(2&i){const n=t.XpG(3);t.R7$(),t.Y8G("ngIf",n.displayedIssues),t.R7$(),t.Y8G("storefrontTranslate",n.config.titleMessage)("storefrontTranslateArgs",t.eq3(8,z,n.subscription.name)),t.R7$(),t.Y8G("ngIf",n.issuesPromotionMessage),t.R7$(),t.Y8G("disabled",!n.subscription.price||n.purchaseLoading),t.R7$(),t.vxM(n.domHelper.leanDom?5:6),t.R7$(2),t.Y8G("ngIf",n.subscription.price),t.R7$(),t.Y8G("ngIf",!n.subscription.price)}}function xt(i,s){1&i&&t.nrm(0,"div",16)}function ht(i,s){if(1&i&&t.DNE(0,xt,1,0,"div",16),2&i){const n=t.XpG(3);t.vxM(!n.config||n.priceLoading?0:-1)}}function vt(i,s){1&i&&t.nrm(0,"storefront-spinner",17)}function Tt(i,s){if(1&i&&t.DNE(0,vt,1,0,"storefront-spinner",17),2&i){const n=t.XpG(3);t.vxM(!n.config||n.priceLoading?0:-1)}}function Ct(i,s){if(1&i&&(t.qex(0),t.DNE(1,bt,9,10,"ng-container",0)(2,ht,1,1)(3,Tt,1,1),t.bVm()),2&i){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf",n.config&&!n.priceLoading),t.R7$(),t.vxM(n.domHelper.leanDom?2:3)}}function St(i,s){1&i&&t.nrm(0,"div",24)}function Dt(i,s){if(1&i&&(t.qex(0),t.nrm(1,"div",26)(2,"div",27),t.bVm()),2&i){const n=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",n.config.trialPriceMessage)("storefrontTranslateArgs",n.trialPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",n.config.finalPriceMessage)("storefrontTranslateArgs",n.finalPriceArgs)}}function It(i,s){if(1&i&&(t.qex(0),t.nrm(1,"div",28)(2,"div",27),t.bVm()),2&i){const n=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",n.config.introductoryPriceMessage)("storefrontTranslateArgs",n.introductoryPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",n.config.finalPriceMessage)("storefrontTranslateArgs",n.finalPriceArgs)}}function Pt(i,s){if(1&i&&(t.qex(0),t.nrm(1,"div",29)(2,"div",27),t.bVm()),2&i){const n=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",n.config.discountPriceMessage)("storefrontTranslateArgs",n.discountPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",n.config.finalPriceMessage)("storefrontTranslateArgs",n.finalPriceArgs)}}function At(i,s){if(1&i&&(t.qex(0),t.nrm(1,"div",30),t.bVm()),2&i){const n=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",n.config.priceMessage)("storefrontTranslateArgs",n.finalPriceArgs)}}function yt(i,s){if(1&i&&(t.j41(0,"div",25),t.DNE(1,Dt,3,4,"ng-container",0)(2,It,3,4,"ng-container",0)(3,Pt,3,4,"ng-container",0)(4,At,2,2,"ng-container",0),t.k0s()),2&i){const n=t.XpG(3);t.R7$(),t.Y8G("ngIf",n.subscription.trial),t.R7$(),t.Y8G("ngIf",!n.subscription.trial&&n.subscription.introductoryPrice),t.R7$(),t.Y8G("ngIf",!n.subscription.trial&&!n.subscription.introductoryPrice&&n.subscription.discount),t.R7$(),t.Y8G("ngIf",!n.subscription.trial&&!n.subscription.introductoryPrice&&!n.subscription.discount)}}function Et(i,s){if(1&i&&t.nrm(0,"div",31),2&i){const n=t.XpG(3);t.Y8G("storefrontTranslate",n.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(2,z,n.subscription.description))}}function Rt(i,s){if(1&i&&t.nrm(0,"div",2),2&i){const n=s.$implicit;t.ZvI("issue-custom-message ",n.class||"",""),t.Y8G("storefrontTranslate",n.message)("storefrontTranslateArgs",n.variables||t.lJ4(5,st))}}function Lt(i,s){1&i&&t.nrm(0,"div",13)}function Gt(i,s){if(1&i&&t.DNE(0,Lt,1,0,"div",13),2&i){const n=t.XpG(3);t.vxM(!n.config||n.priceLoading?0:-1)}}function Ut(i,s){1&i&&t.nrm(0,"storefront-spinner",14)}function Mt(i,s){if(1&i&&t.DNE(0,Ut,1,0,"storefront-spinner",14),2&i){const n=t.XpG(3);t.vxM(!n.config||n.priceLoading?0:-1)}}function Ot(i,s){1&i&&t.nrm(0,"span",15),2&i&&t.Y8G("storefrontTranslate","SUBSCRIPTION_ACTION_PURCHASE_UNAVAILABLE")}function Nt(i,s){if(1&i&&(t.qex(0),t.j41(1,"div",18),t.nrm(2,"h3",19),t.DNE(3,St,1,0,"div",20),t.k0s(),t.DNE(4,yt,5,4,"div",21)(5,Et,1,4,"div",22)(6,Rt,1,6,"div",23)(7,Gt,1,1)(8,Mt,1,1)(9,Ot,1,1,"span",6),t.bVm()),2&i){const n=t.XpG(2);t.R7$(2),t.Y8G("storefrontTranslate",n.config.titleMessage)("storefrontTranslateArgs",t.eq3(8,z,n.subscription.name)),t.R7$(),t.Y8G("ngIf",n.active),t.R7$(),t.Y8G("ngIf",n.subscription.price),t.R7$(),t.Y8G("ngIf","details"===n.template&&!!n.subscription.description),t.R7$(),t.Y8G("ngForOf",n.customMessages),t.R7$(),t.vxM(n.domHelper.leanDom?7:8),t.R7$(2),t.Y8G("ngIf",!n.subscription.price&&!n.priceLoading)}}function Bt(i,s){if(1&i&&(t.qex(0),t.DNE(1,Ct,4,2,"ng-container",0)(2,Nt,10,10,"ng-container",0),t.bVm()),2&i){const n=t.XpG();t.R7$(),t.Y8G("ngIf","issues"===n.template),t.R7$(),t.Y8G("ngIf","details"===n.template||"default"===n.template||!n.template)}}function Xt(i,s){}function Yt(i,s){if(1&i&&(t.qex(0),t.DNE(1,Xt,0,0,"ng-template",32),t.bVm()),2&i){const n=t.XpG();t.R7$(),t.Y8G("classNames","subscription-fallback")("baseContext",n.baseContext)("baseConfig",n.fallback)}}let Z=(()=>{var i;class s extends T.${get active(){return this.subscription&&this.subscription.purchased}get isDisabled(){if(!this.subscription||!this.subscription.price)return!0}get contextKey(){return s.type}constructor(e,p,b,D,$,F,E,H,N,j){super(p,D,$,F,H),this.store=e,this.injector=p,this.eventActionService=b,this.elementRef=D,this.contextService=$,this.document=F,this.purpleService=E,this.globalService=H,this.purpleEnv=N,this.domHelper=j,this.defaultConfig=(0,c.A)({},C),this.priceLoading=!1,this.issuesPromotionArgs=[],this.introductoryPriceArgs=[],this.trialPriceArgs=[],this.finalPriceArgs=[],this.discountPriceArgs=[]}ngOnDestroy(){this.dataSource&&this.contextService.unregisterDataSource(this.dataSource)}onConfigChanges(){var e=this;return(0,a.A)(function*(){var p;e.purchaseConfig=(0,c.A)((0,c.A)({},C.purchase),e.config.purchase),e.purchaseConfig.upgradeMode=(0,v.v3)(e.purchaseConfig.upgradeMode),e.subscription?e.subscription=e.context.subscription:e.config.dataSource?(e.dataSource=(0,d.O8)(e.injector,e.config.dataSource,e.elementRef.nativeElement,e.document),e.store.subscribe(e.dataSource.data$,b=>{e.subscription=b[0],(0===b.length||b.some(D=>null!==D)&&!e.subscription)&&e.showFallback(),e.onLoadSubscription()},L.lQ,L.lQ,"data"),yield e.dataSource.loadData()):e.subscription=e.baseContext.subscription,e.onLoadSubscription(),e.customMessages=null===(p=e.config.customMessages)||void 0===p?void 0:p.filter(b=>(0,v.Ol)(b)).map(b=>(0,v.v3)(b)),e.changeDetectorRef.markForCheck()})()}onLoadSubscription(){var e=this;return(0,a.A)(function*(){e.subscription&&(e.context.subscription=e.subscription,yield e.loadPrice())})()}loadPrice(){var e=this;return(0,a.A)(function*(){if(e.template===g.ISSUES){const p=Object.keys(e.subscription.publications).map(A=>({publication:{id:{value:A}}})),b=e.config.issueFilter?{AND:[e.config.issueFilter,{OR:p}]}:{OR:p},D=(yield e.purpleService.getIssues({issueFilter:b})).nodes[0],$=new Date(D.publicationDate),F=(0,u.vY)(e.subscription.duration,$),E=(yield e.purpleService.getIssues({issueFilter:e.getDateFilter(F,b,D)})).nodes;e.displayedIssues=[...E,D].slice(0,e.config.maxDisplayIssues);let H=E.length+1,N=E.map(A=>A.productId);N.push(D.productId);const j=new Set(N);let W=[...E,D],q=e.config.promotionMessage;if(e.subscription.additionalUnlocks.count>0){const A=(0,u.BH)(e.subscription.additionalUnlocks,$),R=A===F?[...E]:(yield e.purpleService.getIssues({issueFilter:e.getDateFilter(A,b,D)})).nodes;W=[...W,...R],A!==F&&R.forEach(K=>K&&j.add(K.productId)),H+=R.length,q=e.config.promotionAdditionalMessage}N=Array.from(j),e.priceLoading=!0,e.store.select((0,x.TX)(N),A=>{if(!A.includes(void 0)){const R=e.subscription.price,K=W.reduce((it,Li)=>{const nt=A.find(et=>et&&et.productId===Li.productId);return nt?it+nt.price:it},0),tt=new Intl.NumberFormat((0,L.JK)(),{style:"currency",currency:null==R?void 0:R.currency});e.issuesPromotionArgs=['<span class="issue-count">'.concat(H,"</span>"),'<span class="future-issue-count">'.concat(E.length+1,"</span>"),'<span class="former-price">'.concat(tt.format(K),"</span>"),'<span class="current-price">'.concat(tt.format(R.price),"</span>")],e.issuesPromotionMessage=q,e.priceLoading=!1}}),e.store.dispatch((0,y.$W)({productIds:N}))}e.formatPrice()})()}formatPrice(){const e=(0,u.fs)(this.subscription.duration);if(this.finalPriceArgs=[this.subscription.price.formattedPrice,e.count,(0,S.t)(e.unit,e.count)],this.subscription.trial){const p=(0,u.ch)(this.subscription.trial);this.trialPriceArgs=[p.count,(0,S.t)(p.unit,p.count)]}if(this.subscription.introductoryPrice){const p=(0,u.ch)(this.subscription.introductoryPrice.pricePeriod);this.introductoryPriceArgs=[this.subscription.introductoryPrice.priceCycles,p.count,(0,S.t)(p.unit,p.count),this.subscription.introductoryPrice.formattedPrice]}if(this.subscription.discount){const p=(0,u.ch)(this.subscription.discount.pricePeriod);this.discountPriceArgs=[this.subscription.discount.priceCycles,p.count,(0,S.t)(p.unit,p.count),this.subscription.discount.formattedPrice]}}onClick(){this.template!==g.ISSUES&&this.purchase()}onClickPurchase(){this.purchase()}purchase(){var e=this;return(0,a.A)(function*(){var p;e.active||e.purchaseLoading||e.isDisabled||(e.purchaseLoading=!0,e.changeDetectorRef.detectChanges(),yield e.eventActionService.processSubscribeAction((0,c.A)((0,c.A)({},e.purchaseConfig),{},{productId:e.subscription.productId,price:e.subscription.price.price,currency:e.subscription.price.currency,offerId:(null===(p=e.subscription.discount)||void 0===p?void 0:p.offerId)||void 0}),e),e.purchaseLoading=!1,e.changeDetectorRef.detectChanges())})()}getDateFilter(e,p,b){return{AND:[{publicationDate:{value:e,operation:h.DateOperation.GREATER_THAN}},p,{id:{value:b.id,negated:!0}}]}}getTrackingParams(){return(0,G.z5)(this.subscription,this.subscription.price)}isGhost(){return!this.subscription&&!this.fallback}showFallback(){this.fallback=this.config.fallback}getContextKey(){return this.contextKey}hasContextChanged(e){return!l()(e[this.getContextKey()],this.subscription)||super.hasContextChanged(e)}}return(i=s).type="subscription",i.\u0275fac=function(e){return new(e||i)(t.rXU(_.B),t.rXU(t.zZn),t.rXU(r.G),t.rXU(t.aKT),t.rXU(f.V),t.rXU(m.qQ),t.rXU(P.Wj),t.rXU(M.d),t.rXU(G.r6),t.rXU(O.S))},i.\u0275cmp=t.VBU({type:i,selectors:[["storefront-subscription"]],hostVars:3,hostBindings:function(e,p){1&e&&t.bIt("click",function(){return p.onClick()}),2&e&&(t.BMQ("disabled",p.isDisabled),t.AVh("active",p.active))},standalone:!1,features:[t.Jv_([_.B]),t.Vt3],decls:2,vars:2,consts:[[4,"ngIf"],["class","subscription-issues stacked",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs"],["class","subscription-issues-promotion",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[1,"action-button",3,"click","disabled"],[3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"storefrontTranslate",4,"ngIf"],[1,"subscription-issues","stacked"],["height","DEFAULT",1,"pxp-image",3,"src"],["height","DEFAULT",3,"src"],["class","pxp-image","height","DEFAULT",3,"src",4,"ngFor","ngForOf"],["height","DEFAULT",3,"src",4,"ngFor","ngForOf"],[1,"subscription-issues-promotion",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"pxp-spinner","button-spinner"],[1,"button-spinner"],[3,"storefrontTranslate"],[1,"pxp-spinner","subscription-loading"],[1,"subscription-loading"],[1,"subscription-info"],[1,"subscription-title",3,"storefrontTranslate","storefrontTranslateArgs"],["class","subscription-purchased","storefrontTranslate","SUBSCRIPTION_PURCHASED",4,"ngIf"],["class","subscription-price",4,"ngIf"],["class","subscription-description",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"class","storefrontTranslate","storefrontTranslateArgs",4,"ngFor","ngForOf"],["storefrontTranslate","SUBSCRIPTION_PURCHASED",1,"subscription-purchased"],[1,"subscription-price"],[1,"subscription-price-trial",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-final",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-introductory",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-discount",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-regular",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-description",3,"storefrontTranslate","storefrontTranslateArgs"],[3,"pxpDynamicComponent","classNames","baseContext","baseConfig"]],template:function(e,p){1&e&&t.DNE(0,Bt,3,2,"ng-container",0)(1,Yt,2,3,"ng-container",0),2&e&&(t.Y8G("ngIf",p.subscription),t.R7$(),t.Y8G("ngIf",!p.subscription&&p.fallback))},dependencies:[m.Sq,m.bT,B.M,X.t,Y.n,Q.h,J.x,w.q],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-subscription,.pxp-subscription{position:relative;display:flex;border-radius:var(--borderRadius);overflow:hidden;border:2px solid var(--primaryColor);background-color:var(--primaryColor);color:#fff;align-items:center;padding:var(--subscriptionPaddingVert) var(--subscriptionPaddingHoriz)}storefront-subscription .subscription-info,.pxp-subscription .subscription-info{position:relative;flex-grow:1;display:flex;align-items:center}storefront-subscription .subscription-info .subscription-purchased,.pxp-subscription .subscription-info .subscription-purchased{background-color:var(--primaryColor);color:#fff;line-height:1;border-radius:var(--subscriptionPurchasedBorderRadius);margin-left:var(--subscriptionPurchasedMarginHoriz)}storefront-subscription .subscription-price,.pxp-subscription .subscription-price{position:relative}storefront-subscription storefront-spinner,storefront-subscription .pxp-spinner,.pxp-subscription storefront-spinner,.pxp-subscription .pxp-spinner{width:20px;margin:0 8px}storefront-subscription.active,.pxp-subscription.active{background-color:#fff;color:#000}storefront-subscription.ghost,.pxp-subscription.ghost{background-image:linear-gradient(90deg,var(--ghostColor) 0px,rgb(236,236,236) 40px,var(--ghostColor) 80px);background-size:80vw;animation:ghost-lines 2s infinite linear;border-color:transparent}storefront-subscription[template=issues],storefront-subscription[data-pxp-template=issues],.pxp-subscription[template=issues],.pxp-subscription[data-pxp-template=issues]{background-color:transparent;border:none;flex-direction:column;color:var(--textColor)}storefront-subscription[template=issues] h3,storefront-subscription[data-pxp-template=issues] h3,.pxp-subscription[template=issues] h3,.pxp-subscription[data-pxp-template=issues] h3{margin:var(--gutter);text-align:center}storefront-subscription[template=issues] .subscription-issues,storefront-subscription[data-pxp-template=issues] .subscription-issues,.pxp-subscription[template=issues] .subscription-issues,.pxp-subscription[data-pxp-template=issues] .subscription-issues{display:flex;justify-content:center;width:100%}storefront-subscription[template=issues] .subscription-issues storefront-image,storefront-subscription[template=issues] .subscription-issues .pxp-image,storefront-subscription[data-pxp-template=issues] .subscription-issues storefront-image,storefront-subscription[data-pxp-template=issues] .subscription-issues .pxp-image,.pxp-subscription[template=issues] .subscription-issues storefront-image,.pxp-subscription[template=issues] .subscription-issues .pxp-image,.pxp-subscription[data-pxp-template=issues] .subscription-issues storefront-image,.pxp-subscription[data-pxp-template=issues] .subscription-issues .pxp-image{margin:calc(var(--gutter) / 2)}storefront-subscription[template=issues] .subscription-issues storefront-image img,storefront-subscription[template=issues] .subscription-issues .pxp-image img,storefront-subscription[data-pxp-template=issues] .subscription-issues storefront-image img,storefront-subscription[data-pxp-template=issues] .subscription-issues .pxp-image img,.pxp-subscription[template=issues] .subscription-issues storefront-image img,.pxp-subscription[template=issues] .subscription-issues .pxp-image img,.pxp-subscription[data-pxp-template=issues] .subscription-issues storefront-image img,.pxp-subscription[data-pxp-template=issues] .subscription-issues .pxp-image img{width:100%}storefront-subscription[template=issues] .subscription-issues-promotion,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion,.pxp-subscription[template=issues] .subscription-issues-promotion,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion{text-align:center;margin:var(--gutter)}storefront-subscription[template=issues] .subscription-issues-promotion span,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion span,.pxp-subscription[template=issues] .subscription-issues-promotion span,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion span{font-weight:700}storefront-subscription[template=issues] .subscription-issues-promotion span.former-price,storefront-subscription[template=issues] .subscription-issues-promotion span.current-price,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion span.former-price,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion span.current-price,.pxp-subscription[template=issues] .subscription-issues-promotion span.former-price,.pxp-subscription[template=issues] .subscription-issues-promotion span.current-price,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion span.former-price,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion span.current-price{color:var(--primaryColor)}storefront-subscription[template=issues] button,storefront-subscription[data-pxp-template=issues] button,.pxp-subscription[template=issues] button,.pxp-subscription[data-pxp-template=issues] button{color:#fff;background-color:var(--primaryColor)}storefront-subscription[template=issues] button[disabled],storefront-subscription[data-pxp-template=issues] button[disabled],.pxp-subscription[template=issues] button[disabled],.pxp-subscription[data-pxp-template=issues] button[disabled]{opacity:.5}@media (max-width: 533px) and (orientation: portrait),(max-height: 533px) and (orientation: landscape){storefront-subscription[template=issues] button,storefront-subscription[data-pxp-template=issues] button,.pxp-subscription[template=issues] button,.pxp-subscription[data-pxp-template=issues] button{width:100%}}storefront-subscription[template=issues] storefront-spinner.subscription-loading,storefront-subscription[template=issues] .pxp-spinner.subscription-loading,storefront-subscription[data-pxp-template=issues] storefront-spinner.subscription-loading,storefront-subscription[data-pxp-template=issues] .pxp-spinner.subscription-loading,.pxp-subscription[template=issues] storefront-spinner.subscription-loading,.pxp-subscription[template=issues] .pxp-spinner.subscription-loading,.pxp-subscription[data-pxp-template=issues] storefront-spinner.subscription-loading,.pxp-subscription[data-pxp-template=issues] .pxp-spinner.subscription-loading{--spinnerColor: var(--secondaryColor);height:100px;width:100px}\n'],encapsulation:2}),s})();var Ft=o(6483),$t=o(6215),Ht=o(1605),Vt=o(4403),zt=o(3);const kt=["class","pxp-subscription"],k=i=>[i],jt=()=>[];function Kt(i,s){1&i&&t.nrm(0,"div",8),2&i&&t.Y8G("src",s.$implicit.thumbnails.default)}function Wt(i,s){if(1&i&&t.DNE(0,Kt,1,1,"div",10),2&i){const n=t.XpG(5);t.Y8G("ngForOf",n.displayedIssues)}}function Qt(i,s){1&i&&t.nrm(0,"storefront-image",9),2&i&&t.Y8G("src",s.$implicit.thumbnails.default)}function Jt(i,s){if(1&i&&t.DNE(0,Qt,1,1,"storefront-image",11),2&i){const n=t.XpG(5);t.Y8G("ngForOf",n.displayedIssues)}}function wt(i,s){if(1&i&&(t.j41(0,"div",7),t.DNE(1,Wt,1,1,"div",8)(2,Jt,1,1,"storefront-image",9),t.k0s()),2&i){const n=t.XpG(4);t.R7$(),t.vxM(n.domHelper.leanDom?1:2)}}function Zt(i,s){if(1&i&&t.nrm(0,"p",12),2&i){const n=t.XpG(4);t.Y8G("storefrontTranslate",n.issuesPromotionMessage)("storefrontTranslateArgs",n.issuesPromotionArgs)}}function qt(i,s){1&i&&t.nrm(0,"div",13)}function ti(i,s){if(1&i&&t.DNE(0,qt,1,0,"div",13),2&i){const n=t.XpG(4);t.vxM(n.purchaseLoading?0:-1)}}function ii(i,s){1&i&&t.nrm(0,"storefront-spinner",14)}function ni(i,s){if(1&i&&t.DNE(0,ii,1,0,"storefront-spinner",14),2&i){const n=t.XpG(4);t.vxM(n.purchaseLoading?0:-1)}}function ei(i,s){if(1&i&&t.nrm(0,"span",2),2&i){const n=t.XpG(4);t.Y8G("storefrontTranslate",n.config.purchaseButtonMessage)("storefrontTranslateArgs",t.eq3(2,k,n.subscription.price.formattedPrice))}}function si(i,s){if(1&i&&t.nrm(0,"span",15),2&i){const n=t.XpG(4);t.Y8G("storefrontTranslate",n.config.purchaseUnavailableButtonMessage)}}function oi(i,s){if(1&i){const n=t.RV6();t.qex(0),t.DNE(1,wt,3,1,"div",1),t.nrm(2,"h3",2),t.DNE(3,Zt,1,2,"p",3),t.j41(4,"button",4),t.bIt("click",function(){t.eBV(n);const p=t.XpG(3);return t.Njj(p.onClickPurchase())}),t.DNE(5,ti,1,1)(6,ni,1,1)(7,ei,1,4,"span",5)(8,si,1,1,"span",6),t.k0s(),t.bVm()}if(2&i){const n=t.XpG(3);t.R7$(),t.Y8G("ngIf",n.displayedIssues),t.R7$(),t.Y8G("storefrontTranslate",n.config.titleMessage)("storefrontTranslateArgs",t.eq3(8,k,n.subscription.name)),t.R7$(),t.Y8G("ngIf",n.issuesPromotionMessage),t.R7$(),t.Y8G("disabled",!n.subscription.price||n.purchaseLoading),t.R7$(),t.vxM(n.domHelper.leanDom?5:6),t.R7$(2),t.Y8G("ngIf",n.subscription.price),t.R7$(),t.Y8G("ngIf",!n.subscription.price)}}function ri(i,s){1&i&&t.nrm(0,"div",16)}function ai(i,s){if(1&i&&t.DNE(0,ri,1,0,"div",16),2&i){const n=t.XpG(3);t.vxM(!n.config||n.priceLoading?0:-1)}}function pi(i,s){1&i&&t.nrm(0,"storefront-spinner",17)}function ci(i,s){if(1&i&&t.DNE(0,pi,1,0,"storefront-spinner",17),2&i){const n=t.XpG(3);t.vxM(!n.config||n.priceLoading?0:-1)}}function ui(i,s){if(1&i&&(t.qex(0),t.DNE(1,oi,9,10,"ng-container",0)(2,ai,1,1)(3,ci,1,1),t.bVm()),2&i){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf",n.config&&!n.priceLoading),t.R7$(),t.vxM(n.domHelper.leanDom?2:3)}}function li(i,s){1&i&&t.nrm(0,"div",24)}function gi(i,s){if(1&i&&(t.qex(0),t.nrm(1,"div",26)(2,"div",27),t.bVm()),2&i){const n=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",n.config.trialPriceMessage)("storefrontTranslateArgs",n.trialPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",n.config.finalPriceMessage)("storefrontTranslateArgs",n.finalPriceArgs)}}function mi(i,s){if(1&i&&(t.qex(0),t.nrm(1,"div",28)(2,"div",27),t.bVm()),2&i){const n=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",n.config.introductoryPriceMessage)("storefrontTranslateArgs",n.introductoryPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",n.config.finalPriceMessage)("storefrontTranslateArgs",n.finalPriceArgs)}}function _i(i,s){if(1&i&&(t.qex(0),t.nrm(1,"div",29)(2,"div",27),t.bVm()),2&i){const n=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",n.config.discountPriceMessage)("storefrontTranslateArgs",n.discountPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",n.config.finalPriceMessage)("storefrontTranslateArgs",n.finalPriceArgs)}}function di(i,s){if(1&i&&(t.qex(0),t.nrm(1,"div",30),t.bVm()),2&i){const n=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",n.config.priceMessage)("storefrontTranslateArgs",n.finalPriceArgs)}}function fi(i,s){if(1&i&&(t.j41(0,"div",25),t.DNE(1,gi,3,4,"ng-container",0)(2,mi,3,4,"ng-container",0)(3,_i,3,4,"ng-container",0)(4,di,2,2,"ng-container",0),t.k0s()),2&i){const n=t.XpG(3);t.R7$(),t.Y8G("ngIf",n.subscription.trial),t.R7$(),t.Y8G("ngIf",!n.subscription.trial&&n.subscription.introductoryPrice),t.R7$(),t.Y8G("ngIf",!n.subscription.trial&&!n.subscription.introductoryPrice&&n.subscription.discount),t.R7$(),t.Y8G("ngIf",!n.subscription.trial&&!n.subscription.introductoryPrice&&!n.subscription.discount)}}function bi(i,s){if(1&i&&t.nrm(0,"div",31),2&i){const n=t.XpG(3);t.Y8G("storefrontTranslate",n.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(2,k,n.subscription.description))}}function xi(i,s){if(1&i&&t.nrm(0,"div",2),2&i){const n=s.$implicit;t.ZvI("issue-custom-message ",n.class||"",""),t.Y8G("storefrontTranslate",n.message)("storefrontTranslateArgs",n.variables||t.lJ4(5,jt))}}function hi(i,s){1&i&&t.nrm(0,"div",13)}function vi(i,s){if(1&i&&t.DNE(0,hi,1,0,"div",13),2&i){const n=t.XpG(3);t.vxM(!n.config||n.priceLoading?0:-1)}}function Ti(i,s){1&i&&t.nrm(0,"storefront-spinner",14)}function Ci(i,s){if(1&i&&t.DNE(0,Ti,1,0,"storefront-spinner",14),2&i){const n=t.XpG(3);t.vxM(!n.config||n.priceLoading?0:-1)}}function Si(i,s){1&i&&t.nrm(0,"span",15),2&i&&t.Y8G("storefrontTranslate","SUBSCRIPTION_ACTION_PURCHASE_UNAVAILABLE")}function Di(i,s){if(1&i&&(t.qex(0),t.j41(1,"div",18),t.nrm(2,"h3",19),t.DNE(3,li,1,0,"div",20),t.k0s(),t.DNE(4,fi,5,4,"div",21)(5,bi,1,4,"div",22)(6,xi,1,6,"div",23)(7,vi,1,1)(8,Ci,1,1)(9,Si,1,1,"span",6),t.bVm()),2&i){const n=t.XpG(2);t.R7$(2),t.Y8G("storefrontTranslate",n.config.titleMessage)("storefrontTranslateArgs",t.eq3(8,k,n.subscription.name)),t.R7$(),t.Y8G("ngIf",n.active),t.R7$(),t.Y8G("ngIf",n.subscription.price),t.R7$(),t.Y8G("ngIf","details"===n.template&&!!n.subscription.description),t.R7$(),t.Y8G("ngForOf",n.customMessages),t.R7$(),t.vxM(n.domHelper.leanDom?7:8),t.R7$(2),t.Y8G("ngIf",!n.subscription.price&&!n.priceLoading)}}function Ii(i,s){if(1&i&&(t.qex(0),t.DNE(1,ui,4,2,"ng-container",0)(2,Di,10,10,"ng-container",0),t.bVm()),2&i){const n=t.XpG();t.R7$(),t.Y8G("ngIf","issues"===n.template),t.R7$(),t.Y8G("ngIf","details"===n.template||"default"===n.template||!n.template)}}function Pi(i,s){}function Ai(i,s){if(1&i&&(t.qex(0),t.DNE(1,Pi,0,0,"ng-template",32),t.bVm()),2&i){const n=t.XpG();t.R7$(),t.Y8G("classNames","subscription-fallback")("baseContext",n.baseContext)("baseConfig",n.fallback)}}let yi=(()=>{var i;class s extends Z{}return(i=s).\u0275fac=(()=>{let n;return function(p){return(n||(n=t.xGo(i)))(p||i)}})(),i.\u0275cmp=t.VBU({type:i,selectors:[["div",8,"pxp-subscription"]],standalone:!1,features:[t.Jv_([_.B]),t.Vt3],attrs:kt,decls:2,vars:2,consts:[[4,"ngIf"],["class","subscription-issues stacked",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs"],["class","subscription-issues-promotion",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[1,"action-button",3,"click","disabled"],[3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"storefrontTranslate",4,"ngIf"],[1,"subscription-issues","stacked"],["height","DEFAULT",1,"pxp-image",3,"src"],["height","DEFAULT",3,"src"],["class","pxp-image","height","DEFAULT",3,"src",4,"ngFor","ngForOf"],["height","DEFAULT",3,"src",4,"ngFor","ngForOf"],[1,"subscription-issues-promotion",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"pxp-spinner","button-spinner"],[1,"button-spinner"],[3,"storefrontTranslate"],[1,"pxp-spinner","subscription-loading"],[1,"subscription-loading"],[1,"subscription-info"],[1,"subscription-title",3,"storefrontTranslate","storefrontTranslateArgs"],["class","subscription-purchased","storefrontTranslate","SUBSCRIPTION_PURCHASED",4,"ngIf"],["class","subscription-price",4,"ngIf"],["class","subscription-description",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"class","storefrontTranslate","storefrontTranslateArgs",4,"ngFor","ngForOf"],["storefrontTranslate","SUBSCRIPTION_PURCHASED",1,"subscription-purchased"],[1,"subscription-price"],[1,"subscription-price-trial",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-final",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-introductory",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-discount",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-regular",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-description",3,"storefrontTranslate","storefrontTranslateArgs"],[3,"pxpDynamicComponent","classNames","baseContext","baseConfig"]],template:function(e,p){1&e&&t.DNE(0,Ii,3,2,"ng-container",0)(1,Ai,2,3,"ng-container",0),2&e&&(t.Y8G("ngIf",p.subscription),t.R7$(),t.Y8G("ngIf",!p.subscription&&p.fallback))},dependencies:[m.Sq,m.bT,B.M,X.t,Y.n,Q.h,J.x,w.q],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-subscription,.pxp-subscription{position:relative;display:flex;border-radius:var(--borderRadius);overflow:hidden;border:2px solid var(--primaryColor);background-color:var(--primaryColor);color:#fff;align-items:center;padding:var(--subscriptionPaddingVert) var(--subscriptionPaddingHoriz)}storefront-subscription .subscription-info,.pxp-subscription .subscription-info{position:relative;flex-grow:1;display:flex;align-items:center}storefront-subscription .subscription-info .subscription-purchased,.pxp-subscription .subscription-info .subscription-purchased{background-color:var(--primaryColor);color:#fff;line-height:1;border-radius:var(--subscriptionPurchasedBorderRadius);margin-left:var(--subscriptionPurchasedMarginHoriz)}storefront-subscription .subscription-price,.pxp-subscription .subscription-price{position:relative}storefront-subscription storefront-spinner,storefront-subscription .pxp-spinner,.pxp-subscription storefront-spinner,.pxp-subscription .pxp-spinner{width:20px;margin:0 8px}storefront-subscription.active,.pxp-subscription.active{background-color:#fff;color:#000}storefront-subscription.ghost,.pxp-subscription.ghost{background-image:linear-gradient(90deg,var(--ghostColor) 0px,rgb(236,236,236) 40px,var(--ghostColor) 80px);background-size:80vw;animation:ghost-lines 2s infinite linear;border-color:transparent}storefront-subscription[template=issues],storefront-subscription[data-pxp-template=issues],.pxp-subscription[template=issues],.pxp-subscription[data-pxp-template=issues]{background-color:transparent;border:none;flex-direction:column;color:var(--textColor)}storefront-subscription[template=issues] h3,storefront-subscription[data-pxp-template=issues] h3,.pxp-subscription[template=issues] h3,.pxp-subscription[data-pxp-template=issues] h3{margin:var(--gutter);text-align:center}storefront-subscription[template=issues] .subscription-issues,storefront-subscription[data-pxp-template=issues] .subscription-issues,.pxp-subscription[template=issues] .subscription-issues,.pxp-subscription[data-pxp-template=issues] .subscription-issues{display:flex;justify-content:center;width:100%}storefront-subscription[template=issues] .subscription-issues storefront-image,storefront-subscription[template=issues] .subscription-issues .pxp-image,storefront-subscription[data-pxp-template=issues] .subscription-issues storefront-image,storefront-subscription[data-pxp-template=issues] .subscription-issues .pxp-image,.pxp-subscription[template=issues] .subscription-issues storefront-image,.pxp-subscription[template=issues] .subscription-issues .pxp-image,.pxp-subscription[data-pxp-template=issues] .subscription-issues storefront-image,.pxp-subscription[data-pxp-template=issues] .subscription-issues .pxp-image{margin:calc(var(--gutter) / 2)}storefront-subscription[template=issues] .subscription-issues storefront-image img,storefront-subscription[template=issues] .subscription-issues .pxp-image img,storefront-subscription[data-pxp-template=issues] .subscription-issues storefront-image img,storefront-subscription[data-pxp-template=issues] .subscription-issues .pxp-image img,.pxp-subscription[template=issues] .subscription-issues storefront-image img,.pxp-subscription[template=issues] .subscription-issues .pxp-image img,.pxp-subscription[data-pxp-template=issues] .subscription-issues storefront-image img,.pxp-subscription[data-pxp-template=issues] .subscription-issues .pxp-image img{width:100%}storefront-subscription[template=issues] .subscription-issues-promotion,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion,.pxp-subscription[template=issues] .subscription-issues-promotion,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion{text-align:center;margin:var(--gutter)}storefront-subscription[template=issues] .subscription-issues-promotion span,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion span,.pxp-subscription[template=issues] .subscription-issues-promotion span,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion span{font-weight:700}storefront-subscription[template=issues] .subscription-issues-promotion span.former-price,storefront-subscription[template=issues] .subscription-issues-promotion span.current-price,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion span.former-price,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion span.current-price,.pxp-subscription[template=issues] .subscription-issues-promotion span.former-price,.pxp-subscription[template=issues] .subscription-issues-promotion span.current-price,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion span.former-price,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion span.current-price{color:var(--primaryColor)}storefront-subscription[template=issues] button,storefront-subscription[data-pxp-template=issues] button,.pxp-subscription[template=issues] button,.pxp-subscription[data-pxp-template=issues] button{color:#fff;background-color:var(--primaryColor)}storefront-subscription[template=issues] button[disabled],storefront-subscription[data-pxp-template=issues] button[disabled],.pxp-subscription[template=issues] button[disabled],.pxp-subscription[data-pxp-template=issues] button[disabled]{opacity:.5}@media (max-width: 533px) and (orientation: portrait),(max-height: 533px) and (orientation: landscape){storefront-subscription[template=issues] button,storefront-subscription[data-pxp-template=issues] button,.pxp-subscription[template=issues] button,.pxp-subscription[data-pxp-template=issues] button{width:100%}}storefront-subscription[template=issues] storefront-spinner.subscription-loading,storefront-subscription[template=issues] .pxp-spinner.subscription-loading,storefront-subscription[data-pxp-template=issues] storefront-spinner.subscription-loading,storefront-subscription[data-pxp-template=issues] .pxp-spinner.subscription-loading,.pxp-subscription[template=issues] storefront-spinner.subscription-loading,.pxp-subscription[template=issues] .pxp-spinner.subscription-loading,.pxp-subscription[data-pxp-template=issues] storefront-spinner.subscription-loading,.pxp-subscription[data-pxp-template=issues] .pxp-spinner.subscription-loading{--spinnerColor: var(--secondaryColor);height:100px;width:100px}\n'],encapsulation:2}),s})(),Ei=(()=>{var i;class s{}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=t.G2t({imports:[m.MD,Ft.h,$t.O,Ht.P,Vt.U,zt.pZ]}),s})();const Ri={component:Z,leanDomComponent:yi}},3647:(V,I,o)=>{o.d(I,{R:()=>c});var m=o(4438),a=o(345);let c=(()=>{var h;class _{constructor(g){this.sanitizer=g}transform(g,C="url"){switch(C){case"html":return this.sanitizer.bypassSecurityTrustHtml(g);case"style":return this.sanitizer.bypassSecurityTrustStyle(g);case"script":return this.sanitizer.bypassSecurityTrustScript(g);case"url":return this.sanitizer.bypassSecurityTrustUrl(g);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(g);default:throw new Error("Invalid safe type specified: ".concat(C))}}}return(h=_).\u0275fac=function(g){return new(g||h)(m.rXU(a.up,16))},h.\u0275pipe=m.EJ8({name:"sanitizeUrl",type:h,pure:!0,standalone:!1}),_})()}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_subscription_subscription_module_ts"],{189:(Rn,G,r)=>{r.r(G),r.d(G,{SubscriptionModule:()=>Dn,component:()=>An});var f=r(177),b=r(467),g=r(9379),t=r(3953),j=r(4404),h=r(8251),Q=r(1210),d=function(n){return n.DEFAULT="default",n.ISSUES="issues",n.DETAILS="details",n}(d||{});const R={template:d.DEFAULT,maxDisplayIssues:3,purchase:{showErrorDialog:!0},titleMessage:"SUBSCRIPTION_TITLE",purchaseButtonMessage:"SUBSCRIPTION_ACTION_PURCHASE",purchaseUnavailableButtonMessage:"SUBSCRIPTION_ACTION_PURCHASE_UNAVAILABLE",promotionMessage:"SUBSCRIPTION_ISSUES_PROMOTION",promotionAdditionalMessage:"SUBSCRIPTION_ISSUES_ADDITIONAL_PROMOTION",priceMessage:"SUBSCRIPTION_PRICE",finalPriceMessage:"SUBSCRIPTION_PRICE_FINAL",introductoryPriceMessage:"SUBSCRIPTION_PRICE_INTRODUCTORY",trialPriceMessage:"SUBSCRIPTION_PRICE_TRIAL",discountPriceMessage:"SUBSCRIPTION_PRICE_DISCOUNT",descriptionMessage:"SUBSCRIPTION_DESCRIPTION"};var z=r(5102),S=r(3178),W=r(4622),J=r(4004),l=r(4333),K=r(8004),x=r(7967),I=r(8179),P=r(7879),Z=r(4452),q=r(362),w=r.n(q),y=r(8909),L=r(7240),M=r(6962),Y=r(2932),N=r(1302),E=r(2868);const v=n=>[n],tt=()=>[];function nt(n,o){1&n&&t.nrm(0,"div",8),2&n&&t.Y8G("src",o.$implicit.thumbnails.default)}function st(n,o){if(1&n&&t.DNE(0,nt,1,1,"div",10),2&n){const s=t.XpG(5);t.Y8G("ngForOf",s.displayedIssues)}}function it(n,o){1&n&&t.nrm(0,"storefront-image",9),2&n&&t.Y8G("src",o.$implicit.thumbnails.default)}function ot(n,o){if(1&n&&t.DNE(0,it,1,1,"storefront-image",11),2&n){const s=t.XpG(5);t.Y8G("ngForOf",s.displayedIssues)}}function et(n,o){if(1&n&&(t.j41(0,"div",7),t.DNE(1,st,1,1,"div",8)(2,ot,1,1,"storefront-image",9),t.k0s()),2&n){const s=t.XpG(4);t.R7$(),t.vxM(s.domHelper.leanDom?1:2)}}function rt(n,o){if(1&n&&t.nrm(0,"p",12),2&n){const s=t.XpG(4);t.Y8G("storefrontTranslate",s.issuesPromotionMessage)("storefrontTranslateArgs",s.issuesPromotionArgs)}}function at(n,o){1&n&&t.nrm(0,"div",13)}function pt(n,o){if(1&n&&t.DNE(0,at,1,0,"div",13),2&n){const s=t.XpG(4);t.vxM(s.purchaseLoading?0:-1)}}function ct(n,o){1&n&&t.nrm(0,"storefront-spinner",14)}function ut(n,o){if(1&n&&t.DNE(0,ct,1,0,"storefront-spinner",14),2&n){const s=t.XpG(4);t.vxM(s.purchaseLoading?0:-1)}}function lt(n,o){if(1&n&&t.nrm(0,"span",2),2&n){const s=t.XpG(4);t.Y8G("storefrontTranslate",s.config.purchaseButtonMessage)("storefrontTranslateArgs",t.eq3(2,v,s.subscription.price.formattedPrice))}}function _t(n,o){if(1&n&&t.nrm(0,"span",15),2&n){const s=t.XpG(4);t.Y8G("storefrontTranslate",s.config.purchaseUnavailableButtonMessage)}}function ft(n,o){if(1&n){const s=t.RV6();t.qex(0),t.DNE(1,et,3,1,"div",1),t.nrm(2,"h3",2),t.DNE(3,rt,1,2,"p",3),t.j41(4,"button",4),t.bIt("click",function(){t.eBV(s);const e=t.XpG(3);return t.Njj(e.onClickPurchase())}),t.DNE(5,pt,1,1)(6,ut,1,1)(7,lt,1,4,"span",5)(8,_t,1,1,"span",6),t.k0s(),t.bVm()}if(2&n){const s=t.XpG(3);t.R7$(),t.Y8G("ngIf",s.displayedIssues),t.R7$(),t.Y8G("storefrontTranslate",s.config.titleMessage)("storefrontTranslateArgs",t.eq3(8,v,s.subscription.name)),t.R7$(),t.Y8G("ngIf",s.issuesPromotionMessage),t.R7$(),t.Y8G("disabled",!s.subscription.price||s.purchaseLoading),t.R7$(),t.vxM(s.domHelper.leanDom?5:6),t.R7$(2),t.Y8G("ngIf",s.subscription.price),t.R7$(),t.Y8G("ngIf",!s.subscription.price)}}function gt(n,o){1&n&&t.nrm(0,"div",16)}function mt(n,o){if(1&n&&t.DNE(0,gt,1,0,"div",16),2&n){const s=t.XpG(3);t.vxM(!s.config||s.priceLoading?0:-1)}}function bt(n,o){1&n&&t.nrm(0,"storefront-spinner",17)}function dt(n,o){if(1&n&&t.DNE(0,bt,1,0,"storefront-spinner",17),2&n){const s=t.XpG(3);t.vxM(!s.config||s.priceLoading?0:-1)}}function xt(n,o){if(1&n&&(t.qex(0),t.DNE(1,ft,9,10,"ng-container",0)(2,mt,1,1)(3,dt,1,1),t.bVm()),2&n){const s=t.XpG(2);t.R7$(),t.Y8G("ngIf",s.config&&!s.priceLoading),t.R7$(),t.vxM(s.domHelper.leanDom?2:3)}}function vt(n,o){1&n&&t.nrm(0,"div",24)}function Tt(n,o){if(1&n&&(t.qex(0),t.nrm(1,"div",26)(2,"div",27),t.bVm()),2&n){const s=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",s.config.trialPriceMessage)("storefrontTranslateArgs",s.trialPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",s.config.finalPriceMessage)("storefrontTranslateArgs",s.finalPriceArgs)}}function Ct(n,o){if(1&n&&(t.qex(0),t.nrm(1,"div",28)(2,"div",27),t.bVm()),2&n){const s=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",s.config.introductoryPriceMessage)("storefrontTranslateArgs",s.introductoryPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",s.config.finalPriceMessage)("storefrontTranslateArgs",s.finalPriceArgs)}}function ht(n,o){if(1&n&&(t.qex(0),t.nrm(1,"div",29)(2,"div",27),t.bVm()),2&n){const s=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",s.config.discountPriceMessage)("storefrontTranslateArgs",s.discountPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",s.config.finalPriceMessage)("storefrontTranslateArgs",s.finalPriceArgs)}}function St(n,o){if(1&n&&(t.qex(0),t.nrm(1,"div",30),t.bVm()),2&n){const s=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",s.config.priceMessage)("storefrontTranslateArgs",s.finalPriceArgs)}}function It(n,o){if(1&n&&(t.j41(0,"div",25),t.DNE(1,Tt,3,4,"ng-container",0)(2,Ct,3,4,"ng-container",0)(3,ht,3,4,"ng-container",0)(4,St,2,2,"ng-container",0),t.k0s()),2&n){const s=t.XpG(3);t.R7$(),t.Y8G("ngIf",s.subscription.trial),t.R7$(),t.Y8G("ngIf",!s.subscription.trial&&s.subscription.introductoryPrice),t.R7$(),t.Y8G("ngIf",!s.subscription.trial&&!s.subscription.introductoryPrice&&s.subscription.discount),t.R7$(),t.Y8G("ngIf",!s.subscription.trial&&!s.subscription.introductoryPrice&&!s.subscription.discount)}}function Dt(n,o){if(1&n&&t.nrm(0,"div",31),2&n){const s=t.XpG(3);t.Y8G("storefrontTranslate",s.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(2,v,s.subscription.description))}}function At(n,o){if(1&n&&t.nrm(0,"div",2),2&n){const s=o.$implicit;t.ZvI("issue-custom-message ",s.class||"",""),t.Y8G("storefrontTranslate",s.message)("storefrontTranslateArgs",s.variables||t.lJ4(5,tt))}}function Gt(n,o){1&n&&t.nrm(0,"div",13)}function Rt(n,o){if(1&n&&t.DNE(0,Gt,1,0,"div",13),2&n){const s=t.XpG(3);t.vxM(!s.config||s.priceLoading?0:-1)}}function Pt(n,o){1&n&&t.nrm(0,"storefront-spinner",14)}function yt(n,o){if(1&n&&t.DNE(0,Pt,1,0,"storefront-spinner",14),2&n){const s=t.XpG(3);t.vxM(!s.config||s.priceLoading?0:-1)}}function Lt(n,o){1&n&&t.nrm(0,"span",15),2&n&&t.Y8G("storefrontTranslate","SUBSCRIPTION_ACTION_PURCHASE_UNAVAILABLE")}function Mt(n,o){if(1&n&&(t.qex(0),t.j41(1,"div",18),t.nrm(2,"h3",19),t.DNE(3,vt,1,0,"div",20),t.k0s(),t.DNE(4,It,5,4,"div",21)(5,Dt,1,4,"div",22)(6,At,1,6,"div",23)(7,Rt,1,1)(8,yt,1,1)(9,Lt,1,1,"span",6),t.bVm()),2&n){const s=t.XpG(2);t.R7$(2),t.Y8G("storefrontTranslate",s.config.titleMessage)("storefrontTranslateArgs",t.eq3(8,v,s.subscription.name)),t.R7$(),t.Y8G("ngIf",s.active),t.R7$(),t.Y8G("ngIf",s.subscription.price),t.R7$(),t.Y8G("ngIf","details"===s.template&&!!s.subscription.description),t.R7$(),t.Y8G("ngForOf",s.customMessages),t.R7$(),t.vxM(s.domHelper.leanDom?7:8),t.R7$(2),t.Y8G("ngIf",!s.subscription.price&&!s.priceLoading)}}function Yt(n,o){if(1&n&&(t.qex(0),t.DNE(1,xt,4,2,"ng-container",0)(2,Mt,10,10,"ng-container",0),t.bVm()),2&n){const s=t.XpG();t.R7$(),t.Y8G("ngIf","issues"===s.template),t.R7$(),t.Y8G("ngIf","details"===s.template||"default"===s.template||!s.template)}}function Nt(n,o){}function Et(n,o){if(1&n&&(t.qex(0),t.DNE(1,Nt,0,0,"ng-template",32),t.bVm()),2&n){const s=t.XpG();t.R7$(),t.Y8G("classNames","subscription-fallback")("baseContext",s.baseContext)("baseConfig",s.fallback)}}let $=(()=>{var n;class o extends Q.${constructor(){super(...arguments),this.store=(0,t.WQX)(h.B),this.injector=(0,t.WQX)(t.zZn),this.eventActionService=(0,t.WQX)(K.G),this.purpleService=(0,t.WQX)(z.Wj),this.purpleEnv=(0,t.WQX)(P.r6),this.changeDetectorRef=(0,t.WQX)(t.gRc),this.defaultConfig=(0,g.A)({},R),this.priceLoading=!1,this.issuesPromotionArgs=[],this.introductoryPriceArgs=[],this.trialPriceArgs=[],this.finalPriceArgs=[],this.discountPriceArgs=[]}get active(){return this.subscription&&this.subscription.purchased}get isDisabled(){if(!this.subscription||!this.subscription.price)return!0}get contextKey(){return o.type}ngOnDestroy(){this.dataSource&&this.contextService.unregisterDataSource(this.dataSource)}onConfigChanges(){var i=this;return(0,b.A)(function*(){var e;i.purchaseConfig=(0,g.A)((0,g.A)({},R.purchase),i.config.purchase),i.purchaseConfig.upgradeMode=(0,I.v3)(i.purchaseConfig.upgradeMode),i.subscription?i.subscription=i.context.subscription:i.config.dataSource?(i.dataSource=(0,Z.O8)(i.injector,i.config.dataSource,i.elementRef.nativeElement,i.document),i.store.subscribe(i.dataSource.data$,a=>{i.subscription=a[0],(0===a.length||a.some(c=>null!==c)&&!i.subscription)&&i.showFallback(),i.onLoadSubscription()},S.lQ,S.lQ,"data"),yield i.dataSource.loadData()):i.subscription=i.baseContext.subscription,i.onLoadSubscription(),i.customMessages=null===(e=i.config.customMessages)||void 0===e?void 0:e.filter(a=>(0,I.Ol)(a)).map(a=>(0,I.v3)(a)),i.changeDetectorRef.markForCheck()})()}onLoadSubscription(){var i=this;return(0,b.A)(function*(){i.subscription&&(i.context.subscription=i.subscription,yield i.loadPrice())})()}loadPrice(){var i=this;return(0,b.A)(function*(){if(i.template===d.ISSUES){const e=Object.keys(i.subscription.publications).map(p=>({publication:{id:{value:p}}})),a=i.config.issueFilter?{AND:[i.config.issueFilter,{OR:e}]}:{OR:e},c=(yield i.purpleService.getIssues({issueFilter:a})).nodes[0],X=new Date(c.publicationDate),D=(0,l.vY)(i.subscription.duration,X),_=(yield i.purpleService.getIssues({issueFilter:i.getDateFilter(D,a,c)})).nodes;i.displayedIssues=[..._,c].slice(0,i.config.maxDisplayIssues);let O=_.length+1,m=_.map(p=>p.productId);m.push(c.productId);const U=new Set(m);let A=[..._,c],B=i.config.promotionMessage;if(i.subscription.additionalUnlocks.count>0){const p=(0,l.BH)(i.subscription.additionalUnlocks,X),u=p===D?[..._]:(yield i.purpleService.getIssues({issueFilter:i.getDateFilter(p,a,c)})).nodes;A=[...A,...u],p!==D&&u.forEach(C=>C&&U.add(C.productId)),O+=u.length,B=i.config.promotionAdditionalMessage}m=Array.from(U),i.priceLoading=!0,i.store.select((0,W.TX)(m),p=>{if(!p.includes(void 0)){const u=i.subscription.price,C=A.reduce((k,Gn)=>{const V=p.find(H=>H&&H.productId===Gn.productId);return V?k+V.price:k},0),F=new Intl.NumberFormat((0,S.JK)(),{style:"currency",currency:null==u?void 0:u.currency});i.issuesPromotionArgs=['<span class="issue-count">'.concat(O,"</span>"),'<span class="future-issue-count">'.concat(_.length+1,"</span>"),'<span class="former-price">'.concat(F.format(C),"</span>"),'<span class="current-price">'.concat(F.format(u.price),"</span>")],i.issuesPromotionMessage=B,i.priceLoading=!1}}),i.store.dispatch((0,J.$W)({productIds:m}))}i.formatPrice()})()}formatPrice(){const i=(0,l.fs)(this.subscription.duration);if(this.finalPriceArgs=[this.subscription.price.formattedPrice,i.count,(0,x.t)(i.unit,i.count)],this.subscription.trial){const e=(0,l.ch)(this.subscription.trial);this.trialPriceArgs=[e.count,(0,x.t)(e.unit,e.count)]}if(this.subscription.introductoryPrice){const e=(0,l.ch)(this.subscription.introductoryPrice.pricePeriod);this.introductoryPriceArgs=[this.subscription.introductoryPrice.priceCycles,e.count,(0,x.t)(e.unit,e.count),this.subscription.introductoryPrice.formattedPrice]}if(this.subscription.discount){const e=(0,l.ch)(this.subscription.discount.pricePeriod);this.discountPriceArgs=[this.subscription.discount.priceCycles,e.count,(0,x.t)(e.unit,e.count),this.subscription.discount.formattedPrice]}}onClick(){this.template!==d.ISSUES&&this.purchase()}onClickPurchase(){this.purchase()}purchase(){var i=this;return(0,b.A)(function*(){var e;i.active||i.purchaseLoading||i.isDisabled||(i.purchaseLoading=!0,i.changeDetectorRef.detectChanges(),yield i.eventActionService.processSubscribeAction((0,g.A)((0,g.A)({},i.purchaseConfig),{},{productId:i.subscription.productId,price:i.subscription.price.price,currency:i.subscription.price.currency,offerId:(null===(e=i.subscription.discount)||void 0===e?void 0:e.offerId)||void 0}),i),i.purchaseLoading=!1,i.changeDetectorRef.detectChanges())})()}getDateFilter(i,e,a){return{AND:[{publicationDate:{value:i,operation:j.DateOperation.GREATER_THAN}},e,{id:{value:a.id,negated:!0}}]}}getTrackingParams(){return(0,P.z5)(this.subscription,this.subscription.price)}isGhost(){return!this.subscription&&!this.fallback}showFallback(){this.fallback=this.config.fallback}getContextKey(){return this.contextKey}hasContextChanged(i){return!w()(i[this.getContextKey()],this.subscription)||super.hasContextChanged(i)}}return(n=o).type="subscription",n.\u0275fac=(()=>{let s;return function(e){return(s||(s=t.xGo(n)))(e||n)}})(),n.\u0275cmp=t.VBU({type:n,selectors:[["storefront-subscription"]],hostVars:3,hostBindings:function(i,e){1&i&&t.bIt("click",function(){return e.onClick()}),2&i&&(t.BMQ("disabled",e.isDisabled),t.AVh("active",e.active))},standalone:!1,features:[t.Jv_([h.B]),t.Vt3],decls:2,vars:2,consts:[[4,"ngIf"],["class","subscription-issues stacked",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs"],["class","subscription-issues-promotion",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[1,"action-button",3,"click","disabled"],[3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"storefrontTranslate",4,"ngIf"],[1,"subscription-issues","stacked"],["height","DEFAULT",1,"pxp-image",3,"src"],["height","DEFAULT",3,"src"],["class","pxp-image","height","DEFAULT",3,"src",4,"ngFor","ngForOf"],["height","DEFAULT",3,"src",4,"ngFor","ngForOf"],[1,"subscription-issues-promotion",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"pxp-spinner","button-spinner"],[1,"button-spinner"],[3,"storefrontTranslate"],[1,"pxp-spinner","subscription-loading"],[1,"subscription-loading"],[1,"subscription-info"],[1,"subscription-title",3,"storefrontTranslate","storefrontTranslateArgs"],["class","subscription-purchased","storefrontTranslate","SUBSCRIPTION_PURCHASED",4,"ngIf"],["class","subscription-price",4,"ngIf"],["class","subscription-description",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"class","storefrontTranslate","storefrontTranslateArgs",4,"ngFor","ngForOf"],["storefrontTranslate","SUBSCRIPTION_PURCHASED",1,"subscription-purchased"],[1,"subscription-price"],[1,"subscription-price-trial",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-final",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-introductory",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-discount",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-regular",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-description",3,"storefrontTranslate","storefrontTranslateArgs"],[3,"pxpDynamicComponent","classNames","baseContext","baseConfig"]],template:function(i,e){1&i&&t.DNE(0,Yt,3,2,"ng-container",0)(1,Et,2,3,"ng-container",0),2&i&&(t.Y8G("ngIf",e.subscription),t.R7$(),t.Y8G("ngIf",!e.subscription&&e.fallback))},dependencies:[f.Sq,f.bT,y.M,L.t,M.n,Y.h,N.x,E.q],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-subscription,.pxp-subscription{position:relative;display:flex;border-radius:var(--borderRadius);overflow:hidden;border:2px solid var(--primaryColor);background-color:var(--primaryColor);color:#fff;align-items:center;padding:var(--subscriptionPaddingVert) var(--subscriptionPaddingHoriz)}storefront-subscription .subscription-info,.pxp-subscription .subscription-info{position:relative;flex-grow:1;display:flex;align-items:center}storefront-subscription .subscription-info .subscription-purchased,.pxp-subscription .subscription-info .subscription-purchased{background-color:var(--primaryColor);color:#fff;line-height:1;border-radius:var(--subscriptionPurchasedBorderRadius);margin-left:var(--subscriptionPurchasedMarginHoriz)}storefront-subscription .subscription-price,.pxp-subscription .subscription-price{position:relative}storefront-subscription storefront-spinner,storefront-subscription .pxp-spinner,.pxp-subscription storefront-spinner,.pxp-subscription .pxp-spinner{width:20px;margin:0 8px}storefront-subscription.active,.pxp-subscription.active{background-color:#fff;color:#000}storefront-subscription.ghost,.pxp-subscription.ghost{background-image:linear-gradient(90deg,var(--ghostColor) 0px,rgb(236,236,236) 40px,var(--ghostColor) 80px);background-size:80vw;animation:ghost-lines 2s infinite linear;border-color:transparent}storefront-subscription[template=issues],storefront-subscription[data-pxp-template=issues],.pxp-subscription[template=issues],.pxp-subscription[data-pxp-template=issues]{background-color:transparent;border:none;flex-direction:column;color:var(--textColor)}storefront-subscription[template=issues] h3,storefront-subscription[data-pxp-template=issues] h3,.pxp-subscription[template=issues] h3,.pxp-subscription[data-pxp-template=issues] h3{margin:var(--gutter);text-align:center}storefront-subscription[template=issues] .subscription-issues,storefront-subscription[data-pxp-template=issues] .subscription-issues,.pxp-subscription[template=issues] .subscription-issues,.pxp-subscription[data-pxp-template=issues] .subscription-issues{display:flex;justify-content:center;width:100%}storefront-subscription[template=issues] .subscription-issues storefront-image,storefront-subscription[template=issues] .subscription-issues .pxp-image,storefront-subscription[data-pxp-template=issues] .subscription-issues storefront-image,storefront-subscription[data-pxp-template=issues] .subscription-issues .pxp-image,.pxp-subscription[template=issues] .subscription-issues storefront-image,.pxp-subscription[template=issues] .subscription-issues .pxp-image,.pxp-subscription[data-pxp-template=issues] .subscription-issues storefront-image,.pxp-subscription[data-pxp-template=issues] .subscription-issues .pxp-image{margin:calc(var(--gutter) / 2)}storefront-subscription[template=issues] .subscription-issues storefront-image img,storefront-subscription[template=issues] .subscription-issues .pxp-image img,storefront-subscription[data-pxp-template=issues] .subscription-issues storefront-image img,storefront-subscription[data-pxp-template=issues] .subscription-issues .pxp-image img,.pxp-subscription[template=issues] .subscription-issues storefront-image img,.pxp-subscription[template=issues] .subscription-issues .pxp-image img,.pxp-subscription[data-pxp-template=issues] .subscription-issues storefront-image img,.pxp-subscription[data-pxp-template=issues] .subscription-issues .pxp-image img{width:100%}storefront-subscription[template=issues] .subscription-issues-promotion,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion,.pxp-subscription[template=issues] .subscription-issues-promotion,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion{text-align:center;margin:var(--gutter)}storefront-subscription[template=issues] .subscription-issues-promotion span,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion span,.pxp-subscription[template=issues] .subscription-issues-promotion span,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion span{font-weight:700}storefront-subscription[template=issues] .subscription-issues-promotion span.former-price,storefront-subscription[template=issues] .subscription-issues-promotion span.current-price,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion span.former-price,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion span.current-price,.pxp-subscription[template=issues] .subscription-issues-promotion span.former-price,.pxp-subscription[template=issues] .subscription-issues-promotion span.current-price,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion span.former-price,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion span.current-price{color:var(--primaryColor)}storefront-subscription[template=issues] button,storefront-subscription[data-pxp-template=issues] button,.pxp-subscription[template=issues] button,.pxp-subscription[data-pxp-template=issues] button{color:#fff;background-color:var(--primaryColor)}storefront-subscription[template=issues] button[disabled],storefront-subscription[data-pxp-template=issues] button[disabled],.pxp-subscription[template=issues] button[disabled],.pxp-subscription[data-pxp-template=issues] button[disabled]{opacity:.5}@media (max-width: 533px) and (orientation: portrait),(max-height: 533px) and (orientation: landscape){storefront-subscription[template=issues] button,storefront-subscription[data-pxp-template=issues] button,.pxp-subscription[template=issues] button,.pxp-subscription[data-pxp-template=issues] button{width:100%}}storefront-subscription[template=issues] storefront-spinner.subscription-loading,storefront-subscription[template=issues] .pxp-spinner.subscription-loading,storefront-subscription[data-pxp-template=issues] storefront-spinner.subscription-loading,storefront-subscription[data-pxp-template=issues] .pxp-spinner.subscription-loading,.pxp-subscription[template=issues] storefront-spinner.subscription-loading,.pxp-subscription[template=issues] .pxp-spinner.subscription-loading,.pxp-subscription[data-pxp-template=issues] storefront-spinner.subscription-loading,.pxp-subscription[data-pxp-template=issues] .pxp-spinner.subscription-loading{--spinnerColor: var(--secondaryColor);height:100px;width:100px}\n'],encapsulation:2}),o})();var $t=r(6215),Xt=r(1605),Ot=r(4403),Ut=r(3);const Bt=["class","pxp-subscription"],T=n=>[n],Ft=()=>[];function kt(n,o){1&n&&t.nrm(0,"div",8),2&n&&t.Y8G("src",o.$implicit.thumbnails.default)}function Vt(n,o){if(1&n&&t.DNE(0,kt,1,1,"div",10),2&n){const s=t.XpG(5);t.Y8G("ngForOf",s.displayedIssues)}}function Ht(n,o){1&n&&t.nrm(0,"storefront-image",9),2&n&&t.Y8G("src",o.$implicit.thumbnails.default)}function jt(n,o){if(1&n&&t.DNE(0,Ht,1,1,"storefront-image",11),2&n){const s=t.XpG(5);t.Y8G("ngForOf",s.displayedIssues)}}function Qt(n,o){if(1&n&&(t.j41(0,"div",7),t.DNE(1,Vt,1,1,"div",8)(2,jt,1,1,"storefront-image",9),t.k0s()),2&n){const s=t.XpG(4);t.R7$(),t.vxM(s.domHelper.leanDom?1:2)}}function zt(n,o){if(1&n&&t.nrm(0,"p",12),2&n){const s=t.XpG(4);t.Y8G("storefrontTranslate",s.issuesPromotionMessage)("storefrontTranslateArgs",s.issuesPromotionArgs)}}function Wt(n,o){1&n&&t.nrm(0,"div",13)}function Jt(n,o){if(1&n&&t.DNE(0,Wt,1,0,"div",13),2&n){const s=t.XpG(4);t.vxM(s.purchaseLoading?0:-1)}}function Kt(n,o){1&n&&t.nrm(0,"storefront-spinner",14)}function Zt(n,o){if(1&n&&t.DNE(0,Kt,1,0,"storefront-spinner",14),2&n){const s=t.XpG(4);t.vxM(s.purchaseLoading?0:-1)}}function qt(n,o){if(1&n&&t.nrm(0,"span",2),2&n){const s=t.XpG(4);t.Y8G("storefrontTranslate",s.config.purchaseButtonMessage)("storefrontTranslateArgs",t.eq3(2,T,s.subscription.price.formattedPrice))}}function wt(n,o){if(1&n&&t.nrm(0,"span",15),2&n){const s=t.XpG(4);t.Y8G("storefrontTranslate",s.config.purchaseUnavailableButtonMessage)}}function tn(n,o){if(1&n){const s=t.RV6();t.qex(0),t.DNE(1,Qt,3,1,"div",1),t.nrm(2,"h3",2),t.DNE(3,zt,1,2,"p",3),t.j41(4,"button",4),t.bIt("click",function(){t.eBV(s);const e=t.XpG(3);return t.Njj(e.onClickPurchase())}),t.DNE(5,Jt,1,1)(6,Zt,1,1)(7,qt,1,4,"span",5)(8,wt,1,1,"span",6),t.k0s(),t.bVm()}if(2&n){const s=t.XpG(3);t.R7$(),t.Y8G("ngIf",s.displayedIssues),t.R7$(),t.Y8G("storefrontTranslate",s.config.titleMessage)("storefrontTranslateArgs",t.eq3(8,T,s.subscription.name)),t.R7$(),t.Y8G("ngIf",s.issuesPromotionMessage),t.R7$(),t.Y8G("disabled",!s.subscription.price||s.purchaseLoading),t.R7$(),t.vxM(s.domHelper.leanDom?5:6),t.R7$(2),t.Y8G("ngIf",s.subscription.price),t.R7$(),t.Y8G("ngIf",!s.subscription.price)}}function nn(n,o){1&n&&t.nrm(0,"div",16)}function sn(n,o){if(1&n&&t.DNE(0,nn,1,0,"div",16),2&n){const s=t.XpG(3);t.vxM(!s.config||s.priceLoading?0:-1)}}function on(n,o){1&n&&t.nrm(0,"storefront-spinner",17)}function en(n,o){if(1&n&&t.DNE(0,on,1,0,"storefront-spinner",17),2&n){const s=t.XpG(3);t.vxM(!s.config||s.priceLoading?0:-1)}}function rn(n,o){if(1&n&&(t.qex(0),t.DNE(1,tn,9,10,"ng-container",0)(2,sn,1,1)(3,en,1,1),t.bVm()),2&n){const s=t.XpG(2);t.R7$(),t.Y8G("ngIf",s.config&&!s.priceLoading),t.R7$(),t.vxM(s.domHelper.leanDom?2:3)}}function an(n,o){1&n&&t.nrm(0,"div",24)}function pn(n,o){if(1&n&&(t.qex(0),t.nrm(1,"div",26)(2,"div",27),t.bVm()),2&n){const s=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",s.config.trialPriceMessage)("storefrontTranslateArgs",s.trialPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",s.config.finalPriceMessage)("storefrontTranslateArgs",s.finalPriceArgs)}}function cn(n,o){if(1&n&&(t.qex(0),t.nrm(1,"div",28)(2,"div",27),t.bVm()),2&n){const s=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",s.config.introductoryPriceMessage)("storefrontTranslateArgs",s.introductoryPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",s.config.finalPriceMessage)("storefrontTranslateArgs",s.finalPriceArgs)}}function un(n,o){if(1&n&&(t.qex(0),t.nrm(1,"div",29)(2,"div",27),t.bVm()),2&n){const s=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",s.config.discountPriceMessage)("storefrontTranslateArgs",s.discountPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",s.config.finalPriceMessage)("storefrontTranslateArgs",s.finalPriceArgs)}}function ln(n,o){if(1&n&&(t.qex(0),t.nrm(1,"div",30),t.bVm()),2&n){const s=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",s.config.priceMessage)("storefrontTranslateArgs",s.finalPriceArgs)}}function _n(n,o){if(1&n&&(t.j41(0,"div",25),t.DNE(1,pn,3,4,"ng-container",0)(2,cn,3,4,"ng-container",0)(3,un,3,4,"ng-container",0)(4,ln,2,2,"ng-container",0),t.k0s()),2&n){const s=t.XpG(3);t.R7$(),t.Y8G("ngIf",s.subscription.trial),t.R7$(),t.Y8G("ngIf",!s.subscription.trial&&s.subscription.introductoryPrice),t.R7$(),t.Y8G("ngIf",!s.subscription.trial&&!s.subscription.introductoryPrice&&s.subscription.discount),t.R7$(),t.Y8G("ngIf",!s.subscription.trial&&!s.subscription.introductoryPrice&&!s.subscription.discount)}}function fn(n,o){if(1&n&&t.nrm(0,"div",31),2&n){const s=t.XpG(3);t.Y8G("storefrontTranslate",s.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(2,T,s.subscription.description))}}function gn(n,o){if(1&n&&t.nrm(0,"div",2),2&n){const s=o.$implicit;t.ZvI("issue-custom-message ",s.class||"",""),t.Y8G("storefrontTranslate",s.message)("storefrontTranslateArgs",s.variables||t.lJ4(5,Ft))}}function mn(n,o){1&n&&t.nrm(0,"div",13)}function bn(n,o){if(1&n&&t.DNE(0,mn,1,0,"div",13),2&n){const s=t.XpG(3);t.vxM(!s.config||s.priceLoading?0:-1)}}function dn(n,o){1&n&&t.nrm(0,"storefront-spinner",14)}function xn(n,o){if(1&n&&t.DNE(0,dn,1,0,"storefront-spinner",14),2&n){const s=t.XpG(3);t.vxM(!s.config||s.priceLoading?0:-1)}}function vn(n,o){1&n&&t.nrm(0,"span",15),2&n&&t.Y8G("storefrontTranslate","SUBSCRIPTION_ACTION_PURCHASE_UNAVAILABLE")}function Tn(n,o){if(1&n&&(t.qex(0),t.j41(1,"div",18),t.nrm(2,"h3",19),t.DNE(3,an,1,0,"div",20),t.k0s(),t.DNE(4,_n,5,4,"div",21)(5,fn,1,4,"div",22)(6,gn,1,6,"div",23)(7,bn,1,1)(8,xn,1,1)(9,vn,1,1,"span",6),t.bVm()),2&n){const s=t.XpG(2);t.R7$(2),t.Y8G("storefrontTranslate",s.config.titleMessage)("storefrontTranslateArgs",t.eq3(8,T,s.subscription.name)),t.R7$(),t.Y8G("ngIf",s.active),t.R7$(),t.Y8G("ngIf",s.subscription.price),t.R7$(),t.Y8G("ngIf","details"===s.template&&!!s.subscription.description),t.R7$(),t.Y8G("ngForOf",s.customMessages),t.R7$(),t.vxM(s.domHelper.leanDom?7:8),t.R7$(2),t.Y8G("ngIf",!s.subscription.price&&!s.priceLoading)}}function Cn(n,o){if(1&n&&(t.qex(0),t.DNE(1,rn,4,2,"ng-container",0)(2,Tn,10,10,"ng-container",0),t.bVm()),2&n){const s=t.XpG();t.R7$(),t.Y8G("ngIf","issues"===s.template),t.R7$(),t.Y8G("ngIf","details"===s.template||"default"===s.template||!s.template)}}function hn(n,o){}function Sn(n,o){if(1&n&&(t.qex(0),t.DNE(1,hn,0,0,"ng-template",32),t.bVm()),2&n){const s=t.XpG();t.R7$(),t.Y8G("classNames","subscription-fallback")("baseContext",s.baseContext)("baseConfig",s.fallback)}}let In=(()=>{var n;class o extends ${}return(n=o).\u0275fac=(()=>{let s;return function(e){return(s||(s=t.xGo(n)))(e||n)}})(),n.\u0275cmp=t.VBU({type:n,selectors:[["div",8,"pxp-subscription"]],standalone:!1,features:[t.Jv_([h.B]),t.Vt3],attrs:Bt,decls:2,vars:2,consts:[[4,"ngIf"],["class","subscription-issues stacked",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs"],["class","subscription-issues-promotion",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[1,"action-button",3,"click","disabled"],[3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"storefrontTranslate",4,"ngIf"],[1,"subscription-issues","stacked"],["height","DEFAULT",1,"pxp-image",3,"src"],["height","DEFAULT",3,"src"],["class","pxp-image","height","DEFAULT",3,"src",4,"ngFor","ngForOf"],["height","DEFAULT",3,"src",4,"ngFor","ngForOf"],[1,"subscription-issues-promotion",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"pxp-spinner","button-spinner"],[1,"button-spinner"],[3,"storefrontTranslate"],[1,"pxp-spinner","subscription-loading"],[1,"subscription-loading"],[1,"subscription-info"],[1,"subscription-title",3,"storefrontTranslate","storefrontTranslateArgs"],["class","subscription-purchased","storefrontTranslate","SUBSCRIPTION_PURCHASED",4,"ngIf"],["class","subscription-price",4,"ngIf"],["class","subscription-description",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"class","storefrontTranslate","storefrontTranslateArgs",4,"ngFor","ngForOf"],["storefrontTranslate","SUBSCRIPTION_PURCHASED",1,"subscription-purchased"],[1,"subscription-price"],[1,"subscription-price-trial",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-final",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-introductory",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-discount",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-regular",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-description",3,"storefrontTranslate","storefrontTranslateArgs"],[3,"pxpDynamicComponent","classNames","baseContext","baseConfig"]],template:function(i,e){1&i&&t.DNE(0,Cn,3,2,"ng-container",0)(1,Sn,2,3,"ng-container",0),2&i&&(t.Y8G("ngIf",e.subscription),t.R7$(),t.Y8G("ngIf",!e.subscription&&e.fallback))},dependencies:[f.Sq,f.bT,y.M,L.t,M.n,Y.h,N.x,E.q],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-subscription,.pxp-subscription{position:relative;display:flex;border-radius:var(--borderRadius);overflow:hidden;border:2px solid var(--primaryColor);background-color:var(--primaryColor);color:#fff;align-items:center;padding:var(--subscriptionPaddingVert) var(--subscriptionPaddingHoriz)}storefront-subscription .subscription-info,.pxp-subscription .subscription-info{position:relative;flex-grow:1;display:flex;align-items:center}storefront-subscription .subscription-info .subscription-purchased,.pxp-subscription .subscription-info .subscription-purchased{background-color:var(--primaryColor);color:#fff;line-height:1;border-radius:var(--subscriptionPurchasedBorderRadius);margin-left:var(--subscriptionPurchasedMarginHoriz)}storefront-subscription .subscription-price,.pxp-subscription .subscription-price{position:relative}storefront-subscription storefront-spinner,storefront-subscription .pxp-spinner,.pxp-subscription storefront-spinner,.pxp-subscription .pxp-spinner{width:20px;margin:0 8px}storefront-subscription.active,.pxp-subscription.active{background-color:#fff;color:#000}storefront-subscription.ghost,.pxp-subscription.ghost{background-image:linear-gradient(90deg,var(--ghostColor) 0px,rgb(236,236,236) 40px,var(--ghostColor) 80px);background-size:80vw;animation:ghost-lines 2s infinite linear;border-color:transparent}storefront-subscription[template=issues],storefront-subscription[data-pxp-template=issues],.pxp-subscription[template=issues],.pxp-subscription[data-pxp-template=issues]{background-color:transparent;border:none;flex-direction:column;color:var(--textColor)}storefront-subscription[template=issues] h3,storefront-subscription[data-pxp-template=issues] h3,.pxp-subscription[template=issues] h3,.pxp-subscription[data-pxp-template=issues] h3{margin:var(--gutter);text-align:center}storefront-subscription[template=issues] .subscription-issues,storefront-subscription[data-pxp-template=issues] .subscription-issues,.pxp-subscription[template=issues] .subscription-issues,.pxp-subscription[data-pxp-template=issues] .subscription-issues{display:flex;justify-content:center;width:100%}storefront-subscription[template=issues] .subscription-issues storefront-image,storefront-subscription[template=issues] .subscription-issues .pxp-image,storefront-subscription[data-pxp-template=issues] .subscription-issues storefront-image,storefront-subscription[data-pxp-template=issues] .subscription-issues .pxp-image,.pxp-subscription[template=issues] .subscription-issues storefront-image,.pxp-subscription[template=issues] .subscription-issues .pxp-image,.pxp-subscription[data-pxp-template=issues] .subscription-issues storefront-image,.pxp-subscription[data-pxp-template=issues] .subscription-issues .pxp-image{margin:calc(var(--gutter) / 2)}storefront-subscription[template=issues] .subscription-issues storefront-image img,storefront-subscription[template=issues] .subscription-issues .pxp-image img,storefront-subscription[data-pxp-template=issues] .subscription-issues storefront-image img,storefront-subscription[data-pxp-template=issues] .subscription-issues .pxp-image img,.pxp-subscription[template=issues] .subscription-issues storefront-image img,.pxp-subscription[template=issues] .subscription-issues .pxp-image img,.pxp-subscription[data-pxp-template=issues] .subscription-issues storefront-image img,.pxp-subscription[data-pxp-template=issues] .subscription-issues .pxp-image img{width:100%}storefront-subscription[template=issues] .subscription-issues-promotion,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion,.pxp-subscription[template=issues] .subscription-issues-promotion,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion{text-align:center;margin:var(--gutter)}storefront-subscription[template=issues] .subscription-issues-promotion span,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion span,.pxp-subscription[template=issues] .subscription-issues-promotion span,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion span{font-weight:700}storefront-subscription[template=issues] .subscription-issues-promotion span.former-price,storefront-subscription[template=issues] .subscription-issues-promotion span.current-price,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion span.former-price,storefront-subscription[data-pxp-template=issues] .subscription-issues-promotion span.current-price,.pxp-subscription[template=issues] .subscription-issues-promotion span.former-price,.pxp-subscription[template=issues] .subscription-issues-promotion span.current-price,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion span.former-price,.pxp-subscription[data-pxp-template=issues] .subscription-issues-promotion span.current-price{color:var(--primaryColor)}storefront-subscription[template=issues] button,storefront-subscription[data-pxp-template=issues] button,.pxp-subscription[template=issues] button,.pxp-subscription[data-pxp-template=issues] button{color:#fff;background-color:var(--primaryColor)}storefront-subscription[template=issues] button[disabled],storefront-subscription[data-pxp-template=issues] button[disabled],.pxp-subscription[template=issues] button[disabled],.pxp-subscription[data-pxp-template=issues] button[disabled]{opacity:.5}@media (max-width: 533px) and (orientation: portrait),(max-height: 533px) and (orientation: landscape){storefront-subscription[template=issues] button,storefront-subscription[data-pxp-template=issues] button,.pxp-subscription[template=issues] button,.pxp-subscription[data-pxp-template=issues] button{width:100%}}storefront-subscription[template=issues] storefront-spinner.subscription-loading,storefront-subscription[template=issues] .pxp-spinner.subscription-loading,storefront-subscription[data-pxp-template=issues] storefront-spinner.subscription-loading,storefront-subscription[data-pxp-template=issues] .pxp-spinner.subscription-loading,.pxp-subscription[template=issues] storefront-spinner.subscription-loading,.pxp-subscription[template=issues] .pxp-spinner.subscription-loading,.pxp-subscription[data-pxp-template=issues] storefront-spinner.subscription-loading,.pxp-subscription[data-pxp-template=issues] .pxp-spinner.subscription-loading{--spinnerColor: var(--secondaryColor);height:100px;width:100px}\n'],encapsulation:2}),o})(),Dn=(()=>{var n;class o{}return(n=o).\u0275fac=function(i){return new(i||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[f.MD,$t.O,Xt.P,Ot.U,Ut.pZ]}),o})();const An={component:$,leanDomComponent:In}}}]);
|