@pronto-tools-and-more/files 6.11.0 → 6.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,8 +4,8 @@
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="3071b1a">
8
- <meta name="storefront-version" content="3.7.1">
7
+ <meta name="storefront-commit" content="b1a5cfa">
8
+ <meta name="storefront-version" content="3.7.2">
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:()=>P});var f=t(9758),r=t(8179),h=t(362),i=t(4452),C=t(3713),v=t(3953);let P=(()=>{var T;class _ extends C.r{getDataFromContext(m=this.context){return this.getSelectionScope()===f.x.USER_ATTRIBUTE?m.userAttributes[this.getParam()]:m[this.getParam()]}hasContextChanged(m){let l=super.hasContextChanged(m);if(!l&&this.isSelectionEnabled()){const a=this.getDataFromContext(),p=this.getDataFromContext(m);l=!h(a,p)}return l}ngOnDestroy(){super.ngOnDestroy(),this.dataSource&&this.contextService.unregisterDataSource(this.dataSource)}stripChildConfigs(m){return m.content&&(m.content={}),m}getEntryConfig(m){return m&&m.ad||{...this.baseConfig.content}}getEntryContext(m){var l;let a=(0,r.uQ)(null!==(l=this.getConfig().dataSource.entryId)&&void 0!==l?l:this.getDataType(),this.context,this.contextService.$functions,this.globalService.getGlobalData());return{...this.baseContext,[a]:m}}getConfig(){return this.config||this.baseConfig}isSelectionEnabled(){return!1}getDataType(){return this.getConfig().dataSource.type}getGroupDataType(m){return m.dataSource.type}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),...(0,i.Kj)(this.baseConfig)].filter(m=>!!m)}}return(T=_).\u0275fac=(()=>{let M;return function(l){return(M||(M=v.xGo(T)))(l||T)}})(),T.\u0275dir=v.FsC({type:T,features:[v.Vt3]}),_})()},1803:(U,O,t)=>{t.d(O,{TS:()=>f,We:()=>h});var f=function(s){return s.VERTICAL="vertical",s.HORIZONTAL="horizontal",s.GRID="grid",s.GROUP="group",s.TABS="tabs",s}(f||{}),h=function(s){return s.BLANK="_blank",s.SELF="_self",s}(h||{})},3303:(U,O,t)=>{t.d(O,{y:()=>s});var f=t(177),r=t(9149),h=t(3953);let s=(()=>{var i;class C{}return(i=C).\u0275fac=function(P){return new(P||i)},i.\u0275mod=h.$C({type:i}),i.\u0275inj=h.G2t({imports:[f.MD,r.ContentTitleModule]}),C})()},5848:(U,O,t)=>{t.d(O,{Q:()=>T});var f=t(467),r=t(177),h=t(1210),s=t(5706),i=t(3953),C=t(9516),v=t(8471),P=t(1652);let T=(()=>{var _;class M extends h.${get contextKey(){var l,a,p;return null!==(l=null!==(a=null===(p=this.config)||void 0===p?void 0:p.contextKey)&&void 0!==a?a:this.defaultConfig.contextKey)&&void 0!==l?l:"content"}constructor(l,a,p,o,u,D){super(a,l,p,o,D),this.elementRef=l,this.injector=a,this.contextService=p,this.document=o,this.purpleService=u,this.globalService=D}getOptionalData(l,a,p){var o=this;return(0,f.A)(function*(){if((0,s.mF)(o.catalogContent))return o.catalogContent=yield o.purpleService.completePost(o.catalogContent,l,a),o.catalogContent[a];if((0,s.G4)(o.catalogContent))return o.bundleContent[p]=yield o.purpleService.completePost(o.getBundle(o.catalogContent)[p],l,a),o.bundleContent[p][a];throw new Error("No post but tried to load ".concat(a))})()}hasContentChanged(l,a){return(null==l?void 0:l.id)!==(null==a?void 0:a.id)||this.hasVersionChanged(l,a)}hasVersionChanged(l,a){return(null==l?void 0:l.version)!==(null==a?void 0:a.version)}onConfigChanges(){var l;let a=null===(l=this.context)||void 0===l?void 0:l[this.contextKey];Array.isArray(a)&&(a=a[0]);const p=this.hasContentChanged(this.catalogContent,a)&&!!a;return p&&(this.catalogContent=a),p}isGhost(){var l;return!this.config||!(null!==(l=this.context)&&void 0!==l&&l[this.contextKey])}getBundle(l){return this.bundleContent||(this.bundleContent=l.contents.map(a=>{var p;return null!==(p=a.post)&&void 0!==p?p:a.content})),this.bundleContent}ngOnDestroy(){super.ngOnDestroy()}getContextKey(){return this.contextKey}}return(_=M).\u0275fac=function(l){return new(l||_)(i.rXU(i.aKT),i.rXU(i.zZn),i.rXU(C.V),i.rXU(r.qQ),i.rXU(v.Wj),i.rXU(P.d))},_.\u0275dir=i.FsC({type:_,features:[i.Vt3]}),M})()},9149:(U,O,t)=>{t.r(O),t.d(O,{ContentTitleModule:()=>a,component:()=>p});var f=t(177);const r={titleMessage:"%s"};var h=t(5848),s=t(3953),i=t(9516),C=t(8471),v=t(1652),P=t(8909);const T=o=>[o];function _(o,u){1&o&&(s.qex(0),s.j41(1,"h1"),s.EFF(2,"..."),s.k0s(),s.bVm())}function M(o,u){if(1&o&&s.nrm(0,"h1",2),2&o){const D=s.XpG();s.Y8G("storefrontTranslate",D.config.titleMessage)("storefrontTranslateArgs",s.eq3(2,T,D.catalogContent.name))}}let m=(()=>{var o;class u extends h.Q{constructor(e,n,g,d,c,E){super(e,g,n,d,c,E),this.elementRef=e,this.contextService=n,this.injector=g,this.document=d,this.purpleService=c,this.globalService=E,this.type="content-title",this.defaultConfig=r}}return(o=u).\u0275fac=function(e){return new(e||o)(s.rXU(s.aKT),s.rXU(i.V),s.rXU(s.zZn),s.rXU(f.qQ),s.rXU(C.Wj),s.rXU(v.d))},o.\u0275cmp=s.VBU({type:o,selectors:[["storefront-content-title"]],features:[s.Vt3],decls:2,vars:2,consts:[[4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(e,n){1&e&&s.DNE(0,_,3,0,"ng-container",0)(1,M,1,4,"h1",1),2&e&&(s.Y8G("ngIf",n.ghost),s.R7$(),s.Y8G("ngIf",!n.ghost))},dependencies:[f.bT,P.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 a=(()=>{var o;class u{}return(o=u).\u0275fac=function(e){return new(e||o)},o.\u0275mod=s.$C({type:o}),o.\u0275inj=s.G2t({imports:[f.MD,l.h]}),u})();const p=m},2285:(U,O,t)=>{t.d(O,{b:()=>p});var f=t(467),r=t(177),h=t(3953),s=t(1210),i=t(8251),C=t(610),v=t(1803);const P={tag:"div",content:"",attributes:{}};var T=t(8179),_=t(9516),M=t(6067),m=t(8004),l=t(1652),a=t(5820);let p=(()=>{var o;class u extends s.${constructor(e,n,g,d,c,E,y,S,A,B,L,R){super(d,e,n,S,L),this.elementRef=e,this.contextService=n,this.renderer=g,this.injector=d,this.translate=c,this.eventActionService=E,this.store=y,this.document=S,this.platformId=A,this.changeDetectorRef=B,this.globalService=L,this.anchorService=R,this.anchorFeatureEnabled=!1,this.anchorPath=null,this.defaultConfig={...P}}ngOnInit(){var e=()=>super.ngOnInit,n=this;return(0,f.A)(function*(){n.anchorFeatureEnabled=n.anchorService.isAnchorFeatureEnabled(),e().call(n),n.elementRef.nativeElement.innerHTML="";const g=n.renderer.createElement(n.baseConfig.tag);n.renderer.appendChild(n.elementRef.nativeElement,g)})()}onConfigChanges(){var e=this;return(0,f.A)(function*(){var n,g;const d=e.renderer.createElement(e.config.tag),c={...e.config.attributes};null!==(n=e.config.attributes)&&void 0!==n&&n.src&&(c.src=e.contextService.toResourceUrl(e.config.attributes.src)),null!==(g=e.config.attributes)&&void 0!==g&&g.href&&(c.href=e.contextService.toResourceUrl(e.config.attributes.href)),"iframe"===e.config.tag&&d.addEventListener("load",y=>{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==c?void 0:c.src).origin&&(S.data.height&&(d.style.height=S.data.height+"px"),S.data.width&&(d.style.width=S.data.width+"px"))})}),Object.keys(c).forEach(y=>d.setAttribute(y,e.config.attributes[y])),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 E=d;e.anchorFeatureEnabled&&(E=e.handleAnchorTags(d)),E.addEventListener("click",y=>e.onClick(y)),e.renderer.appendChild(e.elementRef.nativeElement,E),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===v.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,g;return"a"===(null===(n=e.target)||void 0===n?void 0:n.tagName.toLowerCase())?e.target:"a"===(null===(g=e.target)||void 0===g||null===(g=g.parentElement)||void 0===g?void 0:g.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,C.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,C.k4)({url:window.location.href,key:e,params:n}))}}return(o=u).type="html",o.\u0275fac=function(e){return new(e||o)(h.rXU(h.aKT),h.rXU(_.V),h.rXU(h.sFG),h.rXU(h.zZn),h.rXU(M.D),h.rXU(m.G),h.rXU(i.B),h.rXU(r.qQ),h.rXU(h.Agw),h.rXU(h.gRc),h.rXU(l.d),h.rXU(a.X))},o.\u0275cmp=h.VBU({type:o,selectors:[["storefront-html"]],features:[h.Jv_([i.B]),h.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:()=>s,component:()=>i});var f=t(177),r=t(2285),h=t(3953);let s=(()=>{var C;class v{}return(C=v).\u0275fac=function(T){return new(T||C)},C.\u0275mod=h.$C({type:C}),C.\u0275inj=h.G2t({imports:[f.MD]}),v})();const i=r.b},6218:(U,O,t)=>{t.r(O),t.d(O,{SectionModule:()=>D,component:()=>e});var f=t(177),r=t(3953);const h={content:null};var s=t(1210),i=t(8179),C=t(7879),v=t(1184),P=t(9516),T=t(1652),_=t(4748),M=t(3648);const m=["viewTemplate"],l=["viewChildren"];function a(n,g){if(1&n&&r.nrm(0,"storefront-element",3,0),2&n){const d=g.$implicit,c=r.XpG(2);r.Y8G("baseContext",c.baseContext)("baseConfig",d)("lazy",c.isLazy)}}function p(n,g){if(1&n&&(r.qex(0),r.DNE(1,a,2,3,"storefront-element",2),r.bVm()),2&n){const d=r.XpG();r.R7$(),r.Y8G("ngForOf",d.children)("ngForTrackBy",d.trackByChildren)}}let o=(()=>{var n;class g extends s.${constructor(c,E,y,S,A,B,L,R,I){super(E,c,y,A,B),this.elementRef=c,this.injector=E,this.contextService=y,this.changeDetectorRef=S,this.document=A,this.globalService=B,this.ssrService=L,this.platformId=R,this.purpleEnv=I,this.defaultConfig={...h},this.changeDetectorRef=S}ngOnInit(){this.baseContext.isGhost||super.ngOnInit()}onConfigChanges(){if(super.onConfigChanges(),this.isLazy=!(!window.isUniversal||!this.ssrService.currentPrebootStatus),this.baseConfig.content){this.children=[];for(let c=0;c<this.baseConfig.content.length;c++)(this.purpleEnv.isUniversal||(0,i.Ol)(this.config.content[c]))&&this.children.push(this.baseConfig.content[c]);this.changeDetectorRef.detectChanges(),this.childComponents.forEach((c,E)=>{!this.purpleEnv.isUniversal||(0,i.Ol)(this.config.content[E])?c.lazyLoad():this.purpleEnv.isUniversal&&(0,f.UE)(this.platformId)&&(null==c||c.loadAndClear())}),this.changeDetectorRef.markForCheck()}}stripChildConfigs(c){return c.content&&Array.isArray(c.content)&&(c.content=c.content.map(({_uuid:E,condition:y})=>({_uuid:E,condition:y}))),c}rebuildContextKeys(){super.rebuildContextKeys(),this.baseConfig.content.forEach(c=>{"condition"in c&&(0,v.Fl)(c.condition,this.contextKeys)})}trackByChildren(c,E){if("string"==typeof E||"number"==typeof E)return E;const y=E.id||E._uuid;if(!y)throw console.error(E),"Element should have _uuid from config loader!";return y}}return(n=g).type="section",n.\u0275fac=function(c){return new(c||n)(r.rXU(r.aKT),r.rXU(r.zZn),r.rXU(P.V),r.rXU(r.gRc),r.rXU(f.qQ),r.rXU(T.d),r.rXU(_.i),r.rXU(r.Agw),r.rXU(C.r6))},n.\u0275cmp=r.VBU({type:n,selectors:[["storefront-section"]],viewQuery:function(c,E){if(1&c&&(r.GBs(m,7,r.c1b),r.GBs(l,5)),2&c){let y;r.mGM(y=r.lsd())&&(E.viewTemplate=y.first),r.mGM(y=r.lsd())&&(E.childComponents=y)}},features:[r.Vt3],decls:1,vars:1,consts:[["viewChildren",""],[4,"ngIf"],[3,"baseContext","baseConfig","lazy",4,"ngFor","ngForOf","ngForTrackBy"],[3,"baseContext","baseConfig","lazy"]],template:function(c,E){1&c&&r.DNE(0,p,2,2,"ng-container",1),2&c&&r.Y8G("ngIf",E.children)},dependencies:[f.Sq,f.bT,M._],styles:["storefront-section{display:flex;justify-content:space-between;padding:var(--sectionPadding);flex-direction:column}\n"],encapsulation:2,changeDetection:0}),g})();var u=t(6895);let D=(()=>{var n;class g{}return(n=g).\u0275fac=function(c){return new(c||n)},n.\u0275mod=r.$C({type:n}),n.\u0275inj=r.G2t({imports:[f.MD,u.r]}),g})();const e=o},1802:(U,O,t)=>{t.d(O,{c:()=>_});var f=t(1210),r=t(9758),h=t(8075),s=t(177),i=t(3953),C=t(9516),v=t(4559),P=t(1652),T=t(8909);let _=(()=>{var M;class m extends f.${constructor(a,p,o,u,D,e){super(o,a,p,D,e),this.elementRef=a,this.contextService=p,this.injector=o,this.router=u,this.document=D,this.globalService=e,this.type="switch",this.defaultConfig={}}ngOnInit(){this.config={...this.baseConfig},this.checked=this.config.initialValue,super.ngOnInit(),this.contextService.viewContext$.subscribe(a=>{const p=this.config.paramScope===r.x.USER_ATTRIBUTE?a.userAttributes[this.config.param]:a[this.config.param];p&&(this.checked="true"===p)})}isChecked(){return this.checked}toggle(){this.setChecked(!this.checked)}setChecked(a){this.config.paramScope===r.x.USER_ATTRIBUTE?this.contextService.setUserAttribute(this.config.param,"".concat(a)):(0,h.CV)(this.router,{[this.config.param]:a})}}return(M=m).\u0275fac=function(a){return new(a||M)(i.rXU(i.aKT),i.rXU(C.V),i.rXU(i.zZn),i.rXU(v.Ix),i.rXU(s.qQ),i.rXU(P.d))},M.\u0275cmp=i.VBU({type:M,selectors:[["storefront-switch"]],hostVars:2,hostBindings:function(a,p){2&a&&i.AVh("checked",p.checked)},features:[i.Vt3],decls:4,vars:2,consts:[[1,"label",3,"storefrontTranslate"],[1,"switch"],["type","checkbox",3,"change","checked"]],template:function(a,p){1&a&&(i.nrm(0,"label",0),i.j41(1,"label",1)(2,"input",2),i.bIt("change",function(){return p.toggle()}),i.k0s(),i.nrm(3,"span"),i.k0s()),2&a&&(i.Y8G("storefrontTranslate",p.config.label),i.R7$(2),i.Y8G("checked",p.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}),m})()},9645:(U,O,t)=>{t.r(O),t.d(O,{SwitchModule:()=>i,component:()=>C});var f=t(177),r=t(1802),h=t(6483),s=t(3953);let i=(()=>{var v;class P{}return(v=P).\u0275fac=function(_){return new(_||v)},v.\u0275mod=s.$C({type:v}),v.\u0275inj=s.G2t({imports:[f.MD,h.h]}),P})();const C=r.c},2364:(U,O,t)=>{t.d(O,{S:()=>i});var f=t(4412),r=t(3953),h=t(1626),s=t(9118);let i=(()=>{var C;class v{constructor(T,_){this.http=T,this.kioskConfigService=_,this.initialization=new f.t(null),this.data=[{identifier:"phone",minScreenWidth:null},{identifier:"tablet_small",minScreenWidth:533},{identifier:"tablet_large",minScreenWidth:720}]}init(){}getDeviceClass(){const _=this.data.reduce((M,m)=>window.innerWidth>=m.minScreenWidth?m:M,null);return _&&_.identifier}}return(C=v).\u0275fac=function(T){return new(T||C)(r.KVO(h.Qq),r.KVO(s.x))},C.\u0275prov=r.jDH({token:C,factory:C.\u0275fac,providedIn:"root"}),v})()},354:(U,O,t)=>{t.d(O,{s:()=>m});var f=t(467),r=t(8471),h=t(1413),s=t(4412),i=t(3953),C=t(496),v=t(1626),P=t(9118),T=t(3072),_=t(2364),M=t(9516);let m=(()=>{var l;class a{constructor(o,u,D,e,n,g,d){this.publicationService=o,this.http=u,this.purpleService=D,this.kioskConfigService=e,this.sessionService=n,this.deviceClassService=g,this.contextService=d,this.data=[],this.initPdf=new h.B,this.presenterLoaded=new s.t(!1),this.subscriptions=[]}init(o){var u=this;return(0,f.A)(function*(){u.kioskConfigData=yield u.kioskConfigService.getConfig().toPromise(),u.content=yield u.publicationService.selectByContentCriteria(o);let D=yield u.getLink(u.content,"pdf_single_page_download");yield u.getSinglePageDownloadLinkFromJSON(D);let e=yield u.getLink(u.content,"pdf_download");u.initPdf.next(e)})()}getLink(o,u){var D=this;return(0,f.A)(function*(){const e=yield(0,r.GA)(o,D.purpleService);if(o&&o.properties&&!e){let n=Object.keys(o.properties);for(let g=0;g<n.length;g++)if(n[g]===u)return D.getAttachmentLink(o,o.properties[n[g]]);return null}})()}getSinglePageDownloadLinkFromJSON(o){var u=this;return(0,f.A)(function*(){try{const D=u.presenterLoaded.subscribe(function(){var e=(0,f.A)(function*(n){if(n){const S=yield u.http.get(o).toPromise();var g=WP.instance.getPurpleData().getPages();if(S){var d=0;for(const A of g){for(var c=parseInt(A.pageCount),E=[],y=0;y<c;y++)E.push(yield u.getAttachmentLink(u.content,S[d],d+1)),d++;u.data.push(E)}}}});return function(n){return e.apply(this,arguments)}}());u.subscriptions.push(D)}catch(D){console.error("Error fetching data from JSON link:",D)}})()}getAttachmentLink(o,u,D){var e=this;return(0,f.A)(function*(){const n=new URL(window.location.href).origin,g=e.contextService.getIsCustomerDomainUsed()?n:e.purpleService.getPurpleConfig().contentUrl,d=JSON.parse(localStorage.getItem("AppWebConfiguration")).id;let c="".concat(g,"/resources/web/attachment/").concat(d,"/").concat(o.id,"/").concat(u);c+="?preview=".concat(e.kioskConfigData.kioskConfig.preview),c+="&deviceId=".concat(localStorage.getItem("deviceId")),c+="&deviceClass=".concat(e.deviceClassService.getDeviceClass());const E=yield e.sessionService.getReceiptData(o);if(E){const{receipt:S,providerType:A}=E;c+="&receipt=".concat(window.encodeURIComponent(S)),c+="&providerType=".concat(A)}const y=e.sanitize(e.getFileName(o,u,D));return c+="&targetFilename=".concat(window.encodeURIComponent(y)),c})()}getSingleDownloadLink(){return this.data&&WP.instance&&WP.instance.getScroller()&&this.data[WP.instance.getScroller().getIndex()]}getDownloadLink(){var o=this;return(0,f.A)(function*(){return yield o.getLink(o.content,"pdf_download")})()}getFileName(o,u,D){const n=this.kioskConfigData.kioskConfig.downloadFileName,g=u.substr(u.lastIndexOf(".")),d=D?" - "+D:"";switch(n){case"publication_issue":return this.publicationService.currentPublication.name+" - "+o.name+d+g;case"issue":return o.name+d+g;default:return u}}sanitize(o){return o.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(o=>o.unsubscribe())}}return(l=a).\u0275fac=function(o){return new(o||l)(i.KVO(C.m),i.KVO(v.Qq),i.KVO(r.Wj),i.KVO(P.x),i.KVO(T.Q),i.KVO(_.S),i.KVO(M.V))},l.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"}),a})()},3072:(U,O,t)=>{t.d(O,{Q:()=>C});var f=t(467),r=t(4404),s=t(3953),i=t(8471);let C=(()=>{var v;class P{constructor(_){this.purpleService=_}getReceiptData(_){var M=this;return(0,f.A)(function*(){return _.purchaseData.purchasedBy.includes(r.PurchaseOption.ENTITLEMENT)?{receipt:yield M.getAccessToken(),providerType:"entitlement"}:_.purchaseData.purchasedBy.includes(r.PurchaseOption.SUBSCRIPTION_CODE)?{receipt:(yield M.getSubscriptionCodes()).join(","),providerType:"subscriptionCode"}:null})()}getAccessToken(){var _=this;return(0,f.A)(function*(){const M=yield _.purpleService.purpleRef.entitlement.getUserData();return null==M?void 0:M.accessToken})()}getSubscriptionCodes(){var _=this;return(0,f.A)(function*(){return(yield _.purpleService.purpleRef.store.getSubscriptionCodes()).subscriptionCodes})()}}return(v=P).\u0275fac=function(_){return new(_||v)(s.KVO(i.Wj))},v.\u0275prov=s.jDH({token:v,factory:v.\u0275fac,providedIn:"root"}),P})()},7967:(U,O,t)=>{function f(r,h){return"object"!=typeof r?1===h?r:r+"S":1===h?r.singular:r.plural}t.d(O,{t:()=>f})}}]);
1
+ "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["common"],{3472:(U,O,t)=>{t.d(O,{M:()=>y});var f=t(9758),o=t(8179),l=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()===f.x.USER_ATTRIBUTE?D.userAttributes[this.getParam()]:D[this.getParam()]}hasContextChanged(D){let c=super.hasContextChanged(D);if(!c&&this.isSelectionEnabled()){const i=this.getDataFromContext(),_=this.getDataFromContext(D);c=!l(i,_)}return c}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 c;let i=(0,o.uQ)(null!==(c=this.getConfig().dataSource.entryId)&&void 0!==c?c: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(c){return(M||(M=m.xGo(T)))(c||T)}})(),T.\u0275dir=m.FsC({type:T,features:[m.Vt3]}),E})()},1803:(U,O,t)=>{t.d(O,{TS:()=>f,We:()=>l});var f=function(r){return r.VERTICAL="vertical",r.HORIZONTAL="horizontal",r.GRID="grid",r.GROUP="group",r.TABS="tabs",r}(f||{}),l=function(r){return r.BLANK="_blank",r.SELF="_self",r}(l||{})},3303:(U,O,t)=>{t.d(O,{y:()=>r});var f=t(177),o=t(9149),l=t(3953);let r=(()=>{var a;class v{}return(a=v).\u0275fac=function(y){return new(y||a)},a.\u0275mod=l.$C({type:a}),a.\u0275inj=l.G2t({imports:[f.MD,o.ContentTitleModule]}),v})()},5848:(U,O,t)=>{t.d(O,{Q:()=>T});var f=t(467),o=t(177),l=t(1210),r=t(5706),a=t(3953),v=t(9516),m=t(8471),y=t(1652);let T=(()=>{var E;class M extends l.${get contextKey(){var c,i,_;return null!==(c=null!==(i=null===(_=this.config)||void 0===_?void 0:_.contextKey)&&void 0!==i?i:this.defaultConfig.contextKey)&&void 0!==c?c:"content"}constructor(c,i,_,h,g,u){super(i,c,_,h,u),this.elementRef=c,this.injector=i,this.contextService=_,this.document=h,this.purpleService=g,this.globalService=u}getOptionalData(c,i,_){var h=this;return(0,f.A)(function*(){if((0,r.mF)(h.catalogContent))return h.catalogContent=yield h.purpleService.completePost(h.catalogContent,c,i),h.catalogContent[i];if((0,r.G4)(h.catalogContent))return h.bundleContent[_]=yield h.purpleService.completePost(h.getBundle(h.catalogContent)[_],c,i),h.bundleContent[_][i];throw new Error("No post but tried to load ".concat(i))})()}hasContentChanged(c,i){return(null==c?void 0:c.id)!==(null==i?void 0:i.id)||this.hasVersionChanged(c,i)}hasVersionChanged(c,i){return(null==c?void 0:c.version)!==(null==i?void 0:i.version)}onConfigChanges(){var c;let i=null===(c=this.context)||void 0===c?void 0:c[this.contextKey];Array.isArray(i)&&(i=i[0]);const _=this.hasContentChanged(this.catalogContent,i)&&!!i;return _&&(this.catalogContent=i),_}isGhost(){var c;return!this.config||!(null!==(c=this.context)&&void 0!==c&&c[this.contextKey])}getBundle(c){return this.bundleContent||(this.bundleContent=c.contents.map(i=>{var _;return null!==(_=i.post)&&void 0!==_?_:i.content})),this.bundleContent}ngOnDestroy(){super.ngOnDestroy()}getContextKey(){return this.contextKey}}return(E=M).\u0275fac=function(c){return new(c||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:()=>_});var f=t(177);const o={titleMessage:"%s"};var l=t(5848),r=t(3953),a=t(9516),v=t(8471),m=t(1652),y=t(8909);const T=h=>[h];function E(h,g){1&h&&(r.qex(0),r.j41(1,"h1"),r.EFF(2,"..."),r.k0s(),r.bVm())}function M(h,g){if(1&h&&r.nrm(0,"h1",2),2&h){const u=r.XpG();r.Y8G("storefrontTranslate",u.config.titleMessage)("storefrontTranslateArgs",r.eq3(2,T,u.catalogContent.name))}}let D=(()=>{var h;class g extends l.Q{constructor(e,n,p,d,s,C){super(e,p,n,d,s,C),this.elementRef=e,this.contextService=n,this.injector=p,this.document=d,this.purpleService=s,this.globalService=C,this.type="content-title",this.defaultConfig=o}}return(h=g).\u0275fac=function(e){return new(e||h)(r.rXU(r.aKT),r.rXU(a.V),r.rXU(r.zZn),r.rXU(f.qQ),r.rXU(v.Wj),r.rXU(m.d))},h.\u0275cmp=r.VBU({type:h,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:[f.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}),g})();var c=t(6483);let i=(()=>{var h;class g{}return(h=g).\u0275fac=function(e){return new(e||h)},h.\u0275mod=r.$C({type:h}),h.\u0275inj=r.G2t({imports:[f.MD,c.h]}),g})();const _=D},2285:(U,O,t)=>{t.d(O,{b:()=>_});var f=t(467),o=t(177),l=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(6067),D=t(8004),c=t(1652),i=t(5820);let _=(()=>{var h;class g extends r.${constructor(e,n,p,d,s,C,P,S,A,B,L,R){super(d,e,n,S,L),this.elementRef=e,this.contextService=n,this.renderer=p,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=R,this.anchorFeatureEnabled=!1,this.anchorPath=null,this.defaultConfig={...y}}ngOnInit(){var e=()=>super.ngOnInit,n=this;return(0,f.A)(function*(){n.anchorFeatureEnabled=n.anchorService.isAnchorFeatureEnabled(),e().call(n),n.elementRef.nativeElement.innerHTML="";const p=n.renderer.createElement(n.baseConfig.tag);n.renderer.appendChild(n.elementRef.nativeElement,p)})()}onConfigChanges(){var e=this;return(0,f.A)(function*(){var n,p;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!==(p=e.config.attributes)&&void 0!==p&&p.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,p;return"a"===(null===(n=e.target)||void 0===n?void 0:n.tagName.toLowerCase())?e.target:"a"===(null===(p=e.target)||void 0===p||null===(p=p.parentElement)||void 0===p?void 0:p.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(h=g).type="html",h.\u0275fac=function(e){return new(e||h)(l.rXU(l.aKT),l.rXU(E.V),l.rXU(l.sFG),l.rXU(l.zZn),l.rXU(M.D),l.rXU(D.G),l.rXU(a.B),l.rXU(o.qQ),l.rXU(l.Agw),l.rXU(l.gRc),l.rXU(c.d),l.rXU(i.X))},h.\u0275cmp=l.VBU({type:h,selectors:[["storefront-html"]],features:[l.Jv_([a.B]),l.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}),g})()},9207:(U,O,t)=>{t.r(O),t.d(O,{HTMLModule:()=>r,component:()=>a});var f=t(177),o=t(2285),l=t(3953);let r=(()=>{var v;class m{}return(v=m).\u0275fac=function(T){return new(T||v)},v.\u0275mod=l.$C({type:v}),v.\u0275inj=l.G2t({imports:[f.MD]}),m})();const a=o.b},6218:(U,O,t)=>{t.r(O),t.d(O,{SectionModule:()=>u,component:()=>e});var f=t(177),o=t(3953);const l={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"],c=["viewChildren"];function i(n,p){if(1&n&&o.nrm(0,"storefront-element",3,0),2&n){const d=p.$implicit,s=o.XpG(2);o.Y8G("baseContext",s.baseContext)("baseConfig",d)("lazy",s.isLazy)}}function _(n,p){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 h=(()=>{var n;class p extends r.${constructor(s,C,P,S,A,B,L,R,I){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=R,this.purpleEnv=I,this.defaultConfig={...l},this.changeDetectorRef=S}ngOnInit(){this.baseContext.isGhost||super.ngOnInit()}onConfigChanges(){if(super.onConfigChanges(),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,f.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=p).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(f.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(c,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,_,2,2,"ng-container",1),2&s&&o.Y8G("ngIf",C.children)},dependencies:[f.Sq,f.bT,M._],styles:["storefront-section{display:flex;justify-content:space-between;padding:var(--sectionPadding);flex-direction:column}\n"],encapsulation:2,changeDetection:0}),p})();var g=t(6895);let u=(()=>{var n;class p{}return(n=p).\u0275fac=function(s){return new(s||n)},n.\u0275mod=o.$C({type:n}),n.\u0275inj=o.G2t({imports:[f.MD,g.r]}),p})();const e=h},1802:(U,O,t)=>{t.d(O,{c:()=>E});var f=t(1210),o=t(9758),l=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 f.${constructor(i,_,h,g,u,e){super(h,i,_,u,e),this.elementRef=i,this.contextService=_,this.injector=h,this.router=g,this.document=u,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 _=this.config.paramScope===o.x.USER_ATTRIBUTE?i.userAttributes[this.config.param]:i[this.config.param];_&&(this.checked="true"===_)})}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,l.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,_){2&i&&a.AVh("checked",_.checked)},features:[a.Vt3],decls:4,vars:2,consts:[[1,"label",3,"storefrontTranslate"],[1,"switch"],["type","checkbox",3,"change","checked"]],template:function(i,_){1&i&&(a.nrm(0,"label",0),a.j41(1,"label",1)(2,"input",2),a.bIt("change",function(){return _.toggle()}),a.k0s(),a.nrm(3,"span"),a.k0s()),2&i&&(a.Y8G("storefrontTranslate",_.config.label),a.R7$(2),a.Y8G("checked",_.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 f=t(177),o=t(1802),l=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:[f.MD,l.h]}),y})();const v=o.c},2364:(U,O,t)=>{t.d(O,{S:()=>a});var f=t(4412),o=t(3953),l=t(1626),r=t(9118);let a=(()=>{var v;class m{constructor(T,E){this.http=T,this.kioskConfigService=E,this.initialization=new f.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(l.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:()=>c});var f=t(467),o=t(8471),l=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 c=(()=>{var i;class _{constructor(g,u,e,n,p,d,s){this.publicationService=g,this.http=u,this.purpleService=e,this.kioskConfigService=n,this.sessionService=p,this.deviceClassService=d,this.contextService=s,this.data=[],this.initPdf=new l.B,this.presenterLoaded=new l.B,this.subscriptions=[]}init(g){var u=this;return(0,f.A)(function*(){u.kioskConfigData=yield u.kioskConfigService.getConfig().toPromise(),u.content=yield u.publicationService.selectByContentCriteria(g);let e=yield u.getLink(u.content,"pdf_single_page_download");yield u.getSinglePageDownloadLinkFromJSON(e);let n=yield u.getLink(u.content,"pdf_download");u.initPdf.next(n)})()}getLink(g,u){var e=this;return(0,f.A)(function*(){const n=yield(0,o.GA)(g,e.purpleService);if(g&&g.properties&&!n){let p=Object.keys(g.properties);for(let d=0;d<p.length;d++)if(p[d]===u)return e.getAttachmentLink(g,g.properties[p[d]]);return null}})()}getSinglePageDownloadLinkFromJSON(g){var u=this;return(0,f.A)(function*(){try{const e=u.presenterLoaded.pipe((0,r.p)(n=>n),(0,a.s)(1)).subscribe(function(){var n=(0,f.A)(function*(p){if(p){const A=yield u.http.get(g).toPromise();var d=WP.instance.getPurpleData().getPages();if(A){var s=0;u.data=[];for(const B of d){for(var C=parseInt(B.pageCount),P=[],S=0;S<C;S++)P.push(yield u.getAttachmentLink(u.content,A[s],s+1)),s++;u.data.push(P)}}}});return function(p){return n.apply(this,arguments)}}());u.subscriptions.push(e)}catch(e){console.error("Error fetching data from JSON link:",e)}})()}getAttachmentLink(g,u,e){var n=this;return(0,f.A)(function*(){const p=new URL(window.location.href).origin,d=n.contextService.getIsCustomerDomainUsed()?p:n.purpleService.getPurpleConfig().contentUrl,s=JSON.parse(localStorage.getItem("AppWebConfiguration")).id;let C="".concat(d,"/resources/web/attachment/").concat(s,"/").concat(g.id,"/").concat(u);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(g);if(P){const{receipt:A,providerType:B}=P;C+="&receipt=".concat(window.encodeURIComponent(A)),C+="&providerType=".concat(B)}const S=n.sanitize(n.getFileName(g,u,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 g=this;return(0,f.A)(function*(){return yield g.getLink(g.content,"pdf_download")})()}getFileName(g,u,e){const p=this.kioskConfigData.kioskConfig.downloadFileName,d=u.substr(u.lastIndexOf(".")),s=e?" - "+e:"";switch(p){case"publication_issue":return this.publicationService.currentPublication.name+" - "+g.name+s+d;case"issue":return g.name+s+d;default:return u}}sanitize(g){return g.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(g=>g.unsubscribe())}}return(i=_).\u0275fac=function(g){return new(g||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"}),_})()},3072:(U,O,t)=>{t.d(O,{Q:()=>v});var f=t(467),o=t(4404),r=t(3953),a=t(8471);let v=(()=>{var m;class y{constructor(E){this.purpleService=E}getReceiptData(E){var M=this;return(0,f.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,f.A)(function*(){const M=yield E.purpleService.purpleRef.entitlement.getUserData();return null==M?void 0:M.accessToken})()}getSubscriptionCodes(){var E=this;return(0,f.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 f(o,l){return"object"!=typeof o?1===l?o:o+"S":1===l?o.singular:o.plural}t.d(O,{t:()=>f})}}]);