@pronto-tools-and-more/files 5.9.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/files/framework/src/default/storefront/3rdpartylicenses.txt +0 -29
- package/files/framework/src/default/storefront/buildInfo.json +4 -4
- package/files/framework/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +80 -80
- package/files/framework/src/default/storefront/deep-link-landing/purple-deep-link-landing.js.LICENSE.txt +1 -1
- package/files/framework/src/default/storefront/index.html +3 -3
- package/files/framework/src/default/storefront/modules/common.js +1 -1
- package/files/framework/src/default/storefront/modules/default-node_modules_angular_forms_fesm2022_forms_mjs.js +1 -1
- package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_base-component_base-datacollection_component_ts-4706f8.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/default-projects_storefront_src_app_component_issue_issue_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_service_tts_tts_service_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/main.js +1 -1
- package/files/framework/src/default/storefront/modules/node_modules_purple_web-player_dist_webPresenter_js_webPresenter_min_js.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-94b9b6.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_action-executor_action-executor_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_ad_ad_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_app-menu-xml_app-menu-xml_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_bookmark_bookmark_module_ts.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/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-featured-image_content-featured-c9ba26.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_category_category_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_collection_collection_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_component_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_coupon_coupon_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_dev-components_user-tag-testing_user-tag-testing_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_download-issues_download-issues_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_dropdown_dropdown_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_iframe_iframe_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_issue-search-result_issue-search-result_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_login_login_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_menu_menu_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_product_product_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_publication-completion_publication-completion_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_publication_publication_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_recommendations_recommendations_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_search-field_search-field_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_subscription_subscription_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_swiper_swiper_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_ticker_ticker_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_toggle_toggle_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_toolbar_toolbar_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_web-presenter_presenter_presenter_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_widget_widget_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/styles.css +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:($,D,c)=>{c.d(D,{B:()=>kn});var _=c(467),h=c(177),t=c(4438),d=c(4404),f=c(4412),G=c(5964),E=c(5343),N=c(6354),P=c(6697),B=c(6843),w=c(4452),C=c(8179),I=c(8471),x=c(9745),T=c(4945),R=c(4338),u=c(5706),O=c(7879),X=c(8890),W=c(1210),k=c(4365),M=c(2085),U=c(362),V=c(4622),F=c(1739),H=c(4004),K=c(2932),z=c(610),A=c(8091),j=c(3092),Z=c(20),J=c(8004),Q=c(5483),q=c(244),tt=c(6889),nt=c(1652),et=c(5820),ot=c(4748),rt=c(2838),at=c(680),it=c(8909),ct=c(7240),st=c(9383),lt=c(395),_t=c(2914),pt=c(2813);const S=r=>[r],gt=r=>({path:r}),dt=()=>({path:""}),ft=()=>[];function ut(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,S,o.dataSourceError.code))}}function mt(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,ut,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 ht(r,i){1&r&&t.eu8(0)}function Ct(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,ht,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 Et(r,i){1&r&&t.eu8(0)}function vt(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,Et,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,gt,o))}}function bt(r,i){if(1&r&&(t.qex(0),t.DNE(1,Ct,3,5,"a",14)(2,vt,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 Tt(r,i){1&r&&t.eu8(0)}function It(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,Tt,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 Ot(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 Dt(r,i){if(1&r&&t.DNE(0,It,2,1,"div",20)(1,Ot,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 xt(r,i){1&r&&t.nrm(0,"storefront-spinner")}function kt(r,i){1&r&&(t.j41(0,"div",28),t.nrm(1,"span",29),t.k0s())}function Rt(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 At(r,i){if(1&r&&(t.nrm(0,"storefront-image",25),t.DNE(1,xt,1,0,"storefront-spinner",3)(2,kt,2,0,"div",26)(3,Rt,1,2,"storefront-progress",27)),2&r){const o=t.XpG(2);t.Y8G("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.showProgress())}}function St(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,S,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,S,o.content.name))}}function Lt(r,i){1&r&&t.nrm(0,"i",51)}function Pt(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 Mt(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,S,o.content.description))}}function Gt(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 wt(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 Ut(r,i){if(1&r&&(t.j41(0,"div",59),t.DNE(1,wt,4,7,"div",60),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.displayedCategories)("ngForTrackBy",o.trackByCategory)}}function Kt(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 jt(r,i){if(1&r&&(t.j41(0,"div",62),t.DNE(1,Kt,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,ft))}}function Yt(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 Xt(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 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",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,Wt,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 Ft(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function Ht(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,Ft,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 zt(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,zt,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 Jt(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.showCancel())}}function Qt(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,Qt,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 tn(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function nn(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,tn,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 en(r,i){if(1&r&&(t.qex(0),t.DNE(1,Jt,2,1,"ng-container",3)(2,qt,3,2,"button",71)(3,nn,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.issueType&&!o.installState.downloading&&"COMPLETE"!==o.installState.installState&&!o.deleteLoading),t.R7$(),t.Y8G("ngIf",o.showDelete())}}function on(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function rn(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 an(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 cn(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,on,1,0,"storefront-spinner",67)(3,rn,1,2,"storefront-progress",80)(4,an,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.showProgress(!0)),t.R7$(),t.Y8G("ngIf",o.showProgress(!0))}}function sn(r,i){if(1&r&&(t.qex(0),t.DNE(1,cn,5,9,"button",43),t.bVm()),2&r){const o=t.XpG(4);t.R7$(),t.Y8G("ngIf",o.issueType&&o.installState)}}function ln(r,i){if(1&r&&(t.qex(0),t.DNE(1,en,4,3,"ng-container",3)(2,sn,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 _n(r,i){1&r&&t.nrm(0,"span",92)}function pn(r,i){1&r&&t.nrm(0,"span",93)}function gn(r,i){if(1&r&&t.nrm(0,"span",94),2&r){const o=t.XpG(5);t.Y8G("storefrontTranslateArgs",t.eq3(1,S,o.price&&o.price.formattedPrice))}}function dn(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function fn(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,_n,1,0,"span",89)(2,pn,1,0,"span",90)(3,gn,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 un(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 mn(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 hn(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 Cn(r,i){if(1&r&&(t.qex(0),t.DNE(1,fn,5,6,"button",84)(2,un,1,0,"button",85)(3,mn,1,0,"button",86)(4,hn,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 En(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 vn(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 bn(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 Tn(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 In(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function On(r,i){if(1&r&&(t.j41(0,"div",99),t.DNE(1,vn,1,3,"storefront-progress",100)(2,bn,1,1,"button",101)(3,Tn,1,1,"button",102)(4,In,1,0,"storefront-spinner",67),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf",o.showProgress(!0)),t.R7$(),t.Y8G("ngIf",!o.locked&&"COMPLETE"!==o.installState.installState&&!o.installState.downloading&&!o.downloadLoading),t.R7$(),t.Y8G("ngIf",o.showDelete()||o.showCancel()),t.R7$(),t.Y8G("ngIf",o.downloadLoading)}}function Dn(r,i){if(1&r&&(t.DNE(0,St,2,4,"h3",31)(1,yt,2,4,"h3",32)(2,Lt,1,0,"i",33)(3,Pt,3,3,"div",34)(4,Mt,1,4,"div",35)(5,Gt,3,1,"span",36)(6,Bt,2,2,"div",37)(7,Ut,2,2,"div",38)(8,jt,2,2,"div",39)(9,$t,1,6,"div",40),t.j41(10,"div",41),t.DNE(11,Yt,1,0,"button",42)(12,Xt,1,3,"button",43)(13,Vt,3,2,"button",44)(14,Ht,3,2,"button",45)(15,ln,3,2,"ng-container",3)(16,Cn,5,4,"ng-container",3)(17,En,2,3,"ng-container",46),t.k0s(),t.DNE(18,On,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.showCheck()),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 xn(r,i){if(1&r&&(t.qex(0),t.DNE(1,bt,3,2,"ng-container",13),t.nI1(2,"async"),t.DNE(3,Dt,2,2,"ng-template",null,0,t.C5r)(5,At,4,8,"ng-template",null,1,t.C5r)(7,Dn,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 kn=(()=>{var r;class i extends W.${constructor(e,n,a,s,g,p,v,b,l,m,y,Rn,An,Sn,yn,Y,Ln,Pn,Mn){super(p,e,b,m,Y),this.elementRef=e,this.ngZone=n,this.changeDetectorRef=a,this.store=s,this.dialog=g,this.injector=p,this.eventActionService=v,this.contextService=b,this.cleanUpService=l,this.document=m,this.platformId=y,this.purpleEnv=Rn,this.transferState=An,this.purpleService=Sn,this.urlResolver=yn,this.globalService=Y,this.anchorService=Ln,this.ssrService=Pn,this.resourceService=Mn,this.defaultConfig={...M.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={...k.Rp}}get purchasable(){var e;return(null===(e=this.content)||void 0===e?void 0:e.access)===d.Access.PURCHASABLE}get hasError(){var e;return!(!this.dataSourceError||null!==(e=this.dataSource)&&void 0!==e&&e.hasData())}get issueType(){return this.content&&(0,u.xl)(this.content)&&this.content.contentType}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,T.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,_.A)(function*(){var n;const a=e.content,s=(0,C.v3)(e.config.dataSource),g={...s,limit:1};if(e.loggedIn=!!e.context[d.METADATA_KEY.ENTITLEMENT_TOKEN],e.dataSource&&!e.dataSource.hasConfigChanged(g)&&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,w.O8)(g,e.contextService,e.store,e.elementRef.nativeElement,e.transferState,e.purpleService,e.globalService,e.document,e.resourceService,e.platformId),e.store.subscribe(e.dataSource.data$.pipe((0,G.p)(p=>p&&!!p[0])),p=>{const v=e.content;e.content=p[0],(0,I.GA)(e.content,e.purpleService).then(b=>e.locked=b),e.context[e.contextKey]=e.content,e.updateConfig(v)},E.l,E.l,"data"),e.store.subscribe(e.dataSource.error$,p=>e.dataSourceError=p,E.l,E.l,"error"),yield e.dataSource.loadData();else{const p=e.contextContent;"object"!=typeof p||e.content&&(!p||e.purchaseLoading)?e.context[e.contextKey]=e.content:(e.content=p,(0,I.GA)(e.content,e.purpleService).then(v=>e.locked=v)),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:d.ERROR_CODE.ISSUE_NOT_FOUND})},1e3)})})()}updateConfig(e){var n=this;return(0,_.A)(function*(){var a;const s={...n.context};s.publication||(s.publication=n.publication),n.config=(0,C.uQ)({...M.o9,...n.baseConfig},s,n.contextService.$functions,n.globalService.getGlobalData());const g=(0,C.v3)(n.config.purchaseOptions);if(g&&(n.purchaseOptions=Object.keys(g).reduce((l,m)=>({...l,[m]:(0,C.v3)(g[m])}),{}),n.purchaseOptions.purchase&&"object"==typeof n.purchaseOptions.purchase&&(n.purchaseConfig={...k.Rp,...n.purchaseOptions.purchase})),n.anchorFeatureEnabled&&!(0,u.xl)(n.content)){n.anchorPathCover=n.anchorService.getAnchorPath(n.config.tapCover,n.context,null);const l=n.anchorService.getAnchorPath(n.config.tapContent,n.context,null);l?n.purpleEnv.isUniversal&&n.contentPath$.next(l):yield n.getContentPath()}const p={buttonClass:"action-button"};if(n.customButtons=n.config.customButtons.filter(l=>(0,C.Ol)(l)).map(l=>(0,C.v3)(l)).map(l=>({...p,...l,buttonClass:l.buttonClass?p.buttonClass.concat(" ",l.buttonClass):p.buttonClass})),n.customMessages=n.config.customMessages.filter(l=>(0,C.Ol)(l)).map(l=>(0,C.v3)(l)),n.downloadOptions=(0,C.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(l=>(0,C.v3)(l)).filter(l=>!!l&&void 0!==n.content.properties[l]).map(l=>({key:l,value:n.content.properties[l]})),n.content){var v,b;const l=null!==(v=null===(b=n.config.displayCategories)||void 0===b?void 0:b.mode)&&void 0!==v?v:"SLUG";switch(l){case"SLUG":n.displayedCategories=n.taxonomies.filter(m=>"category"===m.type).map(m=>({id:m.id}));break;case"NAME":n.purpleService.getCategories({categoryFilter:{OR:n.taxonomies.map(({id:m})=>({id:{value:m}}))}}).then(m=>{n.displayedCategories=m.nodes}).catch(m=>{console.warn("resolving taxonomy name for displayCategories.mode ".concat(l," failed"),m,n),n.displayedCategories=n.taxonomies.filter(y=>"category"===y.type).map(y=>({id:y.id}))})}}})()}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&&(0,u.xl)(this.content)){const a=!0===this.config.trackVisible?0:this.config.trackVisible.trackDelay;let g,p=v=>{v[0].isIntersecting?g=setTimeout(()=>{this.getDownloadHandler().then(function(){var b=(0,_.A)(function*(l){e.publication||(yield e.loadPublication()),e.handleTrackAction("VISIBLE",l)});return function(l){return b.apply(this,arguments)}}())},a):clearTimeout(g)};this.trackingObserver=new IntersectionObserver(p,{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,_.A)(function*(){e.dataSource&&(e.content=yield e.purpleService.getIssue(e.content.id).catch(()=>null),e.locked=yield(0,I.GA)(e.content,e.purpleService),e.context[e.contextKey]=e.content,e.updateConfig(e.content)),e.loadPrice()}))},E.l,E.l,"visible")}}loadIssueState(){var e=this;return(0,_.A)(function*(){e.content&&(0,u.xl)(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()},E.l,E.l,"installState"),e.downloadHandler.autoUpdate&&e.downloadHandler.downloadStarted&&e.downloadHandler.update()),e.changeDetectorRef.detectChanges())})()}loadPrice(){var e=this;return(0,_.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,V.Zt)(a),s=>{(0,F.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,_.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,_.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,E.l,E.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===M.qc.DETAILS?K.q.AUTO:K.q.FIXED}onClickDownload(e){var n=this;return(0,_.A)(function*(){e.stopPropagation(),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=a.getAggregatedIssueState(),g={issue:n.content,download:{totalSize:(s.overallSize/1e6).toFixed(1),downloadSize:(s.overallSizeToDownload/1e6).toFixed(1)}};try{yield n.dialog.confirm({text:"ISSUE_DOWNLOAD_CONFIRM_MESSAGE",args:[g]},{text:"ISSUE_DOWNLOAD_CONFIRM_TITLE",args:[g]},"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=d.CatalogIssueInstallState.INCOMPLETE,n.installState.progress=0}catch(s){console.error(s),s.code===d.ERROR_CODE.PAYMENT_REQUIRED&&n.purpleService.invalidate()}}n.downloadLoading=!1,n.changeDetectorRef.detectChanges()})()}onClickDelete(e){var n=this;return(0,_.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()})()}onClickCancel(e){var n=this;return(0,_.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,_.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,_.A)(function*(){n.openContent("READ_CLICKED")})):n.openContent("READ_CLICKED")})()}onClickPurchase(e){var n=this;return(0,_.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,_.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,_.A)(function*(){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:x.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:x.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:x.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,O.bJ)(this.content,this.publication,this.price);return{...e&&(0,O.Gw)(e.getContentType())?(0,O.bJ)(e.issue,e.publication,this.price,"SOURCE_"):{},...n}}handleTrackAction(e,n,a,s){if(!n)return;const g="".concat(this.getTrackingBaseKey(n,s),"_").concat(e);let p=a?(0,O.aM)(a):{};p={...p,...this.getTrackingParams(n)},this.store.dispatch((0,z.k4)({key:g,params:p}))}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,_.A)(function*(){s.anchorFeatureEnabled&&e.preventDefault();const g=(0,C.v3)(s.config[n]);if(g){if(e.stopPropagation(),s.coverLoading)return;s.coverLoading=!0,s.changeDetectorRef.detectChanges(),s.getDownloadHandler().then(p=>s.handleTrackAction(a,p)),yield s.eventActionService.processEventAction(g,s),s.coverLoading=!1,s.changeDetectorRef.detectChanges()}})()}isGhost(){return!(this.content&&this.content.id||this.dataSourceError)}onClickState(e){var n=this;return(0,_.A)(function*(){if(e.stopPropagation(),n.installState)return n.installState.downloading?n.onClickCancel(e):n.installState.installState===d.CatalogIssueInstallState.COMPLETE?n.onClickDelete(e):n.onClickDownload(e)})()}onClickBookmark(e){var n=this;return(0,_.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,A._3)((0,A.E2)(a,n.contextService),n.bookmark)}:{text:"ERROR_DELETE_BOOKMARK",args:[(0,A.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(g=>n.handleTrackAction("BOOKMARK_ADD_FAILED",g,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,_.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(g=>n.handleTrackAction("SHARE_FAILED",g)),n.dialog.alert("ERROR_SHARE","DIALOG_ERROR")}})()}getSharingUrl(){return"".concat(this.context[d.METADATA_KEY.MANAGER_BASE_URL],"/i/").concat(this.context[d.METADATA_KEY.APP_ID],"/").concat(this.content.id,"?preview=").concat(this.context[d.METADATA_KEY.PREVIEW_APP])}getStateText(){return this.downloadLoading||this.deleteLoading?" ":this.installState?this.installState.downloading?"ISSUE_ACTION_CANCEL":this.installState.installState===d.CatalogIssueInstallState.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,_.A)(function*(){if((0,h.UE)(e.platformId))return(0,u.xl)(e.content)?((!e.downloadHandler||e.downloadHandler.issue.id!==e.content.id)&&(e.downloadHandler&&(yield e.purpleService.destroyDownloadHandler(e.downloadHandler)),e.downloadHandler=yield e.purpleService.getDownloadHandler(e.content,e.dialog)),e.downloadHandler):void 0})()}showProgress(e=!1){return(0,u.xl)(this.content)&&!this.deleteLoading&&!this.downloadLoading&&this.installState&&this.installState.downloading&&!(this.installState.updating&&this.updateBehavior===k.FZ.SILENT)&&(e||"MULTI"===this.downloadOptions.buttonType)}showCancel(){return(0,u.xl)(this.content)&&!this.downloadLoading&&this.installState.downloading&&!(this.installState.updating&&this.updateBehavior===k.FZ.SILENT)}showDelete(){return(0,u.xl)(this.content)&&!this.downloadLoading&&this.installState.installState!==d.CatalogIssueInstallState.NOT_INSTALLED&&(!this.installState.downloading||this.installState.updating&&this.updateBehavior===k.FZ.SILENT)}showCheck(){return(0,u.xl)(this.content)&&this.downloadOptions&&this.downloadOptions.statusIndicator&&this.installState&&(this.installState.installState===d.CatalogIssueInstallState.COMPLETE&&!this.locked||this.installState.updating&&this.updateBehavior===k.FZ.SILENT)}showUpdateBehavior(){if(this.installState&&(0,u.xl)(this.content))return(0,I.YH)(this.installState,this.content.contentType===d.CatalogContentType.ISSUE)}reload(){window.location.reload()}hasContextChanged(e){var n;return!(null!==(n=this.config)&&void 0!==n&&n.dataSource)&&!U(this.contextContent,this.content)||!U(e[d.METADATA_KEY.ENTITLEMENT_TOKEN],this.context[d.METADATA_KEY.ENTITLEMENT_TOKEN])||super.hasContextChanged(e)}deleteIssue(){var e=this;return(0,_.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===M.qc.COVER?j.s.RADIAL:j.s.BAR}getErrorDialogArgs(e){return(0,A.$C)((0,A.E2)(e,this.contextService),this.content)}getContentPath(){var e=this;return(0,_.A)(function*(){if(e.content&&(!e.content.ad||e.content.contentType)&&e.purpleEnv.isUniversal){const n=(0,t.zw6)("url_".concat(e.content.id));if(e.transferState.hasKey(n))e.contentPath$.next(e.transferState.get(n,null));else{const a=yield e.urlResolver.getPathForContent(e.content);e.contentPath$.next(a),(0,h.UE)(e.platformId)||e.transferState.set(n,a)}}})()}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,_.A)(function*(){n.openLoading=!0,n.changeDetectorRef.detectChanges(),n.getDownloadHandler().then(a=>n.handleTrackAction(e,a)),yield n.eventActionService.processOpenContentAction({type:x.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(R.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(O.r6),t.rXU(t.pJN),t.rXU(I.Wj),t.rXU(tt.K),t.rXU(nt.d),t.rXU(et.X),t.rXU(ot.i),t.rXU(rt.Q))},r.\u0275cmp=t.VBU({type:r,selectors:[["storefront-content"]],hostVars:9,hostBindings:function(e,n){2&e&&(t.BMQ("issue-type",n.issueType)("content-type",n.contentType)("post-type",n.postType),t.AVh("locked",n.locked)("purchasable",n.purchasable)("error",n.hasError))},features:[t.Jv_([R.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,"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,mt,7,2,"ng-container",3)(1,xn,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,j.X,at.G,it.M,ct.t,st.r6,lt.Q,K.h,h.Jj,_t.w,pt.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:($,D,c)=>{c.d(D,{o9:()=>L,qc:()=>d});var _=c(4404),d=function(f){return f.COVER="cover",f.CARD="card",f.HIGHLIGHT="highlight",f.DETAILS="details",f.GROUP="group",f}(d||{});const L={template:d.CARD,openContent:{mode:_.DisplayMode.MODAL,titleBar:!0},downloadOptions:null,customButtons:[],customMessages:[],titleMessage:"CONTENT_TITLE",descriptionMessage:"CONTENT_DESCRIPTION",publicationTitleMessage:"CONTENT_PUBLICATION_TITLE"}},8399:($,D,c)=>{c.r(D),c.d(D,{ContentModule:()=>I,component:()=>x});var _=c(177),h=c(7808),t=c(9383),d=c(4767),L=c(6953),f=c(1605),G=c(8301),E=c(6483),N=c(9805),P=c(4403),B=c(3363),w=c(6215),C=c(4438);let I=(()=>{var T;class R{}return(T=R).\u0275fac=function(O){return new(O||T)},T.\u0275mod=C.$C({type:T}),T.\u0275inj=C.G2t({imports:[_.MD,B.E,G.d,E.h,w.O,f.P,d.d,t.pZ,L.n,N.ButtonModule,P.U]}),R})();const x=h.B}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["default-projects_storefront_src_app_component_content_content_module_ts"],{7808:($,D,c)=>{c.d(D,{B:()=>xn});var l=c(467),C=c(177),t=c(3953),d=c(4404),f=c(4412),G=c(5964),E=c(5343),N=c(6354),P=c(6697),B=c(6843),w=c(4452),h=c(8179),I=c(8471),x=c(9745),T=c(4945),R=c(8251),u=c(5706),O=c(7879),X=c(8890),W=c(1210),k=c(4365),M=c(2085),U=c(362),F=c(4622),V=c(1739),H=c(4004),K=c(2932),z=c(610),A=c(8091),j=c(3092),Z=c(20),J=c(8004),Q=c(9516),q=c(244),tt=c(6889),nt=c(1652),et=c(5820),ot=c(4748),rt=c(680),at=c(8909),it=c(7240),ct=c(6600),st=c(395),lt=c(2914),_t=c(2813);const y=r=>[r],pt=r=>({path:r}),gt=()=>({path:""}),dt=()=>[];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,y,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,gt))}}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 kt(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 Rt(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,kt,1,2,"storefront-progress",27)),2&r){const o=t.XpG(2);t.Y8G("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.showProgress())}}function At(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,y,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,y,o.content.name))}}function St(r,i){1&r&&t.nrm(0,"i",51)}function Lt(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 Pt(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,y,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 Gt(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 Nt(r,i){if(1&r&&(t.j41(0,"div",57),t.DNE(1,Gt,4,12,"div",58),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.visibleProperties)("ngForTrackBy",o.trackByProperty)}}function Bt(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,Bt,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 jt(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,dt))}}function $t(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 Wt(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 Ft(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,Ft,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.showCancel())}}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.issueType&&!o.installState.downloading&&"COMPLETE"!==o.installState.installState&&!o.deleteLoading),t.R7$(),t.Y8G("ngIf",o.showDelete())}}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.showProgress(!0)),t.R7$(),t.Y8G("ngIf",o.showProgress(!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.issueType&&o.installState)}}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,y,o.price&&o.price.formattedPrice))}}function gn(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function dn(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,gn,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,dn,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.showProgress(!0)),t.R7$(),t.Y8G("ngIf",!o.locked&&"COMPLETE"!==o.installState.installState&&!o.installState.downloading&&!o.downloadLoading),t.R7$(),t.Y8G("ngIf",o.showDelete()||o.showCancel()),t.R7$(),t.Y8G("ngIf",o.downloadLoading)}}function On(r,i){if(1&r&&(t.DNE(0,At,2,4,"h3",31)(1,yt,2,4,"h3",32)(2,St,1,0,"i",33)(3,Lt,3,3,"div",34)(4,Pt,1,4,"div",35)(5,Mt,3,1,"span",36)(6,Nt,2,2,"div",37)(7,wt,2,2,"div",38)(8,Kt,2,2,"div",39)(9,jt,1,6,"div",40),t.j41(10,"div",41),t.DNE(11,$t,1,0,"button",42)(12,Yt,1,3,"button",43)(13,Wt,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.showCheck()),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,Rt,4,8,"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 W.${constructor(e,n,a,s,g,p,v,b,_,m,S,kn,Rn,An,yn,Y,Sn,Ln){super(p,e,b,m,Y),this.elementRef=e,this.ngZone=n,this.changeDetectorRef=a,this.store=s,this.dialog=g,this.injector=p,this.eventActionService=v,this.contextService=b,this.cleanUpService=_,this.document=m,this.platformId=S,this.purpleEnv=kn,this.transferState=Rn,this.purpleService=An,this.urlResolver=yn,this.globalService=Y,this.anchorService=Sn,this.ssrService=Ln,this.defaultConfig={...M.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={...k.Rp}}get purchasable(){var e;return(null===(e=this.content)||void 0===e?void 0:e.access)===d.Access.PURCHASABLE}get hasError(){var e;return!(!this.dataSourceError||null!==(e=this.dataSource)&&void 0!==e&&e.hasData())}get issueType(){return this.content&&(0,u.xl)(this.content)&&this.content.contentType}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,T.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,h.v3)(e.config.dataSource),g={...s,limit:1};if(e.loggedIn=!!e.context[d.METADATA_KEY.ENTITLEMENT_TOKEN],e.dataSource&&!e.dataSource.hasConfigChanged(g)&&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,w.O8)(e.injector,g,e.elementRef.nativeElement,e.document),e.store.subscribe(e.dataSource.data$.pipe((0,G.p)(p=>p&&!!p[0])),p=>{const v=e.content;e.content=p[0],(0,I.GA)(e.content,e.purpleService).then(b=>e.locked=b),e.context[e.contextKey]=e.content,e.updateConfig(v)},E.l,E.l,"data"),e.store.subscribe(e.dataSource.error$,p=>e.dataSourceError=p,E.l,E.l,"error"),yield e.dataSource.loadData();else{const p=e.contextContent;"object"!=typeof p||e.content&&(!p||e.purchaseLoading)?e.context[e.contextKey]=e.content:(e.content=p,(0,I.GA)(e.content,e.purpleService).then(v=>e.locked=v)),e.updateConfig(a)}void 0===e.content&&(null===(n=e.baseContext)||void 0===n||!n.isGhost)&&(0,C.UE)(e.platformId)&&e.ngZone.runOutsideAngular(()=>{setTimeout(()=>{void 0===e.content&&e.ngZone.run(()=>e.dataSourceError={code:d.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,h.uQ)({...M.o9,...n.baseConfig},s,n.contextService.$functions,n.globalService.getGlobalData());const g=(0,h.v3)(n.config.purchaseOptions);g&&(n.purchaseOptions=Object.keys(g).reduce((_,m)=>({..._,[m]:(0,h.v3)(g[m])}),{}),n.purchaseOptions.purchase&&"object"==typeof n.purchaseOptions.purchase&&(n.purchaseConfig={...k.Rp,...n.purchaseOptions.purchase})),n.anchorFeatureEnabled&&n.handleAnchorTags();const p={buttonClass:"action-button"};if(n.customButtons=n.config.customButtons.filter(_=>(0,h.Ol)(_)).map(_=>(0,h.v3)(_)).map(_=>({...p,..._,buttonClass:_.buttonClass?p.buttonClass.concat(" ",_.buttonClass):p.buttonClass})),n.customMessages=n.config.customMessages.filter(_=>(0,h.Ol)(_)).map(_=>(0,h.v3)(_)),n.downloadOptions=(0,h.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(_=>(0,h.v3)(_)).filter(_=>!!_&&void 0!==n.content.properties[_]).map(_=>({key:_,value:n.content.properties[_]})),n.content){var v,b;const _=null!==(v=null===(b=n.config.displayCategories)||void 0===b?void 0:b.mode)&&void 0!==v?v:"SLUG";switch(_){case"SLUG":n.displayedCategories=n.taxonomies.filter(m=>"category"===m.type).map(m=>({id:m.id}));break;case"NAME":n.purpleService.getCategories({categoryFilter:{OR:n.taxonomies.map(({id:m})=>({id:{value:m}}))}}).then(m=>{n.displayedCategories=m.nodes}).catch(m=>{console.warn("resolving taxonomy name for displayCategories.mode ".concat(_," failed"),m,n),n.displayedCategories=n.taxonomies.filter(S=>"category"===S.type).map(S=>({id:S.id}))})}}})()}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&&(0,u.xl)(this.content)){const a=!0===this.config.trackVisible?0:this.config.trackVisible.trackDelay;let g,p=v=>{v[0].isIntersecting?g=setTimeout(()=>{this.getDownloadHandler().then(function(){var b=(0,l.A)(function*(_){e.publication||(yield e.loadPublication()),e.handleTrackAction("VISIBLE",_)});return function(_){return b.apply(this,arguments)}}())},a):clearTimeout(g)};this.trackingObserver=new IntersectionObserver(p,{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,I.GA)(e.content,e.purpleService),e.context[e.contextKey]=e.content,e.updateConfig(e.content)),e.loadPrice()}))},E.l,E.l,"visible")}}loadIssueState(){var e=this;return(0,l.A)(function*(){e.content&&(0,u.xl)(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()},E.l,E.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,F.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,C.UE)(e.platformId)&&e.transferState.remove(a)):(e.publication=yield e.purpleService.getPublication(n),(0,C.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,E.l,E.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===M.qc.DETAILS?K.q.AUTO:K.q.FIXED}onClickDownload(e){var n=this;return(0,l.A)(function*(){e.stopPropagation(),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=a.getAggregatedIssueState(),g={issue:n.content,download:{totalSize:(s.overallSize/1e6).toFixed(1),downloadSize:(s.overallSizeToDownload/1e6).toFixed(1)}};try{yield n.dialog.confirm({text:"ISSUE_DOWNLOAD_CONFIRM_MESSAGE",args:[g]},{text:"ISSUE_DOWNLOAD_CONFIRM_TITLE",args:[g]},"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=d.ContentInstallState.INCOMPLETE,n.installState.progress=0}catch(s){console.error(s),s.code===d.ERROR_CODE.PAYMENT_REQUIRED&&n.purpleService.invalidate()}}n.downloadLoading=!1,n.changeDetectorRef.detectChanges()})()}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()})()}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*(){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*(){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:x.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:x.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:x.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,O.bJ)(this.content,this.publication,this.price);return{...e&&(0,O.Gw)(e.getContentType())?(0,O.bJ)(e.issue,e.publication,this.price,"SOURCE_"):{},...n}}handleTrackAction(e,n,a,s){if(!n)return;const g="".concat(this.getTrackingBaseKey(n,s),"_").concat(e);let p=a?(0,O.aM)(a):{};p={...p,...this.getTrackingParams(n)},this.store.dispatch((0,z.k4)({url:this.document.location.href,key:g,params:p}))}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 g=(0,h.v3)(s.config[n]);if(g){if(e.stopPropagation(),s.coverLoading)return;s.coverLoading=!0,s.changeDetectorRef.detectChanges(),s.getDownloadHandler().then(p=>s.handleTrackAction(a,p)),yield s.eventActionService.processEventAction(g,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===d.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,A._3)((0,A.E2)(a,n.contextService),n.bookmark)}:{text:"ERROR_DELETE_BOOKMARK",args:[(0,A.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(g=>n.handleTrackAction("BOOKMARK_ADD_FAILED",g,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(g=>n.handleTrackAction("SHARE_FAILED",g)),n.dialog.alert("ERROR_SHARE","DIALOG_ERROR")}})()}getSharingUrl(){return"".concat(this.context[d.METADATA_KEY.MANAGER_BASE_URL],"/i/").concat(this.context[d.METADATA_KEY.APP_ID],"/").concat(this.content.id,"?preview=").concat(this.context[d.METADATA_KEY.PREVIEW_APP])}getStateText(){return this.downloadLoading||this.deleteLoading?" ":this.installState?this.installState.downloading?"ISSUE_ACTION_CANCEL":this.installState.installState===d.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*(){if((0,C.UE)(e.platformId))return(0,u.xl)(e.content)?((!e.downloadHandler||e.downloadHandler.issue.id!==e.content.id)&&(e.downloadHandler&&(yield e.purpleService.destroyDownloadHandler(e.downloadHandler)),e.downloadHandler=yield e.purpleService.getDownloadHandler(e.content,e.dialog)),e.downloadHandler):void 0})()}showProgress(e=!1){return(0,u.xl)(this.content)&&!this.deleteLoading&&!this.downloadLoading&&this.installState&&this.installState.downloading&&!(this.installState.updating&&this.updateBehavior===k.FZ.SILENT)&&(e||"MULTI"===this.downloadOptions.buttonType)}showCancel(){return(0,u.xl)(this.content)&&!this.downloadLoading&&this.installState.downloading&&!(this.installState.updating&&this.updateBehavior===k.FZ.SILENT)}showDelete(){return(0,u.xl)(this.content)&&!this.downloadLoading&&this.installState.installState!==d.ContentInstallState.NOT_INSTALLED&&(!this.installState.downloading||this.installState.updating&&this.updateBehavior===k.FZ.SILENT)}showCheck(){return(0,u.xl)(this.content)&&this.downloadOptions&&this.downloadOptions.statusIndicator&&this.installState&&(this.installState.installState===d.ContentInstallState.COMPLETE&&!this.locked||this.installState.updating&&this.updateBehavior===k.FZ.SILENT)}showUpdateBehavior(){if(this.installState&&(0,u.xl)(this.content))return(0,I.YH)(this.installState,this.content.contentType===d.CatalogContentType.ISSUE)}reload(){window.location.reload()}hasContextChanged(e){var n;return!(null!==(n=this.config)&&void 0!==n&&n.dataSource)&&!U(this.contextContent,this.content)||!U(e[d.METADATA_KEY.ENTITLEMENT_TOKEN],this.context[d.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===M.qc.COVER?j.s.RADIAL:j.s.BAR}getErrorDialogArgs(e){return(0,A.$C)((0,A.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:x.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(R.B),t.rXU(Z.o),t.rXU(t.zZn),t.rXU(J.G),t.rXU(Q.V),t.rXU(q.I),t.rXU(C.qQ),t.rXU(t.Agw),t.rXU(O.r6),t.rXU(t.pJN),t.rXU(I.Wj),t.rXU(tt.K),t.rXU(nt.d),t.rXU(et.X),t.rXU(ot.i))},r.\u0275cmp=t.VBU({type:r,selectors:[["storefront-content"]],hostVars:9,hostBindings:function(e,n){2&e&&(t.BMQ("issue-type",n.issueType)("content-type",n.contentType)("post-type",n.postType),t.AVh("locked",n.locked)("purchasable",n.purchasable)("error",n.hasError))},features:[t.Jv_([R.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,"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:[C.YU,C.Sq,C.bT,C.T3,j.X,rt.G,at.M,it.t,ct.r6,st.Q,K.h,C.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:($,D,c)=>{c.d(D,{o9:()=>L,qc:()=>d});var l=c(4404),d=function(f){return f.COVER="cover",f.CARD="card",f.HIGHLIGHT="highlight",f.DETAILS="details",f.GROUP="group",f}(d||{});const L={template:d.CARD,openContent:{mode:l.DisplayMode.MODAL,titleBar:!0},downloadOptions:null,customButtons:[],customMessages:[],titleMessage:"CONTENT_TITLE",descriptionMessage:"CONTENT_DESCRIPTION",publicationTitleMessage:"CONTENT_PUBLICATION_TITLE"}},8399:($,D,c)=>{c.r(D),c.d(D,{ContentModule:()=>I,component:()=>x});var l=c(177),C=c(7808),t=c(6600),d=c(4767),L=c(6953),f=c(1605),G=c(8301),E=c(6483),N=c(9805),P=c(4403),B=c(3363),w=c(6215),h=c(3953);let I=(()=>{var T;class R{}return(T=R).\u0275fac=function(O){return new(O||T)},T.\u0275mod=h.$C({type:T}),T.\u0275inj=h.G2t({imports:[l.MD,B.E,G.d,E.h,w.O,f.P,d.d,t.pZ,L.n,N.ButtonModule,P.U]}),R})();const x=C.B}}]);
|