(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[143],{21585:function(t,e,n){"use strict";n.d(e,{T:function(){return i}});var r=n(57437),a=n(14307);let i=t=>{let{tag:e="div",children:n,dataQa:i,className:o,...u}=t,c=(0,a.J)()(i),s="string"==typeof e,l={...u,...s?{"data-qa":c}:{dataQa:c}};return(0,r.jsx)(e,{className:o,...l,children:n})}},56423:function(t,e,n){"use strict";n.d(e,{C:function(){return v}});var r=n(57437),a=n(30982),i=n(8792),o=n(32833),u=n(61810),c=n(20703),s=n(75504),l=n(33800),d=n(49623),m=n(97178),f=n.n(m);let h="".concat((0,d.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/common/cat-with-plug.png"),p="".concat((0,d.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/common/cat-with-magnifier.png"),g="".concat((0,d.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/common/stub-mobile.png"),_="".concat((0,d.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/common/stub-desktop.png"),b={[l.P.Default]:{title:"sc-fund.showcase.stub.default-filter.title",text:"sc-fund.showcase.stub.default-filter.text",mobileImage:{image:g,height:317,width:328},desktopImage:{image:_,height:330,width:1110},altText:"Фонды не найдены",buttonLabel:"sc-fund.showcase.stub.default-filter.button"},[l.P.Custom]:{title:"sc-fund.showcase.stub.custom-filter.title",text:"sc-fund.showcase.stub.custom-filter.text",mobileImage:{image:p,height:182,width:240},desktopImage:{image:p,height:182,width:240},altText:"Фонды не найдены",buttonLabel:"sc-fund.showcase.stub.custom-filter.button"},[l.P.Error]:{title:"sc-fund.showcase.stub.error.title",text:"sc-fund.showcase.stub.error.text",mobileImage:{image:h,height:166,width:166},desktopImage:{image:h,height:200,width:200},altText:"Ошибка при загрузке",buttonLabel:"sc-fund.showcase.stub.error.button"}};function v(t){let{state:e,openModal:n}=t,m=(0,a.useTranslations)(),h=(0,u._m)("m"),p=(0,d.SJ)("NEXT_PUBLIC_SHOWCASE_ORIGIN"),{title:g,text:_,desktopImage:v,mobileImage:E,buttonLabel:S,altText:C}=b[e],I=h?v:E;return(0,r.jsxs)("div",{className:f().stub,children:[(0,r.jsx)(o.X6,{className:(0,s.Z)(f().header,"mb-8","mb-m-4"),type:"h2",children:m(g)}),(0,r.jsx)(o.xv,{className:(0,s.Z)(f().text,"mb-8","mb-m-6"),children:m(_)}),(0,r.jsx)(c.default,{className:"mb-8 mb-m-6",height:I.height,width:I.width,src:I.image,alt:C,unoptimized:!0}),function(){switch(e){case l.P.Default:return(0,r.jsx)(u.zx,{className:f().button,size:"s",as:i.default,label:m(S),href:"https://t.me/MoexFinuslugi"});case l.P.Custom:return(0,r.jsx)(u.zx,{className:f().button,size:"s",label:m(S),variant:"secondary",onClick:n});default:return(0,r.jsx)(u.zx,{className:f().button,size:"s",as:i.default,label:m(S),href:p})}}()]})}},33800:function(t,e,n){"use strict";var r,a;n.d(e,{P:function(){return r}}),(a=r||(r={})).Default="Default",a.Custom="Custom",a.Error="Error"},14307:function(t,e,n){"use strict";n.d(e,{J:function(){return u}});var r=n(47907),a=n(8278),i=n.n(a),o=n(2265);function u(){let t=(0,r.useParams)(),e=(0,r.usePathname)();return(0,o.useCallback)(n=>{let{prefix:r,element:a,name:o,index:u}=n,c=e.split("/").filter(t=>t).map(e=>{var n;return null!==(n=Object.keys(t).find(n=>t[n]===e))&&void 0!==n?n:e});c.unshift("funds");let s=c.join("-"),l=i()(o),d=void 0!==u?"-".concat(function(t){if(Number.isNaN(t)||t<0)throw Error("Incorrect value '".concat(t,"' for the property 'index'. Must be a number and >= 0}"));return t}(u)):"";return"".concat(r?"".concat(r,"-"):"").concat(s,"-").concat(a,"-").concat(l).concat(d)},[t,e])}},21741:function(t,e,n){"use strict";n.d(e,{_:function(){return l}});var r=n(72773),a=n(98955),i=n(60915);let{browserId:o,sessionId:u}=(0,r.Z)(),c=a.Z.get("auth.gtm_customer_id"),s=t=>{(0,i.AB)(t)};function l(t,e,n){s({event:"data_event",browser_id:o,session_id:u,customer_id:c,eventCategory:t,eventAction:e,eventLabel:null==n?void 0:n.eventLabel,eventValue:null==n?void 0:n.eventValue})}},53238:function(t,e,n){"use strict";var r,a;n.d(e,{x:function(){return r}}),(a=r||(r={})).Form="form",a.Link="link",a.Header="header",a.Breadcrumbs="breadcrumbs",a.Image="image",a.Button="button",a.Dropdown="dropdown",a.Slider="slider",a.Switcher="switcher",a.Banner="banner",a.Checkbox="checkbox",a.Radiobutton="radiobutton",a.Text="text",a.List="list",a.Block="block",a.Collapse="collapse",a.Chart="chart",a.Modal="modal",a.Table="table",a.Icon="icon",a.Chips="chips",a.Tile="tile",a.Caption="caption",a.Input="input",a.Tabs="tabs",a.Tag="tag",a.Toggle="toggle",a.Drawer="drawer",a.Select="select",a.Hint="hint",a.Label="label",a.ProgressBar="progressbar"},1789:function(t,e,n){"use strict";n.d(e,{xJ:function(){return A.x},nC:function(){return S},al:function(){return C},K7:function(){return N},jV:function(){return E},ce:function(){return x},sM:function(){return g},gQ:function(){return _},X_:function(){return b},xl:function(){return I},Cp:function(){return v}}),(p=g||(g={})).OneMonth="ONE_MONTH",p.ThreeMonths="THREE_MONTHS",p.SixMonth="SIX_MONTH",p.OneYear="ONE_YEAR",p.ThreeYears="THREE_YEARS",p.FiveYears="FIVE_YEARS";var r,a,i,o,u,c,s,l,d,m,f,h,p,g,_,b,v,E,S,C,I,N,x,T,w,y,A=n(53238);(r=_||(_={})).High="HIGH",r.Medium="MEDIUM",r.Low="LOW",(a=b||(b={})).Asc="ASC",a.Desc="DESC",(i=v||(v={})).YieldMonth="YIELD_MONTH",i.YieldQuarter="YIELD_QUARTER",i.YieldHalfYear="YIELD_HALF_YEAR",i.YieldYear="YIELD_YEAR",i.YieldThreeYear="YIELD_THREE_YEAR",i.YieldFiveYear="YIELD_FIVE_YEAR",i.YieldAll="YIELD_ALL",(o=E||(E={})).Sca="NET_ASSET_VALUE",o.MinimalPurchaseAmount="MINIMAL_PURCHASE_AMOUNT",(u=S||(S={}))[u.MinValue=100]="MinValue",u[u.IsAuthorFund=1]="IsAuthorFund",(c=C||(C={})).Mixed="MIXED",c.Bond="BOND",c.Stock="STOCK",c.Metal="METAL",c.Money="MONEY",c.Realty="REALTY",c.None="NONE",(s=I||(I={})).Extended="extended",s.Quick="quick",(l=N||(N={}))[l.Yield=0]="Yield",l[l.ManagementCompanies=1]="ManagementCompanies",l[l.Risks=2]="Risks",l[l.Category=3]="Category",(d=x||(x={})).View="view",d.Buy="buy",(m=T||(T={})).Rational="Оптимальный",m.Aggressive="Активный рост",m.Conservative="Минимальный риск",(f=w||(w={})).Archived="ARCHIVED",f.Demo="DEMO",f.Draft="DRAFT",f.Published="PUBLISHED",(h=y||(y={})).Header="header",h.Journal="journal",h.Support="support",h.Faq="faq",h.Search="search",h.Footer="footer"},7690:function(t,e,n){"use strict";n.d(e,{tC:function(){return a},pY:function(){return r}});let r="/invest/funds",a=45},49623:function(t,e,n){"use strict";n.d(e,{E0:function(){return T},p6:function(){return c},JC:function(){return a},NM:function(){return w},Rz:function(){return E},SJ:function(){return l},j0:function(){return S},ow:function(){return x},ld:function(){return C},lt:function(){return i}});var r=n(28443);function a(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{length:n}=String(Math.floor(t)),a=e?"\xa0₽":"";return n>7&&n<10?"".concat(String(+(t/1e6).toFixed(2)).replace(".",","),"\xa0млн").concat(a):n>=10&&n<13?"".concat(String(+(t/1e9).toFixed(2)).replace(".",","),"\xa0млрд").concat(a):n>=13?"".concat(String(+(t/1e12).toFixed(2)).replace(".",","),"\xa0трлн").concat(a):(0,r.lb)(t,{decimalCount:2,hasCurrencySymbol:e,decimalIsWithoutZeros:!0})}function i(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return+t.toFixed(e)}var o=n(68947),u=n(50309);function c(t,e){let{format:n="dd.MM.yy"}=null!=e?e:{};try{if("string"==typeof t)return(0,o.Z)(new Date(t),n,{locale:u.Z});return(0,o.Z)(t,n,{locale:u.Z})}catch(e){return t}}var s=n(20564);function l(t){return(0,s.env)(t)}var d=n(21741),m=n(7690);let f=t=>/^https:\/\//gi.test(t),h=t=>["",...t.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join("."),p=()=>window.location.host.indexOf("localhost")>=0,g=t=>('"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)),_=t=>encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent),b=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[(]/g,"%28").replace(/[)]/g,"%29"),v=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,r=l("NEXT_PUBLIC_SHOWCASE_ORIGIN"),a=p()?"":"; domain=".concat(h(r)),i=new Date(new Date().getTime()+864e5*n).toUTCString();document.cookie="".concat(b(t),"=").concat(_("string"==typeof e?e:JSON.stringify(e)),"; SameSite=None").concat(f(r)?"; Secure":"").concat(a,"; expires=").concat(i,"; path=/;")},E=(t,e,n)=>{if(null==t?void 0:t.aggregator_id){let a={...t,...n&&{platformProductId:n},create_date:new Date().toISOString()},i={payload:[]};try{var r;i=JSON.parse((null===(r=function(){if("undefined"!=typeof document&&document.cookie)return Object.fromEntries(document.cookie.split("; ").map(t=>t.split("=")).map(t=>t.map(t=>g(t))))}())||void 0===r?void 0:r.cpa_click)||"{}")}catch(t){return}i.payload||(i.payload=[]),i.payload.push(a),e[t.aggregator_id]&&(v("cpa_click",i,m.tC),(0,d._)(t.aggregator_id,"CPA_click",{eventLabel:window.location.pathname,eventValue:t.utm_term||t.click_id,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium}))}};function S(t,e,n){if(t<1||!n.length)return null;let r=Math.min(t-1,n.length);return[...n.slice(0,r),e,...n.slice(r)]}function C(t){var e;return null!==(e=null==t?void 0:t.replace(/\sstyle=["\\]+[a-z0-9-:; !\s]*[\\"]+/gm,""))&&void 0!==e?e:""}var I=n(50492),N=n(94624);function x(t,e,n){let r="string"==typeof t?(0,I.Z)(t):t,a="string"==typeof e?(0,I.Z)(e):e,i="string"==typeof n?(0,I.Z)(n):n;return(0,N.Z)(r,{start:a,end:i})}function T(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"primary";return t.filter(t=>{var e;return null===(e=t.params)||void 0===e?void 0:e.visible}).map(t=>{var n,r;return{...t,params:{visible:t.params.visible,variant:null!==(n=t.params.variant)&&void 0!==n?n:e,priority:null!==(r=t.params.priority)&&void 0!==r?r:Number.MAX_SAFE_INTEGER}}}).toSorted((t,e)=>t.params.priority-e.params.priority).map(t=>({label:t.displayName,variant:t.params.variant,dataQa:t.code,hint:t.description}))}function w(t){if(null===t)return"—";if(0===t)return"0%";let e=t>0?"+":"";return"".concat(e).concat((0,r.lb)(t,{decimalCount:2,hasCurrencySymbol:!1}),"%")}},97178:function(t){t.exports={stub:"NoDataCard_stub__mTCMC",header:"NoDataCard_header__yB_iN",text:"NoDataCard_text__46yhI",button:"NoDataCard_button__QezZu"}}}]);