{"version":3,"file":"FormSpark.B5ET3tCe.mjs","names":["useState","useRef","FormSpark","useState","useMemo","useCallback"],"sources":["https:/framer.com/m/framer/default-utils.js","https:/framerusercontent.com/modules/o1PI5S8YtkA5bP5g4dFz/9zLIz4fn80IR9zpOx18Q/Embed.js","https:/framerusercontent.com/modules/vkHAj2Yk0mTnbM6ZdN5c/Foxm7T4YpJpvPgDlEus0/FormSpark.js"],"sourcesContent":["import{defaultEvents,localeOptions,fontControls,fontSizeOptions,emptyStateStyle,containerStyles,fontStack}from\"https://framerusercontent.com/modules/VTUDdizacRHpwbkOamr7/AykinQJbgwl92LvMGZwu/constants.js\";import{useOnEnter,useOnExit}from\"https://framerusercontent.com/modules/D4TWeLfcxT6Tysr2BlYg/iZjmqdxVx1EOiM3k1FaW/useOnNavigationTargetChange.js\";import{useConstant}from\"https://framerusercontent.com/modules/ExNgrA7EJTKUPpH6vIlN/eiOrSJ2Ab5M9jPCvVwUz/useConstant.js\";import{colorTokentoValue,colorFromToken}from\"https://framerusercontent.com/modules/D2Lz5CmnNVPZFFiZXalt/QaCzPbriZBfXWZIIycFI/colorFromToken.js\";import{isMotionValue}from\"https://framerusercontent.com/modules/3mKFSGQqKHV82uOV1eBc/5fbRLvOpxZC0JOXugvwm/isMotionValue.js\";import{useUniqueClassName,randomID}from\"https://framerusercontent.com/modules/xDiQsqBGXzmMsv7AlEVy/uhunpMiNsbXxzjlXsg1y/useUniqueClassName.js\";import{getVariantControls}from\"https://framerusercontent.com/modules/ETACN5BJyFTSo0VVDJfu/NHRqowOiXkF9UwOzczF7/variantUtils.js\";import{useIsBrowserSafari}from\"https://framerusercontent.com/modules/eMBrwoqQK7h6mEeGQUH8/GuplvPJVjmxpk9zqOTcb/isBrowser.js\";import{useMultiOnChange,useOnChange}from\"https://framerusercontent.com/modules/v9AWX2URmiYsHf7GbctE/XxKAZ9KlhWqf5x1JMyyF/useOnChange.js\";import{mstoMinAndSec,secondsToMinutes}from\"https://framerusercontent.com/modules/4zHZnO5JojN1PrIbu2jm/revv9QCWpkh8lPzi2jje/time.js\";import{useAutoMotionValue}from\"https://framerusercontent.com/modules/kNDwabfjDEb3vUxkQlZS/fSIr3AOAYbGlfSPgXpYu/useAutoMotionValue.js\";import{useFontControls}from\"https://framerusercontent.com/modules/cuQH4dmpDnV8YK1mSgQX/KqRXqunFjE6ufhpc7ZRu/useFontControls.js\";import{useRenderTarget,useIsInPreview,useIsOnCanvas}from\"https://framerusercontent.com/modules/afBE9Yx1W6bY5q32qPxe/m3q7puE2tbo1S2C0s0CT/useRenderTarget.js\";import{useControlledState}from\"https://framerusercontent.com/modules/zGkoP8tPDCkoBzMdt5uq/0zFSjxIYliHxrQQnryFX/useControlledState.js\";import{usePadding,useRadius,paddingControl,borderRadiusControl}from\"https://framerusercontent.com/modules/5SM58HxZHxjjv7aLMOgQ/WXz9i6mVki0bBCrKdqB3/propUtils.js\";import{detectAutoSizingAxis}from\"https://framerusercontent.com/modules/8CkHAZatUz1UR8jNTcfD/HwbnIAZlUmQ2oTpcLkaH/detectAutoSizingAxis.js\";export{useOnEnter,useOnExit,defaultEvents,isMotionValue,colorFromToken,colorTokentoValue,localeOptions,fontControls,fontSizeOptions,emptyStateStyle,containerStyles,fontStack,useUniqueClassName,getVariantControls,useIsBrowserSafari,randomID,useConstant,useMultiOnChange,useOnChange,usePadding,useRadius,paddingControl,borderRadiusControl,mstoMinAndSec,useFontControls,secondsToMinutes,useAutoMotionValue,useRenderTarget,useIsInPreview,useControlledState,detectAutoSizingAxis,useIsOnCanvas,};\nexport const __FramerMetadata__ = {\"exports\":{\"useConstant\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isMotionValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultEvents\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useUniqueClassName\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useMultiOnChange\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnChange\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsOnCanvas\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnExit\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontSizeOptions\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"colorTokentoValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRadius\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getVariantControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"colorFromToken\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"usePadding\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontStack\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useControlledState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useFontControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useAutoMotionValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"emptyStateStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsInPreview\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsBrowserSafari\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"detectAutoSizingAxis\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"borderRadiusControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"mstoMinAndSec\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomID\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"localeOptions\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnEnter\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"secondsToMinutes\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRenderTarget\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"paddingControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{useIsOnCanvas,emptyStateStyle,containerStyles}from\"https://framer.com/m/framer/default-utils.js\";/**\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n *\n * @framerDisableUnlink\n */ export default function Embed({type,url,html}){if(type===\"url\"&&url){return /*#__PURE__*/ _jsx(EmbedURL,{url:url});}if(type===\"html\"&&html){return /*#__PURE__*/ _jsx(EmbedHTML,{html:html});}return /*#__PURE__*/ _jsx(Instructions,{});};addPropertyControls(Embed,{type:{type:ControlType.Enum,defaultValue:\"url\",displaySegmentedControl:true,options:[\"url\",\"html\"],optionTitles:[\"URL\",\"HTML\"]},url:{title:\"URL\",type:ControlType.String,description:\"Some websites don’t support embedding.\",hidden(props){return props.type!==\"url\";}},html:{title:\"HTML\",displayTextArea:true,type:ControlType.String,hidden(props){return props.type!==\"html\";}}});function Instructions(){return /*#__PURE__*/ _jsx(\"div\",{style:{...emptyStateStyle,overflow:\"hidden\"},children:/*#__PURE__*/ _jsx(\"div\",{style:centerTextStyle,children:\"To embed a website or widget, add it to the properties\\xa0panel.\"})});}function EmbedURL({url}){// Add https:// if the URL does not have a protocol.\nif(!/[a-z]+:\\/\\//.test(url)){url=\"https://\"+url;}const onCanvas=useIsOnCanvas();// We need to check if the url is blocked inside an iframe by the X-Frame-Options\n// or Content-Security-Policy headers on the backend.\nconst[state,setState]=useState(onCanvas?undefined:false);useEffect(()=>{// We only want to check on the canvas.\n// On the website we want to avoid the additional delay.\nif(!onCanvas)return;// TODO: We could also use AbortController here.\nlet isLastEffect=true;setState(undefined);async function load(){const response=await fetch(\"https://api.framer.com/functions/check-iframe-url?url=\"+encodeURIComponent(url));if(response.status==200){const{isBlocked}=await response.json();if(isLastEffect){setState(isBlocked);}}else{const message=await response.text();console.error(message);const error=new Error(\"This site can’t be reached.\");setState(error);}}load().catch(error=>{console.error(error);setState(error);});return()=>{isLastEffect=false;};},[url]);if(!url.startsWith(\"https://\")){return /*#__PURE__*/ _jsx(ErrorMessage,{message:\"Unsupported protocol.\"});}if(state===undefined){return /*#__PURE__*/ _jsx(LoadingIndicator,{});}if(state instanceof Error){return /*#__PURE__*/ _jsx(ErrorMessage,{message:state.message});}if(state===true){const message=`Can't embed ${url} due to its content security policy.`;return /*#__PURE__*/ _jsx(ErrorMessage,{message:message});}return /*#__PURE__*/ _jsx(\"iframe\",{src:url,style:iframeStyle,loading:\"lazy\",// @ts-ignore\nfetchPriority:onCanvas?\"low\":\"auto\",referrerPolicy:\"no-referrer\",sandbox:getSandbox(onCanvas)});}const iframeStyle={width:\"100%\",height:\"100%\",border:\"none\"};function getSandbox(onCanvas){const result=[\"allow-same-origin\",\"allow-scripts\"];if(!onCanvas){result.push(\"allow-downloads\",\"allow-forms\",\"allow-modals\",\"allow-orientation-lock\",\"allow-pointer-lock\",\"allow-popups\",\"allow-popups-to-escape-sandbox\",\"allow-presentation\",\"allow-storage-access-by-user-activation\",\"allow-top-navigation-by-user-activation\");}return result.join(\" \");}function EmbedHTML({html}){const ref=useRef();// If the HTML contains a script tag we can't use\n// dangerouslySetInnerHTML because it doesn't execute\n// scripts on the client. Otherwise, we can benefit\n// from SSG by using dangerouslySetInnerHTML.\nconst hasScript=html.includes(\"</script>\");useEffect(()=>{if(!hasScript)return;const div=ref.current;div.innerHTML=html;executeScripts(div);return()=>{div.innerHTML=\"\";};},[html,hasScript]);return /*#__PURE__*/ _jsx(\"div\",{ref:ref,style:htmlStyle,dangerouslySetInnerHTML:!hasScript?{__html:html}:undefined});}const htmlStyle={width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\"};// This function replaces scripts with executable ones.\n// https://stackoverflow.com/questions/1197575/can-scripts-be-inserted-with-innerhtml\nfunction executeScripts(node){if(node instanceof Element&&node.tagName===\"SCRIPT\"){const script=document.createElement(\"script\");script.text=node.innerHTML;for(const{name,value}of node.attributes){script.setAttribute(name,value);}node.parentElement.replaceChild(script,node);}else{for(const child of node.childNodes){executeScripts(child);}}}// Generic components\nfunction LoadingIndicator(){return /*#__PURE__*/ _jsx(\"div\",{className:\"framerInternalUI-componentPlaceholder\",style:{...containerStyles,overflow:\"hidden\"},children:/*#__PURE__*/ _jsx(\"div\",{style:centerTextStyle,children:\"Loading…\"})});}function ErrorMessage({message}){return /*#__PURE__*/ _jsx(\"div\",{className:\"framerInternalUI-errorPlaceholder\",style:{...containerStyles,overflow:\"hidden\"},children:/*#__PURE__*/ _jsxs(\"div\",{style:centerTextStyle,children:[\"Error: \",message]})});}const centerTextStyle={textAlign:\"center\",minWidth:140};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Embed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerDisableUnlink\":\"\",\"framerIntrinsicWidth\":\"600\",\"framerIntrinsicHeight\":\"400\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Embed.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,withCSS}from\"framer\";import{motion}from\"framer-motion\";import{containerStyles,usePadding,useRadius,paddingControl,borderRadiusControl,fontControls,useFontControls}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";import{useCallback,useMemo,useState}from\"react\";const emailRegex=/^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;const validateEmail=email=>{return emailRegex.test(String(email).toLowerCase());};/**\n * FORMSPARK\n *\n * @framerIntrinsicWidth 550\n * @framerIntrinsicHeight 290\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ const FormSpark=withCSS(function FormSpark({formId,withName,nameField:name,withEmail,email,withMessage,message,layout,inputs,button,style,gap,onSubmit,...props}){const[nameValue,setName]=useState(name===null||name===void 0?void 0:name.value);const[emailValue,setEmail]=useState(email===null||email===void 0?void 0:email.value);const[messageValue,setMessage]=useState(message===null||message===void 0?void 0:message.value);const[isNameError,setNameError]=useState(false);const[isEmailError,setEmailError]=useState(false);const[isMessageError,setMessageError]=useState(false);const[isLoading,setLoading]=useState(false);const[isSuccess,setSuccess]=useState(false);const isCanvas=useMemo(()=>{return RenderTarget.current()===RenderTarget.canvas;},[]);const gridTemplateRows=useMemo(()=>{const rows=[];if(withName||withMessage){rows.push(\"max-content\");}if(withMessage){rows.push(\"1fr\");}return[...rows,\"max-content\"].join(\" \");},[withName,withEmail,withMessage]);const gridTemplateColumns=useMemo(()=>{const cols=[];if((withName&&!withEmail||withEmail&&!withName)&&!withMessage&&layout===\"horizontal\"){return\"1fr max-content\";}return\"1fr\";},[withName,withEmail,withMessage,layout]);const{fontFamily,fontSize,fontWeight}=useFontControls(props);const borderRadius=useRadius(props);const paddingValue=usePadding(props);const validateForm=useCallback(()=>{let error=false;setNameError(false);setEmailError(false);setMessageError(false);if(withName&&!nameValue){setNameError(true);error=true;}if(withEmail&&(!emailValue||!validateEmail(emailValue))){setEmailError(true);error=true;}if(withMessage&&!messageValue){setMessageError(true);error=true;}return error;},[validateEmail,withName,withEmail,withMessage,nameValue,emailValue,messageValue,]);const handleSubmit=useCallback(event=>{setLoading(true);event.preventDefault();if(validateForm()){setLoading(false);}else{const data=new FormData(event.target);const entries=Object.fromEntries(data.entries());fetch(`https://api.formspark.io/${formId}`,{method:\"POST\",headers:{\"Content-Type\":\"application/json\",Accept:\"application/json\"},body:JSON.stringify(entries)}).then(()=>{setSuccess(true);onSubmit();}).catch(()=>setLoading(false));}},[formId,onSubmit,validateForm]);const handleNameChange=useCallback(event=>{setNameError(false);setName(event.target.value);},[]);const handleEmailChange=useCallback(event=>{setEmailError(false);setEmail(event.target.value);},[]);const handleMessageChange=useCallback(event=>{setMessageError(false);setMessage(event.target.value);},[]);return /*#__PURE__*/ _jsx(motion.div,{style:{...style,...containerStyles,flexDirection:\"column\",\"--framer-formspark-placeholder-color\":inputs.placeholderColor},children:isSuccess?/*#__PURE__*/ _jsx(motion.div,{style:{height:\"60px\",width:\"60px\",background:button.fill,color:button.color,borderRadius:\"50%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"},initial:{scale:0},animate:{scale:1},transition:{duration:.3},children:/*#__PURE__*/ _jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"28\",height:\"28\",children:/*#__PURE__*/ _jsx(\"path\",{d:\"M 2 14 L 10 22 L 26 6\",fill:\"transparent\",strokeWidth:\"4\",stroke:\"currentColor\",strokeLinecap:\"round\"})})}):/*#__PURE__*/ _jsxs(\"form\",{style:{display:\"grid\",gridTemplateRows,gridTemplateColumns,gap,width:\"100%\",height:\"100%\"},onSubmit:handleSubmit,method:\"POST\",children:[(withName||withEmail)&&/*#__PURE__*/ _jsxs(\"div\",{style:{width:\"100%\",display:\"grid\",gridAutoFlow:layout===\"horizontal\"?\"column\":\"row\",gap},children:[withName&&/*#__PURE__*/ _jsx(\"input\",{className:\"framer-formspark-input\",type:\"text\",name:\"name\",placeholder:name.placeholder,value:isCanvas?name.value:nameValue,onChange:handleNameChange,style:{...defaultStyle,padding:paddingValue,borderRadius,fontFamily,fontWeight,fontSize,background:inputs.fill,color:inputs.color,boxShadow:`inset 0 0 0 1px ${isNameError?inputs.error:\"transparent\"}`}}),withEmail&&/*#__PURE__*/ _jsx(\"input\",{className:\"framer-formspark-input\",type:\"email\",name:\"email\",placeholder:email.placeholder,value:isCanvas?email.value:emailValue,onChange:handleEmailChange,style:{...defaultStyle,padding:paddingValue,borderRadius,fontFamily,fontWeight,fontSize,background:inputs.fill,color:inputs.color,boxShadow:`inset 0 0 0 1px ${isEmailError?inputs.error:\"transparent\"}`}})]}),withMessage&&/*#__PURE__*/ _jsx(\"textarea\",{className:\"framer-formspark-input\",placeholder:message.placeholder,name:\"message\",value:isCanvas?message.value:messageValue,onChange:handleMessageChange,style:{...defaultStyle,minHeight:0,padding:paddingValue,resize:\"vertical\",borderRadius,background:inputs.fill,fontFamily,fontWeight,fontSize,color:inputs.color,boxShadow:`inset 0 0 0 1px ${isMessageError?inputs.error:\"transparent\"}`}}),/*#__PURE__*/ _jsxs(\"div\",{children:[/*#__PURE__*/ _jsx(motion.input,{type:\"submit\",value:button.label,style:{...defaultStyle,borderRadius,padding:paddingValue,fontFamily,fontWeight:button.fontWeight,fontSize,background:button.fill,cursor:\"pointer\",color:button.color,zIndex:1},transition:{type:\"ease\",duration:.3},whileHover:{opacity:.8}}),isLoading&&/*#__PURE__*/ _jsx(\"div\",{style:{borderRadius,position:\"absolute\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",width:\"100%\",height:\"100%\",left:0,top:0,zIndex:2,color:button.color,background:button.fill},children:/*#__PURE__*/ _jsx(motion.div,{style:{height:16,width:16},initial:{rotate:0},animate:{rotate:360},transition:{duration:2,repeat:Infinity},children:/*#__PURE__*/ _jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"16\",height:\"16\",children:[/*#__PURE__*/ _jsx(\"path\",{d:\"M 8 0 C 3.582 0 0 3.582 0 8 C 0 12.419 3.582 16 8 16 C 12.418 16 16 12.419 16 8 C 15.999 3.582 12.418 0 8 0 Z M 8 14 C 4.687 14 2 11.314 2 8 C 2 4.687 4.687 2 8 2 C 11.314 2 14 4.687 14 8 C 14 11.314 11.314 14 8 14 Z\",fill:\"currentColor\",opacity:\"0.2\"}),/*#__PURE__*/ _jsx(\"path\",{d:\"M 8 0 C 12.418 0 15.999 3.582 16 8 C 16 8 16 9 15 9 C 14 9 14 8 14 8 C 14 4.687 11.314 2 8 2 C 4.687 2 2 4.687 2 8 C 2 8 2 9 1 9 C 0 9 0 8 0 8 C 0 3.582 3.582 0 8 0 Z\",fill:\"currentColor\"})]})})})]})]})});},[\".framer-formspark-input::placeholder { color: var(--framer-formspark-placeholder-color) !important; }\",]);FormSpark.defaultProps={fontSize:16,fontFamily:\"Inter\",fontWeight:400,padding:15,paddingTop:15,paddingBottom:15,paddingLeft:15,paddingRight:15,borderRadius:8,topLeftRadius:8,topRightRadius:8,bottomRightRadius:8,bottomLeftRadius:8,gap:15,nameField:{value:undefined,placeholder:\"Name\"},email:{value:undefined,placeholder:\"Email\"},message:{value:undefined,placeholder:\"Message\"},inputs:{fill:\"#EBEBEB\",color:\"#000\",placeholderColor:\"rgba(0, 0, 0, 0.5)\",error:\"#EE4444\"},layout:{fill:\"#EBEBEB\",color:\"#000\",placeholderColor:\"rgba(0, 0, 0, 0.5)\",error:\"#EE4444\"},button:{label:\"Sign Up\",fontWeight:600,fill:\"#000\",color:\"#FFF\"}};addPropertyControls(FormSpark,{formId:{title:\"ID\",placeholder:\"7PbPpGN3\",type:ControlType.String,description:\"Create a [FormSpark](https://formspark.io/) account, add a new form and copy its ID. [Learn more…](https://www.framer.com/sites/integrations/formspark/)\"},withName:{title:\"Name\",type:ControlType.Boolean,enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:true},nameField:{title:\" \",type:ControlType.Object,controls:{placeholder:{title:\"Placeholder\",type:ControlType.String,defaultValue:\"Name\"},value:{title:\"Value\",type:ControlType.String,defaultValue:\"\"}},hidden:props=>!props.withName},withEmail:{title:\"Email\",type:ControlType.Boolean,enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:true},email:{title:\" \",type:ControlType.Object,controls:{placeholder:{title:\"Placeholder\",type:ControlType.String,defaultValue:\"Email\"},value:{title:\"Value\",type:ControlType.String}},hidden:props=>!props.withEmail},withMessage:{title:\"Message\",type:ControlType.Boolean,enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:true},message:{title:\" \",type:ControlType.Object,controls:{placeholder:{title:\"Placeholder\",type:ControlType.String,defaultValue:\"Message\"},value:{title:\"Value\",type:ControlType.String}},hidden:props=>!props.withMessage},layout:{title:\"Layout\",type:ControlType.Enum,options:[\"horizontal\",\"vertical\"],displaySegmentedControl:true,defaultValue:\"horizontal\"},inputs:{title:\"Inputs\",type:ControlType.Object,controls:{fill:{title:\"Fill\",type:ControlType.Color,defaultValue:\"#EBEBEB\"},color:{title:\"Text\",type:ControlType.Color,defaultValue:\"#000\"},placeholderColor:{title:\"Placeholder\",type:ControlType.Color,defaultValue:\"rgba(0, 0, 0, 0.5)\"},error:{title:\"Error\",type:ControlType.Color,defaultValue:\"#EE4444\"}}},button:{title:\"Button\",type:ControlType.Object,controls:{label:{title:\"Label\",type:ControlType.String,defaultValue:\"Sign Up\"},fontWeight:{...fontControls.fontWeight,defaultValue:600},fill:{title:\"Fill\",type:ControlType.Color,defaultValue:\"#000\"},color:{title:\"Text\",type:ControlType.Color,defaultValue:\"#FFF\"}}},...fontControls,fontSize:{title:\"Font Size\",type:ControlType.Number,displayStepper:true,defaultValue:16},...paddingControl,...borderRadiusControl,gap:{title:\"Gap\",type:ControlType.Number,displayStepper:true,min:0},onSubmit:{type:ControlType.EventHandler}});const defaultStyle={WebkitAppearance:\"none\",display:\"inline-block\",width:\"100%\",lineHeight:\"1.4em\",outline:\"none\",border:\"none\"};export default FormSpark;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormSpark\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"290\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"550\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormSpark.map"],"mappings":"2kCCQI,SAAwB,EAAM,CAAC,OAAK,MAAI,OAAK,CAAC,CAAgJ,OAA5I,IAAO,OAAO,EAA0B,EAAK,EAAS,CAAK,MAAI,EAAM,IAAO,QAAQ,EAA2B,EAAK,EAAU,CAAM,OAAK,EAAwB,EAAK,EAAa,EAAE,CAAG,CAAmZ,SAAS,GAAc,CAAC,OAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAgB,SAAS,SAAS,CAAC,SAAuB,EAAK,MAAM,CAAC,MAAM,EAAgB,SAAS,mEAAmE,EAAE,CAAG,UAAS,EAAS,CAAC,MAAI,CAAC,CACr4B,cAAc,KAAK,KAAM,EAAI,WAAW,GAAK,IAAM,EAAS,IAE3D,CAAC,EAAM,EAAS,CAACG,EAAS,EAAS,IAAA,GAAU,IAG+c,GAHxc,MAAc,CAEvE,GAAG,CAAC,EAAS,OACb,IAAI,EAAa,GAAK,EAAS,IAAA,IAAW,eAAe,GAAM,CAAC,IAAM,EAAS,MAAM,MAAM,yDAAyD,mBAAmB,IAAM,GAAG,EAAS,QAAQ,IAAI,CAAC,GAAK,CAAC,YAAU,CAAC,MAAM,EAAS,OAAU,GAAc,EAAS,EAAa,KAAI,CAAC,IAAM,EAAQ,MAAM,EAAS,OAAO,QAAQ,MAAM,GAAS,IAAM,EAAU,MAAM,+BAA+B,EAAS,EAAQ,CAAC,CAA6D,WAAtD,MAAM,GAAO,CAAC,QAAQ,MAAM,GAAO,EAAS,EAA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