{"version":3,"file":"PipedriveForm.BCdCn2f7.mjs","names":[],"sources":["https:/framerusercontent.com/modules/H4Up0s50PELfADVShjSm/yU0Tu3Nm0ydjMfPo66cC/PipedriveForm.js"],"sourcesContent":["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx}from\"react/jsx-runtime\";import React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function PipedriveForm(props){const{formLink}=props;React.useEffect(()=>{// Create script element\nconst script=document.createElement(\"script\");script.src=\"https://webforms.pipedrive.com/f/loader\";script.async=true;// Append script to the .pipedriveWebForms div\ndocument.querySelector(\".pipedriveWebForms\").appendChild(script);// Clean up the script when component unmounts\nreturn()=>{if(script.parentNode){script.parentNode.removeChild(script);}};},[])// Empty dependency array ensures this runs once on mount\n;return /*#__PURE__*/_jsx(\"div\",{style:boxStyle,children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",maxWidth:\"600\"},className:\"pipedriveWebForms\",\"data-pd-webforms\":formLink})});}// Styles are written in object syntax\n// https://react.dev/reference/react-dom/components/common#usage\nconst boxStyle={margin:0,width:\"1fr\",height:\"auto\",minHeight:300,minWidth:300};addPropertyControls(PipedriveForm,{formLink:{title:\"Form Link\",type:ControlType.String,defaultValue:\"https://webforms.pipedrive.com/f/2XiKB32yUdU2HYUS6EI75MkfLc7Pu4KnLrfDIumeMZkqCXqrtOrh2AFRnkjl6HlZN\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PipedriveForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PipedriveForm.map"],"mappings":"0KAEwH,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,YAAU,EAIpL,OAJ0L,EAAM,cAAc,CAC/M,IAAM,EAAO,SAAS,cAAc,QAAQ,EAE5C,MAF8C,GAAO,IAAI,0CAA0C,EAAO,MAAM,GAChH,SAAS,cAAc,oBAAoB,CAAC,CAAC,YAAY,CAAM,MACrD,CAAI,EAAO,YAAY,EAAO,WAAW,YAAY,CAAM,CAAG,CAAE,EAAE,CAAC,CAAC,EACzD,EAAK,MAAM,CAAC,MAAM,EAAS,SAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,SAAS,KAAK,EAAE,UAAU,oBAAoB,mBAAmB,CAAQ,CAAC,CAAC,CAAC,CAAE,mBAJ1I,IAAyB,IAAoD,EAMjH,EAAS,CAAC,OAAO,EAAE,MAAM,MAAM,OAAO,OAAO,UAAU,IAAI,SAAS,GAAG,EAAE,EAAoB,EAAc,CAAC,SAAS,CAAC,MAAM,YAAY,KAAK,EAAY,OAAO,aAAa,oGAAoG,CAAC,CAAC"}