(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4399],{46045:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var o=n(57437),r=n(2265),i=n(67356),a=n(23861),l=n(75461),u=n(1883),c=n(14973);function s(e){let{open:t,configKey:n="investment-moneybox",entryPointId:s="moneybox-sc-landing",url:d,onClose:_}=e,[g,m]=(0,r.useState)(null),f=(0,c.SJ)("NEXT_PUBLIC_PL_LK_API_URL"),p=(0,c.SJ)("NEXT_PUBLIC_MARKETPLACE_LK_BASE_URL"),h=(0,c.SJ)("NEXT_PUBLIC_S3_ASSETS"),w="true"===(0,c.SJ)("NEXT_PUBLIC_FAKE_ESIA_ENABLED"),b=null!=d?d:"".concat(p,"/investment/moneybox/promo");return(0,r.useEffect)(()=>{(async function(){m(await (0,i.g)(f,n))})()},[f]),(0,o.jsx)(l.u_,{open:t,onClose:_,children:(0,o.jsx)(a.U,{serverConfig:g,baseUrl:p,s3AssetsUrl:h,config:{withLogo:!0,linkTarget:"_self"},entryPointId:s,scenarioParams:{targetUri:b},query:{...w&&{uat:!0}},isSilent:!0,onAnalyticsEvent:e=>{let{eventCategory:t,eventAction:n,eventLabel:o}=e;return(0,u.T)(null!=t?t:"login-widget",n,{eventLabel:o})}})})}},57499:function(e,t,n){"use strict";n.d(t,{TR:function(){return m}});var o,r,i,a,l=n(57437),u=n(2265);n(75461),n(99376),n(42798),(o=i||(i={})).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.Toggle="toggle",o.Select="select",o.Drawer="drawer",o.Hint="hint",o.Tag="tag",o.Badge="badge",o.Popup="popup",o.SegmentedControl="segmentedcontrol",(r=a||(a={})).Header="header",r.Journal="journal",r.Support="support",r.Faq="faq",r.Search="search",r.Footer="footer",n(96981);var c=n(33145),s=n(61994),d={src:"/invest/moneybox/_next/static/media/no-logo.aee2f188.svg",height:32,width:32,blurWidth:0,blurHeight:0},_=n(82919),g=n.n(_);let m=(0,u.memo)(function(e){let{src:t,alt:n,size:o=46,className:r}=e,[i,a]=(0,u.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.Suspense,{children:(0,l.jsx)(c.default,{"data-qa":"logo-image",className:(0,s.Z)(g().logoImage,!i&&g().hidden,r),src:null!=t?t:d,alt:n,width:o,height:o,onLoad:function(e){let{currentTarget:t}=e;t.naturalWidth>0&&a(!0)},unoptimized:!0})}),(0,l.jsx)(c.default,{"data-qa":"logo-no-logo-image",className:(0,s.Z)(g().logoImage,i&&g().notDisplayed,r),src:d,alt:"Логотип не загрузился",width:o,height:o})]})});m.displayName="Logo",n(80684),n(93333)},1883:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var o=n(30631);let r=n(64131).Z.get("auth.gtm_customer_id"),i=e=>{(0,o.AB)(e)};function a(e,t,n){i({event:"data_event",customer_id:r,eventCategory:e,eventAction:t,eventLabel:null==n?void 0:n.eventLabel,eventValue:null==n?void 0:n.eventValue})}},58405:function(e,t,n){"use strict";n.d(t,{pY:function(){return o}});let o="/invest/moneybox"},14973:function(e,t,n){"use strict";n.d(t,{Ck:function(){return r},Fs:function(){return g},SJ:function(){return a},fS:function(){return u},AH:function(){return s},vw:function(){return m},iN:function(){return d}});var o=n(57437);function r(e){let{question:t,answer:n}=e;return{question:t,answer:(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:n.replace(/<(?!\/?a\b)[^>]{0,100}>/gi,"")}})}}var i=n(50666);function a(e){let t=(0,i.env)(e);if(void 0===t&&window.__ENV&&Object.keys(window.__ENV).length>0)throw Error("".concat(e," is undefined"));return t}var l=n(49090);function u(e){return{value:function(e){let t=(0,l.lb)(e,{decimalIsWithoutZeros:!0});return e>0?"+".concat(t):t}(e),state:e>0?"success":e<0?"error":"default"}}let c={SOURCE:"utm_source",MEDIUM:"utm_medium",CAMPAIGN:"utm_campaign",CONTENT:"utm_content",TERM:"utm_term"};function s(){let e={};return Object.values(c).forEach(t=>{let n=localStorage.getItem(t);n&&(e[t]=n)}),e}function d(){let e=function(){let e=new URLSearchParams(window.location.search),t={};return Object.values(c).forEach(n=>{let o=e.get(n);o&&(t[n]=o)}),t}();Object.keys(e).length>0&&function(e){Object.entries(e).forEach(e=>{let[t,n]=e;n&&localStorage.setItem(t,n)})}(e)}let _="ym_client_id";async function g(){let e=await new Promise(e=>{let t=Date.now();!function n(){"function"==typeof window.ym?window.ym(57162601,"getClientID",t=>{e(t||null)}):Date.now()-t<5e3?setTimeout(n,100):e(null)}()});return e&&function(e){if(!e)return;let t=localStorage.getItem(_);t?t.split(",").includes(e)||localStorage.setItem(_,"".concat(t,",").concat(e)):localStorage.setItem(_,e)}(e),e}function m(){let e=localStorage.getItem(_);return e?{ym_client_id:e}:{}}},96981:function(e){e.exports={wrapper:"ExpandedContent_wrapper__AHH29",grid:"ExpandedContent_grid__gVwbJ",open:"ExpandedContent_open__IA7BE",gridInner:"ExpandedContent_gridInner__wLPJ_"}},82919:function(e){e.exports={logoImage:"Logo_logoImage__k98yw",notDisplayed:"Logo_notDisplayed__wxRml",hidden:"Logo_hidden__EbuIV"}},93333:function(e){e.exports={wrapper:"TextWithHint_wrapper__37Xpq",text:"TextWithHint_text__q7vpD",hint:"TextWithHint_hint__0_S4x"}}}]);