(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[472],{85902:function(e,t,n){Promise.resolve().then(n.bind(n,2197)),Promise.resolve().then(n.bind(n,59006)),Promise.resolve().then(n.bind(n,59994)),Promise.resolve().then(n.bind(n,81873))},8792:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var a=n(25250),i=n.n(a)},81873:function(e,t,n){"use strict";n.r(t),n.d(t,{Offers:function(){return N}});var a=n(57437),i=n(21585),l=n(56423),s=n(33800),r=n(14307),c=n(21741),o=n(20207),d=n(26094),u=n(32833),_=n(61810),p=n(2265),h=n(39455);let f={[o.sM.OneMonth]:"За 1 мес",[o.sM.ThreeMonths]:"За 3 мес",[o.sM.SixMonth]:"За 6 мес",[o.sM.OneYear]:"За 12 мес",[o.sM.ThreeYears]:"За 3 года",[o.sM.FiveYears]:"За 5 лет"};var m=n(8465),v=n(75504),b=n(8792),x=n(70494),g=n.n(x);function k(e){let{offer:t}=e,n=(0,r.J)(),{name:i,collectionId:l,goal:s,securities:d,maxHistoricalProfitabilityData:{profitability:p,period:x}}=t;return(0,a.jsxs)(u.Zb,{dataQa:n({element:o.xJ.Block,name:"offerCard"}),className:g().card,children:[(0,a.jsxs)("div",{className:g().content,children:[(0,a.jsxs)("div",{className:g().info,children:[(0,a.jsx)(u.xv,{dataQa:n({element:o.xJ.Text,name:"title"}),as:"p",className:"mb-1",children:i}),(0,a.jsx)(u.YS,{dataQa:n({element:o.xJ.Caption,name:"subtitle"}),children:s})]}),(0,a.jsxs)("div",{className:g().additionalInfo,children:[(0,a.jsx)(h.i,{securities:d,dataQa:"logos",className:g().logoList}),(0,a.jsxs)("div",{className:g().yield,children:[(0,a.jsx)(u.YS,{dataQa:n({element:o.xJ.Caption,name:"profitablePeriod"}),className:g().period,children:f[x]}),(0,a.jsx)(u.xv,{dataQa:n({element:o.xJ.Text,name:"profit"}),className:(0,v.Z)({[g().green]:p>0,[g().red]:p<0}),as:"p",size:"24",weight:"medium",children:(0,m.NM)(p)})]})]})]}),(0,a.jsx)(_.zx,{dataQa:n({element:o.xJ.Button,name:"goToOffer"}),className:g().button,as:b.default,label:"Подробнее",size:"xs",stretch:!0,onClick:function(){let e=d.map(e=>e.name).join(",");(0,c._)("portfolio_widget_unauth","portfolio_card_click",{eventLabel:"".concat(i,"_(").concat(e,")")})},href:"/offers/".concat(l)})]})}var j=n(29755),y=n.n(j);function N(e){let{offersData:t,children:n}=e,h=(0,r.J)();if((0,p.useEffect)(()=>{(0,c._)("portfolio_widget_unauth","widget_view")},[]),!t)return(0,a.jsx)("div",{className:"mt-8 mt-l-4",children:(0,a.jsx)(l.C,{state:s.P.Error})});let{collections:f,infoButton:m}=t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.W2,{"data-qa":h({element:o.xJ.Block,name:"offers"}),children:[(0,a.jsx)(i.T,{className:y().offers,dataQa:{element:o.xJ.List,name:"offers"},children:f.map(e=>(0,a.jsx)(k,{offer:e},e.collectionId))}),(0,a.jsxs)(i.T,{dataQa:{element:o.xJ.Block,name:"disclaimer"},className:y().info,children:[(0,a.jsx)(u.YS,{dataQa:h({element:o.xJ.Caption,name:"info"}),className:y().description,children:m.text}),(0,a.jsxs)(_.rU,{dataQa:h({element:o.xJ.Link,name:"download"}),href:m.linkUrl,onClick:()=>(0,c._)("portfolio_widget_unauth","methodology_link_click"),children:[(0,a.jsx)(d.IconFdsDownloadO,{size:20,className:"mr-3"}),(0,a.jsx)(u.xv,{size:"14",children:m.linkText})]})]})]}),n]})}},39455:function(e,t,n){"use strict";n.d(t,{i:function(){return u}});var a=n(57437),i=n(21585),l=n(20207),s=n(8465),r=n(34818),c=n(75504),o=n(15987),d=n.n(o);function u(e){let{securities:t,dataQa:n,className:o,resizable:u=!1}=e;return(0,a.jsx)(i.T,{dataQa:{element:l.xJ.Block,name:n},className:o,children:t.map((e,n)=>{let{id:i,logoKey:l,name:o}=e;return(0,a.jsx)("div",{style:{marginLeft:0===n?0:-12,zIndex:t.length-n},className:d().logoWrapper,children:(0,a.jsx)(r.G2,{className:(0,c.Z)(u?d().resizable:d().logo),logoKey:l,alt:"логотип ".concat(o),s3MinioUrl:(0,s.SJ)("NEXT_PUBLIC_S3_ASSETS")})},i)})})}},70494:function(e){e.exports={card:"OfferCard_card__SqvAz",content:"OfferCard_content__qunsR",info:"OfferCard_info__hp3VX",additionalInfo:"OfferCard_additionalInfo__tNTaO",logoList:"OfferCard_logoList__JUU5M",yield:"OfferCard_yield__19w76",green:"OfferCard_green__h9lGb",red:"OfferCard_red__qos7f",button:"OfferCard_button__ypLuh"}},29755:function(e){e.exports={offers:"Offers_offers__hcvzH",description:"Offers_description___WaFZ",linkUrl:"Offers_linkUrl__HQ2t0"}},15987:function(e){e.exports={logoWrapper:"MultiLogo_logoWrapper__8PupY",logo:"MultiLogo_logo__hh0Of",resizable:"MultiLogo_resizable__GPh3q"}},70307:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var a=n(57437),i=n(26094),l=n(61810),s=n(75504);let r=(0,n(63919).g)("check-all","sc"),c=Object.freeze({wrapper:`${r}__wrapper`,link:`${r}__link`,icon:`${r}__icon`,iconGray:`${r}__icon--gray`}),o=({children:e,className:t,linkClassName:n,iconGrayBackground:r,Link:o,event:d,href:u,dataLayerPush:_})=>{let p=o??l.rU;return(0,a.jsx)("div",{className:(0,s.Z)(c.wrapper,t),onClick:()=>{d&&_(d)},children:(0,a.jsxs)(p,{className:(0,s.Z)(c.link,n),href:u,children:[e,(0,a.jsx)("span",{className:(0,s.Z)(c.icon,{[c.iconGray]:r}),children:(0,a.jsx)(i.IconFdsArrowUpRightSmallO,{size:24})})]})})}},63919:function(e,t,n){"use strict";function a(e,t){return`finkit-widgets-${t}-${e}`}n.d(t,{g:function(){return a}})},65745:function(e,t,n){"use strict";n.d(t,{D:function(){return r},d:function(){return s},h:function(){return o}});var a,i=n(77816),l=n(60915);let s=(e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),a=n?JSON.parse(n):[];e.event||(e.event="data-event"),"string"==typeof e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),e.eventLabel||(e.eventLabel="undefined");let i=a.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!i){if(t){let t={...e};t.url=window.location.pathname,a.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(a))}(0,l.AB)(e)}};var r=((a=r||{}).icon="icon",a.chip="chip",a.accordion="accordion",a.button="button",a.checkbox="checkbox",a.radio="radio",a.select="select",a.toggle="toggle",a.tooltip="tooltip",a.link="link",a.banner="banner",a.tag="tag",a.date="date",a.field="field",a.offer="offer",a.tab="tab",a.submitButton="submitButton",a.popup="popup",a.block="block",a);let c={icon:"click_icon_",chip:"click_chip_",accordion:"show_acc_",button:"click_button_",checkbox:"click_check_",radio:"click_radio_",select:"click_sel_",toggle:"click_togg_",tooltip:"click_tip_",link:"click_link_",banner:"click_bnr_",tag:"click_tag_",date:"input_date_",field:"input_field_",offer:"click_offer_",tab:"click_tab_",submitButton:"form_button_",popup:"show_pop_up_",block:"click_block_"},o=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:a})=>{let l={event:"data-event",eventCategory:e,eventAction:c[t]+(0,i.t)(n)};void 0!==a&&(l.eventLabel=(0,i.t)("string"==typeof a?a:a.toString())),s(l)}},77816:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});let a={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},i=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in a?a[t]:e}).replaceAll(/[ \u00A0]/g,"_")},2197:function(e,t,n){"use strict";n.r(t),n.d(t,{Journal:function(){return g}});var a=n(57437),i=n(32833),l=n(61810),s=n(75504),r=n(2265),c=n(65745),o=n(77816),d=n(70307),u=n(63919);let _=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 n=t.getDate(),a=t.getMonth();return"".concat(n," ").concat(["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][a])},p=e=>!!e&&/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),h=(0,u.g)("subscribe-block","sc"),f=Object.freeze({block:"".concat(h,"__block"),title:"".concat(h,"__title"),form:"".concat(h,"__form"),input:"".concat(h,"__input"),button:"".concat(h,"__button"),checkbox:"".concat(h,"__checkbox"),checkboxLabel:"".concat(h,"__checkbox-label"),success:"".concat(h,"__success"),error:"".concat(h,"__error")}),m=e=>{var t,n,i,o;let{data:d,eventCategory:u}=e,[_,h]=(0,r.useState)(!1),[m,v]=(0,r.useState)(!1),[b,x]=(0,r.useState)(""),[g,k]=(0,r.useState)(""),[j,y]=(0,r.useState)(!1),[N,C]=(0,r.useState)(!1),[w,L]=(0,r.useState)(!1),A=(null==d?void 0:d.title)||"Подписка на рассылку",T=(null==(t=null==d?void 0:d.params)?void 0:t.inputPlaceholder)||"Электронная почта",S=!m&&!b;return(0,a.jsxs)("div",{className:(0,s.Z)(f.block),children:[(0,a.jsx)("div",{className:f.title,children:A}),S&&(0,a.jsxs)("div",{className:f.form,children:[(0,a.jsx)(l.MA,{className:f.input,label:T,variant:"secondary",size:"s",value:g,onChange:e=>{j&&y(!(p(e)||!e)),k(e)},onClick:()=>{(0,c.h)({eventCategory:u,eventActionType:c.D.block,eventActionText:T})},state:j?"error":void 0,caption:j?"Неверный e-mail":void 0}),(0,a.jsx)(l.zx,{className:f.button,label:(null==(n=null==d?void 0:d.buttons)?void 0:n.tile)||"Подписаться",style:{background:null==(i=null==d?void 0:d.buttons)?void 0:i.background},size:"xs",onClick:()=>{var e;(0,c.h)({eventCategory:u,eventActionType:c.D.button,eventActionText:(null==(e=null==d?void 0:d.buttons)?void 0:e.tile)||"Подписаться"}),y(!p(g)),L(!N),p(g)&&N&&(h(!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"),v(!0)):x(409===e.status?'Кажется, вы уже подписаны на нашу рассылку. Если письма не приходят, рекомендуем обратиться в поддержу по телефону <span class="nowrap">8\xa0800\xa0505-32-32</span>.':401===e.status?"Неверный формат e-mail адреса":"Возникла ошибка, повторите попытку позднее")}).catch(()=>x("Возникла ошибка, повторите попытку позднее")))},disabled:j,pending:_}),(0,a.jsx)(l.XZ,{className:f.checkbox,checked:N,onChange:e=>{(0,c.d)({eventCategory:u,eventAction:"click_check_box_soglashenie_blok_check_box_soglashenie"}),w&&L(!1),C(e)},state:w?"error":"default",children:(0,a.jsx)("span",{className:f.checkboxLabel,dangerouslySetInnerHTML:{__html:(null==(o=null==d?void 0:d.params)?void 0:o.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 t=e.target;if(!(null!=t&&t.href))return;let n=t.textContent||"";n.includes("условия")&&(n="politiki_obrabotki_personalnyh_dannyh_pao_moskovskaya_birzha"),n.includes("согласие")&&(n="dayu_soglasie_na_obrabotku_pao_moskovskaya_birzha_moih_personalnyh_dannyh"),(0,c.h)({eventCategory:u,eventActionType:c.D.link,eventActionText:n,eventLabel:t.href})}})})]}),m&&(0,a.jsx)("div",{className:f.success,children:"Подтвердите подписку по ссылке, отправленной на указанную электронную почту."}),b&&(0,a.jsx)("div",{className:f.error,dangerouslySetInnerHTML:{__html:b}})]})},v=(0,u.g)("journal","sc"),b=Object.freeze({wrapper:"".concat(v,"__wrapper"),title:"".concat(v,"__title"),subtitle:"".concat(v,"__subtitle"),scrollableWrapper:"".concat(v,"__scrollable-wrapper"),chipsWrapper:"".concat(v,"__chips-wrapper"),sliderWrapper:"".concat(v,"__slider-wrapper"),slider:"".concat(v,"__slider"),sliderItem:"".concat(v,"__slider-item"),fixed:"".concat(v,"__slider-item--fixed"),article:"".concat(v,"__article"),imgWrapper:"".concat(v,"__img-wrapper"),articleBody:"".concat(v,"__article-body"),articleTitle:"".concat(v,"__article-title"),articleDate:"".concat(v,"__article-date"),checkAllLink:"".concat(v,"__check-all-link")}),x="https://assets.finuslugi.ru/mp-assets/pl-common-blocks-renderer/journal/default_post_image.png",g=e=>{var t;let{data:n,eventCategory:u="finkit-widgets-sc-journal",className:p}=e,h=(0,l._m)("xl"),[f,v]=(0,r.useState)(!0),[g,k]=(0,r.useState)(0),j=n.chips||[],y=(null==(t=null==j?void 0:j[Number(g)])?void 0:t.items)||[];if((0,r.useEffect)(()=>{v(!h)},[h]),0===j.length||0===y.length)return null;let N=(e,t)=>()=>{(0,c.h)({eventCategory:u,eventActionType:c.D.block,eventActionText:e||"",eventLabel:t})},C=e=>{e.target.src!==x&&(e.target.src=x)};return(0,a.jsxs)("div",{className:(0,s.Z)(b.wrapper,p),children:[(0,a.jsxs)(i.W2,{children:[(0,a.jsx)("h2",{className:b.title,children:null==n?void 0:n.title}),(0,a.jsx)("div",{className:b.subtitle,children:null==n?void 0:n.description})]}),(0,a.jsx)("div",{className:b.scrollableWrapper,children:(0,a.jsx)(i.W2,{children:(0,a.jsx)("div",{className:b.chipsWrapper,children:j.length>1&&(0,a.jsx)(l.cL,{chips:j,value:g,variant:"secondary",size:f?"m":"l",onChipClick:e=>{var t;let n=(null==(t=j[Number(e)])?void 0:t.label)||"";(0,c.h)({eventCategory:u,eventActionType:c.D.tab,eventActionText:n}),k(e)}})})})}),(0,a.jsxs)(i.W2,{children:[n.subscribeBlock&&(0,a.jsx)("div",{className:b.sliderWrapper,children:(0,a.jsx)(l.wI,{className:(0,s.Z)(b.sliderItem,b.fixed),children:(0,a.jsx)("div",{className:b.article,children:(0,a.jsx)(m,{data:n.subscribeBlock,eventCategory:u})})})}),(0,a.jsxs)(l.iR,{className:b.slider,options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3500,disableOnInteraction:!0},loop:!0},pagination:!0,navigation:!0,navigationVariant:"secondary",navigationSize:"s",children:[y.map(e=>(0,a.jsx)(l.wI,{className:b.sliderItem,children:(0,a.jsxs)("a",{className:b.article,href:e.url,onClick:N(e.title,e.url),children:[(0,a.jsx)("div",{className:b.imgWrapper,children:(0,a.jsx)("img",{src:e.img,alt:"изображение: ".concat(e.title),onError:C})}),(0,a.jsxs)("div",{className:b.articleBody,children:[(0,a.jsx)("div",{className:b.articleTitle,children:e.title}),(0,a.jsx)("div",{className:b.articleDate,children:_(e.dt)})]})]})},e.title)),n.subscribeBlock&&f&&(0,a.jsx)(l.wI,{className:b.sliderItem,children:(0,a.jsx)("div",{className:b.article,children:(0,a.jsx)(m,{data:n.subscribeBlock,eventCategory:u})})})]},g),(0,a.jsx)(d.C,{href:(null==n?void 0:n.url)||"",event:{event:"data-event",eventCategory:u,eventAction:"link_".concat((0,o.t)((null==n?void 0:n.urlText)||"Показать все статьи")),eventLabel:(null==n?void 0:n.url)||""},dataLayerPush:c.d,className:b.checkAllLink,children:(null==n?void 0:n.urlText)||"Показать все статьи"})]})]})}}},function(e){e.O(0,[544,207,591,866,161,749,276,210,172,806,250,396,971,69,744],function(){return e(e.s=85902)}),_N_E=e.O()}]);