import{Lb as o}from"./chunk-ISMRT7VU.js";var p=[[1920,120],[1440,90],[1280,70],[0,50]];function h(){let r=window.innerWidth;for(let[s,t]of p)if(r>=s)return t;return 25}var a=(()=>{class r{constructor(){this._adaptiveLength=h()}transform(t,i,e=10){if(!t)return"";t=t.trim().replace(/\s+/g," ");let n=i??this._adaptiveLength;if(t.length<=n)return t;let c=t.substring(0,n-e-5),u=t.substring(t.length-e);return`${c.trim()} ... ${u.trim()}`}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275pipe=o({name:"shortenProductName",type:r,pure:!0})}}return r})();export{a};
//# sourceMappingURL=chunk-V7UE5TJX.js.map
