(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3417,2042],{43839:function(a,e,n){Promise.resolve().then(n.bind(n,59006)),Promise.resolve().then(n.bind(n,59994)),Promise.resolve().then(n.bind(n,78178))},78178:function(a,e,n){"use strict";n.r(e),n.d(e,{PlatformFundDetailLayoutClientPage:function(){return L}});var t=n(57437),s=n(2265),r=n(47907),i=n(32833),l=n(61810),o=n(26094),c=n(34818),d=n(75504),h=n(36148),u=n(21585),_=n(20207),m=n(37512),p=n.n(m);let x="share-social-list";function f(a){let{className:e}=a,{platformFundId:n}=(0,r.useParams)(),[i,c]=(0,s.useState)(!1),m=(0,h.Wl)(n);return(0,t.jsxs)("div",{className:(0,d.Z)(p().shareWrapper,e),children:[(0,t.jsx)(u.T,{className:(0,d.Z)(p().shareSocialList,{[p().open]:i}),id:x,tag:"ul",dataQa:{element:_.xJ.List,name:"socialShareList"},children:m.map(a=>(0,t.jsx)(u.T,{tag:"li",dataQa:{element:_.xJ.Block,name:"socialShareListItem"},children:(0,t.jsx)("button",{className:p().shareSocialButton,style:a.style,type:"button","aria-label":a.name,onClick:()=>{window.open(a.url,"","toolbar=0,status=0,scrollbars=1,resizable=1,width=500,height=300")},children:a.icon})},a.name))}),(0,t.jsx)(u.T,{dataQa:{element:_.xJ.Button,name:"socialShareButton"},children:(0,t.jsx)(l.zx,{className:(0,d.Z)(p().shareButton,{[p().shareButtonOpen]:i}),shape:"circle-icon",size:"xs",variant:"secondary",appearance:i?"ghost":"fill","aria-label":"Поделиться в соцсетях","aria-expanded":i?"true":"false","aria-controls":x,iconLeft:i?(0,t.jsx)(o.IconArrowHead,{}):(0,t.jsx)(o.IconShare,{}),onClick:()=>c(a=>!a)})})]})}var S=n(8465),j=n(45195),b=n.n(j);function N(a){let{isin:e,shortName:n,logoKey:r,tags:h}=a,m=(0,S.E0)(h||[],"secondary"),[p,x]=(0,s.useState)(!1),[j,N]=(0,s.useState)(null);return(0,t.jsxs)("div",{className:b().container,children:[(0,t.jsxs)(u.T,{tag:i.Zb,className:b().fundCard,dataQa:{element:_.xJ.Block,name:"headerCard"},children:[(0,t.jsxs)("div",{className:b().top,children:[(0,t.jsxs)("div",{className:b().info,children:[(0,t.jsx)(u.T,{dataQa:{element:_.xJ.Header,name:"nameRus"},children:(0,t.jsx)(i.X6,{type:"h1",children:n})}),(0,t.jsx)("div",{className:b().captionWrapper,children:e?(0,t.jsx)(u.T,{dataQa:{element:_.xJ.Text,name:"isinCode"},className:(0,d.Z)(b().caption),children:e}):""})]}),(0,t.jsx)(u.T,{dataQa:{element:_.xJ.Icon,name:"fundLogo"},className:b().logoWrapper,children:(0,t.jsx)(c.G2,{logoKey:r,alt:"Логотип Фонда",s3MinioUrl:(0,S.SJ)("NEXT_PUBLIC_S3_ASSETS")})})]}),m.length>0&&(0,t.jsx)("div",{className:b().tags,children:m.map((a,e)=>(0,t.jsx)(l.Vp,{label:a.label,variant:a.variant,rounded:!0,dataQa:a.dataQa,onIconRightClick:()=>{a.hint&&(N(a),x(!0))},iconRight:a.hint?(0,t.jsx)(o.IconFdsQuestionCircleO,{className:b().captionIcon}):void 0},"".concat(a.variant,"-").concat(e)))})]}),(0,t.jsx)(u.T,{tag:i.Zb,className:b().linksCard,dataQa:{element:_.xJ.Block,name:"socialCard"},children:(0,t.jsx)(f,{})}),(0,t.jsx)(l.u_,{dataQa:"app-tag-detail-hint-modal",header:{title:""},size:"l",open:p,onClose:()=>x(!1),footer:{children:(0,t.jsx)(i.X2,{children:(0,t.jsx)(i.JX,{size:{xs:12,s:5},children:(0,t.jsx)(l.zx,{label:"Понятно",stretch:!0,variant:"secondary",onClick:()=>x(!1)})})})},children:null==j?void 0:j.hint})]})}var g=n(15176),v=n(14307),C=n(10777);function L(a){let{children:e,fund:n}=a,o=(0,r.usePathname)(),c=(0,r.useRouter)(),d=o.includes("posts"),[u,m]=(0,s.useState)(d?2:1),p=(0,v.J)(),x=(0,h.um)(n.id),f=[{label:"Главная",href:"/"},{label:"Фонды",href:C.pY},{label:n.shortName,href:d?"".concat(C.pY,"/").concat(n.id):void 0},...d?[{label:"Инсайты"}]:[]],j="true"===(0,S.SJ)("NEXT_PUBLIC_FEATURE_TOGGLE_POSTS_ENABLED");return(0,t.jsxs)(i.W2,{children:[(0,t.jsx)(l.Oo,{className:"pt-4 mb-4",items:f,dataQa:p({element:_.xJ.Breadcrumbs,name:"detailFund"})}),(0,t.jsx)(N,{shortName:n.shortName,isin:n.isin,logoKey:n.logoKey,tags:n.tags}),j&&(0,t.jsx)(l.mQ,{tabs:g.du,activeTabId:u,onTabChange:a=>{var e;(e=Number(a))!==u&&(m(e),c.push(x[e].url))}}),e]})}},45195:function(a){a.exports={container:"PlatformFundDetailHeader_container__FANse",fundCard:"PlatformFundDetailHeader_fundCard__ehqqV",linksCard:"PlatformFundDetailHeader_linksCard__H1Ltm",top:"PlatformFundDetailHeader_top__ynUA5",info:"PlatformFundDetailHeader_info__VtLnX",captionWrapper:"PlatformFundDetailHeader_captionWrapper__uxeK4",tags:"PlatformFundDetailHeader_tags__ngxAU",caption:"PlatformFundDetailHeader_caption__LdWX_",captionIcon:"PlatformFundDetailHeader_captionIcon__cM75e",logoWrapper:"PlatformFundDetailHeader_logoWrapper__UX0uA"}},37512:function(a){a.exports={shareWrapper:"SocialShareLinks_shareWrapper__ar4ox",shareButton:"SocialShareLinks_shareButton__kpCos",shareButtonOpen:"SocialShareLinks_shareButtonOpen__8CBO3",shareSocialList:"SocialShareLinks_shareSocialList__OuVho",open:"SocialShareLinks_open__T61nD",visible:"SocialShareLinks_visible____lm6",shareSocialButton:"SocialShareLinks_shareSocialButton__SGrY6"}}},function(a){a.O(0,[3544,207,5591,1866,7161,1749,276,6210,9295,4140,2971,8069,1744],function(){return a(a.s=43839)}),_N_E=a.O()}]);