(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8128],{15855:(e,t,a)=>{"use strict";a.d(t,{C:()=>_}),a(48382);var l=a(95155),s=a(12115),i=a(25032),n=a(66216),r=a(8260),o=a(14347),c=a(29722),d=a(20197),p=a(11246),h=a(17194),u=a(51905);let m=(0,a(7596).g)("journal","sc"),g=Object.freeze({wrapper:`${m}__wrapper`,title:`${m}__title`,subtitle:`${m}__subtitle`,scrollableWrapper:`${m}__scrollable-wrapper`,chipsWrapper:`${m}__chips-wrapper`,slider:`${m}__slider`,sliderItem:`${m}__slider-item`,article:`${m}__article`,imgWrapper:`${m}__img-wrapper`,articleBody:`${m}__article-body`,articleTitle:`${m}__article-title`,articleDate:`${m}__article-date`,checkAllLink:`${m}__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 m;let _=(0,o.qF)("xl"),[b,$]=(0,s.useState)(!0),[f,j]=(0,s.useState)(0),y=Array.isArray(null==e?void 0:e.chips)?e.chips.filter(({items:e})=>!!(null!=e&&e.length)):[],N=y.some(({id:e})=>e===f)?f:null==(m=y[0])?void 0:m.id,w=y.find(({id:e})=>e===N),C=(null==w?void 0:w.items)||[];if((0,s.useEffect)(()=>{$(!_)},[_]),!y.length)return null;let k=e=>{e.target.src!==v&&(e.target.src=v)};return(0,l.jsxs)("div",{className:(0,c.A)(g.wrapper,a),children:[(0,l.jsxs)(n.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)(n.m,{children:(0,l.jsx)("div",{className:g.chipsWrapper,children:y.length>1&&(0,l.jsx)(i.C,{chips:y,value:N,variant:"secondary",size:b?"m":"l",onChipClick:e=>{var a;let l=(null==(a=y.find(({id:t})=>t===e))?void 0:a.label)||"";(0,d.h)({eventCategory:t,eventActionType:d.D.tab,eventActionText:l}),j(e)}})})})}),(0,l.jsxs)(n.m,{children:[(0,l.jsx)(r.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:C.map(e=>{let a,s;return(0,l.jsx)(r.D,{className:g.sliderItem,children:(0,l.jsxs)("a",{className:g.article,href:e.url,onClick:(a=e.title,s=e.url,()=>{(0,d.h)({eventCategory:t,eventActionType:d.D.block,eventActionText:a||"",eventLabel:s})}),children:[(0,l.jsx)("div",{className:g.imgWrapper,children:(0,l.jsx)("img",{src:e.img,alt:`изображение: ${e.title}`,loading:"lazy",onError:k})}),(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)})},N),(0,l.jsx)(u.C,{href:(null==e?void 0:e.url)||"",event:{event:"data-event",eventCategory:t,eventAction:`link_${(0,h.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)||"Показать все статьи"})]})]})}},26111:(e,t,a)=>{"use strict";a.d(t,{E:()=>C}),a(89190);var l=a(95155),s=a(66216),i=a(79253),n=a(29722),r=a(12115),o=a(24691),c=a(14347),d=a(20197),p=a(7596);let h={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},u={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},m=e=>r.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.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:s}){return r.createElement("span",{className:e,style:{...h,...s&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...a&&{width:`${a}px`,height:`${a}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...s?{role:"button",tabIndex:"0",onClick:s}:{}},r.createElement(m,{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"),$=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`}),f=({title:e,linkUrl:t,s3Assets:a,description:s})=>{let i=(0,c.nu)("s");return(0,l.jsxs)("div",{className:$.supportAppCard,onClick:()=>{i&&((0,d.h)({eventCategory:_,eventActionType:d.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,l.jsx)(o.$,{className:$.button,iconLeft:(0,l.jsx)(g,{size:24}),shape:"circle-icon",size:"xs"}),(0,l.jsxs)("div",{className:$.textWrapper,children:[(0,l.jsx)("div",{className:$.title,children:e}),!!s&&(0,l.jsx)("div",{className:$.description,children:s})]}),(0,l.jsx)("div",{className:$.imageContainer,children:(0,l.jsxs)("picture",{className:$.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:$.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`})]})})]})},j=(0,p.g)("support-phone-card","sc"),y=Object.freeze({supportPhoneCard:j,contacts:`${j}__contacts`,contactsExtra:`${j}__contacts-extra`,phone:`${j}__phone`,phonesExtra:`${j}__phones-extra`,phoneExtra:`${j}__phone-extra`,chat:`${j}__chat`,text:`${j}__text`,image:`${j}__image`}),N=({phones:e,phonesExtra:t,description:a,s3Assets:s})=>{let i=(0,r.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"})},[]),n=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:y.supportPhoneCard,children:[(0,l.jsxs)("div",{className:y.contacts,children:[e.map(e=>(0,l.jsx)("a",{className:y.phone,href:e.href,onClick:()=>n(e.label),children:e.label},e.label)),(0,l.jsx)("span",{className:y.chat,onClick:i,children:"Онлайн чат"})]}),(null==t?void 0:t.length)>0&&(0,l.jsxs)("div",{className:y.contactsExtra,children:[(0,l.jsx)("p",{className:y.text,children:"Дополнительные телефоны"}),(0,l.jsx)("div",{className:y.phonesExtra,children:t.map(e=>(0,l.jsx)("a",{className:y.phoneExtra,href:e.href,onClick:()=>n(e.label),children:e.label},e.label))})]}),(0,l.jsx)("p",{className:y.text,children:a}),(0,l.jsx)("img",{className:y.image,src:`${s}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`,loading:"lazy"})]})},w=({className:e,phoneCard:t,appCard:a,s3Assets:r})=>t&&a?(0,l.jsx)("section",{className:(0,n.A)(v.support,e),children:(0,l.jsxs)(s.m,{children:[(0,l.jsx)(i.D,{as:"h2",type:"display",weight:"bold",className:v.title,children:"Поддержка"}),(0,l.jsxs)("div",{className:v.cardsContainer,children:[(0,l.jsx)(N,{s3Assets:r,...t}),(0,l.jsx)(f,{s3Assets:r,...a})]})]})}):null;w.displayName="Support";let C=w},37940:(e,t,a)=>{"use strict";a.d(t,{ms:()=>l.D,n5:()=>l.g,pm:()=>l.a,uu:()=>l.h});var l=a(52708)},39041:()=>{},48382:()=>{},49557:()=>{},68990:(e,t,a)=>{"use strict";a.d(t,{a:()=>_});var l=a(95155),s=a(12115),i=a(76701),n=a(29722),r=a(37370),o=a(92681),c=a(83640),d=a(87978),p=a(78012),h=a(62849),u=a(26048);a(39041);let m=(0,c.g)("modal"),g=Object.freeze({modal:m,overlay:`${m}__overlay`,withoutFooter:`${m}--without-footer`,noContent:`${m}--no-content`,open:`${m}--open`,overlayOpen:`${m}__overlay--open`,height:{medium:`${m}--height-medium`,full:`${m}--height-full`},size:{s:`${m}--s`,m:`${m}--m`,l:`${m}--l`,xl:`${m}--xl`},header:`${m}__header`,headerText:`${m}__header-text`,headerTitle:`${m}__header-title`,headerSubtitle:`${m}__header-subtitle`,closeIcon:`${m}__close-icon`,backButton:`${m}__back-button`,backButtonText:`${m}__back-button-text`,headerStates:{centered:`${m}__header--centered`,withLongBtn:`${m}__header--with-long-btn`,defaultHeight:`${m}__header--default-height`},content:`${m}__content`,withoutPadding:`${m}__content--without-padding`,withScroll:`${m}__content--with-scroll`,footer:`${m}__footer`,footerContainer:`${m}__footer-container`,footerBtn:`${m}__footer-btn`,footerDescription:`${m}__footer-description`,divider:`${m}__divider`,dividerTop:`${m}__divider--top`,dividerBottom:`${m}__divider--bottom`}),x=({primaryBtnText:e,onPrimary:t,secondaryBtnText:a,onSecondary:s,thirdBtnText:i,onThird:r,description:c,children:p,noContent:h,dataQa:u})=>(0,l.jsxs)("div",{"data-qa":(0,o.g)(`${u}-footer`,!!u),className:(0,n.A)(g.footer,{[g.noContent]:h}),children:[!h&&(0,l.jsx)("div",{className:(0,n.A)(g.divider,g.dividerTop)}),p||(0,l.jsxs)("div",{className:g.footerContainer,children:[i&&(0,l.jsx)(d.a,{dataQa:(0,o.g)(`${u}-footer-third-btn`,!!u),label:i,variant:"secondary",size:"s",className:g.footerBtn,onClick:r}),a&&(0,l.jsx)(d.a,{dataQa:(0,o.g)(`${u}-footer-secondary-btn`,!!u),label:a,variant:"secondary",size:"s",className:g.footerBtn,onClick:s}),e&&(0,l.jsx)(d.a,{dataQa:(0,o.g)(`${u}-footer-primary-btn`,!!u),label:e,size:"s",className:g.footerBtn,onClick:t})]}),c&&(0,l.jsx)("span",{"data-qa":(0,o.g)(`${u}-footer-description`,!!u),className:g.footerDescription,children:c})]}),v=({text:e,title:t,subtitle:a,align:s="left",backBtnVariant:i,onBack:r,onClose:c,noContent:d,dataQa:m,withoutCloseBtn:x=!1})=>(0,l.jsxs)("div",{"data-qa":(0,o.g)(`${m}-header`,!!m),className:(0,n.A)(g.header,{[g.headerStates.centered]:"center"===s||!!i,[g.headerStates.withLongBtn]:"long"===i,[g.headerStates.defaultHeight]:!e&&!t&&!a}),children:[e&&(0,l.jsx)("span",{"data-qa":(0,o.g)(`${m}-header-text`,!!m),className:g.headerText,children:e}),t&&(0,l.jsx)("span",{"data-qa":(0,o.g)(`${m}-header-title`,!!m),className:g.headerTitle,children:t}),a&&(0,l.jsx)("span",{"data-qa":(0,o.g)(`${m}-header-subtitle`,!!m),className:g.headerSubtitle,children:a}),!x&&(0,l.jsx)("button",{"data-qa":(0,o.g)(`${m}-header-close`,!!m),type:"button",className:g.closeIcon,onClick:c,children:(0,l.jsx)(u.P,{children:(0,l.jsx)(h.S,{})})}),i&&(0,l.jsxs)("button",{"data-qa":(0,o.g)(`${m}-header-back`,!!m),type:"button",className:g.backButton,onClick:r,children:[(0,l.jsx)(u.P,{children:(0,l.jsx)(p.S,{})}),"long"===i&&(0,l.jsx)("span",{className:g.backButtonText,children:"Назад"})]}),!d&&(0,l.jsx)("div",{className:(0,n.A)(g.divider,g.dividerBottom)})]}),_=(0,s.forwardRef)(({header:e,footer:t,open:a=!1,size:c="m",noPadding:d=!1,height:p="full",onClose:h,children:u,className:m,style:_,dataQa:b,dataId:$,dismissDisabled:f=!1,...j},y)=>{let[N,w]=(0,s.useState)(!1),[C,k]=(0,s.useState)(!1),A=(0,s.useRef)(null);(0,s.useEffect)(()=>()=>{A.current&&cancelAnimationFrame(A.current)},[]),(0,s.useEffect)(()=>{if(A.current&&cancelAnimationFrame(A.current),a)return w(!0),A.current=requestAnimationFrame(()=>{requestAnimationFrame(()=>{k(!0)})}),()=>{A.current&&cancelAnimationFrame(A.current)};{k(!1);let e=setTimeout(()=>{w(!1)},300);return()=>{clearTimeout(e),A.current&&cancelAnimationFrame(A.current)}}},[a]);let T=()=>{k(!1);let e=setTimeout(()=>{null==h||h(),w(!1)},300);return()=>clearTimeout(e)},{context:S}=(0,i.we)({open:N,onOpenChange:e=>{e||T()}}),L=(0,i.s9)(S,{outsidePressEvent:"mousedown",outsidePress:!f,escapeKey:!f}),B=(0,i.It)(S,{role:"dialog"}),{getFloatingProps:z}=(0,i.bv)([L,B]),[R,E]=(0,s.useState)(!1),q=(0,s.useCallback)(e=>{e&&new ResizeObserver(()=>{E(e.scrollHeight>e.clientHeight)}).observe(e)},[]);return N?(0,l.jsx)(i.XF,{id:r.M,children:(0,l.jsx)(i.zR,{lockScroll:!0,className:(0,n.A)(g.overlay,{[g.overlayOpen]:C}),children:(0,l.jsx)(i.s3,{context:S,children:(0,l.jsxs)("div",{ref:y,className:(0,n.A)(g.modal,g.size[c],g.height[p],{[g.withoutFooter]:!(null==t?void 0:t.primaryBtnText)&&!(null==t?void 0:t.children),[g.open]:C},m),style:_,...z(),...j,"data-id":$,"data-qa":b,children:[(0,l.jsx)(v,{...e,dataQa:b,noContent:!u,onClose:T}),u&&(0,l.jsx)("div",{"data-qa":(0,o.g)(`${b}-content`,!!b),ref:q,className:(0,n.A)(g.content,{[g.withoutFooter]:!(null==t?void 0:t.primaryBtnText)&&!(null==t?void 0:t.children),[g.withoutPadding]:d,[g.withScroll]:R}),children:u}),((null==t?void 0:t.primaryBtnText)||(null==t?void 0:t.children))&&(0,l.jsx)(x,{...t,dataQa:b,noContent:!u})]})})})}):null});_.displayName="Modal"},87888:(e,t,a)=>{"use strict";a.d(t,{I:()=>p});var l=a(95155),s=a(12115),i=a(29722),n=a(92681),r=a(83640);a(49557);let o=(0,r.g)("segmented-control"),c=Object.freeze({segmentedControl:o,secondary:`${o}--secondary`,tab:`${o}__tab`,label:`${o}__label`,icon:`${o}__icon`,slot:`${o}__slot`,states:{stretch:`${o}--stretch`,rounded:`${o}--rounded`,small:`${o}--s`,medium:`${o}--m`,weightVariant:`${o}--wight-medium`,left:`${o}__tab--left`,right:`${o}__tab--right`,active:`${o}__tab--active`,iconOnly:`${o}__tab--icon-only`,disabled:`${o}__tab--disabled`}}),d=Object.freeze({labelKey:"label",disabledKey:"disabled",slotLeftKey:"slotLeft",slotRightKey:"slotRight",iconLeftKey:"iconLeft",iconRightKey:"iconRight"}),p=(0,s.forwardRef)(({activeTabId:e,tabs:t,onTabChange:a,variant:r="primary",className:o,style:p,stretch:h=!1,rounded:u=!1,tabSettings:m,weightVariant:g="regular",size:x="m",onTabKeyDown:v,dataQa:_,dataId:b,...$},f)=>{var j;let y=(0,s.useRef)(null),N=(0,s.useMemo)(()=>{let e={...d,...m};return t.map(t=>({sourceTab:t,id:t.id,label:t[e.labelKey],disabled:t[e.disabledKey]??!1,slotLeft:t[e.slotLeftKey],slotRight:t[e.slotRightKey],iconLeft:t[e.iconLeftKey],iconRight:t[e.iconRightKey]}))},[m,t]),[w,C]=(0,s.useState)(e??(null==(j=N[0])?void 0:j.id)),k=(0,s.useCallback)(e=>{let t=y.current,a=(null==e?void 0:e.target).closest(`.${c.tab}`),l=t.getBoundingClientRect(),s=a.getBoundingClientRect();t.scrollTo({left:s.left-l.left-4+(t.scrollLeft??0),behavior:"smooth"})},[]);return(0,s.useEffect)(()=>{null!=e&&C(e)},[e]),(0,s.useImperativeHandle)(f,()=>y),(0,l.jsx)("div",{ref:y,role:"tablist",className:(0,i.A)(c.segmentedControl,{[c.secondary]:"secondary"===r,[c.states.small]:"s"===x,[c.states.medium]:"m"===x,[c.states.weightVariant]:"medium"===g,[c.states.stretch]:h,[c.states.rounded]:u},o),style:p,...$,"data-id":b,"data-qa":_,children:N.map((e,t)=>(0,l.jsxs)("button",{type:"button",role:"tab","data-qa":(0,n.g)(`${_}-tab-${++t}`,!!_),"aria-selected":e.id===w,"aria-disabled":e.disabled?e.disabled:void 0,tabIndex:(null==e?void 0:e.disabled)?-1:0,className:(0,i.A)(c.tab,{[c.states.active]:e.id===w,[c.states.disabled]:e.disabled,[c.states.iconOnly]:!e.label&&(e.iconLeft||e.slotLeft),[c.states.left]:e.label&&(e.iconLeft||e.slotLeft),[c.states.right]:e.label&&(e.iconRight||e.slotRight)}),onClick:e.disabled?void 0:t=>{var l;return l=e.id,void(C(l),k(t),a(l,t))},onKeyDown:e.disabled?void 0:t=>{var a;return a=e.id,void(((null==t?void 0:t.key)===" "||(null==t?void 0:t.key)==="Enter")&&(C(a),k(t),null==v||v(a,t)))},children:[e.iconLeft&&(0,l.jsx)("span",{className:c.icon,children:e.iconLeft}),e.slotLeft&&e.label&&(0,l.jsx)("span",{className:c.slot,children:e.slotLeft}),e.label&&(0,l.jsx)("span",{className:c.label,children:e.label}),e.label&&(0,l.jsxs)(l.Fragment,{children:[e.slotRight&&(0,l.jsx)("span",{className:c.slot,children:e.slotRight}),e.iconRight&&(0,l.jsx)("span",{className:c.icon,children:e.iconRight})]})]},e.id))})});p.displayName="SegmentedControl"},89190:()=>{}}]);