{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/5InOyRwRxrsFzX6nLjCr/suMltfpMpKVAq5pLei7t/RDStationForm.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function RDStationForm({formId,rdKey}){// We can't really do anything without a formId\nif(!formId){return /*#__PURE__*/_jsx(\"div\",{children:\"Please set a form id\"});}if(!rdKey){return /*#__PURE__*/_jsx(\"div\",{children:\"Please set a rd key\"});}// We use a script loader in a useEffect\nReact.useEffect(()=>{// Add the library script and set up the load handler\nconst script=document.createElement(\"script\");script.src=\"https://d335luupugsy2.cloudfront.net/js/rdstation-forms/stable/rdstation-forms.min.js\";script.onload=()=>{new RDStationForms(formId,rdKey).createForm();};document.body.appendChild(script);},[formId,rdKey]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\"},id:formId});}// Add a form id field in the properties panel\naddPropertyControls(RDStationForm,{formId:{title:\"Form Id\",type:ControlType.String,placeholder:\"Form Id\"},rdKey:{title:\"RD Key\",type:ControlType.String,placeholder:\"RD Key\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RDStationForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RDStationForm.map"],
  "mappings": "kIAGkB,SAARA,EAA+B,CAAC,OAAAC,EAAO,MAAAC,CAAK,EAAE,CACxD,OAAID,EAA+EC,GAC7EC,EAAU,IAAI,CACpB,IAAMC,EAAO,SAAS,cAAc,QAAQ,EAAEA,EAAO,IAAI,wFAAwFA,EAAO,OAAO,IAAI,CAAC,IAAI,eAAeH,EAAOC,CAAK,EAAE,WAAW,CAAE,EAAE,SAAS,KAAK,YAAYE,CAAM,CAAE,EAAE,CAACH,EAAOC,CAAK,CAAC,EAAsBG,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,EAAE,GAAGJ,CAAM,CAAC,GAFvOI,EAAK,MAAM,CAAC,SAAS,qBAAqB,CAAC,EAAzHA,EAAK,MAAM,CAAC,SAAS,sBAAsB,CAAC,CAE2Q,CACvVC,EAAoBN,EAAc,CAAC,OAAO,CAAC,MAAM,UAAU,KAAKO,EAAY,OAAO,YAAY,SAAS,EAAE,MAAM,CAAC,MAAM,SAAS,KAAKA,EAAY,OAAO,YAAY,QAAQ,CAAC,CAAC",
  "names": ["RDStationForm", "formId", "rdKey", "ue", "script", "p", "addPropertyControls", "ControlType"]
}
