{"version":3,"file":"Truncate_text.DwZx9aO2.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/YoeaLkz8uCBiGL8RRvMA/uXlfpbxygs3Z3alfe3Ht/Truncate_text.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});// define no of lines after you want to truncate\nconst LINES=4;export default function withLineTruncate(Component){return props=>{const styles={...props?.style,WebkitLineClamp:`${LINES}`,WebkitBoxOrient:\"vertical\",textOverflow:\"ellipsis\",display:\"-webkit-box\",overflow:\"hidden\"};return /*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(Component,{...props,style:styles})});};}const LINES2=3;export function withLineTruncate2(Component){return props=>{const styles={...props?.style,WebkitLineClamp:`${LINES2}`,WebkitBoxOrient:\"vertical\",textOverflow:\"ellipsis\",display:\"-webkit-box\",overflow:\"hidden\"};return /*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(Component,{...props,style:styles})});};}const LINES3=1;export function withLineTruncate3(Component){return props=>{const styles={...props?.style,WebkitLineClamp:`${LINES3}`,WebkitBoxOrient:\"vertical\",textOverflow:\"ellipsis\",display:\"-webkit-box\",overflow:\"hidden\"};return /*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(Component,{...props,style:styles})});};}const LINES4=3;export function withLineTruncate4(Component){return props=>{const styles={...props?.style,WebkitLineClamp:`${LINES4}`,WebkitBoxOrient:\"vertical\",textOverflow:\"ellipsis\",display:\"-webkit-box\",overflow:\"hidden\"};return /*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(Component,{...props,style:styles})});};}export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withLineTruncate4\":{\"type\":\"reactHoc\",\"name\":\"withLineTruncate4\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLineTruncate3\":{\"type\":\"reactHoc\",\"name\":\"withLineTruncate3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLineTruncate2\":{\"type\":\"reactHoc\",\"name\":\"withLineTruncate2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactHoc\",\"name\":\"withLineTruncate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Truncate_text.map"],"mappings":"iLAEc,SAAwB,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAO,CAAC,GAAG,GAAO,MAAM,gBAAgB,GAAG,IAAQ,gBAAgB,WAAW,aAAa,WAAW,QAAQ,cAAc,SAAS,SAAS,CAAC,OAAoB,EAAKA,EAAU,CAAC,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,EAAO,CAAC,CAAC,CAAC,EAAmB,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAAO,CA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