{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/4Qi43yXBTLkdTxFQ35dw/8iimhViKCHrgIhd4l0DG/Textoverflowhandler.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";const 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=./Textoverflowhandler.map"],
  "mappings": "gDAAsE,IAAMA,EAAW,mBAA0B,SAASC,EAAiBC,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMC,EAASD,EAAM,kBAAkB,GAAGA,EAAM,MAAM,GAASE,EAAUC,EAAQ,IAAI,CAAC,IAAMC,EAAMH,EAAS,MAAMJ,CAAU,EAAE,OAAOO,EAAM,SAASA,EAAM,CAAC,EAAE,EAAE,EAAE,CAAE,EAAE,CAACH,CAAQ,CAAC,EAAE,OAAoBI,EAAKN,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,SAAS,SAAS,QAAQ,cAAc,gBAAgBE,EAAU,gBAAgB,WAAW,aAAa,WAAW,WAAW,SAAS,UAAU,YAAY,CAAC,CAAC,CAAE,CAAE",
  "names": ["LINE_REGEX", "withTruncateText", "Component", "props", "lineName", "lineCount", "se", "match", "p"]
}
