@pronto-tools-and-more/files 12.51.0 → 12.52.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.
- package/files/framework-latest/src/default/storefront/buildInfo.json +3 -3
- package/files/framework-latest/src/default/storefront/index.html +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_html_html_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_section_section_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/main.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_ad_ad_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_product_product_module_ts.js +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_ad_ad_module_ts"],{6278:(H,E,a)=>{a.r(E),a.d(E,{AdModule:()=>we,component:()=>$e});var f=a(177),c=a(467),x=a(9379),e=a(4438),v=a(1210),_=a(9692),h=a(8251),S=a(4945),R=a(6843),U=a(1184),s=a(610),z=a(1803);const w={adId:null};var G=a(2932),T=a(8890),y=a(7370),D=a(3178),m=a(5964),g=a(6697),d=a(4412),A=a(4572),b=a(7673),I=a(8179),P=a(8582),M=a(9516),V=a(2596),O=a(3331),Z=a(345),Q=a(8340),J=a(7816);class F extends J.Q{getAdConfig(){var o;return null===(o=this.data)||void 0===o?void 0:o.configuration}}class k extends Q.U{}class q extends F{constructor(o){super("Audienzz Ads",o),this.data=o}createInstance(){return new ee(this)}canRunWithoutConsent(){return!0}isValidConfiguration(){const o=this.getAdConfig();return!!(null!=o&&o.adTagId&&null!=o&&o.headerScriptId&&null!=o&&o.headerScriptUrl)}}class ee extends k{constructor(o){super(o),this.config=o}adjustDocument(){var o=this;return(0,c.A)(function*(){return new Promise((n,t)=>{document.head.appendChild(o.createScript(n,t))})})()}showAd(o,n,t,r){const u=this.createAdElement(n.providerConfig);t.parentNode.appendChild(u),r&&r()}removeAd(o){const n=document.getElementById("".concat(o));n&&n.remove()}createAdElement(o){const n=document.createElement("div");return n.id="".concat(o.id),n}createScript(o,n){const t=this.getConfig().getAdConfig(),r=document.createElement("script");return r.id=t.headerScriptId,r.src="".concat(t.headerScriptUrl,"?adTagId=").concat(t.adTagId),r.setAttribute("defer","defer"),r.onload=()=>{console.debug("[".concat(this.getDisplayName(),"] Script loaded successfully")),o()},r.onerror=l=>{console.error("[".concat(this.getDisplayName(),"] Failed to load script:"),l),n(l)},r}}class te extends F{constructor(){super("NoopAdService",{})}createInstance(){return new B}isValidConfiguration(){return!0}}class B extends k{constructor(){super(new te)}adjustDocument(){return Promise.resolve()}showAd(){}removeAd(){}}var ie=a(7879),ne=a(953),Y=a(6078);let re=(()=>{var i;class o{constructor(t,r,l,u){this.platformId=t,this.pxpConfig=r,this.pluginService=l,this.consentService=u,this.activePlugin=new B,this.initPromise=this.initializeAdPlugin()}showAd(t,r,l,u){var p=this;return(0,c.A)(function*(){yield p.initPromise;try{p.activePlugin.showAd(t,r,l,u)}catch(C){console.error("Failed to show plugin ad: ".concat(C))}})()}removeAd(t){var r=this;return(0,c.A)(function*(){yield r.initPromise;try{r.activePlugin.removeAd(t)}catch(l){console.error("Failed to remove plugin ad: ".concat(l))}})()}initializeAdPlugin(){var t=this;return(0,c.A)(function*(){var r;if(!(0,f.UE)(t.platformId))return;yield t.pluginService.init$,yield t.consentService.init$;const l=t.pxpConfig,u=null==l||null===(r=l.purple)||void 0===r?void 0:r.ads;let p;null!=u&&u.audienzz&&(t.pluginConfig=new q(u.audienzz),p=t.consentService.canRunPlugin(t.pluginConfig)&&t.pluginService.loadPlugin(t.pluginConfig)),p&&(t.activePlugin=p)})()}}return(i=o).\u0275fac=function(t){return new(t||i)(e.KVO(e.Agw),e.KVO(ie.Wp),e.KVO(ne.z),e.KVO(Y.e))},i.\u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),o})();var oe=a(8482),ae=a(1652),se=a(4748),le=a(5927),de=a(3726),ce=a(152);let K=(()=>{var i;class o{constructor(t,r,l){this.el=t,this.ngZone=r,this.platformId=l,this.pixelsLeftToScroll=600,this.elementVisible=new e.bkB,this.isVisible=!1}ngAfterViewInit(){(0,f.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>{this.scrollSubscription=(0,de.R)(window,"scroll",{passive:!0}).pipe((0,ce.B)(100)).subscribe(()=>this.checkPosition()),setTimeout(()=>this.checkPosition(),500)})}ngOnDestroy(){this.scrollSubscription&&this.scrollSubscription.unsubscribe()}checkPosition(){if(!this.isVisible){const t=this.el.nativeElement.getBoundingClientRect(),r=window.innerHeight;t.top<=r+this.pixelsLeftToScroll&&this.ngZone.run(()=>{this.isVisible=!0,this.elementVisible.emit(!0)})}}}return(i=o).\u0275fac=function(t){return new(t||i)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(e.Agw))},i.\u0275dir=e.FsC({type:i,selectors:[["","storefrontVisibleOnScroll",""]],inputs:{pixelsLeftToScroll:"pixelsLeftToScroll"},outputs:{elementVisible:"elementVisible"},standalone:!1}),o})();var N=a(3647);const ge=["stickyLink"],pe=["adContainer"];function fe(i,o){if(1&i&&(e.qex(0),e.nrm(1,"div",6),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("id",n.uuid)}}function ue(i,o){if(1&i&&e.nrm(0,"iframe",8),2&i){const n=e.XpG(3);e.Y8G("src",n.safeIframeUrl,e.f$h)}}function me(i,o){if(1&i&&(e.qex(0),e.DNE(1,ue,1,1,"iframe",7),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.safeIframeUrl)}}function he(i,o){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",9),e.bIt("elementVisible",function(r){e.eBV(n);const l=e.XpG(3);return e.Njj(l.onVisible(r))}),e.k0s(),e.bVm()}if(2&i){const n=e.XpG(2).ngIf;e.R7$(),e.HbH(n.class),e.Y8G("id",n.id)}}function ve(i,o){if(1&i&&(e.qex(0),e.DNE(1,he,2,3,"ng-container",2),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",!n.isDynamicAd)}}function _e(i,o){1&i&&e.eu8(0)}function ye(i,o){if(1&i&&e.nrm(0,"storefront-image",14),2&i){const n=e.XpG(4);e.Y8G("height",n.getImageHeight())("src",n.getImageSrc())}}function Ae(i,o){if(1&i&&(e.j41(0,"a",13),e.nI1(1,"sanitizeUrl"),e.DNE(2,ye,1,2,"storefront-image",12),e.k0s()),2&i){const n=e.XpG(3);e.Y8G("href",e.bMT(1,3,n.getHref()),e.B4B)("target",n.target),e.R7$(2),e.Y8G("ngIf",n.getImageSrc())}}function Ce(i,o){if(1&i&&e.nrm(0,"storefront-image",14),2&i){const n=e.XpG(3);e.Y8G("height",n.getImageHeight())("src",n.getImageSrc(!0))}}function xe(i,o){if(1&i&&(e.qex(0),e.DNE(1,Ae,3,5,"a",10),e.j41(2,"a",11,1),e.nI1(4,"sanitizeUrl"),e.DNE(5,Ce,1,2,"storefront-image",12),e.k0s(),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.ad),e.R7$(),e.Y8G("href",e.bMT(4,4,n.getHref()),e.B4B)("target",n.target),e.R7$(3),e.Y8G("ngIf",n.getImageSrc(!0))}}function Se(i,o){if(1&i&&(e.qex(0,null,0)(2,3),e.DNE(3,fe,2,1,"ng-container",4)(4,me,2,1,"ng-container",4)(5,ve,2,1,"ng-container",4)(6,_e,1,0,"ng-container",4)(7,xe,6,6,"ng-container",5),e.bVm()()),2&i){const n=o.ngIf;e.R7$(2),e.Y8G("ngSwitch",n.type),e.R7$(),e.Y8G("ngSwitchCase","GPT"),e.R7$(),e.Y8G("ngSwitchCase","HTML"),e.R7$(),e.Y8G("ngSwitchCase","TRAFFECTIVE"),e.R7$(),e.Y8G("ngSwitchCase","AUDIENZZ")}}let j=(()=>{var i;class o extends v.${get adType(){var t;return null===(t=this.ad)||void 0===t?void 0:t.providerConfig.type}get regularAdType(){return this.domHelper.regularSelector(this.adType)}get prefixedAdType(){return this.domHelper.prefixedSelector(this.adType)}get iframeHostHeight(){var t;return(null===(t=this.ad)||void 0===t?void 0:t.providerConfig)&&this.ad.providerConfig.height}onClick(t){t.stopPropagation(),this.stickyLink&&(t.target===this.stickyLink.nativeElement||this.stickyLink.nativeElement.contains(t.target))?this.store.dispatch((0,s.k4)({url:window.location.href,key:"AD_STICKY_CLICKED",params:this.getTrackingParams()})):this.store.dispatch((0,s.k4)({url:window.location.href,key:"AD_CLICKED",params:this.getTrackingParams()}));const r=this.getHref();if(r.startsWith("#"))return this.router.navigateByUrl(r.substring(1)),t.preventDefault(),!1}constructor(t,r,l,u,p,C,L,X,$,Fe,W,ke,Be,Ye,Ke){super(l,t,u,X,W),this.elementRef=t,this.store=r,this.injector=l,this.contextService=u,this.googleAdService=p,this.router=C,this.sanitizer=L,this.document=X,this.adService=$,this.traffectiveAdService=Fe,this.globalService=W,this.consentService=ke,this.ssrService=Be,this.ngZone=Ye,this.domHelper=Ke,this.load=new e.bkB,this.loaded=!1,this.adVisible$=new d.t(!1),this.defaultConfig=(0,x.A)({},w)}ngOnDestroy(){super.ngOnDestroy(),this.ad&&this.loaded&&this.ad.providerConfig.type===_.P.GPT&&this.googleAdService.removeAd(this.uuid)}rebuildContextKeys(){super.rebuildContextKeys();const t=this.getAdConfig(this.baseConfig);null!=t&&t.providerConfig&&(0,U.Fl)(t.providerConfig,this.contextKeys)}onConfigChanges(){var t=this;return(0,c.A)(function*(){var r;const l=t.getAdConfig(t.config);if(l&&l.providerConfig){if(l.providerConfig){const C=(0,I.uQ)((0,x.A)((0,x.A)({},l.providerConfig),{},{targeting:null}),t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());if(!(0,I.ZY)(C))return void(t.config=null)}var u;if(l.providerConfig.type==_.P.TRAFFECTIVE&&(0,f.UE)(t.platformId)&&(yield t.consentService.init$,null===(u=t.traffectiveAdService)||void 0===u||!u.hasConsent()))return;t.ad=l,t.changeDetectorRef.detectChanges(),void 0===t.config.isLazy||t.config.isLazy?t.store.subscribe((0,T.eh)(t,t.elementRef,{skipWait:(0,f.Vy)(t.platformId)}),C=>{t.initAd()},D.lQ,D.lQ,"visible"):t.initAd()}else t.config.adId&&(l?l.providerConfig||console.warn("No provider config found for id ".concat(l.id,". Please migrate the ad configuration")):console.warn("No ad found for id ".concat(t.config.adId)));if("HTML"===(null===(r=t.ad)||void 0===r?void 0:r.providerConfig.type)){var p;const C=null===(p=t.ad)||void 0===p||null===(p=p.providerConfig)||void 0===p?void 0:p.url;C!==t.iframeUrl&&(t.iframeUrl=C,t.safeIframeUrl=t.sanitizer.bypassSecurityTrustResourceUrl(t.contextService.toResourceUrl(C)))}t.target=t.getTarget()})()}getAdConfig(t){let r=null;return t&&(t.adId?this.store.select((0,S.jZ)(R.O.AD),l=>{r=l.adSlots.find(u=>u.id===t.adId)}):t.ad&&(r=t.ad)),r}initAd(){var t;if(this.loaded=!0,(null===(t=window.storefrontHooks)||void 0===t||!t.isAdDisabled||!window.storefrontHooks.isAdDisabled(this.ad.id))&&(0,f.UE)(this.platformId))switch(this.ad.providerConfig.type){case _.P.GPT:this.initGpt();break;case _.P.TRAFFECTIVE:this.initTraffective();break;case _.P.AUDIENZZ:this.initPluginAd();break;default:return this.target=this.getTarget(),void this.load.emit()}}initGpt(){var t=this;return(0,c.A)(function*(){const r=(0,I.uQ)((0,x.A)((0,x.A)({},t.ad.providerConfig),{},{targeting:null}),t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());r.targeting=t.mergeTargeting(t.ad.providerConfig.targeting),t.uuid="div-gpt-"+(r.fixedId?t.ad.id:(0,P.l)()),t.changeDetectorRef.detectChanges();let l=null;r.sizeMapping&&t.store.select((0,S.jZ)(R.O.AD),u=>{const p=u.adSlots.find(C=>C.id===r.sizeMapping);p&&p.providerConfig&&"SIZEMAPPING"===p.providerConfig.type&&(l=p.providerConfig)}),t.googleAdService.showAd(t.uuid,r,l,t.elementRef.nativeElement,()=>{t.load.emit(),t.resizeGoogleAd()},()=>t.resizeGoogleAd()),t.store.subscribe((0,T.Ne)(),()=>t.resizeGoogleAd())})()}initTraffective(){var t=this;return(0,c.A)(function*(){if(t.ad.providerConfig){var r;const{id:l,class:u}=t.ad.providerConfig;t.isDynamicAd="Floor"==u||"Mobile_Sticky"==u,(0,A.z)([null===(r=t.traffectiveAdService)||void 0===r?void 0:r.isTRFConfigReady$.pipe((0,m.p)(p=>p),(0,g.s)(1)),t.isDynamicAd?(0,b.of)(!0):t.adVisible$.pipe((0,m.p)(p=>p),(0,g.s)(1))]).subscribe(()=>{var p;if(!(0,f.Vy)(t.platformId)&&null!==(p=window)&&void 0!==p&&p.traffective)try{t.ssrService.prebootCompleted$.subscribe(()=>{t.ngZone.runOutsideAngular(t.isDynamicAd?()=>{window.traffective.refreshBottomSticky(u,l)}:()=>{window.traffective.refreshSlot(u,l)})})}catch(C){console.warn("Error with traffective refresh slot",C)}})}})()}mergeTargeting(t){let r=null;if(t||this.config.targeting){r=[];let l=new Map;this.evaluateTargeting(t,l),this.evaluateTargeting(this.config.targeting,l),l.forEach((u,p)=>{r.push({key:p,value:u})})}return r}evaluateTargeting(t,r){t&&t.forEach(l=>{const u=(0,I.uQ)(l.key,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(u&&""!==u){let p=r.get(u);p||(p=[]),(Array.isArray(l.value)?l.value:[l.value]).forEach(C=>{let L=(0,I.uQ)(C,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(l.multiValue){let X=L.split(",").filter($=>""!==$);p.concat(X)}else L&&""!==L&&p.push(L)}),p.length>0&&r.set(u,p)}})}resizeGoogleAd(){}getImageHeight(){return this.config.imageHeight||G.q.AUTO}getImageSrc(t=!1){const r=this.ad&&this.ad.providerConfig;return r&&(0,U.rv)(t&&r.stickyImage||r.image)}getHref(){const t=this.ad&&this.ad.providerConfig;return t&&t.target}getTrackingParams(){return{AD_ID:this.config.adId}}onVisible(t){t&&this.adVisible$.next(!0)}initPluginAd(){var t=this;return(0,c.A)(function*(){t.adContainer&&t.adService.showAd(null,t.ad,t.adContainer.nativeElement,()=>t.load.emit())})()}getTarget(){return(0,y.tb)(this.getHref())?z.We.BLANK:z.We.SELF}}return(i=o).type="ad",i.\u0275fac=function(t){return new(t||i)(e.rXU(e.aKT),e.rXU(h.B),e.rXU(e.zZn),e.rXU(M.V),e.rXU(V.s),e.rXU(O.Ix),e.rXU(Z.up),e.rXU(f.qQ),e.rXU(re),e.rXU(oe.y),e.rXU(ae.d),e.rXU(Y.e),e.rXU(se.i),e.rXU(e.SKi),e.rXU(le.S))},i.\u0275cmp=e.VBU({type:i,selectors:[["storefront-ad"]],viewQuery:function(t,r){if(1&t&&(e.GBs(ge,5,e.aKT),e.GBs(pe,5,e.aKT)),2&t){let l;e.mGM(l=e.lsd())&&(r.stickyLink=l.first),e.mGM(l=e.lsd())&&(r.adContainer=l.first)}},hostVars:4,hostBindings:function(t,r){1&t&&e.bIt("click",function(u){return r.onClick(u)}),2&t&&(e.BMQ("ad-type",r.regularAdType)("data-pxp-ad-type",r.prefixedAdType),e.xc7("height",r.iframeHostHeight))},standalone:!1,features:[e.Jv_([h.B]),e.Vt3],decls:1,vars:1,consts:[["adContainer",""],["stickyLink",""],[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"id"],["title","ad",3,"src",4,"ngIf"],["title","ad",3,"src"],["storefrontVisibleOnScroll","",1,"no-display",3,"elementVisible","id"],[3,"href","target",4,"ngIf"],[1,"ad-sticky",3,"href","target"],[3,"height","src",4,"ngIf"],[3,"href","target"],[3,"height","src"]],template:function(t,r){1&t&&e.DNE(0,Se,8,5,"ng-container",2),2&t&&e.Y8G("ngIf",r.ad&&r.ad.providerConfig)},dependencies:[f.bT,f.ux,f.e1,f.fG,G.h,K,N.R],styles:["storefront-ad,.pxp-ad{display:block;overflow:hidden}storefront-ad a,.pxp-ad a{display:block}storefront-ad a.ad-sticky,.pxp-ad a.ad-sticky{display:none}storefront-ad storefront-image img.error,storefront-ad .pxp-image img.error,.pxp-ad storefront-image img.error,.pxp-ad .pxp-image img.error{position:relative;width:100vw;height:25vw;background-image:url(/assets/banner/banner_not_found.jpg);background-size:contain;opacity:1}storefront-ad[ad-type=HTML]>iframe,storefront-ad[data-pxp-ad-type=HTML]>iframe,.pxp-ad[ad-type=HTML]>iframe,.pxp-ad[data-pxp-ad-type=HTML]>iframe{width:100%;height:100%}.sticky-elements storefront-ad a,.sticky-elements .pxp-ad a{display:none}.sticky-elements storefront-ad a.ad-sticky,.sticky-elements .pxp-ad a.ad-sticky{display:block}.no-display{display:none}\n"],encapsulation:2}),o})();var Ie=a(4403),Ee=a(4871);let be=(()=>{var i;class o{}return(i=o).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[f.MD]}),o})();const De=["class","pxp-ad"];function Te(i,o){if(1&i&&(e.qex(0),e.nrm(1,"div",6),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("id",n.uuid)}}function Pe(i,o){if(1&i&&e.nrm(0,"iframe",8),2&i){const n=e.XpG(3);e.Y8G("src",n.safeIframeUrl,e.f$h)}}function Re(i,o){if(1&i&&(e.qex(0),e.DNE(1,Pe,1,1,"iframe",7),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.safeIframeUrl)}}function Ue(i,o){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",9),e.bIt("elementVisible",function(r){e.eBV(n);const l=e.XpG(3);return e.Njj(l.onVisible(r))}),e.k0s(),e.bVm()}if(2&i){const n=e.XpG(2).ngIf;e.R7$(),e.HbH(n.class),e.Y8G("id",n.id)}}function Le(i,o){if(1&i&&(e.qex(0),e.DNE(1,Ue,2,3,"ng-container",2),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",!n.isDynamicAd)}}function Ge(i,o){1&i&&e.eu8(0)}function Me(i,o){if(1&i&&e.nrm(0,"storefront-image",14),2&i){const n=e.XpG(4);e.Y8G("height",n.getImageHeight())("src",n.getImageSrc())}}function Ve(i,o){if(1&i&&(e.j41(0,"a",13),e.nI1(1,"sanitizeUrl"),e.DNE(2,Me,1,2,"storefront-image",12),e.k0s()),2&i){const n=e.XpG(3);e.Y8G("href",e.bMT(1,3,n.getHref()),e.B4B)("target",n.target),e.R7$(2),e.Y8G("ngIf",n.getImageSrc())}}function Oe(i,o){if(1&i&&e.nrm(0,"storefront-image",14),2&i){const n=e.XpG(3);e.Y8G("height",n.getImageHeight())("src",n.getImageSrc(!0))}}function He(i,o){if(1&i&&(e.qex(0),e.DNE(1,Ve,3,5,"a",10),e.j41(2,"a",11,1),e.nI1(4,"sanitizeUrl"),e.DNE(5,Oe,1,2,"storefront-image",12),e.k0s(),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.ad),e.R7$(),e.Y8G("href",e.bMT(4,4,n.getHref()),e.B4B)("target",n.target),e.R7$(3),e.Y8G("ngIf",n.getImageSrc(!0))}}function ze(i,o){if(1&i&&(e.qex(0,null,0)(2,3),e.DNE(3,Te,2,1,"ng-container",4)(4,Re,2,1,"ng-container",4)(5,Le,2,1,"ng-container",4)(6,Ge,1,0,"ng-container",4)(7,He,6,6,"ng-container",5),e.bVm()()),2&i){const n=o.ngIf;e.R7$(2),e.Y8G("ngSwitch",n.type),e.R7$(),e.Y8G("ngSwitchCase","GPT"),e.R7$(),e.Y8G("ngSwitchCase","HTML"),e.R7$(),e.Y8G("ngSwitchCase","TRAFFECTIVE"),e.R7$(),e.Y8G("ngSwitchCase","AUDIENZZ")}}let Xe=(()=>{var i;class o extends j{}return(i=o).\u0275fac=(()=>{let n;return function(r){return(n||(n=e.xGo(i)))(r||i)}})(),i.\u0275cmp=e.VBU({type:i,selectors:[["div",8,"pxp-ad"]],standalone:!1,features:[e.Jv_([h.B]),e.Vt3],attrs:De,decls:1,vars:1,consts:[["adContainer",""],["stickyLink",""],[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"id"],["title","ad",3,"src",4,"ngIf"],["title","ad",3,"src"],["storefrontVisibleOnScroll","",1,"no-display",3,"elementVisible","id"],[3,"href","target",4,"ngIf"],[1,"ad-sticky",3,"href","target"],[3,"height","src",4,"ngIf"],[3,"href","target"],[3,"height","src"]],template:function(t,r){1&t&&e.DNE(0,ze,8,5,"ng-container",2),2&t&&e.Y8G("ngIf",r.ad&&r.ad.providerConfig)},dependencies:[f.bT,f.ux,f.e1,f.fG,G.h,K,N.R],styles:["storefront-ad,.pxp-ad{display:block;overflow:hidden}storefront-ad a,.pxp-ad a{display:block}storefront-ad a.ad-sticky,.pxp-ad a.ad-sticky{display:none}storefront-ad storefront-image img.error,storefront-ad .pxp-image img.error,.pxp-ad storefront-image img.error,.pxp-ad .pxp-image img.error{position:relative;width:100vw;height:25vw;background-image:url(/assets/banner/banner_not_found.jpg);background-size:contain;opacity:1}storefront-ad[ad-type=HTML]>iframe,storefront-ad[data-pxp-ad-type=HTML]>iframe,.pxp-ad[ad-type=HTML]>iframe,.pxp-ad[data-pxp-ad-type=HTML]>iframe{width:100%;height:100%}.sticky-elements storefront-ad a,.sticky-elements .pxp-ad a{display:none}.sticky-elements storefront-ad a.ad-sticky,.sticky-elements .pxp-ad a.ad-sticky{display:block}.no-display{display:none}\n"],encapsulation:2}),o})(),we=(()=>{var i;class o{}return(i=o).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[f.MD,Ie.U,Ee.E,be]}),o})();const $e={component:j,leanDomComponent:Xe}},1803:(H,E,a)=>{a.d(E,{OK:()=>S,T0:()=>U,TS:()=>c,We:()=>e,gb:()=>R,or:()=>_});var f=a(9379),c=function(s){return s.VERTICAL="vertical",s.HORIZONTAL="horizontal",s.GRID="grid",s.GROUP="group",s.TABS="tabs",s}(c||{}),e=function(s){return s.BLANK="_blank",s.SELF="_self",s}(e||{}),v=function(s){return s.article="article",s.aside="aside",s.details="details",s.figcaption="figcaption",s.figure="figure",s.footer="footer",s.header="header",s.main="main",s.mark="mark",s.nav="nav",s.section="section",s.summary="summary",s.time="time",s}(v||{}),_=function(s){return s.div="div",s.p="p",s}(_||{}),h=function(s){return s.a="a",s.br="br",s.button="button",s.em="em",s.h1="h1",s.h2="h2",s.h3="h3",s.h4="h4",s.h5="h5",s.h6="h6",s.hr="hr",s.iframe="iframe",s.img="img",s.input="input",s.li="li",s.pre="pre",s.small="small",s.span="span",s.ul="ul",s}(h||{});const S=(0,f.A)((0,f.A)((0,f.A)({},h),v),_),R=(0,f.A)((0,f.A)({},v),_),U=(0,f.A)((0,f.A)({},v),_)},2932:(H,E,a)=>{a.d(E,{h:()=>G,q:()=>T});var f=a(177),c=a(4438),x=a(8251),e=a(8890),v=a(9516),_=a(9876),h=a(5102),S=a(3307),R=a(5927),U=a(3647);const s=["image"],z=(y,D,m)=>({imgRef:y,imageResolutionStrategy:D,focalPoint:m});function w(y,D){if(1&y){const m=c.RV6();c.j41(0,"img",2,0),c.nI1(2,"sanitizeUrl"),c.bIt("error",function(){c.eBV(m);const d=c.XpG();return c.Njj(d.onError())}),c.k0s()}if(2&y){const m=c.XpG();c.Y8G("priority",m.lcpPrioritized()||m.inViewPort())("ngSrc",c.i5U(2,6,m.src,"resourceUrl"))("alt",m.alt)("title",m.title)("loaderParams",c.sMw(9,z,m.elementRef.nativeElement,m.imageResolutionStrategy,m.focalPoint)),c.BMQ("aria-label",m.ariaLabel)}}let G=(()=>{var y;class D{get regularSrc(){return this.domHelper.regularSelector(this.src)}get prefixedPostType(){return this.domHelper.prefixedSelector(this.src)}get regularLabel(){return this.domHelper.regularSelector(this.label)}get prefixedLabel(){return this.domHelper.prefixedSelector(this.label)}get regularResolutionStrategy(){return this.domHelper.regularSelector(this.imageResolutionStrategy)}get prefixedResolutionStrategy(){return this.domHelper.prefixedSelector(this.imageResolutionStrategy)}set image(g){g&&this.onLoad(g),this._image=g}get image(){return this._image}get regularAlt(){return this.domHelper.regularSelector(this.alt)}get prefixedAlt(){return this.domHelper.prefixedSelector(this.alt)}get regularTitle(){return this.domHelper.regularSelector(this.title)}get prefixedTitle(){return this.domHelper.prefixedSelector(this.title)}get regularAriaLabel(){return this.domHelper.regularSelector(this.ariaLabel)}get prefixedAriaLabel(){return this.domHelper.prefixedSelector(this.ariaLabel)}get regularFocalPoint(){return this.domHelper.regularSelector(this.focalPoint)}get prefixedFocalPoint(){return this.domHelper.prefixedSelector(this.focalPoint)}get regularHeightStrategy(){return this.domHelper.regularSelector(this.height)}get prefixedHeightStrategy(){return this.domHelper.prefixedSelector(this.height)}constructor(g,d,A,b,I,P,M,V){this.changeDetectorRef=g,this.elementRef=d,this.subscriptions=A,this.platformId=b,this.contextService=I,this.purpleService=P,this.imagePreloaderService=M,this.domHelper=V,this.inViewPort=(0,c.vPA)(!1),this.lcpPrioritized=(0,c.hFB)(!1),this.error=new c.bkB,this.height=T.AUTO,(0,f.UE)(this.platformId)&&this.subscriptions.subscribe((0,e.eh)(this,this.elementRef),O=>this.load())}get empty(){return!this.src}ngOnInit(){var g;(0,f.UE)(this.platformId)&&(this.imagePreloaderService.getAboveFoldImg()===(null===(g=this.src)||void 0===g?void 0:g.split("?")[0])&&this.inViewPort.set(!0));this.initProperties()}initProperties(){var g,d,A,b;this.alt=(null===(g=this.extendedThumbnail)||void 0===g?void 0:g.properties.alt)||(null===(d=this.extendedThumbnail)||void 0===d?void 0:d.properties.caption)||"",this.title=this.alt,this.ariaLabel=null!==(A=this.label)&&void 0!==A?A:this.alt,this.focalPoint=null===(b=this.extendedThumbnail)||void 0===b?void 0:b.properties.focuspoint}initAndLoad(){this.initProperties(),this.load()}load(){this.loaded||(this.loaded=!0,this.src&&this.update(),this.changeDetectorRef.detectChanges())}ngOnChanges(g){g.src&&this.loaded&&this.update()}update(){this.updateImageRatio()}onLoad(g){g.nativeElement.classList.add("loaded"),this.elementRef.nativeElement.classList.add("loaded"),this.changeDetectorRef.detectChanges(),g.nativeElement.addEventListener("load",()=>{this.updateImageRatio(!0,g),this.changeDetectorRef.markForCheck()}),g.nativeElement.addEventListener("error",function(){g.nativeElement.style.display="none",g.nativeElement.nextElementSibling&&(g.nativeElement.nextElementSibling.style.display="inline")}),this.purpleService.addImageSrc(this.resizeSrc)}onError(){if(!this.src)return;const g=this.purpleService.getAlternativeSrc(this.resizeSrc);var d;g&&g!==this.resizeSrc?(this.setResizeSrc(g),this.changeDetectorRef.detectChanges()):(null===(d=this.image)||void 0===d||d.nativeElement.classList.add("error"),this.elementRef.nativeElement.classList.add("error"),this.error.emit(this))}updateImageRatio(g=!1,d=this.image){this.imageRatio=this.height===T.AUTO?(0,_.z)(!g,null==d?void 0:d.nativeElement,this.src)+"%":void 0}setResizeSrc(g){const d=this.contextService.toResourceUrl(g);this.resizeSrc=this.src=d}}return(y=D).\u0275fac=function(g){return new(g||y)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(x.v),c.rXU(c.Agw),c.rXU(v.V),c.rXU(h.Wj),c.rXU(S.d),c.rXU(R.S))},y.\u0275cmp=c.VBU({type:y,selectors:[["storefront-image"]],viewQuery:function(g,d){if(1&g&&c.GBs(s,5),2&g){let A;c.mGM(A=c.lsd())&&(d.image=A.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:20,hostBindings:function(g,d){2&g&&(c.BMQ("src",d.regularSrc)("data-pxp-src",d.prefixedPostType)("label",d.regularLabel)("data-pxp-label",d.prefixedLabel)("resolution-strategy",d.regularResolutionStrategy)("data-pxp-resolution-strategy",d.prefixedResolutionStrategy)("alt",d.regularAlt)("data-pxp-alt",d.prefixedAlt)("title",d.regularTitle)("data-pxp-title",d.prefixedTitle)("aria-label",d.regularAriaLabel)("data-pxp-aria-label",d.prefixedAriaLabel)("focal-point",d.regularFocalPoint)("data-pxp-focal-point",d.prefixedFocalPoint)("height-strategy",d.regularHeightStrategy)("data-pxp-height-strategy",d.prefixedHeightStrategy),c.xc7("padding-top",d.imageRatio),c.AVh("empty",d.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",lcpPrioritized:[1,"lcpPrioritized"],height:"height"},outputs:{error:"error"},standalone:!1,features:[c.Jv_([x.v,{provide:f.WM,useFactory:(m,g)=>d=>{var A;const b=null==d||null===(A=d.loaderParams)||void 0===A?void 0:A.imgRef;if(b.offsetWidth){var I,P;const M=null==d||null===(I=d.loaderParams)||void 0===I?void 0:I.imageResolutionStrategy,V=(null==d||null===(P=d.loaderParams)||void 0===P?void 0:P.focalPoint)||"",O=g.toResourceUrl((0,_.G)(b,d.src,M,V));return m.resizeSrc=O,O}return""},deps:[y,v.V]}]),c.OA$],decls:1,vars:1,consts:[["image",""],["fill","true","disableOptimizedSrcset","",3,"priority","ngSrc","alt","title","loaderParams"],["fill","true","disableOptimizedSrcset","",3,"error","priority","ngSrc","alt","title","loaderParams"]],template:function(g,d){1&g&&c.DNE(0,w,3,13,"img",1),2&g&&c.vxM(d.src&&d.loaded?0:-1)},dependencies:[f.kt,U.R],styles:["storefront-image,.pxp-image{display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--imageLoadingColor);transition:.2s background-color ease-in}storefront-image[height-strategy=FIXED]>img,storefront-image[data-pxp-height-strategy=FIXED]>img,storefront-image[height-strategy=AUTO]>img,storefront-image[data-pxp-height-strategy=AUTO]>img,.pxp-image[height-strategy=FIXED]>img,.pxp-image[data-pxp-height-strategy=FIXED]>img,.pxp-image[height-strategy=AUTO]>img,.pxp-image[data-pxp-height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain}storefront-image[height-strategy=DEFAULT]>img,storefront-image[data-pxp-height-strategy=DEFAULT]>img,.pxp-image[height-strategy=DEFAULT]>img,.pxp-image[data-pxp-height-strategy=DEFAULT]>img{position:static!important}storefront-image.img-with-hidden-alt,.pxp-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-image>img,.pxp-image>img{display:block;transition:opacity .2s ease-in,background-color .2s ease-in;background-color:#fff0;max-width:100%;max-height:100%;opacity:0}storefront-image>img.loaded,.pxp-image>img.loaded{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded,.pxp-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),D})();var T=function(y){return y.AUTO="AUTO",y.FIXED="FIXED",y.DEFAULT="DEFAULT",y}(T||{})},4403:(H,E,a)=>{a.d(E,{U:()=>e});var f=a(177),c=a(4871),x=a(4438);let e=(()=>{var v;class _{}return(v=_).\u0275fac=function(S){return new(S||v)},v.\u0275mod=x.$C({type:v}),v.\u0275inj=x.G2t({imports:[f.MD,c.E]}),_})()},3647:(H,E,a)=>{a.d(E,{R:()=>x});var f=a(4438),c=a(345);let x=(()=>{var e;class v{constructor(h){this.sanitizer=h}transform(h,S="url"){switch(S){case"html":return this.sanitizer.bypassSecurityTrustHtml(h);case"style":return this.sanitizer.bypassSecurityTrustStyle(h);case"script":return this.sanitizer.bypassSecurityTrustScript(h);case"url":return this.sanitizer.bypassSecurityTrustUrl(h);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(h);default:throw new Error("Invalid safe type specified: ".concat(S))}}}return(e=v).\u0275fac=function(h){return new(h||e)(f.rXU(c.up,16))},e.\u0275pipe=f.EJ8({name:"sanitizeUrl",type:e,pure:!0,standalone:!1}),v})()}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_ad_ad_module_ts"],{6278:(M,x,s)=>{s.r(x),s.d(x,{AdModule:()=>we,component:()=>$e});var u=s(177),c=s(467),y=s(9379),e=s(4438),v=s(1210),r=s(9692),_=s(8251),E=s(4945),G=s(6843),O=s(1184),z=s(610),B=s(1803);const w={adId:null};var U=s(2932),D=s(8890),h=s(7370),b=s(3178),m=s(5964),g=s(6697),d=s(4412),A=s(4572),I=s(7673),S=s(8179),P=s(8582),T=s(9516),L=s(2596),V=s(3331),Z=s(345),Q=s(8340),J=s(7816);class k extends J.Q{getAdConfig(){var a;return null===(a=this.data)||void 0===a?void 0:a.configuration}}class F extends Q.U{}class q extends k{constructor(a){super("Audienzz Ads",a),this.data=a}createInstance(){return new ee(this)}canRunWithoutConsent(){return!0}isValidConfiguration(){const a=this.getAdConfig();return!!(null!=a&&a.adTagId&&null!=a&&a.headerScriptId&&null!=a&&a.headerScriptUrl)}}class ee extends F{constructor(a){super(a),this.config=a}adjustDocument(){var a=this;return(0,c.A)(function*(){return new Promise((n,t)=>{document.head.appendChild(a.createScript(n,t))})})()}showAd(a,n,t,o){const p=this.createAdElement(n.providerConfig);t.parentNode.appendChild(p),o&&o()}removeAd(a){const n=document.getElementById("".concat(a));n&&n.remove()}createAdElement(a){const n=document.createElement("div");return n.id="".concat(a.id),n}createScript(a,n){const t=this.getConfig().getAdConfig(),o=document.createElement("script");return o.id=t.headerScriptId,o.src="".concat(t.headerScriptUrl,"?adTagId=").concat(t.adTagId),o.setAttribute("defer","defer"),o.onload=()=>{console.debug("[".concat(this.getDisplayName(),"] Script loaded successfully")),a()},o.onerror=l=>{console.error("[".concat(this.getDisplayName(),"] Failed to load script:"),l),n(l)},o}}class te extends k{constructor(){super("NoopAdService",{})}createInstance(){return new Y}isValidConfiguration(){return!0}}class Y extends F{constructor(){super(new te)}adjustDocument(){return Promise.resolve()}showAd(){}removeAd(){}}var ie=s(7879),ne=s(953),K=s(6078);let re=(()=>{var i;class a{constructor(t,o,l,p){this.platformId=t,this.pxpConfig=o,this.pluginService=l,this.consentService=p,this.activePlugin=new Y,this.initPromise=this.initializeAdPlugin()}showAd(t,o,l,p){var f=this;return(0,c.A)(function*(){yield f.initPromise;try{f.activePlugin.showAd(t,o,l,p)}catch(C){console.error("Failed to show plugin ad: ".concat(C))}})()}removeAd(t){var o=this;return(0,c.A)(function*(){yield o.initPromise;try{o.activePlugin.removeAd(t)}catch(l){console.error("Failed to remove plugin ad: ".concat(l))}})()}initializeAdPlugin(){var t=this;return(0,c.A)(function*(){var o;if(!(0,u.UE)(t.platformId))return;yield t.pluginService.init$,yield t.consentService.init$;const l=t.pxpConfig,p=null==l||null===(o=l.purple)||void 0===o?void 0:o.ads;let f;null!=p&&p.audienzz&&(t.pluginConfig=new q(p.audienzz),f=t.consentService.canRunPlugin(t.pluginConfig)&&t.pluginService.loadPlugin(t.pluginConfig)),f&&(t.activePlugin=f)})()}}return(i=a).\u0275fac=function(t){return new(t||i)(e.KVO(e.Agw),e.KVO(ie.Wp),e.KVO(ne.z),e.KVO(K.e))},i.\u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),a})();var oe=s(8482),ae=s(1652),se=s(4748),le=s(5927),de=s(3726),ce=s(152);let N=(()=>{var i;class a{constructor(t,o,l){this.el=t,this.ngZone=o,this.platformId=l,this.pixelsLeftToScroll=600,this.elementVisible=new e.bkB,this.isVisible=!1}ngAfterViewInit(){(0,u.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>{this.scrollSubscription=(0,de.R)(window,"scroll",{passive:!0}).pipe((0,ce.B)(100)).subscribe(()=>this.checkPosition()),setTimeout(()=>this.checkPosition(),500)})}ngOnDestroy(){this.scrollSubscription&&this.scrollSubscription.unsubscribe()}checkPosition(){if(!this.isVisible){const t=this.el.nativeElement.getBoundingClientRect(),o=window.innerHeight;t.top<=o+this.pixelsLeftToScroll&&this.ngZone.run(()=>{this.isVisible=!0,this.elementVisible.emit(!0)})}}}return(i=a).\u0275fac=function(t){return new(t||i)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(e.Agw))},i.\u0275dir=e.FsC({type:i,selectors:[["","storefrontVisibleOnScroll",""]],inputs:{pixelsLeftToScroll:"pixelsLeftToScroll"},outputs:{elementVisible:"elementVisible"},standalone:!1}),a})();var H=s(3647);const ge=["stickyLink"],fe=["adContainer"];function pe(i,a){if(1&i&&(e.qex(0),e.nrm(1,"div",6),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("id",n.uuid)}}function ue(i,a){if(1&i&&e.nrm(0,"iframe",8),2&i){const n=e.XpG(3);e.Y8G("src",n.safeIframeUrl,e.f$h)}}function me(i,a){if(1&i&&(e.qex(0),e.DNE(1,ue,1,1,"iframe",7),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.safeIframeUrl)}}function he(i,a){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",9),e.bIt("elementVisible",function(o){e.eBV(n);const l=e.XpG(3);return e.Njj(l.onVisible(o))}),e.k0s(),e.bVm()}if(2&i){const n=e.XpG(2).ngIf;e.R7$(),e.HbH(n.class),e.Y8G("id",n.id)}}function ve(i,a){if(1&i&&(e.qex(0),e.DNE(1,he,2,3,"ng-container",2),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",!n.isDynamicAd)}}function _e(i,a){1&i&&e.eu8(0)}function ye(i,a){if(1&i&&e.nrm(0,"storefront-image",14),2&i){const n=e.XpG(4);e.Y8G("height",n.getImageHeight())("src",n.getImageSrc())}}function Ae(i,a){if(1&i&&(e.j41(0,"a",13),e.nI1(1,"sanitizeUrl"),e.DNE(2,ye,1,2,"storefront-image",12),e.k0s()),2&i){const n=e.XpG(3);e.Y8G("href",e.bMT(1,3,n.getHref()),e.B4B)("target",n.target),e.R7$(2),e.Y8G("ngIf",n.getImageSrc())}}function Ce(i,a){if(1&i&&e.nrm(0,"storefront-image",14),2&i){const n=e.XpG(3);e.Y8G("height",n.getImageHeight())("src",n.getImageSrc(!0))}}function Se(i,a){if(1&i&&(e.qex(0),e.DNE(1,Ae,3,5,"a",10),e.j41(2,"a",11,1),e.nI1(4,"sanitizeUrl"),e.DNE(5,Ce,1,2,"storefront-image",12),e.k0s(),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.ad),e.R7$(),e.Y8G("href",e.bMT(4,4,n.getHref()),e.B4B)("target",n.target),e.R7$(3),e.Y8G("ngIf",n.getImageSrc(!0))}}function xe(i,a){if(1&i&&(e.qex(0,null,0)(2,3),e.DNE(3,pe,2,1,"ng-container",4)(4,me,2,1,"ng-container",4)(5,ve,2,1,"ng-container",4)(6,_e,1,0,"ng-container",4)(7,Se,6,6,"ng-container",5),e.bVm()()),2&i){const n=a.ngIf;e.R7$(2),e.Y8G("ngSwitch",n.type),e.R7$(),e.Y8G("ngSwitchCase","GPT"),e.R7$(),e.Y8G("ngSwitchCase","HTML"),e.R7$(),e.Y8G("ngSwitchCase","TRAFFECTIVE"),e.R7$(),e.Y8G("ngSwitchCase","AUDIENZZ")}}let j=(()=>{var i;class a extends v.${get adType(){var t;return null===(t=this.ad)||void 0===t?void 0:t.providerConfig.type}get regularAdType(){return this.domHelper.regularSelector(this.adType)}get prefixedAdType(){return this.domHelper.prefixedSelector(this.adType)}get iframeHostHeight(){var t;return(null===(t=this.ad)||void 0===t?void 0:t.providerConfig)&&this.ad.providerConfig.height}onClick(t){t.stopPropagation(),this.stickyLink&&(t.target===this.stickyLink.nativeElement||this.stickyLink.nativeElement.contains(t.target))?this.store.dispatch((0,z.k4)({url:window.location.href,key:"AD_STICKY_CLICKED",params:this.getTrackingParams()})):this.store.dispatch((0,z.k4)({url:window.location.href,key:"AD_CLICKED",params:this.getTrackingParams()}));const o=this.getHref();if(o.startsWith("#"))return this.router.navigateByUrl(o.substring(1)),t.preventDefault(),!1}constructor(t,o,l,p,f,C,R,X,$,ke,W,Fe,Ye,Ke,Ne){super(l,t,p,X,W),this.elementRef=t,this.store=o,this.injector=l,this.contextService=p,this.googleAdService=f,this.router=C,this.sanitizer=R,this.document=X,this.adService=$,this.traffectiveAdService=ke,this.globalService=W,this.consentService=Fe,this.ssrService=Ye,this.ngZone=Ke,this.domHelper=Ne,this.load=new e.bkB,this.loaded=!1,this.adVisible$=new d.t(!1),this.defaultConfig=(0,y.A)({},w)}ngOnDestroy(){super.ngOnDestroy(),this.ad&&this.loaded&&this.ad.providerConfig.type===r.P.GPT&&this.googleAdService.removeAd(this.uuid)}rebuildContextKeys(){super.rebuildContextKeys();const t=this.getAdConfig(this.baseConfig);null!=t&&t.providerConfig&&(0,O.Fl)(t.providerConfig,this.contextKeys)}onConfigChanges(){var t=this;return(0,c.A)(function*(){var o;const l=t.getAdConfig(t.config);if(l&&l.providerConfig){if(l.providerConfig){const C=(0,S.uQ)((0,y.A)((0,y.A)({},l.providerConfig),{},{targeting:null}),t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());if(!(0,S.ZY)(C))return void(t.config=null)}var p;if(l.providerConfig.type==r.P.TRAFFECTIVE&&(0,u.UE)(t.platformId)&&(yield t.consentService.init$,null===(p=t.traffectiveAdService)||void 0===p||!p.hasConsent()))return;t.ad=l,t.changeDetectorRef.detectChanges(),void 0===t.config.isLazy||t.config.isLazy?t.store.subscribe((0,D.eh)(t,t.elementRef,{skipWait:(0,u.Vy)(t.platformId)}),C=>{t.initAd()},b.lQ,b.lQ,"visible"):t.initAd()}else t.config.adId&&(l?l.providerConfig||console.warn("No provider config found for id ".concat(l.id,". Please migrate the ad configuration")):console.warn("No ad found for id ".concat(t.config.adId)));if("HTML"===(null===(o=t.ad)||void 0===o?void 0:o.providerConfig.type)){var f;const C=null===(f=t.ad)||void 0===f||null===(f=f.providerConfig)||void 0===f?void 0:f.url;C!==t.iframeUrl&&(t.iframeUrl=C,t.safeIframeUrl=t.sanitizer.bypassSecurityTrustResourceUrl(t.contextService.toResourceUrl(C)))}t.target=t.getTarget()})()}getAdConfig(t){let o=null;return t&&(t.adId?this.store.select((0,E.jZ)(G.O.AD),l=>{o=l.adSlots.find(p=>p.id===t.adId)}):t.ad&&(o=t.ad)),o}initAd(){var t;if(this.loaded=!0,(null===(t=window.storefrontHooks)||void 0===t||!t.isAdDisabled||!window.storefrontHooks.isAdDisabled(this.ad.id))&&(0,u.UE)(this.platformId))switch(this.ad.providerConfig.type){case r.P.GPT:this.initGpt();break;case r.P.TRAFFECTIVE:this.initTraffective();break;case r.P.AUDIENZZ:this.initPluginAd();break;default:return this.target=this.getTarget(),void this.load.emit()}}initGpt(){var t=this;return(0,c.A)(function*(){const o=(0,S.uQ)((0,y.A)((0,y.A)({},t.ad.providerConfig),{},{targeting:null}),t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());o.targeting=t.mergeTargeting(t.ad.providerConfig.targeting),t.uuid="div-gpt-"+(o.fixedId?t.ad.id:(0,P.l)()),t.changeDetectorRef.detectChanges();let l=null;o.sizeMapping&&t.store.select((0,E.jZ)(G.O.AD),p=>{const f=p.adSlots.find(C=>C.id===o.sizeMapping);f&&f.providerConfig&&"SIZEMAPPING"===f.providerConfig.type&&(l=f.providerConfig)}),t.googleAdService.showAd(t.uuid,o,l,t.elementRef.nativeElement,()=>{t.load.emit(),t.resizeGoogleAd()},()=>t.resizeGoogleAd()),t.store.subscribe((0,D.Ne)(),()=>t.resizeGoogleAd())})()}initTraffective(){var t=this;return(0,c.A)(function*(){if(t.ad.providerConfig){var o;const{id:l,class:p}=t.ad.providerConfig;t.isDynamicAd="Floor"==p||"Mobile_Sticky"==p,(0,A.z)([null===(o=t.traffectiveAdService)||void 0===o?void 0:o.isTRFConfigReady$.pipe((0,m.p)(f=>f),(0,g.s)(1)),t.isDynamicAd?(0,I.of)(!0):t.adVisible$.pipe((0,m.p)(f=>f),(0,g.s)(1))]).subscribe(()=>{var f;if(!(0,u.Vy)(t.platformId)&&null!==(f=window)&&void 0!==f&&f.traffective)try{t.ssrService.prebootCompleted$.subscribe(()=>{t.ngZone.runOutsideAngular(t.isDynamicAd?()=>{window.traffective.refreshBottomSticky(p,l)}:()=>{window.traffective.refreshSlot(p,l)})})}catch(C){console.warn("Error with traffective refresh slot",C)}})}})()}mergeTargeting(t){let o=null;if(t||this.config.targeting){o=[];let l=new Map;this.evaluateTargeting(t,l),this.evaluateTargeting(this.config.targeting,l),l.forEach((p,f)=>{o.push({key:f,value:p})})}return o}evaluateTargeting(t,o){t&&t.forEach(l=>{const p=(0,S.uQ)(l.key,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(p&&""!==p){let f=o.get(p);f||(f=[]),(Array.isArray(l.value)?l.value:[l.value]).forEach(C=>{let R=(0,S.uQ)(C,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(l.multiValue){let X=R.split(",").filter($=>""!==$);f.concat(X)}else R&&""!==R&&f.push(R)}),f.length>0&&o.set(p,f)}})}resizeGoogleAd(){}getImageHeight(){return this.config.imageHeight||U.q.AUTO}getImageSrc(t=!1){const o=this.ad&&this.ad.providerConfig;return o&&(0,O.rv)(t&&o.stickyImage||o.image)}getHref(){const t=this.ad&&this.ad.providerConfig;return t&&t.target}getTrackingParams(){return{AD_ID:this.config.adId}}onVisible(t){t&&this.adVisible$.next(!0)}initPluginAd(){var t=this;return(0,c.A)(function*(){t.adContainer&&t.adService.showAd(null,t.ad,t.adContainer.nativeElement,()=>t.load.emit())})()}getTarget(){return(0,h.tb)(this.getHref())?B.We.BLANK:B.We.SELF}}return(i=a).type="ad",i.\u0275fac=function(t){return new(t||i)(e.rXU(e.aKT),e.rXU(_.B),e.rXU(e.zZn),e.rXU(T.V),e.rXU(L.s),e.rXU(V.Ix),e.rXU(Z.up),e.rXU(u.qQ),e.rXU(re),e.rXU(oe.y),e.rXU(ae.d),e.rXU(K.e),e.rXU(se.i),e.rXU(e.SKi),e.rXU(le.S))},i.\u0275cmp=e.VBU({type:i,selectors:[["storefront-ad"]],viewQuery:function(t,o){if(1&t&&(e.GBs(ge,5,e.aKT),e.GBs(fe,5,e.aKT)),2&t){let l;e.mGM(l=e.lsd())&&(o.stickyLink=l.first),e.mGM(l=e.lsd())&&(o.adContainer=l.first)}},hostVars:4,hostBindings:function(t,o){1&t&&e.bIt("click",function(p){return o.onClick(p)}),2&t&&(e.BMQ("ad-type",o.regularAdType)("data-pxp-ad-type",o.prefixedAdType),e.xc7("height",o.iframeHostHeight))},standalone:!1,features:[e.Jv_([_.B]),e.Vt3],decls:1,vars:1,consts:[["adContainer",""],["stickyLink",""],[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"id"],["title","ad",3,"src",4,"ngIf"],["title","ad",3,"src"],["storefrontVisibleOnScroll","",1,"no-display",3,"elementVisible","id"],[3,"href","target",4,"ngIf"],[1,"ad-sticky",3,"href","target"],[3,"height","src",4,"ngIf"],[3,"href","target"],[3,"height","src"]],template:function(t,o){1&t&&e.DNE(0,xe,8,5,"ng-container",2),2&t&&e.Y8G("ngIf",o.ad&&o.ad.providerConfig)},dependencies:[u.bT,u.ux,u.e1,u.fG,U.h,N,H.R],styles:["storefront-ad,.pxp-ad{display:block;overflow:hidden}storefront-ad a,.pxp-ad a{display:block}storefront-ad a.ad-sticky,.pxp-ad a.ad-sticky{display:none}storefront-ad storefront-image img.error,storefront-ad .pxp-image img.error,.pxp-ad storefront-image img.error,.pxp-ad .pxp-image img.error{position:relative;width:100vw;height:25vw;background-image:url(/assets/banner/banner_not_found.jpg);background-size:contain;opacity:1}storefront-ad[ad-type=HTML]>iframe,storefront-ad[data-pxp-ad-type=HTML]>iframe,.pxp-ad[ad-type=HTML]>iframe,.pxp-ad[data-pxp-ad-type=HTML]>iframe{width:100%;height:100%}.sticky-elements storefront-ad a,.sticky-elements .pxp-ad a{display:none}.sticky-elements storefront-ad a.ad-sticky,.sticky-elements .pxp-ad a.ad-sticky{display:block}.no-display{display:none}\n"],encapsulation:2}),a})();var Ie=s(4403),Ee=s(4871);let be=(()=>{var i;class a{}return(i=a).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[u.MD]}),a})();const De=["class","pxp-ad"];function Pe(i,a){if(1&i&&(e.qex(0),e.nrm(1,"div",6),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("id",n.uuid)}}function Re(i,a){if(1&i&&e.nrm(0,"iframe",8),2&i){const n=e.XpG(3);e.Y8G("src",n.safeIframeUrl,e.f$h)}}function Ue(i,a){if(1&i&&(e.qex(0),e.DNE(1,Re,1,1,"iframe",7),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.safeIframeUrl)}}function Te(i,a){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",9),e.bIt("elementVisible",function(o){e.eBV(n);const l=e.XpG(3);return e.Njj(l.onVisible(o))}),e.k0s(),e.bVm()}if(2&i){const n=e.XpG(2).ngIf;e.R7$(),e.HbH(n.class),e.Y8G("id",n.id)}}function Le(i,a){if(1&i&&(e.qex(0),e.DNE(1,Te,2,3,"ng-container",2),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",!n.isDynamicAd)}}function Ve(i,a){1&i&&e.eu8(0)}function Me(i,a){if(1&i&&e.nrm(0,"storefront-image",14),2&i){const n=e.XpG(4);e.Y8G("height",n.getImageHeight())("src",n.getImageSrc())}}function Ge(i,a){if(1&i&&(e.j41(0,"a",13),e.nI1(1,"sanitizeUrl"),e.DNE(2,Me,1,2,"storefront-image",12),e.k0s()),2&i){const n=e.XpG(3);e.Y8G("href",e.bMT(1,3,n.getHref()),e.B4B)("target",n.target),e.R7$(2),e.Y8G("ngIf",n.getImageSrc())}}function Oe(i,a){if(1&i&&e.nrm(0,"storefront-image",14),2&i){const n=e.XpG(3);e.Y8G("height",n.getImageHeight())("src",n.getImageSrc(!0))}}function ze(i,a){if(1&i&&(e.qex(0),e.DNE(1,Ge,3,5,"a",10),e.j41(2,"a",11,1),e.nI1(4,"sanitizeUrl"),e.DNE(5,Oe,1,2,"storefront-image",12),e.k0s(),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.ad),e.R7$(),e.Y8G("href",e.bMT(4,4,n.getHref()),e.B4B)("target",n.target),e.R7$(3),e.Y8G("ngIf",n.getImageSrc(!0))}}function Be(i,a){if(1&i&&(e.qex(0,null,0)(2,3),e.DNE(3,Pe,2,1,"ng-container",4)(4,Ue,2,1,"ng-container",4)(5,Le,2,1,"ng-container",4)(6,Ve,1,0,"ng-container",4)(7,ze,6,6,"ng-container",5),e.bVm()()),2&i){const n=a.ngIf;e.R7$(2),e.Y8G("ngSwitch",n.type),e.R7$(),e.Y8G("ngSwitchCase","GPT"),e.R7$(),e.Y8G("ngSwitchCase","HTML"),e.R7$(),e.Y8G("ngSwitchCase","TRAFFECTIVE"),e.R7$(),e.Y8G("ngSwitchCase","AUDIENZZ")}}let Xe=(()=>{var i;class a extends j{}return(i=a).\u0275fac=(()=>{let n;return function(o){return(n||(n=e.xGo(i)))(o||i)}})(),i.\u0275cmp=e.VBU({type:i,selectors:[["div",8,"pxp-ad"]],standalone:!1,features:[e.Jv_([_.B]),e.Vt3],attrs:De,decls:1,vars:1,consts:[["adContainer",""],["stickyLink",""],[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"id"],["title","ad",3,"src",4,"ngIf"],["title","ad",3,"src"],["storefrontVisibleOnScroll","",1,"no-display",3,"elementVisible","id"],[3,"href","target",4,"ngIf"],[1,"ad-sticky",3,"href","target"],[3,"height","src",4,"ngIf"],[3,"href","target"],[3,"height","src"]],template:function(t,o){1&t&&e.DNE(0,Be,8,5,"ng-container",2),2&t&&e.Y8G("ngIf",o.ad&&o.ad.providerConfig)},dependencies:[u.bT,u.ux,u.e1,u.fG,U.h,N,H.R],styles:["storefront-ad,.pxp-ad{display:block;overflow:hidden}storefront-ad a,.pxp-ad a{display:block}storefront-ad a.ad-sticky,.pxp-ad a.ad-sticky{display:none}storefront-ad storefront-image img.error,storefront-ad .pxp-image img.error,.pxp-ad storefront-image img.error,.pxp-ad .pxp-image img.error{position:relative;width:100vw;height:25vw;background-image:url(/assets/banner/banner_not_found.jpg);background-size:contain;opacity:1}storefront-ad[ad-type=HTML]>iframe,storefront-ad[data-pxp-ad-type=HTML]>iframe,.pxp-ad[ad-type=HTML]>iframe,.pxp-ad[data-pxp-ad-type=HTML]>iframe{width:100%;height:100%}.sticky-elements storefront-ad a,.sticky-elements .pxp-ad a{display:none}.sticky-elements storefront-ad a.ad-sticky,.sticky-elements .pxp-ad a.ad-sticky{display:block}.no-display{display:none}\n"],encapsulation:2}),a})(),we=(()=>{var i;class a{}return(i=a).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[u.MD,Ie.U,Ee.E,be]}),a})();const $e={component:j,leanDomComponent:Xe}},1803:(M,x,s)=>{s.d(x,{OE:()=>v,OK:()=>e,TS:()=>u,We:()=>y});var u=function(r){return r.VERTICAL="vertical",r.HORIZONTAL="horizontal",r.GRID="grid",r.GROUP="group",r.TABS="tabs",r}(u||{}),y=function(r){return r.BLANK="_blank",r.SELF="_self",r}(y||{}),e=function(r){return r.a="a",r.br="br",r.button="button",r.div="div",r.em="em",r.h1="h1",r.h2="h2",r.h3="h3",r.h4="h4",r.h5="h5",r.h6="h6",r.hr="hr",r.iframe="iframe",r.img="img",r.input="input",r.li="li",r.ol="ol",r.p="p",r.pre="pre",r.small="small",r.span="span",r.ul="ul",r.article="article",r.aside="aside",r.details="details",r.figcaption="figcaption",r.figure="figure",r.footer="footer",r.header="header",r.main="main",r.mark="mark",r.nav="nav",r.section="section",r.summary="summary",r.time="time",r}(e||{}),v=function(r){return r.div="div",r.li="li",r.ol="ol",r.p="p",r.ul="ul",r.article="article",r.aside="aside",r.details="details",r.figcaption="figcaption",r.figure="figure",r.footer="footer",r.header="header",r.main="main",r.mark="mark",r.nav="nav",r.section="section",r.summary="summary",r.time="time",r}(v||{})},2932:(M,x,s)=>{s.d(x,{h:()=>U,q:()=>D});var u=s(177),c=s(4438),y=s(8251),e=s(8890),v=s(9516),r=s(9876),_=s(5102),E=s(3307),G=s(5927),O=s(3647);const z=["image"],B=(h,b,m)=>({imgRef:h,imageResolutionStrategy:b,focalPoint:m});function w(h,b){if(1&h){const m=c.RV6();c.j41(0,"img",2,0),c.nI1(2,"sanitizeUrl"),c.bIt("error",function(){c.eBV(m);const d=c.XpG();return c.Njj(d.onError())}),c.k0s()}if(2&h){const m=c.XpG();c.Y8G("priority",m.lcpPrioritized()||m.inViewPort())("ngSrc",c.i5U(2,6,m.src,"resourceUrl"))("alt",m.alt)("title",m.title)("loaderParams",c.sMw(9,B,m.elementRef.nativeElement,m.imageResolutionStrategy,m.focalPoint)),c.BMQ("aria-label",m.ariaLabel)}}let U=(()=>{var h;class b{get regularSrc(){return this.domHelper.regularSelector(this.src)}get prefixedPostType(){return this.domHelper.prefixedSelector(this.src)}get regularLabel(){return this.domHelper.regularSelector(this.label)}get prefixedLabel(){return this.domHelper.prefixedSelector(this.label)}get regularResolutionStrategy(){return this.domHelper.regularSelector(this.imageResolutionStrategy)}get prefixedResolutionStrategy(){return this.domHelper.prefixedSelector(this.imageResolutionStrategy)}set image(g){g&&this.onLoad(g),this._image=g}get image(){return this._image}get regularAlt(){return this.domHelper.regularSelector(this.alt)}get prefixedAlt(){return this.domHelper.prefixedSelector(this.alt)}get regularTitle(){return this.domHelper.regularSelector(this.title)}get prefixedTitle(){return this.domHelper.prefixedSelector(this.title)}get regularAriaLabel(){return this.domHelper.regularSelector(this.ariaLabel)}get prefixedAriaLabel(){return this.domHelper.prefixedSelector(this.ariaLabel)}get regularFocalPoint(){return this.domHelper.regularSelector(this.focalPoint)}get prefixedFocalPoint(){return this.domHelper.prefixedSelector(this.focalPoint)}get regularHeightStrategy(){return this.domHelper.regularSelector(this.height)}get prefixedHeightStrategy(){return this.domHelper.prefixedSelector(this.height)}constructor(g,d,A,I,S,P,T,L){this.changeDetectorRef=g,this.elementRef=d,this.subscriptions=A,this.platformId=I,this.contextService=S,this.purpleService=P,this.imagePreloaderService=T,this.domHelper=L,this.inViewPort=(0,c.vPA)(!1),this.lcpPrioritized=(0,c.hFB)(!1),this.error=new c.bkB,this.height=D.AUTO,(0,u.UE)(this.platformId)&&this.subscriptions.subscribe((0,e.eh)(this,this.elementRef),V=>this.load())}get empty(){return!this.src}ngOnInit(){var g;(0,u.UE)(this.platformId)&&(this.imagePreloaderService.getAboveFoldImg()===(null===(g=this.src)||void 0===g?void 0:g.split("?")[0])&&this.inViewPort.set(!0));this.initProperties()}initProperties(){var g,d,A,I;this.alt=(null===(g=this.extendedThumbnail)||void 0===g?void 0:g.properties.alt)||(null===(d=this.extendedThumbnail)||void 0===d?void 0:d.properties.caption)||"",this.title=this.alt,this.ariaLabel=null!==(A=this.label)&&void 0!==A?A:this.alt,this.focalPoint=null===(I=this.extendedThumbnail)||void 0===I?void 0:I.properties.focuspoint}initAndLoad(){this.initProperties(),this.load()}load(){this.loaded||(this.loaded=!0,this.src&&this.update(),this.changeDetectorRef.detectChanges())}ngOnChanges(g){g.src&&this.loaded&&this.update()}update(){this.updateImageRatio()}onLoad(g){g.nativeElement.classList.add("loaded"),this.elementRef.nativeElement.classList.add("loaded"),this.changeDetectorRef.detectChanges(),g.nativeElement.addEventListener("load",()=>{this.updateImageRatio(!0,g),this.changeDetectorRef.markForCheck()}),g.nativeElement.addEventListener("error",function(){g.nativeElement.style.display="none",g.nativeElement.nextElementSibling&&(g.nativeElement.nextElementSibling.style.display="inline")}),this.purpleService.addImageSrc(this.resizeSrc)}onError(){if(!this.src)return;const g=this.purpleService.getAlternativeSrc(this.resizeSrc);var d;g&&g!==this.resizeSrc?(this.setResizeSrc(g),this.changeDetectorRef.detectChanges()):(null===(d=this.image)||void 0===d||d.nativeElement.classList.add("error"),this.elementRef.nativeElement.classList.add("error"),this.error.emit(this))}updateImageRatio(g=!1,d=this.image){this.imageRatio=this.height===D.AUTO?(0,r.z)(!g,null==d?void 0:d.nativeElement,this.src)+"%":void 0}setResizeSrc(g){const d=this.contextService.toResourceUrl(g);this.resizeSrc=this.src=d}}return(h=b).\u0275fac=function(g){return new(g||h)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(y.v),c.rXU(c.Agw),c.rXU(v.V),c.rXU(_.Wj),c.rXU(E.d),c.rXU(G.S))},h.\u0275cmp=c.VBU({type:h,selectors:[["storefront-image"]],viewQuery:function(g,d){if(1&g&&c.GBs(z,5),2&g){let A;c.mGM(A=c.lsd())&&(d.image=A.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:20,hostBindings:function(g,d){2&g&&(c.BMQ("src",d.regularSrc)("data-pxp-src",d.prefixedPostType)("label",d.regularLabel)("data-pxp-label",d.prefixedLabel)("resolution-strategy",d.regularResolutionStrategy)("data-pxp-resolution-strategy",d.prefixedResolutionStrategy)("alt",d.regularAlt)("data-pxp-alt",d.prefixedAlt)("title",d.regularTitle)("data-pxp-title",d.prefixedTitle)("aria-label",d.regularAriaLabel)("data-pxp-aria-label",d.prefixedAriaLabel)("focal-point",d.regularFocalPoint)("data-pxp-focal-point",d.prefixedFocalPoint)("height-strategy",d.regularHeightStrategy)("data-pxp-height-strategy",d.prefixedHeightStrategy),c.xc7("padding-top",d.imageRatio),c.AVh("empty",d.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",lcpPrioritized:[1,"lcpPrioritized"],height:"height"},outputs:{error:"error"},standalone:!1,features:[c.Jv_([y.v,{provide:u.WM,useFactory:(m,g)=>d=>{var A;const I=null==d||null===(A=d.loaderParams)||void 0===A?void 0:A.imgRef;if(I.offsetWidth){var S,P;const T=null==d||null===(S=d.loaderParams)||void 0===S?void 0:S.imageResolutionStrategy,L=(null==d||null===(P=d.loaderParams)||void 0===P?void 0:P.focalPoint)||"",V=g.toResourceUrl((0,r.G)(I,d.src,T,L));return m.resizeSrc=V,V}return""},deps:[h,v.V]}]),c.OA$],decls:1,vars:1,consts:[["image",""],["fill","true","disableOptimizedSrcset","",3,"priority","ngSrc","alt","title","loaderParams"],["fill","true","disableOptimizedSrcset","",3,"error","priority","ngSrc","alt","title","loaderParams"]],template:function(g,d){1&g&&c.DNE(0,w,3,13,"img",1),2&g&&c.vxM(d.src&&d.loaded?0:-1)},dependencies:[u.kt,O.R],styles:["storefront-image,.pxp-image{display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--imageLoadingColor);transition:.2s background-color ease-in}storefront-image[height-strategy=FIXED]>img,storefront-image[data-pxp-height-strategy=FIXED]>img,storefront-image[height-strategy=AUTO]>img,storefront-image[data-pxp-height-strategy=AUTO]>img,.pxp-image[height-strategy=FIXED]>img,.pxp-image[data-pxp-height-strategy=FIXED]>img,.pxp-image[height-strategy=AUTO]>img,.pxp-image[data-pxp-height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain}storefront-image[height-strategy=DEFAULT]>img,storefront-image[data-pxp-height-strategy=DEFAULT]>img,.pxp-image[height-strategy=DEFAULT]>img,.pxp-image[data-pxp-height-strategy=DEFAULT]>img{position:static!important}storefront-image.img-with-hidden-alt,.pxp-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-image>img,.pxp-image>img{display:block;transition:opacity .2s ease-in,background-color .2s ease-in;background-color:#fff0;max-width:100%;max-height:100%;opacity:0}storefront-image>img.loaded,.pxp-image>img.loaded{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded,.pxp-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),b})();var D=function(h){return h.AUTO="AUTO",h.FIXED="FIXED",h.DEFAULT="DEFAULT",h}(D||{})},4403:(M,x,s)=>{s.d(x,{U:()=>e});var u=s(177),c=s(4871),y=s(4438);let e=(()=>{var v;class r{}return(v=r).\u0275fac=function(E){return new(E||v)},v.\u0275mod=y.$C({type:v}),v.\u0275inj=y.G2t({imports:[u.MD,c.E]}),r})()},3647:(M,x,s)=>{s.d(x,{R:()=>y});var u=s(4438),c=s(345);let y=(()=>{var e;class v{constructor(_){this.sanitizer=_}transform(_,E="url"){switch(E){case"html":return this.sanitizer.bypassSecurityTrustHtml(_);case"style":return this.sanitizer.bypassSecurityTrustStyle(_);case"script":return this.sanitizer.bypassSecurityTrustScript(_);case"url":return this.sanitizer.bypassSecurityTrustUrl(_);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(_);default:throw new Error("Invalid safe type specified: ".concat(E))}}}return(e=v).\u0275fac=function(_){return new(_||e)(u.rXU(c.up,16))},e.\u0275pipe=u.EJ8({name:"sanitizeUrl",type:e,pure:!0,standalone:!1}),v})()}}]);
|