{"version":3,"file":"WithCSS.BM_tk4Ne.mjs","names":["__esmMin","init_ssg_sandbox_shims","window","init_npm_react_18_3_1","navigator","init_jsx_runtime","ce","applyBrowserCompatibilityFixes","isFirefox","isIOS","isSafari","styleSheet","fixViewportHeight","vh","meta","fixIOSViewportHeight","iosVh","perfEntries","persistentFramerCleanup","removeBadge","badge","removeComment","htmlComments","i","comment","_comment_parentNode","removeFramerScripts","script","removeFramerStyles","style","cleanup","observer","mutations","mutation","originalPushState","intervalId","withBrowserCompatibilityAndFramerCleanup","Component","props","init_WithCSS"],"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":"A,uIAAwE,SAASO,GAAgC,CAAC,IAAMC,EAAUJ,EAAU,UAAU,YAA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