{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/kK5MRu1ansIv8VOOFpZQ/SV2ObYOlLMLmPUdTfdnf/FilloutForm.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";function CustomPreloader(){return /*#__PURE__*/_jsxs(\"div\",{className:\"preloader\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"spinner\"}),/*#__PURE__*/_jsx(\"style\",{jsx:true,children:`\n                .preloader {\n                    position: absolute;\n                    top: 0;\n                    left: 0;\n                    right: 0;\n                    bottom: 0;\n                    display: flex;\n                    align-items: center;\n                    justify-content: center;\n                    background-color: rgba(255, 255, 255, 0.9);\n                    z-index: 1000;\n                }\n                .spinner {\n                    width: 40px;\n                    height: 40px;\n                    border: 4px solid rgba(0, 0, 0, 0.1);\n                    border-left-color: #000;\n                    border-radius: 50%;\n                    animation: spin 1s linear infinite;\n                }\n                @keyframes spin {\n                    0% { transform: rotate(0deg); }\n                    100% { transform: rotate(360deg); }\n                }\n            `})]});}// FilloutForm component\nfunction FilloutForm({formId,embedType,inheritParameters,dynamicResize,domain,style,...props}){const containerRef=useRef(null);const formDivRef=useRef(null);const scriptRef=useRef(null);const[loading,setLoading]=useState(true);useEffect(()=>{if(!containerRef.current)return;// Cleanup previous formDiv and script\nif(formDivRef.current){containerRef.current.removeChild(formDivRef.current);}if(scriptRef.current){document.body.removeChild(scriptRef.current);}// Create a div element for the Fillout form\nconst formDiv=document.createElement(\"div\");formDiv.style.width=\"100%\";formDiv.style.height=\"100%\";formDiv.style.overflow=\"visible\";formDiv.setAttribute(\"data-fillout-id\",formId);formDiv.setAttribute(\"data-fillout-embed-type\",embedType);if(inheritParameters){formDiv.setAttribute(\"data-fillout-inherit-parameters\",\"\");}if(dynamicResize){formDiv.setAttribute(\"data-fillout-dynamic-resize\",\"\");}if(domain){formDiv.setAttribute(\"data-fillout-domain\",domain);}formDivRef.current=formDiv;containerRef.current.appendChild(formDiv);// Load the Fillout script\nconst script=document.createElement(\"script\");script.src=\"https://server.fillout.com/embed/v1/\";script.async=true;script.onload=()=>{setLoading(false);console.log(\"Fillout script loaded\");};scriptRef.current=script;document.body.appendChild(script);// Cleanup script and div on unmount\nreturn()=>{if(containerRef.current&&formDivRef.current){containerRef.current.removeChild(formDivRef.current);}if(scriptRef.current){document.body.removeChild(scriptRef.current);}};},[formId,embedType,inheritParameters,dynamicResize,domain]);return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\"},...props,children:[loading&&/*#__PURE__*/_jsx(CustomPreloader,{}),/*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:\"100%\"}})]});}// Default property values\nFilloutForm.defaultProps={formId:\"5AbkEA4YQ1us\",embedType:\"standard\",inheritParameters:true,dynamicResize:true,domain:\"secure.paperworkflows.com\"};// Adding property controls for Framer\naddPropertyControls(FilloutForm,{formId:{type:ControlType.String,title:\"Form ID\",defaultValue:\"6Nj4RxncJJus\"},embedType:{type:ControlType.String,title:\"Embed Type\",defaultValue:\"standard\"},inheritParameters:{type:ControlType.Boolean,title:\"Inherit Parameters\",defaultValue:true},dynamicResize:{type:ControlType.Boolean,title:\"Dynamic Resize\",defaultValue:true},domain:{type:ControlType.String,title:\"Domain\",defaultValue:\"secure.paperworkflows.com\"}});export default FilloutForm;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FilloutForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FilloutForm.map"],
  "mappings": "qHAA0J,SAASA,GAAiB,CAAC,OAAoBC,EAAM,MAAM,CAAC,UAAU,YAAY,SAAS,CAAcC,EAAK,MAAM,CAAC,UAAU,SAAS,CAAC,EAAeA,EAAK,QAAQ,CAAC,IAAI,GAAK,SAAS;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AW,SAASF,EAAa,QAAQ,YAAYE,EAAW,OAAO,EAAMC,EAAU,SAAS,SAAS,KAAK,YAAYA,EAAU,OAAO,CAAG,CAAE,EAAE,CAACV,EAAOC,EAAUC,EAAkBC,EAAcC,CAAM,CAAC,EAAsBP,EAAM,MAAM,CAAC,MAAM,CAAC,GAAGQ,EAAM,SAAS,WAAW,MAAM,OAAO,OAAO,MAAM,EAAE,GAAGC,EAAM,SAAS,CAACK,GAAsBb,EAAKF,EAAgB,CAAC,CAAC,EAAeE,EAAK,MAAM,CAAC,IAAIS,EAAa,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CACteR,EAAY,aAAa,CAAC,OAAO,eAAe,UAAU,WAAW,kBAAkB,GAAK,cAAc,GAAK,OAAO,2BAA2B,EACjJkB,EAAoBlB,EAAY,CAAC,OAAO,CAAC,KAAKmB,EAAY,OAAO,MAAM,UAAU,aAAa,cAAc,EAAE,UAAU,CAAC,KAAKA,EAAY,OAAO,MAAM,aAAa,aAAa,UAAU,EAAE,kBAAkB,CAAC,KAAKA,EAAY,QAAQ,MAAM,qBAAqB,aAAa,EAAI,EAAE,cAAc,CAAC,KAAKA,EAAY,QAAQ,MAAM,iBAAiB,aAAa,EAAI,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,MAAM,SAAS,aAAa,2BAA2B,CAAC,CAAC,EAAE,IAAOC,EAAQpB",
  "names": ["CustomPreloader", "u", "p", "FilloutForm", "formId", "embedType", "inheritParameters", "dynamicResize", "domain", "style", "props", "containerRef", "pe", "formDivRef", "scriptRef", "loading", "setLoading", "ye", "ue", "formDiv", "script", "addPropertyControls", "ControlType", "FilloutForm_default"]
}
