{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/jFbjTIvoipOG7UNtdNRo/7gPWPJHhbcrZ11nbmb4p/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": "6EAAgH,IAAMA,EAASC,EAAY,CAAC,WAAW,SAAS,CAAC,EAAQC,EAAM,EAAE,SAASC,EAAoBC,EAAM,CAAC,OAAG,OAAOA,GAAQ,SAChOA,EAAU,MAAM,QAAQA,CAAK,EAC7BA,EAAM,IAAID,CAAmB,EAAMC,GAAO,OAAO,IACjDD,EAAoBC,EAAM,MAAM,QAAQ,EAAMA,GAAO,OAAOA,GAAO,MAAM,SAC1E,CAAC,GAAGA,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,SAASD,EAAoBC,EAAM,MAAM,QAAQ,CAAC,CAAC,EAAUA,CAAM,CAAgB,SAARC,EAAkCC,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMC,EAAO,CAAC,GAAGD,GAAO,MAAM,gBAAgB,GAAGL,CAAK,GAAG,gBAAgB,WAAW,aAAa,WAAW,QAAQ,cAAc,SAAS,QAAQ,EAAQO,EAAgBN,EAAoBI,EAAM,QAAQ,EAAE,OAAoBG,EAAKJ,EAAU,CAAC,GAAGC,EAAM,MAAMC,EAAO,SAASC,CAAe,CAAC,CAAE,CAAE",
  "names": ["useStore", "createStore", "LINES", "removeLinksFromText", "input", "withLineTruncate", "Component", "props", "styles", "cleanedChildren", "p"]
}
