(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6683],{46536:function(){},95905:function(e,t,n){Promise.resolve().then(n.bind(n,90422)),Promise.resolve().then(n.bind(n,53417)),Promise.resolve().then(n.bind(n,69767)),Promise.resolve().then(n.bind(n,23709)),Promise.resolve().then(n.bind(n,942)),Promise.resolve().then(n.bind(n,73723)),Promise.resolve().then(n.bind(n,66719)),Promise.resolve().then(n.bind(n,40348))},23709:function(e,t,n){"use strict";n.d(t,{Catalog:function(){return eT}});var a=n(57437),s=n(99376),i=n(45087),r=n(2265),l=n(42586),o=n(35563),c=n(75461),d=n(70187),u=n(61994),m=n(11690),f=n(49074),_=n(6029),h=n(69064),p=n(5083),x=n(9702),v=n(51615),g=n(1883),A=n(34057),b=n(31578),C=n(17634);function j(e){let{selectedManagementCompanies:t,managementCompanies:n,updateManagementCompanyIds:s,dataQa:i,gtmEventAction:r,label:l="Управляющая Компания"}=e;return(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Select,name:i},children:(0,a.jsx)(c.Ph,{label:l,multiple:!0,optionLabel:"shortName",optionValue:"id",value:t,options:n,selectedValue:e=>(0,C.Q)(A.K7.ManagementCompanies,e,n.length,!0),onChange:e=>{s(e),(0,g._)("investment_funds",r)}})})}function k(e){let{risks:t,selectedRisks:n,updateRisks:s,dataQa:i,gtmEventAction:r,label:l="Риск"}=e;return(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Select,name:i},children:(0,a.jsx)(c.Ph,{label:l,multiple:!0,options:t,value:n,selectedValue:e=>(0,C.Q)(A.K7.Risks,e,t.length,!0),onChange:e=>{(0,g._)("investment_funds",r),s(e)}})})}var w=n(96369);function S(e){let{chipses:t,value:n,renderField:s,updateTagFiltersChips:i}=e,r=(0,w.J)(),l=t.filter(e=>!0===e.params[s]).sort((e,t)=>{var n,a,s,i;return(null!==(s=null===(n=e.params)||void 0===n?void 0:n.priority)&&void 0!==s?s:0)-(null!==(i=null===(a=t.params)||void 0===a?void 0:a.priority)&&void 0!==i?i:0)});return(0,a.jsx)(c.cL,{dataQa:r({element:A.xJ.Block,name:s}),chips:l,multiple:!0,value:n,onChipClick:(e,t,n)=>{i(n)}})}var T=n(36904),F=n(39145),N=n.n(F);function y(e){let{title:t,subtitle:n,chips:s,onChipClicked:i,value:r,dataQa:l}=e;return(0,a.jsxs)("div",{className:N().minInvestWrapper,children:[(0,a.jsxs)("div",{className:"mt-1",children:[(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Text,name:"drawer".concat(l,"Header")},children:(0,a.jsx)(o.xv,{size:"16",weight:"medium",children:t})}),(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Text,name:"drawer".concat(l,"Text")},children:(0,a.jsx)(o.xv,{className:N().text,children:n})})]}),(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Chips,name:"drawer".concat(l)},children:(0,a.jsx)(c.cL,{className:"mt-4",chips:s,value:r,onChipClick:i})})]})}function B(e){let{isDrawerOpen:t,sortTypeOptions:n,categories:s,managementCompanies:i,tags:r,risks:d,yieldSortingField:u,selectedRisks:m,selectedCategories:f,selectedManagementCompanies:_,selectedMinInvest:h,selectedIsClubFund:x,selectedTags:v,sortOrder:w,onClose:F,updateSortBy:B,checkRadio:E,updateRisks:I,updateCategories:P,updateMinInvestChips:M,updateIsClubFundChips:L,updateTagFiltersChips:R,updateSortOrderChips:Q,updateYieldSortingField:J,updateManagementCompanyIds:U,handleSubmitButton:W,handleResetButton:V}=e,z=(0,l.useTranslations)(),O="true"===(0,b.SJ)("NEXT_PUBLIC_FEATURE_TOGGLE_TAGS_AND_BADGES")&&r.length>0;function D(e){0===e&&(0,g._)("investment_funds","investment_funds_filter_minimal_amount_any"),1===e&&(0,g._)("investment_funds","investment_funds_filter_minimal_amount_below_100"),2===e&&(0,g._)("investment_funds","investment_funds_filter_minimal_amount_below_1000"),3===e&&(0,g._)("investment_funds","investment_funds_filter_minimal_amount_below_100000"),M(T.Vq[e])}return(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Drawer,name:"showcase"},children:(0,a.jsxs)(c.u_,{dataQa:"app-filter-modal",header:{title:z("sc-fund.showcase.drawer.title")},size:"l",open:t,onClose:()=>{(0,g._)("investment_funds","investment_funds_filter_close"),F()},footer:{children:(0,a.jsxs)("div",{className:N().modalFooter,children:[(0,a.jsx)(p.T,{className:N().footerButtonWrapper,dataQa:{element:A.xJ.Button,name:"drawerReset"},children:(0,a.jsx)(c.zx,{size:"m",variant:"secondary",label:z("sc-fund.showcase.drawer.button.reset"),stretch:!0,onClick:V})}),(0,a.jsx)(p.T,{className:N().footerButtonWrapper,dataQa:{element:A.xJ.Button,name:"drawerSubmit"},children:(0,a.jsx)(c.zx,{size:"m",label:z("sc-fund.showcase.drawer.button.submit"),stretch:!0,onClick:W})})]})},children:[(0,a.jsxs)("div",{className:N().filters,children:[(0,a.jsxs)("div",{className:N().selectWrapper,children:[(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Select,name:"drawerYield"},children:(0,a.jsx)(c.Ph,{label:"Доходность",options:T.zJ,value:u,onChange:e=>{(0,g._)("investment_funds","investment_funds_filter_profit"),J(e)}})}),(0,a.jsx)(j,{selectedManagementCompanies:_,managementCompanies:i,updateManagementCompanyIds:U,dataQa:"drawerUk",gtmEventAction:"investment_funds_filter_management_Company"}),(0,a.jsx)(k,{risks:d,selectedRisks:m,updateRisks:I,dataQa:"drawerRisk",gtmEventAction:"investment_funds_filter_risk"}),(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Select,name:"drawerActives"},children:(0,a.jsx)(c.Ph,{label:"Активы фонда",options:s,value:f,multiple:!0,selectedValue:e=>(0,C.Q)(A.K7.Category,e,s.length,!0),onChange:e=>{(0,g._)("investment_funds","investment_funds_filter_assets"),P(e)}})})]}),O?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:N().tagsBlock,children:[(0,a.jsx)(o.xv,{size:"16",weight:"medium",children:z("sc-fund.showcase.drawer.tag.fiter.title")}),(0,a.jsx)(S,{updateTagFiltersChips:R,chipses:r,value:v,renderField:A.xl.Extended})]}),(0,a.jsx)(y,{title:z("sc-fund.showcase.drawer.filter.title"),subtitle:z("sc-fund.showcase.drawer.filter.text"),chips:T.Vq,value:h.id,onChipClicked:e=>{D(e)},dataQa:"MinInvest"}),(0,a.jsx)(o.iz,{})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{title:z("sc-fund.showcase.drawer.filter.title"),subtitle:z("sc-fund.showcase.drawer.filter.text"),chips:T.Vq,value:h.id,onChipClicked:e=>{D(e)},dataQa:"MinInvest"}),(0,a.jsx)(o.iz,{}),(0,a.jsx)(y,{title:z("sc-fund.showcase.drawer.club-fund.title"),subtitle:z("sc-fund.showcase.drawer.club-fund.text"),chips:T.L8,value:x.id,onChipClicked:e=>{0===e&&(0,g._)("investment_funds","investment_funds_is_club_fund_true"),1===e&&(0,g._)("investment_funds","investment_funds_is_club_fund_false"),L(T.L8[e])},dataQa:"ClubFund"}),(0,a.jsx)(o.iz,{className:"mb-8"})]})]}),(0,a.jsxs)("div",{className:N().sortBlock,children:[(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Form,name:"drawerSortTitle"},children:(0,a.jsx)(o.xv,{size:"16",weight:"medium",children:z("sc-fund.showcase.drawer.sort.title")})}),(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Chips,name:"drawerSortOrder"},children:(0,a.jsx)(c.cL,{chips:T.jW,value:w.id,onChipClick:e=>Q(e)})}),(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Block,name:"drawerSortValue"},children:n.map(e=>(0,a.jsx)(c.Y8,{value:e.value,checked:E(e),label:e.label,name:"sortBy",onChange:B},e.value))})]})]})})}var E=n(80684);function I(e){var t;let{searchValue:n,searchResults:i,onSearchChange:r,isSearchResultsLoading:l}=e,o=(0,w.J)(),d=(0,s.useRouter)(),u=null!==(t=null==i?void 0:i.data.map(e=>{var t;let n=(null===(t=e.name)||void 0===t?void 0:t.trim())||null;return n?{value:e.id,label:n}:null}).filter(Boolean))&&void 0!==t?t:[],m=n.trim().length>0?(0,a.jsx)(E.IconFdsCloseO,{onClick:function(){r("")}}):(0,a.jsx)(E.IconFdsSearchO,{});return(0,a.jsx)(c.kn,{dataQa:o({element:A.xJ.Input,name:"search"}),label:"Фонд или УК",pending:l,icon:m,value:n,onChange:r,onSelect:e=>{e&&d.push("/".concat(e.value))},options:u,desktopMaxHeight:256})}var P=n(46075),M=n.n(P),L=n(91373);let R=(0,b.SJ)("NEXT_PUBLIC_MP_SC_INVESTMENT_API_URL"),Q={fetchFundsFromSc:async e=>(0,L.Z)("/api/v1/funds",{baseURL:R,params:M()(e,T.op)}),fetchSearchFunds:async e=>(0,L.Z)("/api/v1/funds/search",{baseURL:R,params:e})};var J=n(38158),U=n.n(J);function W(e){let{risks:t,tags:n,managementCompanies:s,yieldSortingField:i,selectedTags:d,selectedRisks:u,selectedManagementCompanies:m,filterChipses:f,openAllParams:_,updateRisks:h,updateFilterChips:x,updateTagFiltersChips:v,updateYieldSortingField:C,updateManagementCompanyIds:w,handleSubmitButtonFilterPanel:F}=e,N=(0,l.useTranslations)(),y=(0,c._m)("s"),B="true"===(0,b.SJ)("NEXT_PUBLIC_FEATURE_TOGGLE_TAGS_AND_BADGES")&&n.length>0,P="true"===(0,b.SJ)("NEXT_PUBLIC_FEATURE_TOGGLE_FUNDS_SEARCH_ENABLED"),{searchQuery:M,searchResults:L,isSearchResultsLoading:R,handleSearchChange:J,totalFunds:W}=function(e){var t;let[n,a]=(0,r.useState)(""),[s,i]=(0,r.useState)(!1),[l,o]=(0,r.useState)(),[c,d]=(0,r.useState)(),u=(0,r.useRef)(null),m=(0,r.useCallback)(async()=>{},[e]);return(0,r.useEffect)(()=>{!e&&(a(""),o(void 0),i(!1),u.current&&(clearTimeout(u.current),u.current=null)),m()},[e,m]),{searchQuery:n,searchResults:l,isSearchResultsLoading:s,handleSearchChange:(0,r.useCallback)(t=>{if(!e)return;a(t),u.current&&clearTimeout(u.current);let n=t.trim();if(n.length<1){o(void 0),i(!1);return}u.current=setTimeout(async()=>{i(!0);try{let e=await Q.fetchSearchFunds({query:n});o(e)}catch(e){console.error("Ошибка поиска фондов:",e),o(void 0)}finally{i(!1)}},180)},[e]),totalFunds:null!==(t=null==c?void 0:c.total)&&void 0!==t?t:0}}(P);return(0,a.jsx)(o.W2,{className:U().container,children:(0,a.jsxs)(o.Zb,{className:U().card,as:"form",children:[P&&(0,a.jsx)("div",{className:U().searchWrapper,children:(0,a.jsx)(I,{fundsTotal:W,searchValue:M,searchResults:L,onSearchChange:J,isSearchResultsLoading:R})}),(0,a.jsxs)("div",{className:U().contentWrapper,children:[(0,a.jsxs)("div",{className:U().filtersBlock,children:[(0,a.jsxs)("div",{className:U().filters,children:[(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Select,name:"filterPanelYield"},children:(0,a.jsx)(c.Ph,{options:T.zJ,label:"Доходность",value:i,onChange:e=>{(0,g._)("investment_funds","investment_funds_view"),C(e)}})}),(0,a.jsx)(j,{selectedManagementCompanies:m,managementCompanies:s,updateManagementCompanyIds:w,dataQa:"filterPanelManagementCompanies",gtmEventAction:"investment_funds_quick_managementCompany"}),(0,a.jsx)(k,{risks:t,selectedRisks:u,updateRisks:h,dataQa:"filterPanelRisk",gtmEventAction:"investment_funds_quick_risk"})]}),(0,a.jsx)(p.T,{className:U().chipses,dataQa:{element:A.xJ.Chips,name:"filterPanelChips"},children:B?(0,a.jsx)(S,{updateTagFiltersChips:v,chipses:n,value:d,renderField:A.xl.Quick}):(0,a.jsx)(c.cL,{multiple:!0,chips:T.EI,value:f,onChipClick:e=>{e===A.nC.IsAuthorFund&&(0,g._)("investment_funds","investment_funds_quick_author_funds"),e===A.nC.MinValue&&(0,g._)("investment_funds","investment_funds_quick_minimal_amount"),x(e)}})})]}),(0,a.jsxs)("div",{className:U().buttons,children:[(0,a.jsx)(p.T,{className:U().buttonWrapper,dataQa:{element:A.xJ.Button,name:"filterPanelOpenAllFilters"},children:(0,a.jsx)(c.zx,{className:U().allParamsButton,label:N("sc-fund.showcase.filter-panel.button.all-params"),size:y?"m":"s",iconLeft:(0,a.jsx)(E.IconFdsParametersHorizontalO,{}),variant:"secondary",onClick:()=>{(0,g._)("investment_funds","investment_funds_main_Filter"),_()}})}),(0,a.jsx)(p.T,{className:U().buttonWrapper,dataQa:{element:A.xJ.Button,name:"filterPanelSubmit"},children:(0,a.jsx)(c.zx,{label:N("sc-fund.showcase.filter-panel.button.submit"),size:y?"m":"s",className:U().submitButton,onClick:()=>{(0,g._)("investment_funds","investment_funds_filter_display"),F()}})})]})]})]})})}var V=n(33145),z=n(27648),O=n(77337),D=n(97448),G=n.n(D),H={src:"/invest/funds/_next/static/media/banner-card-bg-desktop.e7f4bdc9.png",height:253,width:485,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAACVBMVEVvc/Fmf/JnfewXmjGTAAAAA3RSTlMCGDBdMLhFAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGElEQVR4nGNgYGBgZGRkYoLQjIyMDBgAAAF0AA4HPJrsAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4},X={src:"/invest/funds/_next/static/media/banner-card-bg-mobile.a3f015ef.png",height:202,width:387,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAACVBMVEVxdvFlfedlfu8RS/ZgAAAAA3RSTlMCGC/QOLWwAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGUlEQVR4nGNgYGBgZGRkYmKAMBgZQQxUAAABXAANppYWPAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},Z={src:"/invest/funds/_next/static/media/lion-desktop.f87ddd45.png",height:266,width:266,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAS1BMVEVMaXFvSlj/rF7PXDV7Q0fmr3v/4Kb/knHqt4HTknUZGUz8uXDwkUOoYUi+TzDpkEmibmKgVULgl2moSTDneTjRm3r6mUeqc2SqSyg4a6wSAAAAFHRSTlMALD6BcWQhAioRFL7T+eHyLBv36PMFyfIAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA9SURBVHicJYpJEoAgEMSCKA1uKI7L/19qjd5SSUDkToBgsogQw2VrcZNnO3aHVJ/+S6kt4X/O2w2ULYzwAj31AcN+cRhiAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},K={src:"/invest/funds/_next/static/media/lion-mobile.f69e8b38.png",height:196,width:197,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAY1BMVEVMaXFyUVk1KU1OOk76lkHDjnLvzKK+mXLqtn//5aamb1+aZV/ns4rUZ0LhdTr5wYKrTzzgiFD8r2CbPyr9vW7kiURxNC/wmlmgSjbatoW3Uzjvhz3NWi7VbTHGUyvZkWqzVTU5gRi5AAAAG3RSTlMA1isN++dCA3EU4sv6Z3FgQ+Xn8cK5jdG1Kqil6FDhAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAQUlEQVR4nB2KRxKAIBDAoqJrR7ALlv+/0llyykwCgt1HFFlCHECojYmXyrmG59DU+HuekrhvQxCq/u2KNJdtlvMDX6wCh75RmlUAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8};let q=(0,O.xn)((0,b.SJ)("NEXT_PUBLIC_PROMO_PAGE_URL"),"/authors_funds");function Y(){let e=(0,c._m)("s"),t=(0,l.useTranslations)(),[n,s]=(0,r.useState)(!0),i=e?266:166;return(0,r.useEffect)(()=>{setTimeout(()=>{s(!1)})},[]),(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Block,name:"bannerCard"},children:(0,a.jsxs)("a",{href:q,className:G().banner,onClick:()=>{(0,g._)("investment_funds","investment_funds_banner_author")},children:[(0,a.jsxs)("div",{className:G().textWrapper,children:[(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Text,name:"bannerTitle"},children:(0,a.jsx)(o.xv,{fontFamily:"primary",className:G().title,children:t("sc-fund.showcase.banner.title")})}),(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Text,name:"bannerText"},children:(0,a.jsx)(o.xv,{as:"p",className:G().text,children:t("sc-fund.showcase.banner.text")})})]}),!n&&(0,a.jsxs)("div",{className:G().images,children:[(0,a.jsx)("div",{className:G().lionWrapper,children:(0,a.jsx)(V.default,{alt:"lion",src:e?Z:K,className:G().lion,unoptimized:!0,width:i,height:i})}),(0,a.jsx)("div",{className:G().backgroundWrapper,children:(0,a.jsx)(V.default,{alt:"lion-background",src:e?H:X,className:G().background,height:e?253:202,width:e?485:387,unoptimized:!0})}),(0,a.jsx)(p.T,{className:G().buttonWrapper,dataQa:{element:A.xJ.Button,name:"bannerLink"},children:(0,a.jsx)(c.zx,{size:"xs",stretch:!0,variant:"white",label:t("sc-fund.showcase.banner.button"),as:z.default,href:q})})]})]})})}var $=n(49090),ee=n(98456),et=n(61896),en=n(27829),ea=n(97859),es=n(16076),ei=n(20633),er=n.n(ei);function el(e){let{children:t,title:n,content:s,open:i,closeAriaLabel:l,placement:o="top-end",withOverlay:d=!1,onClose:u}=e,m=(0,c._m)("s"),[f,_]=(0,r.useState)(null),{refs:h,floatingStyles:p,context:x,middlewareData:v,placement:g}=(0,et.YF)({open:i,onOpenChange(e){e||u()},placement:o,whileElementsMounted:en.Me,middleware:[(0,ea.cv)({mainAxis:20,crossAxis:m?24:16}),(0,ea.RR)(),(0,ea.uY)({padding:16}),(0,ea.x7)({element:f})]}),A=(0,et.bQ)(x,{outsidePress:!d}),{getFloatingProps:b}=(0,et.NI)([A]),C=g.split("-")[0],j=v.arrow,k=void 0!==j?j.x:void 0,w=void 0!==j?j.y:void 0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:e=>{h.setReference(e)},className:i?er().referenceActive:void 0,children:t}),i&&(0,a.jsx)(es.Portal,{children:(0,a.jsxs)(a.Fragment,{children:[d&&(0,a.jsx)("button",{type:"button",className:er().overlay,onClick:u,"aria-label":l}),(0,a.jsxs)("div",{ref:e=>{h.setFloating(e)},style:p,className:er().floating,...b(),children:[(0,a.jsx)("div",{ref:_,className:er().arrow,style:{left:void 0!==k?"".concat(k,"px"):"",top:void 0!==w?"".concat(w,"px"):"",right:"",bottom:"",[({top:"bottom",right:"left",bottom:"top",left:"right"})[C]]:"-6px"}}),(0,a.jsx)("button",{type:"button",className:er().closeButton,onClick:u,"aria-label":l,children:(0,a.jsx)(E.IconFdsCloseO,{size:24})}),n,s]})]})})]})}var eo=n(78164),ec=n.n(eo);let ed=(0,b.SJ)("NEXT_PUBLIC_FEATURE_TOGGLE_TAGS_AND_BADGES"),eu=(0,b.SJ)("NEXT_PUBLIC_FEATURE_TOGGLE_FUNDS_COMPARE_ENABLED");function em(e){let{card:t,cardYieldField:n,promotionsIds:s,isCompared:i=!1,isCompareDisabled:d=!1,showCompareHint:m=!1,onCloseCompareHint:f,onToggleCompare:_}=e,h=(0,l.useTranslations)(),x=(0,b.E0)(t.tags||[]),v=[...(null==s?void 0:s[t.id])?[{label:"Акция",dataQa:"promotion",variant:"red"}]:[]],[j,k]=(0,r.useState)(!1),[w,S]=(0,r.useState)(null),{text:T,field:F}=C.kZ[n],N=t[F];return(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Block,name:"fundCard"},children:(0,a.jsxs)(o.Zb,{variant:"secondary",className:ec().card,children:[(0,a.jsxs)("div",{className:ec().contentBlock,children:[(0,a.jsxs)("div",{className:ec().emitent,children:[(0,a.jsx)(p.T,{className:ec().elementLogo,dataQa:{element:A.xJ.Image,name:"fundLogo"},children:(0,a.jsx)(ee.G2,{logoKey:t.logoKey,alt:"логотип ".concat(t.displayName),s3MinioUrl:(0,b.SJ)("NEXT_PUBLIC_S3_ASSETS")})}),(0,a.jsxs)("div",{className:ec().emitentInfo,children:[(0,a.jsx)(p.T,{className:ec().subtitle,dataQa:{element:A.xJ.Text,name:"ukTitle"},children:t.managementCompanyName}),(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Text,name:"fundTitle"},children:(0,a.jsx)(o.xv,{as:"p",size:"18",weight:"medium",children:t.displayName})})]})]}),(0,a.jsxs)("div",{className:ec().offerWrapper,children:[(0,a.jsxs)(p.T,{className:ec().offerBlock,dataQa:{element:A.xJ.Text,name:"yield"},children:[(0,a.jsx)("div",{className:ec().subtitle,children:h("sc-fund.showcase.card.yield",{yield:T})}),(0,a.jsx)(o.xv,{className:(0,u.Z)({[ec().green]:N>0,[ec().red]:N<0}),as:"p",size:"24",weight:"medium",children:(0,b.NM)(N)})]}),(0,a.jsxs)(p.T,{className:ec().offerBlock,dataQa:{element:A.xJ.Text,name:"sca"},children:[(0,a.jsx)("div",{className:ec().subtitle,children:h("sc-fund.showcase.card.netAssetValue")}),(0,a.jsx)(o.xv,{as:"p",size:"24",weight:"medium",children:null!==t.netAssetValue?(0,b.JC)(t.netAssetValue,!1):"—"})]}),(0,a.jsxs)(p.T,{className:ec().offerBlock,dataQa:{element:A.xJ.Text,name:"buyFrom"},children:[(0,a.jsx)("div",{className:ec().subtitle,children:h("sc-fund.showcase.card.minimalPurchaseAmount")}),(0,a.jsx)(o.xv,{as:"p",size:"24",weight:"medium",children:null!==t.minimalPurchaseAmount?(0,$.lb)(t.minimalPurchaseAmount,{decimalIsWithoutZeros:!0}):"—"})]})]}),(0,a.jsx)("div",{className:ec().tags,children:("true"===ed?x:v).map(e=>(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Tag,name:e.dataQa},children:(0,a.jsx)(c.Vp,{label:e.label,variant:e.variant,dataQa:e.dataQa,rounded:!0,onIconRightClick:()=>{e.hint&&(S(e),k(!0))},iconRight:e.hint?(0,a.jsx)(E.IconFdsQuestionCircleO,{className:ec().captionIcon}):void 0})},e.dataQa))})]}),(0,a.jsxs)("div",{className:ec().actions,children:[(0,a.jsx)(p.T,{className:ec().buttonBlock,dataQa:{element:A.xJ.Link,name:"fundDetail"},children:(0,a.jsx)(c.zx,{href:"/".concat(t.id),as:z.default,label:h("sc-fund.showcase.card.button.detail"),size:"xs",stretch:!0,onClick:()=>{(0,g._)("investment_funds","investment_funds_details_fund")},target:"_blank"})}),eu&&(0,a.jsx)(el,{title:(0,a.jsx)("h3",{className:ec().compareHintTitle,children:h("sc-fund.showcase.compare.hint.title")}),content:(0,a.jsx)("p",{className:ec().compareHintText,children:h("sc-fund.showcase.compare.hint.text")}),closeAriaLabel:h("sc-fund.showcase.compare.hint.close"),onClose:()=>null==f?void 0:f(),open:m,withOverlay:!0,children:(0,a.jsx)(p.T,{className:ec().compareButtonBlock,dataQa:{element:A.xJ.Button,name:"compareFund"},children:(0,a.jsx)(c.zx,{"aria-label":h("sc-fund.showcase.card.button.compare.aria-label"),label:h("sc-fund.showcase.card.button.compare.label"),iconLeft:(0,a.jsx)(E.IconFdsCompareO,{}),onClick:e=>{e.preventDefault(),e.stopPropagation(),null==_||_(t.id)},size:"xs",stretch:!0,variant:i?"primary":"secondary",disabled:d})})})]}),(0,a.jsx)(c.u_,{dataQa:"app-tag-hint-modal",header:{title:""},size:"l",open:j,onClose:()=>k(!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:()=>k(!1)})})})},children:null==w?void 0:w.hint})]})})}var ef=n(63043),e_=n.n(ef);function eh(e){let{funds:t,cardYieldField:n,promotionsIds:s,compareIds:i,isCompareLimitReached:r,showCompareHint:l,onCompareHintCardMount:o,onCloseCompareHint:c,onToggleCompare:d}=e,u=t.map((e,t)=>(0,a.jsx)("div",{ref:e=>{0===t&&o(e)},children:(0,a.jsx)(em,{card:e,cardYieldField:n,promotionsIds:s,isCompared:i.includes(e.id),isCompareDisabled:r&&!i.includes(e.id),onToggleCompare:d,showCompareHint:0===t&&l,onCloseCompareHint:c})},e.id)),m=(0,a.jsx)(Y,{},"banner");return(0,a.jsx)("div",{className:e_().offer,children:(0,b.j0)(4,m,u)})}var ep=n(20622),ex=n.n(ep);let ev=[{id:0},{id:1},{id:2},{id:3}];function eg(){return(0,a.jsx)(a.Fragment,{children:ev.map(e=>{let{id:t}=e;return(0,a.jsx)(o.Od,{className:ex().offerSkeleton},t)})})}var eA=n(21652),eb=n.n(eA),eC=n(64927);function ej(e){return e||T.NG.value}var ek=n(30357),ew=n.n(ek);function eS(e){let{filterParams:t,fundsData:n,parsedSelectedParams:i,promotions:j}=e,{funds:k,risks:w,categories:S,pagination:F,tags:N,managementCompanies:y,sortTypeOptions:E,yieldSortingField:I,cardYieldField:P,selectedRisks:M,selectedCategories:L,selectedManagementCompanies:R,selectedMinInvest:J,selectedIsClubFund:U,selectedTags:V,sortBy:z,sortOrder:O,filterChipses:D,listFilterChipses:G,isShowOneMoreFundsButton:H,isDefaultNoDataCard:X,isIncreaseSort:Z,isError:K,isLoading:q,getFunds:Y,resetFilter:$,checkRadio:ee,showMoreFundsClick:et,updateRisks:en,updateSortBy:ea,updateCategories:es,updateFilterChips:ei,updateMinInvestChips:er,updateIsClubFundChips:el,updateQuickTagFiltersChips:eo,updateModalTagFiltersChips:ec,updateSortOrderChips:ed,updateSortByListFilter:eu,updateYieldSortingField:em,updateSortOrderListFilter:ef,updateManagementCompanyIds:e_}=function(e,t,n){var a,i,l,o;let{managementCompanies:c,risks:d,categories:u,tags:m}=e,{selectedManagementCompanies:f,selectedParams:{risk:_,category:h,sortBy:p,sortOrder:x,clubFund:v,minimalPurchaseAmount:g,yieldSortField:j}}=n,k=(0,C.Zk)(d),w=(0,C.le)(u),S=(0,C.Ic)(m),[F,N]=(0,r.useState)(t.data),[y,B]=(0,r.useState)(t.pagination),[E,I]=(0,r.useState)({...n.selectedParams}),[P,M]=(0,r.useState)((0,C.Vq)(g)),[L,R]=(0,r.useState)((0,C.rJ)(v)),[J,U]=(0,r.useState)((0,C.Zk)(null!=_?_:[])),[W,V]=(0,r.useState)((0,C.le)(null!=h?h:[])),[z,O]=(0,r.useState)(f),[D,G]=(0,r.useState)(null!==(a=n.selectedParams.tags)&&void 0!==a?a:[]),[H,X]=(0,r.useState)(null!==(l=T.zJ.find(e=>e.value===j))&&void 0!==l?l:T.NG),[Z,K]=(0,r.useState)(ej(j)),[q,Y]=(0,r.useState)(v?A.nC.IsAuthorFund:void 0),[$,ee]=(0,r.useState)(g===T.Pf.oneHundred?A.nC.MinValue:void 0),[et,en]=(0,r.useState)(x===A.X_.Desc?T.jW[0]:T.jW[1]),[ea,es]=(0,r.useState)(x===A.X_.Desc),[ei,er]=(0,r.useState)((0,T.sJ)(T.NG)),[el,eo]=(0,r.useState)((o=ei[0].value,null!=p?p:o)),[ec,ed]=(0,r.useState)(!1),[eu,em]=(0,r.useState)(!1),[ef,e_]=(0,r.useState)(t.pagination.total>t.data.length),[eh,ep]=(0,r.useState)((0,C.yx)({yieldSortingField:H,selectedRisks:J,risksMaxLength:k.length,selectedManagementCompanies:z,managementCompaniesMaxLength:c.length})),ex=(0,s.useRouter)(),ev=(0,s.usePathname)(),eg=(0,s.useSearchParams)(),eA=(0,b.r0)(null!=ev?ev:"/",{slug:null!==(i=null==eg?void 0:eg.get("slug"))&&void 0!==i?i:void 0});async function ek(e){if(e===A.nC.IsAuthorFund){let t={...E,clubFund:!q||void 0,offset:0};I(t),Y(q?void 0:e),ew(t)}if(e===A.nC.MinValue){let e={...E,minimalPurchaseAmount:$?void 0:T.Pf.oneHundred,offset:0};eT($?T.Vq[0]:T.Vq[1]),I(e),ee($?void 0:A.nC.MinValue),await ew(e)}}async function ew(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ed(!0);try{var n;let a=await Q.fetchFundsFromSc(e),s=(n=a.data,t?[...F,...n]:n),i=eb()(e,T.f9),r=function(e){let{isResetFilter:t,yieldSortingField:n,selectedRisks:a,risksMaxLength:s,selectedManagementCompanies:i,managementCompaniesMaxLength:r}=e;return(0,C.yx)({yieldSortingField:t?T.NG:n,selectedRisks:t?[]:a,risksMaxLength:s,selectedManagementCompanies:t?[]:i,managementCompaniesMaxLength:r})}({isResetFilter:i,yieldSortingField:H,selectedRisks:J,risksMaxLength:k.length,selectedManagementCompanies:z,managementCompaniesMaxLength:c.length}),l=ej(i?T.NG.value:e.yieldSortField);N(s),B(a.pagination),ep(r),K(l),e_(a.pagination.total>s.length),function(e){let t=(0,eC.stringify)(e,{filter:(e,t)=>{if(!T.$f.includes(e))return t}});ex.replace("".concat(eA,"?").concat(t),{scroll:!1})}(e)}catch(e){console.error(e),em(!0)}finally{ed(!1)}}async function eS(){I({...E,offset:E.offset+1}),await ew({...E,offset:E.offset+1},!0)}function eT(e){M(e),I({...E,minimalPurchaseAmount:e.value,offset:0}),ee(function(e,t){if(e.value===A.nC.MinValue)return t?void 0:e.value}(e,$))}async function eF(e){G(e),I({...E,tags:e,offset:0}),await ew({...E,tags:e,offset:0})}async function eN(){I(T.f9),M(T.Vq[0]),U([]),V([]),G([]),O([]),X(T.NG),Y(void 0),ee(void 0),en(T.jW[0]),K(T.NG.value),er((0,T.sJ)(T.NG)),eo(ei[0].value),await ew(T.f9)}async function ey(){let e=T.jW[ea?1:0];en(e),es(e=>!e),I({...E,sortOrder:e.value,offset:0}),await ew({...E,sortOrder:e.value,offset:0})}let eB=eb()(T.f9,E);return{funds:F,risks:k,categories:w,pagination:y,tags:S,managementCompanies:c,sortTypeOptions:ei,yieldSortingField:H,cardYieldField:Z,selectedMinInvest:P,selectedIsClubFund:L,selectedRisks:J,selectedCategories:W,selectedManagementCompanies:z,selectedTags:D,sortOrder:et,sortBy:el,filterState:E,isShowOneMoreFundsButton:ef,filterChipses:[$,q],listFilterChipses:eh,isDefaultNoDataCard:eB,isIncreaseSort:ea,isLoading:ec,isError:eu,getFunds:ew,resetFilter:eN,checkRadio:function(e){return e.value===el},showMoreFundsClick:eS,updateSortBy:function(e){I({...E,sortBy:e,offset:0}),eo(e)},updateRisks:function(e){let t=e.map(e=>e.value);U(e),I({...E,risk:t,offset:0})},updateCategories:function(e){let t=e.map(e=>e.value);V(e),I({...E,category:t,offset:0})},updateFilterChips:ek,updateSortOrderChips:function(e){en(T.jW[e]),es(e=>!e),I({...E,sortOrder:T.jW[e].value,offset:0})},updateMinInvestChips:eT,updateModalTagFiltersChips:function(e){G(e),I({...E,tags:e,offset:0})},updateQuickTagFiltersChips:eF,updateIsClubFundChips:function(e){R(e),I({...E,clubFund:e.value}),Y(e.value?A.nC.IsAuthorFund:void 0)},updateSortByListFilter:function(e){let t=null!=e?e:T.f9.sortBy;eo(t),I({...E,sortBy:t,offset:0}),ew({...E,sortBy:t,offset:0})},updateYieldSortingField:function(e){let t=e.value;X(e),er((0,T.sJ)(e)),I({...E,yieldSortField:t,offset:0}),el!==A.jV.MinimalPurchaseAmount&&el!==A.jV.Sca&&(eo(t),I({...E,sortBy:t,yieldSortField:t,offset:0}))},updateSortOrderListFilter:ey,updateManagementCompanyIds:function(e){let t=e.map(e=>e.id);O(e),I({...E,managementCompanyIds:t,offset:0})}}}(t,n,i),[ep,ex]=(0,r.useState)(!1),ev=(0,r.useRef)(null),eA=(0,r.useRef)(null),ek=(0,c._m)("s"),[eS,eT]=(0,r.useState)(!1),eF=(0,l.useTranslations)(),eN=(0,r.useMemo)(()=>(0,_.z6)({promotions:j,type:"SITE"}),[j]),ey="true"===(0,b.SJ)("NEXT_PUBLIC_FEATURE_TOGGLE_FUNDS_COMPARE_ENABLED"),{compareIds:eB,isCompareLimitReached:eE,toggleCompare:eI,isSnackbarOpen:eP,isSnackbarClickable:eM,snackbarTitle:eL,snackbarDescription:eR,closeSnackbar:eQ,onSnackbarClick:eJ}=(0,v.T)({enabled:ey,storageKey:x.f}),{isCompareHintOpen:eU,setCompareHintCardElement:eW,closeCompareHint:eV}=function(e){let{enabled:t,isLoading:n,storageKey:a}=e,[s,i]=(0,r.useState)(!1),[l,o]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(t&&"true"!==window.localStorage.getItem(a)){let e=window.setTimeout(()=>{i(!0)});return()=>{window.clearTimeout(e)}}},[t,a]),(0,r.useEffect)(()=>{if(!t||!s||n||!l)return;let{top:e,height:a}=l.getBoundingClientRect(),i=e+window.scrollY,r=window.innerHeight/2;window.scrollTo({behavior:"smooth",top:Math.max(i-r+a/2,0)})},[l,t,s,n]),{isCompareHintOpen:s,setCompareHintCardElement:o,closeCompareHint:function(){i(!1),window.localStorage.setItem(a,"true")}}}({enabled:ey,isLoading:q,storageKey:x.o});(0,r.useEffect)(()=>{(0,g._)("investment_funds","investment_funds_view")},[]);let ez=(0,r.useCallback)(()=>{if(!eA.current)return;let e=ek?T.GG:T.ei,{top:t}=eA.current.getBoundingClientRect();eT(t<=e+1)},[ek]);(0,r.useEffect)(()=>(window.addEventListener("scroll",ez),()=>{window.removeEventListener("scroll",ez)}),[ez]);let eO=(0,C.$F)(k.length,X,K);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.A,{open:ey&&eP,title:eL,description:eR,isClickable:eM,onClose:eQ,onClick:function(){eJ(),(0,g._)("web_investment_funds_comparison","snackbar_click")}}),(0,a.jsx)(p.T,{className:ew().filterContainer,dataQa:{element:A.xJ.Block,name:"filterPanel"},children:(0,a.jsx)(W,{managementCompanies:y,risks:w,tags:N,filterChipses:D,yieldSortingField:I,selectedRisks:M,selectedTags:V,selectedManagementCompanies:R,handleSubmitButtonFilterPanel:function(){Y()},updateRisks:en,updateFilterChips:ei,updateTagFiltersChips:eo,updateYieldSortingField:em,updateManagementCompanyIds:e_,openAllParams:()=>ex(!0)})}),(0,a.jsxs)(p.T,{className:ew().container,id:"catalog",ref:ev,dataQa:{element:A.xJ.Block,name:"offers"},children:[(0,a.jsxs)(o.W2,{className:ew().headerWrapper,children:[eN.isVisible&&(0,a.jsx)(h.b,{desktopType:"showcase",bannerKey:eN.bannerWebKey,onClick:function(){eN.analytics&&(0,g._)("investment_funds","web_showcase_click_promobanner",{eventLabel:eN.analytics.eventLabel}),eN.actionUrl?window.open(eN.actionUrl,"_blank"):eN.filters&&(window.location.href="".concat(window.location.origin,"/").concat(window.location.pathname,"/?").concat(eN.filters))}}),!eO&&(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Header,name:"offersTitle"},children:(0,a.jsx)(o.X6,{className:ew().header,type:"h1",as:"p",children:eF("sc-fund.showcase.order.title",{orders:F.total})})})]}),(0,a.jsx)("div",{className:ew().listFilter,ref:eA,children:(0,a.jsx)(p.T,{dataQa:{element:A.xJ.Block,name:"listFilterPanel"},children:(0,a.jsx)(d.p,{chips:G,isIncreaseSort:Z,sortTypeItems:E,sortTypeValue:z,isFixed:eS,onParamsClick:()=>ex(!0),onSortTypeClick:eu,onIncreaseSortClick:ef,onChipClick:()=>{(0,g._)("investment_funds","investment_funds_secondary_Filter"),ex(!0)}})})}),(0,a.jsxs)(o.W2,{className:(0,u.Z)(ew().offers,"py-6","py-m-8"),children:[q&&(0,a.jsx)(eg,{}),!eO&&!q&&(0,a.jsx)(eh,{funds:k,cardYieldField:P,promotionsIds:eN.isVisible?eN.promotionsIds:void 0,compareIds:eB,isCompareLimitReached:eE,showCompareHint:eU,onCompareHintCardMount:eW,onCloseCompareHint:eV,onToggleCompare:eI}),eO&&(0,a.jsx)(m.C,{openModal:()=>ex(!0),state:eO}),(0,a.jsx)(p.T,{className:ew().showMoreButtonWrapper,dataQa:{element:A.xJ.Button,name:"showMore"},children:(0,a.jsx)(c.zx,{size:"s",label:eF("sc-fund.showcase.more-funds.button"),variant:"secondary",onClick:()=>{(0,g._)("investment_funds","investment_funds_show_more"),et()},className:(0,u.Z)(ew().showMoreButton,!H&&ew().hideShowMoreButton),disabled:q||!H})})]}),(0,a.jsx)(B,{isDrawerOpen:ep,sortOrder:O,sortTypeOptions:E,categories:S,managementCompanies:y,risks:w,tags:N,yieldSortingField:I,selectedRisks:M,selectedCategories:L,selectedManagementCompanies:R,selectedMinInvest:J,selectedIsClubFund:U,selectedTags:V,onClose:()=>ex(!1),updateRisks:en,updateMinInvestChips:er,updateTagFiltersChips:ec,updateIsClubFundChips:el,updateCategories:es,updateYieldSortingField:em,updateManagementCompanyIds:e_,updateSortOrderChips:ed,checkRadio:ee,updateSortBy:ea,handleSubmitButton:function(){Y(),ex(!1)},handleResetButton:function(){$(),ex(!1)}})]})]})}function eT(e){let{children:t,fundsData:n,filterParams:r,parsedSelectedParams:l,aggregatorIds:o,promotions:c}=e;return(0,i.Z)(o),r&&n&&l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eS,{filterParams:r,fundsData:n,parsedSelectedParams:l,promotions:c}),t]}):(0,s.notFound)()}},942:function(e,t,n){"use strict";n.d(t,{FundTagCrossLinks:function(){return l}});var a=n(57437),s=n(30631),i=n(44298),r=n(31578);function l(e){let{labelsData:t}=e;return 0===t.content.length?null:(0,a.jsx)(i.L,{labelsData:t,blockTitle:"",dataLayerPush:s.AB,href:r.mK})}},73723:function(e,t,n){"use strict";n.d(t,{FundTagFaqBlock:function(){return r}});var a=n(57437),s=n(30631),i=n(59226);function r(e){let{sectionTitle:t,questions:n,href:r,checkAllText:l}=e;return(0,a.jsx)(i.C,{sectionTitle:t,questions:n,dataLayerPush:s.AB,href:r,checkAllText:l})}},66719:function(e,t,n){"use strict";n.d(t,{FundTagSeoTextBlock:function(){return u}});var a=n(57437),s=n(2265),i=n(42586),r=n(35563),l=n(75461),o=n(31578),c=n(58421),d=n.n(c);function u(e){let{title:t,header:n,text:c}=e,[u,m]=(0,s.useState)(!1),f=(0,i.useTranslations)();return(0,a.jsx)("section",{className:d().root,children:(0,a.jsxs)(r.W2,{children:[t?(0,a.jsx)(r.X6,{type:"h2",className:d().title,children:t}):null,(0,a.jsxs)("div",{className:d().body,children:[n?(0,a.jsx)(r.xv,{className:d().header,children:n}):null,(0,a.jsx)("div",{className:u?d().textExpanded:d().textCollapsed,dangerouslySetInnerHTML:{__html:(0,o.ld)(c)}}),(0,a.jsx)(l.zx,{size:"small",variant:"secondary",onClick:()=>m(e=>!e),children:f(u?"sc-fund.showcase.seo-text.collapse":"sc-fund.showcase.seo-text.expand")})]})]})})}},16076:function(e,t,n){"use strict";n.d(t,{Portal:function(){return r}});var a=n(57437),s=n(2265),i=n(54887);function r(e){let{children:t,id:n="portal-root"}=e,[r,l]=(0,s.useState)(null);return(0,s.useEffect)(()=>(function(){let e=document.getElementById(n);if(e){l(e);return}let t=document.createElement("div");return t.id=n,document.body.appendChild(t),l(t),()=>{document.body.removeChild(t)}})(),[n]),r?(0,a.jsx)(a.Fragment,{children:(0,i.createPortal)(t,r)}):null}},69064:function(e,t,n){"use strict";n.d(t,{b:function(){return h}});var a=n(57437),s=n(2265),i=n(75461),r=n(6029),l=n(61994),o=n(46413),c=n.n(o);let d=e=>{let{width:t,height:n,inline:s,rounded:i,className:r}=e,o={...t&&{width:"".concat(t,"px")},...n&&{height:"".concat(n,"px")}};return(0,a.jsx)("span",{style:o,className:(0,l.Z)(r,c().uiSkeleton,[{[c().inline]:s},{[c().rounded]:i}])})};var u=n(5083),m=n(34057),f=n(46534),_=n.n(f);function h(e){let{bannerKey:t,className:n,desktopType:l,onClick:o}=e,[c,f]=(0,s.useState)(!1),[h,p]=(0,s.useState)(),x=(0,i._m)("l"),v=(0,i.IY)("s","m");return((0,s.useEffect)(()=>{setTimeout(()=>{f(!0)})},[]),(0,s.useEffect)(()=>{let e=setTimeout(()=>{p((0,r.Xj)({key:t,isTablet:v,isDesktop:x,desktopType:l}))});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 r},z6:function(){return s}});var a=n(31578);function s(e){let{promotions:t,type:n,id:s}=e;if(t){var r,l,o,c;let e=null===(l=t.data)||void 0===l?void 0:null===(r=l[0])||void 0===r?void 0:r.custom;if(e){let r=t.data[0],l=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=!!l&&d&&i(s,e.fundIds);return{isVisible:u,...u&&{isVisible:!!l&&d&&i(s,e.fundIds),bannerWebKey:e.bannerWebKey,filters:e.filterWeb,actionUrl:null==r?void 0:r.actionUrl,promotionsIds:null===(c=e.fundIds)||void 0===c?void 0:c.reduce((e,t)=>({...e,[t]:!0}),{}),analytics:{eventAction:r.analytics.eventAction,eventCategory:r.analytics.eventCategory,eventLabel:r.analytics.eventLabel}}}}}return{isVisible:!1}}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return!e||!!t.find(t=>t===e)}function r(e){let{key:t,isDesktop:n,isTablet:s,desktopType:i}=e;if(!t)return;let r="";return n||s?s?r="_tablet_web":n&&(r="_desktop_".concat(i)):r="_mob_web","".concat((0,a.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/banners/").concat(t).concat(r,".png")}},49074:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var a=n(57437),s=n(2265),i=n(80684),r=n(75461),l=n(61994),o=n(16076),c=n(93898),d=n.n(c);function u(e){let t=m(),n=new MutationObserver(()=>{let n=m();n!==t&&(t=n,e())});return n.observe(document.body,{childList:!0,subtree:!0}),()=>{n.disconnect()}}function m(){return!!document.querySelector(".finkit-widgets-sc-cookies-plate__wrapper")}function f(e){let{open:t,title:n,description:c,isClickable:f,onClose:_,onClick:h,dataQa:p}=e,x=(0,s.useSyncExternalStore)(u,m,()=>!1),v=null!=p?p:"snackbar";return(0,a.jsx)(o.Portal,{id:"snackbar-root",children:(0,a.jsxs)("div",{className:(0,l.Z)(d().snackbar,t?d().visible:d().hidden,f&&d().clickable,x&&d().withCookiePlate),role:f?"button":"status",tabIndex:t&&f?0:-1,"aria-hidden":!t,"data-qa":v,onClick:function(){f&&h()},onKeyDown:function(e){f&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),h())},children:[(0,a.jsx)(i.IconFdsCheckCircleO,{className:d().statusIcon,size:24}),(0,a.jsxs)("div",{className:d().content,children:[(0,a.jsxs)("div",{className:d().titleRow,children:[(0,a.jsx)("span",{className:d().title,"data-qa":"".concat(v,"-title"),children:n}),f&&(0,a.jsx)(i.IconFdsChevronRightO,{className:d().chevron,size:24})]}),(0,a.jsx)("span",{className:d().description,"data-qa":"".concat(v,"-description"),children:c})]}),(0,a.jsx)(r.zx,{dataQa:"".concat(v,"-close-button"),"aria-label":"Закрыть snackbar",iconLeft:(0,a.jsx)(i.IconFdsCloseO,{size:24}),onClick:function(e){e.preventDefault(),e.stopPropagation(),_()},appearance:"ghost",disabled:!t,shape:"circle-icon",size:"xs",variant:"secondary"})]})})}},9702:function(e,t,n){"use strict";n.d(t,{f:function(){return a},o:function(){return s}});let a="funds-compare-ids",s="funds-compare-tooltip-closed"},51615:function(e,t,n){"use strict";n.d(t,{T:function(){return c}});var a=n(2265),s=n(99376),i=n(49090);function r(e){return[...new Set(e.filter(e=>"string"==typeof e))].slice(0,4)}function l(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 r(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,s.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=r([...l(t,n),...c]);window.localStorage.setItem(n,JSON.stringify(e)),m(e),p(!0);return}m(l(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)?r(t):[])}catch(e){m([])}}}},[t,n]),(0,a.useEffect)(()=>{h&&v(u)},[u,h,v]);let g=(0,a.useCallback)(()=>{u.length<2||d.push(o(u))},[u,d]),A=(0,a.useCallback)(e=>{let a=l(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]),b=(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,i._6)(x,["фонд","фонда","фондов"])),closeSnackbar:()=>_(!1),clearCompare:b,onSnackbarClick:g,removeCompare:A,toggleCompare:function(e){let a;let s=l(t,n);a=s.includes(e)?s.filter(t=>t!==e):s.length>=4?s:[...s,e],window.localStorage.setItem(n,JSON.stringify(a)),m(a)}}}},45087:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a=n(2265),s=n(99376),i=n(31578);function r(e,t){let n=(0,s.useSearchParams)();(0,a.useEffect)(()=>{n&&(0,i.Rz)(Object.fromEntries(n),e,t)},[])}},39145:function(e){e.exports={modalFooter:"FilterDrawer_modalFooter__lIbCZ",footerButtonWrapper:"FilterDrawer_footerButtonWrapper__r7oU_",filters:"FilterDrawer_filters__OxxaQ",tagsBlock:"FilterDrawer_tagsBlock__l_tbk",selectWrapper:"FilterDrawer_selectWrapper__wTGGv",minInvestWrapper:"FilterDrawer_minInvestWrapper__OXnDT",text:"FilterDrawer_text__Ed9vH",sortBlock:"FilterDrawer_sortBlock__EfKKL"}},38158:function(e){e.exports={card:"FilterPanel_card__7I2kc",searchWrapper:"FilterPanel_searchWrapper__Jzs5n",contentWrapper:"FilterPanel_contentWrapper__93NWZ",filtersBlock:"FilterPanel_filtersBlock__r3G_g",filters:"FilterPanel_filters__ZX9A9",buttons:"FilterPanel_buttons__duIzv",buttonWrapper:"FilterPanel_buttonWrapper__st3ZV",allParamsButton:"FilterPanel_allParamsButton__lUTNT",submitButton:"FilterPanel_submitButton__lR63z",chipses:"FilterPanel_chipses__FatCK"}},30357:function(e){e.exports={filterContainer:"Main_filterContainer___ieLH",container:"Main_container__3R02P",headerWrapper:"Main_headerWrapper__F8LNq",header:"Main_header__v2z_m",offers:"Main_offers__iWRhY",showMoreButtonWrapper:"Main_showMoreButtonWrapper__YJBV5",showMoreButton:"Main_showMoreButton___FmZd",hideShowMoreButton:"Main_hideShowMoreButton__ZargG",listFilter:"Main_listFilter__YbLGn"}},97448:function(e){e.exports={banner:"Banner_banner__2UXMW",title:"Banner_title__8kTT0",text:"Banner_text__UA4mo",buttonWrapper:"Banner_buttonWrapper__HpbER",images:"Banner_images__Aanx4",lionWrapper:"Banner_lionWrapper__taI2d",backgroundWrapper:"Banner_backgroundWrapper__XjjtT"}},78164:function(e){e.exports={card:"FundCard_card__zZMyf",contentBlock:"FundCard_contentBlock__O7roo",emitent:"FundCard_emitent__4XE2t",elementLogo:"FundCard_elementLogo__Vi_c3",emitentInfo:"FundCard_emitentInfo__y4tsv",subtitle:"FundCard_subtitle__tDk7f",offerWrapper:"FundCard_offerWrapper__34dO6",offerBlock:"FundCard_offerBlock__6m3oH",tags:"FundCard_tags__076Og",actions:"FundCard_actions__15DbL",compareButtonBlock:"FundCard_compareButtonBlock__w1UAo",buttonBlock:"FundCard_buttonBlock__GZPCj",green:"FundCard_green__jgq58",red:"FundCard_red__F4CCV",captionIcon:"FundCard_captionIcon___A5gW",compareHintTitle:"FundCard_compareHintTitle__5X5Vx",compareHintText:"FundCard_compareHintText__biQQI"}},63043:function(e){e.exports={offer:"Offer_offer__1BQnE"}},20622:function(e){e.exports={offerSkeleton:"OffersSkeleton_offerSkeleton__qlCLC"}},58421:function(e){e.exports={root:"FundTagSeoTextBlock_root__0D6QQ",title:"FundTagSeoTextBlock_title__VkrA5",body:"FundTagSeoTextBlock_body__mUaVS",header:"FundTagSeoTextBlock_header__Xm3Qp",textCollapsed:"FundTagSeoTextBlock_textCollapsed__9eFip",textExpanded:"FundTagSeoTextBlock_textExpanded__OwPTx"}},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"}},20633:function(e){e.exports={referenceActive:"AppHint_referenceActive__ZTjtJ",floating:"AppHint_floating__wZZPa",arrow:"AppHint_arrow___fjMb",closeButton:"AppHint_closeButton__5su6x",overlay:"AppHint_overlay__JlXxh"}},93898:function(e){e.exports={snackbar:"Snackbar_snackbar__iKnFj",withCookiePlate:"Snackbar_withCookiePlate__ZIEoA",visible:"Snackbar_visible__w2oa5",hidden:"Snackbar_hidden__sZnfi",clickable:"Snackbar_clickable__PbwDF",statusIcon:"Snackbar_statusIcon__aKejN",content:"Snackbar_content__pMCmt",titleRow:"Snackbar_titleRow__yhA0M",title:"Snackbar_title__GIxD2",description:"Snackbar_description__4_0z1",chevron:"Snackbar_chevron__SmTdB"}}},function(e){e.O(0,[7448,3544,207,5591,1866,5501,4445,5878,5166,7630,5039,9362,6535,2972,4595,6737,4045,1578,2596,2971,2117,1744],function(){return e(e.s=95905)}),_N_E=e.O()}]);