{"version":3,"file":"BitrixCode.BlFEaO1L.mjs","names":[],"sources":["https:/framerusercontent.com/modules/PFn3Knrl9Ut45hGPwfDL/U8QJOoauGAdQ9SwxqMNc/BitrixCode.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function withBitrixSponsor(Component){return props=>{const openForm=e=>{if(e){e.preventDefault();e.stopPropagation();}// Si ya existe un popup abierto, lo quitamos\nconst existing=document.getElementById(\"bitrix-popup-container\");if(existing)existing.remove();// Creamos el contenedor del Popup\nconst container=document.createElement(\"div\");container.id=\"bitrix-popup-container\";container.style.cssText=`\n                position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;\n                background: rgba(0,0,0,0.6); z-index: 999999;\n                display: flex; align-items: center; justify-content: center;\n                backdrop-filter: blur(4px);\n            `;// Creamos el contenido (Iframe del formulario original)\nconst content=document.createElement(\"div\");content.style.cssText=`\n                position: relative; width: 90%; max-width: 500px; height: 90vh;\n                background: white; border-radius: 12px; overflow: hidden;\n                box-shadow: 0 20px 50px rgba(0,0,0,0.3);\n            `;// Botón de cerrar\nconst closeBtn=document.createElement(\"button\");closeBtn.innerText=\"✕\";closeBtn.style.cssText=`\n                position: absolute; top: 10px; right: 10px; z-index: 10;\n                border: none; background: #eee; border-radius: 50%; width: 30px; height: 30px;\n                cursor: pointer; font-weight: bold;\n            `;closeBtn.onclick=()=>container.remove();// El Iframe con tu link de Bitrix (donde se ve bien)\nconst iframe=document.createElement(\"iframe\");iframe.src=\"https://b24-chqr1u.bitrix24.site/crm_form_ntg6o/\";iframe.style.cssText=\"width: 100%; height: 100%; border: none;\";// Armamos todo\ncontent.appendChild(closeBtn);content.appendChild(iframe);container.appendChild(content);document.body.appendChild(container);// Cerrar al hacer clic fuera del blanco\ncontainer.onclick=event=>{if(event.target===container)container.remove();};};return /*#__PURE__*/_jsx(Component,{...props,onClick:openForm});};}export function withBitrixContacto(Component){return props=>{const openForm=e=>{if(e){e.preventDefault();e.stopPropagation();}// Si ya existe un popup abierto, lo quitamos\nconst existing=document.getElementById(\"bitrix-popup-container\");if(existing)existing.remove();// Creamos el contenedor del Popup\nconst container=document.createElement(\"div\");container.id=\"bitrix-popup-container\";container.style.cssText=`\n                position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;\n                background: rgba(0,0,0,0.6); z-index: 999999;\n                display: flex; align-items: center; justify-content: center;\n                backdrop-filter: blur(4px);\n            `;// Creamos el contenido (Iframe del formulario original)\nconst content=document.createElement(\"div\");content.style.cssText=`\n                position: relative; width: 90%; max-width: 500px; height: 90vh;\n                background: white; border-radius: 12px; overflow: hidden;\n                box-shadow: 0 20px 50px rgba(0,0,0,0.3);\n            `;// Botón de cerrar\nconst closeBtn=document.createElement(\"button\");closeBtn.innerText=\"✕\";closeBtn.style.cssText=`\n                position: absolute; top: 10px; right: 10px; z-index: 10;\n                border: none; background: #eee; border-radius: 50%; width: 30px; height: 30px;\n                cursor: pointer; font-weight: bold;\n            `;closeBtn.onclick=()=>container.remove();// El Iframe con tu link de Bitrix (donde se ve bien)\nconst iframe=document.createElement(\"iframe\");iframe.src=\"https://b24-chqr1u.bitrix24.site/crm_form_myjo5/\";iframe.style.cssText=\"width: 100%; height: 100%; border: none;\";// Armamos todo\ncontent.appendChild(closeBtn);content.appendChild(iframe);container.appendChild(content);document.body.appendChild(container);// Cerrar al hacer clic fuera del blanco\ncontainer.onclick=event=>{if(event.target===container)container.remove();};};return /*#__PURE__*/_jsx(Component,{...props,onClick:openForm});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withBitrixSponsor\":{\"type\":\"reactHoc\",\"name\":\"withBitrixSponsor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBitrixContacto\":{\"type\":\"reactHoc\",\"name\":\"withBitrixContacto\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BitrixCode.map"],"mappings":"oGAA2C,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAAO,CAAC,IA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