(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8008],{98008:function(e,t,n){Promise.resolve().then(n.bind(n,53417)),Promise.resolve().then(n.bind(n,69767)),Promise.resolve().then(n.t.bind(n,88003,23)),Promise.resolve().then(n.bind(n,76005)),Promise.resolve().then(n.bind(n,3039)),Promise.resolve().then(n.t.bind(n,61050,23))},55041:function(e,t,n){var a=n(5035),i=/^\s+/;e.exports=function(e){return e?e.slice(0,a(e)+1).replace(i,""):e}},5035:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},64798:function(e,t,n){var a=n(28302),i=n(11121),l=n(6660),s=Math.max,r=Math.min;e.exports=function(e,t,n){var o,c,d,u,m,f,_=0,h=!1,p=!1,x=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=o,a=c;return o=c=void 0,_=t,u=e.apply(a,n)}function b(e){var n=e-f,a=e-_;return void 0===f||n>=t||n<0||p&&a>=d}function g(){var e,n,a,l=i();if(b(l))return j(l);m=setTimeout(g,(e=l-f,n=l-_,a=t-e,p?r(a,d-n):a))}function j(e){return(m=void 0,x&&o)?v(e):(o=c=void 0,u)}function T(){var e,n=i(),a=b(n);if(o=arguments,c=this,f=n,a){if(void 0===m)return _=e=f,m=setTimeout(g,t),h?v(e):u;if(p)return clearTimeout(m),m=setTimeout(g,t),v(f)}return void 0===m&&(m=setTimeout(g,t)),u}return t=l(t)||0,a(n)&&(h=!!n.leading,d=(p="maxWait"in n)?s(l(n.maxWait)||0,t):d,x="trailing"in n?!!n.trailing:x),T.cancel=function(){void 0!==m&&clearTimeout(m),_=0,o=f=c=m=void 0},T.flush=function(){return void 0===m?u:j(i())},T}},22345:function(e,t,n){var a=n(54506),i=n(10303);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==a(e)}},11121:function(e,t,n){var a=n(74288);e.exports=function(){return a.Date.now()}},6660:function(e,t,n){var a=n(55041),i=n(28302),l=n(78371),s=0/0,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(l(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var n=o.test(e);return n||c.test(e)?d(e.slice(2),n?2:8):r.test(e)?s:+e}},27648:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var a=n(72972),i=n.n(a)},3039:function(e,t,n){"use strict";n.d(t,{PlatformFundDetailClientPage:function(){return eC}});var a=n(57437),i=n(2265),l=n(42586),s=n(80684),r=n(98456),o=n(35563),c=n(75461),d=n(61994),u=n(6029),m=n(69064),f=n(5083),_=n(45087),h=n(1883),p=n(34057),x=n(31578),v=n(33145),b=n(51170),g=n.n(b);function j(e){let{author:t}=e,n=(0,l.useTranslations)();return(0,a.jsxs)("div",{children:[(0,a.jsxs)(f.T,{dataQa:{element:p.xJ.Block,name:"authorContent"},className:g().authorContent,children:[(0,a.jsx)(r.G2,{fullUrl:"".concat((0,x.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/authors/").concat(null==t?void 0:t.avatarKey,".png"),size:124,alt:"Данные автора",className:g().avatar}),(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Header,name:"authorContent"},children:(0,a.jsx)(o.X6,{type:"h4",className:"mt-2 mb-2",children:null==t?void 0:t.name})}),(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Block,name:"authorSubname"},className:"mb-4",children:(0,a.jsx)(o.xv,{children:null==t?void 0:t.subname})}),(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Block,name:"socialNetworks"},className:g().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,a.jsxs)("div",{className:g().item,onClick:()=>{window.open(e.url,"_blank")},children:[(0,a.jsx)("div",{className:g().socialNetworkLogo,children:(0,a.jsx)(v.default,{src:"".concat((0,x.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/social-media/").concat(e.iconKey,".svg"),alt:e.name,unoptimized:!0,width:20,height:14})}),(0,a.jsx)("span",{children:e.name})]},e.name))})]}),(0,a.jsxs)(f.T,{dataQa:{element:p.xJ.Block,name:"modalBio"},className:"mt-5 mt-l-6",children:[(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Header,name:"modalBio"},className:"mt-2 mb-2",children:(0,a.jsx)(o.X6,{type:"h2",children:n("platform-fund.detail.overview.author.modal.bio.header")})}),(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Text,name:"modalBio"},children:(0,a.jsx)(o.xv,{size:"16",children:null==t?void 0:t.bio})})]})]})}var T=n(57970),y=n(91139),N=n.n(y);function k(e){let{list:t}=e;return(0,a.jsx)("div",{children:t.map(e=>{let{label:t,caption:n}=e;return(0,a.jsxs)("div",{"data-qa":"detail-list-item",className:N().row,children:[(0,a.jsx)("div",{className:N().label,"data-qa":"detail-list-item-label",children:t}),(0,a.jsx)("div",{className:N().caption,"data-qa":"detail-list-item-caption",children:n})]},t)})})}var F=n(49090),C=n(22345),I=n.n(C),S=n(54669),w=n(18350),A=n.n(w);function P(e,t,n,i){let l=n&&t.historicalYield[S.ew[n.id]],s=(null==i?void 0:i.priceDate)&&"на ".concat((0,x.p6)(i.priceDate,{format:"dd.MM.yyyy"})),r=[];if(l){let e=I()(l)&&l>0;r.push({caption:"Доходность",label:(0,a.jsxs)("span",{className:(0,d.Z)(e?A().yieldPositive:A().yieldNegative),children:[e&&"+",(0,F.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,F.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,F.lb)(i.dealNetAssetValue,{decimalIsWithoutZeros:!0}),additionalText:s,hint:"sc-funds.detail.charts.sca.hint"})}return r}var D=n(74007),L=n.n(D);function J(e){let{fund:t,lastPrice:n}=e,i=(0,l.useTranslations)(),s=(null==n?void 0:n.priceDate)?(0,x.p6)(null==n?void 0:n.priceDate,{format:"dd.MM.yyyy"}):null,c=function(e){let{isin:t,fundCompNameRus:n,registrationNumber:a}=e;return[{label:"Управляющая компания",caption:n},{label:"Номер регистрации",caption:a},{label:"ISIN",caption:t}].filter(e=>{let{caption:t}=e;return!!t})}(t);return(0,a.jsxs)(f.T,{tag:o.Zb,className:L().card,dataQa:{element:p.xJ.Block,name:"generaIInfo"},children:[(0,a.jsx)("div",{"data-qa":"fund-detail-details-title",children:(0,a.jsx)(o.X6,{type:"h3",className:L().title,children:"Общая информация"})}),(0,a.jsx)(k,{list:c}),n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:L().infoCaption,children:["Информация о фонде актуальна на ",s]}),(0,a.jsx)(r.EB,{className:"mt-1",ghost:!0,expandedContent:(0,a.jsx)(o.xv,{size:"16",className:L().info,dangerouslySetInnerHTML:{__html:(0,T.TU)(i.raw("fund.detail.general-info.expanded-line.text"))}}),children:(0,a.jsx)(o.xv,{size:"16",children:i("fund.detail.general-info.first-line.text")})})]})]})}var E=n(96369),B=n(94148),Q=n.n(B);function Y(e){let{advantages:t}=e,n=(0,l.useTranslations)(),i=!t||0===t.length,s=(0,E.J)();return!i&&(0,a.jsxs)(f.T,{tag:o.Zb,dataQa:{element:p.xJ.Block,name:"advantages"},children:[(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Header,name:"advantages"},children:(0,a.jsx)(o.X6,{type:"h2",children:n("platform-fund.detail.advantages.header")})}),(0,a.jsx)(f.T,{tag:"ul",dataQa:{element:p.xJ.List,name:"advantages"},className:Q().advantages,children:null==t?void 0:t.map((e,t)=>(0,a.jsxs)("li",{className:Q().advantage,children:[(0,a.jsx)(f.T,{tag:"span",dataQa:{element:p.xJ.Icon,name:"advantages"},className:Q().icon,children:(0,a.jsx)(r.G2,{fullUrl:"".concat((0,x.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/advantages/").concat(e.webImageKey,".png"),size:60,alt:""})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(o.X6,{className:Q().title,dataQa:s({element:p.xJ.Header,name:"advantage"}),type:"h4",children:e.title}),(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Text,name:"description"},tag:"span",className:Q().text,dangerouslySetInnerHTML:{__html:e.description}})]})]},t))})]})}var U=n(76318),M=n.n(U);function Z(e){let{authors:t,className:n,onButtonClick:i}=e;return(0,a.jsx)("div",{children:null==t?void 0:t.map((e,t)=>(0,a.jsxs)(o.Zb,{className:(0,d.Z)(M().card,n),children:[(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Icon,name:"author"},children:(0,a.jsx)(r.oc,{fullUrl:"".concat((0,x.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/authors/").concat(e.avatarKey,".png"),alt:"Данные автора",label:e.name,caption:e.subname,size:40,className:M().avatar})}),(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Button,name:"author"},children:(0,a.jsx)(c.zx,{shape:"circle-icon",size:"xs",iconRight:(0,a.jsx)(s.IconFdsArrowUpRightO,{}),onClick:()=>i&&i(e)})})]},t))})}var R=n(27648),H=n(7523),O=n.n(H);let z=e=>{let{rulesLink:t}=e;return(0,a.jsxs)("div",{className:O().cardTitleWrapper,children:[(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Header,name:"aboutTitle"},children:(0,a.jsx)(o.X6,{type:"h2",children:"О фонде"})}),!!t&&(0,a.jsx)(c.rU,{as:R.default,href:t,target:"_blank","data-qa":"fund-detail-about-link",children:"Правила фонда"})]})};var V=n(77075),W=n.n(V);function X(e){let{label:t,caption:n,Icon:i,hint:r}=e,o=(0,l.useTranslations)();return(0,a.jsxs)(f.T,{dataQa:{element:p.xJ.Block,name:"aboutFund"},className:W().block,children:[(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Icon,name:"aboutFund"},className:W().iconWrapper,children:(0,a.jsx)(i,{})}),(0,a.jsxs)(f.T,{dataQa:{element:p.xJ.Tile,name:"aboutFund"},className:W().tile,children:[(0,a.jsxs)("div",{className:W().caption,children:[(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Caption,name:"aboutFund"},className:W().captionText,children:n}),r&&(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Hint,name:"aboutFund"},children:r&&(0,a.jsx)(c.kW,{text:o(r),position:"bottom",inverted:!0,children:(0,a.jsx)(s.IconFdsQuestionCircleO,{className:W().captionIcon})})})]}),(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Label,name:"aboutFund"},className:W().label,children:t})]})]})}var q=n(26576),G=n.n(q);function K(e){let{description:t,items:n,className:i}=e;return(0,a.jsxs)("div",{className:(0,d.Z)(i),children:[t&&(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Block,name:"aboutDescription"},className:G().description,dangerouslySetInnerHTML:{__html:t}}),(0,a.jsx)("div",{className:G().infoBlocksList,children:n.map(e=>(0,a.jsx)(X,{...e},e.caption))})]})}var $=n(29316),ee=n.n($);function et(e){var t;let{fund:n,cmsData:i,className:l,onAuthorButtonClick:r,buttonSlot:c}=e,{description:u}=n,m=(0,x.ld)(null!=u?u:""),_=function(e){let{minInvest:t,fundsObjectNameRus:n,risk:a,fundCompNameRus:i,payoutFrequency:l}=e,r="true"===(0,x.SJ)("NEXT_PUBLIC_FEATURE_TOGGLE_TAGS_AND_BADGES");return[{caption:"Состав фонда",label:n,Icon:s.IconFdsChartCircle},{caption:"Покупка",label:"От ".concat((0,F.lb)(t,{decimalIsWithoutZeros:!0})),Icon:s.IconFdsRubleCircleO},{caption:"Уровень риска",label:S.pY[a],Icon:s.IconFdsFlashCircleO},{caption:"Управляющая компания",label:i,Icon:s.IconFdsChartGrowthSquareO},...r?[{caption:"Выплата дохода",label:S.HA[l],Icon:s.IconFdsCalendarClockO}]:[]].filter(e=>!!e.label)}(n),h=null==i?void 0:null===(t=i.fundDetailedPage)||void 0===t?void 0:t[n.id];return(0,a.jsxs)(f.T,{tag:o.Zb,className:(0,d.Z)(ee().card,l),dataQa:{element:p.xJ.Block,name:"aboutCard"},children:[(0,a.jsx)(z,{rulesLink:h}),(0,a.jsx)(K,{className:"mt-6 mt-l-7",description:m,items:_}),(0,a.jsx)(Z,{authors:n.authors,className:"mt-8",onButtonClick:r}),c]})}var en=n(39255),ea=n.n(en);function ei(e){let{formingAmount:t,formingAmountLimit:n}=e,i=function(e,t){let n=100*e/t;return{amount:(0,F.lb)(e,{decimalIsWithoutZeros:!0}),min:(0,F.lb)(0),max:(0,F.lb)(t,{decimalIsWithoutZeros:!0}),percentFormatted:(0,F.og)((0,x.lt)(n)),percent:n,theme:n<=25?"default":n<=50?"error":n<=75?"warning":"success"}}(null!=t?t:0,null!=n?n:0),l=(0,c._m)("m");return(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Block,name:"fundDetailForming"},children:(0,a.jsxs)(o.Zb,{className:ea().container,children:[(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Header,name:"fundDetailForming"},className:"mb-1",children:(0,a.jsx)(o.xv,{size:l?"18":"16",children:"Формирование фонда"})}),(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Text,name:"fundDetailFormingAmount"},className:"mb-3",children:(0,a.jsx)(o.xv,{size:l?"28":"24",weight:"medium",children:i.amount})}),(0,a.jsx)(f.T,{dataQa:{element:p.xJ.ProgressBar,name:"fundDetailForming"},className:"mb-3",children:(0,a.jsx)(o.ko,{value:i.percent,variant:i.theme})}),(0,a.jsxs)("div",{className:ea().progressBarFooter,children:[(0,a.jsx)(f.T,{tag:"span",dataQa:{element:p.xJ.Text,name:"fundDetailFormingMin"},className:ea().text,children:i.min}),(0,a.jsx)(f.T,{tag:"span",dataQa:{element:p.xJ.Text,name:"fundDetailFormingMax"},className:ea().text,children:i.max})]})]})})}var el=n(17347),es=n.n(el);let er=e=>{let{caption:t,yieldRate:n}=e,i=I()(n),l=i&&n>0,s=i?(0,F.og)(null==n?void 0:n.toFixed(2)):"—";return(0,a.jsxs)("div",{className:es().tile,"data-qa":"yield-tile",children:[(0,a.jsx)("div",{className:es().caption,"data-qa":"yield-tile-caption",children:t}),(0,a.jsx)("div",{className:(0,d.Z)(es().label,i&&l&&es().positive,i&&!l&&es().negative),"data-qa":"yield-tile-label",children:l?"+".concat(s):s})]})};var eo=n(84463),ec=n.n(eo);function ed(e){let{date:t,tiles:n}=e,i=(0,l.useTranslations)();return(0,a.jsxs)(f.T,{tag:o.Zb,className:ec().card,dataQa:{element:p.xJ.Block,name:"historicalYield"},children:[(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Header,name:"historicalYieldTitle"},children:(0,a.jsx)(o.X6,{type:"h2",className:ec().title,children:"Историческая доходность"})}),t&&(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Caption,name:"historicalYield"},className:ec().caption,children:i("historical-yield.caption",{date:t})}),(0,a.jsx)("div",{className:ec().tiles,children:n.filter(e=>{let{yieldRate:t}=e;return!!t}).map(e=>{let{caption:t,yieldRate:n}=e;return(0,a.jsx)(er,{caption:t,yieldRate:n},t)})})]})}function eu(e){let{lastPrice:t,historicalYield:n}=e,i=(null==t?void 0:t.priceDate)&&(0,x.p6)(t.priceDate,{format:"dd.MM.yyyy"}),l=function(e){let{historicalYieldFiveYear:t,historicalYieldHalfYear:n,historicalYieldMonth:a,historicalYieldQuarter:i,historicalYieldThreeYear:l,historicalYieldYear:s}=e;return[{yieldRate:a,caption:"1 мес"},{yieldRate:i,caption:"3 мес"},{yieldRate:n,caption:"6 мес"},{yieldRate:s,caption:"1 год"},{yieldRate:l,caption:"3 года"},{yieldRate:t,caption:"5 лет"}]}(n);return(0,a.jsx)(ed,{date:i,tiles:l})}var em=n(74695),ef=n.n(em);let e_=e=>{let{label:t,caption:n,hint:i,additionalText:r}=e,o=(0,l.useTranslations)();return(0,a.jsxs)("div",{className:ef().block,"data-qa":"info-block-wrapper",children:[(0,a.jsxs)("div",{className:ef().caption,"data-qa":"info-block-caption",children:[(0,a.jsx)("div",{className:ef().captionText,children:n}),i&&(0,a.jsx)(c.kW,{text:o(i),position:"bottom",inverted:!0,children:(0,a.jsx)(s.IconFdsQuestionCircleO,{className:ef().captionIcon})})]}),(0,a.jsx)("div",{className:ef().label,"data-qa":"info-block-label",children:t}),r&&(0,a.jsx)("div",{className:ef().additionalText,"data-qa":"info-block-additional-text",children:r})]})};var eh=n(91978),ep=n(64798),ex=n.n(ep),ev=n(15392),eb=n(24783),eg=n(97395),ej=n.n(eg);let eT=e=>{let{selectedRange:t=60,prices:n=[],selectedTab:l,lastPrice:s}=e,r=(0,i.useRef)(null),o=ex()(function(){d(),(c=(0,eh.C2)(r.current,ev.c0)).addLineSeries(ev._5).setData((0,eb.W$)(n,l)),c.priceScale().applyOptions(ev.WY),c.timeScale().applyOptions(ev.Z2),c.timeScale().fitContent(),c.timeScale().setVisibleRange((0,eb.Uf)(t,s))},100),c=null;function d(){c&&(c.remove(),c=null)}return(0,i.useEffect)(()=>(o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),d()}),[t,l]),(0,a.jsx)("div",{ref:r,className:ej().chart,"data-qa":"line-chart"})};function ey(e){let{prices:t,lastPrice:n,tiles:i,chipsList:l,selectedChips:s,selectedTab:r,className:u,handleTabChange:m,handleChipsChange:_}=e;return(0,a.jsxs)(f.T,{tag:o.Zb,className:(0,d.Z)(A().card,u),dataQa:{element:p.xJ.Tabs,name:"chart"},children:[(0,a.jsx)(c.sY,{activeTabId:r,onTabChange:m,className:A().tabs,rounded:!0,size:"m",tabs:ev.Ht,stretch:!0,weightVariant:"regular"}),(0,a.jsx)("div",{className:A().tiles,children:i.map(e=>(0,a.jsx)(e_,{...e},e.caption))}),(0,a.jsxs)("div",{className:A().charts,children:[(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Block,name:"chartChips"},children:(0,a.jsx)(c.cL,{size:"m",chips:l,value:null==s?void 0:s.id,activeVariant:"secondary",onChipClick:e=>_(Number(e)),className:A().chips})}),(0,a.jsx)(eT,{selectedRange:null==s?void 0:s.id,selectedTab:r,prices:t,lastPrice:n})]})]})}function eN(e){var t;let{fund:n,lastPrice:l,className:s}=e,{fundPrice:r}=n,o=S.ju.filter(e=>{var t;let a=S.ew[e.id];return I()(null===(t=n.historicalYield)||void 0===t?void 0:t[a])}),[c,d]=(0,i.useState)(1),[u,m]=(0,i.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)),[f,_]=(0,i.useState)(P(c,n,u,l)),p=null!==(t=null==r?void 0:r.map(e=>({date:e.priceDate,pay:e.dealPrice,sca:e.dealNetAssetValue})))&&void 0!==t?t:[];return(0,a.jsx)(ey,{tiles:f,lastPrice:{date:l.priceDate,pay:l.dealPrice,sca:l.dealNetAssetValue},prices:p,selectedTab:c,selectedChips:u,chipsList:o,className:s,handleTabChange:function(e){d(e),_(P(e,n,u,l))},handleChipsChange:function(e){let t=o.find(t=>t.id===e);t&&(m(t),_(P(c,n,t,l)),(0,h._)("platform_funds_detailed_page","click_to_delta_date",{eventLabel:n.id,eventValue:t.label}))}})}var ek=n(40572),eF=n.n(ek);function eC(e){var t,n,v;let{fund:b,cmsData:g,aggregatorIds:T,promotions:y,buttonSlot:N}=e;(0,_.Z)(T,b.id);let[k,F]=(0,i.useState)(!1),[C,I]=(0,i.useState)(),S=(0,l.useTranslations)(),w=!!b.commissions,A="AT_FORMING"===b.status,P=(null===(t=b.fundPrice)||void 0===t?void 0:t.length)?b.fundPrice[b.fundPrice.length-1]:null,D=function(e){let{historicalYieldMonth:t,historicalYieldQuarter:n,historicalYieldHalfYear:a,historicalYieldYear:i,historicalYieldThreeYear:l,historicalYieldFiveYear:s}=e;return[t,n,a,i,l,s].filter(e=>!!e).length>0}(b.historicalYield),L=(0,i.useMemo)(()=>(0,u.z6)({promotions:y,type:"SITE_DETAIL",id:b.id}),[y]),E=(null!==(n=b.authors)&&void 0!==n?n:[])[0];return(0,i.useEffect)(()=>{(0,h._)("platform_funds_detailed_page","platform_funds_detailed_page_view",{eventLabel:b.id})},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:(0,d.Z)(eF().cards),children:[(0,a.jsxs)("div",{className:eF().price,children:[P&&!A&&(0,a.jsx)(eN,{fund:b,lastPrice:P}),A&&(0,a.jsx)(ei,{formingAmount:b.formingAmount,formingAmountLimit:b.formingAmountLimit})]}),(0,a.jsxs)("div",{className:eF().about,children:[(0,a.jsx)(et,{fund:b,cmsData:g,className:eF().stickyFundAbout,onAuthorButtonClick:e=>{I(e),F(!0)},buttonSlot:N}),(0,a.jsx)(c.u_,{dataQa:"app-author-modal",header:{title:"Об авторе"},size:"l",open:k,onClose:()=>F(!1),footer:{children:(0,a.jsx)(o.X2,{children:(0,a.jsx)(o.JX,{size:{xs:12,s:5},children:(0,a.jsx)(c.zx,{label:"Понятно",stretch:!0,variant:"secondary",onClick:()=>F(!1)})})})},children:(0,a.jsx)(j,{author:C})})]}),(0,a.jsxs)("div",{className:eF().other,children:[L.isVisible&&(0,a.jsx)(m.b,{desktopType:"details",bannerKey:L.bannerWebKey,onClick:()=>{L.analytics&&(0,h._)("investment_funds","web_showcase_detail_click_promobanner",{eventLabel:L.analytics.eventLabel}),window.open(L.actionUrl,"_blank")}}),P&&D?(0,a.jsx)(eu,{historicalYield:b.historicalYield,lastPrice:P}):null,b.advantages&&(0,a.jsx)(Y,{advantages:b.advantages}),b.strategy?(0,a.jsx)(r.qr,{strategy:b.strategy,author:{...E,avatarKey:null!==(v=null==E?void 0:E.avatarKey)&&void 0!==v?v:""},descriptionHeader:S("platform-fund.detail.strategy.header"),keyIdeasHeader:S("platform-fund.detail.strategy.key-ideas.header"),s3MinioUrl:(0,x.SJ)("NEXT_PUBLIC_S3_ASSETS")}):null,(0,a.jsx)(r.FB,{fundPrice:b.fundPrice,fundStructure:b.fundStructure,status:"AT_FORMING",title:S("sc-fund.piechart-structure.title"),noStructureTitle:S("sc-fund.piechart-no-structure.at_forming.title"),noStructureText:S("sc-fund.piechart-no-structure.at_forming.text"),dataQa:"funds-platformFundId",innerDataQa:"fund-detail-structure"}),w&&(0,a.jsx)(f.T,{dataQa:{element:p.xJ.Collapse,name:"commissions"},className:eF().commissions,children:(0,a.jsx)(c.UQ,{children:(0,a.jsx)(c.Qd,{id:"commissions",title:S("sc-fund.commissions.title"),className:eF().commissionsItem,children:(0,a.jsx)(r.GL,{commissions:b.commissions,texts:{management:{title:S("sc-fund.commissions.new.management.title"),text:S("sc-fund.commissions.new.management.text")},operation:{title:S("sc-fund.commissions.new.operation.title"),text:S("sc-fund.commissions.new.operation.text")},modal:{management:{title:S("sc-fund.commissions.new.modal.management.title"),text:S("sc-fund.commissions.new.modal.management.text"),items:[{title:S("sc-fund.commissions.new.modal.management.items.company.title"),caption:S("sc-fund.commissions.new.modal.management.items.company.text"),percent:b.commissions.managementCommissions.managementCompanyCommissionPercentValue},{title:S("sc-fund.commissions.new.modal.management.items.registrar.title"),caption:S("sc-fund.commissions.new.modal.management.items.registrar.text"),percent:b.commissions.managementCommissions.specialRegistrarCommissionPercentValue},{title:S("sc-fund.commissions.new.modal.management.items.other.title"),caption:S("sc-fund.commissions.new.modal.management.items.other.text"),percent:b.commissions.otherCommissions.percentValue}]},operation:{title:S("sc-fund.commissions.new.modal.operation.title"),text:S("sc-fund.commissions.new.modal.operation.text")},bullets:[{icon:s.IconFdsChartGrowthO,title:S("sc-fund.commissions.new.modal.bullets.yield.title"),text:S("sc-fund.commissions.new.modal.bullets.yield.text")},{icon:s.IconFdsBarChartVerticalO,title:S("sc-fund.commissions.new.modal.bullets.choice.title"),text:S("sc-fund.commissions.new.modal.bullets.choice.text")}]}}})})})})]})]}),(0,a.jsx)(J,{fund:b,lastPrice:P})]})}},54669:function(e,t,n){"use strict";n.d(t,{HA:function(){return o},ew:function(){return s},h2:function(){return c},ju:function(){return i},pY:function(){return r},ww:function(){return l}});var a=n(34057);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={[a.gQ.Low]:"Низкий",[a.gQ.Medium]:"Средний",[a.gQ.High]:"Высокий"},o={MONTHLY:"Ежемесячно",QUARTERLY:"Ежеквартально",HALF_YEARLY:"Полугодие",YEARLY:"Ежегодно"},c=10},15392:function(e,t,n){"use strict";n.d(t,{c0:function(){return l},Ht:function(){return a},WY:function(){return r},_5:function(){return s},Z2:function(){return o},du:function(){return i}});let a=[{id:1,label:"Пай"},{id:2,label:"СЧА"}],i=[{id:1,label:"Обзор"},{id:2,label:"Инсайты"}],l={grid:{horzLines:{visible:!0,color:"#e3e7ec"},vertLines:{visible:!1}}},s={priceLineVisible:!1,color:"#525bbb",lineWidth:2},r={borderColor:"#e3e7ec",borderVisible:!1},o={borderColor:"#e3e7ec"}},24783:function(e,t,n){"use strict";function a(e){return{1:{url:"/".concat(e)},2:{url:"/".concat(e,"/posts")}}}function i(e,t){return e.map(e=>{let n=new Date(e.date);return{time:{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate()},value:1===t?e.pay:e.sca}})}n.d(t,{um:function(){return a},W$:function(){return i},Uf:function(){return c},Wl:function(){return f}});var l=n(47869),s=n(99735),r=n(7656),o=n(31578);function c(e,t){let n=new Date(t.date);return{from:(0,o.p6)(function(e,t){return(0,r.Z)(2,arguments),function(e,t){(0,r.Z)(2,arguments);var n=(0,s.Z)(e),a=(0,l.Z)(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var i=n.getDate(),o=new Date(n.getTime());return(o.setMonth(n.getMonth()+a+1,0),i>=o.getDate())?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}(e,-(0,l.Z)(t))}(n,e),{format:"yyyy-MM-dd"}),to:(0,o.p6)(n,{format:"yyyy-MM-dd"})}}var d=n(57437),u=n(80684),m=n(93398);function f(e){let t="".concat((0,o.SJ)("NEXT_PUBLIC_SHOWCASE_ORIGIN")).concat(m.pY,"/").concat(e);return[{icon:(0,d.jsx)(u.IconFdsVkontakteF,{}),url:"https://vk.com/share.php?url=".concat(t),name:"ВКонтакте",style:{color:"rgb(74, 118, 168)"}},{icon:(0,d.jsx)(u.IconFdsOdnoklassnikiF,{}),url:"https://connect.ok.ru/offer?url=".concat(t),name:"Одноклассники",style:{color:"rgb(255, 136, 0)"}},{icon:(0,d.jsx)(u.IconFdsTelegramF,{}),url:"https://telegram.me/share/url?url=".concat(t),name:"Telegram",style:{color:"rgb(0, 151, 255)",paddingRight:"2px"}}]}},69064:function(e,t,n){"use strict";n.d(t,{b:function(){return h}});var a=n(57437),i=n(2265),l=n(75461),s=n(6029),r=n(61994),o=n(46413),c=n.n(o);let d=e=>{let{width:t,height:n,inline:i,rounded:l,className:s}=e,o={...t&&{width:"".concat(t,"px")},...n&&{height:"".concat(n,"px")}};return(0,a.jsx)("span",{style:o,className:(0,r.Z)(s,c().uiSkeleton,[{[c().inline]:i},{[c().rounded]:l}])})};var u=n(5083),m=n(34057),f=n(46534),_=n.n(f);function h(e){let{bannerKey:t,className:n,desktopType:r,onClick:o}=e,[c,f]=(0,i.useState)(!1),[h,p]=(0,i.useState)(),x=(0,l._m)("l"),v=(0,l.IY)("s","m");return((0,i.useEffect)(()=>{setTimeout(()=>{f(!0)})},[]),(0,i.useEffect)(()=>{let e=setTimeout(()=>{p((0,s.Xj)({key:t,isTablet:v,isDesktop:x,desktopType:r}))});return()=>clearTimeout(e)},[x,v,t]),c)?(0,a.jsx)(u.T,{dataQa:{element:m.xJ.Banner,name:"promotions"},className:n,children:(0,a.jsx)("img",{style:{cursor:"pointer",borderRadius:"16px",minHeight:"125px"},src:h,alt:"Акционный Баннер",width:"100%",onClick:()=>null==o?void 0:o()})}):(0,a.jsx)("div",{className:n,children:(0,a.jsx)(d,{className:_().skeleton,height:125})})}},6029:function(e,t,n){"use strict";n.d(t,{Xj:function(){return s},z6:function(){return i}});var a=n(31578);function i(e){let{promotions:t,type:n,id:i}=e;if(t){var s,r,o,c;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===(o=e.visible)||void 0===o?void 0:o.find(e=>e===n),d=(0,a.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===(c=e.fundIds)||void 0===c?void 0:c.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:n,isTablet:i,desktopType:l}=e;if(!t)return;let s="";return n||i?i?s="_tablet_web":n&&(s="_desktop_".concat(l)):s="_mob_web","".concat((0,a.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/banners/").concat(t).concat(s,".png")}},5083:function(e,t,n){"use strict";n.d(t,{T:function(){return l}});var a=n(57437),i=n(96369);let l=e=>{let{tag:t="div",children:n,dataQa:l,className:s,...r}=e,o=(0,i.J)()(l),c="string"==typeof t,d={...r,...c?{"data-qa":o}:{dataQa:o}};return(0,a.jsx)(t,{className:s,...d,children:n})}},76005:function(e,t,n){"use strict";n.d(t,{BuyButton:function(){return c}});var a=n(57437),i=n(62308),l=n(9702),s=n(51615),r=n(1883),o=n(31578);function c(e){let{entryPointId:t,url:n,config:c,serverConfig:d,analytics:u,className:m}=e,f=(0,o.SJ)("NEXT_PUBLIC_MARKETPLACE_LK_BASE_URL"),_="true"===(0,o.SJ)("NEXT_PUBLIC_FAKE_ESIA_ENABLED"),{clearCompare:h}=(0,s.T)({enabled:!0,storageKey:l.f});return(0,a.jsx)("div",{onClick:h,children:(0,a.jsx)(i.U,{className:m,serverConfig:null!=d?d:{},baseUrl:f,s3AssetsUrl:(0,o.SJ)("NEXT_PUBLIC_S3_ASSETS"),scenarioParams:{targetUri:n},query:{..._&&{uat:!0}},entryPointId:t,config:c,isSilent:!0,onAnalyticsEvent:e=>{let{eventCategory:t,eventAction:n,eventLabel:a}=e;(0,r._)(null!=t?t:"login-widget.click_button_login",n,{eventLabel:a}),u&&"click_button_login"===n&&(0,r._)(u.eventCategory,u.eventAction,{eventLabel:u.eventLabel})}})})}},9702:function(e,t,n){"use strict";n.d(t,{f:function(){return a},o:function(){return i}});let a="funds-compare-ids",i="funds-compare-tooltip-closed"},51615:function(e,t,n){"use strict";n.d(t,{T:function(){return c}});var a=n(2265),i=n(99376),l=n(49090);function s(e){return[...new Set(e.filter(e=>"string"==typeof e))].slice(0,4)}function r(e,t){if(!e)return[];let n=window.localStorage.getItem(t);if(!n)return[];try{let e=JSON.parse(n);if(!Array.isArray(e))return[];return s(e)}catch(e){return window.localStorage.removeItem(t),[]}}function o(e){let t=new URLSearchParams;return e.forEach(e=>{t.append("productIds",e)}),"/compare?".concat(t.toString())}function c(e){let{enabled:t,storageKey:n,initialCompareIds:c}=e,d=(0,i.useRouter)(),[u,m]=(0,a.useState)([]),[f,_]=(0,a.useState)(!1),[h,p]=(0,a.useState)(!1),x=u.length,v=(0,a.useCallback)(e=>{if(!e.length){_(!1);return}_(!0)},[]);(0,a.useEffect)(()=>{if(t){if(c){let e=s([...r(t,n),...c]);window.localStorage.setItem(n,JSON.stringify(e)),m(e),p(!0);return}m(r(t,n)),p(!0)}},[t,c,n]),(0,a.useEffect)(()=>{if(t)return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e);function e(e){if(e.key===n){if(!e.newValue){m([]);return}try{let t=JSON.parse(e.newValue);m(Array.isArray(t)?s(t):[])}catch(e){m([])}}}},[t,n]),(0,a.useEffect)(()=>{h&&v(u)},[u,h,v]);let b=(0,a.useCallback)(()=>{u.length<2||d.push(o(u))},[u,d]),g=(0,a.useCallback)(e=>{let a=r(t,n).filter(t=>t!==e);a.length<2||(window.localStorage.setItem(n,JSON.stringify(a)),m(a),d.replace(o(a)))},[t,d,n]),j=(0,a.useCallback)(()=>{window.localStorage.removeItem(n),m([]),_(!1)},[n]);return{compareIds:u,isCompareLimitReached:u.length>=4,isSnackbarClickable:x>1,isSnackbarOpen:f,snackbarDescription:1===x?"Добавьте еще один для сравнения":"Максимум для сравнения - 4",snackbarTitle:"Сравнить: ".concat((0,l._6)(x,["фонд","фонда","фондов"])),closeSnackbar:()=>_(!1),clearCompare:j,onSnackbarClick:b,removeCompare:g,toggleCompare:function(e){let a;let i=r(t,n);a=i.includes(e)?i.filter(t=>t!==e):i.length>=4?i:[...i,e],window.localStorage.setItem(n,JSON.stringify(a)),m(a)}}}},45087:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(2265),i=n(99376),l=n(31578);function s(e,t){let n=(0,i.useSearchParams)();(0,a.useEffect)(()=>{n&&(0,l.Rz)(Object.fromEntries(n),e,t)},[])}},96369:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});var a=n(2265),i=n(99376),l=n(42798),s=n.n(l);function r(){let e=(0,i.useParams)(),t=(0,i.usePathname)();return(0,a.useCallback)(n=>{let{prefix:a,element:i,name:l,index:r,id:o}=n;if(!t||!e)return"";let c=t.split("/").filter(e=>e).map(t=>{var n;return null!==(n=Object.keys(e).find(n=>e[n]===t))&&void 0!==n?n:t});c.unshift("funds");let d=c.join("-"),u=s()(l),m=void 0!==r?"-".concat(function(e){if(Number.isNaN(e)||e<0)throw Error("Incorrect value '".concat(e,"' for the property 'index'. Must be a number and >= 0}"));return e}(r)):"";return"".concat(a?"".concat(a,"-"):"").concat(d,"-").concat(i,"-").concat(u).concat(m).concat(o?"-".concat(o):"")},[e,t])}},51170:function(e){e.exports={authorContent:"AboutAuthorModal_authorContent__wVOAK",avatar:"AboutAuthorModal_avatar__BH1BL",socialNetworks:"AboutAuthorModal_socialNetworks__u2xO8",socialNetworkLogo:"AboutAuthorModal_socialNetworkLogo__36mvX",item:"AboutAuthorModal_item__1Jt9c"}},76318:function(e){e.exports={card:"AuthorCardList_card__O592Z",avatar:"AuthorCardList_avatar__riQk_"}},7523: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"}},18350: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"}},74695: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"}},97395:function(e){e.exports={chart:"LineChart_chart__UBzZU"}},74007:function(e){e.exports={card:"FundGeneraIInfo_card__15n07",title:"FundGeneraIInfo_title__1epZQ",infoCaption:"FundGeneraIInfo_infoCaption__laJ0V",info:"FundGeneraIInfo_info__J_CDk"}},91139:function(e){e.exports={row:"FundGeneraIInfoList_row__yhyCb",label:"FundGeneraIInfoList_label__R_KMV"}},94148:function(e){e.exports={advantages:"PlatformFundAdvantages_advantages__dDWeh",advantage:"PlatformFundAdvantages_advantage__26zkq",title:"PlatformFundAdvantages_title__aAe38",text:"PlatformFundAdvantages_text__uSBGE",icon:"PlatformFundAdvantages_icon___3qq_"}},26576:function(e){e.exports={description:"AboutFund_description__jif8Q",infoBlocksList:"AboutFund_infoBlocksList__Rgn7O"}},77075: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"}},29316:function(e){e.exports={card:"PlatformFundDetailAbout_card__zU7Yz",cardTitleWrapper:"PlatformFundDetailAbout_cardTitleWrapper__LydlC"}},40572: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"}},39255:function(e){e.exports={container:"PlatformFundDetailForming_container__pJMGg",progressBarFooter:"PlatformFundDetailForming_progressBarFooter__fK5No",text:"PlatformFundDetailForming_text__14PKH"}},84463:function(e){e.exports={card:"PlatformFundDetailHistoricalYield_card__Y7Yoa",title:"PlatformFundDetailHistoricalYield_title__HmqzH",caption:"PlatformFundDetailHistoricalYield_caption__RP8Py",tiles:"PlatformFundDetailHistoricalYield_tiles__Emwwv"}},61050:function(e){e.exports={buyButton:"PlatformFundDetailServerData_buyButton__7vTZh"}},17347: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"}},46534:function(e){e.exports={skeleton:"PromotionsBanner_skeleton__lP64v"}},46413:function(e){e.exports={uiSkeleton:"UiSkeleton_uiSkeleton__5gH0G",rounded:"UiSkeleton_rounded__e2mJS",inline:"UiSkeleton_inline__6UIts"}}}]);