(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1884],{233:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var l=n(19927);let r=e=>{let t=e.value;switch(e.type){case"MONTH":t=e.value*l.L;break;case"YEAR":t=365.25*e.value}return Math.round(t)}},660:e=>{e.exports={tabsList:"MobileTabs_tabsList__k6Fp5",tabItem:"MobileTabs_tabItem__nNt_M"}},703:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});var l=n(95155),r=n(2821),a=n(22975),i=n.n(a);let o=e=>{let{as:t="div",children:n,className:a,...o}=e;return(0,l.jsx)(t,{className:(0,r.A)(i().mainContainer,a),...o,children:n})};o.displayName="MainContainer"},1396:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var l=n(20063),r=n(12115),a=n(15520);function i(){let e=(0,l.usePathname)(),t=(0,l.useSearchParams)(),n=(0,r.useMemo)(()=>{if(!e)return"";let n=location.hash,l=null==t?void 0:t.toString();return(null==l?void 0:l.length)?e+"?"+l+n:e+n},[t,e]),i=(0,r.useMemo)(()=>(0,a.$)(n,"?"),[n]),o=(0,r.useMemo)(()=>(0,a.$)(n,"#"),[n]),s=(0,r.useCallback)(e=>{history.pushState({url:e},"",e)},[]),c=(0,r.useCallback)(e=>{history.replaceState({url:e},"",e)},[]);return(0,r.useMemo)(()=>({asPath:n,query:i,hash:o,push:s,replace:c}),[o,n,s,i,c])}},1421:(e,t,n)=>{"use strict";n.d(t,{Q:()=>l});var l=function(e){return e.addToList="addToList",e.like="like",e.share="share",e.chart="chart",e.arrow="arrow",e.arrowBack="arrowBack",e}({})},2748:(e,t,n)=>{"use strict";n.d(t,{MI:()=>l,O8:()=>r,Y4:()=>a,wy:()=>i});var l=function(e){return e.END="IN_THE_END",e.MONTH="MONTHLY",e}({}),r=function(e){return e.DAY="DAY",e.MONTH="MONTH",e.YEAR="YEAR",e}({}),a=function(e){return e.FIXED="FIXED",e.FLOATING="FLOATING",e}({}),i=function(e){return e.SALARY_OR_PENSION="SALARY_OR_PENSION",e.SPENDING="SPENDING",e}({})},3234:e=>{e.exports={sortTypeContainer:"SortRadios_sortTypeContainer__2ezn2",newSortRadioSortTypeContainer:"SortRadios_newSortRadioSortTypeContainer__XOy5y",divider:"SortRadios_divider__nxBXa",sortType:"SortRadios_sortType__RRbGy",sortTypeRadio:"SortRadios_sortTypeRadio___7Xfl",sortTypeTooltip:"SortRadios_sortTypeTooltip__AvCKd",sortTypeTrigger:"SortRadios_sortTypeTrigger__h86Ce",sortTypeHead:"SortRadios_sortTypeHead__l3cqJ",newSortRadioSortTypeHead:"SortRadios_newSortRadioSortTypeHead__KKh8m",sortTypeButton:"SortRadios_sortTypeButton__PYIUi",newSortRadioSortTypeButton:"SortRadios_newSortRadioSortTypeButton__RcYVE",iconInverted:"SortRadios_iconInverted__Qn847"}},4678:(e,t,n)=>{"use strict";n.d(t,{Af:()=>o,Hr:()=>i,I7:()=>l,nS:()=>a,ov:()=>r,se:()=>s,v6:()=>c});let l="steps",r="place",a="depositsList",i="depositsParametrs",o="downloadAppBanner",s="depositGuide",c="anotherDeposits"},6846:e=>{e.exports={sliderWrapper:"Slider_sliderWrapper__0eFfK",slider:"Slider_slider__Wsstr",visiblePagination:"Slider_visiblePagination__jXr_S",wrapper:"Slider_wrapper__HNT3W",slides:"Slider_slides__n2K4x",shifting:"Slider_shifting__VLidY",slide:"Slider_slide__SWtr4",slideIsPointer:"Slider_slideIsPointer__KYQSu",paginationList:"Slider_paginationList__1nFBy",selected:"Slider_selected__vNunt",animationLine:"Slider_animationLine__dbV65",control:"Slider_control__UICqP",prev:"Slider_prev__0PSRA",next:"Slider_next__7ocyI",controlIcon:"Slider_controlIcon__l6pJU"}},7204:e=>{e.exports={mobilePopup:"MobilePopup_mobilePopup__wzHBK",overlay:"MobilePopup_overlay__pGKmO",open:"MobilePopup_open__L3zBp",fade:"MobilePopup_fade__rYES7",close:"MobilePopup_close__Fdi8R","fade-out":"MobilePopup_fade-out__o_A_f",content:"MobilePopup_content__K3UFY",contentFull:"MobilePopup_contentFull__4MWFn",contentLine:"MobilePopup_contentLine__badEw",contentContainer:"MobilePopup_contentContainer__8VjYs",min:"MobilePopup_min__fnQq7",contentTransition:"MobilePopup_contentTransition__LQDtY",contentTransitionOpen:"MobilePopup_contentTransitionOpen__odtk2",title:"MobilePopup_title__oYmDg",closeContainer:"MobilePopup_closeContainer__bvgxg",closeButton:"MobilePopup_closeButton__UBph4",smallContentContainer:"MobilePopup_smallContentContainer__Qr71v",footer:"MobilePopup_footer__NQF0Y",footerWithoutShadow:"MobilePopup_footerWithoutShadow__CqgP1"}},8546:(e,t,n)=>{"use strict";n.d(t,{L:()=>d});var l=n(95155),r=n(76048),a=n(2821),i=n(12115),o=n(7204),s=n.n(o);let c=e=>{let{footer:t,footerClassName:n,isSmallPopup:r}=e;return(0,l.jsx)("div",{className:(0,a.A)(s().footer,r&&s().footerWithoutShadow,n),children:"function"==typeof t?t():t})},u=e=>{let{children:t,footer:n,isOpen:o,isSmallPopup:u,onClose:d,hasCloseButton:m=!0,full:p,touchDistance:_=100,withDisabledScroll:h=!0,contentClassName:v,className:f,title:g,closeButton:b,footerClassName:x}=e,[y,C]=(0,i.useState)(!1),[N,k]=(0,i.useState)(!1),[A,w]=(0,i.useState)(!0),[T,S]=(0,i.useState)("120%"),j=(0,i.useRef)(null),L=(0,i.useRef)(0),E=(0,i.useRef)(!1),I=(0,i.useRef)(null),P=(0,i.useCallback)(()=>{o&&(I.current=setTimeout(()=>{null==d||d()},0))},[o,d]),D=(0,i.useCallback)(e=>{var t,n,l;let r=null==(t=j.current)?void 0:t.offsetTop,a=null==(n=j.current)?void 0:n.offsetHeight;if(E.current=!0,w(!1),r&&a&&e instanceof TouchEvent){let t=(null==(l=e.touches[0])?void 0:l.clientY)-r,n=0;t>=0&&t<=a+30&&(n=t),t>a+30&&(n=a+30),S("".concat(n,"px")),L.current=n}},[]),R=(0,i.useCallback)(()=>{E.current&&(L.current>_&&d?d():S("0"),w(!0),E.current=!1),window.removeEventListener("touchmove",D),window.removeEventListener("touchend",R)},[D,d,_]),M=(0,i.useCallback)(()=>{o&&(C(!1),window.addEventListener("touchmove",D),window.addEventListener("touchend",R))},[R,D,o]),O=(0,i.useCallback)(e=>{"Escape"===e.key&&P()},[P]);return(0,i.useEffect)(()=>(o&&window.addEventListener("keydown",O),()=>{I.current&&clearTimeout(I.current),window.removeEventListener("keydown",O),window.removeEventListener("touchmove",D),window.removeEventListener("touchend",R)}),[O,R,D,o]),(0,i.useEffect)(()=>{o&&setTimeout(()=>{C(!0),k(!0),S("0")},100),!o&&N&&(S("120%"),C(!1),k(!1))},[N,o]),(e=>{(0,i.useEffect)(()=>{let t=document.querySelectorAll("[data-portal]").length>1,n=document.body,l=()=>{n.style.overflow="",n.style.height=""};return e&&(n.style.overflow="hidden",n.style.height="100vw"),e||t||l(),()=>{t||l()}},[e])})(o&&h),(0,l.jsxs)("div",{"data-portal":!0,className:(0,a.A)(s().mobilePopup,N&&s().mobilePopupOpen,f),children:[(0,l.jsx)("button",{type:"button",className:(0,a.A)(s().overlay,{[s().open]:o,[s().close]:!o}),onTouchStart:M,onClick:P,"aria-label":"Закрыть"}),(0,l.jsxs)("div",{className:(0,a.A)(s().content,p&&s().contentFull,A&&s().contentTransition,A&&y&&s().contentTransitionOpen),ref:j,style:{transform:"translateY(".concat(T,")")},children:[(0,l.jsx)("div",{className:s().contentLine}),(0,l.jsxs)("div",{className:(0,a.A)(s().contentContainer,u&&s().smallContentContainer,{[s().min]:!g&&!m},v),children:[!!g&&(0,l.jsx)("div",{className:s().title,children:g}),m?(0,l.jsxs)("div",{className:s().closeContainer,children:[b?"function"==typeof b?b():b:null,b?null:(0,l.jsx)("button",{onClick:d,className:s().closeButton,type:"button","aria-label":"Закрыть",children:(0,l.jsx)(r._7M,{size:24})})]}):null,t]}),n&&(0,l.jsx)(c,{footerClassName:x,isSmallPopup:u,footer:n})]})]})},d=e=>{let{children:t,isSmallPopup:n=!1,isOpen:r=!1,...a}=e;return(e=>{let[t,n]=(0,i.useState)(!1),l=(0,i.useRef)(null),r=(0,i.useRef)(!1);return(0,i.useEffect)(()=>(e&&!r.current?(r.current=!0,n(!0)):!e&&r.current&&(l.current=setTimeout(()=>{r.current=!1,n(!1)},300)),()=>{l.current&&clearTimeout(l.current)}),[e]),t})(r)?(0,l.jsx)(u,{isSmallPopup:n,isOpen:r,...a,children:t}):null};d.displayName="UiMobilePopup"},9050:e=>{e.exports={select:"Select_select__9T1_o",popup:"Select_popup__b5Kka",window:"Select_window__q72XU",safeAreaLine:"Select_safeAreaLine__Cppmh",inputcontainer:"Select_inputcontainer__XTmeE",inputPopup:"Select_inputPopup__4nXH_",inputButton:"Select_inputButton__wD_JC",content:"Select_content__gnEux",empty:"Select_empty__G5J5b",optionsList:"Select_optionsList__vDx8d",optionsItem:"Select_optionsItem__fNmxJ",checkbox:"Select_checkbox__fdzi4",active:"Select_active__bpFTp",marker:"Select_marker__AaNev",multipleList:"Select_multipleList__ugPD2",selectedOptionsItem:"Select_selectedOptionsItem__KV2t_",icon:"Select_icon__wF0vy",iconRotate:"Select_iconRotate__HyGKo",popupActions:"Select_popupActions__EhoLd"}},9249:e=>{e.exports={datePicker:"DatePicker_datePicker__i0QAq",calendar:"DatePicker_calendar__OgqPe"}},9698:e=>{e.exports={filter:"ListFilter_filter__wG9Yk",newSortRadiosFilter:"ListFilter_newSortRadiosFilter__aVeAQ",sortTypeDesktop:"ListFilter_sortTypeDesktop__Udi0F",container:"ListFilter_container__Zql7K",modal:"ListFilter_modal__n5nXL",newSortRadioModal:"ListFilter_newSortRadioModal__n5RIt",modalButton:"ListFilter_modalButton___vaKN",chipsContainerModal:"ListFilter_chipsContainerModal__vj2jm",chipsContainer:"ListFilter_chipsContainer__xVwcA",chipsContainerClosed:"ListFilter_chipsContainerClosed__B9DQc",chip:"ListFilter_chip__UqNNc",actionsWrapper:"ListFilter_actionsWrapper__nop9B",action:"ListFilter_action__SE0lQ",actionText:"ListFilter_actionText__Emjt2",iconButton:"ListFilter_iconButton__m9o1I",actionButton:"ListFilter_actionButton__W_WRq",icon:"ListFilter_icon__xKXho",iconInverted:"ListFilter_iconInverted__NToIz",stuck:"ListFilter_stuck__Whein",mainContainer:"ListFilter_mainContainer__ZnTFN"}},10955:(e,t,n)=>{"use strict";n.d(t,{Aq:()=>s,DD:()=>p,Je:()=>d,M0:()=>c,O:()=>b,YJ:()=>v,_7:()=>m,an:()=>x,dl:()=>h,lu:()=>u,pr:()=>g,sD:()=>_,vA:()=>f});var l=n(44653),r=n(233);let a=(e,t)=>Math.min(e,t.minimumPeriod?(0,r.i)(t.minimumPeriod):0),i=(e,t)=>Math.max(e,t.maximumPeriod?(0,r.i)(t.maximumPeriod):0),o=(e,t,n)=>{var l,a,i,o,s,c;t.push({from:null,to:null,term:null,amount:null,term_from:n.minimumPeriod?(0,r.i)(n.minimumPeriod):0,term_to:n.maximumPeriod?(0,r.i)(n.maximumPeriod):0,rate:n.maximumRate,amount_from:null!=(s=n.minimumAmount)?s:null,amount_to:null!=(c=n.maximumAmount)?c:null,diff:n.topRateDelta||0,tag:{title:(null==n||null==(l=n.tags)?void 0:l.title)||"",description:(null==n||null==(a=n.tags)?void 0:a.description)||"",deeplink:(null==n||null==(i=n.tags)?void 0:i.deepLink)||"",url:(null==n||null==(o=n.tags)?void 0:o.url)||""},optionId:e.id})},s=(e,t)=>{let n=[],l=1/0,r=0,s=1/0,c=0;for(let _ of e)if(null==_?void 0:_.active){if(t){var u,d,m,p;let e=null!=(m=null==(u=_.duration)?void 0:u.minimum)?m:0,t=null!=(p=null==(d=_.duration)?void 0:d.maximum)?p:0;s=Math.min(s,e),c=Math.max(c,t)}for(let e of _.currencies||[])for(let u of e.rates||[])o(_,n,u),l=Math.min(l,u.minimumAmount),r=Math.max(r,u.maximumAmount),t||(s=a(s,u),c=i(c,u))}return{rates:n,amountFrom:l,amountTo:r,termFrom:s,termTo:c}},c=e=>{var t;return+(null!=e&&null!=(t=e.interestPayments)&&!!t.some(e=>(null==e?void 0:e.method)==="CAPITALISATION"))},u=e=>c(e)?"Да":"Нет",d=e=>{var t;let{hasCapitalization:n,hasCurrentAccount:l}=(null!=(t=null==e?void 0:e.interestPayments)?t:[]).reduce((e,t)=>({hasCapitalization:e.hasCapitalization||"CAPITALISATION"===t.method,hasCurrentAccount:e.hasCurrentAccount||"TO_CURRENT_BANK_CUSTOMER_ACCOUNT"===t.method}),{hasCapitalization:!1,hasCurrentAccount:!1});return n&&l?"На выбор клиента":n?"Да":"Нет"},m=e=>+((null==e?void 0:e.earlyTermination)===l.A.PreferentialRateForWholeTerm||(null==e?void 0:e.earlyTermination)===l.A.WithoutRecalculationOfInterest),p=e=>m(e)?"Да":"Нет",_=e=>{var t,n;return+(null!=e&&null!=(n=e.replenishment)&&null!=(t=n[0])&&!!t.type)},h=e=>_(e)?"Возможно":"Невозможно",v=e=>{var t,n;return+(null!=e&&null!=(n=e.partialWithdrawal)&&null!=(t=n[0])&&!!t.type)},f=e=>v(e)?"Возможно":"Невозможно",g=e=>e?"Да":"Нет",b=e=>{try{var t,n;if(!e)return"";let l=e.legal_entities;if("string"==typeof l){let e=JSON.parse(l);return Array.isArray(e)&&(null==(n=e[0])?void 0:n.name)?e[0].name:""}if(Array.isArray(l))return(null==(t=l[0])?void 0:t.name)||"";return""}catch(e){return""}},x=e=>({status_custom:null,currency_id:1,fin_exclusive:0,active_to:"",archive:0,bank_id:0,bank_name:"",bank_url:"",logo_mob:"",asSavingAccount:e,interest_rate:{comment:"",rates:[]},multicurrency:0,partial_withdrawal:{comment:"",comp:"",text:"",has:0},interest_payment:{comment:"",comp:"",text:"",daily:0,weekly:0,monthly:0,quarterly:0,half_year:0,annually:0,specified_period_in_days:0,end:0},refill:{comment:"",comp:"",text:"",has:0},interest_capitalization:{comment:"",comp:"",has:0,text:""},preferential_termination:{comment:"",comp:"",text:"",has:0},amount:{from:null,to:null},term:{from:0,to:"",ladder_rates:0},online_application:{type:3,url:"",commercial:0,commercial_desc:"",order:null},m_updated_at:null,promo:!1,type:{seasonal:0,charitable:0,saving_account:+!!e,child:0,pension:0,salary:0,insurance:0,investment:0,multicurrency:0,martgage:0}})},15520:(e,t,n)=>{"use strict";n.d(t,{$:()=>l});let l=function(e){var t,n,l,r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"?",i=null!=(r=null==(l=e.split(a))||null==(n=l[1])||null==(t=n.split("?"===a?"#":"?")[0])?void 0:t.split("&"))?r:[],o={};return i.forEach(e=>{let[t,n]=e.split("="),l=null!=n?n:"";if(t in o){let e=o[t];if(Array.isArray(e)){o[t]=[...e,l];return}if(!Array.isArray(e)&&e){o[t]=[e,l];return}}o[t]=l}),o}},18578:(e,t,n)=>{"use strict";n.d(t,{T:()=>l});var l=function(e){return e.isPlatformDeposit="isPlatformDeposit",e.isNonPlatformDeposit="isNonPlatformDeposit",e.isLidgenDeposit="isLidgenDeposit",e.isArchiveDeposit="isArchiveDeposit",e}({})},19559:(e,t,n)=>{"use strict";n.d(t,{FT:()=>i,oA:()=>a});var l=n(10320);let r=[{path:"banki",category:"service_bank"},{path:"strahovanie_kompanija",category:"service_sk"},{path:"adresa_sk",category:"service_sk"},{path:"adresa_mfo",category:"service_mfo"},{path:"adresa",category:"service_bank"},{path:"mfo",category:"service_mfo"},{path:"navigator",category:"service_navigator"},{path:"stat_",category:"service_navigator"}],a=(e,t)=>{let n=sessionStorage.getItem("pushedEvents"),r=n?JSON.parse(n):[];e.event=e.event?e.event:"data-event",e.eventValue=e.eventValue?e.eventValue:null,e.eventAction=e.eventAction&&"string"==typeof e.eventAction?e.eventAction.toLowerCase().replaceAll(/[ \xa0]/g,"_"):"",e.eventLabel=e.eventLabel&&"string"==typeof e.eventLabel?e.eventLabel.toLowerCase().replaceAll(/[ \xa0]/g,"_"):"";let a=r.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!a){if(t){let t={...e};t.url=window.location.pathname,r.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(r))}(0,l.Fj)(e)}},i=e=>{for(let t of r)if(e.indexOf(t.path)>=0){let n=e.match(/str_(\d+)/),l=Array.isArray(n)&&n[1]?Number(n[1]):1;setTimeout(()=>{a({event:"data-event",eventCategory:t.category,eventAction:"stay_15_seconds",eventLabel:e,eventValue:l})},15e3);return}}},19680:(e,t,n)=>{"use strict";n.d(t,{R:()=>p});var l=n(46828),r=n(88346),a=n(98591),i=n(89910),o=n(73520),s=n(25844),c=n(2748),u=n(44653),d=n(10955);let m={[c.O8.DAY]:l.A.Day,[c.O8.MONTH]:l.A.Month,[c.O8.YEAR]:l.A.Year},p=function(e){var t,n,l,p,_;let h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,v=arguments.length>2?arguments[2]:void 0;if(!e)return[];let f="bank_id"in e,g=!!(e.asSavingAccount||f&&e.type.saving_account),b=g?"счет":"вклад",x=null==(t=e.options)?void 0:t.find(e=>e.id===h),y={minAmount:null==x||null==(n=x.additionalReplenishmentRestrictions)?void 0:n.minAmount,replenishmentPeriod:(e=>{if(!(null==e?void 0:e.additionalReplenishmentRestrictions))return;let{minAmount:t,replenishmentPeriod:n}=e.additionalReplenishmentRestrictions;if(!t)return;if(!n)return"Весь период действия вклада";let{value:l,type:a}=n,i=m[a];return"".concat((0,o.Ig)(l,["Первый","Первые","Первые"],r.Ge[i])," после открытия")})(x)},C=f?{...((e,t)=>{var n,l,r,i;let o=(0,a.O)(e.currency_id);return{currency:s.yR[o.unit],partialWithdrawal:e.partial_withdrawal.text,interestPayment:e.interest_payment.text,refill:null!=(r=null==(n=e.refill)?void 0:n.text)?r:"",capitalization:null!=(i=null==(l=e.interest_capitalization)?void 0:l.text)?i:"",preferentialTermination:e.preferential_termination.text,preferentialTerminationDesc:"да"===e.preferential_termination.text.toLowerCase()?"Если вы решите закрыть ".concat(t," раньше, с 366 дня ставка при досрочном расторжении составит <b>8%</b> годовых"):""}})(e,b),...y}:{...((e,t)=>{let n=e.options[0].earlyTermination,l=n===u.A.PreferentialRateForWholeTerm||n===u.A.WithoutRecalculationOfInterest;return{currency:s.yR["₽"],partialWithdrawal:e.options[0].partialWithdrawal?"Да":"Нет",interestPayment:e.options[0].interestPayments[0].periods[0].type===c.MI.END?"В конце срока":"ежемесячно",refill:e.options[0].replenishment?"Возможно":"Нет",capitalization:"CAPITALISATION"===e.options[0].interestPayments[0].method?"Да":"Нет",preferentialTermination:l?"Да":"Нет",preferentialTerminationDesc:l?"Возможность досрочно закрыть ".concat(t,", при этом, не потерять часть накопленных %"):""}})(e,b),...y},N=f&&3!==e.online_application.type,k=N?e.attributesComments:void 0,A=e=>{var t;return null==k||null==(t=k.find(t=>t.field===e))?void 0:t.comment},w=f&&e.prolonging,T=N?A("RESTRICTIONS"):void 0,S=[{label:"Пролонгация вклада",value:(0,d.pr)(w),toolltip:"Возможность продления срока действия вклада без предварительного закрытия, зачастую процесс автоматизирован — то есть не требует посещения банка",attributeComment:A("PROLONGING"),excluded:!1}],j=[{label:"Ограничения",value:A("RESTRICTIONS"),excluded:!1}];return[{isComment:!0,label:"",value:null!=(_=null==(l=e.interest_rate)?void 0:l.comment)?_:"",excluded:!(null==(p=e.interest_rate)?void 0:p.comment)||v},{label:"Валюта ".concat(b,"а"),value:C.currency,excluded:!1},{label:"Частичное снятие",value:C.partialWithdrawal,attributeComment:A("PARTIAL_WITHDRAWAL"),excluded:!1},{label:"Выплата процентов",value:C.interestPayment,attributeComment:A("INTEREST_PAYMENTS"),excluded:!1},{label:"Пополнение ".concat(b,"а"),value:C.refill,toolltip:"Возможность вносить денежные средства в период действия ".concat(b,"а."),attributeComment:A("REPLENISHMENT"),excluded:!1},{label:"Капитализация процентов",value:C.capitalization,toolltip:"На выбор клиента"===C.capitalization?"Это причисление процентов к основной сумме вклада с определенной периодичностью — ежедневно, ежемесячно, ежеквартально или ежегодно. <br />С каждой капитализацией сумма вклада увеличивается: на проценты тоже начисляется доход, и это дает накопительный эффект \xabсложного процента\xbb. Капитализация бывает не по всем вкладам. <br />Существуют вклады, где клиент может самостоятельно выбрать: прибавлять начисленные проценты к вкладу или получать доход на отдельный счет.":"Обычно начисление процентов по вкладу происходит один раз, в конце срока действия вклада. <br />У вкладов с капитализацией проценты начисляются в течение срока действия вклада, например, раз в месяц, раз в год и т.п. Начисленные проценты прибавляются к вкладу и общий доход от вклада увеличивается.",attributeComment:A("INTEREST_PAYMENTS_METHOD"),excluded:!1},{label:"Льготное расторжение",value:C.preferentialTermination,toolltip:"счет"===b?"Закрытие счета не в дату выплаты процентов — по ставке, действующей на дату закрытия":"Возможность досрочно закрыть вклад, при этом, не потерять часть накопленных %",valueDescription:C.preferentialTerminationDesc,attributeComment:A("EARLY_TERMINATION"),excluded:!1},{label:"Период пополнения",value:C.replenishmentPeriod,excluded:!(h&&x)},{label:"Минимальная сумма пополнения",value:C.minAmount&&"".concat((0,i.jq)(C.minAmount)," ₽"),excluded:!(h&&x)},...N&&!g?S:[],...T?j:[]].filter(e=>!e.excluded)}},19927:(e,t,n)=>{"use strict";n.d(t,{L:()=>l});let l=30.416},20447:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var l=n(61126),r=n(57406);let a=()=>r.Ay.union([r.Ay.enum(["true","false"]),r.Ay.boolean()]).optional().transform(e=>"boolean"==typeof e?e:"true"===e),i=r.Ay.object({ASSETS_URL:r.Ay.string().url(),BACKEND_API:r.Ay.string().url(),BASE_URL:r.Ay.string().url(),BFF_SHOWCASE_API:r.Ay.string().url(),COMMON_BLOCKS_API:r.Ay.string().url(),HEADLESS_CMS_API:r.Ay.string().url(),LK_API:r.Ay.string().url(),LK_URL:r.Ay.string().url(),MP_SC_API_DIRECT:r.Ay.string().url(),MP_SC_API:r.Ay.string().url(),PAGE_CONTENT_API:r.Ay.string().url(),PROD_CAT_API:r.Ay.string().url(),PRODUCT_TAGS_API:r.Ay.string().url(),SEO_API:r.Ay.string().url(),REDIRECTS_API:r.Ay.string().url(),ENABLE_EXTERNAL_LINK_WARNING:a(),FEATURE_TOGGLE_DEPOSIT_DETAIL_NEW_DESIGN_ENABLED:a()}),o=function(){let e={ASSETS_URL:(0,l.env)("NEXT_PUBLIC_ASSETS_BASE_URL"),BACKEND_API:(0,l.env)("NEXT_PUBLIC_API_URL"),BASE_URL:(0,l.env)("NEXT_PUBLIC_BASE_URL"),BFF_SHOWCASE_API:(0,l.env)("NEXT_PUBLIC_NEW_API_URL"),COMMON_BLOCKS_API:(0,l.env)("NEXT_PUBLIC_COMMON_BLOCKS_URL"),HEADLESS_CMS_API:(0,l.env)("NEXT_PUBLIC_HEADLESS_CMS_API_URL"),LK_API:(0,l.env)("NEXT_PUBLIC_LK_API_URL"),LK_URL:(0,l.env)("NEXT_PUBLIC_MOEX_AD_URI"),MP_SC_API_DIRECT:(0,l.env)("NEXT_PUBLIC_MP_SC_URL"),MP_SC_API:(0,l.env)("NEXT_PUBLIC_MP_SC_API_URL"),PAGE_CONTENT_API:(0,l.env)("NEXT_PUBLIC_PAGE_CONTENT_API"),PROD_CAT_API:(0,l.env)("NEXT_PUBLIC_PROD_CAT_CORE_API_URL"),PRODUCT_TAGS_API:(0,l.env)("NEXT_PUBLIC_PRODUCT_TAGS_API_URL"),SEO_API:(0,l.env)("NEXT_PUBLIC_SEO_API_URL"),REDIRECTS_API:(0,l.env)("NEXT_PUBLIC_MP_SC_REDIRECTS_API"),ENABLE_EXTERNAL_LINK_WARNING:(0,l.env)("NEXT_PUBLIC_ENABLE_EXTERNAL_LINK_WARNING"),FEATURE_TOGGLE_DEPOSIT_DETAIL_NEW_DESIGN_ENABLED:(0,l.env)("NEXT_PUBLIC_FEATURE_TOGGLE_DEPOSIT_DETAIL_NEW_DESIGN_ENABLED")},t=i.safeParse(e);return t.success?t.data:(console.error("Invalid public env config:",t.error.format()),e)}()},20753:(e,t,n)=>{"use strict";n.d(t,{l:()=>u});var l=n(95155),r=n(98574),a=n(1608),i=n(12115),o=n(9249),s=n.n(o);function c(e){let{children:t,disabled:n,onClose:l}=e,r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(!r.current||n)return;let e=e=>{var t;!e.target||(null==(t=r.current)?void 0:t.contains(e.target))||l()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n,l]),(0,i.cloneElement)(t,{ref:r})}function u(e){let{value:t,multiple:n=!1,minAllowedDate:o,maxAllowedDate:u,label:d="Дата",state:m,caption:p,allowClear:_=!1,onChange:h}=e,[v,f]=(0,i.useState)(!1),g=(0,i.useCallback)(e=>{var t,n;if(!e)return h(null);h(new Date(Math.min(Math.max(e.getTime(),null!=(t=null==o?void 0:o.getTime())?t:0),null!=(n=null==u?void 0:u.getTime())?n:1/0)))},[u,o,h]),b=(0,i.useCallback)(e=>{(e||_)&&h(e),f(!1)},[_,h]);return(0,l.jsx)(c,{onClose:()=>f(!1),disabled:!v,children:(0,l.jsxs)("div",{className:s().datePicker,children:[(0,l.jsx)(a.H,{label:d,value:t,onChange:g,onFocus:()=>f(!0),state:m,caption:p}),v&&(0,l.jsx)(r.V,{className:s().calendar,value:t,onChange:b,multiple:n,minAllowedDate:o,maxAllowedDate:u})]})})}},22779:e=>{e.exports={container:"DrawerContent_container__E7_6w",open:"DrawerContent_open__TUrb1","slide-up":"DrawerContent_slide-up__2p_ZF",close:"DrawerContent_close__qT4s7","slide-out":"DrawerContent_slide-out__teW_v",header:"DrawerContent_header__wfOXH",rowHeader:"DrawerContent_rowHeader__Qcjaz",title:"DrawerContent_title__EyTsu",center:"DrawerContent_center__yJsEH",right:"DrawerContent_right__XjXG0",left:"DrawerContent_left__qlaYw",controlContainer:"DrawerContent_controlContainer__it5KA",content:"DrawerContent_content__NsaVi",footer:"DrawerContent_footer__RequL"}},22975:e=>{e.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}},24176:e=>{e.exports={inputRoot:"Input_inputRoot__eY6TI",wrapperInput:"Input_wrapperInput__lZ3Jn",big:"Input_big__ROUVY",middle:"Input_middle__bMrkJ",hasValue:"Input_hasValue__5F0GR",label:"Input_label__R8Jeu",addoneAfter:"Input_addoneAfter__YhMrL",addoneBefore:"Input_addoneBefore__BZz8b",gray:"Input_gray__IrCK2",white:"Input_white__5OUi5",error:"Input_error__fvAaJ",success:"Input_success__ulm5v",isFocused:"Input_isFocused__bnuTe",disabled:"Input_disabled__SQ9wl",readOnly:"Input_readOnly__JvNlB",inputContainer:"Input_inputContainer__D4yMA",cover:"Input_cover__DLWwX",input:"Input_input__qAWvo",inputCenter:"Input_inputCenter__iSBBa",maskPlaceholder:"Input_maskPlaceholder__kkbxx",maskPlaceholderCenter:"Input_maskPlaceholderCenter__htRJm",maskPlaceholderHide:"Input_maskPlaceholderHide__ZwZUZ",controlContainer:"Input_controlContainer__JanaX",buttonClear:"Input_buttonClear__Jms3r",deleteIcon:"Input_deleteIcon__WF3A_",message:"Input_message__p1olx",successMessage:"Input_successMessage__MVHSk",errorMessage:"Input_errorMessage__vEK6s",defaultMessage:"Input_defaultMessage___4koH"}},25710:e=>{e.exports={wrapper:"ProductNote_wrapper__hBrlo",icon:"ProductNote_icon___PV3D",text:"ProductNote_text__V1zk0"}},25844:(e,t,n)=>{"use strict";n.d(t,{bc:()=>r,yR:()=>l});let l={$:"Доллары","€":"Евро","\xa5":"Юани","₣":"Франки","\xa3":"Фунты","₽":"Рубли"},r="₽"},25894:e=>{e.exports={container:"LogosList_container__bc2rP",item:"LogosList_item__vooW3",itemNum:"LogosList_itemNum__rMoss",img:"LogosList_img___jWns"}},26794:()=>{},27588:e=>{e.exports={circle:"CircleChart_circle__upkpr"}},27734:e=>{e.exports={transportText:"TransportText_transportText__6qCkA",transportTextLink:"TransportText_transportTextLink__mjsqu"}},28625:(e,t,n)=>{"use strict";n.d(t,{px:()=>i});var l=n(81637),r=n(20447),a=n(95704);let i=async(e,t,n,i)=>{let{isNewApi:o=!1,isLKApi:s=!1,returningType:c="json",isCommonBlocksApi:u=!1,isMpScApi:d=!1,isProdCatApi:m=!1,isProductTagsApi:p=!1,isHeadlessCMS:_=!1,isSeoApi:h=!1,isMpSc:v=!1,isPageContent:f=!1,isMpScRedirects:g=!1}=null!=n?n:{},b=function(e,t){let{isNewApi:n,isLKApi:a,isCommonBlocksApi:i,isMpScApi:o,isProductTagsApi:s,isHeadlessCMS:c,isSeoApi:u,isMpSc:d,isPageContent:m,isMpScRedirects:p}=e;return i?r.q.COMMON_BLOCKS_API:a?r.q.LK_API:c?r.q.HEADLESS_CMS_API:m?r.q.PAGE_CONTENT_API:t?u?r.q.SEO_API:o?r.q.MP_SC_API:d?r.q.MP_SC_API_DIRECT:s?r.q.PRODUCT_TAGS_API:p?r.q.REDIRECTS_API:n?r.q.BFF_SHOWCASE_API:r.q.BACKEND_API:function(e){let{isMpScApi:t,isSeoApi:n,isNewApi:r,isProdCatApi:a,isProductTagsApi:i}=e;return(0,l.oq)("/deposits/api/proxy",t?"mpsc":r?"new":a?"prod-cat":n?"seo":i?"product-tags":"")}(e)}({isNewApi:o,isLKApi:s,isCommonBlocksApi:u,isMpScApi:d,isProdCatApi:m,isProductTagsApi:p,isHeadlessCMS:_,isSeoApi:h,isMpSc:v,isPageContent:f,isMpScRedirects:g},i),x=(0,l.oq)(b,e),y=null,C=null,N=0,k="";try{N=performance.now();let e=await fetch(x,{method:"GET",next:{revalidate:0},...t});if(k=e.status,!e.ok)throw Error("Network response was not ok: ".concat(k));y=await e[c]()}catch(e){console.log(x,e),C=e instanceof Error?e.message:"error"}finally{var A;null==(A=a.outgoingHTTPRequestHistogram)||A.labels((null==t?void 0:t.method)||"GET",e,String(k)).observe(Number(performance.now()-N))}return{data:y,error:C}}},28822:e=>{e.exports={hidden:"DepositDetailList_hidden__KV_vO",descriptionTitle:"DepositDetailList_descriptionTitle__IAYze",descriptionText:"DepositDetailList_descriptionText__8ipdy",descriptionTextAbout:"DepositDetailList_descriptionTextAbout__i_mOJ",descriptionLink:"DepositDetailList_descriptionLink__wgpdK",descriptionArrow:"DepositDetailList_descriptionArrow__HzBGo",question:"DepositDetailList_question__g3SOB",questionButton:"DepositDetailList_questionButton__CKVDO",questionIcon:"DepositDetailList_questionIcon__XszA8",questionIconOpened:"DepositDetailList_questionIconOpened__ywzhr",questionContent:"DepositDetailList_questionContent__mYW5B",questionContainer:"DepositDetailList_questionContainer__69HGM",questionContainerOpen:"DepositDetailList_questionContainerOpen__PocAN",rowItem:"DepositDetailList_rowItem__XrN6j",links:"DepositDetailList_links__aB_YJ",link:"DepositDetailList_link__p7LjO"}},30051:e=>{e.exports={linkWrapper:"CheckFullInfoLink_linkWrapper__8Ft0B",width:"CheckFullInfoLink_width__UQCKE",padding:"CheckFullInfoLink_padding__igPaU",link:"CheckFullInfoLink_link__VaFXA",icon:"CheckFullInfoLink_icon__n4rol",light:"CheckFullInfoLink_light__XIqI2"}},30954:e=>{e.exports={tooltipWrapper:"DeprecatedTooltip_tooltipWrapper__efWsY",clickedTooltip:"DeprecatedTooltip_clickedTooltip__dqSIp",tooltip:"DeprecatedTooltip_tooltip__c_Ytv",tooltipWrapperForPadding:"DeprecatedTooltip_tooltipWrapperForPadding__EfwrY",open:"DeprecatedTooltip_open__R9eNb",fade:"DeprecatedTooltip_fade__wSmny",close:"DeprecatedTooltip_close__8_fcP","fade-out":"DeprecatedTooltip_fade-out__pUhDp"}},32818:(e,t,n)=>{"use strict";n.d(t,{X:()=>r,u:()=>l});let l=80,r=56},34106:(e,t,n)=>{"use strict";n.d(t,{e:()=>h});var l,r,a=n(95155),i=n(2821),o=n(52619),s=n.n(o),c=n(12115);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}let d=function(e){return c.createElement("svg",u({width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=c.createElement("rect",{x:.5,width:24,height:24,rx:12,fill:"#F3F4F6"})),r||(r=c.createElement("path",{d:"m15.024 10.152-4.888-1.31a.667.667 0 0 1 .345-1.287l6.44 1.725a.667.667 0 0 1 .471.816l-1.725 6.44a.667.667 0 0 1-1.288-.345l1.31-4.887-6.771 3.914a.666.666 0 0 1-.914-.245.666.666 0 0 1 .245-.914l6.775-3.907Z",fill:"#525BBB"})))};var m=n(93757),p=n(30051),_=n.n(p);let h=(0,c.memo)(e=>{let{onClick:t,text:n,href:l,target:r,iconColor:o,mainPageUrl:u,offPadding:p,widthMaxContent:h,className:v,isCustomMarkup:f=!1}=e,g=(0,c.useCallback)(e=>l?(0,a.jsx)(s(),{onClick:e.onClick,href:l,target:r,...e}):(0,a.jsx)("button",{onClick:e.onClick,...e}),[l,r]);return(0,a.jsx)("div",{className:(0,i.A)(_().linkWrapper,{[_().padding]:!p,[_().width]:h},v),"data-testid":"check-full-info-link",onClick:()=>!f&&void(0,m._)({eventCategory:u,eventAction:m.y.link,eventActionText:n,eventLabel:l}),children:(0,a.jsxs)(g,{onClick:t,className:_().link,children:[n,(0,a.jsx)(d,{className:(0,i.A)(_().icon,{[_().light]:"light"===o})})]})})});h.displayName="CheckFullInfoLink"},35842:e=>{e.exports={container:"QrAd_container__yLnEu",title:"QrAd_title__S3p2q",titleSmall:"QrAd_titleSmall__fGZXO",right:"QrAd_right__52NGY",qrContainer:"QrAd_qrContainer__0QpkH",qr:"QrAd_qr__ZFMC6",button:"QrAd_button__ZHLy8",buttonMobile:"QrAd_buttonMobile__iOJYy",bgImage:"QrAd_bgImage__Q4PUa"}},35904:e=>{e.exports={select:"Select_select__qHl78",inputcontainer:"Select_inputcontainer__8qpYj",popup:"Select_popup__sKMm4",popupContent:"Select_popupContent__RX0ta",emptyList:"Select_emptyList__ZkMQz",optionsList:"Select_optionsList__rbK2g",optionsItem:"Select_optionsItem__DY7Ep",removeLineHeight:"Select_removeLineHeight__X1U_v",checkbox:"Select_checkbox__6Fbj0",active:"Select_active__APdCS",marker:"Select_marker__admU_",targetOptionsItem:"Select_targetOptionsItem__CxeQ9",selectedOptionsItem:"Select_selectedOptionsItem__SS_wE",icon:"Select_icon__TR1CN",iconRotate:"Select_iconRotate__yacvg",popupActions:"Select_popupActions__k1ZBr"}},35989:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});let l=e=>{let t=100,n=5e7;switch(e){case 1:t=1e3,n=5e7;break;case 4:n=5e6;break;case 6:n=5e5}return{from:t,to:n}}},38753:e=>{e.exports={footer:"DrawerFooter_footer__m6jFo",hasScroll:"DrawerFooter_hasScroll__bkIin"}},40599:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});let l={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},r=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();if(t in l){let n=l[t];return t===e?n:n.charAt(0).toUpperCase()+n.slice(1)}return e})},41105:(e,t,n)=>{"use strict";n.d(t,{Y:()=>f});var l=n(95155),r=n(2821),a=n(15239),i=n(12115);let o={src:"/deposits/_next/static/media/detailed-large.fea212bb.svg",height:24,width:24,blurWidth:0,blurHeight:0};var s=n(94370),c=n(98742),u=n(47650);let d=e=>{let{children:t}=e,[n]=(0,i.useState)(()=>document.createElement("div"));return((0,i.useEffect)(()=>(document.body.appendChild(n),()=>{document.body.removeChild(n)})),t)?(0,l.jsx)(l.Fragment,{children:(0,u.createPortal)(t,n)}):null};var m=n(30954),p=n.n(m);let _=e=>{let{children:t,text:n,offset:a=10,trigger:o="hover",tooltipClassName:s,selectSide:c,disabled:u}=e,[m,_]=(0,i.useState)(null),[h,v]=(0,i.useState)(null),[f,g]=(0,i.useState)(!0),b=(0,i.useRef)(null),x=(0,i.useRef)(null),y="click"===o,C=(0,i.useCallback)(()=>{g(!0),x.current=setTimeout(()=>{v(null)},200),window.removeEventListener("scroll",C,!1)},[]);(0,i.useEffect)(()=>{if(!n)return;let e=b.current;if(h&&e)return _((e=>{let{anchorElement:t,positioningElement:n,offset:l=0,selectSide:r=null}=e,a={top:"unset",right:"unset",left:"unset",bottom:"unset"},i=t.getBoundingClientRect(),o=n.getBoundingClientRect(),s=o.width,c=o.height,u=window.innerHeight,d=window.innerWidth,m=i.top,p=u-i.bottom,_=d-i.right,h=i.left,v=i.bottom,f=i.right,g=h+i.width/2,b=m+i.height/2,x=g-s/2,y=b-c/2,C=x<-l||x+s-l-10>d?_>h?0-l:d-s+l-16:x,N=y<-l||y+c-l-10>u?m<p?0-l:u-c+l-10:y,k=[{side:"bottom",priority:2,isFreeSpace:p>=c-l,position:{...a,top:"".concat(v,"px"),left:"".concat(C,"px")}},{side:"top",priority:3,isFreeSpace:m>=c-l,position:{...a,top:"".concat(m-c,"px"),left:"".concat(C,"px")}},{side:"right",priority:4,isFreeSpace:_>=s-l,position:{...a,left:"".concat(f,"px"),top:"".concat(N,"px")}},{side:"left",priority:5,isFreeSpace:h>=s-l,position:{...a,left:"".concat(h-s,"px"),top:"".concat(N,"px")}}];if(r){let e=k.find(e=>e.side===r);e&&(e.priority=1)}k.sort((e,t)=>e.priority-t.priority);let A=k.find(e=>e.isFreeSpace);if(A)a={...a,...A.position};else{let e=(e=>{let t=e.bottom,n="bottom";return Object.entries(e).forEach(e=>{let[l,r]=e;r>t&&(t=r,n=l)}),n})({top:m-c,bottom:p-c,right:_-s,left:h-s}),t=k.find(t=>t.side===e);t&&(a={...a,...t.position})}return a})({anchorElement:h,positioningElement:e,offset:a,selectSide:c})),()=>{v(null),x.current&&clearTimeout(x.current),window.removeEventListener("scroll",C,!1)}},[h,n,C,a,f,c]);let N=e=>({onMouseEnter:t=>{(null==e?void 0:e.onMouseEnter)&&e.onMouseEnter(t),y||u||(g(!1),v(t.currentTarget),window.addEventListener("scroll",C,!1))},onClick:t=>{(null==e?void 0:e.onClick)&&e.onClick(t),y&&!u&&(g(!1),v(t.currentTarget),window.addEventListener("scroll",C,!1))}}),k=()=>{g(!0),x.current=setTimeout(()=>{v(null)},300)},A="string"!=typeof t&&"number"!=typeof t?(0,i.createElement)(t.type,{...t.props,...N(t.props)}):(0,i.createElement)("span",{children:t,...N()}),w=e=>{var t;h===e.target||(null==h?void 0:h.contains(e.target))||e.target===b.current||(null==(t=b.current)?void 0:t.contains(e.target))||k()};return(0,i.useEffect)(()=>(y||(f?window.removeEventListener("mousemove",w):window.addEventListener("mousemove",w)),()=>{window.removeEventListener("mousemove",w)}),[h,w,f]),(0,l.jsxs)(l.Fragment,{children:[h&&n?(0,l.jsx)(d,{children:(0,l.jsx)("div",{className:(0,r.A)(p().tooltipWrapper,{[p().clickedTooltip]:y}),onClick:()=>{y&&k()},children:(0,l.jsx)("div",{ref:b,className:(0,r.A)(p().tooltipWrapperForPadding,{[p().open]:h,[p().close]:f}),style:{padding:a,...m},children:(0,l.jsx)("div",{className:(0,r.A)(p().tooltip,s),children:n})})})}):null,A]})};_.displayName="Tooltip";var h=n(58047),v=n.n(h);let f=(0,i.memo)(e=>{let{text:t,className:n,tooltipClassName:u,iconSrc:d=o,iconClassName:m,children:p,withDisabledScroll:h,trigger:f="click",icon:g,iconPlacement:b="right",asTrigger:x,onOpen:y,onClose:C}=e,[N,k]=(0,i.useState)(!1),A=null!=x?x:"button",w=(0,i.useCallback)(()=>{k(e=>(e||null==y||y(),!e))},[y]),T=(0,i.useCallback)(()=>{k(!1),null==C||C()},[C]),S=null!=g?g:d&&(0,l.jsx)(a.default,{unoptimized:!0,className:(0,r.A)(v().icon,m),src:d,alt:"detailed"}),j="left"===b;return(0,l.jsxs)("div",{"data-testid":"tip-component",children:[(0,l.jsx)(_,{trigger:f,tooltipClassName:u,selectSide:"bottom",text:"string"==typeof t?(0,l.jsx)("span",{className:v().content,dangerouslySetInnerHTML:{__html:t}}):(0,l.jsx)("span",{className:v().content,children:t}),children:(0,l.jsxs)(A,{"data-testid":"button-tip-click-on-open",className:(0,r.A)(v().button,n),onClick:y,children:[j&&S," ",p," ",!j&&S]})}),(0,l.jsxs)(A,{"data-testid":"button-tip-click-toggle-modal",onClick:w,className:(0,r.A)(v().buttonMobile,n),children:[j&&S," ",p," ",!j&&S]}),(0,l.jsx)(s.Z,{children:(0,l.jsx)(c.LV,{withDisabledScroll:h,className:v().popup,isOpen:N,onClose:T,children:"string"==typeof t?(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t}}):t})})]})});f.displayName="Tip"},44154:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});var l=n(28625);let r=e=>(0,l.px)("/api/v1/customer/personalization/features/".concat(e),null,{isNewApi:!0})},44653:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var l=function(e){return e.PreferentialRateForWholeTerm="PREFERENTIAL_RATE_FOR_WHOLE_TERM",e.WithoutRecalculationOfInterest="WITHOUT_RECALCULATION_OF_INTEREST",e}(l||{});let r=l},46828:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var l=function(e){return e.Day="day",e.Month="month",e.Year="year",e}(l||{});let r=l},48343:e=>{e.exports={wrapper:"DepositDetailChart_wrapper__GOWVj",chart:"DepositDetailChart_chart__Im8_w",chartValues:"DepositDetailChart_chartValues__9FWkP",chartResult:"DepositDetailChart_chartResult__ao17H",legend:"DepositDetailChart_legend__zWzbi",legendItem:"DepositDetailChart_legendItem__RuoKF",legendColor:"DepositDetailChart_legendColor__hd1uZ",legendTitle:"DepositDetailChart_legendTitle__sh_nn",legendValue:"DepositDetailChart_legendValue__ldDYv"}},50599:e=>{e.exports={window:"DrawerLayout_window__4vdv1"}},51442:(e,t,n)=>{"use strict";n.d(t,{OR:()=>r,ub:()=>a});var l=n(61126);let r=()=>{if("undefined"!=typeof document&&document.cookie)return Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=")).map(e=>e.map(e=>(e=>('"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)))(e))))},a=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,r=(0,l.env)("NEXT_PUBLIC_BASE_URL");if(!r)throw Error("Не определена переменная окружения NEXT_PUBLIC_BASE_URL");let a=window.location.host.indexOf("localhost")>=0?"":"; domain=".concat(["",...r.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join(".")),i=new Date(new Date().getTime()+24*n*36e5).toUTCString();document.cookie="".concat(encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[(]/g,"%28").replace(/[)]/g,"%29"),"=").concat(encodeURIComponent("string"==typeof t?t:JSON.stringify(t)).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent),"; SameSite=Strict").concat(/^https:\/\//gi.test(r)?"; Secure":"").concat(a,"; expires=").concat(i,"; path=/;")}},51741:(e,t,n)=>{"use strict";n.d(t,{D:()=>r,E:()=>l});var l=function(e){return e.conditions="conditions",e.about="about",e.questions="questions",e.tarifs="tarifs",e.offers="offers",e}({});let r=[{id:1,label:"Условия",name:"conditions"},{id:4,label:"Тарифы",name:"tarifs"},{id:2,label:"О банке",name:"about"},{id:3,label:"Вопросы и ответы",name:"questions"},{id:5,label:"Другие предложения",name:"offers"}]},54319:(e,t,n)=>{"use strict";n.d(t,{e:()=>l});let l=function(e){let{offset:t=0,position:n="bottom",delay:l=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};setTimeout(()=>{let l="string"==typeof e?document.getElementById(e):e;if(!l)return;let r=0;r="top"===n?l.getBoundingClientRect().top+window.scrollY+t:l.getBoundingClientRect().bottom+window.scrollY+t-document.documentElement.clientHeight,window.scrollTo({top:r,behavior:"smooth"})},l)}},54491:e=>{e.exports={action:"DepositDetailAction_action__uq_W_",icon:"DepositDetailAction_icon__2EZ7d"}},55921:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var l=n(13860),r=n(32818);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=(0,l.qF)("m"),i=(0,l.qF)("l");return n?a?-(r.u+(i?e:t)):-(r.X+t):i?-e:-t}},56764:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});let l={src:"/deposits/_next/static/media/chart.daf7390a.svg",height:48,width:48,blurWidth:0,blurHeight:0}},58047:e=>{e.exports={popup:"Tip_popup__8fMO9",button:"Tip_button__g5mPA",icon:"Tip_icon__zTERB",buttonMobile:"Tip_buttonMobile__OTn9W",content:"Tip_content__ab_0d"}},58924:(e,t,n)=>{"use strict";n.d(t,{C1:()=>l,xU:()=>r});let l=n(95704).env.NEXT_PUBLIC_BASE_URL||"https://finuslugi.ru",r=["sberbank","vtb","sovcombank","rosselhozbank","gazprombank","alfabank","promsvyazbank","tbank","mkb","pochta_bank"]},59817:(e,t,n)=>{"use strict";n.d(t,{R:()=>a});var l=n(12115),r=n(88475);let a=e=>{let{length:t,isActive:n=!0,gap:a=12,rows:i=1}=e,[o,s]=(0,l.useState)(!1),c=(0,l.useRef)([]),u=(0,l.useRef)(null),d=(0,l.useRef)(null),m=(0,l.useRef)(()=>null),p=(0,l.useRef)(0),[_,h]=(0,l.useState)(t),v=(0,l.useRef)((0,r.O)(700)),f=(0,l.useCallback)(()=>{s(!1),setTimeout(()=>{var e,n;let l=null!=(n=null==(e=d.current)?void 0:e.getBoundingClientRect().width)?n:0,r=1,o=0,u=0;for(let e=0;e<=c.current.length;e++){let t=c.current[e];if(!t)continue;let n=t.getBoundingClientRect().width+a;if(n>=l&&(n=l),(o+=n)>=l*r){if(r>=i){o-=n;break}o>l*r&&(o+=l*r-(o-n)),r++}u++}s(t>u),h(u),p.current=o})},[a,t,i]);return(0,l.useEffect)(()=>{if(window.removeEventListener("resize",m.current),n)return m.current=()=>v.current(f),m.current(),window.addEventListener("resize",m.current),()=>window.removeEventListener("resize",m.current)},[f,n]),(0,l.useEffect)(()=>{if(o){var e,t,n,l;let r=(null!=(n=null==(e=d.current)?void 0:e.getBoundingClientRect().width)?n:0)*i,o=(null!=(l=null==(t=u.current)?void 0:t.getBoundingClientRect().width)?l:0)+p.current-r;o>0&&h(e=>{let t=0;for(let n=e;n>=0;n--){let e=c.current[n],l=null==e?void 0:e.getBoundingClientRect().width;if(e&&l&&(t++,(o-=l+a)<=0))break}return e-t})}},[a,o,i]),{isOverflow:o,minLength:_,chipsRef:c,buttonRef:u,containerRef:d,handleCompute:f}}},60497:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});let l={src:"/deposits/_next/static/media/like.cbfb0fe7.svg",height:16,width:16,blurWidth:0,blurHeight:0}},63031:e=>{e.exports={container:"TextOverflow_container__5IiXl",containerOverflow:"TextOverflow_containerOverflow__DgbX6",containerOpen:"TextOverflow_containerOpen__kA_JK",button:"TextOverflow_button__y5lCH"}},68551:e=>{e.exports={valueText:"RowItem_valueText__LXpQ7",row:"RowItem_row__vgB3X",listItem:"RowItem_listItem__eNlXk",mediumRow:"RowItem_mediumRow__vU0sj",rowLabel:"RowItem_rowLabel__O_g3i",tooltip:"RowItem_tooltip__A1WaC",iconTooltip:"RowItem_iconTooltip__wiKEA",rowValue:"RowItem_rowValue__5_W1S",linkValue:"RowItem_linkValue__Metgd",labelText:"RowItem_labelText__9zSW4",attributeComment:"RowItem_attributeComment__u_JpF"}},69163:(e,t,n)=>{"use strict";n.d(t,{V:()=>c,z:()=>d});var l=n(1591),r=n(98591),a=n(35989),i=n(89910),o=n(73520);let s=Object.freeze({from:9999,to:9999999999.99}),c=function(e){var t,n;let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return[];let o=(0,r.O)(e.currency_id),s=(0,a.U)(e.currency_id),c=(null!=(n=null==e||null==(t=e.interest_rate)?void 0:t.rates)?n:[]).map(e=>{var t,n;return{from:Math.floor(null!=(t=e.amount_from)?t:s.from),to:Math.floor(null!=(n=e.amount_to)?n:s.to)}}).sort((e,t)=>e.from-t.from);return c.filter((e,t)=>c.findIndex(t=>e.from===t.from)===t).map(t=>{let n=e.interest_rate.rates.filter(e=>e.amount_from===t.from),r=n.sort((e,t)=>(e.term_from||e.term_to)-(t.term_from||t.term_to)),a=Math.max(...n.map(e=>e.rate)),s=r.map((e,t)=>({id:t,value:e.rate,max:a,label:u(e.term_from,e.term_to)})),c=((e,t,n)=>{if(n){let n={preventLargeNumbers:!0,hasCurrencySymbol:!1},r=(0,l.up)(e.from,n);return e.to?"".concat(r," — ").concat((0,l.up)(e.to,n),"\xa0").concat(t.unit):"от ".concat(r,"\xa0").concat(t.unit)}return e.to?"".concat((0,l.up)(e.from,{preventLargeNumbers:!0,hasCurrencySymbol:!1})," — ").concat((0,l.up)(e.to,{preventLargeNumbers:!0,currencyCode:t.code})):"от ".concat((0,l.up)(e.from,{preventLargeNumbers:!0}))})(t,o,i);return{id:t.from,to:t.to,from:t.from,label:c,rates:s}})},u=(e,t)=>{let n=t>e?[e,t]:[e];return"".concat(!t?"от":""," ").concat(n.join(" - ")," ").concat(t?(0,o.td)(n[n.length-1],"день","дня","дней"):(0,o.td)(n[n.length-1],"дня","дней","дней"))},d=e=>{var t;if(!e)return[];let n=(null==(t=e.options)?void 0:t.filter(e=>null==e?void 0:e.active))||[];return(e=>{var t;return null==(t=e[0])?void 0:t.currencies[0].rates.map(e=>{var t,n;return{from:null!=(t=e.minimumAmount)?t:s.from,to:null!=(n=e.maximumAmount)?n:s.to}}).reduce((e,t)=>{let n=e[e.length-1];return(null==n?void 0:n.from)===t.from&&(null==n?void 0:n.to)===t.to?e:[...e,t]},[])})(n).map((e,t)=>({id:t,to:e.to,from:e.from,label:"".concat((0,i.jq)(e.from)," ").concat("— ".concat((0,i.jq)(e.to))," ₽"),rates:n.length>1?((e,t)=>(e.sort((e,n)=>{var l,r,a,i;return(null!=(a=null==(l=e.currencies[0].rates[t].maximumPeriod)?void 0:l.value)?a:0)-(null!=(i=null==(r=n.currencies[0].rates[t].maximumPeriod)?void 0:r.value)?i:0)}),e.map((e,n)=>{var l,r,a;let i="дн.";return(null==(l=e.currencies[0].rates[t].maximumPeriod)?void 0:l.type)==="MONTH"&&(i="мес."),(null==(r=e.currencies[0].rates[t].maximumPeriod)?void 0:r.type)==="YEAR"&&(i="г."),{id:n,value:null!=(a=e.currencies[0].rates[t].maximumRate)?a:"",max:16,label:((e,t,n)=>{var l,r,a,i,o,s,c;return"".concat(null!=(s=null==(l=e.currencies[0].rates[n].minimumPeriod)?void 0:l.value)?s:1," ").concat((null==(r=e.currencies[0].rates[n].minimumPeriod)?void 0:r.value)===(null==(a=e.currencies[0].rates[n].maximumPeriod)?void 0:a.value)||(null==(i=e.currencies[0].rates[n].maximumPeriod)?void 0:i.value)===0?"":" - ".concat(null!=(c=null==(o=e.currencies[0].rates[n].maximumPeriod)?void 0:o.value)?c:"")," ").concat(t)})(e,i,t)}})))(n,t):(e=>{var t;return null==(t=e[0])?void 0:t.currencies[0].rates.map((e,t)=>{var n,l,r;let a="дн.";return(null==(n=e.maximumPeriod)?void 0:n.type)==="MONTH"&&(a="мес."),(null==(l=e.maximumPeriod)?void 0:l.type)==="YEAR"&&(a="г."),{id:t,value:null!=(r=e.maximumRate)?r:"",max:16,label:((e,t)=>{var n,l,r,a,i,o,s;return"".concat(null!=(o=null==(n=e.minimumPeriod)?void 0:n.value)?o:1," ").concat((null==(l=e.minimumPeriod)?void 0:l.value)===(null==(r=e.maximumPeriod)?void 0:r.value)||(null==(a=e.maximumPeriod)?void 0:a.value)===0?"":" - ".concat(null!=(s=null==(i=e.maximumPeriod)?void 0:i.value)?s:"")," ").concat(t)})(e,a)}})})(n)}))}},69597:(e,t,n)=>{"use strict";n.d(t,{d:()=>d});var l=n(95155),r=n(76048),a=n(53548),i=n(2821),o=n(12115),s=n(54319),c=n(75355),u=n.n(c);let d=e=>{let{isOpen:t,className:n,direction:c="vertical",style:d={},scrollTo:m,isMobile:p,isMoreVisible:_=!1,isAnimationDisabled:h=!1,onOpen:v,...f}=e,g=(0,o.useRef)(()=>null),b=(0,o.useRef)(null),[x,y]=(0,o.useState)(t?"auto":0),[C,N]=(0,o.useState)(null),[k,A]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{if(b.current&&clearTimeout(b.current),g.current&&window&&window.removeEventListener("resize",g.current),g.current=()=>{t&&C?(y("vertical"===c?C.scrollHeight:C.scrollWidth),b.current=setTimeout(()=>{A(!1)},300)):t||(A(!0),b.current=setTimeout(()=>{y(0)}))},g.current(),m&&t&&C&&(0,s.e)(C,{offset:64,position:"bottom"}),window)return window.addEventListener("resize",g.current),()=>window.removeEventListener("resize",g.current)},[c,C,t,m]),(0,l.jsxs)("div",{className:(0,i.A)(u().wrapper,h&&u().disableAnimation),children:[(0,l.jsx)("div",{role:"collapse-container",ref:N,className:(0,i.A)(u().container,(k||!t)&&u().containerHidden,n),style:{...d,["vertical"===c?"height":"width"]:!k&&t?"auto":x},"data-testid":"collapse-container",...f}),_&&p&&(0,l.jsx)(a.$,{className:u().button,label:t?"Свернуть":"Подробнее",onClick:v,size:"xs",variant:"secondary",iconRight:(0,l.jsx)(r.j8g,{className:(0,i.A)(u().icon,t&&u().expanded)}),stretch:!0})]})}},72964:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});var l=n(12115),r=n(89910),a=n(73520);let i=function(){let{type:e="text",unit:t,format:n,defaultValue:i="",maxLength:o=-1,maxFractionalLength:s=-1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[c,u]=(0,l.useState)(i),d=(0,l.useRef)(c),[m,p]=(0,l.useState)(!1),_=(0,l.useCallback)((t,n)=>{"function"==typeof t&&(t=t(d.current));let l=String(t);if(!(o>-1)||!(l.length>o)){if(["int","float"].includes(e)){var r;if(isNaN(+t)||"int"===e&&l.includes(".")||"0"===l||l.includes(" ")||s>-1&&(null==(r=l.split(".")[1])?void 0:r.length)>s)return}d.current=l,u(l),null==n||n(l)}},[s,o,e]),h=(0,l.useMemo)(()=>({onChange:e=>_(e.currentTarget.value),onFocus:()=>p(!0),onBlur:()=>p(!1)}),[_]),v=(0,l.useMemo)(()=>{let l=c;"currency"===n&&["int","float"].includes(e)&&""!==c&&(l=(0,r.jq)(+c));let i=(()=>{if(""===l)return"";switch(t){case"year":return(0,a.td)(+c,"год","года","лет");case"day":return(0,a.td)(+c,"день","дня","дней");default:return t||""}})();return i&&["int","float"].includes(e)?"".concat(l," ").concat(i):l},[n,e,t,c]);return(0,l.useMemo)(()=>({events:h,value:c,formattedValue:v,isFocused:m,handleChange:_}),[h,v,_,m,c])}},73492:e=>{e.exports={wrap:"Dropdown_wrap__9odPy",newSortRadioWrap:"Dropdown_newSortRadioWrap__l_cRQ",content:"Dropdown_content__LuEzF"}},73520:(e,t,n)=>{"use strict";n.d(t,{Ig:()=>a,l6:()=>r,td:()=>l});let l=(e,t,n,l)=>{if(1!=Math.floor((e=Math.abs(e))/10)%10){if(1==(e%=10))return t;if(e>=2&&e<=4)return n}return l},r=(e,t)=>{let[n,r,a]=t;return"".concat(e," ").concat(l(e,n,r,a))},a=(e,t,n)=>e>1?"".concat(l(e,...t)," ").concat(e," ").concat(l(e,...n)):"".concat(l(e,...t)," ").concat(l(e,...n))},73665:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});let l={src:"/deposits/_next/static/media/share.eccc37fd.svg",height:16,width:16,blurWidth:0,blurHeight:0}},75006:e=>{e.exports={chipsContainer:"ProductsChips_chipsContainer__AEjRu",chipsContainerClosed:"ProductsChips_chipsContainerClosed__QgNFG",chip:"ProductsChips_chip___iDHM",chipArrow:"ProductsChips_chipArrow__SdU_d",chipButton:"ProductsChips_chipButton__Dw7MF",chipSearch:"ProductsChips_chipSearch__GifVT",chipButtonElement:"ProductsChips_chipButtonElement__Ue38s",search:"ProductsChips_search__zeKMP",searchLink:"ProductsChips_searchLink__tFf6p"}},75241:(e,t,n)=>{"use strict";n.d(t,{s:()=>l});let l=e=>isNaN(e.getTime())?"":new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long",year:"numeric"}).format(e)},75355:e=>{e.exports={wrapper:"CollapseContainer_wrapper__STKqz",container:"CollapseContainer_container__Em2u9",containerHidden:"CollapseContainer_containerHidden__AFhLa",disableAnimation:"CollapseContainer_disableAnimation__bHHyL",icon:"CollapseContainer_icon__2EAe0",expanded:"CollapseContainer_expanded__qF596",button:"CollapseContainer_button__acaCR"}},75722:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var l=function(e){return e.EveryDay="everyDay",e.Weekly="weekly",e.OnceAMonth="onceAMonth",e.Quarterly="quarterly",e.Semiannually="semiannually",e.Annually="annually",e.InTheEnd="inTheEnd",e.SpecifiedPeriodInDays="specifiedPeriodInDays",e}(l||{});let r=l},76608:e=>{e.exports={bankInformation:"BankInfo_bankInformation__ORnx7",bankInformationContent:"BankInfo_bankInformationContent__ycvd6",header:"BankInfo_header__2_UU9",logoWrapper:"BankInfo_logoWrapper__P7Ejz",icon:"BankInfo_icon__9FOay",bankTitle:"BankInfo_bankTitle__5vWcy",bankText:"BankInfo_bankText___Tgya",bankLink:"BankInfo_bankLink__TNXvu"}},76911:e=>{e.exports={container:"DepositDetailParams_container__1sIcd",isCollapsed:"DepositDetailParams_isCollapsed__fpQlx",combo:"DepositDetailParams_combo__K9R6y",title:"DepositDetailParams_title__5NvXj",wrapper:"DepositDetailParams_wrapper__G1SSB",fullWidth:"DepositDetailParams_fullWidth__Win5f",rates:"DepositDetailParams_rates__Ba8PO",disclaimer:"DepositDetailParams_disclaimer__5c3KT",chips:"DepositDetailParams_chips__yOSsp",ratesTitle:"DepositDetailParams_ratesTitle__D4N3F",infographic:"DepositDetailParams_infographic__bKLPO",tabContent:"DepositDetailParams_tabContent__y1Gbk",desktop:"DepositDetailParams_desktop__qtA2T",mobile:"DepositDetailParams_mobile__rsgnB",question:"DepositDetailParams_question__YQHhn",questionButton:"DepositDetailParams_questionButton__1A_ef",questionIcon:"DepositDetailParams_questionIcon__0r7x4",questionIconOpened:"DepositDetailParams_questionIconOpened__NxgSF",questionContent:"DepositDetailParams_questionContent__fFJ50",questionContainer:"DepositDetailParams_questionContainer___raeq",questionContainerOpen:"DepositDetailParams_questionContainerOpen__yWWxi",descriptionTitle:"DepositDetailParams_descriptionTitle__ff22s",descriptionText:"DepositDetailParams_descriptionText__GqlFn",descriptionTextAbout:"DepositDetailParams_descriptionTextAbout__VRaQv",descriptionLink:"DepositDetailParams_descriptionLink__Rwu09",descriptionArrow:"DepositDetailParams_descriptionArrow__Hkxh0",ad:"DepositDetailParams_ad__7i_Kk",inviteFriends:"DepositDetailParams_inviteFriends__HqPwt",list:"DepositDetailParams_list__S7rpZ",hidden:"DepositDetailParams_hidden__DQgId",bankInformation:"DepositDetailParams_bankInformation__veFcw",bankInformationContent:"DepositDetailParams_bankInformationContent__5K4lu",header:"DepositDetailParams_header__Kp1Cm",logoWrapper:"DepositDetailParams_logoWrapper__04Aa1",icon:"DepositDetailParams_icon__iskGi",bankTitle:"DepositDetailParams_bankTitle__zh6TZ",bankText:"DepositDetailParams_bankText__pcW6F",bankLink:"DepositDetailParams_bankLink__5Ei4o",rowItem:"DepositDetailParams_rowItem__F2PAS",collapseButton:"DepositDetailParams_collapseButton__6UK5x",collapseArrow:"DepositDetailParams_collapseArrow__VQ_kb",inverted:"DepositDetailParams_inverted__icISO"}},77944:e=>{e.exports={wrapper:"Notification_wrapper__xVzWl",light:"Notification_light__M1pz_",container:"Notification_container__Ygmh5",XS:"Notification_XS__Hltc3",description:"Notification_description__BkFhx",XL:"Notification_XL__F9ozQ",icons:"Notification_icons__7s_C7",title:"Notification_title__Ht7gB",caption:"Notification_caption___MPpo",link:"Notification_link__3deBI",time:"Notification_time__2E_rR",info:"Notification_info__7n4u2",success:"Notification_success__FzDM7",warning:"Notification_warning__6zLiR",danger:"Notification_danger__2pYhR",close:"Notification_close__t0_Hw"}},79131:e=>{e.exports={ratesTable:"DetailCollapseContent_ratesTable__r8VIC",progress:"DetailCollapseContent_progress__dsqce"}},79762:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});let l={src:"/deposits/_next/static/media/add-to-list.4c5b9b95.svg",height:16,width:16,blurWidth:0,blurHeight:0}},84663:(e,t,n)=>{"use strict";n.d(t,{e:()=>J});var l=n(95155),r=n(95633),a=n(2821),i=n(15239),o=n(12115),s=n(99795),c=n(4678),u=n(1591),d=n(83745),m=n(76720),p=n(69465),_=n(69597),h=n(20447),v=n(94370),f=n(98742),g=n(99508),b=n.n(g);let x=e=>{let{isOpenModal:t,title:n,content:r,onClose:i,isMobile:o,isCombo:s}=e,c={className:b().mobilePopup,contentClassName:(0,a.A)(s&&!o&&b().combo),isOpen:t,onClose:i};return(0,l.jsx)(v.Z,{children:(e=>s&&!o?(0,l.jsx)(f._s,{...c,children:e}):(0,l.jsx)(f.LV,{...c,children:e}))((0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{className:b().title,children:n}),(0,l.jsx)("div",{children:r})]}))})};var y=n(660),C=n.n(y);let N=(0,o.memo)(e=>{let{tabsList:t,getActiveElementClick:n,iconArrow:r}=e;return(0,l.jsx)("ul",{className:C().tabsList,children:t.map(e=>(0,l.jsxs)("li",{className:C().tabItem,onClick:()=>n(e.id),children:[e.label,(0,l.jsx)(i.default,{src:r,alt:"иконка",width:"16",height:"16",unoptimized:!0})]},e.id))})});N.displayName="MobileTabs";var k=n(51741),A=n(76911),w=n.n(A),T=n(69163),S=n(19559),j=n(40599),L=n(79131),E=n.n(L);function I(e){var t,n;let r,{isMkbNakop:i,isMobile:s,activeTab:c,wrapperClassName:v,tabsList:f,setActiveTab:g,isCollapsed:b,withNewMarkup:y,eventCategory:C,data:A,getListContent:L,iconArrow:I,bettingTableTitle:P,amount:D,isOpenQuestion:R,activeQuestionIndex:M,questions:O,isCombo:B,offers:F}=e,q=(0,o.useMemo)(()=>(0,T.V)(A),[A]),[U,H]=(0,o.useState)(!1),[W,X]=(0,o.useState)(q[0]),z=f.filter(e=>e.name!==k.E.offers||(null==F?void 0:F.length));(0,o.useEffect)(()=>{let e=q.find(e=>e.from<=D&&null!==e.to&&e.to>=D);e&&X(e)},[q,D]);let Y=(0,o.useCallback)(e=>{let t=q.find(t=>{let{id:n}=t;return n===e});if(t){let e=(0,j.y)(t.label);X(t),(0,S.oA)({event:"data-event",eventAction:y?"click_chips_parameters_".concat(e):"click_button_".concat(e),eventCategory:C,eventLabel:A.id})}},[A.id,C,q,y]),G=e=>{var t;let n=null!=(t=z.find(t=>t.id===e))?t:z[0];g(n);let l=(0,j.y)(n.label);(0,S.oA)({event:"data-event",eventAction:y?"click_tab_"+l:"click_link_".concat(l),eventCategory:C,eventLabel:A.id}),(s||B)&&(H(!0),y&&(0,S.oA)({event:"data-event",eventAction:"show__popup__"+l,eventCategory:C,eventLabel:A.id}))},V=(0,o.useCallback)(()=>{y&&(0,S.oA)({eventAction:"click__icon__close__"+(0,j.y)(c.label),eventCategory:C,eventLabel:A.id}),H(!1)},[c,A.id,C,y]),{FEATURE_TOGGLE_DEPOSIT_DETAIL_NEW_DESIGN_ENABLED:K}=h.q;return(0,l.jsxs)(_.d,{isOpen:!b,children:[(0,l.jsxs)("div",{className:(0,a.A)(w().wrapper,i&&c.name!==k.E.questions&&w().fullWidth,v),children:[(0,l.jsxs)("div",{className:w().desktop,children:[(0,l.jsx)(m.t,{tabs:z,activeTabId:c.id,onTabChange:G,className:w().tabsList}),(0,l.jsx)("div",{className:w().tabContent,children:z.map(e=>{let{name:t}=e;return L(t,F)})})]}),(0,l.jsxs)("div",{className:w().mobile,children:[(0,l.jsx)(N,{tabsList:z,getActiveElementClick:G,iconArrow:I}),(0,l.jsx)(x,{title:c.label,content:L(c.name,F),isOpenModal:U,isMobile:s,isCombo:B,onClose:V})]}),(c.name===k.E.conditions||!s)&&(0,l.jsxs)("div",{className:w().rates,children:[!i&&q.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h4",{className:w().ratesTitle,children:P}),(0,l.jsx)(d.C,{className:w().chips,chips:q,value:W.id,onChipClick:Y,size:K?"s":"m"}),(0,l.jsx)("table",{className:E().ratesTable,children:(0,l.jsx)("tbody",{children:W.rates.map(e=>(0,l.jsxs)("tr",{children:[(0,l.jsxs)("td",{children:[(0,l.jsx)("div",{className:E().progress,style:{width:"".concat(100*Number(e.value)/e.max,"%")}}),(0,l.jsx)(p.E,{weight:"medium",children:(0,u.CE)(e.value)})]}),(0,l.jsx)("td",{children:(0,l.jsx)(p.E,{weight:"medium",children:e.label})})]},e.id))})})]}),!B&&!s&&-1!==M&&(0,l.jsx)("div",{className:(0,a.A)(w().questionContainer,R&&w().questionContainerOpen),children:(r=O[M],(0,l.jsx)("div",{className:w().questionContent,children:r.text.map((e,t)=>({...e,id:t})).map(e=>(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e.data.html}},e.id))}))})]})]}),A.m_updated_at&&(0,l.jsxs)("p",{className:w().disclaimer,children:["Информация о вкладе обновлена: ",null==(n=A.m_updated_at.split("-"))||null==(t=n.reverse())?void 0:t.join(".")]})]})}var P=n(42195),D=n(63031),R=n.n(D);let M=e=>{let{maxHeight:t=300,className:n,style:r,children:i,...s}=e,[c,u]=(0,o.useState)(t),[d,m]=(0,o.useState)(!1),p=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e=()=>{p.current&&p.current.scrollHeight>t&&m(!0)};return e(),window&&window.addEventListener("resize",e),window.removeEventListener("resize",e)},[t]),(0,l.jsxs)("div",{...s,ref:p,className:(0,a.A)(R().container,{[R().containerOverflow]:d,[R().containerOpen]:d&&c===t},n),style:{height:d?c:"auto",...r},children:[i,d&&(0,l.jsx)("button",{className:R().button,onClick:()=>{u(e=>e===t?"auto":t)},children:c===t?"Показать ещё":"Скрыть"})]})};var O=n(41105),B=n(68551),F=n.n(B);let q=e=>{let{text:t,title:n}=e;return(0,l.jsxs)(M,{className:F().valueText,children:[n&&(0,l.jsx)("p",{dangerouslySetInnerHTML:{__html:n}}),t&&(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:t}})]})},U=e=>{var t,n,r;let{size:i="m",containerClassName:s,onTooltipClick:c,tipIcon:u,...d}=e,m=Array.isArray(d.value)?d.value.filter(e=>"string"==typeof e&&e.length):[],p=d.value?Array.isArray(d.value)?d.value.filter(e=>"object"==typeof e&&e):[d.value].filter(e=>{var t,n;return"object"==typeof e&&e&&((null==(t=e.text)?void 0:t.length)||(null==(n=e.title)?void 0:n.length))}):null;return("string"==typeof d.value?d.value.length:m.length||(null==p?void 0:p.length))?(0,l.jsxs)("li",{className:(0,a.A)(F().row,{[F().mediumRow]:"m"===i},s),children:[(null==(t=d.label)?void 0:t.length)?(0,l.jsx)("div",{className:F().rowLabel,children:(null==(n=d.toolltip)?void 0:n.length)?(0,l.jsx)(O.Y,{text:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:d.toolltip}}),iconClassName:F().iconTooltip,tooltipClassName:F().tooltip,className:F().tooltipContent,onOpen:()=>null==c?void 0:c(d.label,d.value),icon:u,children:d.label},d.label):(0,l.jsx)(M,{className:F().valueText,children:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:d.label.charAt(0).toUpperCase()+d.label.slice(1)}})})}):null,(0,l.jsxs)("div",{className:F().rowValue,children:["string"==typeof d.value&&d.value.length>0&&(0,l.jsx)(M,{className:(0,a.A)(F().valueText,{[F().linkValue]:(e=>!!(e.includes("https://")&&e.includes("</a>")))(d.value)}),children:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:d.value}})}),m.length&&m.length>1?(0,l.jsx)("ul",{children:m.map(e=>e&&(0,l.jsx)("li",{className:F().listItem,children:(0,l.jsx)(M,{children:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})})},e))}):(null==(r=m[0])?void 0:r.length)?(0,l.jsx)(M,{className:F().valueText,children:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:m[0]}})}):null,p&&!!p.length&&(0,l.jsx)("ul",{children:p.map(e=>e&&(0,l.jsx)(o.Fragment,{children:(0,l.jsx)(q,{...e})},e.title||e.text))}),d.attributeComment&&(0,l.jsx)("div",{className:F().attributeComment,dangerouslySetInnerHTML:{__html:d.attributeComment}})]})]},d.text||d.label||JSON.stringify(d.value)):null};var H=n(34106),W=n(89264),X=n(58924),z=n(76608),Y=n.n(z);function G(e){var t;let{company:n,hideExternalLinks:r,withNewMarkup:a,isMobile:o,handleClickLink:s}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:Y().bankInformation,children:(0,l.jsxs)("div",{className:Y().bankInformationContent,children:[(0,l.jsxs)("div",{className:Y().header,children:[n.logo_mob&&(0,l.jsx)("div",{className:Y().logoWrapper,children:(0,l.jsx)(i.default,{className:Y().icon,src:n.logo_mob,width:o?24:32,height:o?24:32,alt:"logo bank"})}),(0,l.jsx)("h5",{className:Y().bankTitle,children:n.name})]}),(0,l.jsx)("p",{className:Y().bankText,dangerouslySetInnerHTML:{__html:null!=(t=n.short_description)?t:""}})]})}),!r&&(0,l.jsx)(H.e,{offPadding:!0,className:Y().bankLink,text:"Перейти к полному досье",href:"".concat(X.C1,"/banki/").concat(n.url),target:"_self",iconColor:"light",mainPageUrl:W.UZ.VKLADY,isCustomMarkup:a,onClick:s})]})}var V=n(28822),K=n.n(V);function Q(e){var t;let{tabsContent:n,name:r,activeTab:s,activeQuestionIndex:c,withNewMarkup:u,data:d,isMobile:m,eventCategory:p,handleSetQuestion:_,tipIcon:v,setIsOpenQuestion:f,setActiveQuestionIndex:g,hideExternalLinks:b,company:y,iconArrow:C,isCombo:N,offers:A=[]}=e,w=(0,o.useCallback)((e,t)=>{u&&e&&"string"==typeof t&&(0,S.oA)({eventAction:"click_question_parameters_".concat((0,j.y)(e),"_").concat((0,j.y)(t)),eventCategory:p,eventLabel:d.id})},[d.id,p,u]),T=(0,o.useCallback)(()=>{u&&(0,S.oA)({eventAction:"click__link__o_banke__pereyti_k_polnomu_dose",eventCategory:p,eventLabel:d.id})},[d.id,p,u]);return k.E.questions===r?(0,l.jsx)("ul",{className:r!==s.name?K().hidden:void 0,children:n.questions.map((e,t)=>{let n=c===t;return(0,l.jsxs)("li",{className:K().question,children:[(0,l.jsxs)("button",{onClick:()=>{_(t),(0,S.oA)({event:"data-event",eventAction:"click_button_".concat((0,j.y)(e.label)),eventCategory:p,eventLabel:d.id})},className:K().questionButton,children:[(0,l.jsx)("span",{children:e.label}),(0,l.jsx)(i.default,{className:(0,a.A)(K().questionIcon,n&&K().questionIconOpened),src:C,alt:"arrow"})]}),(m||N)&&Array.isArray(e.value)&&(0,l.jsx)(x,{title:e.label,isCombo:N,isMobile:m,content:(0,l.jsx)("div",{className:K().questionContent,children:e.value.map(e=>"string"==typeof e&&(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e}},e))}),isOpenModal:n,onClose:()=>{f(!1),g(-1)}})]},e.label)})},r):k.E.offers===r?(0,l.jsx)("ul",{className:(0,a.A)(K().links,r!==s.name&&K().hidden),children:A.map(e=>(0,l.jsx)("li",{className:K().link,children:(0,l.jsxs)(P.N,{href:"".concat(h.q.BASE_URL,"/vklady/").concat(e.internalUrl),target:"_blank",children:["Вклад \xab",e.name,"\xbb"]})},e.name))}):(0,l.jsxs)("ul",{className:r!==s.name?K().hidden:void 0,children:[null==(t=n[r])?void 0:t.map(e=>e.value?e.isComment?(0,l.jsx)("div",{className:K().descriptionText,dangerouslySetInnerHTML:{__html:String(e.value)}}):(0,l.jsx)(U,{size:"l",...e,containerClassName:K().rowItem,onTooltipClick:w,tipIcon:v},e.label):null),s.name===k.E.about&&y&&(0,l.jsx)(G,{hideExternalLinks:b,company:y,withNewMarkup:u,isMobile:m,handleClickLink:T})]},r)}var Z=n(19680);let J=(0,o.memo)(e=>{let{className:t,data:n,questions:u,isMobile:d,company:m,amount:p,extraInfo:_,wrapperClassName:h,isCollapsible:v=!1,optionId:f,title:g="Параметры ".concat(n.type.saving_account?"счета":"вклада"),tipIcon:b,bettingTableTitle:x="Таблица ставок",hideExternalLinks:y=!1,iconArrow:C=s.A,withNewMarkup:N,eventCategory:A,isCombo:T,customTabs:S,offers:j,isPlatform:L=!1}=e,[E,P]=(0,o.useState)(k.D[0]),[D,R]=(0,o.useState)(!!T),[M,O]=(0,o.useState)(-1),[B,F]=(0,o.useState)(!1),{tabsContent:q,tabsList:U}=(e=>{let{data:t,company:n,questions:l,extraInfo:r,optionId:a,customTabs:i}=e,[s,c]=(0,o.useState)(k.D),u=(0,o.useMemo)(()=>t?i?i.tabsContent:((e,t,n,l,r)=>{var a;return{conditions:(0,Z.R)(e,r),about:t&&[{label:"Входит в систему страхования вкладов",value:"Да"},{label:"По объему вкладов",value:"".concat(t.deposit_rating," место")},{label:"По объему чистых активов",value:t.ratings?"".concat(t.ratings.net_assets_place," место"):"-"},{label:"По объему чистой прибыли",value:"".concat(t.net_profit_rating," место")},...t.license?[{label:"Лицензия",value:"№ ".concat(t.license)}]:[]]||[],questions:n.map(e=>({id:e.id,label:e.title,value:e.text.map(e=>e.data.html)}))||[],tarifs:null!=(a=l.tarifs)?a:[],offers:[]}})(t,n,l,r,a):{[k.E.conditions]:[],[k.E.about]:[],[k.E.questions]:[],[k.E.tarifs]:[],[k.E.offers]:[]},[t,i,n,l,r,a]);return(0,o.useEffect)(()=>{if(i)return c(i.tabsList);let e=[];n||e.push(k.E.about),r.tarifs||e.push(k.E.tarifs),c(k.D.filter(t=>!e.includes(t.name)))},[u,n,r.tarifs,i]),{tabsContent:u,tabsList:s}})({data:n,company:m,questions:u,extraInfo:_,optionId:f,customTabs:S}),H=(0,o.useCallback)(e=>{let t=M===e;if(d){F(!t),O(t?-1:e);return}t?(F(!1),setTimeout(()=>{O(-1)},300)):(O(e),setTimeout(()=>{F(!0)}))},[M,d]);(0,o.useEffect)(()=>{(window.requestIdleCallback||(e=>{let t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)}))(()=>P(k.D[0]))},[]),(0,o.useEffect)(()=>{E.name!==k.E.questions&&-1!==M&&H(M)},[M,E,H]);let W=(0,o.useCallback)((e,t)=>(0,l.jsx)(Q,{name:e,tabsContent:q,activeTab:E,activeQuestionIndex:M,withNewMarkup:N,data:n,isMobile:d,eventCategory:A,handleSetQuestion:H,tipIcon:b,setIsOpenQuestion:F,setActiveQuestionIndex:O,company:m,hideExternalLinks:y,iconArrow:C,isCombo:T,offers:t},e),[M,E,m,n,A,H,y,C,d,q,b,N,T]);return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(r.m,{className:(0,a.A)(w().container,D&&w().isCollapsed,T&&w().combo,t),id:c.Hr,children:[(0,l.jsxs)("button",{onClick:function(){R(e=>!e)},className:w().collapseButton,disabled:!v,children:[(0,l.jsx)("h2",{className:w().title,children:g}),v&&(0,l.jsx)(i.default,{className:(0,a.A)(w().collapseArrow,D&&w().inverted),src:C,alt:"arrow"})]}),(0,l.jsx)(I,{isMkbNakop:n.asSavingAccount&&L,isMobile:d,activeTab:E,wrapperClassName:h,tabsList:U,setActiveTab:P,isCollapsed:D,withNewMarkup:N,eventCategory:A,data:n,getListContent:W,iconArrow:C,bettingTableTitle:x,amount:p,isOpenQuestion:B,activeQuestionIndex:M,questions:u,isCombo:T,offers:j})]})})});J.displayName="DepositDetailParams"},87516:e=>{e.exports={container:"OfferPicker_container__S5wGA",title:"OfferPicker_title__bwNmC",chips:"OfferPicker_chips__Fuj7X",form:"OfferPicker_form__G5tUS",formTransport:"OfferPicker_formTransport__qK0pB",banks:"OfferPicker_banks__Q8_Ra",banksMob:"OfferPicker_banksMob__Q453D",button:"OfferPicker_button___3xzQ",imgWrapper:"OfferPicker_imgWrapper__49EwB",img:"OfferPicker_img__qBc9O",buttonWrapper:"OfferPicker_buttonWrapper__RUKEW",formHead:"OfferPicker_formHead__1Siel",productName:"OfferPicker_productName__BdGU9",note:"OfferPicker_note__NRh9W",formFields:"OfferPicker_formFields__5dlnC",formFieldsTwo:"OfferPicker_formFieldsTwo__3Vepx",formFieldsThree:"OfferPicker_formFieldsThree__sScjP",formFieldsFour:"OfferPicker_formFieldsFour__5zPb5",formFieldsTransport:"OfferPicker_formFieldsTransport__ETV_X",formFoot:"OfferPicker_formFoot__oUKE2",transportText:"OfferPicker_transportText__cGyvw"}},88346:(e,t,n)=>{"use strict";n.d(t,{Ge:()=>g,H5:()=>i,Ke:()=>h,L5:()=>_,MK:()=>b,Mp:()=>x,PQ:()=>s,SR:()=>o,Tr:()=>m,_p:()=>a,ci:()=>d,md:()=>u,p9:()=>c,tq:()=>f,wU:()=>v,y3:()=>p});var l=n(75722),r=n(46828);let a=[{value:r.A.Day,label:"День"},{value:r.A.Month,label:"Месяц"},{value:r.A.Year,label:"Год"}],i=[{value:l.A.OnceAMonth,label:"Раз в месяц"},{value:l.A.EveryDay,label:"Каждый день"},{value:l.A.InTheEnd,label:"В конце срока"}],o={[r.A.Day]:[{id:31,label:"31 день"},{id:91,label:"91 день"},{id:181,label:"181 день"},{id:365,label:"365 дней"}],[r.A.Month]:[{id:1,label:"1 мес."},{id:3,label:"3 мес."},{id:6,label:"6 мес."},{id:12,label:"12 мес."}],[r.A.Year]:[{id:1,label:"1 год"},{id:2,label:"2 года"},{id:3,label:"3 года"}]},s=3e5,c="₽",u=r.A.Month,d={[r.A.Day]:31,[r.A.Month]:3,[r.A.Year]:1},m=d[u],p=l.A.OnceAMonth,_=16,h=1e3,v=0x3b9ac9ff,f={[r.A.Day]:3700,[r.A.Month]:120,[r.A.Year]:10},g={[r.A.Day]:["день","дня","дней"],[r.A.Month]:["месяц","месяца","месяцев"],[r.A.Year]:["год","года","лет"]},b=1,x=100},88475:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});let l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,t=null;return n=>{t&&clearInterval(t),t=setTimeout(n,e)}}},89264:(e,t,n)=>{"use strict";n.d(t,{Js:()=>l,UZ:()=>r});let l=["utm_campaign","utm_term","utm_content","agent_id","utm_medium","utm_source"];var r=function(e){return e.VKLADY="vklady",e.VKLADY_TAGS="vklady_tags",e.DEPOSITS_ADVANTAGES="deposits_advantages",e.DEPOSITS_DETAIL="deposit_detail",e.SAVING_PRODUCT_CONTINUING_PAGE="saving-product-continuing-page",e}({})},89910:(e,t,n)=>{"use strict";n.d(t,{CE:()=>s,_i:()=>i,jq:()=>r,kr:()=>a,rW:()=>l,um:()=>o});let l=(e,t)=>{var n;return t>0&&!Number.isInteger(e)&&!Number.isNaN(e)&&(null==(n=String(e).split(".")[1])?void 0:n.length)>t&&(e=+e.toFixed(t)),e},r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return e=l(e,t),new Intl.NumberFormat("ru-RU",{useGrouping:"min2"}).format(e)},a=e=>e?e.toString().replace(".",","):0,i=e=>Math.round(100*e)/100,o=e=>{let t=String(e);if(t.includes("."))return r(e);if(t.length>6)t="".concat(r(e/1e6)," млн");else if(t.length>3){let n=e/1e3;t=t.length-String(n).length<2?r(e):"".concat(r(n)," тыс")}return t},s=e=>r(e)+"%"},91406:(e,t,n)=>{"use strict";n.d(t,{O:()=>g});var l=n(95155),r=n(2821),a=n(15239),i=n(52619),o=n.n(i),s=n(79762),c=n(99795),u=n(97069),d=n(56764),m=n(60497),p=n(73665),_=n(1421);let h={[_.Q.addToList]:s.A,[_.Q.like]:m.A,[_.Q.share]:p.A,[_.Q.chart]:d.A,[_.Q.arrow]:c.A,[_.Q.arrowBack]:u.A};var v=n(54491),f=n.n(v);let g=e=>{let{icon:t,alt:n,iconClassName:i,className:s,href:c,name:u,onClick:d,...m}=e,p=(0,l.jsx)(a.default,{className:(0,r.A)(f().icon,i),src:h[t],alt:n,unoptimized:!0}),_=(0,r.A)(f().action,s),v=()=>null==d?void 0:d(u);return c?(0,l.jsx)(o(),{className:_,href:c,onClick:v,...m,children:p}):(0,l.jsx)("button",{className:_,onClick:v,...m,"data-testid":"deposit-detail-chart-button",children:p})}},93757:(e,t,n)=>{"use strict";n.d(t,{_:()=>i,y:()=>a});var l=n(19559),r=n(40599),a=function(e){return e.link="link",e.button="button",e.popup="popup",e.filterCatalog="filter_catalog",e.utm="utm",e}({});let i=e=>{let{eventCategory:t,eventAction:n,eventActionText:a="",eventLabel:i,eventValue:o,url:s}=e,c="boolean"==typeof o?o?"on":"off":o,u="filter_catalog"!==n?/[а-я]/i.test(a.toLowerCase()):"string"!=typeof i||/[а-я]/i.test(i.toLowerCase()),d="filter_catalog"!==n?{event:"data-event",eventCategory:t,eventAction:({link:"click_link",button:"click_button_",popup:"show_pop_up_",utm:"save_utm"})[n]+(u?a:(0,r.y)(a)),eventLabel:i,eventValue:c,url:s}:{event:"data-event",eventAction:t,eventCategory:n,eventLabel:"string"==typeof i?u?i:(0,r.y)(i):i,eventValue:c,url:s};(0,l.oA)(d)}},94370:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var l=n(12115),r=n(47650);let a=e=>{let{children:t,id:n="portal-root"}=e,[a,i]=(0,l.useState)(null);return(0,l.useEffect)(()=>{var e,t,l;let r=null==(e=document)?void 0:e.getElementById(n);if(r)i(r);else{let e=null==(t=document)?void 0:t.createElement("div");return null==(l=document)||l.body.appendChild(e),i(e),()=>{var t;null==(t=document)||t.body.removeChild(e)}}},[n]),a&&(0,r.createPortal)(t,a)}},95852:(e,t,n)=>{"use strict";n.d(t,{Q:()=>l});var l=function(e){return e.SHOW_ADDITIONAL_PERCENT_BONUS="SHOW_ADDITIONAL_PERCENT_BONUS",e}({})},97069:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});let l={src:"/deposits/_next/static/media/arrow-back.09de234e.svg",height:24,width:24,blurWidth:0,blurHeight:0}},98591:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});let l=e=>{switch(e){case 2:case"2":case 840:case"USD":return{shortName:"долл.",unit:"$",name:"долларах",code:"USD",locale:"en",num:2};case 3:case"3":case 978:case"EUR":return{shortName:"евро",unit:"€",name:"евро",code:"EUR",locale:"en",num:3};case 4:case"4":case 156:case"CNY":return{shortName:"юань",unit:"\xa5",name:"юанях",code:"CNY",locale:"zh-CN",num:4};case 5:case"5":case 756:case"CHF":return{shortName:"франк",unit:"₣",name:"франках",code:"CHF",locale:"en",num:5};case 6:case"6":case 826:case"GBP":return{shortName:"фунт",unit:"\xa3",name:"фунтах",code:"GBP",locale:"en",num:6};case 7:case"7":case 392:case"JPY":return{shortName:"иена",unit:"\xa5",name:"иенах",code:"JPY",locale:"ja-JP",num:7};default:return{shortName:"руб.",unit:"₽",name:"рублях",code:"RUB",locale:"ru",num:1}}}},98742:(e,t,n)=>{"use strict";n.d(t,{_s:()=>P,xt:()=>er,Eg:()=>eh,Yq:()=>eX,FS:()=>x,LV:()=>Y.L,Pr:()=>ts,XB:()=>tm,ng:()=>eE,Ey:()=>tg});var l,r,a,i,o,s,c,u,d,m,p,_,h=n(95155),v=n(12115),f=n(27588),g=n.n(f);let b=(e,t,n)=>{let l=(e-90)*Math.PI/180;return{x:n+t*Math.cos(l),y:n+t*Math.sin(l)}},x=(0,v.memo)(e=>{let{items:t,className:n,innerRadius:l=10,size:r=400,strokeWidth:a,stroke:i,animated:o=!1}=e,s=(0,v.useRef)(null);(0,v.useEffect)(()=>{o&&s&&s.current&&(s.current.style.transform="rotate(-180deg)",s.current.style.transition="")},[s,t,o]);let c=t.reduce((e,t)=>e+t.value,0),u=r/2,d=0,m=t.map(e=>{let t=e.value/c*360,n=+(t>180),r=d+t,o=b(d,u,u),s=b(r,u,u),m=b(d,l,u),p=b(r,l,u),_="M ".concat(o.x," ").concat(o.y," \n        A ").concat(u," ").concat(u," 0 ").concat(n," 1 ").concat(s.x," ").concat(s.y," \n        L ").concat(p.x," ").concat(p.y," \n        A ").concat(l," ").concat(l," 0 ").concat(n," 0 ").concat(m.x," ").concat(m.y," \n        Z");return d=r,(0,h.jsx)("path",{fill:e.color,d:_,stroke:i,strokeWidth:a,className:g().circle},e.color)}),p=()=>{s&&s.current&&(s.current.style.transform="rotate(0deg)",s.current.style.transition="all 1s")};return(0,v.useEffect)(()=>{if(o){let e=setTimeout(p,1);return()=>clearTimeout(e)}},[m,t,o]),(0,h.jsx)("svg",{ref:s,className:n,viewBox:"0 0 ".concat(r," ").concat(r),height:r,width:r,children:m})});x.displayName="UiCircleChart";var y=n(2821);let C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=(0,v.useRef)(null),l=(0,v.useRef)(null),r=(0,v.useRef)(null);return(0,v.useEffect)(()=>{let a=()=>{n.current&&clearTimeout(n.current),r.current&&(window.removeEventListener("keydown",r.current.keyDown),document.removeEventListener("mousedown",r.current.clickOutside))};return a(),r.current={keyDown(r){"Escape"===r.key&&(n.current=setTimeout(()=>{e(l)},t))},clickOutside(t){0===t.button&&l.current&&t.target instanceof Node&&!l.current.contains(t.target)&&e(l)}},window.addEventListener("keydown",r.current.keyDown),document.addEventListener("mousedown",r.current.clickOutside),a},[e,t]),l};var N=n(76048),k=n(38753),A=n.n(k);let w=e=>{let{footer:t,hasScroll:n,className:l}=e;return(0,h.jsx)("div",{className:(0,y.A)(A().footer,{[A().hasScroll]:n},l),children:"function"==typeof t?t():t})};var T=n(22779),S=n.n(T);let j=(0,v.forwardRef)((e,t)=>{let{onClose:n,onContentClick:l,children:r,title:a,rowTitle:i,titleAlign:o,isCloseable:s,footer:c,closeButton:u,isOpen:d,contentClassName:m,footerClassName:p,contentStyle:_,width:f}=e,g=(0,v.useRef)(null),b=(0,v.useRef)(null),[x,C]=(0,v.useState)(!1);(0,v.useImperativeHandle)(t,()=>g.current),(0,v.useEffect)(()=>{if(!b.current||!g.current)return;let e=b.current.getBoundingClientRect().top||0,t=g.current,n=()=>{let t=b.current;t&&C(t.getBoundingClientRect().top!==e)};return t.addEventListener("scroll",n,!1),()=>{t.removeEventListener("scroll",n,!1)}},[]);let k=_||f?{width:f,..._||{}}:void 0;return(0,h.jsxs)("div",{ref:g,style:k,className:(0,y.A)(S().container,{[S().open]:d,[S().close]:!d},m),children:[a||s?(0,h.jsxs)("div",{className:(0,y.A)(S().header,{[S().rowHeader]:i}),children:[s&&!u?(0,h.jsx)("button",{className:S().controlContainer,onClick:n,type:"button",children:(0,h.jsx)(N._7M,{size:24})}):null,s&&u?"function"==typeof u?u():u:null,a?(0,h.jsx)("h3",{className:(0,y.A)(S().title,{[S().center]:"center"===o,[S().left]:"left"===o,[S().right]:"right"===o}),children:a}):null]}):null,(0,h.jsx)("div",{ref:b,className:S().content,onClick:l,children:r}),c&&(0,h.jsx)(w,{className:(0,y.A)(S().footer,p),footer:c,hasScroll:x})]})});j.displayName="DrawerContent";var L=n(50599),E=n.n(L);let I=e=>{let{onClose:t,isOpen:n,children:l,withDisabledScroll:r,className:a,...i}=e,o=(0,v.useCallback)(e=>e.stopPropagation(),[]),s=C(()=>t(),0);return(e=>{(0,v.useEffect)(()=>{let t=document.querySelectorAll("[data-portal]").length>1,n=document.body,l=()=>{n.style.overflow="",n.style.height=""};return e&&(n.style.overflow="hidden",n.style.height="100vw"),e||t||l(),()=>{t||l()}},[e])})(n&&r),(0,h.jsx)("div",{"data-portal":!0,className:(0,y.A)(E().window,a),children:(0,h.jsx)(j,{ref:s,onContentClick:o,onClose:t,isOpen:n,...i,children:l})})},P=e=>{let{isOpen:t=!1,children:n,titleAlign:l="center",isCloseable:r=!0,withDisabledScroll:a=!0,...i}=e;return(e=>{let[t,n]=(0,v.useState)(!1),l=(0,v.useRef)(null),r=(0,v.useRef)(!1);return(0,v.useEffect)(()=>(e&&!r.current?(r.current=!0,n(!0)):!e&&r.current&&(l.current=setTimeout(()=>{r.current=!1,n(!1)},300)),()=>{l.current&&clearTimeout(l.current)}),[e]),t})(t)?(0,h.jsx)(I,{titleAlign:l,isCloseable:r,isOpen:t,withDisabledScroll:a,...i,children:n}):null};P.displayName="Drawer";var D=n(59817);function R(){return(R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}let M=function(e){return v.createElement("svg",R({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=v.createElement("path",{d:"m1 1 12 12m0-12L1 13",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})))};n(26794);let O=e=>{let{children:t,className:n,style:l,...r}=e;return(0,h.jsx)("span",{className:(0,y.A)(n,"private-icon"),style:l,...r,children:t})};O.displayName="PrivateIcon";var B=n(24176),F=n.n(B);let q="Обязательное поле",U=(0,v.memo)(e=>{let{onChange:t=()=>null,onFocus:n=()=>null,onBlur:l=()=>null,onKeyDown:r=()=>null,inputClear:a=()=>null,label:i,allowClear:o=!1,addonBefore:s,addonAfter:c,status:u,appearance:d="gray",inputType:m,required:p=!1,infoMessage:_,message:f,innerRef:g=null,disabled:b,id:x,placeholder:C,autoFocus:N=!1,value:k,readOnly:A,className:w,onlyRange:T,size:S="small",maskPlaceholder:j,...L}=e,[E,I]=(0,v.useState)(N),P=(0,v.useRef)(null);(0,v.useEffect)(()=>I(N),[N]);let D=!p||(k||"error"!==u)&&u?f:q,R=(null==_?void 0:_.length)&&!p||(null==_?void 0:_.length)&&k?_:q;return(0,h.jsxs)("div",{className:(0,y.A)(F().inputRoot,w),children:[(0,h.jsxs)("label",{htmlFor:x,className:(0,y.A)(F().wrapperInput,F()[d],F()[S],{[F().isFocused]:E&&!b,[F().hasValue]:E||!!k||!!C||j,[F().disabled]:b,[F().success]:"success"===u,[F().error]:"error"===u,[F().readOnly]:A}),children:[s&&(0,h.jsx)("div",{className:(0,y.A)(F().controlContainer,F().addoneBefore),children:s}),(0,h.jsxs)("div",{className:(0,y.A)(F().inputContainer,{[F().cover]:"button"===m}),children:[j&&(0,h.jsxs)("div",{className:(0,y.A)(F().maskPlaceholder,!C&&!i&&F().maskPlaceholderCenter),children:[k&&(0,h.jsx)("span",{className:F().maskPlaceholderHide,children:k}),j.slice(String(null!=k?k:"").length)]}),(0,h.jsx)("input",{id:x,ref:e=>{P.current=e,g&&e&&(g.current=e)},value:null!=k?k:"",disabled:b||T,autoFocus:"button"!==m&&E,readOnly:A,onFocus:e=>{E||(I(!0),n(e))},onBlur:e=>{E&&(I(!1),l(e))},onChange:t,onKeyDown:r,className:(0,y.A)(F().input,!i&&F().inputCenter),placeholder:j?void 0:C,...L}),(null==i?void 0:i.length)?(0,h.jsx)("span",{className:F().label,children:i}):null]}),o&&(!!k||"string"==typeof k&&!!k.trim().length)&&(0,h.jsx)("button",{type:"button",className:(0,y.A)(F().controlContainer,F().buttonClear),onClick:e=>{e.preventDefault(),P.current&&(P.current.value="","input"===m&&P.current.focus()),a()},children:(0,h.jsx)(O,{className:F().deleteIcon,children:(0,h.jsx)(M,{})})}),c&&(0,h.jsx)("div",{className:(0,y.A)(F().controlContainer,F().addoneAfter),children:c})]}),(!!(null==f?void 0:f.length)&&u||p||!!(null==_?void 0:_.length))&&(0,h.jsx)("div",{className:(0,y.A)(F().message,{[F().successMessage]:"success"===u,[F().errorMessage]:"error"===u,[F().defaultMessage]:p&&!u||!p&&!u&&!!(null==_?void 0:_.length)}),children:u?D:R})]})});U.displayName="UiInput";var H=n(53548),W=n(44548),X=n(703),z=n(94370),Y=n(8546),G=n(73492),V=n.n(G);let K=e=>{let{content:t,children:n,disabled:l}=e,[r,a]=(0,v.useState)(!1),i=(0,v.useRef)(null);return(0,v.useEffect)(()=>{let e=e=>{i.current&&e.target instanceof Node&&!i.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[]),(0,h.jsxs)("div",{className:(0,y.A)(V().wrap,V().newSortRadioWrap),onClick:()=>a(!0),ref:i,children:[n,r&&!l&&(0,h.jsx)("div",{className:V().content,children:t})]})};var Q=n(69142),Z=n(47913),J=n(3234),$=n.n(J);let ee=e=>{let{isMobile:t,onChangeSort:n,isIncreaseSort:l}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("p",{className:(0,y.A)($().sortTypeHead,$().newSortRadioSortTypeHead),children:[(0,h.jsx)("button",{style:{marginLeft:"0px",marginRight:t?"0px":"8px"},className:(0,y.A)($().sortTypeButton,$().newSortRadioSortTypeButton),onClick:n,type:"button",children:(0,h.jsx)(N.agd,{className:(0,y.A)(!l&&$().iconInverted)})}),"Сортировать"]}),(0,h.jsx)("div",{className:$().divider})]})},et=(0,v.memo)(e=>{let{isMobile:t,onChangeSort:n,isIncreaseSort:l,onChangeSortType:r,sortTypeItems:a,sortTypeValue:i}=e;return(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)("div",{className:(0,y.A)($().sortTypeContainer,$().newSortRadioSortTypeContainer),onClick:e=>e.stopPropagation(),children:[(0,h.jsx)(ee,{onChangeSort:n,isMobile:t,isIncreaseSort:l}),a.map(e=>(0,h.jsxs)("div",{"data-qa":"".concat(e.value,"_radio"),className:$().sortType,children:[(0,h.jsx)(Q.S,{onChange:()=>{r(e.value)},value:e.value===i,label:e.label}),e.description&&(0,h.jsx)(Z.m,{text:e.description,className:(0,y.A)($().sortTypeButton,$().newSortRadioSortTypeButton),children:(0,h.jsx)(N.G_L,{})})]},e.value))]})})});et.displayName="SortRadios";var en=n(9698),el=n.n(en);let er=(0,v.memo)(e=>{let{isClose:t,chips:n,onClickParams:l,isIncreaseSort:r,onChangeIncreaseSort:a,sortTypeItems:i,sortTypeValue:o,onChangeSortType:s,isMobile:c,isFixed:u,portalId:d,onClickChip:m,className:p,onClickSortType:_}=e,{buttonRef:f,chipsRef:g,containerRef:b,isOverflow:x,minLength:C,handleCompute:k}=(0,D.R)({length:n.length,isActive:!c}),[A,w]=(0,v.useState)(!1),T=c?4:C,S=c?A:x,[j,L]=(0,v.useState)(!1),[E,I]=(0,v.useState)(!1),[P,R]=(0,v.useState)(!1),M=n.length-T,O=(0,v.useMemo)(()=>({id:"overflow",label:"".concat(j?"Скрыть":"Ещё"," ").concat(M)}),[j,M]),B=(0,v.useCallback)(()=>{if(c)return void I(e=>!e);L(e=>!e)},[c]),F=(0,v.useRef)(void 0);(0,v.useEffect)(()=>{let e=F.current;if(void 0===t)return;let n=c?E:j;if(!n||e===t){F.current=t;return}(e!==t||n)&&(B(),F.current=t)},[B,t,c,E,j]);let q=(0,v.useCallback)(()=>{I(!1),setTimeout(()=>null==l?void 0:l(),300)},[l]),U=()=>R(e=>!e),G=(0,v.useCallback)(()=>null==a?void 0:a(!r),[r,a]);(0,v.useEffect)(()=>{c&&(w(!1),w(n.length>4))},[n.length,c]),(0,v.useEffect)(()=>{k()},[k,u]);let V=(0,h.jsx)("div",{style:{padding:"8px",borderRadius:"20px",background:"white"},className:(0,y.A)(!c&&el().sortTypeDesktop),children:(0,h.jsx)(et,{isMobile:c,isIncreaseSort:r,onChangeSort:G,onChangeSortType:s,sortTypeItems:i,sortTypeValue:o,portalId:d})}),Q=i.find(e=>e.value===o);return(0,h.jsxs)("div",{className:(0,y.A)(el().filter,el().newSortRadiosFilter,u&&el().stuck,p),children:[(0,h.jsx)(X.J,{className:el().mainContainer,children:(0,h.jsxs)("div",{className:el().container,children:[(0,h.jsxs)("div",{className:(0,y.A)(el().chipsContainer,!j&&el().chipsContainerClosed),ref:b,children:[n.slice(0,j||!S?n.length:T).map((e,t)=>(0,h.jsx)("div",{onClick:()=>null==m?void 0:m(e),children:(0,h.jsx)(W.v,{className:el().chip,label:e.label,ref:e=>{g.current[t]=e},variant:"purple",rounded:!0})},e.id)),x&&M>0&&(0,h.jsx)("div",{onClick:B,children:(0,h.jsx)(W.v,{className:el().chip,label:O.label,ref:f,variant:"purple",rounded:!0})})]}),(0,h.jsxs)("div",{className:el().actionsWrapper,children:[(0,h.jsxs)("button",{className:(0,y.A)(el().action,el().actionButton),onClick:l,type:"button",children:[(0,h.jsx)(N.uJ7,{className:el().icon,size:24}),(0,h.jsx)("span",{className:el().actionText,children:"Все параметры"})]}),(0,h.jsxs)("div",{className:el().action,children:[(0,h.jsx)("button",{className:(0,y.A)(el().icon,el().iconButton,!r&&el().iconInverted),onClick:c&&u?U:G,type:"button",children:(0,h.jsx)(N.yZ$,{size:24})}),(0,h.jsx)(K,{content:V,disabled:c,children:(0,h.jsx)("button",{onClick:c?U:_,className:(0,y.A)(el().actionText,el().actionButton),"data-qa":"".concat(o,"_order"),type:"button",children:(null==Q?void 0:Q.shortLabel)||(null==Q?void 0:Q.label)||"Сортировка"})})]})]})]})}),(0,h.jsxs)(z.Z,{id:d,children:[(0,h.jsx)(Y.L,{footer:(0,h.jsx)(H.$,{className:el().modalButton,onClick:q,label:"Изменить параметры"}),className:(0,y.A)(el().modal,el().newSortRadioModal),isOpen:E,onClose:B,children:(0,h.jsx)("div",{className:el().chipsContainerModal,children:n.map(e=>(0,h.jsx)("div",{onClick:q,children:(0,h.jsx)(W.v,{className:el().chip,label:e.label,variant:"secondary",rounded:!0})},e.id))})}),(0,h.jsx)(Y.L,{className:(0,y.A)(el().modal,el().newSortRadioModal),isSmallPopup:!0,onClose:U,isOpen:!!(P&&c),footer:(0,h.jsx)(H.$,{size:"s",className:el().modalButton,label:"Применить",onClick:U}),children:V})]})]})});function ea(){return(ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}er.displayName="ListFilter";let ei=function(e){return v.createElement("svg",ea({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=v.createElement("path",{fill:"currentColor",d:"M4.575 4.575a1.5 1.5 0 0 0 0 2.121L9.879 12l-5.304 5.304a1.5 1.5 0 0 0 2.121 2.121L12 14.121l5.304 5.304a1.5 1.5 0 0 0 2.121-2.121L14.121 12l5.304-5.304a1.5 1.5 0 0 0-2.121-2.121L12 9.879 6.696 4.575a1.5 1.5 0 0 0-2.121 0Z"})))};function eo(){return(eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}function ec(){return(ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}function eu(){return(eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}let em={time:{color:"var(--color-gray-600)",icon:function(e){return v.createElement("svg",eu({width:25,height:24,viewBox:"0 0 25 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),c||(c=v.createElement("path",{d:"M11.375 2.069c-.656.099-1.22.212-1.562.313-3.551 1.04-6.164 3.739-7.015 7.245-.231.95-.277 1.348-.276 2.352.002.969.042 1.368.212 2.146.249 1.132.801 2.438 1.426 3.375a9.88 9.88 0 0 0 3.882 3.433c.988.49 2.012.814 3.064.968.695.102 2.113.103 2.769.002 2.887-.443 5.373-2.006 6.939-4.361a10.074 10.074 0 0 0 1.673-5.209 10.027 10.027 0 0 0-2.904-7.377c-1.541-1.551-3.775-2.641-5.883-2.87-.374-.041-2.087-.053-2.325-.017m1.75 1.974a7.698 7.698 0 0 1 2.962.835 7.88 7.88 0 0 1 4.308 5.958c.083.583.082 1.759-.002 2.324a7.962 7.962 0 0 1-6.19 6.647c-2.465.547-5.067-.132-7.003-1.827-1.829-1.602-2.867-4.155-2.665-6.553a8.13 8.13 0 0 1 1.328-3.864 7.851 7.851 0 0 1 5.012-3.372c.923-.186 1.437-.22 2.25-.148m-.86 1.996c-.268.065-.584.324-.689.565-.042.098-.057.727-.067 2.862l-.013 2.736.105.209c.143.282.285.39 1.261.965 1.338.788 1.888 1.078 2.097 1.107.398.054.822-.184 1.016-.573.145-.292.143-.534-.006-.83-.139-.273-.355-.43-1.552-1.123a26.244 26.244 0 0 1-.852-.505c-.023-.02-.051-.996-.069-2.358-.018-1.476-.045-2.375-.074-2.466-.122-.385-.727-.693-1.157-.589",fillRule:"evenodd"})))}},info:{color:"var(--color-purple-500)",icon:function(e){return v.createElement("svg",es({width:25,height:24,viewBox:"0 0 25 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=v.createElement("path",{d:"M11.375 2.069c-.656.099-1.22.212-1.562.313-3.551 1.04-6.164 3.739-7.015 7.245-.231.95-.277 1.348-.276 2.352.002.969.042 1.368.212 2.146.249 1.132.801 2.438 1.426 3.375a9.88 9.88 0 0 0 3.882 3.433c.988.49 2.012.814 3.064.968.695.102 2.113.103 2.769.002 2.887-.443 5.373-2.006 6.939-4.361a10.074 10.074 0 0 0 1.673-5.209 10.027 10.027 0 0 0-2.904-7.377c-1.541-1.551-3.775-2.641-5.883-2.87-.374-.041-2.087-.053-2.325-.017m1.75 1.974a7.698 7.698 0 0 1 2.962.835 7.88 7.88 0 0 1 4.308 5.958c.083.583.082 1.759-.002 2.324a7.962 7.962 0 0 1-6.19 6.647c-2.465.547-5.067-.132-7.003-1.827-1.829-1.602-2.867-4.155-2.665-6.553a8.13 8.13 0 0 1 1.328-3.864 7.851 7.851 0 0 1 5.012-3.372c.923-.186 1.437-.22 2.25-.148m-.833 2.999a.969.969 0 0 0-.728.661c-.161.472.037.947.493 1.18.368.188.929.07 1.193-.25.599-.727-.024-1.762-.958-1.591m-.027 3.997c-.313.076-.654.392-.711.658-.044.207-.043 4.402.001 4.609.045.216.31.495.58.611.367.158.745.075 1.051-.231.309-.309.293-.163.293-2.623 0-1.215-.015-2.28-.033-2.366-.088-.416-.722-.769-1.181-.658",fillRule:"evenodd"})))}},success:{color:"var(--color-green-500)",icon:function(e){return v.createElement("svg",ec({width:25,height:24,viewBox:"0 0 25 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),o||(o=v.createElement("path",{d:"M12.5 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 18a8 8 0 1 1 0-16.001A8 8 0 0 1 12.5 20Z"})),s||(s=v.createElement("path",{d:"M10.714 14.794a1.002 1.002 0 0 0 1.42 0l4.08-4.08a1.004 1.004 0 0 0-1.42-1.42l-3.37 3.38-1.21-1.22a1.004 1.004 0 0 0-1.42 1.42l1.92 1.92Z"})))}},warning:{color:"var(--color-orange-500)",icon:function(e){return v.createElement("svg",eo({width:25,height:24,viewBox:"0 0 25 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=v.createElement("path",{d:"M11.292 2.128c-1.005.069-2.335.487-3.458 1.087C4.947 4.756 3.1 7.399 2.598 10.708c-.1.66-.101 1.933-.001 2.584.238 1.555.773 2.993 1.542 4.146 1.058 1.586 2.533 2.855 4.194 3.607 1.286.581 2.308.839 3.618.91 1.845.1 3.468-.261 5.195-1.158.999-.518 1.56-.933 2.411-1.783a9.995 9.995 0 0 0 2.864-5.935c.061-.557.024-2.046-.065-2.6-.391-2.438-1.599-4.563-3.481-6.125-1.205-1-2.864-1.804-4.345-2.106-.719-.147-2.098-.198-3.238-.12m2.375 2.02c2.281.279 4.494 1.773 5.724 3.862.695 1.181 1.023 2.443 1.025 3.936.001 1.401-.263 2.547-.856 3.702-1.132 2.209-3.11 3.69-5.602 4.192-.42.085-.599.097-1.458.097-1.117 0-1.526-.06-2.419-.353-1.915-.629-3.387-1.803-4.409-3.519-.431-.724-.795-1.623-.938-2.322-.169-.822-.209-2.088-.092-2.91C4.904 8.993 5.9 7.163 7.271 6a8.427 8.427 0 0 1 3.689-1.814c.699-.144 1.723-.158 2.707-.038m-1.646 3.014c-.235.146-.393.351-.439.569-.059.277-.101 2.887-.062 3.863l.031.782.184.205c.101.112.269.245.372.296.395.191.924.028 1.204-.371l.127-.18V7.674l-.126-.179c-.189-.268-.491-.412-.869-.412-.218.001-.33.021-.422.079m.167 7.922c-.335.104-.656.557-.661.934-.006.395.323.798.754.924.197.057.241.057.439 0 .871-.253 1.013-1.397.219-1.77-.217-.102-.573-.144-.751-.088",fillRule:"evenodd"})))}},danger:{color:"var(--color-red-500)",icon:function(e){return v.createElement("svg",ed({width:25,height:24,viewBox:"0 0 25 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),u||(u=v.createElement("path",{d:"M11.521 1.922a10.11 10.11 0 0 0-7.497 4.474c-.749 1.121-1.354 2.743-1.571 4.209-.078.522-.063 2.204.024 2.708.397 2.319 1.317 4.106 2.961 5.749 1.257 1.258 2.46 2.015 4.04 2.543a9.927 9.927 0 0 0 8.668-1.168 8.737 8.737 0 0 0 1.453-1.178c1.563-1.537 2.505-3.36 2.906-5.623.117-.659.127-2.253.018-2.948-.273-1.757-1.032-3.487-2.123-4.839-.407-.505-1.437-1.517-1.896-1.863-1.052-.793-2.26-1.402-3.39-1.711-1.218-.334-2.489-.458-3.593-.353m2.585 2.261c3.176.671 5.59 3.107 6.227 6.284.541 2.695-.403 5.573-2.437 7.435-3.331 3.048-8.583 2.724-11.466-.708a8.039 8.039 0 0 1-1.704-7.006c.651-2.839 2.879-5.142 5.706-5.897.817-.218 1.109-.248 2.193-.23.85.014 1.045.03 1.481.122M9.225 8.046c-.346.08-.664.466-.711.863-.052.439-.045.449 1.333 1.832l1.257 1.262-1.148 1.134c-.631.624-1.211 1.226-1.288 1.339-.27.394-.216.856.142 1.214.357.357.821.412 1.211.143.11-.076.714-.655 1.34-1.288l1.139-1.149 1.136 1.147c.624.631 1.227 1.211 1.34 1.288.377.259.827.217 1.192-.111a.99.99 0 0 0 .332-.771c0-.316-.09-.429-1.365-1.709l-1.237-1.241 1.234-1.239c.678-.681 1.254-1.279 1.279-1.329.074-.144.102-.521.052-.706-.052-.192-.327-.529-.507-.622-.14-.072-.684-.083-.86-.017-.064.024-.675.6-1.356 1.28l-1.239 1.236-1.261-1.255c-.949-.945-1.292-1.26-1.386-1.278-.287-.053-.468-.06-.629-.023",fillRule:"evenodd"})))}}};var ep=n(77944),e_=n.n(ep);let eh=e=>{let{isLight:t,size:n="XS",status:l="time",onClose:r,title:a,link:i,description:o,caption:s,isClose:c}=e,u=em[l],d=u.icon;return(0,h.jsxs)("div",{className:(0,y.A)(e_().wrapper,{[e_().light]:t},e_()[l],e_()[n]),children:[(0,h.jsx)("div",{children:(0,h.jsx)(O,{className:e_().icons,children:(0,h.jsx)(d,{fill:u.color})})}),(0,h.jsxs)("div",{className:(0,y.A)(e_().container),children:[a&&(0,h.jsx)("div",{className:e_().title,children:a}),s&&(0,h.jsx)("div",{className:e_().caption,children:s}),o&&(0,h.jsx)("div",{className:e_().description,children:o}),i&&(0,h.jsx)("a",{href:i,className:e_().link,children:"Подробнее"})]}),c&&(0,h.jsx)("div",{role:"button",tabIndex:0,onClick:r||void 0,className:e_().close,children:(0,h.jsx)(O,{className:e_().icons,children:(0,h.jsx)(ei,{})})})]})};function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}eh.displayName="Notification";let ef=function(e){return v.createElement("svg",ev({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),d||(d=v.createElement("path",{d:"M7.466 19.551A1.478 1.478 0 0 1 7 18.481c0-.401.167-.786.466-1.07l5.667-5.449L7.466 6.59A1.479 1.479 0 0 1 7 5.52c0-.401.167-.786.466-1.07.148-.142.325-.255.52-.332a1.677 1.677 0 0 1 1.232 0c.195.077.372.19.52.332l6.788 6.435c.15.141.27.31.35.494a1.45 1.45 0 0 1 0 1.168c-.08.185-.2.353-.35.494L9.74 19.55a1.609 1.609 0 0 1-.521.332 1.678 1.678 0 0 1-1.232 0 1.609 1.609 0 0 1-.52-.332Z",fill:"currentColor"})))};function eg(){return(eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}let eb=function(e){return v.createElement("svg",eg({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),m||(m=v.createElement("path",{d:"m4 12 6 6L20 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))};function ex(){return(ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}let ey=function(e){return v.createElement("svg",ex({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},e),p||(p=v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.29 15.606a6.44 6.44 0 1 1 1.316-1.316l3.736 3.736a.93.93 0 0 1-1.316 1.316l-3.737-3.736Zm.445-5.165a4.294 4.294 0 1 1-8.588 0 4.294 4.294 0 0 1 8.588 0Z",fill:"currentColor"})))},eC=e=>{let{isOpenPopup:t,isMobile:n=!1,multiple:l,scrollValue:r,selectedItemIndex:a,pointedItemIndex:i,pointedTrigger:o,container:s,element:c}=e,u=(0,v.useCallback)(e=>{s&&e>=0&&c.current&&null!==c.current&&c.current.scrollIntoView({block:"nearest",inline:"nearest"})},[s,c]);return(0,v.useEffect)(()=>{let e;!l&&t&&e!==a&&"number"==typeof a&&(e=a,u(a))},[s,c,t,l,u,a]),(0,v.useEffect)(()=>{let e;!n&&t&&e!==i&&"number"==typeof i&&"key"===o&&(e=i,u(i))},[n,s,c,t,i,o,u]),(0,v.useEffect)(()=>{let e;l&&t&&s.current&&e!==r&&(e=r,s.current.scrollTo({top:r}))},[s,t,l,r]),null};var eN=n(35904),ek=n.n(eN);let eA="calc(100% + ".concat(8,"px)"),ew=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=null;return n=>{t&&clearInterval(t),t=setTimeout(n,e)}}(),eT=(0,v.memo)(e=>{let{onSearch:t,onChange:n=()=>null,options:l,optionsEmptyText:r,multiple:a=!1,search:i=!1,defaultOpen:o=!1,autoFocus:s=!1,value:c,popupHeight:u=312,className:d,removeLineHeight:m,onClose:p,onOpen:_,...f}=e,g=(0,v.useRef)(!1),[b,x]=(0,v.useState)(()=>null!=c?c:null),[k,A]=(0,v.useState)(""),[w,T]=(0,v.useState)(s||o),[S,j]=(0,v.useState)(!1),[L,E]=(0,v.useState)(null),[I,P]=(0,v.useState)(()=>b?l.filter(e=>b.find(t=>String(t.value)===String(e.value))):null),[D,R]=(0,v.useState)(0),[M,B]=(0,v.useState)({mouseX:void 0,mouseY:void 0,isDisplaced:!0}),F=w&&!!l.length,q=(0,v.useCallback)(e=>{S||(A(""),T(!1),null==p||p()),(null==e?void 0:e.current)&&a&&F&&R(e.current.scrollTop)},[S,F,a,p]),W=(0,v.useRef)(null),X=(0,v.useRef)(null),z=(0,v.useRef)(null),Y=C(q),G=(0,v.useMemo)(()=>i&&w?ey:ef,[w,i]),V=(0,v.useMemo)(()=>i&&k&&""!==k?l.filter(e=>-1!==String(e.label).toLocaleLowerCase().indexOf(k.toLocaleLowerCase())):l,[k,l,i]),K=(0,v.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(B({mouseX:void 0,mouseY:void 0,isDisplaced:!0}),T(t=>!e&&!t),j(t=>!e&&!t),e){var t;null==(t=W.current)||t.blur()}(null==Y?void 0:Y.current)&&a&&F&&R(Y.current.scrollTop),e&&(null==p||p())},[Y,a,F,p]),Q=(0,v.useCallback)(e=>{if(a)P(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t)return[e];let l=t.findIndex(t=>String(t.label).toLocaleLowerCase()===String(e.label).toLocaleLowerCase());if(l>=0){let e=[...t.slice(0,l),...t.slice(l+1)];return e.length||(x(null),E(null),P(null),n(null)),e}return[...t,e]});else{let t=[],r=l.find(t=>String(t.value).trim().toLocaleLowerCase()===String(e.value).trim().toLocaleLowerCase());t=r?[r]:[];let a=l.findIndex(e=>{var n;return e.label.toLocaleLowerCase()===(null==(n=t[0])?void 0:n.label.toLocaleLowerCase())});E(a>=0?a:null),x([e]),P([e]),n(c&&e.value===c[0].value?null:t),K(!0),A("")}},[K,a,n,l,c]),Z=(0,v.useCallback)(()=>{n(I),K(!0)},[K,n,I]),J=e=>{e.preventDefault(),et(e=>({...e,trigger:"mouse"})),B(t=>{let n=void 0===t.mouseX&&void 0===t.mouseY||t.mouseX!==e.screenX||t.mouseY!==e.screenY;return{...t,mouseX:e.screenX,mouseY:e.screenY,isDisplaced:n}})},{pointedItemIndex:$,pointedTrigger:ee,setPointedItem:et,handleKeyNavigation:en}=(e=>{let{isOpenPopup:t,multiple:n,optionsList:l,defaultPointedIndex:r,onTogglePopup:a,onSelectedItem:i,onClearCallBack:o}=e,[s,c]=(0,v.useState)({index:r,trigger:"key"}),{index:u,trigger:d}=s,m=(0,v.useRef)(l.length);(0,v.useEffect)(()=>{t||null===r||n||(c({index:r,trigger:"key"}),m.current=l.length),m.current!==l.length&&t&&(m.current=l.length,c({index:0,trigger:"key"}))},[l.length,t,r,n]);let p=(0,v.useCallback)(()=>{if(!t)return void a();null!==u&&(i(l[u]),o())},[t,l,u,i,o,a]),_=(0,v.useCallback)(()=>{t&&a(!0)},[t,a]),h=(0,v.useCallback)(()=>{t&&l.length&&(c(e=>{let{index:t}=e;return null===t?{trigger:"key",index:0}:t+1<l.length?{trigger:"key",index:t+1}:t+1===l.length?{trigger:"key",index:0}:{trigger:"key",index:t}}),o())},[t,o,l.length]),f=(0,v.useCallback)(()=>{t&&l.length&&(c(e=>{let{index:t}=e;return null===t?{trigger:"key",index:0}:t+1>l.length?{trigger:"key",index:t-1}:0===t?{trigger:"key",index:l.length-1}:t+1<=l.length?{trigger:"key",index:t-1}:{trigger:"key",index:t}}),o())},[t,o,l.length]);return{pointedItemIndex:u,pointedTrigger:d,setPointedItem:c,handleKeyNavigation:e=>{e.stopPropagation();let t=e||window.event;switch(e.key){case"Escape":_();break;case"Enter":p();break;case"ArrowDown":t.preventDefault(),h();break;case"ArrowUp":t.preventDefault(),f();break;default:return}}}})({isOpenPopup:F,multiple:a,optionsList:V,defaultPointedIndex:L,onTogglePopup:K,onSelectedItem:Q,onClearCallBack:()=>B(e=>({...e,isDisplaced:!1}))}),el=(0,v.useCallback)(()=>{x(null),E(null),et({index:null,trigger:"key"}),R(0),P(null),K(!0),n(null)},[K,n,et]);eC({isOpenPopup:F,multiple:a,scrollValue:D,selectedItemIndex:L,pointedItemIndex:$,pointedTrigger:ee,container:Y,element:z});let er=(0,v.useMemo)(()=>(null==I?void 0:I.length)&&!F?a?"":I[0].label:k,[I,k,a,F]),ea=(0,v.useMemo)(()=>{if(!(null==I?void 0:I.length))return k;let e=I.length;return a?1===e?I[0].label:"Выбрано (".concat(e,")"):F&&!k.length?I[0].label:k},[F,a,k,I]),ei={readOnly:!i,addonAfter:(0,h.jsx)(O,{className:(0,y.A)(ek().icon,{[ek().iconRotate]:!i&&w}),children:(0,h.jsx)(G,{})}),onChange:e=>{A(e.currentTarget.value)},autoFocus:w,inputType:"select",inputClear:()=>a?A(""):el(),value:er,placeholder:ea,onFocus:()=>i&&T(!0),onClick:()=>{i?w||T(!0):T(e=>!e)},autoComplete:"off",innerRef:W,...f};(0,v.useEffect)(()=>{g.current?(x(c),P(c?l.filter(e=>c.find(t=>String(t.value)===String(e.value))):null)):g.current=!0},[l,c]);let[eo,es]=(0,v.useState)(0),[ec,eu]=(0,v.useState)(null),ed=(0,v.useRef)(null);(0,v.useEffect)(()=>{let e=()=>{ew(()=>es(window.scrollY))};return F?window.addEventListener("scroll",e,!1):window.removeEventListener("scroll",e,!1),()=>window.removeEventListener("scroll",e,!1)},[F]),(0,v.useEffect)(()=>{if(!ed.current||!W.current)return;let e=W.current.getBoundingClientRect(),t=ed.current.getBoundingClientRect(),n=window.innerHeight,l={top:"unset",right:"0",left:"0",bottom:"unset"},r=n-(null==e?void 0:e.top)-8-e.height;!(document.querySelectorAll("[data-portal]").length>0)&&(n<(t.height+8)*2+e.height?(null==e?void 0:e.top)>r:r<t.height)?l.bottom="70px":l.top=eA,eu(l)},[F,eo]);let em=ec||{top:eA,left:"0",right:"0"};return(0,v.useEffect)(()=>{F&&(null==_||_())},[F,_]),(0,v.useEffect)(()=>{null==t||t(k)},[k]),(0,h.jsxs)("div",{className:(0,y.A)(ek().select,d),onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),onKeyDown:e=>en(e),children:[(0,h.jsx)("div",{className:ek().inputcontainer,children:(0,h.jsx)(U,{...ei})}),F&&(0,h.jsxs)("div",{className:ek().popup,ref:ed,style:{maxHeight:u+"px",...em},children:[(0,h.jsxs)("div",{ref:Y,className:ek().popupContent,style:{maxHeight:u-(a?100:20)+"px"},children:[0===V.length&&(0,h.jsx)("div",{className:ek().emptyList,children:r||"Нет совпадений"}),V.length>0&&(0,h.jsx)("ul",{className:ek().optionsList,ref:X,children:V.map((e,t)=>{let n=!1;if(a)n=!!(null==I?void 0:I.find(t=>String(t.value)===String(e.value)));else if(b){var l;n=String(null==(l=b[0])?void 0:l.value)===String(e.value)}return(0,h.jsx)("li",{onMouseLeave:J,onMouseEnter:e=>{e.stopPropagation(),M.isDisplaced&&et({index:t,trigger:"mouse"})},ref:$===t?z:void 0,className:(0,y.A)(ek().optionsItem,{[ek().targetOptionsItem]:$===t,[ek().selectedOptionsItem]:n,[ek().removeLineHeight]:m}),children:(0,h.jsxs)("button",{onClick:()=>Q(e),children:[a&&(0,h.jsx)("span",{className:(0,y.A)(ek().checkbox,{[ek().active]:n}),children:n&&(0,h.jsx)(O,{className:ek().marker,children:(0,h.jsx)(eb,{})})}),e.label]})},e.value)})})]}),a&&!!(null==I?void 0:I.length)&&(0,h.jsxs)("div",{className:ek().popupActions,children:[(0,h.jsx)(H.$,{size:"xs",iconLeft:(0,h.jsx)(N.Eau,{}),shape:"icon",variant:"secondary",onClick:el}),(0,h.jsx)(H.$,{size:"xs",onClick:Z,label:"Применить (".concat(I.length,")")})]})]})]})});eT.displayName="Desktop";var eS=n(9050),ej=n.n(eS);let eL=(0,v.memo)(e=>{let{onSearch:t,onChange:n=()=>null,options:l,optionsEmptyText:r,multiple:a=!1,search:i=!1,defaultOpen:o=!1,autoFocus:s=!1,value:c,className:u,removeLineHeight:d,onClose:m,onOpen:p,..._}=e,f=(0,v.useRef)(!1),[g,b]=(0,v.useState)(()=>null!=c?c:null),[x,C]=(0,v.useState)(""),[k,A]=(0,v.useState)(!1),[w,T]=(0,v.useState)(s||o),[S,j]=(0,v.useState)(o),[L,E]=(0,v.useState)(null),[I,P]=(0,v.useState)(()=>g?l.filter(e=>g.find(t=>String(t.value)===String(e.value))):null),[D,R]=(0,v.useState)(0),M=(0,v.useRef)(null),B=(0,v.useRef)(null),F=(0,v.useRef)(null),q=(0,v.useMemo)(()=>w&&!!l.length,[w,l.length]),W=(0,v.useMemo)(()=>i&&x&&""!==x?l.filter(e=>-1!==String(e.label).toLocaleLowerCase().indexOf(x.toLocaleLowerCase())):l,[x,l,i]),X=(0,v.useCallback)(e=>{setTimeout(()=>T(t=>!e&&!t),300),A(t=>!e&&!t),j(t=>!e&&!t),S||(A(!1),T(!1),C("")),(null==F?void 0:F.current)&&a&&q&&R(F.current.scrollTop),e&&(null==m||m())},[S,a,q,m]),G=(0,v.useCallback)(()=>{setTimeout(()=>A(!0),600),T(!0),j(!0)},[]),V=(0,v.useCallback)(e=>{if(a)P(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t)return[e];let l=t.findIndex(t=>String(t.label).toLocaleLowerCase()===String(e.label).toLocaleLowerCase());return l>=0?([...t.slice(0,l),...t.slice(l+1)].length||(b(null),E(null),P(null),n(null)),[...t.slice(0,l),...t.slice(l+1)]):[...t,e]});else{let t=[],r=l.find(t=>String(t.value).trim().toLocaleLowerCase()===String(e.value).trim().toLocaleLowerCase());t=r?[r]:[];let a=l.findIndex(e=>{var n;return e.label.toLocaleLowerCase()===(null==(n=t[0])?void 0:n.label.toLocaleLowerCase())});E(a>=0?a:null),b([e]),P([e]),n(c&&e.value===c[0].value?null:t),C(""),setTimeout(()=>X(!0),300)}},[X,a,n,l,c]),K=(0,v.useCallback)(()=>{n(I),X(!0)},[X,n,I]),Q=(0,v.useCallback)(()=>{b(null),E(null),R(0),P(null),X(!0),n(null)},[X,n]);eC({isMobile:!0,isOpenPopup:q,multiple:a,scrollValue:D,selectedItemIndex:L,container:F,element:B});let Z=(0,v.useMemo)(()=>(null==I?void 0:I.length)&&!q?a?"":I[0].label:x,[I,x,a,q]),J=(0,v.useMemo)(()=>(null==I?void 0:I.length)?1===I.length?I[0].label:a?"Выбрано (".concat(I.length,")"):"":"",[a,I]),$=(0,v.useMemo)(()=>{if(!(null==I?void 0:I.length))return x;let e=I.length;return 1===e?I[0].label:a?"Выбрано (".concat(e,")"):q&&!x.length?I[0].label:x},[q,a,x,I]);return(0,v.useEffect)(()=>{f.current?(b(c),P(c?l.filter(e=>c.find(t=>String(t.value)===String(e.value))):null)):f.current=!0},[l,c]),(0,v.useEffect)(()=>{q&&(null==p||p())},[q,p]),(0,v.useEffect)(()=>{null==t||t(x)},[x]),(0,h.jsxs)("div",{className:(0,y.A)(ej().select,u),children:[(0,h.jsx)("div",{className:(0,y.A)(ej().inputcontainer,ej().inputButton),children:(0,h.jsx)(U,{readOnly:!i,addonAfter:(0,h.jsx)(O,{className:ej().icon,children:(0,h.jsx)(ef,{})}),inputType:"button",inputClear:Q,value:J,onClick:G,autoComplete:"off",type:"button",..._})}),q&&(0,h.jsx)(z.Z,{children:(0,h.jsx)(Y.L,{full:!0,className:ej().popup,isOpen:S,onClose:()=>X(!0),children:(0,h.jsxs)("div",{className:ej().window,children:[(0,h.jsx)("div",{className:ej().safeAreaLine}),(0,h.jsx)("div",{className:(0,y.A)(ej().inputcontainer,ej().inputPopup),children:(0,h.jsx)(U,{readOnly:!i,addonAfter:(0,h.jsx)(O,{className:(0,y.A)({[ej().iconRotate]:!i}),children:i?(0,h.jsx)(ey,{}):(0,h.jsx)(ef,{})}),onChange:e=>C(e.currentTarget.value),autoFocus:k,inputType:"select",inputClear:()=>C(""),value:Z,placeholder:$,onFocus:()=>A(!0),onClick:()=>!k&&A(!0),autoComplete:"off",..._})}),(0,h.jsxs)("div",{ref:F,className:ej().content,children:[0===W.length&&(0,h.jsx)("div",{className:ej().empty,children:r||"Нет совпадений"}),W.length>0&&(0,h.jsx)("ul",{className:(0,y.A)(ej().optionsList,{[ej().multipleList]:a}),ref:M,children:W.map((e,t)=>{let n=!1;if(a)n=!!(null==I?void 0:I.find(t=>String(t.value)===String(e.value)));else if(g){var l;n=String(null==(l=g[0])?void 0:l.value)===String(e.value)}return(0,h.jsx)("li",{ref:L===t?B:void 0,className:(0,y.A)(ej().optionsItem,{[ej().selectedOptionsItem]:n,[ej().removeLineHeight]:d}),children:(0,h.jsxs)("button",{onClick:()=>V(e),children:[a&&(0,h.jsx)("span",{className:(0,y.A)(ej().checkbox,{[ej().active]:n}),children:n&&(0,h.jsx)(O,{className:ej().marker,children:(0,h.jsx)(eb,{})})}),e.label]})},e.value)})})]}),a&&!!(null==I?void 0:I.length)&&(0,h.jsxs)("div",{className:ej().popupActions,children:[(0,h.jsx)(H.$,{iconLeft:(0,h.jsx)(N.Eau,{}),shape:"icon",variant:"secondary",onClick:Q}),(0,h.jsx)(H.$,{onClick:K,label:"Применить (".concat(I.length,")")})]})]})})})]})});eL.displayName="Mobile";let eE=(0,v.memo)(e=>{let{isMobile:t,...n}=e;return t?(0,h.jsx)(eL,{...n}):(0,h.jsx)(eT,{...n})});eE.displayName="UiSelect";var eI=n(73520),eP=n(20753),eD=n(89910);let eR=e=>{var t,n;let{data:l,state:r,isTransport:a,transportType:i,className:o}=e,{label:s,multi:c}=l,u={};return a&&(u={mask:"car"===i?"carNumber":"bikeNumber",maxLength:"car"===i?12:10,maskPlaceholder:"car"===i?"A 000 AA 00":"0000 AA 00"}),(0,h.jsxs)(h.Fragment,{children:["string"==typeof r.value&&(0,h.jsx)(U,{size:"middle",label:s,className:o,value:r.isFocused?r.value:r.formattedValue,status:r.error?"error":void 0,message:null!=(t=r.error)?t:"",addonAfter:"number"==typeof r.percentValue?"".concat((0,eD.rW)(Number(r.percentValue),1),"%").replace(".",","):void 0,...r.events,...u}),"options"in r&&(0,h.jsx)(eE,{size:"middle",label:s,className:o,options:r.options,value:r.value,onChange:r.set,search:c,multiple:c}),"setDate"in r&&(0,h.jsx)(eP.l,{label:s,onChange:r.setDate,value:null!=(n=r.value)?n:void 0})]})};var eM=n(25894),eO=n.n(eM);let eB=(0,v.memo)(e=>{let{list:t,className:n,isMobile:l,allLength:r}=e,a=l?t.slice(0,3):t;return(0,h.jsxs)("div",{className:(0,y.A)(eO().container,n),children:[a.map(e=>(0,h.jsx)("picture",{className:eO().item,children:(0,h.jsx)("img",{className:eO().img,src:e.src,alt:e.name,width:48,height:48})},e.id)),(0,h.jsxs)("div",{className:(0,y.A)(eO().item,eO().itemNum),children:["+",r-t.length]})]})});function eF(){return(eF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}eB.displayName="LogosList";let eq=function(e){return v.createElement("svg",eF({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},e),_||(_=v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.233 3.455A1 1 0 0 1 20 4.43v7.45a9 9 0 0 1-3.77 7.33l-3.65 2.6a1 1 0 0 1-1.16 0l-3.65-2.6A9 9 0 0 1 4 11.88V4.43a1 1 0 0 1 1.21-.98 8 8 0 0 0 6.22-1.27 1 1 0 0 1 1.14 0 8 8 0 0 0 6.22 1.27 1 1 0 0 1 .443.005ZM10.85 12.29l2.69-2.7.04-.01A1.004 1.004 0 1 1 15 11l-3.44 3.41a1.001 1.001 0 0 1-1.42 0l-1.6-1.6a1.004 1.004 0 0 1 1.42-1.42l.89.9Z",fill:"currentColor"})))};var eU=n(25710),eH=n.n(eU);let eW=(0,v.memo)(e=>{let{text:t,className:n}=e;return(0,h.jsxs)("div",{className:(0,y.A)(eH().wrapper,n),children:[(0,h.jsx)(O,{className:eH().icon,children:(0,h.jsx)(eq,{})}),(0,h.jsx)("p",{className:eH().text,children:t})]})});eW.displayName="ProductNote";var eX=function(e){return e.deposits="deposits",e.credits="credits",e.microloans="microloans",e.autoCredits="autoCredits",e.mortgage="mortgage",e.creditCards="creditCards",e.mortgageInsurance="mortgageInsurance",e.osago="osago",e["casсo"]="casсo",e.savingsAccounts="savingsAccounts",e.debitCards="debitCards",e}({}),ez=function(e){return e.amount="amount",e.firstPayment="firstPayment",e.limit="limit",e.gracePeriod="gracePeriod",e.creditBalance="creditBalance",e.license="license",e}({}),eY=function(e){return e.period="period",e.periodDays="periodDays",e.propertyType="propertyType",e.region="region",e.realEstateMarket="realEstateMarket",e.bankUrl="bankUrl",e.bankId="bankId",e.discounts="discounts",e.cardType="cardType",e.transportType="transportType",e}({}),eG=function(e){return e.birthDate="birthDate",e}({}),eV=n(75006),eK=n.n(eV);let eQ=(0,v.memo)(e=>{let{className:t,active:n,onChange:l,isMobile:r,chips:a,searchTags:i,mainProducts:o}=e,[s,c]=(0,v.useState)(!1),[u,d]=(0,v.useState)(!1),m=(0,v.useMemo)(()=>[{id:"search",label:"Поиск"},...a],[a]),p=!!((null==o?void 0:o.length)&&m.length>1),{buttonRef:_,chipsRef:f,containerRef:g,isOverflow:b,minLength:x}=(0,D.R)({length:m.length,gap:r?12:16,rows:r?3:1,isActive:!(null==o?void 0:o.length)}),C=p&&o?o.length+1:x,N=m.length-C,k=e=>t=>{t&&(f.current[e]=t)},A=(0,v.useCallback)(()=>{d(e=>!e)},[]),w=(0,v.useCallback)(()=>{c(e=>!e)},[]);return(0,h.jsxs)(h.Fragment,{children:[(!s||r)&&(0,h.jsxs)("div",{className:(0,y.A)(eK().chipsContainer,!u&&eK().chipsContainerClosed,t),ref:g,children:[m.slice(0,u||!b&&!p?m.length:C).map((e,t)=>{let{id:a}=e;return a in eX?(0,h.jsx)("button",{className:eK().chipButtonElement,onClick:()=>l(a),ref:k(t),type:"button",children:(0,h.jsx)(W.v,{className:eK().chip,label:e.label,variant:n===e.id?"primary":"secondary",size:r?"m":"l",rounded:!0})},a):(0,h.jsx)("button",{className:(0,y.A)(eK().chipButtonElement,eK().chipSearch),onClick:w,ref:k(t),type:"button",children:(0,h.jsx)(W.v,{className:eK().chip,label:e.label,variant:"secondary",size:r?"m":"l",rounded:!0})},a)}),(b||p)&&N>0&&(0,h.jsx)("div",{ref:_,children:(0,h.jsx)("button",{className:eK().chipButtonElement,onClick:A,type:"button",children:(0,h.jsx)(W.v,{className:(0,y.A)(eK().chip,eK().chipButton),label:u?"Скрыть":"Ещё",variant:"secondary",size:r?"m":"l",rounded:!0})})})]}),s&&!!(null==i?void 0:i.length)&&(0,h.jsx)("div",{className:(0,y.A)(eK().search,t),children:null==i?void 0:i.map(e=>(0,h.jsx)("a",{className:eK().searchLink,href:e.data.url,children:e.data.text},"".concat(e.type,"-").concat(e.data.url)))})]})});eQ.displayName="ProductsChips";var eZ=n(27734),eJ=n.n(eZ);let e$=(0,v.memo)(e=>{let{className:t}=e;return(0,h.jsxs)("p",{className:(0,y.A)(eJ().transportText,t),children:["У меня"," ",(0,h.jsx)("a",{className:eJ().transportTextLink,target:"_self",href:"https://osago.finuslugi.ru/kalkulyator_osago_first",rel:"noreferrer",children:"нет номера"})]})});e$.displayName="TransportText";let e0={[eX.deposits]:{url:"/vklady/api/deposits/info?archive=1",key:["currentLength"]},[eX.savingsAccounts]:{url:"/vklady/api/deposits/info?refill=1&archive=1",key:["currentLength"]},[eX.debitCards]:{url:"/vklady/api/debitCards/info?archive=1",key:["currentLength"]},[eX.credits]:{url:"/kredity/api/credits/info?archive=1",key:["currentLength"]},[eX.microloans]:{url:"/kredity/api/microloans/info?archive=1",key:["currentLength"]},[eX.autoCredits]:{url:"/kredity/api/autoCredits/info?archive=1",key:["currentLength"]},[eX.creditCards]:{url:"/kredity/api/creditCards/info?archive=1",key:["currentLength"]},[eX.mortgage]:{url:"/kredity/api/mortgages/info?archive=1",key:["currentLength"]}},e1=[{value:"car",label:"Автомобиль"},{value:"bike",label:"Мотоцикл"}],e2=[{value:"",label:"Не имеет значения"},{value:1,label:"1 месяц"},{value:2,label:"2 месяца"},{value:3,label:"3 месяца"},{value:4,label:"4 месяца"},{value:5,label:"5 месяцев"},{value:6,label:"6 месяцев"},{value:9,label:"9 месяцев"},{value:12,label:"1 год"},{value:18,label:"1,5 года"},{value:24,label:"2 года"},{value:36,label:"3 года"},{value:48,label:"4 года"},{value:60,label:"5 лет"}],e5=[{value:"flat",label:"Квартира"},{value:"townhouse",label:"Таунхаус"},{value:"cottage",label:"Загородный дом или коттедж"},{value:"room",label:"Комната или доля"},{value:"apartment",label:"Апартаменты"},{value:"commercial",label:"Коммерческая недвижимость"},{value:"garage",label:"Гараж"},{value:"custom",label:"Другое"}],e4=[{value:"primary",label:"Первичный"},{value:"secondary",label:"Вторичный"}],e3=[{value:"travels",label:"Путешествия"},{value:"refuellings",label:"Заправки"},{value:"trade_networks",label:"Торговые сети"},{value:"charity",label:"Благотворительность"},{value:"discount_program",label:"Дисконтная программа"},{value:"custom",label:"Другое"}],e9=[{id:eX.deposits,label:"Вклады",buttons:[{type:"length",href:"/vklady",paramsType:"query"}],fields:[{id:ez.amount,label:"Сумма",paramsName:"amount"},{id:eY.period,label:"Срок",paramsName:"term"}]},{id:eX.credits,label:"Кредиты",buttons:[{type:"length",href:"/potrebitelskie_kredity",paramsType:"query"}],fields:[{id:ez.amount,label:"Сумма",paramsName:"amount"},{id:eY.period,label:"Срок",paramsName:"period"}]},{id:eX.microloans,label:"Займы",company:"mfo",buttons:[{type:"length",href:"/mikrozajmy",paramsType:"hash"}],fields:[{id:ez.amount,label:"Сумма",paramsName:"amount"},{id:eY.periodDays,label:"Срок",paramsName:"period"}]},{id:eX.autoCredits,label:"Автокредиты",buttons:[{type:"length",href:"/avtokredity",paramsType:"query"}],fields:[{id:ez.amount,label:"Сумма",paramsName:"amount"},{id:ez.firstPayment,label:"Первый взнос",paramsName:"first_payment"},{id:eY.period,label:"Срок",paramsName:"period"}]},{id:eX.mortgage,label:"Ипотека",buttons:[{type:"length",href:"/ipoteka",paramsType:"hash"}],fields:[{id:ez.amount,label:"Сумма кредита от",paramsName:"amount"},{id:ez.firstPayment,label:"Первый взнос",paramsName:"first_payment"},{id:eY.period,label:"Срок",paramsName:"period"},{id:eY.propertyType,label:"Тип недвижимости",paramsName:"property_type",multi:!0},{id:eY.region,label:"Мое местоположение",paramsName:"region"},{id:eY.realEstateMarket,label:"Рынок недвижимости",paramsName:"real_estate_market",multi:!0}]},{id:eX.creditCards,label:"Кредитные карты",buttons:[{type:"length",href:"/kreditnye_karty",paramsType:"query"}],fields:[{id:ez.limit,label:"Кредитный лимит не менее",paramsName:"card_limit"},{id:ez.gracePeriod,paramsName:"grace_period",label:"Льготный период не менее"}]},{id:eX.mortgageInsurance,label:"Страхование ипотеки",note:"Что можно застраховать: недвижимость, жизнь и здоровье, либо всё сразу.",buttons:[{type:"default",text:"Рассчитать",href:"https://mortgage.finuslugi.ru/?from=promo&promo_code=finuslugi",paramsType:"query"}],fields:[{id:eY.bankUrl,label:"Ваш банк-кредитор",paramsName:"promo_bankCode"},{id:eG.birthDate,paramsName:"promo_birthDate",label:"Ваша дата рождения"},{id:ez.creditBalance,label:"Остаток кредита",paramsName:"promo_creditSum"}]},{id:eX.osago,title:"Онлайн калькулятор ОСАГО",label:"ОСАГО",buttons:[{type:"default",text:"Рассчитать",href:"https://osago.finuslugi.ru/kalkulyator_osago_first",paramsType:"hash"}],fields:[{id:ez.license,paramsName:"license"}]},{id:eX.casсo,title:"Онлайн калькулятор КАСКО",label:"КАСКО",buttons:[{type:"default",text:"Рассчитать",href:"https://kasko.finuslugi.ru/auto-parameters",paramsType:"query"}],fields:[{id:ez.license,paramsName:"license"}]},{id:eX.savingsAccounts,label:"Накопительные счета",buttons:[{type:"length",href:"/vklady/teg_nakopitelnye",paramsType:"query"}],fields:[{id:ez.amount,label:"Сумма",paramsName:"amount"},{id:eY.period,label:"Срок",paramsName:"term"}]},{id:eX.debitCards,label:"Дебетовые карты",buttons:[{type:"length",href:"/debetovye_karty",paramsType:"hash"}],fields:[{id:eY.discounts,label:"Скидки и бонусы",paramsName:"discounts"},{id:eY.cardType,label:"Тип карты",paramsName:"card_type"},{id:eY.bankId,paramsName:"bank",label:"Банки",multi:!0},{id:eY.region,paramsName:"region",label:"Мое местоположение"}]}],e6=["sberbank","vtb","gazprombank","alfabank","mkb","rosselhozbank","sovcombank","rossijskij_kapital","rosbank","yandeks_bank"],e7=e=>{let t=[],n=[];return[...e].sort(()=>.5-Math.random()).forEach(e=>{let l=(e=>{let{url:t,logo_mob:n,logo:l,name:r}=e,a=n||l;return(null==a?void 0:a.includes("http"))?{id:t,src:a,name:r}:null})(e);if(!l)return;let r=(e=>{let{url:t}=e;return e6.includes(t)})(e);r&&t.length<4&&t.push(l),!r&&n.length<6&&n.push(l)}),n=n.slice(0,6-t.length),[...t,...n].sort(()=>.5-Math.random())};var e8=n(28625),te=n(88475);let tt=function(e,t,n,l){let r=!(arguments.length>4)||void 0===arguments[4]||arguments[4];return e.fields.map(e=>{var a,i,o,s,c,u;let d="";if(e.id in ez&&(d=null!=(a=t[e.id].percentValue)?a:t[e.id].value),e.id in eY&&e.id!==eY.region&&(d=null!=(o=null==(i=n[e.id].value)?void 0:i.map(e=>e.value).join(","))?o:null),e.id===eY.region&&r){let t=[],[l,r]=String(null!=(c=null==(s=n[e.id].value)?void 0:s[0].value)?c:"").split("/");return l&&t.push("region=".concat(l)),r&&t.push("town=".concat(r)),t.join("&")}if(e.id in eG){let t=l[e.id].value;d=t&&t.toLocaleDateString("ru-RU")}return d?"".concat(null!=(u=e.paramsName)?u:e.id,"=").concat(d):null}).filter(e=>e).join("&")};var tn=n(72964);let tl=["moskva","sankt-peterburg","novosibirsk","ekaterinburg","nizhniy_novgorod"],tr=(0,te.O)(),ta=e=>!!e;var ti=n(87516),to=n.n(ti);let ts=(0,v.memo)(e=>{var t,n,l;let{className:r,isMobile:a,banks:i,mfo:o,hideProducts:s,carImg:c,bikeImg:u,searchTags:d,regions:m,apiConfig:p=e0,mainProducts:_,cardTypes:f,baseUrl:g="https://finuslugi.ru",updatedProducts:b,defaultIndex:x,isLookOffersButtonTitle:C=!1}=e,{inputs:N,selects:k,dates:A,reset:w,isLoading:T,length:S,activeProduct:j,products:L,setActiveProduct:E,hrefParams:I}=(e=>{let{regions:t,hideProducts:n,banks:l,apiConfig:r,mainProducts:a,cardTypes:i,products:o,defaultIndex:s=0}=e,c=(0,v.useRef)(null),u=(0,v.useMemo)(()=>{var e;return[...null!=(e=null==a?void 0:a.map(e=>o.find(t=>t.id===e)).filter(ta))?e:[],...o.filter(e=>!(null==a?void 0:a.includes(e.id)))].filter(e=>!(null==n?void 0:n.includes(e.id)))},[o,n,a]),[d,m]=(0,v.useState)(u[s]),[p,_]=(()=>{let e=(0,tn.G)({format:"currency",maxLength:20,type:"int",unit:"₽"}),t=(0,tn.G)({format:"currency",maxLength:20,type:"int",unit:"₽"}),n=e.value?Number(t.value)/(Number(e.value)/100):0;Number.isInteger(n)||(n=Number(n.toFixed(5)));let l=(0,tn.G)({format:"currency",maxLength:20,type:"int",unit:"₽"}),r=(0,tn.G)({format:"currency",maxLength:20,type:"int",unit:"day"}),a=(0,tn.G)({format:"currency",maxLength:20,type:"int",unit:"₽"}),i=(0,tn.G)(),o=(0,v.useCallback)(()=>{e.handleChange(""),t.handleChange(""),l.handleChange(""),r.handleChange(""),a.handleChange(""),i.handleChange("")},[]);return[{[ez.amount]:e,[ez.firstPayment]:{...t,percentValue:n,error:n>100?"Указали больше чем запрашиваете кредитных денег":null},[ez.limit]:l,[ez.gracePeriod]:r,[ez.creditBalance]:a,[ez.license]:i},o]})(),[h,f]=(e=>{let{regions:t,banks:n,cardTypes:l}=e,[r,a]=(0,v.useState)(null),[i,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(null),[u,d]=(0,v.useState)(null),[m,p]=(0,v.useState)(null),[_,h]=(0,v.useState)(null),[f,g]=(0,v.useState)(null),[b,x]=(0,v.useState)(null),[y,C]=(0,v.useState)([e1[0]]),[N,k]=(0,v.useState)(null),A=(0,v.useMemo)(()=>(e=>{let t=e.reduce((e,t)=>{if(e.some(e=>e.value===t.url))return e;let n=t.towns.map(e=>({label:e.name,value:"".concat(t.url,"/").concat(e.url)}));return[...e,{label:t.name,value:t.url},...n]},[]),n=[],l=[];return t.forEach(e=>{let t=tl.findIndex(t=>String(e.value).includes(t));t>-1?n[t]=e:l.push(e)}),[{label:"Вся Россия",value:""},...n.filter(Boolean),...l]})(t),[t]),w=(0,v.useMemo)(()=>n.map(e=>({label:e.name,value:e.url})),[n]),T=(0,v.useMemo)(()=>n.map(e=>({label:e.name,value:e.url})),[n]),S=e2.map(e=>({label:e.label,value:"number"==typeof e.value?30*e.value:e.value})),j=(0,v.useMemo)(()=>l.map(e=>({label:e.title,value:e.id})),[l]),L=(0,v.useCallback)(()=>{a(null),o(null),c(null),d(null),p(null),h(null),g(null),x(null),C([e1[0]]),k(null)},[]);return[{[eY.period]:{value:r,set:a,options:e2},[eY.bankUrl]:{value:i,set:o,options:w},[eY.bankId]:{value:s,set:c,options:T},[eY.cardType]:{value:u,set:d,options:j},[eY.discounts]:{value:m,set:p,options:e3},[eY.propertyType]:{value:b,set:x,options:e5},[eY.realEstateMarket]:{value:_,set:h,options:e4},[eY.region]:{value:f,set:g,options:A},[eY.transportType]:{value:y,set:C,options:e1},[eY.periodDays]:{options:S,value:N,set:k}},L]})({regions:t,banks:l,cardTypes:i}),[g,b]=(()=>{let[e,t]=(0,v.useState)(),n=(0,v.useCallback)(()=>{t(null)},[]);return[{[eG.birthDate]:{setDate:t,value:e}},n]})(),[x,y]=(0,v.useState)(!1),[C,N]=(0,v.useState)(0),k=tt(d,p,h,g),A=tt(d,p,h,g,!1),w=(0,v.useMemo)(()=>((e,t)=>({...e,buttons:e.buttons.map(e=>{if(!e.paramsType||!e.href)return e;let n="hash"===e.paramsType?"#":"?",l=t?"".concat(e.href).concat(e.href.includes(n)?"&":n).concat(t):e.href;return{...e,href:l}})}))(d,A),[d,A]),T=(0,v.useCallback)(()=>{_(),f(),b()},[b,_,f]);return(0,v.useEffect)(()=>{var e;null==(e=c.current)||e.abort(),c.current=new AbortController,tr(async()=>{var e,t,n,l,a,i,o;y(!0),N(0);let s=null!=(a=null==(e=r[d.id])?void 0:e.url)?a:null==(t=e0[d.id])?void 0:t.url,u=null!=(i=null==(n=r[d.id])?void 0:n.key)?i:null==(l=e0[d.id])?void 0:l.key;if(s&&u){let{data:e}=await (0,e8.px)("".concat(s).concat(s.includes("?")?"&":"?").concat(k),{signal:null==(o=c.current)?void 0:o.signal},void 0),t=((e,t)=>{let n=t.reduce((e,t)=>"object"==typeof e&&null!==e&&t in e?e[t]:null,e);return"number"==typeof n||"string"==typeof n?Number(n):0})(e,u);t&&!Number.isNaN(t)&&N(t)}y(!1)})},[d.id,r,k]),{inputs:p,selects:h,dates:g,reset:T,isLoading:x,products:u,activeProduct:w,setActiveProduct:m,length:C,hrefParams:A}})({regions:m,hideProducts:s,banks:i,apiConfig:p,mainProducts:_,cardTypes:f,products:(0,v.useMemo)(()=>e9.map(e=>{var t;let n=null!=(t=null==b?void 0:b.find(t=>t.id===e.id))?t:{};return{...e,...n}}),[b]),defaultIndex:x}),P=null==(t=k.transportType.value)?void 0:t[0],D=(0,v.useMemo)(()=>j.fields.some(e=>e.id===ez.license),[j.fields]),R=(0,v.useCallback)(e=>{var t;let n=null!=(t=L.find(t=>t.id===e))?t:L[0];w(),E(n)},[L,w,E]),M=(0,v.useMemo)(()=>e7(i),[i]),O=(0,v.useMemo)(()=>e7(o),[o]),B="mfo"===j.company?O:M,F="mfo"===j.company?o.length:i.length;return(0,h.jsxs)("div",{className:(0,y.A)(to().container,r),children:[(0,h.jsx)("h2",{className:to().title,children:"Подборщик предложений"}),(0,h.jsx)(eQ,{isMobile:a,className:to().chips,active:j.id,onChange:R,chips:L,searchTags:d,mainProducts:_}),(0,h.jsxs)("div",{className:(0,y.A)(to().form,D&&to().formTransport),children:[D&&(0,h.jsx)("picture",{className:to().imgWrapper,children:(0,h.jsx)("img",{width:308,height:176,className:to().img,src:(null==P?void 0:P.value)==="car"?c:u,alt:null!=(n=null==P?void 0:P.label)?n:""})}),(0,h.jsxs)("div",{className:(0,y.A)(to().formHead,j.note&&to().formHeadNote),children:[(0,h.jsx)("p",{className:to().productName,children:null!=(l=j.title)?l:j.label}),(0,h.jsx)(eB,{className:to().banksMob,allLength:F,list:B,isMobile:!0}),j.note&&(0,h.jsx)(eW,{className:to().note,text:j.note})]}),(0,h.jsxs)("div",{className:(0,y.A)(to().formFields,{[to().formFieldsTwo]:2===j.fields.length,[to().formFieldsThree]:3===j.fields.length||j.fields.length>4,[to().formFieldsFour]:4===j.fields.length,[to().formFieldsTransport]:D}),children:[D&&(0,h.jsx)(eE,{size:"middle",label:"Тип транспорта",className:to().field,options:k.transportType.options,value:k.transportType.value,onChange:k.transportType.set}),j.fields.map(e=>{var t;let n=null;return e.id in ez&&(n=N[e.id]),e.id in eG&&(n=A[e.id]),e.id in eY&&(n=k[e.id]),n&&(0,h.jsx)(eR,{data:e,isMobile:a,isTransport:D,transportType:String(null!=(t=null==P?void 0:P.value)?t:""),state:n},e.id)}),D&&(0,h.jsx)(e$,{className:to().transportText})]}),(0,h.jsxs)("div",{className:to().formFoot,children:[(0,h.jsx)("div",{className:to().buttonWrapper,children:j.buttons.map(e=>{var t,n,l;let r=(null==(t=e.href)?void 0:t[0])==="/"?"".concat(g).concat(e.href):e.href;return(0,h.jsx)(H.$,{as:"a",size:"s",href:r&&((e,t)=>{let n="?";e.includes("#")&&(!e.includes("?")||e.indexOf("#")<e.indexOf("?"))&&(n="#");let[l,r]=e.split(n),a=["".concat(l).concat(t?"/reg_".concat(t):"")];return r&&a.push(r),a.join(n)})(r,String(null!=(l=null==(n=k.region.value)?void 0:n[0].value)?l:"")),pending:"length"===e.type&&T,className:to().button,variant:e.theme,label:(e=>"length"===e.type?C?"Показать ".concat(S):"Смотреть ".concat(S," ").concat((0,eI.td)(S,"предложение","предложения","предложений")):"text"in e?e.text:"")(e),onClick:()=>{var t;return null==(t=e.onClick)?void 0:t.call(e,I)}},r)})},j.id),(0,h.jsx)(eB,{className:to().banks,allLength:F,list:B})]})]})]})});ts.displayName="UiOfferPicker";var tc=n(35842),tu=n.n(tc);let td=e=>{let{children:t,...n}=e;return(0,h.jsx)("a",{...n,children:t})},tm=(0,v.memo)(e=>{let{Link:t=td,text:n="Управляйте финансами через приложение Финуслуг",className:l,BgImage:r,QrImage:a,isSmall:i,href:o="https://promo.finuslugi.ru/mobapp/",hideButtons:s}=e;return(0,h.jsxs)(t,{className:(0,y.A)(tu().container,l),target:"_blank",href:o,children:[(0,h.jsx)("div",{className:(0,y.A)(tu().title,i&&tu().titleSmall),dangerouslySetInnerHTML:{__html:n}}),(0,h.jsxs)("div",{className:tu().right,children:[a&&(0,h.jsx)("div",{className:tu().qrContainer,children:(0,h.jsx)(a,{className:tu().qr})}),!s&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:tu().button,children:"Отсканируйте QR"}),(0,h.jsx)("div",{className:(0,y.A)(tu().button,tu().buttonMobile),children:"Подробнее"})]}),r&&(0,h.jsx)(r,{className:tu().bgImage})]})]})});tm.displayName="UiQrAd";var tp=n(13860),t_=n(6846),th=n.n(t_);let tv=(e,t,n)=>({width:e+"px",minWidth:e+"px",maxWidth:e+"px",height:t+"px",minHeight:t+"px",maxHeight:t+"px",marginLeft:n+"px"}),tf=e=>(0,v.cloneElement)(e,{style:{...e.props.style,width:"100%",height:"100%"}}),tg=(0,v.memo)(e=>{let{infiniteSlider:t=!1,overflowVisible:n=!1,hideNavigationControl:l=!1,hidePaginationControl:r=!1,autoPlayTime:a=0,sliderPerView:i=1,spaceBetween:o=0,startDelay:s=0,width:c,height:u,classSliderWrapper:d,classSlider:m,classSlide:p,classSliderList:_,classNavigationLeftButton:f,classNavigationRightButton:g,children:b,onChange:x,isDependsOnWidth:C=!0}=e,N=(0,tp.qF)("l"),k=(0,v.useMemo)(()=>b.length,[b.length]),A=k>i,w=i>b.length?i:b.length>5?5:b.length,T=(0,v.useMemo)(()=>c/2,[c]),S=(0,v.useMemo)(()=>t?-(c+o)*w-o:0-o,[t,c,o,w]),j=(0,v.useMemo)(()=>({maxTime:500,minTime:60,maxDistance:c,minDistance:c/100*10}),[c]),[L,E]=(0,v.useState)(),[I,P]=(0,v.useState)(0),[D,R]=(0,v.useState)(!0),[M,B]=(0,v.useState)(!s),F=(0,v.useRef)(!0),q=(0,v.useRef)(0),U=(0,v.useRef)(0),H=(0,v.useRef)(null),W=(0,v.useRef)(!1),X=(0,v.useRef)(0),z=(0,v.useRef)(0),Y=(0,v.useRef)(0);(0,v.useEffect)(()=>{W.current&&(null==x||x(I)),W.current=!0},[I,x]),(0,v.useEffect)(()=>{if(!H.current||!M)return;q.current=0,U.current=0,P(0);let e=H.current;E(e),e.style.left=S+"px",e.style.width=(k+2*w)*(c+o)+"px",e.style.height=u+"px";let t=e.getElementsByClassName("slide");for(let e=0;e<t.length;e++){let n=t.item(e);n instanceof HTMLElement&&(n.style.width=c+"px",n.style.minWidth=c+"px",n.style.maxWidth=c+"px",n.style.height=u+"px",n.style.minHeight=u+"px",n.style.maxHeight=u+"px")}},[c,u,t,o,H,w,k,S,M]);let G=(0,v.useCallback)(e=>{M||B(!0),L&&(R(!1),R(!0),setTimeout(()=>{L.style.left=S-(c+o)*e+"px"}),P(()=>e<0?k+e:e),U.current=e)},[c,o,L,S,k,M]),V=(0,v.useCallback)((e,t)=>{M||B(!0),L&&(R(!0),F.current&&(t||(q.current=L.offsetLeft),1===e?(L.style.left=q.current-(c+o)+"px",U.current++,P(e=>e===k-1?0:e+1)):(L.style.left=q.current+(c+o)+"px",U.current--,P(e=>0===e?k-1:e-1))),F.current=!1)},[c,o,k,L,M]),K=(0,v.useCallback)(()=>{if(L){if(t){if(U.current<=-i){let e=U.current<-i?k-Math.abs(U.current):k-i;L.style.left=S-(c+o)*e+"px",R(!1),U.current=e,P(e),setTimeout(()=>R(!0),300)}U.current>=k&&(L.style.left=S+"px",R(!1),U.current=0,P(0),setTimeout(()=>R(!0),300))}F.current=!0}},[c,t,i,o,k,S,L]);(0,v.useEffect)(()=>{let e=setTimeout(K,500);return()=>clearTimeout(e)},[K,I]);let Q=(0,v.useCallback)(()=>{P(e=>e+1),U.current+=1},[]),{isPauseAutoSwipe:Z,setPauseAutoSwipe:J}=(e=>{let{shiftSlide:t,resetCallback:n,changeSelectedIndex:l,isInfiniteSlider:r,time:a,currentIndex:i,maxIndex:o,countVisibleSlide:s,startDelay:c}=e,[u,d]=(0,v.useState)(!0),m=(0,v.useRef)(null),p=o+1<=s,_=(0,v.useRef)(!1),h=(0,v.useCallback)(()=>{m.current&&clearInterval(m.current),m.current=setInterval(()=>r?void t():i===o?void n():o-i>=s?void t():void l(),a+300)},[l,s,i,r,o,n,t,a]);return(0,v.useEffect)(()=>{if(!p&&a){if(u){m.current&&clearInterval(m.current);return}return window.onblur=()=>{_.current=!0,d(!0)},window.onfocus=()=>{_.current&&(d(!1),_.current=!1)},h(),()=>{m.current&&clearInterval(m.current)}}},[t,n,l,a,r,o,i,s,u,p,h]),(0,v.useEffect)(()=>{let e=setTimeout(()=>d(!1),c);return()=>clearTimeout(e)},[c]),{isPauseAutoSwipe:u,setPauseAutoSwipe:d}})({shiftSlide:()=>V(1),resetCallback:()=>G(0),changeSelectedIndex:()=>C?Q():G(0),isInfiniteSlider:t,time:a,currentIndex:U.current,maxIndex:k-1,countVisibleSlide:i,startDelay:s}),$=(0,v.useCallback)(e=>{if(!L)return;let t=X.current-e;X.current=e,L.style.left=L.offsetLeft-t+"px"},[L]),ee=(0,v.useCallback)((e,n)=>{if(!L)return;R(!1);let l=L.offsetLeft,{minTime:r,maxTime:a,minDistance:s,maxDistance:u}=j,d=Math.round(-l/(c+o))-w,m=Math.round(q.current/(c+o))*(c+o)-o+"px",p=Math.abs(Math.abs(Y.current)-Math.abs(e)),_=Math.abs(z.current-n);if(_>r&&_<a&&p>s&&p<u){let e=l<=q.current?Math.floor(-l/(c+o)):Math.ceil(-l/(c+o));if(l-q.current<-s)if(t){let e=d>k?k:d;G(d===k&&I<k?k:e+1)}else G(e>=k-i?k-i:e+1);else l-q.current>s?t?G(d-1):G(e<=0?0:e-1):(R(!0),L.style.left=m);return}let h=Math.round(-l/(c+o));if(l-q.current<-T)if(t){let e=d>k?k:d;G(d===k&&I<k?k:e)}else G(h>k-i?k-i:h);else l-q.current>T?t?G(d):G(h<=0?0:h):(R(!0),L.style.left=m)},[L,j,c,o,w,t,k,G,I,i,T]),et=(0,v.useCallback)(e=>$(e.clientX),[$]),en=(0,v.useCallback)(e=>{ee(e.clientX,e.timeStamp),document.removeEventListener("mousemove",et),document.removeEventListener("mouseup",en)},[ee,et]),el=(0,v.useCallback)(e=>{L&&A&&(R(!1),q.current=L.offsetLeft,X.current=e.clientX,z.current=e.timeStamp,Y.current=e.clientX,document.addEventListener("mousemove",et),document.addEventListener("mouseup",en))},[et,en,A,L]),er=(0,v.useCallback)(e=>{if(!L||!A)return;let t=e.touches.item(0);t&&(R(!1),q.current=L.offsetLeft,X.current=t.clientX,z.current=e.timeStamp,Y.current=t.clientX)},[A,L]),ea=(0,v.useCallback)(e=>{if(!A)return;let t=e.touches.item(0);t&&$(t.clientX)},[$,A]),ei=(0,v.useCallback)(e=>{if(!A)return;let t=e.changedTouches.item(0);t&&ee(t.clientX,e.timeStamp)},[ee,A]);return(0,v.useEffect)(()=>{if(M)return;let e=setTimeout(()=>B(!0),s);return()=>clearTimeout(e)},[M,s]),(0,h.jsxs)("div",{className:(0,y.A)(th().sliderWrapper,d),children:[(0,h.jsxs)("div",{className:(0,y.A)(th().slider,{[th().visiblePagination]:A&&!r},m),style:{width:i*c+(i-1)*o+"px",minHeight:u+"px"},onMouseEnter:()=>!!a&&J(!0),onMouseLeave:()=>!!a&&J(!1),onTouchStart:()=>!!a&&J(!0),onTouchEnd:()=>!!a&&J(!1),children:[(0,h.jsx)("div",{className:th().wrapper,style:{overflow:n?"unset":"hidden"},children:(0,h.jsxs)("div",{ref:H,className:(0,y.A)(th().slides,{[th().shifting]:D},_),onMouseDown:el,onTouchStart:er,onTouchMove:ea,onTouchEnd:ei,children:[t&&b.slice(b.length-w-1,b.length-1).map(e=>(0,h.jsx)("div",{style:tv(c,u,o),className:(0,y.A)("slide",th().slide,{[th().slideIsPointer]:A},p),children:tf(e)},"prev"+e.key)),b.map(e=>(0,h.jsx)("div",{style:tv(c,u,o),className:(0,y.A)("slide",th().slide,{[th().slideIsPointer]:A},p),children:tf(e)},e.key)),t&&b.slice(0,w).map(e=>(0,h.jsx)("div",{style:tv(c,u,o),className:(0,y.A)("slide",th().slide,{[th().slideIsPointer]:A},p),children:tf(e)},"next"+e.key))]})}),!l&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("button",{onClick:()=>V(-1),className:(0,y.A)(th().control,th().prev,f),style:{display:(t||0!==U.current)&&A?"unset":"none"},type:"button",children:(0,h.jsx)(O,{className:th().controlIcon,children:(0,h.jsx)(ef,{})})}),(0,h.jsx)("button",{onClick:()=>V(1),className:(0,y.A)(th().control,th().next,g),style:{display:(t||!(U.current>=k-i))&&A?"unset":"none"},type:"button",children:(0,h.jsx)(O,{className:th().controlIcon,children:(0,h.jsx)(ef,{})})})]})]}),A&&!r&&(0,h.jsx)("div",{className:th().pagination,children:(0,h.jsx)("ul",{className:th().paginationList,children:b.slice(0,!C?k-i+1:N?-1:-2).map((e,t)=>(0,h.jsx)("li",{className:(0,y.A)({[th().selected]:t===I}),onClick:()=>G(t),children:!Z&&!!a&&(0,h.jsx)("div",{className:th().animationLine,style:{animationDuration:a+"ms"}})},e.key))})})]})});tg.displayName="UiSlider"},99291:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var l=n(12115),r=n(51442),a=n(15520),i=n(19559),o=n(1396);function s(e){let{asPath:t}=(0,o.T)();(0,l.useEffect)(()=>{(0,i.FT)(t),((e,t)=>{let n=(0,a.$)(e);if(n&&n.aggregator_id){let e={...n,create_date:new Date().toISOString()},a={payload:[]};try{var l;a=JSON.parse((null==(l=(0,r.OR)())?void 0:l.cpa_click)||"{}")}catch(e){return}a.payload||(a.payload=[]),a.payload.push(e);let o={event:"data-event",eventCategory:String(n.aggregator_id),eventAction:"CPA_click",eventLabel:window.location.pathname,eventValue:String(n.utm_term||n.click_id),utm_source:String(n.utm_source),utm_campaign:String(n.utm_campaign),utm_medium:String(n.utm_medium)};t[String(n.aggregator_id)]&&((0,r.ub)("cpa_click",a,30),(0,i.oA)(o))}})(t,e)},[e,t])}},99508:e=>{e.exports={mobilePopup:"MobileContentModal_mobilePopup__NUFzh",title:"MobileContentModal_title__LHGoo",combo:"MobileContentModal_combo__FXHMV"}},99778:(e,t,n)=>{"use strict";n.d(t,{i:()=>u});var l=n(95155),r=n(2821),a=n(12115),i=n(98742),o=n(89910),s=n(48343),c=n.n(s);let u=(0,a.memo)(e=>{let{className:t,sum:n,profit:a,bonus:s,isMobile:u}=e,d=[{value:n,color:"#FFE576",title:"Сумма вклада"},{value:a,color:"#5BCE95",title:"Доход от банка"}];s>0&&d.push({value:s,color:"#6A80EF",title:"Бонус от Финуслуг"});let m=n+a+s;return(0,l.jsxs)("div",{className:(0,r.A)(c().wrapper,t),children:[(0,l.jsx)("ul",{className:c().legend,children:d.map(e=>{let t=(0,o.jq)(e.value,2);return(0,l.jsxs)("li",{className:c().legendItem,title:"".concat(t," ₽"),children:[(0,l.jsx)("div",{style:{backgroundColor:e.color},className:c().legendColor}),(0,l.jsx)("div",{className:c().legendTitle,children:e.title}),(0,l.jsxs)("div",{className:c().legendValue,children:[t," ₽"]})]},e.color)})}),(0,l.jsxs)("div",{className:c().chart,children:[(0,l.jsx)(i.FS,{stroke:"#fff",strokeWidth:2*!!u,items:d,className:c().chartValues}),(0,l.jsxs)("div",{className:c().chartResult,children:[m>=1e6?(0,o.um)(Math.ceil(m)):(0,o.jq)(m,2)," ₽"]})]})]})});u.displayName="DepositDetailChart"},99795:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});let l={src:"/deposits/_next/static/media/arrow.e5fbf461.svg",height:24,width:24,blurWidth:0,blurHeight:0}}}]);