(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8942],{42051:function(e,t,n){"use strict";n.d(t,{LayoutLandingClientPage:function(){return N}});var a=n(57437),r=n(2265),o=n(30631),i=n(35563),l=n(75461),c=n(61994),s=n(31620),u=n(80684),d=n(52074);let m=(0,d.g)("check-all","sc"),_=Object.freeze({wrapper:`${m}__wrapper`,link:`${m}__link`,icon:`${m}__icon`,iconGray:`${m}__icon--gray`}),p=({children:e,className:t,linkClassName:n,iconGrayBackground:r,Link:o,event:i,href:s,dataLayerPush:d})=>{let m=o??l.rU;return(0,a.jsx)("div",{className:(0,c.Z)(_.wrapper,t),onClick:()=>{i&&d(i)},children:(0,a.jsxs)(m,{className:(0,c.Z)(_.link,n),href:s,children:[e,(0,a.jsx)("span",{className:(0,c.Z)(_.icon,{[_.iconGray]:r}),children:(0,a.jsx)(u.IconFdsArrowUpRightSmallO,{size:24})})]})})},v=(0,d.g)("faq-block","sc"),h=Object.freeze({faqBlock:v,titleWrapper:`${v}__title-wrapper`,title:`${v}__title`,accordionWrapper:`${v}__accordion-wrapper`,accordionItems:`${v}__accordion-items`,accordionItemGray:`${v}__accordion-item--gray`,accordionItemContent:`${v}__accordion-item-content`,accordionActiveItemContent:`${v}__accordion-item-content--active`,states:{primary:`${v}--primary`,secondary:`${v}--secondary`,gray:`${v}--gray`}}),f=e=>{e.data.forEach((t,n)=>{"header"===t.type&&(e.headerBlocksCount++,3===e.headerBlocksCount&&("banner"===e.data[n-1].type&&(e.banner=e.data.splice(n-1,1)),"banner"===e.data[n+1].type&&(e.banner=e.data.splice(n+1,1))),e.banner&&4===e.headerBlocksCount&&e.data.splice(n,0,e.banner[0]))})},g=(0,d.g)("faq-content-block","sc"),y=Object.freeze({contentBlocks:`${g}__content-blocks`,blockLink:`${g}__block-link`,keynoteWrapper:`${g}__keynote-wrapper`,keynote:`${g}__keynote`,annotation:`${g}__annotation`,contentTableWrapper:`${g}__content-table-wrapper`}),k=({className:e,data:t})=>{if(!Array.isArray(t))return null;let n=(()=>{let e=[],n=1,r={data:t,headerBlocksCount:0,banner:[]};f(r),f(r);let o={},i=e=>{var t,n,a,r;let i=(null==(t=e.data)?void 0:t.text)??(null==(n=e.data)?void 0:n.url)??(null==(a=e.data)?void 0:a.html)??(null!=(r=e.data)&&r.year?String(e.data.year):"");return o[e.type]=(o[e.type]??0)+1,`${e.type}-${String(i).slice(0,80)}-${o[e.type]}`};return t.forEach(t=>{let r=i(t);switch(t.type){case"header":e.push((0,a.jsx)("h2",{id:`content_header_${n}`,role:"header",children:t.data.text||""},r)),n++;break;case"sub_header":e.push((0,a.jsx)("h3",{role:"sub-header",children:t.data.text||""},r));break;case"paragraph":e.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"paragraph"},r));break;case"link":e.push((0,a.jsx)("div",{className:y.blockLink,children:(0,a.jsx)("a",{target:"_blank",href:t.data.url||"",role:"link",rel:"noreferrer",children:t.data.text||""})},r));break;case"dossier":e.push((0,a.jsxs)("div",{children:[(0,a.jsx)("span",{role:"dossier-year",children:t.data.year||""}),(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"dossier-text"})]},r));break;case"html":e.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.html||""},role:"html"},r));break;case"annotation":e.push((0,a.jsx)("div",{className:y.annotation,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"annotation"},r));break;case"company-annotation":e.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"company-annotation"},r));break;case"keynote":e.push((0,a.jsx)("div",{className:y.keynoteWrapper,children:(0,a.jsx)("p",{className:y.keynote,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"keynote"})},r));break;case"image":e.push((0,a.jsx)("img",{src:t.data.url||"",alt:"image"},r))}}),e})();return(0,a.jsx)("div",{className:(0,c.Z)(y.contentBlocks,e),role:"blocks",children:n})},x=({question:e,eventCategory:t,dataLayerPush:n,...r})=>(0,a.jsx)(l.Qd,{...r,title:e.question,children:(0,a.jsx)("div",{className:(0,c.Z)(h.accordionItemContent,{[h.accordionActiveItemContent]:r.isActive}),onClick:e=>{e.target instanceof HTMLAnchorElement&&n({event:"data-event",eventCategory:t,eventAction:"click_link",eventLabel:e.target.href})},children:"string"==typeof e.answer?(0,a.jsx)(k,{data:[{type:"html",data:{html:e.answer}}]}):e.answer})}),b=e=>{setTimeout(()=>{let{top:t}=e.getBoundingClientRect();t<80&&e.scrollIntoView({behavior:"smooth",block:"start"})},300)},j=({sectionTitle:e="Частые вопросы",innerTitle:t,questions:n=[],href:o,checkAllText:u,Link:d,className:m,eventCategory:_="cb-faq",multiple:v=!1,variant:f="secondary",dataLayerPush:g,tagTitle:y})=>{let k=v?n.map(e=>e.question):[],[j,C]=(0,r.useState)(k),S="gray"===f;return(0,a.jsx)("section",{className:(0,c.Z)(h.faqBlock,h.states[f],m),children:(0,a.jsxs)(i.W2,{children:[!t&&(0,a.jsx)("div",{className:h.titleWrapper,children:(0,a.jsx)(i.X6,{as:"h2",type:"display",className:h.title,children:e})}),(0,a.jsxs)("div",{className:h.accordionWrapper,children:[t&&(0,a.jsx)(i.X6,{as:"h3",type:"h1",style:{paddingBottom:"12px"},className:(0,c.Z)(h.title,`${h.title}--inner`),children:t}),(0,a.jsx)("div",{className:h.accordionItems,children:(0,a.jsx)(l.UQ,{activeIndex:j,variant:S?"primary":"secondary",withoutOutline:S,onTabToggle:e=>{let t=(null==e?void 0:e.length)>(null==j?void 0:j.length),n=e.filter(e=>!j.includes(e))[0]||j.filter(t=>!e.includes(t))[0];g({event:"data-event",eventCategory:_,eventAction:`click_togg_${t?"on":"off"}`,eventLabel:(0,s.t)(String(n))}),C(e);let a=`[data-accordion-index="${n}"]`,r=document.querySelector(a);r&&b(r)},multiple:v,children:n.map(e=>{let t=`faq-${e.question}`;return(0,a.jsx)(x,{id:t,question:e,dataLayerPush:g,eventCategory:_,className:S?h.accordionItemGray:void 0,tagTitle:y},t)})})}),o&&u&&(0,a.jsx)(p,{href:o,event:{event:"data-event",eventCategory:_,eventAction:"сlick_link_answer-link",eventLabel:o},dataLayerPush:g,...null!=d?{Link:d}:{},iconGrayBackground:!0,children:u||"Читать все вопросы"})]})]})})};var C=n(52848),S=n(22711),w=n(83635),L=n(78576),I=n.n(L);function N(e){var t,n,i,l,c,s,u,d;let{className:m,children:_,header:p,faq:v,footer:h}=e,f=(0,w.SJ)("NEXT_PUBLIC_SHOWCASE_ORIGIN"),g=(0,w.SJ)("NEXT_PUBLIC_S3_ASSETS"),y=(0,w.SJ)("NEXT_PUBLIC_MARKETPLACE_LK_BASE_URL"),k=(null==v?void 0:null===(n=v.value)||void 0===n?void 0:null===(t=n.blocks)||void 0===t?void 0:t[0])||null;return(0,r.useEffect)(()=>{(0,o.zK)()},[]),(0,a.jsxs)("div",{className:m,children:[p&&(0,a.jsx)(S.H,{data:p.value,showcaseUrl:f,minioUrl:g,lkUrl:y}),(0,a.jsx)("main",{className:I().main,children:_}),v&&(0,a.jsx)(j,{className:I().faq,sectionTitle:null!==(c=null==k?void 0:k.title)&&void 0!==c?c:"",questions:null!==(s=null==k?void 0:k.faqs)&&void 0!==s?s:[],variant:"secondary",dataLayerPush:o.AB,href:null!==(u=null==k?void 0:null===(i=k.readAllText)||void 0===i?void 0:i.link)&&void 0!==u?u:"",checkAllText:null!==(d=null==k?void 0:null===(l=k.readAllText)||void 0===l?void 0:l.text)&&void 0!==d?d:""}),h&&(0,a.jsx)(C.F,{data:h.value,showcaseUrl:f,minioUrl:g,variant:"compact-white"})]})}},1883:function(e,t,n){"use strict";n.d(t,{T:function(){return i},_:function(){return l}});var a=n(30631);let r=n(64131).Z.get("auth.gtm_customer_id"),o=e=>{(0,a.AB)(e)};function i(e,t,n){o({event:"data_event",customer_id:r,eventCategory:e,eventAction:t,eventLabel:null==n?void 0:n.eventLabel,eventValue:null==n?void 0:n.eventValue})}function l(e,t,n){o({event:"data_event",customer_id:r,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 a},pY:function(){return r}});let a=45,r="/invest/moneybox"},99798:function(e,t,n){"use strict";n.d(t,{$:function(){return r},L:function(){return o}});var a=n(84004);function r(){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 o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,r=(0,a.S)("NEXT_PUBLIC_SHOWCASE_ORIGIN"),o=!function(){let{hostname:e}=window.location;return"localhost"===e||e.endsWith(".localhost")}()?"; domain=".concat(["",...r.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join(".")):"",i=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(r)?"; Secure":"").concat(o,"; expires=").concat(i,"; path=/;")}},91346:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var a=n(1883),r=n(42440),o=n(99798);function i(e,t){if(null==e?void 0:e.aggregator_id){let l;let c={...e,create_date:new Date().toISOString()};try{var n,i;l=JSON.parse(null!==(i=null===(n=(0,o.$)())||void 0===n?void 0:n.cpa_click)&&void 0!==i?i:"{}")}catch(e){return}l.payload||(l.payload=[]),l.payload.push(c),t[e.aggregator_id]&&((0,o.L)("cpa_click",l,r.tC),(0,a._)(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 r}});var a=n(50666);function r(e){let t=(0,a.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 r},Fs:function(){return m},SJ:function(){return o.S},fS:function(){return l},AH:function(){return s},vw:function(){return _},iN:function(){return u}}),n(99798),n(91346);var a=n(57437);function r(e){let{question:t,answer:n}=e;return{question:t,answer:(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:n.replace(/<(?!\/?a\b)[^>]{0,100}>/gi,"")}})}}var o=n(84004),i=n(49090);function l(e){return{value:function(e){let t=(0,i.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 u(){let e=function(){let e=new URLSearchParams(window.location.search),t={};return Object.values(c).forEach(n=>{let a=e.get(n);a&&(t[n]=a)}),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}:{}}},38068:function(){},78576:function(e){e.exports={faq:"LayoutLandingClientPage_faq__tkeqS",main:"LayoutLandingClientPage_main__xGzeu"}},18072:function(e){e.exports={style:{fontFamily:"'__onest_8f82e1', '__onest_Fallback_8f82e1'"},className:"__className_8f82e1",variable:"__variable_8f82e1"}}}]);