{"version":3,"file":"ChatWithUsBanner.DAlh3ev2.mjs","names":["useState","getCalApi","_Fragment"],"sources":["https:/framerusercontent.com/modules/fwyCUsxrvDGTS85mnHtL/S0b8mklVL2HpSIXFO5nL/ChatWithUsBanner.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{X}from\"https://framerusercontent.com/modules/FjfgqyffXHJgXjXoccuj/CDgZEmkr0zjC6wooDTUS/PhosporIcons.js\";import{addPropertyControls,ControlType}from\"framer\";import{getCalApi}from\"@calcom/embed-react\";export default function ChatWithUsBanner(props){const{title,description,timer:clockTimer,openInDifferentTab}=props;const[showModal,setShowModal]=useState(false);useEffect(()=>{// Set a timer to show the modal after 60 seconds\nconst timer=setTimeout(()=>{setShowModal(true);},clockTimer);// Clean up the timer\nreturn()=>clearTimeout(timer);},[]);const handleClose=()=>{setShowModal(false);};useEffect(()=>{(async function(){const cal=await getCalApi();cal(\"ui\",{theme:\"dark\",styles:{branding:{brandColor:\"#000000\"}}});})();},[]);return /*#__PURE__*/_jsx(_Fragment,{children:showModal&&/*#__PURE__*/_jsx(\"div\",{style:styles.bg,children:/*#__PURE__*/_jsxs(\"div\",{style:styles.containerStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:styles.left}),/*#__PURE__*/_jsxs(\"div\",{style:styles.right,children:[/*#__PURE__*/_jsxs(\"div\",{style:styles.content,children:[/*#__PURE__*/_jsx(\"div\",{onClick:handleClose,style:styles.close,children:/*#__PURE__*/_jsx(X,{size:32})}),/*#__PURE__*/_jsx(\"p\",{style:styles.title,children:title}),/*#__PURE__*/_jsx(\"p\",{style:styles.desc,children:description})]}),/*#__PURE__*/_jsx(\"div\",{\"data-cal-link\":\"team-wylo/lets-chat\",\"data-cal-config\":'{\"theme\":\"dark\"}',style:styles.chatBtn,children:\"Book a strategy call\"})]})]})})});}addPropertyControls(ChatWithUsBanner,{title:{type:ControlType.String,placeholder:\"Enter card title\",title:\"Card title\",defaultValue:\"Need some help?\"},description:{type:ControlType.String,placeholder:\"Enter card desc\",title:\"Card desc\",defaultValue:\"Got any questions about Wylo? Don’t worry. Wylo’s community experts are here to help you all the way. Let's chat 👋\"},timer:{type:ControlType.Number,defaultValue:1e3},openInDifferentTab:{type:ControlType.Boolean,defaultValue:false}});const styles={bg:{width:\"100vw\",height:\"100vh\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",background:\"rgba(0, 0, 0, 0.3)\",backdropFilter:\"blur(5px)\",position:\"fixed\",zIndex:\"10\"},close:{borderRadius:\"12px\",background:\"#E9E9E9\",position:\"absolute\",top:\"24px\",right:\"24px\",width:\"56px\",height:\"56px\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",cursor:\"pointer\",\"&:hover\":{backgroundColor:\"#d2d2d2\"}},containerStyle:{display:\"grid\",gridTemplateColumns:\"1fr 1fr\",height:\"504px\",boxSizing:\"border-box\",background:\"#F4F3F1\",borderRadius:\"36px\",overflow:\"hidden\",width:\"880px\"},left:{width:\"100%\",background:\"url('https://raw.githubusercontent.com/leo1104/images/refs/heads/main/afba10ba91ea07aebd50f187d37dcdd2.png')\",backgroundPosition:\"center\",backgroundSize:\"cover\"},right:{width:\"100%\",backgroundColor:\"#F4F3F1\",position:\"relative\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",gap:\"36px\",flexDirection:\"column\",padding:\"48px\"},content:{display:\"flex\",flexDirection:\"column\",gap:\"20px\"},title:{fontFamily:\"Inter, sans-serif\",fontSize:\"44px\",fontWeight:500,lineHeight:\"48px\",letterSpacing:\"-0.02em\",textAlign:\"left\",color:\"#282828\",padding:\"0\",margin:\"0\"},desc:{fontFamily:\"Inter, sans-serif\",fontSize:\"16px\",fontWeight:400,lineHeight:\"24px\",textAlign:\"left\",color:\"#5F5F5F\",padding:\"0\",margin:\"0\"},chatBtn:{background:\"#5C6BF1\",color:\"#FFF\",padding:\"4px 16px\",borderRadius:\"100px\",width:\"240px\",height:\"40px\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",fontFamily:\"Inter, sans-serif\",fontSize:\"16px\",fontWeight:400,lineHeight:\"24px\",textAlign:\"left\"}};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ChatWithUsBanner\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"qSAAmU,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,QAAM,cAAY,MAAM,EAAW,sBAAoB,EAAW,CAAC,EAAU,GAAcA,EAAS,GAAM,CAExQ,OAFyQ,MAAc,CAClf,IAAM,EAAM,eAAe,CAAC,EAAa,GAAK,EAAG,EAAW,CAC5D,UAAU,aAAa,EAAM,EAAG,EAAE,CAAC,CAA8C,MAAc,EAAE,gBAAgB,EAAW,MAAMC,GAAW,EAAK,KAAK,CAAC,MAAM,OAAO,OAAO,CAAC,SAAS,CAAC,WAAW,UAAU,CAAC,CAAC,CAAC,IAAK,EAAG,EAAE,CAAC,CAAqB,EAAKC,EAAU,CAAC,SAAS,GAAwB,EAAK,MAAM,CAAC,MAAM,EAAO,GAAG,SAAsB,EAAM,MAAM,CAAC,MAAM,EAAO,eAAe,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,EAAO,KAAK,CAAC,CAAc,EAAM,MAAM,CAAC,MAAM,EAAO,MAAM,SAAS,CAAc,EAAM,MAAM,CAAC,MAAM,EAAO,QAAQ,SAAS,CAAc,EAAK,MAAM,CAAC,YAAjgB,CAAC,EAAa,GAAM,EAAigB,MAAM,EAAO,MAAM,SAAsB,EAAK,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAc,EAAK,IAAI,CAAC,MAAM,EAAO,MAAM,SAAS,EAAM,CAAC,CAAc,EAAK,IAAI,CAAC,MAAM,EAAO,KAAK,SAAS,EAAY,CAAC,CAAC,CAAC,CAAC,CAAc,EAAK,MAAM,CAAC,gB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