(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[117],{40257:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(44227)},44227:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var c=[],l=!1,u=-1;function d(){l&&r&&(l=!1,r.length?c=r.concat(c):u=-1,c.length&&p())}function p(){if(!l){var e=a(d);l=!0;for(var t=c.length;t;){for(r=c,c=[];++u<t;)r&&r[u].run();u=-1,t=c.length}r=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||l||a(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},s=!0;try{t[e](o,o.exports,r),s=!1}finally{s&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},68882:function(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=n(2265);t.TagManagerNoscript=function({gtmID:e,mtmURL:t,mtmID:n}){return r.createElement(r.Fragment,null,r.createElement("noscript",{id:"analytics-gtm-noscript",dangerouslySetInnerHTML:{__html:function({gtmID:e}){return`<iframe src="https://www.googletagmanager.com/ns.html?id=${e}" height="0" width="0" style="display:none;visibility:hidden"></iframe>`}({gtmID:e})}}),r.createElement("noscript",{id:"analytics-mtm-noscript",dangerouslySetInnerHTML:{__html:function({mtmURL:e,mtmID:t}){return`<img src="${e}/matomo.php?idsite=${t}&rec=1" alt="Matomo Tracker" style="display:none;visibility:hidden" />`}({mtmURL:t,mtmID:n})}}))},t.TagManagerScript=function({gtmID:e,mtmURL:t,mtmID:n,autoInit:i=!0}){return r.createElement(r.Fragment,null,r.createElement("script",{id:"analytics-session-script",dangerouslySetInnerHTML:{__html:`
    (function(w) {
  /*! js-cookie v3.0.5 | MIT */
  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var t=function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});return t}));
  function uuidv4(){return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(a){return (a^Math.random()*16>>a/4).toString(16)})}
  function normalizeDomain(domain) {return '.'+domain.replace(/^http(s)?:\\/\\//gi, '').replace(/\\/$/, '').split('.').slice(-2).join('.')}
  var uuidv4re=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
  var browserId=Cookies.get('browserId')||w.browserId||(function(){
    try{return w.localStorage.getItem('browserId');}catch(e){return null;}
  })()||uuidv4();
  var sessionId=Cookies.get('browserSessionId')||w.browserSessionId||(function(){
    try{return w.sessionStorage.getItem('browserSessionId')||w.sessionStorage.getItem('browserId');}catch(e){return null;}
  })()||uuidv4();
  if(!browserId.match(uuidv4re)){browserId=uuidv4();}
  if(!sessionId.match(uuidv4re)){sessionId=uuidv4();}
  w.browserId=browserId;
  w.browserSessionId=sessionId;
  try{
    w.localStorage.setItem('browserId', browserId);
    w.sessionStorage.setItem('browserId', sessionId);
    w.sessionStorage.setItem('browserSessionId', sessionId);
  }catch(e){}
  var domain=normalizeDomain(w.location.hostname);
  var cookieOptions={path:'/',secure:true,domain:domain,sameSite:w.location.protocol==='https:'?'None':'Lax'};
  Cookies.set('browserId',browserId,Object.assign({},cookieOptions,{expires: 365}));
  Cookies.set('browserSessionId',sessionId,cookieOptions);
  w.dataLayer=w.dataLayer||[];w._mtm=w._mtm||[];
  w.dataLayer.push({browser_id:browserId,session_id:sessionId});
  w._mtm.push({event:'setBrowserSession',browser_id:browserId,session_id:sessionId});
})(window);
  `}}),r.createElement("script",{id:"analytics-gtm-script",dangerouslySetInnerHTML:{__html:function({gtmID:e}){return`
    (function(w,l,d){
      w._gtm_initialized=false;
      w[l]=w[l]||[];
      w[l].push({...(w._session||{})});
      w._init_gtm=function(){
        if(w._gtm_initialized)return;
        w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});
        var g=d.createElement('script'),s=d.getElementsByTagName('script')[0];
        g.type='text/javascript';
        g.async=true;
        g.src='https://www.googletagmanager.com/gtm.js?id=${e}&l=dataLayer';
        s.parentNode.insertBefore(g,s);
        g.onload=function(){
          w._gtm_initialized=true;
        };
      }
    })(window,'dataLayer',document);
  `}({gtmID:e})}}),r.createElement("script",{id:"analytics-mtm-script",dangerouslySetInnerHTML:{__html:function({mtmURL:e,mtmID:t}){return`
    (function(w,l,d){
      w._mtm_initialized=false;
      w[l]=w[l]||[];
      w[l].push({...(w._session||{})});
      w._init_mtm=function(){
        if(w._mtm_initialized)return;
        w[l].push({'mtm.startTime':(new Date().getTime()),'event':'mtm.Start'});
        var g=d.createElement('script'),s=d.getElementsByTagName('script')[0];
        g.type='text/javascript';
        g.async=true;
        g.src='${e}/js/container_${t}.js';
        s.parentNode.insertBefore(g,s);
        g.onload=function(){
          w._mtm_initialized=true;
        };
      }
    })(window,'_mtm',document);
  `}({mtmURL:t,mtmID:n})}}),i&&r.createElement("script",{id:"analytics-auto-init-script",dangerouslySetInnerHTML:{__html:`
    (function(w,g,m){
      if(typeof w[g]==='function')w[g]();
      if(typeof w[m]==='function')w[m]();
    })(window,'_init_gtm','_init_mtm');
  `}}))}},46794:function(e,t,n){n(68882)},10855:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var r=n(57437),i=n(80684),o=n(75461),s=n(54365);let a=(0,n(52074).g)("check-all","sc"),c=Object.freeze({wrapper:`${a}__wrapper`,link:`${a}__link`,icon:`${a}__icon`,iconGray:`${a}__icon--gray`}),l=({children:e,className:t,linkClassName:n,iconGrayBackground:a,Link:l,event:u,href:d,dataLayerPush:p})=>{let m=l??o.rU;return(0,r.jsx)("div",{className:(0,s.Z)(c.wrapper,t),onClick:()=>{u&&p(u)},children:(0,r.jsxs)(m,{className:(0,s.Z)(c.link,n),href:d,children:[e,(0,r.jsx)("span",{className:(0,s.Z)(c.icon,{[c.iconGray]:a}),children:(0,r.jsx)(i.IconFdsArrowUpRightSmallO,{size:24})})]})})}},6554:function(e,t,n){"use strict";let r;n.d(t,{D:function(){return s},h:function(){return c}});var i=n(31620),o=n(56891),s=((r=s||{}).icon="icon",r.chip="chip",r.accordion="accordion",r.button="button",r.checkbox="checkbox",r.radio="radio",r.select="select",r.toggle="toggle",r.tooltip="tooltip",r.link="link",r.banner="banner",r.tag="tag",r.date="date",r.field="field",r.offer="offer",r.tab="tab",r.submitButton="submitButton",r.popup="popup",r.block="block",r);let a={icon:"click_icon_",chip:"click_chip_",accordion:"show_acc_",button:"click_button_",checkbox:"click_check_",radio:"click_radio_",select:"click_sel_",toggle:"click_togg_",tooltip:"click_tip_",link:"click_link_",banner:"click_bnr_",tag:"click_tag_",date:"input_date_",field:"input_field_",offer:"click_offer_",tab:"click_tab_",submitButton:"form_button_",popup:"show_pop_up_",block:"click_block_"},c=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:r})=>{let s={event:"data-event",eventCategory:e,eventAction:a[t]+(0,i.t)(n)};void 0!==r&&(s.eventLabel=(0,i.t)("string"==typeof r?r:r.toString())),(0,o.d)(s)}},56891:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(30631);let i=(e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),i=n?JSON.parse(n):[];e.event||(e.event="data-event"),"string"==typeof e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),e.eventLabel||(e.eventLabel="undefined");let o=i.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!o){if(t){let t={...e};t.url=window.location.pathname,i.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(i))}(0,r.AB)(e)}}},31620:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});let r={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},i=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in r?r[t]:e}).replaceAll(/[ \u00A0]/g,"_")},90422:function(e,t,n){"use strict";n.d(t,{t:function(){return f}});var r=n(57437),i=n(2265),o=n(35563),s=n(75461),a=n(54365),c=n(6554),l=n(56891),u=n(31620),d=n(10855);let p=(0,n(52074).g)("journal","sc"),m=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")}),g="https://assets.finuslugi.ru/mp-assets/widgets/journal/default_post_image.png",h=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 n=t.getDate(),r=t.getMonth();return"".concat(n," ").concat(["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][r])},f=e=>{var t;let{data:n,eventCategory:p="finkit-widgets-sc-journal",className:f}=e,v=(0,s._m)("xl"),[_,w]=(0,i.useState)(!0),[b,y]=(0,i.useState)(0),x=n.chips||[],k=(null==(t=null==x?void 0:x[Number(b)])?void 0:t.items)||[];if((0,i.useEffect)(()=>{w(!v)},[v]),0===x.length||0===k.length)return null;let j=(e,t)=>()=>{(0,c.h)({eventCategory:p,eventActionType:c.D.block,eventActionText:e||"",eventLabel:t})},I=e=>{e.target.src!==g&&(e.target.src=g)};return(0,r.jsxs)("div",{className:(0,a.Z)(m.wrapper,f),children:[(0,r.jsxs)(o.W2,{children:[(0,r.jsx)("h2",{className:m.title,children:null==n?void 0:n.title}),(0,r.jsx)("div",{className:m.subtitle,children:null==n?void 0:n.description})]}),(0,r.jsx)("div",{className:m.scrollableWrapper,children:(0,r.jsx)(o.W2,{children:(0,r.jsx)("div",{className:m.chipsWrapper,children:x.length>1&&(0,r.jsx)(s.cL,{chips:x,value:b,variant:"secondary",size:_?"m":"l",onChipClick:e=>{var t;let n=(null==(t=x[Number(e)])?void 0:t.label)||"";(0,c.h)({eventCategory:p,eventActionType:c.D.tab,eventActionText:n}),y(e)}})})})}),(0,r.jsxs)(o.W2,{children:[(0,r.jsx)(s.iR,{className:m.slider,options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3500,disableOnInteraction:!0},loop:!0},pagination:!0,navigation:!0,navigationVariant:"secondary",navigationSize:"s",children:k.map(e=>(0,r.jsx)(s.wI,{className:m.sliderItem,children:(0,r.jsxs)("a",{className:m.article,href:e.url,onClick:j(e.title,e.url),children:[(0,r.jsx)("div",{className:m.imgWrapper,children:(0,r.jsx)("img",{src:e.img,alt:"изображение: ".concat(e.title),onError:I})}),(0,r.jsxs)("div",{className:m.articleBody,children:[(0,r.jsx)("div",{className:m.articleTitle,children:e.title}),(0,r.jsx)("div",{className:m.articleDate,children:h(e.dt)})]})]})},e.title))},b),(0,r.jsx)(d.C,{href:(null==n?void 0:n.url)||"",event:{event:"data-event",eventCategory:p,eventAction:"link_".concat((0,u.t)((null==n?void 0:n.urlText)||"Показать все статьи")),eventLabel:(null==n?void 0:n.url)||""},dataLayerPush:l.d,className:m.checkAllLink,children:(null==n?void 0:n.urlText)||"Показать все статьи"})]})]})}},46295:function(e,t,n){"use strict";n.d(t,{S:function(){return a}}),n(57437),n(46794);var r=n(82778),i=n(52074),o=n(40257);let s=(0,i.g)("root-layout","sc"),a=(Object.freeze({layout:`${s}__layout`,body:`${s}__body`}),()=>{if(typeof window>"u")return{...o.env};let e=(0,r.g)();if(!e)throw Error("getEnvValue() вызвана на клиенте до инициализации контекста. Убедитесь, что env передан в RootLayout (LayoutClientInitializer вызовет setEnvStore).");return e})},17730:function(e,t,n){"use strict";n.d(t,{B:function(){return b}});var r=n(57437),i=n(35563),o=n(54365),s=n(80684),a=n(75461),c=n(6554),l=n(52074),u=n(2265);let d=(0,l.g)("support","sc"),p=Object.freeze({support:d,title:`${d}__title`,cardsContainer:`${d}__cards-container`}),m="cb-support",g=(0,l.g)("support-app-card","sc"),h=Object.freeze({supportAppCard:g,textWrapper:`${g}__text-wrapper`,imageContainer:`${g}__image-container`,title:`${g}__title`,description:`${g}__description`,button:`${g}__button`,imageWrapper:`${g}__image-wrapper`,image:`${g}__image`}),f=({title:e,linkUrl:t,s3Assets:n,description:i})=>{let o=(0,a.aF)("s");return(0,r.jsxs)("div",{className:h.supportAppCard,onClick:()=>{o&&((0,c.h)({eventCategory:m,eventActionType:c.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,r.jsx)(a.zx,{className:h.button,iconLeft:(0,r.jsx)(s.IconFdsArrowUpRightSmallO,{size:24}),shape:"circle-icon",size:"xs"}),(0,r.jsxs)("div",{className:h.textWrapper,children:[(0,r.jsx)("div",{className:h.title,children:e}),!!i&&(0,r.jsx)("div",{className:h.description,children:i})]}),(0,r.jsx)("div",{className:h.imageContainer,children:(0,r.jsxs)("picture",{className:h.imageWrapper,children:[(0,r.jsx)("source",{media:"(max-width: 767px)",srcSet:`${n}/mp-assets/widgets/SupportBlock/mobile-app.png 1x, ${n}/mp-assets/widgets/SupportBlock/mobile-app@2x.png 2x`}),(0,r.jsx)("img",{className:h.image,loading:"lazy",src:`${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg`,srcSet:`${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg 1x, ${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app@2x.jpg 2x`})]})})]})},v=(0,l.g)("support-phone-card","sc"),_=Object.freeze({supportPhoneCard:v,contacts:`${v}__contacts`,contactsExtra:`${v}__contacts-extra`,phone:`${v}__phone`,phonesExtra:`${v}__phones-extra`,phoneExtra:`${v}__phone-extra`,chat:`${v}__chat`,text:`${v}__text`,image:`${v}__image`}),w=({phones:e,phonesExtra:t,description:n,s3Assets:i})=>{let o=(0,u.useCallback)(()=>{var e,t,n;null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)||n.call(t),(0,c.h)({eventCategory:m,eventActionType:c.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),s=e=>{let t=e.replace(/[\s-]/g,"");(0,c.h)({eventCategory:m,eventActionType:c.D.link,eventActionText:"phone",eventLabel:t})};return(0,r.jsxs)("div",{className:_.supportPhoneCard,children:[(0,r.jsxs)("div",{className:_.contacts,children:[e.map(e=>(0,r.jsx)("a",{className:_.phone,href:e.href,onClick:()=>s(e.label),children:e.label},e.label)),(0,r.jsx)("span",{className:_.chat,onClick:o,children:"Онлайн чат"})]}),(null==t?void 0:t.length)>0&&(0,r.jsxs)("div",{className:_.contactsExtra,children:[(0,r.jsx)("p",{className:_.text,children:"Дополнительные телефоны"}),(0,r.jsx)("div",{className:_.phonesExtra,children:t.map(e=>(0,r.jsx)("a",{className:_.phoneExtra,href:e.href,onClick:()=>s(e.label),children:e.label},e.label))})]}),(0,r.jsx)("p",{className:_.text,children:n}),(0,r.jsx)("img",{className:_.image,src:`${i}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`})]})},b=({className:e,phoneCard:t,appCard:n,s3Assets:s})=>(0,r.jsx)("section",{className:(0,o.Z)(p.support,e),children:(0,r.jsxs)(i.W2,{children:[(0,r.jsx)(i.X6,{as:"h2",type:"display",weight:"bold",className:p.title,children:"Поддержка"}),(0,r.jsxs)("div",{className:p.cardsContainer,children:[(0,r.jsx)(w,{s3Assets:s,...t}),(0,r.jsx)(f,{s3Assets:s,...n})]})]})});b.displayName="Support"}}]);