{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/W0HDkPA3NuO7pd4MT9gF/c63ECLsZyO8WVVAg9Udq/Embed3.js"],
  "sourcesContent": ["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth fill\n * @framerSupportedLayoutHeight fill\n */export default function Embed(props){const containerRef=useRef(null);useEffect(()=>{if(containerRef.current){// Clear any previous content\ncontainerRef.current.innerHTML=\"\";const isContactPage=window.location.href.includes(\"/contact-us\")||document.body.classList.contains(\"contact-page\")||document.querySelector(\"h1\")?.textContent.includes(\"Contact\");// Build the base form URL\nlet formUrl=\"https://form.jotform.com/251391353870054\";// Only add course parameter if NOT on contact page\nif(!isContactPage){const courseTitle=getCourseTitle(props);if(courseTitle&&courseTitle!==\"Let's get in touch!\"){formUrl+=`?course=${encodeURIComponent(courseTitle)}`;}}const iframe=document.createElement(\"iframe\");// Set the iframe styles to ensure it fits the container\niframe.src=formUrl;iframe.style.width=\"100%\";iframe.style.height=\"100%\";iframe.style.border=\"none\";iframe.style.flex=\"1\";// Append the iframe to the container div\ncontainerRef.current.appendChild(iframe);}},[props.document?.title,props.content?.title])// Watch for title changes\n;return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:containerStyle});}// Helper function to get the course title\nfunction getCourseTitle(props){// Method 1: From direct CMS props\nif(props.document?.title)return props.document.title;if(props.content?.title)return props.content.title;// Method 2: From specific page elements\nconst courseTitleElement=document.querySelector(\"[data-course-title]\")||document.querySelector(\".course-title\")||document.querySelector(\"h1:not(nav h1)\");return courseTitleElement?.innerText||\"Course Registration\";}// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle={width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\",backgroundColor:\"#ffffff\",position:\"relative\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Embed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fill\",\"framerSupportedLayoutHeight\":\"fill\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Embed3.map"],
  "mappings": "2FAQkB,SAARA,EAAuBC,EAAM,CAAC,IAAMC,EAAaC,EAAO,IAAI,EAAE,OAAAC,EAAU,IAAI,CAAC,GAAGF,EAAa,QAAQ,CAC/GA,EAAa,QAAQ,UAAU,GAAG,IAAMG,EAAcC,EAAO,SAAS,KAAK,SAAS,aAAa,GAAG,SAAS,KAAK,UAAU,SAAS,cAAc,GAAG,SAAS,cAAc,IAAI,GAAG,YAAY,SAAS,SAAS,EAC9MC,EAAQ,2CACZ,GAAG,CAACF,EAAc,CAAC,IAAMG,EAAYC,EAAeR,CAAK,EAAKO,GAAaA,IAAc,wBAAuBD,GAAS,WAAW,mBAAmBC,CAAW,CAAC,GAAI,CAAC,IAAME,EAAO,SAAS,cAAc,QAAQ,EACpNA,EAAO,IAAIH,EAAQG,EAAO,MAAM,MAAM,OAAOA,EAAO,MAAM,OAAO,OAAOA,EAAO,MAAM,OAAO,OAAOA,EAAO,MAAM,KAAK,IACrHR,EAAa,QAAQ,YAAYQ,CAAM,CAAE,CAAC,EAAE,CAACT,EAAM,UAAU,MAAMA,EAAM,SAAS,KAAK,CAAC,EACnEU,EAAK,MAAM,CAAC,IAAIT,EAAa,MAAMU,CAAc,CAAC,CAAE,CACzE,SAASH,EAAeR,EAAM,CAC9B,OAAGA,EAAM,UAAU,MAAaA,EAAM,SAAS,MAASA,EAAM,SAAS,MAAaA,EAAM,QAAQ,OACzE,SAAS,cAAc,qBAAqB,GAAG,SAAS,cAAc,eAAe,GAAG,SAAS,cAAc,gBAAgB,IAA6B,WAAW,qBAAsB,CAEtN,IAAMW,EAAe,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,SAAS,SAAS,gBAAgB,UAAU,SAAS,UAAU",
  "names": ["Embed", "props", "containerRef", "pe", "ue", "isContactPage", "window", "formUrl", "courseTitle", "getCourseTitle", "iframe", "p", "containerStyle"]
}
