{"version":3,"file":"resetForm.BkR-pc0T.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","RichText","useState","useRef","useCallback"],"sources":["https:/framerusercontent.com/modules/V3q55VmNJ0TdscuN3eFP/dQTLH8ZSvJfetlNsfPoO/zwGeJW9wW.js","https:/framerusercontent.com/modules/avqSxak2kZOwx7TDJmDG/nRio34EEQz4KeXkVhPfD/resetForm.js"],"sourcesContent":["// Generated by Framer (089ff9b)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"Yt4PUB8dL\",\"QxreUMmET\"];const serializationHash=\"framer-aWlwM\";const variantClassNames={QxreUMmET:\"framer-v-slc1v3\",Yt4PUB8dL:\"framer-v-1dj0mqj\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const RyUwXITBj=undefined;const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={\"Request Consultation\":\"Yt4PUB8dL\",Confirmation:\"QxreUMmET\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,label,width,...props})=>{return{...props,RyUwXITBj:label??props.RyUwXITBj??\"Request a Consultation\",variant:humanReadableVariantMap[props.variant]??props.variant??\"Yt4PUB8dL\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,RyUwXITBj,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"Yt4PUB8dL\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.button,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1dj0mqj\",className,classNames),\"data-framer-name\":\"Request Consultation\",\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"Yt4PUB8dL\",ref:refBinding,style:{backgroundColor:\"var(--token-a10882b8-f557-4f0a-8b83-6de6b7e6ea70)\",borderBottomLeftRadius:6,borderBottomRightRadius:6,borderTopLeftRadius:6,borderTopRightRadius:6,...style},...addPropertyOverrides({QxreUMmET:{\"data-framer-name\":\"Confirmation\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-line-height\":\"1em\",\"--framer-text-color\":\"var(--extracted-r6o4lv, #FFFFFF)\"},children:\"Label\"})}),className:\"framer-3w5mq4\",fonts:[\"Inter-SemiBold\"],layoutDependency:layoutDependency,layoutId:\"Qw8OtDkkc\",style:{\"--extracted-r6o4lv\":\"#FFFFFF\"},text:RyUwXITBj,verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({QxreUMmET:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-size\":\"13px\",\"--framer-font-weight\":\"600\",\"--framer-line-height\":\"1.3em\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, #FFFFFF)\"},children:\"Thank you. We have received your request and will be in touch shortly.\"})}),text:undefined}},baseVariant,gestureVariant)})})})})});});const css=[\".framer-aWlwM.framer-nutp7a, .framer-aWlwM .framer-nutp7a { display: block; }\",\".framer-aWlwM.framer-1dj0mqj { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; height: min-content; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 12px 18px 12px 18px; position: relative; width: min-content; will-change: var(--framer-will-change-override, transform); }\",\".framer-aWlwM .framer-3w5mq4 { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-aWlwM.framer-v-slc1v3.framer-1dj0mqj { width: 400px; }\",\".framer-aWlwM.framer-v-slc1v3 .framer-3w5mq4 { flex: 1 0 0px; white-space: pre-wrap; width: 1px; word-break: break-word; word-wrap: break-word; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 200\n * @framerIntrinsicWidth 200\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"QxreUMmET\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"RyUwXITBj\":\"label\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerzwGeJW9wW=withCSS(Component,css,\"framer-aWlwM\");export default FramerzwGeJW9wW;FramerzwGeJW9wW.displayName=\"Consultation Submit\";FramerzwGeJW9wW.defaultProps={height:200,width:200};addPropertyControls(FramerzwGeJW9wW,{variant:{options:[\"Yt4PUB8dL\",\"QxreUMmET\"],optionTitles:[\"Request Consultation\",\"Confirmation\"],title:\"Variant\",type:ControlType.Enum},RyUwXITBj:{defaultValue:\"Request a Consultation\",title:\"Label\",type:ControlType.String},onRyUwXITBjChange:{changes:\"RyUwXITBj\",type:ControlType.ChangeHandler}});addFonts(FramerzwGeJW9wW,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/hyOgCu0Xnghbimh0pE8QTvtt2AU.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/NeGmSOXrPBfEFIy5YZeHq17LEDA.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/oYaAX5himiTPYuN8vLWnqBbfD2s.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/lEJLP4R0yuCaMCjSXYHtJw72M.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/cRJyLNuTJR5jbyKzGi33wU9cqIQ.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/yDtI2UI8XcEg1W2je9XPN3Noo.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/A0Wcc7NgXMjUuFdquHDrIZpzZw0.woff2\",weight:\"600\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerzwGeJW9wW\",\"slots\":[],\"annotations\":{\"framerAutoSizeImages\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerColorSyntax\":\"true\",\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicHeight\":\"200\",\"framerIntrinsicWidth\":\"200\",\"framerVariables\":\"{\\\"RyUwXITBj\\\":\\\"label\\\"}\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"QxreUMmET\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./zwGeJW9wW.map","import{createElement,forwardRef,startTransition,useCallback,useEffect,useRef,useState}from\"react\";export function withFormSuccessReset(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[remountKey,setRemountKey]=useState(0);const rootRef=useRef(null);const timerRef=useRef(null);const clearTimer=useCallback(()=>{if(typeof window!==\"undefined\"&&timerRef.current!==null){window.clearTimeout(timerRef.current);timerRef.current=null;}},[]);const setMergedRef=useCallback(node=>{rootRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref&&typeof ref===\"object\"){ref.current=node;}},[ref]);useEffect(()=>{if(typeof window===\"undefined\")return;const root=rootRef.current;if(!root)return;const form=root.matches(\"form\")?root:root.querySelector(\"form\");if(!form)return;const onNativeSubmit=event=>{const targetForm=event.currentTarget;const isValid=typeof targetForm.checkValidity===\"function\"?targetForm.checkValidity():true;if(!isValid)return;clearTimer();timerRef.current=window.setTimeout(()=>{targetForm.reset();startTransition(()=>{setRemountKey(value=>value+1);});timerRef.current=null;},1e4);};form.addEventListener(\"submit\",onNativeSubmit,true);return()=>{form.removeEventListener(\"submit\",onNativeSubmit,true);clearTimer();};},[clearTimer,remountKey]);return /*#__PURE__*/createElement(Component,{...props,key:remountKey,ref:setMergedRef});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withFormSuccessReset\":{\"type\":\"reactHoc\",\"name\":\"withFormSuccessReset\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./resetForm.map"],"mappings":"kXAC4c,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,CAAC,EAAuF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,EAAQ,CAAC,EAAS,CAAc,qCAAxlB,IAAoI,IAAkE,IAA4B,EAAiC,EAAW,CAAC,YAAY,WAAW,EAAQ,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,kBAAkB,EAAyN,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,QAAQ,EAAQ,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EA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