(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8312:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(8121)}])},3642:function(e,s,t){"use strict";t.d(s,{v:function(){return a}});let a=e=>!!e&&/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e)},8121:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSP:function(){return ew},default:function(){return eN}});var a,n,l=t(5893),i=t(6010),r=t(1163),o=t(7294),c=t(6175),_=t(7215),d=t(617),h=t(878),m=t(5352),p=t(5621),u=t(5137),x=t(8326),g=t(6535),C=t(2864),v=t(7771),A=t(5675),f=t.n(A),b={src:"/service-main/_next/static/media/applications.491ede42.png",height:446,width:639,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAM1BMVEVMaXEvLzcxRmMuKjM4N0Q4OTxXWF0ZGRxWV1sAAAAvUGo+ZI88EhRVV1g8ODx5IDEACBporoCWAAAAEXRSTlMAQLbmmXeNCL8PZe2MobbuHQgdKdcAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAuSURBVHicJcZZFgAQDMDAoNXa3f+0HvIzAbCd/VJlzWFQWuyuAEWS5zsEtefvABsnAMYwgqTMAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6},j={src:"/service-main/_next/static/media/robot.bd4ed9f5.png",height:386,width:265,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAMAAAAGL8UJAAAASFBMVEVMaXERDi4KIlgycqoHECsFHU00NGwONGAYKWEFEzc/f7Auf7ISJ2QfUX0cMUUCEDEVHkY6YokoW4IAETYEHEcAFD8LPnICCiLp8VwPAAAAE3RSTlMAaaqcjdp6+ySzNGjB6D7sUw2cos9J8QAAAAlwSFlzAAALEwAACxMBAJqcGAAAADFJREFUeJwFwQcCgCAMALFjlqEyivD/n5JAsgmo2wBFVgQn/8N8l2a+oM0zgnroRzMXHv0Bg1qy23kAAAAASUVORK5CYII=",blurWidth:5,blurHeight:8},y=t(938),w=t(8853),N=t(5147),k=t.n(N);(a=n||(n={}))[a.AI_ASSISTANT=2]="AI_ASSISTANT",a[a.FIN_APP=3]="FIN_APP";let S=e=>{switch(e){case n.AI_ASSISTANT:return(0,l.jsx)(f(),{src:j,width:400,height:400,className:k().robotImage,alt:"AI-ассистент ФинGPT",unoptimized:!0});case n.FIN_APP:return(0,l.jsx)(f(),{src:b,width:400,height:400,className:k().applicationImage,alt:"Приложение Финуслуг",unoptimized:!0});default:return null}},L=e=>{let{type:s,link:t,title:a,description:r,image:o,onClick:c}=e,_=(0,w.d)(),d=(0,y.G)("sm"),h=d?null==o?void 0:o.mobile:null==o?void 0:o.desktop;return(0,l.jsxs)("div",{className:(0,i.Z)(k()["component-".concat(s)],k().component),onClick:()=>c(a,t),children:[(0,l.jsx)("a",{href:t||"#","aria-label":"Ссылка на ".concat(a),className:k().link}),(0,l.jsxs)("div",{className:k().content,children:[(0,l.jsx)("p",{className:k().title,children:a}),r&&(0,l.jsx)("p",{className:k().text,children:r}),(0,l.jsx)("a",{"aria-label":"Подробнее о ".concat(a),href:t||"#",className:k().button,children:(0,l.jsx)("span",{children:(0,l.jsx)("svg",{width:"8.925781",height:"8.921875",viewBox:"0 0 8.92578 8.92188",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{id:"Vector",d:"M6.39 1.48L0.74 1.48C0.55 1.48 0.35 1.4 0.22 1.26C0.08 1.12 0 0.93 0 0.74C0 0.54 0.08 0.35 0.22 0.21C0.35 0.07 0.55 0 0.74 0L8.17 0C8.27 0 8.37 0.02 8.46 0.05C8.64 0.13 8.78 0.28 8.86 0.46C8.9 0.54 8.92 0.64 8.92 0.74L8.92 8.17C8.92 8.37 8.84 8.56 8.7 8.7C8.56 8.84 8.37 8.92 8.17 8.92C7.98 8.92 7.79 8.84 7.65 8.7C7.51 8.56 7.43 8.37 7.43 8.17L7.43 2.53L1.27 8.7C1.2 8.77 1.12 8.82 1.03 8.86C0.94 8.9 0.84 8.92 0.74 8.92C0.64 8.92 0.55 8.9 0.46 8.86C0.37 8.82 0.28 8.77 0.21 8.7C0.14 8.63 0.09 8.55 0.05 8.46C0.01 8.36 0 8.27 0 8.17C0 8.07 0.01 7.97 0.05 7.89C0.09 7.79 0.14 7.71 0.21 7.64L6.39 1.48Z",fill:"white",fillOpacity:"1.000000",fillRule:"nonzero"})})})})]}),(0,l.jsx)("div",{className:(0,i.Z)(k().imageContainer,k()["imageWrapper-".concat(s)],k().image),children:null!==o?(0,l.jsxs)(l.Fragment,{children:[s===n.AI_ASSISTANT&&(0,l.jsxs)("picture",{children:[(0,l.jsx)("source",{className:k().backImage,srcSet:"".concat(_.ASSETS_BASE_URL,"/mp-assets/images/sc/home/wanttotell/fingpt_bg-mob.png"),media:"(max-width: 420px)"}),(0,l.jsx)("img",{className:k().backImage,src:"".concat(_.ASSETS_BASE_URL,"/mp-assets/images/sc/home/wanttotell/fingpt_bg-desk.png"),alt:"Приложение Финуслуг"})]}),(0,l.jsx)("img",{className:(0,i.Z)(k().image,k()["image-".concat(s)],{[k().image2]:I(h)}),src:h,alt:"Приложение Финуслуг"})]}):S(s)})]})},I=e=>(null==e?void 0:e.includes("mapp_desktop_2"))||(null==e?void 0:e.includes("mapp_mobile_2"));var Z=t(4588),M=t(4386),E=t(3642),B=t(3731),T=t.n(B);let F=e=>{let{text:s,link:t,isEmailError:a}=e,n=["политики обработки персональных данных ПАО Московская Биржа","даю согласие на обработку ПАО Московская Биржа моих персональных данных"],r=s.split(new RegExp("(".concat(n.join("|"),")"))),c=e=>{(0,C.I)({eventCategory:W,eventActionType:C.i.link,eventActionText:(0,v.b)(e),eventLabel:t})};return(0,l.jsx)("span",{className:(0,i.Z)(T().checkboxText,a&&T().disabled),children:r.map((e,s)=>n.includes(e)?(0,l.jsx)("a",{className:T().checkboxLink,target:"_blank",href:t,onClick:()=>c(e),children:e},s):(0,l.jsx)(o.Fragment,{children:e},s))})};var R=e=>{var s,t,a,n;let{title:r,subscription:c}=e,[_,d]=(0,o.useState)(!1),[h,m]=(0,o.useState)(!1),[p,u]=(0,o.useState)(""),[x,g]=(0,o.useState)(""),[A,f]=(0,o.useState)(!1),[b,j]=(0,o.useState)(!1);return(0,l.jsxs)("div",{className:T().component,children:[(0,l.jsx)("p",{className:T().title,children:r}),(0,l.jsxs)("form",{className:T().form,children:[(0,l.jsxs)("div",{className:T().content,children:[(0,l.jsx)(Z.MA,{className:(0,i.Z)(T().input,!!x&&T().input_error),placeholder:null!==(s=null==c?void 0:c.emailPlaceholder)&&void 0!==s?s:"Электронная почта",value:p,onChange:e=>{x&&g(""),u(e)},state:x?"error":void 0,size:"s",style:x?{color:"rgb(255, 71, 71)"}:void 0,onFocus:e=>(0,C.I)({eventCategory:W,eventActionType:C.i.block,eventActionText:(0,v.b)("электронная почта"),eventLabel:(0,v.b)(e.target.value)})}),x&&(0,l.jsxs)("div",{className:T().error_message,children:[(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.6205 3.47003L22.6705 17.47C22.9418 17.9277 23.0866 18.4493 23.09 18.9814C23.0933 19.5134 22.9551 20.0368 22.6894 20.4978C22.4238 20.9589 22.0403 21.341 21.5784 21.6049C21.1164 21.8689 20.5925 22.0053 20.0605 22H3.94046C3.41264 21.9964 2.89512 21.8536 2.44014 21.5861C1.98516 21.3185 1.60883 20.9356 1.34914 20.4761C1.08945 20.0166 0.955602 19.4966 0.9611 18.9688C0.966598 18.441 1.11125 17.924 1.38046 17.47L9.38046 3.47003C9.64065 3.00354 10.0207 2.61498 10.4813 2.3445C10.9419 2.07401 11.4663 1.9314 12.0005 1.9314C12.5346 1.9314 13.0591 2.07401 13.5196 2.3445C13.9802 2.61498 14.3603 3.00354 14.6205 3.47003ZM11.4449 16.1686C11.6094 16.0587 11.8027 16 12.0005 16C12.2657 16 12.5201 16.1054 12.7076 16.2929C12.8951 16.4805 13.0005 16.7348 13.0005 17C13.0005 17.1978 12.9418 17.3912 12.832 17.5556C12.7221 17.72 12.5659 17.8482 12.3832 17.9239C12.2004 17.9996 11.9994 18.0194 11.8054 17.9808C11.6114 17.9422 11.4332 17.847 11.2934 17.7071C11.1535 17.5673 11.0583 17.3891 11.0197 17.1951C10.9811 17.0011 11.0009 16.8001 11.0766 16.6173C11.1523 16.4346 11.2805 16.2784 11.4449 16.1686ZM11.2934 8.29292C11.4809 8.10539 11.7353 8.00003 12.0005 8.00003C12.2657 8.00003 12.5201 8.10539 12.7076 8.29292C12.8951 8.48046 13.0005 8.73481 13.0005 9.00003V13C13.0005 13.2652 12.8951 13.5196 12.7076 13.7071C12.5201 13.8947 12.2657 14 12.0005 14C11.7353 14 11.4809 13.8947 11.2934 13.7071C11.1058 13.5196 11.0005 13.2652 11.0005 13V9.00003C11.0005 8.73481 11.1058 8.48046 11.2934 8.29292Z",fill:"rgb(255, 71, 71)"})}),x]}),(0,l.jsx)(Z.zx,{className:(0,i.Z)(T().button,!!x&&T().disabled),onClick:e=>{if(e&&e.preventDefault(),!(0,E.v)(p)){g("Проверьте правильность написания электронной почты");return}if(!A){j(!0);return}(0,C.I)({eventCategory:W,eventActionType:C.i.button,eventActionText:(0,v.b)("подписаться")}),g(""),m(!0),fetch("https://forms.dashamail.ru/subscribe.php?list_id=56713Embedded",{method:"POST",body:JSON.stringify({merge_:p})}).then(e=>{!e||200===e.status||e.ok?(m(!1),d(!0),u(""),f(!1),j(!1),setTimeout(()=>{d(!1)},2e3)):g(409===e.status?'Кажется, вы уже подписаны на нашу рассылку. Если письма не приходят, рекомендуем обратиться в поддержу по телефону <span class="nowrap">8\xa0800\xa0505-32-32</span>.':401===e.status?"Проверьте правильность написания электронной почты":"Возникла ошибка, повторите попытку позднее")})},variant:"purple",label:_?"Успешно":null!==(t=null==c?void 0:c.buttonText)&&void 0!==t?t:"Подписаться",pending:h})]}),(0,l.jsx)(Z.XZ,{inverted:!0,className:(0,i.Z)(T().checkbox,!!x&&T().disabled),value:!x&&!!A,state:b&&!A?"error":void 0,onChange:()=>{(0,C.I)({eventCategory:W,eventActionType:C.i.checkbox,eventActionText:"box_soglashenie_blok_check_box_soglashenie",eventLabel:""}),f(e=>!e)},label:(0,l.jsx)(F,{text:null!==(a=null==c?void 0:c.termsText)&&void 0!==a?a:"Я принимаю условия политики обработки персональных данных ПАО Московская Биржа и настоящим даю согласие на обработку ПАО Московская Биржа моих персональных данных",link:null!==(n=null==c?void 0:c.termsLink)&&void 0!==n?n:M.Bz,isEmailError:!!x})})]})]})},U=t(3228),P=t.n(U),z=e=>{let{link:s,title:t,image:a,onClick:n}=e,i=(0,y.G)("sm");return(0,l.jsxs)("div",{className:P().component,onClick:()=>n(t,s),children:[(0,l.jsx)("div",{className:P().tag}),(0,l.jsxs)("div",{className:P().body,children:[(0,l.jsx)("a",{href:s||"#",className:P().bodyLink,"aria-label":"Ссылка на ".concat(t)}),(0,l.jsxs)("div",{className:P().content,children:[(0,l.jsx)("p",{className:P().title,children:t}),(0,l.jsx)("a",{className:P().link,href:s||"#","aria-label":"Ссылка на ".concat(t),children:(0,l.jsx)("span",{children:(0,l.jsx)("svg",{width:"8.925781",height:"8.921875",viewBox:"0 0 8.92578 8.92188",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{id:"Vector",d:"M6.39 1.48L0.74 1.48C0.55 1.48 0.35 1.4 0.22 1.26C0.08 1.12 0 0.93 0 0.74C0 0.54 0.08 0.35 0.22 0.21C0.35 0.07 0.55 0 0.74 0L8.17 0C8.27 0 8.37 0.02 8.46 0.05C8.64 0.13 8.78 0.28 8.86 0.46C8.9 0.54 8.92 0.64 8.92 0.74L8.92 8.17C8.92 8.37 8.84 8.56 8.7 8.7C8.56 8.84 8.37 8.92 8.17 8.92C7.98 8.92 7.79 8.84 7.65 8.7C7.51 8.56 7.43 8.37 7.43 8.17L7.43 2.53L1.27 8.7C1.2 8.77 1.12 8.82 1.03 8.86C0.94 8.9 0.84 8.92 0.74 8.92C0.64 8.92 0.55 8.9 0.46 8.86C0.37 8.82 0.28 8.77 0.21 8.7C0.14 8.63 0.09 8.55 0.05 8.46C0.01 8.36 0 8.27 0 8.17C0 8.07 0.01 7.97 0.05 7.89C0.09 7.79 0.14 7.71 0.21 7.64L6.39 1.48Z",fill:"#13161C",fillOpacity:"1.000000",fillRule:"nonzero"})})})}),null!==a?(0,l.jsx)(f(),{width:220,height:288,src:i?a.mobile:a.desktop,alt:"Изображение знака процент",className:P().image}):(0,l.jsx)("span",{className:P().image,"aria-label":"Изображение знака процент",children:(0,l.jsx)("svg",{width:"220.871094",height:"288.945312",viewBox:"0 0 220.871 288.945",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{id:"%",d:"M0.57 61.36L2.46 47.47C3.82 37.49 7.21 28.71 12.66 21.11C18.1 13.53 25.31 7.83 34.28 4.03C43.25 0.22 53.57 -0.89 65.25 0.7C77.28 2.34 87.05 6.17 94.56 12.21C102.19 18.28 107.62 25.68 110.84 34.46C114.06 43.22 115 52.59 113.64 62.57L111.75 76.46C110.43 86.21 107.05 94.87 101.6 102.46C96.28 110.07 89.14 115.77 80.16 119.57C71.31 123.39 60.93 124.49 49.02 122.87C37.23 121.27 27.45 117.43 19.7 111.35C12.07 105.3 6.64 97.89 3.42 89.12C0.2 80.35 -0.75 71.1 0.57 61.36ZM32.6 51.57L30.71 65.46C30.06 70.27 30.34 74.96 31.56 79.53C32.9 84.12 35.31 88 38.8 91.17C42.29 94.34 46.87 96.31 52.52 97.07C58.3 97.86 63.17 97.17 67.14 95.02C71.23 92.88 74.47 89.77 76.86 85.68C79.25 81.6 80.78 77.15 81.43 72.35L83.32 58.46C83.99 53.53 83.66 48.76 82.32 44.17C81.12 39.48 78.83 35.56 75.46 32.4C72.09 29.25 67.51 27.28 61.74 26.5C56.21 25.75 51.33 26.43 47.12 28.55C43.03 30.69 39.73 33.85 37.19 38.04C34.8 42.13 33.27 46.64 32.6 51.57ZM107.18 226.49L109.09 212.42C110.43 202.56 113.82 193.83 119.27 186.25C124.83 178.67 132.1 172.98 141.07 169.18C150.04 165.38 160.36 164.27 172.03 165.85C184.07 167.49 193.84 171.32 201.35 177.37C208.98 183.43 214.35 190.83 217.45 199.58C220.68 208.35 221.61 217.66 220.28 227.52L218.36 241.59C217.02 251.45 213.63 260.18 208.19 267.76C202.87 275.37 195.78 281.08 186.93 284.9C178.08 288.72 167.76 289.83 155.96 288.23C144.05 286.61 134.22 282.76 126.47 276.69C118.84 270.63 113.35 263.21 110.01 254.43C106.78 245.66 105.84 236.35 107.18 226.49ZM139.42 216.53L137.5 230.6C136.85 235.42 137.19 240.11 138.53 244.71C139.99 249.32 142.45 253.26 145.93 256.55C149.42 259.72 153.87 261.68 159.29 262.41C165.43 263.24 170.54 262.59 174.63 260.45C178.73 258.19 181.85 255.07 183.99 251.07C186.26 246.96 187.73 242.45 188.4 237.52L190.32 223.45C190.98 218.52 190.65 213.76 189.31 209.17C188.1 204.59 185.74 200.72 182.25 197.55C178.88 194.4 174.31 192.43 168.53 191.64C162.88 190.88 158 191.57 153.91 193.71C149.82 195.84 146.52 198.95 144.01 203.01C141.62 207.1 140.09 211.6 139.42 216.53ZM197.35 60.71L21.66 263.38L1.2 247.56L176.89 44.89L197.35 60.71Z",fill:"var(--color-purple-200)",fillRule:"nonzero"})})})]})]})]})},O=t(6949),H=t.n(O);let W="homepage_want_to_tell",D=(e,s)=>e.find(e=>e.type===s);var Q=e=>{let{title:s,subTitle:t,custom:a,value:n}=e,i=D(n.blocks,1),r=D(n.blocks,3),o=D(n.blocks,2),c=D(n.blocks,4),_=(e,s)=>{(0,C.I)({eventCategory:W,eventActionType:C.i.banner,eventActionText:(0,v.b)(e),eventLabel:void 0!==s?"".concat((0,v.b)(e),"_").concat(s):void 0})};return(0,l.jsx)("div",{className:H().section,style:{background:a.background},children:(0,l.jsx)(g.W2,{children:(0,l.jsxs)("div",{className:H().wrapper,children:[(0,l.jsxs)("div",{className:H().heading,children:[(0,l.jsx)("h2",{className:H().headingTitle,children:s}),(0,l.jsx)("p",{className:H().headingText,children:t})]}),(0,l.jsxs)("div",{className:H().blocks,children:[(0,l.jsxs)("div",{className:H().column,children:[i&&(0,l.jsx)(z,{...i,onClick:_}),r&&(0,l.jsx)(L,{...r,onClick:_})]}),(0,l.jsxs)("div",{className:H().column,children:[o&&(0,l.jsx)(L,{...o,onClick:_}),c&&(0,l.jsx)(R,{...c})]})]})]})})})};t(439),t(9360);var V=t(9194),J=t(9304),K=t(2261);let q=()=>{let[e,s]=(0,o.useState)(!1),[t,a]=(0,o.useState)(!1),n=(0,o.useRef)({x:0,y:0}),l=(0,o.useCallback)(e=>{a(!0),n.current={x:e.screenX,y:e.screenY},n.current&&n.current.x===e.screenX&&n.current.y===e.screenY&&s(!1)},[]),i=(0,o.useCallback)(e=>{n.current&&n.current.x===e.screenX&&n.current.y===e.screenY||(s(!0),n.current={x:e.screenX,y:e.screenY})},[]),r=(0,o.useCallback)(()=>{s(!1),a(!1)},[]);return{isDragged:e,isTouched:t,onMouseDown:l,onMouseMove:i,resetState:r}},G=e=>({primary:"secondary",secondary:"primary"})[e];var X=t(9546),Y=t(3375),$=t(5492),ee={src:"/service-main/_next/static/media/bank-placeholder.d924b4ac.svg",height:108,width:108,blurWidth:0,blurHeight:0};let es=e=>{let[s,t]=(0,o.useState)(0),a="insurance"===e.type?"sk":e.type||"bank",n="".concat(e.env.ASSETS_BASE_URL,"/mp-assets/images/").concat(a,"/logo-brandmark-").concat(a,"-").concat(e.url,".svg");(0,o.useEffect)(()=>{t(0)},[n]);let i=0===s?n:1===s&&e.backupImage?e.backupImage:ee;return(0,l.jsx)(f(),{className:e.className,src:i,width:e.width,height:e.height,alt:"logo",unoptimized:!0,onError:()=>t(e=>e+1),suppressHydrationWarning:!0})},et=["blue","purple","green","orange"];var ea=t(9152),en=t.n(ea);let el=e=>{let s=e.charCodeAt(0);return et[s%et.length]},ei=e=>{switch(e){case"КАСКО":case"Ипотека":return"green";case"Облигации":case"Вклад":case"Дебетовая карта":case"Кредитная карта":return"orange";case"Кредит":return"blue";case"Автокредит":return"pink";case"primary":return"white";case"secondary":return"gray--400";default:return"gray--500"}};var er=e=>{let{name:s,rating:t,product_type:a=[],recommended_finuslugi:n,wrapperClassName:r,ratingClassName:o,showAllStars:c=!1,bank_url:_,bank_logo:d,publ_date:h,isModal:m=!1,orgType:p,variant:u}=e,x=(0,w.d)(),g=s.slice(0,1).toUpperCase(),C=el(g),v="string"==typeof a?[a]:Array.isArray(a)?a:[];return(0,l.jsxs)("div",{className:(0,i.Z)(r,{[en().showAllStarsHeaderWrapper]:c}),children:[(0,l.jsxs)("div",{className:en().card_head,children:[(0,l.jsxs)("div",{className:(0,i.Z)(en().avatar,en()[C]),children:[(0,l.jsx)("span",{className:en().avatar_initial,children:g}),d&&(0,l.jsx)(es,{env:x,url:_||"",backupImage:d,type:p||"bank",width:21,height:21,className:en().bank_logo})]}),(0,l.jsxs)("div",{className:en().header_info,children:[(0,l.jsxs)("div",{className:c?en().author_info:"",children:[(0,l.jsx)("span",{className:en().author_name,children:s}),(0,l.jsxs)("span",{className:(0,i.Z)(en().rating,o),children:[!c&&(0,l.jsx)(V.IconFdsStarF,{className:en().icon_star,size:16}),t.toFixed(1).replace(".",","),c&&Array.from({length:5}).map((e,s)=>{let a=Math.floor(t),n=s<a,r=s===a&&t%1!=0,o=r?t%1*100:0;return(0,l.jsxs)("div",{className:en().star_wrapper,children:[(0,l.jsx)(V.IconFdsStarF,{className:(0,i.Z)(en().inactive_star,u&&en()[u])}),(n||r)&&(0,l.jsx)("div",{className:en().active_star,style:{width:"".concat(n?100:o,"%")},children:(0,l.jsx)(V.IconFdsStarF,{className:en().active_star_icon})})]},s)})]}),n&&(0,l.jsx)("p",{className:en().recommended,children:"Рекомендует Финуслуги"})]}),d&&h&&!m&&(0,l.jsx)("p",{className:en().info_date,children:h})]})]}),(0,l.jsx)("div",{className:(0,i.Z)(en().info_item,en().card_tags),children:v.map(e=>(0,l.jsx)("span",{className:(0,i.Z)(en().tag,en()[ei(u||e)]),children:e},e))})]})},eo=t(320),ec=t.n(eo),e_=e=>{let{post:s,isModal:t=!1,isPopup:a=!1,ratingCustomClass:n,showAllStars:r,variant:o}=e,{title:c,text:_,advantages:d,disadvantages:h,other_impressions:m,publ_date:p}=s,u=!t||a,x=!t&&!a;return(0,l.jsxs)("div",{className:(0,i.Z)(ec()["review_сard"],o&&x&&ec()[o],{[ec().card_in_modal]:t,[ec().showAllStarsCardWrapper]:r}),children:[u&&(0,l.jsx)(er,{...s,wrapperClassName:a?ec().card_head_in_popup:"",ratingClassName:n,isModal:t,showAllStars:r,variant:o&&G(o)}),(0,l.jsx)("div",{className:(0,i.Z)(ec().card_body,u&&ec().card_body_with_padding,a&&ec().card_body_in_popup),children:t?(0,l.jsxs)(l.Fragment,{children:[_&&(0,l.jsxs)("div",{className:ec().info_item,children:[c&&(0,l.jsx)("p",{className:ec().info_item_title,children:c}),(0,l.jsx)("p",{className:ec().info_item_text,children:_})]}),void 0!==d&&(0,l.jsxs)("div",{className:ec().info_item,children:[(0,l.jsxs)("div",{className:ec().info_item_title,children:[(0,l.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{rx:"9",width:"18",height:"18",fill:"#49C55D"}),(0,l.jsx)("path",{d:"M9.75024 8.25L14.2502 8.25C14.449 8.25 14.6399 8.32904 14.7805 8.46973C14.9211 8.61035 15.0002 8.80109 15.0002 9C15.0002 9.19891 14.9211 9.38971 14.7805 9.53033C14.6399 9.67102 14.449 9.75 14.2502 9.75L9.75024 9.75L9.75024 14.25C9.75024 14.4489 9.67114 14.6397 9.53052 14.7803C9.38989 14.921 9.19897 15 9.00024 15C8.80127 15 8.61035 14.921 8.46973 14.7803C8.3291 14.6397 8.25024 14.4489 8.25024 14.25L8.25024 9.75L3.75024 9.75C3.55127 9.75 3.36035 9.67102 3.21973 9.53033C3.0791 9.38971 3.00024 9.19891 3.00024 9C3.00024 8.80109 3.0791 8.61035 3.21973 8.46973C3.36035 8.32904 3.55127 8.25 3.75024 8.25L8.25024 8.25L8.25024 3.75C8.25024 3.55109 8.3291 3.36035 8.46973 3.21973C8.61035 3.07904 8.80127 3 9.00024 3C9.19897 3 9.38989 3.07904 9.53052 3.21973C9.67114 3.36035 9.75024 3.55109 9.75024 3.75L9.75024 8.25Z",fill:"#FFFFFF"})]}),(0,l.jsx)("span",{children:"Достоинства"})]}),(0,l.jsx)("p",{className:ec().info_item_text,children:d})]}),void 0!==h&&(0,l.jsxs)("div",{className:ec().info_item,children:[(0,l.jsxs)("div",{className:ec().info_item_title,children:[(0,l.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{rx:"9",width:"18",height:"18",fill:"#FF0508"}),(0,l.jsx)("path",{d:"M3.75024 8.25L14.2502 8.25C14.449 8.25 14.6399 8.32904 14.7805 8.46973C14.9211 8.61035 15.0002 8.80109 15.0002 9C15.0002 9.19891 14.9211 9.38971 14.7805 9.53033C14.6399 9.67102 14.449 9.75 14.2502 9.75L3.75024 9.75C3.55127 9.75 3.36035 9.67102 3.21973 9.53033C3.0791 9.38971 3.00024 9.19891 3.00024 9C3.00024 8.80109 3.0791 8.61035 3.21973 8.46973C3.36035 8.32904 3.55127 8.25 3.75024 8.25Z",fill:"#FFFFFF"})]}),(0,l.jsx)("span",{children:"Недостатки"})]}),(0,l.jsx)("p",{className:ec().info_item_text,children:h})]}),void 0!==m&&(0,l.jsxs)("div",{className:ec().info_item,children:[(0,l.jsx)("p",{className:ec().info_item_title,children:"Комментарий"}),(0,l.jsx)("p",{className:ec().info_item_text,children:m})]}),p&&(0,l.jsxs)("p",{className:ec().info_date,children:["Дата отзыва: ",p]})]}):(0,l.jsxs)(l.Fragment,{children:[c&&(0,l.jsx)("p",{className:ec().title,children:c}),(0,l.jsx)("p",{className:(0,i.Z)(ec().info_item,ec().info_item_text,{[ec().shortened_text]:!t}),children:m||_||d}),(0,l.jsx)("div",{className:(0,i.Z)(ec().gradient,o&&ec()[o])}),(0,l.jsx)("p",{className:ec().button_full_text,children:"Читать полностью"})]})})]})},ed=t(3422),eh=t.n(ed);let em=e=>{let{data:s,variant:t}=e;return(0,l.jsx)("div",{className:eh().modal_button_wrapper,onClick:()=>ev("modal",s.text,s.link),children:(0,l.jsx)(Z.zx,{as:"a",href:s.link,label:s.text,stretch:!0,className:eh().modal_button,size:"s",variant:t})})};var ep=e=>{let{data:s,buttonData:t,isOpen:a,onClose:n,ratingCustomClass:i,showAllStars:r,cardVariant:o}=e,c=(0,y.G)("md");if(!s)return null;let _=s.url?(0,l.jsx)(em,{data:{...t,link:s.url,text:"Подробнее"},variant:"secondary"}):(0,l.jsx)(em,{data:t});return(0,l.jsx)(X.h,{children:c?(0,l.jsx)($.j,{className:eh().mobile_popup,isOpen:a,onClose:n,footer:_,children:null!==s&&(0,l.jsx)(e_,{post:s,ratingCustomClass:i,showAllStars:r,variant:o,isModal:!0,isPopup:!0})}):(0,l.jsx)(Y.d,{contentClassName:eh().container,isOpen:a,onClose:n,title:(0,l.jsx)(er,{...s,ratingClassName:i,isModal:!0,showAllStars:r,variant:o&&G(o)}),titleAlign:"left",rowTitle:!0,footer:_,width:"600px",children:null!==s&&(0,l.jsx)(e_,{post:s,variant:o,isModal:!0})})})},eu=t(9963),ex=t.n(eu);let eg="homepage_reviews_about_finuslugi",eC=e=>e.replace(/[.,!?]/g,"").split(/\s+/).slice(0,3).join(" "),ev=(e,s,t)=>{let a=(0,v.b)(s);(0,C.I)({eventCategory:eg,eventActionType:C.i.button,eventActionText:"".concat(e,"_").concat(a),eventLabel:"".concat(a,"_").concat(t)})};var eA=e=>{let{title:s,subTitle:t,value:{reviews:a,registerButton:n,ratingCustomClass:r},showAllStars:c=!1,variant:_}=e,[d,h]=(0,o.useState)(!1),[m,p]=(0,o.useState)(null),[u,x]=(0,o.useState)(!0),[A,f]=(0,o.useState)(a.length<=4),b=(0,y.G)("lg"),j=(0,o.useRef)(null),{isDragged:w,isTouched:N,onMouseDown:k,onMouseMove:S,resetState:L}=q(),I=b?t.replace(/\./g,"<br />"):t,M=e=>{(0,C.I)({eventCategory:eg,eventActionType:C.i.popup,eventActionText:"review",eventLabel:"review_".concat(e.name).concat((0,v.b)(e.advantages?"_".concat(eC(e.advantages)):""))}),p(e),h(!0)},E=(e,s)=>{0===e.button&&!w&&N&&M(s)},B=e=>{e.stopPropagation(),0===e.button&&k(e)},T=e=>{0===e.button&&L()};return(0,l.jsx)("div",{className:(0,i.Z)(ex().section,_&&ex()[_]),children:(0,l.jsx)(g.W2,{children:(0,l.jsxs)("div",{className:ex().wrapper,children:[(0,l.jsx)("h2",{className:ex().title,children:s}),I&&(0,l.jsx)("p",{className:ex().subtitle,dangerouslySetInnerHTML:{__html:I}}),(0,l.jsxs)("div",{className:ex().slider_wrapper,children:[!b&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{className:(0,i.Z)(ex().control_left,{[ex().hidden]:u}),children:(0,l.jsx)(V.IconArrowHead,{className:ex().control_icon,size:24})}),(0,l.jsx)("button",{className:(0,i.Z)(ex().control_right,{[ex().hidden]:A}),children:(0,l.jsx)(V.IconArrowHead,{className:ex().control_icon,size:24})})]}),(0,l.jsx)(K.tq,{spaceBetween:b?16:24,slidesPerView:1,navigation:!b&&{prevEl:".".concat(ex().control_left),nextEl:".".concat(ex().control_right)},pagination:{clickable:!0,el:j.current,bulletActiveClass:ex().bullet_active},breakpoints:{600:{slidesPerView:2},1024:{slidesPerView:3},1280:{slidesPerView:4}},modules:[J.W_,J.tl],touchStartPreventDefault:!1,onSwiper:e=>{e.on("slideChange",()=>{x(e.isBeginning),f(e.isEnd)})},className:ex().slider_list,children:a.map((e,s)=>(0,l.jsx)(K.o5,{onMouseDown:B,onMouseMove:S,onMouseLeave:L,onMouseUp:T,onMouseUpCapture:s=>E(s,e),children:(0,l.jsx)(e_,{post:e,ratingCustomClass:r,showAllStars:c,variant:_&&G(_)})},"".concat(e.name,"-").concat(s)))}),(0,l.jsx)("div",{ref:j,className:(0,i.Z)("swiper-pagination",ex().pagination)})]}),(0,l.jsx)(Z.zx,{as:"a",href:n.link,onClick:()=>{ev("main",n.text||"",n.link)},label:n.text,className:(0,i.Z)(ex().button,n.customClass),size:"s",iconRight:n.iconRight}),(0,l.jsx)(ep,{data:m,buttonData:n,ratingCustomClass:r,isOpen:d,onClose:()=>{p(null),h(!1)},showAllStars:c})]})})})},ef=t(7935),eb=t.n(ef);let ej=e=>{let{env:s,sections:t,homeBannerV2Data:a,homeProductsV3:n,bestOffers:o,wantToTell:c,reviews:g,meta:C}=e,{asPath:v}=(0,r.useRouter)(),A=v.includes("finproducts-v2");return(0,l.jsxs)("main",{children:[(0,l.jsx)(m.N,{env:s,title:C.title,description:C.description,path:v,noindex:A}),(0,l.jsx)(u.p,{data:a}),(0,l.jsxs)("div",{className:(0,i.Z)(eb().scrollContent,{[eb().v2]:!0}),children:[!!n&&(0,l.jsx)(x.G,{...n}),o&&(0,l.jsx)(d.Z,{children:(0,l.jsx)(_.MJ,{tabs:o,baseUrl:s.NEXT_PUBLIC_BASE_URL,s3Assets:"".concat(s.ASSETS_BASE_URL,"/mp-assets"),dataLayerPush:p.l})}),t.services&&(0,l.jsx)(d.Z,{dataCommonBlock:"services",html:t.services}),t.journal&&(0,l.jsx)(d.Z,{dataCommonBlock:"journal",html:t.journal}),t["offer-selector"]&&(0,l.jsx)(d.Z,{dataCommonBlock:"offer-selector",html:t["offer-selector"]}),c&&(0,l.jsx)(d.Z,{children:(0,l.jsx)(h.Z,{children:(0,l.jsx)(Q,{...c})})}),g&&(0,l.jsx)(d.Z,{children:(0,l.jsx)(h.Z,{children:(0,l.jsx)(eA,{...g})})}),t.support&&(0,l.jsx)(d.Z,{dataCommonBlock:"support",html:t.support}),t.faq&&(0,l.jsx)(d.Z,{dataCommonBlock:"faq",html:t.faq})]})]})};var ey=t(8444),ew=!0,eN=e=>{var s;let{env:t,layout:a,commonBlocksData:n,sections:_,homeBannerV2Data:d,homeProductsV3:h,bestOffers:m,wantToTell:p,reviews:u,meta:x}=e,{asPath:g}=(0,r.useRouter)(),C=g.includes("finproducts-v2"),[v,A]=(0,o.useState)(C),f=(0,ey.G)(),b=null!==(s=t.NEXT_PUBLIC_BASE_URL)&&void 0!==s?s:"*",j=e=>{let s=e.data;s&&s.key&&"finBanners"===s.key&&A("B"===s.value)};return(0,o.useEffect)(()=>(window.addEventListener("message",j),window.postMessage({key:"mainPageLoaded",value:!0},b),()=>window.removeEventListener("message",j)),[b]),(0,l.jsx)(c.A,{env:t,data:a,sections:n,isMainBannerPage:!0,className:(0,i.Z)({[ey.n]:f}),children:(0,l.jsx)(ej,{env:t,homeBannerV2Data:d,homeProductsV3:h,bestOffers:m,wantToTell:p,reviews:u,sections:_,meta:x,isFinProductsVariantB:v})})}},7935:function(e){e.exports={scrollContent:"HomePage_scrollContent__sR2Pd",v2:"HomePage_v2__eggLb",shine:"HomePage_shine__FoQVX"}},5147:function(e){e.exports={component:"InfoBlock_component__XKxo_",title:"InfoBlock_title__fFhQM","component-3":"InfoBlock_component-3__FSIOY",button:"InfoBlock_button__6h3ip",link:"InfoBlock_link__YZMah",content:"InfoBlock_content__JeG0A",text:"InfoBlock_text__4AEKJ",image:"InfoBlock_image__eMahw","image-2":"InfoBlock_image-2__nbqJS","image-3":"InfoBlock_image-3__EBwFp","imageWrapper-2":"InfoBlock_imageWrapper-2__xUKGU",backImage:"InfoBlock_backImage__oHaHk",image2:"InfoBlock_image2__sCaYJ",applicationImage:"InfoBlock_applicationImage__tnSWZ",robotImage:"InfoBlock_robotImage__vkp4b",shine:"InfoBlock_shine__O6CHN"}},3731:function(e){e.exports={component:"Newsletter_component__RZR9W",title:"Newsletter_title__XUHfi",content:"Newsletter_content__8R3Op",input:"Newsletter_input__5axJn",input_error:"Newsletter_input_error__gF_d2",error_message:"Newsletter_error_message__6pqPE",error_message_text:"Newsletter_error_message_text__0ae40",button:"Newsletter_button__Kjk0d",disabled:"Newsletter_disabled__P5jsa",checkbox:"Newsletter_checkbox__dmSVM",checkboxText:"Newsletter_checkboxText__Qr671",checkboxLink:"Newsletter_checkboxLink__u3QZc",shine:"Newsletter_shine__HhlMU"}},3228:function(e){e.exports={component:"SpecialOffers_component__5WwdJ",title:"SpecialOffers_title__6cIJb",image:"SpecialOffers_image__5a134",tag:"SpecialOffers_tag__SdK7t",body:"SpecialOffers_body__hzsl9",bodyLink:"SpecialOffers_bodyLink__j7C8W",link:"SpecialOffers_link__saflt",shine:"SpecialOffers_shine__P_I8P"}},6949:function(e){e.exports={section:"styles_section__CzJEw",headingTitle:"styles_headingTitle__FYzrg",heading:"styles_heading__8rPOH",headingText:"styles_headingText__QQ02z",blocks:"styles_blocks__uiZ9q",column:"styles_column__lanuD",shine:"styles_shine__LD1PK"}},3422:function(e){e.exports={container:"styles_container__OESmO",mobile_popup:"styles_mobile_popup__Q63I3",modal_button_wrapper:"styles_modal_button_wrapper__qUqDM",shine:"styles_shine__xbC_K"}},320:function(e){e.exports={review_сard:"styles_review__ard__aMD_W",secondary:"styles_secondary__3f3sU",card_in_modal:"styles_card_in_modal__8gAIc",card_head_in_popup:"styles_card_head_in_popup___YdDR",card_body:"styles_card_body__CbY4Z",card_body_with_padding:"styles_card_body_with_padding__ZIf7n",card_body_in_popup:"styles_card_body_in_popup__zpQin",info_item:"styles_info_item__3DFQJ",info_item_title:"styles_info_item_title___aHgB",title:"styles_title__SorkQ",info_item_text:"styles_info_item_text__b9uqq",shortened_text:"styles_shortened_text___sdev",info_date:"styles_info_date__spSMZ",gradient:"styles_gradient__IOGme",button_full_text:"styles_button_full_text__R6O83",showAllStarsCardWrapper:"styles_showAllStarsCardWrapper__vAHwi",shine:"styles_shine__X_y4x"}},9152:function(e){e.exports={avatar:"styles_avatar__MCS6D",card_head:"styles_card_head___KX9C",blue:"styles_blue__5kZ1y",purple:"styles_purple__7xZnd",green:"styles_green__ih0uS",orange:"styles_orange__ewxly",avatar_initial:"styles_avatar_initial__UUw0u",bank_logo:"styles_bank_logo__FTFQT",header_info:"styles_header_info__0AgM_",author_info:"styles_author_info__6xehW",rating:"styles_rating__b5KY9",author_name:"styles_author_name__xE_tU",icon_star:"styles_icon_star__s34_M",star_wrapper:"styles_star_wrapper__fBdZu",inactive_star:"styles_inactive_star__KDKL_",primary:"styles_primary__9cqan",active_star:"styles_active_star__q5ncs",active_star_icon:"styles_active_star_icon__NQ4yz",recommended:"styles_recommended__LDE8e",info_date:"styles_info_date__oR6u3",card_tags:"styles_card_tags___CQJw",tag:"styles_tag__Pu9_5",white:"styles_white__7onAq","gray--400":"styles_gray--400__3R6yQ","gray--500":"styles_gray--500__uC7xq",showAllStarsHeaderWrapper:"styles_showAllStarsHeaderWrapper__rN67K",shine:"styles_shine__nMKBF"}},9963:function(e){e.exports={section:"styles_section__85VKc",title:"styles_title__tSnK0",primary:"styles_primary__rh53s",wrapper:"styles_wrapper__en6lO",subtitle:"styles_subtitle__8aluE",slider_wrapper:"styles_slider_wrapper__0Ma29",slider_list:"styles_slider_list__cDLhQ",control_left:"styles_control_left__7tR4B",control_right:"styles_control_right__TtGK9",hidden:"styles_hidden__vbi2M",control_icon:"styles_control_icon__a_j8U",pagination:"styles_pagination__z5qCC",bullet_active:"styles_bullet_active__7fI1D",button:"styles_button__46kHf",shine:"styles_shine__BGZIA"}}},function(e){e.O(0,[832,249,342,291,488,449,570,137,774,888,179],function(){return e(e.s=8312)}),_N_E=e.O()}]);