@pronto-tools-and-more/files 10.50.0 → 10.52.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (15) hide show
  1. package/files/framework/src/default/storefront/buildInfo.json +4 -4
  2. package/files/framework/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +7 -7
  3. package/files/framework/src/default/storefront/index.html +3 -3
  4. package/files/framework/src/default/storefront/modules/common.js +1 -1
  5. package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -1
  6. package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_issue_issue_module_ts.js +1 -1
  7. package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_service_tts_tts_service_ts.js +1 -1
  8. package/files/framework/src/default/storefront/modules/main.js +1 -1
  9. 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
  10. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_app-menu-xml_app-menu-xml_module_ts.js +1 -1
  11. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-body_content-body_module_ts.js +1 -1
  12. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_iframe_iframe_module_ts.js +1 -1
  13. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_issue-search-result_issue-search-result_module_ts.js +1 -1
  14. package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_web-presenter_presenter_presenter_module_ts.js +1 -1
  15. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  <!doctype html>
2
- <html lang="de" data-critters-container>
2
+ <html lang="en" data-critters-container>
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <title></title>
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
7
- <meta name="storefront-commit" content="5af87ab0">
8
- <meta name="storefront-version" content="3.8.2">
7
+ <meta name="storefront-commit" content="6b2d03c">
8
+ <meta name="storefront-version" content="3.8.3">
9
9
  <link rel="icon" type="image/x-icon" href="favicon.ico">
10
10
  <link rel="stylesheet" href="assets/fonts.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="assets/fonts.css"></noscript>
11
11
  <script type="text/javascript">
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["common"],{3472:(U,O,t)=>{t.d(O,{M:()=>y});var p=t(9758),o=t(8179),c=t(362),a=t(4452),v=t(3713),m=t(3953);let y=(()=>{var T;class E extends v.r{getDataFromContext(D=this.context){return this.getSelectionScope()===p.x.USER_ATTRIBUTE?D.userAttributes[this.getParam()]:D[this.getParam()]}hasContextChanged(D){let l=super.hasContextChanged(D);if(!l&&this.isSelectionEnabled()){const i=this.getDataFromContext(),g=this.getDataFromContext(D);l=!c(i,g)}return l}ngOnDestroy(){super.ngOnDestroy(),this.dataSource&&this.contextService.unregisterDataSource(this.dataSource)}stripChildConfigs(D){return D.content&&(D.content={}),D}getEntryConfig(D){return D&&D.ad||{...this.baseConfig.content}}getEntryContext(D){var l;let i=(0,o.uQ)(null!==(l=this.getConfig().dataSource.entryId)&&void 0!==l?l:this.getDataType(),this.context,this.contextService.$functions,this.globalService.getGlobalData());return{...this.baseContext,[i]:D}}getConfig(){return this.config||this.baseConfig}isSelectionEnabled(){return!1}getDataType(){return this.getConfig().dataSource.type}getGroupDataType(D){return D.dataSource.type}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),...(0,a.Kj)(this.baseConfig)].filter(D=>!!D)}}return(T=E).\u0275fac=(()=>{let M;return function(l){return(M||(M=m.xGo(T)))(l||T)}})(),T.\u0275dir=m.FsC({type:T,features:[m.Vt3]}),E})()},1803:(U,O,t)=>{t.d(O,{TS:()=>p,We:()=>c});var p=function(r){return r.VERTICAL="vertical",r.HORIZONTAL="horizontal",r.GRID="grid",r.GROUP="group",r.TABS="tabs",r}(p||{}),c=function(r){return r.BLANK="_blank",r.SELF="_self",r}(c||{})},3303:(U,O,t)=>{t.d(O,{y:()=>r});var p=t(177),o=t(9149),c=t(3953);let r=(()=>{var a;class v{}return(a=v).\u0275fac=function(y){return new(y||a)},a.\u0275mod=c.$C({type:a}),a.\u0275inj=c.G2t({imports:[p.MD,o.ContentTitleModule]}),v})()},5848:(U,O,t)=>{t.d(O,{Q:()=>T});var p=t(467),o=t(177),c=t(1210),r=t(5706),a=t(3953),v=t(9516),m=t(5102),y=t(1652);let T=(()=>{var E;class M extends c.${get contextKey(){var l,i,g;return null!==(l=null!==(i=null===(g=this.config)||void 0===g?void 0:g.contextKey)&&void 0!==i?i:this.defaultConfig.contextKey)&&void 0!==l?l:"content"}constructor(l,i,g,_,u,h){super(i,l,g,_,h),this.elementRef=l,this.injector=i,this.contextService=g,this.document=_,this.purpleService=u,this.globalService=h}updatePostWithOptionalData(l,i){var g=this;return(0,p.A)(function*(){const _=yield g.purpleService.getOptionalData(g.catalogContent,l,i);return(0,r.mF)(g.catalogContent)?(g.catalogContent=_,g.catalogContent):(0,r.G4)(g.catalogContent)?(g.bundleContent=(0,r.Ig)(g.catalogContent),g.bundleContent[i]=_,g.bundleContent[i]):void 0})()}hasContentChanged(l,i){return(null==l?void 0:l.id)!==(null==i?void 0:i.id)||this.hasVersionChanged(l,i)}hasVersionChanged(l,i){return(null==l?void 0:l.version)!==(null==i?void 0:i.version)}onConfigChanges(){var l;let i=null===(l=this.context)||void 0===l?void 0:l[this.contextKey];Array.isArray(i)&&(i=i[0]);const g=this.hasContentChanged(this.catalogContent,i)&&!!i;return g&&(this.catalogContent=i),g}isGhost(){var l;return!this.config||!(null!==(l=this.context)&&void 0!==l&&l[this.contextKey])}ngOnDestroy(){super.ngOnDestroy()}getContextKey(){return this.contextKey}}return(E=M).\u0275fac=function(l){return new(l||E)(a.rXU(a.aKT),a.rXU(a.zZn),a.rXU(v.V),a.rXU(o.qQ),a.rXU(m.Wj),a.rXU(y.d))},E.\u0275dir=a.FsC({type:E,features:[a.Vt3]}),M})()},9149:(U,O,t)=>{t.r(O),t.d(O,{ContentTitleModule:()=>i,component:()=>g});var p=t(177);const o={titleMessage:"%s"};var c=t(5848),r=t(3953),a=t(9516),v=t(5102),m=t(1652),y=t(8909);const T=_=>[_];function E(_,u){1&_&&(r.qex(0),r.j41(1,"h1"),r.EFF(2,"..."),r.k0s(),r.bVm())}function M(_,u){if(1&_&&r.nrm(0,"h1",2),2&_){const h=r.XpG();r.Y8G("storefrontTranslate",h.config.titleMessage)("storefrontTranslateArgs",r.eq3(2,T,null==h.catalogContent?null:h.catalogContent.name))}}let D=(()=>{var _;class u extends c.Q{constructor(e,n,f,d,s,C){super(e,f,n,d,s,C),this.elementRef=e,this.contextService=n,this.injector=f,this.document=d,this.purpleService=s,this.globalService=C,this.type="content-title",this.defaultConfig=o}}return(_=u).\u0275fac=function(e){return new(e||_)(r.rXU(r.aKT),r.rXU(a.V),r.rXU(r.zZn),r.rXU(p.qQ),r.rXU(v.Wj),r.rXU(m.d))},_.\u0275cmp=r.VBU({type:_,selectors:[["storefront-content-title"]],features:[r.Vt3],decls:2,vars:2,consts:[[4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(e,n){1&e&&r.DNE(0,E,3,0,"ng-container",0)(1,M,1,4,"h1",1),2&e&&(r.Y8G("ngIf",n.ghost),r.R7$(),r.Y8G("ngIf",!n.ghost))},dependencies:[p.bT,y.M],styles:["storefront-content-title>h1{margin-top:var(--contentHeaderMarginTop);margin-bottom:var(--contentHeaderMarginBottom);padding-top:var(--contentHeaderPaddingVert);padding-bottom:var(--contentHeaderPaddingVert);font-size:1.5rem}\n"],encapsulation:2}),u})();var l=t(6483);let i=(()=>{var _;class u{}return(_=u).\u0275fac=function(e){return new(e||_)},_.\u0275mod=r.$C({type:_}),_.\u0275inj=r.G2t({imports:[p.MD,l.h]}),u})();const g=D},2285:(U,O,t)=>{t.d(O,{b:()=>g});var p=t(467),o=t(177),c=t(3953),r=t(1210),a=t(8251),v=t(610),m=t(1803);const y={tag:"div",content:"",attributes:{}};var T=t(8179),E=t(9516),M=t(8448),D=t(8004),l=t(1652),i=t(5820);let g=(()=>{var _;class u extends r.${constructor(e,n,f,d,s,C,P,S,A,B,L,I){super(d,e,n,S,L),this.elementRef=e,this.contextService=n,this.renderer=f,this.injector=d,this.translate=s,this.eventActionService=C,this.store=P,this.document=S,this.platformId=A,this.changeDetectorRef=B,this.globalService=L,this.anchorService=I,this.anchorFeatureEnabled=!1,this.anchorPath=null,this.defaultConfig={...y}}ngOnInit(){var e=()=>super.ngOnInit,n=this;return(0,p.A)(function*(){n.anchorFeatureEnabled=n.anchorService.isAnchorFeatureEnabled(),e().call(n),n.elementRef.nativeElement.innerHTML="";const f=n.renderer.createElement(n.baseConfig.tag);n.renderer.appendChild(n.elementRef.nativeElement,f)})()}onConfigChanges(){var e=this;return(0,p.A)(function*(){var n,f;const d=e.renderer.createElement(e.config.tag),s={...e.config.attributes};null!==(n=e.config.attributes)&&void 0!==n&&n.src&&(s.src=e.contextService.toResourceUrl(e.config.attributes.src)),null!==(f=e.config.attributes)&&void 0!==f&&f.href&&(s.href=e.contextService.toResourceUrl(e.config.attributes.href)),"iframe"===e.config.tag&&d.addEventListener("load",P=>{d&&d.contentDocument?(d.contentDocument.scrollingElement.scrollHeight>d.contentWindow.innerHeight&&(d.style.height=d.contentDocument.scrollingElement.scrollHeight+"px"),d.contentDocument.scrollingElement.scrollWidth>d.contentWindow.innerWidth&&(d.style.width=d.contentDocument.scrollingElement.scrollWidth+"px")):window.addEventListener("message",S=>{S.origin===new URL(null==s?void 0:s.src).origin&&(S.data.height&&(d.style.height=S.data.height+"px"),S.data.width&&(d.style.width=S.data.width+"px"))})}),Object.keys(s).forEach(P=>d.setAttribute(P,e.config.attributes[P])),e.translatedContent=yield e.translate.translate({text:e.config.content,args:e.config.variables||[]}),d.innerHTML=(0,T.uQ)(e.translatedContent,e.context,e.contextService.$functions,e.globalService.getGlobalData()),e.elementRef.nativeElement.innerHTML="";let C=d;e.anchorFeatureEnabled&&(C=e.handleAnchorTags(d)),C.addEventListener("click",P=>e.onClick(P)),e.renderer.appendChild(e.elementRef.nativeElement,C),e.changeDetectorRef.markForCheck()})()}ngOnDestroy(){super.ngOnDestroy()}onClick(e){this.config.tap&&((this.anchorFeatureEnabled||"touchstart"===e.type)&&e.preventDefault(),this.trackOnClick(),this.eventActionService.processEventAction(this.config.tap,this));const n=this.getAnchorElementFromEvent(e);null!=n&&n.href&&(n.target===m.We.BLANK?"external"===n.getAttribute("data-target")?this.trackLinkOpenExternal(n):this.trackLinkOpenAppBrowser(n):this.trackLinkOpenInline(n))}getConfigEscapeProperties(){return["condition"]}isGhost(){return!1}hasContextChanged(e){return super.hasContextChanged(e)||this.translatedContent&&this.translatedContent.indexOf(T.mF)>-1}getAnchorElementFromEvent(e){var n,f;return"a"===(null===(n=e.target)||void 0===n?void 0:n.tagName.toLowerCase())?e.target:"a"===(null===(f=e.target)||void 0===f||null===(f=f.parentElement)||void 0===f?void 0:f.tagName.toLowerCase())?e.target.parentElement:null}handleAnchorTags(e){if(this.anchorPath=this.anchorService.getAnchorPathForEventAction(this.config.tap,this.context),this.anchorPath){const n=this.renderer.createElement("a");return n.style.height="inherit",n.style.width="inherit",n.setAttribute("href",this.anchorPath),n.appendChild(e),n}return e}trackOnClick(){const e="".concat(this.getTrackingBaseKey(),"_CLICKED");this.dispatchTrackingAction(e,{})}trackLinkOpenExternal(e){const n="".concat(this.getTrackingBaseKey(),"_LINK_OPEN_EXTERNAL");this.dispatchTrackingAction(n,{TARGET_URL:e.href,LINK_TEXT:e.innerText})}trackLinkOpenAppBrowser(e){const n="".concat(this.getTrackingBaseKey(),"_LINK_OPEN_APP_BROWSER");this.dispatchTrackingAction(n,{TARGET_URL:e.href,LINK_TEXT:e.innerText})}trackLinkOpenInline(e){this.store.dispatch((0,v.k4)({url:window.location.href,key:"".concat(this.getTrackingBaseKey(),"_LINK_OPEN_INLINE"),params:{TARGET_URL:e.href,LINK_TEXT:e.innerText}}))}dispatchTrackingAction(e,n){this.store.dispatch((0,v.k4)({url:window.location.href,key:e,params:n}))}}return(_=u).type="html",_.\u0275fac=function(e){return new(e||_)(c.rXU(c.aKT),c.rXU(E.V),c.rXU(c.sFG),c.rXU(c.zZn),c.rXU(M.D),c.rXU(D.G),c.rXU(a.B),c.rXU(o.qQ),c.rXU(c.Agw),c.rXU(c.gRc),c.rXU(l.d),c.rXU(i.X))},_.\u0275cmp=c.VBU({type:_,selectors:[["storefront-html"]],features:[c.Jv_([a.B]),c.Vt3],decls:0,vars:0,template:function(e,n){},styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-html{position:relative;display:flex}storefront-html.ghost>*{background-image:linear-gradient(90deg,var(--ghostColor) 0px,rgb(236,236,236) 40px,var(--ghostColor) 80px);background-size:80vw;animation:ghost-lines 2s infinite linear;background-color:var(--ghostColor);border-radius:var(--borderRadius);width:90%;height:1.2em}\n'],encapsulation:2,changeDetection:0}),u})()},9207:(U,O,t)=>{t.r(O),t.d(O,{HTMLModule:()=>r,component:()=>a});var p=t(177),o=t(2285),c=t(3953);let r=(()=>{var v;class m{}return(v=m).\u0275fac=function(T){return new(T||v)},v.\u0275mod=c.$C({type:v}),v.\u0275inj=c.G2t({imports:[p.MD]}),m})();const a=o.b},6218:(U,O,t)=>{t.r(O),t.d(O,{SectionModule:()=>h,component:()=>e});var p=t(177),o=t(3953);const c={content:null};var r=t(1210),a=t(8179),v=t(7879),m=t(1184),y=t(9516),T=t(1652),E=t(4748),M=t(3648);const D=["viewTemplate"],l=["viewChildren"];function i(n,f){if(1&n&&o.nrm(0,"storefront-element",3,0),2&n){const d=f.$implicit,s=o.XpG(2);o.Y8G("baseContext",s.baseContext)("baseConfig",d)("lazy",s.isLazy)}}function g(n,f){if(1&n&&(o.qex(0),o.DNE(1,i,2,3,"storefront-element",2),o.bVm()),2&n){const d=o.XpG();o.R7$(),o.Y8G("ngForOf",d.children)("ngForTrackBy",d.trackByChildren)}}let _=(()=>{var n;class f extends r.${constructor(s,C,P,S,A,B,L,I,R){super(C,s,P,A,B),this.elementRef=s,this.injector=C,this.contextService=P,this.changeDetectorRef=S,this.document=A,this.globalService=B,this.ssrService=L,this.platformId=I,this.purpleEnv=R,this.defaultConfig={...c},this.changeDetectorRef=S}ngOnInit(){this.baseContext.isGhost||super.ngOnInit()}onConfigChanges(){if(this.isLazy=!(!window.isUniversal||!this.ssrService.currentPrebootStatus),this.baseConfig.content){this.children=[];for(let s=0;s<this.baseConfig.content.length;s++)(this.purpleEnv.isUniversal||(0,a.Ol)(this.config.content[s]))&&this.children.push(this.baseConfig.content[s]);this.changeDetectorRef.detectChanges(),this.childComponents.forEach((s,C)=>{!this.purpleEnv.isUniversal||(0,a.Ol)(this.config.content[C])?s.lazyLoad():this.purpleEnv.isUniversal&&(0,p.UE)(this.platformId)&&(null==s||s.loadAndClear())}),this.changeDetectorRef.markForCheck()}}stripChildConfigs(s){return s.content&&Array.isArray(s.content)&&(s.content=s.content.map(({_uuid:C,condition:P})=>({_uuid:C,condition:P}))),s}rebuildContextKeys(){super.rebuildContextKeys(),this.baseConfig.content.forEach(s=>{"condition"in s&&(0,m.Fl)(s.condition,this.contextKeys)})}trackByChildren(s,C){if("string"==typeof C||"number"==typeof C)return C;const P=C.id||C._uuid;if(!P)throw console.error(C),"Element should have _uuid from config loader!";return P}}return(n=f).type="section",n.\u0275fac=function(s){return new(s||n)(o.rXU(o.aKT),o.rXU(o.zZn),o.rXU(y.V),o.rXU(o.gRc),o.rXU(p.qQ),o.rXU(T.d),o.rXU(E.i),o.rXU(o.Agw),o.rXU(v.r6))},n.\u0275cmp=o.VBU({type:n,selectors:[["storefront-section"]],viewQuery:function(s,C){if(1&s&&(o.GBs(D,7,o.c1b),o.GBs(l,5)),2&s){let P;o.mGM(P=o.lsd())&&(C.viewTemplate=P.first),o.mGM(P=o.lsd())&&(C.childComponents=P)}},features:[o.Vt3],decls:1,vars:1,consts:[["viewChildren",""],[4,"ngIf"],[3,"baseContext","baseConfig","lazy",4,"ngFor","ngForOf","ngForTrackBy"],[3,"baseContext","baseConfig","lazy"]],template:function(s,C){1&s&&o.DNE(0,g,2,2,"ng-container",1),2&s&&o.Y8G("ngIf",C.children)},dependencies:[p.Sq,p.bT,M._],styles:["storefront-section{display:flex;justify-content:space-between;padding:var(--sectionPadding);flex-direction:column}\n"],encapsulation:2,changeDetection:0}),f})();var u=t(6895);let h=(()=>{var n;class f{}return(n=f).\u0275fac=function(s){return new(s||n)},n.\u0275mod=o.$C({type:n}),n.\u0275inj=o.G2t({imports:[p.MD,u.r]}),f})();const e=_},1802:(U,O,t)=>{t.d(O,{c:()=>E});var p=t(1210),o=t(9758),c=t(8075),r=t(177),a=t(3953),v=t(9516),m=t(4559),y=t(1652),T=t(8909);let E=(()=>{var M;class D extends p.${constructor(i,g,_,u,h,e){super(_,i,g,h,e),this.elementRef=i,this.contextService=g,this.injector=_,this.router=u,this.document=h,this.globalService=e,this.type="switch",this.defaultConfig={}}ngOnInit(){this.config={...this.baseConfig},this.checked=this.config.initialValue,super.ngOnInit(),this.contextService.viewContext$.subscribe(i=>{const g=this.config.paramScope===o.x.USER_ATTRIBUTE?i.userAttributes[this.config.param]:i[this.config.param];g&&(this.checked="true"===g)})}isChecked(){return this.checked}toggle(){this.setChecked(!this.checked)}setChecked(i){this.config.paramScope===o.x.USER_ATTRIBUTE?this.contextService.setUserAttribute(this.config.param,"".concat(i)):(0,c.CV)(this.router,{[this.config.param]:i})}}return(M=D).\u0275fac=function(i){return new(i||M)(a.rXU(a.aKT),a.rXU(v.V),a.rXU(a.zZn),a.rXU(m.Ix),a.rXU(r.qQ),a.rXU(y.d))},M.\u0275cmp=a.VBU({type:M,selectors:[["storefront-switch"]],hostVars:2,hostBindings:function(i,g){2&i&&a.AVh("checked",g.checked)},features:[a.Vt3],decls:4,vars:2,consts:[[1,"label",3,"storefrontTranslate"],[1,"switch"],["type","checkbox",3,"change","checked"]],template:function(i,g){1&i&&(a.nrm(0,"label",0),a.j41(1,"label",1)(2,"input",2),a.bIt("change",function(){return g.toggle()}),a.k0s(),a.nrm(3,"span"),a.k0s()),2&i&&(a.Y8G("storefrontTranslate",g.config.label),a.R7$(2),a.Y8G("checked",g.isChecked()))},dependencies:[T.M],styles:['storefront-switch{align-items:center;display:flex}storefront-switch .label{margin:0 var(--gutter)}storefront-switch .switch{text-align:left;width:calc(var(--switchWidth) - 2 * var(--switchBorderWidth));height:calc(var(--switchWidth) / 2);border-radius:var(--switchBorderRadius);background-color:var(--switchActiveColor);display:inline-block;position:relative;cursor:pointer}storefront-switch .switch>span{display:block;width:100%;height:100%;border-radius:var(--switchBorderRadius)}storefront-switch .switch>span:before,storefront-switch .switch>span:after{content:"";cursor:pointer;position:absolute}storefront-switch .switch>span:before{width:100%;height:100%;box-sizing:border-box;background-color:var(--switchBackgroundColor);border-radius:var(--switchBorderRadius);transition:opacity .2s ease-out .1s,transform .2s ease-out .1s;transform:scale(1);opacity:1}storefront-switch .switch>span:after{top:var(--switchBorderWidth);z-index:3;transition:transform .4s cubic-bezier(.44,-.12,.07,1.15);width:calc(var(--switchWidth) / 2 - 2 * var(--switchBorderWidth));height:calc(var(--switchWidth) / 2 - 2 * var(--switchBorderWidth));background-color:var(--switchHandleColor);border-radius:100%;box-shadow:0 2px 5px #0000004d;left:var(--switchBorderWidth)}storefront-switch .switch>input[type=checkbox]{opacity:0;position:absolute}storefront-switch .switch>input[type=checkbox]:checked~span:before{transform:scale(0);opacity:.7}storefront-switch .switch>input[type=checkbox]:checked~span:after{transform:translate(100%)}\n'],encapsulation:2}),D})()},9645:(U,O,t)=>{t.r(O),t.d(O,{SwitchModule:()=>a,component:()=>v});var p=t(177),o=t(1802),c=t(6483),r=t(3953);let a=(()=>{var m;class y{}return(m=y).\u0275fac=function(E){return new(E||m)},m.\u0275mod=r.$C({type:m}),m.\u0275inj=r.G2t({imports:[p.MD,c.h]}),y})();const v=o.c},2364:(U,O,t)=>{t.d(O,{S:()=>a});var p=t(4412),o=t(3953),c=t(1626),r=t(9118);let a=(()=>{var v;class m{constructor(T,E){this.http=T,this.kioskConfigService=E,this.initialization=new p.t(null),this.data=[{identifier:"phone",minScreenWidth:null},{identifier:"tablet_small",minScreenWidth:533},{identifier:"tablet_large",minScreenWidth:720}]}init(){}getDeviceClass(){const E=this.data.reduce((M,D)=>window.innerWidth>=D.minScreenWidth?D:M,null);return E&&E.identifier}}return(v=m).\u0275fac=function(T){return new(T||v)(o.KVO(c.Qq),o.KVO(r.x))},v.\u0275prov=o.jDH({token:v,factory:v.\u0275fac,providedIn:"root"}),m})()},354:(U,O,t)=>{t.d(O,{s:()=>l});var p=t(467),o=t(5102),c=t(1413),r=t(5964),a=t(6697),v=t(3953),m=t(496),y=t(1626),T=t(9118),E=t(3072),M=t(2364),D=t(9516);let l=(()=>{var i;class g{constructor(u,h,e,n,f,d,s){this.publicationService=u,this.http=h,this.purpleService=e,this.kioskConfigService=n,this.sessionService=f,this.deviceClassService=d,this.contextService=s,this.data=[],this.initPdf=new c.B,this.presenterLoaded=new c.B,this.subscriptions=[]}init(u){var h=this;return(0,p.A)(function*(){h.kioskConfigData=yield h.kioskConfigService.getConfig().toPromise(),h.content=yield h.publicationService.selectByContentCriteria(u);let e=yield h.getLink(h.content,"pdf_single_page_download");yield h.getSinglePageDownloadLinkFromJSON(e);let n=yield h.getLink(h.content,"pdf_download");h.initPdf.next(n)})()}getLink(u,h){var e=this;return(0,p.A)(function*(){const n=yield(0,o.GA)(u,e.purpleService);if(u&&u.properties&&!n){let f=Object.keys(u.properties);for(let d=0;d<f.length;d++)if(f[d]===h)return e.getAttachmentLink(u,u.properties[f[d]]);return null}})()}getSinglePageDownloadLinkFromJSON(u){var h=this;return(0,p.A)(function*(){try{const e=h.presenterLoaded.pipe((0,r.p)(n=>n),(0,a.s)(1)).subscribe(function(){var n=(0,p.A)(function*(f){if(f){const A=yield h.http.get(u).toPromise();var d=WP.instance.getPurpleData().getPages();if(A){var s=0;h.data=[];for(const B of d){for(var C=parseInt(B.pageCount),P=[],S=0;S<C;S++)P.push(yield h.getAttachmentLink(h.content,A[s],s+1)),s++;h.data.push(P)}}}});return function(f){return n.apply(this,arguments)}}());h.subscriptions.push(e)}catch(e){console.error("Error fetching data from JSON link:",e)}})()}getAttachmentLink(u,h,e){var n=this;return(0,p.A)(function*(){const f=new URL(window.location.href).origin,d=n.contextService.getIsCustomerDomainUsed()?f:n.purpleService.getPurpleConfig().contentUrl,s=JSON.parse(localStorage.getItem("AppWebConfiguration")).id;let C="".concat(d,"/resources/web/attachment/").concat(s,"/").concat(u.id,"/").concat(h);C+="?preview=".concat(n.kioskConfigData.kioskConfig.preview),C+="&deviceId=".concat(localStorage.getItem("deviceId")),C+="&deviceClass=".concat(n.deviceClassService.getDeviceClass());const P=yield n.sessionService.getReceiptData(u);if(P){const{receipt:A,providerType:B}=P;C+="&receipt=".concat(window.encodeURIComponent(A)),C+="&providerType=".concat(B)}const S=n.sanitize(n.getFileName(u,h,e));return C+="&targetFilename=".concat(window.encodeURIComponent(S)),C})()}getSingleDownloadLink(){return this.data&&WP.instance&&WP.instance.getScroller()&&this.data[WP.instance.getScroller().getIndex()]}getDownloadLink(){var u=this;return(0,p.A)(function*(){return yield u.getLink(u.content,"pdf_download")})()}getFileName(u,h,e){const f=this.kioskConfigData.kioskConfig.downloadFileName,d=h.substr(h.lastIndexOf(".")),s=e?" - "+e:"";switch(f){case"publication_issue":return this.publicationService.currentPublication.name+" - "+u.name+s+d;case"issue":return u.name+s+d;default:return h}}sanitize(u){return u.replace(/,/g,"").replace(/\xe4/g,"ae").replace(/\xc4/g,"Ae").replace(/\xf6/g,"oe").replace(/\xd6/g,"Oe").replace(/\xfc/g,"ue").replace(/\xdc/g,"Ue")}ngOnDestroy(){this.subscriptions.forEach(u=>u.unsubscribe())}}return(i=g).\u0275fac=function(u){return new(u||i)(v.KVO(m.m),v.KVO(y.Qq),v.KVO(o.Wj),v.KVO(T.x),v.KVO(E.Q),v.KVO(M.S),v.KVO(D.V))},i.\u0275prov=v.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),g})()},3072:(U,O,t)=>{t.d(O,{Q:()=>v});var p=t(467),o=t(4404),r=t(3953),a=t(5102);let v=(()=>{var m;class y{constructor(E){this.purpleService=E}getReceiptData(E){var M=this;return(0,p.A)(function*(){return E.purchaseData.purchasedBy.includes(o.PurchaseOption.ENTITLEMENT)?{receipt:yield M.getAccessToken(),providerType:"entitlement"}:E.purchaseData.purchasedBy.includes(o.PurchaseOption.SUBSCRIPTION_CODE)?{receipt:(yield M.getSubscriptionCodes()).join(","),providerType:"subscriptionCode"}:null})()}getAccessToken(){var E=this;return(0,p.A)(function*(){const M=yield E.purpleService.purpleRef.entitlement.getUserData();return null==M?void 0:M.accessToken})()}getSubscriptionCodes(){var E=this;return(0,p.A)(function*(){return(yield E.purpleService.purpleRef.store.getSubscriptionCodes()).subscriptionCodes})()}}return(m=y).\u0275fac=function(E){return new(E||m)(r.KVO(a.Wj))},m.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),y})()},7967:(U,O,t)=>{function p(o,c){return"object"!=typeof o?1===c?o:o+"S":1===c?o.singular:o.plural}t.d(O,{t:()=>p})}}]);
1
+ "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["common"],{3472:(U,O,t)=>{t.d(O,{M:()=>y});var p=t(9758),o=t(8179),c=t(362),a=t(4452),v=t(3713),m=t(3953);let y=(()=>{var T;class E extends v.r{getDataFromContext(D=this.context){return this.getSelectionScope()===p.x.USER_ATTRIBUTE?D.userAttributes[this.getParam()]:D[this.getParam()]}hasContextChanged(D){let l=super.hasContextChanged(D);if(!l&&this.isSelectionEnabled()){const i=this.getDataFromContext(),g=this.getDataFromContext(D);l=!c(i,g)}return l}ngOnDestroy(){super.ngOnDestroy(),this.dataSource&&this.contextService.unregisterDataSource(this.dataSource)}stripChildConfigs(D){return D.content&&(D.content={}),D}getEntryConfig(D){return D&&D.ad||{...this.baseConfig.content}}getEntryContext(D){var l;let i=(0,o.uQ)(null!==(l=this.getConfig().dataSource.entryId)&&void 0!==l?l:this.getDataType(),this.context,this.contextService.$functions,this.globalService.getGlobalData());return{...this.baseContext,[i]:D}}getConfig(){return this.config||this.baseConfig}isSelectionEnabled(){return!1}getDataType(){return this.getConfig().dataSource.type}getGroupDataType(D){return D.dataSource.type}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),...(0,a.Kj)(this.baseConfig)].filter(D=>!!D)}}return(T=E).\u0275fac=(()=>{let M;return function(l){return(M||(M=m.xGo(T)))(l||T)}})(),T.\u0275dir=m.FsC({type:T,features:[m.Vt3]}),E})()},1803:(U,O,t)=>{t.d(O,{TS:()=>p,We:()=>c});var p=function(r){return r.VERTICAL="vertical",r.HORIZONTAL="horizontal",r.GRID="grid",r.GROUP="group",r.TABS="tabs",r}(p||{}),c=function(r){return r.BLANK="_blank",r.SELF="_self",r}(c||{})},3303:(U,O,t)=>{t.d(O,{y:()=>r});var p=t(177),o=t(9149),c=t(3953);let r=(()=>{var a;class v{}return(a=v).\u0275fac=function(y){return new(y||a)},a.\u0275mod=c.$C({type:a}),a.\u0275inj=c.G2t({imports:[p.MD,o.ContentTitleModule]}),v})()},5848:(U,O,t)=>{t.d(O,{Q:()=>T});var p=t(467),o=t(177),c=t(1210),r=t(5706),a=t(3953),v=t(9516),m=t(5102),y=t(1652);let T=(()=>{var E;class M extends c.${get contextKey(){var l,i,g;return null!==(l=null!==(i=null===(g=this.config)||void 0===g?void 0:g.contextKey)&&void 0!==i?i:this.defaultConfig.contextKey)&&void 0!==l?l:"content"}constructor(l,i,g,_,u,h){super(i,l,g,_,h),this.elementRef=l,this.injector=i,this.contextService=g,this.document=_,this.purpleService=u,this.globalService=h}updatePostWithOptionalData(l,i){var g=this;return(0,p.A)(function*(){const _=yield g.purpleService.getOptionalData(g.catalogContent,l,i);return(0,r.mF)(g.catalogContent)?(g.catalogContent=_,g.catalogContent):(0,r.G4)(g.catalogContent)?(g.bundleContent=(0,r.Ig)(g.catalogContent),g.bundleContent[i]=_,g.bundleContent[i]):void 0})()}hasContentChanged(l,i){return(null==l?void 0:l.id)!==(null==i?void 0:i.id)||this.hasVersionChanged(l,i)}hasVersionChanged(l,i){return(null==l?void 0:l.version)!==(null==i?void 0:i.version)}onConfigChanges(){var l;let i=null===(l=this.context)||void 0===l?void 0:l[this.contextKey];Array.isArray(i)&&(i=i[0]);const g=this.hasContentChanged(this.catalogContent,i)&&!!i;return g&&(this.catalogContent=i),g}isGhost(){var l;return!this.config||!(null!==(l=this.context)&&void 0!==l&&l[this.contextKey])}ngOnDestroy(){super.ngOnDestroy()}getContextKey(){return this.contextKey}}return(E=M).\u0275fac=function(l){return new(l||E)(a.rXU(a.aKT),a.rXU(a.zZn),a.rXU(v.V),a.rXU(o.qQ),a.rXU(m.Wj),a.rXU(y.d))},E.\u0275dir=a.FsC({type:E,features:[a.Vt3]}),M})()},9149:(U,O,t)=>{t.r(O),t.d(O,{ContentTitleModule:()=>i,component:()=>g});var p=t(177);const o={titleMessage:"%s"};var c=t(5848),r=t(3953),a=t(9516),v=t(5102),m=t(1652),y=t(8909);const T=_=>[_];function E(_,u){1&_&&(r.qex(0),r.j41(1,"h1"),r.EFF(2,"..."),r.k0s(),r.bVm())}function M(_,u){if(1&_&&r.nrm(0,"h1",2),2&_){const h=r.XpG();r.Y8G("storefrontTranslate",h.config.titleMessage)("storefrontTranslateArgs",r.eq3(2,T,null==h.catalogContent?null:h.catalogContent.name))}}let D=(()=>{var _;class u extends c.Q{constructor(e,n,f,d,s,C){super(e,f,n,d,s,C),this.elementRef=e,this.contextService=n,this.injector=f,this.document=d,this.purpleService=s,this.globalService=C,this.type="content-title",this.defaultConfig=o}}return(_=u).\u0275fac=function(e){return new(e||_)(r.rXU(r.aKT),r.rXU(a.V),r.rXU(r.zZn),r.rXU(p.qQ),r.rXU(v.Wj),r.rXU(m.d))},_.\u0275cmp=r.VBU({type:_,selectors:[["storefront-content-title"]],features:[r.Vt3],decls:2,vars:2,consts:[[4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(e,n){1&e&&r.DNE(0,E,3,0,"ng-container",0)(1,M,1,4,"h1",1),2&e&&(r.Y8G("ngIf",n.ghost),r.R7$(),r.Y8G("ngIf",!n.ghost))},dependencies:[p.bT,y.M],styles:["storefront-content-title>h1{margin-top:var(--contentHeaderMarginTop);margin-bottom:var(--contentHeaderMarginBottom);padding-top:var(--contentHeaderPaddingVert);padding-bottom:var(--contentHeaderPaddingVert);font-size:1.5rem}\n"],encapsulation:2}),u})();var l=t(6483);let i=(()=>{var _;class u{}return(_=u).\u0275fac=function(e){return new(e||_)},_.\u0275mod=r.$C({type:_}),_.\u0275inj=r.G2t({imports:[p.MD,l.h]}),u})();const g=D},2285:(U,O,t)=>{t.d(O,{b:()=>g});var p=t(467),o=t(177),c=t(3953),r=t(1210),a=t(8251),v=t(610),m=t(1803);const y={tag:"div",content:"",attributes:{}};var T=t(8179),E=t(9516),M=t(8448),D=t(8004),l=t(1652),i=t(5820);let g=(()=>{var _;class u extends r.${constructor(e,n,f,d,s,C,P,S,A,B,L,I){super(d,e,n,S,L),this.elementRef=e,this.contextService=n,this.renderer=f,this.injector=d,this.translate=s,this.eventActionService=C,this.store=P,this.document=S,this.platformId=A,this.changeDetectorRef=B,this.globalService=L,this.anchorService=I,this.anchorFeatureEnabled=!1,this.anchorPath=null,this.defaultConfig={...y}}ngOnInit(){var e=()=>super.ngOnInit,n=this;return(0,p.A)(function*(){n.anchorFeatureEnabled=n.anchorService.isAnchorFeatureEnabled(),e().call(n),n.elementRef.nativeElement.innerHTML="";const f=n.renderer.createElement(n.baseConfig.tag);n.renderer.appendChild(n.elementRef.nativeElement,f)})()}onConfigChanges(){var e=this;return(0,p.A)(function*(){var n,f;const d=e.renderer.createElement(e.config.tag),s={...e.config.attributes};null!==(n=e.config.attributes)&&void 0!==n&&n.src&&(s.src=e.contextService.toResourceUrl(e.config.attributes.src)),null!==(f=e.config.attributes)&&void 0!==f&&f.href&&(s.href=e.contextService.toResourceUrl(e.config.attributes.href)),"iframe"===e.config.tag&&d.addEventListener("load",P=>{d&&d.contentDocument?(d.contentDocument.scrollingElement.scrollHeight>d.contentWindow.innerHeight&&(d.style.height=d.contentDocument.scrollingElement.scrollHeight+"px"),d.contentDocument.scrollingElement.scrollWidth>d.contentWindow.innerWidth&&(d.style.width=d.contentDocument.scrollingElement.scrollWidth+"px")):window.addEventListener("message",S=>{S.origin===new URL(null==s?void 0:s.src).origin&&(S.data.height&&(d.style.height=S.data.height+"px"),S.data.width&&(d.style.width=S.data.width+"px"))})}),Object.keys(s).forEach(P=>d.setAttribute(P,e.config.attributes[P])),e.translatedContent=yield e.translate.translate({text:e.config.content,args:e.config.variables||[]}),d.innerHTML=(0,T.uQ)(e.translatedContent,e.context,e.contextService.$functions,e.globalService.getGlobalData()),e.elementRef.nativeElement.innerHTML="";let C=d;e.anchorFeatureEnabled&&(C=e.handleAnchorTags(d)),C.addEventListener("click",P=>e.onClick(P)),e.renderer.appendChild(e.elementRef.nativeElement,C),e.changeDetectorRef.markForCheck()})()}ngOnDestroy(){super.ngOnDestroy()}onClick(e){this.config.tap&&((this.anchorFeatureEnabled||"touchstart"===e.type)&&e.preventDefault(),this.trackOnClick(),this.eventActionService.processEventAction(this.config.tap,this));const n=this.getAnchorElementFromEvent(e);null!=n&&n.href&&(n.target===m.We.BLANK?"external"===n.getAttribute("data-target")?this.trackLinkOpenExternal(n):this.trackLinkOpenAppBrowser(n):this.trackLinkOpenInline(n))}getConfigEscapeProperties(){return["condition"]}isGhost(){return!1}hasContextChanged(e){return super.hasContextChanged(e)||this.translatedContent&&this.translatedContent.indexOf(T.mF)>-1}getAnchorElementFromEvent(e){var n,f;return"a"===(null===(n=e.target)||void 0===n?void 0:n.tagName.toLowerCase())?e.target:"a"===(null===(f=e.target)||void 0===f||null===(f=f.parentElement)||void 0===f?void 0:f.tagName.toLowerCase())?e.target.parentElement:null}handleAnchorTags(e){if(this.anchorPath=this.anchorService.getAnchorPathForEventAction(this.config.tap,this.context),this.anchorPath){const n=this.renderer.createElement("a");return n.style.height="inherit",n.style.width="inherit",n.setAttribute("href",this.anchorPath),n.appendChild(e),n}return e}trackOnClick(){const e="".concat(this.getTrackingBaseKey(),"_CLICKED");this.dispatchTrackingAction(e,{})}trackLinkOpenExternal(e){const n="".concat(this.getTrackingBaseKey(),"_LINK_OPEN_EXTERNAL");this.dispatchTrackingAction(n,{TARGET_URL:e.href,LINK_TEXT:e.innerText})}trackLinkOpenAppBrowser(e){const n="".concat(this.getTrackingBaseKey(),"_LINK_OPEN_APP_BROWSER");this.dispatchTrackingAction(n,{TARGET_URL:e.href,LINK_TEXT:e.innerText})}trackLinkOpenInline(e){this.store.dispatch((0,v.k4)({url:window.location.href,key:"".concat(this.getTrackingBaseKey(),"_LINK_OPEN_INLINE"),params:{TARGET_URL:e.href,LINK_TEXT:e.innerText}}))}dispatchTrackingAction(e,n){this.store.dispatch((0,v.k4)({url:window.location.href,key:e,params:n}))}}return(_=u).type="html",_.\u0275fac=function(e){return new(e||_)(c.rXU(c.aKT),c.rXU(E.V),c.rXU(c.sFG),c.rXU(c.zZn),c.rXU(M.D),c.rXU(D.G),c.rXU(a.B),c.rXU(o.qQ),c.rXU(c.Agw),c.rXU(c.gRc),c.rXU(l.d),c.rXU(i.X))},_.\u0275cmp=c.VBU({type:_,selectors:[["storefront-html"]],features:[c.Jv_([a.B]),c.Vt3],decls:0,vars:0,template:function(e,n){},styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-html{position:relative;display:flex}storefront-html.ghost>*{background-image:linear-gradient(90deg,var(--ghostColor) 0px,rgb(236,236,236) 40px,var(--ghostColor) 80px);background-size:80vw;animation:ghost-lines 2s infinite linear;background-color:var(--ghostColor);border-radius:var(--borderRadius);width:90%;height:1.2em}\n'],encapsulation:2,changeDetection:0}),u})()},9207:(U,O,t)=>{t.r(O),t.d(O,{HTMLModule:()=>r,component:()=>a});var p=t(177),o=t(2285),c=t(3953);let r=(()=>{var v;class m{}return(v=m).\u0275fac=function(T){return new(T||v)},v.\u0275mod=c.$C({type:v}),v.\u0275inj=c.G2t({imports:[p.MD]}),m})();const a=o.b},6218:(U,O,t)=>{t.r(O),t.d(O,{SectionModule:()=>h,component:()=>e});var p=t(177),o=t(3953);const c={content:null};var r=t(1210),a=t(8179),v=t(7879),m=t(1184),y=t(9516),T=t(1652),E=t(4748),M=t(3648);const D=["viewTemplate"],l=["viewChildren"];function i(n,f){if(1&n&&o.nrm(0,"storefront-element",3,0),2&n){const d=f.$implicit,s=o.XpG(2);o.Y8G("baseContext",s.baseContext)("baseConfig",d)("lazy",s.isLazy)}}function g(n,f){if(1&n&&(o.qex(0),o.DNE(1,i,2,3,"storefront-element",2),o.bVm()),2&n){const d=o.XpG();o.R7$(),o.Y8G("ngForOf",d.children)("ngForTrackBy",d.trackByChildren)}}let _=(()=>{var n;class f extends r.${constructor(s,C,P,S,A,B,L,I,R){super(C,s,P,A,B),this.elementRef=s,this.injector=C,this.contextService=P,this.changeDetectorRef=S,this.document=A,this.globalService=B,this.ssrService=L,this.platformId=I,this.purpleEnv=R,this.defaultConfig={...c},this.changeDetectorRef=S}ngOnInit(){this.baseContext.isGhost||super.ngOnInit()}onConfigChanges(){if(this.isLazy=!(!window.isUniversal||!this.ssrService.currentPrebootStatus),this.baseConfig.content){this.children=[];for(let s=0;s<this.baseConfig.content.length;s++)(this.purpleEnv.isUniversal||(0,a.Ol)(this.config.content[s]))&&this.children.push(this.baseConfig.content[s]);this.changeDetectorRef.detectChanges(),this.childComponents.forEach((s,C)=>{!this.purpleEnv.isUniversal||(0,a.Ol)(this.config.content[C])?s.lazyLoad():this.purpleEnv.isUniversal&&(0,p.UE)(this.platformId)&&(null==s||s.loadAndClear())}),this.changeDetectorRef.markForCheck()}}stripChildConfigs(s){return s.content&&Array.isArray(s.content)&&(s.content=s.content.map(({_uuid:C,condition:P})=>({_uuid:C,condition:P}))),s}rebuildContextKeys(){super.rebuildContextKeys(),this.baseConfig.content.forEach(s=>{"condition"in s&&(0,m.Fl)(s.condition,this.contextKeys)})}trackByChildren(s,C){if("string"==typeof C||"number"==typeof C)return C;const P=C.id||C._uuid;if(!P)throw console.error(C),"Element should have _uuid from config loader!";return P}}return(n=f).type="section",n.\u0275fac=function(s){return new(s||n)(o.rXU(o.aKT),o.rXU(o.zZn),o.rXU(y.V),o.rXU(o.gRc),o.rXU(p.qQ),o.rXU(T.d),o.rXU(E.i),o.rXU(o.Agw),o.rXU(v.r6))},n.\u0275cmp=o.VBU({type:n,selectors:[["storefront-section"]],viewQuery:function(s,C){if(1&s&&(o.GBs(D,7,o.c1b),o.GBs(l,5)),2&s){let P;o.mGM(P=o.lsd())&&(C.viewTemplate=P.first),o.mGM(P=o.lsd())&&(C.childComponents=P)}},features:[o.Vt3],decls:1,vars:1,consts:[["viewChildren",""],[4,"ngIf"],[3,"baseContext","baseConfig","lazy",4,"ngFor","ngForOf","ngForTrackBy"],[3,"baseContext","baseConfig","lazy"]],template:function(s,C){1&s&&o.DNE(0,g,2,2,"ng-container",1),2&s&&o.Y8G("ngIf",C.children)},dependencies:[p.Sq,p.bT,M._],styles:["storefront-section{display:flex;justify-content:space-between;padding:var(--sectionPadding);flex-direction:column}\n"],encapsulation:2,changeDetection:0}),f})();var u=t(6895);let h=(()=>{var n;class f{}return(n=f).\u0275fac=function(s){return new(s||n)},n.\u0275mod=o.$C({type:n}),n.\u0275inj=o.G2t({imports:[p.MD,u.r]}),f})();const e=_},1802:(U,O,t)=>{t.d(O,{c:()=>E});var p=t(1210),o=t(9758),c=t(8075),r=t(177),a=t(3953),v=t(9516),m=t(4559),y=t(1652),T=t(8909);let E=(()=>{var M;class D extends p.${constructor(i,g,_,u,h,e){super(_,i,g,h,e),this.elementRef=i,this.contextService=g,this.injector=_,this.router=u,this.document=h,this.globalService=e,this.type="switch",this.defaultConfig={}}ngOnInit(){this.config={...this.baseConfig},this.checked=this.config.initialValue,super.ngOnInit(),this.contextService.viewContext$.subscribe(i=>{const g=this.config.paramScope===o.x.USER_ATTRIBUTE?i.userAttributes[this.config.param]:i[this.config.param];g&&(this.checked="true"===g)})}isChecked(){return this.checked}toggle(){this.setChecked(!this.checked)}setChecked(i){this.config.paramScope===o.x.USER_ATTRIBUTE?this.contextService.setUserAttribute(this.config.param,"".concat(i)):(0,c.CV)(this.router,{[this.config.param]:i})}}return(M=D).\u0275fac=function(i){return new(i||M)(a.rXU(a.aKT),a.rXU(v.V),a.rXU(a.zZn),a.rXU(m.Ix),a.rXU(r.qQ),a.rXU(y.d))},M.\u0275cmp=a.VBU({type:M,selectors:[["storefront-switch"]],hostVars:2,hostBindings:function(i,g){2&i&&a.AVh("checked",g.checked)},features:[a.Vt3],decls:4,vars:2,consts:[[1,"label",3,"storefrontTranslate"],[1,"switch"],["type","checkbox",3,"change","checked"]],template:function(i,g){1&i&&(a.nrm(0,"label",0),a.j41(1,"label",1)(2,"input",2),a.bIt("change",function(){return g.toggle()}),a.k0s(),a.nrm(3,"span"),a.k0s()),2&i&&(a.Y8G("storefrontTranslate",g.config.label),a.R7$(2),a.Y8G("checked",g.isChecked()))},dependencies:[T.M],styles:['storefront-switch{align-items:center;display:flex}storefront-switch .label{margin:0 var(--gutter)}storefront-switch .switch{text-align:left;width:calc(var(--switchWidth) - 2 * var(--switchBorderWidth));height:calc(var(--switchWidth) / 2);border-radius:var(--switchBorderRadius);background-color:var(--switchActiveColor);display:inline-block;position:relative;cursor:pointer}storefront-switch .switch>span{display:block;width:100%;height:100%;border-radius:var(--switchBorderRadius)}storefront-switch .switch>span:before,storefront-switch .switch>span:after{content:"";cursor:pointer;position:absolute}storefront-switch .switch>span:before{width:100%;height:100%;box-sizing:border-box;background-color:var(--switchBackgroundColor);border-radius:var(--switchBorderRadius);transition:opacity .2s ease-out .1s,transform .2s ease-out .1s;transform:scale(1);opacity:1}storefront-switch .switch>span:after{top:var(--switchBorderWidth);z-index:3;transition:transform .4s cubic-bezier(.44,-.12,.07,1.15);width:calc(var(--switchWidth) / 2 - 2 * var(--switchBorderWidth));height:calc(var(--switchWidth) / 2 - 2 * var(--switchBorderWidth));background-color:var(--switchHandleColor);border-radius:100%;box-shadow:0 2px 5px #0000004d;left:var(--switchBorderWidth)}storefront-switch .switch>input[type=checkbox]{opacity:0;position:absolute}storefront-switch .switch>input[type=checkbox]:checked~span:before{transform:scale(0);opacity:.7}storefront-switch .switch>input[type=checkbox]:checked~span:after{transform:translate(100%)}\n'],encapsulation:2}),D})()},9645:(U,O,t)=>{t.r(O),t.d(O,{SwitchModule:()=>a,component:()=>v});var p=t(177),o=t(1802),c=t(6483),r=t(3953);let a=(()=>{var m;class y{}return(m=y).\u0275fac=function(E){return new(E||m)},m.\u0275mod=r.$C({type:m}),m.\u0275inj=r.G2t({imports:[p.MD,c.h]}),y})();const v=o.c},2364:(U,O,t)=>{t.d(O,{S:()=>a});var p=t(4412),o=t(3953),c=t(1626),r=t(9118);let a=(()=>{var v;class m{constructor(T,E){this.http=T,this.kioskConfigService=E,this.initialization=new p.t(null),this.data=[{identifier:"phone",minScreenWidth:null},{identifier:"tablet_small",minScreenWidth:533},{identifier:"tablet_large",minScreenWidth:720}]}init(){}getDeviceClass(){const E=this.data.reduce((M,D)=>window.innerWidth>=D.minScreenWidth?D:M,null);return E&&E.identifier}}return(v=m).\u0275fac=function(T){return new(T||v)(o.KVO(c.Qq),o.KVO(r.x))},v.\u0275prov=o.jDH({token:v,factory:v.\u0275fac,providedIn:"root"}),m})()},354:(U,O,t)=>{t.d(O,{s:()=>l});var p=t(467),o=t(5102),c=t(1413),r=t(5964),a=t(6697),v=t(3953),m=t(496),y=t(1626),T=t(9118),E=t(3072),M=t(2364),D=t(9516);let l=(()=>{var i;class g{constructor(u,h,e,n,f,d,s){this.publicationService=u,this.http=h,this.purpleService=e,this.kioskConfigService=n,this.sessionService=f,this.deviceClassService=d,this.contextService=s,this.data=[],this.initPdf=new c.B,this.presenterLoaded=new c.B,this.subscriptions=[]}init(u){var h=this;return(0,p.A)(function*(){h.kioskConfigData=yield h.kioskConfigService.getConfig().toPromise(),h.content=yield h.publicationService.selectByContentCriteria(u);let e=yield h.getLink(h.content,"pdf_single_page_download");yield h.getSinglePageDownloadLinkFromJSON(e);let n=yield h.getLink(h.content,"pdf_download");h.initPdf.next(n)})()}getLink(u,h){var e=this;return(0,p.A)(function*(){const n=yield(0,o.GA)(u,e.purpleService);if(u&&u.properties&&!n){let f=Object.keys(u.properties);for(let d=0;d<f.length;d++)if(f[d]===h)return e.getAttachmentLink(u,u.properties[f[d]]);return null}})()}getSinglePageDownloadLinkFromJSON(u){var h=this;return(0,p.A)(function*(){try{const e=h.presenterLoaded.pipe((0,r.p)(n=>n),(0,a.s)(1)).subscribe(function(){var n=(0,p.A)(function*(f){if(f){const A=yield h.http.get(u).toPromise();var d=WP.instance.getPurpleData().getPages();if(A){var s=0;h.data=[];for(const B of d){for(var C=parseInt(B.pageCount),P=[],S=0;S<C;S++)P.push(yield h.getAttachmentLink(h.content,A[s],s+1)),s++;h.data.push(P)}}}});return function(f){return n.apply(this,arguments)}}());h.subscriptions.push(e)}catch(e){console.error("Error fetching data from JSON link:",e)}})()}getAttachmentLink(u,h,e){var n=this;return(0,p.A)(function*(){const f=new URL(window.location.href).origin,d=n.contextService.getIsCustomerDomainUsed()?f:n.purpleService.getPurpleConfig().contentUrl,s=JSON.parse(localStorage.getItem("AppWebConfiguration")).id;let C="".concat(d,"/resources/web/attachment/").concat(s,"/").concat(u.id,"/").concat(h);C+="?preview=".concat(n.contextService.isPreview()),C+="&deviceId=".concat(localStorage.getItem("deviceId")),C+="&deviceClass=".concat(n.deviceClassService.getDeviceClass());const P=yield n.sessionService.getReceiptData(u);if(P){const{receipt:A,providerType:B}=P;C+="&receipt=".concat(window.encodeURIComponent(A)),C+="&providerType=".concat(B)}const S=n.sanitize(n.getFileName(u,h,e));return C+="&targetFilename=".concat(window.encodeURIComponent(S)),C})()}getSingleDownloadLink(){return this.data&&WP.instance&&WP.instance.getScroller()&&this.data[WP.instance.getScroller().getIndex()]}getDownloadLink(){var u=this;return(0,p.A)(function*(){return yield u.getLink(u.content,"pdf_download")})()}getFileName(u,h,e){const f=this.kioskConfigData.kioskConfig.downloadFileName,d=h.substr(h.lastIndexOf(".")),s=e?" - "+e:"";switch(f){case"publication_issue":return this.publicationService.currentPublication.name+" - "+u.name+s+d;case"issue":return u.name+s+d;default:return h}}sanitize(u){return u.replace(/,/g,"").replace(/\xe4/g,"ae").replace(/\xc4/g,"Ae").replace(/\xf6/g,"oe").replace(/\xd6/g,"Oe").replace(/\xfc/g,"ue").replace(/\xdc/g,"Ue")}ngOnDestroy(){this.subscriptions.forEach(u=>u.unsubscribe())}}return(i=g).\u0275fac=function(u){return new(u||i)(v.KVO(m.m),v.KVO(y.Qq),v.KVO(o.Wj),v.KVO(T.x),v.KVO(E.Q),v.KVO(M.S),v.KVO(D.V))},i.\u0275prov=v.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),g})()},3072:(U,O,t)=>{t.d(O,{Q:()=>v});var p=t(467),o=t(4404),r=t(3953),a=t(5102);let v=(()=>{var m;class y{constructor(E){this.purpleService=E}getReceiptData(E){var M=this;return(0,p.A)(function*(){return E.purchaseData.purchasedBy.includes(o.PurchaseOption.ENTITLEMENT)?{receipt:yield M.getAccessToken(),providerType:"entitlement"}:E.purchaseData.purchasedBy.includes(o.PurchaseOption.SUBSCRIPTION_CODE)?{receipt:(yield M.getSubscriptionCodes()).join(","),providerType:"subscriptionCode"}:null})()}getAccessToken(){var E=this;return(0,p.A)(function*(){const M=yield E.purpleService.purpleRef.entitlement.getUserData();return null==M?void 0:M.accessToken})()}getSubscriptionCodes(){var E=this;return(0,p.A)(function*(){return(yield E.purpleService.purpleRef.store.getSubscriptionCodes()).subscriptionCodes})()}}return(m=y).\u0275fac=function(E){return new(E||m)(r.KVO(a.Wj))},m.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),y})()},7967:(U,O,t)=>{function p(o,c){return"object"!=typeof o?1===c?o:o+"S":1===c?o.singular:o.plural}t.d(O,{t:()=>p})}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["default-projects_storefront_src_app_component_content_content_module_ts"],{7808:($,I,c)=>{c.d(I,{B:()=>xn});var l=c(467),h=c(177),t=c(3953),g=c(4404),f=c(4412),M=c(5964),C=c(5343),N=c(6354),P=c(6697),B=c(6843),G=c(4452),m=c(8179),T=c(5102),O=c(9745),v=c(4945),A=c(8251),u=c(5706),b=c(7879),X=c(8890),F=c(1210),D=c(4365),S=c(2085),w=c(362),W=c(4622),V=c(1739),H=c(4004),U=c(2932),z=c(610),k=c(8091),K=c(3092),x=c(4608),Z=c(20),J=c(8004),Q=c(9516),q=c(244),tt=c(1652),nt=c(5820),et=c(4748),ot=c(6350),rt=c(680),at=c(8909),it=c(7240),ct=c(6600),st=c(395),lt=c(2914),_t=c(2813);const R=r=>[r],pt=r=>({path:r}),dt=()=>({path:""}),gt=()=>[];function ft(r,i){if(1&r){const o=t.RV6();t.j41(0,"div",10),t.nrm(1,"span",11),t.j41(2,"button",12),t.bIt("click",function(){t.eBV(o);const n=t.XpG(2);return t.Njj(n.reload())}),t.k0s()()}if(2&r){const o=t.XpG(2);t.R7$(),t.Y8G("storefrontTranslateArgs",t.eq3(1,R,o.dataSourceError.code))}}function ut(r,i){if(1&r&&(t.qex(0),t.j41(1,"div",4),t.nrm(2,"storefront-image",5),t.k0s(),t.j41(3,"div",6),t.nrm(4,"h3",7)(5,"div",8),t.k0s(),t.DNE(6,ft,3,3,"div",9),t.bVm()),2&r){const o=t.XpG();t.R7$(2),t.Y8G("height","FIXED"),t.R7$(4),t.Y8G("ngIf",o.dataSourceError)}}function mt(r,i){1&r&&t.eu8(0)}function ht(r,i){if(1&r){const o=t.RV6();t.j41(0,"a",16),t.nI1(1,"urlTransform"),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.DNE(2,mt,1,0,"ng-container",17),t.k0s()}if(2&r){const o=t.XpG().ngIf;t.XpG();const e=t.sdS(6),n=t.XpG();t.Y8G("href",t.i5U(1,2,o,n.context),t.B4B),t.R7$(2),t.Y8G("ngTemplateOutlet",e)}}function Ct(r,i){1&r&&t.eu8(0)}function Et(r,i){if(1&r){const o=t.RV6();t.j41(0,"a",18),t.nI1(1,"urlTransform"),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickContent(n))}),t.DNE(2,Ct,1,0,"ng-container",19),t.k0s()}if(2&r){const o=t.XpG().ngIf;t.XpG();const e=t.sdS(8),n=t.XpG();t.AVh("expanded",n.descriptionExpanded),t.Y8G("href",t.i5U(1,5,o,n.context),t.B4B),t.R7$(2),t.Y8G("ngTemplateOutlet",e)("ngTemplateOutletContext",t.eq3(8,pt,o))}}function vt(r,i){if(1&r&&(t.qex(0),t.DNE(1,ht,3,5,"a",14)(2,Et,3,10,"a",15),t.bVm()),2&r){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.cover),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.allData)}}function bt(r,i){1&r&&t.eu8(0)}function Tt(r,i){if(1&r){const o=t.RV6();t.j41(0,"div",22),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.DNE(1,bt,1,0,"ng-container",17),t.k0s()}if(2&r){t.XpG(2);const o=t.sdS(6);t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function It(r,i){if(1&r){const o=t.RV6();t.j41(0,"div",23),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickContent(n))}),t.eu8(1,24),t.k0s()}if(2&r){t.XpG(2);const o=t.sdS(8),e=t.XpG();t.AVh("expanded",e.descriptionExpanded),t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.lJ4(4,dt))}}function Ot(r,i){if(1&r&&t.DNE(0,Tt,2,1,"div",20)(1,It,2,5,"div",21),2&r){const o=t.XpG(2);t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.cover),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.allData)}}function Dt(r,i){1&r&&t.nrm(0,"storefront-spinner")}function xt(r,i){1&r&&(t.j41(0,"div",28),t.nrm(1,"span",29),t.k0s())}function At(r,i){if(1&r&&t.nrm(0,"storefront-progress",30),2&r){const o=t.XpG(3);t.Y8G("type",o.getProgressType())("progress",o.installState.progress)}}function kt(r,i){if(1&r&&(t.nrm(0,"storefront-image",25),t.DNE(1,Dt,1,0,"storefront-spinner",3)(2,xt,2,0,"div",26)(3,At,1,2,"storefront-progress",27)),2&r){const o=t.XpG(2);t.Y8G("lcpPrioritized",0===(null==o.context?null:o.context.entryIndex)&&(null==o.config?null:o.config.lcpPrioritized))("src",o.content.thumbnails&&o.content.thumbnails.default)("imageResolutionStrategy",null==o.config?null:o.config.imageResolutionStrategy)("height",o.getImageHeight())("extendedThumbnail",null==o.content||null==o.content.thumbnailsExtended?null:o.content.thumbnailsExtended.default)("label",null==o.content?null:o.content.name),t.R7$(),t.Y8G("ngIf",o.coverLoading),t.R7$(),t.Y8G("ngIf",o.showUpdateBehavior()),t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress())}}function Rt(r,i){if(1&r){const o=t.RV6();t.j41(0,"h3",48),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.nrm(1,"span",49),t.k0s()}if(2&r){const o=t.XpG(3);t.R7$(),t.Y8G("storefrontTranslate",o.config.publicationTitleMessage)("storefrontTranslateArgs",t.eq3(2,R,o.publication&&o.publication.name))}}function yt(r,i){if(1&r){const o=t.RV6();t.j41(0,"h3",50),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.nrm(1,"span",49),t.k0s()}if(2&r){const o=t.XpG(3);t.R7$(),t.Y8G("storefrontTranslate",o.config.titleMessage)("storefrontTranslateArgs",t.eq3(2,R,o.content.name))}}function Pt(r,i){1&r&&t.nrm(0,"i",51)}function St(r,i){if(1&r&&(t.j41(0,"div",52),t.EFF(1),t.nI1(2,"storefrontDate"),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.SpI(" ",t.bMT(2,1,o.content.publicationDate)," ")}}function Lt(r,i){if(1&r&&t.nrm(0,"div",53),2&r){const o=t.XpG(3);t.Y8G("storefrontTranslate",o.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(2,R,o.content.description))}}function Mt(r,i){if(1&r){const o=t.RV6();t.j41(0,"span",54),t.bIt("click",function(){t.eBV(o);const n=t.XpG(3);return t.Njj(n.descriptionExpanded=!n.descriptionExpanded)}),t.nrm(1,"span",55)(2,"i",56),t.k0s()}if(2&r){const o=t.XpG(3);t.R7$(),t.Y8G("storefrontTranslate",o.descriptionExpanded?"CONTENT_DESCRIPTION_TOGGLE_COLLAPSE":"CONTENT_DESCRIPTION_TOGGLE_EXPAND")}}function Nt(r,i){if(1&r&&(t.j41(0,"div")(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"i"),t.k0s()),2&r){const o=i.$implicit;t.ZWY("content-property content-property-",o.key," content-property-",o.key,"-",o.value,""),t.R7$(2),t.JRh(o.value),t.R7$(),t.ee0("'icon icon-",o.key," icon-",o.value," icon-",o.key,"-",o.value,"")}}function Bt(r,i){if(1&r&&(t.j41(0,"div",57),t.DNE(1,Nt,4,12,"div",58),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.visibleProperties)("ngForTrackBy",o.trackByProperty)}}function Gt(r,i){if(1&r&&(t.j41(0,"div",61)(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"i"),t.k0s()),2&r){const o=i.$implicit;t.ZvI("content-category content-category-",o.id,""),t.R7$(2),t.JRh(o.name||o.id),t.R7$(),t.ZvI("icon icon-",o.id,"")}}function wt(r,i){if(1&r&&(t.j41(0,"div",59),t.DNE(1,Gt,4,7,"div",60),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.displayedCategories)("ngForTrackBy",o.trackByCategory)}}function Ut(r,i){if(1&r&&(t.j41(0,"div")(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"i"),t.k0s()),2&r){const o=i.$implicit;t.ZvI("content-tag content-tag-",o,""),t.R7$(2),t.JRh(o),t.R7$(),t.ZvI("icon icon-",o,"")}}function Kt(r,i){if(1&r&&(t.j41(0,"div",62),t.DNE(1,Ut,4,7,"div",58),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.tags)("ngForTrackBy",o.trackByTag)}}function $t(r,i){if(1&r&&t.nrm(0,"div",49),2&r){const o=i.$implicit;t.ZvI("content-custom-message ",o.class||"",""),t.Y8G("storefrontTranslate",o.message)("storefrontTranslateArgs",o.variables||t.lJ4(5,gt))}}function jt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",63),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickShare(n))}),t.k0s()}}function Yt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",64),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickBookmark(n))}),t.k0s()}if(2&r){const o=t.XpG(3);t.ZvI("icon ",o.bookmark?"icon-bookmark-active":"icon-bookmark","")}}function Xt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function Ft(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",65),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickRead(n))}),t.nrm(1,"span",66),t.DNE(2,Xt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(3);t.Y8G("disabled",o.openLoading),t.R7$(2),t.Y8G("ngIf",o.openLoading)}}function Wt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function Vt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",69),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickPreview(n))}),t.nrm(1,"span",70),t.DNE(2,Wt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(3);t.Y8G("disabled",o.previewLoading),t.R7$(2),t.Y8G("ngIf",o.previewLoading)}}function Ht(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function zt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",74),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(6);return t.Njj(a.onClickCancel(n))}),t.nrm(1,"span",75),t.DNE(2,Ht,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(6);t.Y8G("disabled",o.deleteLoading),t.R7$(2),t.Y8G("ngIf",o.deleteLoading)}}function Zt(r,i){if(1&r&&(t.qex(0),t.DNE(1,zt,3,2,"button",73),t.bVm()),2&r){const o=t.XpG(5);t.R7$(),t.Y8G("ngIf",o.isDownloadCancelable())}}function Jt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function Qt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",76),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(5);return t.Njj(a.onClickDownload(n))}),t.nrm(1,"span",77),t.DNE(2,Jt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(5);t.Y8G("disabled",o.downloadLoading),t.R7$(2),t.Y8G("ngIf",o.downloadLoading)}}function qt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function tn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",78),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(5);return t.Njj(a.onClickDelete(n))}),t.nrm(1,"span",79),t.DNE(2,qt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(5);t.Y8G("disabled",o.deleteLoading),t.R7$(2),t.Y8G("ngIf",o.deleteLoading)}}function nn(r,i){if(1&r&&(t.qex(0),t.DNE(1,Zt,2,1,"ng-container",3)(2,Qt,3,2,"button",71)(3,tn,3,2,"button",72),t.bVm()),2&r){const o=t.XpG(4);t.R7$(),t.Y8G("ngIf",o.installState.downloading),t.R7$(),t.Y8G("ngIf",!o.installState.downloading&&"COMPLETE"!==o.installState.installState&&!o.deleteLoading),t.R7$(),t.Y8G("ngIf",o.isDownloadDeletable())}}function en(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function on(r,i){if(1&r&&t.nrm(0,"storefront-progress",82),2&r){const o=t.XpG(6);t.Y8G("type",o.getProgressType())("progress",o.installState.progress)}}function rn(r,i){if(1&r&&(t.j41(0,"p",83),t.EFF(1),t.k0s()),2&r){const o=t.XpG(6);t.R7$(),t.SpI(" ",o.installState.progress,"% ")}}function an(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",64),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(5);return t.Njj(a.onClickState(n))}),t.nrm(1,"span",55),t.DNE(2,en,1,0,"storefront-spinner",67)(3,on,1,2,"storefront-progress",80)(4,rn,2,1,"p",81),t.k0s()}if(2&r){const o=t.XpG(5);t.ZWY("button-state action-button ",o.installState.downloading?"button-state-downloading":""," ","button-state-"+o.installState.installState," ",o.deleteLoading||o.downloadLoading?"button-state-loading":"",""),t.R7$(),t.Y8G("storefrontTranslate",o.getStateText()),t.R7$(),t.Y8G("ngIf",o.deleteLoading||o.downloadLoading),t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress(!0)),t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress(!0))}}function cn(r,i){if(1&r&&(t.qex(0),t.DNE(1,an,5,9,"button",43),t.bVm()),2&r){const o=t.XpG(4);t.R7$(),t.Y8G("ngIf",o.isDownloadable())}}function sn(r,i){if(1&r&&(t.qex(0),t.DNE(1,nn,4,3,"ng-container",3)(2,cn,2,1,"ng-container",3),t.bVm()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf","MULTI"===o.downloadOptions.buttonType),t.R7$(),t.Y8G("ngIf","SINGLE"===o.downloadOptions.buttonType)}}function ln(r,i){1&r&&t.nrm(0,"span",92)}function _n(r,i){1&r&&t.nrm(0,"span",93)}function pn(r,i){if(1&r&&t.nrm(0,"span",94),2&r){const o=t.XpG(5);t.Y8G("storefrontTranslateArgs",t.eq3(1,R,o.price&&o.price.formattedPrice))}}function dn(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function gn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",88),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickPurchase(n))}),t.DNE(1,ln,1,0,"span",89)(2,_n,1,0,"span",90)(3,pn,1,3,"span",91)(4,dn,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(4);t.Y8G("ngClass",o.getPriceState())("disabled",!o.price||o.purchaseLoading),t.R7$(),t.Y8G("ngIf",!o.visible||o.priceLoading),t.R7$(),t.Y8G("ngIf",o.visible&&!o.priceLoading&&!o.price),t.R7$(),t.Y8G("ngIf",o.price),t.R7$(),t.Y8G("ngIf",o.purchaseLoading)}}function fn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",95),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickSubscribe(n))}),t.k0s()}}function un(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",96),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickLogin(n))}),t.k0s()}}function mn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",97),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickCoupon(n))}),t.k0s()}}function hn(r,i){if(1&r&&(t.qex(0),t.DNE(1,gn,5,6,"button",84)(2,fn,1,0,"button",85)(3,un,1,0,"button",86)(4,mn,1,0,"button",87),t.bVm()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf",o.purchaseOptions.purchase),t.R7$(),t.Y8G("ngIf",o.purchaseOptions.subscribe),t.R7$(),t.Y8G("ngIf",!o.loggedIn&&o.purchaseOptions.login),t.R7$(),t.Y8G("ngIf",o.purchaseOptions.coupon)}}function Cn(r,i){if(1&r&&(t.qex(0),t.nrm(1,"storefront-button",98),t.bVm()),2&r){const o=i.$implicit,e=t.XpG(3);t.R7$(),t.Y8G("baseConfig",o)("disableAnchor",!0)("baseContext",e.context)}}function En(r,i){if(1&r&&t.nrm(0,"storefront-progress",103),2&r){const o=t.XpG(4);t.Y8G("progress",o.installState.progress)("type",o.getProgressType())("showBorder",!0)}}function vn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",104),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickDownload(n))}),t.k0s()}if(2&r){const o=t.XpG(4);t.Y8G("disabled",o.downloadLoading)}}function bn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",105),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickDelete(n))}),t.k0s()}if(2&r){const o=t.XpG(4);t.Y8G("disabled",o.deleteLoading)}}function Tn(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function In(r,i){if(1&r&&(t.j41(0,"div",99),t.DNE(1,En,1,3,"storefront-progress",100)(2,vn,1,1,"button",101)(3,bn,1,1,"button",102)(4,Tn,1,0,"storefront-spinner",67),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress(!0)),t.R7$(),t.Y8G("ngIf",!o.locked&&"COMPLETE"!==o.installState.installState&&!o.installState.downloading&&!o.downloadLoading),t.R7$(),t.Y8G("ngIf",o.isDownloadDeletable()||o.isDownloadCancelable()),t.R7$(),t.Y8G("ngIf",o.downloadLoading)}}function On(r,i){if(1&r&&(t.DNE(0,Rt,2,4,"h3",31)(1,yt,2,4,"h3",32)(2,Pt,1,0,"i",33)(3,St,3,3,"div",34)(4,Lt,1,4,"div",35)(5,Mt,3,1,"span",36)(6,Bt,2,2,"div",37)(7,wt,2,2,"div",38)(8,Kt,2,2,"div",39)(9,$t,1,6,"div",40),t.j41(10,"div",41),t.DNE(11,jt,1,0,"button",42)(12,Yt,1,3,"button",43)(13,Ft,3,2,"button",44)(14,Vt,3,2,"button",45)(15,sn,3,2,"ng-container",3)(16,hn,5,4,"ng-container",3)(17,Cn,2,3,"ng-container",46),t.k0s(),t.DNE(18,In,5,4,"div",47)),2&r){const o=t.XpG(2);t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.publication),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.title),t.R7$(),t.Y8G("ngIf",o.isDownloadFinished()),t.R7$(),t.Y8G("ngIf",o.content.publicationDate&&(!o.config.hideComponents||!o.config.hideComponents.publicationDate)),t.R7$(),t.Y8G("ngIf",o.content.description&&(!o.config.hideComponents||!o.config.hideComponents.description)),t.R7$(),t.Y8G("ngIf",o.content.description&&(!o.config.hideComponents||!o.config.hideComponents.description)),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.properties),t.R7$(),t.Y8G("ngIf",!(o.config.displayCategories&&"NOTHING"===o.config.displayCategories.mode||o.config.hideComponents&&o.config.hideComponents.categories)),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.tags),t.R7$(),t.Y8G("ngForOf",o.customMessages)("ngForTrackBy",o.trackByMessage),t.R7$(2),t.Y8G("ngIf",o.config.sharing),t.R7$(),t.Y8G("ngIf",o.config.bookmark),t.R7$(),t.Y8G("ngIf",!o.locked),t.R7$(),t.Y8G("ngIf",o.locked&&o.hasPreview()),t.R7$(),t.Y8G("ngIf",o.downloadOptions&&!o.locked),t.R7$(),t.Y8G("ngIf",o.purchaseOptions&&o.locked),t.R7$(),t.Y8G("ngForOf",o.customButtons)("ngForTrackBy",o.trackByButton),t.R7$(),t.Y8G("ngIf",o.installState)}}function Dn(r,i){if(1&r&&(t.qex(0),t.DNE(1,vt,3,2,"ng-container",13),t.nI1(2,"async"),t.DNE(3,Ot,2,2,"ng-template",null,0,t.C5r)(5,kt,4,9,"ng-template",null,1,t.C5r)(7,On,19,20,"ng-template",null,2,t.C5r),t.bVm()),2&r){const o=t.sdS(4),e=t.XpG();t.R7$(),t.Y8G("ngIf",t.bMT(2,2,e.contentPath$))("ngIfElse",o)}}let xn=(()=>{var r;class i extends F.${constructor(e,n,a,s,p,_,d,E,L,j,An,kn,Rn,yn,Y,Pn,Sn,Ln){super(_,e,E,j,Y),this.elementRef=e,this.ngZone=n,this.changeDetectorRef=a,this.store=s,this.dialog=p,this.injector=_,this.eventActionService=d,this.contextService=E,this.cleanUpService=L,this.document=j,this.platformId=An,this.purpleEnv=kn,this.transferState=Rn,this.purpleService=yn,this.globalService=Y,this.anchorService=Pn,this.ssrService=Sn,this.cacheService=Ln,this.defaultConfig={...S.o9},this.priceLoading=!1,this.purchaseLoading=!1,this.downloadLoading=!1,this.deleteLoading=!1,this.openLoading=!1,this.previewLoading=!1,this.coverLoading=!1,this.bookmarkLoading=!1,this.descriptionExpanded=!1,this.downloadError=null,this.dataSourceError=null,this.visible=!1,this.anchorFeatureEnabled=!1,this.anchorPathCover=null,this.visibleProperties=[],this.contentPath$=new f.t(null),this.purchaseConfig={...D.Rp},this.isDownloadEnabled=(0,u.xl)(this.content)||(0,b.E7)(window.purple.content,{major:1,minor:6},g.IntOperation.GREATER_THAN)}get purchasable(){var e;return(null===(e=this.content)||void 0===e?void 0:e.access)===g.Access.PURCHASABLE}get hasError(){var e;return!(!this.dataSourceError||null!==(e=this.dataSource)&&void 0!==e&&e.hasData())}get contentType(){var e;return null===(e=this.content)||void 0===e?void 0:e.contentType}get postType(){return this.content&&(0,u.mF)(this.content)?this.content.postType:void 0}get contextKey(){var e,n,a;return null!==(e=null!==(n=null===(a=this.config)||void 0===a?void 0:a.contentContextKey)&&void 0!==n?n:this.baseConfig.contentContextKey)&&void 0!==e?e:i.type}get contextContent(){return this.context[this.contextKey]}get taxonomies(){var e;return null!==(e=this.content.taxonomies)&&void 0!==e?e:[]}get categories(){return this.taxonomies.filter(e=>"category"===e.type).map(e=>e.id)}get tags(){return this.taxonomies.filter(e=>"tag"===e.type).map(e=>e.id)}ngOnInit(){this.anchorFeatureEnabled=this.anchorService.isAnchorFeatureEnabled(),this.anchorFeatureEnabled||this.contentPath$.next(null),super.ngOnInit(),this.store.select((0,v.jZ)(B.O.DOWNLOAD_OPTIONS),e=>this.updateBehavior=null==e?void 0:e.autoUpdateBehavior)}ngOnDestroy(){super.ngOnDestroy(),this.downloadHandler&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.purpleService.destroyDownloadHandler(this.downloadHandler),1e3)}),this.dataSource&&this.contextService.unregisterDataSource(this.dataSource),this.trackingObserver&&this.trackingObserver.disconnect()}onConfigChanges(){var e=this;return(0,l.A)(function*(){var n;const a=e.content,s=(0,m.v3)(e.config.dataSource),p={...s,limit:1};if(e.loggedIn=!!e.context[g.METADATA_KEY.ENTITLEMENT_TOKEN],e.dataSource&&!e.dataSource.hasConfigChanged(p)&&e.content)return e.context[e.contextKey]=a,void e.updateConfig(a);if(s)delete e.content,delete e.dataSourceError,e.changeDetectorRef.detectChanges(),e.dataSource=(0,G.O8)(e.injector,p,e.elementRef.nativeElement,e.document),e.store.subscribe(e.dataSource.data$.pipe((0,M.p)(_=>_&&!!_[0])),_=>{const d=e.content;e.content=_[0],(0,T.GA)(e.content,e.purpleService).then(E=>e.locked=E),e.context[e.contextKey]=e.content,e.updateConfig(d)},C.l,C.l,"data"),e.store.subscribe(e.dataSource.error$,_=>e.dataSourceError=_,C.l,C.l,"error"),yield e.dataSource.loadData();else{const _=e.contextContent;"object"!=typeof _||e.content&&(!_||e.purchaseLoading)?e.context[e.contextKey]=e.content:(e.content=_,(0,T.GA)(e.content,e.purpleService).then(d=>e.locked=d)),e.updateConfig(a)}void 0===e.content&&(null===(n=e.baseContext)||void 0===n||!n.isGhost)&&(0,h.UE)(e.platformId)&&e.ngZone.runOutsideAngular(()=>{setTimeout(()=>{void 0===e.content&&e.ngZone.run(()=>e.dataSourceError={code:g.ERROR_CODE.ISSUE_NOT_FOUND})},1e3)})})()}updateConfig(e){var n=this;return(0,l.A)(function*(){var a;const s={...n.context};s.publication||(s.publication=n.publication),n.config=(0,m.uQ)({...S.o9,...n.baseConfig},s,n.contextService.$functions,n.globalService.getGlobalData());const p=(0,m.v3)(n.config.purchaseOptions);p&&(n.purchaseOptions=Object.keys(p).reduce((d,E)=>({...d,[E]:(0,m.v3)(p[E])}),{}),n.purchaseOptions.purchase&&"object"==typeof n.purchaseOptions.purchase&&(n.purchaseConfig={...D.Rp,...n.purchaseOptions.purchase})),n.anchorFeatureEnabled&&n.handleAnchorTags();const _={buttonClass:"action-button"};n.customButtons=n.config.customButtons.filter(d=>(0,m.Ol)(d)).map(d=>(0,m.v3)(d)).map(d=>({..._,...d,buttonClass:d.buttonClass?_.buttonClass.concat(" ",d.buttonClass):_.buttonClass})),n.customMessages=n.config.customMessages.filter(d=>(0,m.Ol)(d)).map(d=>(0,m.v3)(d)),n.downloadOptions=(0,m.v3)(n.config.downloadOptions),JSON.stringify(e)!==JSON.stringify(n.content)&&n.loadOnVisible(),n.visibleProperties=(null!==(a=n.config.renderProperties)&&void 0!==a?a:[]).map(d=>(0,m.v3)(d)).filter(d=>!!d&&void 0!==n.content.properties[d]).map(d=>({key:d,value:n.content.properties[d]})),n.content&&n.setDisplayCategories(),n.changeDetectorRef.markForCheck()})()}setDisplayCategories(){var e,n;switch(null!==(e=null===(n=this.config.displayCategories)||void 0===n?void 0:n.mode)&&void 0!==e?e:"SLUG"){case"SLUG":this.displayedCategories=this.taxonomies.filter(s=>"category"===s.type).map(s=>({id:s.id}));break;case"NAME":this.displayedCategories=this.taxonomies.filter(s=>"category"===s.type)}}handleAnchorTags(){var e=this;return(0,l.A)(function*(){e.anchorPathCover=e.anchorService.getAnchorPathForEventAction(e.config.tapCover,e.context);const n=e.anchorService.getAnchorPathForEventAction(e.config.tapContent,e.context);if(n)e.purpleEnv.isUniversal&&e.contentPath$.next(n);else{const a=yield e.anchorService.getAnchorPathForContent(e.content);a&&e.contentPath$.next(a)}})()}loadOnVisible(){var e=this;if(this.installState=null,this.price=null,this.deleteLoading=!1,this.downloadLoading=!1,this.purchaseLoading=!1,this.previewLoading=!1,this.priceLoading=!1,this.openLoading=!1,this.bookmarkLoading=!1,!this.isGhost()){if(this.config.trackVisible){const a=!0===this.config.trackVisible?0:this.config.trackVisible.trackDelay;let p,_=d=>{d[0].isIntersecting?p=setTimeout(()=>{this.getDownloadHandler().then(function(){var E=(0,l.A)(function*(L){e.publication||(yield e.loadPublication()),e.handleTrackAction("VISIBLE",L)});return function(L){return E.apply(this,arguments)}}())},a):clearTimeout(p)};this.trackingObserver=new IntersectionObserver(_,{rootMargin:"0px",threshold:!0===this.config.trackVisible?1:this.config.trackVisible.minContentVisibility}),this.trackingObserver.observe(this.elementRef.nativeElement)}this.store.subscribe((0,X.eh)(this,this.elementRef,{skipWait:this.purpleEnv.isUniversal&&!this.ssrService.currentPrebootStatus}),n=>{this.visible=!0,this.loadIssueState(),this.loadPublication(),this.loadPrice(),this.loadBookmark(),this.purpleService.addInvalidationListener((0,l.A)(function*(){e.dataSource&&(e.content=yield e.purpleService.getIssue(e.content.id).catch(()=>null),e.locked=yield(0,T.GA)(e.content,e.purpleService),e.context[e.contextKey]=e.content,e.updateConfig(e.content)),e.loadPrice()}))},C.l,C.l,"visible")}}loadIssueState(){var e=this;return(0,l.A)(function*(){!e.content||!e.downloadOptions||(yield e.getDownloadHandler(),e.downloadHandler&&(e.store.subscribe(e.downloadHandler.updates$,n=>{e.installState=n,n&&n.error&&!e.downloadError&&(e.downloadError=n.error),e.changeDetectorRef.detectChanges()},C.l,C.l,"installState"),e.downloadHandler.autoUpdate&&e.downloadHandler.downloadStarted&&e.downloadHandler.update()),e.changeDetectorRef.detectChanges())})()}loadPrice(){var e=this;return(0,l.A)(function*(){if(e.purchaseOptions&&e.locked){var n;e.priceLoading=!0;const a=e.content.productId||(null===(n=yield e.purpleService.getRepeatablePublicationProductByPublicationId(e.content.publicationId))||void 0===n?void 0:n.productId);a?(e.store.select((0,W.Zt)(a),s=>{(0,V.b)(s)||(e.price=s),e.priceLoading=!1}),e.store.dispatch((0,H.qF)({productId:a}))):e.priceLoading=!1}})()}loadPublication(){var e=this;return(0,l.A)(function*(){if(e.content)try{const n=e.content.publicationId,a=(0,t.zw6)("publication_".concat(n));e.transferState.hasKey(a)?(e.publication=e.transferState.get(a,null),(0,h.UE)(e.platformId)&&e.transferState.remove(a)):(e.publication=yield e.purpleService.getPublication(n),(0,h.UE)(e.platformId)||e.transferState.onSerialize(a,()=>e.publication)),yield e.updateConfig(e.content),e.changeDetectorRef.detectChanges()}catch{console.log("error loading publication for content",e)}})()}loadBookmark(){var e=this;return(0,l.A)(function*(){e.config.bookmark&&e.store.subscribe(e.purpleService.bookmarks.pipe((0,N.T)(n=>n.find(a=>a.contentId===e.content.id))),n=>e.bookmark=n,C.l,C.l,"bookmark")})()}getData(){return this.content}getImageHeight(){return this.config.coverHeight||this.getDefaultImageHeight()}hasPreview(){return(0,u.xl)(this.content)?!!this.content.previewIssue:!(0,u.mF)(this.content)&&!(0,u.G4)(this.content)&&void 0}getDefaultImageHeight(){return this.template===S.qc.DETAILS?U.q.AUTO:U.q.FIXED}handleCacheDownload(){var e=this;return(0,l.A)(function*(){(0,u.G4)(e.content)?yield e.downloadBundle():(0,u.mF)(e.content)&&(yield e.downloadPost(e.content)),e.cacheService.serializeCachedRequests()})()}onClickDownload(e){var n=this;return(0,l.A)(function*(){e.stopPropagation(),yield n.handleCacheDownload(),n.downloadLoading=!0,delete n.downloadError,n.changeDetectorRef.detectChanges();const a=yield n.getDownloadHandler();if(n.handleTrackAction("DOWNLOAD_CLICKED",a),a){if(n.purpleService.downloadOptions.showConfirmDownloadDialog){const s={content:n.content,download:{totalSize:-1}};try{yield n.dialog.confirm({text:"ISSUE_DOWNLOAD_CONFIRM_MESSAGE",args:[s]},{text:"ISSUE_DOWNLOAD_CONFIRM_TITLE",args:[s]},"ISSUE_DOWNLOAD_CONFIRM_OK","ISSUE_DOWNLOAD_CONFIRM_CANCEL")}catch{return n.handleTrackAction("DOWNLOAD_CONFIRM_CANCELLED",a,void 0,"_COLLECTION"),void(n.downloadLoading=!1)}}try{yield a.download(),n.cleanUpService.addIssue(n.content.id),n.installState.downloading=!0,n.installState.installState=g.ContentInstallState.INCOMPLETE,n.installState.progress=0}catch(s){console.error(s),s.code===g.ERROR_CODE.PAYMENT_REQUIRED&&n.purpleService.invalidate()}}n.downloadLoading=!1,n.changeDetectorRef.detectChanges()})()}downloadPost(e,n=0){var a=this;return(0,l.A)(function*(){yield a.purpleService.getOptionalData(e,{...(0,u.ci)(a.config,a.purpleEnv),downloadedById:e.id},n),a.downloadLoading=!1,a.changeDetectorRef.detectChanges()})()}downloadBundle(){var e=this;return(0,l.A)(function*(){const n={first:24,contentFilter:{properties:{key:"slug",value:e.content.properties.slug}},fetchOptions:{downloadedById:e.content.id}};yield e.purpleService.getCatalogContents(n),e.content=yield e.purpleService.getCatalogContent(e.content.id,!1,{includeBundledContent:!0,downloadedById:e.content.id}),(0,u.Ig)(e.content).forEach(function(){var s=(0,l.A)(function*(p,_){yield e.downloadPost(p,_)});return function(p,_){return s.apply(this,arguments)}}())})()}getBundleDeleteParams(){return[{first:1,fetchOptions:{includeBundledContent:!0},contentFilter:{id:{value:this.content.id}}},{first:24,contentFilter:{properties:{key:"slug",value:this.content.properties.slug}}}]}deleteBundleEntriesFromCache(e){var n=this;return(0,l.A)(function*(){const a=n.getBundleDeleteParams();let s=[{cacheName:x.B.PURPLE_CONTENT_CACHE,cacheEntry:n.content.id},{cacheName:x.B.PURPLE_OPTIONAL_CACHE,cacheEntry:n.content.id}];for(const p of a){const _="".concat(e,":").concat(JSON.stringify(p));s.push({cacheName:x.B.PURPLE_API_CACHE,cacheEntry:_})}for(const p of s)yield n.cacheService.handleDeleteOnDownloadedCache(p.cacheName,p.cacheEntry,n.content.id)})()}deleteCache(){var e=this;return(0,l.A)(function*(){const n="getContents";(0,u.mF)(e.content)?yield e.deletePost(n,e.content.id):(0,u.G4)(e.content)&&(yield e.deleteBundle(n))})()}deleteBundle(e){var n=this;return(0,l.A)(function*(){yield n.deleteBundleEntriesFromCache(e);let a=(0,u.Ig)(n.content);for(const s of a)yield n.deletePost(e,s.id)})()}deletePost(e,n){var a=this;return(0,l.A)(function*(){const s={first:1,fetchOptions:(0,u.ci)(a.config,a.purpleEnv),contentFilter:{id:{value:n}}},p=[{cacheName:x.B.PURPLE_API_CACHE,cacheEntry:"".concat(e,":").concat(JSON.stringify(s))},{cacheName:x.B.PURPLE_CONTENT_CACHE,cacheEntry:n},{cacheName:x.B.PURPLE_OPTIONAL_CACHE,cacheEntry:n}];for(const _ of p)yield a.cacheService.handleDeleteOnDownloadedCache(_.cacheName,_.cacheEntry,a.content.id)})()}onClickDelete(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),n.config.deleteConfirm)try{yield n.dialog.confirm({text:"ISSUE_DELETE_MESSAGE",args:[n.content.name]},"ISSUE_DELETE_TITLE","ISSUE_DELETE_CONFIRM","ISSUE_DELETE_CANCEL"),yield n.deleteIssue()}catch{}else yield n.deleteIssue();yield n.deleteCache()})()}onClickCancel(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),!n.deleteLoading)try{n.deleteLoading=!0,delete n.downloadError,n.changeDetectorRef.detectChanges(),n.getDownloadHandler().then(a=>n.handleTrackAction("CANCEL_CLICKED",a)),n.cleanUpService.removeIssue(n.content.id),n.downloadHandler&&(yield n.downloadHandler.delete()),n.deleteLoading=!1,n.changeDetectorRef.detectChanges(),n.delete.emit(n.content)}catch(a){console.log(a),n.deleteLoading=!1,n.changeDetectorRef.detectChanges()}})()}onClickRead(e){var n=this;return(0,l.A)(function*(){n.contextService.closeModal(n.elementRef.nativeElement),n.contextService.closeModalSubject.observers.length>0?n.contextService.closeModalCompleteSubject.pipe((0,P.s)(n.contextService.closeModalSubject.observers.length)).subscribe(()=>{},()=>{},(0,l.A)(function*(){return n.openContent("READ_CLICKED")})):n.openContent("READ_CLICKED")})()}onClickPurchase(e){var n=this;return(0,l.A)(function*(){var a;e.stopPropagation(),n.purchaseLoading=!0,n.changeDetectorRef.detectChanges();const s={...n.purchaseConfig,productId:n.price.productId,price:n.price.price,currency:n.price.currency};n.content.productId!==(null===(a=n.price)||void 0===a?void 0:a.productId)&&(s.consumeOptions={issueIds:[],contentIds:[n.content.id]}),yield n.eventActionService.processPurchaseAction(s,n),n.purchaseLoading=!1,n.changeDetectorRef.detectChanges()})()}onClickPreview(e){var n=this;return(0,l.A)(function*(){n.contextService.closeModal(n.elementRef.nativeElement),n.contextService.closeModalSubject.observers.length>0?n.contextService.closeModalCompleteSubject.pipe((0,P.s)(n.contextService.closeModalSubject.observers.length)).subscribe(()=>{},()=>{},(0,l.A)(function*(){return n.openContent("PREVIEW_CLICKED")})):n.openContent("PREVIEW_CLICKED")})()}onClickSubscribe(e){e.stopPropagation(),this.getDownloadHandler().then(n=>this.handleTrackAction("SUBSCRIBE_CLICKED",n)),this.eventActionService.processEventAction({type:O.H.SUBSCRIPTIONS,params:{content:this.content.id,publication:this.content.publicationId}},this)}onClickLogin(e){e.stopPropagation(),this.getDownloadHandler().then(n=>this.handleTrackAction("LOGIN_CLICKED",n)),this.eventActionService.processEventAction({type:O.H.LOGIN,params:{content:this.content.id,publication:this.content.publicationId}},this)}onClickCoupon(e){e.stopPropagation(),this.getDownloadHandler().then(n=>this.handleTrackAction("COUPON_CLICKED",n)),this.eventActionService.processEventAction({type:O.H.COUPON,params:{content:this.content.id,publication:this.content.publicationId}},this)}getId(){return this.content&&this.content.id}getTrackingBaseKey(e,n){return this.elementId||e&&"".concat(e.getContentType(n))||this.getType()}getTrackingParams(e){const n=(0,b.bJ)(this.content,this.publication,this.price);return{...e&&(0,b.Gw)(e.getContentType())?(0,b.VP)(e.content,e.publication,this.price,"SOURCE_"):{},...n}}handleTrackAction(e,n,a,s){if(!n)return;const p="".concat(this.getTrackingBaseKey(n,s),"_").concat(e);let _=a?(0,b.aM)(a):{};_={..._,...this.getTrackingParams(n)},this.store.dispatch((0,z.k4)({url:this.document.location.href,key:p,params:_}))}onClickCover(e){this.clickContentAction(e,"tapCover","COVER_CLICKED")}onClickContent(e){this.clickContentAction(e,"tapContent","ISSUE_CLICKED")}clickContentAction(e,n,a){var s=this;return(0,l.A)(function*(){s.anchorFeatureEnabled&&e.preventDefault();const p=(0,m.v3)(s.config[n]);if(p){if(e.stopPropagation(),s.coverLoading)return;s.coverLoading=!0,s.changeDetectorRef.detectChanges(),s.getDownloadHandler().then(_=>s.handleTrackAction(a,_)),yield s.eventActionService.processEventAction(p,s),s.coverLoading=!1,s.changeDetectorRef.detectChanges()}})()}isGhost(){return!(this.content&&this.content.id||this.dataSourceError)}onClickState(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),n.installState)return n.installState.downloading?n.onClickCancel(e):n.installState.installState===g.ContentInstallState.COMPLETE?n.onClickDelete(e):n.onClickDownload(e)})()}onClickBookmark(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),!n.bookmarkLoading){if(n.bookmarkLoading=!0,n.bookmark){n.config.bookmark&&"boolean"!=typeof n.config.bookmark&&n.config.bookmark.deleteConfirm&&(yield n.dialog.confirm(n.bookmark.title?{text:"BOOKMARK_DELETE_MESSAGE_WITH_TITLE",args:[n.bookmark.title]}:"BOOKMARK_DELETE_MESSAGE","BOOKMARK_DELETE_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL")),n.getDownloadHandler().then(a=>n.handleTrackAction("BOOKMARK_DELETE_CLICKED",a,n.bookmark));try{yield n.purpleService.deleteBookmark({id:n.bookmark.id}),n.getDownloadHandler().then(a=>n.handleTrackAction("BOOKMARK_DELETED",a,n.bookmark))}catch(a){n.dialog.alert(n.bookmark.title?{text:"ERROR_DELETE_BOOKMARK_WITH_TITLE",args:(0,k._3)((0,k.E2)(a,n.contextService),n.bookmark)}:{text:"ERROR_DELETE_BOOKMARK",args:[(0,k.E2)(a,n.contextService)]},"DIALOG_ERROR"),n.getDownloadHandler().then(s=>n.handleTrackAction("BOOKMARK_DELETE_FAILED",s,n.bookmark))}}else{n.getDownloadHandler().then(s=>n.handleTrackAction("BOOKMARK_ADD_CLICKED",s,n.bookmark));let a={title:n.content.name,description:n.content.description,issueId:n.content.id,customData:{contentType:n.content.contentType}};n.content.thumbnails&&n.content.thumbnails.default&&(a.thumbnailURL=n.content.thumbnails.default),"object"==typeof n.config.bookmark&&(a={...a,...n.config.bookmark});try{yield n.purpleService.createBookmark(a),n.getDownloadHandler().then(s=>n.handleTrackAction("BOOKMARK_ADDED",s,n.bookmark))}catch(s){n.getDownloadHandler().then(p=>n.handleTrackAction("BOOKMARK_ADD_FAILED",p,n.bookmark)),n.dialog.alert({text:"ERROR_ADD_BOOKMARK",args:n.getErrorDialogArgs(s)},"DIALOG_ERROR")}}n.bookmarkLoading=!1,n.changeDetectorRef.detectChanges()}})()}onClickShare(e){var n=this;return(0,l.A)(function*(){e.stopPropagation(),n.getDownloadHandler().then(s=>n.handleTrackAction("SHARE_CLICKED",s));let a={text:n.content.name,url:n.getSharingUrl()};"object"==typeof n.config.sharing&&(a={...a,...n.config.sharing});try{yield n.purpleService.share(a),n.getDownloadHandler().then(s=>n.handleTrackAction("SHARED",s))}catch{n.getDownloadHandler().then(p=>n.handleTrackAction("SHARE_FAILED",p)),n.dialog.alert("ERROR_SHARE","DIALOG_ERROR")}})()}getSharingUrl(){return"".concat(this.context[g.METADATA_KEY.MANAGER_BASE_URL],"/i/").concat(this.context[g.METADATA_KEY.APP_ID],"/").concat(this.content.id,"?preview=").concat(this.context[g.METADATA_KEY.PREVIEW_APP])}getStateText(){return this.downloadLoading||this.deleteLoading?" ":this.installState?this.installState.downloading?"ISSUE_ACTION_CANCEL":this.installState.installState===g.ContentInstallState.COMPLETE?"ISSUE_ACTION_DELETE":"ISSUE_ACTION_DOWNLOAD":void 0}getPriceState(){return this.priceLoading?"price-loading":this.priceLoading||this.price?this.price?"price-available":"":"price-unavailable"}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"downloadOptions","customButtons","customMessages"]}getDownloadHandler(){var e=this;return(0,l.A)(function*(){return(0,h.UE)(e.platformId)?((!e.downloadHandler||e.downloadHandler.content.id!==e.content.id)&&(e.downloadHandler&&(yield e.purpleService.destroyDownloadHandler(e.downloadHandler)),e.downloadHandler=yield e.purpleService.getDownloadHandler(e.content,e.dialog)),e.downloadHandler):null})()}isDownloadable(){return this.isDownloadEnabled&&this.installState}isDownloadInProgress(e=!1){return!this.deleteLoading&&!this.downloadLoading&&this.installState&&this.installState.downloading&&!(this.installState.updating&&this.updateBehavior===D.FZ.SILENT)&&(e||"MULTI"===this.downloadOptions.buttonType)}isDownloadCancelable(){return!!this.isDownloadEnabled&&!this.downloadLoading&&this.installState.downloading&&!(this.installState.updating&&this.updateBehavior===D.FZ.SILENT)}isDownloadDeletable(){return!!this.isDownloadEnabled&&!this.downloadLoading&&this.installState.installState!==g.ContentInstallState.NOT_INSTALLED&&(!this.installState.downloading||this.installState.updating&&this.updateBehavior===D.FZ.SILENT)}isDownloadFinished(){return!!this.isDownloadEnabled&&this.downloadOptions&&this.downloadOptions.statusIndicator&&this.installState&&(this.installState.installState===g.ContentInstallState.COMPLETE&&!this.locked||this.installState.updating&&this.updateBehavior===D.FZ.SILENT)}showUpdateBehavior(){if(this.installState)return(0,T.YH)(this.installState,this.content.contentType===g.CatalogContentType.ISSUE)}reload(){window.location.reload()}hasContextChanged(e){var n;return!(null!==(n=this.config)&&void 0!==n&&n.dataSource)&&!w(this.contextContent,this.content)||!w(e[g.METADATA_KEY.ENTITLEMENT_TOKEN],this.context[g.METADATA_KEY.ENTITLEMENT_TOKEN])||super.hasContextChanged(e)}deleteIssue(){var e=this;return(0,l.A)(function*(){if(!e.deleteLoading)try{e.deleteLoading=!0,delete e.downloadError,e.changeDetectorRef.detectChanges(),e.getDownloadHandler().then(n=>e.handleTrackAction("DELETE_CLICKED",n)),e.cleanUpService.removeIssue(e.content.id),e.downloadHandler&&(yield e.downloadHandler.delete()),e.deleteLoading=!1,e.changeDetectorRef.detectChanges(),e.delete.emit(e.content)}catch(n){console.log(n),e.deleteLoading=!1,e.changeDetectorRef.detectChanges()}})()}getProgressType(){const n=(this.config||this.baseConfig).downloadOptions;return n.progressType?n.progressType:this.template===S.qc.COVER?K.s.RADIAL:K.s.BAR}getErrorDialogArgs(e){return(0,k.$C)((0,k.E2)(e,this.contextService),this.content)}trackByProperty(e,n){var a;return null!==(a=null==n?void 0:n.key)&&void 0!==a?a:e}trackByCategory(e,n){var a;return null!==(a=null==n?void 0:n.id)&&void 0!==a?a:e}trackByTag(e,n){return null!=n?n:e}trackByMessage(e,n){var a;return null!==(a=null==n?void 0:n.message)&&void 0!==a?a:e}trackByButton(e,n){var a;return null!==(a=null==n?void 0:n.id)&&void 0!==a?a:e}openContent(e){var n=this;return(0,l.A)(function*(){n.openLoading=!0,n.changeDetectorRef.detectChanges(),n.getDownloadHandler().then(a=>n.handleTrackAction(e,a)),yield n.eventActionService.processOpenContentAction({type:O.H.OPEN_CONTENT,...n.config.openContent},n),n.openLoading=!1,n.changeDetectorRef.detectChanges()})()}getContextKey(){return this.contextKey}}return(r=i).type="content",r.\u0275fac=function(e){return new(e||r)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(A.B),t.rXU(Z.o),t.rXU(t.zZn),t.rXU(J.G),t.rXU(Q.V),t.rXU(q.I),t.rXU(h.qQ),t.rXU(t.Agw),t.rXU(b.r6),t.rXU(t.pJN),t.rXU(T.Wj),t.rXU(tt.d),t.rXU(nt.X),t.rXU(et.i),t.rXU(ot._))},r.\u0275cmp=t.VBU({type:r,selectors:[["storefront-content"]],hostVars:8,hostBindings:function(e,n){2&e&&(t.BMQ("content-type",n.contentType)("post-type",n.postType),t.AVh("locked",n.locked)("purchasable",n.purchasable)("error",n.hasError))},features:[t.Jv_([A.B]),t.Vt3],decls:2,vars:2,consts:[["noAnchorTemplate",""],["imageTemplate",""],["contentData",""],[4,"ngIf"],[1,"content-image"],[3,"height"],[1,"content-data"],[1,"content-title"],[1,"content-description"],["class","content-error",4,"ngIf"],[1,"content-error"],["storefrontTranslate","CONTENT_ERROR",3,"storefrontTranslateArgs"],["storefrontTranslate","CONTENT_ERROR_BUTTON","mat-ripple","",1,"action-button",3,"click"],[4,"ngIf","ngIfElse"],["class","content-image",3,"href","click",4,"ngIf"],["class","content-data",3,"href","expanded","click",4,"ngIf"],[1,"content-image",3,"click","href"],[4,"ngTemplateOutlet"],[1,"content-data",3,"click","href"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","content-image",3,"click",4,"ngIf"],["class","content-data",3,"expanded","click",4,"ngIf"],[1,"content-image",3,"click"],[1,"content-data",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"lcpPrioritized","src","imageResolutionStrategy","height","extendedThumbnail","label"],["class","content-update-badge",4,"ngIf"],[3,"type","progress",4,"ngIf"],[1,"content-update-badge"],["storefrontTranslate","CONTENT_UPDATE_BADGE_MESSAGE"],[3,"type","progress"],["class","content-publication-title",3,"click",4,"ngIf"],["class","content-title",3,"click",4,"ngIf"],["class","icon icon-check-bg",4,"ngIf"],["class","content-pub-date",4,"ngIf"],["class","content-description","storefrontCheckOverflow","vertical","storefrontCheckOverflowTarget","self",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],["class","content-description-expand-toggle",3,"click",4,"ngIf"],["class","content-properties",4,"ngIf"],["class","content-categories",4,"ngIf"],["class","content-tags",4,"ngIf"],[3,"class","storefrontTranslate","storefrontTranslateArgs",4,"ngFor","ngForOf","ngForTrackBy"],[1,"content-actions"],["class","icon icon-share","mat-ripple","",3,"click",4,"ngIf"],["mat-ripple","",3,"class","click",4,"ngIf"],["class","button-read action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","button-preview action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","content-state",4,"ngIf"],[1,"content-publication-title",3,"click"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"content-title",3,"click"],[1,"icon","icon-check-bg"],[1,"content-pub-date"],["storefrontCheckOverflow","vertical","storefrontCheckOverflowTarget","self",1,"content-description",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"content-description-expand-toggle",3,"click"],[3,"storefrontTranslate"],[1,"icon","icon-arrow-down"],[1,"content-properties"],[3,"class",4,"ngFor","ngForOf","ngForTrackBy"],[1,"content-categories"],["purpleColorize","accent","purpleColorizeProps","background-color",3,"class",4,"ngFor","ngForOf","ngForTrackBy"],["purpleColorize","accent","purpleColorizeProps","background-color"],[1,"content-tags"],["mat-ripple","",1,"icon","icon-share",3,"click"],["mat-ripple","",3,"click"],["mat-ripple","",1,"button-read","action-button",3,"click","disabled"],["storefrontTranslate","CONTENT_ACTION_READ"],["class","button-spinner",4,"ngIf"],[1,"button-spinner"],["mat-ripple","",1,"button-preview","action-button",3,"click","disabled"],["storefrontTranslate","CONTENT_ACTION_PREVIEW"],["class","button-download action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","button-delete action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","button-cancel action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["mat-ripple","",1,"button-cancel","action-button",3,"click","disabled"],["storefrontTranslate","CONTENT_ACTION_CANCEL"],["mat-ripple","",1,"button-download","action-button",3,"click","disabled"],["storefrontTranslate","ISSUE_ACTION_DOWNLOAD"],["mat-ripple","",1,"button-delete","action-button",3,"click","disabled"],["storefrontTranslate","ISSUE_ACTION_DELETE"],["message","",3,"type","progress",4,"ngIf"],["class","progress-percentage",4,"ngIf"],["message","",3,"type","progress"],[1,"progress-percentage"],["class","button-purchase action-button","mat-ripple","",3,"ngClass","disabled","click",4,"ngIf"],["class","button-subscribe action-button","mat-ripple","","storefrontTranslate","CONTENT_ACTION_SUBSCRIBE",3,"click",4,"ngIf"],["class","button-login action-button","mat-ripple","","storefrontTranslate","CONTENT_ACTION_LOGIN",3,"click",4,"ngIf"],["class","button-coupon action-button","mat-ripple","","storefrontTranslate","CONTENT_ACTION_COUPON",3,"click",4,"ngIf"],["mat-ripple","",1,"button-purchase","action-button",3,"click","ngClass","disabled"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_LOADING",4,"ngIf"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_UNAVAILABLE",4,"ngIf"],["storefrontTranslate","CONTENT_ACTION_PURCHASE",3,"storefrontTranslateArgs",4,"ngIf"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_LOADING"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_UNAVAILABLE"],["storefrontTranslate","CONTENT_ACTION_PURCHASE",3,"storefrontTranslateArgs"],["mat-ripple","","storefrontTranslate","CONTENT_ACTION_SUBSCRIBE",1,"button-subscribe","action-button",3,"click"],["mat-ripple","","storefrontTranslate","CONTENT_ACTION_LOGIN",1,"button-login","action-button",3,"click"],["mat-ripple","","storefrontTranslate","CONTENT_ACTION_COUPON",1,"button-coupon","action-button",3,"click"],[1,"button-custom",3,"baseConfig","disableAnchor","baseContext"],[1,"content-state"],[3,"progress","type","showBorder",4,"ngIf"],["class","icon icon-download-circle","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","icon icon-delete","mat-ripple","",3,"disabled","click",4,"ngIf"],[3,"progress","type","showBorder"],["mat-ripple","",1,"icon","icon-download-circle",3,"click","disabled"],["mat-ripple","",1,"icon","icon-delete",3,"click","disabled"]],template:function(e,n){1&e&&t.DNE(0,ut,7,2,"ng-container",3)(1,Dn,9,4,"ng-container",3),2&e&&(t.Y8G("ngIf",!n.content||n.dataSourceError),t.R7$(),t.Y8G("ngIf",n.content&&n.config&&!n.dataSourceError))},dependencies:[h.YU,h.Sq,h.bT,h.T3,K.X,rt.G,at.M,it.t,ct.r6,st.Q,U.h,h.Jj,lt.w,_t.Z],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-content{display:flex;flex-direction:column;position:relative}storefront-content .content-image{position:relative;overflow:hidden}storefront-content .content-image storefront-spinner{position:absolute;top:0;height:100%;width:100%;background-color:#0000001a}storefront-content .content-image .content-update-badge{--paddingVert: .25em;--fontSize: .8em;--width: 200%;--offset: calc(var(--fontSize) * 3);position:absolute;top:calc(var(--fontSize) + var(--paddingVert));left:calc(var(--width) / -2 + var(--offset));display:flex;justify-content:center;width:var(--width);padding:var(--paddingVert) 0;background:var(--contentUpdateBadgeBgColor);transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}@media (max-width: 767px) and (orientation: portrait){storefront-content .content-image .content-update-badge{--fontSize: .6em}}@media (max-width: 330px) and (orientation: portrait){storefront-content .content-image .content-update-badge{--fontSize: .6em}}storefront-content .content-image .content-update-badge span{max-width:80px;text-align:center;font-size:var(--fontSize);color:var(--contentUpdateBadgeColor);-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;text-overflow:ellipsis;overflow:hidden}@media (max-width: 767px) and (orientation: portrait){storefront-content .content-image .content-update-badge span{max-width:60px}}@media (max-width: 330px) and (orientation: portrait){storefront-content .content-image .content-update-badge span{max-width:60px}}storefront-content storefront-progress[type=BAR]{display:none;position:absolute;background-color:var(--contentProgressBgColor);border-radius:var(--borderRadius);overflow:hidden;text-align:center;padding:var(--contentProgressPaddingVert) var(--contentProgressPaddingHoriz);z-index:0;bottom:0;left:0;right:0;top:0}storefront-content .content-image storefront-progress[type=BAR]{top:auto;bottom:var(--contentProgressMarginVert);left:var(--contentProgressMarginHoriz);right:var(--contentProgressMarginHoriz)}storefront-content .content-data{display:flex;flex-direction:column;overflow:hidden;flex-grow:1}storefront-content .content-data .content-description-expand-toggle{display:none}storefront-content .content-data .content-description-expand-toggle i{display:inline-block;transition:transform .3s ease;font-size:12px;padding:0 4px}storefront-content .content-title{margin:.5em 0}storefront-content .content-description{color:var(--secondaryTextColor);width:100%;white-space:pre-wrap}storefront-content .content-custom-message{color:var(--textColor)}storefront-content storefront-image{width:100%}storefront-content .content-actions{display:none;justify-content:space-between;z-index:1}storefront-content .content-actions button{color:#fff;background-color:var(--secondaryColor);padding:0}storefront-content .content-actions button.button-purchase,storefront-content .content-actions button.button-subscribe,storefront-content .content-actions button.button-download,storefront-content .content-actions button.button-read{background-color:var(--primaryColor)}storefront-content .content-actions button.button-state-downloading.button-state-INCOMPLETE .progress-percentage{display:none}storefront-content .content-actions button[disabled]{opacity:.5}storefront-content .content-actions button span{position:relative;z-index:1}storefront-content .content-actions button.icon{color:var(--primaryColor);background-color:transparent;width:1.4em;height:1.4em;font-size:1.4em}storefront-content .content-state{display:none}storefront-content .content-error .action-button{background-color:var(--secondaryColor);color:#fff;display:block}storefront-content[template=cover] .content-image{width:100%}storefront-content[template=cover] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=cover] .content-data{flex-direction:row;align-items:center}storefront-content[template=cover] .content-data>i,storefront-content[template=cover] .content-data .content-state i,storefront-content[template=cover] .content-data .content-state button,storefront-content[template=cover] .content-data .content-state storefront-progress,storefront-content[template=cover] .content-data .content-state storefront-spinner{font-size:21px;height:22px;width:22px;color:var(--secondaryColor)}storefront-content[template=cover] .content-data>i.icon-delete,storefront-content[template=cover] .content-data .content-state i.icon-delete,storefront-content[template=cover] .content-data .content-state button.icon-delete,storefront-content[template=cover] .content-data .content-state storefront-progress.icon-delete,storefront-content[template=cover] .content-data .content-state storefront-spinner.icon-delete{width:42px;height:42px;position:absolute;top:-20px;right:-20px;border-radius:100%;font-size:10px;color:#fff;padding:10px}storefront-content[template=cover] .content-data>i.icon-delete:after,storefront-content[template=cover] .content-data .content-state i.icon-delete:after,storefront-content[template=cover] .content-data .content-state button.icon-delete:after,storefront-content[template=cover] .content-data .content-state storefront-progress.icon-delete:after,storefront-content[template=cover] .content-data .content-state storefront-spinner.icon-delete:after{background-color:var(--secondaryColor);width:22px;height:22px;border-radius:100%;display:flex;justify-content:center;align-items:center}storefront-content[template=cover] .content-state{display:flex;right:0;bottom:0}storefront-content[template=cover] .content-state storefront-spinner{position:relative;z-index:1;--spinnerColor: var(--secondaryColor);background-color:transparent;padding:0}storefront-content[template=cover] .content-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}storefront-content[template=cover] .content-publication-title,storefront-content[template=cover] .content-description,storefront-content[template=cover] .content-categories,storefront-content[template=cover] .content-tags,storefront-content[template=cover] .content-pub-date,storefront-content[template=cover] .content-properties,storefront-content[template=cover] .content-custom-message{display:none}storefront-content[template=cover] .content-publication-title .content-tag,storefront-content[template=cover] .content-publication-title .content-category,storefront-content[template=cover] .content-description .content-tag,storefront-content[template=cover] .content-description .content-category,storefront-content[template=cover] .content-categories .content-tag,storefront-content[template=cover] .content-categories .content-category,storefront-content[template=cover] .content-tags .content-tag,storefront-content[template=cover] .content-tags .content-category,storefront-content[template=cover] .content-pub-date .content-tag,storefront-content[template=cover] .content-pub-date .content-category,storefront-content[template=cover] .content-properties .content-tag,storefront-content[template=cover] .content-properties .content-category,storefront-content[template=cover] .content-custom-message .content-tag,storefront-content[template=cover] .content-custom-message .content-category{display:none}storefront-content[template=card]{border-radius:4px;box-shadow:0 0 5px 2px #0000001a;padding-bottom:var(--gutter);overflow:hidden;background-color:#fff}storefront-content[template=card] storefront-image[height-strategy=FIXED]{padding-top:75%}storefront-content[template=card] storefront-image[height-strategy=FIXED]>img{object-fit:cover;width:100%}storefront-content[template=card] .content-title,storefront-content[template=card] .content-pub-date,storefront-content[template=card] .content-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-left:calc(var(--gutter) / 2);margin-right:calc(var(--gutter) / 2);width:initial}storefront-content[template=card] .content-publication-title,storefront-content[template=card] .content-categories,storefront-content[template=card] .content-tags,storefront-content[template=card] .content-properties,storefront-content[template=card] .content-custom-message{display:none}storefront-content[template=card] .content-publication-title .content-tag,storefront-content[template=card] .content-publication-title .content-category,storefront-content[template=card] .content-categories .content-tag,storefront-content[template=card] .content-categories .content-category,storefront-content[template=card] .content-tags .content-tag,storefront-content[template=card] .content-tags .content-category,storefront-content[template=card] .content-properties .content-tag,storefront-content[template=card] .content-properties .content-category,storefront-content[template=card] .content-custom-message .content-tag,storefront-content[template=card] .content-custom-message .content-category{display:none}storefront-content[template=highlight]{flex-direction:row;padding:calc(var(--gutter) / 2);width:100%}storefront-content[template=highlight] .content-image{width:calc(43% - var(--gutter) / 2);margin-right:var(--gutter);flex-shrink:0;align-self:flex-end}storefront-content[template=highlight] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}@media (max-width: 533px) and (orientation: portrait),(max-height: 533px) and (orientation: landscape){storefront-content[template=highlight] .content-image{width:calc(50% - (var(--gutter)))}}storefront-content[template=highlight] storefront-progress[type=BAR]{display:block}storefront-content[template=highlight] .content-data{margin-left:var(--gutter)}storefront-content[template=highlight] .content-title{font-size:2em;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}storefront-content[template=highlight] .content-publication-title,storefront-content[template=highlight] .content-pub-date,storefront-content[template=highlight] .content-properties,storefront-content[template=highlight] .content-categories,storefront-content[template=highlight] .content-tags{display:none}storefront-content[template=highlight] .content-publication-title .content-tag,storefront-content[template=highlight] .content-publication-title .content-category,storefront-content[template=highlight] .content-pub-date .content-tag,storefront-content[template=highlight] .content-pub-date .content-category,storefront-content[template=highlight] .content-properties .content-tag,storefront-content[template=highlight] .content-properties .content-category,storefront-content[template=highlight] .content-categories .content-tag,storefront-content[template=highlight] .content-categories .content-category,storefront-content[template=highlight] .content-tags .content-tag,storefront-content[template=highlight] .content-tags .content-category{display:none}storefront-content[template=highlight] .content-custom-message{margin:var(--gutter) 0}storefront-content[template=highlight] .content-actions{display:flex;flex-direction:column;flex-grow:1;justify-content:flex-end}storefront-content[template=highlight] .content-actions storefront-button button{width:100%}storefront-content[template=details] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=details] .content-data{align-items:center}storefront-content[template=details] .content-data.expanded .content-description{-webkit-line-clamp:unset}storefront-content[template=details] .content-data.expanded .content-description-expand-toggle{display:block}storefront-content[template=details] .content-data.expanded .content-description-expand-toggle i{transform:rotate(180deg)}storefront-content[template=details] .content-data .content-publication-title,storefront-content[template=details] .content-data .content-properties,storefront-content[template=details] .content-data .content-categories,storefront-content[template=details] .content-data .content-tags{display:none}storefront-content[template=details] .content-data .content-publication-title .content-tag,storefront-content[template=details] .content-data .content-publication-title .content-category,storefront-content[template=details] .content-data .content-publication-title .content-property,storefront-content[template=details] .content-data .content-properties .content-tag,storefront-content[template=details] .content-data .content-properties .content-category,storefront-content[template=details] .content-data .content-properties .content-property,storefront-content[template=details] .content-data .content-categories .content-tag,storefront-content[template=details] .content-data .content-categories .content-category,storefront-content[template=details] .content-data .content-categories .content-property,storefront-content[template=details] .content-data .content-tags .content-tag,storefront-content[template=details] .content-data .content-tags .content-category,storefront-content[template=details] .content-data .content-tags .content-property{display:none}storefront-content[template=details] storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=details] storefront-progress[type=BAR]{display:block}storefront-content[template=details] .content-pub-date{display:none}storefront-content[template=details] .content-description{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;text-overflow:ellipsis;overflow:hidden}storefront-content[template=details] .content-description.scrollable-vert+.content-description-expand-toggle{display:flex}storefront-content[template=details] .content-description-expand-toggle{align-self:flex-start}storefront-content[template=details] .content-custom-message{margin-top:var(--gutter)}storefront-content[template=details] .content-actions{display:grid;width:100%;grid-template-columns:1fr 1fr;grid-column-gap:var(--gutter);margin-top:var(--gutter)}storefront-content[template=details] .content-actions>button:nth-child(odd):last-child,storefront-content[template=details] .content-actions>storefront-button:nth-child(odd):last-child{grid-column:1/3}storefront-content[template=details] .content-actions storefront-button button{width:100%}storefront-content[template=group]{flex-direction:row}storefront-content[template=group] .content-image{width:100%}storefront-content[template=group] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=group] .content-data{flex-direction:column}storefront-content[template=group] .content-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}storefront-content[template=group] .content-actions{display:flex;justify-content:flex-start}storefront-content[template=group] .content-actions>button{display:none}storefront-content[template=group] i,storefront-content[template=group] .content-publication-title,storefront-content[template=group] .content-pub-date,storefront-content[template=group] .content-description,storefront-content[template=group] .content-description-expand-toggle,storefront-content[template=group] .content-properties,storefront-content[template=group] .content-categories,storefront-content[template=group] .content-tags,storefront-content[template=group] .content-state,storefront-content[template=group] .content-update-badge{display:none}storefront-content[template=group] i .content-tag,storefront-content[template=group] i .content-category,storefront-content[template=group] .content-publication-title .content-tag,storefront-content[template=group] .content-publication-title .content-category,storefront-content[template=group] .content-pub-date .content-tag,storefront-content[template=group] .content-pub-date .content-category,storefront-content[template=group] .content-description .content-tag,storefront-content[template=group] .content-description .content-category,storefront-content[template=group] .content-description-expand-toggle .content-tag,storefront-content[template=group] .content-description-expand-toggle .content-category,storefront-content[template=group] .content-properties .content-tag,storefront-content[template=group] .content-properties .content-category,storefront-content[template=group] .content-categories .content-tag,storefront-content[template=group] .content-categories .content-category,storefront-content[template=group] .content-tags .content-tag,storefront-content[template=group] .content-tags .content-category,storefront-content[template=group] .content-state .content-tag,storefront-content[template=group] .content-state .content-category,storefront-content[template=group] .content-update-badge .content-tag,storefront-content[template=group] .content-update-badge .content-category{display:none}storefront-content.locked .content-actions button.icon-share{display:none}storefront-content.ghost{pointer-events:none}storefront-content.ghost .content-image{animation:ghost-opacity 2s infinite linear;background-color:var(--ghostColor);margin-bottom:var(--gutter)}storefront-content.ghost .content-image storefront-image{background-color:transparent}storefront-content.ghost[template=highlight]>.content-image{margin-bottom:0}storefront-content.ghost[template=highlight]>.content-image>storefront-image{margin-bottom:0}storefront-content.ghost[template=highlight] .content-description,storefront-content.ghost[template=highlight] .content-title{width:100%;margin-bottom:0}storefront-content.ghost[template=cover] storefront-image{padding-top:133%}storefront-content.ghost[template=card] storefront-image{padding-top:75%}storefront-content.ghost .content-description,storefront-content.ghost .content-title{background-color:var(--ghostColor);color:transparent;border-radius:4px;width:90%;height:1.2em;margin-bottom:calc(var(--gutter) / 2)!important;background-image:linear-gradient(90deg,var(--ghostColor) 0px,rgb(236,236,236) 40px,var(--ghostColor) 80px);background-size:80vw;animation:ghost-lines 2s infinite linear}storefront-content.ghost .content-description{height:3em}storefront-content.error .content-data{display:none}storefront-content.error[template=cover] .content-error,storefront-content.error[template=card] .content-error,storefront-content.error[template=details] .content-error{margin-top:var(--gutter)}\n'],encapsulation:2}),i})()},2085:($,I,c)=>{c.d(I,{o9:()=>y,qc:()=>g});var l=c(4404),g=function(f){return f.COVER="cover",f.CARD="card",f.HIGHLIGHT="highlight",f.DETAILS="details",f.GROUP="group",f}(g||{});const y={template:g.CARD,openContent:{mode:l.DisplayMode.MODAL,titleBar:!0},downloadOptions:null,customButtons:[],customMessages:[],titleMessage:"CONTENT_TITLE",descriptionMessage:"CONTENT_DESCRIPTION",publicationTitleMessage:"CONTENT_PUBLICATION_TITLE"}},8399:($,I,c)=>{c.r(I),c.d(I,{ContentModule:()=>T,component:()=>O});var l=c(177),h=c(7808),t=c(6600),g=c(4767),y=c(6953),f=c(1605),M=c(8301),C=c(6483),N=c(9805),P=c(4403),B=c(3363),G=c(6215),m=c(3953);let T=(()=>{var v;class A{}return(v=A).\u0275fac=function(b){return new(b||v)},v.\u0275mod=m.$C({type:v}),v.\u0275inj=m.G2t({imports:[l.MD,B.E,M.d,C.h,G.O,f.P,g.d,t.pZ,y.n,N.ButtonModule,P.U]}),A})();const O=h.B}}]);
1
+ "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["default-projects_storefront_src_app_component_content_content_module_ts"],{7808:($,I,c)=>{c.d(I,{B:()=>xn});var l=c(467),h=c(177),t=c(3953),g=c(4404),f=c(4412),M=c(5964),C=c(5343),N=c(6354),P=c(6697),B=c(6843),G=c(4452),m=c(8179),T=c(5102),O=c(9745),v=c(4945),k=c(8251),u=c(5706),b=c(7879),Y=c(8890),F=c(1210),D=c(4365),S=c(2085),w=c(362),W=c(4622),V=c(1739),H=c(4004),U=c(2932),z=c(610),A=c(8091),K=c(3092),x=c(4608),Z=c(20),J=c(8004),Q=c(9516),q=c(244),tt=c(1652),nt=c(5820),et=c(4748),ot=c(6350),rt=c(680),at=c(8909),it=c(7240),ct=c(6600),st=c(395),lt=c(2914),_t=c(2813);const R=r=>[r],pt=r=>({path:r}),dt=()=>({path:""}),gt=()=>[];function ft(r,i){if(1&r){const o=t.RV6();t.j41(0,"div",10),t.nrm(1,"span",11),t.j41(2,"button",12),t.bIt("click",function(){t.eBV(o);const n=t.XpG(2);return t.Njj(n.reload())}),t.k0s()()}if(2&r){const o=t.XpG(2);t.R7$(),t.Y8G("storefrontTranslateArgs",t.eq3(1,R,o.dataSourceError.code))}}function ut(r,i){if(1&r&&(t.qex(0),t.j41(1,"div",4),t.nrm(2,"storefront-image",5),t.k0s(),t.j41(3,"div",6),t.nrm(4,"h3",7)(5,"div",8),t.k0s(),t.DNE(6,ft,3,3,"div",9),t.bVm()),2&r){const o=t.XpG();t.R7$(2),t.Y8G("height","FIXED"),t.R7$(4),t.Y8G("ngIf",o.dataSourceError)}}function mt(r,i){1&r&&t.eu8(0)}function ht(r,i){if(1&r){const o=t.RV6();t.j41(0,"a",16),t.nI1(1,"urlTransform"),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.DNE(2,mt,1,0,"ng-container",17),t.k0s()}if(2&r){const o=t.XpG().ngIf;t.XpG();const e=t.sdS(6),n=t.XpG();t.Y8G("href",t.i5U(1,2,o,n.context),t.B4B),t.R7$(2),t.Y8G("ngTemplateOutlet",e)}}function Ct(r,i){1&r&&t.eu8(0)}function Et(r,i){if(1&r){const o=t.RV6();t.j41(0,"a",18),t.nI1(1,"urlTransform"),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickContent(n))}),t.DNE(2,Ct,1,0,"ng-container",19),t.k0s()}if(2&r){const o=t.XpG().ngIf;t.XpG();const e=t.sdS(8),n=t.XpG();t.AVh("expanded",n.descriptionExpanded),t.Y8G("href",t.i5U(1,5,o,n.context),t.B4B),t.R7$(2),t.Y8G("ngTemplateOutlet",e)("ngTemplateOutletContext",t.eq3(8,pt,o))}}function vt(r,i){if(1&r&&(t.qex(0),t.DNE(1,ht,3,5,"a",14)(2,Et,3,10,"a",15),t.bVm()),2&r){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.cover),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.allData)}}function bt(r,i){1&r&&t.eu8(0)}function Tt(r,i){if(1&r){const o=t.RV6();t.j41(0,"div",22),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.DNE(1,bt,1,0,"ng-container",17),t.k0s()}if(2&r){t.XpG(2);const o=t.sdS(6);t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function It(r,i){if(1&r){const o=t.RV6();t.j41(0,"div",23),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickContent(n))}),t.eu8(1,24),t.k0s()}if(2&r){t.XpG(2);const o=t.sdS(8),e=t.XpG();t.AVh("expanded",e.descriptionExpanded),t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.lJ4(4,dt))}}function Ot(r,i){if(1&r&&t.DNE(0,Tt,2,1,"div",20)(1,It,2,5,"div",21),2&r){const o=t.XpG(2);t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.cover),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.allData)}}function Dt(r,i){1&r&&t.nrm(0,"storefront-spinner")}function xt(r,i){1&r&&(t.j41(0,"div",28),t.nrm(1,"span",29),t.k0s())}function 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 At(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("lcpPrioritized",0===(null==o.context?null:o.context.entryIndex)&&(null==o.config?null:o.config.lcpPrioritized))("src",o.content.thumbnails&&o.content.thumbnails.default)("imageResolutionStrategy",null==o.config?null:o.config.imageResolutionStrategy)("height",o.getImageHeight())("extendedThumbnail",null==o.content||null==o.content.thumbnailsExtended?null:o.content.thumbnailsExtended.default)("label",null==o.content?null:o.content.name),t.R7$(),t.Y8G("ngIf",o.coverLoading),t.R7$(),t.Y8G("ngIf",o.showUpdateBehavior()),t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress())}}function Rt(r,i){if(1&r){const o=t.RV6();t.j41(0,"h3",48),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.nrm(1,"span",49),t.k0s()}if(2&r){const o=t.XpG(3);t.R7$(),t.Y8G("storefrontTranslate",o.config.publicationTitleMessage)("storefrontTranslateArgs",t.eq3(2,R,o.publication&&o.publication.name))}}function yt(r,i){if(1&r){const o=t.RV6();t.j41(0,"h3",50),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickCover(n))}),t.nrm(1,"span",49),t.k0s()}if(2&r){const o=t.XpG(3);t.R7$(),t.Y8G("storefrontTranslate",o.config.titleMessage)("storefrontTranslateArgs",t.eq3(2,R,o.content.name))}}function Pt(r,i){1&r&&t.nrm(0,"i",51)}function St(r,i){if(1&r&&(t.j41(0,"div",52),t.EFF(1),t.nI1(2,"storefrontDate"),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.SpI(" ",t.bMT(2,1,o.content.publicationDate)," ")}}function Lt(r,i){if(1&r&&t.nrm(0,"div",53),2&r){const o=t.XpG(3);t.Y8G("storefrontTranslate",o.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(2,R,o.content.description))}}function Mt(r,i){if(1&r){const o=t.RV6();t.j41(0,"span",54),t.bIt("click",function(){t.eBV(o);const n=t.XpG(3);return t.Njj(n.descriptionExpanded=!n.descriptionExpanded)}),t.nrm(1,"span",55)(2,"i",56),t.k0s()}if(2&r){const o=t.XpG(3);t.R7$(),t.Y8G("storefrontTranslate",o.descriptionExpanded?"CONTENT_DESCRIPTION_TOGGLE_COLLAPSE":"CONTENT_DESCRIPTION_TOGGLE_EXPAND")}}function Nt(r,i){if(1&r&&(t.j41(0,"div")(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"i"),t.k0s()),2&r){const o=i.$implicit;t.ZWY("content-property content-property-",o.key," content-property-",o.key,"-",o.value,""),t.R7$(2),t.JRh(o.value),t.R7$(),t.ee0("'icon icon-",o.key," icon-",o.value," icon-",o.key,"-",o.value,"")}}function Bt(r,i){if(1&r&&(t.j41(0,"div",57),t.DNE(1,Nt,4,12,"div",58),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.visibleProperties)("ngForTrackBy",o.trackByProperty)}}function Gt(r,i){if(1&r&&(t.j41(0,"div",61)(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"i"),t.k0s()),2&r){const o=i.$implicit;t.ZvI("content-category content-category-",o.id,""),t.R7$(2),t.JRh(o.name||o.id),t.R7$(),t.ZvI("icon icon-",o.id,"")}}function wt(r,i){if(1&r&&(t.j41(0,"div",59),t.DNE(1,Gt,4,7,"div",60),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.displayedCategories)("ngForTrackBy",o.trackByCategory)}}function Ut(r,i){if(1&r&&(t.j41(0,"div")(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"i"),t.k0s()),2&r){const o=i.$implicit;t.ZvI("content-tag content-tag-",o,""),t.R7$(2),t.JRh(o),t.R7$(),t.ZvI("icon icon-",o,"")}}function Kt(r,i){if(1&r&&(t.j41(0,"div",62),t.DNE(1,Ut,4,7,"div",58),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.tags)("ngForTrackBy",o.trackByTag)}}function $t(r,i){if(1&r&&t.nrm(0,"div",49),2&r){const o=i.$implicit;t.ZvI("content-custom-message ",o.class||"",""),t.Y8G("storefrontTranslate",o.message)("storefrontTranslateArgs",o.variables||t.lJ4(5,gt))}}function jt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",63),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickShare(n))}),t.k0s()}}function 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 Yt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function Ft(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",65),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickRead(n))}),t.nrm(1,"span",66),t.DNE(2,Yt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(3);t.Y8G("disabled",o.openLoading),t.R7$(2),t.Y8G("ngIf",o.openLoading)}}function Wt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function Vt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",69),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(3);return t.Njj(a.onClickPreview(n))}),t.nrm(1,"span",70),t.DNE(2,Wt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(3);t.Y8G("disabled",o.previewLoading),t.R7$(2),t.Y8G("ngIf",o.previewLoading)}}function Ht(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function zt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",74),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(6);return t.Njj(a.onClickCancel(n))}),t.nrm(1,"span",75),t.DNE(2,Ht,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(6);t.Y8G("disabled",o.deleteLoading),t.R7$(2),t.Y8G("ngIf",o.deleteLoading)}}function Zt(r,i){if(1&r&&(t.qex(0),t.DNE(1,zt,3,2,"button",73),t.bVm()),2&r){const o=t.XpG(5);t.R7$(),t.Y8G("ngIf",o.isDownloadCancelable())}}function Jt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function Qt(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",76),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(5);return t.Njj(a.onClickDownload(n))}),t.nrm(1,"span",77),t.DNE(2,Jt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(5);t.Y8G("disabled",o.downloadLoading),t.R7$(2),t.Y8G("ngIf",o.downloadLoading)}}function qt(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function tn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",78),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(5);return t.Njj(a.onClickDelete(n))}),t.nrm(1,"span",79),t.DNE(2,qt,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(5);t.Y8G("disabled",o.deleteLoading),t.R7$(2),t.Y8G("ngIf",o.deleteLoading)}}function nn(r,i){if(1&r&&(t.qex(0),t.DNE(1,Zt,2,1,"ng-container",3)(2,Qt,3,2,"button",71)(3,tn,3,2,"button",72),t.bVm()),2&r){const o=t.XpG(4);t.R7$(),t.Y8G("ngIf",o.installState.downloading),t.R7$(),t.Y8G("ngIf",!o.installState.downloading&&"COMPLETE"!==o.installState.installState&&!o.deleteLoading),t.R7$(),t.Y8G("ngIf",o.isDownloadDeletable())}}function en(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function on(r,i){if(1&r&&t.nrm(0,"storefront-progress",82),2&r){const o=t.XpG(6);t.Y8G("type",o.getProgressType())("progress",o.installState.progress)}}function rn(r,i){if(1&r&&(t.j41(0,"p",83),t.EFF(1),t.k0s()),2&r){const o=t.XpG(6);t.R7$(),t.SpI(" ",o.installState.progress,"% ")}}function an(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",64),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(5);return t.Njj(a.onClickState(n))}),t.nrm(1,"span",55),t.DNE(2,en,1,0,"storefront-spinner",67)(3,on,1,2,"storefront-progress",80)(4,rn,2,1,"p",81),t.k0s()}if(2&r){const o=t.XpG(5);t.ZWY("button-state action-button ",o.installState.downloading?"button-state-downloading":""," ","button-state-"+o.installState.installState," ",o.deleteLoading||o.downloadLoading?"button-state-loading":"",""),t.R7$(),t.Y8G("storefrontTranslate",o.getStateText()),t.R7$(),t.Y8G("ngIf",o.deleteLoading||o.downloadLoading),t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress(!0)),t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress(!0))}}function cn(r,i){if(1&r&&(t.qex(0),t.DNE(1,an,5,9,"button",43),t.bVm()),2&r){const o=t.XpG(4);t.R7$(),t.Y8G("ngIf",o.isDownloadable())}}function sn(r,i){if(1&r&&(t.qex(0),t.DNE(1,nn,4,3,"ng-container",3)(2,cn,2,1,"ng-container",3),t.bVm()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf","MULTI"===o.downloadOptions.buttonType),t.R7$(),t.Y8G("ngIf","SINGLE"===o.downloadOptions.buttonType)}}function ln(r,i){1&r&&t.nrm(0,"span",92)}function _n(r,i){1&r&&t.nrm(0,"span",93)}function pn(r,i){if(1&r&&t.nrm(0,"span",94),2&r){const o=t.XpG(5);t.Y8G("storefrontTranslateArgs",t.eq3(1,R,o.price&&o.price.formattedPrice))}}function dn(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function gn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",88),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickPurchase(n))}),t.DNE(1,ln,1,0,"span",89)(2,_n,1,0,"span",90)(3,pn,1,3,"span",91)(4,dn,1,0,"storefront-spinner",67),t.k0s()}if(2&r){const o=t.XpG(4);t.Y8G("ngClass",o.getPriceState())("disabled",!o.price||o.purchaseLoading),t.R7$(),t.Y8G("ngIf",!o.visible||o.priceLoading),t.R7$(),t.Y8G("ngIf",o.visible&&!o.priceLoading&&!o.price),t.R7$(),t.Y8G("ngIf",o.price),t.R7$(),t.Y8G("ngIf",o.purchaseLoading)}}function fn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",95),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickSubscribe(n))}),t.k0s()}}function un(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",96),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickLogin(n))}),t.k0s()}}function mn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",97),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickCoupon(n))}),t.k0s()}}function hn(r,i){if(1&r&&(t.qex(0),t.DNE(1,gn,5,6,"button",84)(2,fn,1,0,"button",85)(3,un,1,0,"button",86)(4,mn,1,0,"button",87),t.bVm()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf",o.purchaseOptions.purchase),t.R7$(),t.Y8G("ngIf",o.purchaseOptions.subscribe),t.R7$(),t.Y8G("ngIf",!o.loggedIn&&o.purchaseOptions.login),t.R7$(),t.Y8G("ngIf",o.purchaseOptions.coupon)}}function Cn(r,i){if(1&r&&(t.qex(0),t.nrm(1,"storefront-button",98),t.bVm()),2&r){const o=i.$implicit,e=t.XpG(3);t.R7$(),t.Y8G("baseConfig",o)("disableAnchor",!0)("baseContext",e.context)}}function En(r,i){if(1&r&&t.nrm(0,"storefront-progress",103),2&r){const o=t.XpG(4);t.Y8G("progress",o.installState.progress)("type",o.getProgressType())("showBorder",!0)}}function vn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",104),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickDownload(n))}),t.k0s()}if(2&r){const o=t.XpG(4);t.Y8G("disabled",o.downloadLoading)}}function bn(r,i){if(1&r){const o=t.RV6();t.j41(0,"button",105),t.bIt("click",function(n){t.eBV(o);const a=t.XpG(4);return t.Njj(a.onClickDelete(n))}),t.k0s()}if(2&r){const o=t.XpG(4);t.Y8G("disabled",o.deleteLoading)}}function Tn(r,i){1&r&&t.nrm(0,"storefront-spinner",68)}function In(r,i){if(1&r&&(t.j41(0,"div",99),t.DNE(1,En,1,3,"storefront-progress",100)(2,vn,1,1,"button",101)(3,bn,1,1,"button",102)(4,Tn,1,0,"storefront-spinner",67),t.k0s()),2&r){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf",o.isDownloadInProgress(!0)),t.R7$(),t.Y8G("ngIf",!o.locked&&"COMPLETE"!==o.installState.installState&&!o.installState.downloading&&!o.downloadLoading),t.R7$(),t.Y8G("ngIf",o.isDownloadDeletable()||o.isDownloadCancelable()),t.R7$(),t.Y8G("ngIf",o.downloadLoading)}}function On(r,i){if(1&r&&(t.DNE(0,Rt,2,4,"h3",31)(1,yt,2,4,"h3",32)(2,Pt,1,0,"i",33)(3,St,3,3,"div",34)(4,Lt,1,4,"div",35)(5,Mt,3,1,"span",36)(6,Bt,2,2,"div",37)(7,wt,2,2,"div",38)(8,Kt,2,2,"div",39)(9,$t,1,6,"div",40),t.j41(10,"div",41),t.DNE(11,jt,1,0,"button",42)(12,Xt,1,3,"button",43)(13,Ft,3,2,"button",44)(14,Vt,3,2,"button",45)(15,sn,3,2,"ng-container",3)(16,hn,5,4,"ng-container",3)(17,Cn,2,3,"ng-container",46),t.k0s(),t.DNE(18,In,5,4,"div",47)),2&r){const o=t.XpG(2);t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.publication),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.title),t.R7$(),t.Y8G("ngIf",o.isDownloadFinished()),t.R7$(),t.Y8G("ngIf",o.content.publicationDate&&(!o.config.hideComponents||!o.config.hideComponents.publicationDate)),t.R7$(),t.Y8G("ngIf",o.content.description&&(!o.config.hideComponents||!o.config.hideComponents.description)),t.R7$(),t.Y8G("ngIf",o.content.description&&(!o.config.hideComponents||!o.config.hideComponents.description)),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.properties),t.R7$(),t.Y8G("ngIf",!(o.config.displayCategories&&"NOTHING"===o.config.displayCategories.mode||o.config.hideComponents&&o.config.hideComponents.categories)),t.R7$(),t.Y8G("ngIf",!o.config.hideComponents||!o.config.hideComponents.tags),t.R7$(),t.Y8G("ngForOf",o.customMessages)("ngForTrackBy",o.trackByMessage),t.R7$(2),t.Y8G("ngIf",o.config.sharing),t.R7$(),t.Y8G("ngIf",o.config.bookmark),t.R7$(),t.Y8G("ngIf",!o.locked),t.R7$(),t.Y8G("ngIf",o.locked&&o.hasPreview()),t.R7$(),t.Y8G("ngIf",o.downloadOptions&&!o.locked),t.R7$(),t.Y8G("ngIf",o.purchaseOptions&&o.locked),t.R7$(),t.Y8G("ngForOf",o.customButtons)("ngForTrackBy",o.trackByButton),t.R7$(),t.Y8G("ngIf",o.installState)}}function Dn(r,i){if(1&r&&(t.qex(0),t.DNE(1,vt,3,2,"ng-container",13),t.nI1(2,"async"),t.DNE(3,Ot,2,2,"ng-template",null,0,t.C5r)(5,At,4,9,"ng-template",null,1,t.C5r)(7,On,19,20,"ng-template",null,2,t.C5r),t.bVm()),2&r){const o=t.sdS(4),e=t.XpG();t.R7$(),t.Y8G("ngIf",t.bMT(2,2,e.contentPath$))("ngIfElse",o)}}let xn=(()=>{var r;class i extends F.${constructor(e,n,a,s,p,_,d,E,L,j,kn,An,Rn,yn,X,Pn,Sn,Ln){super(_,e,E,j,X),this.elementRef=e,this.ngZone=n,this.changeDetectorRef=a,this.store=s,this.dialog=p,this.injector=_,this.eventActionService=d,this.contextService=E,this.cleanUpService=L,this.document=j,this.platformId=kn,this.purpleEnv=An,this.transferState=Rn,this.purpleService=yn,this.globalService=X,this.anchorService=Pn,this.ssrService=Sn,this.cacheService=Ln,this.defaultConfig={...S.o9},this.priceLoading=!1,this.purchaseLoading=!1,this.downloadLoading=!1,this.deleteLoading=!1,this.openLoading=!1,this.previewLoading=!1,this.coverLoading=!1,this.bookmarkLoading=!1,this.descriptionExpanded=!1,this.downloadError=null,this.dataSourceError=null,this.visible=!1,this.anchorFeatureEnabled=!1,this.anchorPathCover=null,this.visibleProperties=[],this.contentPath$=new f.t(null),this.purchaseConfig={...D.Rp},this.isDownloadEnabled=(0,u.xl)(this.content)||(0,b.E7)(window.purple.content,{major:1,minor:6},g.IntOperation.GREATER_THAN)}get purchasable(){var e;return(null===(e=this.content)||void 0===e?void 0:e.access)===g.Access.PURCHASABLE}get hasError(){var e;return!(!this.dataSourceError||null!==(e=this.dataSource)&&void 0!==e&&e.hasData())}get contentType(){var e;return null===(e=this.content)||void 0===e?void 0:e.contentType}get postType(){return this.content&&(0,u.mF)(this.content)?this.content.postType:void 0}get contextKey(){var e,n,a;return null!==(e=null!==(n=null===(a=this.config)||void 0===a?void 0:a.contentContextKey)&&void 0!==n?n:this.baseConfig.contentContextKey)&&void 0!==e?e:i.type}get contextContent(){return this.context[this.contextKey]}get taxonomies(){var e;return null!==(e=this.content.taxonomies)&&void 0!==e?e:[]}get categories(){return this.taxonomies.filter(e=>"category"===e.type).map(e=>e.id)}get tags(){return this.taxonomies.filter(e=>"tag"===e.type).map(e=>e.id)}ngOnInit(){this.anchorFeatureEnabled=this.anchorService.isAnchorFeatureEnabled(),this.anchorFeatureEnabled||this.contentPath$.next(null),super.ngOnInit(),this.store.select((0,v.jZ)(B.O.DOWNLOAD_OPTIONS),e=>this.updateBehavior=null==e?void 0:e.autoUpdateBehavior)}ngOnDestroy(){super.ngOnDestroy(),this.downloadHandler&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.purpleService.destroyDownloadHandler(this.downloadHandler),1e3)}),this.dataSource&&this.contextService.unregisterDataSource(this.dataSource),this.trackingObserver&&this.trackingObserver.disconnect()}onConfigChanges(){var e=this;return(0,l.A)(function*(){var n;const a=e.content,s=(0,m.v3)(e.config.dataSource),p={...s,limit:1};if(e.loggedIn=!!e.context[g.METADATA_KEY.ENTITLEMENT_TOKEN],e.dataSource&&!e.dataSource.hasConfigChanged(p)&&e.content)return e.context[e.contextKey]=a,void e.updateConfig(a);if(s)delete e.content,delete e.dataSourceError,e.changeDetectorRef.detectChanges(),e.dataSource=(0,G.O8)(e.injector,p,e.elementRef.nativeElement,e.document),e.store.subscribe(e.dataSource.data$.pipe((0,M.p)(_=>_&&!!_[0])),_=>{const d=e.content;e.content=_[0],(0,T.GA)(e.content,e.purpleService).then(E=>e.locked=E),e.context[e.contextKey]=e.content,e.updateConfig(d)},C.l,C.l,"data"),e.store.subscribe(e.dataSource.error$,_=>e.dataSourceError=_,C.l,C.l,"error"),yield e.dataSource.loadData();else{const _=e.contextContent;"object"!=typeof _||e.content&&(!_||e.purchaseLoading)?e.context[e.contextKey]=e.content:(e.content=_,(0,T.GA)(e.content,e.purpleService).then(d=>e.locked=d)),e.updateConfig(a)}void 0===e.content&&(null===(n=e.baseContext)||void 0===n||!n.isGhost)&&(0,h.UE)(e.platformId)&&e.ngZone.runOutsideAngular(()=>{setTimeout(()=>{void 0===e.content&&e.ngZone.run(()=>e.dataSourceError={code:g.ERROR_CODE.ISSUE_NOT_FOUND})},1e3)})})()}updateConfig(e){var n=this;return(0,l.A)(function*(){var a;const s={...n.context};s.publication||(s.publication=n.publication),n.config=(0,m.uQ)({...S.o9,...n.baseConfig},s,n.contextService.$functions,n.globalService.getGlobalData());const p=(0,m.v3)(n.config.purchaseOptions);p&&(n.purchaseOptions=Object.keys(p).reduce((d,E)=>({...d,[E]:(0,m.v3)(p[E])}),{}),n.purchaseOptions.purchase&&"object"==typeof n.purchaseOptions.purchase&&(n.purchaseConfig={...D.Rp,...n.purchaseOptions.purchase})),n.anchorFeatureEnabled&&n.handleAnchorTags();const _={buttonClass:"action-button"};n.customButtons=n.config.customButtons.filter(d=>(0,m.Ol)(d)).map(d=>(0,m.v3)(d)).map(d=>({..._,...d,buttonClass:d.buttonClass?_.buttonClass.concat(" ",d.buttonClass):_.buttonClass})),n.customMessages=n.config.customMessages.filter(d=>(0,m.Ol)(d)).map(d=>(0,m.v3)(d)),n.downloadOptions=(0,m.v3)(n.config.downloadOptions),JSON.stringify(e)!==JSON.stringify(n.content)&&n.loadOnVisible(),n.visibleProperties=(null!==(a=n.config.renderProperties)&&void 0!==a?a:[]).map(d=>(0,m.v3)(d)).filter(d=>!!d&&void 0!==n.content.properties[d]).map(d=>({key:d,value:n.content.properties[d]})),n.content&&n.setDisplayCategories(),n.changeDetectorRef.markForCheck()})()}setDisplayCategories(){var e,n;switch(null!==(e=null===(n=this.config.displayCategories)||void 0===n?void 0:n.mode)&&void 0!==e?e:"SLUG"){case"SLUG":this.displayedCategories=this.taxonomies.filter(s=>"category"===s.type).map(s=>({id:s.id}));break;case"NAME":this.displayedCategories=this.taxonomies.filter(s=>"category"===s.type)}}handleAnchorTags(){var e=this;return(0,l.A)(function*(){e.anchorPathCover=e.anchorService.getAnchorPathForEventAction(e.config.tapCover,e.context);const n=e.anchorService.getAnchorPathForEventAction(e.config.tapContent,e.context);if(n)e.purpleEnv.isUniversal&&e.contentPath$.next(n);else{const a=yield e.anchorService.getAnchorPathForContent(e.content);a&&e.contentPath$.next(a)}})()}loadOnVisible(){var e=this;if(this.installState=null,this.price=null,this.deleteLoading=!1,this.downloadLoading=!1,this.purchaseLoading=!1,this.previewLoading=!1,this.priceLoading=!1,this.openLoading=!1,this.bookmarkLoading=!1,!this.isGhost()){if(this.config.trackVisible){const a=!0===this.config.trackVisible?0:this.config.trackVisible.trackDelay;let p,_=d=>{d[0].isIntersecting?p=setTimeout(()=>{this.getDownloadHandler().then(function(){var E=(0,l.A)(function*(L){e.publication||(yield e.loadPublication()),e.handleTrackAction("VISIBLE",L)});return function(L){return E.apply(this,arguments)}}())},a):clearTimeout(p)};this.trackingObserver=new IntersectionObserver(_,{rootMargin:"0px",threshold:!0===this.config.trackVisible?1:this.config.trackVisible.minContentVisibility}),this.trackingObserver.observe(this.elementRef.nativeElement)}this.store.subscribe((0,Y.eh)(this,this.elementRef,{skipWait:this.purpleEnv.isUniversal&&!this.ssrService.currentPrebootStatus}),n=>{this.visible=!0,this.loadIssueState(),this.loadPublication(),this.loadPrice(),this.loadBookmark(),this.purpleService.addInvalidationListener((0,l.A)(function*(){e.dataSource&&(e.content=yield e.purpleService.getIssue(e.content.id).catch(()=>null),e.locked=yield(0,T.GA)(e.content,e.purpleService),e.context[e.contextKey]=e.content,e.updateConfig(e.content)),e.loadPrice()}))},C.l,C.l,"visible")}}loadIssueState(){var e=this;return(0,l.A)(function*(){!e.content||!e.downloadOptions||(yield e.getDownloadHandler(),e.downloadHandler&&(e.store.subscribe(e.downloadHandler.updates$,n=>{e.installState=n,n&&n.error&&!e.downloadError&&(e.downloadError=n.error),e.changeDetectorRef.detectChanges()},C.l,C.l,"installState"),e.downloadHandler.autoUpdate&&e.downloadHandler.downloadStarted&&e.downloadHandler.update()),e.changeDetectorRef.detectChanges())})()}loadPrice(){var e=this;return(0,l.A)(function*(){if(e.purchaseOptions&&e.locked){var n;e.priceLoading=!0;const a=e.content.productId||(null===(n=yield e.purpleService.getRepeatablePublicationProductByPublicationId(e.content.publicationId))||void 0===n?void 0:n.productId);a?(e.store.select((0,W.Zt)(a),s=>{(0,V.b)(s)||(e.price=s),e.priceLoading=!1}),e.store.dispatch((0,H.qF)({productId:a}))):e.priceLoading=!1}})()}loadPublication(){var e=this;return(0,l.A)(function*(){if(e.content)try{const n=e.content.publicationId,a=(0,t.zw6)("publication_".concat(n));e.transferState.hasKey(a)?(e.publication=e.transferState.get(a,null),(0,h.UE)(e.platformId)&&e.transferState.remove(a)):(e.publication=yield e.purpleService.getPublication(n),(0,h.UE)(e.platformId)||e.transferState.onSerialize(a,()=>e.publication)),yield e.updateConfig(e.content),e.changeDetectorRef.detectChanges()}catch{console.log("error loading publication for content",e)}})()}loadBookmark(){var e=this;return(0,l.A)(function*(){e.config.bookmark&&e.store.subscribe(e.purpleService.bookmarks.pipe((0,N.T)(n=>n.find(a=>a.contentId===e.content.id))),n=>e.bookmark=n,C.l,C.l,"bookmark")})()}getData(){return this.content}getImageHeight(){return this.config.coverHeight||this.getDefaultImageHeight()}hasPreview(){return(0,u.xl)(this.content)?!!this.content.previewIssue:!(0,u.mF)(this.content)&&!(0,u.G4)(this.content)&&void 0}getDefaultImageHeight(){return this.template===S.qc.DETAILS?U.q.AUTO:U.q.FIXED}handleCacheDownload(){var e=this;return(0,l.A)(function*(){(0,u.G4)(e.content)?yield e.downloadBundle():(0,u.mF)(e.content)&&(yield e.downloadPost(e.content)),e.cacheService.serializeCachedRequests()})()}onClickDownload(e){var n=this;return(0,l.A)(function*(){e.stopPropagation(),yield n.handleCacheDownload(),n.downloadLoading=!0,delete n.downloadError,n.changeDetectorRef.detectChanges();const a=yield n.getDownloadHandler();if(n.handleTrackAction("DOWNLOAD_CLICKED",a),a){if(n.purpleService.downloadOptions.showConfirmDownloadDialog){const s={content:n.content,download:{totalSize:-1}};try{yield n.dialog.confirm({text:"ISSUE_DOWNLOAD_CONFIRM_MESSAGE",args:[s]},{text:"ISSUE_DOWNLOAD_CONFIRM_TITLE",args:[s]},"ISSUE_DOWNLOAD_CONFIRM_OK","ISSUE_DOWNLOAD_CONFIRM_CANCEL")}catch{return n.handleTrackAction("DOWNLOAD_CONFIRM_CANCELLED",a,void 0,"_COLLECTION"),void(n.downloadLoading=!1)}}try{yield a.download(),n.cleanUpService.addIssue(n.content.id),n.installState.downloading=!0,n.installState.installState=g.ContentInstallState.INCOMPLETE,n.installState.progress=0}catch(s){console.error(s),s.code===g.ERROR_CODE.PAYMENT_REQUIRED&&n.purpleService.invalidate()}}n.downloadLoading=!1,n.changeDetectorRef.detectChanges()})()}downloadPost(e,n=0){var a=this;return(0,l.A)(function*(){yield a.purpleService.getOptionalData(e,{...(0,u.ci)(a.config,a.purpleEnv),downloadedById:e.id},n),a.downloadLoading=!1,a.changeDetectorRef.detectChanges()})()}downloadBundle(){var e=this;return(0,l.A)(function*(){const n={first:24,contentFilter:{properties:{key:"slug",value:e.content.properties.slug}},fetchOptions:{downloadedById:e.content.id}};yield e.purpleService.getCatalogContents(n),e.content=yield e.purpleService.getCatalogContent(e.content.id,!1,{includeBundledContent:!0,downloadedById:e.content.id}),(0,u.Ig)(e.content).forEach(function(){var s=(0,l.A)(function*(p,_){yield e.downloadPost(p,_)});return function(p,_){return s.apply(this,arguments)}}())})()}getBundleDeleteParams(){return[{first:1,fetchOptions:{includeBundledContent:!0},contentFilter:{id:{value:this.content.id}}},{first:24,contentFilter:{properties:{key:"slug",value:this.content.properties.slug}}}]}deleteBundleEntriesFromCache(e){var n=this;return(0,l.A)(function*(){const a=n.getBundleDeleteParams();let s=[{cacheName:x.B.PURPLE_CONTENT_CACHE,cacheEntry:n.content.id},{cacheName:x.B.PURPLE_OPTIONAL_CACHE,cacheEntry:n.content.id}];for(const p of a){const _="".concat(e,":").concat(JSON.stringify(p));s.push({cacheName:x.B.PURPLE_API_CACHE,cacheEntry:_})}for(const p of s)yield n.cacheService.handleDeleteOnDownloadedCache(p.cacheName,p.cacheEntry,n.content.id)})()}deleteCache(){var e=this;return(0,l.A)(function*(){const n="getContents";(0,u.mF)(e.content)?yield e.deletePost(n,e.content.id):(0,u.G4)(e.content)&&(yield e.deleteBundle(n))})()}deleteBundle(e){var n=this;return(0,l.A)(function*(){yield n.deleteBundleEntriesFromCache(e);let a=(0,u.Ig)(n.content);for(const s of a)yield n.deletePost(e,s.id)})()}deletePost(e,n){var a=this;return(0,l.A)(function*(){const s={first:1,fetchOptions:(0,u.ci)(a.config,a.purpleEnv),contentFilter:{id:{value:n}}},p=[{cacheName:x.B.PURPLE_API_CACHE,cacheEntry:"".concat(e,":").concat(JSON.stringify(s))},{cacheName:x.B.PURPLE_CONTENT_CACHE,cacheEntry:n},{cacheName:x.B.PURPLE_OPTIONAL_CACHE,cacheEntry:n}];for(const _ of p)yield a.cacheService.handleDeleteOnDownloadedCache(_.cacheName,_.cacheEntry,a.content.id)})()}onClickDelete(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),n.config.deleteConfirm)try{yield n.dialog.confirm({text:"ISSUE_DELETE_MESSAGE",args:[n.content.name]},"ISSUE_DELETE_TITLE","ISSUE_DELETE_CONFIRM","ISSUE_DELETE_CANCEL"),yield n.deleteIssue()}catch{}else yield n.deleteIssue();yield n.deleteCache()})()}onClickCancel(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),!n.deleteLoading)try{n.deleteLoading=!0,delete n.downloadError,n.changeDetectorRef.detectChanges(),n.getDownloadHandler().then(a=>n.handleTrackAction("CANCEL_CLICKED",a)),n.cleanUpService.removeIssue(n.content.id),n.downloadHandler&&(yield n.downloadHandler.delete()),n.deleteLoading=!1,n.changeDetectorRef.detectChanges(),n.delete.emit(n.content)}catch(a){console.log(a),n.deleteLoading=!1,n.changeDetectorRef.detectChanges()}})()}onClickRead(e){var n=this;return(0,l.A)(function*(){n.contextService.closeModal(n.elementRef.nativeElement),n.contextService.closeModalSubject.observers.length>0?n.contextService.closeModalCompleteSubject.pipe((0,P.s)(n.contextService.closeModalSubject.observers.length)).subscribe(()=>{},()=>{},(0,l.A)(function*(){return n.openContent("READ_CLICKED")})):n.openContent("READ_CLICKED")})()}onClickPurchase(e){var n=this;return(0,l.A)(function*(){var a;e.stopPropagation(),n.purchaseLoading=!0,n.changeDetectorRef.detectChanges();const s={...n.purchaseConfig,productId:n.price.productId,price:n.price.price,currency:n.price.currency};n.content.productId!==(null===(a=n.price)||void 0===a?void 0:a.productId)&&(s.consumeOptions={issueIds:[],contentIds:[n.content.id]}),yield n.eventActionService.processPurchaseAction(s,n),n.purchaseLoading=!1,n.changeDetectorRef.detectChanges()})()}onClickPreview(e){var n=this;return(0,l.A)(function*(){n.contextService.closeModal(n.elementRef.nativeElement),n.contextService.closeModalSubject.observers.length>0?n.contextService.closeModalCompleteSubject.pipe((0,P.s)(n.contextService.closeModalSubject.observers.length)).subscribe(()=>{},()=>{},(0,l.A)(function*(){return n.openContent("PREVIEW_CLICKED")})):n.openContent("PREVIEW_CLICKED")})()}onClickSubscribe(e){e.stopPropagation(),this.getDownloadHandler().then(n=>this.handleTrackAction("SUBSCRIBE_CLICKED",n)),this.eventActionService.processEventAction({type:O.H.SUBSCRIPTIONS,params:{content:this.content.id,publication:this.content.publicationId}},this)}onClickLogin(e){e.stopPropagation(),this.getDownloadHandler().then(n=>this.handleTrackAction("LOGIN_CLICKED",n)),this.eventActionService.processEventAction({type:O.H.LOGIN,params:{content:this.content.id,publication:this.content.publicationId}},this)}onClickCoupon(e){e.stopPropagation(),this.getDownloadHandler().then(n=>this.handleTrackAction("COUPON_CLICKED",n)),this.eventActionService.processEventAction({type:O.H.COUPON,params:{content:this.content.id,publication:this.content.publicationId}},this)}getId(){return this.content&&this.content.id}getTrackingBaseKey(e,n){return this.elementId||e&&"".concat(e.getContentType(n))||this.getType()}getTrackingParams(e){const n=(0,b.bJ)(this.content,this.publication,this.price);return{...e&&(0,b.Gw)(e.getContentType())?(0,b.VP)(e.content,e.publication,this.price,"SOURCE_"):{},...n}}handleTrackAction(e,n,a,s){if(!n)return;const p="".concat(this.getTrackingBaseKey(n,s),"_").concat(e);let _=a?(0,b.aM)(a):{};_={..._,...this.getTrackingParams(n)},this.store.dispatch((0,z.k4)({url:this.document.location.href,key:p,params:_}))}onClickCover(e){this.clickContentAction(e,"tapCover","COVER_CLICKED")}onClickContent(e){this.clickContentAction(e,"tapContent","ISSUE_CLICKED")}clickContentAction(e,n,a){var s=this;return(0,l.A)(function*(){s.anchorFeatureEnabled&&e.preventDefault();const p=(0,m.v3)(s.config[n]);if(p){if(e.stopPropagation(),s.coverLoading)return;s.coverLoading=!0,s.changeDetectorRef.detectChanges(),s.getDownloadHandler().then(_=>s.handleTrackAction(a,_)),yield s.eventActionService.processEventAction(p,s),s.coverLoading=!1,s.changeDetectorRef.detectChanges()}})()}isGhost(){return!(this.content&&this.content.id||this.dataSourceError)}onClickState(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),n.installState)return n.installState.downloading?n.onClickCancel(e):n.installState.installState===g.ContentInstallState.COMPLETE?n.onClickDelete(e):n.onClickDownload(e)})()}onClickBookmark(e){var n=this;return(0,l.A)(function*(){if(e.stopPropagation(),!n.bookmarkLoading){if(n.bookmarkLoading=!0,n.bookmark){n.config.bookmark&&"boolean"!=typeof n.config.bookmark&&n.config.bookmark.deleteConfirm&&(yield n.dialog.confirm(n.bookmark.title?{text:"BOOKMARK_DELETE_MESSAGE_WITH_TITLE",args:[n.bookmark.title]}:"BOOKMARK_DELETE_MESSAGE","BOOKMARK_DELETE_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL")),n.getDownloadHandler().then(a=>n.handleTrackAction("BOOKMARK_DELETE_CLICKED",a,n.bookmark));try{yield n.purpleService.deleteBookmark({id:n.bookmark.id}),n.getDownloadHandler().then(a=>n.handleTrackAction("BOOKMARK_DELETED",a,n.bookmark))}catch(a){n.dialog.alert(n.bookmark.title?{text:"ERROR_DELETE_BOOKMARK_WITH_TITLE",args:(0,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(p=>n.handleTrackAction("BOOKMARK_ADD_FAILED",p,n.bookmark)),n.dialog.alert({text:"ERROR_ADD_BOOKMARK",args:n.getErrorDialogArgs(s)},"DIALOG_ERROR")}}n.bookmarkLoading=!1,n.changeDetectorRef.detectChanges()}})()}onClickShare(e){var n=this;return(0,l.A)(function*(){e.stopPropagation(),n.getDownloadHandler().then(s=>n.handleTrackAction("SHARE_CLICKED",s));let a={text:n.content.name,url:n.getSharingUrl()};"object"==typeof n.config.sharing&&(a={...a,...n.config.sharing});try{yield n.purpleService.share(a),n.getDownloadHandler().then(s=>n.handleTrackAction("SHARED",s))}catch{n.getDownloadHandler().then(p=>n.handleTrackAction("SHARE_FAILED",p)),n.dialog.alert("ERROR_SHARE","DIALOG_ERROR")}})()}getSharingUrl(){return"".concat(this.context[g.METADATA_KEY.MANAGER_BASE_URL],"/i/").concat(this.context[g.METADATA_KEY.APP_ID],"/").concat(this.content.id,"?preview=").concat(this.contextService.isPreview())}getStateText(){return this.downloadLoading||this.deleteLoading?" ":this.installState?this.installState.downloading?"ISSUE_ACTION_CANCEL":this.installState.installState===g.ContentInstallState.COMPLETE?"ISSUE_ACTION_DELETE":"ISSUE_ACTION_DOWNLOAD":void 0}getPriceState(){return this.priceLoading?"price-loading":this.priceLoading||this.price?this.price?"price-available":"":"price-unavailable"}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"downloadOptions","customButtons","customMessages"]}getDownloadHandler(){var e=this;return(0,l.A)(function*(){return(0,h.UE)(e.platformId)?((!e.downloadHandler||e.downloadHandler.content.id!==e.content.id)&&(e.downloadHandler&&(yield e.purpleService.destroyDownloadHandler(e.downloadHandler)),e.downloadHandler=yield e.purpleService.getDownloadHandler(e.content,e.dialog)),e.downloadHandler):null})()}isDownloadable(){return this.isDownloadEnabled&&this.installState}isDownloadInProgress(e=!1){return!this.deleteLoading&&!this.downloadLoading&&this.installState&&this.installState.downloading&&!(this.installState.updating&&this.updateBehavior===D.FZ.SILENT)&&(e||"MULTI"===this.downloadOptions.buttonType)}isDownloadCancelable(){return!!this.isDownloadEnabled&&!this.downloadLoading&&this.installState.downloading&&!(this.installState.updating&&this.updateBehavior===D.FZ.SILENT)}isDownloadDeletable(){return!!this.isDownloadEnabled&&!this.downloadLoading&&this.installState.installState!==g.ContentInstallState.NOT_INSTALLED&&(!this.installState.downloading||this.installState.updating&&this.updateBehavior===D.FZ.SILENT)}isDownloadFinished(){return!!this.isDownloadEnabled&&this.downloadOptions&&this.downloadOptions.statusIndicator&&this.installState&&(this.installState.installState===g.ContentInstallState.COMPLETE&&!this.locked||this.installState.updating&&this.updateBehavior===D.FZ.SILENT)}showUpdateBehavior(){if(this.installState)return(0,T.YH)(this.installState,this.content.contentType===g.CatalogContentType.ISSUE)}reload(){window.location.reload()}hasContextChanged(e){var n;return!(null!==(n=this.config)&&void 0!==n&&n.dataSource)&&!w(this.contextContent,this.content)||!w(e[g.METADATA_KEY.ENTITLEMENT_TOKEN],this.context[g.METADATA_KEY.ENTITLEMENT_TOKEN])||super.hasContextChanged(e)}deleteIssue(){var e=this;return(0,l.A)(function*(){if(!e.deleteLoading)try{e.deleteLoading=!0,delete e.downloadError,e.changeDetectorRef.detectChanges(),e.getDownloadHandler().then(n=>e.handleTrackAction("DELETE_CLICKED",n)),e.cleanUpService.removeIssue(e.content.id),e.downloadHandler&&(yield e.downloadHandler.delete()),e.deleteLoading=!1,e.changeDetectorRef.detectChanges(),e.delete.emit(e.content)}catch(n){console.log(n),e.deleteLoading=!1,e.changeDetectorRef.detectChanges()}})()}getProgressType(){const n=(this.config||this.baseConfig).downloadOptions;return n.progressType?n.progressType:this.template===S.qc.COVER?K.s.RADIAL:K.s.BAR}getErrorDialogArgs(e){return(0,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:O.H.OPEN_CONTENT,...n.config.openContent},n),n.openLoading=!1,n.changeDetectorRef.detectChanges()})()}getContextKey(){return this.contextKey}}return(r=i).type="content",r.\u0275fac=function(e){return new(e||r)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(k.B),t.rXU(Z.o),t.rXU(t.zZn),t.rXU(J.G),t.rXU(Q.V),t.rXU(q.I),t.rXU(h.qQ),t.rXU(t.Agw),t.rXU(b.r6),t.rXU(t.pJN),t.rXU(T.Wj),t.rXU(tt.d),t.rXU(nt.X),t.rXU(et.i),t.rXU(ot._))},r.\u0275cmp=t.VBU({type:r,selectors:[["storefront-content"]],hostVars:8,hostBindings:function(e,n){2&e&&(t.BMQ("content-type",n.contentType)("post-type",n.postType),t.AVh("locked",n.locked)("purchasable",n.purchasable)("error",n.hasError))},features:[t.Jv_([k.B]),t.Vt3],decls:2,vars:2,consts:[["noAnchorTemplate",""],["imageTemplate",""],["contentData",""],[4,"ngIf"],[1,"content-image"],[3,"height"],[1,"content-data"],[1,"content-title"],[1,"content-description"],["class","content-error",4,"ngIf"],[1,"content-error"],["storefrontTranslate","CONTENT_ERROR",3,"storefrontTranslateArgs"],["storefrontTranslate","CONTENT_ERROR_BUTTON","mat-ripple","",1,"action-button",3,"click"],[4,"ngIf","ngIfElse"],["class","content-image",3,"href","click",4,"ngIf"],["class","content-data",3,"href","expanded","click",4,"ngIf"],[1,"content-image",3,"click","href"],[4,"ngTemplateOutlet"],[1,"content-data",3,"click","href"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","content-image",3,"click",4,"ngIf"],["class","content-data",3,"expanded","click",4,"ngIf"],[1,"content-image",3,"click"],[1,"content-data",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"lcpPrioritized","src","imageResolutionStrategy","height","extendedThumbnail","label"],["class","content-update-badge",4,"ngIf"],[3,"type","progress",4,"ngIf"],[1,"content-update-badge"],["storefrontTranslate","CONTENT_UPDATE_BADGE_MESSAGE"],[3,"type","progress"],["class","content-publication-title",3,"click",4,"ngIf"],["class","content-title",3,"click",4,"ngIf"],["class","icon icon-check-bg",4,"ngIf"],["class","content-pub-date",4,"ngIf"],["class","content-description","storefrontCheckOverflow","vertical","storefrontCheckOverflowTarget","self",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],["class","content-description-expand-toggle",3,"click",4,"ngIf"],["class","content-properties",4,"ngIf"],["class","content-categories",4,"ngIf"],["class","content-tags",4,"ngIf"],[3,"class","storefrontTranslate","storefrontTranslateArgs",4,"ngFor","ngForOf","ngForTrackBy"],[1,"content-actions"],["class","icon icon-share","mat-ripple","",3,"click",4,"ngIf"],["mat-ripple","",3,"class","click",4,"ngIf"],["class","button-read action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","button-preview action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","content-state",4,"ngIf"],[1,"content-publication-title",3,"click"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"content-title",3,"click"],[1,"icon","icon-check-bg"],[1,"content-pub-date"],["storefrontCheckOverflow","vertical","storefrontCheckOverflowTarget","self",1,"content-description",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"content-description-expand-toggle",3,"click"],[3,"storefrontTranslate"],[1,"icon","icon-arrow-down"],[1,"content-properties"],[3,"class",4,"ngFor","ngForOf","ngForTrackBy"],[1,"content-categories"],["purpleColorize","accent","purpleColorizeProps","background-color",3,"class",4,"ngFor","ngForOf","ngForTrackBy"],["purpleColorize","accent","purpleColorizeProps","background-color"],[1,"content-tags"],["mat-ripple","",1,"icon","icon-share",3,"click"],["mat-ripple","",3,"click"],["mat-ripple","",1,"button-read","action-button",3,"click","disabled"],["storefrontTranslate","CONTENT_ACTION_READ"],["class","button-spinner",4,"ngIf"],[1,"button-spinner"],["mat-ripple","",1,"button-preview","action-button",3,"click","disabled"],["storefrontTranslate","CONTENT_ACTION_PREVIEW"],["class","button-download action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","button-delete action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","button-cancel action-button","mat-ripple","",3,"disabled","click",4,"ngIf"],["mat-ripple","",1,"button-cancel","action-button",3,"click","disabled"],["storefrontTranslate","CONTENT_ACTION_CANCEL"],["mat-ripple","",1,"button-download","action-button",3,"click","disabled"],["storefrontTranslate","ISSUE_ACTION_DOWNLOAD"],["mat-ripple","",1,"button-delete","action-button",3,"click","disabled"],["storefrontTranslate","ISSUE_ACTION_DELETE"],["message","",3,"type","progress",4,"ngIf"],["class","progress-percentage",4,"ngIf"],["message","",3,"type","progress"],[1,"progress-percentage"],["class","button-purchase action-button","mat-ripple","",3,"ngClass","disabled","click",4,"ngIf"],["class","button-subscribe action-button","mat-ripple","","storefrontTranslate","CONTENT_ACTION_SUBSCRIBE",3,"click",4,"ngIf"],["class","button-login action-button","mat-ripple","","storefrontTranslate","CONTENT_ACTION_LOGIN",3,"click",4,"ngIf"],["class","button-coupon action-button","mat-ripple","","storefrontTranslate","CONTENT_ACTION_COUPON",3,"click",4,"ngIf"],["mat-ripple","",1,"button-purchase","action-button",3,"click","ngClass","disabled"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_LOADING",4,"ngIf"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_UNAVAILABLE",4,"ngIf"],["storefrontTranslate","CONTENT_ACTION_PURCHASE",3,"storefrontTranslateArgs",4,"ngIf"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_LOADING"],["storefrontTranslate","CONTENT_ACTION_PURCHASE_UNAVAILABLE"],["storefrontTranslate","CONTENT_ACTION_PURCHASE",3,"storefrontTranslateArgs"],["mat-ripple","","storefrontTranslate","CONTENT_ACTION_SUBSCRIBE",1,"button-subscribe","action-button",3,"click"],["mat-ripple","","storefrontTranslate","CONTENT_ACTION_LOGIN",1,"button-login","action-button",3,"click"],["mat-ripple","","storefrontTranslate","CONTENT_ACTION_COUPON",1,"button-coupon","action-button",3,"click"],[1,"button-custom",3,"baseConfig","disableAnchor","baseContext"],[1,"content-state"],[3,"progress","type","showBorder",4,"ngIf"],["class","icon icon-download-circle","mat-ripple","",3,"disabled","click",4,"ngIf"],["class","icon icon-delete","mat-ripple","",3,"disabled","click",4,"ngIf"],[3,"progress","type","showBorder"],["mat-ripple","",1,"icon","icon-download-circle",3,"click","disabled"],["mat-ripple","",1,"icon","icon-delete",3,"click","disabled"]],template:function(e,n){1&e&&t.DNE(0,ut,7,2,"ng-container",3)(1,Dn,9,4,"ng-container",3),2&e&&(t.Y8G("ngIf",!n.content||n.dataSourceError),t.R7$(),t.Y8G("ngIf",n.content&&n.config&&!n.dataSourceError))},dependencies:[h.YU,h.Sq,h.bT,h.T3,K.X,rt.G,at.M,it.t,ct.r6,st.Q,U.h,h.Jj,lt.w,_t.Z],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-content{display:flex;flex-direction:column;position:relative}storefront-content .content-image{position:relative;overflow:hidden}storefront-content .content-image storefront-spinner{position:absolute;top:0;height:100%;width:100%;background-color:#0000001a}storefront-content .content-image .content-update-badge{--paddingVert: .25em;--fontSize: .8em;--width: 200%;--offset: calc(var(--fontSize) * 3);position:absolute;top:calc(var(--fontSize) + var(--paddingVert));left:calc(var(--width) / -2 + var(--offset));display:flex;justify-content:center;width:var(--width);padding:var(--paddingVert) 0;background:var(--contentUpdateBadgeBgColor);transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}@media (max-width: 767px) and (orientation: portrait){storefront-content .content-image .content-update-badge{--fontSize: .6em}}@media (max-width: 330px) and (orientation: portrait){storefront-content .content-image .content-update-badge{--fontSize: .6em}}storefront-content .content-image .content-update-badge span{max-width:80px;text-align:center;font-size:var(--fontSize);color:var(--contentUpdateBadgeColor);-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;text-overflow:ellipsis;overflow:hidden}@media (max-width: 767px) and (orientation: portrait){storefront-content .content-image .content-update-badge span{max-width:60px}}@media (max-width: 330px) and (orientation: portrait){storefront-content .content-image .content-update-badge span{max-width:60px}}storefront-content storefront-progress[type=BAR]{display:none;position:absolute;background-color:var(--contentProgressBgColor);border-radius:var(--borderRadius);overflow:hidden;text-align:center;padding:var(--contentProgressPaddingVert) var(--contentProgressPaddingHoriz);z-index:0;bottom:0;left:0;right:0;top:0}storefront-content .content-image storefront-progress[type=BAR]{top:auto;bottom:var(--contentProgressMarginVert);left:var(--contentProgressMarginHoriz);right:var(--contentProgressMarginHoriz)}storefront-content .content-data{display:flex;flex-direction:column;overflow:hidden;flex-grow:1}storefront-content .content-data .content-description-expand-toggle{display:none}storefront-content .content-data .content-description-expand-toggle i{display:inline-block;transition:transform .3s ease;font-size:12px;padding:0 4px}storefront-content .content-title{margin:.5em 0}storefront-content .content-description{color:var(--secondaryTextColor);width:100%;white-space:pre-wrap}storefront-content .content-custom-message{color:var(--textColor)}storefront-content storefront-image{width:100%}storefront-content .content-actions{display:none;justify-content:space-between;z-index:1}storefront-content .content-actions button{color:#fff;background-color:var(--secondaryColor);padding:0}storefront-content .content-actions button.button-purchase,storefront-content .content-actions button.button-subscribe,storefront-content .content-actions button.button-download,storefront-content .content-actions button.button-read{background-color:var(--primaryColor)}storefront-content .content-actions button.button-state-downloading.button-state-INCOMPLETE .progress-percentage{display:none}storefront-content .content-actions button[disabled]{opacity:.5}storefront-content .content-actions button span{position:relative;z-index:1}storefront-content .content-actions button.icon{color:var(--primaryColor);background-color:transparent;width:1.4em;height:1.4em;font-size:1.4em}storefront-content .content-state{display:none}storefront-content .content-error .action-button{background-color:var(--secondaryColor);color:#fff;display:block}storefront-content[template=cover] .content-image{width:100%}storefront-content[template=cover] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=cover] .content-data{flex-direction:row;align-items:center}storefront-content[template=cover] .content-data>i,storefront-content[template=cover] .content-data .content-state i,storefront-content[template=cover] .content-data .content-state button,storefront-content[template=cover] .content-data .content-state storefront-progress,storefront-content[template=cover] .content-data .content-state storefront-spinner{font-size:21px;height:22px;width:22px;color:var(--secondaryColor)}storefront-content[template=cover] .content-data>i.icon-delete,storefront-content[template=cover] .content-data .content-state i.icon-delete,storefront-content[template=cover] .content-data .content-state button.icon-delete,storefront-content[template=cover] .content-data .content-state storefront-progress.icon-delete,storefront-content[template=cover] .content-data .content-state storefront-spinner.icon-delete{width:42px;height:42px;position:absolute;top:-20px;right:-20px;border-radius:100%;font-size:10px;color:#fff;padding:10px}storefront-content[template=cover] .content-data>i.icon-delete:after,storefront-content[template=cover] .content-data .content-state i.icon-delete:after,storefront-content[template=cover] .content-data .content-state button.icon-delete:after,storefront-content[template=cover] .content-data .content-state storefront-progress.icon-delete:after,storefront-content[template=cover] .content-data .content-state storefront-spinner.icon-delete:after{background-color:var(--secondaryColor);width:22px;height:22px;border-radius:100%;display:flex;justify-content:center;align-items:center}storefront-content[template=cover] .content-state{display:flex;right:0;bottom:0}storefront-content[template=cover] .content-state storefront-spinner{position:relative;z-index:1;--spinnerColor: var(--secondaryColor);background-color:transparent;padding:0}storefront-content[template=cover] .content-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}storefront-content[template=cover] .content-publication-title,storefront-content[template=cover] .content-description,storefront-content[template=cover] .content-categories,storefront-content[template=cover] .content-tags,storefront-content[template=cover] .content-pub-date,storefront-content[template=cover] .content-properties,storefront-content[template=cover] .content-custom-message{display:none}storefront-content[template=cover] .content-publication-title .content-tag,storefront-content[template=cover] .content-publication-title .content-category,storefront-content[template=cover] .content-description .content-tag,storefront-content[template=cover] .content-description .content-category,storefront-content[template=cover] .content-categories .content-tag,storefront-content[template=cover] .content-categories .content-category,storefront-content[template=cover] .content-tags .content-tag,storefront-content[template=cover] .content-tags .content-category,storefront-content[template=cover] .content-pub-date .content-tag,storefront-content[template=cover] .content-pub-date .content-category,storefront-content[template=cover] .content-properties .content-tag,storefront-content[template=cover] .content-properties .content-category,storefront-content[template=cover] .content-custom-message .content-tag,storefront-content[template=cover] .content-custom-message .content-category{display:none}storefront-content[template=card]{border-radius:4px;box-shadow:0 0 5px 2px #0000001a;padding-bottom:var(--gutter);overflow:hidden;background-color:#fff}storefront-content[template=card] storefront-image[height-strategy=FIXED]{padding-top:75%}storefront-content[template=card] storefront-image[height-strategy=FIXED]>img{object-fit:cover;width:100%}storefront-content[template=card] .content-title,storefront-content[template=card] .content-pub-date,storefront-content[template=card] .content-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-left:calc(var(--gutter) / 2);margin-right:calc(var(--gutter) / 2);width:initial}storefront-content[template=card] .content-publication-title,storefront-content[template=card] .content-categories,storefront-content[template=card] .content-tags,storefront-content[template=card] .content-properties,storefront-content[template=card] .content-custom-message{display:none}storefront-content[template=card] .content-publication-title .content-tag,storefront-content[template=card] .content-publication-title .content-category,storefront-content[template=card] .content-categories .content-tag,storefront-content[template=card] .content-categories .content-category,storefront-content[template=card] .content-tags .content-tag,storefront-content[template=card] .content-tags .content-category,storefront-content[template=card] .content-properties .content-tag,storefront-content[template=card] .content-properties .content-category,storefront-content[template=card] .content-custom-message .content-tag,storefront-content[template=card] .content-custom-message .content-category{display:none}storefront-content[template=highlight]{flex-direction:row;padding:calc(var(--gutter) / 2);width:100%}storefront-content[template=highlight] .content-image{width:calc(43% - var(--gutter) / 2);margin-right:var(--gutter);flex-shrink:0;align-self:flex-end}storefront-content[template=highlight] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}@media (max-width: 533px) and (orientation: portrait),(max-height: 533px) and (orientation: landscape){storefront-content[template=highlight] .content-image{width:calc(50% - (var(--gutter)))}}storefront-content[template=highlight] storefront-progress[type=BAR]{display:block}storefront-content[template=highlight] .content-data{margin-left:var(--gutter)}storefront-content[template=highlight] .content-title{font-size:2em;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}storefront-content[template=highlight] .content-publication-title,storefront-content[template=highlight] .content-pub-date,storefront-content[template=highlight] .content-properties,storefront-content[template=highlight] .content-categories,storefront-content[template=highlight] .content-tags{display:none}storefront-content[template=highlight] .content-publication-title .content-tag,storefront-content[template=highlight] .content-publication-title .content-category,storefront-content[template=highlight] .content-pub-date .content-tag,storefront-content[template=highlight] .content-pub-date .content-category,storefront-content[template=highlight] .content-properties .content-tag,storefront-content[template=highlight] .content-properties .content-category,storefront-content[template=highlight] .content-categories .content-tag,storefront-content[template=highlight] .content-categories .content-category,storefront-content[template=highlight] .content-tags .content-tag,storefront-content[template=highlight] .content-tags .content-category{display:none}storefront-content[template=highlight] .content-custom-message{margin:var(--gutter) 0}storefront-content[template=highlight] .content-actions{display:flex;flex-direction:column;flex-grow:1;justify-content:flex-end}storefront-content[template=highlight] .content-actions storefront-button button{width:100%}storefront-content[template=details] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=details] .content-data{align-items:center}storefront-content[template=details] .content-data.expanded .content-description{-webkit-line-clamp:unset}storefront-content[template=details] .content-data.expanded .content-description-expand-toggle{display:block}storefront-content[template=details] .content-data.expanded .content-description-expand-toggle i{transform:rotate(180deg)}storefront-content[template=details] .content-data .content-publication-title,storefront-content[template=details] .content-data .content-properties,storefront-content[template=details] .content-data .content-categories,storefront-content[template=details] .content-data .content-tags{display:none}storefront-content[template=details] .content-data .content-publication-title .content-tag,storefront-content[template=details] .content-data .content-publication-title .content-category,storefront-content[template=details] .content-data .content-publication-title .content-property,storefront-content[template=details] .content-data .content-properties .content-tag,storefront-content[template=details] .content-data .content-properties .content-category,storefront-content[template=details] .content-data .content-properties .content-property,storefront-content[template=details] .content-data .content-categories .content-tag,storefront-content[template=details] .content-data .content-categories .content-category,storefront-content[template=details] .content-data .content-categories .content-property,storefront-content[template=details] .content-data .content-tags .content-tag,storefront-content[template=details] .content-data .content-tags .content-category,storefront-content[template=details] .content-data .content-tags .content-property{display:none}storefront-content[template=details] storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=details] storefront-progress[type=BAR]{display:block}storefront-content[template=details] .content-pub-date{display:none}storefront-content[template=details] .content-description{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;text-overflow:ellipsis;overflow:hidden}storefront-content[template=details] .content-description.scrollable-vert+.content-description-expand-toggle{display:flex}storefront-content[template=details] .content-description-expand-toggle{align-self:flex-start}storefront-content[template=details] .content-custom-message{margin-top:var(--gutter)}storefront-content[template=details] .content-actions{display:grid;width:100%;grid-template-columns:1fr 1fr;grid-column-gap:var(--gutter);margin-top:var(--gutter)}storefront-content[template=details] .content-actions>button:nth-child(odd):last-child,storefront-content[template=details] .content-actions>storefront-button:nth-child(odd):last-child{grid-column:1/3}storefront-content[template=details] .content-actions storefront-button button{width:100%}storefront-content[template=group]{flex-direction:row}storefront-content[template=group] .content-image{width:100%}storefront-content[template=group] .content-image storefront-image[height-strategy=FIXED]{padding-top:133%}storefront-content[template=group] .content-data{flex-direction:column}storefront-content[template=group] .content-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}storefront-content[template=group] .content-actions{display:flex;justify-content:flex-start}storefront-content[template=group] .content-actions>button{display:none}storefront-content[template=group] i,storefront-content[template=group] .content-publication-title,storefront-content[template=group] .content-pub-date,storefront-content[template=group] .content-description,storefront-content[template=group] .content-description-expand-toggle,storefront-content[template=group] .content-properties,storefront-content[template=group] .content-categories,storefront-content[template=group] .content-tags,storefront-content[template=group] .content-state,storefront-content[template=group] .content-update-badge{display:none}storefront-content[template=group] i .content-tag,storefront-content[template=group] i .content-category,storefront-content[template=group] .content-publication-title .content-tag,storefront-content[template=group] .content-publication-title .content-category,storefront-content[template=group] .content-pub-date .content-tag,storefront-content[template=group] .content-pub-date .content-category,storefront-content[template=group] .content-description .content-tag,storefront-content[template=group] .content-description .content-category,storefront-content[template=group] .content-description-expand-toggle .content-tag,storefront-content[template=group] .content-description-expand-toggle .content-category,storefront-content[template=group] .content-properties .content-tag,storefront-content[template=group] .content-properties .content-category,storefront-content[template=group] .content-categories .content-tag,storefront-content[template=group] .content-categories .content-category,storefront-content[template=group] .content-tags .content-tag,storefront-content[template=group] .content-tags .content-category,storefront-content[template=group] .content-state .content-tag,storefront-content[template=group] .content-state .content-category,storefront-content[template=group] .content-update-badge .content-tag,storefront-content[template=group] .content-update-badge .content-category{display:none}storefront-content.locked .content-actions button.icon-share{display:none}storefront-content.ghost{pointer-events:none}storefront-content.ghost .content-image{animation:ghost-opacity 2s infinite linear;background-color:var(--ghostColor);margin-bottom:var(--gutter)}storefront-content.ghost .content-image storefront-image{background-color:transparent}storefront-content.ghost[template=highlight]>.content-image{margin-bottom:0}storefront-content.ghost[template=highlight]>.content-image>storefront-image{margin-bottom:0}storefront-content.ghost[template=highlight] .content-description,storefront-content.ghost[template=highlight] .content-title{width:100%;margin-bottom:0}storefront-content.ghost[template=cover] storefront-image{padding-top:133%}storefront-content.ghost[template=card] storefront-image{padding-top:75%}storefront-content.ghost .content-description,storefront-content.ghost .content-title{background-color:var(--ghostColor);color:transparent;border-radius:4px;width:90%;height:1.2em;margin-bottom:calc(var(--gutter) / 2)!important;background-image:linear-gradient(90deg,var(--ghostColor) 0px,rgb(236,236,236) 40px,var(--ghostColor) 80px);background-size:80vw;animation:ghost-lines 2s infinite linear}storefront-content.ghost .content-description{height:3em}storefront-content.error .content-data{display:none}storefront-content.error[template=cover] .content-error,storefront-content.error[template=card] .content-error,storefront-content.error[template=details] .content-error{margin-top:var(--gutter)}\n'],encapsulation:2}),i})()},2085:($,I,c)=>{c.d(I,{o9:()=>y,qc:()=>g});var l=c(4404),g=function(f){return f.COVER="cover",f.CARD="card",f.HIGHLIGHT="highlight",f.DETAILS="details",f.GROUP="group",f}(g||{});const y={template:g.CARD,openContent:{mode:l.DisplayMode.MODAL,titleBar:!0},downloadOptions:null,customButtons:[],customMessages:[],titleMessage:"CONTENT_TITLE",descriptionMessage:"CONTENT_DESCRIPTION",publicationTitleMessage:"CONTENT_PUBLICATION_TITLE"}},8399:($,I,c)=>{c.r(I),c.d(I,{ContentModule:()=>T,component:()=>O});var l=c(177),h=c(7808),t=c(6600),g=c(4767),y=c(6953),f=c(1605),M=c(8301),C=c(6483),N=c(9805),P=c(4403),B=c(3363),G=c(6215),m=c(3953);let T=(()=>{var v;class k{}return(v=k).\u0275fac=function(b){return new(b||v)},v.\u0275mod=m.$C({type:v}),v.\u0275inj=m.G2t({imports:[l.MD,B.E,M.d,C.h,G.O,f.P,g.d,t.pZ,y.n,N.ButtonModule,P.U]}),k})();const O=h.B}}]);