{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/FtxzWERKKoyfwlQWZe4g/LuTe0zlWE0TpXqGrk97V/CustomHubspotMeetingForm.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect}from\"react\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/components/auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function CustomHubspotMeetingForm(props){const meetingIdentifier=\"custom-meeting-\"+Math.random().toString(36).substring(7);useEffect(()=>{injectHubspotStyle();injectHubspotMeetingScript(()=>{// The component initializes any div with a class \".meetings-iframe-container\"\n// and data-src for the iframe by default\n// This is a workaround for the embedded forms, where the script is loaded\n// before the HTML container\nif(window.hbspt&&window.hbspt.meetings){const element=document.querySelector(`.${meetingIdentifier}`);// Check if the element is present and hasn't been initialized yet\nif(element&&!element.firstChild){window.hbspt.meetings.create(`.${meetingIdentifier}`);}}});},[]);return /*#__PURE__*/_jsx(\"div\",{className:`meetings-iframe-container custom-hubspot-meeting-form ${meetingIdentifier}`,\"data-src\":`${props.meetingUrl}?embed=true`});}const injectHubspotMeetingScript=callback=>{const SCRIPT_ID=\"custom-hubspot-meeting-script\";const scriptAlreadyLoaded=document.getElementById(SCRIPT_ID);if(scriptAlreadyLoaded){callback();}else{const script=document.createElement(\"script\");script.src=\"https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js\";script.id=SCRIPT_ID;document.body.appendChild(script);script.onload=callback;}};const injectHubspotStyle=()=>{const styling=`\n        .meetings-iframe-container iframe {\n            height: 720px !important;\n        }\n    `;const style=document.createElement(\"style\");style.innerHTML=styling;document.head.appendChild(style);};addPropertyControls(CustomHubspotMeetingForm,{meetingUrl:{type:ControlType.String,title:\"Hubspot Meeting URL\",defaultValue:\"https://meetings.hubspot.com/tomuxdi/speak-to-an-advisor-generic-\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomHubspotMeetingForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CustomHubspotMeetingForm.map"],
  "mappings": "wGAMkB,SAARA,EAA0CC,EAAM,CAAC,IAAMC,EAAkB,kBAAkB,KAAK,OAAO,EAAE,SAAS,EAAE,EAAE,UAAU,CAAC,EAAE,OAAAC,EAAU,IAAI,CAACC,EAAmB,EAAEC,EAA2B,IAAI,CAIhN,GAAGC,EAAO,OAAOA,EAAO,MAAM,SAAS,CAAC,IAAMC,EAAQ,SAAS,cAAc,IAAIL,CAAiB,EAAE,EACjGK,GAAS,CAACA,EAAQ,YAAYD,EAAO,MAAM,SAAS,OAAO,IAAIJ,CAAiB,EAAE,CAAG,CAAC,CAAC,CAAE,EAAE,CAAC,CAAC,EAAsBM,EAAK,MAAM,CAAC,UAAU,yDAAyDN,CAAiB,GAAG,WAAW,GAAGD,EAAM,UAAU,aAAa,CAAC,CAAE,CAAC,IAAMI,EAA2BI,GAAU,CAAC,IAAMC,EAAU,gCAA6F,GAAnC,SAAS,eAAeA,CAAS,EAA0BD,EAAS,MAAO,CAAC,IAAME,EAAO,SAAS,cAAc,QAAQ,EAAEA,EAAO,IAAI,uEAAuEA,EAAO,GAAGD,EAAU,SAAS,KAAK,YAAYC,CAAM,EAAEA,EAAO,OAAOF,CAAS,CAAC,EAAQL,EAAmB,IAAI,CAAC,IAAMQ,EAAQ;AAAA;AAAA;AAAA;AAAA,MAI1rBC,EAAM,SAAS,cAAc,OAAO,EAAEA,EAAM,UAAUD,EAAQ,SAAS,KAAK,YAAYC,CAAK,CAAE,EAAEC,EAAoBd,EAAyB,CAAC,WAAW,CAAC,KAAKe,EAAY,OAAO,MAAM,sBAAsB,aAAa,mEAAmE,CAAC,CAAC",
  "names": ["CustomHubspotMeetingForm", "props", "meetingIdentifier", "ue", "injectHubspotStyle", "injectHubspotMeetingScript", "window", "element", "p", "callback", "SCRIPT_ID", "script", "styling", "style", "addPropertyControls", "ControlType"]
}
