@pronto-tools-and-more/files 14.41.0 → 14.43.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/src/default/storefront/buildInfo.json +4 -4
- package/files/framework/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +74 -74
- package/files/framework/src/default/storefront/index.html +2 -2
- package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_issue_issue_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/main.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_ad_ad_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-body_content-body_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_component_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_web-presenter_presenter_presenter_module_ts.js +1 -1
- 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/common.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_base-component_base-datacollection_component_ts-4706f8.js +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_issue_issue_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_catalog-content_content-body_content-body_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-featured-image_content-featured-c9ba26.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_category_category_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_collection_collection_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_dev-components_user-tag-testing_user-tag-testing_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_dropdown_dropdown_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_iframe_iframe_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_issue-search-result_issue-search-result_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_menu_menu_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_publication-completion_publication-completion_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_publication_publication_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_subscription_subscription_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_swiper_swiper_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_toggle_toggle_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_toolbar_toolbar_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"],{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),N=c(5964),T=c(6697),Y=c(4412),O=c(4572),H=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,O.z)([null===(r=t.traffectiveAdService)||void 0===r?void 0:r.isTRFConfigReady$.pipe((0,N.p)(l=>l),(0,T.s)(1)),t.isDynamicAd?(0,H.of)(!0):t.adVisible$.pipe((0,N.p)(l=>l),(0,T.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 Nt(i,o){1&i&&e.DNE(0,Lt,0,0,"ng-template",null,0,e.C5r)}function Tt(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,Tt,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 Ot(i,o){if(1&i&&e.DNE(0,Nt,2,0)(1,Yt,4,1),2&i){const n=e.XpG();e.vxM(n.isAdServiceType(o.type)?0:1)}}let Ht=(()=>{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,Ot,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:Ht}},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.article="article",a.aside="aside",a.br="br",a.button="button",a.details="details",a.dialog="dialog",a.em="em",a.figcaption="figcaption",a.figure="figure",a.footer="footer",a.h1="h1",a.h2="h2",a.h3="h3",a.h4="h4",a.h5="h5",a.h6="h6",a.header="header",a.hr="hr",a.iframe="iframe",a.img="img",a.input="input",a.li="li",a.main="main",a.mark="mark",a.nav="nav",a.ol="ol",a.p="p",a.pre="pre",a.section="section",a.small="small",a.span="span",a.strong="strong",a.summary="summary",a.time="time",a.ul="ul",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||{})}}]);
|
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),u=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 F={adId:null};var S=c(2932),M=c(8890),j=c(2596),w=c(7370),Q=c(3331),k=c(345),L=c(3178),K=c(8482),N=c(5964),T=c(6697),Y=c(4412),O=c(4572),H=c(7673),A=c(8179),$=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,u.A)(function*(){return new Promise((n,t)=>{document.head.appendChild(o.createScript(n,t))})})()}showAd(o,n,t,r,s){const d=n.providerConfig,l=this.createAdElement(d);t.parentNode.appendChild(l),this.refreshSlot(d.id,s).then(()=>{r&&r()})}removeAd(o){const n=document.getElementById("".concat(o));n&&n.remove()}refreshSlot(o,n){var t=this;return(0,u.A)(function*(){var s;yield t.init$,(yield n)&&(null===(s=window)||void 0===s||null===(s=s.htag)||void 0===s||null===(s=s.api("1"))||void 0===s||s.refreshAds())})()}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 z}isValidConfiguration(){return!0}}class z 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,u.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,u.A)(function*(){var l;const p=n.providerConfig,{platform:m}=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==m?void 0:m.split(" "))&&void 0!==l?l:[]),V.appendChild(v),d.refreshSlot(g.id,s).then(()=>{r&&r()})})()}removeAd(o){const n=document.getElementById("".concat(o));n&&n.remove()}refreshSlot(o,n){var t=this;return(0,u.A)(function*(){var r,s;yield t.init$,n&&(yield n),null===(r=t.scriptMethods)||void 0===r||null===(s=r.refreshSlot)||void 0===s||s.call(r,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 m="ad-content";d&&(m+=" space-top-".concat(d)),l&&(m+=" space-bottom-".concat(l)),p.className=m;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)($.e),this.activePlugin=new z,this.initPromise=this.initializeAdPlugin()}showAd(t,r,s,d,l){var p=this;return(0,u.A)(function*(){yield p.initPromise;try{p.activePlugin.showAd(t,r,s,d,l)}catch(m){console.error("Failed to show plugin ad: ".concat(m))}})()}removeAd(t){var r=this;return(0,u.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,u.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,u.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 R=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)(j.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)($.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)({},F)}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.baseConfig());null!=t&&t.providerConfig&&(0,P.Fl)(t.providerConfig,this.contextKeys)}onConfigChanges(){var t=this;return(0,u.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,u.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,u.A)(function*(){if(t.ad.providerConfig){var r;const{id:s,class:d}=t.ad.providerConfig;t.isDynamicAd="Floor"==d||"Mobile_Sticky"==d,(0,O.z)([null===(r=t.traffectiveAdService)||void 0===r?void 0:r.isTRFConfigReady$.pipe((0,N.p)(l=>l),(0,T.s)(1)),t.isDynamicAd?(0,H.of)(!0):t.adVisible$.pipe((0,N.p)(l=>l),(0,T.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 m=(0,A.uQ)(p,this.contextService.getContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);if(s.multiValue){let g=m.split(",").filter(f=>""!==f);l.concat(g)}else m&&""!==m&&l.push(m)}),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(){if(!this.adContainer)return;const t="ADSPIRIT"===this.ad.providerConfig.type?this.ssrService.prebootCompletedPromise:this.ssrService.spaNavigationPromise;this.adService.showAd(null,(0,C.A)((0,C.A)({},this.ad),{},{providerConfig:this.resolvedProviderConfig}),this.adContainer.nativeElement,()=>this.load.emit(),t)}getTarget(){return(0,w.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,R.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 Nt(i,o){1&i&&e.DNE(0,Lt,0,0,"ng-template",null,0,e.C5r)}function Tt(i,o){if(1&i&&e.nrm(0,"div",2),2&i){const n=e.XpG(3);e.Y8G("id",n.uuid)}}function $t(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 zt(i,o){if(1&i&&e.DNE(0,$t,1,1,"iframe",4),2&i){const n=e.XpG(3);e.Y8G("ngIf",n.safeIframeUrl)}}function Rt(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,Rt,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 Ft(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 jt(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 wt(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,jt,1,2,"div",9)(1,wt,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,Ft,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,Tt,1,1,"div",2)(1,zt,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 Ot(i,o){if(1&i&&e.DNE(0,Nt,2,0)(1,Yt,4,1),2&i){const n=e.XpG();e.vxM(n.isAdServiceType(o.type)?0:1)}}let Ht=(()=>{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,Ot,2,1),2&t){let s;e.vxM((s=null==r.ad?null:r.ad.providerConfig)?0:-1,s)}},dependencies:[h.bT,S.h,R.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:Ht}},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.article="article",a.aside="aside",a.br="br",a.button="button",a.details="details",a.dialog="dialog",a.em="em",a.figcaption="figcaption",a.figure="figure",a.footer="footer",a.h1="h1",a.h2="h2",a.h3="h3",a.h4="h4",a.h5="h5",a.h6="h6",a.header="header",a.hr="hr",a.iframe="iframe",a.img="img",a.input="input",a.li="li",a.main="main",a.mark="mark",a.nav="nav",a.ol="ol",a.p="p",a.pre="pre",a.section="section",a.small="small",a.span="span",a.strong="strong",a.summary="summary",a.time="time",a.ul="ul",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||{})}}]);
|