(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7250],{35852:function(e,t,a){"use strict";a.d(t,{fK:function(){return n},oZ:function(){return i},$n:function(){return s},Tl:function(){return p}});let n="funds-compare-ids",i="funds-compare-tooltip-closed";var l=a(2265);let s=e=>{let{enabled:t,isLoading:a,storageKey:n}=e,[i,s]=(0,l.useState)(!1),[o,r]=(0,l.useState)(null);return(0,l.useEffect)(()=>{if(t&&"true"!==window.localStorage.getItem(n)){let e=window.setTimeout(()=>{s(!0)});return()=>{window.clearTimeout(e)}}},[t,n]),(0,l.useEffect)(()=>{if(!t||!i||a||!o)return;let{top:e,height:n}=o.getBoundingClientRect(),l=e+window.scrollY,s=window.innerHeight/2;window.scrollTo({behavior:"smooth",top:Math.max(l-s+n/2,0)})},[o,t,i,a]),{isCompareHintOpen:i,setCompareHintCardElement:r,closeCompareHint:function(){s(!1),window.localStorage.setItem(n,"true")}}};var o=a(99376),r=a(49090);let c=e=>[...new Set(e.filter(e=>"string"==typeof e))].slice(0,4),d=(e,t)=>{if(!e)return[];let a=window.localStorage.getItem(t);if(!a)return[];try{let e=JSON.parse(a);if(!Array.isArray(e))return[];return c(e)}catch(e){return window.localStorage.removeItem(t),[]}},u=e=>"Сравнить: ".concat((0,r._6)(e,["фонд","фонда","фондов"])),m=e=>1===e?"Добавьте еще один для сравнения":"Максимум для сравнения - 4",_=e=>{let t=new URLSearchParams;return e.forEach(e=>{t.append("productIds",e)}),"/compare?".concat(t.toString())},p=e=>{let{enabled:t,storageKey:a,initialCompareIds:n}=e,i=(0,o.useRouter)(),[s,r]=(0,l.useState)([]),[p,h]=(0,l.useState)(!1),[f,x]=(0,l.useState)(!1),b=s.length,v=(0,l.useCallback)(e=>{if(!e.length){h(!1);return}h(!0)},[]);(0,l.useEffect)(()=>{if(t){if(n){let e=c([...d(t,a),...n]);window.localStorage.setItem(a,JSON.stringify(e)),r(e),x(!0);return}r(d(t,a)),x(!0)}},[t,n,a]),(0,l.useEffect)(()=>{if(t)return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e);function e(e){if(e.key===a){if(!e.newValue){r([]);return}try{let t=JSON.parse(e.newValue);r(Array.isArray(t)?c(t):[])}catch(e){r([])}}}},[t,a]),(0,l.useEffect)(()=>{f&&v(s)},[s,f,v]);let g=(0,l.useCallback)(()=>{s.length<2||i.push(_(s))},[s,i]),j=(0,l.useCallback)(e=>{let n=d(t,a).filter(t=>t!==e);n.length<2||(window.localStorage.setItem(a,JSON.stringify(n)),r(n),i.replace(_(n)))},[t,i,a]),N=(0,l.useCallback)(()=>{window.localStorage.removeItem(a),r([]),h(!1)},[a]);return{compareIds:s,isCompareLimitReached:s.length>=4,isSnackbarClickable:b>1,isSnackbarOpen:p,snackbarDescription:m(b),snackbarTitle:u(b),closeSnackbar:()=>h(!1),clearCompare:N,onSnackbarClick:g,removeCompare:j,toggleCompare:function(e){let n;let i=d(t,a);n=i.includes(e)?i.filter(t=>t!==e):i.length>=4?i:[...i,e],window.localStorage.setItem(a,JSON.stringify(n)),r(n)}}}},84846:function(e,t,a){"use strict";a.d(t,{CompareBuyButton:function(){return s}});var n=a(57437),i=a(35852),l=a(22806);function s(e){let{clearCompare:t}=(0,i.Tl)({enabled:!0,storageKey:i.fK});return(0,n.jsx)(l.BuyButton,{...e,onWidgetClick:t})}},32033:function(e,t,a){"use strict";a.d(t,{PlatformFundDetailClientPage:function(){return eC}});var n=a(57437),i=a(2265),l=a(42586),s=a(80684),o=a(98456),r=a(35563),c=a(75461),d=a(61994),u=a(52990),m=a(10655),_=a(314),p=a(13730),h=a(96720),f=a(36817),x=a(33145),b=a(93473),v=a.n(b);function g(e){let{author:t}=e,a=(0,l.useTranslations)();return(0,n.jsxs)("div",{children:[(0,n.jsxs)(f.T,{dataQa:{element:h.xJ.Block,name:"authorContent"},className:v().authorContent,children:[(0,n.jsx)(o.G2,{fullUrl:"".concat((0,m.S)("NEXT_PUBLIC_S3_ASSETS"),"/investment/authors/").concat(null==t?void 0:t.avatarKey,".png"),size:124,alt:"Данные автора",className:v().avatar}),(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Header,name:"authorContent"},children:(0,n.jsx)(r.X6,{type:"h4",className:"mt-2 mb-2",children:null==t?void 0:t.name})}),(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Block,name:"authorSubname"},className:"mb-4",children:(0,n.jsx)(r.xv,{children:null==t?void 0:t.subname})}),(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Block,name:"socialNetworks"},className:v().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:v().item,onClick:()=>{window.open(e.url,"_blank")},children:[(0,n.jsx)("div",{className:v().socialNetworkLogo,children:(0,n.jsx)(x.default,{src:"".concat((0,m.S)("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)(f.T,{dataQa:{element:h.xJ.Block,name:"modalBio"},className:"mt-5 mt-l-6",children:[(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Header,name:"modalBio"},className:"mt-2 mb-2",children:(0,n.jsx)(r.X6,{type:"h2",children:a("platform-fund.detail.overview.author.modal.bio.header")})}),(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Text,name:"modalBio"},children:(0,n.jsx)(r.xv,{size:"16",children:null==t?void 0:t.bio})})]})]})}var j=a(57970),N=a(48492),y=a.n(N);function S(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:y().row,children:[(0,n.jsx)("div",{className:y().label,"data-qa":"detail-list-item-label",children:t}),(0,n.jsx)("div",{className:y().caption,"data-qa":"detail-list-item-caption",children:a})]},t)})})}var T=a(49090),k=a(22345),C=a.n(k),A=a(66113),w=a(22451),F=a(31630),P=a.n(F);function I(e,t,a,i){let l=a&&t.historicalYield[w.ew[a.id]],s=(null==i?void 0:i.priceDate)&&"на ".concat((0,A.p)(i.priceDate,{format:"dd.MM.yyyy"})),o=[];if(l){let e=C()(l)&&l>0;o.push({caption:"Доходность",label:(0,n.jsxs)("span",{className:(0,d.Z)(e?P().yieldPositive:P().yieldNegative),children:[e&&"+",(0,T.og)(l.toFixed(2))]}),hint:"sc-funds.detail.charts.deltaPay.hint"})}switch(e){case 1:(null==i?void 0:i.dealPrice)&&o.unshift({caption:"Стоимость пая",label:(0,T.lb)(i.dealPrice,{decimalIsWithoutZeros:!0}),additionalText:s,hint:"sc-funds.detail.charts.pay.hint"});break;case 2:(null==i?void 0:i.dealNetAssetValue)&&o.unshift({caption:"Стоимость чистых активов",label:(0,T.lb)(i.dealNetAssetValue,{decimalIsWithoutZeros:!0}),additionalText:s,hint:"sc-funds.detail.charts.sca.hint"})}return o}var L=a(69702),E=a.n(L);function B(e){let{fund:t,lastPrice:a}=e,i=(0,l.useTranslations)(),s=(null==a?void 0:a.priceDate)?(0,A.p)(null==a?void 0:a.priceDate,{format:"dd.MM.yyyy"}):null,c=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)(f.T,{tag:r.Zb,className:E().card,dataQa:{element:h.xJ.Block,name:"generaIInfo"},children:[(0,n.jsx)("div",{"data-qa":"fund-detail-details-title",children:(0,n.jsx)(r.X6,{type:"h3",className:E().title,children:"Общая информация"})}),(0,n.jsx)(S,{list:c}),a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:E().infoCaption,children:["Информация о фонде актуальна на ",s]}),(0,n.jsx)(o.EB,{className:"mt-1",ghost:!0,expandedContent:(0,n.jsx)(r.xv,{size:"16",className:E().info,dangerouslySetInnerHTML:{__html:(0,j.TU)(i.raw("fund.detail.general-info.expanded-line.text"))}}),children:(0,n.jsx)(r.xv,{size:"16",children:i("fund.detail.general-info.first-line.text")})})]})]})}var D=a(59058),Q=a(11268),J=a.n(Q);function R(e){let{advantages:t}=e,a=(0,l.useTranslations)(),i=!t||0===t.length,s=(0,D.J)();return!i&&(0,n.jsxs)(f.T,{tag:r.Zb,dataQa:{element:h.xJ.Block,name:"advantages"},children:[(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Header,name:"advantages"},children:(0,n.jsx)(r.X6,{type:"h2",children:a("platform-fund.detail.advantages.header")})}),(0,n.jsx)(f.T,{tag:"ul",dataQa:{element:h.xJ.List,name:"advantages"},className:J().advantages,children:null==t?void 0:t.map((e,t)=>(0,n.jsxs)("li",{className:J().advantage,children:[(0,n.jsx)(f.T,{tag:"span",dataQa:{element:h.xJ.Icon,name:"advantages"},className:J().icon,children:(0,n.jsx)(o.G2,{fullUrl:"".concat((0,m.S)("NEXT_PUBLIC_S3_ASSETS"),"/investment/advantages/").concat(e.webImageKey,".png"),size:60,alt:""})}),(0,n.jsxs)("div",{children:[(0,n.jsx)(r.X6,{className:J().title,dataQa:s({element:h.xJ.Header,name:"advantage"}),type:"h4",children:e.title}),(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Text,name:"description"},tag:"span",className:J().text,dangerouslySetInnerHTML:{__html:e.description}})]})]},t))})]})}var O=a(82772),U=a.n(O);function W(e){let{authors:t,className:a,onButtonClick:i}=e;return(0,n.jsx)("div",{children:null==t?void 0:t.map((e,t)=>(0,n.jsxs)(r.Zb,{className:(0,d.Z)(U().card,a),children:[(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Icon,name:"author"},children:(0,n.jsx)(o.oc,{fullUrl:"".concat((0,m.S)("NEXT_PUBLIC_S3_ASSETS"),"/investment/authors/").concat(e.avatarKey,".png"),alt:"Данные автора",label:e.name,caption:e.subname,size:40,className:U().avatar})}),(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Button,name:"author"},children:(0,n.jsx)(c.zx,{shape:"circle-icon",size:"xs",iconRight:(0,n.jsx)(s.o5G,{}),onClick:()=>i&&i(e)})})]},t))})}var M=a(24635),Y=a.n(M);let H=()=>(0,n.jsx)("div",{className:Y().cardTitleWrapper,children:(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Header,name:"aboutTitle"},children:(0,n.jsx)(r.X6,{type:"h2",children:"О фонде"})})});var Z=a(48921),z=a.n(Z);function G(e){let{label:t,caption:a,Icon:i,hint:o}=e,r=(0,l.useTranslations)();return(0,n.jsxs)(f.T,{dataQa:{element:h.xJ.Block,name:"aboutFund"},className:z().block,children:[(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Icon,name:"aboutFund"},className:z().iconWrapper,children:(0,n.jsx)(i,{})}),(0,n.jsxs)(f.T,{dataQa:{element:h.xJ.Tile,name:"aboutFund"},className:z().tile,children:[(0,n.jsxs)("div",{className:z().caption,children:[(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Caption,name:"aboutFund"},className:z().captionText,children:a}),o&&(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Hint,name:"aboutFund"},children:o&&(0,n.jsx)(c.kW,{text:r(o),position:"bottom",inverted:!0,children:(0,n.jsx)(s.faL,{className:z().captionIcon})})})]}),(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Label,name:"aboutFund"},className:z().label,children:t})]})]})}var V=a(36444),K=a.n(V);function X(e){let{description:t,items:a,className:i}=e;return(0,n.jsxs)("div",{className:(0,d.Z)(i),children:[t&&(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Block,name:"aboutDescription"},className:K().description,dangerouslySetInnerHTML:{__html:t}}),(0,n.jsx)("div",{className:K().infoBlocksList,children:a.map(e=>(0,n.jsx)(G,{...e},e.caption))})]})}var q=a(12057),$=a.n(q);function ee(e){var t,a;let{fund:i,className:l,onAuthorButtonClick:o,buttonSlot:c}=e,{description:u}=i,_=null!==(a=null==(t=null!=u?u:"")?void 0:t.replace(/\sstyle=["\\]+[a-z0-9-:; !\s]*[\\"]+/gm,""))&&void 0!==a?a:"",p=function(e){let{minInvest:t,fundsObjectNameRus:a,risk:n,fundCompNameRus:i,payoutFrequency:l}=e,o="true"===(0,m.S)("NEXT_PUBLIC_FEATURE_TOGGLE_TAGS_AND_BADGES");return[{caption:"Состав фонда",label:a,Icon:s.UFm},{caption:"Покупка",label:"От ".concat((0,T.lb)(t,{decimalIsWithoutZeros:!0})),Icon:s.OWc},{caption:"Уровень риска",label:w.pY[n],Icon:s.hL},{caption:"Управляющая компания",label:i,Icon:s.N3b},...o?[{caption:"Выплата дохода",label:w.HA[l],Icon:s.OBR}]:[]].filter(e=>!!e.label)}(i);return(0,n.jsxs)(f.T,{tag:r.Zb,className:(0,d.Z)($().card,l),dataQa:{element:h.xJ.Block,name:"aboutCard"},children:[(0,n.jsx)(H,{}),(0,n.jsx)(X,{className:"mt-6 mt-l-7",description:_,items:p}),(0,n.jsx)(W,{authors:i.authors,className:"mt-8",onButtonClick:o}),c]})}var et=a(7432),ea=a(24997),en=a.n(ea);function ei(e){let{formingAmount:t,formingAmountLimit:a}=e,i=function(e,t){let a=100*e/t;return{amount:(0,T.lb)(e,{decimalIsWithoutZeros:!0}),min:(0,T.lb)(0),max:(0,T.lb)(t,{decimalIsWithoutZeros:!0}),percentFormatted:(0,T.og)((0,et.l)(a)),percent:a,theme:a<=25?"default":a<=50?"error":a<=75?"warning":"success"}}(null!=t?t:0,null!=a?a:0),l=(0,c._m)("m");return(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Block,name:"fundDetailForming"},children:(0,n.jsxs)(r.Zb,{className:en().container,children:[(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Header,name:"fundDetailForming"},className:"mb-1",children:(0,n.jsx)(r.xv,{size:l?"18":"16",children:"Формирование фонда"})}),(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Text,name:"fundDetailFormingAmount"},className:"mb-3",children:(0,n.jsx)(r.xv,{size:l?"28":"24",weight:"medium",children:i.amount})}),(0,n.jsx)(f.T,{dataQa:{element:h.xJ.ProgressBar,name:"fundDetailForming"},className:"mb-3",children:(0,n.jsx)(r.ko,{value:i.percent,variant:i.theme})}),(0,n.jsxs)("div",{className:en().progressBarFooter,children:[(0,n.jsx)(f.T,{tag:"span",dataQa:{element:h.xJ.Text,name:"fundDetailFormingMin"},className:en().text,children:i.min}),(0,n.jsx)(f.T,{tag:"span",dataQa:{element:h.xJ.Text,name:"fundDetailFormingMax"},className:en().text,children:i.max})]})]})})}var el=a(7480),es=a.n(el);let eo=e=>{let{caption:t,yieldRate:a}=e,i=C()(a),l=i&&a>0,s=i?(0,T.og)(null==a?void 0:a.toFixed(2)):"—";return(0,n.jsxs)("div",{className:es().tile,"data-qa":"yield-tile",children:[(0,n.jsx)("div",{className:es().caption,"data-qa":"yield-tile-caption",children:t}),(0,n.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 er=a(60246),ec=a.n(er);function ed(e){let{date:t,tiles:a}=e,i=(0,l.useTranslations)();return(0,n.jsxs)(f.T,{tag:r.Zb,className:ec().card,dataQa:{element:h.xJ.Block,name:"historicalYield"},children:[(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Header,name:"historicalYieldTitle"},children:(0,n.jsx)(r.X6,{type:"h2",className:ec().title,children:"Историческая доходность"})}),t&&(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Caption,name:"historicalYield"},className:ec().caption,children:i("historical-yield.caption",{date:t})}),(0,n.jsx)("div",{className:ec().tiles,children:a.filter(e=>{let{yieldRate:t}=e;return!!t}).map(e=>{let{caption:t,yieldRate:a}=e;return(0,n.jsx)(eo,{caption:t,yieldRate:a},t)})})]})}function eu(e){let{lastPrice:t,historicalYield:a}=e,i=(null==t?void 0:t.priceDate)&&(0,A.p)(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)(ed,{date:i,tiles:l})}var em=a(44468),e_=a.n(em);let ep=e=>{let{label:t,caption:a,hint:i,additionalText:o}=e,r=(0,l.useTranslations)();return(0,n.jsxs)("div",{className:e_().block,"data-qa":"info-block-wrapper",children:[(0,n.jsxs)("div",{className:e_().caption,"data-qa":"info-block-caption",children:[(0,n.jsx)("div",{className:e_().captionText,children:a}),i&&(0,n.jsx)(c.kW,{text:r(i),position:"bottom",inverted:!0,children:(0,n.jsx)(s.faL,{className:e_().captionIcon})})]}),(0,n.jsx)("div",{className:e_().label,"data-qa":"info-block-label",children:t}),o&&(0,n.jsx)("div",{className:e_().additionalText,"data-qa":"info-block-additional-text",children:o})]})};var eh=a(91978),ef=a(7310),ex=a.n(ef),eb=a(6720),ev=a(36560),eg=a(67616),ej=a.n(eg);let eN=e=>{let{selectedRange:t=60,prices:a=[],selectedTab:l,lastPrice:s}=e,o=(0,i.useRef)(null),r=ex()(function(){d(),(c=(0,eh.C2)(o.current,eb.c0)).addLineSeries(eb._5).setData((0,ev.W$)(a,l)),c.priceScale().applyOptions(eb.WY),c.timeScale().applyOptions(eb.Z2),c.timeScale().fitContent(),c.timeScale().setVisibleRange((0,ev.Uf)(t,s))},100),c=null;function d(){c&&(c.remove(),c=null)}return(0,i.useEffect)(()=>(r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r),d()}),[t,l]),(0,n.jsx)("div",{ref:o,className:ej().chart,"data-qa":"line-chart"})};function ey(e){let{prices:t,lastPrice:a,tiles:i,chipsList:l,selectedChips:s,selectedTab:o,className:u,handleTabChange:m,handleChipsChange:_}=e;return(0,n.jsxs)(f.T,{tag:r.Zb,className:(0,d.Z)(P().card,u),dataQa:{element:h.xJ.Tabs,name:"chart"},children:[(0,n.jsx)(c.sY,{activeTabId:o,onTabChange:m,className:P().tabs,rounded:!0,size:"m",tabs:eb.Ht,stretch:!0,weightVariant:"regular"}),(0,n.jsx)("div",{className:P().tiles,children:i.map(e=>(0,n.jsx)(ep,{...e},e.caption))}),(0,n.jsxs)("div",{className:P().charts,children:[(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Block,name:"chartChips"},children:(0,n.jsx)(c.cL,{size:"m",chips:l,value:null==s?void 0:s.id,activeVariant:"secondary",onChipClick:e=>_(Number(e)),className:P().chips})}),(0,n.jsx)(eN,{selectedRange:null==s?void 0:s.id,selectedTab:o,prices:t,lastPrice:a})]})]})}function eS(e){var t;let{fund:a,lastPrice:l,className:s}=e,{fundPrice:o}=a,r=w.ju.filter(e=>{var t;let n=w.ew[e.id];return C()(null===(t=a.historicalYield)||void 0===t?void 0:t[n])}),[c,d]=(0,i.useState)(1),[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]}(r)),[p,h]=(0,i.useState)(I(c,a,m,l)),f=null!==(t=null==o?void 0:o.map(e=>({date:e.priceDate,pay:e.dealPrice,sca:e.dealNetAssetValue})))&&void 0!==t?t:[];return(0,n.jsx)(ey,{tiles:p,lastPrice:{date:l.priceDate,pay:l.dealPrice,sca:l.dealNetAssetValue},prices:f,selectedTab:c,selectedChips:m,chipsList:r,className:s,handleTabChange:function(e){d(e),h(I(e,a,m,l))},handleChipsChange:function(e){let t=r.find(t=>t.id===e);t&&(_(t),h(I(c,a,t,l)),(0,u._)("platform_funds_detailed_page","click_to_delta_date",{eventLabel:a.id,eventValue:t.label}))}})}var eT=a(27957),ek=a.n(eT);function eC(e){var t,a,x;let{fund:b,aggregatorIds:v,promotions:j,buttonSlot:N}=e;(0,p._)(v,b.id);let[y,S]=(0,i.useState)(!1),[T,k]=(0,i.useState)(),C=(0,l.useTranslations)(),A=!!b.commissions,w="AT_FORMING"===b.status,F=(null===(t=b.fundPrice)||void 0===t?void 0:t.length)?b.fundPrice[b.fundPrice.length-1]:null,P=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}(b.historicalYield),I=(0,i.useMemo)(()=>(0,_.z)({promotions:j,type:"SITE_DETAIL",id:b.id}),[j]),L=(null!==(a=b.authors)&&void 0!==a?a:[])[0];return(0,i.useEffect)(()=>{(0,u._)("platform_funds_detailed_page","platform_funds_detailed_page_view",{eventLabel:b.id})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:(0,d.Z)(ek().cards),children:[(0,n.jsxs)("div",{className:ek().price,children:[F&&!w&&(0,n.jsx)(eS,{fund:b,lastPrice:F}),w&&(0,n.jsx)(ei,{formingAmount:b.formingAmount,formingAmountLimit:b.formingAmountLimit})]}),(0,n.jsxs)("div",{className:ek().about,children:[(0,n.jsx)(ee,{fund:b,className:ek().stickyFundAbout,onAuthorButtonClick:e=>{k(e),S(!0)},buttonSlot:N}),(0,n.jsx)(c.u_,{dataQa:"app-author-modal",header:{title:"Об авторе"},size:"l",open:y,onClose:()=>S(!1),footer:{children:(0,n.jsx)(r.X2,{children:(0,n.jsx)(r.JX,{size:{xs:12,s:5},children:(0,n.jsx)(c.zx,{label:"Понятно",stretch:!0,variant:"secondary",onClick:()=>S(!1)})})})},children:(0,n.jsx)(g,{author:T})})]}),(0,n.jsxs)("div",{className:ek().other,children:[I.isVisible&&(0,n.jsx)(_.b,{desktopType:"details",bannerKey:I.bannerWebKey,onClick:()=>{I.analytics&&(0,u._)("investment_funds","web_showcase_detail_click_promobanner",{eventLabel:I.analytics.eventLabel}),window.open(I.actionUrl,"_blank")}}),F&&P?(0,n.jsx)(eu,{historicalYield:b.historicalYield,lastPrice:F}):null,b.advantages&&(0,n.jsx)(R,{advantages:b.advantages}),b.strategy?(0,n.jsx)(o.qr,{strategy:b.strategy,author:{...L,avatarKey:null!==(x=null==L?void 0:L.avatarKey)&&void 0!==x?x:""},descriptionHeader:C("platform-fund.detail.strategy.header"),keyIdeasHeader:C("platform-fund.detail.strategy.key-ideas.header"),s3MinioUrl:(0,m.S)("NEXT_PUBLIC_S3_ASSETS")}):null,(0,n.jsx)(o.FB,{fundPrice:b.fundPrice,fundStructure:b.fundStructure,status:"AT_FORMING",title:C("sc-fund.piechart-structure.title"),noStructureTitle:C("sc-fund.piechart-no-structure.at_forming.title"),noStructureText:C("sc-fund.piechart-no-structure.at_forming.text"),dataQa:"funds-platformFundId",innerDataQa:"fund-detail-structure"}),A&&(0,n.jsx)(f.T,{dataQa:{element:h.xJ.Collapse,name:"commissions"},className:ek().commissions,children:(0,n.jsx)(c.UQ,{children:(0,n.jsx)(c.Qd,{id:"commissions",title:C("sc-fund.commissions.title"),className:ek().commissionsItem,children:(0,n.jsx)(o.GL,{commissions:b.commissions,texts:{management:{title:C("sc-fund.commissions.new.management.title"),text:C("sc-fund.commissions.new.management.text")},operation:{title:C("sc-fund.commissions.new.operation.title"),text:C("sc-fund.commissions.new.operation.text")},modal:{management:{title:C("sc-fund.commissions.new.modal.management.title"),text:C("sc-fund.commissions.new.modal.management.text"),items:[{title:C("sc-fund.commissions.new.modal.management.items.company.title"),caption:C("sc-fund.commissions.new.modal.management.items.company.text"),percent:b.commissions.managementCommissions.managementCompanyCommissionPercentValue},{title:C("sc-fund.commissions.new.modal.management.items.registrar.title"),caption:C("sc-fund.commissions.new.modal.management.items.registrar.text"),percent:b.commissions.managementCommissions.specialRegistrarCommissionPercentValue},{title:C("sc-fund.commissions.new.modal.management.items.other.title"),caption:C("sc-fund.commissions.new.modal.management.items.other.text"),percent:b.commissions.otherCommissions.percentValue}]},operation:{title:C("sc-fund.commissions.new.modal.operation.title"),text:C("sc-fund.commissions.new.modal.operation.text")},bullets:[{icon:s.PSG,title:C("sc-fund.commissions.new.modal.bullets.yield.title"),text:C("sc-fund.commissions.new.modal.bullets.yield.text")},{icon:s.qtE,title:C("sc-fund.commissions.new.modal.bullets.choice.title"),text:C("sc-fund.commissions.new.modal.bullets.choice.text")}]}}})})})})]})]}),(0,n.jsx)(B,{fund:b,lastPrice:F})]})}},30930:function(e,t,a){"use strict";a.d(t,{PlatformFundDetailLayoutClientPage:function(){return F}});var n=a(57437),i=a(2265),l=a(99376),s=a(35563),o=a(75461),r=a(60227),c=a(52990),d=a(10655),u=a(35852),m=a(42586),_=a(80684),p=a(98456),h=a(61994),f=a(36560),x=a(96720),b=a(36817),v=a(46175),g=a.n(v);let j="share-social-list";function N(e){let{className:t}=e,a=(0,l.useParams)(),s=null==a?void 0:a.platformFundId,[r,c]=(0,i.useState)(!1),d=(0,f.Wl)(s);return(0,n.jsxs)("div",{className:(0,h.Z)(g().shareWrapper,t),children:[(0,n.jsx)(b.T,{className:(0,h.Z)(g().shareSocialList,{[g().open]:r}),id:j,tag:"ul",dataQa:{element:x.xJ.List,name:"socialShareList"},children:d.map(e=>(0,n.jsx)(b.T,{tag:"li",dataQa:{element:x.xJ.Block,name:"socialShareListItem"},children:(0,n.jsx)("button",{className:g().shareSocialButton,style:e.style,type:"button","aria-label":e.name,onClick:()=>{window.open(e.url,"","toolbar=0,status=0,scrollbars=1,resizable=1,width=500,height=300")},children:e.icon})},e.name))}),(0,n.jsx)(b.T,{dataQa:{element:x.xJ.Button,name:"socialShareButton"},children:(0,n.jsx)(o.zx,{className:(0,h.Z)(g().shareButton,{[g().shareButtonOpen]:r}),shape:"circle-icon",size:"xs",variant:"secondary",appearance:r?"ghost":"fill","aria-label":"Поделиться в соцсетях","aria-expanded":r?"true":"false","aria-controls":j,iconLeft:r?(0,n.jsx)(_.JTd,{}):(0,n.jsx)(_.FOM,{}),onClick:()=>c(e=>!e)})})]})}var y=a(33315),S=a(59058),T=a(14126),k=a.n(T);function C(e){let{isin:t,shortName:a,logoKey:l,tags:r,hasCompare:c,isCompared:u,isCompareDisabled:f,onToggleCompare:v}=e,g=(0,m.useTranslations)(),j=(0,S.J)(),T=(0,y.E)(r||[],"secondary"),[C,A]=(0,i.useState)(!1),[w,F]=(0,i.useState)(null);return(0,n.jsxs)("div",{className:k().container,children:[(0,n.jsxs)(b.T,{tag:s.Zb,className:k().fundCard,dataQa:{element:x.xJ.Block,name:"headerCard"},children:[(0,n.jsxs)("div",{className:k().top,children:[(0,n.jsxs)("div",{className:k().info,children:[(0,n.jsx)(b.T,{dataQa:{element:x.xJ.Header,name:"nameRus"},children:(0,n.jsx)(s.X6,{type:"h1",children:a})}),(0,n.jsx)("div",{className:k().captionWrapper,children:t?(0,n.jsx)(b.T,{dataQa:{element:x.xJ.Text,name:"isinCode"},className:(0,h.Z)(k().caption),children:t}):""})]}),(0,n.jsx)(b.T,{dataQa:{element:x.xJ.Icon,name:"fundLogo"},className:k().logoWrapper,children:(0,n.jsx)(p.G2,{logoKey:l,alt:"Логотип Фонда",s3MinioUrl:(0,d.S)("NEXT_PUBLIC_S3_ASSETS")})})]}),T.length>0&&(0,n.jsx)("div",{className:k().tags,children:T.map((e,t)=>(0,n.jsx)(o.Vp,{label:e.label,variant:e.variant,rounded:!0,dataQa:e.dataQa,onIconRightClick:()=>{e.hint&&(F(e),A(!0))},iconRight:e.hint?(0,n.jsx)(_.faL,{className:k().captionIcon}):void 0},"".concat(e.variant,"-").concat(t)))})]}),(0,n.jsxs)(b.T,{tag:s.Zb,className:k().linksCard,dataQa:{element:x.xJ.Block,name:"socialCard"},children:[c&&(0,n.jsx)(o.zx,{dataQa:j({element:x.xJ.Button,name:"compareFund"}),"aria-label":g("sc-fund.showcase.card.button.compare.aria-label"),label:g("sc-fund.showcase.card.button.compare.label"),iconLeft:(0,n.jsx)(_.jwH,{}),onClick:v,size:"xs",variant:u?"primary":"secondary",disabled:f}),(0,n.jsx)(N,{})]}),(0,n.jsx)(o.u_,{dataQa:"app-tag-detail-hint-modal",header:{title:""},size:"l",open:C,onClose:()=>A(!1),footer:{children:(0,n.jsx)(s.X2,{children:(0,n.jsx)(s.JX,{size:{xs:12,s:5},children:(0,n.jsx)(o.zx,{label:"Понятно",stretch:!0,variant:"secondary",onClick:()=>A(!1)})})})},children:null==w?void 0:w.hint})]})}var A=a(6720),w=a(88110);function F(e){let{children:t,fund:a}=e,m=(0,l.usePathname)(),_=(0,l.useRouter)(),p=(null!=m?m:"").includes("posts"),[h,b]=(0,i.useState)(p?2:1),v=(0,S.J)(),g=(0,f.um)(a.id),j="true"===(0,d.S)("NEXT_PUBLIC_FEATURE_TOGGLE_FUNDS_COMPARE_ENABLED"),{compareIds:N,isCompareLimitReached:y,toggleCompare:T,isSnackbarOpen:k,isSnackbarClickable:F,snackbarTitle:P,snackbarDescription:I,closeSnackbar:L,onSnackbarClick:E}=(0,u.Tl)({enabled:j,storageKey:u.fK}),B=[{label:"Главная",href:"/"},{label:"Фонды",href:r.p},{label:a.shortName,href:p?"".concat(r.p,"/").concat(a.id):void 0},...p?[{label:"Инсайты"}]:[]],D="true"===(0,d.S)("NEXT_PUBLIC_FEATURE_TOGGLE_POSTS_ENABLED");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(w.A,{open:j&&k,title:P,description:I,isClickable:F,onClose:L,onClick:function(){E(),(0,c._)("web_investment_funds_comparison","detailed_snackbar_click")}}),(0,n.jsxs)(s.W2,{children:[(0,n.jsx)(o.Oo,{className:"pt-4 mb-4",items:B,dataQa:v({element:x.xJ.Breadcrumbs,name:"detailFund"})}),(0,n.jsx)(C,{shortName:a.shortName,isin:a.isin,logoKey:a.logoKey,tags:a.tags,hasCompare:j,isCompared:N.includes(a.id),isCompareDisabled:y&&!N.includes(a.id),onToggleCompare:()=>T(a.id)}),D&&(0,n.jsx)(o.mQ,{tabs:A.du,activeTabId:h,onTabChange:e=>{var t;(t=Number(e))!==h&&(b(t),_.push(g[t].url))}}),t]})]})}},29768:function(e,t,a){"use strict";a.d(t,{PlatformFundDetailPostsClientPage:function(){return D}});var n=a(57437),i=a(2265),l=a(99376),s=a(42586),o=a(75461),r=a(95677);a(94295);var c=a(96720);let d=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return r.Sc.post.fetchPosts(...t)};var u=a(22451),m=a(36817),_=a(35563),p=a(61994),h=a(69194),f=a(87108),x=a.n(f);function b(){return(0,n.jsx)(m.T,{dataQa:{element:h.x.Block,name:"fundPosts"},children:(0,n.jsx)("div",{className:x().tabs,children:(0,n.jsx)(_.Od,{inline:!0,className:(0,p.Z)(x().skeleton)})})})}var v=a(49090),g=a(98456),j=a(77337),N=a(10655),y=a(71668),S=a.n(y);function T(){return(0,n.jsx)("ul",{className:S().container,children:[1,2,3].map(e=>(0,n.jsx)("li",{className:S().cardWrapper,children:(0,n.jsxs)(_.Zb,{className:S().card,children:[(0,n.jsx)(_.Od,{height:40}),(0,n.jsx)(_.Od,{height:180}),(0,n.jsx)(_.Od,{height:26}),(0,n.jsx)(_.Od,{height:60})]})},e))})}var k=a(44644),C=a.n(k);function A(e){let{isLoading:t,items:a}=e,i=(0,l.useParams)(),s=null==i?void 0:i.platformFundId,o=(0,l.useRouter)(),r=(0,N.S)("NEXT_PUBLIC_MARKETPLACE_LK_BASE_URL"),c="true"===(0,N.S)("NEXT_PUBLIC_FAKE_ESIA_ENABLED");if(t)return(0,n.jsx)(T,{});function d(){let e=(0,v.If)().enableSkipLoginScreen().encode(),t=(0,j.jb)("".concat(r,"/investment/funds/").concat(s,"/purchase"),{context:e,...c&&{uat:!0}});o.replace(t)}return(0,n.jsx)(m.T,{className:C().container,tag:"ul",dataQa:{element:h.x.Block,name:"postList"},children:a.map(e=>(0,n.jsx)(m.T,{tag:"li",dataQa:{element:h.x.Block,name:"postCard"},className:C().card,onClick:()=>{e.isAccessible&&o.push("/".concat(s,"/posts/").concat(e.id))},children:(0,n.jsx)(g.y4,{item:e,onBuyClick:d})},e.id))})}var w=a(33145),F=a(81637),P=a.n(F),I={src:"/invest/funds/_next/static/media/cat.132f7876.png",height:240,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAANlBMVEVISEh7gnu6dkcREhWwbVIUFhknKy4jGR0pLCwKCgqJNhtTVVVRT01ycm2oc06Kj4gYGRxBPz1CPHzqAAAAEHRSTlMByVLLGnBTKT4MQZKB5cL17Iqe2QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAClJREFUeJxjYGBgZ2dnYwABHkFeAVYGBiY+bkZ+AWZ2BhYuThYODg5OAA2RANyemfWFAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4};function L(e){let{title:t,text:a}=e;return(0,n.jsx)(_.Zb,{children:(0,n.jsxs)("div",{className:P().container,children:[(0,n.jsx)(w.default,{src:I,alt:"",width:220,height:120}),(0,n.jsx)(_.xv,{size:"20",weight:"medium",children:t}),(0,n.jsx)(_.xv,{size:"14",className:P().text,children:a})]})})}var E=a(92294),B=a.n(E);function D(e){let{posts:t}=e,a=(0,s.useTranslations)(),r=(0,l.useParams)(),_=null==r?void 0:r.platformFundId,[p,h]=(0,i.useState)(u.ww[0].id),[f]=(0,i.useState)(!1),[x,v]=(0,i.useState)(0),[g,j]=(0,i.useState)(!1),[N,y]=(0,i.useState)(t),S=(0,i.useRef)(null);async function T(e){h(e),j(!0),v(0);try{let t=await d({fundId:_,limit:u.h2,offset:0,participantsOnly:e===u.ww[1].id||void 0});y(t)}catch(e){console.error(e)}finally{j(!1)}}let k=(0,i.useCallback)(async()=>{if(!N||0===N.data.length||!(N.total>(x+1)*u.h2))return;let e=x+1;try{let t=await d({fundId:_,limit:u.h2,offset:e,participantsOnly:p===u.ww[1].id}),a={...t,data:[...N.data,...t.data]};v(e),y(a)}catch(e){console.error(e)}},[p,_,x,N]);return((0,i.useEffect)(()=>{let e=new IntersectionObserver(e=>{!e[0].isIntersecting||f||g||k()},{threshold:.1}),t=S.current;return t&&e.observe(t),()=>{t&&e.unobserve(t)}},[f,g,k]),f||!N)?(0,n.jsx)(b,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.T,{dataQa:{element:c.xJ.Chips,name:"post"},children:(0,n.jsx)(o.cL,{className:B().chips,value:p,chips:u.ww,onChipClick:e=>T(Number(e)),size:"m",variant:"primary"})}),!f&&N&&0===N.data.length?(0,n.jsx)(L,{title:a("posts-list.no-content.title"),text:a("posts-list.no-content.text")}):(0,n.jsx)(A,{isLoading:g,items:N.data}),(0,n.jsx)("div",{ref:S})]})}},22025:function(e,t,a){"use strict";a.d(t,{PostDetailClientPage:function(){return m}});var n=a(57437),i=a(99376),l=a(98456),s=a(35563),o=a(75461),r=a(60227),c=a(10655),d=a(59058),u=a(96720);function m(e){let{post:t,fundId:a,fundShortName:m}=e,_=(0,d.J)();"true"!==(0,c.S)("NEXT_PUBLIC_FEATURE_TOGGLE_POSTS_ENABLED")&&(0,i.redirect)("".concat((0,c.S)("NEXT_PUBLIC_SHOWCASE_ORIGIN")).concat(r.p));let p=[{label:"Главная",href:"/"},{label:"Фонды",href:r.p},{label:m,href:"".concat(r.p,"/").concat(a)},{label:"Инсайты",href:"".concat(r.p,"/").concat(a,"/posts")},...t?[{label:t.title}]:[]];return(0,n.jsxs)(s.W2,{children:[(0,n.jsx)(o.Oo,{className:"pt-4 mb-4",items:p,dataQa:_({element:u.xJ.Breadcrumbs,name:"detailFund"})}),(0,n.jsx)(l.x_,{post:t,disableReactions:!0})]})}},22451:function(e,t,a){"use strict";a.d(t,{HA:function(){return r},ew:function(){return s},h2:function(){return c},ju:function(){return i},pY:function(){return o},ww:function(){return l}});var n=a(96720);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"},o={[n.gQ.Low]:"Низкий",[n.gQ.Medium]:"Средний",[n.gQ.High]:"Высокий"},r={MONTHLY:"Ежемесячно",QUARTERLY:"Ежеквартально",HALF_YEARLY:"Полугодие",YEARLY:"Ежегодно"},c=10},6720:function(e,t,a){"use strict";a.d(t,{c0:function(){return l},Ht:function(){return n},WY:function(){return o},_5:function(){return s},Z2:function(){return r},du:function(){return i}});let n=[{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},o={borderColor:"#e3e7ec",borderVisible:!1},r={borderColor:"#e3e7ec"}},36560:function(e,t,a){"use strict";function n(e){return{1:{url:"/".concat(e)},2:{url:"/".concat(e,"/posts")}}}function i(e,t){return e.map(e=>{let a=new Date(e.date);return{time:{year:a.getFullYear(),month:a.getMonth()+1,day:a.getDate()},value:1===t?e.pay:e.sca}})}a.d(t,{um:function(){return n},W$:function(){return i},Uf:function(){return o},Wl:function(){return m}});var l=a(81051),s=a(66113);function o(e,t){let a=new Date(t.date);return{from:(0,s.p)((0,l.Z)(a,e),{format:"yyyy-MM-dd"}),to:(0,s.p)(a,{format:"yyyy-MM-dd"})}}var r=a(57437),c=a(80684),d=a(60227),u=a(10655);function m(e){let t="".concat((0,u.S)("NEXT_PUBLIC_SHOWCASE_ORIGIN")).concat(d.p,"/").concat(e);return[{icon:(0,r.jsx)(c.oOc,{}),url:"https://vk.com/share.php?url=".concat(t),name:"ВКонтакте",style:{color:"rgb(74, 118, 168)"}},{icon:(0,r.jsx)(c.z$c,{}),url:"https://connect.ok.ru/offer?url=".concat(t),name:"Одноклассники",style:{color:"rgb(255, 136, 0)"}},{icon:(0,r.jsx)(c.$yK,{}),url:"https://telegram.me/share/url?url=".concat(t),name:"Telegram",style:{color:"rgb(0, 151, 255)",paddingRight:"2px"}}]}},314:function(e,t,a){"use strict";a.d(t,{b:function(){return v},z:function(){return s}});var n=a(10655),i=a(59918),l=a(30702);function s(e){let{promotions:t,type:a,id:n}=e;if(t){var s,r,c,d;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),u=function(e,t,a){let n="string"==typeof e?(0,i.Z)(e):e,s="string"==typeof t?(0,i.Z)(t):t,o="string"==typeof a?(0,i.Z)(a):a;return(0,l.Z)(n,{start:s,end:o})}(new Date,e.start,e.end),m=!!r&&u&&o(n,e.fundIds);return{isVisible:m,...m&&{isVisible:!!r&&u&&o(n,e.fundIds),bannerWebKey:e.bannerWebKey,filters:e.filterWeb,actionUrl:null==s?void 0:s.actionUrl,promotionsIds:null===(d=e.fundIds)||void 0===d?void 0:d.reduce((e,t)=>({...e,[t]:!0}),{}),analytics:{eventAction:s.analytics.eventAction,eventCategory:s.analytics.eventCategory,eventLabel:s.analytics.eventLabel}}}}}return{isVisible:!1}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return!e||!!t.find(t=>t===e)}var r=a(57437),c=a(2265),d=a(75461),u=a(96720),m=a(61994),_=a(99765),p=a.n(_);let h=e=>{let{width:t,height:a,inline:n,rounded:i,className:l}=e,s={...t&&{width:"".concat(t,"px")},...a&&{height:"".concat(a,"px")}};return(0,r.jsx)("span",{style:s,className:(0,m.Z)(l,p().uiSkeleton,[{[p().inline]:n},{[p().rounded]:i}])})};var f=a(36817),x=a(64684),b=a.n(x);function v(e){let{bannerKey:t,className:a,desktopType:i,onClick:l}=e,[s,o]=(0,c.useState)(!1),[m,_]=(0,c.useState)(),p=(0,d._m)("l"),x=(0,d.IY)("s","m");return((0,c.useEffect)(()=>{setTimeout(()=>{o(!0)})},[]),(0,c.useEffect)(()=>{let e=setTimeout(()=>{_(function(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.S)("NEXT_PUBLIC_S3_ASSETS"),"/investment/banners/").concat(t).concat(s,".png")}({key:t,isTablet:x,isDesktop:p,desktopType:i}))});return()=>clearTimeout(e)},[p,x,t,i]),s)?(0,r.jsx)(f.T,{dataQa:{element:u.xJ.Banner,name:"promotions"},className:a,children:(0,r.jsx)("img",{style:{cursor:"pointer",borderRadius:"16px",minHeight:"125px"},src:m,alt:"Акционный Баннер",width:"100%",onClick:()=>null==l?void 0:l()})}):(0,r.jsx)("div",{className:a,children:(0,r.jsx)(h,{className:b().skeleton,height:125})})}},13730:function(e,t,a){"use strict";a.d(t,{_:function(){return h}});var n=a(2265),i=a(99376),l=a(52990),s=a(10655);let o=e=>/^https:\/\//gi.test(e),r=e=>["",...e.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join("."),c=()=>window.location.host.indexOf("localhost")>=0,d=e=>('"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)),u=e=>encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent),m=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[(]/g,"%28").replace(/[)]/g,"%29"),_=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,n=(0,s.S)("NEXT_PUBLIC_SHOWCASE_ORIGIN"),i=c()?"":"; domain=".concat(r(n)),l=new Date(new Date().getTime()+864e5*a).toUTCString();document.cookie="".concat(m(e),"=").concat(u("string"==typeof t?t:JSON.stringify(t)),"; SameSite=None").concat(o(n)?"; Secure":"").concat(i,"; expires=").concat(l,"; path=/;")},p=(e,t,a)=>{if(null==e?void 0:e.aggregator_id){let i={...e,...a&&{platformProductId:a},create_date:new Date().toISOString()},s={payload:[]};try{var n;s=JSON.parse((null===(n=function(){if("undefined"!=typeof document&&document.cookie)return Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=")).map(e=>e.map(e=>d(e))))}())||void 0===n?void 0:n.cpa_click)||"{}")}catch(e){return}s.payload||(s.payload=[]),s.payload.push(i),t[e.aggregator_id]&&(_("cpa_click",s,45),(0,l._)(e.aggregator_id,"CPA_click",{eventLabel:window.location.pathname,eventValue:e.utm_term||e.click_id,utm_source:e.utm_source,utm_campaign:e.utm_campaign,utm_medium:e.utm_medium}))}},h=(e,t)=>{let a=(0,i.useSearchParams)();(0,n.useEffect)(()=>{a&&p(Object.fromEntries(a),e,t)},[])}},33315:function(e,t,a){"use strict";function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"primary";return e.filter(e=>{var t;return null===(t=e.params)||void 0===t?void 0:t.visible}).map(e=>{var a,n;return{...e,params:{visible:e.params.visible,variant:null!==(a=e.params.variant)&&void 0!==a?a:t,priority:null!==(n=e.params.priority)&&void 0!==n?n:Number.MAX_SAFE_INTEGER}}}).toSorted((e,t)=>e.params.priority-t.params.priority).map(e=>({label:e.displayName,variant:e.params.variant,dataQa:e.code,hint:e.description}))}a.d(t,{E:function(){return n}})},93750:function(e,t,a){"use strict";a.d(t,{Portal:function(){return s}});var n=a(57437),i=a(2265),l=a(54887);function s(e){let{children:t,id:a="portal-root"}=e,[s,o]=(0,i.useState)(null);return(0,i.useEffect)(()=>(function(){let e=document.getElementById(a);if(e){o(e);return}let t=document.createElement("div");return t.id=a,document.body.appendChild(t),o(t),()=>{document.body.removeChild(t)}})(),[a]),s?(0,n.jsx)(n.Fragment,{children:(0,l.createPortal)(t,s)}):null}},88110:function(e,t,a){"use strict";a.d(t,{A:function(){return _}});var n=a(57437),i=a(2265),l=a(80684),s=a(75461),o=a(61994),r=a(93750),c=a(6486),d=a.n(c);function u(e){let t=m(),a=new MutationObserver(()=>{let a=m();a!==t&&(t=a,e())});return a.observe(document.body,{childList:!0,subtree:!0}),()=>{a.disconnect()}}function m(){return!!document.querySelector(".finkit-widgets-sc-cookies-plate__wrapper")}function _(e){let{open:t,title:a,description:c,isClickable:_,onClose:p,onClick:h,dataQa:f}=e,x=(0,i.useSyncExternalStore)(u,m,()=>!1),b=null!=f?f:"snackbar";return(0,n.jsx)(r.Portal,{id:"snackbar-root",children:(0,n.jsxs)("div",{className:(0,o.Z)(d().snackbar,t?d().visible:d().hidden,_&&d().clickable,x&&d().withCookiePlate),role:_?"button":"status",tabIndex:t&&_?0:-1,"aria-hidden":!t,"data-qa":b,onClick:function(){_&&h()},onKeyDown:function(e){_&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),h())},children:[(0,n.jsx)(l.qKI,{className:d().statusIcon,size:24}),(0,n.jsxs)("div",{className:d().content,children:[(0,n.jsxs)("div",{className:d().titleRow,children:[(0,n.jsx)("span",{className:d().title,"data-qa":"".concat(b,"-title"),children:a}),_&&(0,n.jsx)(l.FNc,{className:d().chevron,size:24})]}),(0,n.jsx)("span",{className:d().description,"data-qa":"".concat(b,"-description"),children:c})]}),(0,n.jsx)(s.zx,{dataQa:"".concat(b,"-close-button"),"aria-label":"Закрыть snackbar",iconLeft:(0,n.jsx)(l.UCD,{size:24}),onClick:function(e){e.preventDefault(),e.stopPropagation(),p()},appearance:"ghost",disabled:!t,shape:"circle-icon",size:"xs",variant:"secondary"})]})})}},66113:function(e,t,a){"use strict";a.d(t,{p:function(){return l}});var n=a(67603),i=a(50692);function l(e,t){let{format:a="dd.MM.yy"}=null!=t?t:{};try{if("string"==typeof e)return(0,n.Z)(new Date(e),a,{locale:i.Z});return(0,n.Z)(e,a,{locale:i.Z})}catch(t){return e}}},7432:function(e,t,a){"use strict";function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return+e.toFixed(t)}a.d(t,{l:function(){return n}})},93473:function(e){e.exports={authorContent:"AboutAuthorModal_authorContent__Qm9cI",avatar:"AboutAuthorModal_avatar__kdw2K",socialNetworks:"AboutAuthorModal_socialNetworks__1_9py",socialNetworkLogo:"AboutAuthorModal_socialNetworkLogo__3LxME",item:"AboutAuthorModal_item__NuCRZ"}},82772:function(e){e.exports={card:"AuthorCardList_card__Utyny",avatar:"AuthorCardList_avatar__A8gZe"}},24635:function(e){e.exports={card:"FundDetailAbout_card__P6PBn",cardTitleWrapper:"FundDetailAbout_cardTitleWrapper__uKk0m",description:"FundDetailAbout_description__LWigp",infoBlocksList:"FundDetailAbout_infoBlocksList__Mi2zb",buyButton:"FundDetailAbout_buyButton__IErJz"}},31630:function(e){e.exports={card:"FundDetailCharts_card__OEemq",tabs:"FundDetailCharts_tabs__gxZoT",charts:"FundDetailCharts_charts__jWKP9",chips:"FundDetailCharts_chips__rCtdq",tiles:"FundDetailCharts_tiles__1LNbr",yieldNegative:"FundDetailCharts_yieldNegative__dnLO2",yieldPositive:"FundDetailCharts_yieldPositive__3KzHV"}},44468:function(e){e.exports={block:"InfoBlock_block__HwXPo",label:"InfoBlock_label__Dydqa",caption:"InfoBlock_caption__46fVs",captionText:"InfoBlock_captionText__YmhSs",captionIcon:"InfoBlock_captionIcon__OcVEO",additionalText:"InfoBlock_additionalText__ZxBY0"}},67616:function(e){e.exports={chart:"LineChart_chart__pN_ZX"}},69702:function(e){e.exports={card:"FundGeneraIInfo_card__MuNH2",title:"FundGeneraIInfo_title__VG9Pm",infoCaption:"FundGeneraIInfo_infoCaption__C24gg",info:"FundGeneraIInfo_info__FC6xE"}},48492:function(e){e.exports={row:"FundGeneraIInfoList_row__2CsyT",label:"FundGeneraIInfoList_label__u_GVJ"}},11268:function(e){e.exports={advantages:"PlatformFundAdvantages_advantages__JKA4S",advantage:"PlatformFundAdvantages_advantage___XEJC",title:"PlatformFundAdvantages_title__1rzrF",text:"PlatformFundAdvantages_text__KqvDk",icon:"PlatformFundAdvantages_icon__c3kNt"}},36444:function(e){e.exports={description:"AboutFund_description__lO19k",infoBlocksList:"AboutFund_infoBlocksList__JjG7s"}},48921:function(e){e.exports={block:"AboutFundTile_block__S5z5_",iconWrapper:"AboutFundTile_iconWrapper__k8acd",tile:"AboutFundTile_tile__IrRl2",label:"AboutFundTile_label__VuLet",caption:"AboutFundTile_caption__SgPwE",captionText:"AboutFundTile_captionText__Ww3sb",captionIcon:"AboutFundTile_captionIcon__OnqU_"}},12057:function(e){e.exports={card:"PlatformFundDetailAbout_card__FXrYv",cardTitleWrapper:"PlatformFundDetailAbout_cardTitleWrapper__THueS"}},27957:function(e){e.exports={drawer:"PlatformFundDetailClientPage_drawer__oyinQ",content:"PlatformFundDetailClientPage_content__NAtI_",cards:"PlatformFundDetailClientPage_cards__p6QJE",price:"PlatformFundDetailClientPage_price__yCpTq",about:"PlatformFundDetailClientPage_about__BUmQS",stickyFundAbout:"PlatformFundDetailClientPage_stickyFundAbout__31N1r",other:"PlatformFundDetailClientPage_other__w9_4v",commissions:"PlatformFundDetailClientPage_commissions__xY6uX",commissionsItem:"PlatformFundDetailClientPage_commissionsItem__LVpV3"}},24997:function(e){e.exports={container:"PlatformFundDetailForming_container__oVtQD",progressBarFooter:"PlatformFundDetailForming_progressBarFooter__uv3Yo",text:"PlatformFundDetailForming_text__IcLGf"}},14126:function(e){e.exports={container:"PlatformFundDetailHeader_container__qMW5A",fundCard:"PlatformFundDetailHeader_fundCard__0__B_",linksCard:"PlatformFundDetailHeader_linksCard__iNAfh",top:"PlatformFundDetailHeader_top___a95N",info:"PlatformFundDetailHeader_info__4f3H5",captionWrapper:"PlatformFundDetailHeader_captionWrapper__vqQfq",tags:"PlatformFundDetailHeader_tags__j0cLW",caption:"PlatformFundDetailHeader_caption__DMoCl",captionIcon:"PlatformFundDetailHeader_captionIcon__LF_iM",logoWrapper:"PlatformFundDetailHeader_logoWrapper__AjVbo"}},60246:function(e){e.exports={card:"PlatformFundDetailHistoricalYield_card__JY95m",title:"PlatformFundDetailHistoricalYield_title__R3n9y",caption:"PlatformFundDetailHistoricalYield_caption__WOMA9",tiles:"PlatformFundDetailHistoricalYield_tiles__gMq50"}},92294:function(e){e.exports={chips:"PlatformFundDetailPostsClientPage_chips__ch_VR"}},87108:function(e){e.exports={skeleton:"PlatformFundDetailPostsPageSkeleton_skeleton__TRDMt"}},44644:function(e){e.exports={container:"PostList_container__FHgtO",card:"PostList_card__4d2ad"}},71668:function(e){e.exports={container:"PostListSkeleton_container__E3dx6",cardWrapper:"PostListSkeleton_cardWrapper__xjVPM",card:"PostListSkeleton_card__e5Y43"}},81637:function(e){e.exports={container:"PostListNoContent_container__gGcTA",text:"PostListNoContent_text__b5hEl"}},46175:function(e){e.exports={shareWrapper:"SocialShareLinks_shareWrapper___sgD0",shareButton:"SocialShareLinks_shareButton__AiROL",shareButtonOpen:"SocialShareLinks_shareButtonOpen__T94KX",shareSocialList:"SocialShareLinks_shareSocialList__cRhy4",open:"SocialShareLinks_open__UFPAF",visible:"SocialShareLinks_visible__zxFGG",shareSocialButton:"SocialShareLinks_shareSocialButton__3Whi5"}},7480:function(e){e.exports={tile:"YieldTile_tile__09495",caption:"YieldTile_caption__RXPvg",label:"YieldTile_label__s7wL7",positive:"YieldTile_positive__rkMEV",negative:"YieldTile_negative__xTTDr"}},64684:function(e){e.exports={skeleton:"PromotionsBanner_skeleton__y5z7V"}},6486:function(e){e.exports={snackbar:"Snackbar_snackbar__GFQtl",withCookiePlate:"Snackbar_withCookiePlate__ZDq_U",visible:"Snackbar_visible___PNmi",hidden:"Snackbar_hidden__nvOiU",clickable:"Snackbar_clickable__XcPKe",statusIcon:"Snackbar_statusIcon__mfy69",content:"Snackbar_content__wx0ay",titleRow:"Snackbar_titleRow__8gobm",title:"Snackbar_title__WePHk",description:"Snackbar_description__S6eJD",chevron:"Snackbar_chevron__ih4nL"}},99765:function(e){e.exports={uiSkeleton:"UiSkeleton_uiSkeleton__MmuGz",rounded:"UiSkeleton_rounded__2zZc2",inline:"UiSkeleton_inline__pAF9e"}}}]);