"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5902],{53250:function(e,t,s){var a=s(67294),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=a.useState,i=a.useEffect,l=a.useLayoutEffect,c=a.useDebugValue;function o(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!n(e,s)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),a=r({inst:{value:s,getSnapshot:t}}),n=a[0].inst,u=a[1];return l(function(){n.value=s,n.getSnapshot=t,o(n)&&u({inst:n})},[e,s,t]),i(function(){return o(n)&&u({inst:n}),e(function(){o(n)&&u({inst:n})})},[e]),c(s),s};t.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},50139:function(e,t,s){var a=s(67294),n=s(61688),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useSyncExternalStore,l=a.useRef,c=a.useEffect,o=a.useMemo,u=a.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,s,a,n){var d=l(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;var h=i(e,(d=o(function(){function e(e){if(!c){if(c=!0,i=e,e=a(e),void 0!==n&&p.hasValue){var t=p.value;if(n(t,e))return l=t}return l=e}if(t=l,r(i,e))return t;var s=a(e);return void 0!==n&&n(t,s)?t:(i=e,l=s)}var i,l,c=!1,o=void 0===s?null:s;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,s,a,n]))[0],d[1]);return c(function(){p.hasValue=!0,p.value=h},[h]),u(h),h}},61688:function(e,t,s){e.exports=s(53250)},52798:function(e,t,s){e.exports=s(50139)},83343:function(e,t,s){s.d(t,{c:function(){return o}});var a=s(85893),n=s(66535),r=s(86010),i=s(67294);let l=(0,s(84941).g)("expert-quote","sc"),c=Object.freeze({expertQuote:l,wrapper:`${l}__wrapper`,title:`${l}__title`,card:`${l}__card`,content:`${l}__content`,aboutText:`${l}__aboutText`,about:`${l}__about`,img:`${l}__img`,name:`${l}__name`,position:`${l}__position`,text:`${l}__text`}),o=(0,i.memo)(({className:e,quote:t})=>(0,a.jsx)("section",{className:(0,r.Z)(c.wrapper,e),children:(0,a.jsxs)(n.W2,{children:[(0,a.jsx)(n.X6,{as:"h2",type:"display",weight:"bold",className:(0,r.Z)(c.title,"mb-6"),children:"Мнение эксперта"}),(0,a.jsx)("div",{className:c.card,children:(0,a.jsxs)("div",{className:c.content,children:[(0,a.jsxs)("div",{className:c.about,children:[t.expert.photo&&(0,a.jsx)("a",{href:t.expert.url,children:(0,a.jsx)("div",{className:c.img,style:{backgroundImage:`url(${t.expert.photo})`}})}),(0,a.jsxs)("div",{className:c.aboutText,children:[(0,a.jsx)("a",{href:t.expert.url,className:c.name,children:t.expert.name}),(0,a.jsx)("p",{className:c.position,children:t.expert.position})]})]}),(0,a.jsx)("p",{className:c.text,dangerouslySetInnerHTML:{__html:t.content}})]})})]})}));o.displayName="ExpertQuote"},29329:function(e,t,s){s.d(t,{t:function(){return N}});var a=s(85893),n=s(66535),r=s(34588),i=s(86010),l=s(67294),c=s(43803),o=s(81069),u=s(59194),d=s(84941);let p=(0,d.g)("check-all","sc"),h=Object.freeze({wrapper:`${p}__wrapper`,link:`${p}__link`,icon:`${p}__icon`,iconGray:`${p}__icon--gray`}),m=({children:e,className:t,linkClassName:s,iconGrayBackground:n,Link:l,event:c,href:o,dataLayerPush:d})=>{let p=l??r.rU;return(0,a.jsx)("div",{className:(0,i.Z)(h.wrapper,t),onClick:()=>{c&&d(c)},children:(0,a.jsxs)(p,{className:(0,i.Z)(h.link,s),href:o,children:[e,(0,a.jsx)("span",{className:(0,i.Z)(h.icon,{[h.iconGray]:n}),children:(0,a.jsx)(u.IconFdsArrowUpRightSmallO,{size:24})})]})})},v=e=>{if(!e||!/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e))return"";let t=new Date(e.replace(" ","T"));if(isNaN(t.getTime()))return"";let s=t.getDate(),a=t.getMonth();return`${s} ${["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][a]}`},_=e=>!!e&&/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),b=(0,d.g)("subscribe-block","sc"),x=Object.freeze({block:`${b}__block`,title:`${b}__title`,form:`${b}__form`,input:`${b}__input`,button:`${b}__button`,checkbox:`${b}__checkbox`,checkboxLabel:`${b}__checkbox-label`,success:`${b}__success`,error:`${b}__error`}),g=({data:e,eventCategory:t})=>{var s,n,o,u;let[d,p]=(0,l.useState)(!1),[h,m]=(0,l.useState)(!1),[v,b]=(0,l.useState)(""),[g,f]=(0,l.useState)(""),[j,y]=(0,l.useState)(!1),[k,N]=(0,l.useState)(!1),[$,w]=(0,l.useState)(!1),S=(null==e?void 0:e.title)||"Подписка на рассылку",C=(null==(s=null==e?void 0:e.params)?void 0:s.inputPlaceholder)||"Электронная почта",A=!h&&!v;return(0,a.jsxs)("div",{className:(0,i.Z)(x.block),children:[(0,a.jsx)("div",{className:x.title,children:S}),A&&(0,a.jsxs)("div",{className:x.form,children:[(0,a.jsx)(r.MA,{className:x.input,label:C,variant:"secondary",size:"s",value:g,onChange:e=>{j&&y(!(_(e)||!e)),f(e)},onClick:()=>{(0,c.h)({eventCategory:t,eventActionType:c.D.block,eventActionText:C})},state:j?"error":void 0,caption:j?"Неверный e-mail":void 0}),(0,a.jsx)(r.zx,{className:x.button,label:(null==(n=null==e?void 0:e.buttons)?void 0:n.tile)||"Подписаться",style:{background:null==(o=null==e?void 0:e.buttons)?void 0:o.background},size:"xs",onClick:()=>{var s;(0,c.h)({eventCategory:t,eventActionType:c.D.button,eventActionText:(null==(s=null==e?void 0:e.buttons)?void 0:s.tile)||"Подписаться"}),y(!_(g)),w(!k),_(g)&&k&&(p(!0),fetch("https://forms.dashamail.ru/subscribe.php?list_id=56713Embedded",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({merge_:g})}).then(e=>{!e||200===e.status||e.ok?(window.localStorage.setItem("subscribed","1"),m(!0)):b(409===e.status?'Кажется, вы уже подписаны на нашу рассылку. Если письма не приходят, рекомендуем обратиться в поддержу по телефону <span class="nowrap">8\xa0800\xa0505-32-32</span>.':401===e.status?"Неверный формат e-mail адреса":"Возникла ошибка, повторите попытку позднее")}).catch(()=>b("Возникла ошибка, повторите попытку позднее")))},disabled:j,pending:d}),(0,a.jsx)(r.XZ,{className:x.checkbox,checked:k,onChange:e=>{(0,c.d)({eventCategory:t,eventAction:"click_check_box_soglashenie_blok_check_box_soglashenie"}),$&&w(!1),N(e)},state:$?"error":"default",children:(0,a.jsx)("span",{className:x.checkboxLabel,dangerouslySetInnerHTML:{__html:(null==(u=null==e?void 0:e.params)?void 0:u.agreement)||'Я принимаю <a href="https://assets.finuslugi.ru/mp-assets/privacy-policy.pdf">условия политики</a> обработки моих данных и даю <a href="https://assets.finuslugi.ru/mp-assets/privacy-policy.pdf">согласие</a> ПАО Московская биржа на их обработку'},onClick:e=>{let s=e.target;if(!(null!=s&&s.href))return;let a=s.textContent||"";a.includes("условия")&&(a="politiki_obrabotki_personalnyh_dannyh_pao_moskovskaya_birzha"),a.includes("согласие")&&(a="dayu_soglasie_na_obrabotku_pao_moskovskaya_birzha_moih_personalnyh_dannyh"),(0,c.h)({eventCategory:t,eventActionType:c.D.link,eventActionText:a,eventLabel:s.href})}})})]}),h&&(0,a.jsx)("div",{className:x.success,children:"Подтвердите подписку по ссылке, отправленной на указанную электронную почту."}),v&&(0,a.jsx)("div",{className:x.error,dangerouslySetInnerHTML:{__html:v}})]})},f=(0,d.g)("journal","sc"),j=Object.freeze({wrapper:`${f}__wrapper`,title:`${f}__title`,subtitle:`${f}__subtitle`,scrollableWrapper:`${f}__scrollable-wrapper`,chipsWrapper:`${f}__chips-wrapper`,sliderWrapper:`${f}__slider-wrapper`,slider:`${f}__slider`,sliderItem:`${f}__slider-item`,fixed:`${f}__slider-item--fixed`,article:`${f}__article`,imgWrapper:`${f}__img-wrapper`,articleBody:`${f}__article-body`,articleTitle:`${f}__article-title`,articleDate:`${f}__article-date`,checkAllLink:`${f}__check-all-link`}),y="finkit-widgets-sc-journal",k="https://assets.finuslugi.ru/mp-assets/pl-common-blocks-renderer/journal/default_post_image.png",N=({data:e,eventCategory:t=y,className:s})=>{var u;let d=(0,r._m)("xl"),[p,h]=(0,l.useState)(!0),[_,b]=(0,l.useState)(0),x=e.chips||[],f=(null==(u=null==x?void 0:x[Number(_)])?void 0:u.items)||[];if((0,l.useEffect)(()=>{h(!d)},[d]),0===x.length||0===f.length)return null;let N=(e,s)=>()=>{(0,c.h)({eventCategory:t,eventActionType:c.D.block,eventActionText:e||"",eventLabel:s})},$=e=>{e.target.src!==k&&(e.target.src=k)};return(0,a.jsxs)("div",{className:(0,i.Z)(j.wrapper,s),children:[(0,a.jsxs)(n.W2,{children:[(0,a.jsx)("h2",{className:j.title,children:null==e?void 0:e.title}),(0,a.jsx)("div",{className:j.subtitle,children:null==e?void 0:e.description})]}),(0,a.jsx)("div",{className:j.scrollableWrapper,children:(0,a.jsx)(n.W2,{children:(0,a.jsx)("div",{className:j.chipsWrapper,children:x.length>1&&(0,a.jsx)(r.cL,{chips:x,value:_,variant:"secondary",size:p?"m":"l",onChipClick:e=>{var s;let a=(null==(s=x[Number(e)])?void 0:s.label)||"";(0,c.h)({eventCategory:t,eventActionType:c.D.tab,eventActionText:a}),b(e)}})})})}),(0,a.jsxs)(n.W2,{children:[e.subscribeBlock&&(0,a.jsx)("div",{className:j.sliderWrapper,children:(0,a.jsx)(r.wI,{className:(0,i.Z)(j.sliderItem,j.fixed),children:(0,a.jsx)("div",{className:j.article,children:(0,a.jsx)(g,{data:e.subscribeBlock,eventCategory:t})})})}),(0,a.jsxs)(r.iR,{className:j.slider,options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3500,disableOnInteraction:!0},loop:!0},pagination:!0,navigation:!0,navigationVariant:"secondary",navigationSize:"s",children:[f.map(e=>(0,a.jsx)(r.wI,{className:j.sliderItem,children:(0,a.jsxs)("a",{className:j.article,href:e.url,onClick:N(e.title,e.url),children:[(0,a.jsx)("div",{className:j.imgWrapper,children:(0,a.jsx)("img",{src:e.img,alt:`изображение: ${e.title}`,onError:$})}),(0,a.jsxs)("div",{className:j.articleBody,children:[(0,a.jsx)("div",{className:j.articleTitle,children:e.title}),(0,a.jsx)("div",{className:j.articleDate,children:v(e.dt)})]})]})},e.title)),e.subscribeBlock&&p&&(0,a.jsx)(r.wI,{className:j.sliderItem,children:(0,a.jsx)("div",{className:j.article,children:(0,a.jsx)(g,{data:e.subscribeBlock,eventCategory:t})})})]},_),(0,a.jsx)(m,{href:(null==e?void 0:e.url)||"",event:{event:"data-event",eventCategory:t,eventAction:`link_${(0,o.t)((null==e?void 0:e.urlText)||"Показать все статьи")}`,eventLabel:(null==e?void 0:e.url)||""},dataLayerPush:c.d,className:j.checkAllLink,children:(null==e?void 0:e.urlText)||"Показать все статьи"})]})]})}},6024:function(e,t,s){s.d(t,{B:function(){return f}});var a=s(85893),n=s(66535),r=s(86010),i=s(59194),l=s(34588),c=s(43803),o=s(84941),u=s(67294);let d=(0,o.g)("support","sc"),p=Object.freeze({support:d,title:`${d}__title`,cardsContainer:`${d}__cards-container`}),h="cb-support",m=(0,o.g)("support-app-card","sc"),v=Object.freeze({supportAppCard:m,textWrapper:`${m}__text-wrapper`,imageContainer:`${m}__image-container`,title:`${m}__title`,description:`${m}__description`,icon:`${m}__icon`,imageWrapper:`${m}__image-wrapper`,image:`${m}__image`}),_=({title:e,linkUrl:t,s3Assets:s,description:n})=>{let r=(0,l.aF)("s");return(0,a.jsxs)("div",{className:v.supportAppCard,onClick:()=>{r&&((0,c.h)({eventCategory:h,eventActionType:c.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,a.jsx)(i.IconFdsArrowUpRightSmallO,{className:v.icon,size:32}),(0,a.jsxs)("div",{className:v.textWrapper,children:[(0,a.jsx)("div",{className:v.title,children:e}),!!n&&(0,a.jsx)("div",{className:v.description,children:n})]}),(0,a.jsx)("div",{className:v.imageContainer,children:(0,a.jsxs)("picture",{className:v.imageWrapper,children:[(0,a.jsx)("source",{media:"(max-width: 767px)",srcSet:`${s}/mp-assets/widgets/SupportBlock/mobile-app.png 1x, ${s}/mp-assets/widgets/SupportBlock/mobile-app@2x.png 2x`}),(0,a.jsx)("img",{className:v.image,loading:"lazy",src:`${s}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg`,srcSet:`${s}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg 1x, ${s}/mp-assets/widgets/SupportBlock/qr-code-mobile-app@2x.jpg 2x`})]})})]})},b=(0,o.g)("support-phone-card","sc"),x=Object.freeze({supportPhoneCard:b,contacts:`${b}__contacts`,phone:`${b}__phone`,chat:`${b}__chat`,info:`${b}__info`,image:`${b}__image`}),g=({phones:e,description:t,s3Assets:s})=>{let n=(0,u.useCallback)(()=>{var e,t,s;null==(s=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)||s.call(t),(0,c.h)({eventCategory:h,eventActionType:c.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),r=e=>{let t=e.replace(/[\s-]/g,"");(0,c.h)({eventCategory:h,eventActionType:c.D.link,eventActionText:"phone",eventLabel:t})};return(0,a.jsxs)("div",{className:x.supportPhoneCard,children:[(0,a.jsxs)("div",{className:x.contacts,children:[e.map(e=>(0,a.jsx)("a",{className:x.phone,href:e.href,onClick:()=>r(e.label),children:e.label},e.label)),(0,a.jsx)("span",{className:x.chat,onClick:n,children:"Онлайн чат"})]}),(0,a.jsx)("div",{className:x.info,children:t}),(0,a.jsx)("img",{className:x.image,src:`${s}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`})]})},f=({className:e,phoneCard:t,appCard:s,s3Assets:i})=>(0,a.jsx)("section",{className:(0,r.Z)(p.support,e),children:(0,a.jsxs)(n.W2,{children:[(0,a.jsx)(n.X6,{as:"h2",type:"display",weight:"bold",className:(0,r.Z)(p.title,"mb-6"),children:"Поддержка"}),(0,a.jsxs)("div",{className:p.cardsContainer,children:[(0,a.jsx)(g,{s3Assets:i,...t}),(0,a.jsx)(_,{s3Assets:i,...s})]})]})});f.displayName="Support"},73445:function(e,t,s){s.d(t,{oR:function(){return o}});var a=s(67294),n=s(52798);let{useDebugValue:r}=a,{useSyncExternalStoreWithSelector:i}=n,l=!1,c=e=>e;function o(e,t=c,s){s&&!l&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),l=!0);let a=i(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,s);return r(a),a}},43973:function(e,t,s){s.d(t,{M:function(){return n}});let a=e=>{let t;let s=new Set,a=(e,a)=>{let n="function"==typeof e?e(t):e;if(!Object.is(n,t)){let e=t;t=(null!=a?a:"object"!=typeof n||null===n)?n:Object.assign({},t,n),s.forEach(s=>s(t,e))}},n=()=>t,r={setState:a,getState:n,getInitialState:()=>i,subscribe:e=>(s.add(e),()=>s.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),s.clear()}},i=t=e(a,n,r);return r},n=e=>e?a(e):a}}]);