(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9063,9235],{5772:(e,t,a)=>{"use strict";a.d(t,{default:()=>i.a});var l=a(97651),i=a.n(l)},15855:(e,t,a)=>{"use strict";a.d(t,{C:()=>_}),a(48382);var l=a(95155),i=a(12115),s=a(25032),r=a(66216),n=a(8260),c=a(14347),o=a(29722),d=a(20197),p=a(11246),m=a(17194),u=a(22855);let h=(0,a(7596).g)("journal","sc"),g=Object.freeze({wrapper:`${h}__wrapper`,title:`${h}__title`,subtitle:`${h}__subtitle`,scrollableWrapper:`${h}__scrollable-wrapper`,chipsWrapper:`${h}__chips-wrapper`,slider:`${h}__slider`,sliderItem:`${h}__slider-item`,article:`${h}__article`,imgWrapper:`${h}__img-wrapper`,articleBody:`${h}__article-body`,articleTitle:`${h}__article-title`,articleDate:`${h}__article-date`,checkAllLink:`${h}__check-all-link`}),x="finkit-widgets-sc-journal",v="https://assets.finuslugi.ru/mp-assets/widgets/journal/default_post_image.png",_=({data:e,eventCategory:t=x,className:a})=>{var h;let _=(0,c.qF)("xl"),[b,f]=(0,i.useState)(!0),[j,$]=(0,i.useState)(0),k=Array.isArray(null==e?void 0:e.chips)?e.chips.filter(({items:e})=>!!(null!=e&&e.length)):[],y=k.some(({id:e})=>e===j)?j:null==(h=k[0])?void 0:h.id,N=k.find(({id:e})=>e===y),w=(null==N?void 0:N.items)||[];if((0,i.useEffect)(()=>{f(!_)},[_]),!k.length)return null;let C=e=>{e.target.src!==v&&(e.target.src=v)};return(0,l.jsxs)("div",{className:(0,o.A)(g.wrapper,a),children:[(0,l.jsxs)(r.m,{children:[(0,l.jsx)("h2",{className:g.title,children:null==e?void 0:e.title}),(0,l.jsx)("div",{className:g.subtitle,children:null==e?void 0:e.description})]}),(0,l.jsx)("div",{className:g.scrollableWrapper,children:(0,l.jsx)(r.m,{children:(0,l.jsx)("div",{className:g.chipsWrapper,children:k.length>1&&(0,l.jsx)(s.C,{chips:k,value:y,variant:"secondary",size:b?"m":"l",onChipClick:e=>{var a;let l=(null==(a=k.find(({id:t})=>t===e))?void 0:a.label)||"";(0,d.h)({eventCategory:t,eventActionType:d.D.tab,eventActionText:l}),$(e)}})})})}),(0,l.jsxs)(r.m,{children:[(0,l.jsx)(n.A,{className:g.slider,options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3500,disableOnInteraction:!0},loop:!0},pagination:!0,navigation:!0,navigationVariant:"secondary",navigationSize:"s",children:w.map(e=>{let a,i;return(0,l.jsx)(n.D,{className:g.sliderItem,children:(0,l.jsxs)("a",{className:g.article,href:e.url,onClick:(a=e.title,i=e.url,()=>{(0,d.h)({eventCategory:t,eventActionType:d.D.block,eventActionText:a||"",eventLabel:i})}),children:[(0,l.jsx)("div",{className:g.imgWrapper,children:(0,l.jsx)("img",{src:e.img,alt:`изображение: ${e.title}`,loading:"lazy",onError:C})}),(0,l.jsxs)("div",{className:g.articleBody,children:[(0,l.jsx)("div",{className:g.articleTitle,children:e.title}),(0,l.jsx)("div",{className:g.articleDate,children:(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(),l=t.getMonth();return`${a} ${["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][l]}`})(e.dt)})]})]})},e.title)})},y),(0,l.jsx)(u.C,{href:(null==e?void 0:e.url)||"",event:{event:"data-event",eventCategory:t,eventAction:`link_${(0,m.t)((null==e?void 0:e.urlText)||"Показать все статьи")}`,eventLabel:(null==e?void 0:e.url)||""},dataLayerPush:p.d,className:g.checkAllLink,children:(null==e?void 0:e.urlText)||"Показать все статьи"})]})]})}},16236:()=>{},25032:(e,t,a)=>{"use strict";a.d(t,{C:()=>d});var l=a(95155),i=a(12115),s=a(29722),r=a(92681),n=a(83640);a(49735);let c=(0,n.g)("chips"),o=Object.freeze({chips:c,chip:`${c}__item`,icon:`${c}__icon`,iconLeft:`${c}__icon-left`,iconRight:`${c}__icon-right`,label:`${c}__label`,variants:{primary:`${c}--primary`,secondary:`${c}--secondary`,tertiary:`${c}--tertiary`},activeVariants:{primary:`${c}--active-primary`,secondary:`${c}--active-secondary`},sizes:{s:`${c}--s`,m:`${c}--m`,l:`${c}--l`},selected:`${c}--selected`,indicator:`${c}__indicator`,indicatorVariant:{red:`${c}__indicator--red`,orange:`${c}__indicator--orange`,green:`${c}__indicator--green`,purple:`${c}__indicator--purple`,purpleSecondary:`${c}__indicator--purple-secondary`,blue:`${c}__indicator--blue`,pink:`${c}__indicator--pink`}}),d=(0,i.forwardRef)(({chips:e,value:t,variant:a="primary",activeVariant:n="primary",multiple:c,clearable:d,size:p="m",className:m,style:u,dataQa:h,dataId:g,onChipClick:x,...v},_)=>{let[b,f]=(0,i.useState)(c?[]:void 0),j=(0,i.useRef)(null);(0,i.useImperativeHandle)(_,()=>({getRoot:()=>j.current,getSelectedChips:()=>b})),(0,i.useEffect)(()=>{c?f(Array.isArray(t)?t:[]):f(t)},[t,c]);let $=c||d,k=e=>c&&Array.isArray(b)?b.includes(e):b===e,y=(e,t,a)=>{f(a),null==x||x(e,t,a)},N=(e,t)=>{if(c&&Array.isArray(b))if(k(e)){let a=b.filter(t=>t!==e);y(e,t,a)}else y(e,t,[...b,e]);else{let a=d&&k(e)?void 0:e;y(e,t,a)}};return(0,l.jsx)("div",{ref:j,className:(0,s.A)(m,o.chips),style:u,...v,"data-id":g,"data-qa":h,children:e.map((e,t)=>(({id:e,label:t,iconLeft:i,iconRight:c,indicator:d},m)=>{let u=k(e);return(0,l.jsxs)("div",{className:(0,s.A)(o.chip,o.sizes[p],o.activeVariants[n],o.variants[a],[{[o.selected]:u}]),role:$?"checkbox":"radio","aria-checked":u,"aria-label":t,tabIndex:0,"data-qa":(0,r.g)(`${h}-item-${++m}`,!!h),onClick:t=>{N(e,t)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),N(e,t))},children:[i&&(0,l.jsx)("span",{className:(0,s.A)(o.icon,o.iconLeft),"aria-hidden":"true",children:i}),(0,l.jsx)("span",{className:(0,s.A)(o.label),children:t}),d&&(0,l.jsx)("div",{className:(0,s.A)(o.indicator,o.indicatorVariant[d])}),c&&(0,l.jsx)("span",{className:(0,s.A)(o.icon,o.iconRight),"aria-hidden":"true",children:c})]},e)})(e,t))})});d.displayName="Chips"},26111:(e,t,a)=>{"use strict";a.d(t,{E:()=>w}),a(89190);var l=a(95155),i=a(66216),s=a(79253),r=a(29722),n=a(12115),c=a(24691),o=a(14347),d=a(20197),p=a(7596);let m={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},u={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},h=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function g({className:e,style:t,boxSize:a,size:l,onClick:i}){return n.createElement("span",{className:e,style:{...m,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...a&&{width:`${a}px`,height:`${a}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.createElement(h,{viewBox:"0 0 24 24",style:u}))}g.displayName="IconFdsArrowUpRightSmallO";let x=(0,p.g)("support","sc"),v=Object.freeze({support:x,title:`${x}__title`,cardsContainer:`${x}__cards-container`}),_="cb-support",b=(0,p.g)("support-app-card","sc"),f=Object.freeze({supportAppCard:b,textWrapper:`${b}__text-wrapper`,imageContainer:`${b}__image-container`,title:`${b}__title`,description:`${b}__description`,button:`${b}__button`,imageWrapper:`${b}__image-wrapper`,image:`${b}__image`}),j=({title:e,linkUrl:t,s3Assets:a,description:i})=>{let s=(0,o.nu)("s");return(0,l.jsxs)("div",{className:f.supportAppCard,onClick:()=>{s&&((0,d.h)({eventCategory:_,eventActionType:d.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,l.jsx)(c.$,{className:f.button,iconLeft:(0,l.jsx)(g,{size:24}),shape:"circle-icon",size:"xs"}),(0,l.jsxs)("div",{className:f.textWrapper,children:[(0,l.jsx)("div",{className:f.title,children:e}),!!i&&(0,l.jsx)("div",{className:f.description,children:i})]}),(0,l.jsx)("div",{className:f.imageContainer,children:(0,l.jsxs)("picture",{className:f.imageWrapper,children:[(0,l.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,l.jsx)("img",{className:f.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`})]})})]})},$=(0,p.g)("support-phone-card","sc"),k=Object.freeze({supportPhoneCard:$,contacts:`${$}__contacts`,contactsExtra:`${$}__contacts-extra`,phone:`${$}__phone`,phonesExtra:`${$}__phones-extra`,phoneExtra:`${$}__phone-extra`,chat:`${$}__chat`,text:`${$}__text`,image:`${$}__image`}),y=({phones:e,phonesExtra:t,description:a,s3Assets:i})=>{let s=(0,n.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,d.h)({eventCategory:_,eventActionType:d.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),r=e=>{let t=e.replace(/[\s-]/g,"");(0,d.h)({eventCategory:_,eventActionType:d.D.link,eventActionText:"phone",eventLabel:t})};return(0,l.jsxs)("div",{className:k.supportPhoneCard,children:[(0,l.jsxs)("div",{className:k.contacts,children:[e.map(e=>(0,l.jsx)("a",{className:k.phone,href:e.href,onClick:()=>r(e.label),children:e.label},e.label)),(0,l.jsx)("span",{className:k.chat,onClick:s,children:"Онлайн чат"})]}),(null==t?void 0:t.length)>0&&(0,l.jsxs)("div",{className:k.contactsExtra,children:[(0,l.jsx)("p",{className:k.text,children:"Дополнительные телефоны"}),(0,l.jsx)("div",{className:k.phonesExtra,children:t.map(e=>(0,l.jsx)("a",{className:k.phoneExtra,href:e.href,onClick:()=>r(e.label),children:e.label},e.label))})]}),(0,l.jsx)("p",{className:k.text,children:a}),(0,l.jsx)("img",{className:k.image,src:`${i}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`,loading:"lazy"})]})},N=({className:e,phoneCard:t,appCard:a,s3Assets:n})=>t&&a?(0,l.jsx)("section",{className:(0,r.A)(v.support,e),children:(0,l.jsxs)(i.m,{children:[(0,l.jsx)(s.D,{as:"h2",type:"display",weight:"bold",className:v.title,children:"Поддержка"}),(0,l.jsxs)("div",{className:v.cardsContainer,children:[(0,l.jsx)(y,{s3Assets:n,...t}),(0,l.jsx)(j,{s3Assets:n,...a})]})]})}):null;N.displayName="Support";let w=N},48382:()=>{},48830:(e,t,a)=>{"use strict";a.d(t,{B:()=>b});var l=a(95155),i=a(12115),s=a(29722),r=a(83640),n=a(92681),c=a(78012);function o(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"m10.28 19.03 6.5-6.5a.75.75 0 0 0 0-1.06l-6.5-6.5a.75.75 0 1 0-1.06 1.06L15.19 12l-5.97 5.97a.75.75 0 1 0 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}var d=a(26048);a(16236);let p=(0,r.g)("breadcrumbs"),m={breadcrumbs:p,breadcrumbsEllipsis:`${p}--ellipsis`,displayOne:`${p}--display-one`,list:`${p}__list`,mobileList:`${p}__list--mobile`,desktopList:`${p}__list--desktop`,item:`${p}__item`,customItem:`${p}__item--custom`,link:`${p}__link`,linkLabel:`${p}__link-label`,text:`${p}__text`,separator:`${p}__separator`,backIcon:`${p}__back-icon`,iconMobile:`${p}__icon--mobile`,iconDesktop:`${p}__icon--desktop`},u=(e=[],t,a)=>{var l;return t||a?{label:t||"Назад",href:"object"!=typeof a?a||"#":void 0,customLink:"object"==typeof a?a:void 0}:e.length&&e.length>1?(null==(l=e[e.length-1])?void 0:l.href)?e[e.length-1]:e[e.length-2]:{label:e[0].label||"Назад",href:e[0].href||"#",customLink:e[0].customLink}};function h(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M8.22 12.53a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 1 1 1.06 1.06L9.81 12l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}function g(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"m11.28 17.03 4.5-4.5a.75.75 0 0 0 0-1.06l-4.5-4.5a.75.75 0 1 0-1.06 1.06L14.19 12l-3.97 3.97a.75.75 0 1 0 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}let x=({item:e,isBackward:t=!1,isLast:a,dataQa:i,onClick:r})=>(0,l.jsx)(l.Fragment,{children:e.href||e.customLink?(0,l.jsxs)(l.Fragment,{children:[e.customLink?(0,l.jsx)(l.Fragment,{children:e.customLink}):(0,l.jsxs)("a",{href:e.href,"data-qa":i,className:m.link,title:e.label,onClick:r?t=>r(t,e.href):void 0,children:[t&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.P,{className:(0,s.A)(m.backIcon,m.iconDesktop),children:(0,l.jsx)(c.S,{})}),(0,l.jsx)(d.P,{className:(0,s.A)(m.backIcon,m.iconMobile),children:(0,l.jsx)(h,{})})]}),(0,l.jsx)("span",{className:m.linkLabel,children:e.label})]}),!t&&!a&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.P,{className:(0,s.A)(m.separator,m.iconDesktop),children:(0,l.jsx)(o,{})}),(0,l.jsx)(d.P,{className:(0,s.A)(m.separator,m.iconMobile),children:(0,l.jsx)(g,{})})]})]}):(0,l.jsx)("span",{"aria-current":"page","data-qa":i,className:m.text,title:e.label,children:e.label})});x.displayName="BreadcrumbsLink";let v=({items:e=[],dataQa:t,backwardHref:a,backwardLabel:r,onClick:c})=>{let o=(0,i.useRef)(null),d=(0,i.useCallback)(e=>{let t=o.current;if(!t)return;let a=(null==e?void 0:e.target).closest("a");if(!a)return;let l=t.getBoundingClientRect(),i=a.getBoundingClientRect();t.scrollTo({left:i.left-l.left-8+(t.scrollLeft??0),behavior:"smooth"})},[]),p=u(e,r,a),h=(e,t)=>{d(e),null==c||c(e,t)};return(0,l.jsx)("ul",{ref:o,className:(0,s.A)(m.list,m.desktopList),"data-qa":(0,n.g)(`${t}-desktop-list`,!!t),children:1===e.length||a||r?(0,l.jsx)("li",{className:(0,s.A)(m.item),children:(0,l.jsx)(x,{isBackward:!0,dataQa:(0,n.g)(`${t}-link`,!!t),item:p,onClick:h})}):(0,l.jsx)(l.Fragment,{children:e.map((a,i)=>(0,l.jsx)("li",{className:(0,s.A)(m.item,{[m.customItem]:a.customLink}),children:(0,l.jsx)(x,{item:a,dataQa:(0,n.g)(`${t}-link-${++i}`,!!t),isLast:i===e.length,onClick:h})},`${a.label}--${i}`))})})};v.displayName="DesktopBreadcrumbs";let _=({items:e=[],backwardLabel:t,backwardHref:a,dataQa:i,onClick:r})=>{let c=u(e,t,a);return(0,l.jsx)("ul",{className:(0,s.A)(m.list,m.mobileList),"data-qa":(0,n.g)(`${i}-mobile-list`,!!i),children:(0,l.jsx)("li",{className:(0,s.A)(m.item),children:(0,l.jsx)(x,{isBackward:!0,dataQa:(0,n.g)(`${i}-link`,!!i),item:c,onClick:r})})})};_.displayName="MobileBreadcrumbs";let b=(0,i.forwardRef)(({items:e=[],isMobile:t,onClick:a,backwardLabel:i,backwardHref:r,style:n,className:c,ellipsis:o=!1,isFullView:d=!1,dataQa:p,dataId:u,...h},g)=>{let x=e.length||i||r;return(0,l.jsx)(l.Fragment,{children:x&&(0,l.jsxs)("nav",{ref:g,"aria-label":"breadcrumbs",className:(0,s.A)(m.breadcrumbs,{[m.displayOne]:void 0===t&&!d,[m.breadcrumbsEllipsis]:o},c),style:n,...h,"data-id":u,"data-qa":p,children:[!0!==t&&(0,l.jsx)(v,{items:e,dataQa:p,backwardLabel:i,backwardHref:r,onClick:a||void 0}),!1!==t&&!d&&(0,l.jsx)(_,{items:e,dataQa:p,backwardLabel:i,backwardHref:r,onClick:a||void 0})]})})});b.displayName="Breadcrumbs"},49735:()=>{},73321:(e,t,a)=>{"use strict";var l=a(74645);a.o(l,"usePathname")&&a.d(t,{usePathname:function(){return l.usePathname}}),a.o(l,"useRouter")&&a.d(t,{useRouter:function(){return l.useRouter}})},89190:()=>{},97651:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={default:function(){return d},getImageProps:function(){return o}};for(var i in l)Object.defineProperty(t,i,{enumerable:!0,get:l[i]});let s=a(73623),r=a(95413),n=a(38437),c=s._(a(36095));function o(e){let{props:t}=(0,r.getImgProps)(e,{defaultLoader:c.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,a]of Object.entries(t))void 0===a&&delete t[e];return{props:t}}let d=n.Image}}]);