{"version":3,"file":"CalcEmbed.BAcwAV2V.mjs","names":[],"sources":["https:/framerusercontent.com/modules/8jxmJbxnmcoIZSCXFVfJ/YKhhl4BKBRpx7QX4B7s2/CalcEmbed.js"],"sourcesContent":["// The forms on this template are created using https://www.convertcalculator.com/. This code component embeds your calculator or form within your Framer website.\n//\n// How to edit your calculator or form:\n//\n// 1. Create an account on https://www.convertcalculator.com/\n// 2. Duplicate the templates below, and update it with your own content and styles in the Convert_ builder:\n//     1. **Price quote:** https://www.convertcalculator.com/templates/photography-quote-template/\n//     2. **Contact form:** https://www.convertcalculator.com/templates/photography-inquiry-form/\n//     3. **Feedback form:** https://www.convertcalculator.com/templates/photography-review-template/\n// 3. Go to the *Share* tab in Convert_ and click on *Embed* in the builder. Copy your Calculator ID at the bottom of the page.\n// 4. In Framer, add your Calculator ID in the “Calc ID” inputfield of this CalcEmbed code component.\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%\",// height=\"785px\"\nsrc:`https://www.convertcalculator.com/embed/${props.calculatorId}?framed=1`})});}// Add property controls for the input value\naddPropertyControls(CalcEmbed,{calculatorId:{type:ControlType.String,title:\"Calc ID\",defaultValue:\"uKG3X56eoLw3oDjCP\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CalcEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CalcEmbed.map"],"mappings":"kQAW4H,SAAwB,EAAU,EAAM,CAAmO,MAAlO,GAAU,IAAI,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAAiH,OAAhH,EAAO,IAAI,iDAAiD,EAAO,OAAM,EAAK,SAAS,KAAK,YAAY,EAAO,CAAO,IAAI,CAAC,SAAS,KAAK,YAAY,EAAO,AAAE,CAAE,EAAC,CAAE,EAAC,CAAqB,EAAK,MAAM,CAAC,UAAU,aAAa,eAAe,EAAM,aAAa,YAAY,SAAS,SAAsB,EAAK,SAAS,CAAC,UAAU,mBAAmB,IAAI,mBAAmB,EAAM,eAAe,QAAQ,0FAA0F,MAAM,mBAAmB,MAAM,CAAC,OAAO,QAAS,EAAC,MAAM,OAC5vB,KAAK,0CAA0C,EAAM,aAAa,UAAW,EAAC,AAAC,EAAC,AAAE,cAClF,AAFA,GAA2C,IAA6B,IAAoD,CAE5H,EAAoB,EAAU,CAAC,aAAa,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,aAAa,mBAAoB,CAAC,EAAC"}