{"version":3,"file":"Truncate.C2CkOwlJ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/o8VzrG9YoqX37Y5je5oq/TCSyl12RiCN8mQcnUHkM/Truncate.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=./Truncate.map"],"mappings":"2JACoC,SAAgB,EAAiB,EAAU,CAAC,MAAO,CAAA,GAAO,CAAC,IAAM,EAAS,EAAM,qBAAqB,EAAM,MAAM,GAAS,EAAU,EAAQ,IAAI,CAAC,IAAM,EAAM,EAAS,MAAM,EAAW,CAAC,OAAO,EAAM,SAAS,EAAM,GAAG,GAAG,CAAC,CAAG,EAAC,CAAC,CAAS,EAAC,CAAC,MAAoB,GAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,SAAS,QAAQ,cAAc,gBAAgB,EAAU,gBAAgB,WAAW,aAAa,WAAW,WAAW,SAAS,UAAU,YAAa,CAAC,EAAC,AAAE,CAAE,gBAAlf,AADN,GAA2C,IAA2B,CAChE,EAAW"}