(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,1738)),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,imgSrc:l,buttonLabel:u,buttonLink:f,event:h,params:b}=e,{open:_,handleOpenModal:g,handleCloseModal:v}=(0,p.d)({}),{eventAction:x,eventCategory:w}=h;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,{dataQa:"advantage-card-heading","data-testid":"advantage-card-heading",type:"display",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:g,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:l,alt:a,width:200,height:200,className:m().image})]}),_&&(0,n.jsx)(c,{isOpen:_,onClose:v,onConfirm:()=>(0,d.h)(f,w,x,b),imgSrc:l,title:"".concat(a," ").concat(t),description:s,buttonLabel:u})]})}},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}=e,u={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:u})},t)})})}},1738:function(e,t,a){"use strict";a.r(t),a.d(t,{BenefitCalculationSection:function(){return J}});var n=a(7437),i=a(1810),r=a(2833),o=a(2461),s=a(6731),l=a(2802),c=a.n(l);let d=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:c().totalBenefitWrapper,children:[(0,n.jsxs)("div",{"data-qa":"total-bonuses-amount-content","data-testid":"total-bonuses-amount-content",className:c().totalWrapper,children:[(0,n.jsx)(r.xv,{dataQa:"total-bonuses-amount","data-testid":"total-bonuses-amount",as:"p",fontFamily:"primary",className:c().total,children:"+".concat((0,s.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:c().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:c().image})]})};var p=a(2265),u=a(8309),m=a(2893),f=a(7552);function h(e,t){(0,f.Z)(2,arguments);var a=(0,m.Z)(e),n=(0,u.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 b=a(1995);function _(e){(0,f.Z)(1,arguments);var t=(0,m.Z)(e);return t.setHours(0,0,0,0),t}function g(e,t){(0,f.Z)(2,arguments);var a=_(e),n=_(t);return Math.round((a.getTime()-(0,b.Z)(a)-(n.getTime()-(0,b.Z)(n)))/864e5)}let v=e=>{let t=g(new Date(function(e,t){return(0,f.Z)(2,arguments),h(e,12*(0,u.Z)(1))}(new Date,1)),new Date);return g(new Date(h(new Date,e)),new Date)/t},x=(e,t,a)=>Math.round(e/100*Math.min(t,a)*v(12)),w=(e,t)=>{let a=0;return e.forEach(e=>{a+=e.limit}),t?a+t:a},k=(e,t,a,n,i,r,o)=>{let l=(0,p.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,s.lb)(e,{decimalCount:2,hasCurrencySymbol:t,decimalIsWithoutZeros:!0})}(e.amount)})),[i]),[c,d]=(0,p.useState)(0),[u,m]=(0,p.useState)(e),[f,h]=(0,p.useState)(l[3].id),[b,_]=(0,p.useState)(!1),[g,v]=(0,p.useState)(1e4);(0,p.useEffect)(()=>{l.find(e=>e.id===Number(u))?h(u):h(void 0);let e=x(t,a,Number(u));v(e),d(w(n,e?2*e:0))},[u,l,t,a,n]);let k=(0,p.useCallback)(()=>{!Number(u)||Number(u)<r||Number(u)>o?_(!0):_(!1)},[u,b]),C=(0,p.useCallback)(()=>{_(!1),h(void 0)},[f]),j=(0,p.useCallback)(e=>{m(Number(e)),h(e),_(!1)},[u,f,b,m]);return{amountChips:l,amountChipsValue:f,handleAmountChipCLick:j,handleFocus:C,totalBonusesAmount:c,inputValue:u,setInputValue:m,incomePerPeriod:g,handleBlur:k,showError:b}};var C=a(3167),j=a(2555),N=a.n(j);let S=e=>{let{value:t,chips:a,handleChipCLick:r,className:o,size:s="s",dataQa:l}=e,c=(0,p.useRef)(null),d=(0,p.useRef)(!1),u=(0,p.useRef)(0),m=(0,p.useRef)(0),f=(0,p.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"})},[null==c?void 0:c.current]);(0,p.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&&f(e,n,c.current.getRoot())}},[a,c,f]);let h=(0,p.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]),b=(0,p.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,u.current=e.pageX-(null!==(a=null==i?void 0:i.offsetLeft)&&void 0!==a?a:0),m.current=null!==(n=null==i?void 0:i.scrollLeft)&&void 0!==n?n:0},[c]),_=()=>{d.current=!1},g=()=>{d.current=!1},v=(0,p.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)-u.current;n.scrollLeft=m.current-i},[c]);return(0,p.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",b),null==t||t.addEventListener("mouseleave",_),null==t||t.addEventListener("mouseup",g),null==t||t.addEventListener("mousemove",v),()=>{null==t||t.removeEventListener("mousedown",b),null==t||t.removeEventListener("mouseleave",_),null==t||t.removeEventListener("mouseup",g),null==t||t.removeEventListener("mousemove",v)}},[b,v]),(0,n.jsx)(i.cL,{dataQa:l,ref:c,value:t,chips:a,onChipClick:(e,t)=>{var a;h(e,t,null==c?void 0:null===(a=c.current)||void 0===a?void 0:a.getRoot()),r(e)},className:(0,C.Z)(N().chips,o),size:s})};var y=a(2687),I=a.n(y);let B=e=>{let{amountChips:t,amountChipsValue:a,handleAmountChipCLick:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S,{dataQa:"choose-amount-block-scrolled-chips","data-testid":"choose-amount-block-scrolled-chips",chips:t,value:a,handleChipCLick:r,size:"m",className:(0,C.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,C.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,onBlur: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,onBlur:u,className:"mb-2",state:m?"error":void 0,caption:m?c:void 0}),(0,n.jsx)(B,{amountChipsValue:a,handleAmountChipCLick:r,amountChips:t})]})};var W=a(6094);let z=e=>"Вклады"===e?(0,n.jsx)(W.IconFdsSafeO,{size:24,boxSize:24}):"Бонусный счет"===e?(0,n.jsx)(W.IconFdsFlashCircleO,{size:24,boxSize:24}):"Автомобиля"===e?(0,n.jsx)(W.IconFdsCarFrontO,{size:24,boxSize:24}):"Ипотеки"===e?(0,n.jsx)(W.IconFdsArmchairO,{size:24,boxSize:24}):(0,n.jsx)(W.IconFdsHomeO,{size:24,boxSize:24});var L=a(8078),T=a.n(L);let A=e=>{let{additionalEarn:t,incomePerPeriod:a,prefix:i}=e;return(0,n.jsxs)("div",{"data-qa":"bonus-item","data-testid":"bonus-item",className:T().wrapper,children:[z(t.title),(0,n.jsxs)("div",{"data-qa":"bonus-item-content","data-testid":"bonus-item-content",className:T().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:T().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:T().incomePerPeriodTitle,children:(0,s.lb)(a,{decimalIsWithoutZeros:!0})})]})]})]})};var E=a(8645),Q=a.n(E);let R=e=>{let{additionalEarns:t,incomePerPeriod:a}=e;return(0,n.jsx)("div",{"data-qa":"additional-earn-block","data-testid":"additional-earn-block",className:Q().wrapper,children:t.map(e=>(0,n.jsx)(A,{additionalEarn:e,incomePerPeriod:a},e.title))})};var F=a(8761),q=a(7654),M=a.n(q);let Z=e=>{let{limits:t}=e;return(0,n.jsx)("div",{"data-qa":"cashback-items-list","data-testid":"cashback-items-list",className:M().wrapper,children:t.map(e=>{let t={title:e.text,urlWeb:e.urlWeb};return(0,n.jsx)(A,{additionalEarn:t,incomePerPeriod:e.limit,prefix:e.prefix},e.text)})})},D=e=>{let{modalButtonLabel:t,modalDescription:a,modalTitle:o,open:s,onClose:l}=e;return(0,n.jsx)(i.u_,{dataQa:"cashback-block-info-modal","data-testid":"cashback-block-info-modal",header:{title:o},footer:{children:(0,n.jsx)(i.zx,{size:"s",label:t,onClick:l})},open:s,onClose:l,style:{height:"auto"},children:(0,n.jsx)(r.xv,{dataQa:"cashback-block-info-modal-description","data-testid":"cashback-block-info-modal-description",as:"p",size:"16",className:"mt-2",children:a})})};var U=a(3617),O=a.n(U);let X=e=>{let{data:t}=e,{open:a,handleOpenModal:i,handleCloseModal:o}=(0,F.d)({});if(!t)return null;let{modalButtonLabel:s,modalDescription:l,modalTitle:c}=t;return(0,n.jsxs)("div",{"data-qa":"cashback-block","data-testid":"cashback-block",className:"mt-4",children:[(0,n.jsxs)("div",{"data-qa":"cashback-block-heading-wrapper","data-testid":"cashback-block-heading-wrapper",className:O().headingWrapper,children:[(0,n.jsx)(r.X6,{dataQa:"cashback-block-heading-title","data-testid":"cashback-block-heading-title",type:"h6",className:O().title,weight:"regular",children:t.title}),(0,n.jsx)(W.IconFdsInfoCircleO,{"data-qa":"cashback-block-heading-icon","data-testid":"cashback-block-heading-icon",className:O().infoIcon,boxSize:16,onClick:i})]}),(0,n.jsx)(Z,{limits:t.limits}),a&&(0,n.jsx)(D,{open:a,onClose:o,modalButtonLabel:s,modalDescription:l,modalTitle:c})]})};var V=a(770),H=a.n(V);let J=e=>{let{benefitCalculationSectionData:t,button:a}=e,{title:s,imageSrc:l,fullProfitDescription:c,benefitCalculationBlock:p,cashbackBlock:u,inputLabel:m,errorText:f,events:{eventAction:h,eventCategory:b}}=t,{percent:_,maxBonus:g,maxAmount:v,minAmount:x,defaultAmount:w,amountVariants:C,additionalEarns:j}=p,{limits:N}=u,{label:S,link:y}=a,{amountChips:I,amountChipsValue:B,handleAmountChipCLick:W,handleFocus:z,totalBonusesAmount:L,inputValue:T,setInputValue:A,incomePerPeriod:E,handleBlur:Q,showError:F}=k(w,_,g,N,C,x,v),q={eventLabel:T};return(0,n.jsx)("section",{"data-qa":"benefit-calculation-section","data-testid":"benefit-calculation-section",className:H().section,children:(0,n.jsx)(r.JX,{size:{l:8,xl:6},offsetLeft:{l:2,xl:3},offsetRight:{l:2,xl:3},className:H().wrapper,children:(0,n.jsxs)(r.Zb,{dataQa:"benefit-calculation-section-card","data-testid":"benefit-calculation-section-card",className:H().card,children:[(0,n.jsx)(r.X6,{dataQa:"benefit-calculation-section-title","data-testid":"benefit-calculation-section-title",type:"hero",className:H().heading,children:s}),(0,n.jsx)(d,{additionalEarnText:c,totalBonusesAmount:L,urlSrc:l}),(0,n.jsx)(P,{inputLabel:m,errorText:f,minAmount:x,maxAmount:v,amountChips:I,inputValue:Number(T),amountChipsValue:B,handleAmountChipCLick:W,onBlur:Q,onFocus:z,onChange:A,showError:F}),(0,n.jsx)(R,{additionalEarns:j,incomePerPeriod:E}),(0,n.jsx)(X,{data:u}),(0,n.jsx)(i.zx,{dataQa:"benefit-calculation-section-button","data-testid":"benefit-calculation-section-button",size:"l",label:S,onClick:()=>(0,o.h)(y,b,h,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 _}});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,{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 _=e=>{let{tariffPlansSectionData:t,title:a,description:s}=e,{imageLink:l,tariffs:d,button:{label:p,link:u},events:{eventAction:m,eventCategory:h}}=t,_={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,_)})]})})})}},2461:function(e,t,a){"use strict";let n;a.d(t,{h:function(){return _}});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)},_=(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)},[]),r=(0,n.useCallback)(()=>{var t;null==e||null===(t=e.onClose)||void 0===t||t.call(e),a(!1)},[t]),o=(0,n.useCallback)(()=>{var t;null==e||null===(t=e.onConfirm)||void 0===t||t.call(e),a(!1)},[t]);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"}},3617:function(e){e.exports={headingWrapper:"CashbackBlock_headingWrapper__8k9OO",title:"CashbackBlock_title__ZI8km",infoIcon:"CashbackBlock_infoIcon__vzMEZ"}},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()}]);