{"version":3,"file":"TruncateText.D_suDG93.mjs","names":[],"sources":["https:/framerusercontent.com/modules/bc4vGz8JWLErmMmpSLaN/4qYqH53WZ8Mi3Yfqzotp/TruncateText.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";const useStore=createStore({background:\"#0099FF\"});const LINES=3;function removeLinksFromText(input){if(typeof input===\"string\"){// If it's just plain string, return it as is\nreturn input;}if(Array.isArray(input)){// Recursively process each element in the array\nreturn input.map(removeLinksFromText);}if(input?.type===\"a\"){// If it's an <a> tag, replace with just its children (text)\nreturn removeLinksFromText(input.props.children);}if(input?.props&&input?.props.children){// Process children recursively\nreturn{...input,props:{...input.props,children:removeLinksFromText(input.props.children)}};}return input;}export default function withLineTruncate(Component){return props=>{const styles={...props?.style,WebkitLineClamp:`${LINES}`,WebkitBoxOrient:\"vertical\",textOverflow:\"ellipsis\",display:\"-webkit-box\",overflow:\"hidden\"};const cleanedChildren=removeLinksFromText(props.children);return /*#__PURE__*/_jsx(Component,{...props,style:styles,children:cleanedChildren});};}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactHoc\",\"name\":\"withLineTruncate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TruncateText.map"],"mappings":"6MAAiL,SAAS,EAAoB,EAAM,CAIxH,OAJ4H,OAAO,GAAQ,SAChO,EAAU,MAAM,QAAQ,EAAM,CAC9B,EAAM,IAAI,EAAoB,CAAK,GAAO,OAAO,IACjD,EAAoB,EAAM,MAAM,SAAS,CAAK,GAAO,OAAO,GAAO,MAAM,SAC1E,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,EAAoB,EAAM,MAAM,SAAS,CAAC,CAAC,CAAS,EAAO,SAAwB,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAO,CAAC,GAAG,GAAO,MAAM,gBAAgB,GAAG,IAAQ,gBAAgB,WAAW,aAAa,WAAW,QAAQ,cAAc,SAAS,SAAS,CAAO,EAAgB,EAAoB,EAAM,SAAS,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,EAAO,SAAS,EAAgB,CAAC,qBAJra,IAAqE,CAAe,EAAY,CAAC,WAAW,UAAU,CAAC,CAAO,EAAM"}