{"version":3,"file":"TimedLoader.DA2aGhQJ.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/aSyJvcoKapkztqVpKbIZ/xfNb11DOhxpT74R7KftV/Form_embed.js","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":"iMAEA,SAAwB,EAAa,EAAM,CAAC,IAAM,EAAaA,EAAO,KAAK,CACyB,OADxB,MAAc,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAAC,EAAO,IAAI,yCAAyC,EAAM,OAAO,KAAK,EAAO,KAAK,kBAAkB,EAAO,MAAM,GAAK,EAAO,aAAa,YAAY,OAAO,CAAC,EAAO,aAAa,qBAAqB,EAAM,aAAa,CAAC,EAAO,aAAa,mBAAmB,wCAAwC,EAAM,cAAc,EAAE,IAAI,CAAI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