(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[187],{63878:function(e,t,n){Promise.resolve().then(n.bind(n,52116)),Promise.resolve().then(n.bind(n,84842)),Promise.resolve().then(n.t.bind(n,89464,23)),Promise.resolve().then(n.t.bind(n,34380,23)),Promise.resolve().then(n.t.bind(n,43570,23)),Promise.resolve().then(n.t.bind(n,85530,23)),Promise.resolve().then(n.t.bind(n,49928,23)),Promise.resolve().then(n.bind(n,17146)),Promise.resolve().then(n.bind(n,59006)),Promise.resolve().then(n.bind(n,59994)),Promise.resolve().then(n.t.bind(n,85935,23)),Promise.resolve().then(n.t.bind(n,82327,23)),Promise.resolve().then(n.bind(n,46881)),Promise.resolve().then(n.bind(n,74075))},46881:function(e,t,n){"use strict";n.r(t),n.d(t,{LayoutClientPage:function(){return f}});var r=n(57437),i=n(2265),o=n(60915),l=n(99623),a=n(84842),c=n(67419),u=n(24232);function s(){let e="true"===(0,c.SJ)("NEXT_PUBLIC_FINGPT_ENABLE")?(0,u.default)(()=>n.e(673).then(n.bind(n,76754)).then(e=>e.FinGPTWidgetManager),{loadableGenerated:{webpack:()=>[null]},ssr:!1}):()=>null;return(0,r.jsx)(e,{platform:"finuslugi",showTooltip:!0,tooltipText:{title:"FinGPT — финансовый AI ассистент",subtitle:"Задайте вопрос о финансах"}})}var d=n(95362),m=n(85792),p=n(8869),v=n.n(p);function f(e){var t,n,u;let{children:p,header:f,support:_,faq:h,footer:g}=e;(0,i.useEffect)(()=>{(0,o.zK)()},[]);let S=null!==(u=null==h?void 0:h.value.blocks[0])&&void 0!==u?u:null;return(0,r.jsxs)("div",{children:[f&&(0,r.jsx)(a.Header,{data:f.value,showcaseUrl:(0,c.SJ)("NEXT_PUBLIC_SHOWCASE_ORIGIN"),minioUrl:(0,c.SJ)("NEXT_PUBLIC_S3_ASSETS"),lkUrl:(0,c.SJ)("NEXT_PUBLIC_MARKETPLACE_LK_BASE_URL")}),(0,r.jsx)("main",{className:v().main,children:p}),_&&(0,r.jsx)(d.B,{appCard:_.value.appCard,phoneCard:_.value.phoneCard,s3Assets:(0,c.SJ)("NEXT_PUBLIC_S3_MINIO_BASE_URL")}),S&&(0,r.jsx)(m.C,{sectionTitle:S.title,questions:S.faqs,dataLayerPush:o.AB,href:null===(t=S.readAllText)||void 0===t?void 0:t.link,checkAllText:null===(n=S.readAllText)||void 0===n?void 0:n.text}),g&&(0,r.jsx)(l.Footer,{data:g.value,showcaseUrl:(0,c.SJ)("NEXT_PUBLIC_SHOWCASE_ORIGIN"),minioUrl:(0,c.SJ)("NEXT_PUBLIC_S3_ASSETS")}),(0,r.jsx)(s,{})]})}},74075:function(e,t,n){"use strict";n.r(t),n.d(t,{Portal:function(){return o}});var r=n(2265),i=n(54887);let o=e=>{let{children:t,id:n="portal-root"}=e,[o,l]=(0,r.useState)(null);return(0,r.useEffect)(()=>{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]),o?(0,i.createPortal)(t,o):null}},21741:function(e,t,n){"use strict";n.d(t,{_:function(){return s}});var r=n(72773),i=n(98955),o=n(60915);let{browserId:l,sessionId:a}=(0,r.Z)(),c=i.Z.get("auth.gtm_customer_id"),u=e=>{(0,o.AB)(e)};function s(e,t,n){u({event:"data_event",browser_id:l,session_id:a,customer_id:c,eventCategory:e,eventAction:t,eventLabel:null==n?void 0:n.eventLabel,eventValue:null==n?void 0:n.eventValue})}},10777:function(e,t,n){"use strict";n.d(t,{tC:function(){return i},pY:function(){return r}});let r="/invest/funds",i=45},67419:function(e,t,n){"use strict";n.d(t,{E0:function(){return N},p6:function(){return c},JC:function(){return i},NM:function(){return T},Rz:function(){return C},SJ:function(){return s},kj:function(){return A},j0:function(){return b},ow:function(){return I},ld:function(){return E},lt:function(){return o}});var r=n(28443);function i(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{length:n}=String(Math.floor(e)),i=t?"\xa0₽":"";return n>7&&n<10?"".concat(String(+(e/1e6).toFixed(2)).replace(".",","),"\xa0млн").concat(i):n>=10&&n<13?"".concat(String(+(e/1e9).toFixed(2)).replace(".",","),"\xa0млрд").concat(i):n>=13?"".concat(String(+(e/1e12).toFixed(2)).replace(".",","),"\xa0трлн").concat(i):(0,r.lb)(e,{decimalCount:2,hasCurrencySymbol:t,decimalIsWithoutZeros:!0})}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return+e.toFixed(t)}var l=n(68947),a=n(50309);function c(e,t){let{format:n="dd.MM.yy"}=null!=t?t:{};try{if("string"==typeof e)return(0,l.Z)(new Date(e),n,{locale:a.Z});return(0,l.Z)(e,n,{locale:a.Z})}catch(t){return e}}var u=n(20564);function s(e){return(0,u.env)(e)}var d=n(21741),m=n(10777);let p=e=>/^https:\/\//gi.test(e),v=e=>["",...e.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join("."),f=()=>window.location.host.indexOf("localhost")>=0,_=e=>('"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)),h=e=>encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent),g=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[(]/g,"%28").replace(/[)]/g,"%29"),S=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,r=s("NEXT_PUBLIC_SHOWCASE_ORIGIN"),i=f()?"":"; domain=".concat(v(r)),o=new Date(new Date().getTime()+864e5*n).toUTCString();document.cookie="".concat(g(e),"=").concat(h("string"==typeof t?t:JSON.stringify(t)),"; SameSite=None").concat(p(r)?"; Secure":"").concat(i,"; expires=").concat(o,"; path=/;")},C=(e,t,n)=>{if(null==e?void 0:e.aggregator_id){let i={...e,...n&&{platformProductId:n},create_date:new Date().toISOString()},o={payload:[]};try{var r;o=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}o.payload||(o.payload=[]),o.payload.push(i),t[e.aggregator_id]&&(S("cpa_click",o,m.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 b(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 E(e){var t;return null!==(t=null==e?void 0:e.replace(/\sstyle=["\\]+[a-z0-9-:; !\s]*[\\"]+/gm,""))&&void 0!==t?t:""}var P=n(50492),y=n(94624);function I(e,t,n){let r="string"==typeof e?(0,P.Z)(e):e,i="string"==typeof t?(0,P.Z)(t):t,o="string"==typeof n?(0,P.Z)(n):n;return(0,y.Z)(r,{start:i,end:o})}function N(){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 T(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}),"%")}function A(e){let t=s("NEXT_PUBLIC_SHOWCASE_ORIGIN");return{title:"Журнал Финуслуги",description:"Рассказываем о финансах, разбираем новые законы и даем лайфхаки, как приумножить доход",chips:[{id:1,label:"Инвестиции",items:e.articles.map(e=>{let{title:n,url:r,img:i,public_date:o}=e;return{title:n,dt:o,url:"".concat(t,"/").concat(r),img:"".concat(t,"/img/posts/big/").concat(i.file)}})}],url:"".concat(t,"/navigator")}}},82327:function(){},8869:function(e){e.exports={main:"LayoutClientPage_main__gtx0i"}}},function(e){e.O(0,[544,207,77,909,180,172,623,935,898,992,971,69,744],function(){return e(e.s=63878)}),_N_E=e.O()}]);