(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7187],{4218: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,85530,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,51593,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(85792),a=n(99623),c=n(84842),u=n(95362),s=n(24232),d=n(8465);function m(){let e="true"===(0,d.SJ)("NEXT_PUBLIC_FINGPT_ENABLE")?(0,s.default)(()=>n.e(3673).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 p=n(8869),v=n.n(p);function f(e){var t,n,s;let{children:p,header:f,support:_,faq:h,footer:g}=e;(0,i.useEffect)(()=>{(0,o.zK)()},[]);let S=null!==(s=null==h?void 0:h.value.blocks[0])&&void 0!==s?s:null;return(0,r.jsxs)("div",{children:[f&&(0,r.jsx)(c.Header,{data:f.value,showcaseUrl:(0,d.SJ)("NEXT_PUBLIC_SHOWCASE_ORIGIN"),minioUrl:(0,d.SJ)("NEXT_PUBLIC_S3_ASSETS"),lkUrl:(0,d.SJ)("NEXT_PUBLIC_MARKETPLACE_LK_BASE_URL")}),(0,r.jsx)("main",{className:v().main,children:p}),_&&(0,r.jsx)(u.B,{appCard:_.value.appCard,phoneCard:_.value.phoneCard,s3Assets:(0,d.SJ)("NEXT_PUBLIC_S3_MINIO_BASE_URL")}),S&&(0,r.jsx)(l.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)(a.Footer,{data:g.value,showcaseUrl:(0,d.SJ)("NEXT_PUBLIC_SHOWCASE_ORIGIN"),minioUrl:(0,d.SJ)("NEXT_PUBLIC_S3_ASSETS")}),(0,r.jsx)(m,{})]})}},74075:function(e,t,n){"use strict";n.r(t),n.d(t,{Portal:function(){return l}});var r=n(57437),i=n(2265),o=n(54887);function l(e){let{children:t,id:n="portal-root"}=e,[l,a]=(0,i.useState)(null);return(0,i.useEffect)(()=>(function(){let e=document.getElementById(n);if(e){a(e);return}let t=document.createElement("div");return t.id=n,document.body.appendChild(t),a(t),()=>{document.body.removeChild(t)}})(),[n]),l?(0,r.jsx)(r.Fragment,{children:(0,o.createPortal)(t,l)}):null}},21741:function(e,t,n){"use strict";n.d(t,{_:function(){return l}});var r=n(60915);let i=n(98955).Z.get("auth.gtm_customer_id"),o=e=>{(0,r.AB)(e)};function l(e,t,n){o({event:"data_event",customer_id:i,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 r},pY:function(){return i}});let r=45,i="/invest/funds"},8465:function(e,t,n){"use strict";n.d(t,{E0:function(){return f},p6:function(){return g},JC:function(){return C},NM:function(){return b},Rz:function(){return v},SJ:function(){return l},kj:function(){return E},j0:function(){return P},ow:function(){return N},ld:function(){return T},lt:function(){return A}});var r=n(21741),i=n(10777),o=n(20564);function l(e){return(0,o.env)(e)}let a=e=>/^https:\/\//gi.test(e),c=e=>["",...e.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join("."),u=()=>window.location.host.indexOf("localhost")>=0,s=e=>('"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)),d=e=>encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent),m=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[(]/g,"%28").replace(/[)]/g,"%29"),p=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,r=l("NEXT_PUBLIC_SHOWCASE_ORIGIN"),i=u()?"":"; domain=".concat(c(r)),o=new Date(new Date().getTime()+864e5*n).toUTCString();document.cookie="".concat(m(e),"=").concat(d("string"==typeof t?t:JSON.stringify(t)),"; SameSite=None").concat(a(r)?"; Secure":"").concat(i,"; expires=").concat(o,"; path=/;")},v=(e,t,n)=>{if(null==e?void 0:e.aggregator_id){let l={...e,...n&&{platformProductId:n},create_date:new Date().toISOString()},a={payload:[]};try{var o;a=JSON.parse((null===(o=function(){if("undefined"!=typeof document&&document.cookie)return Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=")).map(e=>e.map(e=>s(e))))}())||void 0===o?void 0:o.cpa_click)||"{}")}catch(e){return}a.payload||(a.payload=[]),a.payload.push(l),t[e.aggregator_id]&&(p("cpa_click",a,i.tC),(0,r._)(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 f(){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}))}var _=n(68947),h=n(50309);function g(e,t){let{format:n="dd.MM.yy"}=null!=t?t:{};try{if("string"==typeof e)return(0,_.Z)(new Date(e),n,{locale:h.Z});return(0,_.Z)(e,n,{locale:h.Z})}catch(t){return e}}var S=n(6731);function C(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{length:n}=String(Math.floor(e)),r=t?"\xa0₽":"";return n>7&&n<10?"".concat(String(+(e/1e6).toFixed(2)).replace(".",","),"\xa0млн").concat(r):n>=10&&n<13?"".concat(String(+(e/1e9).toFixed(2)).replace(".",","),"\xa0млрд").concat(r):n>=13?"".concat(String(+(e/1e12).toFixed(2)).replace(".",","),"\xa0трлн").concat(r):(0,S.lb)(e,{decimalCount:2,hasCurrencySymbol:t,decimalIsWithoutZeros:!0})}function b(e){if(null===e)return"—";if(0===e)return"0%";let t=e>0?"+":"";return"".concat(t).concat((0,S.lb)(e,{decimalCount:2,hasCurrencySymbol:!1}),"%")}function E(e){let t=l("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(null==i?void 0:i.file)}})}],url:"".concat(t,"/navigator")}}function P(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)]}var y=n(50492),I=n(94624);function N(e,t,n){let r="string"==typeof e?(0,y.Z)(e):e,i="string"==typeof t?(0,y.Z)(t):t,o="string"==typeof n?(0,y.Z)(n):n;return(0,I.Z)(r,{start:i,end:o})}function T(e){var t;return null!==(t=null==e?void 0:e.replace(/\sstyle=["\\]+[a-z0-9-:; !\s]*[\\"]+/gm,""))&&void 0!==t?t:""}function A(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return+e.toFixed(t)}},82327:function(){},8869:function(e){e.exports={main:"LayoutClientPage_main__gtx0i"}}},function(e){e.O(0,[3544,207,5868,7161,276,9172,9623,5935,3898,5562,2971,8069,1744],function(){return e(e.s=4218)}),_N_E=e.O()}]);