{"version":3,"file":"Truncate_text.C8PLLSsX.mjs","names":["_Fragment","__esmMin","init_npm_react_18_3_1","l","c","init_jsx_runtime","init_store_js__1_0","createStore","init_utils_js__0_9","withLineTruncate3","styles","props","LINES3","Component","withLineTruncate4","LINES4","init_Truncate_text"],"sources":["https:/framerusercontent.com/modules/a4YVApcaP5wIYUOqMSzk/uL91l2IecpSO6uIxLGBQ/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":"A,iLAEoqB,SAAgBS,EAAkB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAMC,EAAO,CAAC,GAAGC,GAAO,MAAM,gBAAgB,GAAGC,IAAS,gBAAgB,WAAW,aAAa,WAAW,QAAQ,cAAc,SAAS,QAAQ,EAAE,MAAoB,gBAAKZ,EAAU,CAAC,SAAsB,gBAAKa,EAAU,CAAC,GAAGF,EAAM,MAAMD,CAAM,CAAC,CAAC,CAAC,CAAE,CAAE,CAAgB,SAAgBI,EAAkB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAMJ,EAAO,CAAC,GAAGC,GAAO,MAAM,gBAAgB,GAAGI,IAAS,gBAAgB,WAAW,aAAa,WAAW,QAAQ,cAAc,SAAS,QAAQ,EAAE,MAAoB,gBAAKf,EAAU,CAAC,SAAsB,gBAAKa,EAAU,CAAC,GAAGF,EAAM,MAAMD,CAAM,CAAC,CAAC,CAAC,CAAE,CAAE,C,sDADrxCH,EAAY,CAAC,WAAW,SAAS,CAAC,EAC0mB,EAAO,EAAiU,EAAO,C"}