(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[346],{15346:function(e,t,a){Promise.resolve().then(a.bind(a,59006)),Promise.resolve().then(a.bind(a,59994)),Promise.resolve().then(a.t.bind(a,85935,23)),Promise.resolve().then(a.bind(a,1474))},1474:function(e,t,a){"use strict";a.r(t),a.d(t,{PlatformFundDetailClientPage:function(){return eM}});var n=a(57437),i=a(1789),l=a(2265),s=a(21741),r=a(38294),c=a(54189),o=a(34818),d=a(32833),u=a(61810),m=a(30982),_=a(49623),h=a(36148),p=a(21585),x=a(81699),f=a(28980),v=a(20703),b=a(82384),j=a.n(b),g=a(28443),T=a(39018),N=a.n(T),y=a(5242),F=a.n(y);let k={1:["отрасль","отрасли","отраслей"],2:["эмитент","эмитента","эмитентов"],3:["актив","актива","активов"]};function A(e){var t;let{fundPrice:a,selectedStructure:i,tabId:l}=e,{dealNetAssetValue:s}=null!==(t=null==a?void 0:a[a.length-1])&&void 0!==t?t:{},r=N()(s)?(0,g.lb)(s,{decimalIsWithoutZeros:!0}):"—",c=(0,g._6)(i.length,k[l]);return(0,n.jsxs)("div",{"data-qa":"fund-detail-structure-block-price-tile",className:F().innerContent,children:[(0,n.jsx)("div",{"data-qa":"fund-detail-structure-text-price",className:F().price,children:r}),(0,n.jsx)("div",{"data-qa":"fund-detail-structure-text-caption",className:F().caption,children:c})]})}var S=a(793),I=a.n(S);function C(e){let{selectedStructure:t}=e;return(0,n.jsx)("div",{className:I().listWrapper,children:(0,n.jsx)("ul",{className:I().list,children:t.map((e,t)=>(0,n.jsxs)("li",{className:I().row,children:[(0,n.jsxs)("span",{className:I().nameWrapper,children:[(0,n.jsx)("span",{style:{background:e.color},className:I().color}),(0,n.jsx)("span",{className:I().name,children:e.name})]}),(0,n.jsx)("span",{className:I().percent,children:e.hasValue?(0,g.og)((0,_.lt)(e.percent)):"—"})]},t))})})}let P=[{id:"1",label:"Отрасли"},{id:"2",label:"Эмитенты"},{id:"3",label:"Активы"}];function L(e){var t,a,s;let{fundStructure:r,fundPrice:c,status:o}=e,b=(0,m.useTranslations)(),g=(null==c?void 0:c.length)?c[c.length-1]:null,T=!!r&&g,{structureDate:N,sectors:y,issuers:F,types:k}=null!=r?r:{},S=null!==(t=null==y?void 0:y.map((e,t)=>(0,h.q)(e,t)).filter(e=>{let{hasValue:t}=e;return t}))&&void 0!==t?t:[],I=null!==(a=null==F?void 0:F.map((e,t)=>(0,h.q)(e,t)).filter(e=>{let{hasValue:t}=e;return t}))&&void 0!==a?a:[],[L,J]=(0,l.useState)(S),B=null!==(s=null==k?void 0:k.map((e,t)=>(0,h.q)(e,t)).filter(e=>{let{hasValue:t}=e;return t}))&&void 0!==s?s:[],[Q,w]=(0,l.useState)(P[0].id),D={1:S,2:I,3:B},E=N?"На ".concat((0,_.p6)(N,{format:"dd.MM.yyyy"})):null;return(0,l.useEffect)(()=>{J(D[Q])},[Q]),(0,n.jsxs)(p.T,{tag:d.Zb,dataQa:{element:i.xJ.Block,name:"structure"},className:j().structure,children:[(0,n.jsxs)(p.T,{dataQa:{element:i.xJ.Header,name:"structureTitle"},className:j().header,children:[(0,n.jsx)(d.X6,{type:"h2",children:b("sc-fund.piechart-structure.title")}),T&&(0,n.jsx)(d.YS,{children:E})]}),T?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.sY,{activeTabId:Q,tabs:P,stretch:!0,rounded:!0,size:"s",onTabChange:e=>{w(String(e))}}),(0,n.jsxs)("div",{className:j().chartWithListWrapper,children:[(0,n.jsxs)("div",{className:j().chartWrapper,children:[(0,n.jsx)(x.e,{className:j().chart,stroke:"#fff",strokeWidth:0,items:L,innerRadius:160}),(0,n.jsx)(A,{tabId:Q,fundPrice:c,selectedStructure:L})]}),(0,n.jsx)(C,{selectedStructure:L})]})]}):(0,n.jsxs)("div",{className:j().noStructure,children:[(0,n.jsx)(v.default,{src:f.Z,alt:"",width:220,height:120}),(0,n.jsx)(d.xv,{size:"20",fontFamily:"primary",weight:"medium",children:b("sc-fund.piechart-no-structure.".concat(o.toLowerCase(),".title"))}),(0,n.jsx)(d.xv,{size:"14",className:j().noStructureText,children:b("sc-fund.piechart-no-structure.".concat(o.toLowerCase(),".text"))})]})]})}var J=a(75504),B=a(50571),Q=a(54134),w=a.n(Q),D=a(26094),E=a(3714);function Y(e,t,a,i){let l=a&&t.historicalYield[E.ew[a.id]],s=(null==i?void 0:i.priceDate)&&"на ".concat((0,_.p6)(i.priceDate,{format:"dd.MM.yyyy"})),r=[];if(l){let e=N()(l)&&l>0;r.push({caption:"Доходность",label:(0,n.jsxs)("span",{className:(0,J.Z)(e?w().yieldPositive:w().yieldNegative),children:[e&&"+",(0,g.og)(l.toFixed(2))]}),hint:"sc-funds.detail.charts.deltaPay.hint"})}switch(e){case 1:(null==i?void 0:i.dealPrice)&&r.unshift({caption:"Стоимость пая",label:(0,g.lb)(i.dealPrice,{decimalIsWithoutZeros:!0}),additionalText:s,hint:"sc-funds.detail.charts.pay.hint"});break;case 2:(null==i?void 0:i.dealNetAssetValue)&&r.unshift({caption:"Стоимость чистых активов",label:(0,g.lb)(i.dealNetAssetValue,{decimalIsWithoutZeros:!0}),additionalText:s,hint:"sc-funds.detail.charts.sca.hint"})}return r}var W=a(69322),U=a.n(W);let Z=e=>{let{label:t,caption:a,hint:i,additionalText:l}=e,s=(0,m.useTranslations)();return(0,n.jsxs)("div",{className:U().block,"data-qa":"info-block-wrapper",children:[(0,n.jsxs)("div",{className:U().caption,"data-qa":"info-block-caption",children:[(0,n.jsx)("div",{className:U().captionText,children:a}),i&&(0,n.jsx)(u.kW,{text:s(i),position:"bottom",inverted:!0,children:(0,n.jsx)(D.IconFdsQuestionCircleO,{className:U().captionIcon})})]}),(0,n.jsx)("div",{className:U().label,"data-qa":"info-block-label",children:t}),l&&(0,n.jsx)("div",{className:U().additionalText,"data-qa":"info-block-additional-text",children:l})]})};var R=a(79681),H=a(15176),z=a(54525),q=a.n(z),X=a(72637),M=a.n(X);let V=e=>{let{selectedRange:t=60,prices:a=[],selectedTab:i,lastPrice:s}=e,r=(0,l.useRef)(null),c=q()(function(){d(),(o=(0,R.C2)(r.current,H.c0)).addLineSeries(H._5).setData((0,h.W$)(a,i)),o.priceScale().applyOptions(H.WY),o.timeScale().applyOptions(H.Z2),o.timeScale().fitContent(),o.timeScale().setVisibleRange((0,h.Uf)(t,s))},100),o=null;function d(){o&&(o.remove(),o=null)}return(0,l.useEffect)(()=>(c(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c),d()}),[t,i]),(0,n.jsx)("div",{ref:r,className:M().chart,"data-qa":"line-chart"})};function G(e){let{prices:t,lastPrice:a,tiles:l,chipsList:s,selectedChips:r,selectedTab:c,className:o,handleTabChange:m,handleChipsChange:_}=e;return(0,n.jsxs)(p.T,{tag:d.Zb,className:(0,J.Z)(w().card,o),dataQa:{element:i.xJ.Tabs,name:"chart"},children:[(0,n.jsx)(u.sY,{activeTabId:c,onTabChange:m,className:w().tabs,rounded:!0,size:"m",tabs:H.Ht,stretch:!0,weightVariant:"regular"}),(0,n.jsx)("div",{className:w().tiles,children:l.map(e=>(0,n.jsx)(Z,{...e},e.caption))}),(0,n.jsxs)("div",{className:w().charts,children:[(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Block,name:"chartChips"},children:(0,n.jsx)(u.cL,{size:"m",chips:s,value:null==r?void 0:r.id,activeVariant:"secondary",onChipClick:e=>_(Number(e)),className:w().chips})}),(0,n.jsx)(V,{selectedRange:null==r?void 0:r.id,selectedTab:c,prices:t,lastPrice:a})]})]})}function K(e){var t;let{fund:a,lastPrice:i,className:r}=e,{fundPrice:c}=a,o=E.ju.filter(e=>{var t;let n=E.ew[e.id];return N()(null===(t=a.historicalYield)||void 0===t?void 0:t[n])}),[d,u]=(0,l.useState)(1),[m,_]=(0,l.useState)(function(e){let t=e.filter(e=>{let{id:t}=e;return 12>=+t});return t[t.length-1]||e[e.length-1]}(o)),[h,p]=(0,l.useState)(Y(d,a,m,i)),x=null!==(t=null==c?void 0:c.map(e=>({date:e.priceDate,pay:e.dealPrice,sca:e.dealNetAssetValue})))&&void 0!==t?t:[];return(0,n.jsx)(G,{tiles:h,lastPrice:{date:i.priceDate,pay:i.dealPrice,sca:i.dealNetAssetValue},prices:x,selectedTab:d,selectedChips:m,chipsList:o,className:r,handleTabChange:function(e){u(e),p(Y(e,a,m,i))},handleChipsChange:function(e){let t=o.find(t=>t.id===e);t&&(_(t),p(Y(d,a,t,i)),(0,s._)("platform_funds_detailed_page","click_to_delta_date",{eventLabel:a.id,eventValue:t.label}))}})}var O=a(4108),$=a.n(O);function ee(e){let{formingAmount:t,formingAmountLimit:a}=e,l=function(e,t){let a=100*e/t;return{amount:(0,g.lb)(e,{decimalIsWithoutZeros:!0}),min:(0,g.lb)(0),max:(0,g.lb)(t,{decimalIsWithoutZeros:!0}),percentFormatted:(0,g.og)((0,_.lt)(a)),percent:a,theme:a<=25?"default":a<=50?"error":a<=75?"warning":"success"}}(null!=t?t:0,null!=a?a:0),s=(0,u._m)("m");return(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Block,name:"fundDetailForming"},children:(0,n.jsxs)(d.Zb,{className:$().container,children:[(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Header,name:"fundDetailForming"},className:"mb-1",children:(0,n.jsx)(d.xv,{size:s?"18":"16",children:"Формирование фонда"})}),(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Text,name:"fundDetailFormingAmount"},className:"mb-3",children:(0,n.jsx)(d.xv,{size:s?"28":"24",weight:"medium",children:l.amount})}),(0,n.jsx)(p.T,{dataQa:{element:i.xJ.ProgressBar,name:"fundDetailForming"},className:"mb-3",children:(0,n.jsx)(d.ko,{value:l.percent,variant:l.theme})}),(0,n.jsxs)("div",{className:$().progressBarFooter,children:[(0,n.jsx)(p.T,{tag:"span",dataQa:{element:i.xJ.Text,name:"fundDetailFormingMin"},className:$().text,children:l.min}),(0,n.jsx)(p.T,{tag:"span",dataQa:{element:i.xJ.Text,name:"fundDetailFormingMax"},className:$().text,children:l.max})]})]})})}var et=a(80504),ea=a.n(et);function en(e){let{authors:t,className:a,onButtonClick:l}=e;return(0,n.jsx)("div",{children:null==t?void 0:t.map((e,t)=>(0,n.jsxs)(d.Zb,{className:(0,J.Z)(ea().card,a),children:[(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Icon,name:"author"},children:(0,n.jsx)(o.oc,{fullUrl:"".concat((0,_.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/authors/").concat(e.avatarKey,".png"),alt:"Данные автора",label:e.name,caption:e.subname,size:40,className:ea().avatar})}),(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Button,name:"author"},children:(0,n.jsx)(u.zx,{shape:"circle-icon",size:"xs",iconRight:(0,n.jsx)(D.IconFdsArrowUpRightO,{}),onClick:()=>l&&l(e)})})]},t))})}var ei=a(8792),el=a(4e3),es=a.n(el);let er=e=>{let{rulesLink:t}=e;return(0,n.jsxs)("div",{className:es().cardTitleWrapper,children:[(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Header,name:"aboutTitle"},children:(0,n.jsx)(d.X6,{type:"h2",children:"О фонде"})}),!!t&&(0,n.jsx)(u.rU,{as:ei.default,href:t,target:"_blank","data-qa":"fund-detail-about-link",children:"Правила фонда"})]})};var ec=a(47907),eo=a(24866);function ed(e){let{id:t,className:a}=e,i=(0,ec.useRouter)(),l=(0,_.SJ)("NEXT_PUBLIC_MARKETPLACE_LK_BASE_URL"),r="true"===(0,_.SJ)("NEXT_PUBLIC_FAKE_ESIA_ENABLED");return(0,n.jsx)("div",{className:(0,J.Z)(a),"data-qa":"buy-button-wrapper",children:(0,n.jsx)(u.zx,{label:"Купить онлайн",stretch:!0,onClick:function(){(0,s._)("platform_funds_detailed_page","click_to_buy_online",{eventLabel:t});let e=(0,g.If)().enableSkipLoginScreen().encode(),a=(0,eo.jb)("".concat(l,"/investment/funds/").concat(t,"/purchase"),{context:e,...r&&{uat:!0}});i.replace(a)}})})}var eu=a(72736),em=a.n(eu);function e_(e){let{label:t,caption:a,Icon:l,hint:s}=e,r=(0,m.useTranslations)();return(0,n.jsxs)(p.T,{dataQa:{element:i.xJ.Block,name:"aboutFund"},className:em().block,children:[(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Icon,name:"aboutFund"},className:em().iconWrapper,children:(0,n.jsx)(l,{})}),(0,n.jsxs)(p.T,{dataQa:{element:i.xJ.Tile,name:"aboutFund"},className:em().tile,children:[(0,n.jsxs)("div",{className:em().caption,children:[(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Caption,name:"aboutFund"},className:em().captionText,children:a}),s&&(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Hint,name:"aboutFund"},children:s&&(0,n.jsx)(u.kW,{text:r(s),position:"bottom",inverted:!0,children:(0,n.jsx)(D.IconFdsQuestionCircleO,{className:em().captionIcon})})})]}),(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Label,name:"aboutFund"},className:em().label,children:t})]})]})}var eh=a(60579),ep=a.n(eh);function ex(e){let{description:t,items:a,className:l}=e;return(0,n.jsxs)("div",{className:(0,J.Z)(l),children:[t&&(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Block,name:"aboutDescription"},className:ep().description,dangerouslySetInnerHTML:{__html:t}}),(0,n.jsx)("div",{className:ep().infoBlocksList,children:a.map(e=>(0,n.jsx)(e_,{...e},e.caption))})]})}var ef=a(19688),ev=a.n(ef);function eb(e){var t;let{fund:a,cmsData:l,className:s,onAuthorButtonClick:r,withButton:c=!0}=e,{description:o}=a,u=(0,_.ld)(null!=o?o:""),m=function(e){let{minInvest:t,fundsObjectNameRus:a,risk:n,fundCompNameRus:i,payoutFrequency:l}=e,s="true"===(0,_.SJ)("NEXT_PUBLIC_FEATURE_TOGGLE_TAGS_AND_BADGES");return[{caption:"Состав фонда",label:a,Icon:D.IconFdsChartCircle},{caption:"Покупка",label:"От ".concat((0,g.lb)(t,{decimalIsWithoutZeros:!0})),Icon:D.IconFdsRubleCircleO},{caption:"Уровень риска",label:E.pY[n],Icon:D.IconFdsFlashCircleO},{caption:"Управляющая компания",label:i,Icon:D.IconFdsChartGrowthSquareO},...s?[{caption:"Выплата дохода",label:E.HA[l],Icon:D.IconFdsCalendarClockO}]:[]].filter(e=>!!e.label)}(a),h=null==l?void 0:null===(t=l.fundDetailedPage)||void 0===t?void 0:t[a.id];return(0,n.jsxs)(p.T,{tag:d.Zb,className:(0,J.Z)(ev().card,s),dataQa:{element:i.xJ.Block,name:"aboutCard"},children:[(0,n.jsx)(er,{rulesLink:h}),(0,n.jsx)(ex,{className:"mt-6 mt-l-7",description:u,items:m}),(0,n.jsx)(en,{authors:a.authors,className:"mt-8",onButtonClick:r}),c&&(0,n.jsx)(ed,{id:a.id,className:ev().buyButton})]})}var ej=a(3338),eg=a.n(ej);function eT(e){let{author:t}=e,a=(0,m.useTranslations)();return(0,n.jsxs)("div",{children:[(0,n.jsxs)(p.T,{dataQa:{element:i.xJ.Block,name:"authorContent"},className:eg().authorContent,children:[(0,n.jsx)(o.G2,{fullUrl:"".concat((0,_.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/authors/").concat(null==t?void 0:t.avatarKey,".png"),size:124,alt:"Данные автора",className:eg().avatar}),(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Header,name:"authorContent"},children:(0,n.jsx)(d.X6,{type:"h4",className:"mt-2 mb-2",children:null==t?void 0:t.name})}),(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Block,name:"authorSubname"},className:"mb-4",children:(0,n.jsx)(d.xv,{children:null==t?void 0:t.subname})}),(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Block,name:"socialNetworks"},className:eg().socialNetworks,children:null==t?void 0:t.socialMedias.filter(e=>{var t;return(null===(t=e.url)||void 0===t?void 0:t.length)>0}).map(e=>(0,n.jsxs)("div",{className:eg().item,onClick:()=>{window.open(e.url,"_blank")},children:[(0,n.jsx)("div",{className:eg().socialNetworkLogo,children:(0,n.jsx)(v.default,{src:"".concat((0,_.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/social-media/").concat(e.iconKey,".svg"),alt:e.name,unoptimized:!0,width:20,height:14})}),(0,n.jsx)("span",{children:e.name})]},e.name))})]}),(0,n.jsxs)(p.T,{dataQa:{element:i.xJ.Block,name:"modalBio"},className:"mt-5 mt-l-6",children:[(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Header,name:"modalBio"},className:"mt-2 mb-2",children:(0,n.jsx)(d.X6,{type:"h2",children:a("platform-fund.detail.overview.author.modal.bio.header")})}),(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Text,name:"modalBio"},children:(0,n.jsx)(d.xv,{size:"16",children:null==t?void 0:t.bio})})]})]})}var eN=a(47404),ey=a.n(eN);let eF=e=>{let{caption:t,yieldRate:a}=e,i=N()(a),l=i&&a>0,s=i?(0,g.og)(null==a?void 0:a.toFixed(2)):"—";return(0,n.jsxs)("div",{className:ey().tile,"data-qa":"yield-tile",children:[(0,n.jsx)("div",{className:ey().caption,"data-qa":"yield-tile-caption",children:t}),(0,n.jsx)("div",{className:(0,J.Z)(ey().label,i&&l&&ey().positive,i&&!l&&ey().negative),"data-qa":"yield-tile-label",children:l?"+".concat(s):s})]})};var ek=a(7837),eA=a.n(ek);function eS(e){let{date:t,tiles:a}=e,l=(0,m.useTranslations)();return(0,n.jsxs)(p.T,{tag:d.Zb,className:eA().card,dataQa:{element:i.xJ.Block,name:"historicalYield"},children:[(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Header,name:"historicalYieldTitle"},children:(0,n.jsx)(d.X6,{type:"h2",className:eA().title,children:"Историческая доходность"})}),t&&(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Caption,name:"historicalYield"},className:eA().caption,children:l("historical-yield.caption",{date:t})}),(0,n.jsx)("div",{className:eA().tiles,children:a.filter(e=>{let{yieldRate:t}=e;return!!t}).map(e=>{let{caption:t,yieldRate:a}=e;return(0,n.jsx)(eF,{caption:t,yieldRate:a},t)})})]})}function eI(e){let{lastPrice:t,historicalYield:a}=e,i=(null==t?void 0:t.priceDate)&&(0,_.p6)(t.priceDate,{format:"dd.MM.yyyy"}),l=function(e){let{historicalYieldFiveYear:t,historicalYieldHalfYear:a,historicalYieldMonth:n,historicalYieldQuarter:i,historicalYieldThreeYear:l,historicalYieldYear:s}=e;return[{yieldRate:n,caption:"1 мес"},{yieldRate:i,caption:"3 мес"},{yieldRate:a,caption:"6 мес"},{yieldRate:s,caption:"1 год"},{yieldRate:l,caption:"3 года"},{yieldRate:t,caption:"5 лет"}]}(a);return(0,n.jsx)(eS,{date:i,tiles:l})}var eC=a(14307),eP=a(97771),eL=a.n(eP);function eJ(e){let{advantages:t}=e,a=(0,m.useTranslations)(),l=!t||0===t.length,s=(0,eC.J)();return!l&&(0,n.jsxs)(p.T,{tag:d.Zb,dataQa:{element:i.xJ.Block,name:"advantages"},children:[(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Header,name:"advantages"},children:(0,n.jsx)(d.X6,{type:"h2",children:a("platform-fund.detail.advantages.header")})}),(0,n.jsx)(p.T,{tag:"ul",dataQa:{element:i.xJ.List,name:"advantages"},className:eL().advantages,children:null==t?void 0:t.map((e,t)=>(0,n.jsxs)("li",{className:eL().advantage,children:[(0,n.jsx)(p.T,{tag:"span",dataQa:{element:i.xJ.Icon,name:"advantages"},className:eL().icon,children:(0,n.jsx)(o.G2,{fullUrl:"".concat((0,_.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/advantages/").concat(e.webImageKey,".png"),size:60,alt:""})}),(0,n.jsxs)("div",{children:[(0,n.jsx)(d.X6,{className:eL().title,dataQa:s({element:i.xJ.Header,name:"advantage"}),type:"h4",children:e.title}),(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Text,name:"description"},tag:"span",className:eL().text,dangerouslySetInnerHTML:{__html:e.description}})]})]},t))})]})}var eB=a(86169),eQ=a.n(eB);function ew(e){let{text:t,avatarKey:a,label:l}=e;return(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Block,name:"authorQuote"},className:eQ().container,children:(0,n.jsxs)("blockquote",{children:[(0,n.jsx)(o.oc,{fullUrl:"".concat((0,_.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/authors/").concat(a,".png"),alt:"Данные автора",label:l,size:40,className:eQ().avatar}),(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Text,name:"authorQuote"},tag:"p",className:"mt-4",children:t})]})})}var eD=a(79938),eE=a.n(eD);function eY(e){var t;let{strategy:a,authors:l}=e,s=(0,m.useTranslations)(),[r]=null!=l?l:[];return!(!a||!(null==a?void 0:a.description)&&(null==a?void 0:null===(t=a.keyIdeas)||void 0===t?void 0:t.length)===0)&&(0,n.jsxs)(p.T,{tag:d.Zb,dataQa:{element:i.xJ.Block,name:"strategy"},children:[(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Header,name:"strategy"},children:(0,n.jsx)(d.X6,{type:"h2",children:s("platform-fund.detail.strategy.header")})}),(null==a?void 0:a.description)&&r&&(0,n.jsx)(ew,{text:null==a?void 0:a.description,avatarKey:r.avatarKey,label:r.name}),(null==a?void 0:a.keyIdeas)&&a.keyIdeas.length>0&&(0,n.jsxs)(p.T,{dataQa:{element:i.xJ.Block,name:"keyIdeas"},children:[(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Header,name:"keyIdeas"},className:"mb-4 mb-l-6 mt-6 mt-l-8",children:(0,n.jsx)(d.X6,{type:"h3",children:s("platform-fund.detail.strategy.key-ideas.header")})}),(0,n.jsx)("ul",{className:eE().keyIdeas,children:null==a?void 0:a.keyIdeas.map((e,t)=>(0,n.jsxs)(p.T,{dataQa:{element:i.xJ.Block,name:"keyIdea"},tag:"li",className:eE().idea,children:[(0,n.jsx)(p.T,{tag:"span",dataQa:{element:i.xJ.Icon,name:"keyIdea"},className:eE().step,children:t+1}),(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Text,name:"keyIdeaDescription"},children:(0,n.jsx)(d.xv,{size:"16",children:e.description})})]},t))})]})]})}var eW=a(70250),eU=a.n(eW);function eZ(e){let{list:t}=e;return(0,n.jsx)("div",{children:t.map(e=>{let{label:t,caption:a}=e;return(0,n.jsxs)("div",{"data-qa":"detail-list-item",className:eU().row,children:[(0,n.jsx)("div",{className:eU().label,"data-qa":"detail-list-item-label",children:t}),(0,n.jsx)("div",{className:eU().caption,"data-qa":"detail-list-item-caption",children:a})]},t)})})}var eR=a(62969),eH=a.n(eR);function ez(e){let{fund:t,lastPrice:a}=e,l=(null==a?void 0:a.priceDate)?(0,_.p6)(null==a?void 0:a.priceDate,{format:"dd.MM.yyyy"}):null,s=function(e){let{isin:t,fundCompNameRus:a,registrationNumber:n}=e;return[{label:"Управляющая компания",caption:a},{label:"Номер регистрации",caption:n},{label:"ISIN",caption:t}].filter(e=>{let{caption:t}=e;return!!t})}(t);return(0,n.jsxs)(p.T,{tag:d.Zb,className:eH().card,dataQa:{element:i.xJ.Block,name:"generaIInfo"},children:[(0,n.jsx)("div",{"data-qa":"fund-detail-details-title",children:(0,n.jsx)(d.X6,{type:"h3",className:eH().title,children:"Общая информация"})}),(0,n.jsx)(eZ,{list:s}),a&&(0,n.jsxs)("div",{className:eH().infoCaption,children:["Информация о фонде актуальна на ",l]})]})}var eq=a(2082),eX=a.n(eq);function eM(e){var t,a;let{fund:_,cmsData:h,cmsDataCommissions:x,aggregatorIds:f,promotions:v,mode:b}=e;(0,r.Z)(f,_.id);let[j,g]=(0,l.useState)(!1),[T,N]=(0,l.useState)(),y=_.commissions?(0,o.F8)(_.commissions):null==x?void 0:null===(t=x[_.id])||void 0===t?void 0:t.commissions,F=(0,m.useTranslations)(),k="AT_FORMING"===_.status,A=(null===(a=_.fundPrice)||void 0===a?void 0:a.length)?_.fundPrice[_.fundPrice.length-1]:null,S=function(e){let{historicalYieldMonth:t,historicalYieldQuarter:a,historicalYieldHalfYear:n,historicalYieldYear:i,historicalYieldThreeYear:l,historicalYieldFiveYear:s}=e;return[t,a,n,i,l,s].filter(e=>!!e).length>0}(_.historicalYield),I=(0,l.useMemo)(()=>(0,c.z6)({promotions:v,type:"SITE_DETAIL",id:_.id}),[v]);return(0,l.useEffect)(()=>{(0,s._)("platform_funds_detailed_page","platform_funds_detailed_page_view",{eventLabel:_.id})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:(0,J.Z)(eX().cards),children:[(0,n.jsxs)("div",{className:eX().price,children:[A&&!k&&(0,n.jsx)(K,{fund:_,lastPrice:A}),k&&(0,n.jsx)(ee,{formingAmount:_.formingAmount,formingAmountLimit:_.formingAmountLimit})]}),(0,n.jsxs)("div",{className:eX().about,children:[(0,n.jsx)(eb,{fund:_,cmsData:h,className:eX().stickyFundAbout,onAuthorButtonClick:e=>{N(e),g(!0)},withButton:b===i.ce.Buy}),(0,n.jsx)(u.u_,{dataQa:"app-author-modal",header:{title:"Об авторе"},size:"l",open:j,onClose:()=>g(!1),footer:{children:(0,n.jsx)(d.X2,{children:(0,n.jsx)(d.JX,{size:{xs:12,s:5},children:(0,n.jsx)(u.zx,{label:"Понятно",stretch:!0,variant:"secondary",onClick:()=>g(!1)})})})},children:(0,n.jsx)(eT,{author:T})})]}),(0,n.jsxs)("div",{className:eX().other,children:[I.isVisible&&(0,n.jsx)(B.b,{desktopType:"details",bannerKey:I.bannerWebKey,onClick:()=>{I.analytics&&(0,s._)("investment_funds","web_showcase_detail_click_promobanner",{eventLabel:I.analytics.eventLabel}),window.open(I.actionUrl,"_blank")}}),A&&S?(0,n.jsx)(eI,{historicalYield:_.historicalYield,lastPrice:A}):null,_.advantages&&(0,n.jsx)(eJ,{advantages:_.advantages}),_.strategy?(0,n.jsx)(eY,{strategy:_.strategy,authors:_.authors}):null,(0,n.jsx)(L,{fundPrice:_.fundPrice,fundStructure:_.fundStructure,status:"AT_FORMING"}),!!y&&(0,n.jsx)(p.T,{dataQa:{element:i.xJ.Collapse,name:"commissions"},className:eX().commissions,children:(0,n.jsx)(u.UQ,{children:(0,n.jsx)(u.Qd,{id:"commissions",title:F("sc-fund.commissions.title"),className:eX().commissionsItem,children:(0,n.jsx)(o.GL,{commissions:y,processType:"detail",purchaseTitle:F("sc-fund.commissions.fee-list.purchase.title"),purchaseDescription:F("sc-fund.commissions.fee-list.purchase.description"),sellTitle:F("sc-fund.commissions.fee-list.sell.title"),sellDescription:F("sc-fund.commissions.fee-list.sell.description"),managementTitle:F("sc-fund.commissions.fee-list.management.title"),managementDescription:F("sc-fund.commissions.fee-list.management.description"),otherTitle:F("sc-fund.commissions.fee-list.other.title")})})})})]})]}),(0,n.jsx)(ez,{fund:_,lastPrice:A})]})}},3714:function(e,t,a){"use strict";a.d(t,{HA:function(){return c},ew:function(){return s},h2:function(){return o},ju:function(){return i},pY:function(){return r},ww:function(){return l}});var n=a(1789);let i=[{id:1,label:"1 мес"},{id:3,label:"3 мес"},{id:6,label:"6 мес"},{id:12,label:"Год"},{id:36,label:"3 года"},{id:60,label:"5 лет"}],l=[{id:1,label:"Все публикации"},{id:2,label:"Для участников"}],s={1:"historicalYieldMonth",3:"historicalYieldQuarter",6:"historicalYieldHalfYear",12:"historicalYieldYear",36:"historicalYieldThreeYear",60:"historicalYieldFiveYear"},r={[n.gQ.Low]:"Низкий",[n.gQ.Medium]:"Средний",[n.gQ.High]:"Высокий"},c={MONTHLY:"Ежемесячно",QUARTERLY:"Ежеквартально",HALF_YEARLY:"Полугодие",YEARLY:"Ежегодно"},o=10},50571:function(e,t,a){"use strict";a.d(t,{b:function(){return p}});var n=a(57437),i=a(2265),l=a(75504),s=a(17438),r=a.n(s);let c=e=>{let{width:t,height:a,inline:i,rounded:s,className:c}=e,o={...t&&{width:"".concat(t,"px")},...a&&{height:"".concat(a,"px")}};return(0,n.jsx)("span",{style:o,className:(0,l.Z)(c,r().uiSkeleton,[{[r().inline]:i},{[r().rounded]:s}])})};var o=a(61810),d=a(54189),u=a(21585),m=a(1789),_=a(1444),h=a.n(_);function p(e){let{bannerKey:t,className:a,desktopType:l,onClick:s}=e,[r,_]=(0,i.useState)(!1),[p,x]=(0,i.useState)(),f=(0,o._m)("l"),v=(0,o.IY)("s","m");return((0,i.useEffect)(()=>{_(!0)},[]),(0,i.useEffect)(()=>{x((0,d.Xj)({key:t,isTablet:v,isDesktop:f,desktopType:l}))},[f,v,t]),r)?(0,n.jsx)(u.T,{dataQa:{element:m.xJ.Banner,name:"promotions"},className:a,children:(0,n.jsx)("img",{style:{cursor:"pointer",borderRadius:"16px",minHeight:"125px"},src:p,alt:"Акционный Баннер",width:"100%",onClick:()=>null==s?void 0:s()})}):(0,n.jsx)("div",{className:a,children:(0,n.jsx)(c,{className:h().skeleton,height:125})})}},54189:function(e,t,a){"use strict";a.d(t,{Xj:function(){return s},z6:function(){return i}});var n=a(49623);function i(e){let{promotions:t,type:a,id:i}=e;if(t){var s,r,c,o;let e=null===(r=t.data)||void 0===r?void 0:null===(s=r[0])||void 0===s?void 0:s.custom;if(e){let s=t.data[0],r=null===(c=e.visible)||void 0===c?void 0:c.find(e=>e===a),d=(0,n.ow)(new Date,e.start,e.end),u=!!r&&d&&l(i,e.fundIds);return{isVisible:u,...u&&{isVisible:!!r&&d&&l(i,e.fundIds),bannerWebKey:e.bannerWebKey,filters:e.filterWeb,actionUrl:null==s?void 0:s.actionUrl,promotionsIds:null===(o=e.fundIds)||void 0===o?void 0:o.reduce((e,t)=>({...e,[t]:!0}),{}),analytics:{eventAction:s.analytics.eventAction,eventCategory:s.analytics.eventCategory,eventLabel:s.analytics.eventLabel}}}}}return{isVisible:!1}}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return!e||!!t.find(t=>t===e)}function s(e){let{key:t,isDesktop:a,isTablet:i,desktopType:l}=e;if(!t)return;let s="";return a||i?i?s="_tablet_web":a&&(s="_desktop_".concat(l)):s="_mob_web","".concat((0,n.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/banners/").concat(t).concat(s,".png")}},38294:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});var n=a(2265),i=a(47907),l=a(49623);function s(e,t){let a=(0,i.useSearchParams)();(0,n.useEffect)(()=>{(0,l.Rz)(Object.fromEntries(a),e,t)},[])}},3338:function(e){e.exports={authorContent:"AboutAuthorModal_authorContent__wVOAK",avatar:"AboutAuthorModal_avatar__BH1BL",socialNetworks:"AboutAuthorModal_socialNetworks__u2xO8",socialNetworkLogo:"AboutAuthorModal_socialNetworkLogo__36mvX",item:"AboutAuthorModal_item__1Jt9c"}},80504:function(e){e.exports={card:"AuthorCardList_card__O592Z",avatar:"AuthorCardList_avatar__riQk_"}},86169:function(e){e.exports={container:"AuthorQuote_container__3q3ev",avatar:"AuthorQuote_avatar__vqm0w"}},4e3:function(e){e.exports={card:"FundDetailAbout_card__9AzCN",cardTitleWrapper:"FundDetailAbout_cardTitleWrapper__V8gl9",description:"FundDetailAbout_description__SkB8Z",infoBlocksList:"FundDetailAbout_infoBlocksList__VukJd",buyButton:"FundDetailAbout_buyButton__7ok_U"}},54134:function(e){e.exports={card:"FundDetailCharts_card__iFjAa",tabs:"FundDetailCharts_tabs__5kEqo",charts:"FundDetailCharts_charts__5p8S5",chips:"FundDetailCharts_chips__srTeN",tiles:"FundDetailCharts_tiles__AuU63",yieldNegative:"FundDetailCharts_yieldNegative__2ydYV",yieldPositive:"FundDetailCharts_yieldPositive__QHXyV"}},69322:function(e){e.exports={block:"InfoBlock_block__Uucdu",label:"InfoBlock_label__qWEVQ",caption:"InfoBlock_caption__j7y9N",captionText:"InfoBlock_captionText__1OyN6",captionIcon:"InfoBlock_captionIcon__EHA5I",additionalText:"InfoBlock_additionalText__T6ukY"}},72637:function(e){e.exports={chart:"LineChart_chart__UBzZU"}},62969:function(e){e.exports={card:"FundGeneraIInfo_card__15n07",title:"FundGeneraIInfo_title__1epZQ",infoCaption:"FundGeneraIInfo_infoCaption__laJ0V"}},70250:function(e){e.exports={row:"FundGeneraIInfoList_row__yhyCb",label:"FundGeneraIInfoList_label__R_KMV"}},82384:function(e){e.exports={structure:"FundStructure_structure__prDVW",noStructure:"FundStructure_noStructure__XuPgG",noStructureText:"FundStructure_noStructureText__oBLxC",header:"FundStructure_header__Y4Hcj",chartWrapper:"FundStructure_chartWrapper__8O1Bo",chart:"FundStructure_chart__pHK6u",chartWithListWrapper:"FundStructure_chartWithListWrapper__xcMcL"}},793:function(e){e.exports={listWrapper:"FundStructureList_listWrapper__01wG_",list:"FundStructureList_list__yK_8I",row:"FundStructureList_row__1_qyd",nameWrapper:"FundStructureList_nameWrapper__wjwus",color:"FundStructureList_color___X7Hh",name:"FundStructureList_name__GWP5j",percent:"FundStructureList_percent__EgLXA"}},5242:function(e){e.exports={innerContent:"FundStructurePriceTile_innerContent__du26J",price:"FundStructurePriceTile_price__8p0HT",caption:"FundStructurePriceTile_caption__GJyRg"}},97771:function(e){e.exports={advantages:"PlatformFundAdvantages_advantages__dDWeh",advantage:"PlatformFundAdvantages_advantage__26zkq",title:"PlatformFundAdvantages_title__aAe38",text:"PlatformFundAdvantages_text__uSBGE",icon:"PlatformFundAdvantages_icon___3qq_"}},60579:function(e){e.exports={description:"AboutFund_description__jif8Q",infoBlocksList:"AboutFund_infoBlocksList__Rgn7O"}},72736:function(e){e.exports={block:"AboutFundTile_block__OZrEe",iconWrapper:"AboutFundTile_iconWrapper__9gASD",tile:"AboutFundTile_tile__k_1Ei",label:"AboutFundTile_label__CIsgD",caption:"AboutFundTile_caption__odYmP",captionText:"AboutFundTile_captionText__dTNcZ",captionIcon:"AboutFundTile_captionIcon__2LBRs"}},19688:function(e){e.exports={card:"PlatformFundDetailAbout_card__zU7Yz",cardTitleWrapper:"PlatformFundDetailAbout_cardTitleWrapper__LydlC",buyButton:"PlatformFundDetailAbout_buyButton__APtJe"}},2082:function(e){e.exports={drawer:"PlatformFundDetailClientPage_drawer__Iccte",content:"PlatformFundDetailClientPage_content__EafNh",cards:"PlatformFundDetailClientPage_cards__CV8QC",price:"PlatformFundDetailClientPage_price__EX7vP",about:"PlatformFundDetailClientPage_about__GeI3Z",stickyFundAbout:"PlatformFundDetailClientPage_stickyFundAbout__okxrJ",other:"PlatformFundDetailClientPage_other__kTZCN",commissions:"PlatformFundDetailClientPage_commissions__bF89z",commissionsItem:"PlatformFundDetailClientPage_commissionsItem__PplmZ"}},4108:function(e){e.exports={container:"PlatformFundDetailForming_container__pJMGg",progressBarFooter:"PlatformFundDetailForming_progressBarFooter__fK5No",text:"PlatformFundDetailForming_text__14PKH"}},7837:function(e){e.exports={card:"PlatformFundDetailHistoricalYield_card__Y7Yoa",title:"PlatformFundDetailHistoricalYield_title__HmqzH",caption:"PlatformFundDetailHistoricalYield_caption__RP8Py",tiles:"PlatformFundDetailHistoricalYield_tiles__Emwwv"}},79938:function(e){e.exports={keyIdeas:"PlatformFundStrategy_keyIdeas__MY_Ab",idea:"PlatformFundStrategy_idea__LUF1o",step:"PlatformFundStrategy_step__FKpTd"}},47404:function(e){e.exports={tile:"YieldTile_tile__m0_kM",caption:"YieldTile_caption__GmRQV",label:"YieldTile_label__Qppvj",positive:"YieldTile_positive__KQd_4",negative:"YieldTile_negative__IzCgJ"}},1444:function(e){e.exports={skeleton:"PromotionsBanner_skeleton__lP64v"}},17438:function(e){e.exports={uiSkeleton:"UiSkeleton_uiSkeleton__5gH0G",rounded:"UiSkeleton_rounded__e2mJS",inline:"UiSkeleton_inline__6UIts"}},28980:function(e,t){"use strict";t.Z={src:"/invest/funds/_next/static/media/cat.132f7876.png",height:240,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAAeUlEQVR42mNwZmBgZIAARSAWAWJRfUNjWwY46FnEBKIqyvI74uMi/0+Z0n2XjUPgv7yiUhIDCNzqCA871Jt5KL+qrKurv/34pOn9X6Vl5f+LiEkcV9fS1mE4n60ruTCayYABCJ5c2cdiYGOtbWlrpyslLa3DxsHDAwBJliEE9Re02wAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4}}}]);