(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[339],{895: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,8809)),Promise.resolve().then(a.t.bind(a,3014,23)),Promise.resolve().then(a.t.bind(a,49,23)),Promise.resolve().then(a.t.bind(a,1089,23)),Promise.resolve().then(a.bind(a,8152)),Promise.resolve().then(a.t.bind(a,2479,23)),Promise.resolve().then(a.t.bind(a,9489,23)),Promise.resolve().then(a.bind(a,1510)),Promise.resolve().then(a.t.bind(a,8147,23)),Promise.resolve().then(a.t.bind(a,4043,23)),Promise.resolve().then(a.bind(a,3500))},4552:function(e,t,a){"use strict";a.r(t),a.d(t,{AdvantageCard:function(){return f}});var i=a(7437),n=a(6094),s=a(2833),r=a(1810),o=a(3310),l=a.n(o);let c=e=>{let{isOpen:t,onClose:a,onConfirm:n,imgSrc:o,title:c,description:d,buttonLabel:p}=e;return(0,i.jsx)(r.u_,{dataQa:"info-modal","data-testid":"info-modal",header:{title:""},footer:{primaryBtnText:p,onPrimary:()=>{null==n||n(),a()}},open:t,onClose:a,style:{height:"auto"},size:"s",children:(0,i.jsxs)("div",{className:l().wrapper,children:[(0,i.jsx)("img",{"data-qa":"info-modal-image","data-testid":"info-modal-image",src:o,alt:c,width:150,height:150,className:l().img}),(0,i.jsx)(s.xv,{dataQa:"info-modal-title","data-testid":"info-modal-title",size:"18",weight:"medium",className:"mb-2",children:c}),(0,i.jsx)(s.xv,{dataQa:"info-modal-description","data-testid":"info-modal-description",size:"16",className:l().caption,children:d})]})})};var d=a(8264),p=a(8761),u=a(4518),m=a.n(u);let f=e=>{let{advantageDescription:t,advantageTitle:a,advantageModalDescription:o,modalTitle:l,imgSrc:u,buttonLabel:f,buttonLink:h,event:_,params:b}=e,{open:x,handleOpenModal:v,handleCloseModal:g}=(0,p.d)({}),{eventAction:j,eventCategory:k}=_;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.Zb,{className:m().wrapper,dataQa:"advantage-card","data-testid":"advantage-card",children:[(0,i.jsxs)("div",{style:{width:"100%"},children:[(0,i.jsxs)("div",{className:m().topCardWrapper,children:[(0,i.jsx)("div",{className:m().titleWrapper,children:(0,i.jsx)(s.X6,{as:"h3",dataQa:"advantage-card-heading","data-testid":"advantage-card-heading",type:"h1",children:a})}),(0,i.jsx)(r.zx,{dataQa:"advantage-card-button","data-testid":"advantage-card-button",size:"xs",shape:"circle-icon",appearance:"ghost",iconRight:(0,i.jsx)(n.IconFdsInfoCircleO,{className:m().title}),onClick:v,className:m().infoIcon})]}),(0,i.jsx)(s.xv,{as:"p",dataQa:"advantage-card-description","data-testid":"advantage-card-description",size:"18",children:t})]}),(0,i.jsx)("img",{"data-qa":"advantage-card-image","data-testid":"advantage-card-image",src:u,alt:a,width:200,height:200,className:m().image})]}),x&&(0,i.jsx)(c,{isOpen:x,onClose:g,onConfirm:()=>(0,d.h)(h,k,j,b),imgSrc:u,title:l,description:o,buttonLabel:f})]})}},1774:function(e,t,a){"use strict";a.r(t),a.d(t,{MobileAdvantagesCardsList:function(){return l}});var i=a(7437),n=a(1810),s=a(4552),r=a(1307),o=a.n(r);let l=e=>{let{advantages:t,modalButton:a}=e,{label:r,link:l}=a;return(0,i.jsx)(n.iR,{dataQa:"mobile-advantages-cards-list","data-testid":"mobile-advantages-cards-list",className:o().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,i.jsx)(n.wI,{className:o().sliderItem,children:(0,i.jsx)(s.AdvantageCard,{advantageTitle:a,advantageDescription:t,advantageModalDescription:c,buttonLabel:r,buttonLink:l,imgSrc:d,event:p,params:m,modalTitle:u})},t)})})}},8809:function(e,t,a){"use strict";a.r(t),a.d(t,{BenefitCalculationSection:function(){return Y}});var i=a(7437),n=a(1810),s=a(2833),r=a(8264),o=a(6094),l=a(6551),c=a.n(l);let d=e=>{let{title:t,handleOpenModal:a}=e;return(0,i.jsxs)("div",{"data-qa":"bonuses-block-heading-wrapper","data-testid":"bonuses-block-heading-wrapper",className:c().headingWrapper,children:[(0,i.jsx)(s.X6,{as:"h4",dataQa:"bonuses-block-heading-title","data-testid":"bonuses-block-heading-title",type:"h6",className:c().title,weight:"regular",children:t}),(0,i.jsx)(o.IconFdsInfoCircleO,{"data-qa":"bonuses-block-heading-icon","data-testid":"bonuses-block-heading-icon",className:c().infoIcon,boxSize:16,onClick:a})]})};var p=a(3167),u=a(8665),m=a(3571),f=a.n(m);let h=e=>{let{button:t,title:a,description:r,open:o,onClose:l}=e;return(0,i.jsx)(n.u_,{dataQa:"page-subscription-bonuses-info-modal","data-testid":"page-subscription-bonuses-info-modal",header:{title:a},footer:{children:(0,i.jsx)(n.zx,{dataQa:"page-subscription-bonuses-info-modal-button",size:"s",label:t,onClick:l})},open:o,onClose:l,style:{height:"auto"},children:(0,i.jsx)(s.xv,{dataQa:"page-subscription-bonuses-info-modal-description","data-testid":"page-subscription-bonuses-info-modal-description",as:"p",size:"16",className:(0,p.Z)("mt-2",f().description),children:(0,u.s)(r)})})};var _=a(6731),b=a(3755);let x=e=>e===(0,b.sl)("Бонусы за вклады")?(0,i.jsx)(o.IconFdsSafeO,{size:24,boxSize:24}):e===(0,b.sl)("Бонусы на остаток")?(0,i.jsx)(o.IconFdsFlashCircleO,{size:24,boxSize:24}):"Каско"===e?(0,i.jsx)(o.IconFdsCarFrontO,{size:24,boxSize:24}):"ОСАГО"===e?(0,i.jsx)(o.IconFdsShieldPlusO,{size:24,boxSize:24}):(0,i.jsx)(o.IconFdsHomeO,{size:24,boxSize:24});var v=a(8078),g=a.n(v);let j=e=>{let{additionalEarn:t,incomePerPeriod:a,prefix:n}=e;return(0,i.jsxs)("div",{"data-qa":"bonus-item","data-testid":"bonus-item",className:g().wrapper,children:[x(t.title),(0,i.jsxs)("div",{"data-qa":"bonus-item-content","data-testid":"bonus-item-content",className:g().contentWrapper,children:[(0,i.jsx)(s.xv,{dataQa:"bonus-item-title","data-testid":"bonus-item-title",size:"16",children:t.title}),(0,i.jsx)("div",{"data-qa":"bonus-item-amount-block","data-testid":"bonus-item-amount-block",className:g().amountWrapper,children:(0,i.jsx)(s.xv,{dataQa:"bonus-item-amount-block-income","data-testid":"bonus-item-amount-block-income",size:"20",fontFamily:"primary",className:g().incomePerPeriodTitle,children:n?"".concat(n," ").concat((0,_.lb)(a,{decimalIsWithoutZeros:!0})):(0,_.lb)(a,{decimalIsWithoutZeros:!0})})})]})]})};var k=a(8761),w=a(8645),C=a.n(w);let S=e=>{let{additionalEarns:t,blockTitle:a,incomePerPeriod:n,modalButton:s,modalDescription:r,modalTitle:o}=e,{open:l,handleOpenModal:c,handleCloseModal:p}=(0,k.d)({});return(0,i.jsxs)("div",{children:[(0,i.jsx)(d,{title:a,handleOpenModal:c}),(0,i.jsx)("div",{"data-qa":"additional-earn-block","data-testid":"additional-earn-block",className:C().wrapper,children:t.map(e=>(0,i.jsx)(j,{additionalEarn:e,incomePerPeriod:n},e.title))}),l&&(0,i.jsx)(h,{open:l,onClose:p,button:s,title:o,description:r})]})};var N=a(2265),W=a(2555),P=a.n(W);let B=e=>{let{value:t,chips:a,handleChipCLick:s,className:r,size:o="s",dataQa:l}=e,c=(0,N.useRef)(null),d=(0,N.useRef)(!1),u=(0,N.useRef)(0),m=(0,N.useRef)(0),f=(0,N.useCallback)((e,t,a)=>{let i=a.getBoundingClientRect(),n=t.getBoundingClientRect().left-i.left+a.scrollLeft-a.clientWidth/2+t.offsetWidth/2;a.scrollTo({left:n,behavior:"smooth"})},[c.current]);(0,N.useEffect)(()=>{if(null==c?void 0:c.current){let e=c.current.getSelectedChips(),t=a.find(t=>t.id===e),i=document.querySelector('[aria-label="'.concat(null==t?void 0:t.label,'"]'));i&&f(e,i,c.current.getRoot())}},[a,c,f]);let h=(0,N.useCallback)((e,t,a)=>{let i=t.target,n=a.getBoundingClientRect(),s=i.getBoundingClientRect().left-n.left+a.scrollLeft-a.clientWidth/2+i.offsetWidth/2;a.scrollTo({left:s,behavior:"smooth"})},[null==c?void 0:c.current]),_=(0,N.useCallback)(e=>{var t,a,i;e.preventDefault();let n=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==n?void 0:n.offsetLeft)&&void 0!==a?a:0),m.current=null!==(i=null==n?void 0:n.scrollLeft)&&void 0!==i?i:0},[c]),b=()=>{d.current=!1},x=()=>{d.current=!1},v=(0,N.useCallback)(e=>{var t,a;if(!d.current)return;e.preventDefault();let i=null==c?void 0:null===(t=c.current)||void 0===t?void 0:t.getRoot();if(!i)return;let n=e.pageX-(null!==(a=i.offsetLeft)&&void 0!==a?a:0)-u.current;i.scrollLeft=m.current-n},[c]);return(0,N.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",_),null==t||t.addEventListener("mouseleave",b),null==t||t.addEventListener("mouseup",x),null==t||t.addEventListener("mousemove",v),()=>{null==t||t.removeEventListener("mousedown",_),null==t||t.removeEventListener("mouseleave",b),null==t||t.removeEventListener("mouseup",x),null==t||t.removeEventListener("mousemove",v)}},[_,v]),(0,i.jsx)(n.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()),s(e)},className:(0,p.Z)(P().chips,r),size:o})};var y=a(2687),I=a.n(y);let z=e=>{let{amountChips:t,amountChipsValue:a,handleAmountChipCLick:s}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(B,{dataQa:"choose-amount-block-scrolled-chips","data-testid":"choose-amount-block-scrolled-chips",chips:t,value:a,handleChipCLick:s,size:"m",className:(0,p.Z)("mb-6",I().mobileChips)}),(0,i.jsx)(n.cL,{dataQa:"choose-amount-block-chips","data-testid":"choose-amount-block-chips",chips:t,value:a,onChipClick:s,className:(0,p.Z)("mb-6",I().desktopChips)})]})};var L=a(9827),Q=a.n(L);let T=e=>{let{amountChips:t,amountChipsValue:a,handleAmountChipCLick:s,minAmount:r,inputLabel:o,inputValue:l,errorText:c,onChange:d,onFocus:u,onKeyDown:m,showError:f}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.Rn,{dataQa:"benefit-calculator-input","data-testid":"benefit-calculator-input",label:o,unit:"₽",size:"m",withoutControls:!0,decimals:"never",value:null!=l?l:r,onChange:d,onFocus:u,onKeyDown:m,className:(0,p.Z)("mb-2",Q().inputWrapper),caption:f?c:void 0}),(0,i.jsx)(z,{amountChipsValue:a,handleAmountChipCLick:s,amountChips:t})]})};var A=a(7654),q=a.n(A);let E=e=>{let{limits:t}=e;return(0,i.jsx)("div",{"data-qa":"cashback-items-list","data-testid":"cashback-items-list",className:q().wrapper,children:t.map(e=>{let t={title:e.text,urlWeb:e.urlWeb};return(0,i.jsx)(j,{additionalEarn:t,incomePerPeriod:e.limit,prefix:e.prefix},e.text)})})},F=e=>{let{data:t}=e,{open:a,handleOpenModal:n,handleCloseModal:s}=(0,k.d)({});if(!t)return null;let{modalButtonLabel:r,modalDescription:o,modalTitle:l,title:c,limits:p}=t;return(0,i.jsxs)("div",{"data-qa":"cashback-block","data-testid":"cashback-block",className:"mt-4",children:[(0,i.jsx)(d,{title:c,handleOpenModal:n}),(0,i.jsx)(E,{limits:p}),a&&(0,i.jsx)(h,{open:a,onClose:s,button:r,description:o,title:l})]})};var R=a(2802),Z=a.n(R);let H=e=>{let{additionalEarnText:t,totalBonusesAmount:a,urlSrc:n}=e;return(0,i.jsxs)(s.Zb,{dataQa:"total-bonuses-amount-wrapper","data-testid":"total-bonuses-amount-wrapper",className:Z().totalBenefitWrapper,children:[(0,i.jsxs)("div",{"data-qa":"total-bonuses-amount-content","data-testid":"total-bonuses-amount-content",className:Z().totalWrapper,children:[(0,i.jsx)(s.xv,{dataQa:"total-bonuses-amount","data-testid":"total-bonuses-amount",as:"p",fontFamily:"primary",className:Z().total,children:"".concat((0,_.lb)(a,{decimalIsWithoutZeros:!0}))}),(0,i.jsx)(s.xv,{dataQa:"total-bonuses-amount-additional-earn-text","data-testid":"total-bonuses-amount-additional-earn-text",as:"p",size:"14",className:Z().additionalEarnText,children:t})]}),(0,i.jsx)("img",{"data-qa":"total-bonuses-amount-image","data-testid":"total-bonuses-amount-image",src:n,alt:"калькулятор",width:253,height:147,className:Z().image})]})};var O=a(5503),D=a(8844),M=a(4120);let X=e=>{let t=(0,O.Z)(new Date,1),a=(0,D.Z)(new Date(t),new Date),i=(0,M.Z)(new Date,e);return(0,D.Z)(new Date(i),new Date)/a},V=(e,t,a)=>Math.round(Math.min(t,a)/2*(e/100)*X(12)),J=(e,t)=>{let a=0;return e.forEach(e=>{a+=e.limit}),t?a+t:a},U=(e,t,a,i,n,s,r)=>{let o=(0,N.useMemo)(()=>n.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)),i=t?"\xa0₽":"";return a>6&&a<10?"".concat(String(+(e/1e6).toFixed(2)).replace(".",","),"\xa0млн").concat(i):a>=10&&a<13?"".concat(String(+(e/1e9).toFixed(2)).replace(".",","),"\xa0млрд").concat(i):a>=13?"".concat(String(+(e/1e12).toFixed(2)).replace(".",","),"\xa0трлн").concat(i):(0,_.lb)(e,{decimalCount:2,hasCurrencySymbol:t,decimalIsWithoutZeros:!0})}(e.amount)})),[n]),[l,c]=(0,N.useState)(0),[d,p]=(0,N.useState)(e),[u,m]=(0,N.useState)(o[o.length-1].id),[f,h]=(0,N.useState)(!1),[b,x]=(0,N.useState)(1e4);(0,N.useEffect)(()=>{o.find(e=>e.id===Number(d))?m(d):m(void 0),Number(d)>r?h(!0):h(!1);let e=V(t,a,Number(d));x(e),c(J(i,e?2*e:0))},[d,o,t,a,i]);let v=(0,N.useCallback)(()=>{h(!1),m(void 0)},[u]),g=(0,N.useCallback)(e=>{p(Number(e)),m(e),h(!1)},[d,u,p]),j=(0,N.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,N.useCallback)(e=>{p(e)},[d,p]);return{amountChips:o,amountChipsValue:u,handleAmountChipClick:g,handleFocus:v,totalBonusesAmount:l,inputValue:d,setInputValue:p,incomePerPeriod:b,handleKeyDown:j,showError:f,handleInputNumberChange:k}};var K=a(770),G=a.n(K);let Y=e=>{let{benefitCalculationSectionData:t,button:a}=e,{title:o,imageSrc:l,fullProfitDescription:c,benefitCalculationBlock:d,cashbackBlock:p,inputLabel:u,errorText:m,events:{eventAction:f,eventCategory:h}}=t,{percent:_,maxBonus:b,maxAmount:x,minAmount:v,defaultAmount:g,amountVariants:j,additionalEarns:k,additionalEarnsInfo:w,additionalEarnsTitle:C}=d,{limits:N}=p,{label:W,link:P}=a,{amountChips:B,amountChipsValue:y,handleAmountChipClick:I,handleFocus:z,totalBonusesAmount:L,inputValue:Q,incomePerPeriod:A,handleKeyDown:q,showError:E,handleInputNumberChange:R}=U(g,_,b,N,j,v,x),Z={eventLabel:Q};return(0,i.jsx)("section",{"data-qa":"benefit-calculation-section","data-testid":"benefit-calculation-section",className:G().section,children:(0,i.jsx)(s.JX,{size:{l:8,xl:6},offsetLeft:{l:2,xl:3},offsetRight:{l:2,xl:3},className:G().wrapper,children:(0,i.jsxs)(s.Zb,{dataQa:"benefit-calculation-section-card","data-testid":"benefit-calculation-section-card",className:G().card,children:[(0,i.jsx)(s.X6,{as:"h2",dataQa:"benefit-calculation-section-title","data-testid":"benefit-calculation-section-title",type:"hero",className:G().heading,children:o}),(0,i.jsx)(H,{additionalEarnText:c,totalBonusesAmount:L,urlSrc:l}),(0,i.jsx)(T,{inputLabel:u,errorText:m,minAmount:v,maxAmount:x,amountChips:B,inputValue:Number(Q),amountChipsValue:y,handleAmountChipCLick:I,onKeyDown:q,onFocus:z,onChange:R,showError:E}),(0,i.jsx)(S,{additionalEarns:k,incomePerPeriod:A,blockTitle:C,modalButton:w.button,modalTitle:w.title,modalDescription:w.description}),(0,i.jsx)(F,{data:p}),(0,i.jsx)(n.zx,{dataQa:"benefit-calculation-section-button","data-testid":"benefit-calculation-section-button",size:"l",label:W,onClick:()=>(0,r.h)(P,h,f,Z)})]})})})}},8152:function(e,t,a){"use strict";a.r(t),a.d(t,{PromoSection:function(){return d}});var i=a(7437),n=a(3167),s=a(2833),r=a(1810),o=a(8264),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,i.jsx)("section",{"data-qa":"promo-section","data-testid":"promo-section",children:(0,i.jsxs)(s.X2,{"data-qa":"promo-section-wrapper","data-testid":"promo-section-wrapper",className:c().wrapper,children:[(0,i.jsxs)(s.JX,{"data-qa":"promo-section-content","data-testid":"promo-section-content",size:{xs:12,xl:6},className:c().content,children:[(0,i.jsx)("div",{"data-qa":"promo-section-heading-wrapper","data-testid":"promo-section-heading-wrapper",className:c().headingWrapper,children:(0,i.jsxs)(s.X6,{dataQa:"promo-section-heading","data-testid":"promo-section-heading",type:"display",className:c().heading,children:[u.slice(0,-1),(0,i.jsx)("span",{"data-qa":"promo-section-plus","data-testid":"promo-section-plus",className:c().plus,children:u.slice(-1)})]})}),(0,i.jsx)(s.xv,{dataQa:"promo-section-description","data-testid":"promo-section-description",as:"p",fontFamily:"primary",size:"18",className:c().description,children:d}),(0,i.jsx)("img",{"data-qa":"promo-section-mobile-image","data-testid":"promo-section-mobile-image",src:p,alt:"Финуслуги+",width:299,height:300,className:(0,n.Z)("mb-6",c().mobileImage)}),(0,i.jsx)(r.zx,{dataQa:"promo-section-button","data-testid":"promo-section-button",size:"l",label:l,className:c().button,onClick:()=>(0,o.h)(a,f,m,h)})]}),(0,i.jsx)(s.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,i.jsx)("img",{"data-qa":"promo-section-desktop-image","data-testid":"promo-section-desktop-image",src:p,alt:"Финуслуги+",width:433,height:420,className:c().image})})]})})}},1510:function(e,t,a){"use strict";a.r(t),a.d(t,{SubscriptionServicesCardHeading:function(){return v}});var i=a(7437),n=a(703),s=a(1810),r=a(6094),o=a(2833),l=a(9102),c=a.n(l);let d=e=>{let{imgUrl:t,description:a}=e;return(0,i.jsxs)("div",{className:c().wrapper,children:[(0,i.jsx)("div",{className:c().imageWrapper,children:(0,i.jsx)(n.default,{src:t,alt:a,width:20,height:20})}),(0,i.jsx)(o.xv,{size:"16",children:a})]})};var p=a(8665),u=a(5672),m=a.n(u);let f=e=>{let{creditReportsList:t}=e;return(0,i.jsx)("ul",{className:m().list,children:t.map(e=>{let{iconWeb:t,text:a}=e;return(0,i.jsx)("li",{children:(0,i.jsx)(d,{imgUrl:t,description:(0,p.s)(a)})},a)})})},h=e=>{let{open:t,onClose:a,onConfirm:n,creditReportsList:r,title:o,buttonLabel:l}=e;return(0,i.jsx)(s.u_,{dataQa:"credit-reports-modal",header:{title:o},footer:{children:(0,i.jsx)(s.zx,{dataQa:"credit-reports-modal-confirm-button",size:"s",onClick:n,children:null!=l?l:"Узнать подробнее"})},open:t,onClose:a,size:"s",style:{height:"auto"},children:(0,i.jsx)(f,{creditReportsList:r})})};var _=a(8761),b=a(4928),x=a.n(b);let v=e=>{let{iconUrl:t,title:a,buttonLabel:o,modalInfo:l}=e,{open:c,handleOpenModal:d,handleCloseModal:p}=(0,_.d)({});return(0,i.jsxs)("div",{className:x().container,children:[(0,i.jsx)("div",{className:x().imageWrapper,children:(0,i.jsx)(n.default,{src:t,alt:a,width:20,height:20})}),(0,i.jsx)(s.zx,{dataQa:"subscription-services-card-heading",size:"xs",shape:"circle-icon",appearance:"ghost",iconRight:(0,i.jsx)(r.IconFdsInfoCircleO,{className:x().infoIcon}),onClick:d}),c&&(0,i.jsx)(h,{open:c,onClose:p,onConfirm:p,creditReportsList:l,title:a,buttonLabel:o})]})}},3500:function(e,t,a){"use strict";a.r(t),a.d(t,{TariffPlansSection:function(){return v}});var i=a(7437),n=a(1810),s=a(2833),r=a(8264),o=a(7659),l=a.n(o);let c=e=>{let{imgSrc:t,title:a,description:n}=e;return(0,i.jsxs)("div",{"data-qa":"tariff-plans-section-block-heading-wrapper","data-testid":"tariff-plans-section-block-heading-wrapper",className:l().wrapper,children:[(0,i.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,i.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,i.jsxs)(s.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,i.jsx)("span",{className:l().plus,children:a.slice(-1)})]})}),(0,i.jsx)(s.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:n})]})};var d=a(3167),p=a(6731),u=a(852),m=a.n(u);let f=e=>{let{tariff:t}=e,{price:a,description:r,tagLabel:o,pricePerMonthText:l}=t;return(0,i.jsxs)(s.Zb,{dataQa:"tariff-plan-card","data-testid":"tariff-plan-card",className:m().wrapper,children:[(0,i.jsxs)("div",{"data-qa":"tariff-plan-block-wrapper","data-testid":"tariff-plan-block-wrapper",className:(0,d.Z)(m().blockWrapper,"mb-1"),children:[(0,i.jsx)(s.xv,{dataQa:"tariff-plan-description","data-testid":"tariff-plan-description",size:"16",weight:"medium",className:m().description,children:r}),o&&(0,i.jsx)(n.Vp,{dataQa:"tariff-plan-tag","data-testid":"tariff-plan-tag",size:"s",variant:"green",label:o})]}),(0,i.jsxs)("div",{"data-qa":"tariff-plan-price-block-wrapper","data-testid":"tariff-plan-price-block-wrapper",className:(0,d.Z)(m().price),children:[(0,i.jsx)(s.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,i.jsx)(s.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(2265);let _=()=>({handleCopy:(0,h.useCallback)(async e=>{try{await navigator.clipboard.writeText(e),n.E.create({label:"Промокод скопирован",caption:"Примените его до оплаты",state:"success"})}catch(e){n.E.create({label:"При копировании произошла ошибка",state:"error"})}},[])});var b=a(9197),x=a.n(b);let v=e=>{let{tariffPlansSectionData:t,title:a}=e,{handleCopy:o}=_(),{description:l,promocodeInfo:d,showPromocodeInfo:p,imageLink:u,tariffs:m,button:{label:h,link:b},events:{eventAction:v,eventCategory:g}}=t,j={eventLabel:b.replace("https://","")},{textBeforePromocode:k,promocode:w,textAfterPromocode:C}="string"==typeof d?{textBeforePromocode:"",promocode:"",textAfterPromocode:""}:d;return(0,i.jsxs)("section",{"data-qa":"tariff-plans-section","data-testid":"tariff-plans-section",children:[(0,i.jsx)(s.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:x().wrapper,children:(0,i.jsxs)(s.Zb,{dataQa:"tariff-plans-section-card","data-testid":"tariff-plans-section-card",className:x().card,children:[(0,i.jsx)(c,{imgSrc:u,title:a,description:l}),(0,i.jsx)("div",{"data-qa":"tariffs-block-wrapper","data-testid":"tariffs-block-wrapper",className:x().tariffsWrapper,children:m.map(e=>(0,i.jsx)(f,{tariff:e},e.type))}),(0,i.jsx)(n.zx,{dataQa:"tariff-plans-section-button","data-testid":"tariff-plans-section-button",size:"l",label:h,onClick:()=>(0,r.h)(b,g,v,j)}),"string"!=typeof d&&p&&(0,i.jsxs)("div",{className:x().promocodeInfo,children:[(0,i.jsxs)(s.xv,{children:[k," ",(0,i.jsx)(n.rU,{text:w,onClick:()=>o(w)})]}),(0,i.jsxs)(s.xv,{children:[" ",C]})]})]})}),(0,i.jsx)(n.A9,{position:"topLeft"})]})}},8264:function(e,t,a){"use strict";a.d(t,{h:function(){return d}});var i=a(2773),n=a(146),s=a(915);let{browserId:r,sessionId:o}=(0,i.Z)(),l=n.Z.get("auth.gtm_customer_id"),c=e=>{(0,s.AB)(e)},d=(e,t,a,i)=>{c({event:"data_event",browser_id:r,session_id:o,customer_id:l,eventCategory:t,eventAction:a,eventLabel:null==i?void 0:i.eventLabel,eventValue:null==i?void 0:i.eventValue}),window.location.href=e}},8761:function(e,t,a){"use strict";a.d(t,{d:function(){return n}});var i=a(2265);let n=e=>{let[t,a]=(0,i.useState)(!1),n=(0,i.useCallback)(()=>{var t;null==e||null===(t=e.onOpen)||void 0===t||t.call(e),a(!0)},[e]),s=(0,i.useCallback)(()=>{var t;null==e||null===(t=e.onClose)||void 0===t||t.call(e),a(!1)},[t,e]),r=(0,i.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:s,handleOpenModal:n,handleConfirm:r}}},3755:function(e,t,a){"use strict";a.d(t,{SJ:function(){return n},sl:function(){return s.s}});var i=a(564);function n(e){let t=(0,i.env)(e);if(void 0===t&&window.__ENV&&Object.keys(window.__ENV).length>0)throw Error("".concat(e," is undefined"));return t}a(5019);var s=a(8665)},8665:function(e,t,a){"use strict";a.d(t,{s:function(){return i}});let i=e=>{let t=["до","в","с","на","по","к","и","а","о","млн","их","за","у","%","—","="];if(!e)return"";let a=e.split(" ");return a.map((e,i)=>"="===a[i+1]||t.includes(e)||/\d/.test(e)?"".concat(e,"\xa0"):"".concat(e," ")).join("").trim()}},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"}},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"}},9827:function(e){e.exports={inputWrapper:"BenefitCalculator_inputWrapper__19OHh"}},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"}},3571:function(e){e.exports={description:"BonusesInfoModal_description__QreJ6"}},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"}},3014:function(e){e.exports={wrapper:"BonusBlock_wrapper__takQr",title:"BonusBlock_title__gW1EA"}},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_"}},2479:function(e){e.exports={wrapper:"SubscriptionServicesSection_wrapper__xqh2d",heading:"SubscriptionServicesSection_heading__LofWX"}},5672:function(e){e.exports={list:"CreditReportsList_list__qLzIz"}},9102:function(e){e.exports={wrapper:"CreditReportsListItem_wrapper__qhW_n",imageWrapper:"CreditReportsListItem_imageWrapper__gSmBj"}},4043:function(e){e.exports={card:"SubscriptionServicesCard_card__5SHAI"}},9489:function(e){e.exports={container:"SubscriptionServicesCardContent_container__FuOFt"}},4928:function(e){e.exports={container:"SubscriptionServicesCardHeading_container__Vvd8H",imageWrapper:"SubscriptionServicesCardHeading_imageWrapper__mS96Q",infoIcon:"SubscriptionServicesCardHeading_infoIcon__ot6nH"}},8147:function(e){e.exports={list:"SubscriptionServicesList_list__XJbmX",item:"SubscriptionServicesList_item__BZxSm"}},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",promocodeInfo:"TariffPlansSection_promocodeInfo__srhh_"}},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_"}}},function(e){e.O(0,[544,207,31,619,51,971,69,744],function(){return e(e.s=895)}),_N_E=e.O()}]);