@pronto-tools-and-more/files 12.29.0 → 12.31.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,13 @@
1
1
  if (!globalThis.HACK__NORMAL_HTML_ELEMENTS_LOADED) {
2
2
  globalThis.HACK__NORMAL_HTML_ELEMENTS_LOADED = 1;
3
3
  globalThis.HACK__NORMAL_HTML_ELEMENTS_CHECK = (that) => {
4
- if (that.baseConfig.tag === "x/💩") {
4
+ if (that.baseConfig.tag === "x/custom") {
5
5
  that.baseConfig.tag = "div";
6
6
  that.isPoop = true;
7
7
  }
8
8
  };
9
9
  globalThis.HACK__NORMAL_HTML_ELEMENTS_CHECK_2 = (that) => {
10
- if (that.config.tag === "x/💩") {
10
+ if (that.config.tag === "x/custom") {
11
11
  that.config.tag = "div";
12
12
  that.isPoop = true;
13
13
  }
@@ -21,4 +21,30 @@ if (!globalThis.HACK__NORMAL_HTML_ELEMENTS_LOADED) {
21
21
  parent.replaceWith(actual);
22
22
  })();
23
23
  };
24
+ globalThis.HACK__NORMAL_HTML_ELEMENTS_RENDER_2 = (that) => {
25
+ if (!that.isPoop) {
26
+ return;
27
+ }
28
+
29
+ // 1. this is the last fake child.
30
+ // 2. fix rendering of first element (parent)
31
+ // 3. fix rendering of other elements (children) and append them to parent
32
+ // 4. replace fake parent with real parent
33
+
34
+ const grandParent = that.elementRef.nativeElement.parentNode.parentNode;
35
+
36
+ const greatGrantParent = grandParent.parentNode;
37
+
38
+ const realParent = grandParent.children[0].children[0].children[0];
39
+
40
+ const fakeChildren = [...grandParent.children].slice(1, -1);
41
+
42
+ const realChildren = fakeChildren.map((fakeChild) => {
43
+ return fakeChild.children[0].children[0];
44
+ });
45
+
46
+ realParent.append(...realChildren);
47
+
48
+ greatGrantParent.replaceWith(realParent);
49
+ };
24
50
  }
@@ -1 +1,1201 @@
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
+ "use strict";
2
+ (self.webpackChunkstorefront = self.webpackChunkstorefront || []).push([
3
+ ["common"],
4
+ {
5
+ 3472: (U, O, t) => {
6
+ t.d(O, { M: () => y });
7
+ var p = t(9758),
8
+ o = t(8179),
9
+ c = t(362),
10
+ a = t(4452),
11
+ v = t(3713),
12
+ m = t(3953);
13
+ let y = (() => {
14
+ var T;
15
+ class E extends v.r {
16
+ getDataFromContext(D = this.context) {
17
+ return this.getSelectionScope() === p.x.USER_ATTRIBUTE
18
+ ? D.userAttributes[this.getParam()]
19
+ : D[this.getParam()];
20
+ }
21
+ hasContextChanged(D) {
22
+ let l = super.hasContextChanged(D);
23
+ if (!l && this.isSelectionEnabled()) {
24
+ const i = this.getDataFromContext(),
25
+ g = this.getDataFromContext(D);
26
+ l = !c(i, g);
27
+ }
28
+ return l;
29
+ }
30
+ ngOnDestroy() {
31
+ super.ngOnDestroy(),
32
+ this.dataSource &&
33
+ this.contextService.unregisterDataSource(this.dataSource);
34
+ }
35
+ stripChildConfigs(D) {
36
+ return D.content && (D.content = {}), D;
37
+ }
38
+ getEntryConfig(D) {
39
+ return (D && D.ad) || { ...this.baseConfig.content };
40
+ }
41
+ getEntryContext(D) {
42
+ var l;
43
+ let i = (0, o.uQ)(
44
+ null !== (l = this.getConfig().dataSource.entryId) && void 0 !== l
45
+ ? l
46
+ : this.getDataType(),
47
+ this.context,
48
+ this.contextService.$functions,
49
+ this.globalService.getGlobalData()
50
+ );
51
+ return { ...this.baseContext, [i]: D };
52
+ }
53
+ getConfig() {
54
+ return this.config || this.baseConfig;
55
+ }
56
+ isSelectionEnabled() {
57
+ return !1;
58
+ }
59
+ getDataType() {
60
+ return this.getConfig().dataSource.type;
61
+ }
62
+ getGroupDataType(D) {
63
+ return D.dataSource.type;
64
+ }
65
+ getConfigEscapeProperties() {
66
+ return [
67
+ ...super.getConfigEscapeProperties(),
68
+ ...(0, a.Kj)(this.baseConfig),
69
+ ].filter((D) => !!D);
70
+ }
71
+ }
72
+ return (
73
+ ((T = E).ɵfac = (() => {
74
+ let M;
75
+ return function (l) {
76
+ return (M || (M = m.xGo(T)))(l || T);
77
+ };
78
+ })()),
79
+ (T.ɵdir = m.FsC({ type: T, features: [m.Vt3] })),
80
+ E
81
+ );
82
+ })();
83
+ },
84
+ 1803: (U, O, t) => {
85
+ t.d(O, { TS: () => p, We: () => c });
86
+ var p = (function (r) {
87
+ return (
88
+ (r.VERTICAL = "vertical"),
89
+ (r.HORIZONTAL = "horizontal"),
90
+ (r.GRID = "grid"),
91
+ (r.GROUP = "group"),
92
+ (r.TABS = "tabs"),
93
+ r
94
+ );
95
+ })(p || {}),
96
+ c = (function (r) {
97
+ return (r.BLANK = "_blank"), (r.SELF = "_self"), r;
98
+ })(c || {});
99
+ },
100
+ 3303: (U, O, t) => {
101
+ t.d(O, { y: () => r });
102
+ var p = t(177),
103
+ o = t(9149),
104
+ c = t(3953);
105
+ let r = (() => {
106
+ var a;
107
+ class v {}
108
+ return (
109
+ ((a = v).ɵfac = function (y) {
110
+ return new (y || a)();
111
+ }),
112
+ (a.ɵmod = c.$C({ type: a })),
113
+ (a.ɵinj = c.G2t({ imports: [p.MD, o.ContentTitleModule] })),
114
+ v
115
+ );
116
+ })();
117
+ },
118
+ 5848: (U, O, t) => {
119
+ t.d(O, { Q: () => T });
120
+ var p = t(467),
121
+ o = t(177),
122
+ c = t(1210),
123
+ r = t(5706),
124
+ a = t(3953),
125
+ v = t(9516),
126
+ m = t(5102),
127
+ y = t(1652);
128
+ let T = (() => {
129
+ var E;
130
+ class M extends c.$ {
131
+ get contextKey() {
132
+ var l, i, g;
133
+ return null !==
134
+ (l =
135
+ null !==
136
+ (i =
137
+ null === (g = this.config) || void 0 === g
138
+ ? void 0
139
+ : g.contextKey) && void 0 !== i
140
+ ? i
141
+ : this.defaultConfig.contextKey) && void 0 !== l
142
+ ? l
143
+ : "content";
144
+ }
145
+ constructor(l, i, g, _, u, h) {
146
+ super(i, l, g, _, h),
147
+ (this.elementRef = l),
148
+ (this.injector = i),
149
+ (this.contextService = g),
150
+ (this.document = _),
151
+ (this.purpleService = u),
152
+ (this.globalService = h);
153
+ }
154
+ updatePostWithOptionalData(l, i) {
155
+ var g = this;
156
+ return (0, p.A)(function* () {
157
+ const _ = yield g.purpleService.getOptionalData(
158
+ g.catalogContent,
159
+ l,
160
+ i
161
+ );
162
+ return (0, r.mF)(g.catalogContent)
163
+ ? ((g.catalogContent = _), g.catalogContent)
164
+ : (0, r.G4)(g.catalogContent)
165
+ ? ((g.bundleContent = (0, r.Ig)(g.catalogContent)),
166
+ (g.bundleContent[i] = _),
167
+ g.bundleContent[i])
168
+ : void 0;
169
+ })();
170
+ }
171
+ hasContentChanged(l, i) {
172
+ return (
173
+ (null == l ? void 0 : l.id) !== (null == i ? void 0 : i.id) ||
174
+ this.hasVersionChanged(l, i)
175
+ );
176
+ }
177
+ hasVersionChanged(l, i) {
178
+ return (
179
+ (null == l ? void 0 : l.version) !==
180
+ (null == i ? void 0 : i.version)
181
+ );
182
+ }
183
+ onConfigChanges() {
184
+ var l;
185
+ let i =
186
+ null === (l = this.context) || void 0 === l
187
+ ? void 0
188
+ : l[this.contextKey];
189
+ Array.isArray(i) && (i = i[0]);
190
+ const g = this.hasContentChanged(this.catalogContent, i) && !!i;
191
+ return g && (this.catalogContent = i), g;
192
+ }
193
+ isGhost() {
194
+ var l;
195
+ return (
196
+ !this.config ||
197
+ !(
198
+ null !== (l = this.context) &&
199
+ void 0 !== l &&
200
+ l[this.contextKey]
201
+ )
202
+ );
203
+ }
204
+ ngOnDestroy() {
205
+ super.ngOnDestroy();
206
+ }
207
+ getContextKey() {
208
+ return this.contextKey;
209
+ }
210
+ }
211
+ return (
212
+ ((E = M).ɵfac = function (l) {
213
+ return new (l || E)(
214
+ a.rXU(a.aKT),
215
+ a.rXU(a.zZn),
216
+ a.rXU(v.V),
217
+ a.rXU(o.qQ),
218
+ a.rXU(m.Wj),
219
+ a.rXU(y.d)
220
+ );
221
+ }),
222
+ (E.ɵdir = a.FsC({ type: E, features: [a.Vt3] })),
223
+ M
224
+ );
225
+ })();
226
+ },
227
+ 9149: (U, O, t) => {
228
+ t.r(O), t.d(O, { ContentTitleModule: () => i, component: () => g });
229
+ var p = t(177);
230
+ const o = { titleMessage: "%s" };
231
+ var c = t(5848),
232
+ r = t(3953),
233
+ a = t(9516),
234
+ v = t(5102),
235
+ m = t(1652),
236
+ y = t(8909);
237
+ const T = (_) => [_];
238
+ function E(_, u) {
239
+ 1 & _ && (r.qex(0), r.j41(1, "h1"), r.EFF(2, "..."), r.k0s(), r.bVm());
240
+ }
241
+ function M(_, u) {
242
+ if ((1 & _ && r.nrm(0, "h1", 2), 2 & _)) {
243
+ const h = r.XpG();
244
+ r.Y8G("storefrontTranslate", h.config.titleMessage)(
245
+ "storefrontTranslateArgs",
246
+ r.eq3(2, T, null == h.catalogContent ? null : h.catalogContent.name)
247
+ );
248
+ }
249
+ }
250
+ let D = (() => {
251
+ var _;
252
+ class u extends c.Q {
253
+ constructor(e, n, f, d, s, C) {
254
+ super(e, f, n, d, s, C),
255
+ (this.elementRef = e),
256
+ (this.contextService = n),
257
+ (this.injector = f),
258
+ (this.document = d),
259
+ (this.purpleService = s),
260
+ (this.globalService = C),
261
+ (this.type = "content-title"),
262
+ (this.defaultConfig = o);
263
+ }
264
+ }
265
+ return (
266
+ ((_ = u).ɵfac = function (e) {
267
+ return new (e || _)(
268
+ r.rXU(r.aKT),
269
+ r.rXU(a.V),
270
+ r.rXU(r.zZn),
271
+ r.rXU(p.qQ),
272
+ r.rXU(v.Wj),
273
+ r.rXU(m.d)
274
+ );
275
+ }),
276
+ (_.ɵcmp = r.VBU({
277
+ type: _,
278
+ selectors: [["storefront-content-title"]],
279
+ features: [r.Vt3],
280
+ decls: 2,
281
+ vars: 2,
282
+ consts: [
283
+ [4, "ngIf"],
284
+ [3, "storefrontTranslate", "storefrontTranslateArgs", 4, "ngIf"],
285
+ [3, "storefrontTranslate", "storefrontTranslateArgs"],
286
+ ],
287
+ template: function (e, n) {
288
+ 1 & e &&
289
+ r.DNE(0, E, 3, 0, "ng-container", 0)(1, M, 1, 4, "h1", 1),
290
+ 2 & e &&
291
+ (r.Y8G("ngIf", n.ghost), r.R7$(), r.Y8G("ngIf", !n.ghost));
292
+ },
293
+ dependencies: [p.bT, y.M],
294
+ styles: [
295
+ "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",
296
+ ],
297
+ encapsulation: 2,
298
+ })),
299
+ u
300
+ );
301
+ })();
302
+ var l = t(6483);
303
+ let i = (() => {
304
+ var _;
305
+ class u {}
306
+ return (
307
+ ((_ = u).ɵfac = function (e) {
308
+ return new (e || _)();
309
+ }),
310
+ (_.ɵmod = r.$C({ type: _ })),
311
+ (_.ɵinj = r.G2t({ imports: [p.MD, l.h] })),
312
+ u
313
+ );
314
+ })();
315
+ const g = D;
316
+ },
317
+ 2285: (U, O, t) => {
318
+ t.d(O, { b: () => g });
319
+ var p = t(467),
320
+ o = t(177),
321
+ c = t(3953),
322
+ r = t(1210),
323
+ a = t(8251),
324
+ v = t(610),
325
+ m = t(1803);
326
+ const y = { tag: "div", content: "", attributes: {} };
327
+ var T = t(8179),
328
+ E = t(9516),
329
+ M = t(8448),
330
+ D = t(8004),
331
+ l = t(1652),
332
+ i = t(5820);
333
+ let g = (() => {
334
+ var _;
335
+ class u extends r.$ {
336
+ constructor(e, n, f, d, s, C, P, S, A, B, L, I) {
337
+ super(d, e, n, S, L),
338
+ (this.elementRef = e),
339
+ (this.contextService = n),
340
+ (this.renderer = f),
341
+ (this.injector = d),
342
+ (this.translate = s),
343
+ (this.eventActionService = C),
344
+ (this.store = P),
345
+ (this.document = S),
346
+ (this.platformId = A),
347
+ (this.changeDetectorRef = B),
348
+ (this.globalService = L),
349
+ (this.anchorService = I),
350
+ (this.anchorFeatureEnabled = !1),
351
+ (this.anchorPath = null),
352
+ (this.defaultConfig = { ...y });
353
+ }
354
+ ngOnInit() {
355
+ var e = () => super.ngOnInit,
356
+ n = this;
357
+ return (0, p.A)(function* () {
358
+ (n.anchorFeatureEnabled =
359
+ n.anchorService.isAnchorFeatureEnabled()),
360
+ e().call(n),
361
+ (n.elementRef.nativeElement.innerHTML = "");
362
+ const f = n.renderer.createElement(n.baseConfig.tag);
363
+ n.renderer.appendChild(n.elementRef.nativeElement, f);
364
+ })();
365
+ }
366
+ onConfigChanges() {
367
+ var e = this;
368
+ return (0, p.A)(function* () {
369
+ var n, f;
370
+ const d = e.renderer.createElement(e.config.tag),
371
+ s = { ...e.config.attributes };
372
+ null !== (n = e.config.attributes) &&
373
+ void 0 !== n &&
374
+ n.src &&
375
+ (s.src = e.contextService.toResourceUrl(
376
+ e.config.attributes.src
377
+ )),
378
+ null !== (f = e.config.attributes) &&
379
+ void 0 !== f &&
380
+ f.href &&
381
+ (s.href = e.contextService.toResourceUrl(
382
+ e.config.attributes.href
383
+ )),
384
+ "iframe" === e.config.tag &&
385
+ d.addEventListener("load", (P) => {
386
+ d && d.contentDocument
387
+ ? (d.contentDocument.scrollingElement.scrollHeight >
388
+ d.contentWindow.innerHeight &&
389
+ (d.style.height =
390
+ d.contentDocument.scrollingElement.scrollHeight +
391
+ "px"),
392
+ d.contentDocument.scrollingElement.scrollWidth >
393
+ d.contentWindow.innerWidth &&
394
+ (d.style.width =
395
+ d.contentDocument.scrollingElement.scrollWidth +
396
+ "px"))
397
+ : window.addEventListener("message", (S) => {
398
+ S.origin ===
399
+ new URL(null == s ? void 0 : s.src).origin &&
400
+ (S.data.height &&
401
+ (d.style.height = S.data.height + "px"),
402
+ S.data.width &&
403
+ (d.style.width = S.data.width + "px"));
404
+ });
405
+ }),
406
+ Object.keys(s).forEach((P) =>
407
+ d.setAttribute(P, e.config.attributes[P])
408
+ ),
409
+ (e.translatedContent = yield e.translate.translate({
410
+ text: e.config.content,
411
+ args: e.config.variables || [],
412
+ })),
413
+ (d.innerHTML = (0, T.uQ)(
414
+ e.translatedContent,
415
+ e.context,
416
+ e.contextService.$functions,
417
+ e.globalService.getGlobalData()
418
+ )),
419
+ (e.elementRef.nativeElement.innerHTML = "");
420
+ let C = d;
421
+ e.anchorFeatureEnabled && (C = e.handleAnchorTags(d)),
422
+ C.addEventListener("click", (P) => e.onClick(P)),
423
+ e.renderer.appendChild(e.elementRef.nativeElement, C),
424
+ e.changeDetectorRef.markForCheck();
425
+ })();
426
+ }
427
+ ngOnDestroy() {
428
+ super.ngOnDestroy();
429
+ }
430
+ onClick(e) {
431
+ this.config.tap &&
432
+ ((this.anchorFeatureEnabled || "touchstart" === e.type) &&
433
+ e.preventDefault(),
434
+ this.trackOnClick(),
435
+ this.eventActionService.processEventAction(
436
+ this.config.tap,
437
+ this
438
+ ));
439
+ const n = this.getAnchorElementFromEvent(e);
440
+ null != n &&
441
+ n.href &&
442
+ (n.target === m.We.BLANK
443
+ ? "external" === n.getAttribute("data-target")
444
+ ? this.trackLinkOpenExternal(n)
445
+ : this.trackLinkOpenAppBrowser(n)
446
+ : this.trackLinkOpenInline(n));
447
+ }
448
+ getConfigEscapeProperties() {
449
+ return ["condition"];
450
+ }
451
+ isGhost() {
452
+ return !1;
453
+ }
454
+ hasContextChanged(e) {
455
+ return (
456
+ super.hasContextChanged(e) ||
457
+ (this.translatedContent &&
458
+ this.translatedContent.indexOf(T.mF) > -1)
459
+ );
460
+ }
461
+ getAnchorElementFromEvent(e) {
462
+ var n, f;
463
+ return "a" ===
464
+ (null === (n = e.target) || void 0 === n
465
+ ? void 0
466
+ : n.tagName.toLowerCase())
467
+ ? e.target
468
+ : "a" ===
469
+ (null === (f = e.target) ||
470
+ void 0 === f ||
471
+ null === (f = f.parentElement) ||
472
+ void 0 === f
473
+ ? void 0
474
+ : f.tagName.toLowerCase())
475
+ ? e.target.parentElement
476
+ : null;
477
+ }
478
+ handleAnchorTags(e) {
479
+ if (
480
+ ((this.anchorPath =
481
+ this.anchorService.getAnchorPathForEventAction(
482
+ this.config.tap,
483
+ this.context
484
+ )),
485
+ this.anchorPath)
486
+ ) {
487
+ const n = this.renderer.createElement("a");
488
+ return (
489
+ (n.style.height = "inherit"),
490
+ (n.style.width = "inherit"),
491
+ n.setAttribute("href", this.anchorPath),
492
+ n.appendChild(e),
493
+ n
494
+ );
495
+ }
496
+ return e;
497
+ }
498
+ trackOnClick() {
499
+ const e = "".concat(this.getTrackingBaseKey(), "_CLICKED");
500
+ this.dispatchTrackingAction(e, {});
501
+ }
502
+ trackLinkOpenExternal(e) {
503
+ const n = "".concat(
504
+ this.getTrackingBaseKey(),
505
+ "_LINK_OPEN_EXTERNAL"
506
+ );
507
+ this.dispatchTrackingAction(n, {
508
+ TARGET_URL: e.href,
509
+ LINK_TEXT: e.innerText,
510
+ });
511
+ }
512
+ trackLinkOpenAppBrowser(e) {
513
+ const n = "".concat(
514
+ this.getTrackingBaseKey(),
515
+ "_LINK_OPEN_APP_BROWSER"
516
+ );
517
+ this.dispatchTrackingAction(n, {
518
+ TARGET_URL: e.href,
519
+ LINK_TEXT: e.innerText,
520
+ });
521
+ }
522
+ trackLinkOpenInline(e) {
523
+ this.store.dispatch(
524
+ (0, v.k4)({
525
+ url: window.location.href,
526
+ key: "".concat(this.getTrackingBaseKey(), "_LINK_OPEN_INLINE"),
527
+ params: { TARGET_URL: e.href, LINK_TEXT: e.innerText },
528
+ })
529
+ );
530
+ }
531
+ dispatchTrackingAction(e, n) {
532
+ this.store.dispatch(
533
+ (0, v.k4)({ url: window.location.href, key: e, params: n })
534
+ );
535
+ }
536
+ }
537
+ return (
538
+ ((_ = u).type = "html"),
539
+ (_.ɵfac = function (e) {
540
+ return new (e || _)(
541
+ c.rXU(c.aKT),
542
+ c.rXU(E.V),
543
+ c.rXU(c.sFG),
544
+ c.rXU(c.zZn),
545
+ c.rXU(M.D),
546
+ c.rXU(D.G),
547
+ c.rXU(a.B),
548
+ c.rXU(o.qQ),
549
+ c.rXU(c.Agw),
550
+ c.rXU(c.gRc),
551
+ c.rXU(l.d),
552
+ c.rXU(i.X)
553
+ );
554
+ }),
555
+ (_.ɵcmp = c.VBU({
556
+ type: _,
557
+ selectors: [["storefront-html"]],
558
+ features: [c.Jv_([a.B]), c.Vt3],
559
+ decls: 0,
560
+ vars: 0,
561
+ template: function (e, n) {},
562
+ styles: [
563
+ '.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',
564
+ ],
565
+ encapsulation: 2,
566
+ changeDetection: 0,
567
+ })),
568
+ u
569
+ );
570
+ })();
571
+ },
572
+ 9207: (U, O, t) => {
573
+ t.r(O), t.d(O, { HTMLModule: () => r, component: () => a });
574
+ var p = t(177),
575
+ o = t(2285),
576
+ c = t(3953);
577
+ let r = (() => {
578
+ var v;
579
+ class m {}
580
+ return (
581
+ ((v = m).ɵfac = function (T) {
582
+ return new (T || v)();
583
+ }),
584
+ (v.ɵmod = c.$C({ type: v })),
585
+ (v.ɵinj = c.G2t({ imports: [p.MD] })),
586
+ m
587
+ );
588
+ })();
589
+ const a = o.b;
590
+ },
591
+ 6218: (U, O, t) => {
592
+ t.r(O), t.d(O, { SectionModule: () => h, component: () => e });
593
+ var p = t(177),
594
+ o = t(3953);
595
+ const c = { content: null };
596
+ var r = t(1210),
597
+ a = t(8179),
598
+ v = t(7879),
599
+ m = t(1184),
600
+ y = t(9516),
601
+ T = t(1652),
602
+ E = t(4748),
603
+ M = t(3648);
604
+ const D = ["viewTemplate"],
605
+ l = ["viewChildren"];
606
+ function i(n, f) {
607
+ if ((1 & n && o.nrm(0, "storefront-element", 3, 0), 2 & n)) {
608
+ const d = f.$implicit,
609
+ s = o.XpG(2);
610
+ o.Y8G("baseContext", s.baseContext)("baseConfig", d)(
611
+ "lazy",
612
+ s.isLazy
613
+ );
614
+ }
615
+ }
616
+ function g(n, f) {
617
+ if (
618
+ (1 & n &&
619
+ (o.qex(0), o.DNE(1, i, 2, 3, "storefront-element", 2), o.bVm()),
620
+ 2 & n)
621
+ ) {
622
+ const d = o.XpG();
623
+ o.R7$(),
624
+ o.Y8G("ngForOf", d.children)("ngForTrackBy", d.trackByChildren);
625
+ }
626
+ }
627
+ let _ = (() => {
628
+ var n;
629
+ class f extends r.$ {
630
+ constructor(s, C, P, S, A, B, L, I, R) {
631
+ super(C, s, P, A, B),
632
+ (this.elementRef = s),
633
+ (this.injector = C),
634
+ (this.contextService = P),
635
+ (this.changeDetectorRef = S),
636
+ (this.document = A),
637
+ (this.globalService = B),
638
+ (this.ssrService = L),
639
+ (this.platformId = I),
640
+ (this.purpleEnv = R),
641
+ (this.defaultConfig = { ...c }),
642
+ (this.changeDetectorRef = S);
643
+ }
644
+ ngOnInit() {
645
+ this.baseContext.isGhost || super.ngOnInit();
646
+ }
647
+ onConfigChanges() {
648
+ if (
649
+ ((this.isLazy = !(
650
+ !window.isUniversal || !this.ssrService.currentPrebootStatus
651
+ )),
652
+ this.baseConfig.content)
653
+ ) {
654
+ this.children = [];
655
+ for (let s = 0; s < this.baseConfig.content.length; s++)
656
+ (this.purpleEnv.isUniversal ||
657
+ (0, a.Ol)(this.config.content[s])) &&
658
+ this.children.push(this.baseConfig.content[s]);
659
+ this.changeDetectorRef.detectChanges(),
660
+ this.childComponents.forEach((s, C) => {
661
+ !this.purpleEnv.isUniversal ||
662
+ (0, a.Ol)(this.config.content[C])
663
+ ? s.lazyLoad()
664
+ : this.purpleEnv.isUniversal &&
665
+ (0, p.UE)(this.platformId) &&
666
+ (null == s || s.loadAndClear());
667
+ }),
668
+ this.changeDetectorRef.markForCheck();
669
+ }
670
+ }
671
+ stripChildConfigs(s) {
672
+ return (
673
+ s.content &&
674
+ Array.isArray(s.content) &&
675
+ (s.content = s.content.map(({ _uuid: C, condition: P }) => ({
676
+ _uuid: C,
677
+ condition: P,
678
+ }))),
679
+ s
680
+ );
681
+ }
682
+ rebuildContextKeys() {
683
+ super.rebuildContextKeys(),
684
+ this.baseConfig.content.forEach((s) => {
685
+ "condition" in s && (0, m.Fl)(s.condition, this.contextKeys);
686
+ });
687
+ }
688
+ trackByChildren(s, C) {
689
+ if ("string" == typeof C || "number" == typeof C) return C;
690
+ const P = C.id || C._uuid;
691
+ if (!P)
692
+ throw (
693
+ (console.error(C),
694
+ "Element should have _uuid from config loader!")
695
+ );
696
+ return P;
697
+ }
698
+ }
699
+ return (
700
+ ((n = f).type = "section"),
701
+ (n.ɵfac = function (s) {
702
+ return new (s || n)(
703
+ o.rXU(o.aKT),
704
+ o.rXU(o.zZn),
705
+ o.rXU(y.V),
706
+ o.rXU(o.gRc),
707
+ o.rXU(p.qQ),
708
+ o.rXU(T.d),
709
+ o.rXU(E.i),
710
+ o.rXU(o.Agw),
711
+ o.rXU(v.r6)
712
+ );
713
+ }),
714
+ (n.ɵcmp = o.VBU({
715
+ type: n,
716
+ selectors: [["storefront-section"]],
717
+ viewQuery: function (s, C) {
718
+ if ((1 & s && (o.GBs(D, 7, o.c1b), o.GBs(l, 5)), 2 & s)) {
719
+ let P;
720
+ o.mGM((P = o.lsd())) && (C.viewTemplate = P.first),
721
+ o.mGM((P = o.lsd())) && (C.childComponents = P);
722
+ }
723
+ },
724
+ features: [o.Vt3],
725
+ decls: 1,
726
+ vars: 1,
727
+ consts: [
728
+ ["viewChildren", ""],
729
+ [4, "ngIf"],
730
+ [
731
+ 3,
732
+ "baseContext",
733
+ "baseConfig",
734
+ "lazy",
735
+ 4,
736
+ "ngFor",
737
+ "ngForOf",
738
+ "ngForTrackBy",
739
+ ],
740
+ [3, "baseContext", "baseConfig", "lazy"],
741
+ ],
742
+ template: function (s, C) {
743
+ 1 & s && o.DNE(0, g, 2, 2, "ng-container", 1),
744
+ 2 & s && o.Y8G("ngIf", C.children);
745
+ },
746
+ dependencies: [p.Sq, p.bT, M._],
747
+ styles: [
748
+ "storefront-section{display:flex;justify-content:space-between;padding:var(--sectionPadding);flex-direction:column}\n",
749
+ ],
750
+ encapsulation: 2,
751
+ changeDetection: 0,
752
+ })),
753
+ f
754
+ );
755
+ })();
756
+ var u = t(6895);
757
+ let h = (() => {
758
+ var n;
759
+ class f {}
760
+ return (
761
+ ((n = f).ɵfac = function (s) {
762
+ return new (s || n)();
763
+ }),
764
+ (n.ɵmod = o.$C({ type: n })),
765
+ (n.ɵinj = o.G2t({ imports: [p.MD, u.r] })),
766
+ f
767
+ );
768
+ })();
769
+ const e = _;
770
+ },
771
+ 1802: (U, O, t) => {
772
+ t.d(O, { c: () => E });
773
+ var p = t(1210),
774
+ o = t(9758),
775
+ c = t(8075),
776
+ r = t(177),
777
+ a = t(3953),
778
+ v = t(9516),
779
+ m = t(4559),
780
+ y = t(1652),
781
+ T = t(8909);
782
+ let E = (() => {
783
+ var M;
784
+ class D extends p.$ {
785
+ constructor(i, g, _, u, h, e) {
786
+ super(_, i, g, h, e),
787
+ (this.elementRef = i),
788
+ (this.contextService = g),
789
+ (this.injector = _),
790
+ (this.router = u),
791
+ (this.document = h),
792
+ (this.globalService = e),
793
+ (this.type = "switch"),
794
+ (this.defaultConfig = {});
795
+ }
796
+ ngOnInit() {
797
+ (this.config = { ...this.baseConfig }),
798
+ (this.checked = this.config.initialValue),
799
+ super.ngOnInit(),
800
+ this.contextService.viewContext$.subscribe((i) => {
801
+ const g =
802
+ this.config.paramScope === o.x.USER_ATTRIBUTE
803
+ ? i.userAttributes[this.config.param]
804
+ : i[this.config.param];
805
+ g && (this.checked = "true" === g);
806
+ });
807
+ }
808
+ isChecked() {
809
+ return this.checked;
810
+ }
811
+ toggle() {
812
+ this.setChecked(!this.checked);
813
+ }
814
+ setChecked(i) {
815
+ this.config.paramScope === o.x.USER_ATTRIBUTE
816
+ ? this.contextService.setUserAttribute(
817
+ this.config.param,
818
+ "".concat(i)
819
+ )
820
+ : (0, c.CV)(this.router, { [this.config.param]: i });
821
+ }
822
+ }
823
+ return (
824
+ ((M = D).ɵfac = function (i) {
825
+ return new (i || M)(
826
+ a.rXU(a.aKT),
827
+ a.rXU(v.V),
828
+ a.rXU(a.zZn),
829
+ a.rXU(m.Ix),
830
+ a.rXU(r.qQ),
831
+ a.rXU(y.d)
832
+ );
833
+ }),
834
+ (M.ɵcmp = a.VBU({
835
+ type: M,
836
+ selectors: [["storefront-switch"]],
837
+ hostVars: 2,
838
+ hostBindings: function (i, g) {
839
+ 2 & i && a.AVh("checked", g.checked);
840
+ },
841
+ features: [a.Vt3],
842
+ decls: 4,
843
+ vars: 2,
844
+ consts: [
845
+ [1, "label", 3, "storefrontTranslate"],
846
+ [1, "switch"],
847
+ ["type", "checkbox", 3, "change", "checked"],
848
+ ],
849
+ template: function (i, g) {
850
+ 1 & i &&
851
+ (a.nrm(0, "label", 0),
852
+ a.j41(1, "label", 1)(2, "input", 2),
853
+ a.bIt("change", function () {
854
+ return g.toggle();
855
+ }),
856
+ a.k0s(),
857
+ a.nrm(3, "span"),
858
+ a.k0s()),
859
+ 2 & i &&
860
+ (a.Y8G("storefrontTranslate", g.config.label),
861
+ a.R7$(2),
862
+ a.Y8G("checked", g.isChecked()));
863
+ },
864
+ dependencies: [T.M],
865
+ styles: [
866
+ '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',
867
+ ],
868
+ encapsulation: 2,
869
+ })),
870
+ D
871
+ );
872
+ })();
873
+ },
874
+ 9645: (U, O, t) => {
875
+ t.r(O), t.d(O, { SwitchModule: () => a, component: () => v });
876
+ var p = t(177),
877
+ o = t(1802),
878
+ c = t(6483),
879
+ r = t(3953);
880
+ let a = (() => {
881
+ var m;
882
+ class y {}
883
+ return (
884
+ ((m = y).ɵfac = function (E) {
885
+ return new (E || m)();
886
+ }),
887
+ (m.ɵmod = r.$C({ type: m })),
888
+ (m.ɵinj = r.G2t({ imports: [p.MD, c.h] })),
889
+ y
890
+ );
891
+ })();
892
+ const v = o.c;
893
+ },
894
+ 2364: (U, O, t) => {
895
+ t.d(O, { S: () => a });
896
+ var p = t(4412),
897
+ o = t(3953),
898
+ c = t(1626),
899
+ r = t(9118);
900
+ let a = (() => {
901
+ var v;
902
+ class m {
903
+ constructor(T, E) {
904
+ (this.http = T),
905
+ (this.kioskConfigService = E),
906
+ (this.initialization = new p.t(null)),
907
+ (this.data = [
908
+ { identifier: "phone", minScreenWidth: null },
909
+ { identifier: "tablet_small", minScreenWidth: 533 },
910
+ { identifier: "tablet_large", minScreenWidth: 720 },
911
+ ]);
912
+ }
913
+ init() {}
914
+ getDeviceClass() {
915
+ const E = this.data.reduce(
916
+ (M, D) => (window.innerWidth >= D.minScreenWidth ? D : M),
917
+ null
918
+ );
919
+ return E && E.identifier;
920
+ }
921
+ }
922
+ return (
923
+ ((v = m).ɵfac = function (T) {
924
+ return new (T || v)(o.KVO(c.Qq), o.KVO(r.x));
925
+ }),
926
+ (v.ɵprov = o.jDH({ token: v, factory: v.ɵfac, providedIn: "root" })),
927
+ m
928
+ );
929
+ })();
930
+ },
931
+ 354: (U, O, t) => {
932
+ t.d(O, { s: () => l });
933
+ var p = t(467),
934
+ o = t(5102),
935
+ c = t(1413),
936
+ r = t(5964),
937
+ a = t(6697),
938
+ v = t(3953),
939
+ m = t(496),
940
+ y = t(1626),
941
+ T = t(9118),
942
+ E = t(3072),
943
+ M = t(2364),
944
+ D = t(9516);
945
+ let l = (() => {
946
+ var i;
947
+ class g {
948
+ constructor(u, h, e, n, f, d, s) {
949
+ (this.publicationService = u),
950
+ (this.http = h),
951
+ (this.purpleService = e),
952
+ (this.kioskConfigService = n),
953
+ (this.sessionService = f),
954
+ (this.deviceClassService = d),
955
+ (this.contextService = s),
956
+ (this.data = []),
957
+ (this.initPdf = new c.B()),
958
+ (this.presenterLoaded = new c.B()),
959
+ (this.subscriptions = []);
960
+ }
961
+ init(u) {
962
+ var h = this;
963
+ return (0, p.A)(function* () {
964
+ (h.kioskConfigData = yield h.kioskConfigService
965
+ .getConfig()
966
+ .toPromise()),
967
+ (h.content =
968
+ yield h.publicationService.selectByContentCriteria(u));
969
+ let e = yield h.getLink(h.content, "pdf_single_page_download");
970
+ yield h.getSinglePageDownloadLinkFromJSON(e);
971
+ let n = yield h.getLink(h.content, "pdf_download");
972
+ h.initPdf.next(n);
973
+ })();
974
+ }
975
+ getLink(u, h) {
976
+ var e = this;
977
+ return (0, p.A)(function* () {
978
+ const n = yield (0, o.GA)(u, e.purpleService);
979
+ if (u && u.properties && !n) {
980
+ let f = Object.keys(u.properties);
981
+ for (let d = 0; d < f.length; d++)
982
+ if (f[d] === h)
983
+ return e.getAttachmentLink(u, u.properties[f[d]]);
984
+ return null;
985
+ }
986
+ })();
987
+ }
988
+ getSinglePageDownloadLinkFromJSON(u) {
989
+ var h = this;
990
+ return (0, p.A)(function* () {
991
+ try {
992
+ const e = h.presenterLoaded
993
+ .pipe(
994
+ (0, r.p)((n) => n),
995
+ (0, a.s)(1)
996
+ )
997
+ .subscribe(
998
+ (function () {
999
+ var n = (0, p.A)(function* (f) {
1000
+ if (f) {
1001
+ const A = yield h.http.get(u).toPromise();
1002
+ var d = WP.instance.getPurpleData().getPages();
1003
+ if (A) {
1004
+ var s = 0;
1005
+ h.data = [];
1006
+ for (const B of d) {
1007
+ for (
1008
+ var C = parseInt(B.pageCount), P = [], S = 0;
1009
+ S < C;
1010
+ S++
1011
+ )
1012
+ P.push(
1013
+ yield h.getAttachmentLink(
1014
+ h.content,
1015
+ A[s],
1016
+ s + 1
1017
+ )
1018
+ ),
1019
+ s++;
1020
+ h.data.push(P);
1021
+ }
1022
+ }
1023
+ }
1024
+ });
1025
+ return function (f) {
1026
+ return n.apply(this, arguments);
1027
+ };
1028
+ })()
1029
+ );
1030
+ h.subscriptions.push(e);
1031
+ } catch (e) {
1032
+ console.error("Error fetching data from JSON link:", e);
1033
+ }
1034
+ })();
1035
+ }
1036
+ getAttachmentLink(u, h, e) {
1037
+ var n = this;
1038
+ return (0, p.A)(function* () {
1039
+ const f = new URL(window.location.href).origin,
1040
+ d = n.contextService.getIsCustomerDomainUsed()
1041
+ ? f
1042
+ : n.purpleService.getPurpleConfig().contentUrl,
1043
+ s = JSON.parse(localStorage.getItem("AppWebConfiguration")).id;
1044
+ let C = ""
1045
+ .concat(d, "/resources/web/attachment/")
1046
+ .concat(s, "/")
1047
+ .concat(u.id, "/")
1048
+ .concat(h);
1049
+ (C += "?preview=".concat(n.contextService.isPreview())),
1050
+ (C += "&deviceId=".concat(localStorage.getItem("deviceId"))),
1051
+ (C += "&deviceClass=".concat(
1052
+ n.deviceClassService.getDeviceClass()
1053
+ ));
1054
+ const P = yield n.sessionService.getReceiptData(u);
1055
+ if (P) {
1056
+ const { receipt: A, providerType: B } = P;
1057
+ (C += "&receipt=".concat(window.encodeURIComponent(A))),
1058
+ (C += "&providerType=".concat(B));
1059
+ }
1060
+ const S = n.sanitize(n.getFileName(u, h, e));
1061
+ return (
1062
+ (C += "&targetFilename=".concat(window.encodeURIComponent(S))),
1063
+ C
1064
+ );
1065
+ })();
1066
+ }
1067
+ getSingleDownloadLink() {
1068
+ return (
1069
+ this.data &&
1070
+ WP.instance &&
1071
+ WP.instance.getScroller() &&
1072
+ this.data[WP.instance.getScroller().getIndex()]
1073
+ );
1074
+ }
1075
+ getDownloadLink() {
1076
+ var u = this;
1077
+ return (0, p.A)(function* () {
1078
+ return yield u.getLink(u.content, "pdf_download");
1079
+ })();
1080
+ }
1081
+ getFileName(u, h, e) {
1082
+ const f = this.kioskConfigData.kioskConfig.downloadFileName,
1083
+ d = h.substr(h.lastIndexOf(".")),
1084
+ s = e ? " - " + e : "";
1085
+ switch (f) {
1086
+ case "publication_issue":
1087
+ return (
1088
+ this.publicationService.currentPublication.name +
1089
+ " - " +
1090
+ u.name +
1091
+ s +
1092
+ d
1093
+ );
1094
+ case "issue":
1095
+ return u.name + s + d;
1096
+ default:
1097
+ return h;
1098
+ }
1099
+ }
1100
+ sanitize(u) {
1101
+ return u
1102
+ .replace(/,/g, "")
1103
+ .replace(/\xe4/g, "ae")
1104
+ .replace(/\xc4/g, "Ae")
1105
+ .replace(/\xf6/g, "oe")
1106
+ .replace(/\xd6/g, "Oe")
1107
+ .replace(/\xfc/g, "ue")
1108
+ .replace(/\xdc/g, "Ue");
1109
+ }
1110
+ ngOnDestroy() {
1111
+ this.subscriptions.forEach((u) => u.unsubscribe());
1112
+ }
1113
+ }
1114
+ return (
1115
+ ((i = g).ɵfac = function (u) {
1116
+ return new (u || i)(
1117
+ v.KVO(m.m),
1118
+ v.KVO(y.Qq),
1119
+ v.KVO(o.Wj),
1120
+ v.KVO(T.x),
1121
+ v.KVO(E.Q),
1122
+ v.KVO(M.S),
1123
+ v.KVO(D.V)
1124
+ );
1125
+ }),
1126
+ (i.ɵprov = v.jDH({ token: i, factory: i.ɵfac, providedIn: "root" })),
1127
+ g
1128
+ );
1129
+ })();
1130
+ },
1131
+ 3072: (U, O, t) => {
1132
+ t.d(O, { Q: () => v });
1133
+ var p = t(467),
1134
+ o = t(4404),
1135
+ r = t(3953),
1136
+ a = t(5102);
1137
+ let v = (() => {
1138
+ var m;
1139
+ class y {
1140
+ constructor(E) {
1141
+ this.purpleService = E;
1142
+ }
1143
+ getReceiptData(E) {
1144
+ var M = this;
1145
+ return (0, p.A)(function* () {
1146
+ return E.purchaseData.purchasedBy.includes(
1147
+ o.PurchaseOption.ENTITLEMENT
1148
+ )
1149
+ ? {
1150
+ receipt: yield M.getAccessToken(),
1151
+ providerType: "entitlement",
1152
+ }
1153
+ : E.purchaseData.purchasedBy.includes(
1154
+ o.PurchaseOption.SUBSCRIPTION_CODE
1155
+ )
1156
+ ? {
1157
+ receipt: (yield M.getSubscriptionCodes()).join(","),
1158
+ providerType: "subscriptionCode",
1159
+ }
1160
+ : null;
1161
+ })();
1162
+ }
1163
+ getAccessToken() {
1164
+ var E = this;
1165
+ return (0, p.A)(function* () {
1166
+ const M =
1167
+ yield E.purpleService.purpleRef.entitlement.getUserData();
1168
+ return null == M ? void 0 : M.accessToken;
1169
+ })();
1170
+ }
1171
+ getSubscriptionCodes() {
1172
+ var E = this;
1173
+ return (0, p.A)(function* () {
1174
+ return (yield E.purpleService.purpleRef.store.getSubscriptionCodes())
1175
+ .subscriptionCodes;
1176
+ })();
1177
+ }
1178
+ }
1179
+ return (
1180
+ ((m = y).ɵfac = function (E) {
1181
+ return new (E || m)(r.KVO(a.Wj));
1182
+ }),
1183
+ (m.ɵprov = r.jDH({ token: m, factory: m.ɵfac, providedIn: "root" })),
1184
+ y
1185
+ );
1186
+ })();
1187
+ },
1188
+ 7967: (U, O, t) => {
1189
+ function p(o, c) {
1190
+ return "object" != typeof o
1191
+ ? 1 === c
1192
+ ? o
1193
+ : o + "S"
1194
+ : 1 === c
1195
+ ? o.singular
1196
+ : o.plural;
1197
+ }
1198
+ t.d(O, { t: () => p });
1199
+ },
1200
+ },
1201
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/files",
3
- "version": "12.29.0",
3
+ "version": "12.31.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {},