PageSourceSearch

https://budgett.ru/static/js/14.3bde11e8.chunk.js

js budgett.ru collected 2026-10-06 20:41:42 UTC 308,269 bytes, 2 lines download raw bytes

1(this["webpackJsonpbudgett-app"]=this["webpackJsonpbudgett-app"]||[]).push([[14],{200:function(e,t,a){e.exports={Description:"AddContract_Description__EKblx",Arrow:"AddContract_Arrow__2rQiQ",ArrowBack:"AddContract_ArrowBack__2Ei07",ArrowForward:"AddContract_ArrowForward__EcVnc",PageAddContract:"AddContract_PageAddContract__Iimve",mobileSignatureStep:"AddContract_mobileSignatureStep__2TXpd",axiosGraphic:"AddContract_axiosGraphic__9UxHv",Header:"AddContract_Header__20RBp",MaxAmountContainer:"AddContract_MaxAmountContainer__374oB",MaxAmountIconContainer:"AddContract_MaxAmountIconContainer__u6VPQ",MaxAmountTitle:"AddContract_MaxAmountTitle__TP0IX",MaxAmountDescription:"AddContract_MaxAmountDescription__2VOxZ",Title:"AddContract_Title__eeHwM",StepsContainer:"AddContract_StepsContainer__27s5s",SubHeader:"AddContract_SubHeader__2vrmE",SubHeaderMobile:"AddContract_SubHeaderMobile__1Bwjg",carouselWrapper:"AddContract_carouselWrapper__29RBq",ProductsContainer:"AddContract_ProductsContainer__1iufh",ProductsBlock:"AddContract_ProductsBlock__2Q2JD",secondBlockWrapper:"AddContract_secondBlockWrapper__3W7-Y",Product:"AddContract_Product__1JPEV",Button:"AddContract_Button__2IJYQ",blockedMode:"AddContract_blockedMode__2idBc",descriptionMode:"AddContract_descriptionMode__1et1L",isSelected:"AddContract_isSelected__1RGhF",BeforeSalaryImg:"AddContract_BeforeSalaryImg__u5Spk",StandartImg:"AddContract_StandartImg__2o4oL",OptimalImg:"AddContract_OptimalImg__1h0bS",ProductName:"AddContract_ProductName__3kwtD",ProductDescriptionBlock:"AddContract_ProductDescriptionBlock__20vRs",ProductDescription:"AddContract_ProductDescription__101QY",ProductSelect:"AddContract_ProductSelect__1z-0f",ParamsAndSuggestionContainer:"AddContract_ParamsAndSuggestionContainer__1jrb2",CloseBlock:"AddContract_CloseBlock__cW8WW",SmsErrorBlock:"AddContract_SmsErrorBlock__3gkQo",CalculateBtn:"AddContract_CalculateBtn__10fPc",ParamsContainer:"AddContract_ParamsContainer__1T14v","Input-Wrapper":"AddContract_Input-Wrapper__30WEu",ParamsTitle:"AddContract_ParamsTitle__3SkIW",ParamsField:"AddContract_ParamsField__3M2wO",ParamsFieldDescription:"AddContract_ParamsFieldDescription__1N9QF",askIcon:"AddContract_askIcon__1ugl0",wrapperBottom:"AddContract_wrapperBottom__2hSRo",bottomHeader:"AddContract_bottomHeader__3jjVx",bottomText:"AddContract_bottomText__3ImO_",closeIcon:"AddContract_closeIcon__fQvrm",PreSuggestionContainer:"AddContract_PreSuggestionContainer__2C2o-",PreSuggestionTitle:"AddContract_PreSuggestionTitle__1jyt8",PreSuggestionDescriptionContainer:"AddContract_PreSuggestionDescriptionContainer__eYkhT",PreSuggestionDescription:"AddContract_PreSuggestionDescription__27D3D",SuggestionContainer:"AddContract_SuggestionContainer__2nZs_",SuggestionTitle:"AddContract_SuggestionTitle__3hQuk",SuggestionCalculationContainer:"AddContract_SuggestionCalculationContainer__1xpI7",SuggestionPaymentContainer:"AddContract_SuggestionPaymentContainer__1MqGp",SuggestionPaymentTitle:"AddContract_SuggestionPaymentTitle__1MSmK",SuggestionPaymentDescription:"AddContract_SuggestionPaymentDescription__3z3aT",SuggestionFirstPaymentContainer:"AddContract_SuggestionFirstPaymentContainer__1sLBE",SuggestionMonthPaymentContainer:"AddContract_SuggestionMonthPaymentContainer__2JgKR",SuggestionOverPaymentContainer:"AddContract_SuggestionOverPaymentContainer__1g1qI",SuggestionActionsContainer:"AddContract_SuggestionActionsContainer__2rwd_",ClickedText:"AddContract_ClickedText__3-wCq",SmsContainer:"AddContract_SmsContainer__3ZvQB",leftTopBlock:"AddContract_leftTopBlock__2M29n",SmsLeftBlock:"AddContract_SmsLeftBlock__ZeLPt",wrapperBlock:"AddContract_wrapperBlock__2ke9K",signatureContainer:"AddContract_signatureContainer__3FBxl",leftBlock:"AddContract_leftBlock__1MdgQ",chevronBlock:"AddContract_chevronBlock__qOiRH",chevron:"AddContract_chevron__2jEj3",leftBlockTitle:"AddContract_leftBlockTitle__2fD5V",flexBlock:"AddContract_flexBlock__290aD",activeBlock:"AddContract_activeBlock__xj6QV",agreementCheckbox:"AddContract_agreementCheckbox__3Dr6S",commonTitle:"AddContract_commonTitle__1f8iA",agreementTitle:"AddContract_agreementTitle__2UlAQ",miniTitle:"AddContract_miniT
1itle__unUCj",boldClass:"AddContract_boldClass__1p20_",CreditReport:"AddContract_CreditReport__12cm2",CreditReportLittle:"AddContract_CreditReportLittle__3eG4M",CreditReportLittleAmount:"AddContract_CreditReportLittleAmount__3XQLE",PartnersTitle:"AddContract_PartnersTitle__3W3RP",textBlock:"AddContract_textBlock__2Q50r",BidLow:"AddContract_BidLow__20USf",bidGotBlock:"AddContract_bidGotBlock__3vwMx",YouGet:"AddContract_YouGet__2-p9w",Price:"AddContract_Price__2xRjr",lowestText:"AddContract_lowestText__2bcZV",SmsVerifiedContainer:"AddContract_SmsVerifiedContainer__1oAmm","Input-Inline":"AddContract_Input-Inline__1UXIF","Input-Wrapper-Label":"AddContract_Input-Wrapper-Label__3_43W","Input-Wrapper-Error":"AddContract_Input-Wrapper-Error__1MQ2G",codeGroup:"AddContract_codeGroup__qGwjN",group:"AddContract_group__zldmm",ButtonCountBlock:"AddContract_ButtonCountBlock__5hiC2",countdown:"AddContract_countdown__7FhEL",SmsVerifiedDescriptionTop:"AddContract_SmsVerifiedDescriptionTop__kjKbj",marginBIos:"AddContract_marginBIos__N4oGc",marginBNoIos:"AddContract_marginBNoIos__ZaEkK",descriptionBottom:"AddContract_descriptionBottom__2mgEM",descriptionBottomMobileInfo:"AddContract_descriptionBottomMobileInfo__IBY7_",descriptionBottomDesktopInfo:"AddContract_descriptionBottomDesktopInfo__3Doww",descriptionBottomMobile:"AddContract_descriptionBottomMobile__3hDbq",descriptionBottomDesktop:"AddContract_descriptionBottomDesktop__Bie3G",descriptionPlug:"AddContract_descriptionPlug__Zo6fA",sendSmsCodeBlock:"AddContract_sendSmsCodeBlock__3nc1z",DescriptionLowest:"AddContract_DescriptionLowest__2AI-s",ContainerStatus:"AddContract_ContainerStatus__XSFcc",ContractStatusContainer:"AddContract_ContractStatusContainer__13I7H",ContractStatusButton:"AddContract_ContractStatusButton__130eq",ContractStatusTitle:"AddContract_ContractStatusTitle__2iLvn",ContractStatusDescription:"AddContract_ContractStatusDescription__1ggIg",ContractReject:"AddContract_ContractReject__qKvqY",CongratulationContainer:"AddContract_CongratulationContainer__UfUHf",CongratulationTitle:"AddContract_CongratulationTitle__123lB",CongratulationDescription:"AddContract_CongratulationDescription__GsmE9",rightBlockWrapper:"AddContract_rightBlockWrapper__1-7lJ",ButtonLinkDoc:"AddContract_ButtonLinkDoc__220lD",BeforeSalaryMobileImg:"AddContract_BeforeSalaryMobileImg__181ql",StandartMobileImage:"AddContract_StandartMobileImage__1UDOt",OptimalMobileImg:"AddContract_OptimalMobileImg__38WKb",ProductMobile:"AddContract_ProductMobile__3I62J",AskButton:"AddContract_AskButton__3WpQa",description:"AddContract_description__Q0y61",closeButton:"AddContract_closeButton__3MIMs",ReceiveMethodContainer:"AddContract_ReceiveMethodContainer__2LlbQ",SelectMethodsContainer:"AddContract_SelectMethodsContainer__1fgzE",SelectMethodContainer:"AddContract_SelectMethodContainer__UKePp",SelectMethodContainer_disabled:"AddContract_SelectMethodContainer_disabled__14UY1",SelectMethodContainer_selected:"AddContract_SelectMethodContainer_selected__IjWr4",Amount:"AddContract_Amount__1Q91Q",Tax:"AddContract_Tax__1btzt",Promo:"AddContract_Promo__jrvHl",TaxSpace:"AddContract_TaxSpace__2B7ZZ",rightWrapper:"AddContract_rightWrapper__3L_NY",rightWrapperPlug:"AddContract_rightWrapperPlug__27IXU",rightWrapperLoading:"AddContract_rightWrapperLoading__PBVeF",resend:"AddContract_resend__Eqk2X",resendButton:"AddContract_resendButton__2v2CM",resendText:"AddContract_resendText__2CUi3",codeField:"AddContract_codeField__3eQLF",errorInput:"AddContract_errorInput__2ccro",rightBlockDescription:"AddContract_rightBlockDescription__1hjEn",brMobile:"AddContract_brMobile__1t4nD",brDesktop:"AddContract_brDesktop__2Tdtx",SelectMethodIconContainer:"AddContract_SelectMethodIconContainer__3XAKH",SelectMethodName:"AddContract_SelectMethodName___1upX",MethodContainer:"AddContract_MethodContainer__2gKlv",IFrame:"AddContract_IFrame__2iaMV",SelectMethodActions:"AddContract_SelectMethodActions__2NOhU",SelectPhotoMethodActions:"AddContract_SelectPhotoMethodActions__21yo7",SelectMethodRightActions:"AddContract_SelectMethodRightActions__1eO3t",SelectMethodRightActionsBottom:"AddContract_SelectMethodRightActionsBottom__3TALD",productBlocked:"AddContract_productBlocked__3dekx",buttonsWrapper:"AddContract_buttonsWrapper__3Jrz5",buttonsBlock:"AddContract_buttonsBlock__2aFHY",buttonDesktop:"AddContract_buttonDesktop__3-n21",backButton:"AddContract_backButton__kiGPH",hiddenPlug:"AddContract_hiddenPlug__3m0Ce",visiblePlug:"AddContract_visiblePlug__38k09",hiddenPlugAcc:"AddContract_hiddenPlugAcc__bWAjR",visiblePlugAcc:"AddContract_visiblePlugAcc__2PQTo",buttonMobile:"AddContract_buttonMobile__2INHI",codeBlock:"AddContract_codeBlock__2H3zt",visible:"AddContract_visible__257_c",accordionDesktop:"AddContract_accordionDesktop__2tG5C",accordionMobile:"AddContract_accordionMobile__kp5ee"}},210:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return d}));var n=a(0),l=a.n(n),o=a(35),c=a(239),r=a.n(c);a(240);const i=Object(o.cn)("Pop-Up"),s=l.a.createContext(null),d=e=>{let{children:t}=e;const[a,o]=Object(n.useState)(!1),[c,d]=Object(n.useState)(""),[m,u]=Object(n.useState)(null);return l.a.createElement(s.Provider,{value:{isShown:a,title:c,content:m,setShown:o,setTitle:d,setContent:u}},t,l.a.createElement("div",{className:i({visible:!!a})},l.a.createElement("div",{className:i("Overlay"),onClick:()=>o(!1)}),l.a.createElement("div",{className:i("Block")},l.a.createElement("div",{className:"Header"},l.a.createElement("p",{className:"Title"},c),l.a.createElement("div",{onClick:()=>o(!1)},l.a.createElement("img",{alt:c,className:"Close-Icon",src:r.a}))),l.a.createElement("div",{className:"Content"},l.a.createElement("div",null,m)))))}},211:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}
1));var n=a(0),l=a.n(n);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 9"},e),l.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.278639 6.98885C0.177249 7.11314 0.10059 7.25663 0.0537279 7.41122C0.00686539 7.5658 -0.00955793 7.72835 0.00530958 7.88947C0.0201771 8.0506 0.0661 8.20727 0.140412 8.35017C0.214725 8.49306 0.315616 8.61953 0.437951 8.72223C0.685162 8.92745 1.00182 9.02507 1.31885 8.99449C1.63588 8.96392 1.92806 8.80742 2.13337 8.55855L6.49961 3.19514L10.8658 8.55855C11.0712 8.80742 11.3641 8.96392 11.6811 8.99449C11.9982 9.02507 12.3141 8.92745 12.5613 8.72223C12.6836 8.61953 12.7853 8.49306 12.8596 8.35017C12.9339 8.20727 12.9798 8.0506 12.9947 7.88947C13.0096 7.72835 12.9931 7.5658 12.9463 7.41122C12.8994 7.25663 12.8228 7.11314 12.7214 6.98885L7.44377 0.448155L7.28367 0.284478C7.16211 0.180819 7.02176 0.102842 6.87056 0.0549307C6.71936 0.00701904 6.56037 -0.00977135 6.40277 0.00542831C6.24518 0.0206289 6.09194 0.0675802 5.95217 0.143556C5.8124 0.219532 5.68871 0.323081 5.58825 0.448155L0.278639 6.98885Z"}))}},238:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n,l=a(0),o=a.n(l);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}const r=e=>{let{svgRef:t,title:a,...l}=e;return o.a.createElement("svg",c({viewBox:"0 0 24 30",fill:"none",ref:t},l),a?o.a.createElement("title",null,a):null,n||(n=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.88273 0H20.1189C21.1472 0.00438197 22.1323 0.420076 22.8594 1.15597C23.5865 1.89187 23.9957 2.88732 24 3.92803V26.072C23.9957 27.1127 23.5865 28.1081 22.8594 28.844C22.1323 29.5799 21.1472 29.9956 20.1189 30H3.88273C2.85445 29.9956 1.86928 29.5799 1.14217 28.844C0.41506 28.1081 0.00432965 27.1127 0 26.072V3.92803C0.00432965 2.88732 0.41506 1.89187 1.14217 1.15597C1.86928 0.420076 2.85445 0.00438197 3.88273 0ZM5.64337 5.70995C5.26818 5.70995 4.90788 5.86091 4.64257 6.12942C4.37727 6.39793 4.22811 6.76258 4.22811 7.14231C4.22811 7.52205 4.37727 7.88508 4.64257 8.15359C4.90788 8.4221 5.26818 8.57305 5.64337 8.57305H11.2851C11.6603 8.57305 12.0206 8.4221 12.2859 8.15359C12.5512 7.88508 12.7004 7.52205 12.7004 7.14231C12.7004 6.76258 12.5512 6.39793 12.2859 6.12942C12.0206 5.86091 11.6603 5.70995 11.2851 5.70995H5.64337ZM12.7004 19.9946C13.0756 19.9946 13.4343 19.8436 13.6996 19.5751C13.9649 19.3066 14.1141 18.9419 14.1141 18.5622C14.1141 18.1825 13.9649 17.8195 13.6996 17.5509C13.4343 17.2824 13.0756 17.1315 12.7004 17.1315H5.64337C5.26818 17.1315 4.90788 17.2824 4.64257 17.5509C4.37727 17.8195 4.22811 18.1825 4.22811 18.5622C4.22811 18.9419 4.37727 19.3066 4.64257 19.5751C4.90788 19.8436 5.26818 19.9946 5.64337 19.9946H12.7004ZM18.3422 14.2846C18.5279 14.2846 18.7119 14.2477 18.8835 14.1757C19.0552 14.1037 19.2116 13.9981 19.343 13.8652C19.4743 13.7322 19.5771 13.5739 19.6482 13.4002C19.7193 13.2265 19.7574 13.0403 19.7574 12.8523C19.7574 12.6642 19.7193 12.4781 19.6482 12.3044C19.5771 12.1306 19.4743 11.9723 19.343 11.8394C19.2116 11.7064 19.0552 11.6008 18.8835 11.5288C18.7119 11.4569 18.5279 11.4199 18.3422 11.4199H5.64337C5.26818 11.4199 4.90788 11.5709 4.64257 11.8394C4.37727 12.1079 4.22811 12.4725 4.22811 12.8523C4.22811 13.0403 4.26465 13.2265 4.33574 13.4002C4.40684 13.5739 4.5112 13.7322 4.64257 13.8652C4.77394 13.9981 4.93037 14.1037 5.10201 14.1757C5.27365 14.2477 5.45759 14.2846 5.64337 14.2846H18.3422Z",fill:"#1C2A40"})))},i=o.a.forwardRef((e,t)=>o.a.createElement(r,c({svgRef:t},e)));a.p},239:function(e,t,a){e.exports=a.p+"static/media/CloseIcon.31f52534.svg"},240:function(e,t,a){},247:function(e,t,a){"use strict";var n=a(0),l=a.n(n),o=a(68),c=a.n(o),r=a(35);a(272);const i=Object(r.cn)("Input-Wrapper");t.a=e=>{let{children:t,width:a,label:n="",isLabelWhite:o=!1,isRequired:r=!1,suggestions:s=!1,onSuggestionClick:d=(()=>{}),isLabelCentered:m=!1,isLabelSmall:u=!1,textError:p="",errorClass:C=""}=e;return l.a.createElement("div",{className:i({width:a,Error:!!p})},n&&l.a.createElement("p",{className:i("Label",{label_center:m,small:u,isLabelWhite:o})},n,l.a.createElement("span",null,r?"*":"")),l.a.createElement("div",{className:i("Content")},t),!!p&&l.a.createElement("div",{className:"".concat(i("Error")," ").concat(C)},p),!!s&&l.a.createElement("div",{className:i("Suggestions")},c.a.unionBy(s,"key").map(e=>l.a.createElement("div",{key:e.key,className:"Item",onClick:()=>d(e)},e.value))))}},268:function(e,t,a){"use strict";var n=a(0),l=a.n(n),o=a(35),c=a(28),r=a.n(c),i=(a(269),a(270)),s=a.n(i),d=a(271),m=a.n(d);const u=Object(o.cn)("Input"),p=Object(n.forwardRef)((e,t)=>{let{heightFull:a,type:n,name:o,placeholder:c,prefixValue:i,value:d,autocomplete:p,isError:C,showConfirm:_,disabled:g,width:h,maxLength:E,onChange:v,onClick:b,onBlur:f=(()=>{}),RightInlineElement:L,LeftOutlineElement:k,RightOutlineElement:S,inputStyles:N,attributes:B,withoutIcon:y}=e;const O=!!d&&!C&&!g;return l.a.createElement("div",{className:u()},!!k&&l.a.createElement("div",{className:r()("Left-Outline-Element-Container",{Confirmed:O})},k),l.a.createElement("label",{htmlFor:o,className:u("Inline",{error:C,width:h,disabled:g,has_right_element_outline:!!S,has_left_element_outline:!!k,heightFull:a}),onClick:b,onKeyDown:b,onBlur:f,role:"presentation"},!!i&&l.a.createElement("span",{className:"prefix"},i),l.a.createElement("div",{className:"Wrapper-Block"},l.a.createElement("input",Object.assign({id:o,className:"input",type:n,name:o,disabled:g,placeholder:c,autoComplete:p,ref:t,value:d,maxLength:E,onChange:v,style:N},B))),!!L&&l.a.createElement("div",{className:"Right-Inline-Container"},L),C&&!y&&l.a.createElement("div",{className:"Error-Container"},l.a.createElement("img",{src:s.a,alt:"Ошибка"})),!!_&&O&&l.a.createElement("div",{className:"Confirm-Container"},l.a.createElement("img",{src:m.a,alt:"Все верно"}))),!!S&&l.a.createElement("div",{className:r()("Right-Outline-Element-Container",{Confirmed:O})},S))});p.defaultProps={heightFull:!1,type:"text",name:void 0,prefixValue:"",placeholder:"",autocomplete:"off",isError:!1,showConfirm:!1,disabled:!1,width:void 0,maxLength:200,onChange:()=>{},onClick:()=>{},RightInlineElement:null,LeftOutlineElement:null,RightOutlineElement:null,attributes:{},value:""},t.a=p},269:function(e,t,a){},270:function(e,t,a){e.exports=a.p+"static/media/ErrorIcon.b2d5b539.svg"},271:function(e,t,a){e.exports=a.p+"static/media/ConfirmIcon.084f6379.svg"},272:function(e,t,a){},294:function(e,t,a){e.exports={Description:"support_Description__266tV",mainContainer:"support_mainContainer__JIls1",container:"support_container__1zgGe",mainIcon:"support_mainIcon__20q-g",mainIconOpen:"support_mainIconOpen__-Hp0O",icon:"support_icon__2cLc6",columnsBlock:"support_columnsBlock__58GAJ",column:"support_column__274Wf",iconOpen:"support_iconOpen__ruWaf",iconBlock:"support_iconBlock__1dFkD",title:"support_title__3bd0n",mainDescription:"support_mainDescription__3SotO",mainTitle:"support_mainTitle__1oR8u",description:"support_description__33Gq1",mainHeader:"support_mainHeader__2yceu",underHeader:"support_underHeader__U7MYy",header:"support_header__E7h-X",contentSlider:"support_contentSlider__3Farn"}},302:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}
1));var n=a(0),l=a(255);function o(){const[e,t]=Object(n.useState)(!1);return{isLoading:e,setLoading:t,fetchAddressData:async function(e,a,n,o,c){t(!0);try{const{suggestions:r}=await Object(l.a)({query:e,from_bound:a,to_bound:n,locations:c,restrict_value:o});return r}catch(e){console.error(e)}finally{t(!1)}return[]}}}},303:function(e,t,a){e.exports={Description:"Addess_Description__HBCiK",button:"Addess_button__1vX2b",wrapperForm:"Addess_wrapperForm__1MFcu",field:"Addess_field__W-dFm","ant-select-single":"Addess_ant-select-single__NJndK","ant-select-selector":"Addess_ant-select-selector__CcjIe",region:"Addess_region__2LBvK",city:"Addess_city__23NW6",street:"Addess_street__3uS3S",house:"Addess_house__2VVKF",flat:"Addess_flat__2hJCg",salary:"Addess_salary__IS7bK",salaryCurrencyBlock:"Addess_salaryCurrencyBlock__uoP8_",blackBg:"Addess_blackBg__HTmVI",option:"Addess_option__ed3WO",dropdown:"Addess_dropdown__2exOS",errorText:"Addess_errorText__1KrkP",errorBlock:"Addess_errorBlock__2T0hi",noErrorBlock:"Addess_noErrorBlock__30vr1",nextButtonDesktop:"Addess_nextButtonDesktop__1bdNY"}},314:function(e,t,a){"use strict";var n,l,o=a(0),c=a.n(o),r=a(28),i=a.n(r);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}const d=e=>{let{svgRef:t,title:a,...o}=e;return c.a.createElement("svg",s({width:14,height:13,viewBox:"0 0 14 13",fill:"none",ref:t},o),a?c.a.createElement("title",null,a):null,n||(n=c.a.createElement("path",{d:"M6.97998 1.57031V11.8203",stroke:"#F76083",strokeWidth:1.7878,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=c.a.createElement("path",{d:"M12.1101 6.69922H1.86011",stroke:"#F76083",strokeWidth:1.7878,strokeLinecap:"round",strokeLinejoin:"round"})))},m=c.a.forwardRef((e,t)=>c.a.createElement(d,s({svgRef:t},e)));a.p;var u=a(1),p=a(211),C=a(293),_=a.n(C);const g=e=>{let{open:t,onTriggerOpening:a,onTriggerClosing:n,children:l,triggerClassName:o,triggerOpenedClassName:r,trigger:i,classParentString:s=""}=e;return c.a.createElement(_.a,{open:t,classParentString:s,triggerClassName:o,triggerOpenedClassName:r,triggerTagName:"div",onTriggerOpening:a,onTriggerClosing:n,trigger:i},l)};var h=a(294),E=a.n(h);t.a=()=>{const e=Math.ceil(u.pb.length/2),t=u.pb.slice(0,e),a=u.pb.slice(e),[n,l]=Object(o.useState)(null),[r,s]=Object(o.useState)(()=>window.innerWidth>720),d=e=>e.map(e=>{const t=(e=>{const t=u.pb.findIndex(t=>t.title===e);return-1===t?null:t})(e.title);return c.a.createElement(g,Object.assign({key:t},e,{open:n===t,onTriggerOpening:()=>l(t),onTriggerClosing:()=>l(null),triggerClassName:E.a.header,classParentString:E.a.container,triggerOpenedClassName:E.a.header,trigger:c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:E.a.title},e.title),c.a.createElement("div",{className:E.a.iconBlock},c.a.createElement(m,{className:i()(E.a.icon,{[E.a.iconOpen]:n===t})})))}),c.a.createElement("div",{className:E.a.content},c.a.createElement("div",{className:E.a.contentSlider},c.a.createElement("p",{className:E.a.description},e.description))))});return c.a.createElement(g,{open:r,onTriggerOpening:()=>s(!0),onTriggerClosing:()=>s(!1),triggerClassName:E.a.mainHeader,classParentString:E.a.mainContainer,triggerOpenedClassName:E.a.mainHeader,trigger:c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:E.a.underHeader},c.a.createElement("p",{className:E.a.mainTitle},"Часто задаваемые вопросы"),c.a.createElement(p.a,{className:i()(E.a.mainIcon,{[E.a.mainIconOpen]:r})})),c.a.createElement("p",{className:E.a.mainDescription},"Ответы на наиболее часто задаваемые вопросы, которые позволят узнать чуть больше о работе сервиса и условиях договора."))},c.a.createElement("div",{className:E.a.columnsBlock},c.a.createElement("div",{className:E.a.column},d(t)),c.a.createElement("div",{className:E.a.column},d(a))))}},332:function(e,t,a){},333:function(e,t,a){e.exports={Description:"ContractDetails_Description__1QIPA",container:"ContractDetails_container__ScneH"}},334:function(e,t,a){e.exports=a.p+"static/media/CloseEmpty.037feb97.svg"},345:function(e,t,a){e.exports=a.p+"static/media/Installment.387fe059.svg"},346:function(e,t,a){e.exports=a.p+"static/media/Optimal.74f387b5.svg"},347:function(e,t,a){e.exports=a.p+"static/media/BeforeSalary.ad08a230.svg"},352:function(e,t,a){e.exports={Description:"PhotoCard_Description__33cNi",card:"PhotoCard_card__1kqFc",required:"PhotoCard_required__2XUgE","required--red":"PhotoCard_required--red__3gUVK",content:"PhotoCard_content__35j3o",borderErrorContent:"PhotoCard_borderErrorContent__bo-ki",de
1scription:"PhotoCard_description__1HiLP",head:"PhotoCard_head__3PiF6",borderSuccess:"PhotoCard_borderSuccess__2yq6a",border:"PhotoCard_border__1v8am",readyImageBlock:"PhotoCard_readyImageBlock__yxIyy",block:"PhotoCard_block__IrLYQ",loaderBlock:"PhotoCard_loaderBlock__2kb9o",blockImage:"PhotoCard_blockImage__2Xv7M",photoBlock:"PhotoCard_photoBlock__2NLo_",heightIos:"PhotoCard_heightIos__26oBb",heightNoIos:"PhotoCard_heightNoIos__2mZ2-",loaderIos:"PhotoCard_loaderIos__STfUi",loaderNonIos:"PhotoCard_loaderNonIos__28Mxk",controlContainerScreenshot:"PhotoCard_controlContainerScreenshot__2UCmD",screenshot:"PhotoCard_screenshot__2V1wK",changePhotoBlock:"PhotoCard_changePhotoBlock__3CGsA",controlContainer:"PhotoCard_controlContainer__1tWOK",noImageBlock:"PhotoCard_noImageBlock__2QaW4",centerBlock:"PhotoCard_centerBlock__deVKn",centerTitle:"PhotoCard_centerTitle__3BHHW",passportImg:"PhotoCard_passportImg__2qw7B",plusImg:"PhotoCard_plusImg__op5U0",cartImg:"PhotoCard_cartImg__Xo4JD",imagePadding:"PhotoCard_imagePadding__1Oj7A",readyImage:"PhotoCard_readyImage__288Ca",cartImage:"PhotoCard_cartImage__37yYq",customButton:"PhotoCard_customButton__1XqRn",customTitle:"PhotoCard_customTitle__9usNA",input:"PhotoCard_input__zQikr",title:"PhotoCard_title__1pjAj",btn:"PhotoCard_btn__1VlB2",btnActive:"PhotoCard_btnActive__2GK21","btn--load":"PhotoCard_btn--load__3Cqtx",btnContainer:"PhotoCard_btnContainer__2KQco","delete-btn":"PhotoCard_delete-btn__2ykGC","open-text":"PhotoCard_open-text__y-T-M",creditLineApprove:"PhotoCard_creditLineApprove__2WOIS",subTitle:"PhotoCard_subTitle__3ygIf",canvas:"PhotoCard_canvas__19GJq",screenshotImage:"PhotoCard_screenshotImage__1QyUB",displayCover:"PhotoCard_displayCover__2drvl",video:"PhotoCard_video__2Mk1a",videoDouble:"PhotoCard_videoDouble__3Xmr3",controlContainerBtn:"PhotoCard_controlContainerBtn__31GQm",controlBtn:"PhotoCard_controlBtn__2iUav",buttonDisabled:"PhotoCard_buttonDisabled__1ZhWM",controlContainerScreenshotActive:"PhotoCard_controlContainerScreenshotActive__2bWmD",controlText:"PhotoCard_controlText__2NFsc",controls:"PhotoCard_controls__7shRo",videoSelect:"PhotoCard_videoSelect__CSty5",contentModal:"PhotoCard_contentModal__L2Nkg",crossButton:"PhotoCard_crossButton__3I1dg",responsiveContainer:"PhotoCard_responsiveContainer__2-C-C",titleMain:"PhotoCard_titleMain__1hnLA",titleModal:"PhotoCard_titleModal__1NoPM",descriptionError:"PhotoCard_descriptionError___geCA"}},406:function(e,t,a){},407:function(e,t,a){e.exports={loanLimitProgressBar:"LoanLimitProgressBar_loanLimitProgressBar__1XCI6",emptyBar:"LoanLimitProgressBar_emptyBar__B6Dc9",description:"LoanLimitProgressBar_description__3zZ31"}},408:function(e,t,a){e.exports={header:"Header_header__2xvsp",logoutButton:"Header_logoutButton__1JZmh"}},409:function(e,t,a){e.exports=a.p+"static/media/DocsIcon.017e3a9e.svg"},410:function(e,t,a){e.exports=a.p+"static/media/DeleteAccount.ca62d629.svg"},411:function(e,t,a){e.exports=a.p+"static/media/DeleteAccountIcon.46dfffa8.svg"},412:function(e,t,a){},413:function(e,t,a){e.exports={Description:"GraphicMobile_Description__2nDEd",container:"GraphicMobile_container__3Zii6",title:"GraphicMobile_title__3WGxc",headerLimit:"GraphicMobile_headerLimit__1oLri",headerBlock:"GraphicMobile_headerBlock__1ztpQ",closeBlock:"GraphicMobile_closeBlock__1UiT2",closeTitle:"GraphicMobile_closeTitle__28up0",graphicBlock:"GraphicMobile_graphicBlock__3axal",graphicTitle:"GraphicMobile_graphicTitle__3JuBH",graphicDescription:"GraphicMobile_graphicDescription__2-tsn",lineBlock:"GraphicMobile_lineBlock__2ucCH",vertical:"GraphicMobile_vertical__3Oa28",horizontal:"GraphicMobile_horizontal__18NIt",line:"GraphicMobile_line__3u9Eq",columnsBlock:"GraphicMobile_columnsBlock__1gNKR",columnBlock:"GraphicMobile_columnBlock__1GJ2m",column:"GraphicMobile_column__2wdii",columnText:"GraphicMobile_columnText__2i57t",columnIcon:"GraphicMobile_columnIcon__QRNIm"}},414:function(e,t,a){},415:function(e,t,a){e.exports={Description:"agreementConditions_Description__2DxY3",isOpenContainer:"agreementConditions_isOpenContainer__20XjX",container:"agreementConditions_container__2z2jE",details:"agreementConditions_details__9mb7U",detailsNameBlock:"agreementConditions_detailsNameBlock__2bgRN",detailsName:"agreementConditions_detailsName__EGoFb",detailsGraphicLink:"agreementConditions_detailsGraphicLink__fLlcn",cross:"agreementConditions_cross__36Ymh"}},416:function(e,t,a){e.exports={Description:"customRange_Description__3rV39",range:"customRange_range__3nF_E",containerMobile:"customRange_containerMobile__2EcV6",containerDesktop:"customRange_containerDesktop__1CIpu",upBlock:"customRange_upBlock__25If2",priceBlock:"customRange_priceBlock__34CN_",price:"customRange_price__1fvMl"}},417:function(e,t,a){e.exports={Description:"contractDetailsNew_Description__1G1nb",expandBlock:"contractDetailsNew_expandBlock__1kA7w",expandDesktop:"contractDetailsNew_expandDesktop___I-A_",flexBlock:"contractDetailsNew_flexBlock__3wztj",transactionRightColumn:"contractDetailsNew_transactionRightColumn__3VMZz",transactionCenterColumn:"contractDetailsNew_transactionCenterColumn__EHrCv",transactionLeftColumn:"contractDetailsNew_transactionLeftColumn___haae",detailsBlock:"contractDetailsNew_detailsBlock__3L6qM",isOpenTransactionContainer:"contractDetailsNew_isOpenTransactionContainer__zEf0Z",transactionIconTitleBlock:"contractDetailsNew_transactionIconTitleBlock__1USul",transactionTitle:"contractDetailsNew_transactionTitle__X3tFB",transactionTable:"contractDetailsNew_transactionTable__1_8sc",transactionTableRow:"contractDetailsNew_transactionTableRow__3nxwq",loader:"contractDetailsNew_loader__Z7Ghs",loaderOpen:"contractDetailsNew_loaderOpen__3SPFD",loaderClose:"contractDetailsNew_loaderClose__3gKJW",loaderTitle:"contractDetailsNew_loaderTitle__1q5lu",container:"contractDetailsNew_container__iUddd",titleBlock:"contractDetailsNew_titleBlock__2ekF4",title:"contractDetailsNew_title__YBJaD",contentBlock:"contractDetailsNew_contentBlock__2OrO1",rightBlockMain:"contractDetailsNew_rightBlockMain__1mkvf",leftBlock:"contractDetailsNew_leftBlock__1rflR",upBlock:"contractDetailsNew_upBlock__2eEKU",currentLoadTitle:"contractDetailsNew_currentLoadTitle__1gKmj",titleUpBlock:"contractDetailsNew_titleUpBlock__3fFbe",futurePaymentDetailsAmount:"contractDetailsNew_futurePaymentDetailsAmount__2WVj7",leftRightBlockMain:"contractDetailsNew_leftRightBlockMain__1VPmt",rightBlock:"contractDetailsNew_rightBlock__70o1C",rightBlockTitle:"contractDetailsNew_rightBlockTitle__1oIxx",rightBlockDescription:"contractDetailsNew_rightBlockDescription__3gnC0",inputContainer:"contractDetailsNew_inputContainer__2aPjy",inputCustom:"contractDetailsNew_inputCustom__3iLJh",button:"contractDetailsNew_button__qbr4v",cross:"contractDetailsNew_cross__yJtFh"}},418:function(e,t,a){e.exports={Description:"myPayments_Description__1BKF_",container:"myPayments_container__3KHDD",headerLimit:"myPayments_headerLimit__oIPz4",headerNoLimit:"myPayments_headerNoLimit__11E4P"}},419:function(e,t,a){},420:function(e,t,a){e.exports={LoadingBlock:"PreLoader_LoadingBlock__2WDXc",Loa
1dingText:"PreLoader_LoadingText__2pwxI",LoadingPoints:"PreLoader_LoadingPoints___-A4j"}},421:function(e,t,a){e.exports={Description:"mobileModalProfile_Description__1Dw5W",modalBlock:"mobileModalProfile_modalBlock__20lcs",modalTitle:"mobileModalProfile_modalTitle__i_zV1",modalDescription:"mobileModalProfile_modalDescription__37eRG"}},422:function(e,t,a){e.exports={Description:"withInfoProfileWrapper_Description__2u-FI",container:"withInfoProfileWrapper_container__2RWjI",limit:"withInfoProfileWrapper_limit__2RcgT",zeroLimit:"withInfoProfileWrapper_zeroLimit__3qV2Z",mainBlock:"withInfoProfileWrapper_mainBlock__gK4Xu",header:"withInfoProfileWrapper_header__Z5SBF",title:"withInfoProfileWrapper_title__2CQYu",description:"withInfoProfileWrapper_description__1-9-g",question:"withInfoProfileWrapper_question__23gp9",centralContentWrapper:"withInfoProfileWrapper_centralContentWrapper__2tw2b",plug:"withInfoProfileWrapper_plug__1Y5g_",buttonsBlock:"withInfoProfileWrapper_buttonsBlock__1jRiQ",button:"withInfoProfileWrapper_button__3fpOW",titleChevronBlock:"withInfoProfileWrapper_titleChevronBlock__2sa7O",chevron:"withInfoProfileWrapper_chevron__3lt7Y",chevronBlock:"withInfoProfileWrapper_chevronBlock__1s-1m",activeButton:"withInfoProfileWrapper_activeButton__HPe6z",centralContent:"withInfoProfileWrapper_centralContent__29x8N"}},423:function(e,t,a){e.exports={Description:"DocumentsPage_Description__29xlG",document:"DocumentsPage_document__3J4ev",downLoadIcon:"DocumentsPage_downLoadIcon__18wN7",icon:"DocumentsPage_icon__1HBnq",iconCheck:"DocumentsPage_iconCheck__1Tx7s",iconOthers:"DocumentsPage_iconOthers__xUuzM",title:"DocumentsPage_title__2CduI"}},424:function(e,t,a){e.exports=a.p+"static/media/DeleteAccount.f62687a4.png"},425:function(e,t,a){},426:function(e,t,a){e.exports=a.p+"static/media/AccountModerationStatusInvalidData.ce7632be.svg"},427:function(e,t,a){e.exports=a.p+"static/media/AccountModerationStatusOnCheck.8a89b100.svg"},428:function(e,t,a){},429:function(e,t,a){e.exports=a.p+"static/media/ContractPaymentRejectIcon.0bc933db.svg"},430:function(e,t,a){e.exports=a.p+"static/media/ContractPaymentSuccessIcon.a0cb0b6d.svg"},431:function(e,t,a){e.exports={feedbackWrapper:"PaymentFeedback_feedbackWrapper__2fQD5",feedbackBlock:"PaymentFeedback_feedbackBlock__3TCVg",feedback:"PaymentFeedback_feedback__1olF9",raitContainer:"PaymentFeedback_raitContainer__2bLeF",feedbacksContainer:"PaymentFeedback_feedbacksContainer__2yG4M",number:"PaymentFeedback_number__39V_z",bottomText:"PaymentFeedback_bottomText__12dKH",text:"PaymentFeedback_text__q4k4O",textRight:"PaymentFeedback_textRight__2_ZLe",textarea:"PaymentFeedback_textarea__b-CNG",button:"PaymentFeedback_button__2gG1m",ratingText:"PaymentFeedback_ratingText__EvrzJ"}},432:function(e,t,a){e.exports=a.p+"static/media/ContractNewStatusIcon.ccd11db5.svg"},433:function(e,t,a){e.exports={Description:"TakeLoanWaitingScreen_Description__1GOT7",container:"TakeLoanWaitingScreen_container__14Ct7",isPaymentBlock:"TakeLoanWaitingScreen_isPaymentBlock__1Txbm",upBlock:"TakeLoanWaitingScreen_upBlock__295Ie",upBlockOnly:"TakeLoanWaitingScreen_upBlockOnly__2XWhW",upInfoBlock:"TakeLoanWaitingScreen_upInfoBlock__3zap1",upInfoBlockOnly:"TakeLoanWaitingScreen_upInfoBlockOnly__2iaC4",upTitle:"TakeLoanWaitingScreen_upTitle__2SB-M",upTitleOnly:"TakeLoanWaitingScreen_upTitleOnly__1bs1L",upImage:"TakeLoanWaitingScreen_upImage__Xyu-b",upImageOnly:"TakeLoanWaitingScreen_upImageOnly__1JaMn",upDescription:"TakeLoanWaitingScreen_upDescription__2m4t5",upDescriptionOnly:"TakeLoanWaitingScreen_upDescriptionOnly__1GKPI",clickableDescPart:"TakeLoanWaitingScreen_clickableDescPart__2xW3p",mobilePlug:"TakeLoanWaitingScreen_mobilePlug__2pbgb"}},434:function(e,t,a){e.exports={Description:"support_Description__12Ycn",container:"support_container__225vG",upBlock:"support_upBlock__2uzUL",headerLimit:"support_headerLimit__16Z5f",footer:"support_footer__1I7Jo",de
1scription:"support_description__3shAO",mediaBlock:"support_mediaBlock__3Nqsm",chatBlockDesktop:"support_chatBlockDesktop__2ucF3",chatBlockMobile:"support_chatBlockMobile__3zNoz",link:"support_link__4oPOM",linkSquare:"support_linkSquare__3NRN6",buttonLink:"support_buttonLink__2F1AH",buttonLinkText:"support_buttonLinkText__29VDh"}},435:function(e,t,a){e.exports={Description:"animatedSignBlock_Description__2wfin",Arrow:"animatedSignBlock_Arrow__2XZJ5",ArrowBack:"animatedSignBlock_ArrowBack__1rFZW",ArrowForward:"animatedSignBlock_ArrowForward__1z9d7",PageAddContract:"animatedSignBlock_PageAddContract__3HuH3",mobileSignatureStep:"animatedSignBlock_mobileSignatureStep__1tDPV",axiosGraphic:"animatedSignBlock_axiosGraphic__2Y2oy",Header:"animatedSignBlock_Header__myPjI",MaxAmountContainer:"animatedSignBlock_MaxAmountContainer__KJGTL",MaxAmountIconContainer:"animatedSignBlock_MaxAmountIconContainer__3zLEe",MaxAmountTitle:"animatedSignBlock_MaxAmountTitle__20AT2",MaxAmountDescription:"animatedSignBlock_MaxAmountDescription__4hDUT",Title:"animatedSignBlock_Title__3h-MJ",StepsContainer:"animatedSignBlock_StepsContainer__2vpv1",SubHeader:"animatedSignBlock_SubHeader__1tCdO",SubHeaderMobile:"animatedSignBlock_SubHeaderMobile__1TAud",carouselWrapper:"animatedSignBlock_carouselWrapper__1Fr3B",ProductsContainer:"animatedSignBlock_ProductsContainer__1fPbs",ProductsBlock:"animatedSignBlock_ProductsBlock__1A-f3",secondBlockWrapper:"animatedSignBlock_secondBlockWrapper__3QsIq",Product:"animatedSignBlock_Product__3gDe1",Button:"animatedSignBlock_Button__2NEQZ",blockedMode:"animatedSignBlock_blockedMode__MnubO",descriptionMode:"animatedSignBlock_descriptionMode__YxH85",isSelected:"animatedSignBlock_isSelected__3sYe7",BeforeSalaryImg:"animatedSignBlock_BeforeSalaryImg__2h2x2",StandartImg:"animatedSignBlock_StandartImg__zLKzU",OptimalImg:"animatedSignBlock_OptimalImg__15n5d",ProductName:"animatedSignBlock_ProductName__Hn4FD",ProductDescriptionBlock:"animatedSignBlock_ProductDescriptionBlock__1WiMR",ProductDescription:"animatedSignBlock_ProductDescription__2fXYg",ProductSelect:"animatedSignBlock_ProductSelect__3zDMn",ParamsAndSuggestionContainer:"animatedSignBlock_ParamsAndSuggestionContainer__2R-hs",CloseBlock:"animatedSignBlock_CloseBlock__2Q9JW",SmsErrorBlock:"animatedSignBlock_SmsErrorBlock__2Z3EH",SmsErrorText:"animatedSignBlock_SmsErrorText__WzpeV",CalculateBtn:"animatedSignBlock_CalculateBtn__jVPlP",ParamsContainer:"animatedSignBlock_ParamsContainer__UWEub","Input-Wrapper":"animatedSignBlock_Input-Wrapper__3tvUx",ParamsTitle:"animatedSignBlock_ParamsTitle__106H_",ParamsField:"animatedSignBlock_ParamsField__3sssp",ParamsFieldDescription:"animatedSignBlock_ParamsFieldDescription__2iHRT",askIcon:"animatedSignBlock_askIcon__2FGGk",wrapperBottom:"animatedSignBlock_wrapperBottom__G-7o5",bottomHeader:"animatedSignBlock_bottomHeader__1mqUx",bottomText:"animatedSignBlock_bottomText__2l4Kh",closeIcon:"animatedSignBlock_closeIcon__2jO9m",PreSuggestionContainer:"animatedSignBlock_PreSuggestionContainer__1q-MD",PreSuggestionTitle:"animatedSignBlock_PreSuggestionTitle__1Y0Xh",PreSuggestionDescriptionContainer:"animatedSignBlock_PreSuggestionDescriptionContainer__1lmmf",PreSuggestionDescription:"animatedSignBlock_PreSuggestionDescription__3mZC0",SuggestionContainer:"animatedSignBlock_SuggestionContainer__1N_d_",SuggestionTitle:"animatedSignBlock_SuggestionTitle__3T8Fm",SuggestionCalculationContainer:"animatedSignBlock_SuggestionCalculationContainer__3m0QB",SuggestionPaymentContainer:"animatedSignBlock_SuggestionPaymentContainer__3yTn2",SuggestionPaymentTitle:"animatedSignBlock_SuggestionPaymentTitle__D-s0f",SuggestionPaymentDescription:"animatedSignBlock_SuggestionPaymentDescription__33LPH",SuggestionFirstPaymentContainer:"animatedSignBlock_SuggestionFirstPaymentContainer__2PXGa",SuggestionMonthPaymentContainer:"animatedSignBlock_SuggestionMonthPaymentContainer__2dRY2",SuggestionOverPaymentContainer:"animatedSignBlock_SuggestionOverPaymentContainer__2JRPG",SuggestionActionsContainer:"animatedSignBlock_SuggestionActionsContainer__sVkHW",ClickedText:"animatedSignBlock_ClickedText__2SMMI",SmsContainer:"animatedSignBlock_SmsContainer__1eM_u",leftTopBlock:"animatedSignBlock_leftTopBlock__3OA5t",SmsLeftBlock:"animatedSignBlock_SmsLeftBlock__30xzm",wrapperBlock:"animatedSignBlock_wrapperBlock__Bd0-p",signatureContainer:"animatedSignBlock_signatureContainer__2dxf7",leftBlock:"animatedSignBlock_leftBlock__1MvPR",chevronBlock:"animatedSignBlock_chevronBlock__K4aMN",chevron:"animatedSignBlock_chevron__1lY_R",leftBlockTitle:"animatedSignBlock_leftBlockTitle__366ha",flexBlock:"animatedSignBlock_flexBlock__12OaI",activeBlock:"animatedSignBlock_activeBlock__G20uu",agreementCheckbox:"animatedSignBlock_agreementCheckbox__1iWgD",commonTitle:"animatedSignBlock_commonTitle__1m4yO",agreementTitle:"animatedSignBlock_agreementTitle__1EscQ",miniTitle:"animatedSignBlock_miniTitle__2wL1Z",boldClass:"animatedSignBlock_boldClass__3Xwz5",CreditReport:"animatedSignBlock_CreditReport__2H98T",CreditReportLittle:"animatedSignBlock_CreditReportLittle__1LGhl",CreditReportLittleAmount:"animatedSignBlock_CreditReportLittleAmount__2kAsl",PartnersTitle:"animatedSignBlock_PartnersTitle__25cmE",textBlock:"animatedSignBlock_textBlock__20zND",BidLow:"animatedSignBlock_BidLow__1-7M4",bidGotBlock:"animatedSignBlock_bidGotBlock__2qSVq",YouGet:"animatedSignBlock_YouGet__QWJWf",Price:"animatedSignBlock_Price__2zUpV",lowestText:"animatedSignBlock_lowestText__2tnrE",SmsVerifiedContainer:"animatedSignBlock_SmsVerifiedContainer__CUkTh","Input-Inline":"animatedSignBlock_Input-Inline__EPCpr","Input-Wrapper-Label":"animatedSignBlock_Input-Wrapper-Label__3643X","Input-Wrapper-Error":"animatedSignBlock_Input-Wrapper-Error__3lgEL",codeGroup:"animatedSignBlock_codeGroup__wDSdp",group:"animatedSignBlock_group__2IsM7",ButtonCountBlock:"animatedSignBlock_ButtonCountBlock__2LWNo",countdown:"animatedSignBlock_countdown__2oQUZ",SmsVerifiedDescriptionTop:"animatedSignBlock_SmsVerifiedDescriptionTop__1ED5H",marginBIos:"animatedSignBlock_marginBIos__kWZQ0",marginBNoIos:"animatedSignBlock_marginBNoIos__2QNEQ",descriptionBottom:"animatedSignBlock_descriptionBottom__2BfAD",descriptionBottomMobileInfo:"animatedSignBlock_descriptionBottomMobileInfo__I7H2C",descriptionBottomDesktopInfo:"animatedSignBlock_descriptionBottomDesktopInfo__2iEev",descriptionBottomMobile:"animatedSignBlock_descriptionBottomMobile__2MRor",descriptionBottomDesktop:"animatedSignBlock_descriptionBottomDesktop__3xh0B",descriptionPlug:"animatedSignBlock_descriptionPlug__2tNbR",sendSmsCodeBlock:"animatedSignBlock_sendSmsCodeBlock__2_Hu8",DescriptionLowest:"animatedSignBlock_DescriptionLowest__2fM8Q",ContainerStatus:"animatedSignBlock_ContainerStatus__2xfVd",ContractStatusContainer:"animatedSignBlock_ContractStatusContainer__3s2bj",ContractStatusButton:"animatedSignBlock_ContractStatusButton__3HfEX",ContractStatusTitle:"animatedSignBlock_ContractStatusTitle__dnLi5",ContractStatusDescription:"animatedSignBlock_ContractStatusDescription__3YrK7",ContractReject:"animatedSignBlock_ContractReject__2HJU7",CongratulationContainer:"animatedSignBlock_CongratulationContainer__e0ir3",CongratulationTitle:"animatedSignBlock_CongratulationTitle__1JpUO",CongratulationDescription:"animatedSignBlock_CongratulationDescription__iRMVz",rightBlockWrapper:"animatedSignBlock_rightBlockWrapper__2cYWu",ButtonLinkDoc:"animatedSignBlock_ButtonLinkDoc__3Shp8",BeforeSalaryMobileImg:"animatedSignBlock_BeforeSalaryMobileImg__I4Gfd",StandartMobileImage:"animatedSignBlock_StandartMobileImage__2lTfm",OptimalMobileImg:"animatedSignBlock_OptimalMobileImg__2FHpZ",ProductMobile:"animatedSignBlock_ProductMobile__3T9g8",AskButton:"animatedSignBlock_AskButton__evdcv",description:"animatedSignBlock_description__37XB1",closeButton:"animatedSignBlock_closeButton__3gq16",ReceiveMethodContainer:"animatedSignBlock_ReceiveMethodContainer__1bQer",SelectMethodsContainer:"animatedSignBlock_SelectMethodsContainer__39S4O",SelectMethodContainer:"animatedSignBlock_SelectMethodContainer__4kkG_",SelectMethodContainer_disabled:"animatedSignBlock_SelectMethodContainer_disabled__39f1O",SelectMethodContainer_selected:"animatedSignBlock_SelectMethodContainer_selected__pnKBr",Amount:"animatedSignBlock_Amount__1yYdo",Tax:"animatedSignBlock_Tax__189zJ",Promo:"animatedSignBlock_Promo__1iw8s",TaxSpace:"animatedSignBlock_TaxSpace__112l3",rightWrapper:"animatedSignBlock_rightWrapper__v1tc3",rightWrapperPlug:"animatedSignBlock_rightWrapperPlug__23dTJ",rightWrapperLoading:"animatedSignBlock_rightWrapperLoading__F43_k",resend:"animatedSignBlock_resend__3wiU2",resendButton:"animatedSignBlock_resendButton__3ZQUy",resendText:"animatedSignBlock_resendText__2vNaS",codeField:"animatedSignBlock_codeField__3gV5P",errorInput:"animatedSignBlock_errorInput__3RQv_",rightBlockDescription:"animatedSignBlock_rightBlockDescription__2a-Mr",brMobile:"animatedSignBlock_brMobile__OZTE7",brDesktop:"animatedSignBlock_brDe
1sktop__1ptLT",SelectMethodIconContainer:"animatedSignBlock_SelectMethodIconContainer__77_1z",SelectMethodName:"animatedSignBlock_SelectMethodName__tDdiz",MethodContainer:"animatedSignBlock_MethodContainer__23HJR",IFrame:"animatedSignBlock_IFrame__2BPGa",SelectMethodActions:"animatedSignBlock_SelectMethodActions__3kQ7s",SelectPhotoMethodActions:"animatedSignBlock_SelectPhotoMethodActions__19UlZ",SelectMethodRightActions:"animatedSignBlock_SelectMethodRightActions__1QU4i",SelectMethodRightActionsBottom:"animatedSignBlock_SelectMethodRightActionsBottom__8uwA2",productBlocked:"animatedSignBlock_productBlocked__3D7SO",buttonsWrapper:"animatedSignBlock_buttonsWrapper__1iqGO",buttonsBlock:"animatedSignBlock_buttonsBlock__O1pep",buttonDesktop:"animatedSignBlock_buttonDesktop__1PG5N",backButton:"animatedSignBlock_backButton__29MMe",hiddenPlug:"animatedSignBlock_hiddenPlug__2Whuc",visiblePlug:"animatedSignBlock_visiblePlug__3NElY",hiddenPlugAcc:"animatedSignBlock_hiddenPlugAcc__2FjI-",visiblePlugAcc:"animatedSignBlock_visiblePlugAcc__3_Vbq",buttonMobile:"animatedSignBlock_buttonMobile__26ypR",codeBlock:"animatedSignBlock_codeBlock__330cU",visible:"animatedSignBlock_visible__2eWdm",accordionDesktop:"animatedSignBlock_accordionDesktop__1kQ7g",accordionMobile:"animatedSignBlock_accordionMobile__1apFd"}},436:function(e,t,a){e.exports={Description:"extraAgreementConditions_Description__3RWUj",container:"extraAgreementConditions_container__2dJ41",details:"extraAgreementConditions_details__3FOel",detailsNameBlock:"extraAgreementConditions_detailsNameBlock__2s3HZ",detailsName:"extraAgreementConditions_detailsName__1F9gz",linkGraphicBlock:"extraAgreementConditions_linkGraphicBlock__ZsnZj",linkGraphic:"extraAgreementConditions_linkGraphic__318Ig"}},437:function(e,t,a){e.exports={Description:"ConfirmCode_Description__1z-ID",container:"ConfirmCode_container__2ktpn",insideBlock:"ConfirmCode_insideBlock__1EWwb",conditions:"ConfirmCode_conditions__38OpD",axiosGraphic:"ConfirmCode_axiosGraphic__1m8bl"}},438:function(e,t,a){e.exports={Description:"NewCart_Description__12XWz",container:"NewCart_container__o9dVX",title:"NewCart_title__2kTq7",loaderBlock:"NewCart_loaderBlock__1eCjO",insideBlock:"NewCart_insideBlock__37Ehz",insideBlockSbp:"NewCart_insideBlockSbp__39Z4U"}}
1,455:function(e,t,a){e.exports={Description:"basics_Description__bw5HM",container:"basics_container__Ec1yK"}},456:function(e,t,a){e.exports={Description:"documents_Description__1TSQ3"}},461:function(e,t,a){e.exports={Description:"registration_Description__203o0"}},462:function(e,t,a){e.exports={Description:"bonuses_Description__3VERH"}},463:function(e,t,a){e.exports=a.p+"static/media/statImg.9fbaeb73.webp"},464:function(e,t,a){e.exports=a.p+"static/media/ratingImg.e21c4322.webp"},465:function(e,t,a){e.exports={Description:"rating_Description__dROgE",sideBlock:"rating_sideBlock__1VszP",ratingBlock:"rating_ratingBlock__3Ag8I",ratingTitle:"rating_ratingTitle__2vp62",ratingDescription:"rating_ratingDescription__O8SCf",statBlock:"rating_statBlock__3-6Pt",statTitle:"rating_statTitle__3xnJD",statDescriptionImage:"rating_statDescriptionImage__3ksrk",actualCreditRatingBlock:"rating_actualCreditRatingBlock__3dVaW",actualCreditRatingTitle:"rating_actualCreditRatingTitle__1Vcki",actualCreditRatingImage:"rating_actualCreditRatingImage__1Tejg",personalServiceBlock:"rating_personalServiceBlock__2GrF-",personalServiceDescription:"rating_personalServiceDescription__G-wht",personalServiceButton:"rating_personalServiceButton__3APp3",ordered:"rating_ordered__12UmT"}},466:function(e,t,a){e.exports={Description:"accountData_Description__4xsyf",container:"accountData_container__27pSX",headerLimit:"accountData_headerLimit__2NokV",titleBlock:"accountData_titleBlock__1VoCd",title:"accountData_title__3ofqx",iconQuestion:"accountData_iconQuestion__E5mAY",tabsBlock:"accountData_tabsBlock__1Blzo",tab:"accountData_tab__1R9GS",activeTab:"accountData_activeTab__3RVG5",childBlock:"accountData_childBlock__e63Rq"}},467:function(e,t,a){e.exports={Description:"paymentComposition_Description__2rpk1",container:"paymentComposition_container__IDBor",upBlock:"paymentComposition_upBlock__2nf99",titleBlock:"paymentComposition_titleBlock__2zhv-",title:"paymentComposition_title__2dp6y",backBlock:"paymentComposition_backBlock__lWTRn",amountUpBlock:"paymentComposition_amountUpBlock__30fGF",greyAmount:"paymentComposition_greyAmount__2U6_T",blackAmount:"paymentComposition_blackAmount__1ZY6v",boldAmount:"paymentComposition_boldAmount__3mZ1w",bottomBlock:"paymentComposition_bottomBlock__SXnTE",buttonsBlock:"paymentComposition_buttonsBlock__8YVa4",button:"paymentComposition_button__3Ss0s",button1:"paymentComposition_button1__2xMGy",backButton:"paymentComposition_backButton__3u2aB",bottomText:"paymentComposition_bottomText__1xMG9"}},468:function(e,t,a){e.exports={Description:"AdditionalServiceItem_Description__E9FdA",container:"AdditionalServiceItem_container__Jj7iO",smallButton:"AdditionalServiceItem_smallButton__378ti",smallButtonActive:"AdditionalServiceItem_smallButtonActive__QfcGF",smallButtonNoActive:"AdditionalServiceItem_smallButtonNoActive__1cOfF",header:"AdditionalServiceItem_header__3A7Ye",headerBottom:"AdditionalServiceItem_headerBottom__31DhB",headerLeft:"AdditionalServiceItem_headerLeft__367nT",title:"AdditionalServiceItem_title__3pGJM",umbrella:"AdditionalServiceItem_umbrella__tg-NM",description:"AdditionalServiceItem_description__3twCi",expiredDescription:"AdditionalServiceItem_expiredDescription__3xajj",button:"AdditionalServiceItem_button__G1t7z",buttonExpired:"AdditionalServiceItem_buttonExpired__txa1V"}},469:function(e,t,a){e.exports={Description:"uploadFile_Description__23ede",container:"uploadFile_container__cv1A0",title:"uploadFile_title__2GHOe",description:"uploadFile_description__1IBGv",btn:"uploadFile_btn__1wfo4",customBr:"uploadFile_customBr__15Dp6"}},470:function(e,t,a){e.exports={Description:"serviceModal_Description__1KaBM",container:"serviceModal_container__1dQUk",closeButton:"serviceModal_closeButton__2znIq",close:"serviceModal_close__2VshQ",maxWidth320:"serviceModal_maxWidth320__18aPr",content:"serviceModal_content__15d7X",docIcon:"serviceModal_docIcon__3xRiC",title:"serviceModal_title__1O4YU",description:"serviceModal_description__2Lx6G",buttonsBlock:"serviceModal_buttonsBlock__NFnJ-",btn:"serviceModal_btn__1Lmlx",noBtn:"serviceModal_noBtn__10mgk",yesBtn:"serviceModal_yesBtn__2Vhhi",yesLinkBtn:"serviceModal_yesLinkBtn__1KbSC",downloadBtn:"serviceModal_downloadBtn__3p7fr",list:"serviceModal_list__1aIHx",clickableText:"serviceModal_clickableText__2C-t0",successIconBlock:"serviceModal_successIconBlock__2wY54",successIcon:"serviceModal_successIcon__3cCqr",successTitle:"serviceModal_successTitle__uTmTv",successDescription:"serviceModal_successDescription__3HZAk"}},471:function(e,t,a){e.exports={Description:"AdditionalServices_Description__1NsYn",container:"AdditionalServices_container__9fBhk",activeButton:"AdditionalServices_activeButton__3lbH4"}},472:function(e,t,a){e.exports={Description:"otherItem_Description__23wbL",container:"otherItem_container__1uURv",arrowIconBlock:"otherItem_arrowIconBlock__2abCD",leftBlock:"otherItem_leftBlock__2rDVJ",iconBlock:"otherItem_iconBlock__3egBs",icon:"otherItem_icon__2I16l",title:"otherItem_title__7s6xE",arrowIcon:"otherItem_arrowIcon__2p2PQ"}},473:function(e,t,a){e.exports={Description:"financeList_Description__3Hmng",container:"financeList_container__uDiZg",leftBlock:"financeList_leftBlock__idNGa",desktopButton:"financeList_desktopButton__3Pk0b",rightBlock:"financeList_rightBlock__2hs28",contentMobile:"financeList_contentMobile__3RteN",chevronBlock:"financeList_chevronBlock__3I_6q",chevron:"financeList_chevron__1M78v",desktopTitle:"financeList_desktopTitle__3tRmr",title:"financeList_title__6F93K"}},474:function(e,t,a){e.exports={cardItem:"cardWrapper_cardItem__FTPTU",disabled:"cardWrapper_disabled__2bzIF",selected:"cardWrapper_selected__1fuIx",loadingPlugBlock:"cardWrapper_loadingPlugBlock__2-MFD",loadingPlug:"cardWrapper_loadingPlug__P4P2I",icon:"cardWrapper_icon__2vfVG",spbIcon:"cardWrapper_spbIcon__1nC8d",cardInfo:"cardWrapper_cardInfo__3HIRO"}},475:function(e,t,a){e.exports={Description:"choeseBank_Description__1Cf8F",container:"choeseBank_container__2OLup",title:"choeseBank_title__1blnF",items:"choeseBank_items__r6FYO",desktop:"choeseBank_desktop__3_Nnw",mobile:"choeseBank_mobile___k5p_",item:"choeseBank_item__2FXkS",image:"choeseBank_image__18TsH",name:"choeseBank_name__1hERC",findBankPlug:"choeseBank_findBankPlug__20pUe",findBankPlugEllipsis:"choeseBank_findBankPlugEllipsis__11Qcz"}},476:function(e,t,a){e.exports={Description:"searchBank_Description__9lw7R",container:"searchBank_container__3NEiD",title:"searchBank_title__1qVAg",inputField:"searchBank_inputField__sZ8OB",underTitle:"searchBank_underTitle__1NSTf",items:"searchBank_items__zJew0",item:"searchBank_item__1Nk78"}},477:function(e,t,a){e.exports={Description:"sbp_Description__3Rino",loaderContainer:"sbp_loaderContainer__3Kjte",loaderBlock:"sbp_loaderBlock__teRWP",parent:"sbp_parent__3ajpF",container:"sbp_container__p1YT9",desktop:"sbp_desktop__2mTFY",mobile:"sbp_mobile__Sl4aS"}},478:function(e,t,a){e.exports={cardSelector:"CardSelector_cardSelector__2gh8f",topBlock:"CardSelector_topBlock__jUICe",bottomBlock:"CardSelector_bottomBlock__37Cag"}},479:function(e,t,a){e.exports={Description:"paymentMethods_Description__11X50",rightBlock:"paymentMethods_rightBlock__1eFAB",message:"paymentMethods_message__3ryDO"}},480:function(e,t,a){e.exports={Description:"paymentType_Description__12ifE",container:"paymentType_container__3hKVt",lowerRightBlockTitle:"paymentType_lowerRightBlockTitle__3Ett6"}},481:function(e,t,a){e.exports={Description:"lifeInsurance_Description__3gFWu",container:"lifeInsurance_container__27iac",titleChevronBlock:"lifeInsurance_titleChevronBlock__1MM1i",chevronBlock:"lifeInsurance_chevronBlock__QDt3I",chevron:"lifeInsurance_chevron__296L1",innerContainer:"lifeInsurance_innerContainer__2VTdy",title:"lifeInsurance_title__8spc
1H",description:"lifeInsurance_description__9MJa5",buttonsBlock:"lifeInsurance_buttonsBlock__1CcY8",button:"lifeInsurance_button___qrD4",activeButton:"lifeInsurance_activeButton__3qkFy"}},482:function(e,t,a){e.exports=a.p+"static/media/AddContractMaxAmount.e66d4ae1.svg"},483:function(e,t,a){e.exports={Description:"blockAddContractPage_Description__2SLNv",container:"blockAddContractPage_container__WJ1i-",innerBlock:"blockAddContractPage_innerBlock__1p7JH",img:"blockAddContractPage_img__1Ib_T",text:"blockAddContractPage_text__2a4Gh",buttonText:"blockAddContractPage_buttonText__1cPyn",button:"blockAddContractPage_button__1p5nt"}},484:function(e,t,a){},485:function(e,t,a){e.exports=a.p+"static/media/RoboSuggestionIcon.341b6ed0.svg"},486:function(e,t,a){},506:function(e,t,a){e.exports=a.p+"static/media/ContractPaymentErrorIcon.98444c76.svg"},508:function(e,t,a){e.exports=a.p+"static/media/plus.2a30e051.webp"},509:function(e,t,a){e.exports=a.p+"static/media/cart.c8acd255.webp"},510:function(e,t,a){e.exports=a.p+"static/media/passport.1f6406a8.webp"},511:function(e,t,a){e.exports={Description:"CardLoadPhoto_Description__3Xpr_",container:"CardLoadPhoto_container__ObRKp",title:"CardLoadPhoto_title__2OnAz",obtainingMethodDesktop:"CardLoadPhoto_obtainingMethodDesktop__fy1NX",obtainingMethodDesktopSelfie:"CardLoadPhoto_obtainingMethodDesktopSelfie__JHDFO",PhotoRightBlock:"CardLoadPhoto_PhotoRightBlock__2M0Jp",PhotoInfoBlock:"CardLoadPhoto_PhotoInfoBlock__c7dKL",PhotoInfoBlockRegister:"CardLoadPhoto_PhotoInfoBlockRegister__3VVGO",InfoTitle:"CardLoadPhoto_InfoTitle__5iTYj",InfoDescription:"CardLoadPhoto_InfoDescription__3Kd_2",InfoDescriptionSelfie:"CardLoadPhoto_InfoDescriptionSelfie__1RAu7",InfoDescriptionBottom:"CardLoadPhoto_InfoDescriptionBottom__1RRXx",photoBlock:"CardLoadPhoto_photoBlock__tug-2",loaderBlock:"CardLoadPhoto_loaderBlock__27G9Q",selfieBlock:"CardLoadPhoto_selfieBlock__2QLd-",photoIsLoaded:"CardLoadPhoto_photoIsLoaded__3bMDm",rightWrapper:"CardLoadPhoto_rightWrapper__3XymC",cardInput:"CardLoadPhoto_cardInput__3XDIg",cardMockup:"CardLoadPhoto_cardMockup__3nFh1",blobImage:"CardLoadPhoto_blobImage__3ukl5",cardLoader:"CardLoadPhoto_cardLoader__3tCrZ",cardText:"CardLoadPhoto_cardText__3ophl",borderError:"CardLoadPhoto_borderError__jCsSX",descriptionError:"CardLoadPhoto_descriptionError__1Sv5p",declineCameraButton:"CardLoadPhoto_declineCameraButton__15JO7"}},512:function(e,t,a){e.exports={Description:"PaymentNeededPhotoMethod_Description__1lOz3",importantText:"PaymentNeededPhotoMethod_importantText__2N1Sb"}},513:function(e,t,a){e.exports={Description:"ObtainingMethod_Description__2mUaH",toPayTitle:"ObtainingMethod_toPayTitle__1SVPw",toPayTitleSum:"ObtainingMethod_toPayTitleSum__2Kzyg",toPayTitleMobile:"ObtainingMethod_toPayTitleMobile__2Vela"}},514:function(e,t,a){e.exports=a.p+"static/media/CongratulationIcon.a0cb0b6d.svg"},515:function(e,t,a){e.exports=a.p+"static/media/gift_final.2af32356.svg"},592:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return Kc}));var n=a(4),l=a(0),o=a.n(l),c=a(35),r=a(210),i=a(66),s=a(47),d=a(29),m=(a(406),a(32)),u=a(1),p=a(330),C=a(31),_=a(65),g=a(26),h=a(23),E=a(49),v=a(407),b=a.n(v);const f=e=>{let{className:t="",zeroClassName:a=""}=e;const{creditLine:n}=Object(g.c)(e=>{let{profile:t}=e;return{creditLine:t.creditLine}}),[c,r]=Object(l.useState)(!1),i=(null==n?void 0:n.usedLimit)||0,s=(null==n?void 0:n.userCreditLimit)||0,d={"--fill-percentage":"".concat(i&&s?i/s*100:0,"%")};return Object(l.useEffect)(()=>{Object(h.G)({type:u.P.LOAN_WITH_GRACE_PERIOD.key}).then(e=>{var t;let{result:a}=e;(null==a?void 0:a.data)&&r(!!(null==a||null===(t=a.data)||void 0===t?void 0:t.specialConditions))})},[]),Object(l.useEffect)(()=>{window.localStorage.getItem("regForLimitStart")&&s>0&&(Object(E.a)("get_positive_limit"),window.localStorage.removeItem("regForLimitStart"))},[s]),!c&&i>0?a?o.a.createElement("div",{className:a}):null:o.a.createElement("div",{className:"".concat(b.a.loanLimitProgressBar," ").concat(t)},o.a.createElement("div",{style:d,className:b.a.emptyBar}),o.a.createElement("div",{className:b.a.description},"Используется ",i," Р из общего лимита ",s," Р"))};var L,k,S,N,B,y,O,M,P,I,A,w=a(197);function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}const T=e=>{let{svgRef:t,title:a,...n}=e;return o.a.createElement("svg",D({width:195,height:54,viewBox:"0 0 195 54",fill:"none",ref:t},n),a?o.a.createElement("title",null,a):null,L||(L=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23469 0H49.7653C52.1145 0 54 1.91643 54 4.23469V49.7653C54 52.1145 52.1145 54 49.7653 54H4.23469C1.91643 54 0 52.1145 0 49.7653V4.23469C0 1.91643 1.91643 0 4.23469 0Z",fill:"url(#paint0_linear_3603_3730)"})),k||(k=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.3828 17.5577H41.1727V15.2085H16.3828C14.4355 15.2085 12.8281 16.7849 12.8281 18.7323V35.2692C12.8281 37.2165 14.4355 38.8238 16.3828 38.8238H41.1727V19.9068H16.3828C15.7337 19.9068 15.2082 19.3814 15.2082 18.7323C15.2082 18.0831 15.7337 17.5577 16.3828 17.5577ZM36.4435 28.1908C37.1235 28.1908 37.649 28.7162 37.649 29.3653C37.649 30.0144 37.1235 30.5399 36.4435 30.5399C35.7944 30.5399 35.2689 30.0144 35.2689 29.3653C35.2689 28.7162 35.7944 28.1908 36.4435 28.1908Z",fill:"#FEFEFE"})),S||(S=o.a.createElement("path",{d:"M41.1674 19.1342C44.5304 19.1342 47.2567 16.4079 47.2567 13.0449C47.2567 9.68184 44.5304 6.95557 41.1674 6.95557C37.8044 6.95557 35.0781 9.68184 35.0781 13.0449C35.0781 16.4079 37.8044 19.1342 41.1674 19.1342Z",fill:"#F66082"})),N||(N=o.a.createElement("path",{d:"M70.1798 30.2766C70.1798 27.2669 71.4697 24.7282 74.6636 24.7282C77.837 24.7282 79.1268 27.2669 79.1268 30.2766C79.1268 33.2862 77.837 35.8249 74.6636 35.8249C71.4697 35.8249 70.1798 33.2862 70.1798 30.2766ZM74.6636 39.5716C80.9081 39.5716 84.1224 35.2722 84.1224 30.2766C84.1224 25.0967 80.9081 20.9815 75.3802 20.9815C71.0807 20.9815 69.4633 23.8478 69.4633 23.8478H69.2995C69.8932 19.8964 71.4083 18.1152 75.4416 18.1152H82.7097V14H75.8715C70.6917 14 65 15.8017 65 27.7788C65 36.7053 69.6475 39.5716 74.6636 39.5716Z",fill:"#1C2A40"})),B||(B=o.a.createElement("path",{d:"M90.7582 20.4488H85.7422V39.0389H90.7582V31.7093H93.2151C93.8702 36.2135 96.8389 39.5712 102.203 39.5712C108.304 39.5712 111.314 35.1694 111.314 29.7438C111.314 24.2978 108.304 19.896 102.203 19.896C96.8389 19.896 93.8702 23.2946 93.2151 27.7784H90.7582V20.4488ZM98.0878 29.7438C98.0878 26.3862 99.0091 23.6632 102.203 23.6632C105.376 23.6632 106.298 26.3862 106.298 29.7438C106.298 33.101
15 105.376 35.8245 102.203 35.8245C99.0091 35.8245 98.0878 33.1015 98.0878 29.7438Z",fill:"#1C2A40"})),y||(y=o.a.createElement("path",{d:"M131.517 20.4488H126.685V22.9466H126.501C126.501 22.9466 124.904 19.896 120.788 19.896C115.424 19.896 112.742 24.564 112.742 29.3753C112.742 34.2071 115.424 38.8546 120.788 38.8546C124.719 38.8546 126.316 36.3568 126.316 36.3568H126.501V37.2577C126.501 40.472 125.395 42.2533 122.222 42.2533C118.639 42.2533 118.454 39.5712 118.454 39.5712H113.459C113.459 39.5712 113.623 45.9999 122.222 45.9999C128.65 45.9999 131.517 42.2533 131.517 36.8892V20.4488ZM126.685 29.3753C126.685 32.3849 125.252 35.1079 122.222 35.1079C119.171 35.1079 117.738 32.3849 117.738 29.3753C117.738 26.3862 119.171 23.6632 122.222 23.6632C125.252 23.6632 126.685 26.3862 126.685 29.3753Z",fill:"#1C2A40"})),O||(O=o.a.createElement("path",{d:"M150.458 20.4497H145.463V27.8407L139.198 20.4497H133.301L140.16 27.7998L132.953 39.0398H139.054L143.558 31.485L145.463 33.4914V39.0398H150.458V33.4914L152.321 31.485L156.866 39.0398H162.988L155.761 27.7998L162.619 20.4497H156.723L150.458 27.8407V20.4497Z",fill:"#1C2A40"})),M||(M=o.a.createElement("path",{d:"M162.273 29.7438C162.273 35.1694 165.304 39.5712 171.568 39.5712C179.246 39.5712 180.331 32.9582 180.331 32.9582H175.315C175.315 32.9582 174.783 35.8245 171.753 35.8245C168.743 35.8245 167.535 33.6748 167.31 30.8085H180.475C180.475 30.8085 180.515 30.1738 180.515 29.7438C180.515 24.2978 177.69 19.896 171.568 19.896C165.447 19.896 162.273 24.2978 162.273 29.7438ZM171.568 23.6632C174.025 23.6632 175.029 25.301 175.356 27.5941H167.453C167.883 25.301 169.091 23.6632 171.568 23.6632Z",fill:"#1C2A40"})),P||(P=o.a.createElement("path",{d:"M189.988 23.4798V20.4497H185.156V39.0398H189.988V23.4798Z",fill:"#1C2A40"})),I||(I=o.a.createElement("path",{d:"M194.803 20.4497H180.328V24.3807H194.803V20.4497Z",fill:"#1C2A40"})),A||(A=o.a.createElement("defs",null,o.a.createElement("linearGradient",{id:"paint0_linear_3603_3730",x1:11.1436,y1:48.8649,x2:42.8717,y2:5.15065,gradientUnits:"userSpaceOnUse"},o.a.createElement("stop",{stopColor:"#241D4A"}),o.a.createElement("stop",{offset:1,stopColor:"#9B6F97"})))))},j=o.a.forwardRef((e,t)=>o.a.createElement(T,D({svgRef:t},e)));a.p;var R=a(408),F=a.n(R);var x=()=>{const e=Object(g.b)(),t=Object(l.useCallback)(async()=>{e(Object(d.e)())},[]);return o.a.createElement("div",{className:F.a.header},o.a.createElement(j,null),o.a.createElement(f,null),o.a.createElement(w.a,{onClick:t,className:F.a.logoutButton},"Выйти"))},Z=a(12),H=a(28),V=a.n(H),W=a(68),G=a.n(W),U=a(409),Y=a.n(U),z=a(410),q=a.n(z);const J=e=>{let{width:t,height:a}=e;return o.a.createElement("svg",{width:t,height:a,viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.62988 0.650391C12.1097 0.650391 14.4877 1.63521 16.2412 3.38867C17.9947 5.14214 18.9795 7.52023 18.9795 10C18.9795 12.4798 17.9947 14.8579 16.2412 16.6113C14.4877 18.3648 12.1097 19.3496 9.62988 19.3496C7.15011 19.3496 4.77202 18.3648 3.01855 16.6113C1.26509 14.8579 0.280273 12.4798 0.280273 10C0.280273 7.52023 1.26509 5.14214 3.01855 3.38867C4.77202 1.63521 7.15011 0.650391 9.62988 0.650391ZM10.3701 5.20996H8.87988V9.2998H5.00977V10.6904H8.87988V14.79H10.3701V10.6904H14.2598V9.2998H10.3701V5.20996Z",fill:"currentColor"}))};J.defaultProps={width:19,height:20};var Q=o.a.memo(J);const K=e=>{let{width:t,height:a}=e;return o.a.createElement("svg",{width:t,height:a,viewBox:"0 0 51 51",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.2969 0.519531C18.6665 0.519531 12.3076 3.15339 7.61914 7.8418C2.93073 12.5302 0.296875 18.8891 0.296875 25.5195C0.296875 32.1499 2.93073 38.5089 7.61914 43.1973C12.3076 47.8857 18.6665 50.5195 25.2969 50.5195C31.9273 50.5195 38.2862 47.8857 42.9746 43.1973C47.663 38.5089 50.2969 32.1499 50.2969 25.5195C50.2969 18.8891 47.663 12.5302 42.9746 7.8418C38.2862 3.15339 31.9273 0.519531 25.2969 0.519531ZM25.2969 7.98926C27.4902 7.98926 29.5936 8.86021 31.1445 10.4111C32.6955 11.9621 33.5669 14.0664 33.5669 16.2598C33.5669 18.4531 32.6955 20.5565 31.1445 22.1074C29.5936 23.6583 27.4902 24.5293 25.2969 24.5293C24.2113 24.5293 23.1366 24.3151 22.1338 23.8994C21.131 23.4837 20.2198 22.8745 19.4526 22.1064C18.6855 21.3384 18.0771 20.4271 17.6626 19.4238C17.2481 18.4205 17.0358 17.3453 17.0371 16.2598C17.0371 14.0682 17.9068 11.9657 19.4556 10.415C21.0043 8.8644 23.1053 7.99191 25.2969 7.98926ZM25.2969 43.9893C20.9149 43.9924 16.6766 42.428 13.3472 39.5791C12.9605 39.2479 12.6503 38.8367 12.438 38.374C12.2256 37.9113 12.1162 37.4085 12.1172 36.8994C12.1185 35.8017 12.3361 34.7145 12.7583 33.7012C13.1805 32.6879 13.7986 31.768 14.5771 30.9941C15.3557 30.2202 16.2796 29.6075 17.2954 29.1914C18.3112 28.7753 19.3993 28.5641 20.4971 28.5693H30.127C31.2238 28.5641 32.311 28.776 33.3257 29.1924C34.3404 29.6088 35.2626 30.2209 36.0396 30.9951C36.8165 31.7693 37.4325 32.6899 37.8525 33.7031C38.2726 34.7163 38.4881 35.8026 38.4868 36.8994C38.4878 37.4085 38.3784 37.9113 38.166 38.374C37.9537 38.8367 37.6435 39.2479 37.2568 39.5791C33.9234 42.4267 29.681 43.9878 25.2969 43.9795V43.9893Z",fill:"currentColor"}))};K.defaultProps={width:51,height:51};var X=o.a.memo(K);const $=e=>{let{width:t,height:a}=e;return o.a.createElement("svg",{width:t,height:a,viewBox:"0 0 51 51",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 25C50 18.3696 47.3662 12.0107 42.6777 7.32227C37.9893 2.63386 31.6304 0 25 0C18.3696 0 12.0109 2.63386 7.32252 7.32227C2.63411 12.0107 1.27341e-05 18.3696 1.27341e-05 25C-0.00450667 29.4712 1.19402 33.8613 3.46998 37.71L0.10011 49.9102L12.3001 46.54C16.1487 48.816 20.5388 50.0153 25.01 50.0107C31.6404 50.0107 37.9993 47.3759 42.6878 42.6875C47.3762 37.9991 50.01 31.6412 50.01 25.0107L50 25ZM21.1602 19.1807H17.3201C17.3227 17.1473 18.1318 15.1976 19.5696 13.7598C21.0074 12.3219 22.9566 11.5134 24.99 11.5107C27.0234 11.5134 28.9728 12.3219 30.4107 13.7598C31.8485 15.1976 32.6575 17.1473 32.6602 19.1807C32.6594 20.245 32.4377 21.2972 32.009 22.2715C31.5804 23.2458 30.9543 24.1201 30.1702 24.8398L26.9102 27.8398V30.8398H23.0801V26.1602L27.5901 22.04C27.9853 21.6824 28.3008 21.2454 28.5161 20.7578C28.7315 20.2703 28.8419 19.743 28.8401 19.21C28.8401 18.1915 28.4355 17.2153 27.7153 16.4951C26.9952 15.775 26.0184 15.3701 25 15.3701C23.9816 15.3701 23.0048 15.775 22.2847 16.4951C21.5645 17.2153 21.1602 18.1915 21.1602 19.21V19.1807ZM23.0801 34.6504H26.9202V38.4902H23.0801V34.6504Z",fill:"currentColor"}))};$.defaultProps={width:51,height:51};var ee=o.a.memo($);const te=e=>{let{width:t,height:a}=e;return o.a.createElement("svg",{width:t,height:a,viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2536 15.1029V12.8869C14.2536 11.9049 15.6627 11.8411 15.8327 12.6713C15.88 12.9038 15.8452 13.6796 15.8443 13.9657C15.8421 14.7164 15.7653 14.5459 16.1711 14.9476C16.3893 15.1632 16.6964 15.3859 16.6964 15.7858C16.6964 16.2589 16.3572 16.6379 15.901 16.6379C15.4288 16.6379 15.1762 16.2808 14.9191 16.0273C14.7022 15.8104 14.2496 15.4787 14.2496 15.1043L14.2536 15.1029ZM10.0491 14.7052C10.0491 16.2839 10.399 17.4127 11.5122 18.5263C11.9753 18.9933 12.5262 19.364 13.1333 19.6169C13.7404 19.8699 14.3915 20.0001 15.0492 20.0001C15.7068 20.0001 16.358 19.8699 16.9651 19.6169C17.5721 19.364 18.1231 18.9933 18.5862 18.5263C19.0539 18.0581 19.2633 17.7568 19.5766 17.1302C20.2224 15.8358 20.2175 14.1201 19.5574 12.811C18.7759 11.2604 17.0838 9.98926 15.3904 9.98926C14.3875 9.98926 13.8282 10.0018 12.9088 10.4619C11.3131 11.2595 10.0469 12.9208 10.0469 14.7052H10.0491Z",fill:"currentColor"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97656 2.18719H13.1977C14.2077 2.18719 15.7284 2.08453 16.5586 2.27645C16.547 1.75692 16.2015 1.07848 15.8444 0.721416L15.5423 0.478165C14.546 -0.273465 13.623 0.0318311 12.5371 0.251428L11.1749 0.523692C10.2443 0.709814 9.3672 0.876298 8.44195 1.0593L3.32381 2.07292C3.26027 2.0825 3.19725 2.09532 3.13501 2.11131C3.12028 2.11577 3.08011 2.12961 3.06761 2.13496C3.03412 2.14619 3.00317 2.16394 2.97656 2.18719Z",fill:"currentColor"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 5.53209L0.0687348 17.2658C0.0687348 18.2924 0.80876 19.1199 1.67554 19.4729C2.30934 19.7305 4.54549 19.6278 5.38013 19.6278H11.3213C10.6282 19.0709 10.0691 18.3654 9.68526 17.5634C9.30139 16.7615 9.10256 15.8835 9.10347 14.9944C9.10347 13.4166 9.73026 11.9034 10.846 10.7877C11.9616 9.67199 13.4749 9.0452 15.0527 9.0452C16.2087 9.04345 17.34 9.38015 18.3069 10.0138C18.2864 8.78945 18.2556 7.60354 18.2556 6.30426C18.2556 5.34419 18.3056 4.776 17.6517 4.00116C17.1652 3.42405 16.3872 3.125 15.5758 3.125H2.76594C1.19663 3.125 0 4.14309 0 5.53209Z",fill:"currentColor"}))};te.defaultProps={width:19,height:20};var ae=o.a.memo(te),ne=a(411),le=a.n(ne),oe=(a(412),a(220));const ce=()=>window.innerWidth<=1080,re=Object(c.cn)("Component-Profile-Layout-Left-Menu"),ie=(e,t)=>t&&e.pathname===t,se=e=>{let{id:t,label:a,to:l,icon:c,help:r,disabled:i,forceActive:s,closeMenu:d}=e;const m=Object(n.m)(),u=s||ie(m,l);return o.a.createElement("div",{style:"support"===t?{zIndex:10}:{},className:re("Link",{isActive:u,id:t})},o.a.createElement(Z.c,{to:l,className:V()({LinkContainer:!0,Disabled:i}),onClick:e=>{d&&d(),i&&e.preventDefault()}},o.a.createElement("div",{className:"Icon"},c),o.a.createElement("div",{className:"Label"},a)),!!r&&r)},de=e=>{let{id:t,label:a,to:c,icon:r,help:i,disabled:s,forceActive:m,closeMenu:u}=e;const p=Object(g.b)(),C=Object(n.m)(),_=m||ie(C,c),h=Object(l.useCallback)(async()=>{p(Object(d.e)())},[]),E=V()({LinkContainer:!0,Disabled:s}),v=o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"Icon"},o.a.createElement("img",{src:r,alt:a})),o.a.createElement("div",{className:"Label"},a));return o.a.createElement("div",{className:re("Link",{isActive:_,id:t})},c?o.a.createElement(Z.c,{to:c,className:E,onClick:e=>{ce()&&(null==u||u()),s&&e.preventDefault()}},v):o.a.createElement("div",{className:E,onClick:e=>{"logout"===t&&h(),s&&e.preventDefault()}},v),!!i&&i)},me=e=>{let{id:t,label:a,icon:c,help:r,links:i,disabled:s,openedTree:d,onClick:m,closeMenu:u}=e;const p=Object(n.m)(),[C,_]=Object(l.useState)(!1);Object(l.useEffect)(()=>{_(!!d&&t===d)},[d]),Object(l.useEffect)(()=>
1{if(!d){const e=G.a.find(i,e=>ie(p,e.to));window.innerWidth>1080&&_(!!e)}},[p]);const g=()=>{u&&u(),_(!1)};return o.a.createElement("div",{className:re("Tree",{isOpened:C})},o.a.createElement("div",{className:V()({TreeHeaderContainer:!0,Disabled:s}),onClick:()=>!s&&m(C)},o.a.createElement("div",{className:"Icon"},c),o.a.createElement("div",{className:"Label"},a),!s&&o.a.createElement("div",{className:V()("Arrow",C?"Arrow-Top":"Arrow-Bottom")})),!!r&&r,o.a.createElement("div",{className:V()({Submenu:!0,isOpened:C})},o.a.createElement("div",{className:"submenu_container"},o.a.createElement("div",{className:"submenu_title"},a),i.map(e=>o.a.createElement(de,Object.assign({key:e.id},e,{closeMenu:g}))))))};var ue=e=>{let{accountModerationStatus:t,isFullView:a,contracts:c,creditLine:r}=e;const s=Object(g.b)(),d=Object(n.m)(),m=Object(oe.a)(),p=m.get("step"),C=m.get("contractId"),_=t===u.a.DATA_CHECKING&&0===c.length||t===u.a.REGISTERED||t===u.a.FAILURE_LITTLE_DATA||t===u.a.DATA_MISMATCH,v=t===u.a.DATA_CHECKING&&0!==c.length||t===u.a.LIMIT_REACHED,[b,f]=Object(l.useState)(null);Object(l.useEffect)(()=>{(async e=>{const{result:t}=await Object(h.J)();Object(E.a)(null==t||null===(e=t.data)||void 0===e?void 0:e.clientId.toString(),"setUserID")})()},[]);const L=()=>{ce()&&setTimeout(()=>{f(null)},0)},k=(new Date).getFullYear(),S=Object(g.c)(e=>{let{layout:t}=e;return t.isNavigationLocked}),N=[{id:"documents",label:"Документы",icon:Y.a,to:"/profile/settings/documents"},{id:"delete_account",label:"Удалить аккаунт",icon:q.a,to:"/profile/settings/delete-account"},{id:"logout",label:"Выйти из личного кабинета",icon:le.a}],B=[{mobileOrder:2,id:"add_contract",label:"Получить",icon:o.a.createElement(Q,null),to:"/profile/add-contract?step=product",closeMenu:L,disabled:S||_||v||((null==r?void 0:r.userCreditLimit)||0)<((null==r?void 0:r.usedLimit)||0)},{mobileOrder:3,id:"my_payments",label:"Оплатить",icon:o.a.createElement(ae,null),to:"/profile/my-payments",closeMenu:L,disabled:S||!(c.length>0)},{mobileOrder:1,id:"profile",label:"Профиль",icon:o.a.createElement(X,null),disabled:S,openedTree:b,onClick:e=>{f("profile"!==b&&!e&&"profile")},closeMenu:L,links:N},{mobileOrder:4,id:"support",label:"Поддержка",icon:o.a.createElement(ee,null),to:"/profile/support",closeMenu:()=>{L(),s(Object(i.e)())},disabled:S&&!("/profile/add-contract"===d.pathname&&"signature"===p&&C)}];return o.a.createElement(o.a.Fragment,null,o.a.createElement(x,null),o.a.createElement("div",{className:re({state:a?"open":"close",isMenuLocked:S})},(ce()?B.sort((e,t)=>e.mobileOrder-t.mobileOrder):B).map((e,t)=>e.links?o.a.createElement(me,Object.assign({key:t},e)):o.a.createElement(se,Object.assign({key:t},e)))),o.a.createElement("div",{className:re("Copyright")},"ООО МКК «Диджитал Мани», ",k))};const pe=Object(c.cn)("Layout-Profile"),Ce=()=>{const e=Object(n.o)(),[t,a]=Object(l.useState)(!1),c=Object(g.b)(),E=Object(g.c)(e=>{let{layout:t}=e;return t.isLeftMenuOpened}),v=Object(g.c)(e=>{let{layout:t}=e;return t.isNavigationLocked}),{accountModerationStatus:b,contracts:f,creditLine:L,infoUser:k}=Object(g.c)(e=>{let{auth:t,profile:a,signUp:n}=e;return{isAuthenticated:t.isAuthenticated,accountModerationStatus:a.accountModerationStatus,contracts:a.contracts,creditLine:a.creditLine,infoUser:n.infoUser}});Object(l.useEffect)(()=>{if(b&&k.step)if(b===u.a.FAILURE_LITTLE_DATA)Object(_.a)().then(e=>{let{result:t}=e;t===u.a.FAILURE_LITTLE_DATA&&Object(p.a)({isReg:!1,username:k.phone,accountModerationStatus:b})});else{if(a(!1),k.step===C.a.REGISTRATION_COMPLETED||k.step===C.a.APPROVED)return;Object(h.u)().then(t=>{var a;let{result:n}=t;0===(null==n||null===(a=n.data)||void 0===a?void 0:a.userCreditLimit)&&e("/sign_up")})}},[b,k.step]),Object(l.useEffect)(()=>{const e=e=>{e.clientX<140&&!E&&!v?c(Object(i.d)()):e.clientX>=140&&E&&c(Object(i.a)())};return window.addEventListener("mousemove",e),()=>window.removeEventListener("mousemove",e)},[E,v]),Object(l.useEffect)(()=>{c(Object(s.h)());const t=()=>{c(Object(s.e)()),c(Object(s.c)()),c(Object(s.d)()),c(Object(s.a)()),c(Object(s.b)())};t();const a=setInterval(()=>{c(Object(d.f)()),t()},1e4),n=new URL(window.location);if(("declined"!==n.searchParams.get("status")||"OUTGOING"!==localStorage.getItem("direction"))&&!("declined"===n.searchParams.get("status")&&"INCOMING"===localStorage.getItem("direction")||"approved"===n.searchParams.get("status")&&"OUTGOING"===localStorage.getItem("direction")||"approved"===n.searchParams.get("status")&&"INCOMING"===localStorage.getItem("direction")||n.searchParams.get("step")||n.pathname.includes("/profile/contract")))return e("account-status"),()=>clearInterval(a)},[]);return o.a.createElement(r.b,null,o.a.createElement(x,null),t&&o.a.createElement("div",{style:{width:"100%",height:"100%",position:"fixed",top:0,left:0,zIndex:1e3,background:"#f3f5fa"}},o.a.createElement(m.a,{fullHeight:!0})),o.a.createElement("div",{className:pe("Central-Block",{isLeftMenuOpened:E})},o.a.createElement(ue,{isFullView:E,accountModerationStatus:b,contracts:f,creditLine:L}),o.a.createElement("main",{className:pe("Content-Block")},o.a.createElement(n.b,null))))},_e=e=>o.a.createElement(Ce,null,e);var ge,he=Ce,Ee=a(44),ve=a.n(Ee),be=a(19),fe=a(331),Le=a.n(fe);function ke(){return(ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}const Se=e=>{let{svgRef:t,title:a,...n}=e;return o.a.createElement("svg",ke({width:19,height:13,viewBox:"0 0 19 13",fill:"none",ref:t},n),a?o.a.createElement("title",null,a):null,ge||(ge=o.a.createElement("path",{d:"M1.56006 6.00992L7.12988 11.5799L17.04 1.66992",stroke:"#FEFEFE",strokeWidth:2.3131,strokeLinecap:"round",strokeLinejoin:"round"})))},Ne=o.a.forwardRef((e,t)=>
1o.a.createElement(Se,ke({svgRef:t},e)));a.p,a(69);var Be=a(64),ye=a(413),Oe=a.n(ye);a(414);const Me=Object(c.cn)("AxiosGraphic"),Pe=()=>o.a.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{d:"M8.00224 1L1.00781 7.99436M8.00224 7.99436L1.00781 1",stroke:"#1C2A40",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"bevel"})),Ie=()=>o.a.createElement("svg",{width:"19",height:"13",viewBox:"0 0 19 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{d:"M1.56006 6.00992L7.12988 11.5799L17.04 1.66992",stroke:"#1C2A40",strokeWidth:"2.3131",strokeLinecap:"round",strokeLinejoin:"round"})),Ae=e=>{let{className:t}=e;return o.a.createElement("div",{className:"".concat(Oe.a.lineBlock," ").concat(t)},o.a.createElement("div",{className:Oe.a.line}),o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",viewBox:"0 0 12 7",fill:"none"},o.a.createElement("path",{d:"M10.695 5.84375L5.84999 0.998718L1 5.84375",stroke:"#FEFEFE",strokeMiterlimit:"22.9256"})))},we=e=>{const t=e.split(".");return"".concat(t[0],".").concat(t[1],".").concat(t[2].slice(2))},De={[u.I.EXPIRED]:{columnBackground:"rgba(246, 96, 130, 0.3)",textColor:"#F66082",icon:o.a.createElement("div",{style:{backgroundColor:"#F66083"},className:Oe.a.columnIcon},o.a.createElement(Pe,null))},[u.I.PAID]:{columnBackground:"#FEFEFE",icon:o.a.createElement("div",{style:{backgroundColor:"#FEFEFE"},className:Oe.a.columnIcon},o.a.createElement(Ie,null))}},Te=e=>ve()(e).locale("ru").format("DD MMMM YYYY");var je=e=>{let{pillars:t,product:a,contractName:n,contractOpened:l,contractDuration:c,contractFinished:r,onClosePress:i,withLoanLine:s,className:d="",prolongation:m,termType:p=u.cb.MONTH}=e;const C=G.a.max(t.map(e=>e.amount)),_=G.a.max([0,G.a.ceil(C,-3)]),g=p===u.cb.DAY,h=g?"days":"months",E=Le()(ve.a.duration(c,h).asMilliseconds(),{language:"ru",largest:2,units:g?["y","mo","d"]:["y","mo"],round:!0}),v=[{label:"Дата открытия",value:Te(l)},{label:m?"Продление договора":"Длительность",value:E},{label:"Дата завершения",value:Te(r)}],b=e=>window.innerWidth<=1080?{width:"".concat(G.a.round(100*e.amount/_,2),"%")}:{height:"".concat(G.a.round(100*e.amount/_,2),"%")};return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"".concat(Me()," ").concat(d)},n&&o.a.createElement("p",{className:Me("ContractNameMobile")},"Договор ",n),o.a.createElement("div",{className:Me("Header")},o.a.createElement("p",{className:Me("Title")},"График осуществления платежей"),o.a.createElement("div",{className:Me("CloseIcon"),onClick:i},o.a.createElement(Pe,null))),o.a.createElement("div",{className:Me("Content")},o.a.createElement("div",{className:Me("GraphContainer")},o.a.createElement("table",{className:Me("TableContent")},o.a.createElement("tbody",null,o.a.createElement("tr",{className:Me("TableRow",{hasBorder:!0})},o.a.createElement("td",{className:Me("TableCell",{hasBorder:!0,maxWidth:!0})},o.a.createElement("div",{className:Me("ArrowContainer",{toTop:!0})},o.a.createElement("div",{className:Me("Arrow",{toTop:!0})}))),o.a.createElement("td",{className:Me("MainCell")},o.a.createElement("div",{className:Me("MainCellHeader")},o.a.createElement("div",{className:Me("MainCellHeaderLeft")},n&&o.a.createElement("p",{className:Me("ContractName")},"Договор ",n),o.a.createElement("p",{className:Me("ContractType")},a.title)),o.a.createElement("div",{className:Me("MainCellHeaderRight")},o.a.createElement("p",{className:Me("ContractOpened")},"Дата открытия:"," ",ve()(l).locale("ru").format("DD MMMM YYYY")),o.a.createElement("p",{className:Me("ContractDuration")},m?"Продление договора":"Длительность",": ",E),o.a.createElement("p",{className:Me("ContractFinished")},"Дата завершения:"," ",ve()(r).locale("ru").format("DD MMMM YYYY")))),o.a.createElement("div",{className:t.length>6?Me("MainCellGraph"):Me("MainCellGraphLess")},o.a.createElement("div",{className:"lineMobile lineMobile-left"}),o.a.createElement("div",{className:"lineMobile lineMobile-top"}),t.map((e,t)=>o.a.createElement("div",{key:"pillar_".concat(t),className:Me("PillarContainer"),style:b(e)},o.a.createElement("div",{className:Me("PillarAmount")},e.amount," Р"),o.a.createElement("div",{className:Me("Pillar",{status:e.status})}),o.a.createElement("div",{className:Me("PillarDate")},we(e.bottomDescription)),"PAID"===e.status&&o.a.createElement("div",{className:Me("PillarStatus")},o.a.createElement(Ne,null)))),o.a.createElement("div",{className:Me("LastEmptyPillar")})))),o.a.createElement("tr",null,o.a.createElement("td",{className:Me("TableCell",{hasBorder:!0,maxWidth:!0,minHeight:!0})},o.a.createElement("div",null)),o.a.createElement("td",null,o.a.createElement("div",{className:Me("ArrowContainer",{toRight:!0})},o.a.createElement("div",{className:Me("Arrow",{toRight:!0})}
1))))))))),o.a.createElement("div",{className:Oe.a.container},s&&o.a.createElement(f,{className:Oe.a.headerLimit}),n&&o.a.createElement("p",{className:Oe.a.title},"Договор ",n),o.a.createElement("div",{className:Oe.a.headerBlock},o.a.createElement("p",{className:Oe.a.closeTitle},"График платежей"),o.a.createElement("div",{className:Oe.a.closeBlock,onClick:i},o.a.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{d:"M8.00224 1L1.00781 7.99436M8.00224 7.99436L1.00781 1",stroke:"#1C2A40",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"bevel"})))),o.a.createElement("div",{className:Oe.a.graphicBlock},o.a.createElement("p",{className:Oe.a.graphicTitle},a.title),v.map((e,t)=>o.a.createElement("p",{key:t,className:Oe.a.graphicDescription},"".concat(e.label,": ").concat(e.value))),o.a.createElement(Ae,{className:Oe.a.vertical}),o.a.createElement(Ae,{className:Oe.a.horizontal}),o.a.createElement("div",{style:n?{bottom:Be.isIOS?"24px":"18px"}:{bottom:Be.isIOS?"23px":"17px"},className:Oe.a.columnsBlock},t.map((e,t)=>{const a=De[e.status],n=(null==a?void 0:a.textColor)||"#FEFEFE",l=(null==a?void 0:a.columnBackground)||"rgba(254, 254, 254, 0.2)",c=2.1*G.a.round(100*e.amount/_,2);return o.a.createElement("div",{key:t,className:Oe.a.columnBlock},o.a.createElement("p",{style:{color:n},className:Oe.a.columnText},e.amount," Р"),o.a.createElement("div",{style:{backgroundColor:l,height:"".concat(c,"px")},className:Oe.a.column}),o.a.createElement("p",{style:{color:n},className:Oe.a.columnText},we(e.bottomDescription)),null==a?void 0:a.icon)})))))},Re=a(268),Fe=a(196);a(332);const xe=e=>o.a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},e),o.a.createElement("path",{d:"M7 13L7 1M13.0001 7L1 7L13.0001 7Z",stroke:"#1C2A40",strokeLinecap:"round",strokeLinejoin:"round"}));var Ze=a(211),He=a(415),Ve=a.n(He);const We=e=>{let{contract:t,onClick:a,termType:n}=e;const c=u.P[t.creditType].title,r=window.innerWidth>1080,[i,s]=Object(l.useState)(r),d=n===u.cb.DAY,m=d?"days":"months",p=Le()(ve.a.duration(t.duration,m).asMilliseconds(),{language:"ru",largest:2,units:d?["y","mo","d"]:["y","mo"],round:!0});return o.a.createElement("div",{className:"".concat(Ve.a.container," ").concat(i?"":Ve.a.isOpenContainer)},o.a.createElement("div",{className:Ve.a.details},o.a.createElement("div",{onClick:()=>!r&&s(!i),className:Ve.a.detailsNameBlock},o.a.createElement("p",{className:Ve.a.detailsName},"Условия договора"),o.a.createElement(xe,{onClick:()=>s(!i),className:Ve.a.cross})),o.a.createElement("p",null,"Продукт: ",c),o.a.createElement("p",null,"Получено: ",t.amountContract," P"),o.a.createElement("p",null,"Дата открытия:"," ",ve()(t.openingDate).locale("ru").format("DD MMMM YYYY")),o.a.createElement("p",null,"Длительность: ",p),o.a.createElement("p",null,"Прогресс:"," ",Math.round(t.paymentsMade/t.paymentsTotal*100),"% (",t.paymentsMade," платежа из ",t.paymentsTotal,")"),o.a.createElement("p",null,"Дата завершения:"," ",ve()(t.completionDate).locale("ru").format("DD MMMM YYYY"))),o.a.createElement(Z.c,{to:"#",onClick:a,className:Ve.a.detailsGraphicLink},o.a.createElement("svg",{width:"25",height:"25",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.79004 8.74023C3.21551 8.74156 3.62429 8.57652 3.92969 8.28027L5.5498 9.08984C5.54561 9.15644 5.54561 9.22344 5.5498 9.29004C5.55243 9.72418 5.72621 10.1393 6.0332 10.4463C6.3402 10.7533 6.75531 10.9271 7.18945 10.9297C7.6236 10.9271 8.03969 10.7533 8.34668 10.4463C8.65367 10.1393 8.82746 9.72418 8.83008 9.29004C8.82978 9.04768 8.77495 8.80827 8.66992 8.58984L10.8701 6.38965C11.0877 6.49813 11.3262 6.55616 11.5693 6.55957C12.0035 6.55695 12.4196 6.38414 12.7266 6.07715C13.0336 5.77016 13.2073 5.35407 13.21 4.91992C13.2088 4.75343 13.1817 4.5879 13.1299 4.42969L15.04 3C15.3087 3.18182 15.6248 3.27958 15.9492 3.28027C16.3834 3.27765 16.7995 3.10387 17.1064 2.79688C17.4134 2.48988 17.5872 2.07379 17.5898 1.63965C17.5872 1.2055 17.4134 0.790391 17.1064 0.483398C16.7995 0.176406 16.3834 0.00262331 15.9492 0C15.5151 0.00262331 15.1 0.176406 14.793 0.483398C14.486 0.790391 14.3122 1.2055 14.3096 1.63965C14.3107 1.80614 14.3378 1.97167 14.3896 2.12988L12.4795 3.55957C12.2108 3.37775 11.8938 3.28096 11.5693 3.28027C11.1352 3.2829 10.7201 3.45668 10.4131 3.76367C10.1061 4.07066 9.93231 4.48578 9.92969 4.91992C9.92999 5.
116229 9.98482 5.40169 10.0898 5.62012L7.88965 7.82031C7.67111 7.71561 7.43178 7.66079 7.18945 7.66016C6.76418 7.65988 6.35579 7.82478 6.0498 8.12012L4.42969 7.30957C4.43386 7.24297 4.43386 7.17695 4.42969 7.11035C4.42706 6.67621 4.25328 6.26012 3.94629 5.95312C3.6393 5.64613 3.22418 5.47235 2.79004 5.46973C2.35589 5.47235 1.93981 5.64613 1.63281 5.95312C1.32582 6.26012 1.15204 6.67621 1.14941 7.11035C1.15465 7.54276 1.33001 7.9559 1.63672 8.26074C1.94343 8.56559 2.35761 8.73765 2.79004 8.74023Z",fill:"#1C2A40"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.1699 17.5791H17.5898V5.99902C17.5898 5.85315 17.5319 5.7135 17.4287 5.61035C17.3256 5.50721 17.1859 5.44922 17.04 5.44922H14.8496C14.7037 5.44922 14.5641 5.50721 14.4609 5.61035C14.3578 5.7135 14.2998 5.85315 14.2998 5.99902V17.5791H13.1992V9.24902C13.1992 9.10315 13.1422 8.9635 13.0391 8.86035C12.9359 8.75721 12.7953 8.69922 12.6494 8.69922H10.46C10.3141 8.69922 10.1735 8.75721 10.0703 8.86035C9.96717 8.9635 9.91016 9.10315 9.91016 9.24902V17.5391H8.80957V13.6289C8.80957 13.483 8.75158 13.3434 8.64844 13.2402C8.54529 13.1371 8.40563 13.0791 8.25977 13.0791H6.06934C5.92347 13.0791 5.78381 13.1371 5.68066 13.2402C5.57752 13.3434 5.51953 13.483 5.51953 13.6289V17.5391H4.41992V11.4395C4.41992 11.2936 4.36193 11.1529 4.25879 11.0498C4.15564 10.9467 4.01599 10.8887 3.87012 10.8887H1.67969C1.53382 10.8887 1.39416 10.9467 1.29102 11.0498C1.18787 11.1529 1.12988 11.2936 1.12988 11.4395V17.5391H0.549805C0.403936 17.5391 0.264278 17.5971 0.161133 17.7002C0.0579878 17.8033 0 17.943 0 18.0889C0 18.2347 0.0579878 18.3744 0.161133 18.4775C0.264278 18.5807 0.403936 18.6387 0.549805 18.6387H18.1494C18.2953 18.6387 18.4359 18.5807 18.5391 18.4775C18.6422 18.3744 18.6992 18.2347 18.6992 18.0889C18.6894 17.9534 18.6301 17.8266 18.5322 17.7324C18.4344 17.6383 18.3056 17.5837 18.1699 17.5791Z",fill:"#1C2A40"})),o.a.createElement("p",null,"Посмотреть график платежей")))};a(113);var Ge=a(75),Ue=a.n(Ge),Ye=a(416),ze=a.n(Ye);const qe=e=>{let{maxValue:t,amount:a,onChange:n,rangeStylesType:l,minValue:c}=e;return o.a.createElement("div",{className:l===u.R.DESKTOP?ze.a.containerDesktop:ze.a.containerMobile},o.a.createElement("div",{className:ze.a.upBlock},o.a.createElement("span",{className:ze.a.priceBlock},Object(u.nb)(c)," P"),o.a.createElement("span",{className:ze.a.priceBlock},o.a.createElement("span",{className:ze.a.price},"Сумма к закрытию сегодня:"),o.a.createElement("span",null,Object(u.nb)(t)," P"))),o.a.createElement(Ue.a,{maxValue:t,minValue:c,step:10,value:a,onChange:e=>n((e=>t-e<t/80||t<=100&&e===10*Math.floor(t/10)?t:parseFloat(e.toFixed(2)))(+e))}))};var Je=a(417),Qe=a.n(Je);const Ke="NEAREST",Xe="EXPIRED",$e="FIRST",et="GRAPHIC",tt="SET_AMOUNT",at={[Ke]:"Предстоит",["PENDING"]:"Предстоит",[Xe]:"Просроченый",["PAID"]:"Оплачено",default:"Получение"},nt=e=>{let{paymants:t}=e;const a=window.innerWidth>1080,[n,c]=Object(l.useState)(a);return o.a.createElement("div",{className:"".concat(Qe.a.detailsBlock," ").concat(n?"":Qe.a.isOpenTransactionContainer)},o.a.createElement("div",{onClick:()=>!a&&c(!n),className:Qe.a.transactionIconTitleBlock},o.a.createElement("p",{className:Qe.a.transactionTitle},"История транзакций"),o.a.createElement(xe,{className:Qe.a.cross})),o.a.createElement("div",{className:Qe.a.transactionTable},t.map((e,t)=>{const a="default"===e.status;return o.a.createElement("div",{style:{backgroundColor:a?"#D7DFE9":"#EFF1F7"},key:t,className:Qe.a.transactionTableRow},o.a.createElement("div",{className:Qe.a.transactionLeftColumn},o.a.createElement("svg",{style:window.innerWidth<=1080?{display:"none"}:a?{transform:"rotate(180deg)"}:{},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"8",viewBox:"0 0 14 8",fill:"none"},o.a.createElement("path",{d:"M1 3.5H0.5V4.5H1V3.5ZM13.3536 4.35355C13.5488 4.15829 13.5488 3.84171 13.3536 3.64645L10.1716 0.464466C9.97631 0.269204 9.65973 0.269204 9.46447 0.464466C9.2692 0.659728 9.2692 0.976311 9.46447 1.17157L12.2929 4L9.46447 6.82843C9.2692 7.02369 9.2692 7.34027 9.46447 7.53553C9.65973 7.7308 9.97631 7.7308 10.1716 7.53553L13.3536 4.35355ZM1 4.5H13V3.5H1V4.5Z",fill:"black"})),o.a.createElement("p",null,ve()(e.realDate||e.paymentDate).locale("ru").format(u.s))),o.a.createElement("div",{className:Qe.a.transactionCenterColumn},o.a.createElement("p",null,(null==at?void 0:at[e.status])||"")),o.a.createElement("div",{className:Qe.a.transactionRightColumn},"".concat(a?"+":"").concat(e.payment)," Р"))})))},lt=e=>{let{id:t,contractsLength:a,nearestPayment:c}=e;const r=1===a,i=Object(n.o)(),s=new URLSearchParams(Object(n.m)().search),[d,m]=Object(l.useState)(null),[p,C]=Object(l.useState)(null),[_,g]=Object(l.useState)([]),[E,v]=Object(l.useState)(null),[b,f]=Object(l.useState)(null),[L,k]=Object(l.useState)(r),[S,N]=Object(l.useState)(0),[B,y]=Object(l.useState)(!0);if(Object(l.useLayoutEffect)(()=>{C(null);const e=s.get("chosenStep");m(e||$e),(async()=>{y(!0);try{const[o,c,r]=await Promise.allSettled([Object(h.y)({id:t}),Object(h.z)({id:t}),Object(h.x)({loanApplicationId:t})]);"fulfilled"!==o.status||o.value.error||C({...o.value.result.data});let i=null;if("fulfilled"===c.status&&!c.value.error){const{rows:e}=c.value.result.data;g(e),e.length&&(i=e.find(e=>e.status===Ke||e.status===Xe),i&&v((n=Fe.a.digitalAndDotOnly.format(i.payment))?(l=Number(n))%0!==l?l.toFixed(2):l:n))}if("fulfilled"===r.status&&!r.value.error){var e,a;const t=(null===(e=r.value.result)||void 0===e||null===(a=e.data)||void 0===a?void 0:a.amount)||0;if(N(t),i){const e=i.payment||i.remainder||0;f(e>t?t:e)}}}finally{y(!1)}var n,l})()},[]),B)return o.a.createElement("div",{className:"".concat(Qe.a.loader," ").concat(r?Qe.a.loaderOpen:Qe.a.loaderClose)},o.a.createElement("p",{className:Qe.a.loaderTitle},"Загрузка данных"));const O=p&&"№".concat(p.contractNumber),M=u.P[null==p?void 0:p.creditType],P=M.title,I=M.key===u.P.LOAN_WITH_GRACE_PERIOD.key?u.cb.DAY:u.cb.MONTH;if(d===et)return o.a.createElement("div",{className:Qe.a.container},o.a.createElement(je,{pillars:_.map(e=>({amount:e.payment,bottomDescription:ve()(e.paymentDate,"yy-MM-DD").format(u.s),status:e.status})),product:{title:P},contractName:O,contractOpened:p.openingDate,contractDuration:p.duration,contractFinished:p.completionDate,onClosePress:()=>m($e),termType:I,withLoanLine:void 0,prolongation:void 0}));const A=p.nextPaymentAmount>S?b==S:b==p.nextPaymentAmount,w=S||p.amountDebt,D=p.nextPaymentAmount<1e3?p.nextPaymentAmount<100?0:100:1e3,T=[...null!=_?_:[],{status:"default",realDate:p.openingDate,payment:p.amountContract}],j={transform:L?"rotate(0deg)":"rotate(180deg)",width:"13px",height:"9px"};return o.a.createElement("div",{className:Qe.a.container},o.a.createElement("div",{className:Qe.a.titleBlock},o.a.createElement("p",{className:Qe.a.title},d===tt?"Платеж по договору ".concat(O):"Договор ".concat(O)),a>1&&o.a.createElement("div",{onClick:()=>k(!L),className:Qe.a.expandDesktop},o.a.createElement("p",null,L?"Свернуть детали договора":"Развернуть детали договора"),o.a.createElement(Ze.a,{style:j}))),o.a.createElement("div",{className:Qe.a.contentBlock},o.a.createElement("div",{className:Qe.a.rightBlockMain},o.a.createElement("div",{className:Qe.a.leftBlock},o.a.createElement("div",{className:Qe.a.upBlock},o.a.createElement("p",{className:Qe.a.currentLoadTitle},"Заем на ",Object(u.nb)(p.amountContract)," ₽"),o.a.createElement("p",{className:Qe.a.titleUpBlock},M.key===u.P.LOAN_WITH_GRACE_PERIOD.key?"Полное погашение":"Ближайший платеж"," ",ve()(p.nextPaymentDate).locale("ru").format("DD MMMM")),o.a.createElement("p",{className:Qe.a.futurePaymentDetailsAmount},Object(u.nb)(p.nextPaymentAmount)," Р"))),L&&window.innerWidth>1080&&o.a.createElement(We,{termType:I,contract:p,onClick:()=>m(et)})),(window.innerWidth>1080||window.innerWidth<=1080)&&o.a.createElement("div",{className:Qe.a.leftRightBlockMain},o.a.createElement("div",{className:Qe.a.rightBlock},o.a.createElement("p",{className:Qe.a.rightBlockTitle},"Погасить"),o.a.createElement("p",{className:Qe.a.rightBlockDescription},"Вы можете погасить заем полностью, или внести любую сумму - если она будет меньше суммы закрытия, то будет зачислена в счет платежей по графику."),o.a.createElement(qe,{rangeStylesType:u.R.DESKTOP,maxValue:w,minValue:D,amount:b||0,onChange:f}),o.a.createElement("div",{className:Qe.a.inputContainer},o.a.createElement("div",{className:Qe.a.inputCustom},o.a.createElement(Re.a,{name:"range",type:"number",onChange:e=>{f(e.target.value>w?w:/^[0-9]+$/.test(e.target.value)?e.target.value:e.target.value.split(".")[0])},onBlur:e=>{e.target.value<D&&f(D)},value:b})),o.a.createElement(qe,{rangeStylesType:u.R.MOBILE,maxValue:w,minValue:D,amount:b||0,onChange:f}),!A&&window.innerWidth>1080&&o.a.createElement(be.b,{className:"",onClick:()=>f(p.nextPaymentAmount)},"Сброс"),o.a.createElement(be.b,{status:c?be.a.ACTIVED:be.a.DEFAULT,className:Qe.a.button,onClick:()=>{(b||0)>w?alert("Внесенная сумма больше долга"):(b||0)<D?alert("Внесенная сумма меньше минимальной"):S===b||(b||0)<=p.nextPaymentAmount?(e=>{const a=e||b;E&&i("/profile/payment-composition/".concat(t,"?amount=").concat(a).concat(a===S?"&paymentType=EARLY_CLOSE_LOAN_PAYMENT":""))})():i("/profile/payment-composition/".concat(t,"?amount=").concat(b,"&type=").concat(u.f.PARTIALLY_EARLY))}},"Оплатить"))),L&&window.innerWidth>1080&&o.a.createElement(nt,{paymants:T}))),window.innerWidth<=1080&&o.a.createElement(We,{termType:I,contract:p,onClick:()=>m(et)}),window.innerWidth<=1080&&o.a.createElement(nt,{paymants:T}))};lt.getLayout=_e;
1var ot=lt,ct=a(418),rt=a.n(ct);const it=()=>{const{contracts:e}=Object(g.c)(e=>{let{profile:t}=e;return{contracts:t.contracts}});return o.a.createElement("div",{className:rt.a.container},o.a.createElement(f,{className:rt.a.headerLimit,zeroClassName:rt.a.headerNoLimit}),!e.length&&o.a.createElement(m.a,{text:"Ожидание данных"}),e.map((t,a)=>o.a.createElement(ot,{key:t.loanApplicationId,id:t.loanApplicationId.toString(),nearestPayment:0===a,contractsLength:(null==e?void 0:e.length)||0})))};it.getLayout=_e;var st,dt,mt=it;function ut(){return(ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}const pt=e=>{let{svgRef:t,title:a,...n}=e;return o.a.createElement("svg",ut({width:10,height:10,viewBox:"0 0 10 10",fill:"none",ref:t},n),a?o.a.createElement("title",null,a):null,st||(st=o.a.createElement("path",{d:"M1.22998 1.46875L8.47998 8.70874",stroke:"#FEFEFE",strokeWidth:1.7875,strokeLinecap:"round",strokeLinejoin:"round"})),dt||(dt=o.a.createElement("path",{d:"M8.47998 1.46875L1.22998 8.70874",stroke:"#FEFEFE",strokeWidth:1.7875,strokeLinecap:"round",strokeLinejoin:"round"})))},Ct=o.a.forwardRef((e,t)=>o.a.createElement(pt,ut({svgRef:t},e)));a.p,a(419);var _t=a(222),gt=a(246),ht=a.n(gt);const Et=Object(c.cn)("PageSavedMethods"),vt={overlay:{top:"0",left:"0",right:"0",bottom:"0",zIndex:10,backgroundColor:"rgba(28, 42, 64, 0.4)",display:"flex",alignItems:"end"},content:{position:"relative",inset:"inherit",border:"none",background:"none",overflow:"inherit",borderRadius:0,outline:"none",padding:0,height:"fit-content",width:"100%"}},bt=e=>{let{lastFour:t,expDate:a,direction:n,availableDelete:l,onClick:c}=e;return t&&a?o.a.createElement("div",{className:Et("SavedMethod")},o.a.createElement("div",{className:Et("SavedMethodLeftBlock")},o.a.createElement("div",{className:Et("AcceptedIconContainer",{isActive:!0})},o.a.createElement(Ne,null)),o.a.createElement("div",{className:Et("MethodDetails")},o.a.createElement("p",{className:Et("CardNumber")},"Банковская карта - ",t),o.a.createElement("p",{className:Et("CardDate")},a))),l&&o.a.createElement("div",{className:Et("RemoveIconContainer"),onClick:c},o.a.createElement(Ct,null))):o.a.createElement("div",{className:Et("SavedMethod",{isDisabled:!0})},o.a.createElement("div",{className:Et("SavedMethodLeftBlock")},o.a.createElement("div",{className:Et("AcceptedIconContainer")}),o.a.createElement("div",{className:Et("MethodDetails")},o.a.createElement("p",null,n===u.u.INCOMING?"Нет сохраненного способа получения":"Нет сохраненного способа возврата"))))},ft=()=>{const[e,t]=Object(l.useState)(0),[a,n]=Object(l.useState)(!1),[c,r]=Object(l.useState)([]),[i,s]=Object(l.useState)([]),[d,m]=Object(l.useState)(!1);Object(l.useEffect)(()=>{n(!0),(async()=>{const{result:e}=await Object(h.E)();if(n(!1),null==e?void 0:e.data){const t=G.a.filter(e.data.rows,{typeMethod:u.u.INCOMING,isVisible:!0}),a=G.a.filter(e.data.rows,{typeMethod:u.u.OUTGOING,isVisible:!0});r(G.a.slice([...t,...G.a.fill(Array(3),{})],0,3)),s(G.a.slice([...a,...G.a.fill(Array(3),{})],0,3))}})()},[e]);const p=async e=>{await Object(h.k)({paymentDataId:e}),t(e=>e+1)},C=()=>{m(!1),document.body.style.overflow=""};return a?o.a.createElement("div",{className:Et("Loading-Block")},o.a.createElement("div",{className:Et("Loading-Points")},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null)),o.a.createElement("p",{className:Et("Loading-Text")},"Загрузка данных")):o.a.createElement("div",{className:Et()},o.a.createElement("div",{className:Et("Header")},o.a.createElement("h2",{className:Et("Title")},"Платежные данные"),o.a.createElement("p",{onClick:()=>{m(!0),document.body.style.overflow="hidden"},className:Et("askIcon")},"?"),o.a.createElement("p",{className:Et("Description")},"В данном разделе хранятся данные сохраненных Вами способов получения и возврата средств. Всего вы можете хранить данные трех различных способов в каждой группе.")),o.a.createElement("div",{className:Et("Content")},o.a.createElement("div",{className:Et("ItemsContainer")},o.a.createElement("h3",null,"Способы получения"),c.slice(0,3).map((e,t)=>o.a.createElement(bt,{key:"SaveMethods".concat(t),onClick:()=>p(e.id),direction:u.u.INCOMING,lastFour:e.lastFour,expDate:e.expDate,availableDelete:e.availableDelete})),o.a.createElement("h3",null,"Способы возврата"),i.slice(0,3).map((e,t)=>o.a.createElement(bt,{key:"savedMethods".concat(t),onClick:()=>p(e.id),direction:u.u.OUTGOING,lastFour:e.lastFour,expDate:e.expDate,availableDelete:e.availableDelete}))),o.a.createElement(ht.a,{isOpen:d,onRequestClose:C,contentLabel:"Example Modal",style:vt},o.a.createElement(_t.a,{hide:C},d&&o.a.createElement("div",{className:Et("wrapperBottom")},o.a.createElement("div",{onClick:C,className:Et("closeIcon")}),o.a.createElement("p",{className:Et("bottomHeader")},"Платежные данные"),o.a.createElement("p",{className:Et("bottomText")},"В данном разделе хранятся данные сохраненных Вами способов получения и возврата средств. Всего вы можете хранить данные трех различных способов в каждой группе."))))))};ft.getLayout=_e;var Lt,kt,St=ft,Nt=a(238);function Bt(){return(Bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}const yt=e=>{let{svgRef:t,title:a,...n}=e;return o.a.createElement("svg",Bt({viewBox:"0 0 28 28",fill:"none",ref:t},n),a?o.a.createElement("title",null,a):null,Lt||(Lt=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.21593 0H16.6674C17.5195 0.00246286 18.3361 0.342039 18.9387 0.944598C19.5412 1.54716 19.8809 2.36373 19.8833 3.21587V12.0513C17.6579 12.2987 15.6024 13.3594 14.1113 15.0298C12.6201 16.7001 11.7983 18.8624 11.804 21.1015C11.802 22.2889 12.0319 23.4654 12.4808 24.5647H3.21593C2.36379 24.5623 1.54721 24.2226 0.944655 23.6201C0.342096 23.0175 0.00246286 22.201 0 21.3489V3.22054C0.00246286 2.3684 0.342096 1.55183 0.944655 0.94927C1.54721 0.346711 2.36379 0.00713485 3.21593 0.004672
1V0ZM4.67678 4.66744C4.36607 4.66744 4.06806 4.79084 3.84836 5.01055C3.62865 5.23025 3.50537 5.52826 3.50537 5.83897C3.50537 6.14968 3.62865 6.44763 3.84836 6.66734C4.06806 6.88704 4.36607 7.0105 4.67678 7.0105H9.34422C9.65493 7.0105 9.95294 6.88704 10.1726 6.66734C10.3924 6.44763 10.5159 6.14968 10.5159 5.83897C10.5159 5.52826 10.3924 5.23025 10.1726 5.01055C9.95294 4.79084 9.65493 4.66744 9.34422 4.66744H4.67678ZM10.5252 16.364C10.8359 16.364 11.1339 16.2406 11.3536 16.0209C11.5733 15.8012 11.6966 15.5032 11.6966 15.1925C11.6966 14.8818 11.5733 14.5838 11.3536 14.3641C11.1339 14.1444 10.8359 14.021 10.5252 14.021H4.67678C4.36607 14.021 4.06806 14.1444 3.84836 14.3641C3.62865 14.5838 3.50537 14.8818 3.50537 15.1925C3.50537 15.5032 3.62865 15.8012 3.84836 16.0209C4.06806 16.2406 4.36607 16.364 4.67678 16.364H10.5252ZM15.1926 11.6966C15.5034 11.6966 15.8014 11.5732 16.0211 11.3535C16.2408 11.1338 16.3641 10.8357 16.3641 10.525C16.3641 10.2143 16.2408 9.91638 16.0211 9.69667C15.8014 9.47697 15.5034 9.35357 15.1926 9.35357H4.66744C4.35673 9.35357 4.05872 9.47697 3.83901 9.69667C3.61931 9.91638 3.49602 10.2143 3.49602 10.525C3.49602 10.8357 3.61931 11.1338 3.83901 11.3535C4.05872 11.5732 4.35673 11.6966 4.66744 11.6966H15.1926Z",fill:"#1C2A40"})),kt||(kt=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.8563 14.1953C19.0262 14.1978 17.2719 14.9258 15.9778 16.2199C14.6838 17.5139 13.9556 19.2683 13.9531 21.0984C13.9556 22.9285 14.6838 24.6829 15.9778 25.9769C17.2719 27.271 19.0262 27.9991 20.8563 28.0016C22.6864 27.9991 24.4407 27.271 25.7348 25.9769C27.0288 24.6829 27.757 22.9285 27.7594 21.0984C27.757 19.2683 27.0288 17.5139 25.7348 16.2199C24.4407 14.9258 22.6864 14.1978 20.8563 14.1953ZM24.3101 19.4088L20.5762 23.6562C20.4805 23.7663 20.3631 23.8554 20.2314 23.9181C20.0997 23.9807 19.9564 24.0155 19.8107 24.0202H19.7735C19.6338 24.0202 19.4955 23.9926 19.3665 23.9389C19.2375 23.8853 19.1204 23.8066 19.0219 23.7076L16.8983 21.5838C16.7992 21.4854 16.7206 21.3683 16.667 21.2393C16.6133 21.1104 16.5856 20.9721 16.5856 20.8324C16.5856 20.6927 16.6133 20.5544 16.667 20.4254C16.7206 20.2965 16.7992 20.1794 16.8983 20.0809C16.9968 19.9819 17.1139 19.9032 17.2429 19.8496C17.3719 19.7959 17.51 19.7683 17.6497 19.7683C17.7894 19.7683 17.9278 19.7959 18.0567 19.8496C18.1857 19.9032 18.3026 19.9819 18.4011 20.0809L19.722 21.4018L22.6907 18.0086C22.8767 17.7975 23.1387 17.6687 23.4195 17.6503C23.7003 17.6319 23.9769 17.7255 24.1889 17.9106C24.4041 18.0927 24.5381 18.3528 24.5617 18.6337C24.5854 18.9145 24.4966 19.1933 24.3149 19.4088H24.3101Z",fill:"#1C2A40"})))},Ot=o.a.forwardRef((e,t)=>o.a.createElement(yt,Bt({svgRef:t},e)));a.p;var Mt=a(420),Pt=a.n(Mt);var It=()=>o.a.createElement("div",{className:Pt.a.LoadingBlock},o.a.createElement("div",{className:Pt.a.LoadingPoints},o.a.createElement("svg",{width:"107",height:"140",viewBox:"0 0 107 140",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.9665 120.254H69.7177V70.1785C69.7177 70.0909 70.9348 53.901 55.6555 47.0801L54.9463 48.6737C69.0698 54.978 68.0278 69.4868 67.9753 70.0997L67.9665 120.254Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M62.8177 60.0307L54.3799 65.0967L55.2813 66.5981L63.7191 61.5321L62.8177 60.0307Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M63.2526 68.9806L54.8223 74.042L55.7237 75.5434L64.154 70.482L63.2526 68.9806Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.8004 66.8528C31.0631 68.8054 32.8844 70.723 33.2083 71.047C33.2083 71.047 33.2083 71.0908 33.2083 71.047C32.8844 71.0032 31.0631 70.8106 30.8004 72.4567C30.5378 70.5041 28.699 68.5865 28.375 68.2538C28.375 68.2538 28.375 68.21 28.375 68.2538C28.699 68.3063 30.5378 68.499 30.8004 66.8528C30.7654 66.8091 30.7917 66.8266 30.8004 66.8528Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.8024 62.806C24.0651 64.7586 25.8863 66.6761 26.2103 67.0001C26.2103 67.0001 26.2103 67.0439 26.2103 67.0001C25.8863 66.9563 24.0651 66.7637 23.8024 68.4098C23.5397 66.4572 21.7009 64.5397 21.377 64.2069C21.377 64.2069 21.377 64.1631 21.377 64.2069C21.7009 64.2507 23.5397 64.4521 23.8024 62.806C23.7674 62.7622 23.7936 62.7797 23.8024 62.806Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8092 58.7708C17.0719 60.7234 18.8932 62.6322 19.2171 62.9649C18.8932 62.9212 17.0719 62.7285 16.8092 64.3747C16.5465 62.4221 14.7078 60.5045 14.3838 60.1718C14.7078 60.2243 16.5465 60.4169 16.8092 58.7708C16.8004 58.7445 16.7742 58.727 16.8092 58.7708Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.80432 54.7602C10.067 56.7128 11.8883 58.6217 12.2122 58.9544C12.2122 58.9544 12.2122 58.9982 12.2122 58.9544C11.8883 58.9106 10.067 58.718 9.80432 60.3641C9.54164 58.4115 7.70288 56.4939 7.37891 56.1612C7.37891 56.1612 7.37891 56.1174 7.37891 56.1612C7.70288 56.2138 9.54164 56.4064 9.80432 54.7602C9.77805 54.6902 9.80432 54.699 9.80432 54.7602Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.80334 50.6888C3.06602 52.6414 4.88728 54.5589 5.21125 54.8829C4.88728 54.8304 3.06602 54.6465 2.80334 56.2926C2.54066 54.34 0.701903 52.4225 0.37793 52.0897C0.37793 52.0897 0.37793 52.046 0.37793 52.0897C0.701903 52.1335 2.54066 52.3349 2.80334 50.6888C2.77707 50.645 2.80334 50.6625 2.80334 50.6888Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.8004 58.7352C31.0631 60.6878 32.8844 62.5966 33.2083 62.9294C33.2083 62.9294 33.2083 62.9731 33.2083 62.9294C32.8844 62.8856 31.0631 62.693 30.8004 64.3391C30.5378 62.3865 28.699 60.4689 28.375 60.1449C28.375 60.1449 28.375 60.1012 28.375 60.1449C28.699 60.1975 30.5378 60.3901 30.8004 58.744C30.7654 58.6914 30.7917 58.709 30.8004 58.7352Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.8024 54.6995C24.0651 56.6521 25.8863 58.5609 26.2103 58.8937C26.2103 58.8937 26.2103 58.9374 26.2103 58.8937C25.8863 58.8499 24.0651 58.6573 23.8024 60.3034C23.5397 58.3508 21.7009 56.4332 21.377 56.1005C21.37
17 56.1005 21.377 56.0567 21.377 56.1005C21.7009 56.153 23.5397 56.3457 23.8024 54.6995C23.7674 54.6557 23.7936 54.6733 23.8024 54.6995Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8092 50.6526C17.0719 52.6052 18.8932 54.5228 19.2171 54.8468C18.8932 54.803 17.0719 54.6104 16.8092 56.2565C16.5465 54.3039 14.7078 52.3863 14.3838 52.0536C14.3838 52.0536 14.3838 52.0098 14.3838 52.0536C14.7078 52.0974 16.5465 52.2988 16.8092 50.6526C16.8004 50.6264 16.7742 50.6089 16.8092 50.6526Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.80432 46.6175C10.067 48.5701 11.8883 50.4877 12.2122 50.8116C12.2122 50.8116 12.2122 50.8554 12.2122 50.8116C11.8883 50.7591 10.067 50.5752 9.80432 52.2214C9.54164 50.2688 7.70288 48.3512 7.37891 48.0185C7.37891 48.0185 7.37891 47.9747 7.37891 48.0185C7.70288 48.0622 9.54164 48.2636 9.80432 46.6175C9.77805 46.5737 9.80432 46.5912 9.80432 46.6175Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.80334 42.5813C3.06602 44.5339 4.88728 46.4427 5.21125 46.7754C5.21125 46.7754 5.21125 46.8192 5.21125 46.7754C4.88728 46.7316 3.06602 46.539 2.80334 48.1851C2.54066 46.2325 0.701903 44.315 0.37793 43.9822C0.701903 44.0348 2.54066 44.2274 2.80334 42.5813C2.77707 42.5025 2.80334 42.5462 2.80334 42.5813Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.938 102.245C99.938 72.9644 79.3788 37.3536 54.0214 22.7135C42.3058 15.945 31.6146 14.833 23.5065 18.5106L22.7623 18.9133L14.4265 23.5365L9.75959 31.6534C5.44286 37.2397 8.10471 39.026 8.10471 49.2267C8.10471 78.5069 28.6639 114.118 54.0214 128.758C62.9963 133.933 60.5796 133.635 67.6545 132.584L78.4244 136.507L86.2611 132.085L86.9703 131.665C94.9909 126.753 99.938 116.596 99.938 102.245Z",fill:"#F3F5FA"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.7421 131.629L78.3369 135.491L86.4975 130.868C94.5618 125.929 99.0099 115.755 99.0099 102.244C99.0099 73.3055 78.6171 37.9836 53.5573 23.5186C42.5597 17.1705 32.0174 15.6908 23.8831 19.3595L15.1271 24.2279L10.5915 32.1083C7.85957 35.6545 8.06971 37.432 8.53378 41.3197C8.87913 43.9324 9.05751 46.5646 9.06788 49.2001C9.06788 78.1388 29.4607 113.461 54.5205 127.926C56.1316 128.854 57.3749 129.607 58.3731 130.211C62.1382 132.488 62.1295 132.487 65.7895 131.91L67.5407 131.638H67.7771L67.7421 131.629ZM78.5032 137.531L67.5582 133.564L66.0434 133.801C61.8405 134.466 61.6041 134.414 57.3749 131.857C56.3855 131.253 55.1509 130.509 53.5573 129.589C27.9809 114.827 7.15031 78.8043 7.15031 49.2526C7.14134 46.6846 6.9688 44.1197 6.63371 41.5736C6.16088 37.5721 5.87194 35.1554 8.99785 31.1101L13.7261 22.8707L23.0863 17.6871C31.8423 13.7382 42.98 15.2442 54.5117 21.8988C80.0881 36.6615 100.919 72.6838 100.919 102.235C100.919 116.42 96.1554 127.155 87.5045 132.452L86.7777 132.882L78.5032 137.531Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.2705 108.269C38.0214 116.666 45.8406 123.767 54.1939 128.591C63.16 133.775 60.7521 133.469 67.827 132.418L78.5969 136.349L86.4335 131.927L87.1428 131.507C95.172 126.56 100.137 116.429 100.137 102.043C100.137 88.9091 95.9689 74.4266 89.0779 61.1787L50.166 82.6923L31.2705 108.269Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M92.8343 106.263C92.8343 135.543 72.2751 147.416 46.9176 132.776C21.5601 118.136 1.00098 82.5251 1.00098 53.2449C1.00098 23.9647 21.5601 12.0915 46.9176 26.7316C72.2751 41.3717 92.8343 76.9825 92.8343 106.263Z",fill:"#F3F5FA"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.4082 21.373C22.3821 21.3193 18.4142 22.3377 14.9115 24.3237C6.54076 29.1571 1.92631 39.4279 1.92631 53.2187C1.92631 82.1574 22.3191 117.479 47.3789 131.953C59.3396 138.861 70.5474 140 78.9006 135.166C87.2539 130.333 91.8858 120.053 91.8858 106.271C91.8858 77.3328 71.493 42.0109 46.4332 27.546C39.3408 23.4569 32.5199 21.4167 26.3907 21.4167L26.4082 21.373ZM67.4215 140C60.9683 140 53.8321 137.846 46.407 133.59C20.8306 118.819 0 82.8053 0 53.2537C0 38.7449 4.93839 27.8612 13.9133 22.7214C22.8883 17.5816 34.7439 18.6849 47.3088 25.9349C72.8852 40.6975 93.7158 76.7199 93.7158 106.271C93.7158 120.78 88.7775 131.664 79.8025 136.804C76.03 138.942 71.7577 140.042 67.4215 139.991V140Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.9835 102.324C85.9835 127.252 68.4714 137.348 46.8965 124.888C25.3217 112.428 7.80957 82.1146 7.80957 57.1862C7.80957 32.2577 25.3217 22.162 46.8965 34.6219C68.4714 47.0817 85.9835 77.3951 85.9835 102.324Z",fill:"#AFC3D5"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.4442 30.1902C26.0413 30.1423 22.6868 31.0006 19.725 32.6769C12.6413 36.7659 8.73616 45.4694 8.73616 57.1938C8.73616 81.7895 26.0643 111.796 47.359 124.09C57.4985 129.948 66.9901 130.92 74.0737 126.831C81.1573 122.741 85.0538 114.038 85.0538 102.314C85.0538 77.7179 67.7256 47.711 46.4309 35.4175C40.4155 31.9151 34.6278 30.1639 29.4442 30.1639V30.1902ZM64.3545 131.174C58.8382 131.174 52.7352 129.335 46.4309 125.692C24.6196 113.101 6.87988 82.3674 6.87988 57.185C6.87988 44.7865 11.
1109 35.5138 18.7968 31.0745C26.4846 26.6352 36.6241 27.5721 47.3678 33.8152C69.1791 46.4063 86.9188 77.14 86.9188 102.322C86.9188 114.721 82.6896 123.994 75.0018 128.433C71.7588 130.275 68.084 131.221 64.3545 131.174Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M46.7712 58.8403L44.6348 81.6585L49.0741 84.224L47.0164 58.9804C46.9989 58.8053 46.7888 58.6827 46.7712 58.8403Z",fill:"#F3F5FA"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.6137 81.1601L48.0041 82.5435L46.8308 68.1661L45.6137 81.1601ZM50.1406 85.9146L43.6523 82.167L45.9289 57.904L46.8045 57.834C47.0866 57.8439 47.355 57.9575 47.5585 58.153C47.7621 58.3484 47.8864 58.6121 47.9078 58.8935L50.1406 85.9146Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M47.1878 83.2887L47.0234 85.1377L66.4291 86.8628L66.5935 85.0137L47.1878 83.2887Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M46.2186 40.3197L46.1777 45.3018L47.6049 45.3135L47.6458 40.3314L46.2186 40.3197Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M49.7872 42.533L49.2842 47.2168L50.7033 47.3692L51.2063 42.6854L49.7872 42.533Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M53.2884 45.1219L52.3457 49.46L53.7404 49.763L54.6831 45.425L53.2884 45.1219Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M56.806 48.1172L55.4199 52.0664L56.7666 52.5391L58.1527 48.5899L56.806 48.1172Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M60.1835 51.4454L58.3809 54.959L59.6507 55.6105L61.4533 52.0969L60.1835 51.4454Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M63.4051 55.0595L61.2002 58.0898L62.3543 58.9296L64.5591 55.8993L63.4051 55.0595Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M66.4795 58.9242L63.8936 61.4521L64.8913 62.4727L67.4772 59.9448L66.4795 58.9242Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M69.3505 63.0445L66.415 65.0342L67.2158 66.2156L70.1512 64.2259L69.3505 63.0445Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M72.0066 67.3903L68.752 68.8203L69.3261 70.127L72.5807 68.6969L72.0066 67.3903Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M74.3681 71.8485L70.8369 72.7061L71.1737 74.093L74.7049 73.2354L74.3681 71.8485Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M76.4463 76.389L72.665 76.666L72.7693 78.0894L76.5506 77.8124L76.4463 76.389Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M74.2111 80.7509L74.1006 82.1738L78.0814 82.4829L78.1918 81.06L74.2111 80.7509Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M75.4941 83.3816L75.1943 84.7803L79.3389 85.6684L79.6386 84.2697L75.4941 83.3816Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M76.2754 88.7141L75.8105 90.0635L80.0574 91.5266L80.5223 90.1772L76.2754 88.7141Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M76.8186 92.5695L76.2139 93.8623L80.5284 95.8806L81.1332 94.5878L76.8186 92.5695Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M72.8855 93.8953L72.166 95.1279L80.6811 100.098L81.4005 98.8651L72.8855 93.8953Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M76.9727 99.875L76.1455 101.038L80.4482 104.098L81.2754 102.935L76.9727 99.875Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M76.5157 103.164L75.6006 104.259L79.8337 107.796L80.7489 106.7L76.5157 103.164Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M75.7504 106.213L74.7588 107.239L78.8648 111.206L79.8564 110.179L75.7504 106.213Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M74.6768 109.012L73.6182 109.97L77.5586 114.328L78.6173 113.37L74.6768 109.012Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M73.2979 111.411L72.1797 112.298L75.9123 117.004L77.0305 116.117L73.2979 111.411Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M71.6134 113.466L70.4424 114.282L73.9215 119.275L75.0925 118.459L71.6134 113.466Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.6442 121.176L68.457 115.948L69.6741 115.204L72.8701 120.431L71.6442 121.176Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M67.4946 116.516L66.2334 117.184L69.0983 122.592L70.3595 121.924L67.4946 116.516Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.3059 123.548L63.793 118.014L65.0889 117.428L67.6018 122.953L66.3059 123.548Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M62.4843 117.924L61.1504 118.432L63.277 124.021L64.6109 123.514L62.4843 117.924Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.0785 124.004L58.3623 118.417L59.7282 117.997L61.4444 123.583L60.0785 124.004Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M56.8202 117.69L55.4307 118.016L56.7263 123.54L58.1158 123.214L56.8202 117.69Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M53.812 116.943L52.4023 117.167L53.2594 122.572L54.669 122.348L53.812 116.943Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M50.7403 115.773L49.3174 115.884L49.7246 121.104L51.1475 120.993L50.74
103 115.773Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M46.2171 109.374L46.1777 119.181L47.6049 119.186L47.6443 109.38L46.2171 109.374Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M43.0997 112.144L42.6016 116.828L44.0208 116.979L44.5189 112.295L43.0997 112.144Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M40.0023 109.709L39.0596 114.047L40.4542 114.35L41.3969 110.012L40.0023 109.709Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M37.0223 106.964L35.6426 110.906L36.9897 111.378L38.3694 107.436L37.0223 106.964Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M34.1616 103.912L32.3584 107.425L33.6281 108.077L35.4314 104.563L34.1616 103.912Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M31.3948 100.534L29.1904 103.564L30.3446 104.404L32.549 101.373L31.3948 100.534Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M28.8966 97.0093L26.3115 99.5381L27.3096 100.558L29.8946 98.0295L28.8966 97.0093Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M26.5569 93.2803L23.6211 95.2695L24.4217 96.4511L27.3575 94.4619L26.5569 93.2803Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M24.4597 89.3411L21.2061 90.7734L21.7811 92.0797L25.0347 90.6474L24.4597 89.3411Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M22.6141 85.3876L19.083 86.2451L19.4198 87.632L22.951 86.7745L22.6141 85.3876Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M21.0277 81.3484L17.2549 81.6201L17.3574 83.0437L21.1303 82.7719L21.0277 81.3484Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M15.7374 77.0321L15.627 78.4551L19.6077 78.7642L19.7182 77.3412L15.7374 77.0321Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M14.5733 72.4662L14.2725 73.8613L18.4066 74.7529L18.7075 73.3577L14.5733 72.4662Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M13.7083 67.9573L13.2432 69.3066L17.4898 70.7705L17.9549 69.4212L13.7083 67.9573Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M13.2207 63.5904L12.6152 64.8828L16.9287 66.9034L17.5342 65.6109L13.2207 63.5904Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M13.1069 59.3893L12.3877 60.6221L20.9036 65.5904L21.6229 64.3577L13.1069 59.3893Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M13.3213 55.3916L12.4941 56.5547L16.7969 59.6147L17.624 58.4516L13.3213 55.3916Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M13.9514 51.6999L13.0361 52.7949L17.2687 56.3326L18.184 55.2375L13.9514 51.6999Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M14.9018 48.2508L13.9102 49.2773L18.0161 53.2438L19.0078 52.2173L14.9018 48.2508Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M16.2217 45.1902L15.1631 46.1475L19.1036 50.5054L20.1622 49.5482L16.2217 45.1902Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M17.8739 42.4547L16.7559 43.3418L20.4839 48.0404L21.6019 47.1532L17.8739 42.4547Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M19.8476 40.1653L18.6768 40.9814L22.1568 45.9736L23.3276 45.1575L19.8476 40.1653Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M20.3274 38.0723L19.1143 38.8145L22.3015 44.0243L23.5146 43.2821L20.3274 38.0723Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M24.6802 36.9071L23.4189 37.5752L26.2838 42.9838L27.5451 42.3157L24.6802 36.9071Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M27.4901 35.9561L26.1904 36.5459L28.7017 42.0794L30.0014 41.4896L27.4901 35.9561Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M30.4989 35.46L29.165 35.9678L31.2926 41.5569L32.6265 41.0491L30.4989 35.46Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M33.7038 35.4761L32.3398 35.8965L34.0626 41.4861L35.4265 41.0657L33.7038 35.4761Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M37.0507 36.0191L35.6611 36.3447L36.9558 41.8689L38.3453 41.5433L37.0507 36.0191Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M40.5189 36.9533L39.1094 37.1768L39.9664 42.5818L41.376 42.3582L40.5189 36.9533Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M44.0557 38.4417L42.6328 38.5527L43.04 43.773L44.4629 43.662L44.0557 38.4417Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M46.2012 40.3272L46.1602 50.1338L47.5874 50.1398L47.6284 40.3331L46.2012 40.3272Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.0551 85.9151C50.0551 87.7802 48.7417 88.5419 47.1218 87.605C46.2703 87.0492 45.5617 86.3006 45.0536 85.4197C44.5455 84.5389 44.2521 83.5507 44.1973 82.5353C44.1973 80.6703 45.5107 79.9085 47.1218 80.8454C47.975 81.4002 48.6852 82.1485 49.1949 83.0294C49.7046 83.9103 49.9993 84.899 50.0551 85.9151Z",fill:"#F3F5FA"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.8502 81.3701C45.7465 81.3663 45.6437 81.3905 45.5525 81.4402C45.4026 81.5766 45.2883 81.7477 45.2196 81.9385C45.1509 82.1293 45.13 82.3339 45.1585 82.5347C45.2118 83.3871 45.4615 84.2157 45.8884 84.9554C46.3153 85.6952 46.9076 86.3262 47.619 86.7989C47.7351 87.0021 47.9271 87.1508 48.1529 87.2124C48.3787 87.274 48.6197 87.2433 48.8229 87.1272C49.0261 87.0111 49.1748 86.819 49.23
164 86.5932C49.298 86.3674 49.2674 86.1264 49.1513 85.9233C49.0981 85.0708 48.8482 84.2423 48.4214 83.5025C47.9945 82.7627 47.4022 82.1318 46.6908 81.6591C46.4291 81.4894 46.1269 81.3926 45.8152 81.3789L45.8502 81.3701ZM48.4771 88.9266C47.8577 88.9059 47.2543 88.7249 46.7258 88.4012C45.7335 87.763 44.9082 86.8968 44.3187 85.8747C43.7292 84.8527 43.3927 83.7045 43.3373 82.5259C43.2665 81.9966 43.3545 81.4581 43.59 80.9788C43.8256 80.4996 44.1983 80.101 44.6606 79.8337C45.123 79.5665 45.6542 79.4425 46.1871 79.4775C46.7201 79.5125 47.2306 79.705 47.654 80.0304C48.648 80.6676 49.475 81.5335 50.0661 82.5556C50.6571 83.5777 50.9949 84.7264 51.0513 85.9057C51.0898 86.4321 50.9876 86.9592 50.7553 87.4331C50.5229 87.907 50.1688 88.3106 49.7292 88.6026C49.3471 88.8158 48.9144 88.9217 48.4771 88.9091V88.9266Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M52.2188 21.1626L45.1377 25.1836L46.0543 26.7978L53.1354 22.7768L52.2188 21.1626Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M85.5286 55.1667L78.4434 59.1982L79.3614 60.8116L86.4466 56.7801L85.5286 55.1667Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M38.5723 16.402L31.4961 20.4316L32.4147 22.0447L39.4908 18.0151L38.5723 16.402Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M87.9765 139.028L87.1797 137.347C91.5694 135.327 95.3281 132.152 98.0547 128.162C101.881 122.436 106.005 112.261 103.921 96.2989L105.76 96.0537C107.923 112.585 103.606 123.197 99.6307 129.195C96.7095 133.469 92.681 136.868 87.9765 139.028Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M97.6419 66.6241C78.081 20.8038 43.442 12.1003 43.0918 12.0127L43.5209 10.209C43.8799 10.2965 79.4206 19.1752 99.3493 65.8974L97.6419 66.6241Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.2523 34.8414C83.1421 32.4334 80.9969 30.1306 78.8779 28.0116L80.1913 26.6982C82.3453 28.8435 84.5168 31.1726 86.6533 33.6155L85.2523 34.8414Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M75.9276 25.1387C49.6595 0.691892 30.3 6.15566 30.1073 6.2082L29.5645 4.45699C30.3875 4.20307 50.0535 -1.43582 77.1885 23.7991L75.9276 25.1387Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M76.1636 17.1106C71.1866 12.5602 65.555 8.78221 59.457 5.90284L60.2451 4.22168C66.5121 7.17967 72.3 11.0609 77.4157 15.7359L76.1636 17.1106Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.3149 4.54438C53.4372 3.33387 50.441 2.42708 47.375 1.83877L47.6552 0C50.867 0.602954 54.0049 1.54816 57.0154 2.81944L56.3149 4.54438Z",fill:"#272F3C"}))),o.a.createElement("p",{className:Pt.a.LoadingText},"Загрузка данных")),At=a(216),wt=a(421),Dt=a.n(wt);const Tt=e=>{let{title:t,description:a,...n}=e;return o.a.createElement(At.a,Object.assign({},n,{isTop:!1,className:Dt.a.modalBlock}),o.a.createElement("p",{className:Dt.a.modalTitle},t),o.a.createElement("p",{className:Dt.a.modalDescription},a))};var jt=a(208),Rt=a(422),Ft=a.n(Rt);const xt=e=>{let{title:t,description:a,children:l,plugEnabled:c=!1,backLink:r="",forwardLink:i="",forwardTitle:s=""}=e;const d=Object(n.o)(),{openModal:m,isOpenModal:u,handleCloseClick:p,handleCloseTopBlock:C,forceDisplacement:_}=Object(jt.a)();return o.a.createElement("div",{className:Ft.a.container},o.a.createElement(f,{className:Ft.a.limit,zeroClassName:Ft.a.zeroLimit}),o.a.createElement("div",{className:Ft.a.mainBlock},o.a.createElement("div",{className:Ft.a.header},o.a.createElement("div",{className:Ft.a.titleChevronBlock},r&&o.a.createElement(be.b,{onClick:()=>d(-1),className:Ft.a.chevronBlock},o.a.createElement(Ze.a,{className:Ft.a.chevron,height:7,width:11})),o.a.createElement("h2",{className:Ft.a.title},t)),o.a.createElement("p",{className:Ft.a.description},a),o.a.createElement("div",{className:Ft.a.question,onClick:m})),o.a.createElement("div",{className:Ft.a.centralContentWrapper},o.a.createElement("div",{className:Ft.a.centralContent},l),c&&o.a.createElement("div",{className:Ft.a.plug})),o.a.createElement("div",{className:Ft.a.buttonsBlock},r&&o.a.createElement(be.b,{link:r,onClick:()=>d(-1),className:Ft.a.button},"Назад"),i&&o.a.createElement(be.b,{link:i,onClick:()=>{},className:Ft.a.activeButton},s||"Далее")),o.a.createElement(Tt,{isOpenModal:u,forceDisplacement:_,handleCloseClick:p,handleCloseTopBlock:C,title:"Дополнительные услуги",description:a})))},Zt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.a.createElement("svg",Object.assign({viewBox:"0 0 28 29",fill:"none"},e),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.0898 28.4111C17.7262 28.4032 21.2109 26.9551 23.7822 24.3838C26.3535 21.8125 27.8016 18.3268 27.8096 14.6904C27.8043 11.0524 26.3577 7.56465 23.7861 4.99121C21.2146 2.41777 17.7279 0.968871 14.0898 0.960938C10.45 0.966228 6.96045 2.41455 4.38672 4.98828C1.81299 7.56201 0.364665 11.0506 0.359375 14.6904C0.367309 18.3285 1.81718 21.8152 4.39062 24.3867C6.96407 26.9583 10.4518 28.4058 14.0898 28.4111Z"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2613 15.5586L11.2613 13.5586C10.9213 13.2186 10.8213 13.0488 10.2613 13.0488C10.1315 13.0567 10.0045 13.0934 9.89114 13.1572C9.77782 13.221 9.68108 13.3101 9.60696 13.417C9.53284 13.5238 9.48346 13.6459 9.46341 13.7744C9.44336 13.9029 9.45271 14.0348 9.49075 14.1592C9.51303 14.2419 9.55067 14.3194 9.6011 14.3887L13.1011 17.8984C13.3647 18.1474 13.7131 18.2861 14.0757 18.2861C14.4383 18.2861 14.7877 18.1474 15.0513 17.8984L18.4009 14.5791C18.5451 14.4614 18.6486 14.3002 18.6958 14.1201C18.7431 13.9401 18.7314 13.7495 18.6636 13.5762C18.5958 13.4028 18.4748 13.2555 18.3179 13.1553C18.161 13.055 17.9764 13.0073 17.7906 13.0186C17.3206 13.0186 16.7213 
113.7685 16.3013 14.1885L14.9605 15.5088V9.18848C14.9605 8.73848 14.9611 8.55855 14.8111 8.26855C14.729 8.16077 14.6229 8.07381 14.5015 8.01367C14.3801 7.95353 14.2464 7.92188 14.1109 7.92188C13.9754 7.92188 13.8417 7.95353 13.7202 8.01367C13.5988 8.07381 13.4928 8.16077 13.4107 8.26855C13.2207 8.53855 13.2408 8.71871 13.2408 9.17871L13.2613 15.5586Z",fill:"#FDFDFD"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.46875 20.5506C9.48932 20.787 9.58332 21.0106 9.73828 21.1903C9.8264 21.2804 9.93266 21.3508 10.0498 21.3973C10.1669 21.4438 10.292 21.4659 10.418 21.4608H17.8184C18.0518 21.4608 18.2754 21.368 18.4404 21.203C18.6055 21.038 18.6982 20.8143 18.6982 20.5809C18.6982 20.3475 18.6055 20.1229 18.4404 19.9579C18.2754 19.7928 18.0518 19.7001 17.8184 19.7001H10.5088C10.2615 19.6899 10.0185 19.7723 9.82812 19.9305C9.64343 20.0922 9.51758 20.3101 9.46875 20.5506Z",fill:"#FDFDFD"}))},Ht=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.a.createElement("svg",Object.assign({viewBox:"0 0 17 22",fill:"none"},e),o.a.createElement("path",{d:"M15.2105 18.7403V22L13.4211 20.1667L11.6316 22V18.7403C10.9493 18.3368 10.416 17.7138 10.1145 16.9681C9.81304 16.2224 9.76014 15.3956 9.96405 14.6159C10.168 13.8362 10.6173 13.1473 11.2423 12.6559C11.8674 12.1646 12.6332 11.8982 13.4211 11.8982C14.2089 11.8982 14.9747 12.1646 15.5998 12.6559C16.2248 13.1473 16.6741 13.8362 16.878 14.6159C17.082 15.3956 17.0291 16.2224 16.7276 16.9681C16.4261 17.7138 15.8928 18.3368 15.2105 18.7403ZM9.8421 19.6744V20.1667H0V2.75C0 2.02065 0.2828 1.32118 0.786187 0.805456C1.28957 0.289731 1.97231 0 2.68421 0L13.4211 0C14.1329 0 14.8157 0.289731 15.3191 0.805456C15.8225 1.32118 16.1053 2.02065 16.1053 2.75V10.8249C14.9566 10.1413 13.6011 9.91892 12.3015 10.2008C11.0019 10.4826 9.85069 11.2486 9.0709 12.3504C8.29111 13.4522 7.93827 14.8114 8.08075 16.1645C8.22323 17.5176 8.85089 18.7684 9.8421 19.6744ZM3.57895 5.5H12.5263V3.66667H3.57895V5.5ZM3.57895 9.16667H12.5263V7.33333H3.57895V9.16667ZM3.57895 12.8333H8.05263V11H3.57895V12.8333Z"}))},Vt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.a.createElement("svg",Object.assign({viewBox:"0 0 25 25",fill:"none"},e),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5049 25C15.8166 24.9928 18.9904 23.6739 21.3321 21.3321C23.6739 18.9904 24.9928 15.8158 25 12.504C24.9952 9.19067 23.6777 6.01427 21.3357 3.67053C18.9937 1.32679 15.8182 0.00722561 12.5049 0C9.18998 0.00481819 6.01186 1.32387 3.66786 3.66786C1.32387 6.01186 0.00481819 9.18909 0 12.504C0.00722561 15.8173 1.32768 18.9928 3.67142 21.3348C6.01516 23.6768 9.19156 24.9952 12.5049 25Z"}),o.a.createElement("path",{d:"M18.5303 13.5303C18.8232 13.2374 18.8232 12.7626 18.5303 12.4697L13.7574 7.6967C13.4645 7.40381 12.9896 7.40381 12.6967 7.6967C12.4038 7.98959 12.4038 8.46447 12.6967 8.75736L16.9393 13L12.6967 17.2426C12.4038 17.5355 12.4038 18.0104 12.6967 18.3033C12.9896 18.5962 13.4645 18.5962 13.7574 18.3033L18.5303 13.5303ZM6 13V13.75H18V13V12.25H6V13Z",fill:"#FDFDFD"}))};var Wt=a(71),Gt=a(423),Ut=a.n(Gt);const Yt=[{title:"Общие условия договора потребительского займа",type:u.K.CONSUMER_LOAN},{title:"Заявление о приеме на обслуживание",type:u.K.SERVICE_APPLICATION},{title:"Согласие на обработку персональных данных",type:u.K.PERSONAL_DATA,icon:Ot,iconType:"checker"},{title:"Согласие на запрос кредитной истории",type:u.K.CREDIT_HISTORY,icon:Ot,iconType:"checker"},{title:"Соглашение об использовании цифрового аналога подписи",type:u.K.ANALOG_SIGNATURE,icon:Ot,iconType:"checker"}],zt=e=>{const t=e,a=(null==t?void 0:t.icon)||Nt.a;return o.a.createElement(o.a.Fragment,null,o.a.createElement(a,{className:"others"===(null==t?void 0:t.iconType)?Ut.a.iconOthers:"checker"===(null==t?void 0:t.iconType)?Ut.a.iconCheck:Ut.a.icon}),o.a.createElement("p",{className:Ut.a.title},t.title),(null==e?void 0:e.link)?o.a.createElement(Vt,{className:Ut.a.downLoadIcon}):o.a.createElement(Zt,{className:Ut.a.downLoadIcon}))},qt=()=>{const e=Object(l.useContext)(r.a),{clientId:t,username:a}=Object(g.c)(e=>{let{profile:t,auth:a}=e;return{clientId:t.flags.clientId,username:a.username}}),[n,c]=Object(l.useState)(!1),[i,s]=Object(l.useState)(!1),[d,m]=Object(l.useState)(!0),[p,C]=Object(l.useState)([]);Object(l.useEffect)(()=>{Object(Wt.d)().then(e=>{var t;const a="true"===(null==e||null===(t=e.find(e=>"COMMISSION_OPT_OUT_ALLOWED"===e.type))||void 0===t?void 0:t.value);s(a)}).finally(()=>m(!1))},[]),Object(l.useLayoutEffect)(()=>{(async(e,t)=>{const a=sessionStorage.getItem("contractsDocs");a&&C(JSON.parse(a));const{result:n}=await Object(h.t)(),{result:l}=await Object(h.p)(),o=(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.rows)||[],c=o.map(e=>({id:e.contract,title:"Справка об отсутствии задолженности по Договору\n №".concat(e.contract),contractDocType:u.o.CLOSED_DOC,contractDate:e.dateOpen})),r=new Set(o.map(e=>e.contract)),i=[...Object.entries((null==n||null===(t=n.data)||void 0===t?void 0:t.images)||[]).filter(e=>
1{let[t,a]=e;return!!a&&!r.has(a.toString())}).map(e=>{let[t,a]=e;return{id:t,title:"Договор №".concat(a),contractDocType:u.o.DOC}})||[],...c];C(i),sessionStorage.setItem("contractsDocs",JSON.stringify(i))})()},[]);const _=async t=>{let n,{request:l,title:r,downloadName:i="document.pdf",eventName:s}=t;c(!0);try{n=await l()}catch(e){console.error(e),await Object(h.S)({eventName:s,phone:a,error:e,userAgent:window.navigator.userAgent})}finally{c(!1)}if(n){const t=new Blob([n.result.data],{type:"application/pdf"}),a=URL.createObjectURL(t);if(window.innerWidth<=1080){const e=document.createElement("a");return e.style.display="none",e.href=a,e.download=i,document.body.appendChild(e),e.click(),window.URL.revokeObjectURL(a),void document.body.removeChild(e)}if(!e)return;const l=e;l.setTitle(r),l.setContent(o.a.createElement("iframe",{title:r,src:a,width:"99%",height:"97%"})),l.setShown(!0)}},E=[...Yt,...p],v=d?E:[...E,{title:i?"Услуги по гарантии":"Прочее",type:u.K.ANALOG_SIGNATURE,icon:Ht,iconType:"others",link:i?"/profile/settings/services":"/profile/settings/others"}];return o.a.createElement(xt,{plugEnabled:!0,title:"Документы",description:"В данном разделе можно еще раз ознакомиться с полным текстом документов, регулирующих ваши взаимоотношения с платформой, или сохранить их у себя на устройстве."},n?o.a.createElement(It,null):o.a.createElement(o.a.Fragment,null),v.map(e=>
1{const a=e,n=a.contractDocType;return(null==a?void 0:a.link)?o.a.createElement(Z.b,{className:Ut.a.document,to:a.link},o.a.createElement(zt,a)):o.a.createElement("div",{className:Ut.a.document,onClick:()=>n?a.contractDate?(async e=>{let{contractNumber:a,contractDate:n}=e;return _({request:async()=>await Object(h.A)({clientId:t,contractNumber:a,contractDate:n}),title:"Справка об отсутствии задолженности по Договору №".concat(a),eventName:"template/contract"})})({contractNumber:a.id,contractDate:a.contractDate}):(async e=>{let{imageId:t,title:a}=e;return _({request:async()=>await Object(h.s)({imageId:t}),title:a,eventName:"template/contract"})})({imageId:a.id,title:a.title}):(async e=>{let{fileType:a,title:n}=e;return _({request:async()=>await Object(h.m)({clientId:t,fileType:a}),title:n,eventName:"template/contract"})})({fileType:a.type,title:a.title})},o.a.createElement(zt,a))}))};qt.getLayout=_e;var Jt,Qt,Kt,Xt=qt,$t=a(424),ea=a.n($t);function ta(){return(ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}const aa=e=>{let{svgRef:t,title:a,...n}=e;return o.a.createElement("svg",ta({width:40,height:50,viewBox:"0 0 40 50",fill:"none",ref:t},n),a?o.a.createElement("title",null,a):null,Jt||(Jt=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.873 47.5496H6.85021C4.23814 47.5496 2.45036 45.7638 2.45036 43.1478V6.75612C2.45036 4.14208 4.23912 2.35332 6.85316 2.35332H24.8505V9.10356C24.8505 10.9796 25.224 12.4008 26.1453 13.3848C26.6687 13.9435 27.0068 14.2777 27.7067 14.659C28.3864 15.0478 29.1544 15.2564 29.9375 15.2647H37.2748V42.6587C37.2748 44.2113 36.9386 45.3384 36.1761 46.1578C35.4135 46.9772 34.403 47.5496 32.873 47.5496ZM27.394 4.30969V8.51646C27.394 10.1406 27.2891 11.0041 28.1222 11.897C28.48 12.2933 28.9468 12.5753 29.4641 12.7075C30.2344 12.9212 34.5196 12.8212 35.5135 12.8212C35.2302 12.3988 34.8274 12.0959 34.4598 11.7225C34.2197 11.4804 34.1834 11.3746 33.9698 11.1344L27.3911 4.30969H27.394ZM0 6.071V43.8329C0 46.0775 1.71133 48.3837 3.6824 49.3472C4.31263 49.654 5.28395 50 6.16509 50H33.3621C36.8416 50 39.7212 46.8812 39.7212 43.3478V14.0925C39.7212 13.2868 38.3569 12.2616 37.5404 11.2844L35.832 9.56913C35.636 9.3584 35.6252 9.28783 35.44 9.07906L34.1658 7.80487C33.8198 7.46182 33.6571 7.19817 33.3366 6.87374C32.1751 5.69757 31.1185 4.57825 29.958 3.40501L28.2967 1.64076C28.1477 1.49178 28.0448 1.40258 27.9047 1.2487C27.6998 1.02719 26.9706 0 26.5119 0H5.57799C3.18252 0.00588085 0 3.02668 0 6.071Z",fill:"#1C2A40"})),Qt||(Qt=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5892 30.8217L13.7218 25.7083C12.7289 24.687 11.543 25.5015 11.543 26.4199C11.543 27.1629 11.9027 27.2746 12.2693 27.748L19.0322 34.9756C20.3927 35.992 21.0905 34.4159 22.1334 33.3897C22.504 33.042 22.8508 32.6697 23.1714 32.2753C23.4831 31.8832 23.8888 31.5686 24.2388 31.1903C24.4583 30.9531 24.4926 30.8413 24.7288 30.6022L27.8653 27.2785C28.9748 25.922 26.9479 24.4449 25.9158 25.7201C24.9719 26.8855 22.4137 29.3662 21.81 30.1258C21.5767 30.4199 21.4414 30.7139 21.0415 30.8257V19.3756C21.0415 18.9365 21.0964 17.7966 21.0219 17.4379C20.8367 16.5411 19.3096 16.0716 18.7343 17.2634C18.4618 17.828 18.5961 22.1818 18.5961 22.9943L18.5892 30.8217Z",fill:"#1C2A40"})),Kt||(Kt=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.98106 41.6803H29.8407C31.3884 41.6803 31.3844 39.23 29.9387 39.23H9.78503C8.33148 39.2349 8.17368 41.6803 9.98106 41.6803Z",fill:"#1C2A40"})))},na=o.a.forwardRef((e,t)=>o.a.createElement(aa,ta({svgRef:t},e)));a.p,a(425);const la=Object(c.cn)("PageDeleteAccount"),oa=[{title:"Скачать форму заявления",url:"https://s3-static-budgett-prod.website.yandexcloud.net/pdf/14_Заявление_на_удаление_005.pdf"},{title:"Скачать инструкцию",url:"https://s3-static-budgett-prod.website.yandexcloud.net/pdf/13_Инструкция_к_удалению_профиля_007.pdf"}],ca=()=>{const{openModal:e,isOpenModal:t,handleCloseClick:a,handleCloseTopBlock:l,forceDisplacement:c}=Object(jt.a)(),r=Object(n.o)(),i=Object(g.c)(e=>{let{profile:t}=e;return t.contracts});return o.a.createElement("div",{className:la()},o.a.createElement(f,{className:la("headerLimit")}),o.a.createElement("div",{className:la("TitleBlock")},o.a.createElement("h2",{className:la("Title")},"Удаление аккаунта"),o.a.createElement("div",{onClick:e,className:la("QuestionIcon")},"?")),o.a.createElement("img",{src:ea.a,className:la("IconContainer"),alt:"Delete Account"}),i.length?o.a.createElement(o.a.Fragment,null,o.a.createElement("p",{className:la("Description")},"Невозможно удалить аккаунт прямо сейчас - раздел платежей не пуст. Закройте ваши обязательства по всем текущим Договорам и повторите попытку, если это необходимо."),o.a.createElement(be.b,{onClick:()=>r("/profile/my-payments")}
1,"Перейти к списку Договоров")):o.a.createElement(o.a.Fragment,null,o.a.createElement("p",{className:la("Description")},"Чтобы удалить аккаунт, направьте заявление на почту [email protected]. Форму заявления, а также инструкцию по ее заполнению можно скачать ниже."),o.a.createElement("div",{className:la("DeleteContainer")},oa.map(e=>o.a.createElement("a",{className:la("DeleteLinkItem"),target:"_blank",key:e.title,href:e.url,rel:"noreferrer"},o.a.createElement(na,null),o.a.createElement("p",{className:la("DeleteItemTitle")},e.title))))),o.a.createElement(Tt,{isOpenModal:t,forceDisplacement:c,handleCloseClick:a,handleCloseTopBlock:l,title:"Удаление всех данных вашего аккаунта",description:"Вы можете удалить всю информацию о себе и данные всех ваших карт. Это действие необратимо и возможно только тогда, когда у вас нет действующих договоров с сервисом."}))};ca.getLayout=_e;var ra=ca,ia=a(426),sa=a.n(ia),da=a(427),ma=a.n(da);a(428);const ua=Object(c.cn)("PageAccountStatus"),pa=()=>{const e=Object(n.o)(),t=Object(g.b)(),{accountModerationStatus:a}=Object(g.c)(e=>{let{signUp:t,profile:a}=e;return{infoUser:t.infoUser,accountModerationStatus:a.accountModerationStatus}});switch(Object(l.useEffect)(()=>{a===u.a.DATA_CHECKING?t(Object(i.c)()):t(Object(i.e)()),(async()=>{const{result:t}=await Object(h.w)();var n;if(a===u.a.VERIFIED)if(null==t||null===(n=t.data)||void 0===n?void 0:n.rows.length){var l;const{result:t}=await Object(h.r)();(null==t||null===(l=t.data)||void 0===l?void 0:l.result)?e("/profile/add-contract?step=product"):e("/profile/my-payments")}else e("/profile/add-contract?step=product");else a===u.a.LIMIT_REACHED?e("/profile/my-payments"):a!==u.a.REGISTERED&&a!==u.a.MAIL_VALID||e("/sign_up")})()},[a]),a){case u.a.DATA_MISMATCH:return o.a.createElement("div",{className:ua()},o.a.createElement("div",{className:ua("IconContainer")},o.a.createElement("img",{src:sa.a,alt:"Invalid data"})),o.a.createElement("p",{className:ua("Title")},o.a.createElement("b",null,"Несоответствие данных")),o.a.createElement("p",{className:ua("Description")},"Введенные данные не соответствуют паспортным - возможно, была допущена ошибка, наш оператор свяжется с Вами по указанному номеру телефона, чтобы устранить проблему."));case u.a.UNCOMPLETED_REGISTRATION:case u.a.MAIL_VALID:return e("/sign_up"),null;case u.a.DATA_CHECKING:return o.a.createElement("div",{className:ua()},o.a.createElement(m.a,{text:"Проверка данных, это займет не более 15 секунд, никуда не уходите"}));default:return a?o.a.createElement("div",{className:ua()},o.a.createElement("div",{className:ua("IconContainer")},o.a.createElement("img",{src:ma.a,alt:"On check"})),o.a.createElement("p",{className:ua("Title")},o.a.createElement("b",null,"Cистема сейчас недоступна, попробуйте позже"))):o.a.createElement("div",{className:ua()},o.a.createElement("div",{className:ua("LoadingPoints")},o.a.createElement("svg",{width:"107",height:"140",viewBox:"0 0 107 140",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.9665 120.254H69.7177V70.1785C69.7177 70.0909 70.9348 53.901 55.6555 47.0801L54.9463 48.6737C69.0698 54.978 68.0278 69.4868 67.9753 70.0997L67.9665 120.254Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M62.8177 60.0307L54.3799 65.0967L55.2813 66.5981L63.7191 61.5321L62.8177 60.0307Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M63.2526 68.9806L54.8223 74.042L55.7237 75.5434L64.154 70.482L63.2526 68.9806Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.8004 66.8528C31.0631 68.8054 32.8844 70.723 33.2083 71.047C33.2083 71.047 33.2083 71.0908 33.2083 71.047C32.8844 71.0032 31.0631 70.8106 30.8004 72.4567C30.5378 70.5041 28.699 68.5865 28.375 68.2538C28.375 68.2538 28.375 68.21 28.375 68.2538C28.699 68.3063 30.5378 68.499 30.8004 66.8528C30.7654 66.8091 30.7917 66.8266 30.8004 66.8528Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.8024 62.806C24.0651 64.7586 25.8863 66.6761 26.2103 67.0001C26.2103 67.0001 26.2103 67.0439 26.2103 67.0001C25.8863 66.9563 24.0651 66.7637 23.8024 68.4098C23.5397 66.4572 21.7009 64.5397 21.377 64.2069C21.377 64.2069 21.377 64.1631 21.377 64.2069C21.7009 64.2507 23.5397 64.4521 23.8024 62.806C23.7674 62.7622 23.7936 62.7797 23.8024 62.806Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8092 58.7708C17.0719 60.7234 18.8932 62.6322 19.2171 62.9649C18.8932 62.9212 17.0719 62.7285 16.8092 64.3747C16.5465 62.4221 14.7078 60.5045 14.3838 60.1718C14.7078 60.2243 16.5465 60.4169 16.8092 58.7708C16.8004 58.7445 16.7742 58.727 16.8092 58.7708Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.80432 54.7602C10.067 56.7128 11.8883 58.6217 12.2122 58.9544C12.2122 58.9544 12.2122 58.9982 12.2122 58.9544C11.8883 58.9106 10.067 58.718 9.80432 60.3641C9.54164 58.4115 7.70288 56.4939 7.37891 56.1612C7.37891 56.1612 7.37891 56.1174 7.37891 56.1612C7.70288 56.2138 9.54164 56.4064 9.80432 54.7602C9.77805 54.6902 9.80432 54.699 9.80432 54.7602Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.80334 50.6888C3.06602 52.6414 4.88728 54.5589 5.21125 54.8829C4.88728 54.8304 3.06602 54.6465 2.80334 56.2926C2.54066 54.34 0.701903 52.4225 0.37793 52.0897C0.37793 52.0897 0.37793 52.046 0.37793 52.0897C0.701903 52.1335 2.54066 52.3349 2.80334 50.6888C2.77707 50.645 2.80334 50.6625 2.80334 50.6888Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.8004 58.7352C31.0631 60.6878 32.8844 62.5966 33.2083 62.9294C33.2083 62.9294 33.2083 62.9731 33.2083 62.9294C32.8844 62.8856 31.0631 62.693 30.8004 64.3391C30.5378 62.3865 28.699 60.4689 28.375 60.1449C28.375 60.1449 28.375 60.1012 28.375 60.1449C28.699 60.1975 30.5378 60.3901 30.8004 58.744C30.7654 58.6914 30.7917 58.709 30.8004 58.7352Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.8024 54.6995C24.0651 56.6521 25.8863 58.5609 26.2103 58.8937C26.2103 58.8937 26.2103 58.9374 26.2103 58.8937C25.8863 58.8499 24.0651 58.6573 23.8024 60.3034C23.5397 58.3508 21.7009 56.4332 21.377 56.1005C21.37
17 56.1005 21.377 56.0567 21.377 56.1005C21.7009 56.153 23.5397 56.3457 23.8024 54.6995C23.7674 54.6557 23.7936 54.6733 23.8024 54.6995Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8092 50.6526C17.0719 52.6052 18.8932 54.5228 19.2171 54.8468C18.8932 54.803 17.0719 54.6104 16.8092 56.2565C16.5465 54.3039 14.7078 52.3863 14.3838 52.0536C14.3838 52.0536 14.3838 52.0098 14.3838 52.0536C14.7078 52.0974 16.5465 52.2988 16.8092 50.6526C16.8004 50.6264 16.7742 50.6089 16.8092 50.6526Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.80432 46.6175C10.067 48.5701 11.8883 50.4877 12.2122 50.8116C12.2122 50.8116 12.2122 50.8554 12.2122 50.8116C11.8883 50.7591 10.067 50.5752 9.80432 52.2214C9.54164 50.2688 7.70288 48.3512 7.37891 48.0185C7.37891 48.0185 7.37891 47.9747 7.37891 48.0185C7.70288 48.0622 9.54164 48.2636 9.80432 46.6175C9.77805 46.5737 9.80432 46.5912 9.80432 46.6175Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.80334 42.5813C3.06602 44.5339 4.88728 46.4427 5.21125 46.7754C5.21125 46.7754 5.21125 46.8192 5.21125 46.7754C4.88728 46.7316 3.06602 46.539 2.80334 48.1851C2.54066 46.2325 0.701903 44.315 0.37793 43.9822C0.701903 44.0348 2.54066 44.2274 2.80334 42.5813C2.77707 42.5025 2.80334 42.5462 2.80334 42.5813Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.938 102.245C99.938 72.9644 79.3788 37.3536 54.0214 22.7135C42.3058 15.945 31.6146 14.833 23.5065 18.5106L22.7623 18.9133L14.4265 23.5365L9.75959 31.6534C5.44286 37.2397 8.10471 39.026 8.10471 49.2267C8.10471 78.5069 28.6639 114.118 54.0214 128.758C62.9963 133.933 60.5796 133.635 67.6545 132.584L78.4244 136.507L86.2611 132.085L86.9703 131.665C94.9909 126.753 99.938 116.596 99.938 102.245Z",fill:"#F3F5FA"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.7421 131.629L78.3369 135.491L86.4975 130.868C94.5618 125.929 99.0099 115.755 99.0099 102.244C99.0099 73.3055 78.6171 37.9836 53.5573 23.5186C42.5597 17.1705 32.0174 15.6908 23.8831 19.3595L15.1271 24.2279L10.5915 32.1083C7.85957 35.6545 8.06971 37.432 8.53378 41.3197C8.87913 43.9324 9.05751 46.5646 9.06788 49.2001C9.06788 78.1388 29.4607 113.461 54.5205 127.926C56.1316 128.854 57.3749 129.607 58.3731 130.211C62.1382 132.488 62.1295 132.487 65.7895 131.91L67.5407 131.638H67.7771L67.7421 131.629ZM78.5032 137.531L67.5582 133.564L66.0434 133.801C61.8405 134.466 61.6041 134.414 57.3749 131.857C56.3855 131.253 55.1509 130.509 53.5573 129.589C27.9809 114.827 7.15031 78.8043 7.15031 49.2526C7.14134 46.6846 6.9688 44.1197 6.63371 41.5736C6.16088 37.5721 5.87194 35.1554 8.99785 31.1101L13.7261 22.8707L23.0863 17.6871C31.8423 13.7382 42.98 15.2442 54.5117 21.8988C80.0881 36.6615 100.919 72.6838 100.919 102.235C100.919 116.42 96.1554 127.155 87.5045 132.452L86.7777 132.882L78.5032 137.531Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.2705 108.269C38.0214 116.666 45.8406 123.767 54.1939 128.591C63.16 133.775 60.7521 133.469 67.827 132.418L78.5969 136.349L86.4335 131.927L87.1428 131.507C95.172 126.56 100.137 116.429 100.137 102.043C100.137 88.9091 95.9689 74.4266 89.0779 61.1787L50.166 82.6923L31.2705 108.269Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M92.8343 106.263C92.8343 135.543 72.2751 147.416 46.9176 132.776C21.5601 118.136 1.00098 82.5251 1.00098 53.2449C1.00098 23.9647 21.5601 12.0915 46.9176 26.7316C72.2751 41.3717 92.8343 76.9825 92.8343 106.263Z",fill:"#F3F5FA"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.4082 21.373C22.3821 21.3193 18.4142 22.3377 14.9115 24.3237C6.54076 29.1571 1.92631 39.4279 1.92631 53.2187C1.92631 82.1574 22.3191 117.479 47.3789 131.953C59.3396 138.861 70.5474 140 78.9006 135.166C87.2539 130.333 91.8858 120.053 91.8858 106.271C91.8858 77.3328 71.493 42.0109 46.4332 27.546C39.3408 23.4569 32.5199 21.4167 26.3907 21.4167L26.4082 21.373ZM67.4215 140C60.9683 140 53.8321 137.846 46.407 133.59C20.8306 118.819 0 82.8053 0 53.2537C0 38.7449 4.93839 27.8612 13.9133 22.7214C22.8883 17.5816 34.7439 18.6849 47.3088 25.9349C72.8852 40.6975 93.7158 76.7199 93.7158 106.271C93.7158 120.78 88.7775 131.664 79.8025 136.804C76.03 138.942 71.7577 140.042 67.4215 139.991V140Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.9835 102.324C85.9835 127.252 68.4714 137.348 46.8965 124.888C25.3217 112.428 7.80957 82.1146 7.80957 57.1862C7.80957 32.2577 25.3217 22.162 46.8965 34.6219C68.4714 47.0817 85.9835 77.3951 85.9835 102.324Z",fill:"#AFC3D5"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.4442 30.1902C26.0413 30.1423 22.6868 31.0006 19.725 32.6769C12.6413 36.7659 8.73616 45.4694 8.73616 57.1938C8.73616 81.7895 26.0643 111.796 47.359 124.09C57.4985 129.948 66.9901 130.92 74.0737 126.831C81.1573 122.741 85.0538 114.038 85.0538 102.314C85.0538 77.7179 67.7256 47.711 46.4309 35.4175C40.4155 31.9151 34.6278 30.1639 29.4442 30.1639V30.1902ZM64.3545 131.174C58.8382 131.174 52.7352 129.335 46.4309 125.692C24.6196 113.101 6.87988 82.3674 6.87988 57.185C6.87988 44.7865 11.
1109 35.5138 18.7968 31.0745C26.4846 26.6352 36.6241 27.5721 47.3678 33.8152C69.1791 46.4063 86.9188 77.14 86.9188 102.322C86.9188 114.721 82.6896 123.994 75.0018 128.433C71.7588 130.275 68.084 131.221 64.3545 131.174Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M46.7712 58.8403L44.6348 81.6585L49.0741 84.224L47.0164 58.9804C46.9989 58.8053 46.7888 58.6827 46.7712 58.8403Z",fill:"#F3F5FA"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.6137 81.1601L48.0041 82.5435L46.8308 68.1661L45.6137 81.1601ZM50.1406 85.9146L43.6523 82.167L45.9289 57.904L46.8045 57.834C47.0866 57.8439 47.355 57.9575 47.5585 58.153C47.7621 58.3484 47.8864 58.6121 47.9078 58.8935L50.1406 85.9146Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M47.1878 83.2887L47.0234 85.1377L66.4291 86.8628L66.5935 85.0137L47.1878 83.2887Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M46.2186 40.3197L46.1777 45.3018L47.6049 45.3135L47.6458 40.3314L46.2186 40.3197Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M49.7872 42.533L49.2842 47.2168L50.7033 47.3692L51.2063 42.6854L49.7872 42.533Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M53.2884 45.1219L52.3457 49.46L53.7404 49.763L54.6831 45.425L53.2884 45.1219Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M56.806 48.1172L55.4199 52.0664L56.7666 52.5391L58.1527 48.5899L56.806 48.1172Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M60.1835 51.4454L58.3809 54.959L59.6507 55.6105L61.4533 52.0969L60.1835 51.4454Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M63.4051 55.0595L61.2002 58.0898L62.3543 58.9296L64.5591 55.8993L63.4051 55.0595Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M66.4795 58.9242L63.8936 61.4521L64.8913 62.4727L67.4772 59.9448L66.4795 58.9242Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M69.3505 63.0445L66.415 65.0342L67.2158 66.2156L70.1512 64.2259L69.3505 63.0445Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M72.0066 67.3903L68.752 68.8203L69.3261 70.127L72.5807 68.6969L72.0066 67.3903Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M74.3681 71.8485L70.8369 72.7061L71.1737 74.093L74.7049 73.2354L74.3681 71.8485Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M76.4463 76.389L72.665 76.666L72.7693 78.0894L76.5506 77.8124L76.4463 76.389Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M74.2111 80.7509L74.1006 82.1738L78.0814 82.4829L78.1918 81.06L74.2111 80.7509Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M75.4941 83.3816L75.1943 84.7803L79.3389 85.6684L79.6386 84.2697L75.4941 83.3816Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M76.2754 88.7141L75.8105 90.0635L80.0574 91.5266L80.5223 90.1772L76.2754 88.7141Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M76.8186 92.5695L76.2139 93.8623L80.5284 95.8806L81.1332 94.5878L76.8186 92.5695Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M72.8855 93.8953L72.166 95.1279L80.6811 100.098L81.4005 98.8651L72.8855 93.8953Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M76.9727 99.875L76.1455 101.038L80.4482 104.098L81.2754 102.935L76.9727 99.875Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M76.5157 103.164L75.6006 104.259L79.8337 107.796L80.7489 106.7L76.5157 103.164Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M75.7504 106.213L74.7588 107.239L78.8648 111.206L79.8564 110.179L75.7504 106.213Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M74.6768 109.012L73.6182 109.97L77.5586 114.328L78.6173 113.37L74.6768 109.012Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M73.2979 111.411L72.1797 112.298L75.9123 117.004L77.0305 116.117L73.2979 111.411Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M71.6134 113.466L70.4424 114.282L73.9215 119.275L75.0925 118.459L71.6134 113.466Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.6442 121.176L68.457 115.948L69.6741 115.204L72.8701 120.431L71.6442 121.176Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M67.4946 116.516L66.2334 117.184L69.0983 122.592L70.3595 121.924L67.4946 116.516Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.3059 123.548L63.793 118.014L65.0889 117.428L67.6018 122.953L66.3059 123.548Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M62.4843 117.924L61.1504 118.432L63.277 124.021L64.6109 123.514L62.4843 117.924Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.0785 124.004L58.3623 118.417L59.7282 117.997L61.4444 123.583L60.0785 124.004Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M56.8202 117.69L55.4307 118.016L56.7263 123.54L58.1158 123.214L56.8202 117.69Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M53.812 116.943L52.4023 117.167L53.2594 122.572L54.669 122.348L53.812 116.943Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M50.7403 115.773L49.3174 115.884L49.7246 121.104L51.1475 120.993L50.74
103 115.773Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M46.2171 109.374L46.1777 119.181L47.6049 119.186L47.6443 109.38L46.2171 109.374Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M43.0997 112.144L42.6016 116.828L44.0208 116.979L44.5189 112.295L43.0997 112.144Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M40.0023 109.709L39.0596 114.047L40.4542 114.35L41.3969 110.012L40.0023 109.709Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M37.0223 106.964L35.6426 110.906L36.9897 111.378L38.3694 107.436L37.0223 106.964Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M34.1616 103.912L32.3584 107.425L33.6281 108.077L35.4314 104.563L34.1616 103.912Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M31.3948 100.534L29.1904 103.564L30.3446 104.404L32.549 101.373L31.3948 100.534Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M28.8966 97.0093L26.3115 99.5381L27.3096 100.558L29.8946 98.0295L28.8966 97.0093Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M26.5569 93.2803L23.6211 95.2695L24.4217 96.4511L27.3575 94.4619L26.5569 93.2803Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M24.4597 89.3411L21.2061 90.7734L21.7811 92.0797L25.0347 90.6474L24.4597 89.3411Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M22.6141 85.3876L19.083 86.2451L19.4198 87.632L22.951 86.7745L22.6141 85.3876Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M21.0277 81.3484L17.2549 81.6201L17.3574 83.0437L21.1303 82.7719L21.0277 81.3484Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M15.7374 77.0321L15.627 78.4551L19.6077 78.7642L19.7182 77.3412L15.7374 77.0321Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M14.5733 72.4662L14.2725 73.8613L18.4066 74.7529L18.7075 73.3577L14.5733 72.4662Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M13.7083 67.9573L13.2432 69.3066L17.4898 70.7705L17.9549 69.4212L13.7083 67.9573Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M13.2207 63.5904L12.6152 64.8828L16.9287 66.9034L17.5342 65.6109L13.2207 63.5904Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M13.1069 59.3893L12.3877 60.6221L20.9036 65.5904L21.6229 64.3577L13.1069 59.3893Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M13.3213 55.3916L12.4941 56.5547L16.7969 59.6147L17.624 58.4516L13.3213 55.3916Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M13.9514 51.6999L13.0361 52.7949L17.2687 56.3326L18.184 55.2375L13.9514 51.6999Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M14.9018 48.2508L13.9102 49.2773L18.0161 53.2438L19.0078 52.2173L14.9018 48.2508Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M16.2217 45.1902L15.1631 46.1475L19.1036 50.5054L20.1622 49.5482L16.2217 45.1902Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M17.8739 42.4547L16.7559 43.3418L20.4839 48.0404L21.6019 47.1532L17.8739 42.4547Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M19.8476 40.1653L18.6768 40.9814L22.1568 45.9736L23.3276 45.1575L19.8476 40.1653Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M20.3274 38.0723L19.1143 38.8145L22.3015 44.0243L23.5146 43.2821L20.3274 38.0723Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M24.6802 36.9071L23.4189 37.5752L26.2838 42.9838L27.5451 42.3157L24.6802 36.9071Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M27.4901 35.9561L26.1904 36.5459L28.7017 42.0794L30.0014 41.4896L27.4901 35.9561Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M30.4989 35.46L29.165 35.9678L31.2926 41.5569L32.6265 41.0491L30.4989 35.46Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M33.7038 35.4761L32.3398 35.8965L34.0626 41.4861L35.4265 41.0657L33.7038 35.4761Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M37.0507 36.0191L35.6611 36.3447L36.9558 41.8689L38.3453 41.5433L37.0507 36.0191Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M40.5189 36.9533L39.1094 37.1768L39.9664 42.5818L41.376 42.3582L40.5189 36.9533Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M44.0557 38.4417L42.6328 38.5527L43.04 43.773L44.4629 43.662L44.0557 38.4417Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M46.2012 40.3272L46.1602 50.1338L47.5874 50.1398L47.6284 40.3331L46.2012 40.3272Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.0551 85.9151C50.0551 87.7802 48.7417 88.5419 47.1218 87.605C46.2703 87.0492 45.5617 86.3006 45.0536 85.4197C44.5455 84.5389 44.2521 83.5507 44.1973 82.5353C44.1973 80.6703 45.5107 79.9085 47.1218 80.8454C47.975 81.4002 48.6852 82.1485 49.1949 83.0294C49.7046 83.9103 49.9993 84.899 50.0551 85.9151Z",fill:"#F3F5FA"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.8502 81.3701C45.7465 81.3663 45.6437 81.3905 45.5525 81.4402C45.4026 81.5766 45.2883 81.7477 45.2196 81.9385C45.1509 82.1293 45.13 82.3339 45.1585 82.5347C45.2118 83.3871 45.4615 84.2157 45.8884 84.9554C46.3153 85.6952 46.9076 86.3262 47.619 86.7989C47.7351 87.0021 47.9271 87.1508 48.1529 87.2124C48.3787 87.274 48.6197 87.2433 48.8229 87.1272C49.0261 87.0111 49.1748 86.819 49.23
164 86.5932C49.298 86.3674 49.2674 86.1264 49.1513 85.9233C49.0981 85.0708 48.8482 84.2423 48.4214 83.5025C47.9945 82.7627 47.4022 82.1318 46.6908 81.6591C46.4291 81.4894 46.1269 81.3926 45.8152 81.3789L45.8502 81.3701ZM48.4771 88.9266C47.8577 88.9059 47.2543 88.7249 46.7258 88.4012C45.7335 87.763 44.9082 86.8968 44.3187 85.8747C43.7292 84.8527 43.3927 83.7045 43.3373 82.5259C43.2665 81.9966 43.3545 81.4581 43.59 80.9788C43.8256 80.4996 44.1983 80.101 44.6606 79.8337C45.123 79.5665 45.6542 79.4425 46.1871 79.4775C46.7201 79.5125 47.2306 79.705 47.654 80.0304C48.648 80.6676 49.475 81.5335 50.0661 82.5556C50.6571 83.5777 50.9949 84.7264 51.0513 85.9057C51.0898 86.4321 50.9876 86.9592 50.7553 87.4331C50.5229 87.907 50.1688 88.3106 49.7292 88.6026C49.3471 88.8158 48.9144 88.9217 48.4771 88.9091V88.9266Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M52.2188 21.1626L45.1377 25.1836L46.0543 26.7978L53.1354 22.7768L52.2188 21.1626Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M85.5286 55.1667L78.4434 59.1982L79.3614 60.8116L86.4466 56.7801L85.5286 55.1667Z",fill:"#272F3C"}),o.a.createElement("path",{d:"M38.5723 16.402L31.4961 20.4316L32.4147 22.0447L39.4908 18.0151L38.5723 16.402Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M87.9765 139.028L87.1797 137.347C91.5694 135.327 95.3281 132.152 98.0547 128.162C101.881 122.436 106.005 112.261 103.921 96.2989L105.76 96.0537C107.923 112.585 103.606 123.197 99.6307 129.195C96.7095 133.469 92.681 136.868 87.9765 139.028Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M97.6419 66.6241C78.081 20.8038 43.442 12.1003 43.0918 12.0127L43.5209 10.209C43.8799 10.2965 79.4206 19.1752 99.3493 65.8974L97.6419 66.6241Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.2523 34.8414C83.1421 32.4334 80.9969 30.1306 78.8779 28.0116L80.1913 26.6982C82.3453 28.8435 84.5168 31.1726 86.6533 33.6155L85.2523 34.8414Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M75.9276 25.1387C49.6595 0.691892 30.3 6.15566 30.1073 6.2082L29.5645 4.45699C30.3875 4.20307 50.0535 -1.43582 77.1885 23.7991L75.9276 25.1387Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M76.1636 17.1106C71.1866 12.5602 65.555 8.78221 59.457 5.90284L60.2451 4.22168C66.5121 7.17967 72.3 11.0609 77.4157 15.7359L76.1636 17.1106Z",fill:"#272F3C"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.3149 4.54438C53.4372 3.33387 50.441 2.42708 47.375 1.83877L47.6552 0C50.867 0.602954 54.0049 1.54816 57.0154 2.81944L56.3149 4.54438Z",fill:"#272F3C"}))),o.a.createElement("p",{className:ua("LoadingText")},"Загрузка данных"))}};pa.getLayout=_e;var Ca=pa,_a=a(429),ga=a.n(_a),ha=a(200),Ea=a.n(ha);var va=e=>{let{errorCode:t}=e;const{title:a,description:l}=t&&(null===u.jb||void 0===u.jb?void 0:u.jb[t])?u.jb[t]:u.jb[111114],c=Object(g.b)(),r=Object(n.o)(),s=Object(n.m)();return o.a.createElement("div",{className:Ea.a.ContractStatusContainer},o.a.createElement("img",{src:ga.a,alt:"Платеж не совершен"}),o.a.createElement("p",{className:Ea.a.ContractStatusTitle},a),o.a.createElement("p",{className:Ea.a.ContractStatusDescription},l),o.a.createElement(be.b,{className:Ea.a.ContractStatusButton,onClick:()=>{c(Object(i.e)());const e=new URLSearchParams(s.search);e.delete("status"),r({search:e.toString(),pathname:"/profile/my-payments"})},status:be.a.DEFAULT},"Выбрать способ оплаты"))},ba=a(430),fa=a.n(ba);var La=e=>{var t;let{type:a}=e;const l=null===(t=Object(g.c)(e=>{let{profile:t}=e;return t.contracts}))||void 0===t?void 0:t.length,c={[u.f.PROLONGATION]:{title:"Успешная пролонгация",description:"Договор продлен, а график платежей скорректирован. Подробную информацию об изменениях можно найти в Деталях договора."},[u.f.PARTIALLY_EARLY]:{title:"Средства успешно внесены",de
1scription:"Обновленные условия Договора вы всегда можете найти на странице Деталей договора или в пункте меню Документы раздела Профиль."}},r=a?c[a]:{title:"Платеж успешно совершен",description:"Информация об этом отражена в графике платежей. Благодарим за своевременное внесение средств!"},s=Object(g.b)(),d=Object(n.o)(),m=Object(n.m)();return o.a.createElement("div",{className:Ea.a.ContractStatusContainer},o.a.createElement("img",{src:fa.a,alt:"Платеж совершен"}),o.a.createElement("p",{className:Ea.a.ContractStatusTitle},r.title),o.a.createElement("p",{className:Ea.a.ContractStatusDescription},r.description),o.a.createElement(be.b,{className:Ea.a.ContractStatusButton,onClick:()=>{s(Object(i.e)());const e=new URLSearchParams(m.search);e.delete("status"),d(l?{search:e.toString(),pathname:"/profile/my-payments"}:{search:e.toString(),pathname:"/profile/account-status"})},status:be.a.DEFAULT},l?"Перейти к Деталям договора":"Получить заем"))};var ka=o.a.memo(e=>{let{width:t=24,height:a=24,fill:n="#E4E8F2",className:c,hoverColor:r,isActive:i,...s}=e;const d=c?void 0:n,[m,u]=Object(l.useState)(!1);return o.a.createElement("svg",Object.assign({onMouseEnter:()=>{u(!0)},onMouseLeave:()=>{u(!1)},"data-qa":"icon"},s,{"data-role":"icon-circle",className:c,width:t,height:a,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),o.a.createElement("circle",{cx:"12.75",cy:"13.25",r:"12.75",fill:m||i?r:d}))}),Sa=a(245),Na=a.n(Sa),Ba=a(243),ya=a(431),Oa=a.n(ya);const Ma=Na.a.bind(Oa.a),Pa=[{color:"#F66082"},{color:"#D16B7B"},{color:"#B47375"},{color:"#987B70"},{color:"#7F816B"},{color:"#608A65"},{color:"#449260"},{color:"#269A5A"},{color:"#1E9D58"},{color:"#1E9C58"}];var Ia=e=>{let{setIsFeedbackSend:t}=e;const[a,n]=Object(l.useState)(null),[c,r]=Object(l.useState)(0),[i,s]=Object(l.useState)(""),d=()=>{Object(h.U)({rating:c,text:i}).then(()=>{t(!0)}).catch(()=>{Ba.toast.error("Что-то пошло не так. Повторите попытку позже.")})};Object(l.useEffect)(()=>{Object(E.a)("pay")},[]);return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:Oa.a.feedbackWrapper},o.a.createElement("div",{className:Oa.a.feedbackBlock},o.a.createElement("p",{className:Oa.a.text},"Пока зачисляется платеж, пожалуйста, оцените по шкале от 0 до 10, насколько вероятно, что Вы порекомендуете наш сервис другу или коллеге?"),o.a.createElement("div",null,o.a.createElement("div",{className:Oa.a.feedbacksContainer},Pa.map((e,t)=>{const l=Ma({feedback:!0,active:a&&a>t+1||null===a&&c>=t+1});return o.a.createElement("div",{className:Oa.a.raitContainer},o.a.createElement("p",{className:Oa.a.number},t+1),o.a.createElement(ka,{key:e,className:l,width:25,height:25,onMouseEnter:()=>n(t+2),onMouseLeave:()=>n(null),onClick:()=>r(t+1),isActive:a&&a>t+1||null===a&&c>=t+1,hoverColor:e.color}))})),o.a.createElement("p",{style:c?{visibility:"visible"}:{visibility:"hidden"},className:Oa.a.ratingText},c," ",1===c?"балл":c<=4&&c>=2?"балла":"баллов")),o.a.createElement("p",{className:Oa.a.bottomText},"Спасибо за оценку! Ваше мнение очень важно для нас!")),o.a.createElement("div",{className:Oa.a.feedbackBlock},o.a.createElement("p",{className:Oa.a.textRight},"Ваши предложения по улучшению работы нашего сервиса (не обязательно):"),o.a.createElement("textarea",{className:Oa.a.textarea,value:i,onChange:e=>(e=>{e.target.value.length<1e3&&s(e.target.value)})(e)}),!Be.isMobile&&o.a.createElement("button",{className:Oa.a.button,onClick:0!==c||i.length?d:()=>t(!0)},0!==c||i.length?"Отправить":"Пропустить"))),Be.isMobile&&o.a.createElement("button",{className:Oa.a.button,onClick:0!==c||i.length?d:()=>t(!0)},0!==c||i.length?"Отправить":"Пропустить"))},Aa=a(432),wa=a.n(Aa),Da=a(78),Ta=a(433),ja=a.n(Ta);const Ra=e=>{let{advDefaultOpen:t=!0,title:a="Ожидайте звонок от нашей компании для сверки данных.",description:n="Пожалуйста подождите - мы все тщательно проверяем, но совсем скоро перезвоним для подтверждения личности и одобрим перевод займа. Убедитесь, что на номер, указанный при регистрации, поступают входящие звонки. А пока предлагаем ознакомиться с "}=e;const[c,r]=Object(l.useState)(t);return o.a.createElement("div",{className:"".concat(ja.a.container," ").concat(t?"":ja.a.isPaymentBlock)},o.a.createElement("div",{className:c?ja.a.upBlock:ja.a.upBlockOnly},o.a.createElement("p",{className:c?ja.a.upTitle:ja.a.upTitleOnly},a),o.a.createElement("img",{className:c?ja.a.upImage:ja.a.upImageOnly,src:wa.a,alt:"Обработка транзакции"}),o.a.createElement("p",{className:c?ja.a.upDescription:ja.a.upDescriptionOnly},n,t?o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{onClick:()=>r(!0),className:c?"":ja.a.clickableDescPart},"предложениями наших партнеров"),"."):null)),c&&o.a.createElement(Da.a,{onClick:()=>r(!1)}),o.a.createElement("div",{className:ja.a.mobilePlug}))};var Fa=a(333),xa=a.n(Fa);const Za=()=>{const[e]=Object(Z.d)(),[t]=Object(l.useState)(e.get("type")),[a]=Object(l.useState)(e.get("status")),[n]=Object(l.useState)(e.get("error_code")),[c,r]=Object(l.useState)(!1),[i,s]=Object(l.useState)(!e.get("error_code")),d=e=>{Object(h.I)({id:e}).then(t=>{var a;let{result:n}=t;(null==n||null===(a=n.data)||void 0===a?void 0:a.status)===u.p.CLOSED?(localStorage.removeItem(u.J),s(!1)):setTimeout(()=>d(e),5e3)}).catch(()=>setTimeout(()=>d(e),5e3))};return Object(l.useEffect)(()=>{const e=localStorage.getItem(u.J);e?d(e):s(!1)},[]),i?o.a.createElement("div",{className:xa.a.container,style:{padding:0,justifyContent:"center"}},o.a.createElement(Ra,{advDefaultOpen:!1,title:"Обработка транзакции",description:"Перевод средств обычно занимает\nот нескольких секунд до нескольких минут."})):"declined"===a||n?o.a.createElement("div",{className:xa.a.container},o.a.createElement(va,{errorCode:n})):o.a.createElement("div",{className:xa.a.container},c?o.a.createElement(La,{type:t}):o.a.createElement(Ia,{setIsFeedbackSend:r}))};Za.getLayout=_e;var Ha,Va=Za;function Wa(){return(Wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}const Ga=e=>{let{svgRef:t,title:a,...n}=e;return o.a.createElement("svg",Wa({width:17,height:16,viewBox:"0 0 17 16",fill:"none",ref:t},n),a?o.a.createElement("title",null,a):null,Ha||(Ha=o.a.createElement("path",{d:"M16.1917 7.33291C16.0147 7.33291 15.8449 7.26269 15.7196 7.13769C15.5944 7.01269 15.5241 6.84316 15.5241 6.66639C15.5227 5.25264 14.9595 3.8972 13.9582 2.89753C12.9568 1.89786 11.5991 1.33563 10.183 1.33422C10.0059 1.33422 9.83613 1.26399 9.71092 1.139C9.58572 1.014 9.51538 0.844467 9.51538 0.667694C9.51538 0.490922 9.58572 0.321389 9.71092 0.196392C9.83613 0.0713955 10.0059 0.00117285 10.183 0.00117285C11.9531 0.0031135 13.6501 0.705963 14.9018 1.95551C16.1534 3.20506 16.8574 4.89926 16.8594 6.66639C16.8594 6.84316 16.789 7.
101269 16.6638 7.13769C16.5386 7.26269 16.3688 7.33291 16.1917 7.33291ZM14.1888 6.66639C14.1888 5.60575 13.7668 4.58856 13.0156 3.83858C12.2643 3.08859 11.2454 2.66726 10.183 2.66726C10.0059 2.66726 9.83613 2.73748 9.71092 2.86248C9.58572 2.98747 9.51538 3.15701 9.51538 3.33378C9.51538 3.51055 9.58572 3.68008 9.71092 3.80508C9.83613 3.93008 10.0059 4.0003 10.183 4.0003C10.8913 4.0003 11.5705 4.28119 12.0714 4.78118C12.5722 5.28117 12.8536 5.9593 12.8536 6.66639C12.8536 6.84316 12.9239 7.01269 13.0491 7.13769C13.1743 7.26269 13.3441 7.33291 13.5212 7.33291C13.6983 7.33291 13.8681 7.26269 13.9933 7.13769C14.1185 7.01269 14.1888 6.84316 14.1888 6.66639ZM15.6463 14.774L16.2538 14.0748C16.6405 13.6875 16.8577 13.1629 16.8577 12.6161C16.8577 12.0692 16.6405 11.5447 16.2538 11.1574C16.2331 11.1367 14.6268 9.90301 14.6268 9.90301C14.2413 9.53665 13.7292 9.33265 13.1969 9.33339C12.6647 9.33413 12.1531 9.53957 11.7686 9.90701L10.4961 10.9774C9.45741 10.5483 8.51384 9.91846 7.71962 9.1242C6.9254 8.32993 6.29618 7.38685 5.86808 6.34912L6.9363 5.08273C7.30464 4.69893 7.51066 4.18818 7.51153 3.65664C7.5124 3.12511 7.30805 2.61369 6.94097 2.22869C6.94097 2.22869 5.70384 0.627036 5.68314 0.606374C5.30222 0.223623 4.78576 0.00585318 4.24534 0.000116274C3.70492 -0.00562063 3.18393 0.201136 2.79495 0.575714L2.02716 1.24224C-2.50876 6.49576 7.25876 16.1716 12.6947 15.9977C13.2436 16.0009 13.7876 15.8942 14.2945 15.684C14.8015 15.4739 15.2611 15.1644 15.6463 14.774Z",fill:"#FEFEFE"})))},Ua=o.a.forwardRef((e,t)=>o.a.createElement(Ga,Wa({svgRef:t},e)));a.p;var Ya=a(205),za=a.n(Ya),qa=a(314),Ja=a(434),Qa=a.n(Ja);const Ka=()=>{window.chaport.q("open")},Xa=()=>o.a.createElement("div",{className:Qa.a.container},o.a.createElement("div",{className:Qa.a.upBlock},o.a.createElement(f,{className:Qa.a.headerLimit,zeroClassName:Qa.a.headerLimit}),o.a.createElement(qa.a,null)),o.a.createElement("div",{className:Qa.a.footer},o.a.createElement("p",{className:Qa.a.description},"Если Вам нужна помощь, и Вы не нашли ответа выше - обратитесь в службу поддержки по телефону или в оперативном онлайн-чате."),o.a.createElement("div",{className:Qa.a.mediaBlock},o.a.createElement("div",{onClick:Ka,className:Qa.a.chatBlockDesktop},"Онлайн чат"),o.a.createElement("a",{href:u.bb,className:Qa.a.link,target:"_blank",rel:"noreferrer"},o.a.createElement("img",{src:za.a,alt:"Telegram"})),o.a.createElement("a",{href:u.E,className:Qa.a.linkSquare,target:"_blank",rel:"noreferrer"},o.a.createElement("img",{height:28,width:28,src:u.D,alt:"Max"})),o.a.createElement("a",{className:Qa.a.buttonLink,href:"tel:88004441128"},o.a.createElement(Ua,null),o.a.createElement("span",{className:Qa.a.buttonLinkText},u.L)))));Xa.getLayout=_e;var $a=Xa,en=a(50);const tn=async e=>{let{phone:t,isFlashCall:a}=e;try{const{result:e,error:n}=await Object(h.V)({phone:t,eventCode:u.m.NEW_LOAN,isFlashCall:a});if("success"!==(null==e?void 0:e.data.result))throw n;return}catch(e){const a=e&&e.response&&e.response.data,n=(null==a?void 0:a.message)||(null==a?void 0:a.error)||((null==a?void 0:a.includes("429"))?"Отправка сообщений временно заблокирована, попробуйте повторить действие через минуту":"В процессе отправки кода произошла ошибка. Пожалуйста повторите попытку");return await Object(h.S)({eventName:"send/send_code",phone:t,error:n,userAgent:window.navigator.userAgent}),n}};var an=a(334),nn=a.n(an),ln=a(248),on=a(249);const cn=e=>null==e?void 0:e.includes("Photo card is required for id");var rn=e=>{let{smsError:t,setSmsError:a,onPaymentMethodPreviousPress:n,takeLoan:c,username:r,infoText:i,orderCall:s,className:d}=e;const p=Object(oe.a)().get("bankSchema"),[C,_]=Object(l.useState)(!1),[g,E]=Object(l.useState)(!1);return C?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"".concat(Ea.a.rightWrapper," ").concat(Ea.a.rightWrapperLoading)},o.a.createElement(m.a,{type:"blackType"})),o.a.createElement("span",{className:Ea.a.descriptionBottomMobile},i)):o.a.createElement(o.a.Fragment,null,t&&o.a.createElement("div",{className:Ea.a.SmsErrorBlock},o.a.createElement("div",{style:{backgroundColor:"#1C2A40",top:22,right:30},className:Ea.a.CloseBlock,onClick:()=>a(void 0)},o.a.createElement("img",{src:nn.a,alt:"close",width:9,height:9})),o.a.createElement("span",null,cn(t)?"Отсутствует проверочное фото":t),cn(t)?o.a.createElement(Z.b,{to:"/profile/add-contract?step=selfie".concat(p?"&bankSchema=".concat(p):"")},o.a.createElement(be.b,{onClick:()=>a(""),className:""},"Добавить фото")):null),o.a.createElement("div",{className:"".concat(Ea.a.rightWrapper," ").concat(d||"")},o.a.createElement("span",{className:Ea.a.rightBlockDescription},"Подпишите ваши документы",o.a.createElement("br",{className:Ea.a.brMobile})," аналогом собственноручной"," ",o.a.createElement("br",{className:Ea.a.brDesktop})," подписи: кодом"," ",g?"из последних 4-х цифр позвонившего номера":"из SMS-сообщения","."),o.a.createElement(ln.a,{onChange:()=>a(""),onSettled:c,codeLength:4,className:"".concat(t?Ea.a.errorInput:""," ").concat(Ea.a.codeField)}),!g&&!(null==d?void 0:d.includes("withHidden"))&&o.a.createElement(on.a,{phoneValue:r,onResend:async()=>{try{const{result:e,error:t}=await Object(h.V)({phone:r,eventCode:u.m.NEW_LOAN});if("success"!==(null==e?void 0:e.data.result))throw t;return!0}catch(e){const t=e&&e.response&&e.response.data,n=(null==t?void 0:t.message)||(null==t?void 0:t.error)||((null==t?void 0:t.includes("429"))?"Отправка сообщений временно заблокирована, попробуйте повторить действие через минуту":"В процессе отправки смс произошла ошибка. Пожалуйста повторите попытку");a(n)}},textClassName:Ea.a.resendText,buttonClassName:Ea.a.resendButton,className:Ea.a.resend}),o.a.createElement("div",{className:Ea.a.sendSmsCodeBlock},o.a.createElement("span",{className:Ea.a.resendText},g?"Внесите последние 4 цифры входящего Ð
1½Ð¾Ð¼ÐµÑ€Ð°":"SMS-сообщение не поступило?"),o.a.createElement("button",{onClick:g?()=>E(!1):()=>{_(!0),s(!0).then(e=>{e||E(!0)}).finally(()=>{_(!1)})},className:"".concat(Ea.a.lowestText," ").concat(Ea.a.agreementTitle)},g?"Вернуться к отправке кода":"Закажите звонок с кодом")),i&&o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:Ea.a.descriptionBottomDesktopInfo},i),o.a.createElement(be.b,{onClick:n,status:be.a.DEFAULT,className:"".concat(Ea.a.buttonDesktop," ").concat(Ea.a.backButton)},"Назад"))),i&&o.a.createElement("span",{className:Ea.a.descriptionBottomMobileInfo},i))},sn=a(435),dn=a.n(sn);const mn=e=>{let{onGoBack:t,onSignature:a,title:n,leftTopBlock:l,isAbleToSign:c=!0,loading:r,signature:i,signatureAdditionalBlock:s,signatureProps:d}=e;return o.a.createElement("div",{className:dn.a.signatureContainer},o.a.createElement("div",{className:dn.a.leftBlock},o.a.createElement("button",{onClick:t,className:dn.a.chevronBlock},o.a.createElement(Ze.a,{className:dn.a.chevron,height:13,width:13})),o.a.createElement("p",{className:dn.a.leftBlockTitle},n)),o.a.createElement("div",{className:dn.a.SmsContainer},o.a.createElement("div",{className:dn.a.SmsLeftBlock},o.a.createElement("div",{className:dn.a.leftTopBlock},l),o.a.createElement("div",{className:dn.a.buttonsBlock},o.a.createElement(be.b,{onClick:t,status:be.a.DEFAULT,className:"".concat(dn.a.buttonDesktop," ").concat(dn.a.backButton)},"Назад"),o.a.createElement(be.b,{onClick:a,isLoading:r,status:c?be.a.ACTIVED:be.a.DISABLED,disabled:!c,className:"".concat(dn.a.buttonDesktop," ").concat(i?dn.a.hiddenPlug:dn.a.visiblePlug)},"Подписать"))),o.a.createElement("div",{className:dn.a.wrapperBlock},o.a.createElement(be.b,{onClick:a,isLoading:r,status:c?be.a.ACTIVED:be.a.DISABLED,disabled:!c,className:"".concat(dn.a.buttonMobile," ").concat(i?dn.a.hiddenPlug:dn.a.visiblePlug)},"Подписать"),o.a.createElement("div",{className:"".concat(dn.a.rightWrapperPlug," ").concat(i?dn.a.hiddenPlug:dn.a.visiblePlug)},o.a.createElement("span",{className:dn.a.descriptionPlug},'Нажмите кнопку "Подписать", чтобы перейти к процедуре подписания ваших документов.')),o.a.createElement(rn,Object.assign({},d,{className:"".concat(dn.a.codeBlock," ").concat(i?dn.a.visible:"withHidden")})),s)))};var un=a(436),pn=a.n(un);const Cn=e=>{let{incomingClassName:t,applicationChangeType:a,productName:n,onGraphicClick:l,onContractClick:c,remainder:r,amount:i,completionDate:s}=e;const d=a===u.f.PROLONGATION,m=i.toFixed(2).replace(".",",");return o.a.createElement("div",{className:"".concat(pn.a.container," ").concat(t||"")},o.a.createElement("div",{className:pn.a.details},o.a.createElement("div",{className:pn.a.detailsNameBlock},o.a.createElement("p",{className:pn.a.detailsName},"Условия нового договора")),o.a.createElement("p",null,"Продукт: ",n),o.a.createElement("p",null,d?"Продление договора: 30 дней":"Остаток тела долга: ".concat(r.toFixed(2).replace(".",","))),o.a.createElement("p",null,"Дата завершения:"," ",ve()(s).locale("ru").format("DD MMMM YYYY")),o.a.createElement("p",null,d?"Стоимость: ".concat(m):"Ежемесячный платеж: ".concat(m))),o.a.createElement("div",{className:pn.a.linkGraphicBlock},o.a.createElement("div",{onClick:l,className:pn.a.linkGraphic},o.a.createElement("svg",{width:"25",height:"25",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.79004 8.74023C3.21551 8.74156 3.62429 8.57652 3.92969 8.28027L5.5498 9.08984C5.54561 9.15644 5.54561 9.22344 5.5498 9.29004C5.55243 9.72418 5.72621 10.1393 6.0332 10.4463C6.3402 10.7533 6.75531 10.9271 7.18945 10.9297C7.6236 10.9271 8.03969 10.7533 8.34668 10.4463C8.65367 10.1393 8.82746 9.72418 8.83008 9.29004C8.82978 9.04768 8.77495 8.80827 8.66992 8.58984L10.8701 6.38965C11.0877 6.49813 11.3262 6.55616 11.5693 6.55957C12.0035 6.55695 12.4196 6.38414 12.7266 6.07715C13.0336 5.77016 13.2073 5.35407 13.21 4.91992C13.2088 4.75343 13.1817 4.5879 13.1299 4.42969L15.04 3C15.3087 3.18182 15.6248 3.27958 15.9492 3.28027C16.3834 3.27765 16.7995 3.10387 17.1064 2.79688C17.4134 2.48988 17.5872 2.07379 17.5898 1.63965C17.5872 1.2055 17.4134 0.790391 17.1064 0.483398C16.7995 0.176406 16.3834 0.00262331 15.9492 0C15.5151 0.00262331 15.1 0.176406 14.793 0.483398C14.486 0.790391 14.3122 1.2055 14.3096 1.63965C14.3107 1.80614 14.3378 1.97167 14.3896 2.12988L12.4795 3.55957C12.2108 3.37775 11.8938 3.28096 11.5693 3.28027C11.1352 3.2829 10.7201 3.45668 10.4131 3.76367C10.1061 4.07066 9.93231 4.48578 9.92969 4.91992C9.92999 5.
116229 9.98482 5.40169 10.0898 5.62012L7.88965 7.82031C7.67111 7.71561 7.43178 7.66079 7.18945 7.66016C6.76418 7.65988 6.35579 7.82478 6.0498 8.12012L4.42969 7.30957C4.43386 7.24297 4.43386 7.17695 4.42969 7.11035C4.42706 6.67621 4.25328 6.26012 3.94629 5.95312C3.6393 5.64613 3.22418 5.47235 2.79004 5.46973C2.35589 5.47235 1.93981 5.64613 1.63281 5.95312C1.32582 6.26012 1.15204 6.67621 1.14941 7.11035C1.15465 7.54276 1.33001 7.9559 1.63672 8.26074C1.94343 8.56559 2.35761 8.73765 2.79004 8.74023Z",fill:"#1C2A40"}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.1699 17.5791H17.5898V5.99902C17.5898 5.85315 17.5319 5.7135 17.4287 5.61035C17.3256 5.50721 17.1859 5.44922 17.04 5.44922H14.8496C14.7037 5.44922 14.5641 5.50721 14.4609 5.61035C14.3578 5.7135 14.2998 5.85315 14.2998 5.99902V17.5791H13.1992V9.24902C13.1992 9.10315 13.1422 8.9635 13.0391 8.86035C12.9359 8.75721 12.7953 8.69922 12.6494 8.69922H10.46C10.3141 8.69922 10.1735 8.75721 10.0703 8.86035C9.96717 8.9635 9.91016 9.10315 9.91016 9.24902V17.5391H8.80957V13.6289C8.80957 13.483 8.75158 13.3434 8.64844 13.2402C8.54529 13.1371 8.40563 13.0791 8.25977 13.0791H6.06934C5.92347 13.0791 5.78381 13.1371 5.68066 13.2402C5.57752 13.3434 5.51953 13.483 5.51953 13.6289V17.5391H4.41992V11.4395C4.41992 11.2936 4.36193 11.1529 4.25879 11.0498C4.15564 10.9467 4.01599 10.8887 3.87012 10.8887H1.67969C1.53382 10.8887 1.39416 10.9467 1.29102 11.0498C1.18787 11.1529 1.12988 11.2936 1.12988 11.4395V17.5391H0.549805C0.403936 17.5391 0.264278 17.5971 0.161133 17.7002C0.0579878 17.8033 0 17.943 0 18.0889C0 18.2347 0.0579878 18.3744 0.161133 18.4775C0.264278 18.5807 0.403936 18.6387 0.549805 18.6387H18.1494C18.2953 18.6387 18.4359 18.5807 18.5391 18.4775C18.6422 18.3744 18.6992 18.2347 18.6992 18.0889C18.6894 17.9534 18.6301 17.8266 18.5322 17.7324C18.4344 17.6383 18.3056 17.5837 18.1699 17.5791Z",fill:"#1C2A40"})),o.a.createElement("p",null,"Посмотреть график платежей")),o.a.createElement("div",{onClick:c,className:pn.a.linkGraphic},o.a.createElement("svg",{style:{marginRight:"4px"},xmlns:"http://www.w3.org/2000/svg",width:"21",height:"25",viewBox:"0 0 21 25",fill:"none"},o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.26672 0H16.9269C17.7921 0.00365164 18.621 0.350064 19.2327 0.9633
11C19.8444 1.57656 20.1887 2.4061 20.1923 3.27336V21.7266C20.1887 22.5939 19.8444 23.4234 19.2327 24.0367C18.621 24.6499 17.7921 24.9963 16.9269 25H3.26672C2.40158 24.9963 1.57271 24.6499 0.960959 24.0367C0.349209 23.4234 0.00364273 22.5939 0 21.7266V3.27336C0.00364273 2.4061 0.349209 1.57656 0.960959 0.96331C1.57271 0.350064 2.40158 0.00365164 3.26672 0ZM4.74803 4.75829C4.43236 4.75829 4.12922 4.88409 3.90601 5.10785C3.6828 5.33161 3.55731 5.63549 3.55731 5.95193C3.55731 6.26837 3.6828 6.5709 3.90601 6.79466C4.12922 7.01842 4.43236 7.14421 4.74803 7.14421H9.49471C9.81038 7.14421 10.1135 7.01842 10.3367 6.79466C10.5599 6.5709 10.6854 6.26837 10.6854 5.95193C10.6854 5.63549 10.5599 5.33161 10.3367 5.10785C10.1135 4.88409 9.81038 4.75829 9.49471 4.75829H4.74803ZM10.6854 16.6621C11.0011 16.6621 11.3029 16.5364 11.5261 16.3126C11.7493 16.0888 11.8748 15.785 11.8748 15.4685C11.8748 15.1521 11.7493 14.8495 11.5261 14.6258C11.3029 14.402 11.0011 14.2762 10.6854 14.2762H4.74803C4.43236 14.2762 4.12922 14.402 3.90601 14.6258C3.6828 14.8495 3.55731 15.1521 3.55731 15.4685C3.55731 15.785 3.6828 16.0888 3.90601 16.3126C4.12922 16.5364 4.43236 16.6621 4.74803 16.6621H10.6854ZM15.4321 11.9039C15.5884 11.9039 15.7432 11.873 15.8876 11.8131C16.032 11.7531 16.1636 11.6651 16.2741 11.5543C16.3847 11.4435 16.4711 11.3116 16.5309 11.1668C16.5907 11.0221 16.6228 10.8669 16.6228 10.7102C16.6228 10.5535 16.5907 10.3984 16.5309 10.2536C16.4711 10.1089 16.3847 9.97693 16.2741 9.86614C16.1636 9.75534 16.032 9.66732 15.8876 9.60736C15.7432 9.5474 15.5884 9.51658 15.4321 9.51658H4.74803C4.43236 9.51658 4.12922 9.64238 3.90601 9.86614C3.6828 10.0899 3.55731 10.3938 3.55731 10.7102C3.55731 10.8669 3.58805 11.0221 3.64786 11.1668C3.70768 11.3116 3.79549 11.4435 3.90601 11.5543C4.01653 11.6651 4.14815 11.7531 4.29255 11.8131C4.43696 11.873 4.59173 11.9039 4.74803 11.9039H15.4321Z",fill:"#1C2A40"})),o.a.createElement("p",null,d?"Соглашение о пролонгации":"Дополнительное соглашение"))))};var _n=a(437),gn=a.n(_n);var hn=()=>{var e,t,a;const c=Object(n.o)(),i=Object(l.useContext)(r.a),{id:s}=Object(n.q)(),[d]=Object(Z.d)(),m=d.get("commission"),p=d.get("paymentType"),C=d.get("type"),_=+(d.get("totalAmount")||0),E=+(d.get("amount")||0),v=Object(g.c)(e=>{let{auth:t}=e;return t.username}),[b,f]=Object(l.useState)(""),[L,k]=Object(l.useState)(null),[S,N]=Object(l.useState)([]),[B,y]=Object(l.useState)(!1),[O,M]=Object(l.useState)(!1),[P,I]=Object(l.useState)(null),[A,w]=Object(l.useState)(!1),[D,T]=Object(l.useState)(!1),j=()=>{c(-1)};if(Object(l.useLayoutEffect)(()=>{(async e=>{const{result:t,error:a}=await Object(h.y)({id:s}),n=await Object(h.B)({loanId:s,amount:E}),{result:l}=await Object(h.J)();I(null==l||null===(e=l.data)||void 0===e?void 0:e.clientId),N((null==n?void 0:n.length)?n:[]),a||k({...t.data})})()},[]),!L)return null;const R=null===u.P||void 0===u.P||null===(e=u.P[null==L?void 0:L.creditType])||void 0===e?void 0:e.title,F=S.map(e=>({amount:e.payment,bottomDescription:ve()(e.paymentDate,"YYYY-MM-DD").format(u.s),status:e.status})),x=ve()(),H=ve()(S[S.length-1].paymentDate),V=H.diff(x,"months");return o.a.createElement("div",{className:gn.a.container},O?o.a.createElement(It,null):o.a.createElement(o.a.Fragment,null),B&&Object(en.createPortal)(o.a.createElement(je,{pillars:F,product:{title:R},contractOpened:x,contractDuration:V,contractFinished:H,onClosePress:()=>y(!1),className:gn.a.axiosGraphic,prolongation:!1,termType:u.cb.MONTH,contractName:"",withLoanLine:!1}),document.body),o.a.createElement(mn,{signature:D,onSignature:async()=>{w(!0);try{const{result:e,error:t}=await Object(h.V)({phone:v,eventCode:u.m.NEW_LOAN});if("success"!==(null==e?void 0:e.data.result))throw t;T(!0)}catch(e){const t=e&&(null==e?void 0:e.response)&&(null==e?void 0:e.response.data),a=(null==t?void 0:t.message)||(null==t?void 0:t.error)||((null==t?void 0:t.includes("429"))?"Отправка сообщений временно заблокирована, попробуйте повторить действие через минуту":"В процессе отправки кода произошла ошибка. Пожалуйста повторите попытку");alert(a)}finally{w(!1)}},title:"Досрочное гашение",loading:A,signatureProps:{smsError:b,setSmsError:f,onPaymentMethodPreviousPress:j,takeLoan:async e=>{var t;const{result:a}=await Object(h.a)({applicationType:u.f.PARTIALLY_EARLY,loanId:s,smsSignCode:e});if("success"===(null==a||null===(t=a.data)||void 0===t?void 0:t.result)){const e=new URLSearchParams;
1C&&e.append("type",C),E&&e.append("amount",String(E)),p&&e.append("paymentType",p),c("/profile/payment-type/".concat(s,"?").concat(e.toString(),"&totalAmount=").concat(_,"&commission=").concat(m))}else f("Неверный код")},username:v,orderCall:async e=>{if(v){const t=await tn({phone:v,isFlashCall:e});return f(t||""),t}},infoText:null},leftTopBlock:o.a.createElement(Cn,{incomingClassName:gn.a.conditions,applicationChangeType:C,productName:R,onContractClick:async()=>{let e;M(!0);try{e=await Object(h.N)({loanApplicationId:s,clientId:P,paymentAmount:E},{responseType:"blob"})}catch(e){console.error(e),await Object(h.S)({eventName:"template/contract",phone:v,error:e,userAgent:window.navigator.userAgent})}finally{M(!1)}if(e){const t=new Blob([e.result.data],{type:"application/pdf"}),a=URL.createObjectURL(t);if(window.innerWidth<=1080){const e=document.createElement("a");return e.style.display="none",e.href=a,e.download="Договор.pdf",document.body.appendChild(e),e.click(),window.URL.revokeObjectURL(a),void document.body.removeChild(e)}i.setTitle("Текст договора"),i.setContent(o.a.createElement("iframe",{title:"Текст договора",src:a,width:"99%",height:"97%"})),i.setShown(!0)}},onGraphicClick:()=>(null==S?void 0:S.length)&&y(!0),remainder:L.amountDebt-E,completionDate:(null===(t=S[S.length-1])||void 0===t?void 0:t.paymentDate)||0,amount:(null==S||null===(a=S.find(e=>"NEAREST"===e.status))||void 0===a?void 0:a.payment)||E}),onGoBack:j}))},En=a(438),vn=a.n(En);const bn=e=>{const t=u.f.PARTIALLY_EARLY;return e.replaceAll("_","&").replaceAll("PARTIALLY&EARLY",t)};var fn=()=>{const[e]=Object(Z.d)(),[t]=Object(l.useState)(e.get("url")),[a]=Object(l.useState)(e.get("redirectUrl")||""),[c]=Object(l.useState)(e.get("errorRedirectUrl")),r=a?bn(a):"",i="add-contract?step=selfie"===r,s=c?bn(c):"",[d,u]=Object(l.useState)(!0),p=e.get("paymentDataType"),C=decodeURIComponent(t||""),_=Object(n.o)(),g=Object(l.useRef)(null);return Object(l.useEffect)(()=>{const e=e=>{var t;"https://card-gold-sigma.vercel.app"===e.origin&&"success"===(null===(t=e.data)||void 0===t?void 0:t.status)&&_("/profile/".concat(r),{replace:!0})};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[r,_]),o.a.createElement("div",{className:vn.a.container},i?o.a.createElement("p",{className:vn.a.title},"Привязка карты"):null,d&&o.a.createElement("div",{className:vn.a.loaderBlock},o.a.createElement(m.a,{fullHeight:!0})),o.a.createElement("iframe",{ref:g,src:C,sandbox:"allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts",onLoad:()=>{var e;const t=g.current;if(!t)return;setTimeout(()=>{u(!1)},1e3);const a=null===(e=t.contentWindow)||void 0===e?void 0:e.location.href;if(a){const e=new URL(a).searchParams,t=e.get("status")||"",n=e.get("error_code")||"",l=e.get("step")||"";("approved"===t||"selfie"===l||"product"===l||a.includes("account-status"))&&_("/profile/".concat(r),{replace:!0}),(("declined"===t||"filtered"===t)&&n||"payment-error"===l)&&_("/profile/".concat(s).concat(n?"&error_code=".concat(n):""),{replace:!0})}},className:p?vn.a.insideBlockSbp:vn.a.insideBlock}))},Ln=a(358),kn=a(455),Sn=a.n(kn);const Nn=()=>{const{infoUser:e}=Object(g.c)(e=>{let{signUp:t}=e;return{infoUser:t.infoUser}});return o.a.createElement("div",{className:Sn.a.container},o.a.createElement(Ln.a,{onSubmit:async()=>{},initialValues:{...e.passport,mail:e.mail}}))};var Bn=a(456),yn=a.n(Bn);const On=()=>o.a.createElement("div",{className:yn.a.container},"Документы");var Mn=a(258),Pn=a(299),In=a(212),An=a(213),wn=a(341),Dn=a(302),Tn=a(593),jn=a(606),Rn=a(303),Fn=a.n(Rn);const xn=e=>/[a-zA-Z]/.test(e),Zn=Pn.a().shape({region:Pn.b().required("Укажите регион"),city:Pn.b().required("Укажите город"),street:Pn.b().required("Укажите улицу"),house:Pn.b().required("Укажите номер дома"),flat:Pn.b().notRequired()}),Hn=e=>{let{onSubmit:t,setTopErrors:a,submitTrigger:n,setTopValues:c}=e;const{isLoading:r,fetchAddressData:i}=Object(Dn.a)(),[s,d]=Object(l.useState)([]),[m,u]=Object(l.useState)([]),[p,C]=Object(l.useState)(""),[_,h]=Object(l.useState)(""),[E,v]=Object(l.useState)(""),[b,f]=Object(l.useState)(""),[L,k]=Object(l.useState)(""),[S,N]=Object(l.useState)(""),[B,y]=Object(l.useState)(""),[O,M]=Object(l.useState)(""),P=Object(g.c)(e=>{let{signUp:t}=e;return t.infoUser.address});async function I(e,t,a,n,l){switch(t){case"region":k(e);break;case"city":N(e);break;case"street":y(e);break;case"house":M(e)}const o=i(e,{value:t},{value:a},n,[l]);if(o){const t=(await o).map(e=>({...e,id:Object(wn.a)()}));u(t);const a=t.map(e=>({label:"".concat(e.value),value:e.id,className:Fn.a.option}))||[];a.unshift({label:e,value:e,className:Fn.a.option}),d(a)}}const{handleSubmit:A,handleChange:w,handleBlur:D,errors:T,values:j,setFieldValue:R,setErrors:F}=Object(Mn.a)({validationSchema:Zn,onSubmit:async e=>{try{await t(e)}
1catch{Ba.toast.error("Что-то пошло не так, повторите попытку позже!")}},initialValues:P,isInitialValid:!1});function x(e,t){let{value:a}=e;d([]);const n=m.find(e=>e.id===a);"region"===t&&C((null==n?void 0:n.data.fias_id)||""),"city"===t&&(h((null==n?void 0:n.data.city_fias_id)||""),v((null==n?void 0:n.data.settlement_fias_id)||"")),"street"===t&&f((null==n?void 0:n.data.fias_id)||""),d([]),R(t,(null==n?void 0:n.value)||a||"",!0)}return Object(l.useEffect)(()=>{(null==P?void 0:P.city)&&(R("city",(null==P?void 0:P.city)||"",!0),R("region",(null==P?void 0:P.region)||"",!0),R("home",(null==P?void 0:P.house)||"",!0),R("room",(null==P?void 0:P.flat)||"",!0),R("street",(null==P?void 0:P.street)||"",!0),C("testValue"),h("testValue"),f("testValue"))},[]),Object(l.useEffect)(()=>{n&&A()},[n]),Object(l.useEffect)(()=>{a&&F(T)},[T]),Object(l.useEffect)(()=>{c&&c(j)},[j]),o.a.createElement("form",{onSubmit:A},o.a.createElement("div",{className:Fn.a.wrapperForm},o.a.createElement(In.a,{className:Fn.a.region,labelText:"Регион проживания",labelFor:"region"},o.a.createElement(Tn.a,{style:{height:"40px"},listHeight:Be.isMobile?200:500,labelInValue:!0,showSearch:!0,placeholder:(null==P?void 0:P.region)||"Начните вводить название",status:T.region?"error":"",filterOption:!1,searchValue:L,onSearch:e=>{xn(e)?F({region:"Регион должен содержать только русские буквы"}):(xn(e)||F({}),I(Fe.b.format(e),"region","region",!0,{}))},onChange:e=>x(e,"region"),notFoundContent:r?o.a.createElement(jn.a,{size:"small"}):null,options:s,defaultActiveFirstOption:!1,showArrow:!1,defaultValue:j.region?{label:j.region,value:j.region}:null}),o.a.createElement("span",{className:"".concat(Fn.a.errorText," ").concat(T.region?Fn.a.errorBlock:Fn.a.noErrorBlock)},T.region)),o.a.createElement(In.a,{className:Fn.a.city,labelText:"Населенный пункт",labelFor:"city"},o.a.createElement(Tn.a,{style:{height:"40px"},listHeight:Be.isMobile?200:500,disabled:!j.region,labelInValue:!0,showSearch:!0,placeholder:(null==P?void 0:P.city)||"Начните вводить название",filterOption:!1,searchValue:S,onSearch:e=>{xn(e)?F({city:"Населенный пункт должен содержать только русские буквы"}):(xn(e)||F({}),I(Fe.b.format(e),"city","settlement",!0,{region_fias_id:p}))},status:T.city?"error":"",onChange:e=>x(e,"city"),notFoundContent:r?o.a.createElement(jn.a,{size:"small"}):null,options:s,defaultActiveFirstOption:!1,showArrow:!1,defaultValue:j.city?{label:j.city,value:j.city}:null,popupClassName:Fn.a.dropdown}),o.a.createElement("span",{className:"".concat(Fn.a.errorText," ").concat(T.city?Fn.a.errorBlock:Fn.a.noErrorBlock)},T.city)),o.a.createElement(In.a,{className:Fn.a.street,labelText:"Улица",labelFor:"street"},o.a.createElement(Tn.a,{style:{height:"40px"},listHeight:Be.isMobile?200:500,disabled:!j.city,status:T.street?"error":"",labelInValue:!0,showSearch:!0,placeholder:(null==P?void 0:P.street)||"Начните вводить название",filterOption:!1,searchValue:B,onSearch:e=>{xn(e)?F({street:"Улица должна содержать только русские буквы"}):(xn(e)||F({}),I(Fe.b.format(e),"street","street",!0,{settlement_fias_id:E||void 0,city_fias_id:_||void 0}))},onChange:e=>x(e,"street"),notFoundContent:r?o.a.createElement(jn.a,{size:"small"}):null,options:s,defaultActiveFirstOption:!1,showArrow:!1,defaultValue:j.street?{label:j.street,value:j.street}:null,popupClassName:Fn.a.dropdown}),o.a.createElement("span",{className:"".concat(Fn.a.errorText," ").concat(T.street?Fn.a.errorBlock:Fn.a.noErrorBlock)},T.street)),o.a.createElement(In.a,{className:Fn.a.house,labelText:"Дом",labelFor:"house"},o.a.createElement(Tn.a,{style:{height:"40px"},listHeight:Be.isMobile?200:500,disabled:!j.street,status:T.house?"error":"",labelInValue:!0,showSearch:!0,placeholder:(null==P?void 0:P.house)||"",filterOption:!1,searchValue:O,onSearch:e=>I(Fe.b.format(e),"house","house",!0,{street_fias_id:b}),onChange:e=>x(e,"house"),notFoundContent:r?o.a.createElement(jn.a,{size:"small"}):null,options:s,defaultActiveFirstOption:!1,showArrow:!1,defaultValue:j.house?{label:j.house,value:j.house}:null,popupClassName:Fn.a.dropdown}),o.a.createElement("span",{className:"".concat(Fn.a.errorText," ").concat(T.house?Fn.a.errorBlock:Fn.a.noErrorBlock)},T.house)),o.a.createElement(In.a,{className:Fn.a.flat,labelText:"Квартира",labelFor:"flat"},o.a.createElement(An.a,{disabled:!j.house,name:"flat",placeholder:"",status:T.flat?"error":"",value:j.flat,onChange:w,onBlur:D,withoutIcon:!0,error:T.house}))))};var Vn=a(461),Wn=a.n(Vn);const Gn=()=>o.a.createElement("div",{className:Wn.a.container},o.a.createElement(Hn,{onSubmit:async()=>{}}));var Un=a(462),Yn=a.n(Un);const zn=()=>o.a.createElement("div",{className:Yn.a.container},"Бонусы");var qn=a(463),Jn=a.n(qn),Qn=a(464),Kn=a.n(Qn),Xn=a(465),$n=a.n(Xn);const el=()=>{const e=new URLSearchParams(Object(n.m)().search).get("status"),t="success"===e||"true"===localStorage.getItem("isPaymentWentSuccess")||!1,a=Object(n.o)();return Object(l.useEffect)(()=>{"success"===e&&localStorage.setItem("isPaymentWentSuccess","true")},[e]),o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:$n.a.sideBlock},o.a.createElement("p",{className:$n.a.ratingBlock},o.a.createElement("p",{className:$n.a.ratingTitle},"Кредитный рейтинг"),o.a.createElement("p",{className:$n.a.ratingDescription},o.a.createElement("span",null,"Персональный кредитный рейтинг - это число от 1 до 999, которое показывает вашу кредитоспособность."),o.a.createElement("span",null,"Чем выше рейтинг, тем ниже ставки и больше вероятность одобрения кредита."),o.a.createElement("span",null,"Наш отчет позволяет узнать свой персональный кредитный рейтинг на текущую дату, а также увидеть актуальную статистику по всем имеющимся кредитным и микрофинансовым обязательствам."))),o.a.createElement("div",{className:$n.a.statBlock},o.a.createElement("p",{className:$n.a.statTitle},"Отразим статистику по кредитным продуктам и МФО"),o.a.createElement("img",{className:$n.a.statDescriptionImage,loading:"lazy",src:Jn.a,alt:"statImg"}))),o.a.createElement("div",{className:$n.a.sideBlock},o.a.createElement("div",{className:$n.a.actualCreditRatingBlock},o.a.createElement("p",{className:$n.a.actualCreditRatingTitle},"Покажем ваш актуальный кредитный рейтинг и оценку кредитоспособности"),o.a.createElement("img",{className:$n.a.actualCreditRatingImage,src:Kn.a,alt:"ratingImg"})),o.a.createElement("div",{className:$n.a.personalServiceBlock},o.a.createElement("p",{className:$n.a.personalServiceDescription},'Услуга формирования персонального кредитного отчета предоставляется партнером сервиса ООО "Снизим.ру".'),t?o.a.createElement("p",{className:$n.a.ordered},"отчет заказан"):o.a.createElement(w.a,{className:$n.a.personalServiceButton,htmlType:"button",status:"pink",loading:!1,onClick:async()=>{a("/profile/new_cart?url=".concat(encodeURIComponent("https://card-gold-sigma.vercel.app"),"&redirectUrl=settings/account-data?status=success"))}},"Заказать отчет за 1000 ₽"))))};var tl=a(466),al=a.n(tl);const nl=[{key:"Основные",component:o.a.createElement(Nn,null)},{key:"Документы",component:o.a.createElement(On,null)},{key:"Прописка",component:o.a.createElement(Gn,null)},{key:"Бонусы",component:o.a.createElement(zn,null)},{key:"Кредитный рейтинг",component:o.a.createElement(el,null)}];var ll=()=>{var e;const[t,a]=Object(l.useState)(nl[4].key);return o.a.createElement("div",{className:al.a.container},o.a.createElement(f,{className:al.a.headerLimit}),o.a.createElement("div",{className:al.a.titleBlock},o.a.createElement("p",{className:al.a.title},"Данные аккаунта"),o.a.createElement("div",{className:al.a.iconQuestion},"?")),o.a.createElement("div",{className:al.a.tabsBlock},nl.map(e=>o.a.createElement("div",{key:e.key,className:"".concat(al.a.tab," ").concat(t===e.key&&al.a.activeTab),onClick:()=>
1a(e.key)},e.key))),o.a.createElement("div",{className:al.a.childBlock},null===(e=nl.find(e=>e.key===t))||void 0===e?void 0:e.component))},ol=a(344),cl=a(467),rl=a.n(cl);const il=o.a.createElement(jn.a,{style:{marginTop:"1px",marginBottom:"1px"},size:"small"}),sl=()=>o.a.createElement("svg",{style:{transform:"rotate(270deg)"},xmlns:"http://www.w3.org/2000/svg",width:"13",height:"9",viewBox:"0 0 13 9",fill:"none"},o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.278639 6.98885C0.177249 7.11314 0.10059 7.25663 0.0537279 7.41122C0.00686539 7.5658 -0.00955793 7.72835 0.00530958 7.88947C0.0201771 8.0506 0.0661 8.20727 0.140412 8.35017C0.214725 8.49306 0.315616 8.61953 0.437951 8.72223C0.685162 8.92745 1.00182 9.02507 1.31885 8.99449C1.63588 8.96392 1.92806 8.80742 2.13337 8.55855L6.49961 3.19514L10.8658 8.55855C11.0712 8.80742 11.3641 8.96392 11.6811 8.99449C11.9982 9.02507 12.3141 8.92745 12.5613 8.72223C12.6836 8.61953 12.7853 8.49306 12.8596 8.35017C12.9339 8.20727 12.9798 8.0506 12.9947 7.88947C13.0096 7.72835 12.9931 7.5658 12.9463 7.41122C12.8994 7.25663 12.8228 7.11314 12.7214 6.98885L7.44377 0.448155L7.28367 0.284478C7.16211 0.180819 7.02176 0.102842 6.87056 0.0549307C6.71936 0.00701904 6.56037 -0.00977135 6.40277 0.00542831C6.24518 0.0206289 6.09194 0.0675802 5.95217 0.143556C5.8124 0.219532 5.68871 0.323081 5.58825 0.448155L0.278639 6.98885Z",fill:"#1C2A40"}));var dl=()=>{const[e,t]=Object(l.useState)(!0),a=Object(n.o)(),{id:c}=Object(n.q)(),[r]=Object(Z.d)(),[i]=Object(l.useState)(r.get("type")),[s,d]=Object(l.useState)(null),[m]=Object(l.useState)(+(r.get("amount")||0)),[p]=Object(l.useState)(r.get("paymentType")),C=p?Object(ol.a)(p.replace(/_/g," ").toLowerCase()):"",[_,g]=Object(l.useState)(0),E=i===u.f.PROLONGATION,v=i===u.f.PARTIALLY_EARLY;Object(l.useLayoutEffect)(()=>{(async()=>{try{var e;t(!0);const{result:n}=await Object(h.y)({id:c});d({...n.data});const l=C||(E?"Changing prolongation":v&&m>(null==n||null===(e=n.data)||void 0===e?void 0:e.nextPaymentAmount)?"Reduce payment":"Scheduled"),{result:o,error:r}=await Object(h.q)({loanApplicationId:c,amount:m,paymentType:l});var a;if(!r)g((null==o||null===(a=o.data)||void 0===a?void 0:a.commissionAmount)||0)}catch(e){console.log(e)}finally{t(!1)}})()},[]);return o.a.createElement("div",{className:rl.a.container},o.a.createElement("div",{className:rl.a.upBlock},o.a.createElement("div",{className:rl.a.titleBlock},o.a.createElement(Z.b,{className:rl.a.backBlock,to:"/profile/my-payments"},o.a.createElement(sl,null)),o.a.createElement("p",{className:rl.a.title},"Состав платежа")),o.a.createElement("div",{className:rl.a.amountUpBlock},o.a.createElement("p",{className:rl.a.greyAmount},o.a.createElement("span",null,"Платеж согласно графику платежей:"),o.a.createElement("br",null),o.a.createElement("span",{className:rl.a.boldAmount},Object(u.nb)(m)," ₽")),o.a.createElement("p",{className:rl.a.greyAmount},o.a.createElement("span",null,"Сумма за обработку платежа:"),o.a.createElement("br",null),o.a.createElement("span",{className:rl.a.boldAmount},Object(u.nb)(_)," ₽"))),o.a.createElement("p",{className:rl.a.blackAmount},o.a.createElement("span",null,"Общая сумма к оплате:"),o.a.createElement("br",null),o.a.createElement("span",{className:rl.a.boldAmount},Object(u.nb)(m+_)," ₽"))),o.a.createElement("div",{className:rl.a.bottomBlock},o.a.createElement("div",{className:rl.a.buttonsBlock},o.a.createElement(Z.b,{className:V()(rl.a.button,rl.a.backButton),to:"/profile/my-payments"},o.a.createElement(be.b,{onClick:()=>{},className:rl.a.button1},"Назад")),o.a.createElement(be.b,{onClick:async()=>{const e=i===u.f.PROLONGATION,t=i===u.f.PARTIALLY_EARLY;if(e||t&&m>s.nextPaymentAmount&&m!==s.amountDebt){const n=e?await Object(h.n)({loanId:c,applicationChangeType:i}):null;if((null==n?void 0:n.applicationStep)!==u.e.TO_PAY||t)return void a("/profile/confirm-code/".concat(c,"?type=").concat(i,"&commission=").concat(_,"&amount=").concat(m).concat(m+_>0?"&totalAmount=".concat(m+_):""))}const n=new URLSearchParams;i&&n.append("type",i),_&&n.append("commission",String(_)),m&&n.append("amount",String(m)),p&&n.append("paymentType",p),a("/profile/payment-type/".concat(c,"?").concat(n.toString()).concat(m+_>0?"&totalAmount=".concat(m+_):""))},disabled:e,status:e?be.a.DISABLED:be.a.ACTIVED,className:rl.a.button},e?il:"Далее")),o.a.createElement("p",{className:rl.a.bottomText},"Нажимая “Далее”, вы подтверждаете свои осведомленность и согласие с тем, что стоимость обработки платежа не может быть зачтена в счет платежей по графику.")))};const ml=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.a.createElement("svg",Object.assign({viewBox:"0 0 25 25"},e),o.a.createElement("path",{d:"M25 14.5833C24.9954 11.4507 23.8157 8.43387 21.694 6.12916C19.5723 3.82445 16.6632 2.39966 13.5417 2.13646V0H11.4583V2.13646C8.33681 2.39966 5.42765 3.82445 3.30598 6.12916C1.18431 8.43387 0.0045748 11.4507 0 14.5833L0 15.625H11.4583V21.875C11.4583 22.1513 11.3486 22.4162 11.1532 22.6116C10.9579 22.8069 10.6929 22.9167 10.4167 22.9167C10.1404 22.9167 9.87545 22.8069 9.6801 22.6116C9.48475 22.4162 9.375 22.1513 9.375 21.875H7.29167C7.29167 22.7038 7.62091 23.4987 8.20696 24.0847C8.79301 24.6708 9.58787 25 10.4167 25C11.2455 25 12.0403 24.6708 12.6264 24.0847C13.2124 23.4987 13.5417 22.7038 13.5417 21.875V15.625H25V14.5833Z"}))};var ul=a(468),pl=a.n(ul);const Cl=e=>{let{uuid:t,contractNumber:a,onSetId:n,status:l,canRefund:c,openModal:r,wasRefunded:i=!1}=e;
1const s="ACTIVE"===l,d="EXPIRED"===l,m="CANCELLED"===l;return o.a.createElement("div",{className:pl.a.container},o.a.createElement("div",{className:"".concat(pl.a.header," ").concat(d?"":pl.a.headerBottom)},o.a.createElement("div",{className:pl.a.headerLeft},o.a.createElement(ml,{className:pl.a.umbrella}),o.a.createElement("span",{className:pl.a.title},"Страхование")),o.a.createElement(be.b,{as:"div",disabled:!s,onClick:()=>{},className:"".concat(pl.a.smallButton," ").concat(s?pl.a.smallButtonActive:pl.a.smallButtonNoActive)},o.a.createElement("div",null,s?"Активен":m?"Отменен":"Истек"))),o.a.createElement("p",{className:pl.a.description},"Договор №",a),s&&c&&o.a.createElement(be.b,{disabled:d,onClick:()=>i&&Be.isMobile?null==r?void 0:r():n(t),className:"".concat(pl.a.button," ").concat(d?pl.a.buttonExpired:"")},o.a.createElement("div",null,i?"Загрузить заявление":"Отказаться от услуги")),d&&o.a.createElement("p",{className:pl.a.expiredDescription},"Вернуть средства за услугу нельзя, так как с момента оформления прошло более 30 дней"))};var _l=a(335),gl=a(94);const hl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.a.createElement("svg",Object.assign({viewBox:"0 0 13 15",fill:"none"},e),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.9624 0H10.1799C10.6999 0.00161731 11.1981 0.208822 11.5657 0.576491C11.9334 0.944161 12.1407 1.4424 12.1423 1.96236V13.0376C12.1407 13.5575 11.9334 14.0558 11.5657 14.4234C11.1981 14.7911 10.6999 14.9984 10.1799 15H1.9624C1.44244 14.9984 0.944217 14.7911 0.576547 14.4234C0.208878 14.0558 0.00161731 13.5575 0 13.0376V1.96236C0.00161731 1.4424 0.208878 0.944161 0.576547 0.576491C0.944217 0.208822 1.44244 0.00161731 1.9624 0ZM2.85773 2.85768C2.67968 2.87419 2.5142 2.95661 2.39374 3.08877C2.27327 3.22092 2.2065 3.39331 2.2065 3.57213C2.2065 3.75096 2.27327 3.92335 2.39374 4.0555C2.5142 4.18766 2.67968 4.27008 2.85773 4.28659H5.71547C5.81485 4.29581 5.91506 4.28417 6.0097 4.25246C6.10434 4.22074 6.19132 4.1696 6.26508 4.10236C6.33885 4.03512 6.39777 3.95329 6.43808 3.86199C6.4784 3.77068 6.49923 3.67194 6.49923 3.57213C6.49923 3.47232 6.4784 3.37358 6.43808 3.28228C6.39777 3.19097 6.33885 3.10914 6.26508 3.04191C6.19132 2.97467 6.10434 2.92353 6.0097 2.89181C5.91506 2.8601 5.81485 2.84846 5.71547 2.85768H2.85773ZM6.43296 10.002C6.61101 9.98551 6.77649 9.90309 6.89695 9.77093C7.01742 9.63877 7.08419 9.46639 7.08419 9.28756C7.08419 9.10874 7.01742 8.93643 6.89695 8.8
10427C6.77649 8.67212 6.61101 8.5897 6.43296 8.57318H2.85773C2.67968 8.5897 2.5142 8.67212 2.39374 8.80427C2.27327 8.93643 2.2065 9.10874 2.2065 9.28756C2.2065 9.46639 2.27327 9.63877 2.39374 9.77093C2.5142 9.90309 2.67968 9.98551 2.85773 10.002H6.43296ZM9.29069 7.14427C9.39007 7.15349 9.49029 7.14192 9.58492 7.11021C9.67956 7.0785 9.76654 7.02735 9.84031 6.96011C9.91407 6.89288 9.97299 6.81097 10.0133 6.71967C10.0536 6.62836 10.0744 6.5297 10.0744 6.42989C10.0744 6.33008 10.0536 6.23134 10.0133 6.14003C9.97299 6.04873 9.91407 5.96682 9.84031 5.89958C9.76654 5.83235 9.67956 5.78128 9.58492 5.74957C9.49029 5.71785 9.39007 5.70621 9.29069 5.71543H2.85773C2.67968 5.73194 2.5142 5.81436 2.39374 5.94652C2.27327 6.07868 2.2065 6.25107 2.2065 6.42989C2.2065 6.60871 2.27327 6.7811 2.39374 6.91325C2.5142 7.04541 2.67968 7.12775 2.85773 7.14427H9.29069Z"}))};var El=a(102),vl=a(469),bl=a.n(vl);const fl=e=>{let{serviceId:t,onSuccess:a}=e;const[n,c]=Object(l.useState)(!1),r=Object(g.b)();return o.a.createElement("div",{className:bl.a.container},o.a.createElement("p",{className:bl.a.title},"Загрузка файлов"),o.a.createElement("p",{className:bl.a.description},"Загружаемый файл должен иметь формат pdf",o.a.createElement("br",{className:bl.a.customBr})," и весить не более 2 Мб."),o.a.createElement("label",{className:bl.a.btn},n?o.a.createElement(El.a,null):"Выбрать файл для загрузки",o.a.createElement("input",{type:"file",accept:".pdf",onChange:async e=>{var n;const l=e.target,o=null===(n=l.files)||void 0===n?void 0:n[0];if(!o)return;const i=()=>{l.value=""};if("application/pdf"!==o.type)return alert("Можно загружать только PDF файлы"),void i();if(o.size>2097152)return alert("Файл должен быть меньше 2 МБ"),void i();if(t){c(!0);try{await Object(Wt.a)(t),r(Object(s.i)({uuid:t,status:"CANCELLED"})),a()}catch(e){var d,m;alert((null===(d=e.response)||void 0===d||null===(m=d.data)||void 0===m?void 0:m.error)||"Неизвестная ошибка")}finally{c(!1)}}},hidden:!0})))};var Ll=a(470),kl=a.n(Ll);const Sl=e=>{var t;let{serviceId:a,setServiceId:n,contracts:c,additionalServices:r,setSavedIds:i,wasRefunded:s=!1,setIncomingSuccess:d,incomingSuccess:m=!1}=e;const p=null===(t=r.find(e=>e.uuid===a))||void 0===t?void 0:t.loanApplicationId,C=!!c.find(e=>(null==e?void 0:e.loanApplicationId)===p),[_,g]=Object(l.useState)(!1),h=m||_,E=d||g;return o.a.createElement("div",{className:kl.a.container},o.a.createElement("div",{className:"".concat(kl.a.content," ").concat(kl.a.maxWidth320)},(h||s)&&o.a.createElement("button",{onClick:()=>{n(null),E(!1)},className:kl.a.closeButton},o.a.createElement(gl.a,{className:kl.a.close})),h?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:kl.a.successIconBlock},o.a.createElement(_l.a,{width:20,height:12,className:kl.a.successIcon})),o.a.createElement("p",{className:kl.a.successTitle},"Ваше Заявление успешно",o.a.createElement("br",null)," подписано и принято!"),o.a.createElement("p",{className:kl.a.successDescription},"Денежные средства будут зачислены",o.a.createElement("br",null),C?"в счет погашения текущего займа":o.a.createElement(o.a.Fragment,null,"на баланс. Вы сможете погасить ими",o.a.createElement("br",null)," проценты по следующему займу"),".")):s?o.a.createElement(fl,{serviceId:a,onSuccess:()=>g(!0)}):o.a.createElement(o.a.Fragment,null,o.a.createElement(hl,{className:kl.a.docIcon}),o.a.createElement("p",{className:kl.a.title},"Форма заявления о добровольном отказе от услуги “Страхование”.pdf"),o.a.createElement("p",{className:kl.a.description},"Для отказа от услуги скачайте форму заявления, заполните от руки, подпишите синей ручкой и загрузите обратно на сервис. Загружаемый файл должен иметь формат pdf и весить не более 2 Мб."),o.a.createElement("div",{className:kl.a.buttonsBlock},o.a.createElement("a",{href:"http://static.budgett.ru/pdf/ЗаявÐ
1»ÐµÐ½Ð¸Ðµ_возврат_доп_услуги_001.pdf",download:!0,target:"_blank",rel:"noreferrer",className:kl.a.yesLinkBtn,onClick:()=>{a&&((e=>{const t=localStorage.getItem(u.b),a=t?JSON.parse(t):[];a.includes(e)||(a.push(e),localStorage.setItem(u.b,JSON.stringify(a)))})(a),i(e=>[...e,a]),n(null))}},"Скачать"),o.a.createElement(be.b,{onClick:()=>n(null),className:kl.a.noBtn},"Отменить")))))};var Nl=a(471),Bl=a.n(Nl);var yl=()=>{const{openModal:e,isOpenModal:t,handleCloseClick:a,handleCloseTopBlock:n,forceDisplacement:c}=Object(jt.a)(),{additionalServices:r,contracts:i}=Object(g.c)(e=>{let{profile:t}=e;return{contracts:t.contracts,additionalServices:t.additionalServices}}),s=[...r||[]].sort((e,t)=>{var a,n;return Number(null===(a=e.contractNumber)||void 0===a?void 0:a.toString().split("/")[0])-Number(null===(n=t.contractNumber)||void 0===n?void 0:n.toString().split("/")[0])}).slice(-1),[d,m]=Object(l.useState)(null),[p,C]=Object(l.useState)(!1),[_,h]=Object(l.useState)(null),E=JSON.parse(localStorage.getItem(u.b)||"[]"),[v,b]=Object(l.useState)(E),f=e=>v.includes(e);return o.a.createElement(xt,{title:"Услуги по гарантии",description:"В данном разделе можно еще раз ознакомиться с полным текстом документов, регулирующих ваши взаимоотношения с платформой, или сохранить их у себя на устройстве.",backLink:"/profile/settings/others",forwardLink:"/profile/settings/lifeInsurance",forwardTitle:"Оформить полис"},d&&!t||p?o.a.createElement(Sl,{serviceId:d,setServiceId:m,setSavedIds:b,contracts:i,additionalServices:s,wasRefunded:f(d||""),incomingSuccess:p,setIncomingSuccess:C}):null,_&&o.a.createElement(At.a,{isOpenModal:t,forceDisplacement:c,handleCloseClick:a,handleCloseTopBlock:n,isTop:!1},o.a.createElement(fl,{serviceId:_,onSuccess:()=>{a(),setTimeout(()=>{C(!0),m(_)},500)}})),o.a.createElement("div",{className:Bl.a.container},s.map(t=>o.a.createElement(Cl,Object.assign({key:t.uuid},t,{onSetId:m,openModal:()=>{h(t.uuid),e()},wasRefunded:f(t.uuid)})))),o.a.createElement(be.b,{link:"/profile/settings/lifeInsurance",onClick:()=>{},className:Bl.a.activeButton},"Оформить полис"))};const Ol=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.a.createElement("svg",Object.assign({viewBox:"0 0 13 12",fill:"none"},e),o.a.createElement("path",{d:"M12.5303 6.05377C12.8232 5.76087 12.8232 5.286 12.5303 4.99311L7.75736 0.220137C7.46447 -0.0727568 6.98959 -0.0727568 6.6967 0.220137C6.40381 0.51303 6.40381 0.987904 6.6967 1.2808L10.9393 5.52344L6.6967 9.76608C6.40381 10.059 6.40381 10.5338 6.6967 10.8267C6.98959 11.1196 7.46447 11.1196 7.75736 10.8267L12.5303 6.05377ZM0 5.52344V6.27344H12V5.52344V4.77344H0V5.52344Z"}))};var Ml=a(472),Pl=a.n(Ml);const Il=e=>{let{link:t,title:a,width:n,icon:l}=e;const c=l;return o.a.createElement(Z.b,{to:"/profile/settings/".concat(t),className:Pl.a.container},o.a.createElement("div",{className:Pl.a.leftBlock},o.a.createElement("div",{className:Pl.a.iconBlock},o.a.createElement(c,{width:n,className:Pl.a.icon})),o.a.createElement("p",{className:Pl.a.title},a)),o.a.createElement("div",{className:Pl.a.arrowIconBlock},o.a.createElement(Ol,{className:Pl.a.arrowIcon})))},Al=[{icon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.a.createElement("svg",Object.assign({viewBox:"0 0 28 28",fill:"none"},e),o.a.createElement("path",{d:"M23.3333 0H4.66667C2.093 0 0 2.12263 0 4.73273V18.9309C0 21.541 2.093 23.6636 4.66667 23.6636H8.07683L12.4495 27.3978C12.8952 27.8 13.4552 28 14.0105 28C14.5553 28 15.0967 27.8071 15.5178 27.4262L20.006 23.6636H23.3333C25.907 23.6636 28 21.541 28 18.9309V4.73273C28 2.12263 25.907 0 23.3333 0ZM9.1525 13.5652C8.96817 14.617 7.97767 15.3814 6.79933 15.3814C5.84617 15.3814 4.95017 14.9921 4.34233 14.3118L4.34 14.3094C4.074 14.0124 4.095 13.5522 4.389 13.2824L4.39483 13.2765C4.68767 13.0067 5.1415 13.0292 5.4075 13.3262L5.40983 13.3285C5.74 13.6977 6.25917 13.9178 6.79933 13.9178C7.31617 13.9178 7.68017 13.6078 7.73383 13.3072C7.805 12.9038 7.2135 12.6494 7.02917 12.5808C6.16117 12.2566 5.3795 11.9016 5.3795 11.9016C4.68767 11.4544 4.382 10.7681 4.48233 10.0535C4.59083 9.29389 5.138 8.67509 5.91267 8.43845C7.43283 7.97346 8.6905 9.02176 8.74183 9.06672L8.74533 9.06909C9.04867 9.32821 9.08717 9.7861 8.83283 10.0937L8.827 10.0996C8.57267 10.4073 8.12 10.4463 7.81667 10.
11884C7.7875 10.1647 7.08633 9.60862 6.328 9.83816C5.98967 9.94109 5.92317 10.1683 5.91033 10.2606C5.901 10.3292 5.89517 10.5007 6.05967 10.6143C6.07833 10.6143 6.76783 10.922 7.52733 11.2071C8.93783 11.7348 9.29133 12.7701 9.1525 13.5628V13.5652ZM17.3693 14.6099C17.3693 15.0134 17.0462 15.3411 16.6483 15.3411H16.6448C16.247 15.3411 15.9238 15.0134 15.9238 14.6099V10.7871L14.4387 12.4187C14.1528 12.7322 13.664 12.7322 13.3782 12.4187L11.8918 10.7859L11.8895 14.6111C11.8895 15.0146 11.5663 15.3423 11.1685 15.3423C10.7707 15.3423 10.4475 15.0146 10.4475 14.6111V9.33057C10.4475 8.77329 10.8932 8.3225 11.4415 8.3225C11.7285 8.3225 12.0015 8.44792 12.1905 8.66799L13.909 10.6628L15.6275 8.66799C15.8165 8.4491 16.0895 8.3225 16.3765 8.3225C16.926 8.3225 17.3705 8.77448 17.3705 9.33057V14.6111L17.3693 14.6099ZM23.8187 13.5261C23.6343 14.578 22.6438 15.3423 21.4655 15.3423C20.5123 15.3423 19.6163 14.9531 19.0085 14.2727L19.0062 14.2704C18.7402 13.9734 18.7612 13.5131 19.0552 13.2434L19.061 13.2374C19.3538 12.9677 19.8077 12.9902 20.0737 13.2871L20.076 13.2895C20.4062 13.6587 20.9253 13.8787 21.4655 13.8787C21.9823 13.8787 22.3463 13.5687 22.4 13.2682C22.4712 12.8647 21.8797 12.6104 21.6953 12.5417C20.8273 12.2175 20.0457 11.8626 20.0457 11.8626C19.3538 11.4153 19.0482 10.7291 19.1485 10.0145C19.257 9.25485 19.8042 8.63604 20.5788 8.39941C22.099 7.93442 23.3567 8.98272 23.408 9.02768L23.4115 9.03004C23.7148 9.28916 23.7533 9.74705 23.499 10.0547L23.4932 10.0606C23.2388 10.3682 22.7862 10.4073 22.4828 10.1493C22.4537 10.1257 21.7525 9.56957 20.9942 9.79911C20.6558 9.90205 20.5893 10.1292 20.5765 10.2215C20.5672 10.2901 20.5613 10.4617 20.7258 10.5753C20.7433 10.5753 21.434 10.8829 22.1935 11.1681C23.604 11.6958 23.9575 12.731 23.8187 13.5238V13.5261Z"}))},width:28,title:"Смс-информирование",link:"others"},{icon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.a.createElement("svg",Object.assign({viewBox:"0 0 21 28",fill:"none"},e),o.a.createElement("path",{d:"M10.5006 14C6.6403 14 3.50097 10.8605 3.50097 7C3.50097 3.1395 6.6403 0 10.5006 0C14.3609 0 17.5002 3.1395 17.5002 7C17.5002 10.8605 14.3609 14 10.5006 14ZM13.6667 16.8233L11.5167 20.055L13.6866 28H19.8334C20.4785 28 21 27.4773 21 26.8333C21 22.1468 17.9132 18.1697 13.6667 16.8233ZM9.48331 20.055L7.33326 16.8233C3.08683 18.1697 0 22.1468 0 26.8333C0 27.4773 0.522638 28 1.1666 28H7.31343L9.48331 20.055Z"}))},width:21,title:"Персональный менеджер",link:"others"},{icon:Ht,width:22,title:"Услуги по гарантии",link:"services"}];var wl=()=>o.a.createElement(xt,{plugEnabled:!0,title:"Прочее",description:"В данном разделе можно еще раз ознакомиться с полным текстом документов, регулирующих ваши взаимоотношения с платформой, или сохранить их у себя на устройстве.",backLink:"/profile/settings/documents"},Al.map(e=>o.a.createElement(Il,Object.assign({key:e.title},e)))),Dl=a(473),Tl=a.n(Dl);const jl=e=>{let{onClick:t,rightBlockContent:a,leftBlockContent:n,rightBlockAdditionalStyles:l="",mobileTitle:c="Выберите способ",className:r=""}=e;return o.a.createElement("div",null,o.a.createElement("p",{className:"".concat(Tl.a.title," ").concat(Tl.a.desktopTitle)},c),o.a.createElement("div",{className:"".concat(Tl.a.container," ").concat(r)},o.a.createElement("div",{className:Tl.a.leftBlock},o.a.createElement("div",{className:Tl.a.contentMobile},o.a.createElement("button",{onClick:t,className:Tl.a.chevronBlock},o.a.createElement(Ze.a,{className:Tl.a.chevron,height:13,width:13})),o.a.createElement("p",{className:Tl.a.title},c)),n,o.a.createElement(be.b,{className:Tl.a.desktopButton,onClick:t,status:be.a.DEFAULT},"Назад")),o.a.createElement("div",{className:"".concat(Tl.a.rightBlock," ").concat(l)},a)))};var Rl=a(474),Fl=a.n(Rl);const xl=e=>{let{onClick:t,isDisabled:a,isSelected:n,children:l,isLoading:c=!1,icon:r,isSpb:i=!1}=e;const s=r,d=V()({[Fl.a.cardItem]:!0,[Fl.a.disabled]:a,[Fl.a.selected]:n}),m=o.a.createElement(o.a.Fragment,null,c?o.a.createElement("div",{className:Fl.a.loadingPlugBlock},o.a.createElement(jn.a,{size:"default",className:Fl.a.loadingPlug})):o.a.createElement(s,{className:V()({[Fl.a.spbIcon]:i,[Fl.a.icon]:!i}
1)}),o.a.createElement("div",{className:Fl.a.cardInfo},l));return o.a.createElement("button",{type:"button",className:d,disabled:a,onClick:t},m)};var Zl,Hl,Vl,Wl,Gl,Ul,Yl,zl;function ql(){return(ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}const Jl=e=>{let{svgRef:t,title:a,...n}=e;return o.a.createElement("svg",ql({width:33,height:40,viewBox:"0 0 33 40",fill:"none",ref:t},n),a?o.a.createElement("title",null,a):null,Zl||(Zl=o.a.createElement("path",{d:"M0 8.70508L4.84391 17.3632V22.6445L0.00566656 31.2856L0 8.70508Z",fill:"#5B57A2"})),Hl||(Hl=o.a.createElement("path",{d:"M18.5977 14.2144L23.1366 11.4325L32.4257 11.4238L18.5977 19.895V14.2144Z",fill:"#D90751"})),Vl||(Vl=o.a.createElement("path",{d:"M18.5718 8.6555L18.5974 20.1186L13.7422 17.1353V0L18.5721 8.6555H18.5718Z",fill:"#FAB718"})),Wl||(Wl=o.a.createElement("path",{d:"M32.4255 11.4234L23.136 11.4321L18.5718 8.6555L13.7422 0L32.4252 11.4234H32.4255Z",fill:"#ED6F26"})),Gl||(Gl=o.a.createElement("path",{d:"M18.5974 31.3358V25.7743L13.7422 22.8477L13.7449 40L18.5974 31.3358Z",fill:"#63B22F"})),Ul||(Ul=o.a.createElement("path",{d:"M23.1262 28.872L4.84357 17.6582L0 9L32.407 28.8606L23.1259 28.872H23.1262Z",fill:"#1487C9"})),Yl||(Yl=o.a.createElement("path",{d:"M13.7461 39.9985L18.598 31.3344L23.1256 28.5777L32.4064 28.5664L13.7461 39.9985Z",fill:"#017F36"})),zl||(zl=o.a.createElement("path",{d:"M0.0078125 31.2876L13.7852 22.8478L9.1533 20.0059L4.84605 22.6465L0.0078125 31.2876Z",fill:"#984995"})))},Ql=o.a.forwardRef((e,t)=>o.a.createElement(Jl,ql({svgRef:t},e)));a.p;var Kl=a(475),Xl=a.n(Kl);const $l=e=>{let{bankName:t,logoURL:a,onBankClick:n,schema:l}=e;return o.a.createElement("div",{className:Xl.a.item,onClick:()=>n(l)},o.a.createElement("img",{src:a,alt:t,className:Xl.a.image}),o.a.createElement("p",{className:Xl.a.name},t))},eo=e=>{let{ordered:t,onClick:a,className:n="",onBankClick:l}=e;return o.a.createElement("div",{className:"".concat(Xl.a.container," ").concat(n)},o.a.createElement("p",{className:Xl.a.title},"Выберите банк:"),o.a.createElement(to,{onClick:a,className:Xl.a.mobile}),o.a.createElement("div",{className:Xl.a.items},t.map(e=>o.a.createElement($l,Object.assign({key:e.schema},e,{onBankClick:l})))),o.a.createElement(to,{onClick:a,className:Xl.a.desktop}))},to=e=>{let{onClick:t,className:a=""}=e;return o.a.createElement("div",{className:"".concat(Xl.a.item," ").concat(a),onClick:t},o.a.createElement("div",{className:Xl.a.findBankPlug},o.a.createElement("span",{className:Xl.a.findBankPlugEllipsis},"...")),o.a.createElement("p",{className:Xl.a.name},"Найти свой банк"))};var ao=a(476),no=a.n(ao);const lo=e=>{let{rest:t,className:a="",onClick:n}=e;const[c,r]=Object(l.useState)(""),i=t.filter(e=>e.bankName.toLowerCase().includes(c.toLowerCase()));return o.a.createElement("div",{className:"".concat(no.a.container," ").concat(a)},o.a.createElement("p",{className:no.a.title},"Выберите банк для получения"),o.a.createElement(An.a,{name:"bank",placeholder:"Начните вводить название",value:c,onChange:e=>r(e.target.value),className:no.a.inputField}),o.a.createElement("p",{className:no.a.underTitle},"Выберите вариант или продолжайте ввод:"),o.a.createElement("div",{className:no.a.items},i.map(e=>o.a.createElement("p",{key:e.schema,className:no.a.item,onClick:()=>n(e.schema)},e.bankName))))},oo=(e,t)=>{const a=e=>{try{return JSON.stringify(e)}catch(t){return t instanceof Error?"Ошибка сериализации: ".concat(t.message,". Проблемный объект: ").concat(n(e)):"Ошибка сериализации: Неизвестная ошибка. Проблемный объект: ".concat(n(e))}},n=e=>{try{var t,a,n,l;return JSON.stringify({message:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:"Нет сообщения",name:null!==(a=null==e?void 0:e.name)&&void 0!==a?a:"Нет имени",stack:null!==(n=null==e?void 0:e.stack)&&void 0!==n?n:"Нет стека",type:typeof e,length:null===(l=JSON.stringify(e))||void 0===l?void 0:l.length})}catch(e){return"Не удалось инспектировать объект: ".concat(e instanceof Error?e.message:"Неизвестная ошибка")}};try{var l,o,c;return{endpoint:t,status:null!==(l=null==e||null===(o=e.response)||void 0===o?void 0:o.status)&&void 0!==l?l:null,payload:a(e),errorMessage:null!==(c=null==e?void 0:e.message)&&void 0!==c?c:"Неизвестная ошибка"}}catch(e){return{endpoint:t,status:null,payload:"Ошибка при обработке ошибки: ".concat(e instanceof Error?e.message:"Неизвестная ошибка"),errorMessage:"Ошибка при обработке ошибки"}}};var co=a(477),ro=a.n(co);const io=["bank100000000004","bank100000000273","bank100000000008","bank100000000111","bank110000000005","bank100000000007","bank100000000001","bank100000000018","bank100000000150","bank100000000017"],so=async()=>{const e=await fetch("https://qr.nspk.ru/proxyapp/c2bmembers.json");if(!e.ok)throw new Error("HTTP error: ".concat(e.status));return await e.json()};var mo,uo,po=()=>{const e=Object(n.o)(),[t,a]=Object(l.useState)(!1),[c,r]=Object(l.useState)(!0),[i,s]=Object(l.useState)([]),[d,u]=Object(l.useState)(!1),p=t=>{u(!0),Object(Wt.b)({bankSchema:"bank110000000005"===t?"bank100000000005":t}).then(a=>{if(!a)throw new Error("Данные не найдены");localStorage.setItem("paymentData",JSON.stringify({incoming:a.paymentDataIncomingId,outgoing:a.paymentDataOutgoingId})),localStorage.setItem("paymentDataId",String(a.paymentDataIncomingId)),e("/profile/add-contract?step=".concat((null==a?void 0:a.needSaveScan)?"signature":"selfie","&bankSchema=").concat(t))}).catch(e=>{const t=oo(e,"loan/internal/payment-data");Object(h.b)(t).then(),alert(e)}).finally(()=>u(!1))};Object(l.useEffect)(()=>{so().then(e=>s((null==e?void 0:e.dictionary)||[])).catch(e=>alert(e)).finally(()=>{r(!1)})},[]);const C=(e=>{const t=new Map(e.map(e=>[e.schema,e]));return io.map(e=>t.get(e)).filter(e=>Boolean(e))})(i);return o.a.createElement("div",{className:ro.a.container},d&&o.a.createElement("div",{className:ro.a.loaderContainer},o.a.createElement(m.a,{text:"Проверка данных",className:ro.a.loaderBlock})),c?o.a.createElement(m.a,null):o.a.createElement(jl,{className:ro.a.parent,mobileTitle:t?"Выберите банк":"Выберите способ",leftBlockContent:o.a.createElement(o.a.Fragment,null,t?o.a.createElement(lo,{onClick:p,rest:i,className:ro.a.mobile}):o.a.createElement(o.a.Fragment,null,o.a.createElement(xl,{onClick:()=>e("/profile/sbp"),isDisabled:!1,isSelected:!0,icon:Ql},"Система быстрых платежей"),o.a.createElement(eo,{ordered:C,onClick:()=>a(!0),className:ro.a.mobile,onBankClick:p}
1))),rightBlockContent:t?o.a.createElement(lo,{onClick:p,rest:i,className:ro.a.desktop}):o.a.createElement(eo,{onBankClick:p,ordered:C,onClick:()=>a(!0),className:ro.a.desktop}),onClick:()=>{t?a(!1):(e(-1),localStorage.setItem("obtainingNoRedirect","true"))}}))},Co=a(478),_o=a.n(Co);function go(){return(go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}const ho=e=>{let{svgRef:t,title:a,...n}=e;return o.a.createElement("svg",go({viewBox:"0 0 37 25",fill:"none",ref:t},n),a?o.a.createElement("title",null,a):null,mo||(mo=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.8668 0H3.24436C2.38436 0.00150219 1.55998 0.346165 0.951873 0.958529C0.343761 1.57089 0.00149176 2.40103 0 3.26705V21.733C0.00149176 22.599 0.343761 23.4291 0.951873 24.0415C1.55998 24.6538 2.38436 24.9985 3.24436 25H32.8668C33.7268 24.9985 34.5511 24.6538 35.1592 24.0415C35.7673 23.4291 36.1096 22.599 36.1111 21.733V3.26705C36.1096 2.40103 35.7673 1.57089 35.1592 0.958529C34.5511 0.346165 33.7268 0.00150219 32.8668 0Z",fill:"#1C2A40"})),uo||(uo=o.a.createElement("path",{d:"M19.1704 7.17383V11.8708H23.6584V13.3558H19.1704V18.0858H17.5754V13.3558H13.1094V11.8708H17.5754V7.17383H19.1704Z",fill:"#FEFEFE"})))},Eo=o.a.forwardRef((e,t)=>o.a.createElement(ho,go({svgRef:t},e)));var vo;a.p;function bo(){return(bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}const fo=e=>{let{svgRef:t,title:a,...n}=e;return o.a.createElement("svg",bo({width:57,height:40,viewBox:"0 0 57 40",fill:"none",ref:t},n),a?o.a.createElement("title",null,a):null,vo||(vo=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M51.27 0.580078H5.17041C3.84916 0.595654 2.58618 1.1272 1.65186 2.06152C0.717529 2.99585 0.185986 4.25883 0.17041 5.58008V34.1201C0.185986 35.4414 0.717529 36.7043 1.65186 37.6387C2.58618 38.573 3.84916 39.1045 5.17041 39.1201H51.27C52.5913 39.1045 53.8542 38.573 54.7886 37.6387C55.7229 36.7043 56.2544 35.4414 56.27 34.1201V5.58008C56.2544 4.25883 55.7229 2.99585 54.7886 2.06152C53.8542 1.1272 52.5913 0.595654 51.27 0.580078ZM17.6802 15.9502C17.6802 17.0111 17.2584 18.0282 16.5083 18.7783C15.7582 19.5285 14.741 19.9502 13.6802 19.9502H11.0503C9.98943 19.9502 8.97134 19.5285 8.22119 18.7783C7.47105 18.0282 7.05029 17.0111 7.05029 15.9502V13.3203C7.05029 12.2594 7.47105 11.2414 8.22119 10.4912C8.97134 9.74107 9.98943 9.32031 11.0503 9.32031H13.6802C14.741 9.32031 15.7582 9.74107 16.5083 10.4912C17.2584 11.2414 17.6802 12.2594 17.6802 13.3203V15.9502ZM40.2603 24.9502C39.8644 24.9505 39.4803 24.8166 39.1704 24.5703C38.8047 24.281 38.5685 23.8576 38.5142 23.3945C38.4598 22.9314 38.5917 22.4658 38.8804 22.0996C39.3687 21.4819 39.6331 20.717 39.6304 19.9297C39.6331 19.1423 39.3687 18.3774 38.8804 17.7598C38.5917 17.3936 38.4598 16.9279 38.5142 16.4648C38.5685 16.0017 38.8047 15.5794 39.1704 15.29C39.5366 15.0013 40.0022 14.8695 40.4653 14.9238C40.9284 14.9782 41.3508 15.2144 41.6401 15.5801C42.6162 16.8202 43.1476 18.3516 43.1499 19.9297C43.1476 21.5078 42.6162 23.0401 41.6401 24.2803C41.4761 24.4894 41.266 24.6583 41.0269 24.7744C40.7877 24.8905 40.5261 24.9507 40.2603 24.9502ZM45.9302 28.7305C45.7651 28.9141 45.5632 29.0602 45.3374 29.1602C45.1116 29.2601 44.8665 29.3108 44.6196 29.3096C44.1874 29.3092 43.7708 29.1497 43.4497 28.8604C43.1045 28.5482 42.8969 28.1113 42.8726 27.6465C42.8482 27.1817 43.0092 26.7265 43.3198 26.3799C44.9115 24.6087 45.7911 22.311 45.7896 19.9297C45.7911 17.5484 44.9115 15.2516 43.3198 13.4805C43.0092 13.1339 42.8482 12.6777 42.8726 12.2129C42.8969 11.7481 43.1045 11.3122 43.4497 11C43.7963 10.6894 44.2515 10.5284 44.7163 10.5527C45.1811 10.5771 45.618 10.7847 45.9302 11.1299C48.0997 13.5436 49.3002 16.6744 49.3003 19.9199C49.2952 23.1585 48.0951 26.2818 45.9302 28.6904V28.7305Z",fill:"#1C2A40"})))},Lo=o.a.forwardRef((e,t)=>
1o.a.createElement(fo,bo({svgRef:t},e)));a.p;const ko=e=>{let{cards:t,onNewCardClick:a,handleGetPaymentCardData:n,selectedCardId:l,handleSbpClick:c,newCardTitle:r}=e;const[i,s]=o.a.useState(!1);return o.a.createElement("div",{className:_o.a.cardSelector},c&&o.a.createElement(xl,{onClick:c,isDisabled:!1,isSelected:!1,icon:Ql},"Система быстрых платежей"),t.map(e=>o.a.createElement(xl,{onClick:()=>null==n?void 0:n(e.id),key:e.id,isDisabled:e.isDisabled,isSelected:l===e.id,icon:Lo},o.a.createElement("div",{className:_o.a.topBlock},o.a.createElement("span",null,"Банковская карта"),o.a.createElement("span",null,"·"),o.a.createElement("span",null,e.lastFour)),o.a.createElement("div",{className:_o.a.bottomBlock},e.expDateString))),o.a.createElement(xl,{onClick:()=>{i||(s(!0),a&&a().finally(()=>{s(!1)}))},isDisabled:!a,isSelected:!1,isLoading:i,icon:Eo},r))};var So=a(479),No=a.n(So);const Bo=e=>{let{cards:t,onNewCardClick:a,selectedCardId:n,handleSbpClick:l,handleGetPaymentCardData:c,backHandler:r,newCardTitle:i,rightBlockTitle:s,title:d="",leftBlockAdditionalContent:m}=e;return o.a.createElement(jl,{leftBlockContent:o.a.createElement(o.a.Fragment,null,o.a.createElement(ko,{onNewCardClick:a,handleGetPaymentCardData:c,selectedCardId:n,cards:t,handleSbpClick:l,newCardTitle:i}),m),rightBlockContent:o.a.createElement("div",{className:No.a.message},s),rightBlockAdditionalStyles:No.a.rightBlock,onClick:r,mobileTitle:d})};var yo=a(480),Oo=a.n(yo);var Mo=()=>{const[e,t]=Object(l.useState)(!0),a=Object(n.o)(),{id:c}=Object(n.q)(),[r]=Object(Z.d)(),[i,s]=Object(l.useState)(null),[d,p]=Object(l.useState)(0),C=+(r.get("amount")||0),_=+(r.get("totalAmount")||0),g=r.get("commission"),E=g?+g:null,v=r.get("type"),b=v===u.f.PROLONGATION,f=r.get("paymentType"),L=f?Object(ol.a)(f.replace(/_/g," ").toLowerCase()):"",k=C===(null==i?void 0:i.nextPaymentAmount);Object(l.useLayoutEffect)(()=>{Promise.allSettled([Object(h.y)({id:c}),Object(h.z)({id:c})]).then(e=>{let[t,a]=e;if("fulfilled"===t.status){const{result:e}=t.value;s({...e.data})}if("fulfilled"===a.status){const{result:e}=a.value,t=e.data.rows.find(e=>e.status===u.I.NEAREST||e.status===u.I.EXPIRED);p(null==t?void 0:t.percent)}}).finally(()=>t(!1))},[]);const S=async e=>{var t,n,l,o,r,s,d;let{amountPayment:m,applicationChangeTypeCurrent:p,paymentDataType:C}=e;localStorage.setItem(u.n,(E||0).toString()),localStorage.setItem(u.ab,c||"");const _=p===u.f.PROLONGATION,g=p===u.f.PARTIALLY_EARLY,v=L||(_?"Changing prolongation":g&&m>i.nextPaymentAmount?"Reduce payment":"Scheduled"),b=window.location.origin,k=await Object(h.j)({id:c,paymentType:v,amount:m,prolongation:_,commissions:E,paymentDataType:C,redirectFailUrl:"".concat(b,"/profile/contract?status=${status}&error_code=${error_code}"),redirectSuccessUrl:"".concat(b,"/profile/contract?status=${status}")}),S=null==k||null===(t=k.result)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.paymentSystem,N=null==k||null===(l=k.result)||void 0===l||null===(o=l.data)||void 0===o?void 0:o.redirectUrl,B=null==k||null===(r=k.result)||void 0===r||null===(s=r.data)||void 0===s?void 0:s.paynetOrderId;if(await localStorage.setItem("paynetOrderId","".concat(+(B||0))),localStorage.setItem("paymentData",JSON.stringify(null==k||null===(d=k.result)||void 0===d?void 0:d.paymentData)),localStorage.setItem("direction","OUTGOING"),"SBC"===S){if(f&&localStorage.setItem(u.J,c||""),C&&Be.isMobile)return void(window.location.href=N);a("/profile/new_cart?url=".concat(encodeURIComponent(N)).concat(C?"&paymentDataType=".concat(C):"","&redirectUrl=contract?status=approved").concat(_?"_type=".concat(u.f.PROLONGATION):"","&errorRedirectUrl=contract?status=declined").concat(_?"_type=".concat(u.f.PROLONGATION):""))}},N=async e=>{try{await S({amountPayment:C,paymentDataType:e})}catch(e){alert("Произошла ошибка. Повторите попытку позже.")}};if(e)return o.a.createElement("div",{className:Oo.a.container},o.a.createElement(m.a,{fullHeight:!0}));const B=e=>v?b?(async e=>{await S({amountPayment:d,applicationChangeTypeCurrent:u.f.PROLONGATION,paymentDataType:e})})(e):(async e=>{if(k)await N(e);else try{await S({amountPayment:C,applicationChangeTypeCurrent:u.f.PARTIALLY_EARLY,paymentDataType:e})}catch(e){alert("Произошла ошибка. Повторите попытку позже.")}})(e):N(e);return o.a.createElement("div",{className:Oo.a.container},o.a.createElement(Bo,{title:"Способ оплаты",cards:[],handleSbpClick:()=>B("SBP"),selectedCardId:"",backHandler:()=>a(-1),onNewCardClick:B,handleGetPaymentCardData:void 0,newCardTitle:"Оплатить картой",rightBlockTitle:o.a.createElement(o.a.Fragment,null,o.a.createElement("p",null,"Выберите способ возврата средств по вашему Договору."),o.a.createElement("p",{className:Oo.a.lowerRightBlockTitle},"Итого к оплате: ",o.a.createElement("b",null,Object(u.nb)(_)," Р")))}))},Po=a(481),Io=a.n(Po);var Ao=()=>o.a.createElement("div",{className:Io.a.container},o.a.createElement("div",{className:Io.a.innerContainer},o.a.createElement("div",{className:Io.a.titleChevronBlock},o.a.createElement(be.b,{link:"/profile/settings/services",onClick:()=>{},className:Io.a.chevronBlock},o.a.createElement(Ze.a,{className:Io.a.chevron,height:7,width:11})),o.a.createElement("p",{className:Io.a.title},"Страхование жизни")),o.a.createElement("p",{className:Io.a.description},"Здесь вы можете оформить дополнительную услугу по страхованию жизни и здоровья, Ð
1ºÐ¾Ñ‚орая будет полезна в самых различных ситуациях.",o.a.createElement("br",null)," Вы можете оформить услугу вне зависимости от наличия активного займа в сервисе Бюджет. Услуга оплачивается одним платежом. Если вы передумаете, то в течение 30 дней сможете отказаться от услуги и вернуть деньги."),o.a.createElement("div",{className:Io.a.buttonsBlock},o.a.createElement(be.b,{link:"/profile/settings/services",onClick:()=>{},className:Io.a.button},"Назад"),o.a.createElement(be.b,{link:"/profile/add-contract?step=obtaining&service=lifeInsurance",onClick:()=>{localStorage.setItem("obtainingNoRedirect","true")},className:Io.a.activeButton},"Оформить"))));var wo=()=>o.a.createElement("div",{className:xa.a.container,style:{padding:0,justifyContent:"center"}},o.a.createElement(Ra,{advDefaultOpen:!1,title:"Обработка транзакции",description:"Перевод средств обычно занимает\nот нескольких секунд до нескольких минут."})),Do=a(482),To=a.n(Do),jo=a(483),Ro=a.n(jo);var Fo=()=>{const[e,t]=Object(l.useState)(!1);return o.a.createElement("div",{className:Ro.a.container},o.a.createElement("div",{className:Ro.a.innerBlock},o.a.createElement("img",{src:To.a,alt:"Внимание",className:Ro.a.img}),o.a.createElement("p",{className:Ro.a.text},"К сожалению, по техническим причинам мы времено ограничили выдачу займов.",o.a.createElement("br",null),o.a.createElement("br",null)," Перейдите на сайт партнера с сохранением лимитов!")),o.a.createElement(be.b,{className:Ro.a.button,isLoading:e,status:be.a.NEW_PINK,link:"/profile/widget",onClick:()=>{}},o.a.createElement("span",{className:Ro.a.buttonText},"Перейти на сайт партнера"),o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},o.a.createElement("path",{d:"M15.0066 7.07405C15.0066 7.62584 14.7874 8.15503 14.3972 8.54521C14.007 8.93539 13.4778 9.15458 12.926 9.15458C12.3742 9.15458 11.845 8.93539 11.4548 8.54521C11.0647 8.15503 10.8455 7.62584 10.8455 7.07405C10.8455 6.52226 11.0647 5.99306 11.4548 5.60289C11.845 5.21271 12.3742 4.99351 12.926 4.99351C13.4778 4.99351 14.007 5.21271 14.3972 5.60289C14.7874 5.99306 15.0066 6.52226 15.0066 7.07405ZM15.0016 12.788C14.9559 14.1103 14.6257 15.4072 14.0337 16.5904C13.4882 17.622 12.6691 18.4834 11.6663 19.0802C10.6635 19.6769 9.51569 19.986 8.34882 19.9734H7.5166V15.3962C7.51288 14.6248 7.2048 13.8861 6.65936 13.3407C6.11391 12.7952 5.3752 12.4872 4.60383 12.4834H0.026631V11.6512C0.0140326 10.4844 0.323062 9.33656 0.919819 8.33375C1.51658 7.33094 2.378 6.51186 3.4096 5.96637C4.59282 5.37433 5.88972 5.04422 7.21201 4.99851C8.42442 3.43248 9.98143 2.16692 11.7622 1.30009C13.5429 0.433251 15.4994 -0.0115453 17.4799 0.000227757C17.8095 -0.00185462 18.1362 0.0611316 18.4413 0.185575C18.7465 0.310019 19.0241 0.493472 19.2582 0.725416C19.4923 0.95736 19.6783 1.23323 19.8056 1.53722C19.9329 1.8412 19.9989 2.16732 19.9999 2.49687C20.014 4.48105 19.5703 6.44175 18.7035 8.2266C17.8366 10.0114 16.5698 11.5724 15.0016 12.788ZM1.76097 10.819H3.64345C4.26149 9.44252 4.98751 8.1171 5.81471 6.85518C5.24016 6.98885 4.68342 7.18997 4.1561 7.45437C3.5219 7.78926 2.97493 8.26802 2.55902 8.8523C2.1431 9.43657 1.86979 10.1101 1.76097 10.819ZM13.1449 14.1853C11.883 15.0125 10.5575 15.7385 9.18103 16.3566V18.239C9.88993 18.1302 10.5635 17.8569 11.1478 17.441C11.732 17.0251 12.2108 16.4781 12.5457 15.8439C12.8101 15.3166 13.0112 14.7599 13.1449 14.1853ZM18.3354 2.47357C18.3294 2.25692 18.239 2.05118 18.0836 1.90011C17.9282 1.74905 17.72 1.66457 17.5032 1.66466C13.209 1.78699 10.3045 3.43228 7.50162 7.34202C6.71945 8.46818 6.03164 9.65702 5.44521 10.8964C6.35392 11.0657 7.1901 11.5061 7.84371 12.1597C8.49732 12.8133 8.93773 13.6494 9.10697 14.5582C10.3464 13.9717 11.5352 13.2839 12.6614 12.5018C16.5678 9.69552 18.2131 6.7911 18.3354 2.47357ZM5.12147 14.8794C5.58649 15.3492 5.84734 15.9835 5.84734 16.6445C5.84734 17.3055 5.58649 17.9398 5.12147 18.4096C4.36665 19.1636 2.10718 19.6288 1.1701 19.7944L0 20L0.205558 18.8299C0.372002 17.8928 0.83638 15.6334 1.59037 14.8786C2.06619 14.4247 2.69854 14.1716 3.35609 14.1717C4.01364 14.1719 4.64587 14.4253 5.12147 14.8794ZM4.18772 16.6445C4.18802 16.5352 4.16662 16.4269 4.12476 16.3259C4.08291 16.2249 4.02143 16.1332 3.94388 16.0561C3.78782 15.9001 3.57618 15.8125 3.35551 15.8125C3.13483 15.8125 2.92319 15.9001 2.76713 16.0561C2.44984 16.6289 2.22699 17.2491 2.10718 17.8928C2.75115 17.7725 3.37159 17.5494 3.94472 17.2321C4.02201 17.155 4.08328 17.0634 4.12499 16.9626C4.1667 16.8617 4.18802 16.7536 4.18772 16.6445Z",fill:"#FEFEFE"}))))},xo=a(319),Zo=(a(484),a(345)),Ho=a.n(Zo),Vo=a(346),Wo=a.n(Vo),Go=a(347),Uo=a.n(Go),Yo=a(485),zo=a.n(Yo),qo=a(569);a(486);Object(c.cn)("Select-Input");const Jo=e=>{let{value:t,placeholder:a,options:n,disabled:l,onChange:c,isError:r,menuPlacement:i}=e;const s={container:e=>({...e,fontSize:"16px"}),control:(e,t)=>({...e,cursor:"pointer",border:r?"0.5px solid #F2466E":"0.5px solid #9db7cb",boxShadow:"none",borderRadius:"6px",borderBottom:r?"0.5px solid #F2466E":"0.5px solid #9db7cb",he
1ight:"34px",overflow:"hidden",backgroundColor:"#FEFEFE",minHeight:"34px","& > div:first-of-type":{padding:"4px 12px"},"&:hover":{borderColor:"#9db7cb",borderBottom:"0.5px solid #9db7cb"}}),singleValue:e=>({...e,color:l?"#7E94A7":"#1C2A40"}),placeholder:e=>({...e,color:"#7E94A7"}),menu:e=>({...e,margin:0,border:"0.5px solid #9db7cb",borderTop:"none",borderRadius:"0px 0px 3px 3px",boxShadow:"none","@media (max-width: 1080px)":{fontSize:"28px"},"@media (max-width: 720px)":{fontSize:"13px"}}),menuList:e=>({...e,maxHeight:"150px",overflowY:"auto"}),option:(e,t)=>({...e,cursor:"pointer",backgroundColor:t.isSelected?"#AFC3D5":"white",color:"#3b424c","&:hover":{color:"#272F3C",backgroundColor:"#AFC3D5"}}),dropdownIndicator:e=>({...e,minHeight:"32px",minWidth:"32px",padding:"0px",backgroundColor:l?"#AFC3D5":"#1C2A40",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"100%","& > svg":{color:"#FFFFFF",width:"20px",height:"20px"},"@media (max-width: 720px)":{minHeight:"16px",minWidth:"16px"}})};return o.a.createElement(qo.a,{value:t,components:{IndicatorSeparator:null},options:n,styles:s,placeholder:a,onChange:c,isDisabled:l,isSearchable:!1,menuPlacement:i})};Jo.defaultProps={placeholder:"Выберите из списка",disabled:!1,onChange:()=>{},isError:!1,value:null,menuPlacement:"auto"};var Qo=Jo,Ko=a(247),Xo=a(306),$o=a(351);const ec="После заполнения поля «Код» подписанный Договор поступит на верификацию данных - в случае их несовпадения договор может быть аннулирован.",tc=e=>{let{contractTemplateAgreed:t,setContractTemplateAgreed:a,bid:n,setBid:c,commission:r,signature:i,onContractTemplatePress:s,onCreateRatingRequestPress:d,onCreateRatingOfferPress:m,className:u,setOpen:p,open:C,amountToPay:_,percentInDay:g,specialConditions:h,bankTitle:E,commissionOptOutAllowed:v,setForbid:b,forbid:f}=e;const[L,k]=Object(l.useState)(!0),[S,N]=Object(l.useState)(!0),[B,y]=Object(l.useState)(!0),O=B&&S&&L&&t&&(!r||n);return o.a.createElement("div",{className:u},o.a.createElement("div",{className:Ea.a.bidGotBlock},o.a.createElement("p",{className:Ea.a.YouGet},E?"Сумма будет зачислена на счёт (".concat(E,"): "):"Сумма будет зачислена на карту: ",o.a.createElement("span",{className:Ea.a.Price},_.toLocaleString("ru-RU",{maximumFractionDigits:2,minimumFractionDigits:2})," ","Р")),g&&h?o.a.createElement("p",{className:Ea.a.BidLow},"Ставка снижена до ",g.toString().replace(".",","),"%"):null),o.a.createElement($o.a,{underContainerClassName:{default:"",active:Ea.a.activeBlock,noActive:""},disabled:i,agreed:O,open:C,setOpen:p,changeAgree:()=>{r&&c(!O),k(!O),N(!O),y(!O),a(!O)}},o.a.createElement("div",{className:Ea.a.flexBlock},o.a.createElement(Xo.a,{bid:t,disabled:i,className:Ea.a.agreementCheckbox,onClick:()=>a(!t)}),o.a.createElement("p",{className:Ea.a.agreementTitle},o.a.createElement("span",{onClick:s,className:Ea.a.lowestText},"Договор займа"))),r?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:Ea.a.flexBlock},o.a.createElement(Xo.a,{bid:n,disabled:i,onClick:()=>c(!n),className:Ea.a.agreementCheckbox}),o.a.createElement("p",{className:Ea.a.agreementTitle},o.a.createElement("span",{onClick:()=>d({commissionSum:r}),className:Ea.a.lowestText},"Заявление")," ",'на получение услуги "Страхование"')),n&&o.a.createElement("p",{className:Ea.a.commonTitle},o.a.createElement("span",{className:Ea.a.agreementTitle},"Стоимость услуги:"," ",o.a.createElement("span",{className:Ea.a.boldClass},null==r?void 0:r.toLocaleString("ru-RU",{maximumFractionDigits:2,minimumFractionDigits:2})," ","Р")),o.a.createElement("span",{className:Ea.a.miniTitle},"Сумма займа будет увеличена на стоимость всех выбранных дополнительных услуг."))):null,v?o.a.createElement("div",{className:Ea.a.flexBlock},o.a.createElement(Xo.a,{bid:f,disabled:i,onClick:()=>b(!f),className:Ea.a.agreementCheckbox}),o.a.createElement("p",{className:Ea.a.agreementTitle},"Установить запрет на уступку прав требований")):null))};var ac=e=>{var t;let{smsError:a="",setSmsError:n,onPaymentMethodPreviousPress:c,takeLoan:r,setContractTemplateLoading:i,onCreateRatingRequestPress:s,onCreateRatingOfferPress:d,onContractTemplatePress:m,username:u=""}=e;const p=Object(oe.a)().get("bankSchema"),[C,_]=Object(l.useState)([]),g=(null===(t=C.find(e=>e.schema===p))||void 0===t?void 0:t.bankName)||"",[h,E]=Object(l.useState)(!0),[v,b]=Object(l.useState)({taxAmount:0,amountToPay:0,percentInDay:0,specialConditions:!1,commissionOptOutAllowed:!1,commissionDefaultEnabled:!1}),f=v.taxAmount,[L,k]=Object(l.useState)(!1),[S,N]=Object(l.useState)(!1),[B,y]=Object(l.useState)(!1),[O,M]=Object(l.useState)(!1),[P,I]=Object(l.useState)(!0),A=P,w=async e=>
1{if(u){const t=await tn({phone:u,isFlashCall:e});return n(t||""),t}};return Object(l.useLayoutEffect)(()=>{const e=Number(localStorage.getItem("amount"));if(!e)return;const t=[];p&&t.push(so().then(e=>_((null==e?void 0:e.dictionary)||[])).catch(e=>alert(e)).finally(()=>{k(!1)})),t.push((async e=>await Object(Wt.e)({amount:e,selectedProduct:localStorage.getItem("selectedProduct")}))(e).then(e=>{b(e),y(!1)}).catch(e=>console.log(e))),Promise.allSettled(t).finally(()=>{i(!1)})},[]),o.a.createElement(mn,{isAbleToSign:A,signature:S,onSignature:async()=>{k(!0);await w(!1)||(N(!0),E(!1)),k(!1)},title:"Подпишите договор",loading:L,signatureProps:{smsError:a,setSmsError:n,onPaymentMethodPreviousPress:null,takeLoan:e=>r(e,(null==v?void 0:v.commissionOptOutAllowed)?B:!v.specialConditions,O),username:u,orderCall:w,infoText:null},signatureAdditionalBlock:o.a.createElement(o.a.Fragment,null,S&&o.a.createElement("span",{className:Ea.a.descriptionBottomMobile},ec)),leftTopBlock:o.a.createElement(o.a.Fragment,null,o.a.createElement(tc,{className:Ea.a.accordionDesktop,contractTemplateAgreed:P,
1setContractTemplateAgreed:I,commission:f,bid:B,setBid:y,signature:S,onContractTemplatePress:m,onCreateRatingRequestPress:s,onCreateRatingOfferPress:d,open:h,setOpen:E,amountToPay:v.amountToPay,percentInDay:v.percentInDay,specialConditions:v.specialConditions,bankTitle:g,commissionOptOutAllowed:!!(null==v?void 0:v.commissionOptOutAllowed),setForbid:M,forbid:O}),o.a.createElement(tc,{className:"".concat(Ea.a.accordionMobile," ").concat(S?Ea.a.hiddenPlugAcc:Ea.a.visiblePlugAcc),contractTemplateAgreed:P,setContractTemplateAgreed:I,commission:f,bid:B,setBid:y,signature:S,onContractTemplatePress:m,onCreateRatingRequestPress:s,onCreateRatingOfferPress:d,open:h,setOpen:E,amountToPay:v.amountToPay,percentInDay:v.percentInDay,specialConditions:v.specialConditions,bankTitle:g,commissionOptOutAllowed:!!(null==v?void 0:v.commissionOptOutAllowed),setForbid:M,forbid:O}),S&&o.a.createElement("span",{className:Ea.a.descriptionBottomDesktop},ec)),onGoBack:c})},nc=a(506),lc=a.n(nc),oc=function(e){return e.underfunded="564036",e.authorizationFailed="564016",e.operationDenied="564090",e.incorrectData="922291",e.passwordHasExpired="564079",e.hasLimit="564039",e.testError="999002",e}(oc||{});var cc=e=>{let{handleClickButtonReject:t}=e;const a=Object(g.b)(),c=Object(n.m)(),{title:r,message:s}=Object(l.useMemo)(()=>{const e=new URL(window.location).searchParams.get("error_code"),t={title:"Не удалось осуществить платеж",message:"При отправке средств возникла проблема - пожалуйста, попробуйте еще раз, или свяжитесь с нашей службой технической поддержки."};if(!e)return t;switch(e){case oc.underfunded:return{title:"Недостаточно средств",message:"Пополните ваш счет и попробуйте еще раз"};case oc.authorizationFailed:return{title:"3ds авторизация не пройдена",message:"Повторите попытку еще раз"};case oc.operationDenied:case oc.incorrectData:return{title:"Операция отклонена",message:"Проверьте введенные данные, достаточность средств на карте и повторите операцию"};case oc.passwordHasExpired:return{title:"Операция отклонена",message:"Возможно время ожидания пароля истекло,  повторите операцию"};case oc.hasLimit:return{title:"Операция отклонена",message:"Возможно у вас установлен лимит по карте"};case oc.testError:return{title:"3ds авторизация не пройдена",message:"Проверьте введенные данные, достаточность средств на карте и повторите операцию"};default:return t}},[]);return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:Ea.a.ContractStatusContainer},o.a.createElement("img",{src:lc.a,alt:"Платеж не совершен"}),o.a.createElement("p",{className:Ea.a.ContractStatusTitle},r),o.a.createElement("p",{className:Ea.a.ContractStatusDescription},s)),o.a.createElement("div",{className:"ComponentSelectPaymentMethod-SelectMethodActions"},o.a.createElement("div",null),o.a.createElement("div",{className:"ComponentSelectPaymentMethod-SelectMethodRightActionsBottom"},o.a.createElement(be.b,{onClick:()=>{a(Object(i.e)()),t();new URLSearchParams(c.search).delete("status")},status:be.a.ACTIVED,className:""},"Выбрать способ оплаты"))))},rc=a(352),ic=a.n(rc),sc=a(241),dc=a(508),mc=a.n(dc),uc=a(509),pc=a.n(uc),Cc=a(510),_c=a.n(Cc),gc=a(353),hc=a.n(gc),Ec=a(354);var vc=e=>{let{image:t,load:a,setLoad:n,onChange:c,deleteImg:r,frontCamera:i=!1,setCameraPermission:s,setIsOpenPhotoDialog:d,cameraPermission:p,isOpenPhotoDialog:C,openPhotoDialog:_,isCameraGranted:g,photoType:h}=e;const[E,v]=Object(l.useState)(!1),b=Object(l.useRef)(null),f=e=>{d(e)},L=e=>{s(e),f(!1)};Object(l.useEffect)(()=>((async()=>{try{(await navigator.mediaDevices.getUserMedia({video:!0}
1)).getTracks().forEach(e=>e.stop()),L(u.k.GRANTED)}catch(e){L(u.k.DENIED)}})(),()=>{void 0}),[]),Object(l.useEffect)(()=>{if(E)return;let e;return e=setInterval(()=>{var t;const a=null===(t=b.current)||void 0===t?void 0:t.video;a&&4===a.readyState&&(v(!0),clearInterval(e))},100),()=>{clearInterval(e)}},[E]);const k={facingMode:i?"user":"environment",width:{ideal:1280},height:{ideal:720},frameRate:{ideal:25,max:30}},S=()=>{f(!1)};const N=p===u.k.DENIED,B=o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:ic.a.responsiveContainer},o.a.createElement(hc.a,{className:ic.a.video,ref:b,audio:!1,screenshotFormat:"image/jpeg",videoConstraints:k,screenshotQuality:.5,forceScreenshotSourceSize:!0})),o.a.createElement("div",{className:ic.a.controls},o.a.createElement("div",{className:ic.a.controlContainer},Be.isMobile?o.a.createElement(o.a.Fragment,null,o.a.createElement(w.a,{className:ic.a.controlBtn,shape:"circle",onClick:S},o.a.createElement(Ec.a,null)),o.a.createElement("div",{className:ic.a.controlText},"Назад")):o.a.createElement("div",null)),o.a.createElement("div",{onClick:E?e=>{e.preventDefault(),e.stopPropagation(),n(!0);const t=b.current.getScreenshot();fetch(t).then(e=>e.blob()).then(e=>{const t=new File([e],"File name",{type:"image/jpeg"});c(t),S()})}:void 0,className:"".concat(ic.a.controlContainer," ").concat(ic.a.controlContainerScreenshot," ").concat("string"==typeof t&&(null==t?void 0:t.length)&&ic.a.controlContainerScreenshotActive," ").concat(E?"":ic.a.buttonDisabled)},o.a.createElement("button",{className:"".concat(ic.a.screenshot," ").concat(E?"":ic.a.buttonDisabled),title:"Сделать снимок"}),o.a.createElement("div",{className:ic.a.controlText},"Сделать снимок")),o.a.createElement("div",{className:ic.a.controlContainer})));return a?o.a.createElement("div",{className:"".concat(ic.a.loaderBlock," ").concat(Be.isIOS?ic.a.loaderIos:ic.a.loaderNonIos)},o.a.createElement(m.a,{fullHeight:!0})):o.a.createElement("div",{className:ic.a.card},o.a.createElement("div",{className:"".concat(ic.a.content)},o.a.createElement("input",{type:"file",className:ic.a.input,id:"CardDocument",onChange:async function(e){var t;const{blobForProfile:a}=await Object(sc.a)(null==e||null===(t=e.target)||void 0===t?void 0:t.files[0],"Отказ от онлайн фото");c(a),S()},accept:"image/*"}),!(null==t?void 0:t.length)&&o.a.createElement("div",{onClick:()=>N?CardDocument.click():_(),className:"".concat(ic.a.block," ").concat(Be.isIOS?ic.a.heightIos:ic.a.heightNoIos)},o.a.createElement("div",{className:ic.a.noImageBlock},o.a.createElement("div",{className:ic.a.centerBlock},o.a.createElement("p",{className:ic.a.centerTitle},"Разворот паспорта"),o.a.createElement("img",{className:ic.a.passportImg,src:_c.a,alt:"Passport"})),h===u.M.PASSPORT_CARD&&o.a.createElement(o.a.Fragment,null,o.a.createElement("img",{className:ic.a.plusImg,src:mc.a,alt:"Plus"}),o.a.createElement("div",{className:ic.a.centerBlock},o.a.createElement("p",{className:ic.a.centerTitle},"Банковская карта"),o.a.createElement("img",{className:ic.a.cartImg,src:pc.a,alt:"Cart"}))))),(null==t?void 0:t.length)&&o.a.createElement("div",{className:"".concat(ic.a.blockImage," ").concat(ic.a.borderSuccess," ").concat(Be.isIOS?ic.a.loaderIos:ic.a.loaderNonIos)},o.a.createElement("div",{className:ic.a.readyImageBlock},o.a.createElement("img",{className:ic.a.readyImage,src:t,alt:"title"})),o.a.createElement("div",{className:ic.a.changePhotoBlock,onClick:()=>{v(!1),r(),CardDocument.value="",N||f(!0),g||CardDocument.click()}},o.a.createElement("div",{className:ic.a.customButton}),o.a.createElement("p",{className:ic.a.customTitle},"Заменить фото"))),u.k.GRANTED===p&&C&&o.a.createElement("div",{className:ic.a.photoBlock},B)))};var bc=a(511),fc=a.n(bc);var Lc=e=>{let{onBackStep:t,onNextStep:a,onPhotoChange:n,frontCamera:c,isRegister:r,header:i,title:s,loadDescription:d,description:m,photoType:p}=e;const[C,_]=Object(l.useState)(null),[E,v]=Object(l.useState)(!1),[b,f]=Object(l.useState)(!1),[L,k]=Object(l.useState)(u.k.UNKNOWN),[S,N]=o.a.useState(!1),B=Object(g.c)(e=>{let{auth:t}=e;return t.username}),y=(()=>{const e=(Date.now().toString(16)+crypto.randomUUID().replace(/-/g,"")).slice(0,32).padEnd(32,"0");return[e.slice(0,8),e.slice(8,12),e.slice(12,16),e.slice(16,20),e.slice(20,32)].join("-")})(),O=L===u.k.GRANTED||L===u.k.PROPMPT,M=Object(l.useCallback)(async e=>{if(e){const a=new FormData;if(O)_(URL.createObjectURL(e)),a.append("file",e,y);else{const{blob:t,urlForProfile:n}=await Object(sc.a)(e,"Отказ от онлайн фото");_(n),a.append("file",t,y)}a.append("fieldName",p===u.M.PASSPORT?u.eb.DOCUMENT:u.eb.PASSPORT_AND_CARD),v(!0),N(!0);try{var t;const{result:e,error:l,status:o}=await Object(h.Q)(a);if(l){const e=function(e){var t,a,n,l;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return 413===Number(o)?"Размер фотографии превышает допустимые пределы для загрузки, по-пробуйте снова. [".concat(o,"]"):(null==e||null===(t=e.response)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.message)?null==e||null===(c=e.response)||void 0===c||null===(r=c.data)||void 0===r?void 0:r.message:(null==e||null===(n=e.response)||void 0===n||null===(l=n.data)||void 0===l?void 0:l.error)?null==e||null===(i=e.response)||void 0===i||null===(s=i.data)||void 0===s?void 0:s.error:"Что-то пошло Ð
1½Ðµ так, по-пробуйте снова. [".concat(null==e?void 0:e.response.status,"]");var c,r,i,s}(l,o);throw Ba.toast.error(e),l||new Error(e)}if(!(null==e||null===(t=e.data)||void 0===t?void 0:t.fileId))throw new Error("saveFile returned empty fileId");await n(e.data.fileId)}catch(e){const t=oo(e,"files/save");await Object(h.S)({eventName:t.endpoint,phone:B,error:t.errorMessage,userAgent:window.navigator.userAgent}),await Object(h.b)(t)}finally{v(!1),N(!1)}}},[O,y,B,n]);const P=async()=>{try{(await navigator.mediaDevices.getUserMedia({video:!0})).getTracks().forEach(e=>e.stop()),await k(u.k.GRANTED),f(!0)}catch(e){await k(u.k.DENIED)}},I=b||S;return o.a.createElement("div",{className:fc.a.container},o.a.createElement("p",{className:fc.a.title},i),o.a.createElement("div",{className:r?fc.a.obtainingMethodDesktopSelfie:fc.a.obtainingMethodDesktop},o.a.createElement("div",{className:fc.a.PhotoRightBlock},o.a.createElement("div",{className:r?fc.a.PhotoInfoBlockRegister:fc.a.PhotoInfoBlock},o.a.createElement("p",{className:fc.a.InfoTitle},s),o.a.createElement("p",{className:r?fc.a.InfoDescriptionSelfie:fc.a.InfoDescription},O?m:d)),o.a.createElement("div",{className:Ea.a.SelectPhotoMethodActions},o.a.createElement(be.b,{onClick:t,status:be.a.DEFAULT},"Назад"),o.a.createElement(be.b,{onClick:()=>{I||(!O||(null==C?void 0:C.length)?O||(null==C?void 0:C.length)?a():CardDocument&&CardDocument.click():P())},status:I?be.a.DISABLED:be.a.ACTIVED},(null==C?void 0:C.length)&&!b?"Далее":O?"Сделать фото":"Загрузить фото"))),o.a.createElement("div",{className:"".concat(fc.a.selfieBlock," ").concat(S?"":fc.a.photoIsLoaded)},o.a.createElement("div",{className:fc.a.rightWrapper},o.a.createElement("input",{type:"file",className:ic.a.input,id:"CardLoadPhotoImageInput",onChange:function(e){var t;e.stopPropagation(),M(null==e||null===(t=e.target)||void 0===t?void 0:t.files[0])},accept:"image/*",capture:"user"}),o.a.createElement(vc,{image:C,load:E,setLoad:v,onChange:M,deleteImg:()=>{_(null)},frontCamera:c,setCameraPermission:k,setIsOpenPhotoDialog:f,isOpenPhotoDialog:b,cameraPermission:L,openPhotoDialog:P,isCameraGranted:O,photoType:p})))))},kc=a(512),Sc=a.n(kc);var Nc=e=>{let{setChosenStep:t,selectedProduct:a}=e;const l=Object(n.o)(),c=Object(oe.a)().get("bankSchema"),r=Object(g.c)(e=>{let{auth:t}=e;return t.username});const i=c?o.a.createElement(o.a.Fragment,null,"фото, на котором ",o.a.createElement("span",{className:Sc.a.importantText},"где виден ваш основной разворот паспорта"),", чтобы служба безопасности сверила данные.",o.a.createElement("br",null),"Убедитесь, что все цифры и тексты в паспорте хорошо читаются.",o.a.createElement("br",null),o.a.createElement("br",null),"При отсутствии отчетливого общего фото паспорта заявка на заем рассмотрена не будет."):o.a.createElement(o.a.Fragment,null,"общее фото, на котором ",o.a.createElement("span",{className:Sc.a.importantText},"одновременно видны ваша банковская карта и основной разворот паспорта"),", чтобы служба безопасности сверила данные.",o.a.createElement("br",null),o.a.createElement("br",null),"При отсутствии отчетливого общего фото карты и паспорта заявка на заем рассмотрена не будет.");return o.a.createElement(Lc,{onPhotoChange:async function(e){try{const t=await localStorage.getItem("paynetOrderId"),a=await localStorage.getItem("paymentDataId"),{result:n,error:l}=await Object(h.T)(c?{cardScanFileId:e,paynetOrderId:null,paymentDataId:a?+a:null}:{cardScanFileId:e,paynetOrderId:t?+t:null,paymentDataId:null});if(!(null==n?void 0:n.data))throw l||new Error("sendCardPhoto returned empty result.data");localStorage.setItem("paymentData",JSON.stringify(n.data)),localStorage.removeItem("paynetOrderId")}catch(e){const t=oo(e,"payment-data/save-card-scan");await Object(h.S)({eventName:t.endpoint,phone:r,error:t.errorMessage,userAgent:window.navigator.userAgent}),await Object(h.b)(t)}},header:"Проверочное фото",title:c?"Фото паспорта":"Фото карты и паспорта",loadDescription:o.a.createElement(o.a.Fragment,null,"Загрузите ",i),description:o.a.createElement(o.a.Fragment,null,"Сделайте ",i),onNextStep:()=>{"INSTALLMENT"===a.key&&Object(E.a)("go_to_payment_standart"),t(5)},onBackStep:()=>{l("/profile/add-contract?step=product"),t(1)},isRegister:!1,frontCamera:!1,photoType:c?u.M.PASSPORT:u.M.PASSPORT_CARD})},Bc=a(513),yc=a.n(Bc);const Oc=["+79136344412","+79257738373"];var Mc=e=>{let{checkPaymentSystem:t,handleGetPaymentCardData:a,backHandler:c}=e;const r="lifeInsurance"===Object(oe.a)().get("service"),i=Object(g.c)(e=>{let{auth:t}=e;return t.username}),s=Object(n.o)(),[d,u]=Object(l.useState)(!0),[p,C]=Object(l.useState)([]),[_,E]=Object(l.useState)("");if(Object(l.useEffect)(()=>{"true"===localStorage.getItem("obtainingNoRedirect")?localStorage.removeItem("obtainingNoRedirect"):c(),(async()=>{const{result:e}=await Object(h.D)();return e.data.length?e.data:[]})().then(e=>{C(e),E((null==e?void 0:e[0].id)||"")}).finally(()=>u(!1))},[]),d)return o.a.createElement(m.a,null);const v=e=>s("/profile/settings/lifeInsuranceWaiting");return o.a.createElement(Bo,{cards:p,title:"Способ получения",handleSbpClick:r?v:()=>Oc.includes(i)?t(!0):s("/profile/sbp"),selectedCardId:_,backHandler:r?()=>s("/profile/settings/lifeInsurance"):c,onNewCardClick:r?v:t,handleGetPaymentCardData:r?v:async e=>{e&&a&&(E(e),await a(e))},newCardTitle:"Добавить карту",leftBlockAdditionalContent:r?o.a.createElement("p",{className:yc.a.toPayTitleMobile},o.a.createElement("span",null,"Итого к оплате: "),o.a.createElement("span",{className:yc.a.toPayTitleSum}
1,"1 800,00 ₽")):void 0,rightBlockTitle:r?o.a.createElement(o.a.Fragment,null,o.a.createElement("p",null,"Выберите удобный вам способ оплаты страхового полиса."),o.a.createElement("p",{className:yc.a.toPayTitle},o.a.createElement("span",null,"Итого к оплате: "),o.a.createElement("span",{className:yc.a.toPayTitleSum},"1 800,00 ₽"))):"Выберите способ получения средств по вашему Договору."})},Pc=a(45),Ic=a(355),Ac=a.n(Ic);var wc=e=>{let{errorCode:t,setToDefault:a}=e;const n=Object(g.b)(),{title:l,description:c}=t&&(null===u.jb||void 0===u.jb?void 0:u.jb[t])?u.jb[t]:u.jb[111113];return o.a.createElement("div",{className:Ea.a.ContractStatusContainer},o.a.createElement("img",{src:Ac.a,alt:"Не удалось осуществить перевод"}),o.a.createElement("p",{className:Ea.a.ContractStatusTitle},l),o.a.createElement("p",{className:Ea.a.ContractStatusDescription},c),o.a.createElement(be.b,{onClick:()=>{a(),n(Object(i.e)())}},"Выбрать способ получения"))},Dc=a(514),Tc=a.n(Dc);var jc=()=>{const e=Object(n.o)(),t=Object(g.b)();return o.a.createElement("div",{className:Ea.a.ContractStatusContainer},o.a.createElement("div",{className:Ea.a.CongratulationIconContainer},o.a.createElement("img",{src:Tc.a,alt:"Congratulation"})),o.a.createElement("p",{className:Ea.a.CongratulationTitle},"Деньги переведены на карту"),o.a.createElement("p",{className:Ea.a.CongratulationDescription},"Средства успешно перечислены на вашу карту, а договор отправлен на электронную почту."),o.a.createElement(be.b,{onClick:()=>{e("/profile/my-payments"),t(Object(i.e)())}},"Перейти к Расписанию платежей"))},Rc=a(515),Fc=a.n(Rc);var xc=()=>{const e=Object(n.o)();return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:Ea.a.CongratulationContainer},o.a.createElement("div",{className:Ea.a.CongratulationIconContainer},o.a.createElement("img",{src:Fc.a,alt:"gift"})),o.a.createElement("p",{className:Ea.a.CongratulationTitle},"У нас есть подарок для вас!"),o.a.createElement("p",{className:Ea.a.CongratulationDescription},"Благодарим за сотрудничество и предлагаем вам подарок ",o.a.createElement("br",null)," от наших партнеров - скорее переходите к выбору!")),o.a.createElement("div",{className:Ea.a.buttonsWrapper},o.a.createElement(be.b,{onClick:()=>e("/profile/my-payments"),status:be.a.DEFAULT},"Перейти к Расписанию платежей"),o.a.createElement(be.b,{onClick:()=>{window.open("https://zabrat-podarok.ru/")},status:be.a.ACTIVED},"Выбрать подарок")))};function Zc(e,t){const a={};a[e]={value:"".concat(e),label:"".concat(e," Р")};for(let n=e+1e3;n<=t;n+=1e3)a[n]={value:n.toString(),label:"".concat(n," Р")};return a}const Hc=["Максимальная сумма","Срок договора","Условия погашения"],Vc=e=>{const[t,a]=Object(l.useState)({limit:0,maxPeriodCount:0,minPeriodCount:0,termType:"MONTH",specialConditions:!1});Object(l.useEffect)(()=>{if(!(null==e?void 0:e.productType))return;const t=()=>{Object(h.G)({type:null==e?void 0:e.productType}).then(e=>{let{result:t}=e;(null==t?void 0:t.data)&&a(null==t?void 0:t.data)})};t();const n=setInterval(t,1e4);return()=>{clearInterval(n)}},[]);const n=["".concat(t.limit<0?0:Object(u.lb)(t.limit)," руб."),"от ".concat(t.minPeriodCount," до ").concat(Object(Pc.b)({count:t.maxPeriodCount,type:t.termType.toLowerCase()})),"".concat(null==e?void 0:e.text," ").concat(t.specialConditions?"Ставка 0,2%":"")];return o.a.createElement("div",{className:null==e?void 0:e.productClasses},o.a.createElement("img",{src:null==e?void 0:e.icon,alt:null==e?void 0:e.title,className:null==e?void 0:e.imgStyles}),o.a.createElement("p",{className:Ea.a.ProductName},null==e?void 0:e.title),o.a.createElement("div",{className:Ea.a.ProductDescriptionBlock},Hc.map((e,t)=>o.a.createElement("p",{id:t,className:Ea.a.ProductDescription},o.a.createElement("span",null,e,": "),n[t]))),o.a.createElement(be.b,{style:(null==e?void 0:e.changeType)?{backgroundColor:"#1C2A40",width:"200px",fontSize:"15px",height:"32px"}:{fontSize:"15px",height:"32px",marginTop:"10px"},onClick:null==e?void 0:e.onClick,status:be.a.ACTIVED},(null==e?void 0:e.changeType)?"Изменить тип продукта":"В
1ыбрать"))};var Wc=e=>{let{smsError:t,setSmsError:a,chosenStep:n,setChosenStep:c,amount:r,monthCount:s,minMonthCount:d,maxMonthCount:m,limit:p,amountPerMonthAfterComma:C,amountPerMonthBeforeComma:_,productClassesInstall:h,productClassesInfinit:v,productClassesGrace:b,handleClickButtonReject:f,selectedProduct:L,setSelectedProduct:k,onPaymentMethodPreviousPress:S,productForm:N,firstPaymentDate:B,contractStatus:y,amountPerMonth:O,percentOfMonth:M,onContractTemplatePress:P,onCreateRatingRequestPress:I,onCreateRatingOfferPress:A,setShownContractGraphic:w,direction:D,takeLoan:T,setContractTemplateLoading:j,username:R,isContractTemplateLoading:F,handleGetPaymentCardData:x,termType:H,contractId:V,checkPaymentLoading:W,checkPaymentSystem:U,setToDefault:Y,showBlockConditions:z,setShowBlockConditions:q,showConditionsBlock:J}=e;const[Q]=Object(Z.d)(),[K]=Object(l.useState)(Q.get("error_code")),X=[{imgStyles:Ea.a.BeforeSalaryImg,productType:u.P.LOAN_WITH_GRACE_PERIOD.key,title:u.P.LOAN_WITH_GRACE_PERIOD.title,icon:Uo.a,text:"по истечении срока договора по ставке 0,8% в день. При займе на срок до 7 дней - проценты не начисляются!",productClasses:b,onClick:()=>{c(2),k(u.P.LOAN_WITH_GRACE_PERIOD),localStorage.setItem("selectedProduct",u.P.LOAN_WITH_GRACE_PERIOD.key)}},{imgStyles:Ea.a.StandartImg,productType:u.P.INSTALLMENT.key,title:u.P.INSTALLMENT.title,icon:Ho.a,text:"ежемесячно, равными частями, в каждый платеж включена часть основного долга и проценты за пользование.",productClasses:h,onClick:()=>{c(2),k(u.P.INSTALLMENT),localStorage.setItem("selectedProduct",u.P.INSTALLMENT.key),Object(E.a)("choose_standart")}},{imgStyles:Ea.a.OptimalImg,productType:u.P.OPTIMAL.key,title:u.P.OPTIMAL.title,icon:Wo.a,text:"каждые две недели равными частями - в каждый платеж включена часть основного долга и проценты за пользование.",productClasses:v,onClick:()=>{c(2),k(u.P.OPTIMAL),localStorage.setItem("selectedProduct",u.P.OPTIMAL.key)}}],$=Object(g.b)();Object(l.useEffect)(()=>{$(n>1?Object(i.c)():Object(i.e)())},[n]);const ee=Zc(3e3,p),te=Zc(5e3,p),ae=Zc(5e3,p),ne={...X.find(e=>e.title===L.title),onClick:()=>{c(1),q(!0)},changeType:!0},le=!M||!B||!G.a.isEmpty(O),oe=le?be.a.DISABLED:be.a.ACTIVED,ce=oe===be.a.DISABLED?"#AFC3D5":z?"#F66082":"#1C2A40",re=Object(l.useRef)(null),ie=H===u.cb.MONTH?u.G:u.t,se=y===u.p.ACCEPTED||y===u.p.PROCESSED,de=y===u.p.CANCELLED||y===u.p.ERROR_CREDIT;return o.a.createElement(o.a.Fragment,null,1===n&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:Ea.a.SubHeader},"Выберите продукт"),o.a.createElement("div",{className:Ea.a.ProductsContainer},o.a.createElement("div",{ref:re,className:Ea.a.ProductsBlock},X.map((e,t)=>o.a.createElement(Vc,Object.assign({key:t},e)))))),2===n&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:Ea.a.SubHeader},"Определите условия"),o.a.createElement("div",{className:Ea.a.secondBlockWrapper},o.a.createElement(Vc,ne),o.a.createElement("div",{className:Ea.a.ParamsContainer},o.a.createElement("p",{className:Ea.a.ParamsTitle},"Выбор параметров"),o.a.createElement("div",{className:Ea.a.ParamsField},o.a.createElement(Ko.a,{label:"Сумма для получения"},o.a.createElement(Qo,{value:"LOAN_WITH_GRACE_PERIOD"===L.key?ee[r]:"INSTALLMENT"===L.key?te[r]:ae[r],disabled:!z,isError:!!N.errors.amount,options:(me=p,"INSTALLMENT"===L.key&&me>=5e3?Object.values(te).filter(e=>Number(e.value)<=me):"OPTIMAL"===L.key&&me>=5e3?Object.values(ae).filter(e=>Number(e.value)<=me):Object.values(ee).filter(e=>Number(e.value)<=me)),onChange:e=>{let{value:t}=e;N.setValue("amount",t,{shouldValidate:!0}),localStorage.setItem("amount",t)},placeholder:"Выберите сумму"}))),o.a.createElement("div",{className:Ea.a.ParamsField},H&&o.a.createElement(Ko.a,{label:"Срок пользования"},o.a.createElement(Qo,{value:ie[s],disabled:!L||!z,isError:!!N.errors.monthCount,options:Object.values(ie).filter(e=>Number(e.value)>=d&&Number(e.value)<=m),onChange:e=>{let{value:t}=e;localStorage.setItem("monthCount",t),N.setValue("monthCount",t,{shouldValidate:!0})},placeholder:"Выберите срок"}))),o.a.createElement(be.b,{className:Ea.a.CalculateBtn,style:{fontSize:15,height:"32px",backgroundColor:ce,cursor:oe!==be.a.DISABLED?"pointer":"default"},status:oe,onClick:()=>{z?le||J():q(!0)}},z?"Рассчитать условия займа":"Изменить параметры")),z?o.a.createElement("div",{className:Ea.a.PreSuggestionContainer},o.a.createElement("p",{className:Ea.a.PreSuggestionTitle},"Пара кликов ",o.a.createElement("br",null)," до оформления займа"),o.a.createElement("div",{className:Ea.a.PreSuggestionDescriptionContainer},o.a.createElement("p",{className:Ea.a.PreSuggestionDescription},"Укажите желаемую сумму и комфортный срок погашения. Наш сервис рассчитает все условия договора и предложит график платежей.",o.a.createElement("br",null),o.a.createElement("br",null),"Деньги вы сможете получить уже сегодня."),o.a.createElement("img",{src:zo.a,alt:"PreSuggestion"}))):o.a.createElement("div",{className:Ea.a.SuggestionContainer},o.a.createElement("p",{className:Ea.a.SuggestionTitle},"Условия для вас"),o.a.createElement("div",{className:Ea.a.SuggestionCalculationContainer},o.a.createElement("div",{className:Ea.a.SuggestionPaymentContainer},o.a.createElement("p",{className:Ea.a.SuggestionPaymentTitle},"Размер платежа"),o.a.createElement("p",{style:{fontSize:40,lineHeight:"48px"},className:Ea.a.SuggestionPaymentDescription},_,C?",".concat(C):""," ","Р")),o.a.createElement("div",{className:Ea.a.SuggestionPaymentContainer},o.a.createElement("p",{className:Ea.a.SuggestionPaymentTitle},"Первый платеж"),o.a.createElement("p",{style:{fontSize:30,lineHeight:"36px"},className:Ea.a.SuggestionPaymentDescription},B))),o.a.createElement("div",{className:Ea.a.SuggestionActionsContainer},o.a.createElement("p",{className:Ea.a.ClickedText,onClick:()=>w(!0)},"Посмотреть график платежей"),o.a.createElement("p",{onClick:P,className:Ea.a.ClickedText},"Прочитать текст договора"),o.a.createElement(be.b,{disabled:W,style:{width:"100%",fontWeight:"normal",fontSize:15,height:"32px",marginTop:15},onClick:()=>{localStorage.setItem("direction",D),localStorage.setItem("selectedProduct",L.key),localStorage.setItem("obtainingNoRedirect",!0),c(3),q(!0)},status:W?be.a.SMOOTHED:be.a.ACTIVED},W?o.a.createElement(jn.a,{size:"small"}):"Получить деньги"))))),3===n&&o.a.createElement(Mc,{checkPaymentSystem:U,handleGetPaymentCardData:x,backHandler:()=>{c(1),N.reset()}}),4===n&&o.a.createElement(Nc,{setChosenStep:c,isContractTemplateLoading:F,selectedProduct:L}),5===n&&o.a.createElement(o.a.Fragment,null,V?de?o.a.createElement(wc,{errorCode:K||u.mb[y||u.p.CANCELLED],setToDefault:Y}):se?o.a.createElement(jc,null):o.a.createElement(Ra,null):o.a.createElement(ac,{username:R,smsError:t,setSmsError:a,onPaymentMethodPreviousPress:S,takeLoan:T,setContractTemplateLoading:j,onCreateRatingRequestPress:I,onCreateRatingOfferPress:A,onContractTemplatePress:P})),6===n&&o.a.createElement(xc,null),7===n&&o.a.createElement("div",{className:Ea.a.ContractReject},o.a.createElement(wc,{errorCode:K||u.mb[y||u.p.CANCELLED],setToDefault:Y})),8===n&&o.a.createElement(cc,{handleClickButtonReject:f}));var me},Gc=a(76),Uc=a.n(Gc);a(114),a(115),a(116);function Yc(e,t){const a={};a[e]={value:"".concat(e),label:"".concat(e," Р")};for(let n=e+1e3;n<=t;n+=1e3)a[n]={value:n.toString(),label:"".concat(n," Р")};return a}const zc=e=>
1{let{item:t,onHandleItemClick:a,availableProduct:n}=e;const[c,r]=Object(l.useState)({limit:0,maxPeriodCount:0,minPeriodCount:0,termType:"MONTH",specialConditions:!1});Object(l.useEffect)(()=>{if(!t.product.key)return;const e=()=>{Object(h.G)({type:t.product.key}).then(e=>{let{result:t}=e;(null==t?void 0:t.data)&&r(null==t?void 0:t.data)})};e();const a=setInterval(e,1e4);return()=>{clearInterval(a)}},[]);const i=["".concat(c.limit<0?0:Object(u.lb)(c.limit)," руб."),"от ".concat(c.minPeriodCount," до ").concat(Object(Pc.b)({count:c.maxPeriodCount,type:c.termType.toLowerCase()})),"".concat(null==t?void 0:t.text," ").concat(c.specialConditions?"Ставка 0,2%":"")];return o.a.createElement("div",{className:"".concat(t.productClasses," ").concat(1===n.length&&"".concat(Ea.a.marginSingle," slider-single"))},o.a.createElement("p",{className:Ea.a.ProductName},t.product.title),o.a.createElement("img",{src:t.icon,alt:t.product.title,className:t.imgStyles}),o.a.createElement("div",{className:Ea.a.ProductDescriptionBlock},Hc.map((e,t)=>o.a.createElement("p",{key:"".concat(t,"child"),id:t,className:Ea.a.ProductDescription},o.a.createElement("span",null,e,": "),i[t]))),o.a.createElement(be.b,{onClick:()=>a(t.product),status:be.a.ACTIVED},"Выбрать"))};var qc=e=>{let{smsError:t,setSmsError:a,chosenStep:n,setChosenStep:c,amount:r,monthCount:s,minMonthCount:d,maxMonthCount:m,limit:p,amountPerMonthAfterComma:C,amountPerMonthBeforeComma:_,productClassesInstallMobile:h,productClassesInfinitMobile:E,productClassesGraceMobile:v,handleClickButtonReject:b,selectedProduct:L,setSelectedProduct:k,onPaymentMethodPreviousPress:S,productForm:N,firstPaymentDate:B,contractStatus:y,amountPerMonth:O,percentOfMonth:M,onContractTemplatePress:P,onCreateRatingRequestPress:I,onCreateRatingOfferPress:A,setShownContractGraphic:w,direction:D,takeLoan:T,setContractTemplateLoading:j,username:R,isContractTemplateLoading:F,handleGetPaymentCardData:x,termType:H,contractId:V,checkPaymentLoading:W,checkPaymentSystem:U,setToDefault:Y,showBlockConditions:z,availableProducts:q}=e;const J=Yc(3e3,p),Q=Yc(5e3,p),K=Yc(5e3,p),[X]=Object(Z.d)(),[$]=Object(l.useState)(X.get("error_code")),ee=[{imgStyles:Ea.a.BeforeSalaryMobileImg,product:u.P.LOAN_WITH_GRACE_PERIOD,icon:Uo.a,text:"по истечении срока договора по ставке 0,8% в день. При займе на срок до 7 дней - проценты не начисляются!",productClasses:v},{imgStyles:Ea.a.StandartMobileImage,product:u.P.INSTALLMENT,icon:Ho.a,text:"ежемесячно, равными частями, в каждый платеж включена часть основного долга и проценты за пользование.",productClasses:h},{imgStyles:Ea.a.OptimalMobileImg,product:u.P.OPTIMAL,icon:Wo.a,text:"каждые две недели равными частями - в каждый платеж включена часть основного долга и проценты за пользование.",productClasses:E}],te=Object(g.b)();Object(l.useEffect)(()=>{M&&B&&G.a.isEmpty(O)||c(2)},[M,B]),Object(l.useEffect)(()=>{te(n>2?Object(i.c)():Object(i.e)())},[n]);const ae=Object(l.useMemo)(()=>{if(!Array.isArray(q))return{};let e={dots:!0,arrows:!1,centerMode:!0,infinite:!1,centerPadding:"40px",slidesToShow:1,variableWidth:!1,speed:400,initialSlide:0,afterChange:e=>{k(u.P[q[e]])}};return Array.isArray(q)&&1===q.length&&(e={...e,infinite:!1,centerPadding:"0vw",variableWidth:!0}),e},[q]),ne=Object(l.useMemo)(()=>{let e="";return Array.isArray(q)&&1===q.length&&(e=" slider-single"),"".concat("component-products__carousel carousel-add-page"," ").concat(e)},[q]),le=()=>{ce(!1),N.setValue("monthCount",0,{shouldValidate:!0}),N.setValue("amount","",{shouldValidate:!0}),k(u.P[q[0]])},[oe,ce]=Object(l.useState)(!1),re=H===u.cb.MONTH?u.G:u.t,ie=y===u.p.ACCEPTED||y===u.p.PROCESSED,se=y===u.p.CANCELLED||y===u.p.ERROR_CREDIT,de=Object(l.useCallback)(e=>{ce(!0),localStorage.setItem("selectedProduct",e.key),k(e),c(2)},[c,k]);return o.a.createElement(o.a.Fragment,null,(1===n||2===n)&&o.a.createElement("div",null,o.a.createElement(f,null),o.a.createElement("div",{className:Ea.a.SubHeader},oe?"Определите условия":"Выберите продукт"),0===q.length?o.a.createElement("div",{className:Ea.a.productBlocked},"Нет доступных продуктов для",o.a.createElement("br",null)," текущего аккаунта"):oe?o.a.createElement("div",{className:Ea.a.Param
1sAndSuggestionContainer},o.a.createElement("div",{className:Ea.a.ParamsContainer},o.a.createElement("div",{className:Ea.a.CloseBlock,onClick:()=>{le(),c(1)}},o.a.createElement("img",{src:nn.a,alt:"close",width:9,height:9})),o.a.createElement("p",{className:Ea.a.ParamsTitle},L.title),o.a.createElement("div",{className:Ea.a.ParamsField},o.a.createElement(Ko.a,{label:"Сумма для получения"},o.a.createElement(Qo,{value:"LOAN_WITH_GRACE_PERIOD"===L.key?J[r]:"INSTALLMENT"===L.key?Q[r]:K[r],disabled:!L||!z,isError:!!N.errors.amount,options:(me=p,"INSTALLMENT"===L.key&&me>=5e3?Object.values(Q).filter(e=>Number(e.value)<=me):"OPTIMAL"===L.key&&me>=5e3?Object.values(K).filter(e=>Number(e.value)<=me):Object.values(J).filter(e=>Number(e.value)<=me)),onChange:e=>{let{value:t}=e;N.setValue("amount",t,{shouldValidate:!0}),localStorage.setItem("amount",t)},placeholder:"Выберите сумму",menuPlacement:"bottom"}))),o.a.createElement("div",{className:Ea.a.ParamsField},H&&o.a.createElement(Ko.a,{label:"Срок пользования"},o.a.createElement(Qo,{value:re[s],disabled:!L||!z,isError:!!N.errors.monthCount,options:Object.values(re).filter(e=>Number(e.value)>=d&&Number(e.value)<=m),onChange:e=>{let{value:t}=e;localStorage.setItem("monthCount",t),N.setValue("monthCount",t,{shouldValidate:!0})},placeholder:"Выберите срок",menuPlacement:"bottom"}))))):o.a.createElement(Uc.a,Object.assign({},ae,{className:ne}),ee.map((e,t)=>q.some(t=>t===e.product.key)&&o.a.createElement(zc,{key:t,item:e,onHandleItemClick:de,availableProduct:q}))),2===n&&!(!M||!B||!G.a.isEmpty(O))&&oe&&o.a.createElement("div",{className:Ea.a.SuggestionContainer},o.a.createElement("p",{className:Ea.a.SuggestionTitle},"Условия для вас"),o.a.createElement("div",{className:Ea.a.SuggestionCalculationContainer},o.a.createElement("div",{style:{alignItems:"flex-start"},className:Ea.a.SuggestionPaymentContainer},o.a.createElement("p",{className:Ea.a.SuggestionPaymentTitle},"Размер платежа"),o.a.createElement("p",{style:{fontSize:20},className:Ea.a.SuggestionPaymentDescription},_,C?",".concat(C):""," ","Р")),o.a.createElement("div",{style:{alignItems:"flex-end"},className:Ea.a.SuggestionPaymentContainer},o.a.createElement("p",{className:Ea.a.SuggestionPaymentTitle},"Первый платеж"),o.a.createElement("p",{className:Ea.a.SuggestionPaymentDescription},B))),o.a.createElement("div",{className:Ea.a.SuggestionActionsContainer},o.a.createElement("div",{className:Ea.a.rightBlockWrapper},o.a.createElement(be.b,{status:be.a.SMOOTHED,onClick:()=>w(!0)},"График"),o.a.createElement(be.b,{status:be.a.SMOOTHED,onClick:P},"Договор")),o.a.createElement(be.b,{disabled:W,onClick:()=>{localStorage.setItem("direction",D),localStorage.setItem("obtainingNoRedirect",!0),c(3),le()},status:W?be.a.SMOOTHED:be.a.ACTIVED},W?o.a.createElement(jn.a,{size:"small",style:{height:"17px",width:"17px",marginTop:"2px"}}):"Получить деньги")))),3===n&&o.a.createElement(Mc,{checkPaymentSystem:U,handleGetPaymentCardData:x,backHandler:()=>{c(1),N.reset()}}),4===n&&o.a.createElement(Nc,{setChosenStep:c,isContractTemplateLoading:F,selectedProduct:L}),5===n&&o.a.createElement(o.a.Fragment,null,V?se?o.a.createElement("div",{className:Ea.a.ContractReject},o.a.createElement(wc,{errorCode:$||u.mb[y||u.p.CANCELLED],setToDefault:Y})):ie?o.a.createElement("div",{className:Ea.a.ContractReject},o.a.createElement(jc,null)):o.a.createElement(Ra,null):o.a.createElement(ac,{username:R,smsError:t,setSmsError:a,onPaymentMethodPreviousPress:S,takeLoan:T,setContractTemplateLoading:j,onCreateRatingRequestPress:I,onCreateRatingOfferPress:A,onContractTemplatePress:P})),6===n&&o.a.createElement(xc,null),7===n&&o.a.createElement("div",{className:Ea.a.ContractReject},o.a.createElement(wc,{errorCode:$||u.mb[y||u.p.CANCELLED],setToDefault:Y})),8===n&&o.a.createElement(cc,{handleClickButtonReject:b}));var me};const Jc=Na.a.bind(Ea.a);var Qc=()=>{const e=Object(oe.a)().get("bankSchema"),t=Object(l.useContext)(r.a),[a,c]=Object(l.useState)(null),[i,s]=Object(l.useState)(null),[d,m]=Object(l.useState)(!1),[p,C]=Object(l.useState)([]),[_,v]=Object(l.useState)(null),[b,f]=Object(l.useState)(null),[L,k]=Object(l.useState)(null),[S,N]=Object(l.useState)(null),B=Object(l.useMemo)(()=>String(S).split(".")[0],[S]),y=Object(l.useMemo)(()=>String(S).split(".")[1],[S]),[O,M]=Object(l.useState)(!1),[P,I]=Object(l.useState)(9e4),[A,w]=Object(l.useState)(1),[D,T]=Object(l.useState)(1),[j,R]=Object(l.useState)(void 0),[F,x]=Object(l.useState)(!0),[Z,H]=Object(l.useState)(!1),[V,W]=Object(l.useState)(null),[U,Y]=Object(l.useState)(u.p.LOAD),[z,q]=Object(l.useState)(!1),J=Object(g.c)(e=>{let{auth:t}=e;return t.username}),Q=Object(g.c)(e=>{let{profile:t}=e;return t.contracts}),[K,X]=Object(l.useState)(""),$=Object(xo.a)({mode:"onChange"}),{monthCount:ee,amount:te}=$.watch(),[ae,ne]=Object(l.useState)(null),le=Object(n.m)(),ce=Object(n.o)(),re=new URLSearchParams(le.search),ie=null==re?void 0:re.get("contractId"),[se,de]=Object(l.useState)(ie||null),me=async e=>{try{const{result:n}=await Object(h.o)(e);var t,a;
1if(n.data)ne({incoming:null===(t=n.data)||void 0===t?void 0:t.incoming,outgoing:null===(a=n.data)||void 0===a?void 0:a.outgoing}),localStorage.setItem("paymentData",JSON.stringify(null==n?void 0:n.data)),"INSTALLMENT"===O.key&&Object(E.a)("go_to_payment_standart"),s(5)}catch(e){await Object(h.S)({eventName:"template/contract",phone:J,error:e,userAgent:window.navigator.userAgent})}};Object(l.useEffect)(()=>{(async()=>{try{var e;const{result:t}=await Object(h.J)();(null==t||null===(e=t.data)||void 0===e?void 0:e.clientId)&&c(t.data.clientId)}catch(e){await Object(h.S)({eventName:"template/contract",phone:J,error:e,userAgent:window.navigator.userAgent})}})()},[]),Object(l.useEffect)(()=>{$.register({name:"monthCount",type:"custom"}),$.register({name:"amount",type:"custom"})},[$.register]),Object(l.useEffect)(()=>{const e=new URL(window.location),t=e.searchParams.get("step");if("declined"===e.searchParams.get("status")&&"INCOMING"===localStorage.getItem("direction")&&e.searchParams.get("error_code"))s(8);else if("declined"===e.searchParams.get("status")&&"INCOMING"===localStorage.getItem("direction"))s(7);else if("approved"===e.searchParams.get("status")&&"INCOMING"===localStorage.getItem("direction"))s(4);else if(t)switch(t){case"product":s(1);break;case"obtaining":s(3);break;case"selfie":s(4);break;case"signature":s(5);break;case"reject":s(7);break;case"payment-error":s(8);break;default:s(1)}else s(1)},[window.location.href]),Object(l.useEffect)(()=>{const t=new URL(window.location).searchParams.get("step"),a={1:"product",2:"product",3:"obtaining",4:"selfie",5:"signature",7:"reject",8:"payment-error"};i&&t!==a[i]&&ce({search:"step=".concat(a[i]).concat(e?"&bankSchema=".concat(e):"")},{replace:!0})},[i,ce]),Object(l.useEffect)(()=>{ee&&te&&j?(async()=>{const{result:e}=await Object(h.H)({amount:te,monthCount:j===u.cb.MONTH?ee:void 0,periodCount:j===u.cb.DAY?ee:void 0,type:O.key});if(null==e?void 0:e.data){const t=e.data.payPlanItemList[0],a=G.a.last(e.data.payPlanItemList);v(e.data.percentOfMonth),f(ve()(t.date,"YYYY-MM-DD").format(u.s)),k(ve()(a.date,"YYYY-MM-DD")),N(t.amount),W(e.data.payPlanItemList.map(e=>({amount:e.amount,bottomDescription:ve()(e.date,"YYYY-MM-DD").format(u.s)})))}else v(null),f(null),k(null),N(null)})():(v(null),f(null),k(null),N(null))},[ee,te,j]),Object(l.useEffect)(()=>{$.setValue("monthCount",""),$.setValue("amount","")},[O]),Object(l.useEffect)(()=>{O&&(async()=>{const{result:e}=await Object(h.G)({type:O.key});var t;(null==e?void 0:e.data)&&(w(e.data.maxPeriodCount),T(e.data.minPeriodCount),I(e.data.limit),R(null===(t=e.data)||void 0===t?void 0:t.termType))})()},[O]);const ue=async(e,t,a)=>{var n,l,o;const c=localStorage.getItem("paynetOrderId"),r=c?await Object(h.F)({paynetOrderId:c}):null,i=(null==r||null===(n=r.result)||void 0===n?void 0:n.data)?{incoming:null===(l=r.result.data)||void 0===l?void 0:l.incoming,outgoing:null===(o=r.result.data)||void 0===o?void 0:o.outgoing}:JSON.parse(localStorage.getItem("paymentData"))||ae;try{var s,d;null===(s=window)||void 0===s||null===(d=s._tmr)||void 0===d||d.push({type:"reachGoal",id:3414338,goal:"lead"});const{result:n,error:l}=await Object(h.g)({amountOfContract:localStorage.getItem("amount")||te,loanTerm:localStorage.getItem("monthCount")||ee,commissionEnable:t,paymentData:i,smsCode:e,typeOfProduct:localStorage.getItem("selectedProduct")||O.key,isAssignmentRestricted:a});if(l)throw l;de(n.data.loanApplicationId),((e,t)=>{re.set(e,t),ce("".concat(le.pathname,"?").concat(re.toString()),{replace:!0})})("contractId",n.data.loanApplicationId),localStorage.removeItem("paymentData"),localStorage.removeItem("amount"),localStorage.removeItem("monthCount"),localStorage.removeItem("selectedProduct"),localStorage.getItem("");"true"!==localStorage.getItem(u.N)&&(localStorage.setItem(u.N,"true"),Object(E.a)("signed")),Object(E.a)("taken_loan"),Object(E.a)("button_loan_awaiting")}catch(e){const t=e&&e.response&&e.response.data,a=(null==t?void 0:t.message)||(null==t?void 0:t.error)||"Ошибка при создании заявки";X(a),await Object(h.S)({eventName:"template/contract",phone:J,error:a,userAgent:window.navigator.userAgent})}},pe=async(e,t,a)=>{try{var n,l;const{result:o}=await Object(h.e)({phone:J,code:e});(null==o||null===(n=o.data)||void 0===n?void 0:n.status)===u.l.MATCH?await ue(e,t,a):(null==o||null===(l=o.data)||void 0===l?void 0:l.status)===u.l.MANY_REQUESTS?(X("Истекли все попытки"),await Object(h.S)({eventName:"send/check_code",phone:J,error:"Истекли все попытки",userAgent:window.navigator.userAgent})):(X("Неверный код"),await Object(h.S)({eventName:"send/check_code",phone:J,error:"Неверный код",userAgent:window.navigator.userAgent}))}catch(e){X((null==e?void 0:e.message)||"Ошибка проверки кода")}},Ce=async()=>{var e;const t=await Object(h.C)();if(null==t||null===(e=t.result)||void 0===e?void 0:e.data){var a;const e=null==t||null===(a=t.result)||void 0===a?void 0:a.data;C((e=>{const t=["LOAN_WITH_GRACE_PERIOD","INSTALLMENT","OPTIMAL"];return e.sort((e,a)=>t.indexOf(e)-t.indexOf(a))})(e))}};Object(l.useEffect)(()=>{window.localStorage.setItem("contractsVal",Q.length);const e=window.localStorage.getItem("contractsVal");var t;(null==Q?void 0:Q.length)>e&&("INSTALLMENT"===(null===(t=Q[Q.length-1])||void 0===t?void 0:t.typeProduct)&&15e3===P&&Object(E.a)("get_15к"));Q.length<e&&window.localStorage.setItem("contractsVal",Q.length),Ce();const a=setInterval(()=>{Ce()},5e3);return()=>clearInterval(a)},[]),Object(l.useEffect)(()=>
1{if(!se||U!==u.p.LOAD)return;let e;return async function t(){var a;const{result:n,error:l}=await Object(h.I)({id:se}),o=null==n||null===(a=n.data)||void 0===a?void 0:a.status;l?e=setTimeout(t,5e3):u.kb.includes(o)?Y(o):e=setTimeout(t,5e3)}().then(),()=>{clearTimeout(e)}},[se]);const _e=Object(l.useCallback)(()=>{localStorage.removeItem("paymentData"),localStorage.removeItem("amount"),localStorage.removeItem("monthCount"),localStorage.removeItem("selectedProduct"),$.reset();const e=new URL(window.location);if("declined"!==e.searchParams.get("status")&&"approved"!==e.searchParams.get("status")||"INCOMING"!==localStorage.getItem("direction")){const e=new URLSearchParams(le.search);e.delete("status"),ce("/profile",{search:e.toString()},{replace:!0}),v(null),f(null),k(null),N(null),s(null),x(!0),(async e=>{const t=await Object(h.C)();var a;(null==t||null===(e=t.result)||void 0===e?void 0:e.data)&&M(null==t||null===(a=t.result)||void 0===a?void 0:a.data[0])})()}else ce("/profile/account-status")},[le.search,ce]),ge=async e=>{let a,{request:n,title:l,downloadName:c="document.pdf",eventName:r}=e;m(!0);try{a=await n()}catch(e){console.error(e),await Object(h.S)({eventName:r,phone:J,error:e,userAgent:window.navigator.userAgent})}finally{m(!1)}if(a){const e=new Blob([a.result.data],{type:"application/pdf"}),n=URL.createObjectURL(e);if(window.innerWidth<=1080){const e=document.createElement("a");return e.style.display="none",e.href=n,e.download=c,document.body.appendChild(e),e.click(),window.URL.revokeObjectURL(n),void document.body.removeChild(e)}t.setTitle(l),t.setContent(o.a.createElement("iframe",{title:l,src:n,width:"99%",height:"97%"})),t.setShown(!0)}},he=async()=>ge({request:async()=>await Object(h.f)({amountOfContract:localStorage.getItem("amount")||te,loanTerm:localStorage.getItem("monthCount")||ee,typeOfProduct:localStorage.getItem("selectedProduct")||O.key},{responseType:"blob"}),title:"Договор",eventName:"template/contract"}),Ee=async e=>{let{commissionSum:t}=e;return ge({request:async()=>await Object(h.i)({clientId:a,amount:t},{responseType:"blob"}),title:"Заявление о предоставлении услуги",eventName:"change-credit-rating-request"})},be=async e=>{let{commissionSum:t}=e;return ge({request:async()=>await Object(h.h)({amount:t},{responseType:"blob"}),title:"Отчет кредитного рейтинга",eventName:"change-credit-rating-offer"})},fe=Object(l.useCallback)(()=>{s(3)},[]),Le=Jc({blockedMode:!p.some(e=>"LOAN_WITH_GRACE_PERIOD"===e),Product:!0}),ke=Jc({blockedMode:!p.some(e=>"INSTALLMENT"===e),Product:!0}),Se=Jc({blockedMode:!p.some(e=>"OPTIMAL"===e),Product:!0}),Ne=Jc({blockedMode:!p.some(e=>"LOAN_WITH_GRACE_PERIOD"===e),ProductMobile:!0}),Be=Jc({blockedMode:!p.some(e=>"INSTALLMENT"===e),ProductMobile:!0}),ye=Jc({blockedMode:!p.some(e=>"OPTIMAL"===e),ProductMobile:!0}),Oe=async e=>{var t,n,l,o,c,r,i,s;if(q(!0),localStorage.setItem("direction",u.u.INCOMING),!a)return;const d=!!e&&await Object(h.M)({clientId:a}),m=window.location.origin,p=e?await Object(h.d)({phone:J,redirectFailUrl:"".concat(m,"/profile/add-contract?step=reject&error_code=${error_code}"),redirectSuccessUrl:"".concat(m,d?"/profile/add-contract?step=selfie&status=${status}":"/profile/add-contract?step=signature&status=${status}")}):await Object(h.c)({id:a,redirectFailUrl:"".concat(m,"/profile/add-contract?step=reject&status=${status}&error_code=${error_code}"),redirectSuccessUrl:"".concat(m,"/profile/add-contract?step=selfie&status=${status}")}),C=null==p||null===(t=p.result)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.paymentSystem,_=null==p||null===(l=p.result)||void 0===l||null===(o=l.data)||void 0===o?void 0:o.needSaveScan,g=null==p||null===(c=p.result)||void 0===c||null===(r=c.data)||void 0===r?void 0:r.redirectUrl;if(await localStorage.setItem("paynetOrderId",+(null==p||null===(i=p.result)||void 0===i||null===(s=i.data)||void 0===s?void 0:s.paynetOrderId)),"SBC"===C){if(e)return void(window.location.href=g);"INSTALLMENT"===O.key&&Object(E.a)("go_to_payment_standart"),ce("/profile/new_cart?url=".concat(encodeURIComponent(g)).concat(e?"&paymentDataType=SBP":"","&redirectUrl=add-contract?step=").concat(e?_?"selfie":"signature":"selfie","&errorRedirectUrl=add-contract?step=reject"))}q(!1)},Me=()=>{s(1),Y(u.p.LOAD),de(null)};return o.a.createElement("div",{className:"".concat(Ea.a.PageAddContract," ").concat(se?Ea.a.mobileSignatureStep:"")},Z&&Object(en.createPortal)(o.a.createElement(je,{pillars:V,withLoanLine:!0,product:O,contractOpened:ve()(),contractDuration:ee,contractFinished:L,onClosePress:()=>H(!1),className:Ea.a.axiosGraphic,termType:j}),document.body),d?o.a.createElement(It,null):o.a.createElement(o.a.Fragment,null),window.innerWidth>1080?o.a.createElement(Wc,{smsError:K,setSmsError:X,chosenStep:i,setChosenStep:s,amount:te,monthCount:ee,minMonthCount:D,maxMonthCount:A,limit:P,amountPerMonthAfterComma:y,amountPerMonthBeforeComma:B,productClassesInstall:ke,productClassesInfinit:Se,productClassesGrace:Le,handleClickButtonReject:fe,selectedProduct:O,setSelectedProduct:M,onPaymentMethodPreviousPress:_e,productForm:$,firstPaymentDate:b,contractStatus:U,amountPerMonth:S,percentOfMonth:_,onContractTemplatePress:he,onCreateRatingRequestPress:Ee,onCreateRatingOfferPress:be,setShownContractGraphic:H,direction:u.u.INCOMING,takeLoan:pe,setContractTemplateLoading:m,username:J,isContractTemplateLoading:d,handleGetPaymentCardData:me,termType:j,contractId:se,showBlockConditions:F,setShowBlockConditions:x,showConditionsBlock:()=>{x(!1),Object(E.a)("standart-conditions")},checkPaymentLoading:z,checkPaymentSystem:Oe,setToDefault:Me}):o.a.createElement(qc,{smsError:K,setSmsError:X,chosenStep:i,setChosenStep:s,amount:te,monthCount:ee,minMonthCount:D,maxMonthCount:A,limit:P,amountPerMonthAfterComma:y,amountPerMonthBeforeComma:B,productClassesInstallMobile:Be,productClassesInfinitMobile:ye,productClassesGraceMobile:Ne,handleClickButtonReject:fe,selectedProduct:O,setSelectedProduct:M,onPaymentMethodPreviousPress:_e,productForm:$,firstPaymentDate:b,contractStatus:U,amountPerMonth:S,percentOfMonth:_,onContractTemplatePress:he,onCreateRatingRequestPress:Ee,onCreateRatingOfferPress:be,setShownContractGraphic:H,direction:u.u.INCOMING,takeLoan:pe,setContractTemplateLoading:m,username:J,isContractTemplateLoading:d,handleGetPaymentCardData:me,termType:j,contractId:se,availableProducts:p,checkPaymentLoading:z,checkPaymentSystem:Oe,showBlockConditions:F,setToDefault:Me}))};function Kc(){const[e,t]=Object(l.useState)(!1);return Object(l.useEffect)(()=>{Object(h.G)({type:u.P.LOAN_WITH_GRACE_PERIOD.key}).then(e=>{var a;let{result:n}=e;(null==n?void 0:n.data)&&t(!!(null==n||null===(a=n.data)||void 0===a?void 0:a.specialConditions))})},[]),o.a.createElement(n.e,null,o.a.createElement(n.c,{path:"widget",element:o.a.createElement(Da.a,null)}),o.a.createElement(n.c,{element:o.a.createElement(he,null)},o.a.createElement(n.c,{index:!0,element:o.a.createElement(Ca,null)}),o.a.createElement(n.c,{path:"my-payments",element:o.a.createElement(mt,null)}),o.a.createElement(n.c,{path:"settings/documents",element:o.a.createElement(Xt,null)}),o.a.createElement(n.c,{path:"settings/lifeInsurance",element:o.a.createElement(Ao,null)}),o.a.createElement(n.c,{path:"settings/lifeInsuranceWaiting",element:o.a.createElement(wo,null)}),o.a.createElement(n.c,{path:"settings/services",element:o.a.createElement(yl,null)}),o.a.createElement(n.c,{path:"settings/others",element:o.a.createElement(wl,null)}),o.a.createElement(n.c,{path:"settings/delete-account",element:o.a.createElement(ra,null)}),o.a.createElement(n.c,{path:"settings/account-data",element:o.a.createElement(ll,null)}),o.a.createElement(n.c,{path:"settings/saved-methods",element:o.a.createElement(St,null)}),o.a.createElement(n.c,{path:"add-contract",element:e?o.a.createElement(Qc,null):o.a.createElement(Fo,null)}),o.a.createElement(n.c,{path:"account-status",element:o.a.createElement(Ca,null)}),o.a.createElement(n.c,{path:"confirm-code/:id",element:o.a.createElement(hn,null)}),o.a.createElement(n.c,{path:"new_cart",element:o.a.createElement(fn,null)}),o.a.createElement(n.c,{path:"contract",element:o.a.createElement(Va,null)}),o.a.createElement(n.c,{path:"sbp",element:o.a.createElement(po,null)}),o.a.createElement(n.c,{path:"payment-type/:id",element:o.a.createElement(Mo,null)}),o.a.createElement(n.c,{path:"payment-composition/:id",element:o.a.createElement(dl,null)}),o.a.createElement(n.c,{path:"support",element:o.a.createElement($a,null)}),o.a.createElement(n.c,{path:"*",element:o.a.createElement(Ca,null)})))}}}]);
2//# sourceMappingURL=14.3bde11e8.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.