{"version":3,"file":"BaseForm.CnC0PIMn.mjs","names":["useState","useCallback","__esmMin","init_npm_react_18_3_1","ne","_e","p","c","init_jsx_runtime","motion","useAnimationControls","init_framer_motion_DhsWWWsN","addPropertyControls","init_framer_DymZktPS","inferInitialRouteFromPath","useRouter","ControlType","withCSS","isExternalURL","url","hasMinMaxStep","FieldType","type","dynamicBoxShadow","shadows","output","shadow","requiredFlag","isRequired","VERSION","BaseForm","Spinner","defaultStyle","containerStyles","selectChevron","init_BaseForm","\"Text\"","\"Number\"","\"Email\"","\"Url\"","\"Tel\"","\"TextArea\"","\"Select\"","\"Checkbox\"","\"Radio\"","\"Time\"","\"Week\"","\"Month\"","\"Date\"","\"DateTimeLocal\"","\"Password\"","\"Hidden\"","isError","setError","isLoading","setLoading","getFocus","setFocus","labelPaddingPerSide","labelPaddingTop","labelPaddingRight","labelPaddingBottom","labelPaddingLeft","labelPadding","labelBorderRadius","labelBorderObject","labelShadowObject","styles","inputPaddingPerSide","inputPaddingTop","inputPaddingRight","inputPaddingBottom","inputPaddingLeft","inputPadding","inputBorderRadius","inputBorderObject","inputFocusObject","inputShadowObject","buttonPaddingPerSide","buttonPaddingTop","buttonPaddingRight","buttonPaddingBottom","buttonPaddingLeft","buttonPadding","buttonBorderRadius","buttonBorderObject","buttonShadowObject","labelPaddingValue","inputPaddingValue","buttonPaddingValue","router","onSuccess","redirectAs","link","path","hash","routeId","pathVariables","formControls","handleChange","handleFocus","input","handleBlur","handleSubmit","event","headers","extraHeaders","key","value","requestOptions","method","urlSearchParams","name","value1","queryString","contentType","formData","urlSearchParams1","name1","value2","\"body\"","bodyObject","name2","value3","statusCode","response","onSubmit","error","labelShadowStyles","labelBorderStyles","inputFocusStylesFrom","inputFocusStylesTo","inputShadowStyles","inputBorderStyles","buttonShadowStyles","buttonBorderStyles","formVariants","inputVariants","label","getInputSpan","getButtonSpan","inputs","sum","baseInput","textareaInput","optionsHMTL","options","option","selectInput","checkboxInput","radioInput","inputsHTML","inputElement","style","button","noButtonStyles","props"],"sources":["https:/framerusercontent.com/modules/jKosDr5OORwnt4ikb4Vz/67eMOm9YSvp2Jb2lUpQw/BaseForm.js"],"sourcesContent":["/*\nMIT License\nCopyright © Joel Whitaker\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nThe Software is provided \"as is\", without warranty of any kind, express or\nimplied, including but not limited to the warranties of merchantability,\nfitness for a particular purpose and noninfringement. In no event shall the\nauthors or copyright holders be liable for any claim, damages or other\nliability, whether in an action of contract, tort or otherwise, arising from,\nout of or in connection with the Software or the use or other dealings in the\nSoftware.\n*/ import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useCallback,useState}from\"react\";import{addPropertyControls,ControlType,withCSS,useRouter,inferInitialRouteFromPath}from\"framer\";import{motion,useAnimationControls}from\"framer-motion\";var FieldType;(function(FieldType){FieldType[\"Text\"]=\"text\";FieldType[\"Number\"]=\"number\";FieldType[\"Email\"]=\"email\";FieldType[\"Url\"]=\"url\";FieldType[\"Tel\"]=\"tel\";FieldType[\"TextArea\"]=\"textarea\";FieldType[\"Select\"]=\"select\";FieldType[\"Checkbox\"]=\"checkbox\";FieldType[\"Radio\"]=\"radio\";FieldType[\"Time\"]=\"time\";FieldType[\"Week\"]=\"week\";FieldType[\"Month\"]=\"month\";FieldType[\"Date\"]=\"date\";FieldType[\"DateTimeLocal\"]=\"datetime-local\";FieldType[\"Password\"]=\"password\";FieldType[\"Hidden\"]=\"hidden\";})(FieldType||(FieldType={}));function isExternalURL(url){try{return!!new URL(url);}catch{}try{return!!new URL(`https://${url}`);}catch{}return false;}function hasMinMaxStep(type){return[FieldType.Time,FieldType.Week,FieldType.Number,FieldType.Date,FieldType.DateTimeLocal,].includes(type);}/**\n * Increment the number whenever shipping a new version to customers.\n * This will ensure that multiple versions of this component can exist\n * in the same project without css rules overlapping. Only use valid css class characters.\n */ const VERSION=\"v1\";/**\n * BASEFORM\n * By Joel Whitaker (Alphi.dev)\n * Based on INPUT by Benjamin den Boer\n *\n * @framerDisableUnlink\n *\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 40\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any\n */ const BaseForm=withCSS(function BaseForm({url,method,contentType,redirectAs,link,inputs,button,styles,extraHeaders,style,onSubmit}){const[isError,setError]=useState(false);const[isLoading,setLoading]=useState(false);const[getFocus,setFocus]=useState(null);const{paddingPerSide:labelPaddingPerSide,paddingTop:labelPaddingTop,paddingRight:labelPaddingRight,paddingBottom:labelPaddingBottom,paddingLeft:labelPaddingLeft,padding:labelPadding,borderRadius:labelBorderRadius,borderObject:labelBorderObject,shadowObject:labelShadowObject}=styles.label;const{paddingPerSide:inputPaddingPerSide,paddingTop:inputPaddingTop,paddingRight:inputPaddingRight,paddingBottom:inputPaddingBottom,paddingLeft:inputPaddingLeft,padding:inputPadding,borderRadius:inputBorderRadius,borderObject:inputBorderObject,focusObject:inputFocusObject,shadowObject:inputShadowObject}=styles.input;const{paddingPerSide:buttonPaddingPerSide,paddingTop:buttonPaddingTop,paddingRight:buttonPaddingRight,paddingBottom:buttonPaddingBottom,paddingLeft:buttonPaddingLeft,padding:buttonPadding,borderRadius:buttonBorderRadius,borderObject:buttonBorderObject,shadowObject:buttonShadowObject}=styles.button;const labelPaddingValue=labelPaddingPerSide?`${labelPaddingTop}px ${labelPaddingRight}px ${labelPaddingBottom}px ${labelPaddingLeft}px`:`${labelPadding}px ${labelPadding}px ${labelPadding}px ${labelPadding}px`;const inputPaddingValue=inputPaddingPerSide?`${inputPaddingTop}px ${inputPaddingRight}px ${inputPaddingBottom}px ${inputPaddingLeft}px`:`${inputPadding}px ${inputPadding}px ${inputPadding}px ${inputPadding}px`;const buttonPaddingValue=buttonPaddingPerSide?`${buttonPaddingTop}px ${buttonPaddingRight}px ${buttonPaddingBottom}px ${buttonPaddingLeft}px`:`${buttonPadding}px ${buttonPadding}px ${buttonPadding}px ${buttonPadding}px`;const router=useRouter();const onSuccess=()=>{/* Reset */ setLoading(false);setFocus(null);if(redirectAs===\"link\"&&link&&!isError){const[path,hash]=link.split(\"#\");const{routeId,pathVariables}=inferInitialRouteFromPath(router.routes,path);if(routeId){router.navigate(routeId,hash,pathVariables);}if(isExternalURL(link)){setError(true);formControls.start(\"error\");return false;}}return;};const handleChange=useCallback(event=>{setError(false);},[]);const handleFocus=useCallback((event,input)=>{setFocus(input.name);},[]);const handleBlur=useCallback(event=>{setFocus(null);setError(false);},[]);const handleSubmit=useCallback(event=>{event.preventDefault();// Prevent submitting while submitting\nif(isLoading)return;setLoading(true);setError(false);const headers=new Headers;if(extraHeaders){for(const[key,value]of Object.entries(extraHeaders)){headers.append(key,value);}}let requestOptions={method:method,headers:headers};if(method===\"get\"){// Add form fields to URL for GET requests\nconst urlSearchParams=new URLSearchParams;for(const[name,value1]of new FormData(event.target)){urlSearchParams.append(name,value1.toString());}const queryString=urlSearchParams.toString();url+=queryString?`?${queryString}`:\"\";}else{headers.append(\"Content-Type\",contentType);if(contentType===\"application/json\"){headers.append(\"accept\",\"application/json\");}const formData=new FormData(event.target);if(contentType===\"application/x-www-form-urlencoded\"){const urlSearchParams1=new URLSearchParams;for(const[name1,value2]of formData){urlSearchParams1.append(name1,value2.toString());}requestOptions[\"body\"]=urlSearchParams1.toString();}else if(contentType===\"application/json\"){const bodyObject={};for(const[name2,value3]of formData){bodyObject[name2]=value3;}requestOptions[\"body\"]=JSON.stringify(bodyObject);}}fetch(url,requestOptions).then(response=>{const statusCode=response.status;const contentType=response.headers.get(\"content-type\");if(contentType&&contentType.includes(\"application/json\")){return response.json().then(data=>({statusCode,data}));}else if(contentType&&contentType.includes(\"text/plain\")){return response.text().then(data=>({statusCode,data}));}else{throw new Error(\"Unsupported response type\");}}).then(({statusCode,data})=>{if(statusCode>=200&&statusCode<300){// Reset state\nsetLoading(false);event.target.reset();// Handle success\nonSuccess();if(redirectAs===\"overlay\")onSubmit===null||onSubmit===void 0?void 0:onSubmit();}else{// Handle errors\nlet errorMessage=\"An error occurred submitting the form\";throw new Error(errorMessage);}}).catch(error=>{console.error(error);setError(true);setLoading(false);formControls.start(\"error\");});},[onSubmit,isLoading]);// Animation\nconst formControls=useAnimationControls();// Label Box Shadow Styles\nconst labelShadowStyles=styles.label.shadowObject?`${labelShadowObject.shadowX}px ${labelShadowObject.shadowY}px ${labelShadowObject.shadowBlur}px ${labelShadowObject.shadowColor}`:null;const labelBorderStyles=styles.label.borderObject?`inset 0 0 0 ${labelBorderObject.borderWidth}px ${labelBorderObject.borderColor}`:null;// Input Box Shadow Styles\nconst inputFocusStylesFrom=styles.input.focusObject?`inset 0 0 0 ${inputFocusObject.focusWidthFrom}px ${inputFocusObject.focusColor}`:null;const inputFocusStylesTo=styles.input.focusObject?`inset 0 0 0 ${inputFocusObject.focusWidthTo}px ${inputFocusObject.focusColor}`:null;const inputShadowStyles=styles.input.shadowObject?`${inputShadowObject.shadowX}px ${inputShadowObject.shadowY}px ${inputShadowObject.shadowBlur}px ${inputShadowObject.shadowColor}`:null;const inputBorderStyles=styles.input.borderObject?`inset 0 0 0 ${inputBorderObject.borderWidth}px ${inputBorderObject.borderColor}`:null;// Button Box Shadow Styles\nconst buttonShadowStyles=styles.button.shadowObject?`${buttonShadowObject.shadowX}px ${buttonShadowObject.shadowY}px ${buttonShadowObject.shadowBlur}px ${buttonShadowObject.shadowColor}`:null;const buttonBorderStyles=styles.button.borderObject?`inset 0 0 0 ${buttonBorderObject.borderWidth}px ${buttonBorderObject.borderColor}`:null;// Shake or wiggle as error\nconst formVariants={default:{x:0},error:{x:[0,-4,4,0],transition:{duration:.2}}};const inputVariants={default:{boxShadow:dynamicBoxShadow(inputFocusStylesFrom,inputShadowStyles,inputBorderStyles)},focused:{boxShadow:dynamicBoxShadow(inputFocusStylesTo,inputShadowStyles,inputBorderStyles)}};const label=input=>{if(!input.label){return null;}return /*#__PURE__*/ _jsxs(\"label\",{htmlFor:input.name,style:{marginBottom:\"0.375rem\",alignSelf:\"flex-start\",padding:labelPaddingValue,borderRadius:labelBorderRadius,fontSize:16,...styles.label.font,background:styles.label.fill,color:styles.label.color,boxShadow:dynamicBoxShadow(labelShadowStyles,labelBorderStyles)},children:[input.label,requiredFlag(input.required)]});};const getInputSpan=input=>{return input.gridColumn>styles.form.columns?styles.form.columns:input.gridColumn;};const getButtonSpan=()=>{const totalSpan=inputs.reduce((sum,input)=>sum+Number(input.gridColumn),0);const shouldBeInline=totalSpan===styles.form.columns-1;return shouldBeInline?1:styles.form.columns;};const baseInput=input=>{return /*#__PURE__*/ _jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gridColumn:`span ${getInputSpan(input)}`},children:[label(input),/*#__PURE__*/ _jsx(motion.input,{name:input.name,type:input.type,defaultValue:input.value,placeholder:input.placeholder,className:`${VERSION} framer-custom-input`,onChange:handleChange,onFocus:event=>handleFocus(event,input),onBlur:handleBlur,autoComplete:\"off\",autoCapitalize:\"off\",autoCorrect:\"off\",spellCheck:\"false\",required:input.required,style:{...defaultStyle,padding:inputPaddingValue,borderRadius:inputBorderRadius,fontSize:16,...styles.input.font,background:styles.input.fill,color:styles.input.color,boxShadow:dynamicBoxShadow(inputFocusStylesFrom,inputShadowStyles,inputBorderStyles)},variants:inputVariants,initial:false,animate:getFocus===input.name?\"focused\":\"default\",transition:{duration:.3},min:input.min,max:input.max,step:input.step})]});};const textareaInput=input=>{return /*#__PURE__*/ _jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gridColumn:`span ${getInputSpan(input)}`},children:[label(input),/*#__PURE__*/ _jsx(motion.textarea,{name:input.name,defaultValue:input.value,placeholder:input.placeholder,className:`${VERSION} framer-custom-input`,onChange:handleChange,onFocus:event=>handleFocus(event,input),onBlur:handleBlur,autoComplete:\"off\",autoCapitalize:\"off\",autoCorrect:\"off\",spellCheck:\"false\",required:input.required,style:{...defaultStyle,padding:inputPaddingValue,borderRadius:inputBorderRadius,fontSize:16,...styles.input.font,background:styles.input.fill,color:styles.input.color,boxShadow:dynamicBoxShadow(inputFocusStylesFrom,inputShadowStyles,inputBorderStyles)},variants:inputVariants,initial:false,animate:getFocus===input.name?\"focused\":\"default\",transition:{duration:.3}})]});};const optionsHMTL=options=>{return options.map(option=>{return /*#__PURE__*/ _jsx(\"option\",{value:option.value,children:option.text});});};const selectInput=input=>{let options=[];if(input.placeholder){options.push({text:input.placeholder,value:\"\"});}options=options.concat(input.options);return /*#__PURE__*/ _jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gridColumn:`span ${getInputSpan(input)}`},children:[label(input),/*#__PURE__*/ _jsxs(\"div\",{style:{position:\"relative\",display:\"inline-block\"},children:[/*#__PURE__*/ _jsx(\"div\",{style:{...selectChevron,borderColor:`${styles.input.color} transparent transparent transparent`}}),/*#__PURE__*/ _jsx(motion.select,{name:input.name,placeholder:input.placeholder,className:`${VERSION} framer-custom-input`,onChange:handleChange,onFocus:event=>handleFocus(event,input),onBlur:handleBlur,autoComplete:\"off\",autoCapitalize:\"off\",autoCorrect:\"off\",spellCheck:\"false\",required:input.required,style:{...defaultStyle,padding:inputPaddingValue,borderRadius:inputBorderRadius,fontSize:16,...styles.input.font,background:styles.input.fill,color:styles.input.color,boxShadow:dynamicBoxShadow(inputFocusStylesFrom,inputShadowStyles,inputBorderStyles)},variants:inputVariants,initial:false,animate:getFocus===input.name?\"focused\":\"default\",transition:{duration:.3},disabled:isLoading,children:optionsHMTL(options)})]})]});};function checkboxInput(input){return /*#__PURE__*/ _jsx(\"div\",{style:{gridColumn:`span ${getInputSpan(input)}`},children:/*#__PURE__*/ _jsxs(\"label\",{style:{display:\"flex\",alignItems:\"center\",fontSize:16,...styles.label.font,background:styles.label.fill,color:styles.label.color},children:[/*#__PURE__*/ _jsx(motion.input,{name:input.name,type:\"checkbox\",value:input.value||\"on\",required:input.required,style:{margin:\"0px 8px 0px 4px\"}}),input.label]})});}function radioInput(input){return /*#__PURE__*/ _jsx(\"div\",{style:{gridColumn:`span ${getInputSpan(input)}`},children:/*#__PURE__*/ _jsxs(\"label\",{style:{display:\"flex\",alignItems:\"center\",fontSize:16,...styles.label.font,background:styles.label.fill,color:styles.label.color},children:[/*#__PURE__*/ _jsx(motion.input,{name:input.name,type:\"radio\",value:input.value||\"on\",required:input.required,style:{margin:\"0px 8px 0px 4px\"}}),input.label]})});}const inputsHTML=inputs.map(input=>{let inputElement=null;if(input.type===FieldType.Select){inputElement=selectInput(input);}else if(input.type===FieldType.TextArea){inputElement=textareaInput(input);}else if(input.type===FieldType.Checkbox){inputElement=checkboxInput(input);}else if(input.type===FieldType.Radio){inputElement=radioInput(input);}else{inputElement=baseInput(input);}return inputElement;});return /*#__PURE__*/ _jsx(motion.div,{style:{...style,...containerStyles,\"--framer-custom-placeholder-color\":styles.input.placeholderColor},variants:formVariants,animate:formControls,children:/*#__PURE__*/ _jsxs(\"form\",{style:{width:\"100%\",display:\"grid\",gridTemplateColumns:styles.form.columns>1&&getButtonSpan()===1?\"1fr auto\":`repeat(${styles.form.columns}, 1fr)`,gap:`${styles.form.rowGap}px ${styles.form.columnGap}px`,background:styles.form.fill},onSubmit:handleSubmit,method:\"POST\",children:[inputsHTML,/*#__PURE__*/ _jsxs(\"div\",{style:{display:\"flex\",gridColumn:`span ${getButtonSpan()}`},children:[!button.shouldAppear&&isLoading&&/*#__PURE__*/ _jsx(Spinner,{shouldAppear:button.shouldAppear,paddingPerSide:buttonPaddingPerSide,paddingTop:buttonPaddingTop,paddingRight:buttonPaddingRight,padding:buttonPadding,color:styles.input.color}),button.shouldAppear&&/*#__PURE__*/ _jsx(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"column\"},children:/*#__PURE__*/ _jsxs(\"div\",{style:{height:\"100%\",display:\"flex\",position:\"relative\",alignSelf:styles.button.align},children:[/*#__PURE__*/ _jsx(motion.input,{type:\"submit\",value:button.label,style:{...defaultStyle,width:\"100%\",height:\"100%\",cursor:\"pointer\",padding:buttonPaddingValue,borderRadius:buttonBorderRadius,fontWeight:styles.button.fontWeight,fontSize:16,...styles.button.font,background:styles.button.fill,color:styles.button.color,zIndex:1,boxShadow:dynamicBoxShadow(buttonShadowStyles,buttonBorderStyles)}}),isLoading&&/*#__PURE__*/ _jsx(\"div\",{style:{borderRadius:buttonBorderRadius,position:\"absolute\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",width:\"100%\",height:\"100%\",inset:0,zIndex:2,color:styles.button.color,background:styles.button.fill,boxShadow:dynamicBoxShadow(buttonShadowStyles,buttonBorderStyles)},children:/*#__PURE__*/ _jsx(Spinner,{color:styles.button.color})})]})})]})]})});},[`.${VERSION}.framer-custom-input::placeholder { color: var(--framer-custom-placeholder-color) !important; }`,]);const Spinner=props=>{const noButtonStyles=!props.shouldAppear?{position:\"absolute\",top:`calc(50% - 8px)`,right:props.inputPaddingPerSide?props.inputPaddingRight:props.inputPadding}:{};return /*#__PURE__*/ _jsx(motion.div,{style:{height:16,width:16,...noButtonStyles},initial:{rotate:0},animate:{rotate:360},transition:{duration:1,repeat:Infinity},children:/*#__PURE__*/ _jsx(motion.div,{initial:{scale:0},animate:{scale:1},children:/*#__PURE__*/ _jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"16\",height:\"16\",style:{fill:\"currentColor\",color:props.color},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\"})]})})});};addPropertyControls(BaseForm,{url:{title:\"Url\",type:ControlType.String},method:{type:ControlType.Enum,defaultValue:\"post\",options:[\"get\",\"post\",\"put\",\"patch\",\"delete\"],optionTitles:[\"Get\",\"Post\",\"Put\",\"Patch\",\"Delete\"]},contentType:{type:ControlType.Enum,defaultValue:\"application/json\",options:[\"application/json\",\"application/x-www-form-urlencoded\"],optionTitles:[\"json\",\"x-www-form-urlencoded\"],hidden:props=>props.method===\"get\"},inputs:{title:\"Inputs\",type:ControlType.Array,control:{type:ControlType.Object,controls:{label:{title:\"Label\",type:ControlType.String},name:{title:\"Name\",type:ControlType.String},placeholder:{title:\"Placeholder\",type:ControlType.String,hidden:props=>props.type===\"checkbox\"},type:{type:ControlType.Enum,options:Object.values(FieldType),optionTitles:Object.keys(FieldType)},options:{type:ControlType.Array,title:\"Options\",control:{type:ControlType.Object,title:\"Option\",controls:{text:{type:ControlType.String,title:\"Text\"},value:{type:ControlType.String,title:\"Value\"}}},hidden:props=>props.type!==\"select\"},min:{type:ControlType.String,hidden:props=>!hasMinMaxStep(props.type)},max:{type:ControlType.String,hidden:props=>!hasMinMaxStep(props.type)},step:{type:ControlType.Number,hidden:props=>!hasMinMaxStep(props.type)},value:{type:ControlType.String},required:{type:ControlType.Boolean},gridColumn:{title:\"Grid Col\",type:ControlType.Enum,defaultValue:1,displaySegmentedControl:true,segmentedControlDirection:\"horizontal\",options:[\"1\",\"2\",\"3\"],optionTitles:[\"1\",\"2\",\"3\"]}}}},button:{title:\"Button\",type:ControlType.Object,controls:{shouldAppear:{title:\"Show\",type:ControlType.Boolean,defaultValue:true},label:{title:\"Label\",type:ControlType.String,defaultValue:\"Submit\"}}},redirectAs:{title:\"Success\",type:ControlType.Enum,options:[\"link\",\"overlay\"],optionTitles:[\"Open Link\",\"Show Overlay\"],defaultValue:\"link\"},link:{title:\"Redirect\",type:ControlType.Link,hidden:props=>props.redirectAs===\"overlay\"},onSubmit:{title:\"Submit\",type:ControlType.EventHandler,hidden:props=>props.redirectAs===\"link\"},styles:{type:ControlType.Object,controls:{form:{type:ControlType.Object,controls:{fill:{title:\"Fill\",type:ControlType.Color,defaultValue:\"#fff\"},columns:{title:\"Columns\",type:ControlType.Enum,options:[\"1\",\"2\",\"3\"],displaySegmentedControl:true},rowGap:{title:\"Row gap\",type:ControlType.Number,displayStepper:true,min:0,defaultValue:8},columnGap:{title:\"Col Gap\",type:ControlType.Number,displayStepper:true,min:0,defaultValue:8}}},label:{type:ControlType.Object,controls:{font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},fill:{title:\"Fill\",type:ControlType.Color,defaultValue:\"transparent\"},color:{title:\"Text\",type:ControlType.Color,defaultValue:\"#000\"},padding:{title:\"Padding\",type:ControlType.FusedNumber,toggleKey:\"paddingPerSide\",toggleTitles:[\"Padding\",\"Padding per side\"],defaultValue:0,valueKeys:[\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\",],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0},borderRadius:{title:\"Radius\",type:ControlType.Number,displayStepper:true,min:0,defaultValue:8},borderObject:{type:ControlType.Object,title:\"Border\",optional:true,controls:{borderWidth:{title:\"Width\",type:ControlType.Number,displayStepper:true,defaultValue:1},borderColor:{title:\"Color\",type:ControlType.Color,defaultValue:\"rgba(200,200,200,0.5)\"}}},shadowObject:{type:ControlType.Object,title:\"Shadow\",optional:true,controls:{shadowColor:{title:\"Color\",type:ControlType.Color,defaultValue:\"rgba(0,0,0,0.25)\"},shadowX:{title:\"Shadow X\",type:ControlType.Number,min:-100,max:100,defaultValue:0},shadowY:{title:\"Shadow Y\",type:ControlType.Number,min:-100,max:100,defaultValue:2},shadowBlur:{title:\"Shadow B\",type:ControlType.Number,min:0,max:100,defaultValue:4}}}}},input:{type:ControlType.Object,controls:{font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},placeholderColor:{title:\"Placeholder\",type:ControlType.Color,defaultValue:\"rgba(0, 0, 0, 0.3)\"},fill:{title:\"Fill\",type:ControlType.Color,defaultValue:\"#EBEBEB\"},color:{title:\"Text\",type:ControlType.Color,defaultValue:\"#000\"},padding:{title:\"Padding\",type:ControlType.FusedNumber,toggleKey:\"paddingPerSide\",toggleTitles:[\"Padding\",\"Padding per side\"],defaultValue:12,valueKeys:[\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\",],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0},borderRadius:{title:\"Radius\",type:ControlType.Number,displayStepper:true,min:0,defaultValue:8},focusObject:{type:ControlType.Object,title:\"Focus\",optional:true,controls:{focusWidthFrom:{title:\"From\",type:ControlType.Number,displayStepper:true,defaultValue:0},focusWidthTo:{title:\"To\",type:ControlType.Number,displayStepper:true,defaultValue:2},focusColor:{title:\"Color\",type:ControlType.Color,defaultValue:\"#09F\"}}},borderObject:{type:ControlType.Object,title:\"Border\",optional:true,controls:{borderWidth:{title:\"Width\",type:ControlType.Number,displayStepper:true,defaultValue:1},borderColor:{title:\"Color\",type:ControlType.Color,defaultValue:\"rgba(200,200,200,0.5)\"}}},shadowObject:{type:ControlType.Object,title:\"Shadow\",optional:true,controls:{shadowColor:{title:\"Color\",type:ControlType.Color,defaultValue:\"rgba(0,0,0,0.25)\"},shadowX:{title:\"Shadow X\",type:ControlType.Number,min:-100,max:100,defaultValue:0},shadowY:{title:\"Shadow Y\",type:ControlType.Number,min:-100,max:100,defaultValue:2},shadowBlur:{title:\"Shadow B\",type:ControlType.Number,min:0,max:100,defaultValue:4}}}}},button:{type:ControlType.Object,controls:{font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},fill:{title:\"Fill\",type:ControlType.Color,defaultValue:\"#333\"},color:{title:\"Text\",type:ControlType.Color,defaultValue:\"#FFF\"},align:{title:\"Align\",type:ControlType.Enum,segmentedControlDirection:\"vertical\",options:[\"flex-start\",\"center\",\"flex-end\",\"stretch\",],optionTitles:[\"Start\",\"Center\",\"End\",\"Stretch\"],defaultValue:\"stretch\"},padding:{title:\"Padding\",type:ControlType.FusedNumber,toggleKey:\"paddingPerSide\",toggleTitles:[\"Padding\",\"Padding per side\"],defaultValue:15,valueKeys:[\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\",],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0},borderRadius:{title:\"Radius\",type:ControlType.Number,displayStepper:true,min:0,defaultValue:8},borderObject:{type:ControlType.Object,title:\"Border\",optional:true,controls:{borderWidth:{title:\"Width\",type:ControlType.Number,displayStepper:true,defaultValue:1},borderColor:{title:\"Color\",type:ControlType.Color,defaultValue:\"rgba(200,200,200,0.5)\"}}},shadowObject:{type:ControlType.Object,title:\"Shadow\",optional:true,controls:{shadowColor:{title:\"Color\",type:ControlType.Color,defaultValue:\"rgba(0,0,0,0.25)\"},shadowX:{title:\"Shadow X\",type:ControlType.Number,min:-100,max:100,defaultValue:0},shadowY:{title:\"Shadow Y\",type:ControlType.Number,min:-100,max:100,defaultValue:2},shadowBlur:{title:\"Shadow B\",type:ControlType.Number,min:0,max:100,defaultValue:4}}}}}}}});const defaultStyle={WebkitAppearance:\"none\",width:\"100%\",height:\"auto\",outline:\"none\",border:\"none\"};const containerStyles={position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"};const selectChevron={position:\"absolute\",top:\"50%\",right:\"12px\",transform:\"translateY(-50%)\",width:\"0\",height:\"0\",borderStyle:\"solid\",borderWidth:\"5px 5px 0 5px\",pointerEvents:\"none\"};function dynamicBoxShadow(...shadows){const output=[];shadows.forEach(shadow=>shadow&&output.push(shadow));return output.join(\", \");}function requiredFlag(isRequired){if(isRequired){return /*#__PURE__*/ _jsx(\"span\",{children:\"*\"});}return null;}BaseForm.defaultProps={url:\"\",styles:{form:{columns:1,rowGap:8,columnGap:8},label:{color:\"#000\"},input:{borderObject:{borderColor:\"#ccc\"}},button:{}},inputs:[{name:\"name\",label:\"Name\",placeholder:\"Jane\",type:FieldType.Text,required:false},{name:\"email\",label:\"Email\",placeholder:\"jane@example.com\",type:FieldType.Email,required:false},{name:\"service\",label:\"Service\",placeholder:\"- select -\",type:FieldType.Select,required:false,options:[]},{name:\"message\",label:\"Message\",placeholder:\"\",type:FieldType.TextArea,required:false},{name:\"terms\",label:\"I accept the terms & conditions\",type:FieldType.Checkbox,required:false},]};export default BaseForm;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BaseForm\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"300\",\"framerIntrinsicHeight\":\"40\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BaseForm.map"],"mappings":"A,0QAqBqwB,SAASkB,GAAc,EAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,IAAIC,CAAG,CAAE,MAAM,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,IAAI,WAAWA,GAAK,CAAE,MAAM,CAAC,CAAC,MAAO,EAAM,CAAC,SAASC,EAAc,EAAK,CAAC,MAAM,CAACC,EAAU,KAAKA,EAAU,KAAKA,EAAU,OAAOA,EAAU,KAAKA,EAAU,aAAc,CAAC,CAAC,SAASC,CAAI,CAAE,CA0Bq9c,SAASC,EAAiB,GAAGC,EAAQ,CAAC,IAAMC,EAAO,CAAC,EAAuD,OAArDD,EAAQ,QAAQ,GAAQE,GAAQD,EAAO,KAAKC,CAAM,CAAC,EAASD,EAAO,KAAK,IAAI,CAAE,CAAC,SAASE,GAAa,EAAW,CAAkE,OAA9DC,EAAiC,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