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