@pronto-tools-and-more/files 9.11.0 → 9.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/files/framework/src/default/storefront/buildInfo.json +4 -4
- package/files/framework/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +1 -1
- package/files/framework/src/default/storefront/index.html +2 -2
- package/files/framework/src/default/storefront/modules/common.js +1 -1
- package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/main.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-body_content-body_module_ts.js +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["default-projects_storefront_src_app_component_content_content_module_ts"],{7808:($,I,c)=>{c.d(I,{B:()=>xn});var l=c(467),h=c(177),t=c(3953),g=c(4404),f=c(4412),M=c(5964),C=c(5343),N=c(6354),P=c(6697),B=c(6843),G=c(4452),m=c(8179),T=c(5102),O=c(9745),v=c(4945),A=c(8251),u=c(5706),b=c(7879),X=c(8890),F=c(1210),D=c(4365),S=c(2085),w=c(362),W=c(4622),V=c(1739),H=c(4004),U=c(2932),z=c(610),k=c(8091),K=c(3092),x=c(4608),Z=c(20),J=c(8004),Q=c(9516),q=c(244),tt=c(1652),nt=c(5820),et=c(4748),ot=c(6350),rt=c(680),at=c(8909),it=c(7240),ct=c(6600),st=c(395),lt=c(2914),_t=c(2813);const R=r=>[r],pt=r=>({path:r}),dt=()=>({path:""}),gt=()=>[];function ft(r,i){if(1&r){const o=t.RV6();t.j41(0,"div",10),t.nrm(1,"span",11),t.j41(2,"button",12),t.bIt("click",function(){t.eBV(o);const n=t.XpG(2);return t.Njj(n.reload())}),t.k0s()()}if(2&r){const o=t.XpG(2);t.R7$(),t.Y8G("storefrontTranslateArgs",t.eq3(1,R,o.dataSourceError.code))}}function ut(r,i){if(1&r&&(t.qex(0),t.j41(1,"div",4),t.nrm(2,"storefront-image",5),t.k0s(),t.j41(3,"div",6),t.nrm(4,"h3",7)(5,"div",8),t.k0s(),t.DNE(6,ft,3,3,"div",9),t.bVm()),2&r){const o=t.XpG();t.R7$(2),t.Y8G("height","FIXED"),t.R7$(4),t.Y8G("ngIf",o.dataSourceError)}}function mt(r,i){1&r&&t.eu8(0)}function ht(r,i){if(1&r){const o=t.RV6();t.j41(0,"a",16),t.nI1(1,"urlTransform"),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.DNE(2,mt,1,0,"ng-container",17),t.k0s()}if(2&r){const o=t.XpG().ngIf;t.XpG();const e=t.sdS(6),n=t.XpG();t.Y8G("href",t.i5U(1,2,o,n.context),t.B4B),t.R7$(2),t.Y8G("ngTemplateOutlet",e)}}function Ct(r,i){1&r&&t.eu8(0)}function Et(r,i){if(1&r){const o=t.RV6();t.j41(0,"a",18),t.nI1(1,"urlTransform"),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickContent(n))}),t.DNE(2,Ct,1,0,"ng-container",19),t.k0s()}if(2&r){const o=t.XpG().ngIf;t.XpG();const e=t.sdS(8),n=t.XpG();t.AVh("expanded",n.descriptionExpanded),t.Y8G("href",t.i5U(1,5,o,n.context),t.B4B),t.R7$(2),t.Y8G("ngTemplateOutlet",e)("ngTemplateOutletContext",t.eq3(8,pt,o))}}function vt(r,i){if(1&r&&(t.qex(0),t.DNE(1,ht,3,5,"a",14)(2,Et,3,10,"a",15),t.bVm()),2&r){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.cover),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.allData)}}function bt(r,i){1&r&&t.eu8(0)}function Tt(r,i){if(1&r){const o=t.RV6();t.j41(0,"div",22),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.DNE(1,bt,1,0,"ng-container",17),t.k0s()}if(2&r){t.XpG(2);const o=t.sdS(6);t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function It(r,i){if(1&r){const o=t.RV6();t.j41(0,"div",23),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickContent(n))}),t.eu8(1,24),t.k0s()}if(2&r){t.XpG(2);const o=t.sdS(8),e=t.XpG();t.AVh("expanded",e.descriptionExpanded),t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.lJ4(4,dt))}}function Ot(r,i){if(1&r&&t.DNE(0,Tt,2,1,"div",20)(1,It,2,5,"div",21),2&r){const o=t.XpG(2);t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.cover),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.allData)}}function Dt(r,i){1&r&&t.nrm(0,"storefront-spinner")}function xt(r,i){1&r&&(t.j41(0,"div",28),t.nrm(1,"span",29),t.k0s())}function At(r,i){if(1&r&&t.nrm(0,"storefront-progress",30),2&r){const o=t.XpG(3);t.Y8G("type",o.getProgressType())("progress",o.installState.progress)}}function kt(r,i){if(1&r&&(t.nrm(0,"storefront-image",25),t.DNE(1,Dt,1,0,"storefront-spinner",3)(2,xt,2,0,"div",26)(3,At,1,2,"storefront-progress",27)),2&r){const o=t.XpG(2);t.Y8G("lcpPrioritized",0===(null==o.context?null:o.context.entryIndex)&&(null==o.config?null:o.config.lcpPrioritized))("src",o.content.thumbnails&&o.content.thumbnails.default)("imageResolutionStrategy",null==o.config?null:o.config.imageResolutionStrategy)("height",o.getImageHeight())("extendedThumbnail",null==o.content||null==o.content.thumbnailsExtended?null:o.content.thumbnailsExtended.default)("label",null==o.content?null:o.content.name),t.R7$(),t.Y8G("ngIf",o.coverLoading),t.R7$(),t.Y8G("ngIf",o.showUpdateBehavior()),t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress())}}function Rt(r,i){if(1&r){const o=t.RV6();t.j41(0,"h3",48),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.nrm(1,"span",49),t.k0s()}if(2&r){const o=t.XpG(3);t.R7$(),t.Y8G("storefrontTranslate",o.config.publicationTitleMessage)("storefrontTranslateArgs",t.eq3(2,R,o.publication&&o.publication.name))}}function yt(r,i){if(1&r){const o=t.RV6();t.j41(0,"h3",50),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.nrm(1,"span",49),t.k0s()}if(2&r){const o=t.XpG(3);t.R7$(),t.Y8G("storefrontTranslate",o.config.titleMessage)("storefrontTranslateArgs",t.eq3(2,R,o.content.name))}}function Pt(r,i){1&r&&t.nrm(0,"i",51)}function St(r,i){if(1&r&&(t.j41(0,"div",52),t.EFF(1),t.nI1(2,"storefrontDate"),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.SpI(" ",t.bMT(2,1,o.content.publicationDate)," ")}}function Lt(r,i){if(1&r&&t.nrm(0,"div",53),2&r){const o=t.XpG(3);t.Y8G("storefrontTranslate",o.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(2,R,o.content.description))}}function Mt(r,i){if(1&r){const o=t.RV6();t.j41(0,"span",54),t.bIt("click",function(){t.eBV(o);const n=t.XpG(3);return t.Njj(n.descriptionExpanded=!n.descriptionExpanded)}),t.nrm(1,"span",55)(2,"i",56),t.k0s()}if(2&r){const o=t.XpG(3);t.R7$(),t.Y8G("storefrontTranslate",o.descriptionExpanded?"CONTENT_DESCRIPTION_TOGGLE_COLLAPSE":"CONTENT_DESCRIPTION_TOGGLE_EXPAND")}}function Nt(r,i){if(1&r&&(t.j41(0,"div")(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"i"),t.k0s()),2&r){const o=i.$implicit;t.ZWY("content-property content-property-",o.key," content-property-",o.key,"-",o.value,""),t.R7$(2),t.JRh(o.value),t.R7$(),t.ee0("'icon icon-",o.key," icon-",o.value," icon-",o.key,"-",o.value,"")}}function Bt(r,i){if(1&r&&(t.j41(0,"div",57),t.DNE(1,Nt,4,12,"div",58),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.visibleProperties)("ngForTrackBy",o.trackByProperty)}}function Gt(r,i){if(1&r&&(t.j41(0,"div",61)(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"i"),t.k0s()),2&r){const o=i.$implicit;t.ZvI("content-category content-category-",o.id,""),t.R7$(2),t.JRh(o.name||o.id),t.R7$(),t.ZvI("icon icon-",o.id,"")}}function wt(r,i){if(1&r&&(t.j41(0,"div",59),t.DNE(1,Gt,4,7,"div",60),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.displayedCategories)("ngForTrackBy",o.trackByCategory)}}function Ut(r,i){if(1&r&&(t.j41(0,"div")(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"i"),t.k0s()),2&r){const o=i.$implicit;t.ZvI("content-tag content-tag-",o,""),t.R7$(2),t.JRh(o),t.R7$(),t.ZvI("icon icon-",o,"")}}function Kt(r,i){if(1&r&&(t.j41(0,"div",62),t.DNE(1,Ut,4,7,"div",58),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.tags)("ngForTrackBy",o.trackByTag)}}function $t(r,i){if(1&r&&t.nrm(0,"div",49),2&r){const o=i.$implicit;t.ZvI("content-custom-message ",o.class||"",""),t.Y8G("storefrontTranslate",o.message)("storefrontTranslateArgs",o.variables||t.lJ4(5,gt))}}function jt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",63),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickShare(n))}),t.k0s()}}function Yt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",64),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickBookmark(n))}),t.k0s()}if(2&r){const o=t.XpG(3);t.ZvI("icon ",o.bookmark?"icon-bookmark-active":"icon-bookmark","")}}function Xt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function Ft(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",65),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickRead(n))}),t.nrm(1,"span",66),t.DNE(2,Xt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(3);t.Y8G("disabled",o.openLoading),t.R7$(2),t.Y8G("ngIf",o.openLoading)}}function Wt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function Vt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",69),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickPreview(n))}),t.nrm(1,"span",70),t.DNE(2,Wt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(3);t.Y8G("disabled",o.previewLoading),t.R7$(2),t.Y8G("ngIf",o.previewLoading)}}function Ht(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function zt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",74),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(6);return t.Njj(a.onClickCancel(n))}),t.nrm(1,"span",75),t.DNE(2,Ht,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(6);t.Y8G("disabled",o.deleteLoading),t.R7$(2),t.Y8G("ngIf",o.deleteLoading)}}function Zt(r,i){if(1&r&&(t.qex(0),t.DNE(1,zt,3,2,"button",73),t.bVm()),2&r){const o=t.XpG(5);t.R7$(),t.Y8G("ngIf",o.isDownloadCancelable())}}function Jt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function Qt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",76),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(5);return t.Njj(a.onClickDownload(n))}),t.nrm(1,"span",77),t.DNE(2,Jt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(5);t.Y8G("disabled",o.downloadLoading),t.R7$(2),t.Y8G("ngIf",o.downloadLoading)}}function qt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function tn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",78),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(5);return t.Njj(a.onClickDelete(n))}),t.nrm(1,"span",79),t.DNE(2,qt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(5);t.Y8G("disabled",o.deleteLoading),t.R7$(2),t.Y8G("ngIf",o.deleteLoading)}}function nn(r,i){if(1&r&&(t.qex(0),t.DNE(1,Zt,2,1,"ng-container",3)(2,Qt,3,2,"button",71)(3,tn,3,2,"button",72),t.bVm()),2&r){const o=t.XpG(4);t.R7$(),t.Y8G("ngIf",o.installState.downloading),t.R7$(),t.Y8G("ngIf",!o.installState.downloading&&"COMPLETE"!==o.installState.installState&&!o.deleteLoading),t.R7$(),t.Y8G("ngIf",o.isDownloadDeletable())}}function en(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function on(r,i){if(1&r&&t.nrm(0,"storefront-progress",82),2&r){const o=t.XpG(6);t.Y8G("type",o.getProgressType())("progress",o.installState.progress)}}function rn(r,i){if(1&r&&(t.j41(0,"p",83),t.EFF(1),t.k0s()),2&r){const o=t.XpG(6);t.R7$(),t.SpI(" ",o.installState.progress,"% ")}}function an(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",64),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(5);return t.Njj(a.onClickState(n))}),t.nrm(1,"span",55),t.DNE(2,en,1,0,"storefront-spinner",67)(3,on,1,2,"storefront-progress",80)(4,rn,2,1,"p",81),t.k0s()}if(2&r){const o=t.XpG(5);t.ZWY("button-state action-button ",o.installState.downloading?"button-state-downloading":""," ","button-state-"+o.installState.installState," ",o.deleteLoading||o.downloadLoading?"button-state-loading":"",""),t.R7$(),t.Y8G("storefrontTranslate",o.getStateText()),t.R7$(),t.Y8G("ngIf",o.deleteLoading||o.downloadLoading),t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress(!0)),t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress(!0))}}function cn(r,i){if(1&r&&(t.qex(0),t.DNE(1,an,5,9,"button",43),t.bVm()),2&r){const o=t.XpG(4);t.R7$(),t.Y8G("ngIf",o.isDownloadable())}}function sn(r,i){if(1&r&&(t.qex(0),t.DNE(1,nn,4,3,"ng-container",3)(2,cn,2,1,"ng-container",3),t.bVm()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf","MULTI"===o.downloadOptions.buttonType),t.R7$(),t.Y8G("ngIf","SINGLE"===o.downloadOptions.buttonType)}}function ln(r,i){1&r&&t.nrm(0,"span",92)}function _n(r,i){1&r&&t.nrm(0,"span",93)}function pn(r,i){if(1&r&&t.nrm(0,"span",94),2&r){const o=t.XpG(5);t.Y8G("storefrontTranslateArgs",t.eq3(1,R,o.price&&o.price.formattedPrice))}}function dn(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function gn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",88),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickPurchase(n))}),t.DNE(1,ln,1,0,"span",89)(2,_n,1,0,"span",90)(3,pn,1,3,"span",91)(4,dn,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(4);t.Y8G("ngClass",o.getPriceState())("disabled",!o.price||o.purchaseLoading),t.R7$(),t.Y8G("ngIf",!o.visible||o.priceLoading),t.R7$(),t.Y8G("ngIf",o.visible&&!o.priceLoading&&!o.price),t.R7$(),t.Y8G("ngIf",o.price),t.R7$(),t.Y8G("ngIf",o.purchaseLoading)}}function fn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",95),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickSubscribe(n))}),t.k0s()}}function un(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",96),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickLogin(n))}),t.k0s()}}function mn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",97),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickCoupon(n))}),t.k0s()}}function hn(r,i){if(1&r&&(t.qex(0),t.DNE(1,gn,5,6,"button",84)(2,fn,1,0,"button",85)(3,un,1,0,"button",86)(4,mn,1,0,"button",87),t.bVm()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf",o.purchaseOptions.purchase),t.R7$(),t.Y8G("ngIf",o.purchaseOptions.subscribe),t.R7$(),t.Y8G("ngIf",!o.loggedIn&&o.purchaseOptions.login),t.R7$(),t.Y8G("ngIf",o.purchaseOptions.coupon)}}function Cn(r,i){if(1&r&&(t.qex(0),t.nrm(1,"storefront-button",98),t.bVm()),2&r){const o=i.$implicit,e=t.XpG(3);t.R7$(),t.Y8G("baseConfig",o)("disableAnchor",!0)("baseContext",e.context)}}function En(r,i){if(1&r&&t.nrm(0,"storefront-progress",103),2&r){const o=t.XpG(4);t.Y8G("progress",o.installState.progress)("type",o.getProgressType())("showBorder",!0)}}function vn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",104),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickDownload(n))}),t.k0s()}if(2&r){const o=t.XpG(4);t.Y8G("disabled",o.downloadLoading)}}function bn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",105),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickDelete(n))}),t.k0s()}if(2&r){const o=t.XpG(4);t.Y8G("disabled",o.deleteLoading)}}function Tn(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function In(r,i){if(1&r&&(t.j41(0,"div",99),t.DNE(1,En,1,3,"storefront-progress",100)(2,vn,1,1,"button",101)(3,bn,1,1,"button",102)(4,Tn,1,0,"storefront-spinner",67),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress(!0)),t.R7$(),t.Y8G("ngIf",!o.locked&&"COMPLETE"!==o.installState.installState&&!o.installState.downloading&&!o.downloadLoading),t.R7$(),t.Y8G("ngIf",o.isDownloadDeletable()||o.isDownloadCancelable()),t.R7$(),t.Y8G("ngIf",o.downloadLoading)}}function On(r,i){if(1&r&&(t.DNE(0,Rt,2,4,"h3",31)(1,yt,2,4,"h3",32)(2,Pt,1,0,"i",33)(3,St,3,3,"div",34)(4,Lt,1,4,"div",35)(5,Mt,3,1,"span",36)(6,Bt,2,2,"div",37)(7,wt,2,2,"div",38)(8,Kt,2,2,"div",39)(9,$t,1,6,"div",40),t.j41(10,"div",41),t.DNE(11,jt,1,0,"button",42)(12,Yt,1,3,"button",43)(13,Ft,3,2,"button",44)(14,Vt,3,2,"button",45)(15,sn,3,2,"ng-container",3)(16,hn,5,4,"ng-container",3)(17,Cn,2,3,"ng-container",46),t.k0s(),t.DNE(18,In,5,4,"div",47)),2&r){const o=t.XpG(2);t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.publication),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.title),t.R7$(),t.Y8G("ngIf",o.isDownloadFinished()),t.R7$(),t.Y8G("ngIf",o.content.publicationDate&&(!o.config.hideComponents||!o.config.hideComponents.publicationDate)),t.R7$(),t.Y8G("ngIf",o.content.description&&(!o.config.hideComponents||!o.config.hideComponents.description)),t.R7$(),t.Y8G("ngIf",o.content.description&&(!o.config.hideComponents||!o.config.hideComponents.description)),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.properties),t.R7$(),t.Y8G("ngIf",!(o.config.displayCategories&&"NOTHING"===o.config.displayCategories.mode||o.config.hideComponents&&o.config.hideComponents.categories)),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.tags),t.R7$(),t.Y8G("ngForOf",o.customMessages)("ngForTrackBy",o.trackByMessage),t.R7$(2),t.Y8G("ngIf",o.config.sharing),t.R7$(),t.Y8G("ngIf",o.config.bookmark),t.R7$(),t.Y8G("ngIf",!o.locked),t.R7$(),t.Y8G("ngIf",o.locked&&o.hasPreview()),t.R7$(),t.Y8G("ngIf",o.downloadOptions&&!o.locked),t.R7$(),t.Y8G("ngIf",o.purchaseOptions&&o.locked),t.R7$(),t.Y8G("ngForOf",o.customButtons)("ngForTrackBy",o.trackByButton),t.R7$(),t.Y8G("ngIf",o.installState)}}function Dn(r,i){if(1&r&&(t.qex(0),t.DNE(1,vt,3,2,"ng-container",13),t.nI1(2,"async"),t.DNE(3,Ot,2,2,"ng-template",null,0,t.C5r)(5,kt,4,9,"ng-template",null,1,t.C5r)(7,On,19,20,"ng-template",null,2,t.C5r),t.bVm()),2&r){const o=t.sdS(4),e=t.XpG();t.R7$(),t.Y8G("ngIf",t.bMT(2,2,e.contentPath$))("ngIfElse",o)}}let xn=(()=>{var r;class i extends F.${constructor(e,n,a,s,p,_,d,E,L,j,An,kn,Rn,yn,Y,Pn,Sn,Ln){super(_,e,E,j,Y),this.elementRef=e,this.ngZone=n,this.changeDetectorRef=a,this.store=s,this.dialog=p,this.injector=_,this.eventActionService=d,this.contextService=E,this.cleanUpService=L,this.document=j,this.platformId=An,this.purpleEnv=kn,this.transferState=Rn,this.purpleService=yn,this.globalService=Y,this.anchorService=Pn,this.ssrService=Sn,this.cacheService=Ln,this.defaultConfig={...S.o9},this.priceLoading=!1,this.purchaseLoading=!1,this.downloadLoading=!1,this.deleteLoading=!1,this.openLoading=!1,this.previewLoading=!1,this.coverLoading=!1,this.bookmarkLoading=!1,this.descriptionExpanded=!1,this.downloadError=null,this.dataSourceError=null,this.visible=!1,this.anchorFeatureEnabled=!1,this.anchorPathCover=null,this.visibleProperties=[],this.contentPath$=new f.t(null),this.purchaseConfig={...D.Rp},this.isDownloadEnabled=(0,u.xl)(this.content)||(0,b.E7)(window.purple.content,{major:1,minor:6},g.IntOperation.GREATER_THAN)}get purchasable(){var e;return(null===(e=this.content)||void 0===e?void 0:e.access)===g.Access.PURCHASABLE}get hasError(){var e;return!(!this.dataSourceError||null!==(e=this.dataSource)&&void 0!==e&&e.hasData())}get contentType(){var e;return null===(e=this.content)||void 0===e?void 0:e.contentType}get postType(){return this.content&&(0,u.mF)(this.content)?this.content.postType:void 0}get contextKey(){var e,n,a;return null!==(e=null!==(n=null===(a=this.config)||void 0===a?void 0:a.contentContextKey)&&void 0!==n?n:this.baseConfig.contentContextKey)&&void 0!==e?e:i.type}get contextContent(){return this.context[this.contextKey]}get taxonomies(){var e;return null!==(e=this.content.taxonomies)&&void 0!==e?e:[]}get categories(){return this.taxonomies.filter(e=>"category"===e.type).map(e=>e.id)}get tags(){return this.taxonomies.filter(e=>"tag"===e.type).map(e=>e.id)}ngOnInit(){this.anchorFeatureEnabled=this.anchorService.isAnchorFeatureEnabled(),this.anchorFeatureEnabled||this.contentPath$.next(null),super.ngOnInit(),this.store.select((0,v.jZ)(B.O.DOWNLOAD_OPTIONS),e=>this.updateBehavior=null==e?void 0:e.autoUpdateBehavior)}ngOnDestroy(){super.ngOnDestroy(),this.downloadHandler&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.purpleService.destroyDownloadHandler(this.downloadHandler),1e3)}),this.dataSource&&this.contextService.unregisterDataSource(this.dataSource),this.trackingObserver&&this.trackingObserver.disconnect()}onConfigChanges(){var e=this;return(0,l.A)(function*(){var n;const a=e.content,s=(0,m.v3)(e.config.dataSource),p={...s,limit:1};if(e.loggedIn=!!e.context[g.METADATA_KEY.ENTITLEMENT_TOKEN],e.dataSource&&!e.dataSource.hasConfigChanged(p)&&e.content)return e.context[e.contextKey]=a,void e.updateConfig(a);if(s)delete e.content,delete e.dataSourceError,e.changeDetectorRef.detectChanges(),e.dataSource=(0,G.O8)(e.injector,p,e.elementRef.nativeElement,e.document),e.store.subscribe(e.dataSource.data$.pipe((0,M.p)(_=>_&&!!_[0])),_=>{const d=e.content;e.content=_[0],(0,T.GA)(e.content,e.purpleService).then(E=>e.locked=E),e.context[e.contextKey]=e.content,e.updateConfig(d)},C.l,C.l,"data"),e.store.subscribe(e.dataSource.error$,_=>e.dataSourceError=_,C.l,C.l,"error"),yield e.dataSource.loadData();else{const _=e.contextContent;"object"!=typeof _||e.content&&(!_||e.purchaseLoading)?e.context[e.contextKey]=e.content:(e.content=_,(0,T.GA)(e.content,e.purpleService).then(d=>e.locked=d)),e.updateConfig(a)}void 0===e.content&&(null===(n=e.baseContext)||void 0===n||!n.isGhost)&&(0,h.UE)(e.platformId)&&e.ngZone.runOutsideAngular(()=>{setTimeout(()=>{void 0===e.content&&e.ngZone.run(()=>e.dataSourceError={code:g.ERROR_CODE.ISSUE_NOT_FOUND})},1e3)})})()}updateConfig(e){var n=this;return(0,l.A)(function*(){var a;const s={...n.context};s.publication||(s.publication=n.publication),n.config=(0,m.uQ)({...S.o9,...n.baseConfig},s,n.contextService.$functions,n.globalService.getGlobalData());const p=(0,m.v3)(n.config.purchaseOptions);p&&(n.purchaseOptions=Object.keys(p).reduce((d,E)=>({...d,[E]:(0,m.v3)(p[E])}),{}),n.purchaseOptions.purchase&&"object"==typeof n.purchaseOptions.purchase&&(n.purchaseConfig={...D.Rp,...n.purchaseOptions.purchase})),n.anchorFeatureEnabled&&n.handleAnchorTags();const _={buttonClass:"action-button"};n.customButtons=n.config.customButtons.filter(d=>(0,m.Ol)(d)).map(d=>(0,m.v3)(d)).map(d=>({..._,...d,buttonClass:d.buttonClass?_.buttonClass.concat(" ",d.buttonClass):_.buttonClass})),n.customMessages=n.config.customMessages.filter(d=>(0,m.Ol)(d)).map(d=>(0,m.v3)(d)),n.downloadOptions=(0,m.v3)(n.config.downloadOptions),JSON.stringify(e)!==JSON.stringify(n.content)&&n.loadOnVisible(),n.visibleProperties=(null!==(a=n.config.renderProperties)&&void 0!==a?a:[]).map(d=>(0,m.v3)(d)).filter(d=>!!d&&void 0!==n.content.properties[d]).map(d=>({key:d,value:n.content.properties[d]})),n.content&&n.setDisplayCategories(),n.changeDetectorRef.markForCheck()})()}setDisplayCategories(){var e,n;switch(null!==(e=null===(n=this.config.displayCategories)||void 0===n?void 0:n.mode)&&void 0!==e?e:"SLUG"){case"SLUG":this.displayedCategories=this.taxonomies.filter(s=>"category"===s.type).map(s=>({id:s.id}));break;case"NAME":this.displayedCategories=this.taxonomies.filter(s=>"category"===s.type)}}handleAnchorTags(){var e=this;return(0,l.A)(function*(){e.anchorPathCover=e.anchorService.getAnchorPathForEventAction(e.config.tapCover,e.context);const n=e.anchorService.getAnchorPathForEventAction(e.config.tapContent,e.context);if(n)e.purpleEnv.isUniversal&&e.contentPath$.next(n);else{const a=yield e.anchorService.getAnchorPathForContent(e.content);a&&e.contentPath$.next(a)}})()}loadOnVisible(){var e=this;if(this.installState=null,this.price=null,this.deleteLoading=!1,this.downloadLoading=!1,this.purchaseLoading=!1,this.previewLoading=!1,this.priceLoading=!1,this.openLoading=!1,this.bookmarkLoading=!1,!this.isGhost()){if(this.config.trackVisible){const a=!0===this.config.trackVisible?0:this.config.trackVisible.trackDelay;let p,_=d=>{d[0].isIntersecting?p=setTimeout(()=>{this.getDownloadHandler().then(function(){var E=(0,l.A)(function*(L){e.publication||(yield e.loadPublication()),e.handleTrackAction("VISIBLE",L)});return function(L){return E.apply(this,arguments)}}())},a):clearTimeout(p)};this.trackingObserver=new IntersectionObserver(_,{rootMargin:"0px",threshold:!0===this.config.trackVisible?1:this.config.trackVisible.minContentVisibility}),this.trackingObserver.observe(this.elementRef.nativeElement)}this.store.subscribe((0,X.eh)(this,this.elementRef,{skipWait:this.purpleEnv.isUniversal&&!this.ssrService.currentPrebootStatus}),n=>{this.visible=!0,this.loadIssueState(),this.loadPublication(),this.loadPrice(),this.loadBookmark(),this.purpleService.addInvalidationListener((0,l.A)(function*(){e.dataSource&&(e.content=yield e.purpleService.getIssue(e.content.id).catch(()=>null),e.locked=yield(0,T.GA)(e.content,e.purpleService),e.context[e.contextKey]=e.content,e.updateConfig(e.content)),e.loadPrice()}))},C.l,C.l,"visible")}}loadIssueState(){var e=this;return(0,l.A)(function*(){!e.content||!e.downloadOptions||(yield e.getDownloadHandler(),e.downloadHandler&&(e.store.subscribe(e.downloadHandler.updates$,n=>{e.installState=n,n&&n.error&&!e.downloadError&&(e.downloadError=n.error),e.changeDetectorRef.detectChanges()},C.l,C.l,"installState"),e.downloadHandler.autoUpdate&&e.downloadHandler.downloadStarted&&e.downloadHandler.update()),e.changeDetectorRef.detectChanges())})()}loadPrice(){var e=this;return(0,l.A)(function*(){if(e.purchaseOptions&&e.locked){var n;e.priceLoading=!0;const a=e.content.productId||(null===(n=yield e.purpleService.getRepeatablePublicationProductByPublicationId(e.content.publicationId))||void 0===n?void 0:n.productId);a?(e.store.select((0,W.Zt)(a),s=>{(0,V.b)(s)||(e.price=s),e.priceLoading=!1}),e.store.dispatch((0,H.qF)({productId:a}))):e.priceLoading=!1}})()}loadPublication(){var e=this;return(0,l.A)(function*(){if(e.content)try{const n=e.content.publicationId,a=(0,t.zw6)("publication_".concat(n));e.transferState.hasKey(a)?(e.publication=e.transferState.get(a,null),(0,h.UE)(e.platformId)&&e.transferState.remove(a)):(e.publication=yield e.purpleService.getPublication(n),(0,h.UE)(e.platformId)||e.transferState.onSerialize(a,()=>e.publication)),yield e.updateConfig(e.content),e.changeDetectorRef.detectChanges()}catch{console.log("error loading publication for content",e)}})()}loadBookmark(){var e=this;return(0,l.A)(function*(){e.config.bookmark&&e.store.subscribe(e.purpleService.bookmarks.pipe((0,N.T)(n=>n.find(a=>a.contentId===e.content.id))),n=>e.bookmark=n,C.l,C.l,"bookmark")})()}getData(){return this.content}getImageHeight(){return this.config.coverHeight||this.getDefaultImageHeight()}hasPreview(){return(0,u.xl)(this.content)?!!this.content.previewIssue:!(0,u.mF)(this.content)&&!(0,u.G4)(this.content)&&void 0}getDefaultImageHeight(){return this.template===S.qc.DETAILS?U.q.AUTO:U.q.FIXED}handleCacheDownload(){var e=this;return(0,l.A)(function*(){(0,u.G4)(e.content)?yield e.downloadBundle():(0,u.mF)(e.content)&&(yield e.downloadPost(e.content)),e.cacheService.serializeCachedRequests()})()}onClickDownload(e){var n=this;return(0,l.A)(function*(){e.stopPropagation(),yield n.handleCacheDownload(),n.downloadLoading=!0,delete n.downloadError,n.changeDetectorRef.detectChanges();const a=yield n.getDownloadHandler();if(n.handleTrackAction("DOWNLOAD_CLICKED",a),a){if(n.purpleService.downloadOptions.showConfirmDownloadDialog){const s={content:n.content,download:{totalSize:-1}};try{yield n.dialog.confirm({text:"ISSUE_DOWNLOAD_CONFIRM_MESSAGE",args:[s]},{text:"ISSUE_DOWNLOAD_CONFIRM_TITLE",args:[s]},"ISSUE_DOWNLOAD_CONFIRM_OK","ISSUE_DOWNLOAD_CONFIRM_CANCEL")}catch{return n.handleTrackAction("DOWNLOAD_CONFIRM_CANCELLED",a,void 0,"_COLLECTION"),void(n.downloadLoading=!1)}}try{yield a.download(),n.cleanUpService.addIssue(n.content.id),n.installState.downloading=!0,n.installState.installState=g.ContentInstallState.INCOMPLETE,n.installState.progress=0}catch(s){console.error(s),s.code===g.ERROR_CODE.PAYMENT_REQUIRED&&n.purpleService.invalidate()}}n.downloadLoading=!1,n.changeDetectorRef.detectChanges()})()}downloadPost(e,n=0){var a=this;return(0,l.A)(function*(){yield a.purpleService.getOptionalData(e,{...(0,u.ci)(a.config,a.purpleEnv),downloadedById:e.id},"contentHtml",n),a.downloadLoading=!1,a.changeDetectorRef.detectChanges()})()}downloadBundle(){var e=this;return(0,l.A)(function*(){const n={first:24,contentFilter:{properties:{key:"slug",value:e.content.properties.slug}},fetchOptions:{downloadedById:e.content.id}};yield e.purpleService.getCatalogContents(n),e.content=yield e.purpleService.getCatalogContent(e.content.id,!1,{includeBundledContent:!0,downloadedById:e.content.id}),(0,u.Ig)(e.content).forEach(function(){var s=(0,l.A)(function*(p,_){yield e.downloadPost(p,_)});return function(p,_){return s.apply(this,arguments)}}())})()}getBundleDeleteParams(){return[{first:1,fetchOptions:{includeBundledContent:!0},contentFilter:{id:{value:this.content.id}}},{first:24,contentFilter:{properties:{key:"slug",value:this.content.properties.slug}}}]}deleteBundleEntriesFromCache(e){var n=this;return(0,l.A)(function*(){const a=n.getBundleDeleteParams();let s=[{cacheName:x.B.PURPLE_CONTENT_CACHE,cacheEntry:n.content.id},{cacheName:x.B.PURPLE_OPTIONAL_CACHE,cacheEntry:n.content.id}];for(const p of a){const _="".concat(e,":").concat(JSON.stringify(p));s.push({cacheName:x.B.PURPLE_API_CACHE,cacheEntry:_})}for(const p of s)yield n.cacheService.handleDeleteOnDownloadedCache(p.cacheName,p.cacheEntry,n.content.id)})()}deleteCache(){var e=this;return(0,l.A)(function*(){const n="getContents";(0,u.mF)(e.content)?yield e.deletePost(n,e.content.id):(0,u.G4)(e.content)&&(yield e.deleteBundle(n))})()}deleteBundle(e){var n=this;return(0,l.A)(function*(){yield n.deleteBundleEntriesFromCache(e);let a=(0,u.Ig)(n.content);for(const s of a)yield n.deletePost(e,s.id)})()}deletePost(e,n){var a=this;return(0,l.A)(function*(){const s={first:1,fetchOptions:(0,u.ci)(a.config,a.purpleEnv),contentFilter:{id:{value:n}}},p=[{cacheName:x.B.PURPLE_API_CACHE,cacheEntry:"".concat(e,":").concat(JSON.stringify(s))},{cacheName:x.B.PURPLE_CONTENT_CACHE,cacheEntry:n},{cacheName:x.B.PURPLE_OPTIONAL_CACHE,cacheEntry:n}];for(const _ of p)yield a.cacheService.handleDeleteOnDownloadedCache(_.cacheName,_.cacheEntry,a.content.id)})()}onClickDelete(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),n.config.deleteConfirm)try{yield n.dialog.confirm({text:"ISSUE_DELETE_MESSAGE",args:[n.content.name]},"ISSUE_DELETE_TITLE","ISSUE_DELETE_CONFIRM","ISSUE_DELETE_CANCEL"),yield n.deleteIssue()}catch{}else yield n.deleteIssue();yield n.deleteCache()})()}onClickCancel(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),!n.deleteLoading)try{n.deleteLoading=!0,delete n.downloadError,n.changeDetectorRef.detectChanges(),n.getDownloadHandler().then(a=>n.handleTrackAction("CANCEL_CLICKED",a)),n.cleanUpService.removeIssue(n.content.id),n.downloadHandler&&(yield n.downloadHandler.delete()),n.deleteLoading=!1,n.changeDetectorRef.detectChanges(),n.delete.emit(n.content)}catch(a){console.log(a),n.deleteLoading=!1,n.changeDetectorRef.detectChanges()}})()}onClickRead(e){var n=this;return(0,l.A)(function*(){n.contextService.closeModal(n.elementRef.nativeElement),n.contextService.closeModalSubject.observers.length>0?n.contextService.closeModalCompleteSubject.pipe((0,P.s)(n.contextService.closeModalSubject.observers.length)).subscribe(()=>{},()=>{},(0,l.A)(function*(){return n.openContent("READ_CLICKED")})):n.openContent("READ_CLICKED")})()}onClickPurchase(e){var n=this;return(0,l.A)(function*(){var a;e.stopPropagation(),n.purchaseLoading=!0,n.changeDetectorRef.detectChanges();const s={...n.purchaseConfig,productId:n.price.productId,price:n.price.price,currency:n.price.currency};n.content.productId!==(null===(a=n.price)||void 0===a?void 0:a.productId)&&(s.consumeOptions={issueIds:[],contentIds:[n.content.id]}),yield n.eventActionService.processPurchaseAction(s,n),n.purchaseLoading=!1,n.changeDetectorRef.detectChanges()})()}onClickPreview(e){var n=this;return(0,l.A)(function*(){n.contextService.closeModal(n.elementRef.nativeElement),n.contextService.closeModalSubject.observers.length>0?n.contextService.closeModalCompleteSubject.pipe((0,P.s)(n.contextService.closeModalSubject.observers.length)).subscribe(()=>{},()=>{},(0,l.A)(function*(){return n.openContent("PREVIEW_CLICKED")})):n.openContent("PREVIEW_CLICKED")})()}onClickSubscribe(e){e.stopPropagation(),this.getDownloadHandler().then(n=>this.handleTrackAction("SUBSCRIBE_CLICKED",n)),this.eventActionService.processEventAction({type:O.H.SUBSCRIPTIONS,params:{content:this.content.id,publication:this.content.publicationId}},this)}onClickLogin(e){e.stopPropagation(),this.getDownloadHandler().then(n=>this.handleTrackAction("LOGIN_CLICKED",n)),this.eventActionService.processEventAction({type:O.H.LOGIN,params:{content:this.content.id,publication:this.content.publicationId}},this)}onClickCoupon(e){e.stopPropagation(),this.getDownloadHandler().then(n=>this.handleTrackAction("COUPON_CLICKED",n)),this.eventActionService.processEventAction({type:O.H.COUPON,params:{content:this.content.id,publication:this.content.publicationId}},this)}getId(){return this.content&&this.content.id}getTrackingBaseKey(e,n){return this.elementId||e&&"".concat(e.getContentType(n))||this.getType()}getTrackingParams(e){const n=(0,b.bJ)(this.content,this.publication,this.price);return{...e&&(0,b.Gw)(e.getContentType())?(0,b.VP)(e.content,e.publication,this.price,"SOURCE_"):{},...n}}handleTrackAction(e,n,a,s){if(!n)return;const p="".concat(this.getTrackingBaseKey(n,s),"_").concat(e);let _=a?(0,b.aM)(a):{};_={..._,...this.getTrackingParams(n)},this.store.dispatch((0,z.k4)({url:this.document.location.href,key:p,params:_}))}onClickCover(e){this.clickContentAction(e,"tapCover","COVER_CLICKED")}onClickContent(e){this.clickContentAction(e,"tapContent","ISSUE_CLICKED")}clickContentAction(e,n,a){var s=this;return(0,l.A)(function*(){s.anchorFeatureEnabled&&e.preventDefault();const p=(0,m.v3)(s.config[n]);if(p){if(e.stopPropagation(),s.coverLoading)return;s.coverLoading=!0,s.changeDetectorRef.detectChanges(),s.getDownloadHandler().then(_=>s.handleTrackAction(a,_)),yield s.eventActionService.processEventAction(p,s),s.coverLoading=!1,s.changeDetectorRef.detectChanges()}})()}isGhost(){return!(this.content&&this.content.id||this.dataSourceError)}onClickState(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),n.installState)return n.installState.downloading?n.onClickCancel(e):n.installState.installState===g.ContentInstallState.COMPLETE?n.onClickDelete(e):n.onClickDownload(e)})()}onClickBookmark(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),!n.bookmarkLoading){if(n.bookmarkLoading=!0,n.bookmark){n.config.bookmark&&"boolean"!=typeof n.config.bookmark&&n.config.bookmark.deleteConfirm&&(yield n.dialog.confirm(n.bookmark.title?{text:"BOOKMARK_DELETE_MESSAGE_WITH_TITLE",args:[n.bookmark.title]}:"BOOKMARK_DELETE_MESSAGE","BOOKMARK_DELETE_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL")),n.getDownloadHandler().then(a=>n.handleTrackAction("BOOKMARK_DELETE_CLICKED",a,n.bookmark));try{yield n.purpleService.deleteBookmark({id:n.bookmark.id}),n.getDownloadHandler().then(a=>n.handleTrackAction("BOOKMARK_DELETED",a,n.bookmark))}catch(a){n.dialog.alert(n.bookmark.title?{text:"ERROR_DELETE_BOOKMARK_WITH_TITLE",args:(0,k._3)((0,k.E2)(a,n.contextService),n.bookmark)}:{text:"ERROR_DELETE_BOOKMARK",args:[(0,k.E2)(a,n.contextService)]},"DIALOG_ERROR"),n.getDownloadHandler().then(s=>n.handleTrackAction("BOOKMARK_DELETE_FAILED",s,n.bookmark))}}else{n.getDownloadHandler().then(s=>n.handleTrackAction("BOOKMARK_ADD_CLICKED",s,n.bookmark));let a={title:n.content.name,description:n.content.description,issueId:n.content.id,customData:{contentType:n.content.contentType}};n.content.thumbnails&&n.content.thumbnails.default&&(a.thumbnailURL=n.content.thumbnails.default),"object"==typeof n.config.bookmark&&(a={...a,...n.config.bookmark});try{yield n.purpleService.createBookmark(a),n.getDownloadHandler().then(s=>n.handleTrackAction("BOOKMARK_ADDED",s,n.bookmark))}catch(s){n.getDownloadHandler().then(p=>n.handleTrackAction("BOOKMARK_ADD_FAILED",p,n.bookmark)),n.dialog.alert({text:"ERROR_ADD_BOOKMARK",args:n.getErrorDialogArgs(s)},"DIALOG_ERROR")}}n.bookmarkLoading=!1,n.changeDetectorRef.detectChanges()}})()}onClickShare(e){var n=this;return(0,l.A)(function*(){e.stopPropagation(),n.getDownloadHandler().then(s=>n.handleTrackAction("SHARE_CLICKED",s));let a={text:n.content.name,url:n.getSharingUrl()};"object"==typeof n.config.sharing&&(a={...a,...n.config.sharing});try{yield n.purpleService.share(a),n.getDownloadHandler().then(s=>n.handleTrackAction("SHARED",s))}catch{n.getDownloadHandler().then(p=>n.handleTrackAction("SHARE_FAILED",p)),n.dialog.alert("ERROR_SHARE","DIALOG_ERROR")}})()}getSharingUrl(){return"".concat(this.context[g.METADATA_KEY.MANAGER_BASE_URL],"/i/").concat(this.context[g.METADATA_KEY.APP_ID],"/").concat(this.content.id,"?preview=").concat(this.context[g.METADATA_KEY.PREVIEW_APP])}getStateText(){return this.downloadLoading||this.deleteLoading?" ":this.installState?this.installState.downloading?"ISSUE_ACTION_CANCEL":this.installState.installState===g.ContentInstallState.COMPLETE?"ISSUE_ACTION_DELETE":"ISSUE_ACTION_DOWNLOAD":void 0}getPriceState(){return this.priceLoading?"price-loading":this.priceLoading||this.price?this.price?"price-available":"":"price-unavailable"}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"downloadOptions","customButtons","customMessages"]}getDownloadHandler(){var e=this;return(0,l.A)(function*(){return(0,h.UE)(e.platformId)?((!e.downloadHandler||e.downloadHandler.content.id!==e.content.id)&&(e.downloadHandler&&(yield e.purpleService.destroyDownloadHandler(e.downloadHandler)),e.downloadHandler=yield e.purpleService.getDownloadHandler(e.content,e.dialog)),e.downloadHandler):null})()}isDownloadable(){return this.isDownloadEnabled&&this.installState}isDownloadInProgress(e=!1){return!this.deleteLoading&&!this.downloadLoading&&this.installState&&this.installState.downloading&&!(this.installState.updating&&this.updateBehavior===D.FZ.SILENT)&&(e||"MULTI"===this.downloadOptions.buttonType)}isDownloadCancelable(){return!!this.isDownloadEnabled&&!this.downloadLoading&&this.installState.downloading&&!(this.installState.updating&&this.updateBehavior===D.FZ.SILENT)}isDownloadDeletable(){return!!this.isDownloadEnabled&&!this.downloadLoading&&this.installState.installState!==g.ContentInstallState.NOT_INSTALLED&&(!this.installState.downloading||this.installState.updating&&this.updateBehavior===D.FZ.SILENT)}isDownloadFinished(){return!!this.isDownloadEnabled&&this.downloadOptions&&this.downloadOptions.statusIndicator&&this.installState&&(this.installState.installState===g.ContentInstallState.COMPLETE&&!this.locked||this.installState.updating&&this.updateBehavior===D.FZ.SILENT)}showUpdateBehavior(){if(this.installState)return(0,T.YH)(this.installState,this.content.contentType===g.CatalogContentType.ISSUE)}reload(){window.location.reload()}hasContextChanged(e){var n;return!(null!==(n=this.config)&&void 0!==n&&n.dataSource)&&!w(this.contextContent,this.content)||!w(e[g.METADATA_KEY.ENTITLEMENT_TOKEN],this.context[g.METADATA_KEY.ENTITLEMENT_TOKEN])||super.hasContextChanged(e)}deleteIssue(){var e=this;return(0,l.A)(function*(){if(!e.deleteLoading)try{e.deleteLoading=!0,delete e.downloadError,e.changeDetectorRef.detectChanges(),e.getDownloadHandler().then(n=>e.handleTrackAction("DELETE_CLICKED",n)),e.cleanUpService.removeIssue(e.content.id),e.downloadHandler&&(yield e.downloadHandler.delete()),e.deleteLoading=!1,e.changeDetectorRef.detectChanges(),e.delete.emit(e.content)}catch(n){console.log(n),e.deleteLoading=!1,e.changeDetectorRef.detectChanges()}})()}getProgressType(){const n=(this.config||this.baseConfig).downloadOptions;return n.progressType?n.progressType:this.template===S.qc.COVER?K.s.RADIAL:K.s.BAR}getErrorDialogArgs(e){return(0,k.$C)((0,k.E2)(e,this.contextService),this.content)}trackByProperty(e,n){var a;return null!==(a=null==n?void 0:n.key)&&void 0!==a?a:e}trackByCategory(e,n){var a;return null!==(a=null==n?void 0:n.id)&&void 0!==a?a:e}trackByTag(e,n){return null!=n?n:e}trackByMessage(e,n){var a;return null!==(a=null==n?void 0:n.message)&&void 0!==a?a:e}trackByButton(e,n){var a;return null!==(a=null==n?void 0:n.id)&&void 0!==a?a:e}openContent(e){var n=this;return(0,l.A)(function*(){n.openLoading=!0,n.changeDetectorRef.detectChanges(),n.getDownloadHandler().then(a=>n.handleTrackAction(e,a)),yield n.eventActionService.processOpenContentAction({type:O.H.OPEN_CONTENT,...n.config.openContent},n),n.openLoading=!1,n.changeDetectorRef.detectChanges()})()}getContextKey(){return this.contextKey}}return(r=i).type="content",r.\u0275fac=function(e){return new(e||r)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(A.B),t.rXU(Z.o),t.rXU(t.zZn),t.rXU(J.G),t.rXU(Q.V),t.rXU(q.I),t.rXU(h.qQ),t.rXU(t.Agw),t.rXU(b.r6),t.rXU(t.pJN),t.rXU(T.Wj),t.rXU(tt.d),t.rXU(nt.X),t.rXU(et.i),t.rXU(ot._))},r.\u0275cmp=t.VBU({type:r,selectors:[["storefront-content"]],hostVars:8,hostBindings:function(e,n){2&e&&(t.BMQ("content-type",n.contentType)("post-type",n.postType),t.AVh("locked",n.locked)("purchasable",n.purchasable)("error",n.hasError))},features:[t.Jv_([A.B]),t.Vt3],decls:2,vars:2,consts:[["noAnchorTemplate",""],["imageTemplate",""],["contentData",""],[4,"ngIf"],[1,"content-image"],[3,"height"],[1,"content-data"],[1,"content-title"],[1,"content-description"],["class","content-error",4,"ngIf"],[1,"content-error"],["storefrontTranslate","CONTENT_ERROR",3,"storefrontTranslateArgs"],["storefrontTranslate","CONTENT_ERROR_BUTTON","mat-ripple","",1,"action-button",3,"click"],[4,"ngIf","ngIfElse"],["class","content-image",3,"href","click",4,"ngIf"],["class","content-data",3,"href","expanded","click",4,"ngIf"],[1,"content-image",3,"click","href"],[4,"ngTemplateOutlet"],[1,"content-data",3,"click","href"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","content-image",3,"click",4,"ngIf"],["class","content-data",3,"expanded","click",4,"ngIf"],[1,"content-image",3,"click"],[1,"content-data",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"lcpPrioritized","src","imageResolutionStrategy","height","extendedThumbnail","label"],["class","content-update-badge",4,"ngIf"],[3,"type","progress",4,"ngIf"],[1,"content-update-badge"],["storefrontTranslate","CONTENT_UPDATE_BADGE_MESSAGE"],[3,"type","progress"],["class","content-publication-title",3,"click",4,"ngIf"],["class","content-title",3,"click",4,"ngIf"],["class","icon icon-check-bg",4,"ngIf"],["class","content-pub-date",4,"ngIf"],["class","content-description","storefrontCheckOverflow","vertical","storefrontCheckOverflowTarget","self",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],["class","content-description-expand-toggle",3,"click",4,"ngIf"],["class","content-properties",4,"ngIf"],["class","content-categories",4,"ngIf"],["class","content-tags",4,"ngIf"],[3,"class","storefrontTranslate","storefrontTranslateArgs",4,"ngFor","ngForOf","ngForTrackBy"],[1,"content-actions"],["class","icon icon-share","mat-ripple","",3,"click",4,"ngIf"],["mat-ripple","",3,"class","click",4,"ngIf"],["class","button-read action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","button-preview action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","content-state",4,"ngIf"],[1,"content-publication-title",3,"click"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"content-title",3,"click"],[1,"icon","icon-check-bg"],[1,"content-pub-date"],["storefrontCheckOverflow","vertical","storefrontCheckOverflowTarget","self",1,"content-description",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"content-description-expand-toggle",3,"click"],[3,"storefrontTranslate"],[1,"icon","icon-arrow-down"],[1,"content-properties"],[3,"class",4,"ngFor","ngForOf","ngForTrackBy"],[1,"content-categories"],["purpleColorize","accent","purpleColorizeProps","background-color",3,"class",4,"ngFor","ngForOf","ngForTrackBy"],["purpleColorize","accent","purpleColorizeProps","background-color"],[1,"content-tags"],["mat-ripple","",1,"icon","icon-share",3,"click"],["mat-ripple","",3,"click"],["mat-ripple","",1,"button-read","action-button",3,"click","disabled"],["storefrontTranslate","CONTENT_ACTION_READ"],["class","button-spinner",4,"ngIf"],[1,"button-spinner"],["mat-ripple","",1,"button-preview","action-button",3,"click","disabled"],["storefrontTranslate","CONTENT_ACTION_PREVIEW"],["class","button-download action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","button-delete action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","button-cancel action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["mat-ripple","",1,"button-cancel","action-button",3,"click","disabled"],["storefrontTranslate","CONTENT_ACTION_CANCEL"],["mat-ripple","",1,"button-download","action-button",3,"click","disabled"],["storefrontTranslate","ISSUE_ACTION_DOWNLOAD"],["mat-ripple","",1,"button-delete","action-button",3,"click","disabled"],["storefrontTranslate","ISSUE_ACTION_DELETE"],["message","",3,"type","progress",4,"ngIf"],["class","progress-percentage",4,"ngIf"],["message","",3,"type","progress"],[1,"progress-percentage"],["class","button-purchase action-button","mat-ripple","",3,"ngClass","disabled","click",4,"ngIf"],["class","button-subscribe action-button","mat-ripple","","storefrontTranslate","CONTENT_ACTION_SUBSCRIBE",3,"click",4,"ngIf"],["class","button-login action-button","mat-ripple","","storefrontTranslate","CONTENT_ACTION_LOGIN",3,"click",4,"ngIf"],["class","button-coupon action-button","mat-ripple","","storefrontTranslate","CONTENT_ACTION_COUPON",3,"click",4,"ngIf"],["mat-ripple","",1,"button-purchase","action-button",3,"click","ngClass","disabled"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_LOADING",4,"ngIf"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_UNAVAILABLE",4,"ngIf"],["storefrontTranslate","CONTENT_ACTION_PURCHASE",3,"storefrontTranslateArgs",4,"ngIf"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_LOADING"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_UNAVAILABLE"],["storefrontTranslate","CONTENT_ACTION_PURCHASE",3,"storefrontTranslateArgs"],["mat-ripple","","storefrontTranslate","CONTENT_ACTION_SUBSCRIBE",1,"button-subscribe","action-button",3,"click"],["mat-ripple","","storefrontTranslate","CONTENT_ACTION_LOGIN",1,"button-login","action-button",3,"click"],["mat-ripple","","storefrontTranslate","CONTENT_ACTION_COUPON",1,"button-coupon","action-button",3,"click"],[1,"button-custom",3,"baseConfig","disableAnchor","baseContext"],[1,"content-state"],[3,"progress","type","showBorder",4,"ngIf"],["class","icon icon-download-circle","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","icon icon-delete","mat-ripple","",3,"disabled","click",4,"ngIf"],[3,"progress","type","showBorder"],["mat-ripple","",1,"icon","icon-download-circle",3,"click","disabled"],["mat-ripple","",1,"icon","icon-delete",3,"click","disabled"]],template:function(e,n){1&e&&t.DNE(0,ut,7,2,"ng-container",3)(1,Dn,9,4,"ng-container",3),2&e&&(t.Y8G("ngIf",!n.content||n.dataSourceError),t.R7$(),t.Y8G("ngIf",n.content&&n.config&&!n.dataSourceError))},dependencies:[h.YU,h.Sq,h.bT,h.T3,K.X,rt.G,at.M,it.t,ct.r6,st.Q,U.h,h.Jj,lt.w,_t.Z],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-content{display:flex;flex-direction:column;position:relative}storefront-content .content-image{position:relative;overflow:hidden}storefront-content .content-image storefront-spinner{position:absolute;top:0;height:100%;width:100%;background-color:#0000001a}storefront-content .content-image .content-update-badge{--paddingVert: .25em;--fontSize: .8em;--width: 200%;--offset: calc(var(--fontSize) * 3);position:absolute;top:calc(var(--fontSize) + var(--paddingVert));left:calc(var(--width) / -2 + var(--offset));display:flex;justify-content:center;width:var(--width);padding:var(--paddingVert) 0;background:var(--contentUpdateBadgeBgColor);transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}@media (max-width: 767px) and (orientation: portrait){storefront-content .content-image .content-update-badge{--fontSize: .6em}}@media (max-width: 330px) and (orientation: portrait){storefront-content .content-image .content-update-badge{--fontSize: .6em}}storefront-content .content-image .content-update-badge span{max-width:80px;text-align:center;font-size:var(--fontSize);color:var(--contentUpdateBadgeColor);-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;text-overflow:ellipsis;overflow:hidden}@media (max-width: 767px) and (orientation: portrait){storefront-content .content-image .content-update-badge span{max-width:60px}}@media (max-width: 330px) and (orientation: portrait){storefront-content .content-image .content-update-badge span{max-width:60px}}storefront-content storefront-progress[type=BAR]{display:none;position:absolute;background-color:var(--contentProgressBgColor);border-radius:var(--borderRadius);overflow:hidden;text-align:center;padding:var(--contentProgressPaddingVert) var(--contentProgressPaddingHoriz);z-index:0;bottom:0;left:0;right:0;top:0}storefront-content .content-image storefront-progress[type=BAR]{top:auto;bottom:var(--contentProgressMarginVert);left:var(--contentProgressMarginHoriz);right:var(--contentProgressMarginHoriz)}storefront-content .content-data{display:flex;flex-direction:column;overflow:hidden;flex-grow:1}storefront-content .content-data .content-description-expand-toggle{display:none}storefront-content .content-data .content-description-expand-toggle i{display:inline-block;transition:transform .3s ease;font-size:12px;padding:0 4px}storefront-content .content-title{margin:.5em 0}storefront-content .content-description{color:var(--secondaryTextColor);width:100%;white-space:pre-wrap}storefront-content .content-custom-message{color:var(--textColor)}storefront-content storefront-image{width:100%}storefront-content .content-actions{display:none;justify-content:space-between;z-index:1}storefront-content .content-actions button{color:#fff;background-color:var(--secondaryColor);padding:0}storefront-content .content-actions button.button-purchase,storefront-content .content-actions button.button-subscribe,storefront-content .content-actions button.button-download,storefront-content .content-actions button.button-read{background-color:var(--primaryColor)}storefront-content .content-actions button.button-state-downloading.button-state-INCOMPLETE .progress-percentage{display:none}storefront-content .content-actions button[disabled]{opacity:.5}storefront-content .content-actions button span{position:relative;z-index:1}storefront-content .content-actions button.icon{color:var(--primaryColor);background-color:transparent;width:1.4em;height:1.4em;font-size:1.4em}storefront-content .content-state{display:none}storefront-content .content-error .action-button{background-color:var(--secondaryColor);color:#fff;display:block}storefront-content[template=cover] .content-image{width:100%}storefront-content[template=cover] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=cover] .content-data{flex-direction:row;align-items:center}storefront-content[template=cover] .content-data>i,storefront-content[template=cover] .content-data .content-state i,storefront-content[template=cover] .content-data .content-state button,storefront-content[template=cover] .content-data .content-state storefront-progress,storefront-content[template=cover] .content-data .content-state storefront-spinner{font-size:21px;height:22px;width:22px;color:var(--secondaryColor)}storefront-content[template=cover] .content-data>i.icon-delete,storefront-content[template=cover] .content-data .content-state i.icon-delete,storefront-content[template=cover] .content-data .content-state button.icon-delete,storefront-content[template=cover] .content-data .content-state storefront-progress.icon-delete,storefront-content[template=cover] .content-data .content-state storefront-spinner.icon-delete{width:42px;height:42px;position:absolute;top:-20px;right:-20px;border-radius:100%;font-size:10px;color:#fff;padding:10px}storefront-content[template=cover] .content-data>i.icon-delete:after,storefront-content[template=cover] .content-data .content-state i.icon-delete:after,storefront-content[template=cover] .content-data .content-state button.icon-delete:after,storefront-content[template=cover] .content-data .content-state storefront-progress.icon-delete:after,storefront-content[template=cover] .content-data .content-state storefront-spinner.icon-delete:after{background-color:var(--secondaryColor);width:22px;height:22px;border-radius:100%;display:flex;justify-content:center;align-items:center}storefront-content[template=cover] .content-state{display:flex;right:0;bottom:0}storefront-content[template=cover] .content-state storefront-spinner{position:relative;z-index:1;--spinnerColor: var(--secondaryColor);background-color:transparent;padding:0}storefront-content[template=cover] .content-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}storefront-content[template=cover] .content-publication-title,storefront-content[template=cover] .content-description,storefront-content[template=cover] .content-categories,storefront-content[template=cover] .content-tags,storefront-content[template=cover] .content-pub-date,storefront-content[template=cover] .content-properties,storefront-content[template=cover] .content-custom-message{display:none}storefront-content[template=cover] .content-publication-title .content-tag,storefront-content[template=cover] .content-publication-title .content-category,storefront-content[template=cover] .content-description .content-tag,storefront-content[template=cover] .content-description .content-category,storefront-content[template=cover] .content-categories .content-tag,storefront-content[template=cover] .content-categories .content-category,storefront-content[template=cover] .content-tags .content-tag,storefront-content[template=cover] .content-tags .content-category,storefront-content[template=cover] .content-pub-date .content-tag,storefront-content[template=cover] .content-pub-date .content-category,storefront-content[template=cover] .content-properties .content-tag,storefront-content[template=cover] .content-properties .content-category,storefront-content[template=cover] .content-custom-message .content-tag,storefront-content[template=cover] .content-custom-message .content-category{display:none}storefront-content[template=card]{border-radius:4px;box-shadow:0 0 5px 2px #0000001a;padding-bottom:var(--gutter);overflow:hidden;background-color:#fff}storefront-content[template=card] storefront-image[height-strategy=FIXED]{padding-top:75%}storefront-content[template=card] storefront-image[height-strategy=FIXED]>img{object-fit:cover;width:100%}storefront-content[template=card] .content-title,storefront-content[template=card] .content-pub-date,storefront-content[template=card] .content-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-left:calc(var(--gutter) / 2);margin-right:calc(var(--gutter) / 2);width:initial}storefront-content[template=card] .content-publication-title,storefront-content[template=card] .content-categories,storefront-content[template=card] .content-tags,storefront-content[template=card] .content-properties,storefront-content[template=card] .content-custom-message{display:none}storefront-content[template=card] .content-publication-title .content-tag,storefront-content[template=card] .content-publication-title .content-category,storefront-content[template=card] .content-categories .content-tag,storefront-content[template=card] .content-categories .content-category,storefront-content[template=card] .content-tags .content-tag,storefront-content[template=card] .content-tags .content-category,storefront-content[template=card] .content-properties .content-tag,storefront-content[template=card] .content-properties .content-category,storefront-content[template=card] .content-custom-message .content-tag,storefront-content[template=card] .content-custom-message .content-category{display:none}storefront-content[template=highlight]{flex-direction:row;padding:calc(var(--gutter) / 2);width:100%}storefront-content[template=highlight] .content-image{width:calc(43% - var(--gutter) / 2);margin-right:var(--gutter);flex-shrink:0;align-self:flex-end}storefront-content[template=highlight] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}@media (max-width: 533px) and (orientation: portrait),(max-height: 533px) and (orientation: landscape){storefront-content[template=highlight] .content-image{width:calc(50% - (var(--gutter)))}}storefront-content[template=highlight] storefront-progress[type=BAR]{display:block}storefront-content[template=highlight] .content-data{margin-left:var(--gutter)}storefront-content[template=highlight] .content-title{font-size:2em;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}storefront-content[template=highlight] .content-publication-title,storefront-content[template=highlight] .content-pub-date,storefront-content[template=highlight] .content-properties,storefront-content[template=highlight] .content-categories,storefront-content[template=highlight] .content-tags{display:none}storefront-content[template=highlight] .content-publication-title .content-tag,storefront-content[template=highlight] .content-publication-title .content-category,storefront-content[template=highlight] .content-pub-date .content-tag,storefront-content[template=highlight] .content-pub-date .content-category,storefront-content[template=highlight] .content-properties .content-tag,storefront-content[template=highlight] .content-properties .content-category,storefront-content[template=highlight] .content-categories .content-tag,storefront-content[template=highlight] .content-categories .content-category,storefront-content[template=highlight] .content-tags .content-tag,storefront-content[template=highlight] .content-tags .content-category{display:none}storefront-content[template=highlight] .content-custom-message{margin:var(--gutter) 0}storefront-content[template=highlight] .content-actions{display:flex;flex-direction:column;flex-grow:1;justify-content:flex-end}storefront-content[template=highlight] .content-actions storefront-button button{width:100%}storefront-content[template=details] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=details] .content-data{align-items:center}storefront-content[template=details] .content-data.expanded .content-description{-webkit-line-clamp:unset}storefront-content[template=details] .content-data.expanded .content-description-expand-toggle{display:block}storefront-content[template=details] .content-data.expanded .content-description-expand-toggle i{transform:rotate(180deg)}storefront-content[template=details] .content-data .content-publication-title,storefront-content[template=details] .content-data .content-properties,storefront-content[template=details] .content-data .content-categories,storefront-content[template=details] .content-data .content-tags{display:none}storefront-content[template=details] .content-data .content-publication-title .content-tag,storefront-content[template=details] .content-data .content-publication-title .content-category,storefront-content[template=details] .content-data .content-publication-title .content-property,storefront-content[template=details] .content-data .content-properties .content-tag,storefront-content[template=details] .content-data .content-properties .content-category,storefront-content[template=details] .content-data .content-properties .content-property,storefront-content[template=details] .content-data .content-categories .content-tag,storefront-content[template=details] .content-data .content-categories .content-category,storefront-content[template=details] .content-data .content-categories .content-property,storefront-content[template=details] .content-data .content-tags .content-tag,storefront-content[template=details] .content-data .content-tags .content-category,storefront-content[template=details] .content-data .content-tags .content-property{display:none}storefront-content[template=details] storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=details] storefront-progress[type=BAR]{display:block}storefront-content[template=details] .content-pub-date{display:none}storefront-content[template=details] .content-description{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;text-overflow:ellipsis;overflow:hidden}storefront-content[template=details] .content-description.scrollable-vert+.content-description-expand-toggle{display:flex}storefront-content[template=details] .content-description-expand-toggle{align-self:flex-start}storefront-content[template=details] .content-custom-message{margin-top:var(--gutter)}storefront-content[template=details] .content-actions{display:grid;width:100%;grid-template-columns:1fr 1fr;grid-column-gap:var(--gutter);margin-top:var(--gutter)}storefront-content[template=details] .content-actions>button:nth-child(odd):last-child,storefront-content[template=details] .content-actions>storefront-button:nth-child(odd):last-child{grid-column:1/3}storefront-content[template=details] .content-actions storefront-button button{width:100%}storefront-content[template=group]{flex-direction:row}storefront-content[template=group] .content-image{width:100%}storefront-content[template=group] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=group] .content-data{flex-direction:column}storefront-content[template=group] .content-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}storefront-content[template=group] .content-actions{display:flex;justify-content:flex-start}storefront-content[template=group] .content-actions>button{display:none}storefront-content[template=group] i,storefront-content[template=group] .content-publication-title,storefront-content[template=group] .content-pub-date,storefront-content[template=group] .content-description,storefront-content[template=group] .content-description-expand-toggle,storefront-content[template=group] .content-properties,storefront-content[template=group] .content-categories,storefront-content[template=group] .content-tags,storefront-content[template=group] .content-state,storefront-content[template=group] .content-update-badge{display:none}storefront-content[template=group] i .content-tag,storefront-content[template=group] i .content-category,storefront-content[template=group] .content-publication-title .content-tag,storefront-content[template=group] .content-publication-title .content-category,storefront-content[template=group] .content-pub-date .content-tag,storefront-content[template=group] .content-pub-date .content-category,storefront-content[template=group] .content-description .content-tag,storefront-content[template=group] .content-description .content-category,storefront-content[template=group] .content-description-expand-toggle .content-tag,storefront-content[template=group] .content-description-expand-toggle .content-category,storefront-content[template=group] .content-properties .content-tag,storefront-content[template=group] .content-properties .content-category,storefront-content[template=group] .content-categories .content-tag,storefront-content[template=group] .content-categories .content-category,storefront-content[template=group] .content-tags .content-tag,storefront-content[template=group] .content-tags .content-category,storefront-content[template=group] .content-state .content-tag,storefront-content[template=group] .content-state .content-category,storefront-content[template=group] .content-update-badge .content-tag,storefront-content[template=group] .content-update-badge .content-category{display:none}storefront-content.locked .content-actions button.icon-share{display:none}storefront-content.ghost{pointer-events:none}storefront-content.ghost .content-image{animation:ghost-opacity 2s infinite linear;background-color:var(--ghostColor);margin-bottom:var(--gutter)}storefront-content.ghost .content-image storefront-image{background-color:transparent}storefront-content.ghost[template=highlight]>.content-image{margin-bottom:0}storefront-content.ghost[template=highlight]>.content-image>storefront-image{margin-bottom:0}storefront-content.ghost[template=highlight] .content-description,storefront-content.ghost[template=highlight] .content-title{width:100%;margin-bottom:0}storefront-content.ghost[template=cover] storefront-image{padding-top:133%}storefront-content.ghost[template=card] storefront-image{padding-top:75%}storefront-content.ghost .content-description,storefront-content.ghost .content-title{background-color:var(--ghostColor);color:transparent;border-radius:4px;width:90%;height:1.2em;margin-bottom:calc(var(--gutter) / 2)!important;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}storefront-content.ghost .content-description{height:3em}storefront-content.error .content-data{display:none}storefront-content.error[template=cover] .content-error,storefront-content.error[template=card] .content-error,storefront-content.error[template=details] .content-error{margin-top:var(--gutter)}\n'],encapsulation:2}),i})()},2085:($,I,c)=>{c.d(I,{o9:()=>y,qc:()=>g});var l=c(4404),g=function(f){return f.COVER="cover",f.CARD="card",f.HIGHLIGHT="highlight",f.DETAILS="details",f.GROUP="group",f}(g||{});const y={template:g.CARD,openContent:{mode:l.DisplayMode.MODAL,titleBar:!0},downloadOptions:null,customButtons:[],customMessages:[],titleMessage:"CONTENT_TITLE",descriptionMessage:"CONTENT_DESCRIPTION",publicationTitleMessage:"CONTENT_PUBLICATION_TITLE"}},8399:($,I,c)=>{c.r(I),c.d(I,{ContentModule:()=>T,component:()=>O});var l=c(177),h=c(7808),t=c(6600),g=c(4767),y=c(6953),f=c(1605),M=c(8301),C=c(6483),N=c(9805),P=c(4403),B=c(3363),G=c(6215),m=c(3953);let T=(()=>{var v;class A{}return(v=A).\u0275fac=function(b){return new(b||v)},v.\u0275mod=m.$C({type:v}),v.\u0275inj=m.G2t({imports:[l.MD,B.E,M.d,C.h,G.O,f.P,g.d,t.pZ,y.n,N.ButtonModule,P.U]}),A})();const O=h.B}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["default-projects_storefront_src_app_component_content_content_module_ts"],{7808:($,I,c)=>{c.d(I,{B:()=>xn});var l=c(467),h=c(177),t=c(3953),g=c(4404),f=c(4412),M=c(5964),C=c(5343),N=c(6354),P=c(6697),B=c(6843),G=c(4452),m=c(8179),T=c(5102),O=c(9745),v=c(4945),A=c(8251),u=c(5706),b=c(7879),X=c(8890),F=c(1210),D=c(4365),S=c(2085),w=c(362),W=c(4622),V=c(1739),H=c(4004),U=c(2932),z=c(610),k=c(8091),K=c(3092),x=c(4608),Z=c(20),J=c(8004),Q=c(9516),q=c(244),tt=c(1652),nt=c(5820),et=c(4748),ot=c(6350),rt=c(680),at=c(8909),it=c(7240),ct=c(6600),st=c(395),lt=c(2914),_t=c(2813);const R=r=>[r],pt=r=>({path:r}),dt=()=>({path:""}),gt=()=>[];function ft(r,i){if(1&r){const o=t.RV6();t.j41(0,"div",10),t.nrm(1,"span",11),t.j41(2,"button",12),t.bIt("click",function(){t.eBV(o);const n=t.XpG(2);return t.Njj(n.reload())}),t.k0s()()}if(2&r){const o=t.XpG(2);t.R7$(),t.Y8G("storefrontTranslateArgs",t.eq3(1,R,o.dataSourceError.code))}}function ut(r,i){if(1&r&&(t.qex(0),t.j41(1,"div",4),t.nrm(2,"storefront-image",5),t.k0s(),t.j41(3,"div",6),t.nrm(4,"h3",7)(5,"div",8),t.k0s(),t.DNE(6,ft,3,3,"div",9),t.bVm()),2&r){const o=t.XpG();t.R7$(2),t.Y8G("height","FIXED"),t.R7$(4),t.Y8G("ngIf",o.dataSourceError)}}function mt(r,i){1&r&&t.eu8(0)}function ht(r,i){if(1&r){const o=t.RV6();t.j41(0,"a",16),t.nI1(1,"urlTransform"),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.DNE(2,mt,1,0,"ng-container",17),t.k0s()}if(2&r){const o=t.XpG().ngIf;t.XpG();const e=t.sdS(6),n=t.XpG();t.Y8G("href",t.i5U(1,2,o,n.context),t.B4B),t.R7$(2),t.Y8G("ngTemplateOutlet",e)}}function Ct(r,i){1&r&&t.eu8(0)}function Et(r,i){if(1&r){const o=t.RV6();t.j41(0,"a",18),t.nI1(1,"urlTransform"),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickContent(n))}),t.DNE(2,Ct,1,0,"ng-container",19),t.k0s()}if(2&r){const o=t.XpG().ngIf;t.XpG();const e=t.sdS(8),n=t.XpG();t.AVh("expanded",n.descriptionExpanded),t.Y8G("href",t.i5U(1,5,o,n.context),t.B4B),t.R7$(2),t.Y8G("ngTemplateOutlet",e)("ngTemplateOutletContext",t.eq3(8,pt,o))}}function vt(r,i){if(1&r&&(t.qex(0),t.DNE(1,ht,3,5,"a",14)(2,Et,3,10,"a",15),t.bVm()),2&r){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.cover),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.allData)}}function bt(r,i){1&r&&t.eu8(0)}function Tt(r,i){if(1&r){const o=t.RV6();t.j41(0,"div",22),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.DNE(1,bt,1,0,"ng-container",17),t.k0s()}if(2&r){t.XpG(2);const o=t.sdS(6);t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function It(r,i){if(1&r){const o=t.RV6();t.j41(0,"div",23),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickContent(n))}),t.eu8(1,24),t.k0s()}if(2&r){t.XpG(2);const o=t.sdS(8),e=t.XpG();t.AVh("expanded",e.descriptionExpanded),t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.lJ4(4,dt))}}function Ot(r,i){if(1&r&&t.DNE(0,Tt,2,1,"div",20)(1,It,2,5,"div",21),2&r){const o=t.XpG(2);t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.cover),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.allData)}}function Dt(r,i){1&r&&t.nrm(0,"storefront-spinner")}function xt(r,i){1&r&&(t.j41(0,"div",28),t.nrm(1,"span",29),t.k0s())}function At(r,i){if(1&r&&t.nrm(0,"storefront-progress",30),2&r){const o=t.XpG(3);t.Y8G("type",o.getProgressType())("progress",o.installState.progress)}}function kt(r,i){if(1&r&&(t.nrm(0,"storefront-image",25),t.DNE(1,Dt,1,0,"storefront-spinner",3)(2,xt,2,0,"div",26)(3,At,1,2,"storefront-progress",27)),2&r){const o=t.XpG(2);t.Y8G("lcpPrioritized",0===(null==o.context?null:o.context.entryIndex)&&(null==o.config?null:o.config.lcpPrioritized))("src",o.content.thumbnails&&o.content.thumbnails.default)("imageResolutionStrategy",null==o.config?null:o.config.imageResolutionStrategy)("height",o.getImageHeight())("extendedThumbnail",null==o.content||null==o.content.thumbnailsExtended?null:o.content.thumbnailsExtended.default)("label",null==o.content?null:o.content.name),t.R7$(),t.Y8G("ngIf",o.coverLoading),t.R7$(),t.Y8G("ngIf",o.showUpdateBehavior()),t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress())}}function Rt(r,i){if(1&r){const o=t.RV6();t.j41(0,"h3",48),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.nrm(1,"span",49),t.k0s()}if(2&r){const o=t.XpG(3);t.R7$(),t.Y8G("storefrontTranslate",o.config.publicationTitleMessage)("storefrontTranslateArgs",t.eq3(2,R,o.publication&&o.publication.name))}}function yt(r,i){if(1&r){const o=t.RV6();t.j41(0,"h3",50),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.nrm(1,"span",49),t.k0s()}if(2&r){const o=t.XpG(3);t.R7$(),t.Y8G("storefrontTranslate",o.config.titleMessage)("storefrontTranslateArgs",t.eq3(2,R,o.content.name))}}function Pt(r,i){1&r&&t.nrm(0,"i",51)}function St(r,i){if(1&r&&(t.j41(0,"div",52),t.EFF(1),t.nI1(2,"storefrontDate"),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.SpI(" ",t.bMT(2,1,o.content.publicationDate)," ")}}function Lt(r,i){if(1&r&&t.nrm(0,"div",53),2&r){const o=t.XpG(3);t.Y8G("storefrontTranslate",o.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(2,R,o.content.description))}}function Mt(r,i){if(1&r){const o=t.RV6();t.j41(0,"span",54),t.bIt("click",function(){t.eBV(o);const n=t.XpG(3);return t.Njj(n.descriptionExpanded=!n.descriptionExpanded)}),t.nrm(1,"span",55)(2,"i",56),t.k0s()}if(2&r){const o=t.XpG(3);t.R7$(),t.Y8G("storefrontTranslate",o.descriptionExpanded?"CONTENT_DESCRIPTION_TOGGLE_COLLAPSE":"CONTENT_DESCRIPTION_TOGGLE_EXPAND")}}function Nt(r,i){if(1&r&&(t.j41(0,"div")(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"i"),t.k0s()),2&r){const o=i.$implicit;t.ZWY("content-property content-property-",o.key," content-property-",o.key,"-",o.value,""),t.R7$(2),t.JRh(o.value),t.R7$(),t.ee0("'icon icon-",o.key," icon-",o.value," icon-",o.key,"-",o.value,"")}}function Bt(r,i){if(1&r&&(t.j41(0,"div",57),t.DNE(1,Nt,4,12,"div",58),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.visibleProperties)("ngForTrackBy",o.trackByProperty)}}function Gt(r,i){if(1&r&&(t.j41(0,"div",61)(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"i"),t.k0s()),2&r){const o=i.$implicit;t.ZvI("content-category content-category-",o.id,""),t.R7$(2),t.JRh(o.name||o.id),t.R7$(),t.ZvI("icon icon-",o.id,"")}}function wt(r,i){if(1&r&&(t.j41(0,"div",59),t.DNE(1,Gt,4,7,"div",60),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.displayedCategories)("ngForTrackBy",o.trackByCategory)}}function Ut(r,i){if(1&r&&(t.j41(0,"div")(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"i"),t.k0s()),2&r){const o=i.$implicit;t.ZvI("content-tag content-tag-",o,""),t.R7$(2),t.JRh(o),t.R7$(),t.ZvI("icon icon-",o,"")}}function Kt(r,i){if(1&r&&(t.j41(0,"div",62),t.DNE(1,Ut,4,7,"div",58),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.tags)("ngForTrackBy",o.trackByTag)}}function $t(r,i){if(1&r&&t.nrm(0,"div",49),2&r){const o=i.$implicit;t.ZvI("content-custom-message ",o.class||"",""),t.Y8G("storefrontTranslate",o.message)("storefrontTranslateArgs",o.variables||t.lJ4(5,gt))}}function jt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",63),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickShare(n))}),t.k0s()}}function Yt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",64),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickBookmark(n))}),t.k0s()}if(2&r){const o=t.XpG(3);t.ZvI("icon ",o.bookmark?"icon-bookmark-active":"icon-bookmark","")}}function Xt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function Ft(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",65),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickRead(n))}),t.nrm(1,"span",66),t.DNE(2,Xt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(3);t.Y8G("disabled",o.openLoading),t.R7$(2),t.Y8G("ngIf",o.openLoading)}}function Wt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function Vt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",69),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickPreview(n))}),t.nrm(1,"span",70),t.DNE(2,Wt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(3);t.Y8G("disabled",o.previewLoading),t.R7$(2),t.Y8G("ngIf",o.previewLoading)}}function Ht(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function zt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",74),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(6);return t.Njj(a.onClickCancel(n))}),t.nrm(1,"span",75),t.DNE(2,Ht,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(6);t.Y8G("disabled",o.deleteLoading),t.R7$(2),t.Y8G("ngIf",o.deleteLoading)}}function Zt(r,i){if(1&r&&(t.qex(0),t.DNE(1,zt,3,2,"button",73),t.bVm()),2&r){const o=t.XpG(5);t.R7$(),t.Y8G("ngIf",o.isDownloadCancelable())}}function Jt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function Qt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",76),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(5);return t.Njj(a.onClickDownload(n))}),t.nrm(1,"span",77),t.DNE(2,Jt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(5);t.Y8G("disabled",o.downloadLoading),t.R7$(2),t.Y8G("ngIf",o.downloadLoading)}}function qt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function tn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",78),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(5);return t.Njj(a.onClickDelete(n))}),t.nrm(1,"span",79),t.DNE(2,qt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(5);t.Y8G("disabled",o.deleteLoading),t.R7$(2),t.Y8G("ngIf",o.deleteLoading)}}function nn(r,i){if(1&r&&(t.qex(0),t.DNE(1,Zt,2,1,"ng-container",3)(2,Qt,3,2,"button",71)(3,tn,3,2,"button",72),t.bVm()),2&r){const o=t.XpG(4);t.R7$(),t.Y8G("ngIf",o.installState.downloading),t.R7$(),t.Y8G("ngIf",!o.installState.downloading&&"COMPLETE"!==o.installState.installState&&!o.deleteLoading),t.R7$(),t.Y8G("ngIf",o.isDownloadDeletable())}}function en(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function on(r,i){if(1&r&&t.nrm(0,"storefront-progress",82),2&r){const o=t.XpG(6);t.Y8G("type",o.getProgressType())("progress",o.installState.progress)}}function rn(r,i){if(1&r&&(t.j41(0,"p",83),t.EFF(1),t.k0s()),2&r){const o=t.XpG(6);t.R7$(),t.SpI(" ",o.installState.progress,"% ")}}function an(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",64),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(5);return t.Njj(a.onClickState(n))}),t.nrm(1,"span",55),t.DNE(2,en,1,0,"storefront-spinner",67)(3,on,1,2,"storefront-progress",80)(4,rn,2,1,"p",81),t.k0s()}if(2&r){const o=t.XpG(5);t.ZWY("button-state action-button ",o.installState.downloading?"button-state-downloading":""," ","button-state-"+o.installState.installState," ",o.deleteLoading||o.downloadLoading?"button-state-loading":"",""),t.R7$(),t.Y8G("storefrontTranslate",o.getStateText()),t.R7$(),t.Y8G("ngIf",o.deleteLoading||o.downloadLoading),t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress(!0)),t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress(!0))}}function cn(r,i){if(1&r&&(t.qex(0),t.DNE(1,an,5,9,"button",43),t.bVm()),2&r){const o=t.XpG(4);t.R7$(),t.Y8G("ngIf",o.isDownloadable())}}function sn(r,i){if(1&r&&(t.qex(0),t.DNE(1,nn,4,3,"ng-container",3)(2,cn,2,1,"ng-container",3),t.bVm()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf","MULTI"===o.downloadOptions.buttonType),t.R7$(),t.Y8G("ngIf","SINGLE"===o.downloadOptions.buttonType)}}function ln(r,i){1&r&&t.nrm(0,"span",92)}function _n(r,i){1&r&&t.nrm(0,"span",93)}function pn(r,i){if(1&r&&t.nrm(0,"span",94),2&r){const o=t.XpG(5);t.Y8G("storefrontTranslateArgs",t.eq3(1,R,o.price&&o.price.formattedPrice))}}function dn(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function gn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",88),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickPurchase(n))}),t.DNE(1,ln,1,0,"span",89)(2,_n,1,0,"span",90)(3,pn,1,3,"span",91)(4,dn,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(4);t.Y8G("ngClass",o.getPriceState())("disabled",!o.price||o.purchaseLoading),t.R7$(),t.Y8G("ngIf",!o.visible||o.priceLoading),t.R7$(),t.Y8G("ngIf",o.visible&&!o.priceLoading&&!o.price),t.R7$(),t.Y8G("ngIf",o.price),t.R7$(),t.Y8G("ngIf",o.purchaseLoading)}}function fn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",95),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickSubscribe(n))}),t.k0s()}}function un(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",96),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickLogin(n))}),t.k0s()}}function mn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",97),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickCoupon(n))}),t.k0s()}}function hn(r,i){if(1&r&&(t.qex(0),t.DNE(1,gn,5,6,"button",84)(2,fn,1,0,"button",85)(3,un,1,0,"button",86)(4,mn,1,0,"button",87),t.bVm()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf",o.purchaseOptions.purchase),t.R7$(),t.Y8G("ngIf",o.purchaseOptions.subscribe),t.R7$(),t.Y8G("ngIf",!o.loggedIn&&o.purchaseOptions.login),t.R7$(),t.Y8G("ngIf",o.purchaseOptions.coupon)}}function Cn(r,i){if(1&r&&(t.qex(0),t.nrm(1,"storefront-button",98),t.bVm()),2&r){const o=i.$implicit,e=t.XpG(3);t.R7$(),t.Y8G("baseConfig",o)("disableAnchor",!0)("baseContext",e.context)}}function En(r,i){if(1&r&&t.nrm(0,"storefront-progress",103),2&r){const o=t.XpG(4);t.Y8G("progress",o.installState.progress)("type",o.getProgressType())("showBorder",!0)}}function vn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",104),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickDownload(n))}),t.k0s()}if(2&r){const o=t.XpG(4);t.Y8G("disabled",o.downloadLoading)}}function bn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",105),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickDelete(n))}),t.k0s()}if(2&r){const o=t.XpG(4);t.Y8G("disabled",o.deleteLoading)}}function Tn(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function In(r,i){if(1&r&&(t.j41(0,"div",99),t.DNE(1,En,1,3,"storefront-progress",100)(2,vn,1,1,"button",101)(3,bn,1,1,"button",102)(4,Tn,1,0,"storefront-spinner",67),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress(!0)),t.R7$(),t.Y8G("ngIf",!o.locked&&"COMPLETE"!==o.installState.installState&&!o.installState.downloading&&!o.downloadLoading),t.R7$(),t.Y8G("ngIf",o.isDownloadDeletable()||o.isDownloadCancelable()),t.R7$(),t.Y8G("ngIf",o.downloadLoading)}}function On(r,i){if(1&r&&(t.DNE(0,Rt,2,4,"h3",31)(1,yt,2,4,"h3",32)(2,Pt,1,0,"i",33)(3,St,3,3,"div",34)(4,Lt,1,4,"div",35)(5,Mt,3,1,"span",36)(6,Bt,2,2,"div",37)(7,wt,2,2,"div",38)(8,Kt,2,2,"div",39)(9,$t,1,6,"div",40),t.j41(10,"div",41),t.DNE(11,jt,1,0,"button",42)(12,Yt,1,3,"button",43)(13,Ft,3,2,"button",44)(14,Vt,3,2,"button",45)(15,sn,3,2,"ng-container",3)(16,hn,5,4,"ng-container",3)(17,Cn,2,3,"ng-container",46),t.k0s(),t.DNE(18,In,5,4,"div",47)),2&r){const o=t.XpG(2);t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.publication),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.title),t.R7$(),t.Y8G("ngIf",o.isDownloadFinished()),t.R7$(),t.Y8G("ngIf",o.content.publicationDate&&(!o.config.hideComponents||!o.config.hideComponents.publicationDate)),t.R7$(),t.Y8G("ngIf",o.content.description&&(!o.config.hideComponents||!o.config.hideComponents.description)),t.R7$(),t.Y8G("ngIf",o.content.description&&(!o.config.hideComponents||!o.config.hideComponents.description)),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.properties),t.R7$(),t.Y8G("ngIf",!(o.config.displayCategories&&"NOTHING"===o.config.displayCategories.mode||o.config.hideComponents&&o.config.hideComponents.categories)),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.tags),t.R7$(),t.Y8G("ngForOf",o.customMessages)("ngForTrackBy",o.trackByMessage),t.R7$(2),t.Y8G("ngIf",o.config.sharing),t.R7$(),t.Y8G("ngIf",o.config.bookmark),t.R7$(),t.Y8G("ngIf",!o.locked),t.R7$(),t.Y8G("ngIf",o.locked&&o.hasPreview()),t.R7$(),t.Y8G("ngIf",o.downloadOptions&&!o.locked),t.R7$(),t.Y8G("ngIf",o.purchaseOptions&&o.locked),t.R7$(),t.Y8G("ngForOf",o.customButtons)("ngForTrackBy",o.trackByButton),t.R7$(),t.Y8G("ngIf",o.installState)}}function Dn(r,i){if(1&r&&(t.qex(0),t.DNE(1,vt,3,2,"ng-container",13),t.nI1(2,"async"),t.DNE(3,Ot,2,2,"ng-template",null,0,t.C5r)(5,kt,4,9,"ng-template",null,1,t.C5r)(7,On,19,20,"ng-template",null,2,t.C5r),t.bVm()),2&r){const o=t.sdS(4),e=t.XpG();t.R7$(),t.Y8G("ngIf",t.bMT(2,2,e.contentPath$))("ngIfElse",o)}}let xn=(()=>{var r;class i extends F.${constructor(e,n,a,s,p,_,d,E,L,j,An,kn,Rn,yn,Y,Pn,Sn,Ln){super(_,e,E,j,Y),this.elementRef=e,this.ngZone=n,this.changeDetectorRef=a,this.store=s,this.dialog=p,this.injector=_,this.eventActionService=d,this.contextService=E,this.cleanUpService=L,this.document=j,this.platformId=An,this.purpleEnv=kn,this.transferState=Rn,this.purpleService=yn,this.globalService=Y,this.anchorService=Pn,this.ssrService=Sn,this.cacheService=Ln,this.defaultConfig={...S.o9},this.priceLoading=!1,this.purchaseLoading=!1,this.downloadLoading=!1,this.deleteLoading=!1,this.openLoading=!1,this.previewLoading=!1,this.coverLoading=!1,this.bookmarkLoading=!1,this.descriptionExpanded=!1,this.downloadError=null,this.dataSourceError=null,this.visible=!1,this.anchorFeatureEnabled=!1,this.anchorPathCover=null,this.visibleProperties=[],this.contentPath$=new f.t(null),this.purchaseConfig={...D.Rp},this.isDownloadEnabled=(0,u.xl)(this.content)||(0,b.E7)(window.purple.content,{major:1,minor:6},g.IntOperation.GREATER_THAN)}get purchasable(){var e;return(null===(e=this.content)||void 0===e?void 0:e.access)===g.Access.PURCHASABLE}get hasError(){var e;return!(!this.dataSourceError||null!==(e=this.dataSource)&&void 0!==e&&e.hasData())}get contentType(){var e;return null===(e=this.content)||void 0===e?void 0:e.contentType}get postType(){return this.content&&(0,u.mF)(this.content)?this.content.postType:void 0}get contextKey(){var e,n,a;return null!==(e=null!==(n=null===(a=this.config)||void 0===a?void 0:a.contentContextKey)&&void 0!==n?n:this.baseConfig.contentContextKey)&&void 0!==e?e:i.type}get contextContent(){return this.context[this.contextKey]}get taxonomies(){var e;return null!==(e=this.content.taxonomies)&&void 0!==e?e:[]}get categories(){return this.taxonomies.filter(e=>"category"===e.type).map(e=>e.id)}get tags(){return this.taxonomies.filter(e=>"tag"===e.type).map(e=>e.id)}ngOnInit(){this.anchorFeatureEnabled=this.anchorService.isAnchorFeatureEnabled(),this.anchorFeatureEnabled||this.contentPath$.next(null),super.ngOnInit(),this.store.select((0,v.jZ)(B.O.DOWNLOAD_OPTIONS),e=>this.updateBehavior=null==e?void 0:e.autoUpdateBehavior)}ngOnDestroy(){super.ngOnDestroy(),this.downloadHandler&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.purpleService.destroyDownloadHandler(this.downloadHandler),1e3)}),this.dataSource&&this.contextService.unregisterDataSource(this.dataSource),this.trackingObserver&&this.trackingObserver.disconnect()}onConfigChanges(){var e=this;return(0,l.A)(function*(){var n;const a=e.content,s=(0,m.v3)(e.config.dataSource),p={...s,limit:1};if(e.loggedIn=!!e.context[g.METADATA_KEY.ENTITLEMENT_TOKEN],e.dataSource&&!e.dataSource.hasConfigChanged(p)&&e.content)return e.context[e.contextKey]=a,void e.updateConfig(a);if(s)delete e.content,delete e.dataSourceError,e.changeDetectorRef.detectChanges(),e.dataSource=(0,G.O8)(e.injector,p,e.elementRef.nativeElement,e.document),e.store.subscribe(e.dataSource.data$.pipe((0,M.p)(_=>_&&!!_[0])),_=>{const d=e.content;e.content=_[0],(0,T.GA)(e.content,e.purpleService).then(E=>e.locked=E),e.context[e.contextKey]=e.content,e.updateConfig(d)},C.l,C.l,"data"),e.store.subscribe(e.dataSource.error$,_=>e.dataSourceError=_,C.l,C.l,"error"),yield e.dataSource.loadData();else{const _=e.contextContent;"object"!=typeof _||e.content&&(!_||e.purchaseLoading)?e.context[e.contextKey]=e.content:(e.content=_,(0,T.GA)(e.content,e.purpleService).then(d=>e.locked=d)),e.updateConfig(a)}void 0===e.content&&(null===(n=e.baseContext)||void 0===n||!n.isGhost)&&(0,h.UE)(e.platformId)&&e.ngZone.runOutsideAngular(()=>{setTimeout(()=>{void 0===e.content&&e.ngZone.run(()=>e.dataSourceError={code:g.ERROR_CODE.ISSUE_NOT_FOUND})},1e3)})})()}updateConfig(e){var n=this;return(0,l.A)(function*(){var a;const s={...n.context};s.publication||(s.publication=n.publication),n.config=(0,m.uQ)({...S.o9,...n.baseConfig},s,n.contextService.$functions,n.globalService.getGlobalData());const p=(0,m.v3)(n.config.purchaseOptions);p&&(n.purchaseOptions=Object.keys(p).reduce((d,E)=>({...d,[E]:(0,m.v3)(p[E])}),{}),n.purchaseOptions.purchase&&"object"==typeof n.purchaseOptions.purchase&&(n.purchaseConfig={...D.Rp,...n.purchaseOptions.purchase})),n.anchorFeatureEnabled&&n.handleAnchorTags();const _={buttonClass:"action-button"};n.customButtons=n.config.customButtons.filter(d=>(0,m.Ol)(d)).map(d=>(0,m.v3)(d)).map(d=>({..._,...d,buttonClass:d.buttonClass?_.buttonClass.concat(" ",d.buttonClass):_.buttonClass})),n.customMessages=n.config.customMessages.filter(d=>(0,m.Ol)(d)).map(d=>(0,m.v3)(d)),n.downloadOptions=(0,m.v3)(n.config.downloadOptions),JSON.stringify(e)!==JSON.stringify(n.content)&&n.loadOnVisible(),n.visibleProperties=(null!==(a=n.config.renderProperties)&&void 0!==a?a:[]).map(d=>(0,m.v3)(d)).filter(d=>!!d&&void 0!==n.content.properties[d]).map(d=>({key:d,value:n.content.properties[d]})),n.content&&n.setDisplayCategories(),n.changeDetectorRef.markForCheck()})()}setDisplayCategories(){var e,n;switch(null!==(e=null===(n=this.config.displayCategories)||void 0===n?void 0:n.mode)&&void 0!==e?e:"SLUG"){case"SLUG":this.displayedCategories=this.taxonomies.filter(s=>"category"===s.type).map(s=>({id:s.id}));break;case"NAME":this.displayedCategories=this.taxonomies.filter(s=>"category"===s.type)}}handleAnchorTags(){var e=this;return(0,l.A)(function*(){e.anchorPathCover=e.anchorService.getAnchorPathForEventAction(e.config.tapCover,e.context);const n=e.anchorService.getAnchorPathForEventAction(e.config.tapContent,e.context);if(n)e.purpleEnv.isUniversal&&e.contentPath$.next(n);else{const a=yield e.anchorService.getAnchorPathForContent(e.content);a&&e.contentPath$.next(a)}})()}loadOnVisible(){var e=this;if(this.installState=null,this.price=null,this.deleteLoading=!1,this.downloadLoading=!1,this.purchaseLoading=!1,this.previewLoading=!1,this.priceLoading=!1,this.openLoading=!1,this.bookmarkLoading=!1,!this.isGhost()){if(this.config.trackVisible){const a=!0===this.config.trackVisible?0:this.config.trackVisible.trackDelay;let p,_=d=>{d[0].isIntersecting?p=setTimeout(()=>{this.getDownloadHandler().then(function(){var E=(0,l.A)(function*(L){e.publication||(yield e.loadPublication()),e.handleTrackAction("VISIBLE",L)});return function(L){return E.apply(this,arguments)}}())},a):clearTimeout(p)};this.trackingObserver=new IntersectionObserver(_,{rootMargin:"0px",threshold:!0===this.config.trackVisible?1:this.config.trackVisible.minContentVisibility}),this.trackingObserver.observe(this.elementRef.nativeElement)}this.store.subscribe((0,X.eh)(this,this.elementRef,{skipWait:this.purpleEnv.isUniversal&&!this.ssrService.currentPrebootStatus}),n=>{this.visible=!0,this.loadIssueState(),this.loadPublication(),this.loadPrice(),this.loadBookmark(),this.purpleService.addInvalidationListener((0,l.A)(function*(){e.dataSource&&(e.content=yield e.purpleService.getIssue(e.content.id).catch(()=>null),e.locked=yield(0,T.GA)(e.content,e.purpleService),e.context[e.contextKey]=e.content,e.updateConfig(e.content)),e.loadPrice()}))},C.l,C.l,"visible")}}loadIssueState(){var e=this;return(0,l.A)(function*(){!e.content||!e.downloadOptions||(yield e.getDownloadHandler(),e.downloadHandler&&(e.store.subscribe(e.downloadHandler.updates$,n=>{e.installState=n,n&&n.error&&!e.downloadError&&(e.downloadError=n.error),e.changeDetectorRef.detectChanges()},C.l,C.l,"installState"),e.downloadHandler.autoUpdate&&e.downloadHandler.downloadStarted&&e.downloadHandler.update()),e.changeDetectorRef.detectChanges())})()}loadPrice(){var e=this;return(0,l.A)(function*(){if(e.purchaseOptions&&e.locked){var n;e.priceLoading=!0;const a=e.content.productId||(null===(n=yield e.purpleService.getRepeatablePublicationProductByPublicationId(e.content.publicationId))||void 0===n?void 0:n.productId);a?(e.store.select((0,W.Zt)(a),s=>{(0,V.b)(s)||(e.price=s),e.priceLoading=!1}),e.store.dispatch((0,H.qF)({productId:a}))):e.priceLoading=!1}})()}loadPublication(){var e=this;return(0,l.A)(function*(){if(e.content)try{const n=e.content.publicationId,a=(0,t.zw6)("publication_".concat(n));e.transferState.hasKey(a)?(e.publication=e.transferState.get(a,null),(0,h.UE)(e.platformId)&&e.transferState.remove(a)):(e.publication=yield e.purpleService.getPublication(n),(0,h.UE)(e.platformId)||e.transferState.onSerialize(a,()=>e.publication)),yield e.updateConfig(e.content),e.changeDetectorRef.detectChanges()}catch{console.log("error loading publication for content",e)}})()}loadBookmark(){var e=this;return(0,l.A)(function*(){e.config.bookmark&&e.store.subscribe(e.purpleService.bookmarks.pipe((0,N.T)(n=>n.find(a=>a.contentId===e.content.id))),n=>e.bookmark=n,C.l,C.l,"bookmark")})()}getData(){return this.content}getImageHeight(){return this.config.coverHeight||this.getDefaultImageHeight()}hasPreview(){return(0,u.xl)(this.content)?!!this.content.previewIssue:!(0,u.mF)(this.content)&&!(0,u.G4)(this.content)&&void 0}getDefaultImageHeight(){return this.template===S.qc.DETAILS?U.q.AUTO:U.q.FIXED}handleCacheDownload(){var e=this;return(0,l.A)(function*(){(0,u.G4)(e.content)?yield e.downloadBundle():(0,u.mF)(e.content)&&(yield e.downloadPost(e.content)),e.cacheService.serializeCachedRequests()})()}onClickDownload(e){var n=this;return(0,l.A)(function*(){e.stopPropagation(),yield n.handleCacheDownload(),n.downloadLoading=!0,delete n.downloadError,n.changeDetectorRef.detectChanges();const a=yield n.getDownloadHandler();if(n.handleTrackAction("DOWNLOAD_CLICKED",a),a){if(n.purpleService.downloadOptions.showConfirmDownloadDialog){const s={content:n.content,download:{totalSize:-1}};try{yield n.dialog.confirm({text:"ISSUE_DOWNLOAD_CONFIRM_MESSAGE",args:[s]},{text:"ISSUE_DOWNLOAD_CONFIRM_TITLE",args:[s]},"ISSUE_DOWNLOAD_CONFIRM_OK","ISSUE_DOWNLOAD_CONFIRM_CANCEL")}catch{return n.handleTrackAction("DOWNLOAD_CONFIRM_CANCELLED",a,void 0,"_COLLECTION"),void(n.downloadLoading=!1)}}try{yield a.download(),n.cleanUpService.addIssue(n.content.id),n.installState.downloading=!0,n.installState.installState=g.ContentInstallState.INCOMPLETE,n.installState.progress=0}catch(s){console.error(s),s.code===g.ERROR_CODE.PAYMENT_REQUIRED&&n.purpleService.invalidate()}}n.downloadLoading=!1,n.changeDetectorRef.detectChanges()})()}downloadPost(e,n=0){var a=this;return(0,l.A)(function*(){yield a.purpleService.getOptionalData(e,{...(0,u.ci)(a.config,a.purpleEnv),downloadedById:e.id},n),a.downloadLoading=!1,a.changeDetectorRef.detectChanges()})()}downloadBundle(){var e=this;return(0,l.A)(function*(){const n={first:24,contentFilter:{properties:{key:"slug",value:e.content.properties.slug}},fetchOptions:{downloadedById:e.content.id}};yield e.purpleService.getCatalogContents(n),e.content=yield e.purpleService.getCatalogContent(e.content.id,!1,{includeBundledContent:!0,downloadedById:e.content.id}),(0,u.Ig)(e.content).forEach(function(){var s=(0,l.A)(function*(p,_){yield e.downloadPost(p,_)});return function(p,_){return s.apply(this,arguments)}}())})()}getBundleDeleteParams(){return[{first:1,fetchOptions:{includeBundledContent:!0},contentFilter:{id:{value:this.content.id}}},{first:24,contentFilter:{properties:{key:"slug",value:this.content.properties.slug}}}]}deleteBundleEntriesFromCache(e){var n=this;return(0,l.A)(function*(){const a=n.getBundleDeleteParams();let s=[{cacheName:x.B.PURPLE_CONTENT_CACHE,cacheEntry:n.content.id},{cacheName:x.B.PURPLE_OPTIONAL_CACHE,cacheEntry:n.content.id}];for(const p of a){const _="".concat(e,":").concat(JSON.stringify(p));s.push({cacheName:x.B.PURPLE_API_CACHE,cacheEntry:_})}for(const p of s)yield n.cacheService.handleDeleteOnDownloadedCache(p.cacheName,p.cacheEntry,n.content.id)})()}deleteCache(){var e=this;return(0,l.A)(function*(){const n="getContents";(0,u.mF)(e.content)?yield e.deletePost(n,e.content.id):(0,u.G4)(e.content)&&(yield e.deleteBundle(n))})()}deleteBundle(e){var n=this;return(0,l.A)(function*(){yield n.deleteBundleEntriesFromCache(e);let a=(0,u.Ig)(n.content);for(const s of a)yield n.deletePost(e,s.id)})()}deletePost(e,n){var a=this;return(0,l.A)(function*(){const s={first:1,fetchOptions:(0,u.ci)(a.config,a.purpleEnv),contentFilter:{id:{value:n}}},p=[{cacheName:x.B.PURPLE_API_CACHE,cacheEntry:"".concat(e,":").concat(JSON.stringify(s))},{cacheName:x.B.PURPLE_CONTENT_CACHE,cacheEntry:n},{cacheName:x.B.PURPLE_OPTIONAL_CACHE,cacheEntry:n}];for(const _ of p)yield a.cacheService.handleDeleteOnDownloadedCache(_.cacheName,_.cacheEntry,a.content.id)})()}onClickDelete(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),n.config.deleteConfirm)try{yield n.dialog.confirm({text:"ISSUE_DELETE_MESSAGE",args:[n.content.name]},"ISSUE_DELETE_TITLE","ISSUE_DELETE_CONFIRM","ISSUE_DELETE_CANCEL"),yield n.deleteIssue()}catch{}else yield n.deleteIssue();yield n.deleteCache()})()}onClickCancel(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),!n.deleteLoading)try{n.deleteLoading=!0,delete n.downloadError,n.changeDetectorRef.detectChanges(),n.getDownloadHandler().then(a=>n.handleTrackAction("CANCEL_CLICKED",a)),n.cleanUpService.removeIssue(n.content.id),n.downloadHandler&&(yield n.downloadHandler.delete()),n.deleteLoading=!1,n.changeDetectorRef.detectChanges(),n.delete.emit(n.content)}catch(a){console.log(a),n.deleteLoading=!1,n.changeDetectorRef.detectChanges()}})()}onClickRead(e){var n=this;return(0,l.A)(function*(){n.contextService.closeModal(n.elementRef.nativeElement),n.contextService.closeModalSubject.observers.length>0?n.contextService.closeModalCompleteSubject.pipe((0,P.s)(n.contextService.closeModalSubject.observers.length)).subscribe(()=>{},()=>{},(0,l.A)(function*(){return n.openContent("READ_CLICKED")})):n.openContent("READ_CLICKED")})()}onClickPurchase(e){var n=this;return(0,l.A)(function*(){var a;e.stopPropagation(),n.purchaseLoading=!0,n.changeDetectorRef.detectChanges();const s={...n.purchaseConfig,productId:n.price.productId,price:n.price.price,currency:n.price.currency};n.content.productId!==(null===(a=n.price)||void 0===a?void 0:a.productId)&&(s.consumeOptions={issueIds:[],contentIds:[n.content.id]}),yield n.eventActionService.processPurchaseAction(s,n),n.purchaseLoading=!1,n.changeDetectorRef.detectChanges()})()}onClickPreview(e){var n=this;return(0,l.A)(function*(){n.contextService.closeModal(n.elementRef.nativeElement),n.contextService.closeModalSubject.observers.length>0?n.contextService.closeModalCompleteSubject.pipe((0,P.s)(n.contextService.closeModalSubject.observers.length)).subscribe(()=>{},()=>{},(0,l.A)(function*(){return n.openContent("PREVIEW_CLICKED")})):n.openContent("PREVIEW_CLICKED")})()}onClickSubscribe(e){e.stopPropagation(),this.getDownloadHandler().then(n=>this.handleTrackAction("SUBSCRIBE_CLICKED",n)),this.eventActionService.processEventAction({type:O.H.SUBSCRIPTIONS,params:{content:this.content.id,publication:this.content.publicationId}},this)}onClickLogin(e){e.stopPropagation(),this.getDownloadHandler().then(n=>this.handleTrackAction("LOGIN_CLICKED",n)),this.eventActionService.processEventAction({type:O.H.LOGIN,params:{content:this.content.id,publication:this.content.publicationId}},this)}onClickCoupon(e){e.stopPropagation(),this.getDownloadHandler().then(n=>this.handleTrackAction("COUPON_CLICKED",n)),this.eventActionService.processEventAction({type:O.H.COUPON,params:{content:this.content.id,publication:this.content.publicationId}},this)}getId(){return this.content&&this.content.id}getTrackingBaseKey(e,n){return this.elementId||e&&"".concat(e.getContentType(n))||this.getType()}getTrackingParams(e){const n=(0,b.bJ)(this.content,this.publication,this.price);return{...e&&(0,b.Gw)(e.getContentType())?(0,b.VP)(e.content,e.publication,this.price,"SOURCE_"):{},...n}}handleTrackAction(e,n,a,s){if(!n)return;const p="".concat(this.getTrackingBaseKey(n,s),"_").concat(e);let _=a?(0,b.aM)(a):{};_={..._,...this.getTrackingParams(n)},this.store.dispatch((0,z.k4)({url:this.document.location.href,key:p,params:_}))}onClickCover(e){this.clickContentAction(e,"tapCover","COVER_CLICKED")}onClickContent(e){this.clickContentAction(e,"tapContent","ISSUE_CLICKED")}clickContentAction(e,n,a){var s=this;return(0,l.A)(function*(){s.anchorFeatureEnabled&&e.preventDefault();const p=(0,m.v3)(s.config[n]);if(p){if(e.stopPropagation(),s.coverLoading)return;s.coverLoading=!0,s.changeDetectorRef.detectChanges(),s.getDownloadHandler().then(_=>s.handleTrackAction(a,_)),yield s.eventActionService.processEventAction(p,s),s.coverLoading=!1,s.changeDetectorRef.detectChanges()}})()}isGhost(){return!(this.content&&this.content.id||this.dataSourceError)}onClickState(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),n.installState)return n.installState.downloading?n.onClickCancel(e):n.installState.installState===g.ContentInstallState.COMPLETE?n.onClickDelete(e):n.onClickDownload(e)})()}onClickBookmark(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),!n.bookmarkLoading){if(n.bookmarkLoading=!0,n.bookmark){n.config.bookmark&&"boolean"!=typeof n.config.bookmark&&n.config.bookmark.deleteConfirm&&(yield n.dialog.confirm(n.bookmark.title?{text:"BOOKMARK_DELETE_MESSAGE_WITH_TITLE",args:[n.bookmark.title]}:"BOOKMARK_DELETE_MESSAGE","BOOKMARK_DELETE_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL")),n.getDownloadHandler().then(a=>n.handleTrackAction("BOOKMARK_DELETE_CLICKED",a,n.bookmark));try{yield n.purpleService.deleteBookmark({id:n.bookmark.id}),n.getDownloadHandler().then(a=>n.handleTrackAction("BOOKMARK_DELETED",a,n.bookmark))}catch(a){n.dialog.alert(n.bookmark.title?{text:"ERROR_DELETE_BOOKMARK_WITH_TITLE",args:(0,k._3)((0,k.E2)(a,n.contextService),n.bookmark)}:{text:"ERROR_DELETE_BOOKMARK",args:[(0,k.E2)(a,n.contextService)]},"DIALOG_ERROR"),n.getDownloadHandler().then(s=>n.handleTrackAction("BOOKMARK_DELETE_FAILED",s,n.bookmark))}}else{n.getDownloadHandler().then(s=>n.handleTrackAction("BOOKMARK_ADD_CLICKED",s,n.bookmark));let a={title:n.content.name,description:n.content.description,issueId:n.content.id,customData:{contentType:n.content.contentType}};n.content.thumbnails&&n.content.thumbnails.default&&(a.thumbnailURL=n.content.thumbnails.default),"object"==typeof n.config.bookmark&&(a={...a,...n.config.bookmark});try{yield n.purpleService.createBookmark(a),n.getDownloadHandler().then(s=>n.handleTrackAction("BOOKMARK_ADDED",s,n.bookmark))}catch(s){n.getDownloadHandler().then(p=>n.handleTrackAction("BOOKMARK_ADD_FAILED",p,n.bookmark)),n.dialog.alert({text:"ERROR_ADD_BOOKMARK",args:n.getErrorDialogArgs(s)},"DIALOG_ERROR")}}n.bookmarkLoading=!1,n.changeDetectorRef.detectChanges()}})()}onClickShare(e){var n=this;return(0,l.A)(function*(){e.stopPropagation(),n.getDownloadHandler().then(s=>n.handleTrackAction("SHARE_CLICKED",s));let a={text:n.content.name,url:n.getSharingUrl()};"object"==typeof n.config.sharing&&(a={...a,...n.config.sharing});try{yield n.purpleService.share(a),n.getDownloadHandler().then(s=>n.handleTrackAction("SHARED",s))}catch{n.getDownloadHandler().then(p=>n.handleTrackAction("SHARE_FAILED",p)),n.dialog.alert("ERROR_SHARE","DIALOG_ERROR")}})()}getSharingUrl(){return"".concat(this.context[g.METADATA_KEY.MANAGER_BASE_URL],"/i/").concat(this.context[g.METADATA_KEY.APP_ID],"/").concat(this.content.id,"?preview=").concat(this.context[g.METADATA_KEY.PREVIEW_APP])}getStateText(){return this.downloadLoading||this.deleteLoading?" ":this.installState?this.installState.downloading?"ISSUE_ACTION_CANCEL":this.installState.installState===g.ContentInstallState.COMPLETE?"ISSUE_ACTION_DELETE":"ISSUE_ACTION_DOWNLOAD":void 0}getPriceState(){return this.priceLoading?"price-loading":this.priceLoading||this.price?this.price?"price-available":"":"price-unavailable"}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"downloadOptions","customButtons","customMessages"]}getDownloadHandler(){var e=this;return(0,l.A)(function*(){return(0,h.UE)(e.platformId)?((!e.downloadHandler||e.downloadHandler.content.id!==e.content.id)&&(e.downloadHandler&&(yield e.purpleService.destroyDownloadHandler(e.downloadHandler)),e.downloadHandler=yield e.purpleService.getDownloadHandler(e.content,e.dialog)),e.downloadHandler):null})()}isDownloadable(){return this.isDownloadEnabled&&this.installState}isDownloadInProgress(e=!1){return!this.deleteLoading&&!this.downloadLoading&&this.installState&&this.installState.downloading&&!(this.installState.updating&&this.updateBehavior===D.FZ.SILENT)&&(e||"MULTI"===this.downloadOptions.buttonType)}isDownloadCancelable(){return!!this.isDownloadEnabled&&!this.downloadLoading&&this.installState.downloading&&!(this.installState.updating&&this.updateBehavior===D.FZ.SILENT)}isDownloadDeletable(){return!!this.isDownloadEnabled&&!this.downloadLoading&&this.installState.installState!==g.ContentInstallState.NOT_INSTALLED&&(!this.installState.downloading||this.installState.updating&&this.updateBehavior===D.FZ.SILENT)}isDownloadFinished(){return!!this.isDownloadEnabled&&this.downloadOptions&&this.downloadOptions.statusIndicator&&this.installState&&(this.installState.installState===g.ContentInstallState.COMPLETE&&!this.locked||this.installState.updating&&this.updateBehavior===D.FZ.SILENT)}showUpdateBehavior(){if(this.installState)return(0,T.YH)(this.installState,this.content.contentType===g.CatalogContentType.ISSUE)}reload(){window.location.reload()}hasContextChanged(e){var n;return!(null!==(n=this.config)&&void 0!==n&&n.dataSource)&&!w(this.contextContent,this.content)||!w(e[g.METADATA_KEY.ENTITLEMENT_TOKEN],this.context[g.METADATA_KEY.ENTITLEMENT_TOKEN])||super.hasContextChanged(e)}deleteIssue(){var e=this;return(0,l.A)(function*(){if(!e.deleteLoading)try{e.deleteLoading=!0,delete e.downloadError,e.changeDetectorRef.detectChanges(),e.getDownloadHandler().then(n=>e.handleTrackAction("DELETE_CLICKED",n)),e.cleanUpService.removeIssue(e.content.id),e.downloadHandler&&(yield e.downloadHandler.delete()),e.deleteLoading=!1,e.changeDetectorRef.detectChanges(),e.delete.emit(e.content)}catch(n){console.log(n),e.deleteLoading=!1,e.changeDetectorRef.detectChanges()}})()}getProgressType(){const n=(this.config||this.baseConfig).downloadOptions;return n.progressType?n.progressType:this.template===S.qc.COVER?K.s.RADIAL:K.s.BAR}getErrorDialogArgs(e){return(0,k.$C)((0,k.E2)(e,this.contextService),this.content)}trackByProperty(e,n){var a;return null!==(a=null==n?void 0:n.key)&&void 0!==a?a:e}trackByCategory(e,n){var a;return null!==(a=null==n?void 0:n.id)&&void 0!==a?a:e}trackByTag(e,n){return null!=n?n:e}trackByMessage(e,n){var a;return null!==(a=null==n?void 0:n.message)&&void 0!==a?a:e}trackByButton(e,n){var a;return null!==(a=null==n?void 0:n.id)&&void 0!==a?a:e}openContent(e){var n=this;return(0,l.A)(function*(){n.openLoading=!0,n.changeDetectorRef.detectChanges(),n.getDownloadHandler().then(a=>n.handleTrackAction(e,a)),yield n.eventActionService.processOpenContentAction({type:O.H.OPEN_CONTENT,...n.config.openContent},n),n.openLoading=!1,n.changeDetectorRef.detectChanges()})()}getContextKey(){return this.contextKey}}return(r=i).type="content",r.\u0275fac=function(e){return new(e||r)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(A.B),t.rXU(Z.o),t.rXU(t.zZn),t.rXU(J.G),t.rXU(Q.V),t.rXU(q.I),t.rXU(h.qQ),t.rXU(t.Agw),t.rXU(b.r6),t.rXU(t.pJN),t.rXU(T.Wj),t.rXU(tt.d),t.rXU(nt.X),t.rXU(et.i),t.rXU(ot._))},r.\u0275cmp=t.VBU({type:r,selectors:[["storefront-content"]],hostVars:8,hostBindings:function(e,n){2&e&&(t.BMQ("content-type",n.contentType)("post-type",n.postType),t.AVh("locked",n.locked)("purchasable",n.purchasable)("error",n.hasError))},features:[t.Jv_([A.B]),t.Vt3],decls:2,vars:2,consts:[["noAnchorTemplate",""],["imageTemplate",""],["contentData",""],[4,"ngIf"],[1,"content-image"],[3,"height"],[1,"content-data"],[1,"content-title"],[1,"content-description"],["class","content-error",4,"ngIf"],[1,"content-error"],["storefrontTranslate","CONTENT_ERROR",3,"storefrontTranslateArgs"],["storefrontTranslate","CONTENT_ERROR_BUTTON","mat-ripple","",1,"action-button",3,"click"],[4,"ngIf","ngIfElse"],["class","content-image",3,"href","click",4,"ngIf"],["class","content-data",3,"href","expanded","click",4,"ngIf"],[1,"content-image",3,"click","href"],[4,"ngTemplateOutlet"],[1,"content-data",3,"click","href"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","content-image",3,"click",4,"ngIf"],["class","content-data",3,"expanded","click",4,"ngIf"],[1,"content-image",3,"click"],[1,"content-data",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"lcpPrioritized","src","imageResolutionStrategy","height","extendedThumbnail","label"],["class","content-update-badge",4,"ngIf"],[3,"type","progress",4,"ngIf"],[1,"content-update-badge"],["storefrontTranslate","CONTENT_UPDATE_BADGE_MESSAGE"],[3,"type","progress"],["class","content-publication-title",3,"click",4,"ngIf"],["class","content-title",3,"click",4,"ngIf"],["class","icon icon-check-bg",4,"ngIf"],["class","content-pub-date",4,"ngIf"],["class","content-description","storefrontCheckOverflow","vertical","storefrontCheckOverflowTarget","self",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],["class","content-description-expand-toggle",3,"click",4,"ngIf"],["class","content-properties",4,"ngIf"],["class","content-categories",4,"ngIf"],["class","content-tags",4,"ngIf"],[3,"class","storefrontTranslate","storefrontTranslateArgs",4,"ngFor","ngForOf","ngForTrackBy"],[1,"content-actions"],["class","icon icon-share","mat-ripple","",3,"click",4,"ngIf"],["mat-ripple","",3,"class","click",4,"ngIf"],["class","button-read action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","button-preview action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","content-state",4,"ngIf"],[1,"content-publication-title",3,"click"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"content-title",3,"click"],[1,"icon","icon-check-bg"],[1,"content-pub-date"],["storefrontCheckOverflow","vertical","storefrontCheckOverflowTarget","self",1,"content-description",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"content-description-expand-toggle",3,"click"],[3,"storefrontTranslate"],[1,"icon","icon-arrow-down"],[1,"content-properties"],[3,"class",4,"ngFor","ngForOf","ngForTrackBy"],[1,"content-categories"],["purpleColorize","accent","purpleColorizeProps","background-color",3,"class",4,"ngFor","ngForOf","ngForTrackBy"],["purpleColorize","accent","purpleColorizeProps","background-color"],[1,"content-tags"],["mat-ripple","",1,"icon","icon-share",3,"click"],["mat-ripple","",3,"click"],["mat-ripple","",1,"button-read","action-button",3,"click","disabled"],["storefrontTranslate","CONTENT_ACTION_READ"],["class","button-spinner",4,"ngIf"],[1,"button-spinner"],["mat-ripple","",1,"button-preview","action-button",3,"click","disabled"],["storefrontTranslate","CONTENT_ACTION_PREVIEW"],["class","button-download action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","button-delete action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","button-cancel action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["mat-ripple","",1,"button-cancel","action-button",3,"click","disabled"],["storefrontTranslate","CONTENT_ACTION_CANCEL"],["mat-ripple","",1,"button-download","action-button",3,"click","disabled"],["storefrontTranslate","ISSUE_ACTION_DOWNLOAD"],["mat-ripple","",1,"button-delete","action-button",3,"click","disabled"],["storefrontTranslate","ISSUE_ACTION_DELETE"],["message","",3,"type","progress",4,"ngIf"],["class","progress-percentage",4,"ngIf"],["message","",3,"type","progress"],[1,"progress-percentage"],["class","button-purchase action-button","mat-ripple","",3,"ngClass","disabled","click",4,"ngIf"],["class","button-subscribe action-button","mat-ripple","","storefrontTranslate","CONTENT_ACTION_SUBSCRIBE",3,"click",4,"ngIf"],["class","button-login action-button","mat-ripple","","storefrontTranslate","CONTENT_ACTION_LOGIN",3,"click",4,"ngIf"],["class","button-coupon action-button","mat-ripple","","storefrontTranslate","CONTENT_ACTION_COUPON",3,"click",4,"ngIf"],["mat-ripple","",1,"button-purchase","action-button",3,"click","ngClass","disabled"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_LOADING",4,"ngIf"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_UNAVAILABLE",4,"ngIf"],["storefrontTranslate","CONTENT_ACTION_PURCHASE",3,"storefrontTranslateArgs",4,"ngIf"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_LOADING"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_UNAVAILABLE"],["storefrontTranslate","CONTENT_ACTION_PURCHASE",3,"storefrontTranslateArgs"],["mat-ripple","","storefrontTranslate","CONTENT_ACTION_SUBSCRIBE",1,"button-subscribe","action-button",3,"click"],["mat-ripple","","storefrontTranslate","CONTENT_ACTION_LOGIN",1,"button-login","action-button",3,"click"],["mat-ripple","","storefrontTranslate","CONTENT_ACTION_COUPON",1,"button-coupon","action-button",3,"click"],[1,"button-custom",3,"baseConfig","disableAnchor","baseContext"],[1,"content-state"],[3,"progress","type","showBorder",4,"ngIf"],["class","icon icon-download-circle","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","icon icon-delete","mat-ripple","",3,"disabled","click",4,"ngIf"],[3,"progress","type","showBorder"],["mat-ripple","",1,"icon","icon-download-circle",3,"click","disabled"],["mat-ripple","",1,"icon","icon-delete",3,"click","disabled"]],template:function(e,n){1&e&&t.DNE(0,ut,7,2,"ng-container",3)(1,Dn,9,4,"ng-container",3),2&e&&(t.Y8G("ngIf",!n.content||n.dataSourceError),t.R7$(),t.Y8G("ngIf",n.content&&n.config&&!n.dataSourceError))},dependencies:[h.YU,h.Sq,h.bT,h.T3,K.X,rt.G,at.M,it.t,ct.r6,st.Q,U.h,h.Jj,lt.w,_t.Z],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-content{display:flex;flex-direction:column;position:relative}storefront-content .content-image{position:relative;overflow:hidden}storefront-content .content-image storefront-spinner{position:absolute;top:0;height:100%;width:100%;background-color:#0000001a}storefront-content .content-image .content-update-badge{--paddingVert: .25em;--fontSize: .8em;--width: 200%;--offset: calc(var(--fontSize) * 3);position:absolute;top:calc(var(--fontSize) + var(--paddingVert));left:calc(var(--width) / -2 + var(--offset));display:flex;justify-content:center;width:var(--width);padding:var(--paddingVert) 0;background:var(--contentUpdateBadgeBgColor);transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}@media (max-width: 767px) and (orientation: portrait){storefront-content .content-image .content-update-badge{--fontSize: .6em}}@media (max-width: 330px) and (orientation: portrait){storefront-content .content-image .content-update-badge{--fontSize: .6em}}storefront-content .content-image .content-update-badge span{max-width:80px;text-align:center;font-size:var(--fontSize);color:var(--contentUpdateBadgeColor);-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;text-overflow:ellipsis;overflow:hidden}@media (max-width: 767px) and (orientation: portrait){storefront-content .content-image .content-update-badge span{max-width:60px}}@media (max-width: 330px) and (orientation: portrait){storefront-content .content-image .content-update-badge span{max-width:60px}}storefront-content storefront-progress[type=BAR]{display:none;position:absolute;background-color:var(--contentProgressBgColor);border-radius:var(--borderRadius);overflow:hidden;text-align:center;padding:var(--contentProgressPaddingVert) var(--contentProgressPaddingHoriz);z-index:0;bottom:0;left:0;right:0;top:0}storefront-content .content-image storefront-progress[type=BAR]{top:auto;bottom:var(--contentProgressMarginVert);left:var(--contentProgressMarginHoriz);right:var(--contentProgressMarginHoriz)}storefront-content .content-data{display:flex;flex-direction:column;overflow:hidden;flex-grow:1}storefront-content .content-data .content-description-expand-toggle{display:none}storefront-content .content-data .content-description-expand-toggle i{display:inline-block;transition:transform .3s ease;font-size:12px;padding:0 4px}storefront-content .content-title{margin:.5em 0}storefront-content .content-description{color:var(--secondaryTextColor);width:100%;white-space:pre-wrap}storefront-content .content-custom-message{color:var(--textColor)}storefront-content storefront-image{width:100%}storefront-content .content-actions{display:none;justify-content:space-between;z-index:1}storefront-content .content-actions button{color:#fff;background-color:var(--secondaryColor);padding:0}storefront-content .content-actions button.button-purchase,storefront-content .content-actions button.button-subscribe,storefront-content .content-actions button.button-download,storefront-content .content-actions button.button-read{background-color:var(--primaryColor)}storefront-content .content-actions button.button-state-downloading.button-state-INCOMPLETE .progress-percentage{display:none}storefront-content .content-actions button[disabled]{opacity:.5}storefront-content .content-actions button span{position:relative;z-index:1}storefront-content .content-actions button.icon{color:var(--primaryColor);background-color:transparent;width:1.4em;height:1.4em;font-size:1.4em}storefront-content .content-state{display:none}storefront-content .content-error .action-button{background-color:var(--secondaryColor);color:#fff;display:block}storefront-content[template=cover] .content-image{width:100%}storefront-content[template=cover] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=cover] .content-data{flex-direction:row;align-items:center}storefront-content[template=cover] .content-data>i,storefront-content[template=cover] .content-data .content-state i,storefront-content[template=cover] .content-data .content-state button,storefront-content[template=cover] .content-data .content-state storefront-progress,storefront-content[template=cover] .content-data .content-state storefront-spinner{font-size:21px;height:22px;width:22px;color:var(--secondaryColor)}storefront-content[template=cover] .content-data>i.icon-delete,storefront-content[template=cover] .content-data .content-state i.icon-delete,storefront-content[template=cover] .content-data .content-state button.icon-delete,storefront-content[template=cover] .content-data .content-state storefront-progress.icon-delete,storefront-content[template=cover] .content-data .content-state storefront-spinner.icon-delete{width:42px;height:42px;position:absolute;top:-20px;right:-20px;border-radius:100%;font-size:10px;color:#fff;padding:10px}storefront-content[template=cover] .content-data>i.icon-delete:after,storefront-content[template=cover] .content-data .content-state i.icon-delete:after,storefront-content[template=cover] .content-data .content-state button.icon-delete:after,storefront-content[template=cover] .content-data .content-state storefront-progress.icon-delete:after,storefront-content[template=cover] .content-data .content-state storefront-spinner.icon-delete:after{background-color:var(--secondaryColor);width:22px;height:22px;border-radius:100%;display:flex;justify-content:center;align-items:center}storefront-content[template=cover] .content-state{display:flex;right:0;bottom:0}storefront-content[template=cover] .content-state storefront-spinner{position:relative;z-index:1;--spinnerColor: var(--secondaryColor);background-color:transparent;padding:0}storefront-content[template=cover] .content-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}storefront-content[template=cover] .content-publication-title,storefront-content[template=cover] .content-description,storefront-content[template=cover] .content-categories,storefront-content[template=cover] .content-tags,storefront-content[template=cover] .content-pub-date,storefront-content[template=cover] .content-properties,storefront-content[template=cover] .content-custom-message{display:none}storefront-content[template=cover] .content-publication-title .content-tag,storefront-content[template=cover] .content-publication-title .content-category,storefront-content[template=cover] .content-description .content-tag,storefront-content[template=cover] .content-description .content-category,storefront-content[template=cover] .content-categories .content-tag,storefront-content[template=cover] .content-categories .content-category,storefront-content[template=cover] .content-tags .content-tag,storefront-content[template=cover] .content-tags .content-category,storefront-content[template=cover] .content-pub-date .content-tag,storefront-content[template=cover] .content-pub-date .content-category,storefront-content[template=cover] .content-properties .content-tag,storefront-content[template=cover] .content-properties .content-category,storefront-content[template=cover] .content-custom-message .content-tag,storefront-content[template=cover] .content-custom-message .content-category{display:none}storefront-content[template=card]{border-radius:4px;box-shadow:0 0 5px 2px #0000001a;padding-bottom:var(--gutter);overflow:hidden;background-color:#fff}storefront-content[template=card] storefront-image[height-strategy=FIXED]{padding-top:75%}storefront-content[template=card] storefront-image[height-strategy=FIXED]>img{object-fit:cover;width:100%}storefront-content[template=card] .content-title,storefront-content[template=card] .content-pub-date,storefront-content[template=card] .content-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-left:calc(var(--gutter) / 2);margin-right:calc(var(--gutter) / 2);width:initial}storefront-content[template=card] .content-publication-title,storefront-content[template=card] .content-categories,storefront-content[template=card] .content-tags,storefront-content[template=card] .content-properties,storefront-content[template=card] .content-custom-message{display:none}storefront-content[template=card] .content-publication-title .content-tag,storefront-content[template=card] .content-publication-title .content-category,storefront-content[template=card] .content-categories .content-tag,storefront-content[template=card] .content-categories .content-category,storefront-content[template=card] .content-tags .content-tag,storefront-content[template=card] .content-tags .content-category,storefront-content[template=card] .content-properties .content-tag,storefront-content[template=card] .content-properties .content-category,storefront-content[template=card] .content-custom-message .content-tag,storefront-content[template=card] .content-custom-message .content-category{display:none}storefront-content[template=highlight]{flex-direction:row;padding:calc(var(--gutter) / 2);width:100%}storefront-content[template=highlight] .content-image{width:calc(43% - var(--gutter) / 2);margin-right:var(--gutter);flex-shrink:0;align-self:flex-end}storefront-content[template=highlight] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}@media (max-width: 533px) and (orientation: portrait),(max-height: 533px) and (orientation: landscape){storefront-content[template=highlight] .content-image{width:calc(50% - (var(--gutter)))}}storefront-content[template=highlight] storefront-progress[type=BAR]{display:block}storefront-content[template=highlight] .content-data{margin-left:var(--gutter)}storefront-content[template=highlight] .content-title{font-size:2em;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}storefront-content[template=highlight] .content-publication-title,storefront-content[template=highlight] .content-pub-date,storefront-content[template=highlight] .content-properties,storefront-content[template=highlight] .content-categories,storefront-content[template=highlight] .content-tags{display:none}storefront-content[template=highlight] .content-publication-title .content-tag,storefront-content[template=highlight] .content-publication-title .content-category,storefront-content[template=highlight] .content-pub-date .content-tag,storefront-content[template=highlight] .content-pub-date .content-category,storefront-content[template=highlight] .content-properties .content-tag,storefront-content[template=highlight] .content-properties .content-category,storefront-content[template=highlight] .content-categories .content-tag,storefront-content[template=highlight] .content-categories .content-category,storefront-content[template=highlight] .content-tags .content-tag,storefront-content[template=highlight] .content-tags .content-category{display:none}storefront-content[template=highlight] .content-custom-message{margin:var(--gutter) 0}storefront-content[template=highlight] .content-actions{display:flex;flex-direction:column;flex-grow:1;justify-content:flex-end}storefront-content[template=highlight] .content-actions storefront-button button{width:100%}storefront-content[template=details] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=details] .content-data{align-items:center}storefront-content[template=details] .content-data.expanded .content-description{-webkit-line-clamp:unset}storefront-content[template=details] .content-data.expanded .content-description-expand-toggle{display:block}storefront-content[template=details] .content-data.expanded .content-description-expand-toggle i{transform:rotate(180deg)}storefront-content[template=details] .content-data .content-publication-title,storefront-content[template=details] .content-data .content-properties,storefront-content[template=details] .content-data .content-categories,storefront-content[template=details] .content-data .content-tags{display:none}storefront-content[template=details] .content-data .content-publication-title .content-tag,storefront-content[template=details] .content-data .content-publication-title .content-category,storefront-content[template=details] .content-data .content-publication-title .content-property,storefront-content[template=details] .content-data .content-properties .content-tag,storefront-content[template=details] .content-data .content-properties .content-category,storefront-content[template=details] .content-data .content-properties .content-property,storefront-content[template=details] .content-data .content-categories .content-tag,storefront-content[template=details] .content-data .content-categories .content-category,storefront-content[template=details] .content-data .content-categories .content-property,storefront-content[template=details] .content-data .content-tags .content-tag,storefront-content[template=details] .content-data .content-tags .content-category,storefront-content[template=details] .content-data .content-tags .content-property{display:none}storefront-content[template=details] storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=details] storefront-progress[type=BAR]{display:block}storefront-content[template=details] .content-pub-date{display:none}storefront-content[template=details] .content-description{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;text-overflow:ellipsis;overflow:hidden}storefront-content[template=details] .content-description.scrollable-vert+.content-description-expand-toggle{display:flex}storefront-content[template=details] .content-description-expand-toggle{align-self:flex-start}storefront-content[template=details] .content-custom-message{margin-top:var(--gutter)}storefront-content[template=details] .content-actions{display:grid;width:100%;grid-template-columns:1fr 1fr;grid-column-gap:var(--gutter);margin-top:var(--gutter)}storefront-content[template=details] .content-actions>button:nth-child(odd):last-child,storefront-content[template=details] .content-actions>storefront-button:nth-child(odd):last-child{grid-column:1/3}storefront-content[template=details] .content-actions storefront-button button{width:100%}storefront-content[template=group]{flex-direction:row}storefront-content[template=group] .content-image{width:100%}storefront-content[template=group] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=group] .content-data{flex-direction:column}storefront-content[template=group] .content-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}storefront-content[template=group] .content-actions{display:flex;justify-content:flex-start}storefront-content[template=group] .content-actions>button{display:none}storefront-content[template=group] i,storefront-content[template=group] .content-publication-title,storefront-content[template=group] .content-pub-date,storefront-content[template=group] .content-description,storefront-content[template=group] .content-description-expand-toggle,storefront-content[template=group] .content-properties,storefront-content[template=group] .content-categories,storefront-content[template=group] .content-tags,storefront-content[template=group] .content-state,storefront-content[template=group] .content-update-badge{display:none}storefront-content[template=group] i .content-tag,storefront-content[template=group] i .content-category,storefront-content[template=group] .content-publication-title .content-tag,storefront-content[template=group] .content-publication-title .content-category,storefront-content[template=group] .content-pub-date .content-tag,storefront-content[template=group] .content-pub-date .content-category,storefront-content[template=group] .content-description .content-tag,storefront-content[template=group] .content-description .content-category,storefront-content[template=group] .content-description-expand-toggle .content-tag,storefront-content[template=group] .content-description-expand-toggle .content-category,storefront-content[template=group] .content-properties .content-tag,storefront-content[template=group] .content-properties .content-category,storefront-content[template=group] .content-categories .content-tag,storefront-content[template=group] .content-categories .content-category,storefront-content[template=group] .content-tags .content-tag,storefront-content[template=group] .content-tags .content-category,storefront-content[template=group] .content-state .content-tag,storefront-content[template=group] .content-state .content-category,storefront-content[template=group] .content-update-badge .content-tag,storefront-content[template=group] .content-update-badge .content-category{display:none}storefront-content.locked .content-actions button.icon-share{display:none}storefront-content.ghost{pointer-events:none}storefront-content.ghost .content-image{animation:ghost-opacity 2s infinite linear;background-color:var(--ghostColor);margin-bottom:var(--gutter)}storefront-content.ghost .content-image storefront-image{background-color:transparent}storefront-content.ghost[template=highlight]>.content-image{margin-bottom:0}storefront-content.ghost[template=highlight]>.content-image>storefront-image{margin-bottom:0}storefront-content.ghost[template=highlight] .content-description,storefront-content.ghost[template=highlight] .content-title{width:100%;margin-bottom:0}storefront-content.ghost[template=cover] storefront-image{padding-top:133%}storefront-content.ghost[template=card] storefront-image{padding-top:75%}storefront-content.ghost .content-description,storefront-content.ghost .content-title{background-color:var(--ghostColor);color:transparent;border-radius:4px;width:90%;height:1.2em;margin-bottom:calc(var(--gutter) / 2)!important;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}storefront-content.ghost .content-description{height:3em}storefront-content.error .content-data{display:none}storefront-content.error[template=cover] .content-error,storefront-content.error[template=card] .content-error,storefront-content.error[template=details] .content-error{margin-top:var(--gutter)}\n'],encapsulation:2}),i})()},2085:($,I,c)=>{c.d(I,{o9:()=>y,qc:()=>g});var l=c(4404),g=function(f){return f.COVER="cover",f.CARD="card",f.HIGHLIGHT="highlight",f.DETAILS="details",f.GROUP="group",f}(g||{});const y={template:g.CARD,openContent:{mode:l.DisplayMode.MODAL,titleBar:!0},downloadOptions:null,customButtons:[],customMessages:[],titleMessage:"CONTENT_TITLE",descriptionMessage:"CONTENT_DESCRIPTION",publicationTitleMessage:"CONTENT_PUBLICATION_TITLE"}},8399:($,I,c)=>{c.r(I),c.d(I,{ContentModule:()=>T,component:()=>O});var l=c(177),h=c(7808),t=c(6600),g=c(4767),y=c(6953),f=c(1605),M=c(8301),C=c(6483),N=c(9805),P=c(4403),B=c(3363),G=c(6215),m=c(3953);let T=(()=>{var v;class A{}return(v=A).\u0275fac=function(b){return new(b||v)},v.\u0275mod=m.$C({type:v}),v.\u0275inj=m.G2t({imports:[l.MD,B.E,M.d,C.h,G.O,f.P,g.d,t.pZ,y.n,N.ButtonModule,P.U]}),A})();const O=h.B}}]);
|