{"version":3,"file":"TruncateText.-IPURDoz.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["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":"iPAA8nB,SAAgB,EAAyB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,QAAM,GAAG,EAAK,CAAC,EAAY,EAAa,CAAC,GAAG,EAAM,QAAQ,cAAc,gBAAgB,WAAW,gBAAgB,EAAE,SAAS,SAAS,aAAa,WAAW,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAK,MAAM,EAAa,CAAG,CAAE,UAAgB,GAAqC,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,cAAc,gBAAgB,WAAW,gBAAgB,EAAE,SAAS,SAAS,aAAa,WAAW,WAAW,SAAS,CAAC,SAAS,GAAU,CACpoC,GAAG,GAAU,OAAO,GAAW,SAAS,CAAC,QAAQ,IAAI,6BAA6B,GAElF,IAAM,EAAc,EAAS,QAAQ,MAAM,KAC1C,QAAQ,cAAc,KACtB,QAAQ,UAAU,KAClB,QAAQ,SAAS,KAEjB,OADA,QAAQ,IAAI,8BAA8B,GACnC,CACN,CACF,OAAO,CAAU,EAAC,AAAE,CAAuwB,SAAgB,EAAwC,EAAE,CAAC,MAAO,KAAQ,EAA+BA,GAAgDC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAoC,GAAO,EAAK,6BAAwC,YAAY"}