{"version":3,"file":"Calc_embed.ePy2XT-k.mjs","names":[],"sources":["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":"qKA6B4H,SAAwB,EAAU,EAAM,CAAmO,OAAlO,MAAc,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAAiH,MAAhH,GAAO,IAAI,iDAAiD,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,EAAO,KAAW,CAAC,SAAS,KAAK,YAAY,EAAO,GAAK,EAAE,CAAC,CAAqB,EAAK,MAAM,CAAC,UAAU,aAAa,eAAe,EAAM,aAAa,YAAY,SAAS,SAAsB,EAAK,SAAS,CAAC,UAAU,mBAAmB,GAAG,oBAAoB,EAAM,eAAe,QAAQ,0FAA0F,MAAM,mBAAmB,MAAM,CAAC,OAAO,SAAS,CAAC,MAAM,OAAO,IAAI,2CAA2C,EAAM,aAAa,WAAW,CAAC,CAAC,CAAC,kBAAxyB,IAA6B,IAAoD,CAC5H,EAAoB,EAAU,CAAC,aAAa,CAAC,KAAK,EAAY,OAAO,MAAM,gBAAgB,aAAa,oBAAoB,CAAC,CAAC"}