{"version":3,"file":"HotmartScript.Chr6PR51.mjs","names":[],"sources":["https:/framerusercontent.com/modules/JkFoYnrCjs6lLxm5xJ9L/pQ8PVsZDXb5Vhe0hN1om/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,MANmE,GAAU,IAAI,CACtI,IAAM,EAAO,SAAS,cAAc,SAAS,CAK7C,OAL8C,EAAO,IAAI,gEAAgE,EAAO,OAAM,EACtI,SAAS,KAAK,YAAY,EAAO,CACjC,EAAO,OAAO,IAAI,CAClB,AAAG,EAAO,kBACV,EAAO,iBAAiB,KAAK,cAAc,CAAC,MAAM,wBAAwB,AAAG,EACvE,IAAI,CAAC,SAAS,KAAK,YAAY,EAAO,AAAE,CAAE,EAAC,CAAE,EAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,EAAe,SAAsB,EAAK,MAAM,CAAC,GAAG,uBAAuB,MAAM,CAAC,MAAM,OAAO,OAAO,MAAO,CAAC,EAAC,AAAC,EAAC,AAAE,gBACxM,IAPH,GAA2C,IAA6B,CAOrE,EAAe,CAAC,OAAO,OAAO,MAAM,OAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,QAAS"}