{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/aSyJvcoKapkztqVpKbIZ/xfNb11DOhxpT74R7KftV/Form_embed.js", "ssg:https://framerusercontent.com/modules/6dtQmvbuvZKU1L1nq9EU/bYZeUautY9AQDvjBYmIX/TimedLoader.js"],
  "sourcesContent": ["// Imports\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Main Component\nexport default function Embed123Form(props){const containerRef=useRef(null);useEffect(()=>{const script=document.createElement(\"script\");script.src=`https://form.123formbuilder.com/embed/${props.formId}.js`;script.type=\"text/javascript\";script.defer=true;script.setAttribute(\"data-role\",\"form\");script.setAttribute(\"data-default-width\",props.defaultWidth);script.setAttribute(\"data-custom-vars\",`hasEmbedFormStyle=1&hasTransparentBg=${props.transparentBg?1:0}`);if(containerRef.current){containerRef.current.innerHTML=\"\"// Clear previous form\n;containerRef.current.appendChild(script);}},[props.formId,props.defaultWidth,props.transparentBg]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:props.width,height:props.height,overflow:\"hidden\"}});}// Property Controls\naddPropertyControls(Embed123Form,{formId:{type:ControlType.String,title:\"Form ID\",defaultValue:\"5315581\"},defaultWidth:{type:ControlType.String,title:\"Form Width\",defaultValue:\"800px\"},transparentBg:{type:ControlType.Boolean,title:\"Transparent BG\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Embed123Form\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Form_embed.map", "// TimedLoader that loads for a configurable duration and disappears\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * TimedLoader\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function TimedLoader(props){const{color,size,duration,style}=props;const[visible,setVisible]=useState(true);useEffect(()=>{const timer=setTimeout(()=>{startTransition(()=>setVisible(false));},duration);return()=>clearTimeout(timer);},[duration]);if(!visible)return null;return /*#__PURE__*/_jsxs(\"div\",{style:{width:size,height:size,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",...style},children:[/*#__PURE__*/_jsx(\"span\",{style:{width:size,height:size,border:`${size*.12}px solid #eee`,borderTop:`${size*.12}px solid ${color}`,borderRadius:\"50%\",animation:\"spin 1s linear infinite\",display:\"inline-block\"}}),/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes spin {\n                    0% { transform: rotate(0deg); }\n                    100% { transform: rotate(360deg); }\n                }\n            `})]});}addPropertyControls(TimedLoader,{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#0099FF\"},size:{type:ControlType.Number,title:\"Size\",defaultValue:48,min:16,max:200,step:1,unit:\"px\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:2e3,min:500,max:1e4,step:100,unit:\"ms\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TimedLoader\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TimedLoader.map"],
  "mappings": "qFAEe,SAARA,EAA8BC,EAAM,CAAC,IAAMC,EAAaC,EAAO,IAAI,EAAE,OAAAC,EAAU,IAAI,CAAC,IAAMC,EAAO,SAAS,cAAc,QAAQ,EAAEA,EAAO,IAAI,yCAAyCJ,EAAM,MAAM,MAAMI,EAAO,KAAK,kBAAkBA,EAAO,MAAM,GAAKA,EAAO,aAAa,YAAY,MAAM,EAAEA,EAAO,aAAa,qBAAqBJ,EAAM,YAAY,EAAEI,EAAO,aAAa,mBAAmB,wCAAwCJ,EAAM,cAAc,EAAE,CAAC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CAAC,CAAC,EAL0Q,IAKxQ,CAACC,EAAoBb,EAAY,CAAC,MAAM,CAAC,KAAKc,EAAY,MAAM,MAAM,QAAQ,aAAa,SAAS,EAAE,KAAK,CAAC,KAAKA,EAAY,OAAO,MAAM,OAAO,aAAa,GAAG,IAAI,GAAG,IAAI,IAAI,KAAK,EAAE,KAAK,IAAI,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,MAAM,WAAW,aAAa,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,CAAC,CAAC",
  "names": ["Embed123Form", "props", "containerRef", "pe", "ue", "script", "p", "addPropertyControls", "ControlType", "TimedLoader", "props", "color", "size", "duration", "style", "visible", "setVisible", "ye", "ue", "timer", "Z", "p", "addPropertyControls", "ControlType"]
}
