1"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([[2076],{3472:(y,D,e)=>{e.d(D,{M:()=>E});var p=e(9379),t=e(9758),_=e(8179),n=e(362),g=e.n(n),C=e(4452),s=e(3713),u=e(3953);let E=(()=>{var i;class a extends s.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=!g()(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,_.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,C.Kj)(this.baseConfig())].filter(r=>!!r)}}return(i=a).\u0275fac=(()=>{let l;return function(T){return(l||(l=u.xGo(i)))(T||i)}})(),i.\u0275dir=u.FsC({type:i,features:[u.Vt3]}),a})()},3303:(y,D,e)=>{e.d(D,{y:()=>n});var p=e(177),t=e(9733),_=e(3953);let n=(()=>{var g;class C{}return(g=C).\u0275fac=function(u){return new(u||g)},g.\u0275mod=_.$C({type:g}),g.\u0275inj=_.G2t({imports:[p.MD,t.ContentTitleModule]}),C})()},5848:(y,D,e)=>{e.d(D,{Q:()=>C});var p=e(467),t=e(3953),_=e(1210),n=e(5706),g=e(6010);let C=(()=>{var s;class u extends _.${constructor(){super(...arguments),this.purpleService=(0,t.WQX)(g.Wj),this.changeDetectorRef=(0,t.WQX)(t.gRc),this.bundleContent=[]}get contextKey(){var i,a,l;return null!==(i=null!==(a=null===(l=this.config)||void 0===l?void 0:l.contextKey)&&void 0!==a?a:this.defaultConfig.contextKey)&&void 0!==i?i:"content"}updatePostWithOptionalData(i,a){var l=this;return(0,p.A)(function*(){const r=yield l.purpleService.getOptionalData(l.catalogContent,i,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(i,a){return(null==i?void 0:i.id)!==(null==a?void 0:a.id)||(null==i?void 0:i.version)!==(null==a?void 0:a.version)}onConfigChanges(){var i;let a=null===(i=this.context)||void 0===i?void 0:i[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 i;return!this.config||!(null!==(i=this.context)&&void 0!==i&&i[this.contextKey])}ngOnDestroy(){super.ngOnDestroy()}getContextKey(){return this.contextKey}}return(s=u).\u0275fac=(()=>{let E;return function(a){return(E||(E=t.xGo(s)))(a||s)}})(),s.\u0275dir=t.FsC({type:s,features:[t.Vt3]}),u})()},9733:(y,D,e)=>{e.r(D),e.d(D,{ContentTitleModule:()=>w,component:()=>b});var p=e(177),t=e(3953);const _={titleMessage:"%s"};var n=e(5848),g=e(9516),C=e(6010),s=e(1652),u=e(8909);const E=o=>[o];function i(o,v){1&o&&(t.j41(0,"h1"),t.EFF(1,"..."),t.k0s())}function a(o,v){if(1&o&&t.nrm(0,"h1",0),2&o){const c=t.XpG(2);t.Y8G("storefrontTranslate",c.config.titleMessage)("storefrontTranslateArgs",t.eq3(2,E,null==c.catalogContent?null:c.catalogContent.name))}}function l(o,v){if(1&o&&t.DNE(0,i,2,0,"h1")(1,a,1,4,"h1",0),2&o){const c=t.XpG();t.vxM(c.ghost?0:1)}}let r=(()=>{var o;class v extends n.Q{constructor(){super(...arguments),this.elementRef=(0,t.WQX)(t.aKT),this.contextService=(0,t.WQX)(g.V),this.injector=(0,t.WQX)(t.zZn),this.document=(0,t.WQX)(p.qQ),this.purpleService=(0,t.WQX)(C.Wj),this.globalService=(0,t.WQX)(s.d),this.defaultConfig=_,this.type="content-title"}}return(o=v).\u0275fac=(()=>{let c;return function(P){return(c||(c=t.xGo(o)))(P||o)}})(),o.\u0275cmp=t.VBU({type:o,selectors:[["storefront-content-title"]],standalone:!1,features:[t.Vt3],decls:1,vars:1,consts:[[3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(h,P){1&h&&t.DNE(0,l,2,1),2&h&&t.vxM(P.domHelper.leanDom?-1:0)},dependencies:[u.M],styles:["storefront-content-title>
1h1{margin-top:var(--contentHeaderMarginTop);margin-bottom:var(--contentHeaderMarginBottom);padding-top:var(--contentHeaderPaddingVert);padding-bottom:var(--contentHeaderPaddingVert);font-size:1.5rem}\n"],encapsulation:2}),v})();const T=["class","pxp-content-title"],x=o=>[o];function B(o,v){1&o&&(t.j41(0,"h1"),t.EFF(1,"..."),t.k0s())}function W(o,v){if(1&o&&t.nrm(0,"h1",0),2&o){const c=t.XpG(2);t.Y8G("storefrontTranslate",c.config.titleMessage)("storefrontTranslateArgs",t.eq3(2,x,null==c.catalogContent?null:c.catalogContent.name))}}function M(o,v){if(1&o&&t.DNE(0,B,2,0,"h1")(1,W,1,4,"h1",0),2&o){const c=t.XpG();t.vxM(c.ghost?0:1)}}let f=(()=>{var o;class v extends r{constructor(){super(...arguments),this.translateDirective=(0,t.WQX)(u.M)}onConfigChanges(){super.onConfigChanges(),setTimeout(()=>{var h,P;this.translateDirective.applyTranslation(null===(h=this.config)||void 0===h?void 0:h.titleMessage,[null===(P=this.catalogContent)||void 0===P?void 0:P.name])})}}return(o=v).\u0275fac=(()=>{let c;return function(P){return(c||(c=t.xGo(o)))(P||o)}})(),o.\u0275cmp=t.VBU({type:o,selectors:[["h1",8,"pxp-content-title"]],hostAttrs:["ngSkipHydration","true"],standalone:!1,features:[t.nM4([u.M]),t.Vt3],attrs:T,decls:1,vars:1,consts:[[3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(h,P){1&h&&t.DNE(0,M,2,1),2&h&&t.vxM(P.domHelper.leanDom?-1:0)},dependencies:[u.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}),v})(),w=(()=>{var o;class v{}return(o=v).\u0275fac=function(h){return new(h||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({imports:[p.MD]}),v})();const b={component:r,leanDomComponent:f}},1802:(y,D,e)=>{e.d(D,{c:()=>u});var p=e(9379),t=e(3953),_=e(1210),n=e(3331),g=e(9758),C=e(8075),s=e(8909);let u=(()=>{var E;class i extends _.${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===g.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===g.x.USER_ATTRIBUTE?this.contextService.setUserAttribute(this.config.param,"".concat(l)):(0,C.CV)(this.router,{[this.config.param]:l})}}return(E=i).\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:[s.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;
1background-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}),i})()},2960:(y,D,e)=>{e.d(D,{q:()=>g});var p=e(1802),t=e(3953),_=e(8909);const n=["class","pxp-switch"];let g=(()=>{var C;class s extends p.c{}return(C=s).\u0275fac=(()=>{let u;return function(i){return(u||(u=t.xGo(C)))(i||C)}})(),C.\u0275cmp=t.VBU({type:C,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,i){1&E&&(t.nrm(0,"label",0),t.j41(1,"label",1)(2,"input",2),t.bIt("change",function(){return i.toggle()}),t.k0s(),t.nrm(3,"span"),t.k0s()),2&E&&(t.Y8G("storefrontTranslate",i.config.label),t.R7$(2),t.Y8G("checked",i.isChecked()))},dependencies:[_.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}),s})()},9645:(y,D,e)=>{e.r(D),e.d(D,{SwitchModule:()=>g,component:()=>C});var p=e(177),t=e(1802),_=e(2960),n=e(3953);let g=(()=>{var s;class u{}return(s=u).\u0275fac=function(i){return new(i||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({imports:[p.MD]}),u})();const C={component:t.c,leanDomComponent:_.q}},8301:(y,D,e)=>{e.d(D,{d:()=>_});var p=e(177),t=e(3953);let _=(()=>{var n;class g{}return(n=g).\u0275fac=function(s){return new(s||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[p.MD]}),g})()},2316:(y,D,e)=>{e.r(D),e.d(D,{ModalComponent:()=>v});var p=e(9379),t=e(467),_=e(177),n=e(3953),g=e(9079),C=e(3331),s=e(6010),u=e(9745),E=e(8251),i=e(610),a=e(3178),l=e(2962),r=e(7879),T=e(6080),x=e(8301),B=e(2868),W=e(680);
1const M=["template"],f=["scrollContainer"],w=["container"];function b(c,h){}function o(c,h){1&c&&n.DNE(0,b,0,0,"ng-template",6,2,n.C5r),2&c&&n.Y8G("baseConfig",h.$implicit)}let v=(()=>{var c;class h extends T.v{constructor(){super(...arguments),this.document=(0,n.WQX)(_.qQ),this.platformId=(0,n.WQX)(n.Agw),this.purpleService=(0,n.WQX)(s.Wj),this.purpleEnv=(0,n.WQX)(r.r6),this.renderer=(0,n.WQX)(n.sFG),this.router=(0,n.WQX)(C.Ix),this.context={},this.isModal=!0}static isValidAnimation(d){return Object.values(u.L).includes(d)}ngOnInit(){this.contextService.closeModalSubject.pipe((0,g.pQ)(this.destroyRef)).subscribe(O=>{this.elementRef.nativeElement.contains(O)?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),m=d&&d.animation;this.animation=m&&h.isValidAnimation(m)?m:u.L.SLIDE_IN}ngAfterViewInit(){var d=()=>super.ngOnInit,m=this;return(0,t.A)(function*(){yield(0,a.wR)(1);const O=getComputedStyle(m.container.nativeElement),S=()=>{d().call(m),m.initialized=!0},A=parseFloat(O.transitionDuration);A>0&&m.animation!==u.L.POP_UP?setTimeout(S,A):S(),m.elementRef.nativeElement.classList.add("visible"),m.displayMode=yield m.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 m=(0,_.UE)(d.platformId)?getComputedStyle(d.container.nativeElement):{},O=()=>{d.store.dispatch((0,i.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(m.transitionDuration)>0?(0,l.L$)(d.container.nativeElement,"transitionend",O):O()})()}onClickContent(d){d.stopPropagation()}update(){return(0,t.A)(function*(){})()}}return(c=h).\u0275fac=(()=>{let P;return function(m){return(P||(P=n.xGo(c)))(m||c)}})(),c.\u0275cmp=n.VBU({type:c,selectors:[["storefront-modal"]],viewQuery:function(d,m){if(1&d&&(n.GBs(M,7,n.c1b),n.GBs(f,7,n.aKT),n.GBs(w,7,n.aKT)),2&d){let O;n.mGM(O=n.lsd())&&(m.template=O.first),n.mGM(O=n.lsd())&&(m.scrollContainer=O.first),n.mGM(O=n.lsd())&&(m.container=O.first)}},hostVars:1,hostBindings:function(d,m){1&d&&n.bIt("click",function(){return m.onClick()}),2&d&&n.BMQ("animation",m.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,m){if(1&d){const O=n.RV6();n.j41(0,"div",3,0),n.bIt("click",function(A){return n.eBV(O),n.Njj(m.onClickContent(A))}),n.j41(2,"button",4),n.bIt("click",function(){return n.eBV(O),n.Njj(m.onClickClose())}),n.k0s(),n.j41(3,"div",5,1),n.Z7z(5,o,2,1,null,6,n.Vm6),n.k0s()()}2&d&&(n.ZvI("modal-container ",null==m.viewConfig?null:m.viewConfig.name,""),n.R7$(3),n.Y8G("storefrontCheckOverflow","vertical"),n.R7$(2),n.Dyx(m.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:200
1px;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}),h})()},2364:(y,D,e)=>{e.d(D,{S:()=>t});var p=e(3953);let t=(()=>{var _;class n{constructor(){this.data=[{identifier:"phone",minScreenWidth:null},{identifier:"tablet_small",minScreenWidth:533},{identifier:"tablet_large",minScreenWidth:720}]}getDeviceClass(){const s=this.data.reduce((u,E)=>window.innerWidth>=E.minScreenWidth?E:u,null);return s&&s.identifier}}return(_=n).\u0275fac=function(C){return new(C||_)},_.\u0275prov=p.jDH({token:_,factory:_.\u0275fac,providedIn:"root"}),n})()},354:(y,D,e)=>{e.d(D,{s:()=>T});var p=e(467),t=e(3953),_=e(496),n=e(6010),g=e(9118),C=e(3072),s=e(1413),u=e(4843),E=e(2364),i=e(1626),a=e(5964),l=e(6697),r=e(7879);let T=(()=>{var x;class B{constructor(){this.publicationService=(0,t.WQX)(_.m),this.http=(0,t.WQX)(i.Qq),this.purpleService=(0,t.WQX)(n.Wj),this.kioskConfigService=(0,t.WQX)(g.x),this.sessionService=(0,t.WQX)(C.Q),this.deviceClassService=(0,t.WQX)(E.S),this.appData=(0,t.WQX)(r.fj),this.data=[],this.initPdf=new s.B,this.presenterLoaded=new s.B,this.subscriptions=[]}init(M){var f=this;return(0,p.A)(function*(){const[w,b]=yield Promise.all([(0,u._)(f.kioskConfigService.getConfig()),f.publicationService.selectByContentCriteria(M)]);f.kioskConfigData=w,f.content=b;const[o,v]=yield Promise.all([f.getLink(f.content,"pdf_single_page_download"),f.getLink(f.content,"pdf_download")]);yield f.getSinglePageDownloadLinkFromJSON(o),f.initPdf.next(v)}
1)()}getLink(M,f){var w=this;return(0,p.A)(function*(){const b=yield(0,n.GA)(M,w.purpleService);if(M&&M.properties&&!b){let o=Object.keys(M.properties);for(let v=0;v<o.length;v++)if(o[v]===f)return w.getAttachmentLink(M,M.properties[o[v]]);return null}})()}getSinglePageDownloadLinkFromJSON(M){var f=this;return(0,p.A)(function*(){try{const w=f.presenterLoaded.pipe((0,a.p)(b=>b),(0,l.s)(1)).subscribe(function(){var b=(0,p.A)(function*(o){if(o&&M){const v=yield(0,u._)(f.http.get(M)),c=WP.instance.getPurpleData().getPages();if(v){let h=0;f.data=[];for(const P of c){const d=parseInt(P.pageCount),m=[];for(let O=0;O<d;O++)m.push(yield f.getAttachmentLink(f.content,v[h],h+1)),h++;f.data.push(m)}}}});return function(o){return b.apply(this,arguments)}}());f.subscriptions.push(w)}catch(w){console.error("Error fetching data from JSON link:",w)}})()}getAttachmentLink(M,f,w){var b=this;return(0,p.A)(function*(){const{preview:o,appWebConfig:v,baseUrl:c}=b.appData;let h="".concat(c,"/resources/web/attachment/").concat(v.id,"/").concat(M.id,"/").concat(f);h+="?deviceId=".concat(localStorage.getItem("deviceId")),h+="&deviceClass=".concat(b.deviceClassService.getDeviceClass()),o&&(h+="&preview=true");const P=yield b.sessionService.getReceiptData(M);if(P){const{receipt:m,providerType:O}=P;h+="&receipt=".concat(window.encodeURIComponent(m)),h+="&providerType=".concat(O)}const d=b.sanitize(b.getFileName(M,f,w));return h+="&targetFilename=".concat(window.encodeURIComponent(d)),h})()}getSingleDownloadLink(){return this.data&&WP.instance&&WP.instance.getScroller()&&this.data[WP.instance.getScroller().getIndex()]}getFileName(M,f,w){const o=this.kioskConfigData.kioskConfig.downloadFileName,v=f.substring(f.lastIndexOf(".")),c=w?" - "+w:"";switch(o){case"publication_issue":return this.publicationService.currentPublication.name+" - "+M.name+c+v;case"issue":return M.name+c+v;default:return f}}sanitize(M){return M.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(M=>M.unsubscribe())}}return(x=B).\u0275fac=function(M){return new(M||x)},x.\u0275prov=t.jDH({token:x,factory:x.\u0275fac,providedIn:"root"}),B})()},3072:(y,D,e)=>{e.d(D,{Q:()=>C});var p=e(467),t=e(3953),_=e(4404),g=e(6010);let C=(()=>{var s;class u{constructor(){this.purpleService=(0,t.WQX)(g.Wj)}getReceiptData(i){var a=this;return(0,p.A)(function*(){return i.purchaseData.purchasedBy.includes(_.PurchaseOption.ENTITLEMENT)?{receipt:yield a.getAccessToken(),providerType:"entitlement"}:i.purchaseData.purchasedBy.includes(_.PurchaseOption.SUBSCRIPTION_CODE)?{receipt:(yield a.getSubscriptionCodes()).join(","),providerType:"subscriptionCode"}:null})()}getAccessToken(){var i=this;return(0,p.A)(function*(){const a=yield i.purpleService.purpleRef.entitlement.getUserData();return null==a?void 0:a.accessToken})()}getSubscriptionCodes(){var i=this;return(0,p.A)(function*(){return(yield i.purpleService.purpleRef.store.getSubscriptionCodes()).subscriptionCodes})()}}return(s=u).\u0275fac=function(i){return new(i||s)},s.\u0275prov=t.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),u})()},7967:(y,D,e)=>{function p(t,_){return"object"!=typeof t?1===_?t:t+"S":1===_?t.singular:t.plural}e.d(D,{t:()=>p})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.