{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/OXcwyGj5zJktl1lZBLUa/z0hr85l90PG8lV8s75tY/TruncateText.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";export function withTruncatedText(Component){return props=>{const{style,...rest}=props;const updatedStyle={...style,display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:1,overflow:\"hidden\",textOverflow:\"ellipsis\"};return /*#__PURE__*/_jsx(Component,{...rest,style:updatedStyle});};}export function withTruncatedText_7Lines(Component){return props=>{const{style,...rest}=props;const updatedStyle={...style,display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:7,overflow:\"hidden\",textOverflow:\"ellipsis\"};return /*#__PURE__*/_jsx(Component,{...rest,style:updatedStyle});};}export function withTruncatedText_3Lines(Component){return props=>{const{style,...rest}=props;const updatedStyle={...style,display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:3,overflow:\"hidden\",textOverflow:\"ellipsis\"};return /*#__PURE__*/_jsx(Component,{...rest,style:updatedStyle});};}export function withTruncatedText_2Lines_NoNewLines(){return{style:{display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:2,overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"normal\"},children:children=>{// First, ensure the children is a string before proceeding\nif(children&&typeof children===\"string\"){console.log(\"Original children content:\",children)// Debug output\n;// Remove newlines and unwanted tags\nconst processedText=children.replace(/\\n/g,\" \")// Removes \\n newlines\n.replace(/<br\\s*\\/?>/g,\" \")// Removes <br> tags\n.replace(/<\\/?p>/g,\" \")// Removes <p> tags\n.replace(/\\s\\s+/g,\" \")// Removes multiple spaces\n;console.log(\"Processed children content:\",processedText)// Debug output\n;return processedText// Ensure the processed text is returned\n;}// If not a string or empty, return it as-is\nreturn children;}};}export function withTruncatedText_1Lines(Component){return props=>{const{style,...rest}=props;const updatedStyle={...style,display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:1,overflow:\"hidden\",textOverflow:\"ellipsis\"};return /*#__PURE__*/_jsx(Component,{...rest,style:updatedStyle});};}export function withTruncatedText_Characters(Component){return props=>{const{style,...rest}=props;const updatedStyle={...style,display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:1,overflow:\"hidden\",textOverflow:\"ellipsis\",wordBreak:\"break-all\"};return /*#__PURE__*/_jsx(Component,{...rest,style:updatedStyle});};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withwithTruncatedText_2Lines_NoNewLines(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...withTruncatedText_2Lines_NoNewLines(props)});};}withwithTruncatedText_2Lines_NoNewLines.displayName=\"withTruncatedText_2Lines_NoNewLines\";\nexport const __FramerMetadata__ = {\"exports\":{\"withTruncatedText_3Lines\":{\"type\":\"reactHoc\",\"name\":\"withTruncatedText_3Lines\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTruncatedText_Characters\":{\"type\":\"reactHoc\",\"name\":\"withTruncatedText_Characters\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithTruncatedText_2Lines_NoNewLines\":{\"type\":\"reactHoc\",\"name\":\"withwithTruncatedText_2Lines_NoNewLines\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTruncatedText_1Lines\":{\"type\":\"reactHoc\",\"name\":\"withTruncatedText_1Lines\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTruncatedText_7Lines\":{\"type\":\"reactHoc\",\"name\":\"withTruncatedText_7Lines\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTruncatedText_2Lines_NoNewLines\":{\"type\":\"override\",\"name\":\"withTruncatedText_2Lines_NoNewLines\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTruncatedText\":{\"type\":\"reactHoc\",\"name\":\"withTruncatedText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TruncateText.map"],
  "mappings": "yFAAqoB,SAASA,EAAyBC,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAAC,MAAAC,EAAM,GAAGC,CAAI,EAAEF,EAAYG,EAAa,CAAC,GAAGF,EAAM,QAAQ,cAAc,gBAAgB,WAAW,gBAAgB,EAAE,SAAS,SAAS,aAAa,UAAU,EAAE,OAAoBG,EAAKL,EAAU,CAAC,GAAGG,EAAK,MAAMC,CAAY,CAAC,CAAE,CAAE,CAAQ,SAASE,GAAqC,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,cAAc,gBAAgB,WAAW,gBAAgB,EAAE,SAAS,SAAS,aAAa,WAAW,WAAW,QAAQ,EAAE,SAASC,GAAU,CACpoC,GAAGA,GAAU,OAAOA,GAAW,SAAS,CAAC,QAAQ,IAAI,6BAA6BA,CAAQ,EAE1F,IAAMC,EAAcD,EAAS,QAAQ,MAAM,GAAG,EAC7C,QAAQ,cAAc,GAAG,EACzB,QAAQ,UAAU,GAAG,EACrB,QAAQ,SAAS,GAAG,EACpB,eAAQ,IAAI,8BAA8BC,CAAa,EAChDA,CACP,CACD,OAAOD,CAAS,CAAC,CAAE,CAA+wB,SAASE,EAAwCC,EAAE,CAAC,OAAOC,IAAQC,EAA+BC,CAAuC,EAASC,EAAKJ,EAAE,CAAC,GAAGC,EAAM,GAAGI,EAAoCJ,CAAK,CAAC,CAAC,EAAI,CAACF,EAAwC,YAAY",
  "names": ["withTruncatedText_3Lines", "Component", "props", "style", "rest", "updatedStyle", "p", "withTruncatedText_2Lines_NoNewLines", "children", "processedText", "withwithTruncatedText_2Lines_NoNewLines", "C", "props", "re", "DataObserverContext", "p", "withTruncatedText_2Lines_NoNewLines"]
}
