(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[760],{7433:function(e,t,n){Promise.resolve().then(n.t.bind(n,1593,23)),Promise.resolve().then(n.bind(n,9006)),Promise.resolve().then(n.bind(n,9994)),Promise.resolve().then(n.t.bind(n,4049,23)),Promise.resolve().then(n.t.bind(n,7326,23)),Promise.resolve().then(n.bind(n,8374))},8374:function(e,t,n){"use strict";n.r(t),n.d(t,{LayoutLandingClientPage:function(){return I}});var a=n(7437),r=n(2265),l=n(915),o=n(2833),i=n(1810),c=n(3167),s=n(7816),d=n(6094),u=n(3919);let h=(0,u.g)("check-all","sc"),_=Object.freeze({wrapper:`${h}__wrapper`,link:`${h}__link`,icon:`${h}__icon`,iconGray:`${h}__icon--gray`}),m=({children:e,className:t,linkClassName:n,iconGrayBackground:r,Link:l,event:o,href:s,dataLayerPush:u})=>{let h=l??i.rU;return(0,a.jsx)("div",{className:(0,c.Z)(_.wrapper,t),onClick:()=>{o&&u(o)},children:(0,a.jsxs)(h,{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)(d.IconFdsArrowUpRightSmallO,{size:24})})]})})},v=(0,u.g)("faq-block","sc"),p=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`}}),y=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]))})},f=(0,u.g)("faq-content-block","sc"),k=Object.freeze({contentBlocks:`${f}__content-blocks`,blockLink:`${f}__block-link`,keynoteWrapper:`${f}__keynote-wrapper`,keynote:`${f}__keynote`,annotation:`${f}__annotation`,contentTableWrapper:`${f}__content-table-wrapper`}),g=({className:e,data:t})=>{if(!Array.isArray(t))return null;let n=(()=>{let e=[],n=1,r={data:t,headerBlocksCount:0,banner:[]};y(r),y(r);let l={},o=e=>{var t,n,a,r;let o=(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 l[e.type]=(l[e.type]??0)+1,`${e.type}-${String(o).slice(0,80)}-${l[e.type]}`};return t.forEach(t=>{let r=o(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:k.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:k.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:k.keynoteWrapper,children:(0,a.jsx)("p",{className:k.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)(k.contentBlocks,e),role:"blocks",children:n})},x=({question:e,eventCategory:t,dataLayerPush:n,...r})=>(0,a.jsx)(i.Qd,{...r,title:e.question,children:(0,a.jsx)("div",{className:(0,c.Z)(p.accordionItemContent,{[p.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)(g,{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:l,checkAllText:d,Link:u,className:h,eventCategory:_="cb-faq",multiple:v=!1,variant:y="secondary",dataLayerPush:f,tagTitle:k})=>{let g=v?n.map(e=>e.question):[],[j,N]=(0,r.useState)(g),w="gray"===y;return(0,a.jsx)("section",{className:(0,c.Z)(p.faqBlock,p.states[y],h),children:(0,a.jsxs)(o.W2,{children:[!t&&(0,a.jsx)("div",{className:p.titleWrapper,children:(0,a.jsx)(o.X6,{as:"h2",type:"display",className:p.title,children:e})}),(0,a.jsxs)("div",{className:p.accordionWrapper,children:[t&&(0,a.jsx)(o.X6,{as:"h3",type:"h1",style:{paddingBottom:"12px"},className:(0,c.Z)(p.title,`${p.title}--inner`),children:t}),(0,a.jsx)("div",{className:p.accordionItems,children:(0,a.jsx)(i.UQ,{activeIndex:j,variant:w?"primary":"secondary",withoutOutline:w,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];f({event:"data-event",eventCategory:_,eventAction:`click_togg_${t?"on":"off"}`,eventLabel:(0,s.t)(String(n))}),N(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:f,eventCategory:_,className:w?p.accordionItemGray:void 0,tagTitle:k},t)})})}),l&&d&&(0,a.jsx)(m,{href:l,event:{event:"data-event",eventCategory:_,eventAction:"сlick_link_answer-link",eventLabel:l},dataLayerPush:f,...null!=u?{Link:u}:{},iconGrayBackground:!0,children:d||"Читать все вопросы"})]})]})})};var N=n(4939),w=n(7507),L=n(3028),S=n(4713),C=n.n(S);function I(e){var t,n,o,i,c,s,d,u;let{className:h,children:_,header:m,faq:v,footer:p}=e,y=(0,L.SJ)("NEXT_PUBLIC_SHOWCASE_ORIGIN"),f=(0,L.SJ)("NEXT_PUBLIC_S3_ASSETS"),k=(0,L.SJ)("NEXT_PUBLIC_MARKETPLACE_LK_BASE_URL"),g=(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,l.zK)()},[]),(0,a.jsxs)("div",{className:h,children:[m&&(0,a.jsx)(w.H,{data:m.value,showcaseUrl:y,minioUrl:f,lkUrl:k}),(0,a.jsx)("main",{className:C().main,children:_}),v&&(0,a.jsx)(j,{className:C().faq,sectionTitle:null!==(c=null==g?void 0:g.title)&&void 0!==c?c:"",questions:null!==(s=null==g?void 0:g.faqs)&&void 0!==s?s:[],variant:"secondary",dataLayerPush:l.AB,href:null!==(d=null==g?void 0:null===(o=g.readAllText)||void 0===o?void 0:o.link)&&void 0!==d?d:"",checkAllText:null!==(u=null==g?void 0:null===(i=g.readAllText)||void 0===i?void 0:i.text)&&void 0!==u?u:""}),p&&(0,a.jsx)(N.F,{data:p.value,showcaseUrl:y,minioUrl:f,variant:"compact-white"})]})}},3028:function(e,t,n){"use strict";n.d(t,{Fs:function(){return u},SJ:function(){return r},fS:function(){return o},AH:function(){return c},vw:function(){return h},iN:function(){return s}});var a=n(564);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}var l=n(6731);function o(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 i={SOURCE:"utm_source",MEDIUM:"utm_medium",CAMPAIGN:"utm_campaign",CONTENT:"utm_content",TERM:"utm_term"};function c(){let e={};return Object.values(i).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(i).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 u(){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 h(){let e=localStorage.getItem(d);return e?{ym_client_id:e}:{}}},1593:function(){},4049:function(e){e.exports={bg:"layout_bg__eYUW1"}},4713:function(e){e.exports={faq:"LayoutLandingClientPage_faq__tkeqS",main:"LayoutLandingClientPage_main__xGzeu"}},7326:function(e){e.exports={style:{fontFamily:"'__onest_ea0293', '__onest_Fallback_ea0293'"},className:"__className_ea0293",variable:"__variable_ea0293"}}},function(e){e.O(0,[207,544,501,638,621,971,69,744],function(){return e(e.s=7433)}),_N_E=e.O()}]);