1import{a as F}from"./chunk-G3JI4JYQ.js";import{d as U}from"./chunk-N2BRNX2G.js";import"./chunk-5B73PZKH.js";import{$ as T,Cd as R,La as S,Sa as m,Y as k,aa as w,ba as E,ca as I,ma as O,pa as L}from"./chunk-BDKH7HVI.js";import{$c as D,Hb as g,Mb as A,Oa as P,Oc as _,Pc as C,ac as c,bd as y,cc as s,cd as x,ec as N,fc as v,gc as M,hc as d,ic as h,jc as b,kc as p,na as f,rb as u,rd as l,xd as n,zc as r}from"./chunk-4Q6BE6NT.js";import"./chunk-DIQPMGB2.js";function K(e,o){if(e&1&&p(0,"basf-mgnl-product-title-attribute",0),e&2){let t=r().$implicit;d("productAttribute",t)}}function Y(e,o){if(e&1&&c(0,K,1,1,"basf-mgnl-product-title-attribute",0),e&2){let t=o.$implicit;s(t.show&&t.value?0:-1)}}var H=(e,o,t)=>({link:e,label:o,target:t}),B=e=>({text:e}),G=(e,o,t,i)=>({action:e,category:o,type:t,value:i});function $(e,o){if(e&1&&(h(0,"a",1),p(1,"basf-wxp-title-selection",2),b()),e&2){let t=r(),i=r(2);d("link",y(4,H,o,t,i.TargetType.Blank))("wxpTrackValues",x(10,G,i.TrackingAction.LinkClicked,i.TrackingCategory.Click,i.TrackingType.Action,D(8,B,t))),u(),d("title",t)("titleType",i.headlineLevel())}}function j(e,o){if(e&1&&p(0,"basf-wxp-title-selection",2),e&2){let t=r(),i=r(2);d("title",t)("titleType",i.headlineLevel())}}function V(e,o){if(e&1&&c(0,$,2,15,"a",1)(1,j,1,2,"basf-wxp-title-selection",2),e&2){let t,i=r(2);s((t=i.renderHeadlineAsLink()&&i.getLink())?0:1,t)}}function X(e,o){if(e&1&&p(0,"basf-mgnl-product-title-attributes",0),e&2){let t=r(2);d("productAttributes",t.productAttributes())}}function W(e,o){if(e&1&&(c(0,V,2,1),c(1,X,1,1,"basf-mgnl-product-title-attributes",0)),e&2){let t,i=r();s((t=!i.isHidden()&&i.getTitle())?0:-1,t),u(),s(i.pimData()?1:-1)}}var q=(()=>{class e{constructor(){this.productAttribute=n(),this.BASE_TRANSLATION_KEY="productTitleAttribute",this.TRANSLATION_PREFIX="pim_",this.translateService=f(k),this.getLabel=l(()=>{let t=this.productAttribute();if(t!==void 0)return t.label?t.label:this.translateService.instant(`${this.BASE_TRANSLATION_KEY}.${this.TRANSLATION_PREFIX}${t.key}`)})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=g({type:e,selectors:[["basf-mgnl-product-title-attribute"]],inputs:{productAttribute:[1,"productAttribute"]},decls:5,vars:2,consts:[[1,"mgnl-product-title-attribute"],[1,"mgnl-product-title-attribute__label"],[1,"mgnl-product-title-attribute__value"]],template:function(i,a){i&1&&(h(0,"dl",0)(1,"dt",1),_(2),b(),h(3,"dd",2),_(4),b()()),i&2&&(u(2),C(a.getLabel()),u(2),C(a.productAttribute().value))},dependencies:[T],styles:["[_nghost-%COMP%]{display:inline-block;margin-right:1.5rem}[_nghost-%COMP%] .mgnl-product-title-attribute[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem;margin-block:0}[_nghost-%COMP%] .mgnl-product-title-attribute__label[_ngcontent-%COMP%]{font-weight:700;display:inline}[_nghost-%COMP%] .mgnl-product-title-attribute__value[_ngcontent-%COMP%]{margin:0;display:inline}"]})}}return e})(),z=(()=>{class e{constructor(){this.productAttributes=n()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=g({type:e,selectors:[["basf-mgnl-product-title-attributes"]],inputs:{productAttributes:[1,"productAttributes"]},decls:2,vars:0,consts:[[3,"productAttribute"]],template:function(i,a){i&1&&v(0,Y,1,1,null,null,N),i&2&&M(a.productAttributes())},dependencies:[T,q],encapsulation:2,changeDetection:0})}}return e})(),ct=(()=>{class e extends U{constructor(){super(...arguments),this.title=n(""),this.isHidden=n(!0),this.showProductNumber=n(!1),this.showProductInci=n(!1),this.showProductCas=n(!1),this.labelProductNumber=n(""),this.labelProductInci=n(""),this.labelProductCas=n(""),this.renderHeadlineAsLink=n(!1),this.headlineLevel=n("h1"),this.getTitle=l(()=>this.productName()||this.title()),this.TargetType=S,this.TrackingAction=w,this.TrackingCategory=E,this.TrackingType=I,this.ACTIONS=[m.MARKETING_PAGE,m.SALES_PAGE,m.PRODUCT_INFORMATION_PAGE,m.DOCUMENT_DOWNLOAD_PAGE],this.PRODUCT_KEY_NAME="name",this.productName=l(()=>this.pimData()?.[this.PRODUCT_KEY_NAME]),this.PRODUCT_KEY_NUMBER="id",this.PRODUCT_KEY_INCI="inciName",this.PRODUCT_KEY_CAS="casNumbers",this.productAttributes=l(()=>{let t=this.pimData()?.[this.PRODUCT_KEY_CAS];return[{key:this.PRODUCT_KEY_NUMBER,label:this.labelProductNumber(),show:this.showProductNumber(),value:this.pimData()?.[this.PRODUCT_KEY_NUMBER]},{key:this.PRODUCT_KEY_CAS,label:this.labelProductCas(),show:this.showProductCas(),value:t?t.join(", "):null},{key:this.PRODUCT_KEY_INCI,label:this.labelProductInci(),show:this.showProductInci(),value:this.pimData()?.[this.PRODUCT_KEY_INCI]}]}),this.touchpoint=l(()=>{let t=this.pimData()?.touchpoints;return t?.length>0?this.touchPointMssDirectService.getSpecificTouchPoint(t,this.ACTIONS,this.pidProvi
1der?.getChannels(),this.locale()):void 0}),this.getLink=l(()=>this.touchpoint()?.url),this.hasContentToDisplay=l(()=>!this.isHidden()&&!!this.getTitle()||!!this.productAttributes()?.some(t=>t.show&&t.value))}static{this.\u0275fac=(()=>{let t;return function(a){return(t||(t=P(e)))(a||e)}})()}static{this.\u0275cmp=g({type:e,selectors:[["basf-mgnl-product-title"]],inputs:{title:[1,"title"],isHidden:[1,"isHidden"],showProductNumber:[1,"showProductNumber"],showProductInci:[1,"showProductInci"],showProductCas:[1,"showProductCas"],labelProductNumber:[1,"labelProductNumber"],labelProductInci:[1,"labelProductInci"],labelProductCas:[1,"labelProductCas"],renderHeadlineAsLink:[1,"renderHeadlineAsLink"],headlineLevel:[1,"headlineLevel"]},features:[A],decls:1,vars:1,consts:[[3,"productAttributes"],["wxpLink","","wxpTrackLinks","",3,"link","wxpTrackValues"],[3,"title","titleType"]],template:function(i,a){i&1&&c(0,W,2,2),i&2&&s(a.hasContentToDisplay()?0:-1)},dependencies:[F,z,R,L,O],encapsulation:2,changeDetection:0})}}return e})();export{ct as MgnlProductTitleComponent};
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.