{"version":3,"file":"AddHubspotForm.CHCaAIse.mjs","names":[],"sources":["https:/framerusercontent.com/modules/YtPMaDdaOTSNirRvdUWf/D5R2ZqdNVNRdDaWZdUty/AddHubspotForm.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}export function corporateLMS(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{const hsFormElement=document.querySelector(\".hs-form-frame\");const element=document.querySelector(\"#hubspotForm\");const resizeObserver=new ResizeObserver(entries=>{for(let entry of entries){const contentRect=entry.contentRect;element.style.height=`${contentRect.height}px`;}});resizeObserver.observe(hsFormElement);},[]);return /*#__PURE__*/_jsx(Component,{id:\"hubspotForm\",ref:ref,...props,children:/*#__PURE__*/_jsx(\"div\",{class:\"hs-form-frame\",\"data-region\":\"na1\",\"data-form-id\":\"47755498-e8c5-406d-bab7-6c513cc53a06\",\"data-portal-id\":\"667314\"})});});}export function OnlineCourses(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{const hsFormElement=document.querySelector(\".hs-form-frame\");const element=document.querySelector(\"#hubspotForm\");const resizeObserver=new ResizeObserver(entries=>{for(let entry of entries){const contentRect=entry.contentRect;console.log(\"contentRect\",contentRect,hsFormElement,element);element.style.height=`${contentRect.height}px`;}});resizeObserver.observe(hsFormElement);},[]);return /*#__PURE__*/_jsx(Component,{id:\"hubspotForm\",ref:ref,...props,children:/*#__PURE__*/_jsx(\"div\",{class:\"hs-form-frame\",\"data-region\":\"na1\",\"data-form-id\":\"b7c04b20-d666-4bc1-b5ad-e44da151cc51\",\"data-portal-id\":\"667314\"})});});}export function UPSCCourse(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{const hsFormElement=document.querySelector(`#hs-form-frame-${props.className}`);const element=document.querySelector(`#hubspotForm-${props.className}`);const resizeObserver=new ResizeObserver(entries=>{for(let entry of entries){const contentRect=entry.contentRect;console.log(\"contentRect\",contentRect,hsFormElement,element);element.style.height=`${contentRect.height}px`;}});resizeObserver.observe(hsFormElement);},[]);return /*#__PURE__*/_jsx(Component,{id:`hubspotForm-${props.className}`,ref:ref,...props,children:/*#__PURE__*/_jsx(\"div\",{id:`hs-form-frame-${props.className}`,class:\"hs-form-frame\",\"data-region\":\"na1\",\"data-form-id\":\"72837118-216a-4b17-b59d-fd96b6ed8011\",\"data-portal-id\":\"667314\"})});});}export function demoschoolpop(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{const hsFormElement=document.querySelector(\".hs-form-frame\");const element=document.querySelector(\"#hubspotForm\");const resizeObserver=new ResizeObserver(entries=>{for(let entry of entries){const contentRect=entry.contentRect;element.style.height=`${contentRect.height}px`;}});resizeObserver.observe(hsFormElement);},[]);return /*#__PURE__*/_jsx(Component,{id:\"hubspotForm\",ref:ref,...props,children:/*#__PURE__*/_jsx(\"div\",{class:\"hs-form-frame\",\"data-region\":\"na1\",\"data-form-id\":\"220fd2ff-a42b-4d79-8cba-5e8f62834df0\",\"data-portal-id\":\"667314\"})});});}export function Graphy(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{const hsFormElement=document.querySelector(\".hs-form-frame\");const element=document.querySelector(\"#hubspotForm\");const resizeObserver=new ResizeObserver(entries=>{for(let entry of entries){const contentRect=entry.contentRect;element.style.height=`${contentRect.height}px`;}});resizeObserver.observe(hsFormElement);},[]);return /*#__PURE__*/_jsx(Component,{id:\"hubspotForm\",ref:ref,...props,children:/*#__PURE__*/_jsx(\"div\",{class:\"hs-form-frame\",\"data-region\":\"na1\",\"data-form-id\":\"1071dfc0-dcf4-4a89-880a-479eb1a254af\",\"data-portal-id\":\"667314\"})});});}export function LMS(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{const hsFormElement=document.querySelector(\".hs-form-frame\");const element=document.querySelector(\"#hubspotForm\");const resizeObserver=new ResizeObserver(entries=>{for(let entry of entries){const contentRect=entry.contentRect;element.style.height=`${contentRect.height}px`;}});resizeObserver.observe(hsFormElement);},[]);return /*#__PURE__*/_jsx(Component,{id:\"hubspotForm\",ref:ref,...props,children:/*#__PURE__*/_jsx(\"div\",{class:\"hs-form-frame\",\"data-region\":\"na1\",\"data-form-id\":\"7787a7c6-ebfd-488e-8f77-9cee11bc825b\",\"data-portal-id\":\"667314\"})});});}export function Edmingle(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{const hsFormElement=document.querySelector(\".hs-form-frame\");const element=document.querySelector(\"#hubspotForm\");const resizeObserver=new ResizeObserver(entries=>{for(let entry of entries){const contentRect=entry.contentRect;element.style.height=`${contentRect.height}px`;}});resizeObserver.observe(hsFormElement);},[]);return /*#__PURE__*/_jsx(Component,{id:\"hubspotForm\",ref:ref,...props,children:/*#__PURE__*/_jsx(\"div\",{class:\"hs-form-frame\",\"data-region\":\"na1\",\"data-form-id\":\"c5c04cc4-718c-43b8-9dfe-f2ca2b34f0c4\",\"data-portal-id\":\"667314\"})});});}export function USCamapign(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{const hsFormElement=document.querySelector(\".hs-form-frame\");const element=document.querySelector(\"#hubspotForm\");const resizeObserver=new ResizeObserver(entries=>{for(let entry of entries){const contentRect=entry.contentRect;element.style.height=`${contentRect.height}px`;}});resizeObserver.observe(hsFormElement);},[]);return /*#__PURE__*/_jsx(Component,{id:\"hubspotForm\",ref:ref,...props,children:/*#__PURE__*/_jsx(\"div\",{class:\"hs-form-frame\",\"data-region\":\"na1\",\"data-form-id\":\"cb332834-35cf-4f5a-ae5b-81201e844c37\",\"data-portal-id\":\"667314\"})});});}export function rigilms(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{const hsFormElement=document.querySelector(\".hs-form-frame\");const element=document.querySelector(\"#hubspotForm\");const resizeObserver=new ResizeObserver(entries=>{for(let entry of entries){const contentRect=entry.contentRect;element.style.height=`${contentRect.height}px`;}});resizeObserver.observe(hsFormElement);},[]);return /*#__PURE__*/_jsx(Component,{id:\"hubspotForm\",ref:ref,...props,children:/*#__PURE__*/_jsx(\"div\",{class:\"hs-form-frame\",\"data-region\":\"na1\",\"data-form-id\":\"2d9c9ea9-0e31-4ec5-9936-a740771b2fa0\",\"data-portal-id\":\"667314\"})});});}\nexport const __FramerMetadata__ = {\"exports\":{\"corporateLMS\":{\"type\":\"reactHoc\",\"name\":\"corporateLMS\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Graphy\":{\"type\":\"reactHoc\",\"name\":\"Graphy\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"demoschoolpop\":{\"type\":\"reactHoc\",\"name\":\"demoschoolpop\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LMS\":{\"type\":\"reactHoc\",\"name\":\"LMS\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Edmingle\":{\"type\":\"reactHoc\",\"name\":\"Edmingle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"UPSCCourse\":{\"type\":\"reactHoc\",\"name\":\"UPSCCourse\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"USCamapign\":{\"type\":\"reactHoc\",\"name\":\"USCamapign\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"OnlineCourses\":{\"type\":\"reactHoc\",\"name\":\"OnlineCourses\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"rigilms\":{\"type\":\"reactHoc\",\"name\":\"rigilms\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AddHubspotForm.map"],"mappings":"6QACgqB,SAAgB,EAAa,EAAU,CAAC,OAAoB,GAAY,EAAM,KAAO,MAAc,CAAC,IAAM,EAAc,SAAS,cAAc,iBAAiB,CAAO,EAAQ,SAAS,cAAc,eAAe,CAAsB,IAAI,eAAe,GAAS,CAAC,IAAI,IAAI,KAAS,EAAQ,CAAC,IAAM,EAAY,EAAM,YAAY,EAAQ,MAAM,OAAO,GAAG,EAAY,OAAO,MAAO,CAAgB,QAAQ,EAAc,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,cAAkB,MAAI,GAAG,EAAM,SAAsB,EAAK,MAAM,CAAC,MAAM,gBAAgB,cAAc,MAAM,eAAe,uCAAuC,iBAAiB,SAAS,CAAC,CAAC,CAAC,EAAG,CAAE,SAAgB,EAAc,EAAU,CAAC,OAAoB,GAAY,EAAM,KAAO,MAAc,CAAC,IAAM,EAAc,SAAS,cAAc,iBAAiB,CAAO,EAAQ,SAAS,cAAc,eAAe,CAAsB,IAAI,eAAe,GAAS,CAAC,IAAI,IAAI,KAAS,EAAQ,CAAC,IAAM,EAAY,EAAM,YAAY,QAAQ,IAAI,cAAc,EAAY,EAAc,EAAQ,CAAC,EAAQ,MAAM,OAAO,GAAG,EAAY,OAAO,MAAO,CAAgB,QAAQ,EAAc,EAAG,EAAE,CAAC,CA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