(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[289],{7839:function(e,t,n){"use strict";n.d(t,{G:function(){return d}});var r=n(57437),o=n(2265),i=n(20703),a={src:"/invest/funds/_next/static/media/no-logo.aee2f188.svg",height:32,width:32,blurWidth:0,blurHeight:0},c=n(75504),u=n(49623),l=n(18987),s=n.n(l);let d=(0,o.memo)(e=>{let{id:t,alt:n,type:l="brandmark",entity:d="bank",directory:f="images",fullUrl:p,size:m=46,className:g}=e,[_,v]=(0,o.useState)(!1),h=p||"".concat((0,u.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/").concat(f,"/logo-").concat(l,"-").concat(d,"-").concat(t,".svg");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Suspense,{children:(0,r.jsx)(i.default,{"data-qa":"app-logo-image",src:h,className:(0,c.Z)(!_&&s().hidden,g),alt:n,width:m,height:m,unoptimized:!0,onLoad:function(e){e.currentTarget.naturalWidth>0&&v(!0)}})}),(0,r.jsx)(i.default,{"data-qa":"app-logo-no-logo-image",src:a,className:(0,c.Z)(s().logoImage,_&&s().notDisplayed),alt:"Изображение отсутствует"})]})});d.displayName="AppLogo"},50571:function(e,t,n){"use strict";n.d(t,{b:function(){return g}});var r=n(57437),o=n(2265),i=n(75504),a=n(17438),c=n.n(a);let u=e=>{let{width:t,height:n,inline:o,rounded:a,className:u}=e,l={...t&&{width:"".concat(t,"px")},...n&&{height:"".concat(n,"px")}};return(0,r.jsx)("span",{style:l,className:(0,i.Z)(u,c().uiSkeleton,[{[c().inline]:o},{[c().rounded]:a}])})};var l=n(61810),s=n(54189),d=n(21585),f=n(55415),p=n(1444),m=n.n(p);function g(e){let{bannerKey:t,className:n,desktopType:i,onClick:a}=e,[c,p]=(0,o.useState)(!1),[g,_]=(0,o.useState)(),v=(0,l._m)("l"),h=(0,l.IY)("s","m");return((0,o.useEffect)(()=>{p(!0)},[]),(0,o.useEffect)(()=>{_((0,s.Xj)({key:t,isTablet:h,isDesktop:v,desktopType:i}))},[v,h,t]),c)?(0,r.jsx)(d.T,{dataQa:{element:f.xJ.Banner,name:"promotions"},className:n,children:(0,r.jsx)("img",{style:{cursor:"pointer",borderRadius:"16px",minHeight:"125px"},src:g,alt:"Акционный Баннер",width:"100%",onClick:()=>null==a?void 0:a()})}):(0,r.jsx)("div",{className:n,children:(0,r.jsx)(u,{className:m().skeleton,height:125})})}},54189:function(e,t,n){"use strict";n.d(t,{Xj:function(){return a},z6:function(){return o}});var r=n(49623);function o(e){let{promotions:t,type:n,id:o}=e;if(t){var a,c,u,l;let e=null===(c=t.data)||void 0===c?void 0:null===(a=c[0])||void 0===a?void 0:a.custom;if(e){let a=t.data[0],c=null===(u=e.visible)||void 0===u?void 0:u.find(e=>e===n),s=(0,r.ow)(new Date,e.start,e.end),d=!!c&&s&&i(o,e.fundIds);return{isVisible:d,...d&&{isVisible:!!c&&s&&i(o,e.fundIds),bannerWebKey:e.bannerWebKey,filters:e.filterWeb,actionUrl:null==a?void 0:a.actionUrl,promotionsIds:null===(l=e.fundIds)||void 0===l?void 0:l.reduce((e,t)=>({...e,[t]:!0}),{}),analytics:{eventAction:a.analytics.eventAction,eventCategory:a.analytics.eventCategory,eventLabel:a.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 a(e){let{key:t,isDesktop:n,isTablet:o,desktopType:i}=e;if(!t)return;let a="";return n||o?o?a="_tablet_web":n&&(a="_desktop_".concat(i)):a="_mob_web","".concat((0,r.SJ)("NEXT_PUBLIC_S3_ASSETS"),"/investment/banners/").concat(t).concat(a,".png")}},21585:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(57437),o=n(14307);let i=e=>{let{tag:t="div",children:n,dataQa:i,className:a,...c}=e,u=(0,o.J)()(i),l="string"==typeof t,s={...c,...l?{"data-qa":u}:{dataQa:u}};return(0,r.jsx)(t,{className:a,...s,children:n})}},38294:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2265),o=n(47907),i=n(49623);function a(e,t){let n=(0,o.useSearchParams)();(0,r.useEffect)(()=>{(0,i.Rz)(Object.fromEntries(n),e,t)},[])}},14307:function(e,t,n){"use strict";n.d(t,{J:function(){return c}});var r=n(47907),o=n(8278),i=n.n(o),a=n(2265);function c(){let e=(0,r.useParams)(),t=(0,r.usePathname)();return(0,a.useCallback)(n=>{let{prefix:r,element:o,name:a,index:c}=n,u=t.split("/").filter(e=>e).map(t=>{var n;return null!==(n=Object.keys(e).find(n=>e[n]===t))&&void 0!==n?n:t});u.unshift("funds");let l=u.join("-"),s=i()(a),d=void 0!==c?"-".concat(function(e){if(Number.isNaN(e)||e<0)throw Error("Incorrect value '".concat(e,"' for the property 'index'. Must be a number and >= 0}"));return e}(c)):"";return"".concat(r?"".concat(r,"-"):"").concat(l,"-").concat(o,"-").concat(s).concat(d)},[e,t])}},21741:function(e,t,n){"use strict";n.d(t,{_:function(){return s}});var r=n(72773),o=n(98955),i=n(60915);let{browserId:a,sessionId:c}=(0,r.Z)(),u=o.Z.get("auth.gtm_customer_id"),l=e=>{(0,i.AB)(e)};function s(e,t,n){l({event:"data_event",browser_id:a,session_id:c,customer_id:u,eventCategory:e,eventAction:t,eventLabel:null==n?void 0:n.eventLabel,eventValue:null==n?void 0:n.eventValue})}},53238:function(e,t,n){"use strict";var r,o;n.d(t,{x:function(){return r}}),(o=r||(r={})).Form="form",o.Link="link",o.Header="header",o.Breadcrumbs="breadcrumbs",o.Image="image",o.Button="button",o.Dropdown="dropdown",o.Slider="slider",o.Switcher="switcher",o.Banner="banner",o.Checkbox="checkbox",o.Radiobutton="radiobutton",o.Text="text",o.List="list",o.Block="block",o.Collapse="collapse",o.Chart="chart",o.Modal="modal",o.Table="table",o.Icon="icon",o.Chips="chips",o.Tile="tile",o.Caption="caption",o.Input="input",o.Tabs="tabs",o.Tag="tag",o.Toggle="toggle",o.Drawer="drawer",o.Select="select",o.Hint="hint",o.Label="label",o.ProgressBar="progressbar"},55415:function(e,t,n){"use strict";n.d(t,{xJ:function(){return I.x},nC:function(){return v},al:function(){return h},K7:function(){return S},jV:function(){return _},sM:function(){return y},gQ:function(){return p},X_:function(){return m},xl:function(){return b},Cp:function(){return g}});var r,o,i,a,c,u,l,s,d,f,p,m,g,_,v,h,b,S,E,y,I=n(53238);(r=p||(p={})).High="HIGH",r.Medium="MEDIUM",r.Low="LOW",(o=m||(m={})).Asc="ASC",o.Desc="DESC",(i=g||(g={})).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",(a=_||(_={})).Sca="NET_ASSET_VALUE",a.MinimalPurchaseAmount="MINIMAL_PURCHASE_AMOUNT",(c=v||(v={}))[c.MinValue=100]="MinValue",c[c.IsAuthorFund=1]="IsAuthorFund",(u=h||(h={})).Mixed="MIXED",u.Bond="BOND",u.Stock="STOCK",u.Metal="METAL",u.Money="MONEY",u.Realty="REALTY",u.None="NONE",(l=b||(b={})).Extended="extended",l.Quick="quick",(s=S||(S={}))[s.Yield=0]="Yield",s[s.ManagementCompanies=1]="ManagementCompanies",s[s.Risks=2]="Risks",s[s.Category=3]="Category",(d=E||(E={})).Header="header",d.Journal="journal",d.Support="support",d.Faq="faq",d.Search="search",d.Footer="footer",(f=y||(y={})).OneMonth="ONE_MONTH",f.ThreeMonths="THREE_MONTHS",f.SixMonth="SIX_MONTH",f.OneYear="ONE_YEAR",f.ThreeYears="THREE_YEARS",f.FiveYears="FIVE_YEARS"},7690:function(e,t,n){"use strict";n.d(t,{tC:function(){return o},pY:function(){return r}});let r="/invest/funds",o=45},49623:function(e,t,n){"use strict";n.d(t,{E0:function(){return k},p6:function(){return u},JC:function(){return o},NM:function(){return x},Rz:function(){return S},SJ:function(){return s},j0:function(){return E},ow:function(){return A},ld:function(){return y},lt:function(){return i}});var r=n(28443);function o(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{length:n}=String(Math.floor(e)),o=t?"\xa0₽":"";return n>7&&n<10?"".concat(String(+(e/1e6).toFixed(2)).replace(".",","),"\xa0млн").concat(o):n>=10&&n<13?"".concat(String(+(e/1e9).toFixed(2)).replace(".",","),"\xa0млрд").concat(o):n>=13?"".concat(String(+(e/1e12).toFixed(2)).replace(".",","),"\xa0трлн").concat(o):(0,r.lb)(e,{decimalCount:2,hasCurrencySymbol:t,decimalIsWithoutZeros:!0})}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return+e.toFixed(t)}var a=n(68947),c=n(50309);function u(e,t){let{format:n="dd.MM.yy"}=null!=t?t:{};try{if("string"==typeof e)return(0,a.Z)(new Date(e),n,{locale:c.Z});return(0,a.Z)(e,n,{locale:c.Z})}catch(t){return e}}var l=n(20564);function s(e){return(0,l.env)(e)}var d=n(21741),f=n(7690);let p=e=>/^https:\/\//gi.test(e),m=e=>["",...e.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join("."),g=()=>window.location.host.indexOf("localhost")>=0,_=e=>('"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)),v=e=>encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent),h=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[(]/g,"%28").replace(/[)]/g,"%29"),b=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,r=s("NEXT_PUBLIC_SHOWCASE_ORIGIN"),o=g()?"":"; domain=".concat(m(r)),i=new Date(new Date().getTime()+864e5*n).toUTCString();document.cookie="".concat(h(e),"=").concat(v("string"==typeof t?t:JSON.stringify(t)),"; SameSite=Strict").concat(p(r)?"; Secure":"").concat(o,"; expires=").concat(i,"; path=/;")},S=(e,t,n)=>{if(null==e?void 0:e.aggregator_id){let o={...e,...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(e=>e.split("=")).map(e=>e.map(e=>_(e))))}())||void 0===r?void 0:r.cpa_click)||"{}")}catch(e){return}i.payload||(i.payload=[]),i.payload.push(o),t[e.aggregator_id]&&(b("cpa_click",i,f.tC),(0,d._)(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}))}};function E(e,t,n){if(e<1||!n.length)return null;let r=Math.min(e-1,n.length);return[...n.slice(0,r),t,...n.slice(r)]}function y(e){var t;return null!==(t=null==e?void 0:e.replace(/\sstyle=["\\]+[a-z0-9-:; !\s]*[\\"]+/gm,""))&&void 0!==t?t:""}var I=n(50492),C=n(94624);function A(e,t,n){let r="string"==typeof e?(0,I.Z)(e):e,o="string"==typeof t?(0,I.Z)(t):t,i="string"==typeof n?(0,I.Z)(n):n;return(0,C.Z)(r,{start:o,end:i})}function k(){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 n,r;return{...e,params:{visible:e.params.visible,variant:null!==(n=e.params.variant)&&void 0!==n?n:t,priority:null!==(r=e.params.priority)&&void 0!==r?r: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}))}function x(e){if(null===e)return"—";if(0===e)return"0%";let t=e>0?"+":"";return"".concat(t).concat((0,r.lb)(e,{decimalCount:2,hasCurrencySymbol:!1}),"%")}},18987:function(e){e.exports={logoImage:"AppLogo_logoImage__vQAM2",notDisplayed:"AppLogo_notDisplayed___Oq9y",hidden:"AppLogo_hidden__fmlYV"}},1444:function(e){e.exports={skeleton:"PromotionsBanner_skeleton__lP64v"}},17438:function(e){e.exports={uiSkeleton:"UiSkeleton_uiSkeleton__5gH0G",rounded:"UiSkeleton_rounded__e2mJS",inline:"UiSkeleton_inline__6UIts"}}}]);