(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[137],{617:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var s=n(5893),o=n(6010),i=n(7294),r=n(711),l=n.n(r);let a=()=>(0,s.jsx)("noscript",{dangerouslySetInnerHTML:{__html:"\n      <style>\n        [data-animated-section] > :is(div, section) > :first-child {\n          opacity: 1 !important;\n          transform: translateY(0) !important;\n        }\n      </style>\n    "}}),c=e=>{let{children:t,dataCommonBlock:n,html:r,className:c}=e,[d,m]=(0,i.useState)(!1),_=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=_.current,t=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&m(!0)},{threshold:.2,rootMargin:"0px"});return e&&t.observe(e),()=>{e&&t.unobserve(e)}},[]);let u={ref:_,"data-animated-section":!0,...n&&{"data-next-common-block":n},...r&&{dangerouslySetInnerHTML:{__html:r}}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{}),(0,s.jsx)("div",{className:(0,o.Z)(l().animationSection,d&&l().fadeIn,c),suppressHydrationWarning:!0,...u,children:t})]})}},878:function(e,t,n){"use strict";var s=n(7294);class o extends s.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("Ошибка, обнаруженная в ErrorBoundary:",e,t)}render(){return this.state.hasError?null:this.props.children}constructor(...e){super(...e),this.state={hasError:!1,error:void 0}}}t.Z=o},938:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var s=n(7294);let o={xl:"screen and (max-width: 1440px)",lg:"screen and (max-width: 1200px)",l:"screen and (max-width: 1024px)",md:"screen and (max-width: 900px)",sm:"screen and (max-width: 600px)"},i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lg",t=(0,s.useRef)(null),[n,i]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{var n,s;!t.current&&window&&(t.current=null===(s=window)||void 0===s?void 0:s.matchMedia(o[e]||e));let r=()=>{i(!!t.current&&t.current.matches)};return r(),null===(n=t.current)||void 0===n||n.addEventListener("change",r),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("change",r)}},[e]),n}},8244:function(e,t,n){"use strict";n.d(t,{D:function(){return l},i:function(){return o}});var s,o,i=n(5621),r=n(7771);(s=o||(o={})).link="link",s.button="button",s.popup="popup",s.popdown="popdown",s.filterCatalog="filter_catalog",s.utm="utm",s.banner="banner",s.card="card";let l=e=>{let{eventCategory:t,eventAction:n,eventActionText:s="",eventLabel:o,eventValue:l,url:a}=e,c="boolean"==typeof l?l?"on":"off":l,d="filter_catalog"!==n?/[а-я]/i.test(s.toLowerCase()):"string"!=typeof o||/[а-я]/i.test(o.toLowerCase()),m="filter_catalog"!==n?{event:"data-event",eventCategory:t,eventAction:({link:"click_link",button:"click_button_",popup:"show_pop_up_",popdown:"close_pop_up_",utm:"save_utm",banner:"click_banner",card:"click_card_"})[n]+(0,r.b)(s),eventLabel:o,eventValue:c,url:a}:{event:"data-event",eventAction:t,eventCategory:n,eventLabel:"string"==typeof o?d?o:(0,r.b)(o):o,eventValue:c,url:a};(0,i.l)(m)}},8444:function(e,t,n){"use strict";n.d(t,{G:function(){return i},n:function(){return o}});var s=n(7294);let o="finuslugi-main-page-finproducts-v2",i=e=>{let[t,n]=(0,s.useState)(!e);return(0,s.useEffect)(()=>{if(e)return;n(!e);let t=r(n);return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[e]),t},r=e=>()=>{let t=document.getElementById("cb-header-body"),n=!!(null==t?void 0:t.classList.contains("hidden-header")),s=document.getElementById("mainHomeBanner"),o=window.scrollY||document.documentElement.scrollTop,i=o<((null==s?void 0:s.clientHeight)||0);!i&&n&&e(!1),i&&e(!0)}},5137:function(e,t,n){"use strict";n.d(t,{p:function(){return x}});var s=n(5893),o=n(6535),i=n(4588),r=n(6010),l=n(7294),a=n(2864),c=n(7771),d=n(2729),m=n.n(d);let _=()=>{let e=(0,i.aF)("s"),[t,n]=(0,l.useState)(0),o=()=>{if(window.scrollY>.6*window.innerHeight)return;let e=window.scrollY/window.innerHeight;n(e>.6?.6:e)};return(0,l.useEffect)(()=>{if(e)return document.addEventListener("scroll",o),()=>{document.removeEventListener("scroll",o)}},[e]),(0,s.jsx)("div",{className:m().overlay,style:{background:"rgba(0, 0, 0, ".concat(t,")")}})};var u=n(3129),p=n.n(u);let x=e=>{let{data:t,variant:n}=e,{title:d,subtitle:m,buttonText:u,buttonUrl:x,images:h}=(null==t?void 0:t.value)||{},v=(0,l.useCallback)(()=>{(0,a.I)({eventCategory:"homepage_banners",eventActionType:a.i.button,eventActionText:(0,c.b)(u||"Подробнее"),eventLabel:x})},[u,x]);return(0,s.jsx)("section",{id:"mainHomeBanner",className:(0,r.Z)(p().banner,{[p().secondary]:"secondary"===n}),children:(0,s.jsx)("div",{className:p().wrapper,children:(0,s.jsx)(o.W2,{className:p().container,children:(0,s.jsxs)("div",{className:p().innerWrapper,children:[(0,s.jsxs)("div",{className:p().info,children:[(0,s.jsx)("div",{className:p().title,dangerouslySetInnerHTML:{__html:d||""}}),(0,s.jsx)("div",{className:p().subtitle,dangerouslySetInnerHTML:{__html:m||""}}),x&&(0,s.jsx)(i.zx,{as:"a",label:u||"Подробнее",href:x,variant:"accent",onClick:v,className:p().button})]}),(0,s.jsxs)("div",{className:p().background,children:[h&&(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcSet:null==h?void 0:h.mobile,media:"(max-width: 767.02px)"}),(0,s.jsx)("img",{src:null==h?void 0:h.desktop,alt:"".concat(d," - фон"),loading:"eager"})]}),(0,s.jsx)(_,{})]})]})})})})}},8326:function(e,t,n){"use strict";n.d(t,{G:function(){return b}});var s=n(5893),o=n(9194),i=n(6535),r=n(4588),l=n(6010),a=n(7294),c=n(8244),d=n(7771),m=n(9546),_=n(3375),u=n(5492),p=n(938),x=n(334),h=n.n(x);let v=e=>{let{isOpen:t,onClose:n,data:i}=e,a=(0,p.G)("md"),x=(e,t)=>()=>{(0,c.D)({eventCategory:"homepage_finproducts",eventAction:c.i.link,eventLabel:(0,d.b)(e),url:t})},v=(0,s.jsx)("div",{className:h().body,children:(0,s.jsx)("div",{className:h().list,children:i.map((e,t)=>(0,s.jsxs)("div",{className:h().listItem,children:[(0,s.jsx)("div",{className:h().listItemTitle,children:e.title}),(0,s.jsxs)("div",{className:h().chips,children:[!!e.link&&(0,s.jsxs)("a",{className:h().chip,href:e.link,onClick:x(e.title,e.link),children:[(0,s.jsx)("span",{className:h().chipText,children:e.linkName||"Смотреть все"}),(0,s.jsx)(o.IconFdsArrowUpRightO,{size:16})]}),e.chips.map((e,t)=>(0,s.jsx)("a",{className:(0,l.Z)(h().chip,{[h().new]:!!e.new}),href:e.link,onClick:x(e.title,e.link),children:(0,s.jsx)("span",{className:h().chipText,children:e.title})},t))]})]},t))})}),g=(0,s.jsx)(r.zx,{className:h().button,size:"m",onClick:n,children:"Закрыть"});return(0,s.jsx)(m.h,{children:a?(0,s.jsx)(u.j,{isOpen:t,onClose:n,footer:g,title:"Финпродукты",children:v}):(0,s.jsx)(_.d,{isOpen:t,onClose:n,title:"Финпродукты",contentClassName:h().content,titleAlign:"left",rowTitle:!0,width:"778px",children:v})})};var g=n(4056),k=n.n(g);let b=e=>{let{title:t,subTitle:n,value:m,variant:_}=e,u=(0,r.aF)("m"),[p,x]=(0,a.useState)(!1),[h,g]=(0,a.useState)(5),b=m.textBlocks.slice(0,h),H=m.pinned;(0,a.useLayoutEffect)(()=>{g(u?3:5)},[u]);let f=(e,t)=>()=>{(0,c.D)({eventCategory:"homepage_finproducts",eventAction:c.i.link,eventLabel:(0,d.b)(e),url:t})};return(0,s.jsxs)("section",{className:(0,l.Z)(k().section,{[k().secondary]:"secondary"===_}),children:[(0,s.jsx)(i.W2,{children:(0,s.jsxs)("div",{className:k().content,children:[(0,s.jsx)("h1",{className:k().title,dangerouslySetInnerHTML:{__html:t}}),n&&(0,s.jsx)("div",{className:k().subtitle,dangerouslySetInnerHTML:{__html:n}}),(0,s.jsxs)("div",{className:k().blocksWrapper,children:[H?(0,s.jsxs)("a",{className:k().pinned,style:{background:H.background},href:H.link,onClick:f(H.title,H.link),children:[(0,s.jsxs)("div",{className:k().pinnedContent,children:[(0,s.jsxs)("div",{className:k().pinnedText,children:[(0,s.jsx)("div",{className:k().pinnedTextTitle,dangerouslySetInnerHTML:{__html:H.title}}),(0,s.jsx)("div",{className:k().pinnedTextDescription,dangerouslySetInnerHTML:{__html:H.description}})]}),(0,s.jsx)("img",{className:k().mobileOnly,src:H.image.mobile,srcSet:"".concat(H.image.mobile,", ").concat(H.image.mobile2," 2x"),alt:"img"}),(0,s.jsx)("img",{className:k().desktopOnly,src:H.image.desktop,srcSet:"".concat(H.image.desktop,", ").concat(H.image.desktop2," 2x"),alt:"img"})]}),(0,s.jsx)(r.zx,{size:"s",children:H.buttonText})]}):null,(0,s.jsx)("div",{className:k().imageBlocksWrapper,children:m.imageBlocks.map((e,t)=>(0,s.jsxs)("a",{className:k().imageBlock,href:e.link,onClick:f(e.title,e.link),children:[(0,s.jsx)("div",{className:k().imageBlockTitle,dangerouslySetInnerHTML:{__html:e.title}}),(0,s.jsx)("div",{className:k().imageBlockDescription,dangerouslySetInnerHTML:{__html:e.description}}),(0,s.jsx)("img",{className:k().mobileOnly,src:e.image.mobile,srcSet:"".concat(e.image.mobile,", ").concat(e.image.mobile2," 2x"),alt:"img"}),(0,s.jsx)("img",{className:k().desktopOnly,src:e.image.desktop,srcSet:"".concat(e.image.desktop,", ").concat(e.image.desktop2," 2x"),alt:"img"})]},t))}),(0,s.jsxs)("div",{className:k().textBlocksWrapper,children:[b.map((e,t)=>(0,s.jsxs)("a",{className:k().textBlock,href:e.link,onClick:f(e.title,e.link),children:[(0,s.jsx)("div",{className:k().textBlockTitle,dangerouslySetInnerHTML:{__html:e.title}}),(0,s.jsx)("div",{className:k().textBlockDescription,dangerouslySetInnerHTML:{__html:e.description}})]},t)),(0,s.jsxs)("button",{className:k().allProductsButton,onClick:()=>{(0,c.D)({eventCategory:"homepage_finproducts",eventAction:c.i.link,eventLabel:(0,d.b)("Все продукты")}),x(!0)},children:[(0,s.jsx)("span",{children:"Все продукты"}),(0,s.jsx)(o.IconFdsArrowUpRightSmallO,{size:32,className:k().icon}),(0,s.jsx)(o.IconFdsArrowUpRightSmallO,{size:24,className:k().iconMobile})]})]})]})]})}),(0,s.jsx)(v,{data:m.modal,isOpen:p,onClose:()=>x(!1)})]})}},711:function(e){e.exports={animationSection:"AnimatedSection_animationSection__MchiI",fadeIn:"AnimatedSection_fadeIn__1jnMz",shine:"AnimatedSection_shine__3L9vj"}},2729:function(e){e.exports={overlay:"HomeBannerOverlay_overlay__7CSlk",shine:"HomeBannerOverlay_shine__XG_gc"}},3129:function(e){e.exports={banner:"HomeBannersV2_banner__9_w5T",wrapper:"HomeBannersV2_wrapper__UsrAK",container:"HomeBannersV2_container__b4qQa",innerWrapper:"HomeBannersV2_innerWrapper__cv5Nq",info:"HomeBannersV2_info__yUDAs",title:"HomeBannersV2_title__lrPhx",subtitle:"HomeBannersV2_subtitle___9ZxK",button:"HomeBannersV2_button__LUjuM",background:"HomeBannersV2_background__kwT9m",secondary:"HomeBannersV2_secondary__KAZ7f",shine:"HomeBannersV2_shine__c35Gu"}},4056:function(e){e.exports={title:"HomeProductsV2_title__IiFK4",imageBlockTitle:"HomeProductsV2_imageBlockTitle__P1pXF",textBlockTitle:"HomeProductsV2_textBlockTitle__GoTiI",allProductsButton:"HomeProductsV2_allProductsButton__6Xbq8",section:"HomeProductsV2_section__MR3Bu",secondary:"HomeProductsV2_secondary__Hun1A",pinnedTextTitle:"HomeProductsV2_pinnedTextTitle___8_X6",subtitle:"HomeProductsV2_subtitle__Rk3jh",blocksWrapper:"HomeProductsV2_blocksWrapper__C6D2U",pinned:"HomeProductsV2_pinned__HJd03",pinnedContent:"HomeProductsV2_pinnedContent__RLKHq",pinnedText:"HomeProductsV2_pinnedText__IF_33",pinnedTextDescription:"HomeProductsV2_pinnedTextDescription__INY5G",imageBlocksWrapper:"HomeProductsV2_imageBlocksWrapper__onHCB",imageBlock:"HomeProductsV2_imageBlock__pi0wW",imageBlockDescription:"HomeProductsV2_imageBlockDescription__YtPe3",textBlocksWrapper:"HomeProductsV2_textBlocksWrapper__qh7Q_",textBlock:"HomeProductsV2_textBlock__eVqXJ",textBlockDescription:"HomeProductsV2_textBlockDescription__I56Pj",icon:"HomeProductsV2_icon__NtRE0",iconMobile:"HomeProductsV2_iconMobile__UCcZA",desktopOnly:"HomeProductsV2_desktopOnly__41raD",mobileOnly:"HomeProductsV2_mobileOnly__EcbC_",shine:"HomeProductsV2_shine__D3gY9"}},334:function(e){e.exports={content:"HomeProductsV2Modal_content__nsqDv",body:"HomeProductsV2Modal_body__onxpk",button:"HomeProductsV2Modal_button__v81gR",list:"HomeProductsV2Modal_list__NkTXs",listItem:"HomeProductsV2Modal_listItem__uSxF1",listItemTitle:"HomeProductsV2Modal_listItemTitle__sQxoH",chip:"HomeProductsV2Modal_chip__jZbDD",chipText:"HomeProductsV2Modal_chipText__d6olE",chips:"HomeProductsV2Modal_chips__XV88Z",new:"HomeProductsV2Modal_new__bdVTD",shine:"HomeProductsV2Modal_shine__50mxb"}}}]);