{"version":3,"file":"Iframe.DeekyDvo.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/U54j4FIR3W4RQc4YBJev/1OJZXkHSsRxI2On8Lo8a/Iframe.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{useEffect,useRef,useState}from\"react\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function Iframe(){const iframeRef=useRef(null);const[height,setHeight]=useState(1100);useEffect(()=>{const handleResize=()=>{// Adjust base height depending on viewport\nconst width=window.innerWidth;if(width<480){setHeight(1400)// Mobile\n;}else if(width<768){setHeight(1200)// Tablet\n;}else{setHeight(1100)// Desktop\n;}};handleResize();window.addEventListener(\"resize\",handleResize);return()=>window.removeEventListener(\"resize\",handleResize);},[]);return /*#__PURE__*/_jsx(motion.div,{style:{width:\"100%\",borderRadius:12},initial:{opacity:0},animate:{opacity:1},transition:{duration:.5},children:/*#__PURE__*/_jsx(\"iframe\",{ref:iframeRef,\"aria-label\":\"Contact Form\",src:\"https://forms.zohopublic.in/workbettertrainingprivatelim1/form/DummyCFWebsiteContactUs/formperma/4uhGTz7W1v6kYabBxlpvtl7eeAwcWEBQ7nAOuPkNh0U\",style:{width:\"100%\",height:`${height}px`,border:\"none\",display:\"block\"},loading:\"lazy\"})});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Iframe\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Iframe.map"],"mappings":"+LAGG,SAAwB,GAAQ,CAAC,IAAM,EAAUA,EAAO,KAAK,CAAM,CAAC,EAAO,GAAWC,EAAS,KAAK,CAI6B,OAJ5B,MAAc,CAAC,IAAM,MAAiB,CAC9I,IAAM,EAAM,EAAO,WAAyB,EAAX,EAAM,IAAe,KAC5C,EAAM,IAAe,KACd,KAAK,EAC4C,OAA9D,GAAc,CAAC,EAAO,iBAAiB,SAAS,EAAa,KAAW,EAAO,oBAAoB,SAAS,EAAa,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,MAAM,OAAO,aAAa,GAAG,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAC,SAAS,GAAG,CAAC,SAAsB,EAAK,SAAS,CAAC,IAAI,EAAU,aAAa,eAAe,IAAI,+IAA+I,MAAM,CAAC,MAAM,OAAO,OAAO,GAAG,EAAO,IAAI,OAAO,OAAO,QAAQ,QAAQ,CAAC,QAAQ,OAAO,CAAC,CAAC,CAAC,sBAPhiB,IAAkC,IAA6C"}