{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/NMd1J7psuIfSKZlY2L0g/J3tERNS1lAbiYN0twF5z/Calc_embed.js"],
  "sourcesContent": ["// OLD SCRIPT WITHOUT IFRAME\n// import React, { useEffect } from \"react\"\n// import { addPropertyControls, ControlType } from \"framer\"\n// export default function CalcEmbed(props) {\n//     useEffect(() => {\n//         const script = document.createElement(\"script\")\n//         script.src = \"https://scripts.convertcalculator.com/embed.js\"\n//         script.async = true\n//         document.body.appendChild(script)\n//         return () => {\n//             document.body.removeChild(script)\n//         }\n//     }, [])\n//     return (\n//         <div\n//             className=\"calculator\"\n//             data-calc-id={props.calculatorId}\n//             data-type=\"framed\"\n//         ></div>\n//     )\n// }\n// addPropertyControls(CalcEmbed, {\n//     calculatorId: {\n//         type: ControlType.String,\n//         title: \"Calculator ID\",\n//         defaultValue: \"ihok8T7ZzWsP8nYP8\",\n//     },\n// })\n// // 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 CalcEmbed(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);};},[]);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(CalcEmbed,{calculatorId:{type:ControlType.String,title:\"Calculator ID\",defaultValue:\"uKG3X56eoLw3oDjCP\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CalcEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Calc_embed.map"],
  "mappings": "gEA6B2I,SAARA,EAA2BC,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,EAAsBC,EAAK,MAAM,CAAC,UAAU,aAAa,eAAeH,EAAM,aAAa,YAAY,SAAS,SAAsBG,EAAK,SAAS,CAAC,UAAU,mBAAmB,GAAG,oBAAoBH,EAAM,eAAe,QAAQ,0FAA0F,MAAM,mBAAmB,MAAM,CAAC,OAAO,QAAQ,EAAE,MAAM,OAAO,IAAI,2CAA2CA,EAAM,uBAAuB,CAAC,CAAC,CAAC,CAAE,CACp1BI,EAAoBL,EAAU,CAAC,aAAa,CAAC,KAAKM,EAAY,OAAO,MAAM,gBAAgB,aAAa,mBAAmB,CAAC,CAAC",
  "names": ["CalcEmbed", "props", "ue", "script", "p", "addPropertyControls", "ControlType"]
}
