@pronto-tools-and-more/files 14.2.0 → 14.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/files/framework-latest/src/default/storefront/buildInfo.json +3 -3
  2. package/files/framework-latest/src/default/storefront/index.html +1 -1
  3. package/files/framework-latest/src/default/storefront/modules/common.js +1 -1
  4. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_base-component_base-datacollection_component_ts-4706f8.js +1 -1
  5. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -1
  6. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_html_html_module_ts.js +1 -1
  7. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_image_image_leandom_component_ts-projects_store-a6979f.js +1 -1
  8. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_issue_issue_module_ts.js +1 -1
  9. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_section_section_module_ts.js +1 -1
  10. package/files/framework-latest/src/default/storefront/modules/main.js +1 -1
  11. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-445afb.js +1 -1
  12. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_ad_ad_module_ts.js +1 -1
  13. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588.js +1 -1
  14. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-body_content-body_module_ts.js +1 -1
  15. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_category_category_module_ts.js +1 -1
  16. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_collection_collection_module_ts.js +1 -1
  17. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_component_module_ts.js +1 -1
  18. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_download-issues_download-issues_module_ts.js +1 -1
  19. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_dropdown_dropdown_module_ts.js +1 -1
  20. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts.js +1 -1
  21. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_issue-search-result_issue-search-result_module_ts.js +1 -1
  22. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_menu_menu_module_ts.js +1 -1
  23. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_publication-completion_publication-completion_module_ts.js +1 -1
  24. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_publication_publication_module_ts.js +1 -1
  25. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_subscription_subscription_module_ts.js +1 -1
  26. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_swiper_swiper_module_ts.js +1 -1
  27. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_toggle_toggle_module_ts.js +1 -1
  28. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_toolbar_toolbar_module_ts.js +1 -1
  29. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_web-presenter_presenter_presenter_module_ts.js +1 -1
  30. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_directive_check-overflow_check-overflow_directive_ts.js +1 -1
  31. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_modal_modal_leandom_component_ts.js +1 -1
  32. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "branch": "HEAD",
3
- "commit": "33d45ba",
4
- "commitDate": "Wed Mar 12 2025 15:06:08 GMT+0000 (Coordinated Universal Time)",
5
- "buildDate": "Wed Mar 12 2025 15:09:46 GMT+0000 (Coordinated Universal Time)",
3
+ "commit": "09b4c9b",
4
+ "commitDate": "Fri Mar 14 2025 15:13:45 GMT+0000 (Coordinated Universal Time)",
5
+ "buildDate": "Fri Mar 14 2025 15:16:27 GMT+0000 (Coordinated Universal Time)",
6
6
  "packageVersion": "3.9.0-SNAPSHOT"
7
7
  }
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8">
5
5
  <title></title>
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
- <meta name="storefront-commit" content="33d45ba">
7
+ <meta name="storefront-commit" content="09b4c9b">
8
8
  <meta name="storefront-version" content="3.9.0-SNAPSHOT">
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>
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["common"],{3472:(y,D,e)=>{e.d(D,{M:()=>E});var p=e(9379),t=e(9758),u=e(8179),n=e(362),v=e.n(n),g=e(4452),c=e(3713),h=e(3953);let E=(()=>{var o;class a extends c.r{getDataFromContext(r=this.context){return this.getSelectionScope()===t.x.USER_ATTRIBUTE?r.userAttributes[this.getParam()]:r[this.getParam()]}hasContextChanged(r){let T=super.hasContextChanged(r);if(!T&&this.isSelectionEnabled()){const x=this.getDataFromContext(),B=this.getDataFromContext(r);T=!v()(x,B)}return T}ngOnDestroy(){super.ngOnDestroy(),this.dataSource&&this.contextService.unregisterDataSource(this.dataSource)}getEntryConfig(r){return r&&r.ad||(0,p.A)({},this.baseConfig.content)}getEntryContext(r){var T;let x=(0,u.uQ)(null!==(T=this.getConfig().dataSource.entryId)&&void 0!==T?T:this.getDataType(),this.context,this.contextService.$functions,this.globalService.getGlobalData());return(0,p.A)((0,p.A)({},this.baseContext),{},{[x]:r})}getConfig(){return this.config||this.baseConfig}isSelectionEnabled(){return!1}stripChildConfigs(r){return"content"in r&&"object"==typeof r.content&&null!==r.content&&(r.content={_uuid:r.content._uuid,condition:r.content.condition}),r}getDataType(){return this.getConfig().dataSource.type}getGroupDataType(r){return r.dataSource.type}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),...(0,g.Kj)(this.baseConfig)].filter(r=>!!r)}}return(o=a).\u0275fac=(()=>{let l;return function(T){return(l||(l=h.xGo(o)))(T||o)}})(),o.\u0275dir=h.FsC({type:o,features:[h.Vt3]}),a})()},3303:(y,D,e)=>{e.d(D,{y:()=>n});var p=e(177),t=e(9733),u=e(3953);let n=(()=>{var v;class g{}return(v=g).\u0275fac=function(h){return new(h||v)},v.\u0275mod=u.$C({type:v}),v.\u0275inj=u.G2t({imports:[p.MD,t.ContentTitleModule]}),g})()},5848:(y,D,e)=>{e.d(D,{Q:()=>g});var p=e(467),t=e(3953),u=e(1210),n=e(5706),v=e(5102);let g=(()=>{var c;class h extends u.${constructor(){super(...arguments),this.purpleService=(0,t.WQX)(v.Wj),this.changeDetectorRef=(0,t.WQX)(t.gRc)}get contextKey(){var o,a,l;return null!==(o=null!==(a=null===(l=this.config)||void 0===l?void 0:l.contextKey)&&void 0!==a?a:this.defaultConfig.contextKey)&&void 0!==o?o:"content"}updatePostWithOptionalData(o,a){var l=this;return(0,p.A)(function*(){const r=yield l.purpleService.getOptionalData(l.catalogContent,o,a);return(0,n.mF)(l.catalogContent)?(l.catalogContent=r,l.catalogContent):(0,n.G4)(l.catalogContent)?(l.bundleContent=(0,n.Ig)(l.catalogContent),l.bundleContent[a]=r,l.bundleContent[a]):void 0})()}hasContentChanged(o,a){return(null==o?void 0:o.id)!==(null==a?void 0:a.id)||this.hasVersionChanged(o,a)}hasVersionChanged(o,a){return(null==o?void 0:o.version)!==(null==a?void 0:a.version)}onConfigChanges(){var o;let a=null===(o=this.context)||void 0===o?void 0:o[this.contextKey];Array.isArray(a)&&(a=a[0]);const l=this.hasContentChanged(this.catalogContent,a)&&!!a;return l&&(this.catalogContent=a),this.changeDetectorRef.markForCheck(),l}isGhost(){var o;return!this.config||!(null!==(o=this.context)&&void 0!==o&&o[this.contextKey])}ngOnDestroy(){super.ngOnDestroy()}getContextKey(){return this.contextKey}}return(c=h).\u0275fac=(()=>{let E;return function(a){return(E||(E=t.xGo(c)))(a||c)}})(),c.\u0275dir=t.FsC({type:c,features:[t.Vt3]}),h})()},9733:(y,D,e)=>{e.r(D),e.d(D,{ContentTitleModule:()=>w,component:()=>O});var p=e(177),t=e(3953);const u={titleMessage:"%s"};var n=e(5848),v=e(9516),g=e(5102),c=e(1652),h=e(8909);const E=i=>[i];function o(i,_){1&i&&(t.j41(0,"h1"),t.EFF(1,"..."),t.k0s())}function a(i,_){if(1&i&&t.nrm(0,"h1",0),2&i){const s=t.XpG(2);t.Y8G("storefrontTranslate",s.config.titleMessage)("storefrontTranslateArgs",t.eq3(2,E,null==s.catalogContent?null:s.catalogContent.name))}}function l(i,_){if(1&i&&t.DNE(0,o,2,0,"h1")(1,a,1,4,"h1",0),2&i){const s=t.XpG();t.vxM(s.ghost?0:1)}}let r=(()=>{var i;class _ extends n.Q{constructor(){super(...arguments),this.elementRef=(0,t.WQX)(t.aKT),this.contextService=(0,t.WQX)(v.V),this.injector=(0,t.WQX)(t.zZn),this.document=(0,t.WQX)(p.qQ),this.purpleService=(0,t.WQX)(g.Wj),this.globalService=(0,t.WQX)(c.d),this.defaultConfig=u,this.type="content-title"}}return(i=_).\u0275fac=(()=>{let s;return function(P){return(s||(s=t.xGo(i)))(P||i)}})(),i.\u0275cmp=t.VBU({type:i,selectors:[["storefront-content-title"]],standalone:!1,features:[t.Vt3],decls:1,vars:1,consts:[[3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(M,P){1&M&&t.DNE(0,l,2,1),2&M&&t.vxM(P.domHelper.leanDom?-1:0)},dependencies:[h.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}),_})();const T=["class","pxp-content-title"],x=i=>[i];function B(i,_){1&i&&(t.j41(0,"h1"),t.EFF(1,"..."),t.k0s())}function W(i,_){if(1&i&&t.nrm(0,"h1",0),2&i){const s=t.XpG(2);t.Y8G("storefrontTranslate",s.config.titleMessage)("storefrontTranslateArgs",t.eq3(2,x,null==s.catalogContent?null:s.catalogContent.name))}}function C(i,_){if(1&i&&t.DNE(0,B,2,0,"h1")(1,W,1,4,"h1",0),2&i){const s=t.XpG();t.vxM(s.ghost?0:1)}}let m=(()=>{var i;class _ extends r{constructor(){super(...arguments),this.translateDirective=(0,t.WQX)(h.M)}ngAfterViewInit(){setTimeout(()=>{var M,P;this.translateDirective.applyTranslation(null===(M=this.config)||void 0===M?void 0:M.titleMessage,[null===(P=this.catalogContent)||void 0===P?void 0:P.name])})}}return(i=_).\u0275fac=(()=>{let s;return function(P){return(s||(s=t.xGo(i)))(P||i)}})(),i.\u0275cmp=t.VBU({type:i,selectors:[["h1",8,"pxp-content-title"]],standalone:!1,features:[t.nM4([h.M]),t.Vt3],attrs:T,decls:1,vars:1,consts:[[3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(M,P){1&M&&t.DNE(0,C,2,1),2&M&&t.vxM(P.domHelper.leanDom?-1:0)},dependencies:[h.M],styles:[".pxp-content-title{margin-top:var(--contentHeaderMarginTop);margin-bottom:var(--contentHeaderMarginBottom);padding-top:var(--contentHeaderPaddingVert);padding-bottom:var(--contentHeaderPaddingVert);font-size:1.5rem}\n"],encapsulation:2}),_})(),w=(()=>{var i;class _{}return(i=_).\u0275fac=function(M){return new(M||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=t.G2t({imports:[p.MD]}),_})();const O={component:r,leanDomComponent:m}},1802:(y,D,e)=>{e.d(D,{c:()=>h});var p=e(9379),t=e(3953),u=e(1210),n=e(3331),v=e(9758),g=e(8075),c=e(8909);let h=(()=>{var E;class o extends u.${constructor(){super(...arguments),this.router=(0,t.WQX)(n.Ix),this.type="switch",this.defaultConfig={}}ngOnInit(){this.config=(0,p.A)({},this.baseConfig),this.checked=this.config.initialValue,super.ngOnInit(),this.contextService.viewContext$.subscribe(l=>{const r=this.config.paramScope===v.x.USER_ATTRIBUTE?l.userAttributes[this.config.param]:l[this.config.param];r&&(this.checked="true"===r)})}isChecked(){return this.checked}toggle(){this.setChecked(!this.checked)}setChecked(l){this.config.paramScope===v.x.USER_ATTRIBUTE?this.contextService.setUserAttribute(this.config.param,"".concat(l)):(0,g.CV)(this.router,{[this.config.param]:l})}}return(E=o).\u0275fac=(()=>{let a;return function(r){return(a||(a=t.xGo(E)))(r||E)}})(),E.\u0275cmp=t.VBU({type:E,selectors:[["storefront-switch"]],hostVars:2,hostBindings:function(l,r){2&l&&t.AVh("checked",r.checked)},standalone:!1,features:[t.Vt3],decls:4,vars:2,consts:[[1,"label",3,"storefrontTranslate"],[1,"switch"],["type","checkbox",3,"change","checked"]],template:function(l,r){1&l&&(t.nrm(0,"label",0),t.j41(1,"label",1)(2,"input",2),t.bIt("change",function(){return r.toggle()}),t.k0s(),t.nrm(3,"span"),t.k0s()),2&l&&(t.Y8G("storefrontTranslate",r.config.label),t.R7$(2),t.Y8G("checked",r.isChecked()))},dependencies:[c.M],styles:['storefront-switch,.pxp-switch{align-items:center;display:flex}storefront-switch .label,.pxp-switch .label{margin:0 var(--gutter)}storefront-switch .switch,.pxp-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,.pxp-switch .switch>span{display:block;width:100%;height:100%;border-radius:var(--switchBorderRadius)}storefront-switch .switch>span:before,storefront-switch .switch>span:after,.pxp-switch .switch>span:before,.pxp-switch .switch>span:after{content:"";cursor:pointer;position:absolute}storefront-switch .switch>span:before,.pxp-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,.pxp-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],.pxp-switch .switch>input[type=checkbox]{opacity:0;position:absolute}storefront-switch .switch>input[type=checkbox]:checked~span:before,.pxp-switch .switch>input[type=checkbox]:checked~span:before{transform:scale(0);opacity:.7}storefront-switch .switch>input[type=checkbox]:checked~span:after,.pxp-switch .switch>input[type=checkbox]:checked~span:after{transform:translate(100%)}\n'],encapsulation:2}),o})()},2960:(y,D,e)=>{e.d(D,{q:()=>v});var p=e(1802),t=e(3953),u=e(8909);const n=["class","pxp-switch"];let v=(()=>{var g;class c extends p.c{}return(g=c).\u0275fac=(()=>{let h;return function(o){return(h||(h=t.xGo(g)))(o||g)}})(),g.\u0275cmp=t.VBU({type:g,selectors:[["div",8,"pxp-switch"]],standalone:!1,features:[t.Vt3],attrs:n,decls:4,vars:2,consts:[[1,"label",3,"storefrontTranslate"],[1,"switch"],["type","checkbox",3,"change","checked"]],template:function(E,o){1&E&&(t.nrm(0,"label",0),t.j41(1,"label",1)(2,"input",2),t.bIt("change",function(){return o.toggle()}),t.k0s(),t.nrm(3,"span"),t.k0s()),2&E&&(t.Y8G("storefrontTranslate",o.config.label),t.R7$(2),t.Y8G("checked",o.isChecked()))},dependencies:[u.M],styles:['storefront-switch,.pxp-switch{align-items:center;display:flex}storefront-switch .label,.pxp-switch .label{margin:0 var(--gutter)}storefront-switch .switch,.pxp-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,.pxp-switch .switch>span{display:block;width:100%;height:100%;border-radius:var(--switchBorderRadius)}storefront-switch .switch>span:before,storefront-switch .switch>span:after,.pxp-switch .switch>span:before,.pxp-switch .switch>span:after{content:"";cursor:pointer;position:absolute}storefront-switch .switch>span:before,.pxp-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,.pxp-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],.pxp-switch .switch>input[type=checkbox]{opacity:0;position:absolute}storefront-switch .switch>input[type=checkbox]:checked~span:before,.pxp-switch .switch>input[type=checkbox]:checked~span:before{transform:scale(0);opacity:.7}storefront-switch .switch>input[type=checkbox]:checked~span:after,.pxp-switch .switch>input[type=checkbox]:checked~span:after{transform:translate(100%)}\n'],encapsulation:2}),c})()},9645:(y,D,e)=>{e.r(D),e.d(D,{SwitchModule:()=>v,component:()=>g});var p=e(177),t=e(1802),u=e(2960),n=e(3953);let v=(()=>{var c;class h{}return(c=h).\u0275fac=function(o){return new(o||c)},c.\u0275mod=n.$C({type:c}),c.\u0275inj=n.G2t({imports:[p.MD]}),h})();const g={component:t.c,leanDomComponent:u.q}},8301:(y,D,e)=>{e.d(D,{d:()=>u});var p=e(177),t=e(3953);let u=(()=>{var n;class v{}return(n=v).\u0275fac=function(c){return new(c||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[p.MD]}),v})()},2316:(y,D,e)=>{e.r(D),e.d(D,{ModalComponent:()=>_});var p=e(9379),t=e(467),u=e(177),n=e(3953),v=e(9079),g=e(3331),c=e(5102),h=e(9745),E=e(8251),o=e(610),a=e(3178),l=e(2962),r=e(7879),T=e(6080),x=e(8301),B=e(2868),W=e(680);const C=["template"],m=["scrollContainer"],w=["container"];function O(s,M){}function i(s,M){1&s&&n.DNE(0,O,0,0,"ng-template",6,2,n.C5r),2&s&&n.Y8G("baseConfig",M.$implicit)}let _=(()=>{var s;class M extends T.v{constructor(){super(...arguments),this.document=(0,n.WQX)(u.qQ),this.platformId=(0,n.WQX)(n.Agw),this.purpleService=(0,n.WQX)(c.Wj),this.purpleEnv=(0,n.WQX)(r.r6),this.renderer=(0,n.WQX)(n.sFG),this.router=(0,n.WQX)(g.Ix),this.context={},this.isModal=!0}static isValidAnimation(d){return Object.values(h.L).includes(d)}ngOnInit(){this.contextService.closeModalSubject.pipe((0,v.pQ)(this.destroyRef)).subscribe(b=>{this.elementRef.nativeElement.contains(b)?this.onClickClose():this.contextService.closeModalCompleteSubject.next(!1)}),this.hasNavigated=this.contextService.navigationCount>0,this.renderer.addClass(this.document.body,"no-scroll");const d=this.store.snapshot(this.route.params),f=d&&d.animation;this.animation=f&&M.isValidAnimation(f)?f:h.L.SLIDE_IN}ngAfterViewInit(){var d=()=>super.ngOnInit,f=this;return(0,t.A)(function*(){yield(0,a.wR)(1);const b=getComputedStyle(f.container.nativeElement),S=()=>{d().call(f),f.initialized=!0},A=parseFloat(b.transitionDuration);A>0&&f.animation!==h.L.POP_UP?setTimeout(S,A):S(),f.elementRef.nativeElement.classList.add("visible"),f.displayMode=yield f.purpleService.getDisplayMode()})()}ngOnDestroy(){this.renderer.removeClass(this.document.body,"no-scroll"),this.contextService.clearOutletData((0,l.kO)(this.elementRef.nativeElement))}getPath(){return this.route.snapshot.params.id}getTrackingConfig(d){return(0,p.A)((0,p.A)({},super.getTrackingConfig(d)),{},{popup:!0})}onConfigReceived(){}onClick(){this.initialized&&this.onClickClose()}onClickClose(){var d=this;return(0,t.A)(function*(){d.elementRef.nativeElement.classList.remove("visible");const f=(0,u.UE)(d.platformId)?getComputedStyle(d.container.nativeElement):{},b=()=>{d.store.dispatch((0,o.k4)({url:window.location.href,key:"POPUP_CLOSE_CLICKED",params:{popup:d.viewConfig&&d.viewConfig.name}})),!d.hasNavigated&&(0,a.dg)(d.displayMode)?d.purpleService.closeView():d.router.navigate([{outlets:{modal:null}}],{queryParamsHandling:"merge",replaceUrl:!0}),d.contextService.closeModalCompleteSubject.next(!0)};parseFloat(f.transitionDuration)>0?(0,l.L$)(d.container.nativeElement,"transitionend",b):b()})()}onClickContent(d){d.stopPropagation()}update(){return(0,t.A)(function*(){})()}}return(s=M).\u0275fac=(()=>{let P;return function(f){return(P||(P=n.xGo(s)))(f||s)}})(),s.\u0275cmp=n.VBU({type:s,selectors:[["storefront-modal"]],viewQuery:function(d,f){if(1&d&&(n.GBs(C,7,n.c1b),n.GBs(m,7,n.aKT),n.GBs(w,7,n.aKT)),2&d){let b;n.mGM(b=n.lsd())&&(f.template=b.first),n.mGM(b=n.lsd())&&(f.scrollContainer=b.first),n.mGM(b=n.lsd())&&(f.container=b.first)}},hostVars:1,hostBindings:function(d,f){1&d&&n.bIt("click",function(){return f.onClick()}),2&d&&n.BMQ("animation",f.animation)},features:[n.Jv_([E.B]),n.Vt3],decls:7,vars:4,consts:[["container",""],["scrollContainer",""],["viewChild",""],[3,"click"],[1,"icon","icon-close",3,"click"],["storefrontCheckOverflowTarget","self",1,"modal-content",3,"storefrontCheckOverflow"],[3,"pxpDynamicComponent","baseConfig"]],template:function(d,f){if(1&d){const b=n.RV6();n.j41(0,"div",3,0),n.bIt("click",function(A){return n.eBV(b),n.Njj(f.onClickContent(A))}),n.j41(2,"button",4),n.bIt("click",function(){return n.eBV(b),n.Njj(f.onClickClose())}),n.k0s(),n.j41(3,"div",5,1),n.Z7z(5,i,2,1,null,6,n.Vm6),n.k0s()()}2&d&&(n.ZvI("modal-container ",f.viewConfig&&f.viewConfig.name,""),n.R7$(3),n.Y8G("storefrontCheckOverflow","vertical"),n.R7$(2),n.Dyx(f.children))},dependencies:[x.d,W.G,B.q],styles:["storefront-modal,.pxp-modal{position:fixed;height:auto;bottom:0;width:100%;left:0;top:0;background:transparent;z-index:21;overflow:hidden;display:flex;justify-content:center;align-items:center;transition:background-color 60ms ease-in}storefront-modal[animation=POP_UP] .modal-container,.pxp-modal[animation=POP_UP] .modal-container{min-width:200px;min-height:200px;max-width:90%;max-height:90%;width:auto;transform:scale(0);position:relative}storefront-modal[animation=POP_UP] .modal-container .modal-content,.pxp-modal[animation=POP_UP] .modal-container .modal-content{padding:var(--modalPadding);padding-bottom:var(--modalPaddingBottom)}storefront-modal[animation=POP_UP].visible,.pxp-modal[animation=POP_UP].visible{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:transparent}storefront-modal[animation=POP_UP].visible .modal-container,.pxp-modal[animation=POP_UP].visible .modal-container{transform:scale(1);top:auto;left:auto}storefront-modal.visible,.pxp-modal.visible{opacity:1;transition:background-color 60ms ease-out;background-color:#00000080}storefront-modal.visible .modal-container,.pxp-modal.visible .modal-container{transition:transform .2s ease-out 60ms;transform:translateY(0)}storefront-modal .modal-content,.pxp-modal .modal-content{overflow:auto}storefront-modal .modal-content>storefront-element:last-child,storefront-modal .modal-content>div:last-child,.pxp-modal .modal-content>storefront-element:last-child,.pxp-modal .modal-content>div:last-child{margin-bottom:var(--modalPaddingBottom)}storefront-modal .modal-container,.pxp-modal .modal-container{position:absolute;top:var(--appBarHeight);bottom:0;height:auto;width:100%;background-color:var(--modalBgColor);overflow:auto;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .15s ease-in}storefront-modal .modal-container>button.icon-close,.pxp-modal .modal-container>button.icon-close{align-self:flex-end;width:32px;height:32px;flex-shrink:0;font-size:18px;margin:var(--gutter)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom{-webkit-mask-image:linear-gradient(to bottom,black 0%,black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#000,#000 calc(100% - 2 * var(--gutter)),#0000)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-top,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-top{-webkit-mask-image:linear-gradient(to top,black 0%,black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to top,#000,#000 calc(100% - 2 * var(--gutter)),#0000)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom.scrollable-top,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom.scrollable-top{-webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,0) 0%,black calc(2 * var(--gutter)),black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#0000,#000 calc(2 * var(--gutter)),#000 calc(100% - 2 * var(--gutter)),#0000)}\n"],encapsulation:2}),M})()},2364:(y,D,e)=>{e.d(D,{S:()=>t});var p=e(3953);let t=(()=>{var u;class n{constructor(){this.data=[{identifier:"phone",minScreenWidth:null},{identifier:"tablet_small",minScreenWidth:533},{identifier:"tablet_large",minScreenWidth:720}]}init(){}getDeviceClass(){const c=this.data.reduce((h,E)=>window.innerWidth>=E.minScreenWidth?E:h,null);return c&&c.identifier}}return(u=n).\u0275fac=function(g){return new(g||u)},u.\u0275prov=p.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),n})()},354:(y,D,e)=>{e.d(D,{s:()=>T});var p=e(467),t=e(3953),u=e(496),n=e(5102),v=e(9118),g=e(3072),c=e(1413),h=e(4843),E=e(2364),o=e(1626),a=e(5964),l=e(6697),r=e(7879);let T=(()=>{var x;class B{constructor(){this.publicationService=(0,t.WQX)(u.m),this.http=(0,t.WQX)(o.Qq),this.purpleService=(0,t.WQX)(n.Wj),this.kioskConfigService=(0,t.WQX)(v.x),this.sessionService=(0,t.WQX)(g.Q),this.deviceClassService=(0,t.WQX)(E.S),this.appData=(0,t.WQX)(r.fj),this.data=[],this.initPdf=new c.B,this.presenterLoaded=new c.B,this.subscriptions=[]}init(C){var m=this;return(0,p.A)(function*(){const[w,O]=yield Promise.all([(0,h._)(m.kioskConfigService.getConfig()),m.publicationService.selectByContentCriteria(C)]);m.kioskConfigData=w,m.content=O;const[i,_]=yield Promise.all([m.getLink(m.content,"pdf_single_page_download"),m.getLink(m.content,"pdf_download")]);yield m.getSinglePageDownloadLinkFromJSON(i),m.initPdf.next(_)})()}getLink(C,m){var w=this;return(0,p.A)(function*(){const O=yield(0,n.GA)(C,w.purpleService);if(C&&C.properties&&!O){let i=Object.keys(C.properties);for(let _=0;_<i.length;_++)if(i[_]===m)return w.getAttachmentLink(C,C.properties[i[_]]);return null}})()}getSinglePageDownloadLinkFromJSON(C){var m=this;return(0,p.A)(function*(){try{const w=m.presenterLoaded.pipe((0,a.p)(O=>O),(0,l.s)(1)).subscribe(function(){var O=(0,p.A)(function*(i){if(i){const f=yield(0,h._)(m.http.get(C));var _=WP.instance.getPurpleData().getPages();if(f){var s=0;m.data=[];for(const b of _){for(var M=parseInt(b.pageCount),P=[],d=0;d<M;d++)P.push(yield m.getAttachmentLink(m.content,f[s],s+1)),s++;m.data.push(P)}}}});return function(i){return O.apply(this,arguments)}}());m.subscriptions.push(w)}catch(w){console.error("Error fetching data from JSON link:",w)}})()}getAttachmentLink(C,m,w){var O=this;return(0,p.A)(function*(){const i=JSON.parse(localStorage.getItem("AppWebConfiguration")).id;let _="".concat(O.appData.baseUrl,"/resources/web/attachment/").concat(i,"/").concat(C.id,"/").concat(m);_+="?deviceId=".concat(localStorage.getItem("deviceId")),_+="&deviceClass=".concat(O.deviceClassService.getDeviceClass()),O.appData.preview&&(_+="&preview=true");const s=yield O.sessionService.getReceiptData(C);if(s){const{receipt:P,providerType:d}=s;_+="&receipt=".concat(window.encodeURIComponent(P)),_+="&providerType=".concat(d)}const M=O.sanitize(O.getFileName(C,m,w));return _+="&targetFilename=".concat(window.encodeURIComponent(M)),_})()}getSingleDownloadLink(){return this.data&&WP.instance&&WP.instance.getScroller()&&this.data[WP.instance.getScroller().getIndex()]}getDownloadLink(){var C=this;return(0,p.A)(function*(){return yield C.getLink(C.content,"pdf_download")})()}getFileName(C,m,w){const i=this.kioskConfigData.kioskConfig.downloadFileName,_=m.substr(m.lastIndexOf(".")),s=w?" - "+w:"";switch(i){case"publication_issue":return this.publicationService.currentPublication.name+" - "+C.name+s+_;case"issue":return C.name+s+_;default:return m}}sanitize(C){return C.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(C=>C.unsubscribe())}}return(x=B).\u0275fac=function(C){return new(C||x)},x.\u0275prov=t.jDH({token:x,factory:x.\u0275fac,providedIn:"root"}),B})()},3072:(y,D,e)=>{e.d(D,{Q:()=>g});var p=e(467),t=e(3953),u=e(4404),v=e(5102);let g=(()=>{var c;class h{constructor(){this.purpleService=(0,t.WQX)(v.Wj)}getReceiptData(o){var a=this;return(0,p.A)(function*(){return o.purchaseData.purchasedBy.includes(u.PurchaseOption.ENTITLEMENT)?{receipt:yield a.getAccessToken(),providerType:"entitlement"}:o.purchaseData.purchasedBy.includes(u.PurchaseOption.SUBSCRIPTION_CODE)?{receipt:(yield a.getSubscriptionCodes()).join(","),providerType:"subscriptionCode"}:null})()}getAccessToken(){var o=this;return(0,p.A)(function*(){const a=yield o.purpleService.purpleRef.entitlement.getUserData();return null==a?void 0:a.accessToken})()}getSubscriptionCodes(){var o=this;return(0,p.A)(function*(){return(yield o.purpleService.purpleRef.store.getSubscriptionCodes()).subscriptionCodes})()}}return(c=h).\u0275fac=function(o){return new(o||c)},c.\u0275prov=t.jDH({token:c,factory:c.\u0275fac,providedIn:"root"}),h})()},7967:(y,D,e)=>{function p(t,u){return"object"!=typeof t?1===u?t:t+"S":1===u?t.singular:t.plural}e.d(D,{t:()=>p})}}]);
1
+ "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["common"],{3472:(y,D,e)=>{e.d(D,{M:()=>E});var p=e(9379),t=e(9758),u=e(8179),n=e(362),v=e.n(n),g=e(4452),c=e(3713),h=e(3953);let E=(()=>{var o;class a extends c.r{getDataFromContext(r=this.context){return this.getSelectionScope()===t.x.USER_ATTRIBUTE?r.userAttributes[this.getParam()]:r[this.getParam()]}hasContextChanged(r){let T=super.hasContextChanged(r);if(!T&&this.isSelectionEnabled()){const x=this.getDataFromContext(),B=this.getDataFromContext(r);T=!v()(x,B)}return T}ngOnDestroy(){super.ngOnDestroy(),this.dataSource&&this.contextService.unregisterDataSource(this.dataSource)}getEntryConfig(r){return r&&r.ad||(0,p.A)({},this.mutableBaseConfig().content)}getEntryContext(r){var T;let x=(0,u.uQ)(null!==(T=this.getConfig().dataSource.entryId)&&void 0!==T?T:this.getDataType(),this.context,this.contextService.$functions,this.globalService.getGlobalData());return(0,p.A)((0,p.A)({},this.mutableBaseContext()),{},{[x]:r})}getConfig(){return this.config||this.mutableBaseConfig()}isSelectionEnabled(){return!1}stripChildConfigs(r){return"content"in r&&"object"==typeof r.content&&null!==r.content&&(r.content={_uuid:r.content._uuid,condition:r.content.condition}),r}getDataType(){return this.getConfig().dataSource.type}getGroupDataType(r){return r.dataSource.type}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),...(0,g.Kj)(this.mutableBaseConfig())].filter(r=>!!r)}}return(o=a).\u0275fac=(()=>{let l;return function(T){return(l||(l=h.xGo(o)))(T||o)}})(),o.\u0275dir=h.FsC({type:o,features:[h.Vt3]}),a})()},3303:(y,D,e)=>{e.d(D,{y:()=>n});var p=e(177),t=e(9733),u=e(3953);let n=(()=>{var v;class g{}return(v=g).\u0275fac=function(h){return new(h||v)},v.\u0275mod=u.$C({type:v}),v.\u0275inj=u.G2t({imports:[p.MD,t.ContentTitleModule]}),g})()},5848:(y,D,e)=>{e.d(D,{Q:()=>g});var p=e(467),t=e(3953),u=e(1210),n=e(5706),v=e(5102);let g=(()=>{var c;class h extends u.${constructor(){super(...arguments),this.purpleService=(0,t.WQX)(v.Wj),this.changeDetectorRef=(0,t.WQX)(t.gRc)}get contextKey(){var o,a,l;return null!==(o=null!==(a=null===(l=this.config)||void 0===l?void 0:l.contextKey)&&void 0!==a?a:this.defaultConfig.contextKey)&&void 0!==o?o:"content"}updatePostWithOptionalData(o,a){var l=this;return(0,p.A)(function*(){const r=yield l.purpleService.getOptionalData(l.catalogContent,o,a);return(0,n.mF)(l.catalogContent)?(l.catalogContent=r,l.catalogContent):(0,n.G4)(l.catalogContent)?(l.bundleContent=(0,n.Ig)(l.catalogContent),l.bundleContent[a]=r,l.bundleContent[a]):void 0})()}hasContentChanged(o,a){return(null==o?void 0:o.id)!==(null==a?void 0:a.id)||this.hasVersionChanged(o,a)}hasVersionChanged(o,a){return(null==o?void 0:o.version)!==(null==a?void 0:a.version)}onConfigChanges(){var o;let a=null===(o=this.context)||void 0===o?void 0:o[this.contextKey];Array.isArray(a)&&(a=a[0]);const l=this.hasContentChanged(this.catalogContent,a)&&!!a;return l&&(this.catalogContent=a),this.changeDetectorRef.markForCheck(),l}isGhost(){var o;return!this.config||!(null!==(o=this.context)&&void 0!==o&&o[this.contextKey])}ngOnDestroy(){super.ngOnDestroy()}getContextKey(){return this.contextKey}}return(c=h).\u0275fac=(()=>{let E;return function(a){return(E||(E=t.xGo(c)))(a||c)}})(),c.\u0275dir=t.FsC({type:c,features:[t.Vt3]}),h})()},9733:(y,D,e)=>{e.r(D),e.d(D,{ContentTitleModule:()=>w,component:()=>O});var p=e(177),t=e(3953);const u={titleMessage:"%s"};var n=e(5848),v=e(9516),g=e(5102),c=e(1652),h=e(8909);const E=i=>[i];function o(i,_){1&i&&(t.j41(0,"h1"),t.EFF(1,"..."),t.k0s())}function a(i,_){if(1&i&&t.nrm(0,"h1",0),2&i){const s=t.XpG(2);t.Y8G("storefrontTranslate",s.config.titleMessage)("storefrontTranslateArgs",t.eq3(2,E,null==s.catalogContent?null:s.catalogContent.name))}}function l(i,_){if(1&i&&t.DNE(0,o,2,0,"h1")(1,a,1,4,"h1",0),2&i){const s=t.XpG();t.vxM(s.ghost?0:1)}}let r=(()=>{var i;class _ extends n.Q{constructor(){super(...arguments),this.elementRef=(0,t.WQX)(t.aKT),this.contextService=(0,t.WQX)(v.V),this.injector=(0,t.WQX)(t.zZn),this.document=(0,t.WQX)(p.qQ),this.purpleService=(0,t.WQX)(g.Wj),this.globalService=(0,t.WQX)(c.d),this.defaultConfig=u,this.type="content-title"}}return(i=_).\u0275fac=(()=>{let s;return function(P){return(s||(s=t.xGo(i)))(P||i)}})(),i.\u0275cmp=t.VBU({type:i,selectors:[["storefront-content-title"]],standalone:!1,features:[t.Vt3],decls:1,vars:1,consts:[[3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(M,P){1&M&&t.DNE(0,l,2,1),2&M&&t.vxM(P.domHelper.leanDom?-1:0)},dependencies:[h.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}),_})();const T=["class","pxp-content-title"],x=i=>[i];function B(i,_){1&i&&(t.j41(0,"h1"),t.EFF(1,"..."),t.k0s())}function W(i,_){if(1&i&&t.nrm(0,"h1",0),2&i){const s=t.XpG(2);t.Y8G("storefrontTranslate",s.config.titleMessage)("storefrontTranslateArgs",t.eq3(2,x,null==s.catalogContent?null:s.catalogContent.name))}}function C(i,_){if(1&i&&t.DNE(0,B,2,0,"h1")(1,W,1,4,"h1",0),2&i){const s=t.XpG();t.vxM(s.ghost?0:1)}}let m=(()=>{var i;class _ extends r{constructor(){super(...arguments),this.translateDirective=(0,t.WQX)(h.M)}ngAfterViewInit(){setTimeout(()=>{var M,P;this.translateDirective.applyTranslation(null===(M=this.config)||void 0===M?void 0:M.titleMessage,[null===(P=this.catalogContent)||void 0===P?void 0:P.name])})}}return(i=_).\u0275fac=(()=>{let s;return function(P){return(s||(s=t.xGo(i)))(P||i)}})(),i.\u0275cmp=t.VBU({type:i,selectors:[["h1",8,"pxp-content-title"]],standalone:!1,features:[t.nM4([h.M]),t.Vt3],attrs:T,decls:1,vars:1,consts:[[3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(M,P){1&M&&t.DNE(0,C,2,1),2&M&&t.vxM(P.domHelper.leanDom?-1:0)},dependencies:[h.M],styles:[".pxp-content-title{margin-top:var(--contentHeaderMarginTop);margin-bottom:var(--contentHeaderMarginBottom);padding-top:var(--contentHeaderPaddingVert);padding-bottom:var(--contentHeaderPaddingVert);font-size:1.5rem}\n"],encapsulation:2}),_})(),w=(()=>{var i;class _{}return(i=_).\u0275fac=function(M){return new(M||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=t.G2t({imports:[p.MD]}),_})();const O={component:r,leanDomComponent:m}},1802:(y,D,e)=>{e.d(D,{c:()=>h});var p=e(9379),t=e(3953),u=e(1210),n=e(3331),v=e(9758),g=e(8075),c=e(8909);let h=(()=>{var E;class o extends u.${constructor(){super(...arguments),this.router=(0,t.WQX)(n.Ix),this.type="switch",this.defaultConfig={}}ngOnInit(){this.config=(0,p.A)({},this.mutableBaseConfig()),this.checked=this.config.initialValue,super.ngOnInit(),this.contextService.viewContext$.subscribe(l=>{const r=this.config.paramScope===v.x.USER_ATTRIBUTE?l.userAttributes[this.config.param]:l[this.config.param];r&&(this.checked="true"===r)})}isChecked(){return this.checked}toggle(){this.setChecked(!this.checked)}setChecked(l){this.config.paramScope===v.x.USER_ATTRIBUTE?this.contextService.setUserAttribute(this.config.param,"".concat(l)):(0,g.CV)(this.router,{[this.config.param]:l})}}return(E=o).\u0275fac=(()=>{let a;return function(r){return(a||(a=t.xGo(E)))(r||E)}})(),E.\u0275cmp=t.VBU({type:E,selectors:[["storefront-switch"]],hostVars:2,hostBindings:function(l,r){2&l&&t.AVh("checked",r.checked)},standalone:!1,features:[t.Vt3],decls:4,vars:2,consts:[[1,"label",3,"storefrontTranslate"],[1,"switch"],["type","checkbox",3,"change","checked"]],template:function(l,r){1&l&&(t.nrm(0,"label",0),t.j41(1,"label",1)(2,"input",2),t.bIt("change",function(){return r.toggle()}),t.k0s(),t.nrm(3,"span"),t.k0s()),2&l&&(t.Y8G("storefrontTranslate",r.config.label),t.R7$(2),t.Y8G("checked",r.isChecked()))},dependencies:[c.M],styles:['storefront-switch,.pxp-switch{align-items:center;display:flex}storefront-switch .label,.pxp-switch .label{margin:0 var(--gutter)}storefront-switch .switch,.pxp-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,.pxp-switch .switch>span{display:block;width:100%;height:100%;border-radius:var(--switchBorderRadius)}storefront-switch .switch>span:before,storefront-switch .switch>span:after,.pxp-switch .switch>span:before,.pxp-switch .switch>span:after{content:"";cursor:pointer;position:absolute}storefront-switch .switch>span:before,.pxp-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,.pxp-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],.pxp-switch .switch>input[type=checkbox]{opacity:0;position:absolute}storefront-switch .switch>input[type=checkbox]:checked~span:before,.pxp-switch .switch>input[type=checkbox]:checked~span:before{transform:scale(0);opacity:.7}storefront-switch .switch>input[type=checkbox]:checked~span:after,.pxp-switch .switch>input[type=checkbox]:checked~span:after{transform:translate(100%)}\n'],encapsulation:2}),o})()},2960:(y,D,e)=>{e.d(D,{q:()=>v});var p=e(1802),t=e(3953),u=e(8909);const n=["class","pxp-switch"];let v=(()=>{var g;class c extends p.c{}return(g=c).\u0275fac=(()=>{let h;return function(o){return(h||(h=t.xGo(g)))(o||g)}})(),g.\u0275cmp=t.VBU({type:g,selectors:[["div",8,"pxp-switch"]],standalone:!1,features:[t.Vt3],attrs:n,decls:4,vars:2,consts:[[1,"label",3,"storefrontTranslate"],[1,"switch"],["type","checkbox",3,"change","checked"]],template:function(E,o){1&E&&(t.nrm(0,"label",0),t.j41(1,"label",1)(2,"input",2),t.bIt("change",function(){return o.toggle()}),t.k0s(),t.nrm(3,"span"),t.k0s()),2&E&&(t.Y8G("storefrontTranslate",o.config.label),t.R7$(2),t.Y8G("checked",o.isChecked()))},dependencies:[u.M],styles:['storefront-switch,.pxp-switch{align-items:center;display:flex}storefront-switch .label,.pxp-switch .label{margin:0 var(--gutter)}storefront-switch .switch,.pxp-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,.pxp-switch .switch>span{display:block;width:100%;height:100%;border-radius:var(--switchBorderRadius)}storefront-switch .switch>span:before,storefront-switch .switch>span:after,.pxp-switch .switch>span:before,.pxp-switch .switch>span:after{content:"";cursor:pointer;position:absolute}storefront-switch .switch>span:before,.pxp-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,.pxp-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],.pxp-switch .switch>input[type=checkbox]{opacity:0;position:absolute}storefront-switch .switch>input[type=checkbox]:checked~span:before,.pxp-switch .switch>input[type=checkbox]:checked~span:before{transform:scale(0);opacity:.7}storefront-switch .switch>input[type=checkbox]:checked~span:after,.pxp-switch .switch>input[type=checkbox]:checked~span:after{transform:translate(100%)}\n'],encapsulation:2}),c})()},9645:(y,D,e)=>{e.r(D),e.d(D,{SwitchModule:()=>v,component:()=>g});var p=e(177),t=e(1802),u=e(2960),n=e(3953);let v=(()=>{var c;class h{}return(c=h).\u0275fac=function(o){return new(o||c)},c.\u0275mod=n.$C({type:c}),c.\u0275inj=n.G2t({imports:[p.MD]}),h})();const g={component:t.c,leanDomComponent:u.q}},8301:(y,D,e)=>{e.d(D,{d:()=>u});var p=e(177),t=e(3953);let u=(()=>{var n;class v{}return(n=v).\u0275fac=function(c){return new(c||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[p.MD]}),v})()},2316:(y,D,e)=>{e.r(D),e.d(D,{ModalComponent:()=>_});var p=e(9379),t=e(467),u=e(177),n=e(3953),v=e(9079),g=e(3331),c=e(5102),h=e(9745),E=e(8251),o=e(610),a=e(3178),l=e(2962),r=e(7879),T=e(6080),x=e(8301),B=e(2868),W=e(680);const C=["template"],m=["scrollContainer"],w=["container"];function O(s,M){}function i(s,M){1&s&&n.DNE(0,O,0,0,"ng-template",6,2,n.C5r),2&s&&n.Y8G("baseConfig",M.$implicit)}let _=(()=>{var s;class M extends T.v{constructor(){super(...arguments),this.document=(0,n.WQX)(u.qQ),this.platformId=(0,n.WQX)(n.Agw),this.purpleService=(0,n.WQX)(c.Wj),this.purpleEnv=(0,n.WQX)(r.r6),this.renderer=(0,n.WQX)(n.sFG),this.router=(0,n.WQX)(g.Ix),this.context={},this.isModal=!0}static isValidAnimation(d){return Object.values(h.L).includes(d)}ngOnInit(){this.contextService.closeModalSubject.pipe((0,v.pQ)(this.destroyRef)).subscribe(b=>{this.elementRef.nativeElement.contains(b)?this.onClickClose():this.contextService.closeModalCompleteSubject.next(!1)}),this.hasNavigated=this.contextService.navigationCount>0,this.renderer.addClass(this.document.body,"no-scroll");const d=this.store.snapshot(this.route.params),f=d&&d.animation;this.animation=f&&M.isValidAnimation(f)?f:h.L.SLIDE_IN}ngAfterViewInit(){var d=()=>super.ngOnInit,f=this;return(0,t.A)(function*(){yield(0,a.wR)(1);const b=getComputedStyle(f.container.nativeElement),S=()=>{d().call(f),f.initialized=!0},A=parseFloat(b.transitionDuration);A>0&&f.animation!==h.L.POP_UP?setTimeout(S,A):S(),f.elementRef.nativeElement.classList.add("visible"),f.displayMode=yield f.purpleService.getDisplayMode()})()}ngOnDestroy(){this.renderer.removeClass(this.document.body,"no-scroll"),this.contextService.clearOutletData((0,l.kO)(this.elementRef.nativeElement))}getPath(){return this.route.snapshot.params.id}getTrackingConfig(d){return(0,p.A)((0,p.A)({},super.getTrackingConfig(d)),{},{popup:!0})}onConfigReceived(){}onClick(){this.initialized&&this.onClickClose()}onClickClose(){var d=this;return(0,t.A)(function*(){d.elementRef.nativeElement.classList.remove("visible");const f=(0,u.UE)(d.platformId)?getComputedStyle(d.container.nativeElement):{},b=()=>{d.store.dispatch((0,o.k4)({url:window.location.href,key:"POPUP_CLOSE_CLICKED",params:{popup:d.viewConfig&&d.viewConfig.name}})),!d.hasNavigated&&(0,a.dg)(d.displayMode)?d.purpleService.closeView():d.router.navigate([{outlets:{modal:null}}],{queryParamsHandling:"merge",replaceUrl:!0}),d.contextService.closeModalCompleteSubject.next(!0)};parseFloat(f.transitionDuration)>0?(0,l.L$)(d.container.nativeElement,"transitionend",b):b()})()}onClickContent(d){d.stopPropagation()}update(){return(0,t.A)(function*(){})()}}return(s=M).\u0275fac=(()=>{let P;return function(f){return(P||(P=n.xGo(s)))(f||s)}})(),s.\u0275cmp=n.VBU({type:s,selectors:[["storefront-modal"]],viewQuery:function(d,f){if(1&d&&(n.GBs(C,7,n.c1b),n.GBs(m,7,n.aKT),n.GBs(w,7,n.aKT)),2&d){let b;n.mGM(b=n.lsd())&&(f.template=b.first),n.mGM(b=n.lsd())&&(f.scrollContainer=b.first),n.mGM(b=n.lsd())&&(f.container=b.first)}},hostVars:1,hostBindings:function(d,f){1&d&&n.bIt("click",function(){return f.onClick()}),2&d&&n.BMQ("animation",f.animation)},features:[n.Jv_([E.B]),n.Vt3],decls:7,vars:4,consts:[["container",""],["scrollContainer",""],["viewChild",""],[3,"click"],[1,"icon","icon-close",3,"click"],["storefrontCheckOverflowTarget","self",1,"modal-content",3,"storefrontCheckOverflow"],[3,"pxpDynamicComponent","baseConfig"]],template:function(d,f){if(1&d){const b=n.RV6();n.j41(0,"div",3,0),n.bIt("click",function(A){return n.eBV(b),n.Njj(f.onClickContent(A))}),n.j41(2,"button",4),n.bIt("click",function(){return n.eBV(b),n.Njj(f.onClickClose())}),n.k0s(),n.j41(3,"div",5,1),n.Z7z(5,i,2,1,null,6,n.Vm6),n.k0s()()}2&d&&(n.ZvI("modal-container ",f.viewConfig&&f.viewConfig.name,""),n.R7$(3),n.Y8G("storefrontCheckOverflow","vertical"),n.R7$(2),n.Dyx(f.children))},dependencies:[x.d,W.G,B.q],styles:["storefront-modal,.pxp-modal{position:fixed;height:auto;bottom:0;width:100%;left:0;top:0;background:transparent;z-index:21;overflow:hidden;display:flex;justify-content:center;align-items:center;transition:background-color 60ms ease-in}storefront-modal[animation=POP_UP] .modal-container,.pxp-modal[animation=POP_UP] .modal-container{min-width:200px;min-height:200px;max-width:90%;max-height:90%;width:auto;transform:scale(0);position:relative}storefront-modal[animation=POP_UP] .modal-container .modal-content,.pxp-modal[animation=POP_UP] .modal-container .modal-content{padding:var(--modalPadding);padding-bottom:var(--modalPaddingBottom)}storefront-modal[animation=POP_UP].visible,.pxp-modal[animation=POP_UP].visible{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:transparent}storefront-modal[animation=POP_UP].visible .modal-container,.pxp-modal[animation=POP_UP].visible .modal-container{transform:scale(1);top:auto;left:auto}storefront-modal.visible,.pxp-modal.visible{opacity:1;transition:background-color 60ms ease-out;background-color:#00000080}storefront-modal.visible .modal-container,.pxp-modal.visible .modal-container{transition:transform .2s ease-out 60ms;transform:translateY(0)}storefront-modal .modal-content,.pxp-modal .modal-content{overflow:auto}storefront-modal .modal-content>storefront-element:last-child,storefront-modal .modal-content>div:last-child,.pxp-modal .modal-content>storefront-element:last-child,.pxp-modal .modal-content>div:last-child{margin-bottom:var(--modalPaddingBottom)}storefront-modal .modal-container,.pxp-modal .modal-container{position:absolute;top:var(--appBarHeight);bottom:0;height:auto;width:100%;background-color:var(--modalBgColor);overflow:auto;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .15s ease-in}storefront-modal .modal-container>button.icon-close,.pxp-modal .modal-container>button.icon-close{align-self:flex-end;width:32px;height:32px;flex-shrink:0;font-size:18px;margin:var(--gutter)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom{-webkit-mask-image:linear-gradient(to bottom,black 0%,black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#000,#000 calc(100% - 2 * var(--gutter)),#0000)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-top,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-top{-webkit-mask-image:linear-gradient(to top,black 0%,black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to top,#000,#000 calc(100% - 2 * var(--gutter)),#0000)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom.scrollable-top,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom.scrollable-top{-webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,0) 0%,black calc(2 * var(--gutter)),black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#0000,#000 calc(2 * var(--gutter)),#000 calc(100% - 2 * var(--gutter)),#0000)}\n"],encapsulation:2}),M})()},2364:(y,D,e)=>{e.d(D,{S:()=>t});var p=e(3953);let t=(()=>{var u;class n{constructor(){this.data=[{identifier:"phone",minScreenWidth:null},{identifier:"tablet_small",minScreenWidth:533},{identifier:"tablet_large",minScreenWidth:720}]}init(){}getDeviceClass(){const c=this.data.reduce((h,E)=>window.innerWidth>=E.minScreenWidth?E:h,null);return c&&c.identifier}}return(u=n).\u0275fac=function(g){return new(g||u)},u.\u0275prov=p.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),n})()},354:(y,D,e)=>{e.d(D,{s:()=>T});var p=e(467),t=e(3953),u=e(496),n=e(5102),v=e(9118),g=e(3072),c=e(1413),h=e(4843),E=e(2364),o=e(1626),a=e(5964),l=e(6697),r=e(7879);let T=(()=>{var x;class B{constructor(){this.publicationService=(0,t.WQX)(u.m),this.http=(0,t.WQX)(o.Qq),this.purpleService=(0,t.WQX)(n.Wj),this.kioskConfigService=(0,t.WQX)(v.x),this.sessionService=(0,t.WQX)(g.Q),this.deviceClassService=(0,t.WQX)(E.S),this.appData=(0,t.WQX)(r.fj),this.data=[],this.initPdf=new c.B,this.presenterLoaded=new c.B,this.subscriptions=[]}init(C){var m=this;return(0,p.A)(function*(){const[w,O]=yield Promise.all([(0,h._)(m.kioskConfigService.getConfig()),m.publicationService.selectByContentCriteria(C)]);m.kioskConfigData=w,m.content=O;const[i,_]=yield Promise.all([m.getLink(m.content,"pdf_single_page_download"),m.getLink(m.content,"pdf_download")]);yield m.getSinglePageDownloadLinkFromJSON(i),m.initPdf.next(_)})()}getLink(C,m){var w=this;return(0,p.A)(function*(){const O=yield(0,n.GA)(C,w.purpleService);if(C&&C.properties&&!O){let i=Object.keys(C.properties);for(let _=0;_<i.length;_++)if(i[_]===m)return w.getAttachmentLink(C,C.properties[i[_]]);return null}})()}getSinglePageDownloadLinkFromJSON(C){var m=this;return(0,p.A)(function*(){try{const w=m.presenterLoaded.pipe((0,a.p)(O=>O),(0,l.s)(1)).subscribe(function(){var O=(0,p.A)(function*(i){if(i){const f=yield(0,h._)(m.http.get(C));var _=WP.instance.getPurpleData().getPages();if(f){var s=0;m.data=[];for(const b of _){for(var M=parseInt(b.pageCount),P=[],d=0;d<M;d++)P.push(yield m.getAttachmentLink(m.content,f[s],s+1)),s++;m.data.push(P)}}}});return function(i){return O.apply(this,arguments)}}());m.subscriptions.push(w)}catch(w){console.error("Error fetching data from JSON link:",w)}})()}getAttachmentLink(C,m,w){var O=this;return(0,p.A)(function*(){const i=JSON.parse(localStorage.getItem("AppWebConfiguration")).id;let _="".concat(O.appData.baseUrl,"/resources/web/attachment/").concat(i,"/").concat(C.id,"/").concat(m);_+="?deviceId=".concat(localStorage.getItem("deviceId")),_+="&deviceClass=".concat(O.deviceClassService.getDeviceClass()),O.appData.preview&&(_+="&preview=true");const s=yield O.sessionService.getReceiptData(C);if(s){const{receipt:P,providerType:d}=s;_+="&receipt=".concat(window.encodeURIComponent(P)),_+="&providerType=".concat(d)}const M=O.sanitize(O.getFileName(C,m,w));return _+="&targetFilename=".concat(window.encodeURIComponent(M)),_})()}getSingleDownloadLink(){return this.data&&WP.instance&&WP.instance.getScroller()&&this.data[WP.instance.getScroller().getIndex()]}getDownloadLink(){var C=this;return(0,p.A)(function*(){return yield C.getLink(C.content,"pdf_download")})()}getFileName(C,m,w){const i=this.kioskConfigData.kioskConfig.downloadFileName,_=m.substr(m.lastIndexOf(".")),s=w?" - "+w:"";switch(i){case"publication_issue":return this.publicationService.currentPublication.name+" - "+C.name+s+_;case"issue":return C.name+s+_;default:return m}}sanitize(C){return C.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(C=>C.unsubscribe())}}return(x=B).\u0275fac=function(C){return new(C||x)},x.\u0275prov=t.jDH({token:x,factory:x.\u0275fac,providedIn:"root"}),B})()},3072:(y,D,e)=>{e.d(D,{Q:()=>g});var p=e(467),t=e(3953),u=e(4404),v=e(5102);let g=(()=>{var c;class h{constructor(){this.purpleService=(0,t.WQX)(v.Wj)}getReceiptData(o){var a=this;return(0,p.A)(function*(){return o.purchaseData.purchasedBy.includes(u.PurchaseOption.ENTITLEMENT)?{receipt:yield a.getAccessToken(),providerType:"entitlement"}:o.purchaseData.purchasedBy.includes(u.PurchaseOption.SUBSCRIPTION_CODE)?{receipt:(yield a.getSubscriptionCodes()).join(","),providerType:"subscriptionCode"}:null})()}getAccessToken(){var o=this;return(0,p.A)(function*(){const a=yield o.purpleService.purpleRef.entitlement.getUserData();return null==a?void 0:a.accessToken})()}getSubscriptionCodes(){var o=this;return(0,p.A)(function*(){return(yield o.purpleService.purpleRef.store.getSubscriptionCodes()).subscriptionCodes})()}}return(c=h).\u0275fac=function(o){return new(o||c)},c.\u0275prov=t.jDH({token:c,factory:c.\u0275fac,providedIn:"root"}),h})()},7967:(y,D,e)=>{function p(t,u){return"object"!=typeof t?1===u?t:t+"S":1===u?t.singular:t.plural}e.d(D,{t:()=>p})}}]);