(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7187],{70792:function(e,t,n){Promise.resolve().then(n.t.bind(n,27565,23)),Promise.resolve().then(n.t.bind(n,76583,23)),Promise.resolve().then(n.t.bind(n,69696,23)),Promise.resolve().then(n.t.bind(n,86034,23)),Promise.resolve().then(n.t.bind(n,38068,23)),Promise.resolve().then(n.bind(n,16715)),Promise.resolve().then(n.bind(n,44789)),Promise.resolve().then(n.t.bind(n,19801,23)),Promise.resolve().then(n.bind(n,16456)),Promise.resolve().then(n.bind(n,53417)),Promise.resolve().then(n.bind(n,69767)),Promise.resolve().then(n.t.bind(n,88003,23)),Promise.resolve().then(n.t.bind(n,1386,23)),Promise.resolve().then(n.bind(n,31972)),Promise.resolve().then(n.bind(n,16076))},31972:function(e,t,n){"use strict";n.d(t,{LayoutClientPage:function(){return v}});var i=n(57437),o=n(2265),r=n(30631),l=n(59226),s=n(52848),a=n(22711),u=n(17730),d=n(30166),_=n(31578);function c(){let e="true"===(0,_.SJ)("NEXT_PUBLIC_FINGPT_ENABLE")?(0,d.default)(()=>n.e(3673).then(n.bind(n,65370)).then(e=>e.FinGPTWidgetManager),{loadableGenerated:{webpack:()=>[null]},ssr:!1}):()=>null;return(0,i.jsx)(e,{platform:"finuslugi",showTooltip:!0,tooltipText:{title:"FinGPT — финансовый AI ассистент",subtitle:"Задайте вопрос о финансах"}})}var h=n(28763),m=n.n(h);function v(e){var t,n;let{children:d,header:h,support:v,faq:P,footer:f}=e;(0,o.useEffect)(()=>{(0,r.zK)()},[]);let b=null==P?void 0:P.value.blocks[0];return(0,i.jsxs)("div",{className:m().root,children:[h&&(0,i.jsx)(a.H,{data:h.value,showcaseUrl:(0,_.SJ)("NEXT_PUBLIC_SHOWCASE_ORIGIN"),minioUrl:(0,_.SJ)("NEXT_PUBLIC_S3_ASSETS"),lkUrl:(0,_.SJ)("NEXT_PUBLIC_MARKETPLACE_LK_BASE_URL")}),(0,i.jsx)("main",{className:m().main,children:d}),v&&(0,i.jsx)(u.B,{appCard:v.value.appCard,phoneCard:v.value.phoneCard,s3Assets:(0,_.SJ)("NEXT_PUBLIC_S3_MINIO_BASE_URL")}),b&&(0,i.jsx)("div",{className:m().faq,children:(0,i.jsx)(l.C,{sectionTitle:b.title,questions:b.faqs,dataLayerPush:r.AB,href:null===(t=b.readAllText)||void 0===t?void 0:t.link,checkAllText:null===(n=b.readAllText)||void 0===n?void 0:n.text})}),f&&(0,i.jsx)(s.F,{data:f.value,showcaseUrl:(0,_.SJ)("NEXT_PUBLIC_SHOWCASE_ORIGIN"),minioUrl:(0,_.SJ)("NEXT_PUBLIC_S3_ASSETS")}),(0,i.jsx)(c,{})]})}},16076:function(e,t,n){"use strict";n.d(t,{Portal:function(){return l}});var i=n(57437),o=n(2265),r=n(54887);function l(e){let{children:t,id:n="portal-root"}=e,[l,s]=(0,o.useState)(null);return(0,o.useEffect)(()=>(function(){let e=document.getElementById(n);if(e){s(e);return}let t=document.createElement("div");return t.id=n,document.body.appendChild(t),s(t),()=>{document.body.removeChild(t)}})(),[n]),l?(0,i.jsx)(i.Fragment,{children:(0,r.createPortal)(t,l)}):null}},1386:function(){},28763:function(e){e.exports={root:"LayoutClientPage_root__r5m3I",faq:"LayoutClientPage_faq__QA35G",main:"LayoutClientPage_main__gtx0i"}}},function(e){e.O(0,[729,790,4875,4766,7437,3544,207,4445,5166,7630,9362,2848,8003,9715,1578,2971,2117,1744],function(){return e(e.s=70792)}),_N_E=e.O()}]);