import{a as A}from"./chunk-YJGHU5X2.js";import{T as w,la as z,ma as b}from"./chunk-GZC7HJRD.js";import{Sa as U,Ta as g,oa as R}from"./chunk-FYPK2SIE.js";import{La as u}from"./chunk-4HJM3CUF.js";import{$b as m,Ae as N,Da as I,Hb as a,Ib as p,Je as H,Pa as C,Qa as D,Ye as f,Zc as j,_c as k,bf as B,cc as L,dc as o,gb as _,lb as T,nc as x,oc as M,pc as l,qc as P,rc as S,v as y,wc as d,zb as s}from"./chunk-6DZ3MS4P.js";import{a as v,b as h}from"./chunk-FMXN7DFR.js";function O(n,e){if(n&1&&l(0,"p",5),n&2){let t=d().ngIf;o("innerHTML",t.headline,s)}}function $(n,e){if(n&1&&l(0,"p",5),n&2){let t=d().ngIf;o("innerHTML",t.content,s)}}function G(n,e){if(n&1&&(P(0),x(1,"div",1)(2,"cx-generic-link",2),m(3,O,1,1,"p",3),l(4,"ung-responsive-image",4),m(5,$,1,1,"p",3),M()(),S()),n&2){let t=e.ngIf;a(),o("promotion",t.promotionData),L("data-promotionId",t.promotionData==null?null:t.promotionData.id)("data-promotionName",t.promotionData==null?null:t.promotionData.name)("data-promotionPosition",t.promotionData==null?null:t.promotionData.position)("data-promotionCreative",t.promotionData==null?null:t.promotionData.creative)("id",t==null?null:t.uid),a(),o("url",t.urlLink)("target",t.linkTarget)("title",t.media==null?null:t.media.altText),a(),o("ngIf",t.headline),a(),o("container",t.media)("ssrPlaceholder",t.uid!=="ShoppsterLogoComponent")("NotLazyCarousel",t.uid==="ShoppsterLogoComponent"),a(),o("ngIf",t.content)}}var it=(()=>{let e=class e{constructor(i,r,c,E){this.component=i,this.analyticsService=r,this.elementRef=c,this.platformId=E}ngOnInit(){this.data$=this.component.data$.pipe(y(i=>h(v({},i),{promotionData:this.analyticsService?.createPromotionData(i,A(this.elementRef),!0),linkTarget:i?.external==="true"||i?.external===!0?"_blank":null}))),this.isBrowser=B(this.platformId)}};e.\u0275fac=function(r){return new(r||e)(p(R),p(w,8),p(_),p(T))},e.\u0275cmp=C({type:e,selectors:[["ung-banner"]],decls:2,vars:3,consts:[[4,"ngIf"],["googleTagPromotionDirective","","data-cy","cypress-googleTagPromotionDirective","isLast","true",1,"container",3,"promotion"],[3,"url","target","title"],[3,"innerHTML",4,"ngIf"],[3,"container","ssrPlaceholder","NotLazyCarousel"],[3,"innerHTML"]],template:function(r,c){r&1&&(m(0,G,6,14,"ng-container",0),j(1,"async")),r&2&&o("ngIf",k(1,1,c.data$))},dependencies:[N,U,z,H],encapsulation:2,changeDetection:0});let n=e;return n})();var dt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=D({type:e}),e.\u0275inj=I({imports:[f,u,g,b,f,u,g]});let n=e;return n})();export{it as a,dt as b};
