{"version":3,"file":"WithCSS.VftshOth.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Qx7uTo5BW6waWlLoVyzZ/bQiT1xfqIILXQcr6Y0PE/WithCSS.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";function applyBrowserCompatibilityFixes(){const isFirefox=navigator.userAgent.toLowerCase().indexOf(\"firefox\")>-1;const isIOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;const isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if(isFirefox){// Corregir problemas de flexbox en Firefox\nconst flexElements=document.querySelectorAll(\".flex-container\");flexElements.forEach(el=>{el.style.display=\"-moz-box\";el.style.display=\"flex\";});// Corregir problemas de renderizado de fuentes\ndocument.body.style.webkitFontSmoothing=\"auto\";document.body.style.mozOsxFontSmoothing=\"auto\";// Corregir problemas de scroll suave\ndocument.documentElement.style.scrollBehavior=\"auto\";}// Añadir soporte para características CSS más nuevas en todos los navegadores\nconst styleSheet=document.createElement(\"style\");styleSheet.textContent=`\n        @supports not (display: grid) {\n            .grid-container {\n                display: flex;\n                flex-wrap: wrap;\n            }\n        }\n        @supports not (position: sticky) {\n            .sticky-element {\n                position: fixed;\n            }\n        }\n    `;document.head.appendChild(styleSheet);// Corregir problemas de altura del viewport en dispositivos móviles\nconst fixViewportHeight=()=>{const vh=window.innerHeight*.01;document.documentElement.style.setProperty(\"--vh\",`${vh}px`);};window.addEventListener(\"resize\",fixViewportHeight);window.addEventListener(\"orientationchange\",fixViewportHeight);fixViewportHeight();// Optimizaciones para iOS\nif(isIOS){// Prevenir zoom no deseado\nconst meta=document.createElement(\"meta\");meta.name=\"viewport\";meta.content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\";document.getElementsByTagName(\"head\")[0].appendChild(meta);// Corregir problema de 100vh en iOS\nconst fixIOSViewportHeight=()=>{const iosVh=window.innerHeight;document.documentElement.style.setProperty(\"--ios-vh\",`${iosVh}px`);};window.addEventListener(\"resize\",fixIOSViewportHeight);fixIOSViewportHeight();}// Optimizaciones para Safari\nif(isSafari){// Corregir problemas con position: fixed en Safari\nconst fixedElements=document.querySelectorAll(\".fixed-element\");fixedElements.forEach(el=>{el.style.transform=\"translateZ(0)\";});}// Detectar y corregir problemas de rendimiento\nconst detectPerformanceIssues=()=>{const perfEntries=performance.getEntriesByType(\"navigation\");if(perfEntries.length>0&&perfEntries[0].duration>5e3){console.warn(\"Posible problema de rendimiento detectado. Considere optimizar sus recursos.\");}};window.addEventListener(\"load\",detectPerformanceIssues);}function persistentFramerCleanup(){const removeBadge=()=>{const badges=document.querySelectorAll('[id^=\"__framer-badge-container\"]');badges.forEach(badge=>badge.remove());};const removeComment=()=>{const htmlComments=document.evaluate(\"//comment()\",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let i=0;i<htmlComments.snapshotLength;i++){const comment=htmlComments.snapshotItem(i);if(comment&&comment.textContent&&(comment.textContent.includes(\"Built with Framer\")||comment.textContent.includes(\"framer.com\"))){var _comment_parentNode;(_comment_parentNode=comment.parentNode)===null||_comment_parentNode===void 0?void 0:_comment_parentNode.removeChild(comment);}}};const removeFramerScripts=()=>{const scripts=document.querySelectorAll('script[src*=\"framerusercontent.com\"], script[src*=\"framer.com\"]');scripts.forEach(script=>script.remove());};const removeFramerStyles=()=>{const styles=document.querySelectorAll('link[href*=\"framerusercontent.com\"], link[href*=\"framer.com\"]');styles.forEach(style=>style.remove());};const cleanup=()=>{removeBadge();removeComment();removeFramerScripts();removeFramerStyles();};// Ejecutar limpieza inicial\ncleanup();// Configurar un MutationObserver para limpiar continuamente\nconst observer=new MutationObserver(mutations=>{mutations.forEach(mutation=>{if(mutation.type===\"childList\"){cleanup();}});});observer.observe(document.body,{childList:true,subtree:true});// Ejecutar limpieza en eventos clave\nwindow.addEventListener(\"load\",cleanup);window.addEventListener(\"DOMContentLoaded\",cleanup);document.addEventListener(\"readystatechange\",cleanup);// Ejecutar limpieza en cambios de ruta\nconst originalPushState=history.pushState;history.pushState=function(){originalPushState.apply(this,arguments);cleanup();};window.addEventListener(\"popstate\",cleanup);// Ejecutar limpieza periódicamente\nconst intervalId=setInterval(cleanup,500)// Cada medio segundo\n;// Retornar función de limpieza\nreturn()=>{observer.disconnect();clearInterval(intervalId);window.removeEventListener(\"load\",cleanup);window.removeEventListener(\"DOMContentLoaded\",cleanup);document.removeEventListener(\"readystatechange\",cleanup);window.removeEventListener(\"popstate\",cleanup);history.pushState=originalPushState;};}export function withBrowserCompatibilityAndFramerCleanup(Component){return props=>{useEffect(()=>{// Aplicar correcciones de compatibilidad\napplyBrowserCompatibilityFixes();// Iniciar la limpieza persistente de Framer\nconst cleanupFunction=persistentFramerCleanup();// Retornar función de limpieza\nreturn cleanupFunction;},[]);return /*#__PURE__*/_jsx(Component,{...props});};}// Ejemplo de uso:\n// const App: React.FC = () => {\n//     return (\n//         <div>\n//             {/* Contenido de tu aplicación */}\n//         </div>\n//     );\n// };\n//\n// export default withBrowserCompatibilityAndFramerCleanup(App);\n\nexport const __FramerMetadata__ = {\"exports\":{\"withBrowserCompatibilityAndFramerCleanup\":{\"type\":\"reactHoc\",\"name\":\"withBrowserCompatibilityAndFramerCleanup\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WithCSS.map"],"mappings":"uIAAwE,SAAS,GAAgC,CAAC,IAAM,EAAU,EAAU,UAAU,aAAa,CAAC,QAAQ,UAAU,CAAC,GAAS,EAAM,mBAAmB,KAAK,EAAU,UAAU,EAAE,CAAC,EAAO,SAAe,EAAS,iCAAiC,KAAK,EAAU,UAAU,CAAI,IAC/T,SAAS,iBAAiB,kBAAkB,CAAc,QAAQ,GAAI,CAAC,EAAG,MAAM,QAAQ,WAAW,EAAG,MAAM,QAAQ,QAAS,CAChJ,SAAS,KAAK,MAAM,oBAAoB,OAAO,SAAS,KAAK,MAAM,oBAAoB,OACvF,SAAS,gBAAg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