{"version":3,"file":"Blog_1_Line.ex1vrgGn.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/PPflQTRTgyYQnv96gQbw/sAo1iohM458ZL7mkflW9/Blog_1_Line.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):2;},[lineName]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,overflow:\"hidden\",display:\"-webkit-box\",WebkitLineClamp:lineCount,WebkitBoxOrient:\"vertical\",textOverflow:\"ellipsis\",whiteSpace:\"normal\",wordBreak:\"break-word\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withTruncateText\":{\"type\":\"reactHoc\",\"name\":\"withTruncateText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Blog_1_Line.map"],"mappings":"kHAEoC,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAS,EAAM,qBAAqB,EAAM,MAAM,GAAS,EAAUA,MAAY,CAAC,IAAM,EAAM,EAAS,MAAM,CAAU,EAAE,OAAO,EAAM,SAAS,EAAM,GAAG,EAAE,EAAE,CAAE,EAAE,CAAC,CAAQ,CAAC,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,SAAS,QAAQ,cAAc,gBAAgB,EAAU,gBAAgB,WAAW,aAAa,WAAW,WAAW,SAAS,UAAU,YAAY,CAAC,CAAC,CAAE,CAAE,mBAF7c,IAA2B,EAE/D,EAAW"}