{"version":3,"file":"EmbedMeeting.D1HTJZFn.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/PvSefQFuEtGlombgXGQr/4sER1m8F4W5F8bYwvAgI/EmbedMeeting.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function EmbedMeeting(props){const[firstName,setFirstName]=useState(\"\");const[lastName,setLastName]=useState(\"\");const[email,setEmail]=useState(\"\");const[phone,setPhone]=useState(\"\");useEffect(()=>{if(window.localStorage){if(window.localStorage.getItem(\"firstName\"))setFirstName(window.localStorage.getItem(\"firstName\"));if(window.localStorage.getItem(\"lastName\"))setLastName(window.localStorage.getItem(\"lastName\"));if(window.localStorage.getItem(\"email\"))setEmail(window.localStorage.getItem(\"email\"));if(window.localStorage.getItem(\"phone\"))setPhone(window.localStorage.getItem(\"phone\"));}},[]);return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsx(\"iframe\",{style:iframeStyle,src:`${props.url}?embed=true&firstName=${firstName}&lastName=${lastName}&email=${email}&phone=${phone}`}),/*#__PURE__*/_jsx(\"script\",{type:\"text/javascript\",src:\"https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js\"})]});}EmbedMeeting.defaultProps={url:\"https://meetings.hubspot.com/fabien-gautier/decouvrir-le-logiciel-comptable-nouvelle-generation-inqom\"};addPropertyControls(EmbedMeeting,{url:{type:ControlType.String,title:\"Meeting url\"}});// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle={height:\"100%\",width:\"100%\",minHeight:\"400px\"};const iframeStyle={height:\"100%\",width:\"100%\",border:\"none\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EmbedMeeting\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EmbedMeeting.map"],"mappings":"sMAAmJ,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAS,GAAG,CAAM,CAAC,EAAS,GAAaA,EAAS,GAAG,CAAM,CAAC,EAAM,GAAUA,EAAS,GAAG,CAAM,CAAC,EAAM,GAAUA,EAAS,GAAG,CAAga,OAA/Z,MAAc,CAAI,EAAO,eAAiB,EAAO,aAAa,QAAQ,YAAY,EAAC,EAAa,EAAO,aAAa,QAAQ,YAAY,CAAC,CAAI,EAAO,aAAa,QAAQ,WAAW,EAAC,EAAY,EAAO,aAAa,QAAQ,WAAW,CAAC,CAAI,EAAO,aAAa,QAAQ,QAAQ,EAAC,EAAS,EAAO,aAAa,QAAQ,QAAQ,CAAC,CAAI,EAAO,aAAa,QAAQ,QAAQ,EAAC,EAAS,EAAO,aAAa,QAAQ,QAAQ,CAAC,GAAI,EAAE,CAAC,CAAqB,EAAM,MAAM,CAAC,MAAM,EAAe,SAAS,CAAc,EAAK,SAAS,CAAC,MAAM,EAAY,IAAI,GAAG,EAAM,IAAI,wBAAwB,EAAU,YAAY,EAAS,SAAS,EAAM,SAAS,IAAQ,CAAC,CAAc,EAAK,SAAS,CAAC,KAAK,kBAAkB,IAAI,uEAAuE,CAAC,CAAC,CAAC,CAAC,0BAAzhC,IAAsC,IAAoD,CAAi8B,EAAa,aAAa,CAAC,IAAI,wGAAwG,CAAC,EAAoB,EAAa,CAAC,IAAI,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,CAAC,CAAC,CAE3yC,EAAe,CAAC,OAAO,OAAO,MAAM,OAAO,UAAU,QAAQ,CAAO,EAAY,CAAC,OAAO,OAAO,MAAM,OAAO,OAAO,OAAO"}