{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/MRGSG9Sbdz6pnD2Vn7h6/nUDPozZ9nUut7d8g4j3Y/CustomScriptComponent.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{Frame,addPropertyControls,ControlType}from\"framer\";// Define the CustomScriptComponent\nexport function CustomScriptComponent({src,dataVform,dataOrgId,dataIsGiving,dataMerchantType}){const containerRef=useRef(null);useEffect(()=>{if(containerRef.current){// Create a script element\nconst script=document.createElement(\"script\");script.src=src;script.setAttribute(\"data-vform\",dataVform);script.setAttribute(\"data-orgId\",dataOrgId);script.setAttribute(\"data-isGiving\",dataIsGiving);script.setAttribute(\"data-merchantType\",dataMerchantType);// Append the script to the container\ncontainerRef.current.appendChild(script);}// Cleanup function to remove the script when component unmounts\nreturn()=>{if(containerRef.current){containerRef.current.innerHTML=\"\";}};},[src,dataVform,dataOrgId,dataIsGiving,dataMerchantType]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"auto\",display:\"flex\",justifyContent:\"center\",alignItems:\"start\",position:\"relative\"},children:/*#__PURE__*/_jsx(Frame,{size:\"100%\",background:\"none\",children:/*#__PURE__*/_jsx(\"div\",{id:\"virtuous-form-container\",ref:containerRef,style:{width:\"100%\",height:\"100%\"}})})});}// Add property controls to make the script attributes editable\naddPropertyControls(CustomScriptComponent,{src:{type:ControlType.String,title:\"Script Source\",defaultValue:\"https://cdn.virtuoussoftware.com/virtuous.embed.min.js\"},dataVform:{type:ControlType.String,title:\"VForm ID\",defaultValue:\"0cd55e97-82f5-44e6-8292-2a6a03153bd2\"},dataOrgId:{type:ControlType.String,title:\"Organization ID\",defaultValue:\"5549\"},dataIsGiving:{type:ControlType.String,title:\"Is Giving\",defaultValue:\"true\"},dataMerchantType:{type:ControlType.String,title:\"Merchant Type\",defaultValue:\"StripeUnified\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"CustomScriptComponent\":{\"type\":\"reactComponent\",\"name\":\"CustomScriptComponent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CustomScriptComponent.map"],
  "mappings": "8GACO,SAASA,EAAsB,CAAC,IAAAC,EAAI,UAAAC,EAAU,UAAAC,EAAU,aAAAC,EAAa,iBAAAC,CAAgB,EAAE,CAAC,IAAMC,EAAaC,EAAO,IAAI,EAAE,OAAAC,EAAU,IAAI,CAAC,GAAGF,EAAa,QAAQ,CACtK,IAAMG,EAAO,SAAS,cAAc,QAAQ,EAAEA,EAAO,IAAIR,EAAIQ,EAAO,aAAa,aAAaP,CAAS,EAAEO,EAAO,aAAa,aAAaN,CAAS,EAAEM,EAAO,aAAa,gBAAgBL,CAAY,EAAEK,EAAO,aAAa,oBAAoBJ,CAAgB,EAC/PC,EAAa,QAAQ,YAAYG,CAAM,CAAE,CACzC,MAAM,IAAI,CAAIH,EAAa,UAASA,EAAa,QAAQ,UAAU,GAAI,CAAE,EAAE,CAACL,EAAIC,EAAUC,EAAUC,EAAaC,CAAgB,CAAC,EAAsBK,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,QAAQ,SAAS,UAAU,EAAE,SAAsBA,EAAKC,EAAM,CAAC,KAAK,OAAO,WAAW,OAAO,SAAsBD,EAAK,MAAM,CAAC,GAAG,0BAA0B,IAAIJ,EAAa,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAC9cM,EAAoBZ,EAAsB,CAAC,IAAI,CAAC,KAAKa,EAAY,OAAO,MAAM,gBAAgB,aAAa,wDAAwD,EAAE,UAAU,CAAC,KAAKA,EAAY,OAAO,MAAM,WAAW,aAAa,sCAAsC,EAAE,UAAU,CAAC,KAAKA,EAAY,OAAO,MAAM,kBAAkB,aAAa,MAAM,EAAE,aAAa,CAAC,KAAKA,EAAY,OAAO,MAAM,YAAY,aAAa,MAAM,EAAE,iBAAiB,CAAC,KAAKA,EAAY,OAAO,MAAM,gBAAgB,aAAa,eAAe,CAAC,CAAC",
  "names": ["CustomScriptComponent", "src", "dataVform", "dataOrgId", "dataIsGiving", "dataMerchantType", "containerRef", "pe", "ue", "script", "p", "Frame", "addPropertyControls", "ControlType"]
}
