{"version":3,"file":"LeadFormSuccessSwap.CSSB1h0L.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","RichText","useRef","useState","useCallback"],"sources":["https:/framerusercontent.com/modules/OIiDVMfUWkL9m2PAco0f/Wqoa7k6d7eE2aKCeQ3ak/Ns6EYIF6E.js","https:/framerusercontent.com/modules/3jC8REUn90a1uSeLkWU3/IwuxkIOlKrqHQ3tmCsyi/LeadFormSuccessSwap.js"],"sourcesContent":["// Generated by Framer (c9b3949)\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=[\"CO_5jvRxn\",\"ePXeaYjJn\",\"fIZUdUBTm\",\"e7IWLha3x\"];const serializationHash=\"framer-s8IOr\";const variantClassNames={CO_5jvRxn:\"framer-v-g7xxee\",e7IWLha3x:\"framer-v-1hsfgl9\",ePXeaYjJn:\"framer-v-5vl93w\",fIZUdUBTm:\"framer-v-pl0if5\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const z07NTfVdt=undefined;const transition1={delay:0,duration:.2,ease:[.44,0,.56,1],type:\"tween\"};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={\"Отправка\":\"ePXeaYjJn\",\"Отправлено\":\"fIZUdUBTm\",\"Ошибка\":\"e7IWLha3x\",Default:\"CO_5jvRxn\"};const Variants=motion.create(React.Fragment);const getProps=({_,height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"CO_5jvRxn\",z07NTfVdt:_??props.z07NTfVdt??\"Первичная проверка\"};};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,z07NTfVdt,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"CO_5jvRxn\",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-g7xxee\",className,classNames),\"data-framer-name\":\"Default\",\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"CO_5jvRxn\",ref:refBinding,style:{backgroundColor:\"rgb(10, 10, 10)\",borderBottomLeftRadius:100,borderBottomRightRadius:100,borderTopLeftRadius:100,borderTopRightRadius:100,opacity:1,...style},variants:{e7IWLha3x:{opacity:1},ePXeaYjJn:{opacity:.72},fIZUdUBTm:{opacity:1}},...addPropertyOverrides({e7IWLha3x:{\"data-framer-name\":\"Ошибка\"},ePXeaYjJn:{\"data-framer-name\":\"Отправка\"},fIZUdUBTm:{\"data-framer-name\":\"Отправлено\"}},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\":\"12px\",\"--framer-font-weight\":\"600\",\"--framer-line-height\":\"1em\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Первичная проверка\"})}),className:\"framer-3n66g6\",\"data-framer-name\":\"Label\",fonts:[\"Inter-SemiBold\"],layoutDependency:layoutDependency,layoutId:\"dCeRH60BL\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\"},text:z07NTfVdt,variants:{e7IWLha3x:{\"--extracted-r6o4lv\":\"#FFFFFF\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({e7IWLha3x:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-weight\":\"600\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, #FFFFFF)\"},children:\"Попробуйте еще раз\"})}),text:undefined},fIZUdUBTm:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-weight\":\"600\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Спасибо! Заявка получена\"})}),text:undefined}},baseVariant,gestureVariant)})})})})});});const css=[\".framer-s8IOr.framer-fm7zpt, .framer-s8IOr .framer-fm7zpt { display: block; }\",\".framer-s8IOr.framer-g7xxee { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 12px 8px 12px 8px; position: relative; width: 320px; will-change: var(--framer-will-change-override, transform); }\",\".framer-s8IOr .framer-3n66g6 { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 46\n * @framerIntrinsicWidth 320\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"ePXeaYjJn\":{\"layout\":[\"fixed\",\"auto\"]},\"fIZUdUBTm\":{\"layout\":[\"fixed\",\"auto\"]},\"e7IWLha3x\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"z07NTfVdt\":\"_\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerNs6EYIF6E=withCSS(Component,css,\"framer-s8IOr\");export default FramerNs6EYIF6E;FramerNs6EYIF6E.displayName=\"Form Submit Button\";FramerNs6EYIF6E.defaultProps={height:46,width:320};addPropertyControls(FramerNs6EYIF6E,{variant:{options:[\"CO_5jvRxn\",\"ePXeaYjJn\",\"fIZUdUBTm\",\"e7IWLha3x\"],optionTitles:[\"Default\",\"Отправка\",\"Отправлено\",\"Ошибка\"],title:\"Variant\",type:ControlType.Enum},z07NTfVdt:{defaultValue:\"Первичная проверка\",title:\"Первичная проверка\",type:ControlType.String},onz07NTfVdtChange:{changes:\"z07NTfVdt\",type:ControlType.ChangeHandler}});addFonts(FramerNs6EYIF6E,[{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\":\"FramerNs6EYIF6E\",\"slots\":[],\"annotations\":{\"framerImmutableVariables\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerColorSyntax\":\"true\",\"framerVariables\":\"{\\\"z07NTfVdt\\\":\\\"_\\\"}\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"320\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicHeight\":\"46\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"ePXeaYjJn\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"fIZUdUBTm\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"e7IWLha3x\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Ns6EYIF6E.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{forwardRef,startTransition,useCallback,useEffect,useRef,useState}from\"react\";/**\n * User request: Update LeadFormSuccessSwap so it does not rely on any visible canvas success card, keeps native form/backend behavior intact, and renders an internal premium minimal success card only after a real successful submission; before success render only wrapped form (plus optional failure message).\n */export function LeadFormSuccessSwap(Component){return /*#__PURE__*/forwardRef(function LeadFormSuccessSwapOverride(props,ref){const hostRef=useRef(null);const[showSuccess,setShowSuccess]=useState(false);const[showError,setShowError]=useState(false);const[isPending,setIsPending]=useState(false);const pendingSubmitRef=useRef(false);const validSubmitAttemptedRef=useRef(false);const cleanupNetworkRef=useRef(null);const submissionHandledRef=useRef(false);const assignRefs=useCallback(node=>{hostRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref&&typeof ref===\"object\")ref.current=node;},[ref]);const resetToForm=useCallback(()=>{pendingSubmitRef.current=false;validSubmitAttemptedRef.current=false;submissionHandledRef.current=false;startTransition(()=>{setShowSuccess(false);setShowError(false);setIsPending(false);});},[]);const markSuccess=useCallback(()=>{if(showSuccess||submissionHandledRef.current)return;pendingSubmitRef.current=false;submissionHandledRef.current=true;startTransition(()=>{setShowSuccess(true);setShowError(false);setIsPending(false);});},[showSuccess]);const markFailure=useCallback(()=>{if(submissionHandledRef.current)return;pendingSubmitRef.current=false;submissionHandledRef.current=true;startTransition(()=>{setShowError(true);setIsPending(false);});},[]);useEffect(()=>{const host=hostRef.current;if(!host)return;const form=host.matches(\"form\")?host:host.querySelector(\"form\");if(!form)return;const consentErrorMessage=\"Для отправки формы необходимо дать согласие на обработку персональных данных.\";const ensureHiddenField=(fieldName,fieldValue)=>{let input=form.querySelector(`input[name=\"${fieldName}\"]`);if(!input){input=document.createElement(\"input\");input.type=\"hidden\";input.name=fieldName;form.appendChild(input);}else if(input.type!==\"hidden\"){input.type=\"hidden\";}input.value=fieldValue;};const ensureSubmissionMetadata=()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\"||typeof navigator===\"undefined\")return;const currentUrl=window.location.href;const searchParams=new URLSearchParams(window.location.search||\"\");const referrer=document.referrer||\"\";const browser=navigator.userAgent||\"\";const submittedAt=new Date().toISOString();const recipients=\"hello@recomo.ai\";const submitButton=form.querySelector(`button[type=\"submit\"]`)||form.querySelector(`input[type=\"submit\"]`);const submitLabel=(submitButton?.textContent||(submitButton instanceof HTMLInputElement?submitButton.value:\"\")||\"\").replace(/\\s+/g,\" \").trim();const consentSource=submitLabel===\"Отправить сообщение\"?\"contacts\":\"precheck\";ensureHiddenField(\"recipients\",recipients);ensureHiddenField(\"send_to\",recipients);ensureHiddenField(\"recipient_email\",recipients);ensureHiddenField(\"page_url\",currentUrl);ensureHiddenField(\"referrer\",referrer);ensureHiddenField(\"browser\",browser);ensureHiddenField(\"utm_source\",searchParams.get(\"utm_source\")||\"\");ensureHiddenField(\"utm_medium\",searchParams.get(\"utm_medium\")||\"\");ensureHiddenField(\"utm_campaign\",searchParams.get(\"utm_campaign\")||\"\");ensureHiddenField(\"submitted_at\",submittedAt);ensureHiddenField(\"consent\",\"accepted\");ensureHiddenField(\"consent_version\",\"2026-08-08\");ensureHiddenField(\"consent_source\",consentSource);};const consentInputs=Array.from(form.querySelectorAll(`input[name=\"privacy_consent\"]`));const syncConsentValidity=()=>{consentInputs.forEach(input=>{if(input.checked)input.setCustomValidity(\"\");else input.setCustomValidity(consentErrorMessage);});};const onConsentInvalid=event=>{const input=event.currentTarget;if(!input.checked)input.setCustomValidity(consentErrorMessage);};const onConsentChange=event=>{const input=event.currentTarget;if(input.checked)input.setCustomValidity(\"\");else input.setCustomValidity(consentErrorMessage);};consentInputs.forEach(input=>{input.addEventListener(\"invalid\",onConsentInvalid);input.addEventListener(\"change\",onConsentChange);});const attachNetworkWatchers=()=>{if(typeof window===\"undefined\")return()=>{};const actionUrl=form.action||window.location.href;const normalizedAction=new URL(actionUrl,window.location.href).toString();const method=(form.method||\"GET\").toUpperCase();const originalFetch=window.fetch.bind(window);const originalXhrOpen=XMLHttpRequest.prototype.open;const originalXhrSend=XMLHttpRequest.prototype.send;const normalizeUrl=urlLike=>{try{return new URL(String(urlLike),window.location.href).toString();}catch(error){return null;}};const matchesRequest=(urlLike,requestMethod)=>{const reqUrl=normalizeUrl(urlLike);if(!reqUrl)return false;const reqMethod=(requestMethod||method).toUpperCase();return reqMethod===method&&reqUrl===normalizedAction;};window.fetch=async(input,init)=>{const methodFromInit=init?.method||(input instanceof Request?input.method:method);const urlForMatch=input instanceof Request?input.url:input;const isMatch=pendingSubmitRef.current&&matchesRequest(urlForMatch,methodFromInit);try{const response=await originalFetch(input,init);if(isMatch){pendingSubmitRef.current=false;if(response.ok)markSuccess();else markFailure();}return response;}catch(error){if(isMatch){markFailure();}throw error;}};XMLHttpRequest.prototype.open=function(reqMethod,reqUrl,...rest){this.__leadFormMethod=String(reqMethod||\"GET\").toUpperCase();this.__leadFormUrl=String(reqUrl);return originalXhrOpen.call(this,reqMethod,reqUrl,...rest);};XMLHttpRequest.prototype.send=function(body){const isMatch=pendingSubmitRef.current&&matchesRequest(this.__leadFormUrl||window.location.href,this.__leadFormMethod||method);if(isMatch){this.addEventListener(\"load\",()=>{pendingSubmitRef.current=false;if(this.status>=200&&this.status<300)markSuccess();else markFailure();});this.addEventListener(\"error\",()=>markFailure());this.addEventListener(\"abort\",()=>markFailure());}return originalXhrSend.call(this,body);};return()=>{window.fetch=originalFetch;XMLHttpRequest.prototype.open=originalXhrOpen;XMLHttpRequest.prototype.send=originalXhrSend;};};const onSubmit=()=>{if(showSuccess)return;syncConsentValidity();if(!form.checkValidity())return;ensureSubmissionMetadata();validSubmitAttemptedRef.current=true;pendingSubmitRef.current=true;submissionHandledRef.current=false;startTransition(()=>{setShowError(false);setIsPending(true);});cleanupNetworkRef.current?.();cleanupNetworkRef.current=attachNetworkWatchers();};const onReset=()=>{};form.addEventListener(\"submit\",onSubmit);form.addEventListener(\"reset\",onReset);return()=>{form.removeEventListener(\"submit\",onSubmit);form.removeEventListener(\"reset\",onReset);consentInputs.forEach(input=>{input.removeEventListener(\"invalid\",onConsentInvalid);input.removeEventListener(\"change\",onConsentChange);});cleanupNetworkRef.current?.();cleanupNetworkRef.current=null;};},[markFailure,markSuccess,showSuccess]);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\"},children:[showSuccess?/*#__PURE__*/_jsxs(\"div\",{role:\"status\",\"aria-live\":\"polite\",style:{position:\"relative\",width:\"100%\",minHeight:\"100%\",boxSizing:\"border-box\",background:\"#FFFFFF\",border:\"1px solid #EAEAEA\",borderRadius:24,padding:\"40px 28px\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",gap:14,textAlign:\"center\",opacity:1,animation:\"leadFormFadeIn 280ms ease\"},children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{width:56,height:56,borderRadius:999,border:\"1px solid #EAEAEA\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:30,color:\"#000000\",lineHeight:1},children:\"✓\"}),/*#__PURE__*/_jsx(\"div\",{style:{color:\"#000000\",fontSize:34,lineHeight:1.1,letterSpacing:\"-0.02em\",fontWeight:700},children:\"Заявка получена\"}),/*#__PURE__*/_jsx(\"div\",{style:{color:\"#4D4D4D\",fontSize:15,lineHeight:1.45,maxWidth:620},children:\"Спасибо. Мы получили данные для предварительной проверки и свяжемся с вами по указанному email.\"}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:10,width:\"100%\",maxWidth:420,display:\"flex\",flexDirection:\"column\",gap:10},children:/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:resetToForm,style:{width:\"100%\",height:44,borderRadius:12,border:\"1px solid #EAEAEA\",background:\"#FFFFFF\",color:\"#000000\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:14,fontWeight:600,letterSpacing:\"-0.01em\",cursor:\"pointer\"},children:\"Заполнить еще раз\"})})]}):/*#__PURE__*/_jsx(Component,{ref:assignRefs,...props,style:{...props?.style}}),showError?/*#__PURE__*/_jsxs(\"div\",{role:\"status\",\"aria-live\":\"polite\",style:{position:\"absolute\",left:10,right:10,top:10,bottom:10,color:\"#000000\",background:\"rgba(255,255,255,0.98)\",border:\"1px solid #EAEAEA\",borderRadius:18,padding:\"24px 18px\",opacity:1,transition:\"opacity 220ms ease\",pointerEvents:\"auto\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\",textAlign:\"center\",gap:10},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:26,lineHeight:1.1,fontWeight:700,letterSpacing:\"-0.02em\"},children:\"Не удалось отправить заявку\"}),/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:15,lineHeight:1.45,color:\"#4D4D4D\",maxWidth:560},children:[\"Попробуйте еще раз или напишите нам на\",\" \",/*#__PURE__*/_jsx(\"a\",{href:\"mailto:hello@recomo.ai\",style:{color:\"#000000\",textDecoration:\"none\",fontWeight:600},children:\"hello@recomo.ai\"})]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>{startTransition(()=>{setShowError(false);setIsPending(false);});},style:{marginTop:4,minWidth:180,height:40,borderRadius:12,border:\"1px solid #EAEAEA\",background:\"#FFFFFF\",color:\"#000000\",fontSize:14,fontWeight:600,letterSpacing:\"-0.01em\",cursor:\"pointer\"},children:\"Попробовать снова\"})]}):null,/*#__PURE__*/_jsx(\"style\",{children:`\n                    @keyframes leadFormFadeIn {\n                        from { opacity: 0; }\n                        to { opacity: 1; }\n                    }\n                `})]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"LeadFormSuccessSwap\":{\"type\":\"reactHoc\",\"name\":\"LeadFormSuccessSwap\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LeadFormSuccessSwap.map"],"mappings":"yXAC4hB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,CAAC,EAAuF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,EAAQ,CAAC,EAAS,CAAc,qCAAxqB,IAAoI,IAAkE,IAA4B,EAAiC,EAAW,CAAC,YAAY,YAAY,YAAY,WAAW,EAAQ,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,kBAAkB,UAAU,iBAAiB,EAAyN,EAAY,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,KAAK,OAAO,EAAQ,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,CAAmB,EAAQ,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,YAAU,GAAG,CAAC,KAAK,UAAU,CAAU,CAAC,CAAC,EAAE,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,UAAQ,CAAC,CAAE,EAAQ,EAAwB,CAAC,SAAW,YAA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