{"version":3,"file":"Text.DmDhAO2g.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/5DUEv7mXuEeyKCapP256/CQEAfsZSUaz0doyrkMX1/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[1],10):1;},[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":"2JACoC,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAS,EAAM,qBAAqB,EAAM,MAAM,GAAS,EAAUA,MAAY,CAAC,IAAM,EAAM,EAAS,MAAM,GAAY,OAAO,EAAM,SAAS,EAAM,GAAG,IAAI,CAAG,EAAC,CAAC,EAAS,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,aAAa,CAAC,CAAG,CAAE,yBAAlf,EAAW"}