{"version":3,"file":"CustomIframe.CfcGtkRE.mjs","names":[],"sources":["https:/framerusercontent.com/modules/CaZQNYHbexNTFxyIhczC/XZ6OrN866IvLsblMEEdi/CustomIframe.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function CustomIframe(props){const iframeId=\"price-calculator-web\";React.useEffect(()=>{const iframeLoaded=height=>{requestAnimationFrame(()=>{const iframeEl=document.getElementById(iframeId);if(!iframeEl)return;const newHeight=Math.max(height,250);if(iframeEl.style.height!==`${newHeight}px`){iframeEl.style.height=`${newHeight}px`;}});};const handleMessage=m=>{if(m.data?.event===\"Resize\"){iframeLoaded(m.data.height);}};window.addEventListener(\"message\",handleMessage);return()=>{window.removeEventListener(\"message\",handleMessage);};},[]);return /*#__PURE__*/_jsx(\"iframe\",{id:iframeId,src:props.src,style:{width:\"100%\",border:\"none\",display:\"block\",position:\"relative\",top:0,transform:\"none\",margin:\"0 auto\"}});}addPropertyControls(CustomIframe,{src:{type:ControlType.String,title:\"Source\",defaultValue:\"https://example.com\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"CustomIframe\":{\"type\":\"reactComponent\",\"name\":\"CustomIframe\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CustomIframe.map"],"mappings":"0SAA2H,SAAgB,EAAa,EAAM,CAAC,IAAM,EAAS,uBAAmf,OAA5d,MAAoB,CAAC,IAAM,EAAa,GAAQ,CAAC,0BAA0B,CAAC,IAAM,EAAS,SAAS,eAAe,EAAS,CAAC,GAAG,CAAC,EAAS,OAAO,IAAM,EAAU,KAAK,IAAI,EAAO,IAAI,CAAI,EAAS,MAAM,SAAS,GAAG,EAAU,MAAK,EAAS,MAAM,OAAO,GAAG,EAAU,MAAO,EAAS,EAAc,GAAG,CAAI,EAAE,MAAM,QAAQ,UAAU,EAAa,EAAE,KAAK,OAAO,EAAqD,OAAjD,EAAO,iBAAiB,UAAU,EAAc,KAAW,CAAC,EAAO,oBAAoB,UAAU,EAAc,GAAK,EAAE,CAAC,CAAqB,EAAK,SAAS,CAAC,GAAG,EAAS,IAAI,EAAM,IAAI,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,QAAQ,SAAS,WAAW,IAAI,EAAE,UAAU,OAAO,OAAO,SAAS,CAAC,CAAC,sBAAlyB,IAA4B,IAAoD,CAAotB,EAAoB,EAAa,CAAC,IAAI,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,sBAAsB,CAAC,CAAC"}