{"version":3,"file":"Text.CLKb4Az2.mjs","names":["useMemo","__esmMin","pe","init_npm_react_18_3_1","c","init_jsx_runtime","withTruncateText","lineName","props","lineCount","match","LINE_REGEX","Component","init_Text"],"sources":["https:/framerusercontent.com/modules/FGd4cNczt3uAs7jcEIP9/kESyKe8uZF7PaoSwKmVX/Text.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";// 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[2],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=./Text.map"],"mappings":"A,kHACoC,SAAgBM,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAMC,EAASC,EAAM,qBAAqBA,EAAM,MAAM,GAASC,EAAUT,MAAY,CAAC,IAAMU,EAAMH,EAAS,MAAMI,CAAU,EAAE,OAAOD,EAAM,SAASA,EAAM,GAAG,EAAE,EAAE,CAAE,EAAE,CAACH,CAAQ,CAAC,EAAE,MAAoB,gBAAKK,EAAU,CAAC,GAAGJ,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,SAAS,SAAS,QAAQ,cAAc,gBAAgBC,EAAU,gBAAgB,WAAW,aAAa,WAAW,WAAW,SAAS,UAAU,YAAY,CAAC,CAAC,CAAE,CAAE,C,4CAAjf,EAAW,kB"}