{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/tn45XdlTGUy2hL6QE3W2/WqeQpPXLsWB2i1PVtVqQ/SM_Funnel_Form.js"],
  "sourcesContent": ["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as React from \"react\";\nimport { addPropertyControls, ControlType } from \"framer\"; /**\n                                                           * @framerSupportedLayoutWidth fixed\n                                                           * @framerSupportedLayoutHeight auto\n                                                           */\nexport default function SM_Funnel_Form(props) {\n  const {\n    partnerName,\n    id\n  } = props; // We can't really do anything without a key\n  if (!partnerName) {\n    return /*#__PURE__*/_jsx(\"div\", {\n      children: \"Please set the partner name\"\n    });\n  } // We use the Framer node id for a stable id\n  const elementId = `smfunnelform_${id}`; // We use a script loader in a useEffect\n  React.useEffect(() => {\n    const container = document.getElementById(elementId); // Create div element\n    const div = document.createElement(\"div\");\n    div.setAttribute(\"id\", \"snFunnel\");\n    div.dataset.partner = partnerName; // Create script element\n    const script = document.createElement(\"script\");\n    script.src = \"https://scanmovers.com/partner/iframe/js/funnel.js?v=3\";\n    script.async = true;\n    container.innerHTML = \"\";\n    container.appendChild(div);\n    container.appendChild(script);\n    return () => {\n      container.removeChild(script);\n      container.removeChild(div);\n      script.remove();\n      div.remove();\n      container.remove();\n    };\n  }, [partnerName, id]);\n  return /*#__PURE__*/_jsx(\"div\", {\n    initial: false,\n    style: style,\n    id: elementId\n  });\n}\n;\nconst style = {\n  width: \"100%\",\n  height: \"100%\",\n  minHeight: \"50\",\n  fontSize: \"16px\"\n}; // Add a form id field in the properties panel\naddPropertyControls(SM_Funnel_Form, {\n  partnerName: {\n    title: \"Partner name\",\n    type: ControlType.String,\n    placeholder: \"Partner name\"\n  }\n});\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"SM_Funnel_Form\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerContractVersion\": \"1\",\n        \"framerSupportedLayoutHeight\": \"auto\",\n        \"framerSupportedLayoutWidth\": \"fixed\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./SM_Funnel_Form.map"],
  "mappings": "2FAMe,SAARA,EAAgCC,EAAO,CAC5C,GAAM,CACJ,YAAAC,EACA,GAAAC,CACF,EAAIF,EACJ,GAAI,CAACC,EACH,OAAoBE,EAAK,MAAO,CAC9B,SAAU,6BACZ,CAAC,EAEH,IAAMC,EAAY,gBAAgBF,IAClC,OAAMG,EAAU,IAAM,CACpB,IAAMC,EAAY,SAAS,eAAeF,CAAS,EAC7CG,EAAM,SAAS,cAAc,KAAK,EACxCA,EAAI,aAAa,KAAM,UAAU,EACjCA,EAAI,QAAQ,QAAUN,EACtB,IAAMO,EAAS,SAAS,cAAc,QAAQ,EAC9C,OAAAA,EAAO,IAAM,yDACbA,EAAO,MAAQ,GACfF,EAAU,UAAY,GACtBA,EAAU,YAAYC,CAAG,EACzBD,EAAU,YAAYE,CAAM,EACrB,IAAM,CACXF,EAAU,YAAYE,CAAM,EAC5BF,EAAU,YAAYC,CAAG,EACzBC,EAAO,OAAO,EACdD,EAAI,OAAO,EACXD,EAAU,OAAO,CACnB,CACF,EAAG,CAACL,EAAaC,CAAE,CAAC,EACAC,EAAK,MAAO,CAC9B,QAAS,GACT,MAAOM,EACP,GAAIL,CACN,CAAC,CACH,CAEA,IAAMK,EAAQ,CACZ,MAAO,OACP,OAAQ,OACR,UAAW,KACX,SAAU,MACZ,EACAC,EAAoBX,EAAgB,CAClC,YAAa,CACX,MAAO,eACP,KAAMY,EAAY,OAClB,YAAa,cACf,CACF,CAAC",
  "names": ["SM_Funnel_Form", "props", "partnerName", "id", "p", "elementId", "ue", "container", "div", "script", "style", "addPropertyControls", "ControlType"]
}
