(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[417,42],{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(75504),r=n(47907),i=n(2265),l=n(61810),o=n(26094),c=n(21585),d=n(36148),h=n(1789),u=n(37512),_=n.n(u);let m="share-social-list";function p(a){let{className:e}=a,{platformFundId:n}=(0,r.useParams)(),[u,p]=(0,i.useState)(!1),x=(0,d.Wl)(n);return(0,t.jsxs)("div",{className:(0,s.Z)(_().shareWrapper,e),children:[(0,t.jsx)(c.T,{className:(0,s.Z)(_().shareSocialList,{[_().open]:u}),id:m,tag:"ul",dataQa:{element:h.xJ.List,name:"socialShareList"},children:x.map(a=>(0,t.jsx)(c.T,{tag:"li",dataQa:{element:h.xJ.Block,name:"socialShareListItem"},children:(0,t.jsx)("button",{className:_().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)(c.T,{dataQa:{element:h.xJ.Button,name:"socialShareButton"},children:(0,t.jsx)(l.zx,{className:(0,s.Z)(_().shareButton,{[_().shareButtonOpen]:u}),shape:"circle-icon",size:"xs",variant:"secondary",appearance:u?"ghost":"fill","aria-label":"Поделиться в соцсетях","aria-expanded":u?"true":"false","aria-controls":m,iconLeft:u?(0,t.jsx)(o.IconArrowHead,{}):(0,t.jsx)(o.IconShare,{}),onClick:()=>p(a=>!a)})})]})}var x=n(49623),f=n(34818),S=n(32833),j=n(45195),b=n.n(j);function N(a){let{isin:e,shortName:n,logoKey:r,tags:d}=a,u=(0,x.E0)(d||[],"secondary"),[_,m]=(0,i.useState)(!1),[j,N]=(0,i.useState)(null);return(0,t.jsxs)("div",{className:b().container,children:[(0,t.jsxs)(c.T,{tag:S.Zb,className:b().fundCard,dataQa:{element:h.xJ.Block,name:"headerCard"},children:[(0,t.jsxs)("div",{className:b().top,children:[(0,t.jsxs)("div",{className:b().info,children:[(0,t.jsx)(c.T,{dataQa:{element:h.xJ.Header,name:"nameRus"},children:(0,t.jsx)(S.X6,{type:"h1",children:n})}),(0,t.jsx)("div",{className:b().captionWrapper,children:e?(0,t.jsx)(c.T,{dataQa:{element:h.xJ.Text,name:"isinCode"},className:(0,s.Z)(b().caption),children:e}):""})]}),(0,t.jsx)(c.T,{dataQa:{element:h.xJ.Icon,name:"fundLogo"},className:b().logoWrapper,children:(0,t.jsx)(f.G2,{logoKey:r,alt:"Логотип Фонда",s3MinioUrl:(0,x.SJ)("NEXT_PUBLIC_S3_ASSETS")})})]}),u.length>0&&(0,t.jsx)("div",{className:b().tags,children:u.map((a,e)=>(0,t.jsx)(l.Vp,{label:a.label,variant:a.variant,rounded:!0,dataQa:a.dataQa,onIconRightClick:()=>{a.hint&&(N(a),m(!0))},iconRight:a.hint?(0,t.jsx)(o.IconFdsQuestionCircleO,{className:b().captionIcon}):void 0},"".concat(a.variant,"-").concat(e)))})]}),(0,t.jsx)(c.T,{tag:S.Zb,className:b().linksCard,dataQa:{element:h.xJ.Block,name:"socialCard"},children:(0,t.jsx)(p,{})}),(0,t.jsx)(l.u_,{dataQa:"app-tag-detail-hint-modal",header:{title:""},size:"l",open:_,onClose:()=>m(!1),footer:{children:(0,t.jsx)(S.X2,{children:(0,t.jsx)(S.JX,{size:{xs:12,s:5},children:(0,t.jsx)(l.zx,{label:"Понятно",stretch:!0,variant:"secondary",onClick:()=>m(!1)})})})},children:null==j?void 0:j.hint})]})}var g=n(15176),v=n(14307),C=n(7690);function L(a){let{children:e,fund:n}=a,s=(0,r.usePathname)(),o=(0,r.useRouter)(),c=s.includes("posts"),[u,_]=(0,i.useState)(c?2:1),m=(0,v.J)(),p=(0,d.um)(n.id),f=[{label:"Главная",href:"/"},{label:"Фонды",href:C.pY},{label:n.shortName,href:c?"".concat(C.pY,"/").concat(n.id):void 0},...c?[{label:"Инсайты"}]:[]],j="true"===(0,x.SJ)("NEXT_PUBLIC_FEATURE_TOGGLE_POSTS_ENABLED");return(0,t.jsxs)(S.W2,{children:[(0,t.jsx)(l.Oo,{className:"pt-4 mb-4",items:f,dataQa:m({element:h.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&&(_(e),o.push(p[e].url))}}),e]})}},45195:function(a){a.exports={container:"PlatformFundDetailHeader_container__FANse",fundCard:"PlatformFundDetailHeader_fundCard__ehqqV",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",linksCard:"PlatformFundDetailHeader_linksCard__H1Ltm"}},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,[544,207,591,866,909,749,180,210,295,341,971,69,744],function(){return a(a.s=43839)}),_N_E=a.O()}]);