"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[680],{30166:function(e,t,a){a.d(t,{default:function(){return r.a}});var n=a(55775),r=a.n(n)},55775:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=a(47043);a(57437),a(2265);let r=n._(a(15602));function l(e,t){var a;let n={loading:e=>{let{error:t,isLoading:a,pastDelay:n}=e;return null}};"function"==typeof e&&(n.loader=e);let l={...n,...t};return(0,r.default)({...l,modules:null==(a=l.loadableGenerated)?void 0:a.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81523:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}});let n=a(18993);function r(e){let{reason:t,children:a}=e;if("undefined"==typeof window)throw new n.BailoutToCSRError(t);return a}},15602:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=a(57437),r=a(2265),l=a(81523),s=a(70049);function i(e){return{default:e&&"default"in e?e.default:e}}let c={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},o=function(e){let t={...c,...e},a=(0,r.lazy)(()=>t.loader().then(i)),o=t.loading;function d(e){let i=o?(0,n.jsx)(o,{isLoading:!0,pastDelay:!0,error:null}):null,c=t.ssr?(0,n.jsxs)(n.Fragment,{children:["undefined"==typeof window?(0,n.jsx)(s.PreloadCss,{moduleIds:t.modules}):null,(0,n.jsx)(a,{...e})]}):(0,n.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(a,{...e})});return(0,n.jsx)(r.Suspense,{fallback:i,children:c})}return d.displayName="LoadableComponent",d}},70049:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return l}});let n=a(57437),r=a(20544);function l(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let a=(0,r.getExpectedRequestStore)("next/dynamic css"),l=[];if(a.reactLoadableManifest&&t){let e=a.reactLoadableManifest;for(let a of t){if(!e[a])continue;let t=e[a].files.filter(e=>e.endsWith(".css"));l.push(...t)}}return 0===l.length?null:(0,n.jsx)(n.Fragment,{children:l.map(e=>(0,n.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:a.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},59226:function(e,t,a){a.d(t,{C:function(){return g}});var n=a(57437),r=a(2265),l=a(35563),s=a(75461),i=a(54365),c=a(31620),o=a(10855),d=a(52074);let p=(0,d.g)("faq-block","sc"),u=Object.freeze({faqBlock:p,titleWrapper:`${p}__title-wrapper`,title:`${p}__title`,accordionWrapper:`${p}__accordion-wrapper`,accordionItems:`${p}__accordion-items`,accordionItemContent:`${p}__accordion-item-content`,accordionActiveItemContent:`${p}__accordion-item-content--active`,states:{primary:`${p}--primary`,secondary:`${p}--secondary`}}),h=e=>{e.data.forEach((t,a)=>{"header"===t.type&&(e.headerBlocksCount++,3===e.headerBlocksCount&&("banner"===e.data[a-1].type&&(e.banner=e.data.splice(a-1,1)),"banner"===e.data[a+1].type&&(e.banner=e.data.splice(a+1,1))),e.banner&&4===e.headerBlocksCount&&e.data.splice(a,0,e.banner[0]))})},m=(0,d.g)("faq-content-block","sc"),v=Object.freeze({contentBlocks:`${m}__content-blocks`,blockLink:`${m}__block-link`,keynoteWrapper:`${m}__keynote-wrapper`,keynote:`${m}__keynote`,annotation:`${m}__annotation`,contentTableWrapper:`${m}__content-table-wrapper`}),_=({className:e,data:t})=>{if(!Array.isArray(t))return null;let a=(()=>{let e=[],a=1,r={data:t,headerBlocksCount:0,banner:[]};h(r),h(r);let l={},s=e=>{var t,a,n,r;let s=(null==(t=e.data)?void 0:t.text)??(null==(a=e.data)?void 0:a.url)??(null==(n=e.data)?void 0:n.html)??(null!=(r=e.data)&&r.year?String(e.data.year):"");return l[e.type]=(l[e.type]??0)+1,`${e.type}-${String(s).slice(0,80)}-${l[e.type]}`};return t.forEach(t=>{let r=s(t);switch(t.type){case"header":e.push((0,n.jsx)("h2",{id:`content_header_${a}`,role:"header",children:t.data.text||""},r)),a++;break;case"sub_header":e.push((0,n.jsx)("h3",{role:"sub-header",children:t.data.text||""},r));break;case"paragraph":e.push((0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"paragraph"},r));break;case"link":e.push((0,n.jsx)("div",{className:v.blockLink,children:(0,n.jsx)("a",{target:"_blank",href:t.data.url||"",role:"link",rel:"noreferrer",children:t.data.text||""})},r));break;case"dossier":e.push((0,n.jsxs)("div",{children:[(0,n.jsx)("span",{role:"dossier-year",children:t.data.year||""}),(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"dossier-text"})]},r));break;case"html":e.push((0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.html||""},role:"html"},r));break;case"annotation":e.push((0,n.jsx)("div",{className:v.annotation,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"annotation"},r));break;case"company-annotation":e.push((0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"company-annotation"},r));break;case"keynote":e.push((0,n.jsx)("div",{className:v.keynoteWrapper,children:(0,n.jsx)("p",{className:v.keynote,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"keynote"})},r));break;case"image":e.push((0,n.jsx)("img",{src:t.data.url||"",alt:"image"},r))}}),e})();return(0,n.jsx)("div",{className:(0,i.Z)(v.contentBlocks,e),role:"blocks",children:a})},x=({question:e,eventCategory:t,dataLayerPush:a,...r})=>(0,n.jsx)(s.Qd,{...r,title:e.question,children:(0,n.jsx)("div",{className:(0,i.Z)(u.accordionItemContent,{[u.accordionActiveItemContent]:r.isActive}),onClick:e=>{e.target instanceof HTMLAnchorElement&&a({event:"data-event",eventCategory:t,eventAction:"click_link",eventLabel:e.target.href})},children:"string"==typeof e.answer?(0,n.jsx)(_,{data:[{type:"html",data:{html:e.answer}}]}):e.answer})}),f=e=>{setTimeout(()=>{let{top:t}=e.getBoundingClientRect();t<80&&e.scrollIntoView({behavior:"smooth",block:"start"})},300)},g=({sectionTitle:e="Частые вопросы",innerTitle:t,questions:a=[],href:d,checkAllText:p,Link:h,className:m,eventCategory:v="cb-faq",multiple:_=!1,variant:g="secondary",dataLayerPush:y})=>{let j=_?a.map(e=>e.question):[],[b,k]=(0,r.useState)(j);return(0,n.jsx)("section",{className:(0,i.Z)(u.faqBlock,u.states[g],m),children:(0,n.jsxs)(l.W2,{children:[!t&&(0,n.jsx)("div",{className:u.titleWrapper,children:(0,n.jsx)(l.X6,{as:"h2",type:"display",className:u.title,children:e})}),(0,n.jsxs)("div",{className:u.accordionWrapper,children:[t&&(0,n.jsx)(l.X6,{as:"h3",type:"h1",style:{paddingBottom:"12px"},className:(0,i.Z)(u.title,`${u.title}--inner`),children:t}),(0,n.jsx)("div",{className:u.accordionItems,children:(0,n.jsx)(s.UQ,{activeIndex:b,variant:"secondary",onTabToggle:e=>{let t=(null==e?void 0:e.length)>(null==b?void 0:b.length),a=e.filter(e=>!b.includes(e))[0]||b.filter(t=>!e.includes(t))[0];y({event:"data-event",eventCategory:v,eventAction:`click_togg_${t?"on":"off"}`,eventLabel:(0,c.t)(String(a))}),k(e);let n=`[data-accordion-index="${a}"]`,r=document.querySelector(n);r&&f(r)},multiple:_,children:a.map(e=>{let t=`faq-${e.question}`;return(0,n.jsx)(x,{id:t,question:e,dataLayerPush:y,eventCategory:v},t)})})}),d&&p&&(0,n.jsx)(o.C,{href:d,event:{event:"data-event",eventCategory:v,eventAction:"сlick_link_answer-link",eventLabel:d},dataLayerPush:y,...null!=h?{Link:h}:{},iconGrayBackground:!0,children:p||"Читать все вопросы"})]})]})})}},90422:function(e,t,a){a.d(t,{t:function(){return v}});var n=a(57437),r=a(2265),l=a(35563),s=a(75461),i=a(54365),c=a(10992),o=a(31620),d=a(10855);let p=(0,a(52074).g)("journal","sc"),u=Object.freeze({wrapper:"".concat(p,"__wrapper"),title:"".concat(p,"__title"),subtitle:"".concat(p,"__subtitle"),scrollableWrapper:"".concat(p,"__scrollable-wrapper"),chipsWrapper:"".concat(p,"__chips-wrapper"),slider:"".concat(p,"__slider"),sliderItem:"".concat(p,"__slider-item"),article:"".concat(p,"__article"),imgWrapper:"".concat(p,"__img-wrapper"),articleBody:"".concat(p,"__article-body"),articleTitle:"".concat(p,"__article-title"),articleDate:"".concat(p,"__article-date"),checkAllLink:"".concat(p,"__check-all-link")}),h="https://assets.finuslugi.ru/mp-assets/widgets/journal/default_post_image.png",m=e=>{if(!e||!/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e))return"";let t=new Date(e.replace(" ","T"));if(isNaN(t.getTime()))return"";let a=t.getDate(),n=t.getMonth();return"".concat(a," ").concat(["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][n])},v=e=>{var t;let{data:a,eventCategory:p="finkit-widgets-sc-journal",className:v}=e,_=(0,s._m)("xl"),[x,f]=(0,r.useState)(!0),[g,y]=(0,r.useState)(0),j=a.chips||[],b=(null==(t=null==j?void 0:j[Number(g)])?void 0:t.items)||[];if((0,r.useEffect)(()=>{f(!_)},[_]),0===j.length||0===b.length)return null;let k=(e,t)=>()=>{(0,c.h)({eventCategory:p,eventActionType:c.D.block,eventActionText:e||"",eventLabel:t})},N=e=>{e.target.src!==h&&(e.target.src=h)};return(0,n.jsxs)("div",{className:(0,i.Z)(u.wrapper,v),children:[(0,n.jsxs)(l.W2,{children:[(0,n.jsx)("h2",{className:u.title,children:null==a?void 0:a.title}),(0,n.jsx)("div",{className:u.subtitle,children:null==a?void 0:a.description})]}),(0,n.jsx)("div",{className:u.scrollableWrapper,children:(0,n.jsx)(l.W2,{children:(0,n.jsx)("div",{className:u.chipsWrapper,children:j.length>1&&(0,n.jsx)(s.cL,{chips:j,value:g,variant:"secondary",size:x?"m":"l",onChipClick:e=>{var t;let a=(null==(t=j[Number(e)])?void 0:t.label)||"";(0,c.h)({eventCategory:p,eventActionType:c.D.tab,eventActionText:a}),y(e)}})})})}),(0,n.jsxs)(l.W2,{children:[(0,n.jsx)(s.iR,{className:u.slider,options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3500,disableOnInteraction:!0},loop:!0},pagination:!0,navigation:!0,navigationVariant:"secondary",navigationSize:"s",children:b.map(e=>(0,n.jsx)(s.wI,{className:u.sliderItem,children:(0,n.jsxs)("a",{className:u.article,href:e.url,onClick:k(e.title,e.url),children:[(0,n.jsx)("div",{className:u.imgWrapper,children:(0,n.jsx)("img",{src:e.img,alt:"изображение: ".concat(e.title),onError:N})}),(0,n.jsxs)("div",{className:u.articleBody,children:[(0,n.jsx)("div",{className:u.articleTitle,children:e.title}),(0,n.jsx)("div",{className:u.articleDate,children:m(e.dt)})]})]})},e.title))},g),(0,n.jsx)(d.C,{href:(null==a?void 0:a.url)||"",event:{event:"data-event",eventCategory:p,eventAction:"link_".concat((0,o.t)((null==a?void 0:a.urlText)||"Показать все статьи")),eventLabel:(null==a?void 0:a.url)||""},dataLayerPush:c.d,className:u.checkAllLink,children:(null==a?void 0:a.urlText)||"Показать все статьи"})]})]})}},17730:function(e,t,a){a.d(t,{B:function(){return y}});var n=a(57437),r=a(35563),l=a(54365),s=a(80684),i=a(75461),c=a(10992),o=a(52074),d=a(2265);let p=(0,o.g)("support","sc"),u=Object.freeze({support:p,title:`${p}__title`,cardsContainer:`${p}__cards-container`}),h="cb-support",m=(0,o.g)("support-app-card","sc"),v=Object.freeze({supportAppCard:m,textWrapper:`${m}__text-wrapper`,imageContainer:`${m}__image-container`,title:`${m}__title`,description:`${m}__description`,icon:`${m}__icon`,imageWrapper:`${m}__image-wrapper`,image:`${m}__image`}),_=({title:e,linkUrl:t,s3Assets:a,description:r})=>{let l=(0,i.aF)("s");return(0,n.jsxs)("div",{className:v.supportAppCard,onClick:()=>{l&&((0,c.h)({eventCategory:h,eventActionType:c.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,n.jsx)(s.IconFdsArrowUpRightSmallO,{className:v.icon,size:32}),(0,n.jsxs)("div",{className:v.textWrapper,children:[(0,n.jsx)("div",{className:v.title,children:e}),!!r&&(0,n.jsx)("div",{className:v.description,children:r})]}),(0,n.jsx)("div",{className:v.imageContainer,children:(0,n.jsxs)("picture",{className:v.imageWrapper,children:[(0,n.jsx)("source",{media:"(max-width: 767px)",srcSet:`${a}/mp-assets/widgets/SupportBlock/mobile-app.png 1x, ${a}/mp-assets/widgets/SupportBlock/mobile-app@2x.png 2x`}),(0,n.jsx)("img",{className:v.image,loading:"lazy",src:`${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg`,srcSet:`${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg 1x, ${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app@2x.jpg 2x`})]})})]})},x=(0,o.g)("support-phone-card","sc"),f=Object.freeze({supportPhoneCard:x,contacts:`${x}__contacts`,phone:`${x}__phone`,chat:`${x}__chat`,info:`${x}__info`,image:`${x}__image`}),g=({phones:e,description:t,s3Assets:a})=>{let r=(0,d.useCallback)(()=>{var e,t,a;null==(a=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)||a.call(t),(0,c.h)({eventCategory:h,eventActionType:c.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),l=e=>{let t=e.replace(/[\s-]/g,"");(0,c.h)({eventCategory:h,eventActionType:c.D.link,eventActionText:"phone",eventLabel:t})};return(0,n.jsxs)("div",{className:f.supportPhoneCard,children:[(0,n.jsxs)("div",{className:f.contacts,children:[e.map(e=>(0,n.jsx)("a",{className:f.phone,href:e.href,onClick:()=>l(e.label),children:e.label},e.label)),(0,n.jsx)("span",{className:f.chat,onClick:r,children:"Онлайн чат"})]}),(0,n.jsx)("div",{className:f.info,children:t}),(0,n.jsx)("img",{className:f.image,src:`${a}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`})]})},y=({className:e,phoneCard:t,appCard:a,s3Assets:s})=>(0,n.jsx)("section",{className:(0,l.Z)(u.support,e),children:(0,n.jsxs)(r.W2,{children:[(0,n.jsx)(r.X6,{as:"h2",type:"display",weight:"bold",className:(0,l.Z)(u.title,"mb-6"),children:"Поддержка"}),(0,n.jsxs)("div",{className:u.cardsContainer,children:[(0,n.jsx)(g,{s3Assets:s,...t}),(0,n.jsx)(_,{s3Assets:s,...a})]})]})});y.displayName="Support"}}]);