@pronto-tools-and-more/files 14.5.0 → 14.6.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/deep-link-landing/purple-deep-link-landing.js +1 -1
- 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_issue_issue_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/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_ad_ad_module_ts"],{3626:(Y,C,c)=>{c.r(C),c.d(C,{AdModule:()=>je,component:()=>Qe});var f=c(177),h=c(467),v=c(9379),e=c(3953),A=c(1210),a=c(9692),x=c(8251),b=c(7031),E=c(6843),G=c(1184),$=c(610),P=c(1803);const B={adId:null};var S=c(2932),w=c(8890),U=c(2596),W=c(7370),F=c(3331),R=c(345),L=c(3178),j=c(8482),k=c(5964),V=c(6697),Q=c(4412),K=c(4572),H=c(7673),y=c(8179),z=c(6078),O=c(4748),Z=c(8582),J=c(953),q=c(8340),ee=c(7816);class I extends ee.Q{getAdConfig(){var o;return null===(o=this.data)||void 0===o?void 0:o.configuration}}class D extends q.U{}class te extends I{constructor(o){super("Audienzz Ads",o),this.data=o}createInstance(){return new ne(this)}canRunWithoutConsent(){return!0}isValidConfiguration(){const o=this.getAdConfig();return!!(null!=o&&o.adTagId&&null!=o&&o.headerScriptId&&null!=o&&o.headerScriptUrl)}}class ne extends D{constructor(o){super(o),this.config=o}adjustDocument(){var o=this;return(0,h.A)(function*(){return new Promise((i,t)=>{document.head.appendChild(o.createScript(i,t))})})()}showAd(o,i,t,r){const l=this.createAdElement(i.providerConfig);t.parentNode.appendChild(l),r&&r()}removeAd(o){const i=document.getElementById("".concat(o));i&&i.remove()}createAdElement(o){const i=document.createElement("div");return i.id="".concat(o.id),i}createScript(o,i){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=s=>{console.error("[".concat(this.getDisplayName(),"] Failed to load script:"),s),i(s)},r}}class ie extends I{constructor(){super("NoopAdService",{})}createInstance(){return new X}isValidConfiguration(){return!0}}class X extends D{constructor(){super(new ie)}adjustDocument(){return Promise.resolve()}showAd(){}removeAd(){}}var oe=c(7879),re=c(2305);const ae=["platform"];class se extends I{constructor(o){super("Adspirit Ads",o),this.data=o}createInstance(){return new de(this)}canRunWithoutConsent(){return!0}isValidConfiguration(){const o=this.getAdConfig();return!(null==o||!o.headerScriptId||null==o||!o.headerScriptUrl)}}class de extends D{constructor(o){super(o),this.config=o,this.setWindowKeys()}setWindowKeys(){const{scriptWinKey:o,premiumSubWinKey:i}=this.getConfig().getAdConfig();this.scriptWindowKey=o,this.premiumSubscriptionKey=i}adjustDocument(){var o=this;return(0,h.A)(function*(){return new Promise((i,t)=>{document.head.appendChild(o.createScript(i,t))})})()}showAd(o,i,t,r){var s=this;return(0,h.A)(function*(){var l;const d=i.providerConfig,{platform:g}=d,p=(0,re.A)(d,ae);let m=(null==p?void 0:p.params)||"";if(m.includes("special=no_ad")||s.getPurchasedSubscription())return;m&&!m.startsWith("&")&&(m="&"+m);const u=s.createAdElement(p,m),_=t.parentNode;_.classList.add("ad",...null!==(l=null==g?void 0:g.split(" "))&&void 0!==l?l:[]),_.appendChild(u),s.refreshSlot(p.id),r&&r()})()}removeAd(o){const i=document.getElementById("".concat(o));i&&i.remove()}refreshSlot(o){var i=this;return(0,h.A)(function*(){var t;yield i.init$,null===(t=i.scriptMethods)||void 0===t||t.refreshSlot(o)})()}getPurchasedSubscription(){return!!this.premiumSubscriptionKey&&!!window[this.premiumSubscriptionKey]}createAdElement(o,i){const{id:t,width:r,height:s,spaceTop:l,spaceBottom:d}=o,g=document.createElement("div");let p="ad-content";l&&(p+=" space-top-".concat(l)),d&&(p+=" space-bottom-".concat(d)),g.className=p;const m=document.createElement("div");m.className="ad-content-inner";const u=document.createElement("ins");u.className="asm_async_creative",u.style.display="inline-block",u.style.width=r?"".concat(r,"px"):"100%",u.style.height=s?"".concat(s,"px"):"auto",u.style.textAlign="left",u.style.textDecoration="none",u.setAttribute("data-asm-cdn","cdn.adspirit.de"),u.setAttribute("data-asm-host","apoverlag.adspirit.de"),u.setAttribute("data-asm-params","pid=".concat(t).concat(i));const _=document.createElement("span");return _.className="ad-badge",_.textContent="Anzeige",m.appendChild(u),m.appendChild(_),g.appendChild(m),g}createScript(o,i){const t=this.getConfig().getAdConfig(),r=document.createElement("script");return r.id=t.headerScriptId,r.src="".concat(t.headerScriptUrl),r.setAttribute("defer","defer"),r.onload=()=>{console.debug("[".concat(this.getDisplayName(),"] Script loaded successfully")),globalThis[this.scriptWindowKey]&&(this.scriptMethods=globalThis[this.scriptWindowKey]),o()},r.onerror=s=>{console.error("[".concat(this.getDisplayName(),"] Failed to load script:"),s),i(s)},r}}let ce=(()=>{var n;class o{constructor(){this.platformId=(0,e.WQX)(e.Agw),this.pxpConfig=(0,e.WQX)(oe.Wp),this.pluginService=(0,e.WQX)(J.z),this.consentService=(0,e.WQX)(z.e),this.activePlugin=new X,this.initPromise=this.initializeAdPlugin()}showAd(t,r,s,l){var d=this;return(0,h.A)(function*(){yield d.initPromise;try{d.activePlugin.showAd(t,r,s,l)}catch(g){console.error("Failed to show plugin ad: ".concat(g))}})()}removeAd(t){var r=this;return(0,h.A)(function*(){yield r.initPromise;try{r.activePlugin.removeAd(t)}catch(s){console.error("Failed to remove plugin ad: ".concat(s))}})()}initializeAdPlugin(){var t=this;return(0,h.A)(function*(){var r;if(!(0,f.UE)(t.platformId))return;yield t.pluginService.init$,yield t.consentService.init$;const s=t.pxpConfig,l=null==s||null===(r=s.purple)||void 0===r?void 0:r.ads;let d;null!=l&&l.audienzz&&(d=t.loadPlugin(l.audienzz,te)),null!=l&&l.adspirit&&(d=t.loadPlugin(l.adspirit,se)),d&&(t.activePlugin=d)})()}loadPlugin(t,r){return this.pluginConfig=new r(t),this.consentService.canRunPlugin(this.pluginConfig)&&this.pluginService.loadPlugin(this.pluginConfig)}}return(n=o).\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}),o})();var T=c(1302);let N=(()=>{var n;class o{constructor(){this.sanitizer=(0,e.WQX)(R.up)}transform(t,r="url"){switch(r){case"html":return this.sanitizer.bypassSecurityTrustHtml(t);case"style":return this.sanitizer.bypassSecurityTrustStyle(t);case"script":return this.sanitizer.bypassSecurityTrustScript(t);case"url":return this.sanitizer.bypassSecurityTrustUrl(t);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(t);default:throw new Error("Invalid safe type specified: ".concat(r))}}}return(n=o).\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.EJ8({name:"sanitizeUrl",type:n,pure:!0,standalone:!1}),o})();const le=["stickyLink"],ge=["adContainer"];function fe(n,o){if(1&n&&(e.qex(0),e.nrm(1,"div",6),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("id",i.uuid)}}function pe(n,o){if(1&n&&e.nrm(0,"iframe",8),2&n){const i=e.XpG(3);e.Y8G("src",i.safeIframeUrl,e.f$h)}}function ue(n,o){if(1&n&&(e.qex(0),e.DNE(1,pe,1,1,"iframe",7),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.safeIframeUrl)}}function me(n,o){if(1&n){const i=e.RV6();e.qex(0),e.j41(1,"div",9),e.bIt("elementVisible",function(r){e.eBV(i);const s=e.XpG(3);return e.Njj(s.onVisible(r))}),e.k0s(),e.bVm()}if(2&n){const i=e.XpG(2).ngIf;e.R7$(),e.HbH(i.class),e.Y8G("id",i.id)}}function he(n,o){if(1&n&&(e.qex(0),e.DNE(1,me,2,3,"ng-container",2),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",!i.isDynamicAd)}}function ve(n,o){1&n&&e.eu8(0)}function _e(n,o){if(1&n&&e.nrm(0,"div",13),2&n){const i=e.XpG(5);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Ce(n,o){if(1&n&&e.nrm(0,"storefront-image",14),2&n){const i=e.XpG(5);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Ae(n,o){if(1&n&&e.DNE(0,_e,1,2,"div",13)(1,Ce,1,2,"storefront-image",14),2&n){const i=e.XpG(4);e.vxM(i.domHelper.leanDom?0:1)}}function ye(n,o){if(1&n&&(e.j41(0,"a",12),e.nI1(1,"sanitizeUrl"),e.DNE(2,Ae,2,1),e.k0s()),2&n){const i=e.XpG(3);e.Y8G("href",e.bMT(1,3,i.getHref()),e.B4B)("target",i.target),e.R7$(2),e.vxM(i.getImageSrc()?2:-1)}}function xe(n,o){if(1&n&&e.nrm(0,"div",13),2&n){const i=e.XpG(4);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Se(n,o){if(1&n&&e.nrm(0,"storefront-image",14),2&n){const i=e.XpG(4);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Ie(n,o){if(1&n&&e.DNE(0,xe,1,2,"div",13)(1,Se,1,2,"storefront-image",14),2&n){const i=e.XpG(3);e.vxM(i.domHelper.leanDom?0:1)}}function De(n,o){if(1&n&&(e.qex(0),e.DNE(1,ye,3,5,"a",10),e.j41(2,"a",11,1),e.nI1(4,"sanitizeUrl"),e.DNE(5,Ie,2,1),e.k0s(),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.ad),e.R7$(),e.Y8G("href",e.bMT(4,4,i.getHref()),e.B4B)("target",i.target),e.R7$(3),e.vxM(i.getImageSrc()?5:-1)}}function be(n,o){if(1&n&&(e.qex(0,null,0)(2,3),e.DNE(3,fe,2,1,"ng-container",4)(4,ue,2,1,"ng-container",4)(5,he,2,1,"ng-container",4)(6,ve,1,0,"ng-container",4)(7,De,6,6,"ng-container",5),e.bVm()()),2&n){const i=o.ngIf,t=e.XpG();e.R7$(2),e.Y8G("ngSwitch",i.type),e.R7$(),e.Y8G("ngSwitchCase","GPT"),e.R7$(),e.Y8G("ngSwitchCase","HTML"),e.R7$(),e.Y8G("ngSwitchCase","TRAFFECTIVE"),e.R7$(),e.Y8G("ngSwitchCase",t.isAdServiceType)}}let M=(()=>{var n;class o extends A.${constructor(){super(...arguments),this.store=(0,e.WQX)(x.B),this.googleAdService=(0,e.WQX)(U.s),this.router=(0,e.WQX)(F.Ix),this.sanitizer=(0,e.WQX)(R.up),this.adService=(0,e.WQX)(ce),this.traffectiveAdService=(0,e.WQX)(j.y),this.consentService=(0,e.WQX)(z.e),this.ssrService=(0,e.WQX)(O.i),this.ngZone=(0,e.WQX)(e.SKi),this.changeDetectorRef=(0,e.WQX)(e.gRc),this.isBrowser=(0,f.UE)(this.platformId),this.load=new e.bkB,this.loaded=!1,this.adVisible$=new Q.t(!1),this.defaultConfig=(0,v.A)({},B)}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,$.k4)({url:window.location.href,key:"AD_STICKY_CLICKED",params:this.getTrackingParams()})):this.store.dispatch((0,$.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}ngOnDestroy(){super.ngOnDestroy(),this.ad&&this.loaded&&this.ad.providerConfig.type===a.P.GPT&&this.googleAdService.removeAd(this.uuid)}rebuildContextKeys(){super.rebuildContextKeys();const t=this.getAdConfig(this.mutableBaseConfig());null!=t&&t.providerConfig&&(0,G.Fl)(t.providerConfig,this.contextKeys)}onConfigChanges(){var t=this;return(0,h.A)(function*(){var r;const s=t.getAdConfig(t.config);if(s&&s.providerConfig){if(s.providerConfig){const g=(0,y.uQ)((0,v.A)((0,v.A)({},s.providerConfig),{},{targeting:null}),t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());if(!(0,y.ZY)(g))return void(t.config=null);t.resolvedProviderConfig=g}var l;if((0,f.UE)(t.platformId)&&s.providerConfig.type==a.P.TRAFFECTIVE&&(yield t.consentService.init$,null===(l=t.traffectiveAdService)||void 0===l||!l.hasConsent()))return;t.ad=s,t.changeDetectorRef.detectChanges(),void 0===t.config.isLazy||t.config.isLazy?t.store.subscribe((0,w.eh)(t,t.elementRef,{skipWait:(0,f.Vy)(t.platformId)}),g=>{t.initAd()},L.lQ,L.lQ,"visible"):t.initAd()}else t.config.adId&&(s?s.providerConfig||console.warn("No provider config found for id ".concat(s.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 d;const g=null===(d=t.ad)||void 0===d||null===(d=d.providerConfig)||void 0===d?void 0:d.url;g!==t.iframeUrl&&(t.iframeUrl=g,t.safeIframeUrl=t.sanitizer.bypassSecurityTrustResourceUrl(t.contextService.toStorefrontResourceUrl(g)))}t.target=t.getTarget()})()}getAdConfig(t){let r=null;return t&&(t.adId?this.store.select((0,b.jZ)(E.O.AD),s=>{r=s.adSlots.find(l=>l.id===t.adId)}):t.ad&&(r=t.ad)),r}initAd(){var t;if(this.loaded=!0,!this.isBrowser||null!==(t=window.storefrontHooks)&&void 0!==t&&t.isAdDisabled&&window.storefrontHooks.isAdDisabled(this.ad.id))return;const r=this.ad.providerConfig.type;if(this.isAdServiceType(r))this.initPluginAd();else switch(r){case a.P.GPT:this.initGpt();break;case a.P.TRAFFECTIVE:this.initTraffective();break;default:return this.target=this.getTarget(),void this.load.emit()}}initGpt(){var t=this;return(0,h.A)(function*(){const r=(0,v.A)((0,v.A)({},t.resolvedProviderConfig),{},{targeting:t.mergeTargeting(t.ad.providerConfig.targeting)});t.uuid="div-gpt-"+(r.fixedId?t.ad.id:(0,Z.l)()),t.changeDetectorRef.detectChanges();let s=null;r.sizeMapping&&t.store.select((0,b.jZ)(E.O.AD),l=>{const d=l.adSlots.find(g=>g.id===r.sizeMapping);d&&d.providerConfig&&"SIZEMAPPING"===d.providerConfig.type&&(s=d.providerConfig)}),t.googleAdService.showAd(t.uuid,r,s,t.elementRef.nativeElement,()=>{t.load.emit(),t.resizeGoogleAd()},()=>t.resizeGoogleAd()),t.store.subscribe((0,w.Ne)(),()=>t.resizeGoogleAd())})()}initTraffective(){var t=this;return(0,h.A)(function*(){if(t.ad.providerConfig){var r;const{id:s,class:l}=t.ad.providerConfig;t.isDynamicAd="Floor"==l||"Mobile_Sticky"==l,(0,K.z)([null===(r=t.traffectiveAdService)||void 0===r?void 0:r.isTRFConfigReady$.pipe((0,k.p)(d=>d),(0,V.s)(1)),t.isDynamicAd?(0,H.of)(!0):t.adVisible$.pipe((0,k.p)(d=>d),(0,V.s)(1))]).subscribe(()=>{var d;if(!(0,f.Vy)(t.platformId)&&null!==(d=window)&&void 0!==d&&d.traffective)try{t.ssrService.prebootCompleted$.subscribe(()=>{t.ngZone.runOutsideAngular(t.isDynamicAd?()=>{window.traffective.refreshBottomSticky(l,s)}:()=>{window.traffective.refreshSlot(l,s)})})}catch(g){console.warn("Error with traffective refresh slot",g)}})}})()}mergeTargeting(t){let r=null;if(t||this.config.targeting){r=[];let s=new Map;this.evaluateTargeting(t,s),this.evaluateTargeting(this.config.targeting,s),s.forEach((l,d)=>{r.push({key:d,value:l})})}return r}evaluateTargeting(t,r){t&&t.forEach(s=>{const l=(0,y.uQ)(s.key,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(l&&""!==l){let d=r.get(l);d||(d=[]),(Array.isArray(s.value)?s.value:[s.value]).forEach(g=>{let p=(0,y.uQ)(g,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(s.multiValue){let m=p.split(",").filter(u=>""!==u);d.concat(m)}else p&&""!==p&&d.push(p)}),d.length>0&&r.set(l,d)}})}resizeGoogleAd(){}getImageHeight(){return this.config.imageHeight||S.q.AUTO}getImageSrc(t=!1){const r=this.ad&&this.ad.providerConfig;return r&&(0,G.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)}isAdServiceType(t){return"AUDIENZZ"===t||"ADSPIRIT"===t}initPluginAd(){this.adContainer&&this.adService.showAd(null,(0,v.A)((0,v.A)({},this.ad),{},{providerConfig:this.resolvedProviderConfig}),this.adContainer.nativeElement,()=>this.load.emit())}getTarget(){return(0,W.tb)(this.getHref())?P.We.BLANK:P.We.SELF}}return(n=o).type="ad",n.\u0275fac=(()=>{let i;return function(r){return(i||(i=e.xGo(n)))(r||n)}})(),n.\u0275cmp=e.VBU({type:n,selectors:[["storefront-ad"]],viewQuery:function(t,r){if(1&t&&(e.GBs(le,5,e.aKT),e.GBs(ge,5,e.aKT)),2&t){let s;e.mGM(s=e.lsd())&&(r.stickyLink=s.first),e.mGM(s=e.lsd())&&(r.adContainer=s.first)}},hostVars:4,hostBindings:function(t,r){1&t&&e.bIt("click",function(l){return r.onClick(l)}),2&t&&(e.BMQ("ad-type",r.regularAdType)("data-pxp-ad-type",r.prefixedAdType),e.xc7("height",r.iframeHostHeight))},standalone:!1,features:[e.Jv_([x.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,"href","target"],[1,"pxp-image",3,"height","src"],[3,"height","src"]],template:function(t,r){1&t&&e.DNE(0,be,8,5,"ng-container",2),2&t&&e.Y8G("ngIf",r.ad&&r.ad.providerConfig)},dependencies:[f.bT,f.ux,f.e1,f.fG,S.h,T.x,N],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 Ee=c(4403),Ge=c(4871);const $e=["class","pxp-ad"];function Pe(n,o){if(1&n&&(e.qex(0),e.nrm(1,"div",6),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("id",i.uuid)}}function we(n,o){if(1&n&&e.nrm(0,"iframe",8),2&n){const i=e.XpG(3);e.Y8G("src",i.safeIframeUrl,e.f$h)}}function Re(n,o){if(1&n&&(e.qex(0),e.DNE(1,we,1,1,"iframe",7),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.safeIframeUrl)}}function Le(n,o){if(1&n){const i=e.RV6();e.qex(0),e.j41(1,"div",9),e.bIt("elementVisible",function(r){e.eBV(i);const s=e.XpG(3);return e.Njj(s.onVisible(r))}),e.k0s(),e.bVm()}if(2&n){const i=e.XpG(2).ngIf;e.R7$(),e.HbH(i.class),e.Y8G("id",i.id)}}function ke(n,o){if(1&n&&(e.qex(0),e.DNE(1,Le,2,3,"ng-container",2),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",!i.isDynamicAd)}}function Ve(n,o){1&n&&e.eu8(0)}function ze(n,o){if(1&n&&e.nrm(0,"div",13),2&n){const i=e.XpG(5);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Xe(n,o){if(1&n&&e.nrm(0,"storefront-image",14),2&n){const i=e.XpG(5);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Te(n,o){if(1&n&&e.DNE(0,ze,1,2,"div",13)(1,Xe,1,2,"storefront-image",14),2&n){const i=e.XpG(4);e.vxM(i.domHelper.leanDom?0:1)}}function Ne(n,o){if(1&n&&(e.j41(0,"a",12),e.nI1(1,"sanitizeUrl"),e.DNE(2,Te,2,1),e.k0s()),2&n){const i=e.XpG(3);e.Y8G("href",e.bMT(1,3,i.getHref()),e.B4B)("target",i.target),e.R7$(2),e.vxM(i.getImageSrc()?2:-1)}}function Me(n,o){if(1&n&&e.nrm(0,"div",13),2&n){const i=e.XpG(4);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Ye(n,o){if(1&n&&e.nrm(0,"storefront-image",14),2&n){const i=e.XpG(4);e.Y8G("height",i.getImageHeight())("src",i.getImageSrc())}}function Be(n,o){if(1&n&&e.DNE(0,Me,1,2,"div",13)(1,Ye,1,2,"storefront-image",14),2&n){const i=e.XpG(3);e.vxM(i.domHelper.leanDom?0:1)}}function Ue(n,o){if(1&n&&(e.qex(0),e.DNE(1,Ne,3,5,"a",10),e.j41(2,"a",11,1),e.nI1(4,"sanitizeUrl"),e.DNE(5,Be,2,1),e.k0s(),e.bVm()),2&n){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.ad),e.R7$(),e.Y8G("href",e.bMT(4,4,i.getHref()),e.B4B)("target",i.target),e.R7$(3),e.vxM(i.getImageSrc()?5:-1)}}function We(n,o){if(1&n&&(e.qex(0,null,0)(2,3),e.DNE(3,Pe,2,1,"ng-container",4)(4,Re,2,1,"ng-container",4)(5,ke,2,1,"ng-container",4)(6,Ve,1,0,"ng-container",4)(7,Ue,6,6,"ng-container",5),e.bVm()()),2&n){const i=o.ngIf,t=e.XpG();e.R7$(2),e.Y8G("ngSwitch",i.type),e.R7$(),e.Y8G("ngSwitchCase","GPT"),e.R7$(),e.Y8G("ngSwitchCase","HTML"),e.R7$(),e.Y8G("ngSwitchCase","TRAFFECTIVE"),e.R7$(),e.Y8G("ngSwitchCase",t.isAdServiceType)}}let Fe=(()=>{var n;class o extends M{}return(n=o).\u0275fac=(()=>{let i;return function(r){return(i||(i=e.xGo(n)))(r||n)}})(),n.\u0275cmp=e.VBU({type:n,selectors:[["div",8,"pxp-ad"]],standalone:!1,features:[e.Jv_([x.B]),e.Vt3],attrs:$e,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,"href","target"],[1,"pxp-image",3,"height","src"],[3,"height","src"]],template:function(t,r){1&t&&e.DNE(0,We,8,5,"ng-container",2),2&t&&e.Y8G("ngIf",r.ad&&r.ad.providerConfig)},dependencies:[f.bT,f.ux,f.e1,f.fG,S.h,T.x,N],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})(),je=(()=>{var n;class o{}return(n=o).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[f.MD,Ee.U,Ge.E]}),o})();const Qe={component:M,leanDomComponent:Fe}},1803:(Y,C,c)=>{c.d(C,{OE:()=>A,OK:()=>e,TS:()=>f,We:()=>v});var f=function(a){return a.VERTICAL="vertical",a.HORIZONTAL="horizontal",a.GRID="grid",a.GROUP="group",a.TABS="tabs",a}(f||{}),v=function(a){return a.BLANK="_blank",a.SELF="_self",a}(v||{}),e=function(a){return a.div="div",a.a="a",a.br="br",a.button="button",a.dialog="dialog",a.em="em",a.h1="h1",a.h2="h2",a.h3="h3",a.h4="h4",a.h5="h5",a.h6="h6",a.hr="hr",a.iframe="iframe",a.img="img",a.input="input",a.li="li",a.ol="ol",a.p="p",a.pre="pre",a.small="small",a.span="span",a.ul="ul",a.article="article",a.aside="aside",a.details="details",a.figcaption="figcaption",a.figure="figure",a.footer="footer",a.header="header",a.main="main",a.mark="mark",a.nav="nav",a.section="section",a.summary="summary",a.time="time",a}(e||{}),A=function(a){return a.div="div",a.a="a",a.button="button",a.dialog="dialog",a.h1="h1",a.h2="h2",a.h3="h3",a.h4="h4",a.h5="h5",a.h6="h6",a.li="li",a.ol="ol",a.p="p",a.span="span",a.ul="ul",a.article="article",a.aside="aside",a.details="details",a.figcaption="figcaption",a.figure="figure",a.footer="footer",a.header="header",a.main="main",a.mark="mark",a.nav="nav",a.section="section",a.summary="summary",a.time="time",a}(A||{})}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_ad_ad_module_ts"],{3626:(W,_,c)=>{c.r(_),c.d(_,{AdModule:()=>Zt,component:()=>Jt});var h=c(177),m=c(467),C=c(9379),e=c(3953),y=c(1210),a=c(9692),x=c(8251),E=c(7031),b=c(6843),P=c(1184),G=c(610),X=c(1803);const R={adId:null};var S=c(2932),M=c(8890),F=c(2596),j=c(7370),Q=c(3331),k=c(345),L=c(3178),K=c(8482),T=c(5964),N=c(6697),Y=c(4412),H=c(4572),O=c(7673),A=c(8179),z=c(6078),Z=c(4748),J=c(8582),q=c(953),tt=c(8340),et=c(7816);class D extends et.Q{getAdConfig(){var o;return null===(o=this.data)||void 0===o?void 0:o.configuration}}class I extends tt.U{}class it extends D{constructor(o){super("Audienzz Ads",o),this.data=o}createInstance(){return new nt(this)}canRunWithoutConsent(){return!0}isValidConfiguration(){const o=this.getAdConfig();return!!(null!=o&&o.adTagId&&null!=o&&o.headerScriptId&&null!=o&&o.headerScriptUrl)}}class nt extends I{constructor(o){super(o),this.config=o}adjustDocument(){var o=this;return(0,m.A)(function*(){return new Promise((n,t)=>{document.head.appendChild(o.createScript(n,t))})})()}showAd(o,n,t,r){const d=this.createAdElement(n.providerConfig);t.parentNode.appendChild(d),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.async=!0,r.setAttribute("fetchpriority","high"),r.onload=()=>{console.debug("[".concat(this.getDisplayName(),"] Script loaded successfully")),o()},r.onerror=s=>{console.error("[".concat(this.getDisplayName(),"] Failed to load script:"),s),n(s)},r}}class ot extends D{constructor(){super("NoopAdService",{})}createInstance(){return new $}isValidConfiguration(){return!0}}class $ extends I{constructor(){super(new ot)}adjustDocument(){return Promise.resolve()}showAd(o,n,t,r,s){return Promise.resolve()}removeAd(){}}var rt=c(7879),at=c(2305);const st=["platform"];class dt extends D{constructor(o){super("Adspirit Ads",o),this.data=o}createInstance(){return new lt(this)}canRunWithoutConsent(){return!0}isValidConfiguration(){const o=this.getAdConfig();return!(null==o||!o.headerScriptId||null==o||!o.headerScriptUrl)}}class lt extends I{constructor(o){super(o),this.config=o,this.setWindowKeys()}setWindowKeys(){const{scriptWinKey:o,premiumSubWinKey:n}=this.getConfig().getAdConfig();this.scriptWindowKey=o,this.premiumSubscriptionKey=n}adjustDocument(){var o=this;return(0,m.A)(function*(){return new Promise((n,t)=>{document.head.appendChild(o.createScript(n,t))})})()}showAd(o,n,t,r,s){var d=this;return(0,m.A)(function*(){var l;const p=n.providerConfig,{platform:u}=p,g=(0,at.A)(p,st);let f=(null==g?void 0:g.params)||"";if(f.includes("special=no_ad")||d.getPurchasedSubscription())return;f&&!f.startsWith("&")&&(f="&"+f);const v=d.createAdElement(g,f),V=t.parentNode;V.classList.add("ad",...null!==(l=null==u?void 0:u.split(" "))&&void 0!==l?l:[]),V.appendChild(v),d.refreshSlot(g.id,s),r&&r()})()}removeAd(o){const n=document.getElementById("".concat(o));n&&n.remove()}refreshSlot(o,n){var t=this;return(0,m.A)(function*(){var r;yield t.init$,n&&(yield n),null===(r=t.scriptMethods)||void 0===r||r.refreshSlot(o)})()}getPurchasedSubscription(){return!!this.premiumSubscriptionKey&&!!window[this.premiumSubscriptionKey]}createAdElement(o,n){const{id:t,width:r,height:s,spaceTop:d,spaceBottom:l}=o,p=document.createElement("div");let u="ad-content";d&&(u+=" space-top-".concat(d)),l&&(u+=" space-bottom-".concat(l)),p.className=u;const g=document.createElement("div");g.className="ad-content-inner";const f=document.createElement("ins");f.className="asm_async_creative",f.style.display="inline-block",f.style.width=r?"".concat(r,"px"):"100%",f.style.height=s?"".concat(s,"px"):"auto",f.style.textAlign="left",f.style.textDecoration="none",f.setAttribute("data-asm-cdn","cdn.adspirit.de"),f.setAttribute("data-asm-host","apoverlag.adspirit.de"),f.setAttribute("data-asm-params","pid=".concat(t).concat(n));const v=document.createElement("span");return v.className="ad-badge",v.textContent="Anzeige",g.appendChild(f),g.appendChild(v),p.appendChild(g),p}createScript(o,n){const t=this.getConfig().getAdConfig(),r=document.createElement("script");return r.id=t.headerScriptId,r.src="".concat(t.headerScriptUrl),r.async=!0,r.setAttribute("fetchpriority","high"),r.onload=()=>{console.debug("[".concat(this.getDisplayName(),"] Script loaded successfully")),globalThis[this.scriptWindowKey]&&(this.scriptMethods=globalThis[this.scriptWindowKey]),o()},r.onerror=s=>{console.error("[".concat(this.getDisplayName(),"] Failed to load script:"),s),n(s)},r}}let ct=(()=>{var i;class o{constructor(){this.platformId=(0,e.WQX)(e.Agw),this.pxpConfig=(0,e.WQX)(rt.Wp),this.pluginService=(0,e.WQX)(q.z),this.consentService=(0,e.WQX)(z.e),this.activePlugin=new $,this.initPromise=this.initializeAdPlugin()}showAd(t,r,s,d,l){var p=this;return(0,m.A)(function*(){yield p.initPromise;try{p.activePlugin.showAd(t,r,s,d,l)}catch(u){console.error("Failed to show plugin ad: ".concat(u))}})()}removeAd(t){var r=this;return(0,m.A)(function*(){yield r.initPromise;try{r.activePlugin.removeAd(t)}catch(s){console.error("Failed to remove plugin ad: ".concat(s))}})()}initializeAdPlugin(){var t=this;return(0,m.A)(function*(){var r;if(!(0,h.UE)(t.platformId))return;yield t.pluginService.init$;const s=t.pxpConfig,d=null==s||null===(r=s.purple)||void 0===r?void 0:r.ads;let l;null!=d&&d.audienzz&&(l=yield t.loadPlugin(d.audienzz,it)),null!=d&&d.adspirit&&(l=yield t.loadPlugin(d.adspirit,dt)),l&&(t.activePlugin=l)})()}loadPlugin(t,r){var s=this;return(0,m.A)(function*(){s.pluginConfig=new r(t);let d=s.pluginConfig.canRunWithoutConsent();return d||(yield s.consentService.init$,d=s.consentService.canRunPlugin(s.pluginConfig)),d&&s.pluginService.loadPlugin(s.pluginConfig)})()}}return(i=o).\u0275fac=function(t){return new(t||i)},i.\u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),o})();var w=c(1302);let B=(()=>{var i;class o{constructor(){this.sanitizer=(0,e.WQX)(k.up)}transform(t,r="url"){switch(r){case"html":return this.sanitizer.bypassSecurityTrustHtml(t);case"style":return this.sanitizer.bypassSecurityTrustStyle(t);case"script":return this.sanitizer.bypassSecurityTrustScript(t);case"url":return this.sanitizer.bypassSecurityTrustUrl(t);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(t);default:throw new Error("Invalid safe type specified: ".concat(r))}}}return(i=o).\u0275fac=function(t){return new(t||i)},i.\u0275pipe=e.EJ8({name:"sanitizeUrl",type:i,pure:!0,standalone:!1}),o})();const pt=["stickyLink"],ft=["adContainer"];function ut(i,o){}function mt(i,o){1&i&&e.DNE(0,ut,0,0,"ng-template",null,0,e.C5r)}function gt(i,o){if(1&i&&e.nrm(0,"div",2),2&i){const n=e.XpG(3);e.Y8G("id",n.uuid)}}function ht(i,o){if(1&i&&e.nrm(0,"iframe",3),2&i){const n=e.XpG(4);e.Y8G("src",n.safeIframeUrl,e.f$h)}}function Ct(i,o){if(1&i&&e.DNE(0,ht,1,1,"iframe",4),2&i){const n=e.XpG(3);e.Y8G("ngIf",n.safeIframeUrl)}}function vt(i,o){if(1&i){const n=e.RV6();e.j41(0,"div",6),e.bIt("elementVisible",function(r){e.eBV(n);const s=e.XpG(4);return e.Njj(s.onVisible(r))}),e.k0s()}if(2&i){const n=e.XpG(3);e.HbH(n.class),e.Y8G("id",n.id)}}function _t(i,o){if(1&i&&e.DNE(0,vt,1,3,"div",5),2&i){const n=e.XpG(3);e.vxM(n.isDynamicAd?-1:0)}}function yt(i,o){if(1&i&&e.nrm(0,"div",9),2&i){const n=e.XpG(),t=e.XpG(5);e.Y8G("height",t.getImageHeight())("src",n)}}function At(i,o){if(1&i&&e.nrm(0,"storefront-image",10),2&i){const n=e.XpG(),t=e.XpG(5);e.Y8G("height",t.getImageHeight())("src",n)}}function xt(i,o){if(1&i&&e.DNE(0,yt,1,2,"div",9)(1,At,1,2,"storefront-image",10),2&i){const n=e.XpG(5);e.vxM(n.domHelper.leanDom?0:1)}}function St(i,o){if(1&i&&(e.j41(0,"a",7),e.nI1(1,"sanitizeUrl"),e.DNE(2,xt,2,1),e.k0s()),2&i){let n;const t=e.XpG(4);e.Y8G("href",e.bMT(1,3,t.getHref()),e.B4B)("target",t.target),e.R7$(2),e.vxM((n=t.getImageSrc())?2:-1,n)}}function Dt(i,o){if(1&i&&e.nrm(0,"div",9),2&i){const n=e.XpG(),t=e.XpG(4);e.Y8G("height",t.getImageHeight())("src",n)}}function It(i,o){if(1&i&&e.nrm(0,"storefront-image",10),2&i){const n=e.XpG(),t=e.XpG(4);e.Y8G("height",t.getImageHeight())("src",n)}}function Et(i,o){if(1&i&&e.DNE(0,Dt,1,2,"div",9)(1,It,1,2,"storefront-image",10),2&i){const n=e.XpG(4);e.vxM(n.domHelper.leanDom?0:1)}}function bt(i,o){if(1&i&&(e.DNE(0,St,3,5,"a",7),e.j41(1,"a",8,1),e.nI1(3,"sanitizeUrl"),e.DNE(4,Et,2,1),e.k0s()),2&i){let n;const t=e.XpG(3);e.vxM(t.ad?0:-1),e.R7$(),e.Y8G("href",e.bMT(3,4,t.getHref()),e.B4B)("target",t.target),e.R7$(3),e.vxM((n=t.getImageSrc(!0))?4:-1,n)}}function Pt(i,o){if(1&i&&e.DNE(0,gt,1,1,"div",2)(1,Ct,1,1,"iframe",3)(2,_t,1,1)(3,bt,5,6),2&i){let n;const t=e.XpG();e.vxM("GPT"===(n=t.type)?0:"HTML"===n?1:"TRAFFECTIVE"===n?2:3)}}function Gt(i,o){if(1&i&&e.DNE(0,mt,2,0)(1,Pt,4,1),2&i){const n=e.XpG();e.vxM(n.isAdServiceType(o.type)?0:1)}}let U=(()=>{var i;class o extends y.${constructor(){super(...arguments),this.store=(0,e.WQX)(x.B),this.googleAdService=(0,e.WQX)(F.s),this.router=(0,e.WQX)(Q.Ix),this.sanitizer=(0,e.WQX)(k.up),this.adService=(0,e.WQX)(ct),this.traffectiveAdService=(0,e.WQX)(K.y),this.consentService=(0,e.WQX)(z.e),this.ssrService=(0,e.WQX)(Z.i),this.ngZone=(0,e.WQX)(e.SKi),this.changeDetectorRef=(0,e.WQX)(e.gRc),this.isBrowser=(0,h.UE)(this.platformId),this.load=new e.bkB,this.loaded=!1,this.adVisible$=new Y.t(!1),this.defaultConfig=(0,C.A)({},R)}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,G.k4)({url:window.location.href,key:"AD_STICKY_CLICKED",params:this.getTrackingParams()})):this.store.dispatch((0,G.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}ngOnDestroy(){super.ngOnDestroy(),this.ad&&this.loaded&&this.ad.providerConfig.type===a.P.GPT&&this.googleAdService.removeAd(this.uuid)}rebuildContextKeys(){super.rebuildContextKeys();const t=this.getAdConfig(this.mutableBaseConfig());null!=t&&t.providerConfig&&(0,P.Fl)(t.providerConfig,this.contextKeys)}onConfigChanges(){var t=this;return(0,m.A)(function*(){var r;const s=t.getAdConfig(t.config);if(s&&s.providerConfig){if(s.providerConfig){const p=(0,A.uQ)((0,C.A)((0,C.A)({},s.providerConfig),{},{targeting:null}),t.contextService.getContext(),t.contextService.$functions,t.globalService.getGlobalData());if(!(0,A.ZY)(p))return void(t.config=null);t.resolvedProviderConfig=p}var d;if((0,h.UE)(t.platformId)&&s.providerConfig.type==a.P.TRAFFECTIVE&&(yield t.consentService.init$,null===(d=t.traffectiveAdService)||void 0===d||!d.hasConsent()))return;t.ad=s,t.changeDetectorRef.detectChanges(),void 0===t.config.isLazy||t.config.isLazy?t.store.subscribe((0,M.eh)(t,t.elementRef,{skipWait:(0,h.Vy)(t.platformId)}),p=>{t.initAd()},L.lQ,L.lQ,"visible"):t.initAd()}else t.config.adId&&(s?s.providerConfig||console.warn("No provider config found for id ".concat(s.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 l;const p=null===(l=t.ad)||void 0===l||null===(l=l.providerConfig)||void 0===l?void 0:l.url;p!==t.iframeUrl&&(t.iframeUrl=p,t.safeIframeUrl=t.sanitizer.bypassSecurityTrustResourceUrl(t.contextService.toStorefrontResourceUrl(p)))}t.target=t.getTarget()})()}getAdConfig(t){let r=null;return t&&(t.adId?this.store.select((0,E.jZ)(b.O.AD),s=>{r=s.adSlots.find(d=>d.id===t.adId)}):t.ad&&(r=t.ad)),r}initAd(){var t;if(this.loaded=!0,!this.isBrowser||null!==(t=window.storefrontHooks)&&void 0!==t&&t.isAdDisabled&&window.storefrontHooks.isAdDisabled(this.ad.id))return;const r=this.ad.providerConfig.type;if(this.isAdServiceType(r))this.initPluginAd();else switch(r){case a.P.GPT:this.initGpt();break;case a.P.TRAFFECTIVE:this.initTraffective();break;default:return this.target=this.getTarget(),void this.load.emit()}}initGpt(){var t=this;return(0,m.A)(function*(){const r=(0,C.A)((0,C.A)({},t.resolvedProviderConfig),{},{targeting:t.mergeTargeting(t.ad.providerConfig.targeting)});t.uuid="div-gpt-"+(r.fixedId?t.ad.id:(0,J.l)()),t.changeDetectorRef.detectChanges();let s=null;r.sizeMapping&&t.store.select((0,E.jZ)(b.O.AD),d=>{const l=d.adSlots.find(p=>p.id===r.sizeMapping);l&&l.providerConfig&&"SIZEMAPPING"===l.providerConfig.type&&(s=l.providerConfig)}),t.googleAdService.showAd(t.uuid,r,s,t.elementRef.nativeElement,()=>{t.load.emit(),t.resizeGoogleAd()},()=>t.resizeGoogleAd()),t.store.subscribe((0,M.Ne)(),()=>t.resizeGoogleAd())})()}initTraffective(){var t=this;return(0,m.A)(function*(){if(t.ad.providerConfig){var r;const{id:s,class:d}=t.ad.providerConfig;t.isDynamicAd="Floor"==d||"Mobile_Sticky"==d,(0,H.z)([null===(r=t.traffectiveAdService)||void 0===r?void 0:r.isTRFConfigReady$.pipe((0,T.p)(l=>l),(0,N.s)(1)),t.isDynamicAd?(0,O.of)(!0):t.adVisible$.pipe((0,T.p)(l=>l),(0,N.s)(1))]).subscribe(()=>{var l;if(!(0,h.Vy)(t.platformId)&&null!==(l=window)&&void 0!==l&&l.traffective)try{t.ssrService.prebootCompleted$.subscribe(()=>{t.ngZone.runOutsideAngular(t.isDynamicAd?()=>{window.traffective.refreshBottomSticky(d,s)}:()=>{window.traffective.refreshSlot(d,s)})})}catch(p){console.warn("Error with traffective refresh slot",p)}})}})()}mergeTargeting(t){let r=null;if(t||this.config.targeting){r=[];let s=new Map;this.evaluateTargeting(t,s),this.evaluateTargeting(this.config.targeting,s),s.forEach((d,l)=>{r.push({key:l,value:d})})}return r}evaluateTargeting(t,r){t&&t.forEach(s=>{const d=(0,A.uQ)(s.key,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(d&&""!==d){let l=r.get(d);l||(l=[]),(Array.isArray(s.value)?s.value:[s.value]).forEach(p=>{let u=(0,A.uQ)(p,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(s.multiValue){let g=u.split(",").filter(f=>""!==f);l.concat(g)}else u&&""!==u&&l.push(u)}),l.length>0&&r.set(d,l)}})}resizeGoogleAd(){}getImageHeight(){return this.config.imageHeight||S.q.AUTO}getImageSrc(t=!1){const r=this.ad&&this.ad.providerConfig;return r&&(0,P.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)}isAdServiceType(t){return"AUDIENZZ"===t||"ADSPIRIT"===t}initPluginAd(){this.adContainer&&this.adService.showAd(null,(0,C.A)((0,C.A)({},this.ad),{},{providerConfig:this.resolvedProviderConfig}),this.adContainer.nativeElement,()=>this.load.emit(),this.ssrService.prebootCompletedPromise)}getTarget(){return(0,j.tb)(this.getHref())?X.We.BLANK:X.We.SELF}}return(i=o).type="ad",i.\u0275fac=(()=>{let n;return function(r){return(n||(n=e.xGo(i)))(r||i)}})(),i.\u0275cmp=e.VBU({type:i,selectors:[["storefront-ad"]],viewQuery:function(t,r){if(1&t&&(e.GBs(pt,5,e.aKT),e.GBs(ft,5,e.aKT)),2&t){let s;e.mGM(s=e.lsd())&&(r.stickyLink=s.first),e.mGM(s=e.lsd())&&(r.adContainer=s.first)}},hostVars:4,hostBindings:function(t,r){1&t&&e.bIt("click",function(d){return r.onClick(d)}),2&t&&(e.BMQ("ad-type",r.regularAdType)("data-pxp-ad-type",r.prefixedAdType),e.xc7("height",r.iframeHostHeight))},standalone:!1,features:[e.Jv_([x.B]),e.Vt3],decls:1,vars:1,consts:[["adContainer",""],["stickyLink",""],[3,"id"],["title","ad",3,"src"],["title","ad",3,"src",4,"ngIf"],["storefrontVisibleOnScroll","",1,"no-display",3,"id","class"],["storefrontVisibleOnScroll","",1,"no-display",3,"elementVisible","id"],[3,"href","target"],[1,"ad-sticky",3,"href","target"],[1,"pxp-image",3,"height","src"],[3,"height","src"]],template:function(t,r){if(1&t&&e.DNE(0,Gt,2,1),2&t){let s;e.vxM((s=null==r.ad?null:r.ad.providerConfig)?0:-1,s)}},dependencies:[h.bT,S.h,w.x,B],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 Xt=c(4403),Mt=c(4871);const kt=["class","pxp-ad"];function Lt(i,o){}function Tt(i,o){1&i&&e.DNE(0,Lt,0,0,"ng-template",null,0,e.C5r)}function Nt(i,o){if(1&i&&e.nrm(0,"div",2),2&i){const n=e.XpG(3);e.Y8G("id",n.uuid)}}function zt(i,o){if(1&i&&e.nrm(0,"iframe",3),2&i){const n=e.XpG(4);e.Y8G("src",n.safeIframeUrl,e.f$h)}}function $t(i,o){if(1&i&&e.DNE(0,zt,1,1,"iframe",4),2&i){const n=e.XpG(3);e.Y8G("ngIf",n.safeIframeUrl)}}function wt(i,o){if(1&i){const n=e.RV6();e.j41(0,"div",6),e.bIt("elementVisible",function(r){e.eBV(n);const s=e.XpG(4);return e.Njj(s.onVisible(r))}),e.k0s()}if(2&i){const n=e.XpG(3);e.HbH(n.class),e.Y8G("id",n.id)}}function Bt(i,o){if(1&i&&e.DNE(0,wt,1,3,"div",5),2&i){const n=e.XpG(3);e.vxM(n.isDynamicAd?-1:0)}}function Ut(i,o){if(1&i&&e.nrm(0,"div",9),2&i){const n=e.XpG(),t=e.XpG(5);e.Y8G("height",t.getImageHeight())("src",n)}}function Vt(i,o){if(1&i&&e.nrm(0,"storefront-image",10),2&i){const n=e.XpG(),t=e.XpG(5);e.Y8G("height",t.getImageHeight())("src",n)}}function Wt(i,o){if(1&i&&e.DNE(0,Ut,1,2,"div",9)(1,Vt,1,2,"storefront-image",10),2&i){const n=e.XpG(5);e.vxM(n.domHelper.leanDom?0:1)}}function Rt(i,o){if(1&i&&(e.j41(0,"a",7),e.nI1(1,"sanitizeUrl"),e.DNE(2,Wt,2,1),e.k0s()),2&i){let n;const t=e.XpG(4);e.Y8G("href",e.bMT(1,3,t.getHref()),e.B4B)("target",t.target),e.R7$(2),e.vxM((n=t.getImageSrc())?2:-1,n)}}function Ft(i,o){if(1&i&&e.nrm(0,"div",9),2&i){const n=e.XpG(),t=e.XpG(4);e.Y8G("height",t.getImageHeight())("src",n)}}function jt(i,o){if(1&i&&e.nrm(0,"storefront-image",10),2&i){const n=e.XpG(),t=e.XpG(4);e.Y8G("height",t.getImageHeight())("src",n)}}function Qt(i,o){if(1&i&&e.DNE(0,Ft,1,2,"div",9)(1,jt,1,2,"storefront-image",10),2&i){const n=e.XpG(4);e.vxM(n.domHelper.leanDom?0:1)}}function Kt(i,o){if(1&i&&(e.DNE(0,Rt,3,5,"a",7),e.j41(1,"a",8,1),e.nI1(3,"sanitizeUrl"),e.DNE(4,Qt,2,1),e.k0s()),2&i){let n;const t=e.XpG(3);e.vxM(t.ad?0:-1),e.R7$(),e.Y8G("href",e.bMT(3,4,t.getHref()),e.B4B)("target",t.target),e.R7$(3),e.vxM((n=t.getImageSrc(!0))?4:-1,n)}}function Yt(i,o){if(1&i&&e.DNE(0,Nt,1,1,"div",2)(1,$t,1,1,"iframe",3)(2,Bt,1,1)(3,Kt,5,6),2&i){let n;const t=e.XpG();e.vxM("GPT"===(n=t.type)?0:"HTML"===n?1:"TRAFFECTIVE"===n?2:3)}}function Ht(i,o){if(1&i&&e.DNE(0,Tt,2,0)(1,Yt,4,1),2&i){const n=e.XpG();e.vxM(n.isAdServiceType(o.type)?0:1)}}let Ot=(()=>{var i;class o extends U{}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_([x.B]),e.Vt3],attrs:kt,decls:1,vars:1,consts:[["adContainer",""],["stickyLink",""],[3,"id"],["title","ad",3,"src"],["title","ad",3,"src",4,"ngIf"],["storefrontVisibleOnScroll","",1,"no-display",3,"id","class"],["storefrontVisibleOnScroll","",1,"no-display",3,"elementVisible","id"],[3,"href","target"],[1,"ad-sticky",3,"href","target"],[1,"pxp-image",3,"height","src"],[3,"height","src"]],template:function(t,r){if(1&t&&e.DNE(0,Ht,2,1),2&t){let s;e.vxM((s=null==r.ad?null:r.ad.providerConfig)?0:-1,s)}},dependencies:[h.bT,S.h,w.x,B],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})(),Zt=(()=>{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:[h.MD,Xt.U,Mt.E]}),o})();const Jt={component:U,leanDomComponent:Ot}},1803:(W,_,c)=>{c.d(_,{OE:()=>y,OK:()=>e,TS:()=>h,We:()=>C});var h=function(a){return a.VERTICAL="vertical",a.HORIZONTAL="horizontal",a.GRID="grid",a.GROUP="group",a.TABS="tabs",a}(h||{}),C=function(a){return a.BLANK="_blank",a.SELF="_self",a}(C||{}),e=function(a){return a.div="div",a.a="a",a.br="br",a.button="button",a.dialog="dialog",a.em="em",a.h1="h1",a.h2="h2",a.h3="h3",a.h4="h4",a.h5="h5",a.h6="h6",a.hr="hr",a.iframe="iframe",a.img="img",a.input="input",a.li="li",a.ol="ol",a.p="p",a.pre="pre",a.small="small",a.span="span",a.ul="ul",a.article="article",a.aside="aside",a.details="details",a.figcaption="figcaption",a.figure="figure",a.footer="footer",a.header="header",a.main="main",a.mark="mark",a.nav="nav",a.section="section",a.summary="summary",a.time="time",a}(e||{}),y=function(a){return a.div="div",a.a="a",a.button="button",a.dialog="dialog",a.h1="h1",a.h2="h2",a.h3="h3",a.h4="h4",a.h5="h5",a.h6="h6",a.li="li",a.ol="ol",a.p="p",a.span="span",a.ul="ul",a.article="article",a.aside="aside",a.details="details",a.figcaption="figcaption",a.figure="figure",a.footer="footer",a.header="header",a.main="main",a.mark="mark",a.nav="nav",a.section="section",a.summary="summary",a.time="time",a}(y||{})}}]);
|