{"version":3,"file":"Truncate_text.D27VpIdE.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/s1LfxNAz6tLRzxW1AujT/c4Bu7Go0w8R5G7LU3V4Q/Truncate_text.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({background:\"#0099FF\"});// define no of lines after you want to truncate\nconst LINES=1;export default function withLineTruncate(Component){return props=>{const styles={...props===null||props===void 0?void 0:props.style,WebkitLineClamp:`${LINES}`,WebkitBoxOrient:\"vertical\",textOverflow:\"ellipsis\",display:\"-webkit-box\",overflow:\"hidden\"};return /*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(Component,{...props,style:styles})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactHoc\",\"name\":\"withLineTruncate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Truncate_text.map"],"mappings":"oNAEc,SAAwB,EAAiB,EAAU,CAAC,MAAO,CAAA,GAAO,CAAC,IAAM,EAAO,CAAC,GAAG,GAA0C,MAAM,mBAAmB,IAAQ,gBAAgB,WAAW,aAAa,WAAW,QAAQ,cAAc,SAAS,QAAS,EAAC,MAAoB,GAAKA,EAAU,CAAC,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAO,EAAC,AAAC,EAAC,AAAE,CAAE,kBAA1W,AAFN,GAAiE,IAAqE,CAChI,EAAS,EAAY,CAAC,WAAW,SAAU,EAAC,CAC5C,EAAM"}