1import{a as v}from"./chunk-GWD4HIGC.js";import{d as y}from"./chunk-LWKHVFLJ.js";import{i as a,j as o}from"./chunk-L3WFEMZZ.js";import"./chunk-QDEM6LAL.js";import"./chunk-IPMYLX2V.js";import"./chunk-TZLWYDYI.js";import"./chunk-ZTA2NZHP.js";import"./chunk-IXIDJ6AJ.js";import"./chunk-LCMBOYB5.js";import"./chunk-ZDU2KAED.js";import"./chunk-AS4KKN2C.js";import"./chunk-5BQZECQV.js";import"./chunk-CMMUUKYH.js";import{d as D}from"./chunk-PBD3D67Z.js";import{o as b}from"./chunk-GDUDO7DR.js";import{Ka as C,_ as T,pb as L}from"./chunk-KOJ3BWW3.js";import{$b as d,Gb as g,Ic as x,Kb as h,Lb as u,Mb as f,Na as c,bc as k,gc as s,jc as l,kd as I,na as r,qd as p,yc as m}from"./chunk-OUAW6PGT.js";import"./chunk-M5NEQLGQ.js";function P(i,M){if(i&1&&l(0,"basf-wxp-teaser",1),i&2){let e=m(),n=x(2);s("background",e.background)("links",e.wxpLinks())("teaserImage",n)("title",e.title)}}function _(i,M){if(i&1&&l(0,"basf-mgnl-image",2),i&2){let e=m();s("altTextOption",e.hasImage.altTextOption)("caption","")("image",e.hasImage.image)("title","")("objectFit",e.objectFit.FILL)}}var z=(()=>{class i extends D{constructor(){super(...arguments),this.title="",this.preferredChannel="",this.hasLinks=r(o,{self:!0}),this.hasImage=r(a,{self:!0}),this.objectFit=b,this.pageLocationIdentifier=L(this.mgnlPageService.pageLocationIdentifier$),this.wxpLinks=p(()=>{let e=this.pimData()?.touchpoints;return this.hasLinks.links?.["@nodes"]?.map(n=>{let t=this.hasLinks?.links?.[n];if(t&&t.link.field==="touchpoint"){let F=this.touchPointMssDirectService.getSpecificTouchPoint(e,[t.link.touchpoint],[t.link.channel],this.locale(),this.pageLocationIdentifier()?.label,!0);return{label:t.label,description:t.description,link:F?.url||"",target:t.link.target,external:!!t.link.styleExternal,type:C.Link}}else return this.linksService.getWXPLink(t)}).filter(n=>n&&n.link)}),this.hasContentToDisplay=p(()=>!!this.wxpLinks()?.length)}static{this.\u0275fac=(()=>{let e;return function(t){return(e||(e=c(i)))(t||i)}})()}static{this.\u0275cmp=g({type:i,selectors:[["basf-mgnl-pim-touchpoint-teaser"]],inputs:{title:"title",preferredChannel:"preferredChannel"},features:[h([{directive:o,inputs:["links","links"]},{directive:a,inputs:["image","image","altTextOption","altTextOption","extraLargeImage","extraLargeImage","mediumImage","mediumImage","smallImage","smallImage","tinyImage","tinyImage"]}]),u],decls:3,vars:1,consts:[["teaserImage",""],[3,"background","links","teaserImage","t
1itle"],["format","media-16x9",3,"altTextOption","caption","image","title","objectFit"]],template:function(n,t){n&1&&(d(0,P,1,4,"basf-wxp-teaser",1),f(1,_,1,5,"ng-template",null,0,I)),n&2&&k(t.hasContentToDisplay()?0:-1)},dependencies:[T,v,y],encapsulation:2,changeDetection:0})}}return i})();export{z as MgnlPimTouchpointTeaserComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.