{"version":3,"file":"LeadFormOverrides.smYFEasu.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","RichText","useStore","useState"],"sources":["https:/framerusercontent.com/modules/4JqRMDq5t4CfgQySuuAE/E73pA5pDmeA6jG7DXWjv/fqNqmvD0E.js","https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/Amia7nPNurySv79gdK9B/6v29b9VJEIL4uHa4fotj/LeadFormOverrides.js"],"sourcesContent":["// Generated by Framer (a02f04c)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const MotionDivWithFX=withFX(motion.div);const enabledGestures={iylTZPzIO:{hover:true,pressed:true}};const cycleOrder=[\"iylTZPzIO\",\"NKczosZGh\",\"aFBEZFIaE\",\"MqReTzUgs\",\"cSKejG0O3\"];const serializationHash=\"framer-lbBaZ\";const variantClassNames={aFBEZFIaE:\"framer-v-ib0chn\",cSKejG0O3:\"framer-v-177hr40\",iylTZPzIO:\"framer-v-6ffmy1\",MqReTzUgs:\"framer-v-g9cabz\",NKczosZGh:\"framer-v-1jpfd3n\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.2,ease:[.44,0,.56,1],type:\"tween\"};const transition2={delay:0,duration:1,ease:[0,0,1,1],type:\"tween\"};const animation={opacity:1,rotate:360,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:0};const transformTemplate1=(_,t)=>`translateX(-50%) ${t}`;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={Default:\"iylTZPzIO\",Disabled:\"aFBEZFIaE\",Error:\"cSKejG0O3\",Loading:\"NKczosZGh\",Success:\"MqReTzUgs\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"iylTZPzIO\"};};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,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"iylTZPzIO\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"NKczosZGh\")return false;return true;};const isDisplayed1=()=>{if(baseVariant===\"NKczosZGh\")return true;return false;};return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.button,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-6ffmy1\",className,classNames),\"data-framer-name\":\"Default\",\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"iylTZPzIO\",ref:refBinding,style:{backgroundColor:\"rgb(51, 51, 51)\",borderBottomLeftRadius:10,borderBottomRightRadius:10,borderTopLeftRadius:10,borderTopRightRadius:10,opacity:1,...style},variants:{\"iylTZPzIO-hover\":{backgroundColor:\"rgba(51, 51, 51, 0.85)\",opacity:1},\"iylTZPzIO-pressed\":{opacity:1},aFBEZFIaE:{opacity:.5},cSKejG0O3:{backgroundColor:\"rgba(255, 34, 68, 0.15)\",opacity:1},MqReTzUgs:{opacity:1}},...addPropertyOverrides({\"iylTZPzIO-hover\":{\"data-framer-name\":undefined},\"iylTZPzIO-pressed\":{\"data-framer-name\":undefined},aFBEZFIaE:{\"data-framer-name\":\"Disabled\"},cSKejG0O3:{\"data-framer-name\":\"Error\"},MqReTzUgs:{\"data-framer-name\":\"Success\"},NKczosZGh:{\"data-framer-name\":\"Loading\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__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-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Acessar agora\"})}),className:\"framer-or1fzm\",fonts:[\"Inter-SemiBold\"],layoutDependency:layoutDependency,layoutId:\"gMcz0AbYa\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},variants:{cSKejG0O3:{\"--extracted-r6o4lv\":\"rgb(255, 34, 68)\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({cSKejG0O3:{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-text-color\":\"var(--extracted-r6o4lv, rgb(255, 34, 68))\"},children:\"Something went wrong\"})})},MqReTzUgs:{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-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Thank you\"})})}},baseVariant,gestureVariant)}),isDisplayed1()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-bpcxii\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"x3ekT7oQu\",style:{mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"},children:/*#__PURE__*/_jsx(MotionDivWithFX,{__framer__loop:animation,__framer__loopEffectEnabled:true,__framer__loopRepeatDelay:0,__framer__loopRepeatType:\"loop\",__framer__loopTransition:transition2,__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,className:\"framer-1ywb08f\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"u0QyRko2M\",style:{background:\"conic-gradient(from 180deg at 50% 50%, rgb(68, 204, 255) 0deg, rgb(68, 204, 255) 360deg)\",backgroundColor:\"rgb(68, 204, 255)\",mask:\"none\",WebkitMask:\"none\"},variants:{NKczosZGh:{background:\"conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0) 7.208614864864882deg, rgb(255, 255, 255) 342deg)\",backgroundColor:\"rgba(0, 0, 0, 0)\",mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"}},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-99pgf\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"odmRmj60m\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:1,borderBottomRightRadius:1,borderTopLeftRadius:1,borderTopRightRadius:1},transformTemplate:transformTemplate1})})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-lbBaZ.framer-jlwdqs, .framer-lbBaZ .framer-jlwdqs { display: block; }\",\".framer-lbBaZ.framer-6ffmy1 { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 40px; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 240px; }\",\".framer-lbBaZ .framer-or1fzm { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-lbBaZ .framer-bpcxii { aspect-ratio: 1 / 1; flex: none; gap: 10px; height: var(--framer-aspect-ratio-supported, 20px); overflow: hidden; position: relative; width: 20px; }\",\".framer-lbBaZ .framer-1ywb08f { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-lbBaZ .framer-99pgf { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 2px); left: 50%; overflow: visible; position: absolute; top: 0px; width: 2px; }\",\".framer-lbBaZ.framer-v-1jpfd3n.framer-6ffmy1, .framer-lbBaZ.framer-v-ib0chn.framer-6ffmy1, .framer-lbBaZ.framer-v-g9cabz.framer-6ffmy1, .framer-lbBaZ.framer-v-177hr40.framer-6ffmy1 { cursor: unset; }\",\".framer-lbBaZ.framer-v-1jpfd3n .framer-1ywb08f { overflow: hidden; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 40\n * @framerIntrinsicWidth 240\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"NKczosZGh\":{\"layout\":[\"fixed\",\"fixed\"]},\"aFBEZFIaE\":{\"layout\":[\"fixed\",\"fixed\"]},\"MqReTzUgs\":{\"layout\":[\"fixed\",\"fixed\"]},\"cSKejG0O3\":{\"layout\":[\"fixed\",\"fixed\"]},\"ROSLkalGA\":{\"layout\":[\"fixed\",\"fixed\"]},\"Z33jCyGfh\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerfqNqmvD0E=withCSS(Component,css,\"framer-lbBaZ\");export default FramerfqNqmvD0E;FramerfqNqmvD0E.displayName=\"Button 2\";FramerfqNqmvD0E.defaultProps={height:40,width:240};addPropertyControls(FramerfqNqmvD0E,{variant:{options:[\"iylTZPzIO\",\"NKczosZGh\",\"aFBEZFIaE\",\"MqReTzUgs\",\"cSKejG0O3\"],optionTitles:[\"Default\",\"Loading\",\"Disabled\",\"Success\",\"Error\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerfqNqmvD0E,[{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\":\"FramerfqNqmvD0E\",\"slots\":[],\"annotations\":{\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicWidth\":\"240\",\"framerAutoSizeImages\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"NKczosZGh\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"aFBEZFIaE\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"MqReTzUgs\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"cSKejG0O3\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"ROSLkalGA\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"Z33jCyGfh\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerComponentViewportWidth\":\"true\",\"framerColorSyntax\":\"true\",\"framerIntrinsicHeight\":\"40\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./fqNqmvD0E.map","import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";const isProduction=true// true para produção\n;// DEV\nconst ENDPOINT=\"https://getg32m9dn.us-east-1.awsapprunner.com/lead\";const DEMO_URL=\"https://8nj2r6rvre.us-east-1.awsapprunner.com//demo/dashboard\";const SIMULATOR_URL=\"https://app.fluap.com/simulador-financeiro-recovery\";const WHITE_PAPER_URL=\"https://fluap.s3.us-east-1.amazonaws.com/O-custo-invisi%CC%81vel-fluap-recovery-2026.pdf\";// PROD\nconst ENDPOINT_PROD=\"https://d142oaliqo0v4w.cloudfront.net/lead\";const DEMO_URL_PROD=\"https://app.fluap.com/demo/dashboard\";const SIMULATOR_URL_PROD=\"https://app.fluap.com/simulador-financeiro-recovery\";const WHITE_PAPER_URL_PROD=\"https://fluap.s3.us-east-1.amazonaws.com/O-custo-invisi%CC%81vel-fluap-recovery-2026.pdf\";// NOVAS URLS PARA FORMULÁRIOS\nconst REDIRECT_CONFIGS=[{mode:\"white-paper\",url:WHITE_PAPER_URL_PROD,params:[]},{mode:\"simulador\",url:isProduction?SIMULATOR_URL_PROD:SIMULATOR_URL,params:[\"amount\"]},{mode:\"demo\",url:isProduction?DEMO_URL_PROD:DEMO_URL,params:[\"name\",\"email\",\"organizationName\"]},{mode:\"default\",url:isProduction?DEMO_URL_PROD:DEMO_URL,params:[]}];// STORE\nconst useStore=createStore({name:\"\",email:\"\",organizationName:\"\",phone:\"\",amount:\"\",status:\"idle\",errorMessage:\"\"});// INPUT HOCs\nexport const withName=Component=>/*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,value:store.name,onChange:e=>setStore({name:e?.target?.value??\"\"})});});export const withEmail=Component=>/*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,value:store.email,onChange:e=>setStore({email:e?.target?.value??\"\"})});});export const withOrg=Component=>/*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,value:store.organizationName,onChange:e=>setStore({organizationName:e?.target?.value??\"\"})});});export const withPhone=Component=>/*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,value:store.phone,onChange:e=>setStore({phone:e?.target?.value??\"\"})});});export const withAmount=Component=>/*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,value:store.amount,onChange:e=>setStore({amount:e?.target?.value??\"\"})});});// REDIRECT HELPER\nconst getRedirectUrl=(configs,store)=>{const href=window.location.href;const config=configs.find(c=>href.includes(c.mode))||configs.find(c=>c.mode===\"default\");const params=new URLSearchParams;for(const key of config.params||[]){const value=store[key];if(value?.trim()){params.set(key,value.trim());}}const query=params.toString();return query?`${config.url}?${query}`:config.url;};// SUBMIT\nexport function withSubmit(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();const endpoint=isProduction?ENDPOINT_PROD:ENDPOINT;const submit=async()=>{if(store.status===\"loading\")return;setStore({status:\"loading\",errorMessage:\"\"});try{const payload={name:store.name.trim(),email:store.email.trim(),organizationName:store.organizationName.trim(),phone:store.phone.trim(),...store.amount?.trim()?{amount:store.amount.trim()}:{}};const res=await fetch(endpoint,{method:\"POST\",headers:{\"Content-Type\":\"application/json\",\"X-Page-Url\":window.location.href,\"X-Page-Path\":window.location.pathname},body:JSON.stringify(payload)});if(!res.ok){const txt=await res.text().catch(()=>\"\");throw new Error(`HTTP ${res.status}${txt?` — ${txt}`:\"\"}`);}setStore({status:\"success\"});window.location.href=getRedirectUrl(REDIRECT_CONFIGS,store);}catch(err){setStore({status:\"error\",errorMessage:err?.message??\"Erro ao enviar\"});}};const label=store.status===\"loading\"?\"Enviando...\":store.status===\"success\"?\"Enviado\":store.status===\"error\"?\"Erro — tente novamente\":\"Enviar\";return /*#__PURE__*/_jsx(Component,{ref:ref,...props,text:label,label:label,disabled:store.status===\"loading\",onClick:e=>{props?.onClick?.(e);submit();},onTap:e=>{props?.onTap?.(e);submit();}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withSubmit\":{\"type\":\"reactHoc\",\"name\":\"withSubmit\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAmount\":{\"type\":\"reactHoc\",\"name\":\"withAmount\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withEmail\":{\"type\":\"reactHoc\",\"name\":\"withEmail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withName\":{\"type\":\"reactHoc\",\"name\":\"withName\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPhone\":{\"type\":\"reactHoc\",\"name\":\"withPhone\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOrg\":{\"type\":\"reactHoc\",\"name\":\"withOrg\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LeadFormOverrides.map"],"mappings":"ubAC+rB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OA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