{"version":3,"file":"Text.IIeS4dWg.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/HE5tXEhWjDqzxuuAlfIh/lozbXzaT6miqYIHhC1ZG/Text.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\nconst LINE_REGEX=/lines?:\\s*(\\d+)/i;/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/components/auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */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\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Text.map"],"mappings":"kHAQG,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAS,EAAM,qBAAqB,EAAM,MAAM,GAAS,EAAUA,MAAY,CAAC,IAAM,EAAM,EAAS,MAAM,EAAW,CAAC,OAAO,EAAM,SAAS,EAAM,GAAG,GAAG,CAAC,GAAI,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,qBARxa,IAA2B,CAEhE,EAAW"}