1import{a as y}from"./chunk-MYYNPQMQ.js";import{a as k}from"./chunk-QFJNN3HS.js";import{d as P}from"./chunk-N2BRNX2G.js";import{p as D}from"./chunk-5B73PZKH.js";import{$ as M,Y as S,ce as b}from"./chunk-BDKH7HVI.js";import{Hb as h,Ia as g,Mb as C,Oa as f,ac as o,cc as r,gd as T,hc as n,hd as v,ic as _,jc as x,kc as c,lb as d,na as p,rb as u,rd as l,zc as s}from"./chunk-4Q6BE6NT.js";import"./chunk-DIQPMGB2.js";function z(e,a){e&1&&c(0,"h2",2),e&2&&n("innerHTML",a,d)}function w(e,a){if(e&1&&(_(0,"basf-wxp-text",0),o(1,z,1,1,"h2",2),c(2,"div",2),T(3,"safeHTML"),x()),e&2){let i,t=s(2);n("background",t.background)("anchorID",t.anchorID),u(),r((i=t.name())?1:-1,i),u(),n("innerHTML",v(3,4,t.value()),d)}}function I(e,a){if(e&1&&c(0,"basf-wxp-details-row",1),e&2){let i=s(2);n("name",i.name())("value",i.value())}}function H(e,a){if(e&1&&o(0,w,4,6,"basf-wxp-text",0)(1,I,1,2,"basf-wxp-details-row",1),e&2){let i=s();r(i.isTable()?1:0)}}var J=(()=>{class e extends P{constructor(){super(...arguments),this.translateService=p(S),this.isTable=g(p(D,{optional:!0})??!1),this.name=l(()=>{switch(this.headlineSwitch){case"automatic":return this.translateService.instant("pim.packagingSizes");case"custom":return this.customText??"";default:return""}}),this.value=l(()=>{let i=this.translateService.instant("pim.articleNo");return this.pimData()?.children?.filter(t=>t.packagingSizeText&&t.id)?.map(t=>`${t.packagingSizeText} (${i}: ${t.id})`)?.join("<br/>")??""}),this.hasContentToDisplay=l(()=>!!this.value())}static{this.\u0275fac=(()=>{let i;return function(m){return(i||(i=f(e)))(m||e)}})()}static{this.\u0275cmp=h({type:e,selectors:[["basf-mgnl-pim-package-size"]],inputs:{headlineSwitch:"headlineSwitch",customText:"customText"},features:[C],decls:1,vars:1,consts:[[3,"background","anchorID"],[3,"name","value"],[3,"innerHTML"]],template:function(t,m){t&1&&o(0,H,2,1),t&2&&r(m.hasContentToDisplay()?0:-1)},dependencies:[k,M,y,b],encapsulation:2,changeDetection:0})}}return e})();export{J as MgnlPimPackageSizeComponent};
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.