{"version":3,"file":"Truncate_Text.CFlgh5cb.mjs","names":[],"sources":["https:/framerusercontent.com/modules/5MJV3mv8pKqdOgcpkiDd/ngVnlEi3cX7IpqS5jR8m/Truncate_Text.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const truncatedTextPrefix=\"Lines:\";export function TruncatedText(Component){return props=>{const name=props[\"data-framer-name\"];if(typeof document!==\"undefined\"&&!document.getElementById(\"global-keep-all-style\")){const style=document.createElement(\"style\");style.id=\"global-keep-all-style\";style.innerHTML=`\n                html, body, div, span, h1, h2, h3, h4, h5, h6, p, pre {\n                    word-break: keep-all !important;\n                    line-break: loose !important;\n                    white-space: normal !important;\n                }\n            `;document.head.appendChild(style);}if(name?.startsWith(truncatedTextPrefix)){const linesStr=name.replace(new RegExp(\"^\"+truncatedTextPrefix),\"\").trim();const lines=parseInt(linesStr,10)||1;return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,display:\"-webkit-box\",WebkitLineClamp:lines,WebkitBoxOrient:\"vertical\",overflow:\"hidden\",textOverflow:\"ellipsis\"}});}return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"TruncatedText\":{\"type\":\"reactHoc\",\"name\":\"TruncatedText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Truncate_Text.map"],"mappings":"oGAA8E,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAK,EAAM,oBAAoB,GAAG,OAAO,SAAW,KAAa,CAAC,SAAS,eAAe,wBAAwB,CAAC,CAAC,IAAM,EAAM,SAAS,cAAc,QAAQ,CAAC,EAAM,GAAG,wBAAwB,EAAM,UAAU;;;;;;cAM/U,SAAS,KAAK,YAAY,EAAM,CAAE,GAAG,GAAM,WAAW,EAAoB,CAAC,CAAC,IAAM,EAAS,EAAK,QAAY,OAAO,IAAI,EAAoB,CAAC,GAAG,CAAC,MAAM,CAAO,EAAM,SAAS,EAAS,GAAG,EAAE,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,cAAc,gBAAgB,EAAM,gBAAgB,WAAW,SAAS,SAAS,aAAa,WAAW,CAAC,CAAC,CAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,qBANrY,CAAM,EAAoB"}