{"version":3,"file":"TwoLineTruncatecontent.CtmQKCSJ.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,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAe,EAAM,CAAC,CAAC,EAAoD,SAAgB,EAA2B,EAAE,CAAC,MAAO,KAAQ,EAA+BD,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAuB,EAAM,CAAC,CAAC,EAAoE,SAAgB,EAAyB,EAAE,CAAC,MAAO,KAAQ,EAA+BD,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GA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