{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/FHgYq40TyxPRoHBMNxtP/cv0hypZ6J7y3F4IadptO/Calc_embed_scaled.js"],
  "sourcesContent": ["// NEW SCRIPT WITH IFRAME, WITHOUT HEIGHT\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function CalcEmbedScaled(props){useEffect(()=>{const script=document.createElement(\"script\");script.src=\"https://scripts.convertcalculator.com/embed.js\";script.async=true;document.body.appendChild(script);return()=>{document.body.removeChild(script);};},[]);useEffect(()=>{const iframe=document.getElementById(`calculator-frame-${props.calculatorId}`);if(iframe&&iframe.parentElement){iframe.parentElement.style.transform=\"scale(0.75)\";iframe.parentElement.style.transformOrigin=\"top left\";iframe.parentElement.style.width=\"133%\"// Past aan hoe breed de parent wordt na scaling\n;// iframe.parentElement.style.overflowY = \"scroll\" // Zorgt ervoor dat er gescrolled kan worden\n// iframe.parentElement.style.maxHeight = \"100vh\" // Voorkomt dat het uit de viewport verdwijnt\n}},[props.calculatorId])// Zorgt ervoor dat het effect opnieuw wordt toegepast als de ID verandert\n;return /*#__PURE__*/_jsx(\"div\",{className:\"calculator\",\"data-calc-id\":props.calculatorId,\"data-type\":\"framed\",children:/*#__PURE__*/_jsx(\"iframe\",{className:\"calculator-frame\",id:`calculator-frame-${props.calculatorId}`,sandbox:\"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox\",title:\"Calculator Frame\",style:{border:\"medium\",width:\"100%\"},src:`https://www.convertcalculator.com/embed/${props.calculatorId}?framed=1`})});}// Add property controls for the input value\naddPropertyControls(CalcEmbedScaled,{calculatorId:{type:ControlType.String,title:\"Calculator ID\",defaultValue:\"uKG3X56eoLw3oDjCP\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CalcEmbedScaled\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Calc_embed_scaled.map"],
  "mappings": "gEAC2I,SAARA,EAAiCC,EAAM,CAAC,OAAAC,EAAU,IAAI,CAAC,IAAMC,EAAO,SAAS,cAAc,QAAQ,EAAE,OAAAA,EAAO,IAAI,iDAAiDA,EAAO,MAAM,GAAK,SAAS,KAAK,YAAYA,CAAM,EAAQ,IAAI,CAAC,SAAS,KAAK,YAAYA,CAAM,CAAE,CAAE,EAAE,CAAC,CAAC,EAAED,EAAU,IAAI,CAAC,IAAME,EAAO,SAAS,eAAe,oBAAoBH,EAAM,YAAY,EAAE,EAAKG,GAAQA,EAAO,gBAAeA,EAAO,cAAc,MAAM,UAAU,cAAcA,EAAO,cAAc,MAAM,gBAAgB,WAAWA,EAAO,cAAc,MAAM,MAAM,OAGrpB,EAAE,CAACH,EAAM,YAAY,CAAC,EACFI,EAAK,MAAM,CAAC,UAAU,aAAa,eAAeJ,EAAM,aAAa,YAAY,SAAS,SAAsBI,EAAK,SAAS,CAAC,UAAU,mBAAmB,GAAG,oBAAoBJ,EAAM,YAAY,GAAG,QAAQ,0FAA0F,MAAM,mBAAmB,MAAM,CAAC,OAAO,SAAS,MAAM,MAAM,EAAE,IAAI,2CAA2CA,EAAM,YAAY,WAAW,CAAC,CAAC,CAAC,CAAE,CAC9cK,EAAoBN,EAAgB,CAAC,aAAa,CAAC,KAAKO,EAAY,OAAO,MAAM,gBAAgB,aAAa,mBAAmB,CAAC,CAAC",
  "names": ["CalcEmbedScaled", "props", "ue", "script", "iframe", "p", "addPropertyControls", "ControlType"]
}
