{"version":3,"file":"Text.Cuo4OZP9.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/saMY0xrUnGiYmYuulWeB/KCzmVom3yEZy1lV7jeBu/Text.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";// Truncate Text Override with a Maximum of 3 Lines\nexport function withTruncateText(Component){return props=>{const lineName=props[\"data-framer-name\"]||props.name||\"\";// Parse the line count but limit it to a maximum of 3\nconst lineCount=useMemo(()=>{const match=lineName.match(/lines?:\\s*(\\d+)/i);const parsedLineCount=match?parseInt(match[1],10):1;return Math.min(parsedLineCount,2)// Enforce a max of 3 lines\n;},[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":"kHACA,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAS,EAAM,qBAAqB,EAAM,MAAM,GAC3G,EAAUA,MAAY,CAAC,IAAM,EAAM,EAAS,MAAM,mBAAmB,CAAO,EAAgB,EAAM,SAAS,EAAM,GAAG,GAAG,CAAC,EAAE,OAAO,KAAK,IAAI,EAAgB,EAAE,EAC/J,CAAC,EAAS,CAAC,CAAC,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,CAAC,mBAHzM,IAA2B"}