{"version":3,"file":"PipedriveForm.tx-wS0mA.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/dIGCGdADgDBgDBAAMKGV/G61UghDnJyLIaWxHq1em/PipedriveForm.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useRef}from\"react\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function PipedriveForm({formUrl,height,style}){const containerRef=useRef(null);useEffect(()=>{if(!containerRef.current||!formUrl)return;containerRef.current.innerHTML=\"\";const wrapper=document.createElement(\"div\");wrapper.className=\"pipedriveWebForms\";wrapper.setAttribute(\"data-pd-webforms\",formUrl);const script=document.createElement(\"script\");script.src=\"https://webforms.pipedrive.com/f/loader\";script.async=true;wrapper.appendChild(script);containerRef.current.appendChild(wrapper);return()=>{if(containerRef.current){containerRef.current.innerHTML=\"\";}};},[formUrl]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:height,display:\"flex\",justifyContent:\"center\",alignItems:\"flex-start\",...style}});}addPropertyControls(PipedriveForm,{formUrl:{type:ControlType.String,title:\"Form URL\",defaultValue:\"https://webforms.pipedrive.com/f/6UOXUmY7HgPLNiYPAYLMYQdZblJfDmFyxzIAoejLNz4BUMmmQXRU5MZXAufpGY9KIr\",placeholder:\"https://webforms.pipedrive.com/f/...\"},height:{type:ControlType.Number,title:\"Height\",defaultValue:600,min:100,max:2e3,step:10,displayStepper:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PipedriveForm\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PipedriveForm.map"],"mappings":"iLAGG,SAAwB,EAAc,CAAC,UAAQ,SAAO,SAAO,CAAC,IAAM,EAAaA,EAAO,KAAK,CAAgf,OAA/e,MAAc,CAAC,GAAG,CAAC,EAAa,SAAS,CAAC,EAAQ,OAAO,EAAa,QAAQ,UAAU,GAAG,IAAM,EAAQ,SAAS,cAAc,MAAM,CAAC,EAAQ,UAAU,oBAAoB,EAAQ,aAAa,mBAAmB,EAAQ,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAA8I,MAA7I,GAAO,IAAI,0CAA0C,EAAO,MAAM,GAAK,EAAQ,YAAY,EAAO,CAAC,EAAa,QAAQ,YAAY,EAAQ,KAAW,CAAI,EAAa,UAAS,EAAa,QAAQ,UAAU,MAAQ,CAAC,EAAQ,CAAC,CAAqB,EAAK,MAAM,CAAC,IAAI,EAAa,MAAM,CAAC,MAAM,OAAc,SAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,aAAa,GAAG,EAAM,CAAC,CAAC,kBAHlsB,IAAoD,IAAoC,CAG4mB,EAAoB,EAAc,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,aAAa,sGAAsG,YAAY,uCAAuC,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,GAAG,eAAe,GAAK,CAAC,CAAC"}