{"version":3,"file":"TwoLineTruncatecontent.De6L3msS.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/EYoNUhL8WkGT2Pbmu2i0/klrvOv3zNQ5hxr2aaSYP/TwoLineTruncatecontent.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// Text Truncation Override\nexport const TextTruncation=()=>{return{style:{maxHeight:\"90px\",overflow:\"hidden\",display:\"-webkit-box\",WebkitLineClamp:2,WebkitBoxOrient:\"vertical\",textOverflow:\"ellipsis\",lineHeight:\"45px\"}};};// Alternative method using CSS that works with any height\nexport const TextTruncationFlexible=()=>{return{style:{maxHeight:\"90px\",overflow:\"hidden\",position:\"relative\"},// Add pseudo-element for ellipsis\nonMount:element=>{const checkTruncation=()=>{if(element.scrollHeight>90){// Add CSS for gradient fade and ellipsis\nconst style=document.createElement(\"style\");style.textContent=`\n                        .truncated-text::after {\n                            content: '...';\n                            position: absolute;\n                            bottom: 0;\n                            right: 0;\n                            background: linear-gradient(to right, transparent, white 50%);\n                            padding-left: 20px;\n                        }\n                        .truncated-text {\n                            position: relative;\n                        }\n                    `;document.head.appendChild(style);element.classList.add(\"truncated-text\");}};// Check on mount and when content changes\ncheckTruncation();// Observer for content changes\nconst observer=new MutationObserver(checkTruncation);observer.observe(element,{childList:true,subtree:true});return()=>observer.disconnect();}};};// Simple CSS-only version (recommended)\nexport const TextTruncationSimple=()=>{return{style:{maxHeight:\"90px\",overflow:\"hidden\",textOverflow:\"ellipsis\",display:\"-webkit-box\",WebkitLineClamp:2,WebkitBoxOrient:\"vertical\",lineHeight:\"1.4em\"}};};import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withTextTruncation(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...TextTruncation(props)});};}withTextTruncation.displayName=\"TextTruncation\";export function withTextTruncationFlexible(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...TextTruncationFlexible(props)});};}withTextTruncationFlexible.displayName=\"TextTruncationFlexible\";export function withTextTruncationSimple(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...TextTruncationSimple(props)});};}withTextTruncationSimple.displayName=\"TextTruncationSimple\";\nexport const __FramerMetadata__ = {\"exports\":{\"withTextTruncationFlexible\":{\"type\":\"reactHoc\",\"name\":\"withTextTruncationFlexible\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTextTruncation\":{\"type\":\"reactHoc\",\"name\":\"withTextTruncation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTextTruncationSimple\":{\"type\":\"reactHoc\",\"name\":\"withTextTruncationSimple\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TextTruncationSimple\":{\"type\":\"override\",\"name\":\"TextTruncationSimple\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TextTruncationFlexible\":{\"type\":\"override\",\"name\":\"TextTruncationFlexible\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TextTruncation\":{\"type\":\"override\",\"name\":\"TextTruncation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TwoLineTruncatecontent.map"],"mappings":"oKAmB6V,SAAgB,EAAmB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,CAAuC,EAASC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAe,CAAK,CAAC,CAAC,EAAI,CAAiD,SAAgB,EAA2B,EAAE,CAAC,MAAO,KAAQ,EAA+BD,CAAuC,EAASC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAuB,CAAK,CAAC,CAAC,EAAI,CAAiE,SAAgB,EAAyB,EAAE,CAAC,MAAO,KAAQ,EAA+BD,CAAuC,EAASC,EAAK,EAAE,CAAC,GAAG,EAA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