{"version":3,"file":"HotmartScript.ByuvpNZF.mjs","names":[],"sources":["https:/framerusercontent.com/modules/s007pewgVyT14eyWKSbv/moWyQafAio0AXhTVuFt0/HotmartScript.js"],"sourcesContent":["/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export default function HotmartScript(props){useEffect(()=>{// Carrega o script da Hotmart dinamicamente\nconst script=document.createElement(\"script\");script.src=\"https://checkout.hotmart.com/lib/hotmart-checkout-elements.js\";script.async=true;// Adiciona o script ao head\ndocument.head.appendChild(script);// Monta o widget após o script carregar\nscript.onload=()=>{// @ts-ignore\nif(window.checkoutElements){// @ts-ignore\nwindow.checkoutElements.init(\"salesFunnel\").mount(\"#hotmart-sales-funnel\");}};// Remove o script ao desmontar o componente\nreturn()=>{document.head.removeChild(script);};},[]);return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"div\",{id:\"hotmart-sales-funnel\",style:{width:\"100%\",height:\"100%\"}})});}// Estilo do contêiner principal\nconst containerStyle={height:\"100%\",width:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HotmartScript\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HotmartScript.map"],"mappings":"mMAG2E,SAAwB,EAAc,EAAM,CAMlE,OANmE,MAAc,CACtI,IAAM,EAAO,SAAS,cAAc,SAAS,CAK7C,MAL8C,GAAO,IAAI,gEAAgE,EAAO,MAAM,GACtI,SAAS,KAAK,YAAY,EAAO,CACjC,EAAO,WAAW,CACf,EAAO,kBACV,EAAO,iBAAiB,KAAK,cAAc,CAAC,MAAM,wBAAwB,MAChE,CAAC,SAAS,KAAK,YAAY,EAAO,GAAK,EAAE,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,EAAe,SAAsB,EAAK,MAAM,CAAC,GAAG,uBAAuB,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,wBAN9J,IAA6B,CAOrE,EAAe,CAAC,OAAO,OAAO,MAAM,OAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS"}