(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[502],{3120:function(e,t,n){"use strict";n.d(t,{d:function(){return h}});var o=n(7437),a=n(3564),r=n(1994),l=n(2265),i=n(6153),s=n(7868),c=n(1380),u=n.n(c);let d=e=>{let{footer:t,hasScroll:n,className:a}=e;return(0,o.jsx)("div",{className:(0,r.Z)(u().footer,{[u().hasScroll]:n},a),children:"function"==typeof t?t():t})};var m=n(7200),f=n.n(m);let p=e=>{let{onClose:t,onContentClick:n,children:a,title:i,rowTitle:s,titleAlign:c,isCloseable:u,footer:m,closeButton:p,isOpen:_,contentClassName:g,footerClassName:v,contentStyle:h,width:C}=e,x=(0,l.useRef)(null),y=(0,l.useRef)(null),[b,S]=(0,l.useState)(!1);(0,l.useEffect)(()=>{var e;if(!y.current||!x.current)return;let t=(null==y?void 0:null===(e=y.current)||void 0===e?void 0:e.getBoundingClientRect().top)||0,n=null==x?void 0:x.current,o=()=>{let e=null==y?void 0:y.current;e&&S(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",o,!1),()=>{null==n||n.removeEventListener("scroll",o,!1)}},[]);let j=h||C?{width:C,...h||{}}:void 0;return(0,o.jsxs)("div",{ref:x,style:j,className:(0,r.Z)(f().container,{[f().open]:_,[f().close]:!_},g),children:[i||u?(0,o.jsxs)("div",{className:(0,r.Z)(f().header,{[f().rowHeader]:s}),children:[u?p?"function"==typeof p?p():p:(0,o.jsx)("button",{className:f().controlContainer,onClick:t,children:(0,o.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})}):null,i?(0,o.jsx)("h3",{className:(0,r.Z)(f().title,{[f().center]:"center"===c,[f().left]:"left"===c,[f().right]:"right"===c}),children:i}):null]}):null,(0,o.jsx)("div",{ref:y,className:f().content,onClick:n,children:a}),m&&(0,o.jsx)(d,{className:(0,r.Z)(f().footer,v),footer:m,hasScroll:b})]})};var _=n(1753),g=n.n(_);let v=e=>{let{onClose:t,isOpen:n,children:a,withDisabledScroll:c,className:u,...d}=e,m=(0,l.useCallback)(e=>e.stopPropagation(),[]);return(0,s.o)(n&&c),(0,o.jsxs)("div",{"data-portal":!0,className:(0,r.Z)(g().window,u),children:[(0,o.jsx)(i.L,{onClose:t,isOpen:n,delay:0}),(0,o.jsx)(p,{onContentClick:m,onClose:t,isOpen:n,...d,children:a})]})},h=e=>{let{isOpen:t=!1,children:n,titleAlign:r="center",isCloseable:l=!0,withDisabledScroll:i=!0,...s}=e,{mounted:c}=(0,a.b)({opened:t});return c?(0,o.jsx)(v,{titleAlign:r,isCloseable:l,isOpen:t,withDisabledScroll:i,...s,children:n}):null};h.displayName="Drawer"},2502:function(e,t,n){"use strict";n.r(t),n.d(t,{FormModal:function(){return W}});var o=n(7437),a=n(5461),r=n(2265),l=n(3466),i=n(3120),s=n(9689),c=function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},u=function(e){return"object"==typeof e},d=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return!u(e)&&!1!==e}).join(" ")},m=function(e){var t=e.placeholder,n=e.separator,a=e.isLastChild,l=e.inputStyle,i=e.focus,s=e.isDisabled,m=e.hasErrored,f=e.errorStyle,p=e.focusStyle,_=e.disabledStyle,g=e.shouldAutoFocus,v=e.isInputNum,h=e.index,C=e.value,x=e.className,y=e.isInputSecure,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)0>t.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}(e,["placeholder","separator","isLastChild","inputStyle","focus","isDisabled","hasErrored","errorStyle","focusStyle","disabledStyle","shouldAutoFocus","isInputNum","index","value","className","isInputSecure"]),S=(0,r.useRef)(null);(0,r.useEffect)(function(){var e=S.current;e&&i&&g&&e.focus()},[]),(0,r.useEffect)(function(){var e=S.current;i&&e&&(e.focus(),e.select())},[i]);var j=(0,r.useMemo)(function(){return y?"password":v?"tel":"text"},[y,v]);return(0,o.jsxs)("div",c({className:x,style:{display:"flex",alignItems:"center"}},{children:[(0,o.jsx)("input",c({"aria-label":"".concat(0===h?"Please enter verification code. ":"").concat(v?"Digit":"Character"," ").concat(h+1),autoComplete:"off",style:Object.assign({width:"1em",textAlign:"center"},u(l)&&l,i&&u(p)&&p,s&&u(_)&&_,m&&u(f)&&f),placeholder:t,className:d(l,i&&p,s&&_,m&&f),type:j,ref:S,disabled:s,value:C||""},b)),!a&&(0,o.jsx)(o.Fragment,{children:n})]}))},f=(0,r.forwardRef)(function(e,t){var n=e.numInputs,a=void 0===n?4:n,l=e.onChange,i=void 0===l?function(e){return console.log(e)}:l,s=e.isDisabled,d=void 0!==s&&s,f=e.shouldAutoFocus,p=void 0!==f&&f,_=e.value,g=void 0===_?"":_,v=e.isInputSecure,h=void 0!==v&&v,C=e.placeholder,x=e.isInputNum,y=e.containerStyle,b=e.inputStyle,S=e.focusStyle,j=e.separator,w=e.disabledStyle,N=e.hasErrored,I=e.errorStyle,D=e.className,A=e["data-cy"],F=e["data-testid"],T=(0,r.useState)(0),k=T[0],M=T[1],O=(0,r.useMemo)(function(){return g?g.toString().split(""):[]},[g]),E=(0,r.useMemo)(function(){if("string"==typeof C){if(C.length===a)return C;if(C.length>0)return console.error("Length of the placeholder should be equal to the number of inputs."),""}return""},[a,C]);(0,r.useImperativeHandle)(t,function(){return{focusInput:L}});var R=function(e){i(e.join(""))},B=function(e){return(x?!isNaN(parseInt(e,10)):"string"==typeof e)&&1===e.trim().length},L=function(e){M(Math.max(Math.min(a-1,e),0))},P=function(){L(k+1)},Q=function(){L(k-1)},z=function(e){O[k]=e[0],R(O)},Z=function(e){if(e.preventDefault(),!d){for(var t=k,n=e.clipboardData.getData("text/plain").slice(0,a-k).split(""),o=0;o<a;++o)o>=k&&n.length>0&&(O[o]=n.shift(),t++);M(t),L(t),R(O)}},X=function(e){8===e.keyCode||"Backspace"===e.key?(e.preventDefault(),z(""),Q()):46===e.keyCode||"Delete"===e.key?(e.preventDefault(),z("")):37===e.keyCode||"ArrowLeft"===e.key?(e.preventDefault(),Q()):39===e.keyCode||"ArrowRight"===e.key?(e.preventDefault(),P()):32!==e.keyCode&&" "!==e.key&&"Spacebar"!==e.key&&"Space"!==e.key||e.preventDefault()},J=function(e){if(B(e.target.value))P();else if(!x){var t=e.nativeEvent;null===t.data&&"deleteContentBackward"===t.inputType&&(e.preventDefault(),z(""),Q())}},U=function(){return M(-1)};return(0,o.jsx)("div",c({style:Object.assign({display:"flex"},u(y)&&y),className:u(y)?"":y},{children:Array(a).fill(null).map(function(e,t){var n;return(0,o.jsx)(m,{placeholder:null!==(n=E[t])&&void 0!==n?n:"",index:t,focus:k===t,value:O[t],onChange:function(e){var n=e.target.value;0!==t||n.length!==a?B(n)&&z(n):R(n.split(""))},onKeyDown:X,onInput:J,onPaste:Z,onFocus:function(e){M(t),e.target.select()},onBlur:U,separator:j,inputStyle:b,focusStyle:S,isLastChild:t===a-1,isDisabled:d,disabledStyle:w,hasErrored:N,errorStyle:I,shouldAutoFocus:p,isInputNum:x,isInputSecure:h,className:D,"data-cy":A&&"".concat(A,"-").concat(t),"data-testid":F&&"".concat(F,"-").concat(t)},t)})}))}),p=n(1994),_=n(5843),g=n(7375);let v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toLowerCase();if(t.includes("неверные данные")&&t.includes("некорректн")){let t=e.split(" - ");if(t.length>1){let e=t[t.length-1];return e.charAt(0).toUpperCase()+e.slice(1)}}return t.includes("validation failed")&&t.includes("'inn'")?"Некорректный ИНН":t.includes("код")&&t.includes("просрочен")?"Код просрочен. Запросите отправку кода повторно":t.includes("validation failed")&&t.includes("otpnotificationid")?"Несуществующий номер телефона":t.includes("компания")&&t.includes("заведена")?"Вы уже отправили заявку с этим ИНН":"Неверно введен код из смс"};var h=n(772),C=n.n(h);let x=e=>{let{phone:t,isOpen:n,onClose:c,onPhoneChange:u,isCodeLegit:d,sendCode:m,onSuccess:h}=e,x=(0,a.aF)("m"),[y,b]=(0,r.useState)(59),[S,j]=(0,r.useState)(""),[w,N]=(0,r.useState)(null),[I,D]=(0,r.useState)(!1),A=(0,r.useRef)();(0,r.useEffect)(()=>{if(n)return j(""),N(null),D(!1),b(59),clearInterval(A.current),A.current=setInterval(()=>{b(e=>e-1)},1e3),()=>clearInterval(A.current)},[n]);let F=async()=>{let{isValid:e,message:t}=await d(S);if(j(""),!e)return N(v(t));(0,g.Q)({eventCategory:_.wm,eventActionType:g.i.field,eventActionText:"Код подтверждения"}),D(!0),h(),setTimeout(()=>D(!1),1e3)};(0,r.useEffect)(()=>{4===S.length&&F()},[S]);let T=(0,o.jsxs)("div",{className:C().body,children:[(0,o.jsxs)("p",{className:C().phone,children:["Для ",t,(0,o.jsx)("br",{}),(0,o.jsx)("a",{onClick:u,children:"Изменить номер телефона"})]}),(0,o.jsx)(f,{value:S,onChange:j,numInputs:4,isInputNum:!0,shouldAutoFocus:!0,containerStyle:C().inputWrapper,inputStyle:(0,p.Z)(C().input,{[C().success]:I}),hasErrored:!!w,errorStyle:C().errorInput}),!!w&&(0,o.jsx)("div",{className:C().errorCaption,children:w}),(0,o.jsx)(a.zx,{className:C().button,label:"Отправить ещё код".concat(y>0?" 00:".concat(String(y).padStart(2,"0")):""),disabled:y>0,onClick:()=>{(0,g.Q)({eventCategory:_.wm,eventActionType:g.i.button,eventActionText:"Отправить ещё код"}),m(),b(59)}})]});return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(l.h,{children:x?(0,o.jsx)(s.j,{isOpen:n,onClose:c,title:"Код подтверждения",contentClassName:C().mobileContent,children:T}):(0,o.jsx)(i.d,{isOpen:n,onClose:c,title:"Код подтверждения",contentClassName:C().content,titleAlign:"left",rowTitle:!0,width:"600px",children:T})})})};var y=n(8683),b=n(3418),S=n.n(b);let j={success:{title:"Ваша заявка принята",subtitle:"Оператор от банка перезвонит вам в ближайшее время",button:"Закрыть",img:"cat-green.png",img2:"cat-green2.png",img_m:"cat-green-m.png",img_m2:"cat-green-m2.png"},error:{title:"Возникла техническая проблема",subtitle:"Исправим это в ближайшее время. Если ссылка снова не сработает, опишите проблему в чате поддержки на нашем сайте",button:"Понятно",img:"cat-red.png",img2:"cat-red2.png",img_m:"cat-red-m.png",img_m2:"cat-red-m2.png"}},w=e=>{let{isOpen:t,onClose:n,error:r}=e,c=(0,a.aF)("m"),u=r?j.error:j.success,d=(0,y.SJ)("NEXT_PUBLIC_S3_ASSETS"),m="".concat(d,"/mp-assets/images/sc/rko/"),f=(0,o.jsx)("div",{className:S().body,children:(0,o.jsxs)("div",{className:S().catWrapper,children:[(0,o.jsx)("img",{className:"desktopOnly",src:"".concat(m).concat(u.img),srcSet:"".concat(m).concat(u.img,", ").concat(m).concat(u.img2," 2x"),alt:"bg"}),(0,o.jsx)("img",{className:"mobileOnly",src:"".concat(m).concat(u.img_m),srcSet:"".concat(m).concat(u.img_m,", ").concat(m).concat(u.img_m2," 2x"),alt:"bg"}),(0,o.jsx)("div",{className:S().catTitle,children:u.title}),(0,o.jsx)("div",{className:S().catSubtitle,children:u.subtitle}),(0,o.jsx)(a.zx,{className:S().catButton,label:u.button,onClick:()=>{(0,g.Q)({eventCategory:_.wm,eventActionType:g.i.button,eventActionText:u.button}),n()}})]})});return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(l.h,{children:c?(0,o.jsx)(s.j,{isOpen:t,onClose:n,contentClassName:S().mobileContent,children:f}):(0,o.jsx)(i.d,{isOpen:t,onClose:n,contentClassName:S().content,titleAlign:"left",rowTitle:!0,width:"600px",children:f})})})},N=[1095,1096,134,720,189,180];var I=n(6723),D=n.n(I),A=n(7708),F=n.n(A);let T={className:F().input,size:"m"},k={1:["tariffID","ogrn","managerFullName"],2:["adress","ogrn","managerFullName"],3:["adress","managerFullName"],4:["adress","ogrn","managerFullName"],5:["tariffID","ogrn"],6:["adress","tariffID","ogrn","managerFullName"],7:["adress","tariffID","ogrn","managerFullName"]},M=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,O=(e,t,n)=>{if(!t)return{};if("email"===n){let t=String(e||"");return t?!M.test(t)||t.includes(" ")||t.includes("..")?{state:"error",caption:"Некорректный формат email. Допустимы только латинские буквы, цифры, точки, дефисы, подчеркивания"}:{}:{state:"error",caption:"Обязательное поле"}}return e?{}:{state:"error",caption:"Обязательное поле"}},E=(e,t)=>{if(!e||"object"!=typeof e)return e;let n={...e};return t.forEach(e=>{delete n[e]}),n};var R=n(684);let B=e=>{let{filteredFields:t,showError:n,companyName:r,setCompanyName:l,inn:i,setInn:s,fio:c,setFio:u,phoneInputRef:d,phone:m,setPhone:f,setMaskedPhone:p,mail:v,setMail:h,address:C,setAddress:x,ogrn:y,setOgrn:b,managerFullName:S,setManagerFullName:j}=e,w=(e,t)=>()=>{(0,g.Q)({eventCategory:_.wm,eventActionType:g.i.field,eventActionText:e,eventLabel:t})};return(0,o.jsxs)("div",{className:F().body,children:[(0,o.jsxs)("div",{className:F().guarantee,children:[(0,o.jsx)(R.IconFdsShieldCheckO,{size:24}),(0,o.jsx)("b",{children:"Гарантируем сохранность и безопасность ваших данных"})]}),(0,o.jsxs)("div",{className:F().row,children:[(0,o.jsx)(a.MA,{...T,...O(r,n),label:"Наименование компании*",value:r,onChange:l,onBlur:w("Наименование компании*",r)}),(0,o.jsx)(a.Rn,{...T,...O(i,n),label:"ИНН компании*",value:i,onChange:e=>{if(void 0===e){s(e);return}s(Number(String(e).replace(/\D/g,"").slice(0,12)))},min:0,withoutControls:!0,onBlur:w("ИНН компании*",String(i))}),(0,o.jsx)(a.MA,{...T,...O(c,n),label:"ФИО контактного лица*",value:c,onChange:e=>{u(e.replace(/[^А-Яа-яЁё ,\-–]/g,""))},onBlur:w("ФИО контактного лица*",c)}),(0,o.jsx)(a.xv,{ref:d,...T,...O(m,n),label:"Номер телефона*",value:m,onChange:(e,t)=>{f(e),p(t)},onBlur:w("Номер телефона*",m)}),(0,o.jsx)(a.MA,{...T,...O(v,n,"email"),label:"Электронная почта*",value:v,onChange:e=>{h(e.replace(/[^a-zA-Z0-9@._-]/g,""))},onBlur:w("Электронная почта*",v)}),!t.includes("adress")&&(0,o.jsx)(a.MA,{...T,...O(C,n),label:"Адрес компании*",value:C,onChange:x,onBlur:w("Адрес компании*",C)}),!t.includes("ogrn")&&(0,o.jsx)(a.Rn,{...T,...O(y,n),label:"ОГРН/ОГРНИП компании*",value:y,onChange:b,min:0,withoutControls:!0,onBlur:w("ОГРН/ОГРНИП компании*",String(y))}),!t.includes("managerFullName")&&(0,o.jsx)(a.MA,{...T,...O(S,n),label:"ФИО руководителя компании*",value:S,onChange:j,onBlur:w("ФИО руководителя компании*",S)})]})]})};var L=n(292),P=n.n(L);let Q="https://assets.finuslugi.ru/mp-assets/agreement-rko.pdf",z="https://assets.finuslugi.ru/mp-assets/privacy-policy.pdf",Z=e=>{let{onSubmit:t}=e,[n,l]=(0,r.useState)(!1),i=(e,t)=>()=>{(0,g.Q)({eventCategory:_.wm,eventActionType:g.i.link,eventActionText:e,eventLabel:t})};return(0,o.jsxs)("div",{className:P().buttonActions,children:[(0,o.jsx)(a.XZ,{value:n,onChange:e=>{(0,g.Q)({eventCategory:_.wm,eventActionType:g.i.checkbox,eventActionText:"Соглашаюсь",eventLabel:String(e)}),l(e)},children:(0,o.jsxs)("p",{className:P().disclaimer,children:["Соглашаюсь с"," ",(0,o.jsx)("a",{href:Q,target:"_blank",onClick:i("порядком приема",Q),children:"порядком приема и рассмотрения электронного обращения, направляемого через сеть интернет"})]})}),(0,o.jsx)(a.zx,{size:"m",className:P().button,disabled:!n,onClick:t,children:"Отправить"}),(0,o.jsxs)("p",{className:P().disclaimer,children:["Нажимая кнопку ",'"Отправить"',", вы принимаете"," ",(0,o.jsx)("a",{href:z,target:"_blank",onClick:i("условия политики",z),children:"условия политики обработки персональных данных ПАО Московская Биржа"})," ","и настоящим даете"," ",(0,o.jsx)("a",{href:z,target:"_blank",onClick:i("согласие на обработку",z),children:"согласие на обработку ПАО Московская Биржа моих персональных данных"})]})]})};var X=n(9306);let J=async e=>{let t={method:"POST",body:JSON.stringify({phone:e})};return(await (0,X.t9)({url:"/api/v1/notifications",options:{isBFF:!0},config:t})).data||null},U=async e=>{let t={method:"POST",body:JSON.stringify(e)},n=await (0,X.t9)({url:"/api/v1/notifications/confirming ",options:{isBFF:!0},config:t});if(!n.data){let e=n.error,t="data"in e?e.data:{};return{status:"ERROR",message:t.message||t.detail}}return n.data||null};var H=n(5065);let W=e=>{let{offer:t,isOpen:n,onClose:c,region:u,town:d}=e,m=(0,a.aF)("m"),[f,v]=(0,r.useState)(""),[h,C]=(0,r.useState)(),[b,S]=(0,r.useState)([]),[j,I]=(0,r.useState)(""),[A,F]=(0,r.useState)(""),[T,M]=(0,r.useState)(""),[R,L]=(0,r.useState)(""),[P,Q]=(0,r.useState)(""),[z,X]=(0,r.useState)(),[W,V]=(0,r.useState)(""),[q,G]=(0,r.useState)(!1),[Y,K]=(0,r.useState)(!1),[$,ee]=(0,r.useState)(!1),[et,en]=(0,r.useState)(!1),[eo,ea]=(0,r.useState)(""),er=(0,r.useRef)(null),el=(0,H.a)();(0,r.useEffect)(()=>{var e,t,o;n&&!b.length&&S(((0,y.SJ)("NEXT_PUBLIC_REACT_HEADER")?el.towns:(null===(o=window)||void 0===o?void 0:null===(t=o.Alpine)||void 0===t?void 0:null===(e=t.store("citySelect"))||void 0===e?void 0:e.getTowns())||[]).sort((e,t)=>{let n=N.findIndex(t=>t===e.id),o=N.findIndex(e=>e===t.id);return n>-1||o>-1?(n<0?1e3:n)-(o<0?1e3:o):e.name.localeCompare(t.name)}).map(e=>({label:"".concat(e.name).concat(e.parentName?" / ".concat(e.parentName):""),value:"".concat(e.parentId,"-").concat(e.id)})))},[n]);let ei="dev"===(0,y.SJ)("NEXT_PUBLIC_VERSION"),es=k[(null==t?void 0:t.formType)||1]||k[1],ec=E({bankID:(null==t?void 0:t.fkId)||0,channelID:t&&"channelID"in t?Number(t.channelID):0,companyName:f,inn:String(h),contactFullName:j,phone:"+".concat(A),email:R,address:P,agreement:!0,tariffID:t&&"tariffID"in t?Number(t.tariffID):void 0,ogrn:z?String(z):void 0,managerFullName:W,otpNotificationId:eo,code:"",isTest:ei,cityFIAS:"0c5b2444-70a0-4932-980c-b4dc0d3f02b5",geoID:1},es),eu=()=>{J("+".concat(A)).then(e=>ea((null==e?void 0:e.otpNotificationId)||""))},ed=()=>{(0,g.Q)({eventCategory:_.wm,eventActionType:g.i.button,eventActionText:"Отправить",eventLabel:"".concat((null==t?void 0:t.fkName)||"","_").concat((null==t?void 0:t.title)||"")});let e=Object.values({companyName:f,inn:h,contactFullName:j,phone:A,email:R,...P&&{adress:P},...z&&{ogrn:z},...W&&{managerFullName:W}}).some(e=>!e),n="error"===O(R,!0,"email").state;if(e||n)return G(!0);eu(),ee(!0),setTimeout(()=>K(!0),500)},em=async e=>{let t=await U({...ec,code:e});return{isValid:!!(null==t?void 0:t.status)&&"ERROR"!==t.status,message:(null==t?void 0:t.message)||"Неверный код из СМС"}},ef=()=>{c(),ee(!1)},ep={filteredFields:es,showError:q,companyName:f,setCompanyName:v,inn:h,setInn:C,region:u,town:d,townsOptions:b,fio:j,setFio:I,phoneInputRef:er,phone:A,setPhone:F,setMaskedPhone:M,mail:R,setMail:L,address:P,setAddress:Q,ogrn:z,setOgrn:X,managerFullName:W,setManagerFullName:V};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.h,{children:m?(0,o.jsx)(s.j,{isOpen:n&&!$,onClose:ef,contentClassName:D().scrollContent,footer:(0,o.jsx)(Z,{onSubmit:ed}),title:"Онлайн-заявка",children:(0,o.jsx)(B,{...ep,isMobile:!0})}):(0,o.jsx)(i.d,{isOpen:n&&!$,onClose:ef,title:"Онлайн-заявка",contentClassName:(0,p.Z)(D().content,D().scrollContent),titleAlign:"left",rowTitle:!0,footer:(0,o.jsx)(Z,{onSubmit:ed}),width:"600px",children:(0,o.jsx)(B,{...ep})})}),(0,o.jsx)(x,{phone:T,isOpen:Y,onClose:()=>{K(!1),ee(!1)},onPhoneChange:()=>{(0,g.Q)({eventCategory:_.wm,eventActionType:g.i.link,eventActionText:"Изменить номер телефона"}),K(!1),setTimeout(()=>ee(!1),500),setTimeout(()=>{let e=document.querySelector(".".concat(D().scrollContent));null==e||e.scrollTo({top:1e3,behavior:"smooth"})},1e3),setTimeout(()=>{var e;null===(e=er.current)||void 0===e||e.focus()},1500)},isCodeLegit:em,sendCode:eu,onSuccess:()=>{K(!1),ef(),setTimeout(()=>en(!0),500)}}),(0,o.jsx)(w,{isOpen:et,onClose:()=>{en(!1),ee(!1)}})]})}},7200:function(e){e.exports={container:"DrawerContent_container__rR8LI",open:"DrawerContent_open__M84fe","slide-up":"DrawerContent_slide-up__PxR16",close:"DrawerContent_close__Cyxv9","slide-out":"DrawerContent_slide-out__U3MRA",header:"DrawerContent_header__Ur_YT",rowHeader:"DrawerContent_rowHeader__2Z3R3",title:"DrawerContent_title__QG5Cm",center:"DrawerContent_center__k_OfP",right:"DrawerContent_right__5FHfz",left:"DrawerContent_left__J0wEA",controlContainer:"DrawerContent_controlContainer__FAnIq",content:"DrawerContent_content__ECzp5",footer:"DrawerContent_footer__SVPa7"}},1380:function(e){e.exports={footer:"DrawerFooter_footer__0AgTl",hasScroll:"DrawerFooter_hasScroll__Qk185"}},1753:function(e){e.exports={window:"DrawerLayout_window__wpjeD"}},772:function(e){e.exports={body:"CodeConfirmationModal_body__IBQTa",content:"CodeConfirmationModal_content__jkwCw",mobileContent:"CodeConfirmationModal_mobileContent__XeRcN",phone:"CodeConfirmationModal_phone__dPNUE",inputWrapper:"CodeConfirmationModal_inputWrapper__mVBmc",input:"CodeConfirmationModal_input__Q8Y_4",success:"CodeConfirmationModal_success__08FEx",errorInput:"CodeConfirmationModal_errorInput__uwefG",errorCaption:"CodeConfirmationModal_errorCaption__TXSZJ",button:"CodeConfirmationModal_button__s07Cf"}},6723:function(e){e.exports={content:"FormModal_content__VRd80",scrollContent:"FormModal_scrollContent__7jUJ5"}},7708:function(e){e.exports={body:"FormModalContent_body__EzMNz",guarantee:"FormModalContent_guarantee__neTlM",row:"FormModalContent_row__qaetW",input:"FormModalContent_input__rzCa4"}},292:function(e){e.exports={buttonActions:"FormModalFooter_buttonActions__Irp_6",disclaimer:"FormModalFooter_disclaimer__EiXBX",button:"FormModalFooter_button__QyB_8"}},3418:function(e){e.exports={body:"StatusModal_body__QRhaG",content:"StatusModal_content__dmpnR",catWrapper:"StatusModal_catWrapper__rwwXQ",catTitle:"StatusModal_catTitle__v1rHj",catSubtitle:"StatusModal_catSubtitle___Bagh",catButton:"StatusModal_catButton__la0MP"}}}]);