import{j as r,T as o,am as p,W as i}from"./vendor-mui-core-CnXrAOs3.js";function s(e,n=10){return typeof e=="string"&&e?.length>n?`${e.slice(0,n-1)}...${e.slice(-2)}`:e}function u({children:e,maxLength:n=10,sx:t=null,hiddenTip:l=!1}){return e?.length<=n?r.jsx(o,{sx:t,children:e}):l?r.jsx(o,{sx:t,children:s(e,n)}):r.jsx(p,{title:e,placement:"top",children:r.jsx(o,{sx:t,children:s(e,n)})})}u.propTypes={children:i.string.isRequired,maxLength:i.number,sx:i.object,hiddenTip:i.bool};export{u as S};
