(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[339],{8966:function(e,t,a){Promise.resolve().then(a.bind(a,9006)),Promise.resolve().then(a.bind(a,9994)),Promise.resolve().then(a.t.bind(a,4876,23)),Promise.resolve().then(a.t.bind(a,2099,23)),Promise.resolve().then(a.bind(a,4552)),Promise.resolve().then(a.t.bind(a,6009,23)),Promise.resolve().then(a.bind(a,1774)),Promise.resolve().then(a.bind(a,7942)),Promise.resolve().then(a.t.bind(a,49,23)),Promise.resolve().then(a.t.bind(a,1089,23)),Promise.resolve().then(a.bind(a,7483)),Promise.resolve().then(a.bind(a,4890))},6731:function(e,t,a){"use strict";var n,i,r;a.d(t,{lb:function(){return l}}),a(8620).Buffer,Object.freeze({643:"RUB",840:"USD",978:"EURO"});let o=Object.freeze({RUB:"₽",USD:"$",EURO:"€"});(r=n||(n={})).Pending="pending",r.Success="success";let s={decimalCount:2,decimalSeparator:",",thousandsSeparator:"\xa0",decimalIsWithoutZeros:!1,preventLargeNumbers:!1};function l(e,t){try{var a;let n;let{hasCurrencySymbol:i=!0,currencyCode:r,decimalCount:l=s.decimalCount,decimalSeparator:c=s.decimalSeparator,thousandsSeparator:d=s.thousandsSeparator,decimalIsWithoutZeros:p=s.decimalIsWithoutZeros,preventLargeNumbers:u=s.preventLargeNumbers}=t||{},m=e;if("string"==typeof m&&(m=m.replace(/\s+/g,"").replace(",",".")),m=Number(m)||0,u&&(n=(a=m)/1e9>=1?Math.floor(a/1e9)+d+"млрд":a/1e6>=1?Math.floor(a/1e6)+d+"млн":a),!u||u&&"number"==typeof n){let e=function(e){let t=Math.abs(Number(e));return Number.isNaN(t)?s.decimalCount:t}(l),t=Math.abs(m).toFixed(e),a=parseInt(t,10);n=function({money:e,moneyInt:t,thousandsSeparator:a}){let n=t.toString(),i=RegExp(n.length>4?"(\\d{3})(?=\\d)":"(\\d{4})(?=\\d)","g"),r=n.length>4?n.length%3:0,o=r?n.substr(0,r)+a:"";return(e<0?"-":"")+o+n.substr(r).replace(i,`$1${a}`)}({money:m,moneyInt:a,thousandsSeparator:d})+function({money:e,moneyInt:t,decimalCount:a,decimalSeparator:n,decimalIsWithoutZeros:i}){let r=Math.abs(e-t).toFixed(a);return!a||0===(Number(e)||0)||i&&0===parseFloat(r)?"":n+r.slice(2)}({money:Number(t),moneyInt:a,decimalCount:e,decimalSeparator:c,decimalIsWithoutZeros:p})}return n+(i?`\xa0${o[r]||o.RUB}`:"")}catch(e){return console.log(e),""}}(i||(i={})).PERSISTENT_STATE="persistentState"},4552:function(e,t,a){"use strict";a.r(t),a.d(t,{AdvantageCard:function(){return f}});var n=a(7437),i=a(6094),r=a(2833),o=a(1810),s=a(3310),l=a.n(s);let c=e=>{let{isOpen:t,onClose:a,onConfirm:i,imgSrc:s,title:c,description:d,buttonLabel:p}=e;return(0,n.jsx)(o.u_,{dataQa:"info-modal","data-testid":"info-modal",header:{title:""},footer:{primaryBtnText:p,onPrimary:()=>{null==i||i(),a()}},open:t,onClose:a,style:{height:"auto"},size:"s",children:(0,n.jsxs)("div",{className:l().wrapper,children:[(0,n.jsx)("img",{"data-qa":"info-modal-image","data-testid":"info-modal-image",src:s,alt:c,width:150,height:150,className:l().img}),(0,n.jsx)(r.xv,{dataQa:"info-modal-title","data-testid":"info-modal-title",size:"18",weight:"medium",className:"mb-2",children:c}),(0,n.jsx)(r.YS,{dataQa:"info-modal-description","data-testid":"info-modal-description",text:d,className:l().caption})]})})};var d=a(2461),p=a(8761),u=a(4518),m=a.n(u);let f=e=>{let{advantageDescription:t,advantageTitle:a,advantageModalDescription:s,modalTitle:l,imgSrc:u,buttonLabel:f,buttonLink:h,event:b,params:g}=e,{open:_,handleOpenModal:v,handleCloseModal:x}=(0,p.d)({}),{eventAction:w,eventCategory:k}=b;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r.Zb,{className:m().wrapper,dataQa:"advantage-card","data-testid":"advantage-card",children:[(0,n.jsxs)("div",{style:{width:"100%"},children:[(0,n.jsxs)("div",{className:m().topCardWrapper,children:[(0,n.jsx)("div",{className:m().titleWrapper,children:(0,n.jsx)(r.X6,{as:"h3",dataQa:"advantage-card-heading","data-testid":"advantage-card-heading",type:"h1",className:m().heading,children:a})}),(0,n.jsx)(o.zx,{dataQa:"advantage-card-button","data-testid":"advantage-card-button",size:"xs",shape:"circle-icon",appearance:"ghost",iconRight:(0,n.jsx)(i.IconFdsInfoCircleO,{className:m().title}),onClick:v,className:m().infoIcon})]}),(0,n.jsx)(r.xv,{dataQa:"advantage-card-description","data-testid":"advantage-card-description",size:"18",children:t})]}),(0,n.jsx)("img",{"data-qa":"advantage-card-image","data-testid":"advantage-card-image",src:u,alt:a,width:200,height:200,className:m().image})]}),_&&(0,n.jsx)(c,{isOpen:_,onClose:x,onConfirm:()=>(0,d.h)(h,k,w,g),imgSrc:u,title:l,description:s,buttonLabel:f})]})}},1774:function(e,t,a){"use strict";a.r(t),a.d(t,{MobileAdvantagesCardsList:function(){return l}});var n=a(7437),i=a(1810),r=a(4552),o=a(1307),s=a.n(o);let l=e=>{let{advantages:t,modalButton:a}=e,{label:o,link:l}=a;return(0,n.jsx)(i.iR,{dataQa:"mobile-advantages-cards-list","data-testid":"mobile-advantages-cards-list",className:s().slider,options:{slidesPerView:"auto",spaceBetween:8,autoplay:!0},children:t.map(e=>{let{shortDescription:t,title:a,fullDescription:c,imageSrc:d,events:p,modalTitle:u}=e,m={eventLabel:l.replace("https://","")};return(0,n.jsx)(i.wI,{className:s().sliderItem,children:(0,n.jsx)(r.AdvantageCard,{advantageTitle:a,advantageDescription:t,advantageModalDescription:c,buttonLabel:o,buttonLink:l,imgSrc:d,event:p,params:m,modalTitle:u})},t)})})}},7942:function(e,t,a){"use strict";a.r(t),a.d(t,{BenefitCalculationSection:function(){return G}});var n=a(7437),i=a(1810),r=a(2833),o=a(2461),s=a(6094),l=a(6551),c=a.n(l);let d=e=>{let{title:t,handleOpenModal:a}=e;return(0,n.jsxs)("div",{"data-qa":"bonuses-block-heading-wrapper","data-testid":"bonuses-block-heading-wrapper",className:c().headingWrapper,children:[(0,n.jsx)(r.X6,{as:"h4",dataQa:"bonuses-block-heading-title","data-testid":"bonuses-block-heading-title",type:"h6",className:c().title,weight:"regular",children:t}),(0,n.jsx)(s.IconFdsInfoCircleO,{"data-qa":"bonuses-block-heading-icon","data-testid":"bonuses-block-heading-icon",className:c().infoIcon,boxSize:16,onClick:a})]})},p=e=>{let t=["до","в","с","на","по","к","и","а","о","млн","их","за"];if(!e)return"";let a="";return e.split(" ").forEach(e=>{t.includes(e)||null!==/\d/.exec(e)?a+="".concat(e,"\xa0"):a+="".concat(e," ")}),a.trim()},u=e=>{let{button:t,title:a,description:o,open:s,onClose:l}=e;return(0,n.jsx)(i.u_,{dataQa:"page-subscription-bonuses-info-modal","data-testid":"page-subscription-bonuses-info-modal",header:{title:a},footer:{children:(0,n.jsx)(i.zx,{dataQa:"page-subscription-bonuses-info-modal-button",size:"s",label:t,onClick:l})},open:s,onClose:l,style:{height:"auto"},children:(0,n.jsx)(r.xv,{dataQa:"page-subscription-bonuses-info-modal-description","data-testid":"page-subscription-bonuses-info-modal-description",as:"p",size:"16",className:"mt-2",children:p(o)})})};var m=a(6731);let f=e=>"Вклады"===e?(0,n.jsx)(s.IconFdsSafeO,{size:24,boxSize:24}):"Бонусный счет"===e?(0,n.jsx)(s.IconFdsFlashCircleO,{size:24,boxSize:24}):"Автомобиля"===e?(0,n.jsx)(s.IconFdsCarFrontO,{size:24,boxSize:24}):"Ипотеки"===e?(0,n.jsx)(s.IconFdsArmchairO,{size:24,boxSize:24}):(0,n.jsx)(s.IconFdsHomeO,{size:24,boxSize:24});var h=a(8078),b=a.n(h);let g=e=>{let{additionalEarn:t,incomePerPeriod:a,prefix:i}=e;return(0,n.jsxs)("div",{"data-qa":"bonus-item","data-testid":"bonus-item",className:b().wrapper,children:[f(t.title),(0,n.jsxs)("div",{"data-qa":"bonus-item-content","data-testid":"bonus-item-content",className:b().contentWrapper,children:[(0,n.jsx)(r.xv,{dataQa:"bonus-item-title","data-testid":"bonus-item-title",size:"16",children:t.title}),(0,n.jsxs)("div",{"data-qa":"bonus-item-amount-block","data-testid":"bonus-item-amount-block",className:b().amountWrapper,children:[i&&(0,n.jsx)(r.xv,{dataQa:"bonus-item-amount-block-prefix","data-testid":"bonus-item-amount-block-prefix",size:"16",fontFamily:"primary",children:i}),(0,n.jsx)(r.xv,{dataQa:"bonus-item-amount-block-income","data-testid":"bonus-item-amount-block-income",size:"20",fontFamily:"primary",className:b().incomePerPeriodTitle,children:(0,m.lb)(a,{decimalIsWithoutZeros:!0})})]})]})]})};var _=a(8761),v=a(8645),x=a.n(v);let w=e=>{let{additionalEarns:t,blockTitle:a,incomePerPeriod:i,modalButton:r,modalDescription:o,modalTitle:s}=e,{open:l,handleOpenModal:c,handleCloseModal:p}=(0,_.d)({});return(0,n.jsxs)("div",{children:[(0,n.jsx)(d,{title:a,handleOpenModal:c}),(0,n.jsx)("div",{"data-qa":"additional-earn-block","data-testid":"additional-earn-block",className:x().wrapper,children:t.map(e=>(0,n.jsx)(g,{additionalEarn:e,incomePerPeriod:i},e.title))}),l&&(0,n.jsx)(u,{open:l,onClose:p,button:r,title:s,description:o})]})};var k=a(3167),j=a(2265),C=a(2555),y=a.n(C);let N=e=>{let{value:t,chips:a,handleChipCLick:r,className:o,size:s="s",dataQa:l}=e,c=(0,j.useRef)(null),d=(0,j.useRef)(!1),p=(0,j.useRef)(0),u=(0,j.useRef)(0),m=(0,j.useCallback)((e,t,a)=>{let n=a.getBoundingClientRect(),i=t.getBoundingClientRect().left-n.left+a.scrollLeft-a.clientWidth/2+t.offsetWidth/2;a.scrollTo({left:i,behavior:"smooth"})},[c.current]);(0,j.useEffect)(()=>{if(null==c?void 0:c.current){let e=c.current.getSelectedChips(),t=a.find(t=>t.id===e),n=document.querySelector('[aria-label="'.concat(null==t?void 0:t.label,'"]'));n&&m(e,n,c.current.getRoot())}},[a,c,m]);let f=(0,j.useCallback)((e,t,a)=>{let n=t.target,i=a.getBoundingClientRect(),r=n.getBoundingClientRect().left-i.left+a.scrollLeft-a.clientWidth/2+n.offsetWidth/2;a.scrollTo({left:r,behavior:"smooth"})},[null==c?void 0:c.current]),h=(0,j.useCallback)(e=>{var t,a,n;e.preventDefault();let i=null==c?void 0:null===(t=c.current)||void 0===t?void 0:t.getRoot();d.current=!0,p.current=e.pageX-(null!==(a=null==i?void 0:i.offsetLeft)&&void 0!==a?a:0),u.current=null!==(n=null==i?void 0:i.scrollLeft)&&void 0!==n?n:0},[c]),b=()=>{d.current=!1},g=()=>{d.current=!1},_=(0,j.useCallback)(e=>{var t,a;if(!d.current)return;e.preventDefault();let n=null==c?void 0:null===(t=c.current)||void 0===t?void 0:t.getRoot();if(!n)return;let i=e.pageX-(null!==(a=n.offsetLeft)&&void 0!==a?a:0)-p.current;n.scrollLeft=u.current-i},[c]);return(0,j.useEffect)(()=>{var e;let t=null==c?void 0:null===(e=c.current)||void 0===e?void 0:e.getRoot();return null==t||t.addEventListener("mousedown",h),null==t||t.addEventListener("mouseleave",b),null==t||t.addEventListener("mouseup",g),null==t||t.addEventListener("mousemove",_),()=>{null==t||t.removeEventListener("mousedown",h),null==t||t.removeEventListener("mouseleave",b),null==t||t.removeEventListener("mouseup",g),null==t||t.removeEventListener("mousemove",_)}},[h,_]),(0,n.jsx)(i.cL,{dataQa:l,ref:c,value:t,chips:a,onChipClick:(e,t)=>{var a;f(e,t,null==c?void 0:null===(a=c.current)||void 0===a?void 0:a.getRoot()),r(e)},className:(0,k.Z)(y().chips,o),size:s})};var S=a(2687),I=a.n(S);let B=e=>{let{amountChips:t,amountChipsValue:a,handleAmountChipCLick:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(N,{dataQa:"choose-amount-block-scrolled-chips","data-testid":"choose-amount-block-scrolled-chips",chips:t,value:a,handleChipCLick:r,size:"m",className:(0,k.Z)("mb-6",I().mobileChips)}),(0,n.jsx)(i.cL,{dataQa:"choose-amount-block-chips","data-testid":"choose-amount-block-chips",chips:t,value:a,onChipClick:r,className:(0,k.Z)("mb-6",I().desktopChips)})]})},P=e=>{let{amountChips:t,amountChipsValue:a,handleAmountChipCLick:r,minAmount:o,inputLabel:s,inputValue:l,errorText:c,onChange:d,onFocus:p,onKeyDown:u,showError:m}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Rn,{dataQa:"benefit-calculator-input","data-testid":"benefit-calculator-input",label:s,unit:"₽",size:"m",withoutControls:!0,decimals:"never",value:null!=l?l:o,onChange:d,onFocus:p,onKeyDown:u,className:"mb-2",caption:m?c:void 0}),(0,n.jsx)(B,{amountChipsValue:a,handleAmountChipCLick:r,amountChips:t})]})};var W=a(7654),z=a.n(W);let T=e=>{let{limits:t}=e;return(0,n.jsx)("div",{"data-qa":"cashback-items-list","data-testid":"cashback-items-list",className:z().wrapper,children:t.map(e=>{let t={title:e.text,urlWeb:e.urlWeb};return(0,n.jsx)(g,{additionalEarn:t,incomePerPeriod:e.limit,prefix:e.prefix},e.text)})})},A=e=>{let{data:t}=e,{open:a,handleOpenModal:i,handleCloseModal:r}=(0,_.d)({});if(!t)return null;let{modalButtonLabel:o,modalDescription:s,modalTitle:l,title:c,limits:p}=t;return(0,n.jsxs)("div",{"data-qa":"cashback-block","data-testid":"cashback-block",className:"mt-4",children:[(0,n.jsx)(d,{title:c,handleOpenModal:i}),(0,n.jsx)(T,{limits:p}),a&&(0,n.jsx)(u,{open:a,onClose:r,button:o,description:s,title:l})]})};var L=a(2802),E=a.n(L);let Q=e=>{let{additionalEarnText:t,totalBonusesAmount:a,urlSrc:i}=e;return(0,n.jsxs)(r.Zb,{dataQa:"total-bonuses-amount-wrapper","data-testid":"total-bonuses-amount-wrapper",className:E().totalBenefitWrapper,children:[(0,n.jsxs)("div",{"data-qa":"total-bonuses-amount-content","data-testid":"total-bonuses-amount-content",className:E().totalWrapper,children:[(0,n.jsx)(r.xv,{dataQa:"total-bonuses-amount","data-testid":"total-bonuses-amount",as:"p",fontFamily:"primary",className:E().total,children:"+".concat((0,m.lb)(a,{decimalIsWithoutZeros:!0}))}),(0,n.jsx)(r.xv,{dataQa:"total-bonuses-amount-additional-earn-text","data-testid":"total-bonuses-amount-additional-earn-text",as:"p",size:"16",fontFamily:"primary",className:E().additionalEarnText,children:t})]}),(0,n.jsx)("img",{"data-qa":"total-bonuses-amount-image","data-testid":"total-bonuses-amount-image",src:i,alt:"калькулятор",width:253,height:147,className:E().image})]})};var R=a(8309),F=a(2893),D=a(7552);function M(e,t){(0,D.Z)(2,arguments);var a=(0,F.Z)(e),n=(0,R.Z)(t);if(isNaN(n))return new Date(NaN);if(!n)return a;var i=a.getDate(),r=new Date(a.getTime());return(r.setMonth(a.getMonth()+n+1,0),i>=r.getDate())?r:(a.setFullYear(r.getFullYear(),r.getMonth(),i),a)}var q=a(1995);function U(e){(0,D.Z)(1,arguments);var t=(0,F.Z)(e);return t.setHours(0,0,0,0),t}function Z(e,t){(0,D.Z)(2,arguments);var a=U(e),n=U(t);return Math.round((a.getTime()-(0,q.Z)(a)-(n.getTime()-(0,q.Z)(n)))/864e5)}let O=e=>{let t=Z(new Date(function(e,t){return(0,D.Z)(2,arguments),M(e,12*(0,R.Z)(1))}(new Date,1)),new Date);return Z(new Date(M(new Date,e)),new Date)/t},X=(e,t,a)=>Math.round(Math.min(t,a)/2*(e/100)*O(12)),H=(e,t)=>{let a=0;return e.forEach(e=>{a+=e.limit}),t?a+t:a},V=(e,t,a,n,i,r,o)=>{let s=(0,j.useMemo)(()=>i.map(e=>({id:e.amount,label:function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{length:a}=String(Math.floor(e)),n=t?"\xa0₽":"";return a>6&&a<10?"".concat(String(+(e/1e6).toFixed(2)).replace(".",","),"\xa0млн").concat(n):a>=10&&a<13?"".concat(String(+(e/1e9).toFixed(2)).replace(".",","),"\xa0млрд").concat(n):a>=13?"".concat(String(+(e/1e12).toFixed(2)).replace(".",","),"\xa0трлн").concat(n):(0,m.lb)(e,{decimalCount:2,hasCurrencySymbol:t,decimalIsWithoutZeros:!0})}(e.amount)})),[i]),[l,c]=(0,j.useState)(0),[d,p]=(0,j.useState)(e),[u,f]=(0,j.useState)(s[s.length-1].id),[h,b]=(0,j.useState)(!1),[g,_]=(0,j.useState)(1e4);(0,j.useEffect)(()=>{s.find(e=>e.id===Number(d))?f(d):f(void 0),Number(d)>o?b(!0):b(!1);let e=X(t,a,Number(d));_(e),c(H(n,e?2*e:0))},[d,s,t,a,n]);let v=(0,j.useCallback)(()=>{b(!1),f(void 0)},[u]),x=(0,j.useCallback)(e=>{p(Number(e)),f(e),b(!1)},[d,u,p]),w=(0,j.useCallback)(e=>{"Backspace"===e.key||"Tab"===e.key||"Delete"===e.key||"ArrowLeft"===e.key||"ArrowRight"===e.key||"Enter"===e.key||"Escape"===e.key||e.key>="0"&&e.key<="9"||e.key>="Numpad0"&&e.key<="Numpad9"||e.ctrlKey&&("a"===e.key||"c"===e.key||"v"===e.key||"x"===e.key)||e.preventDefault()},[]),k=(0,j.useCallback)(e=>{p(e)},[d,p]);return{amountChips:s,amountChipsValue:u,handleAmountChipClick:x,handleFocus:v,totalBonusesAmount:l,inputValue:d,setInputValue:p,incomePerPeriod:g,handleKeyDown:w,showError:h,handleInputNumberChange:k}};var J=a(770),K=a.n(J);let G=e=>{let{benefitCalculationSectionData:t,button:a}=e,{title:s,imageSrc:l,fullProfitDescription:c,benefitCalculationBlock:d,cashbackBlock:p,inputLabel:u,errorText:m,events:{eventAction:f,eventCategory:h}}=t,{percent:b,maxBonus:g,maxAmount:_,minAmount:v,defaultAmount:x,amountVariants:k,additionalEarns:j,additionalEarnsInfo:C,additionalEarnsTitle:y}=d,{limits:N}=p,{label:S,link:I}=a,{amountChips:B,amountChipsValue:W,handleAmountChipClick:z,handleFocus:T,totalBonusesAmount:L,inputValue:E,incomePerPeriod:R,handleKeyDown:F,showError:D,handleInputNumberChange:M}=V(x,b,g,N,k,v,_),q={eventLabel:E};return(0,n.jsx)("section",{"data-qa":"benefit-calculation-section","data-testid":"benefit-calculation-section",className:K().section,children:(0,n.jsx)(r.JX,{size:{l:8,xl:6},offsetLeft:{l:2,xl:3},offsetRight:{l:2,xl:3},className:K().wrapper,children:(0,n.jsxs)(r.Zb,{dataQa:"benefit-calculation-section-card","data-testid":"benefit-calculation-section-card",className:K().card,children:[(0,n.jsx)(r.X6,{as:"h2",dataQa:"benefit-calculation-section-title","data-testid":"benefit-calculation-section-title",type:"hero",className:K().heading,children:s}),(0,n.jsx)(Q,{additionalEarnText:c,totalBonusesAmount:L,urlSrc:l}),(0,n.jsx)(P,{inputLabel:u,errorText:m,minAmount:v,maxAmount:_,amountChips:B,inputValue:Number(E),amountChipsValue:W,handleAmountChipCLick:z,onKeyDown:F,onFocus:T,onChange:M,showError:D}),(0,n.jsx)(w,{additionalEarns:j,incomePerPeriod:R,blockTitle:y,modalButton:C.button,modalTitle:C.title,modalDescription:C.description}),(0,n.jsx)(A,{data:p}),(0,n.jsx)(i.zx,{dataQa:"benefit-calculation-section-button","data-testid":"benefit-calculation-section-button",size:"l",label:S,onClick:()=>(0,o.h)(I,h,f,q)})]})})})}},7483:function(e,t,a){"use strict";a.r(t),a.d(t,{PromoSection:function(){return d}});var n=a(7437),i=a(3167),r=a(2833),o=a(1810),s=a(2461),l=a(831),c=a.n(l);let d=e=>{let{promoSectionData:t}=e,{button:{link:a,label:l},description:d,imageSrc:p,title:u,events:{eventAction:m,eventCategory:f}}=t,h={eventLabel:a.replace("https://","")};return(0,n.jsx)("section",{"data-qa":"promo-section","data-testid":"promo-section",children:(0,n.jsxs)(r.X2,{"data-qa":"promo-section-wrapper","data-testid":"promo-section-wrapper",className:c().wrapper,children:[(0,n.jsxs)(r.JX,{"data-qa":"promo-section-content","data-testid":"promo-section-content",size:{xs:12,xl:6},className:c().content,children:[(0,n.jsx)("div",{"data-qa":"promo-section-heading-wrapper","data-testid":"promo-section-heading-wrapper",className:c().headingWrapper,children:(0,n.jsxs)(r.X6,{dataQa:"promo-section-heading","data-testid":"promo-section-heading",type:"display",className:c().heading,children:[u.slice(0,-1),(0,n.jsx)("span",{"data-qa":"promo-section-plus","data-testid":"promo-section-plus",className:c().plus,children:u.slice(-1)})]})}),(0,n.jsx)(r.xv,{dataQa:"promo-section-description","data-testid":"promo-section-description",as:"p",fontFamily:"primary",size:"18",className:c().description,children:d}),(0,n.jsx)("img",{"data-qa":"promo-section-mobile-image","data-testid":"promo-section-mobile-image",src:p,alt:"Финуслуги+",width:299,height:300,className:(0,i.Z)("mb-6",c().mobileImage)}),(0,n.jsx)(o.zx,{dataQa:"promo-section-button","data-testid":"promo-section-button",size:"l",label:l,className:c().button,onClick:()=>(0,s.h)(a,f,m,h)})]}),(0,n.jsx)(r.JX,{"data-qa":"promo-section-desktop-image-wrapper","data-testid":"promo-section-desktop-image-wrapper",size:{xs:12,xl:4},offsetLeft:{xl:1},className:c().imageWrapper,children:(0,n.jsx)("img",{"data-qa":"promo-section-desktop-image","data-testid":"promo-section-desktop-image",src:p,alt:"Финуслуги+",width:433,height:420,className:c().image})})]})})}},4890:function(e,t,a){"use strict";a.r(t),a.d(t,{TariffPlansSection:function(){return g}});var n=a(7437),i=a(1810),r=a(2833),o=a(2461),s=a(7659),l=a.n(s);let c=e=>{let{imgSrc:t,title:a,description:i}=e;return(0,n.jsxs)("div",{"data-qa":"tariff-plans-section-block-heading-wrapper","data-testid":"tariff-plans-section-block-heading-wrapper",className:l().wrapper,children:[(0,n.jsx)("img",{"data-qa":"tariff-plans-section-block-heading-image","data-testid":"tariff-plans-section-block-heading-image",src:t,alt:a,width:140,height:140,className:l().image}),(0,n.jsx)("div",{"data-qa":"tariff-plans-section-block-heading-title-wrapper","data-testid":"tariff-plans-section-block-heading-title-wrapper",className:l().headingWrapper,children:(0,n.jsxs)(r.X6,{as:"h2",dataQa:"tariff-plans-section-block-heading-title","data-testid":"tariff-plans-section-block-heading-title",type:"hero",className:l().heading,children:[a.slice(0,-1),(0,n.jsx)("span",{className:l().plus,children:a.slice(-1)})]})}),(0,n.jsx)(r.xv,{dataQa:"tariff-plans-section-block-heading-description","data-testid":"tariff-plans-section-block-heading-description",as:"p",size:"18",fontFamily:"primary",className:l().description,children:i})]})};var d=a(3167),p=a(6731),u=a(852),m=a.n(u);let f=e=>{let{tariff:t}=e,{price:a,description:o,tagLabel:s,pricePerMonthText:l}=t;return(0,n.jsxs)(r.Zb,{dataQa:"tariff-plan-card","data-testid":"tariff-plan-card",className:m().wrapper,children:[(0,n.jsxs)("div",{"data-qa":"tariff-plan-block-wrapper","data-testid":"tariff-plan-block-wrapper",className:(0,d.Z)(m().blockWrapper,"mb-1"),children:[(0,n.jsx)(r.xv,{dataQa:"tariff-plan-description","data-testid":"tariff-plan-description",size:"16",weight:"medium",className:m().description,children:o}),s&&(0,n.jsx)(i.Vp,{dataQa:"tariff-plan-tag","data-testid":"tariff-plan-tag",size:"s",variant:"green",label:s})]}),(0,n.jsxs)("div",{"data-qa":"tariff-plan-price-block-wrapper","data-testid":"tariff-plan-price-block-wrapper",className:(0,d.Z)(m().price),children:[(0,n.jsx)(r.xv,{dataQa:"tariff-plan-amount","data-testid":"tariff-plan-amount",fontFamily:"primary",size:"32",className:m().amount,children:(0,p.lb)(a,{decimalIsWithoutZeros:!0})}),l&&(0,n.jsx)(r.xv,{dataQa:"tariff-plan-price-per-month-text","data-testid":"tariff-plan-price-per-month-text",size:"16",className:m().description,children:l})]})]})};var h=a(9197),b=a.n(h);let g=e=>{let{tariffPlansSectionData:t,title:a,description:s}=e,{imageLink:l,tariffs:d,button:{label:p,link:u},events:{eventAction:m,eventCategory:h}}=t,g={eventLabel:u.replace("https://","")};return(0,n.jsx)("section",{"data-qa":"tariff-plans-section","data-testid":"tariff-plans-section",children:(0,n.jsx)(r.JX,{"data-qa":"tariff-plans-section-wrapper","data-testid":"tariff-plans-section-wrapper",size:{l:8,xl:6},offsetLeft:{l:2,xl:3},offsetRight:{l:2,xl:3},className:b().wrapper,children:(0,n.jsxs)(r.Zb,{dataQa:"tariff-plans-section-card","data-testid":"tariff-plans-section-card",className:b().card,children:[(0,n.jsx)(c,{imgSrc:l,title:a,description:s}),(0,n.jsx)("div",{"data-qa":"tariffs-block-wrapper","data-testid":"tariffs-block-wrapper",className:b().tariffsWrapper,children:d.map(e=>(0,n.jsx)(f,{tariff:e},e.type))}),(0,n.jsx)(i.zx,{dataQa:"tariff-plans-section-button","data-testid":"tariff-plans-section-button",size:"l",label:p,onClick:()=>(0,o.h)(u,h,m,g)})]})})})}},2461:function(e,t,a){"use strict";let n;a.d(t,{h:function(){return g}});var i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let r=new Uint8Array(16),o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));var s=function(e,t,a){if(i.randomUUID&&!t&&!e)return i.randomUUID();let s=(e=e||{}).random||(e.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)})();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){a=a||0;for(let e=0;e<16;++e)t[a+e]=s[e];return t}return function(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}(s)};/*! js-cookie v3.0.1 | MIT */function l(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)e[n]=a[n]}return e}var c=function e(t,a){function n(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=l({},a,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var o in i)i[o]&&(r+="; "+o,!0!==i[o]&&(r+="="+i[o].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+r}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var a=document.cookie?document.cookie.split("; "):[],n={},i=0;i<a.length;i++){var r=a[i].split("="),o=r.slice(1).join("=");try{var s=decodeURIComponent(r[0]);if(n[s]=t.read(o,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){n(e,"",l({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,l({},this.attributes,t))},withConverter:function(t){return e(l({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});let d="browserId",p={expires:365,domain:void 0,debug:!1};var u=a(915);let{browserId:m,sessionId:f}=function(e=p){try{var t,a;let n=localStorage.getItem(d)||c.get(d)||s(),i=sessionStorage.getItem(d)||s();return localStorage.setItem(d,n),sessionStorage.setItem(d,i),c.set(d,n,{...p,secure:(t=e.domain||location.origin,/^https:\/\//gi.test(t)),sameSite:"strict",domain:(a=e.domain||location.hostname,["",...a.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join("."))}),{browserId:n,sessionId:i}}catch{return{browserId:null,sessionId:null}}}(),h=c.get("auth.gtm_customer_id"),b=e=>{(0,u.AB)(e)},g=(e,t,a,n)=>{b({event:"data_event",browser_id:m,session_id:f,customer_id:h,eventCategory:t,eventAction:a,eventLabel:null==n?void 0:n.eventLabel,eventValue:null==n?void 0:n.eventValue}),window.location.href=e}},8761:function(e,t,a){"use strict";a.d(t,{d:function(){return i}});var n=a(2265);let i=e=>{let[t,a]=(0,n.useState)(!1),i=(0,n.useCallback)(()=>{var t;null==e||null===(t=e.onOpen)||void 0===t||t.call(e),a(!0)},[e]),r=(0,n.useCallback)(()=>{var t;null==e||null===(t=e.onClose)||void 0===t||t.call(e),a(!1)},[t,e]),o=(0,n.useCallback)(()=>{var t;null==e||null===(t=e.onConfirm)||void 0===t||t.call(e),a(!1)},[t,e]);return{open:t,setIsOpen:a,handleCloseModal:r,handleOpenModal:i,handleConfirm:o}}},4876:function(e){e.exports={wrapper:"Subscription_wrapper__1j3c8",container:"Subscription_container__8pMh4"}},2099:function(e){e.exports={wrapper:"AdvantagesSection_wrapper__8_qNF",heading:"AdvantagesSection_heading__g_dRp"}},4518:function(e){e.exports={wrapper:"AdvantageCard_wrapper__1_JI6",topCardWrapper:"AdvantageCard_topCardWrapper__fnPCM",titleWrapper:"AdvantageCard_titleWrapper__6935r",image:"AdvantageCard_image__0Aaj0",infoIcon:"AdvantageCard_infoIcon__uhaCT",heading:"AdvantageCard_heading__Ngh5B"}},6009:function(e){e.exports={wrapper:"DesktopAdvantagesCardsList_wrapper__CEm41"}},3310:function(e){e.exports={wrapper:"InfoModal_wrapper__HZ1jH",img:"InfoModal_img__hh_VJ",caption:"InfoModal_caption__tAsYx"}},1307:function(e){e.exports={slider:"MobileAdvantagesCardsList_slider__C5r8K",sliderItem:"MobileAdvantagesCardsList_sliderItem__0UkO8"}},770:function(e){e.exports={section:"BenefitCalculationSection_section__X0u_9",wrapper:"BenefitCalculationSection_wrapper__yybrj",heading:"BenefitCalculationSection_heading__vRBoA",card:"BenefitCalculationSection_card__8Kwwo"}},8645:function(e){e.exports={wrapper:"AdditionalEarnBlock_wrapper__46ynz"}},2687:function(e){e.exports={mobileChips:"ChooseAmountBlock_mobileChips__3tv0V",desktopChips:"ChooseAmountBlock_desktopChips__USX75"}},8078:function(e){e.exports={wrapper:"BonusItem_wrapper__OJZnJ",contentWrapper:"BonusItem_contentWrapper__p_elu",incomePerPeriodTitle:"BonusItem_incomePerPeriodTitle__B85o1",imageWrapper:"BonusItem_imageWrapper__5SEeX",amountWrapper:"BonusItem_amountWrapper__eCwR2"}},6551:function(e){e.exports={headingWrapper:"BonusesBlockHeading_headingWrapper__aP8vs",title:"BonusesBlockHeading_title__zTeYb",infoIcon:"BonusesBlockHeading_infoIcon__ITJyk"}},7654:function(e){e.exports={wrapper:"CashbackItemsList_wrapper__nMpCP"}},2802:function(e){e.exports={totalBenefitWrapper:"TotalBonusesAmount_totalBenefitWrapper__GelDp",totalWrapper:"TotalBonusesAmount_totalWrapper__IX9eC",total:"TotalBonusesAmount_total__ISGbG",image:"TotalBonusesAmount_image__MijyQ",additionalEarnText:"TotalBonusesAmount_additionalEarnText__tTqnl"}},49:function(e){e.exports={heading:"HowToSubscribeSection_heading__BGFDO",steps:"HowToSubscribeSection_steps__0c1jh"}},1089:function(e){e.exports={wrapper:"Step_wrapper__FWeTs",content:"Step_content__ZNV_1",label:"Step_label__cz2aa"}},831:function(e){e.exports={wrapper:"PromoSection_wrapper__2n_Ed",content:"PromoSection_content__UfQw5",headingWrapper:"PromoSection_headingWrapper__rsM8k",heading:"PromoSection_heading__yT_1L",plus:"PromoSection_plus__BB9r1",description:"PromoSection_description__bVWV4",button:"PromoSection_button__ND517",imageWrapper:"PromoSection_imageWrapper__8t4Fp",image:"PromoSection_image__lRmUi",mobileImage:"PromoSection_mobileImage__OZuJ_"}},9197:function(e){e.exports={wrapper:"TariffPlansSection_wrapper__ENhGm",tariffsWrapper:"TariffPlansSection_tariffsWrapper___Ob17",heading:"TariffPlansSection_heading__jRt9p",card:"TariffPlansSection_card__FjUAK",bonusesWrapper:"TariffPlansSection_bonusesWrapper__fNIvK"}},7659:function(e){e.exports={wrapper:"BlockHeading_wrapper__Lvm_i",description:"BlockHeading_description___SB4i",headingWrapper:"BlockHeading_headingWrapper__FcuP6",heading:"BlockHeading_heading__Qb9n2",plus:"BlockHeading_plus__rX61f",image:"BlockHeading_image__ii5F4"}},852:function(e){e.exports={wrapper:"TariffPlan_wrapper__BfqRk",blockWrapper:"TariffPlan_blockWrapper__DQM_Y",description:"TariffPlan_description__UjCmP",price:"TariffPlan_price__1LAtc",amount:"TariffPlan_amount__cgidf"}},2555:function(e){e.exports={chips:"ScrolledChips_chips__5wwo_"}},915:function(e,t,a){"use strict";function n(){return typeof window>"u"}function i(e){null!==localStorage.getItem("analytics.log")&&console.log("%cAnalytics","background: #2E495E;border-radius: 0.5em;color: white;font-weight: bold;padding: 2px 0.5em;",e)}function r(e){if(n()){i("DataLayer is not initialized or you are trying to push event on server side.");return}i(JSON.stringify(e)),Array.isArray(window.dataLayer)?window.dataLayer.push(e):i("window.dataLayer does not exist"),Array.isArray(window._mtm)?window._mtm.push(e):i("window._mtm does not exist")}function o(){if(n()){console.warn("Cant initialize tag manager on server side");return}"function"!=typeof window._init_gtm?console.warn("Cant init GTM, please check if GTM script exists"):window._init_gtm(),"function"!=typeof window._init_mtm?console.warn("Cant init MTM, please check if MTM script exists"):window._init_mtm()}a.d(t,{AB:function(){return r},zK:function(){return o}})}},function(e){e.O(0,[544,207,111,477,971,69,744],function(){return e(e.s=8966)}),_N_E=e.O()}]);