{"version":3,"file":"TextOverflow.BThMTARo.mjs","names":["useMemo","_jsx","__esmMin","init_npm_react_18_3_1","pe","c","init_jsx_runtime","withTruncateText","Component","props","lineName","match","LINE_REGEX","withTruncateText4","init_TextOverflow"],"sources":["https:/framerusercontent.com/modules/TWR5VT6x4cg7et52YteC/2DJiP4sQteauJZZMhbB0/TextOverflow.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";// Made with love by Clément: https://lionneclement.com/\n// Full tutorial: https://framermart.com/tutorial/how-to-truncate-text-with-framer-code-override\nconst LINE_REGEX=/lines?:\\s*(\\d+)/i;export function withTruncateText(Component){return props=>{const lineName=props[\"data-framer-name\"]||props.name||\"\";const lineCount=useMemo(()=>{const match=lineName.match(LINE_REGEX);return match?parseInt(match[1],10):1;},[lineName]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,overflow:\"hidden\",display:\"-webkit-box\",WebkitLineClamp:2,WebkitBoxOrient:\"vertical\",textOverflow:\"ellipsis\",whiteSpace:\"normal\",wordBreak:\"break-word\"}});};}export function withTruncateText4(Component){return props=>{const lineName=props[\"data-framer-name\"]||props.name||\"\";const lineCount=useMemo(()=>{const match=lineName.match(LINE_REGEX);return match?parseInt(match[1],10):1;},[lineName]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,overflow:\"hidden\",display:\"-webkit-box\",WebkitLineClamp:3,WebkitBoxOrient:\"vertical\",textOverflow:\"ellipsis\",whiteSpace:\"normal\",wordBreak:\"break-word\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withTruncateText\":{\"type\":\"reactHoc\",\"name\":\"withTruncateText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTruncateText4\":{\"type\":\"reactHoc\",\"name\":\"withTruncateText4\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextOverflow.map"],"mappings":"A,kHAEoC,SAAgBO,EAAiBC,EAAU,CAAC,MAAOC,IAAO,CAAC,IAAMC,EAASD,EAAM,qBAAqBA,EAAM,MAAM,GAA0H,OAAvGT,MAAY,CAAC,IAAMW,EAAMD,EAAS,MAAME,CAAU,EAAE,OAAOD,EAAM,SAASA,EAAM,GAAG,EAAE,EAAE,CAAE,EAAE,CAACD,CAAQ,CAAC,EAAsBT,gBAAKO,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,SAAS,SAAS,QAAQ,cAAc,gBAAgB,EAAE,gBAAgB,WAAW,aAAa,WAAW,WAAW,SAAS,UAAU,YAAY,CAAC,CAAC,CAAE,CAAE,CAAC,SAAgBI,EAAkBL,EAAU,CAAC,MAAOC,IAAO,CAAC,IAAMC,EAASD,EAAM,qBAAqBA,EAAM,MAAM,GAA0H,OAAvGT,MAAY,CAAC,IAAMW,EAAMD,EAAS,MAAME,CAAU,EAAE,OAAOD,EAAM,SAASA,EAAM,GAAG,EAAE,EAAE,CAAE,EAAE,CAACD,CAAQ,CAAC,EAAsBT,gBAAKO,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,SAAS,SAAS,QAAQ,cAAc,gBAAgB,EAAE,gBAAgB,WAAW,aAAa,WAAW,WAAW,SAAS,UAAU,YAAY,CAAC,CAAC,CAAE,CAAE,C,4CAAt7BG,EAAW,kB"}