{"version":3,"file":"FormSpark.BStt5LPf.mjs","names":["defaultEmptyStateStyle","useMemo","id","FormSpark","useState","useMemo","useCallback"],"sources":["https:/framerusercontent.com/modules/cuQH4dmpDnV8YK1mSgQX/tTLhbOFToDhKcwOVmn8E/useFontControls.js","https:/framerusercontent.com/modules/afBE9Yx1W6bY5q32qPxe/AAh30yXzt1DUsOi1YwUY/useRenderTarget.js","https:/framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/Pk7RhKpPAlu4xr8tiZYq/index.js","https:/framer.com/m/framer/default-utils.js@^0.43.0","https:/framerusercontent.com/modules/ZORE1BBUY4n4vHC0WFDH/bnwaYkSw2e4q5eLH4jPK/styles.js","https:/framer.com/m/framer/integrations-styles.js@0.2.0","https:/framerusercontent.com/modules/HGu8PKPDwAHu4uSgLoYR/8ScWawSL1gtbsgAxdHrd/Instagram.js","https:/framerusercontent.com/modules/HvIG38Eb8Zt2XbxFFCsL/6t1ItwIO5is5xCZIAdjf/FormSpark.js"],"sourcesContent":["// @ts-ignore\nimport { fontStore } from \"framer\";\nimport { useEffect } from \"react\";\n// @ts-ignore\nimport { fontStack } from \"https://framerusercontent.com/modules/VTUDdizacRHpwbkOamr7/AykinQJbgwl92LvMGZwu/constants.js\";\nconst fontWeights = {\n    100: \"Thin\",\n    200: \"Extra-light\",\n    300: \"Light\",\n    400: \"Regular\",\n    500: \"Medium\",\n    600: \"Semi-bold\",\n    700: \"Bold\",\n    800: \"Extra-bold\",\n    900: \"Black\"\n};\nexport function useFontControls(props) {\n    const { fontFamily , fontSize , fontWeight , font  } = props;\n    const fontWeightName = fontWeights[fontWeight];\n    const customFontStack = `\"${fontFamily} ${fontWeightName}\", \"${fontFamily}\", ${fontStack}`;\n    const fontFamilyStyle = fontFamily ? {\n        fontSize,\n        fontWeight,\n        fontFamily: customFontStack\n    } : {\n        fontSize,\n        fontWeight\n    };\n    const fetchCustomFonts = async ()=>{\n        await fontStore.loadWebFontsFromSelectors([\n            `CUSTOM;${fontFamily}`,\n            `CUSTOM;${fontFamily} ${fontWeightName}`,\n            `GF;${fontFamily}-${fontWeightName.toLowerCase()}`, \n        ]).catch((e)=>console.error(e)\n        );\n    };\n    useEffect(()=>{\n        if (font) fetchCustomFonts();\n    }, [\n        font,\n        fontFamily,\n        fontWeight\n    ]);\n    return fontFamilyStyle;\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useFontControls\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useFontControls.map","import { useMemo } from \"react\";\nimport { RenderTarget } from \"framer\";\nexport function useRenderTarget() {\n    const currentRenderTarget = useMemo(()=>RenderTarget.current()\n    , []);\n    return currentRenderTarget;\n}\nexport function useIsInPreview() {\n    const inPreview = useMemo(()=>RenderTarget.current() === RenderTarget.preview\n    , []);\n    return inPreview;\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useIsInPreview\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRenderTarget\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useRenderTarget.map","import { defaultEvents, localeOptions, fontControls, fontSizeOptions, emptyStateStyle, containerStyles, fontStack } from \"https://framerusercontent.com/modules/VTUDdizacRHpwbkOamr7/AykinQJbgwl92LvMGZwu/constants.js\";\nimport { useOnEnter, useOnExit } from \"https://framerusercontent.com/modules/D4TWeLfcxT6Tysr2BlYg/iZjmqdxVx1EOiM3k1FaW/useOnNavigationTargetChange.js\";\nimport { useConstant } from \"https://framerusercontent.com/modules/ExNgrA7EJTKUPpH6vIlN/eiOrSJ2Ab5M9jPCvVwUz/useConstant.js\";\nimport { colorTokentoValue, colorFromToken } from \"https://framerusercontent.com/modules/D2Lz5CmnNVPZFFiZXalt/QaCzPbriZBfXWZIIycFI/colorFromToken.js\";\nimport { isMotionValue } from \"https://framerusercontent.com/modules/3mKFSGQqKHV82uOV1eBc/5fbRLvOpxZC0JOXugvwm/isMotionValue.js\";\nimport { useUniqueClassName, randomID } from \"https://framerusercontent.com/modules/xDiQsqBGXzmMsv7AlEVy/uhunpMiNsbXxzjlXsg1y/useUniqueClassName.js\";\nimport { getVariantControls } from \"https://framerusercontent.com/modules/ETACN5BJyFTSo0VVDJfu/NHRqowOiXkF9UwOzczF7/variantUtils.js\";\nimport { useIsBrowserSafari } from \"https://framerusercontent.com/modules/eMBrwoqQK7h6mEeGQUH8/GuplvPJVjmxpk9zqOTcb/isBrowser.js\";\nimport { useMultiOnChange, useOnChange } from \"https://framerusercontent.com/modules/v9AWX2URmiYsHf7GbctE/XxKAZ9KlhWqf5x1JMyyF/useOnChange.js\";\nimport { mstoMinAndSec, secondsToMinutes } from \"https://framerusercontent.com/modules/4zHZnO5JojN1PrIbu2jm/revv9QCWpkh8lPzi2jje/time.js\";\nimport { useAutoMotionValue } from \"https://framerusercontent.com/modules/kNDwabfjDEb3vUxkQlZS/fSIr3AOAYbGlfSPgXpYu/useAutoMotionValue.js\";\nimport { useFontControls } from \"https://framerusercontent.com/modules/cuQH4dmpDnV8YK1mSgQX/tTLhbOFToDhKcwOVmn8E/useFontControls.js\";\nimport { useRenderTarget, useIsInPreview } from \"https://framerusercontent.com/modules/afBE9Yx1W6bY5q32qPxe/AAh30yXzt1DUsOi1YwUY/useRenderTarget.js\";\nimport { useControlledState } from \"https://framerusercontent.com/modules/zGkoP8tPDCkoBzMdt5uq/0zFSjxIYliHxrQQnryFX/useControlledState.js\";\nimport { usePadding, useRadius, paddingControl, borderRadiusControl } from \"https://framerusercontent.com/modules/5SM58HxZHxjjv7aLMOgQ/WXz9i6mVki0bBCrKdqB3/propUtils.js\";\nimport { detectAutoSizingAxis } from \"https://framerusercontent.com/modules/8CkHAZatUz1UR8jNTcfD/HwbnIAZlUmQ2oTpcLkaH/detectAutoSizingAxis.js\";\nexport { 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,  };\n\nexport const __FramerMetadata__ = {\"exports\":{\"fontControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"mstoMinAndSec\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"colorTokentoValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useFontControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useUniqueClassName\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"paddingControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"localeOptions\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontStack\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"detectAutoSizingAxis\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRenderTarget\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnEnter\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"emptyStateStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsBrowserSafari\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getVariantControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useAutoMotionValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomID\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnExit\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsInPreview\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRadius\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"usePadding\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useMultiOnChange\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontSizeOptions\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultEvents\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useConstant\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isMotionValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnChange\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useControlledState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"borderRadiusControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"colorFromToken\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"secondsToMinutes\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}","/*\n * index (framer/default-utils@0.43.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/Pk7RhKpPAlu4xr8tiZYq/index.js\"\n","import{containerStyles,emptyStateStyle as defaultEmptyStateStyle}from\"https://framer.com/m/framer/default-utils.js@^0.43.0\";export const emptyStateStyle={...containerStyles,...defaultEmptyStateStyle,textAlign:\"center\",padding:15,width:200,height:100,overflow:\"hidden\"};export const neutralStateStyle={...emptyStateStyle,color:\"#09f\",background:\"rgb(0, 153, 255, 0.1)\",borderColor:\"#09f\"};export const stateTitleStyle={fontSize:12,fontWeight:600,margin:0};export const stateParagraphStyle={fontSize:12,maxWidth:200,lineHeight:1.4,margin:\"5px 0 0 0\"};\nexport const __FramerMetadata__ = {\"exports\":{\"neutralStateStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"stateTitleStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"emptyStateStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"stateParagraphStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./styles.map","/*\n * styles (framer/integrations-styles@0.2.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/ZORE1BBUY4n4vHC0WFDH/bnwaYkSw2e4q5eLH4jPK/styles.js\"\n","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import{containerStyles}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";import{emptyStateStyle,stateParagraphStyle,stateTitleStyle}from\"https://framer.com/m/framer/integrations-styles.js@0.2.0\";const instagramRegex=/^https?:\\/\\/www\\.instagram\\.com\\/p\\/([^\\/]+)/;/**\n * INSTAGRAM\n *\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 410\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ export default function Instagram({url,style,...props}){const id=useMemo(()=>{var ref;const[,id]=(ref=url.match(instagramRegex))!==null&&ref!==void 0?ref:[null,null];return id;},[url]);return url&&id?/*#__PURE__*/ _jsx(motion.iframe,{style:{...containerStyles,...style},src:`https://www.instagram.com/p/${id}/embed/`,frameBorder:0,width:\"100%\",height:\"100%\",scrolling:\"no\",...props}):/*#__PURE__*/ _jsxs(motion.div,{style:{...emptyStateStyle,...style},...props,children:[/*#__PURE__*/ _jsx(\"h1\",{style:stateTitleStyle,children:\"Instagram\"}),url?/*#__PURE__*/ _jsx(\"p\",{style:stateParagraphStyle,children:\"This post URL doesn’t seem correct.\"}):/*#__PURE__*/ _jsx(\"p\",{style:stateParagraphStyle,children:\"Set a post URL in the Properties.\"})]});};addPropertyControls(Instagram,{url:{title:\"URL\",type:ControlType.String,placeholder:\"https://www.instagram.com/p/***\",defaultValue:\"https://www.instagram.com/p/CteMsH8M67r/\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Instagram\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"410\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Instagram.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?.value);const[emailValue,setEmail]=useState(email?.value);const[messageValue,setMessage]=useState(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://submit-form.com/${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\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"550\",\"framerIntrinsicHeight\":\"290\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormSpark.map"],"mappings":"qcACmC,IACD,IAEuF,iBCJzF,IACM,iBCDkL,IACjE,IAC1B,IACyB,IACrB,IACoB,IAChB,IACH,IACa,IAEJ,IACN,IACgB,IACV,IAC+B,wCEd9C,CAAa,EAAgB,CAAC,GAAG,EAAgB,GAAGA,EAAuB,UAAU,SAAS,QAAQ,GAAG,MAAM,IAAI,OAAO,IAAI,SAAS,SAAS,CAAoD,CAAnB,GAAG,EAAsB,CAA2E,EAAgB,CAAC,SAAS,GAAG,WAAW,IAAI,OAAO,EAAE,CAAc,EAAoB,CAAC,SAAS,GAAG,SAAS,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