{"version":3,"file":"ZydonDemoButton_1.O2tfXMwn.mjs","names":["useState","_Fragment","ExpandingCornersBTN","ZydonFormLeadComponent"],"sources":["https:/framerusercontent.com/modules/jocqruDXA6opTdlsl9g2/MdQIv9IiPlhgOEH7cJFV/ZydonDemoButton_1.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect}from\"react\";import{createPortal}from\"react-dom\";// @ts-ignore\nimport ExpandingCornersBTN from\"https://framer.com/m/ExpandingCornersBTN-mMuCZo.js\";// @ts-ignore\nimport ZydonFormLeadComponent from\"https://framerusercontent.com/modules/9pfkgUFGld4hCYTEEpTQ/i8Xn9CADORGePcwneth4/ZydonFormLead_1_1.js\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */const FONT=\"'Paralucent', sans-serif\";export default function ZydonDemoButton(props){const{ctaSubtitle=\"Conhe\\xe7a como a Zydon pode transformar o canal de vendas da sua empresa.\",ctaButton=\"Falar com um especialista\"}=props;const[open,setOpen]=useState(false);useEffect(()=>{if(!open)return;const onKey=e=>{if(e.key===\"Escape\")setOpen(false);};document.addEventListener(\"keydown\",onKey);document.body.style.overflow=\"hidden\";return()=>{document.removeEventListener(\"keydown\",onKey);document.body.style.overflow=\"\";};},[open]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{onClick:()=>setOpen(true),style:{display:\"inline-block\",cursor:\"pointer\"},children:/*#__PURE__*/_jsx(ExpandingCornersBTN,{style:{pointerEvents:\"none\"}})}),open&&typeof document!==\"undefined\"&&/*#__PURE__*/createPortal(/*#__PURE__*/_jsx(\"div\",{onClick:e=>{if(e.target===e.currentTarget)setOpen(false);},style:{position:\"fixed\",inset:0,zIndex:99999,background:\"rgba(0,0,0,0.75)\",backdropFilter:\"blur(10px)\",WebkitBackdropFilter:\"blur(10px)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:\"20px\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",maxWidth:700,borderRadius:20,background:\"rgb(10,10,10)\",border:\"1px solid rgba(255,255,255,0.10)\",boxShadow:\"0 32px 80px rgba(0,0,0,0.6)\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>setOpen(false),style:{position:\"absolute\",top:16,right:16,zIndex:10,width:36,height:36,borderRadius:\"50%\",background:\"rgba(255,255,255,0.08)\",border:\"1px solid rgba(255,255,255,0.12)\",color:\"#fff\",fontSize:20,lineHeight:1,cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontFamily:FONT},children:\"\\xd7\"}),/*#__PURE__*/_jsx(ZydonFormLeadComponent,{ctaTitle:\"\",ctaSubtitle:ctaSubtitle,ctaButton:ctaButton,backgroundColor:\"rgba(0,0,0,0)\",borderColor:\"rgba(0,0,0,0)\",fullWidth:true,meetingsUrl:\"https://www.zydon.com.br/pagina-de-agradecimento\",redirectOnSubmit:true,openInNewTab:true})]})}),document.body)]});}ZydonDemoButton.defaultProps={ctaSubtitle:\"Conhe\\xe7a como a Zydon pode transformar o canal de vendas da sua empresa.\",ctaButton:\"Falar com um especialista\"};addPropertyControls(ZydonDemoButton,{ctaSubtitle:{type:ControlType.String,title:\"Subt\\xedtulo do form\",displayTextArea:true,defaultValue:\"Conhe\\xe7a como a Zydon pode transformar o canal de vendas da sua empresa.\"},ctaButton:{type:ControlType.String,title:\"Texto do bot\\xe3o\",defaultValue:\"Falar com um especialista\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ZydonDemoButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"mUAKyC,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,cAAY,0EAA6E,YAAU,6BAA6B,EAAW,CAAC,EAA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