(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2939],{46045:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var o=n(57437),i=n(2265),r=n(67356),a=n(23861),c=n(75461),u=n(1883),l=n(83635);function s(e){let{open:t,configKey:n="investment-moneybox",entryPointId:s="moneybox-sc-landing",url:d,onClose:m}=e,[_,g]=(0,i.useState)(null),p=(0,l.SJ)("NEXT_PUBLIC_PL_LK_API_URL"),f=(0,l.SJ)("NEXT_PUBLIC_MARKETPLACE_LK_BASE_URL"),h=(0,l.SJ)("NEXT_PUBLIC_S3_ASSETS"),v="true"===(0,l.SJ)("NEXT_PUBLIC_FAKE_ESIA_ENABLED"),w=null!=d?d:"".concat(f,"/investment/moneybox/promo");return(0,i.useEffect)(()=>{(async function(){g(await (0,r.g)(p,n))})()},[p]),(0,o.jsx)(c.u_,{open:t,onClose:m,children:(0,o.jsx)(a.U,{serverConfig:_,baseUrl:f,s3AssetsUrl:h,config:{withLogo:!0,linkTarget:"_self"},entryPointId:s,scenarioParams:{targetUri:w},query:{...v&&{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 g}});var o,i,r,a,c=n(57437),u=n(2265);n(75461),n(99376),n(42798),(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.Toggle="toggle",o.Select="select",o.Drawer="drawer",o.Hint="hint",o.Tag="tag",o.Badge="badge",o.Popup="popup",o.SegmentedControl="segmentedcontrol",(i=a||(a={})).Header="header",i.Journal="journal",i.Support="support",i.Faq="faq",i.Search="search",i.Footer="footer",n(96981);var l=n(33145),s=n(61994),d={src:"/invest/moneybox/_next/static/media/no-logo.aee2f188.svg",height:32,width:32,blurWidth:0,blurHeight:0},m=n(82919),_=n.n(m);let g=(0,u.memo)(function(e){let{src:t,alt:n,size:o=46,className:i}=e,[r,a]=(0,u.useState)(!1);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(u.Suspense,{children:(0,c.jsx)(l.default,{"data-qa":"logo-image",className:(0,s.Z)(_().logoImage,!r&&_().hidden,i),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,c.jsx)(l.default,{"data-qa":"logo-no-logo-image",className:(0,s.Z)(_().logoImage,r&&_().notDisplayed,i),src:d,alt:"Логотип не загрузился",width:o,height:o})]})});g.displayName="Logo",n(80684),n(93333)},45087:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(2265),i=n(99376),r=n(91346);function a(e){let t=(0,i.useSearchParams)();(0,o.useEffect)(()=>{t&&(0,r.R)(Object.fromEntries(t),e)},[e,t])}},1883:function(e,t,n){"use strict";n.d(t,{T:function(){return a},_:function(){return c}});var o=n(30631);let i=n(64131).Z.get("auth.gtm_customer_id"),r=e=>{(0,o.AB)(e)};function a(e,t,n){r({event:"data_event",customer_id:i,eventCategory:e,eventAction:t,eventLabel:null==n?void 0:n.eventLabel,eventValue:null==n?void 0:n.eventValue})}function c(e,t,n){r({event:"data_event",customer_id:i,eventCategory:e,eventAction:t,eventLabel:null==n?void 0:n.eventLabel,eventValue:null==n?void 0:n.eventValue,utm_source:null==n?void 0:n.utm_source,utm_campaign:null==n?void 0:n.utm_campaign,utm_medium:null==n?void 0:n.utm_medium})}},42440:function(e,t,n){"use strict";n.d(t,{tC:function(){return o},pY:function(){return i}});let o=45,i="/invest/moneybox"},99798:function(e,t,n){"use strict";n.d(t,{$:function(){return i},L:function(){return r}});var o=n(84004);function i(){if("undefined"!=typeof document&&document.cookie)return Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=")).map(e=>e.map(e=>{var t;return(t=e).startsWith('"')&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)})))}function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,i=(0,o.S)("NEXT_PUBLIC_SHOWCASE_ORIGIN"),r=!function(){let{hostname:e}=window.location;return"localhost"===e||e.endsWith(".localhost")}()?"; domain=".concat(["",...i.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join(".")):"",a=new Date(new Date().getTime()+864e5*n).toUTCString();document.cookie="".concat(encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29"),"=").concat(encodeURIComponent("string"==typeof t?t:JSON.stringify(t)).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent),"; SameSite=None").concat(/^https:\/\//gi.test(i)?"; Secure":"").concat(r,"; expires=").concat(a,"; path=/;")}},91346:function(e,t,n){"use strict";n.d(t,{R:function(){return a}});var o=n(1883),i=n(42440),r=n(99798);function a(e,t){if(null==e?void 0:e.aggregator_id){let c;let u={...e,create_date:new Date().toISOString()};try{var n,a;c=JSON.parse(null!==(a=null===(n=(0,r.$)())||void 0===n?void 0:n.cpa_click)&&void 0!==a?a:"{}")}catch(e){return}c.payload||(c.payload=[]),c.payload.push(u),t[e.aggregator_id]&&((0,r.L)("cpa_click",c,i.tC),(0,o._)(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}))}}},84004:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var o=n(50666);function i(e){let t=(0,o.env)(e);if(void 0===t&&window.__ENV&&Object.keys(window.__ENV).length>0)throw Error("".concat(e," is undefined"));return t}},83635:function(e,t,n){"use strict";n.d(t,{Ck:function(){return i},Fs:function(){return m},SJ:function(){return r.S},fS:function(){return c},AH:function(){return l},vw:function(){return _},iN:function(){return s}}),n(99798),n(91346);var o=n(57437);function i(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 r=n(84004),a=n(49090);function c(e){return{value:function(e){let t=(0,a.lb)(e,{decimalIsWithoutZeros:!0});return e>0?"+".concat(t):t}(e),state:e>0?"success":e<0?"error":"default"}}let u={SOURCE:"utm_source",MEDIUM:"utm_medium",CAMPAIGN:"utm_campaign",CONTENT:"utm_content",TERM:"utm_term"};function l(){let e={};return Object.values(u).forEach(t=>{let n=localStorage.getItem(t);n&&(e[t]=n)}),e}function s(){let e=function(){let e=new URLSearchParams(window.location.search),t={};return Object.values(u).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 d="ym_client_id";async function m(){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(d);t?t.split(",").includes(e)||localStorage.setItem(d,"".concat(t,",").concat(e)):localStorage.setItem(d,e)}(e),e}function _(){let e=localStorage.getItem(d);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"}}}]);