!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"70ce8fb39136189ecf2a91fe0be2cf2d93e87014"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8505b758-1a25-4189-a711-2a65b563fdfa",e._sentryDebugIdIdentifier="sentry-dbid-8505b758-1a25-4189-a711-2a65b563fdfa")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3095],{2199:(e,t,o)=>{"use strict";o.d(t,{L:()=>b});var a=o(95155),n=o(12115),s=o(29427),r=o(81915),i=o(34317),l=o(25044),c=o(49717),d=o.n(c);let u=({footer:e,isSmallPopup:t=!1,footerClassName:o})=>(0,a.jsx)("div",{className:(0,s.A)(d().footer,t&&d().footerWithoutShadow,o),"data-sentry-component":"MobileModalFooter","data-sentry-source-file":"index.tsx",children:"function"==typeof e?e():e});var p=o(42353),_=o.n(p);let m=({children:e,footer:t,isOpen:o,isSmallPopup:l,onClose:c,hasCloseButton:d=!0,full:p,touchDistance:m=100,withDisabledScroll:b=!0,contentClassName:v,className:f,title:y,closeButton:g,footerClassName:N})=>{let[x,h]=(0,n.useState)(!1),[T,w]=(0,n.useState)(!1),[C,j]=(0,n.useState)(!0),[L,S]=(0,n.useState)("120%"),M=(0,n.useRef)(null),k=(0,n.useRef)(0),E=(0,n.useRef)(!1),P=e=>{let t=M.current?.offsetTop,o=M.current?.offsetHeight;if(E.current=!0,j(!1),t&&o){let a=e?.touches[0]?.clientY-t,n=0;a>=0&&a<=o+30&&(n=a),a>o+30&&(n=o+30),S(`${n}px`),k.current=n}},O=()=>{E.current&&(k.current>m&&c?c?.():S("0"),j(!0),E.current=!1),window.removeEventListener("touchmove",P),window.removeEventListener("touchend",O)};(0,n.useEffect)(()=>{o&&setTimeout(()=>{h(!0),w(!0),S("0")},100),!o&&T&&(S("120%"),h(!1),w(!1))},[T,o]),(0,i._)(o&&b);let Y=null;return g&&(Y="function"==typeof g?g():g),(0,a.jsxs)("div",{"data-portal":!0,className:(0,s.A)(_().mobilePopup,T&&_().mobilePopupOpen,f),"data-sentry-component":"MobilePopupLayout","data-sentry-source-file":"MobilePopup.tsx",children:[(0,a.jsx)(r.i,{onClose:()=>{o&&c?.()},onToucheMove:()=>{o&&(h(!1),window.addEventListener("touchmove",P),window.addEventListener("touchend",O))},isOpen:o,delay:0,"data-sentry-element":"ClickOutside","data-sentry-source-file":"MobilePopup.tsx"}),(0,a.jsxs)("div",{className:(0,s.A)(_().content,p&&_().contentFull,C&&_().contentTransition,C&&x&&_().contentTransitionOpen),ref:M,style:{transform:`translateY(${L})`},children:[(0,a.jsx)("div",{className:_().contentLine}),(0,a.jsxs)("div",{className:(0,s.A)(_().contentContainer,l&&_().smallContentContainer,{[_().min]:!y&&!d},v),children:[!!y&&(0,a.jsx)("div",{className:_().title,children:y}),d?(0,a.jsxs)("div",{className:_().closeContainer,children:[Y,g?null:(0,a.jsx)("button",{onClick:c,className:_().closeButton,children:(0,a.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})})]}):null,e]}),t&&(0,a.jsx)(u,{footerClassName:N,isSmallPopup:l,footer:t})]})]})},b=({children:e,isSmallPopup:t=!1,isOpen:o=!1,...n})=>{let{mounted:s}=(0,l.J)({opened:o});return s?(0,a.jsx)(m,{isSmallPopup:t,isOpen:o,...n,"data-sentry-element":"MobilePopupLayout","data-sentry-component":"UiMobilePopup","data-sentry-source-file":"MobilePopup.tsx",children:e}):null};b.displayName="UiMobilePopup"},25044:(e,t,o)=>{"use strict";o.d(t,{J:()=>s});var a=o(12115),n=o(45617);let s=({opened:e})=>{let[t,o]=(0,a.useState)(!1),s=(0,a.useRef)(null),r=(0,a.useRef)(!1);return(0,a.useEffect)(()=>(e&&!r.current?(r.current=!0,o(!0)):!e&&r.current&&(s.current=setTimeout(()=>{r.current=!1,o(!1)},n.l)),()=>{s.current&&clearTimeout(s.current)}),[e]),{mounted:t}}},31689:(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var a=o(95155),n=o(12115),s=o(47650);let r=({children:e,id:t="portal-root"})=>{let[o,r]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document?.getElementById(t);if(e)r(e);else{let e=document?.createElement("div");return document?.body.appendChild(e),r(e),()=>{document?.body.removeChild(e)}}},[]),(0,a.jsx)(a.Fragment,{children:o&&(0,s.createPortal)(e,o)})}},34317:(e,t,o)=>{"use strict";o.d(t,{_:()=>n});var a=o(12115);let n=e=>{let t=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let o=t.current;if(e){let e=window.scrollY||window.pageYOffset;document.body.dataset.scrollY=String(e),document.body.style.overflow="hidden",o&&o.setAttribute("data-portal","")}else{if(document.querySelectorAll("[data-portal]").length>1||(document.body.style.overflow=""),document.body.dataset.scrollY){let e=parseInt(document.body.dataset.scrollY,10);window.scrollTo(0,e),delete document.body.dataset.scrollY}o&&o.removeAttribute("data-portal")}return()=>{if(document.body.style.overflow="",document.body.dataset.scrollY){let e=parseInt(document.body.dataset.scrollY,10);window.scrollTo(0,e),delete document.body.dataset.scrollY}}},[e]),t}},38325:e=>{e.exports={overlay:"ClickOutside_overlay__YQi9L",open:"ClickOutside_open__bmtsz",fade:"ClickOutside_fade__io1xj",close:"ClickOutside_close__AC078","fade-out":"ClickOutside_fade-out__wJ_pJ"}},42353:e=>{e.exports={mobilePopup:"MobilePopup_mobilePopup__NCFCK",content:"MobilePopup_content__B5iF0",contentFull:"MobilePopup_contentFull__DBrvo",contentLine:"MobilePopup_contentLine__eykLy",contentContainer:"MobilePopup_contentContainer___ZbOq",min:"MobilePopup_min__D0Hml",contentTransition:"MobilePopup_contentTransition__7_kGL",contentTransitionOpen:"MobilePopup_contentTransitionOpen__GDGpr",title:"MobilePopup_title__IEYZk",closeContainer:"MobilePopup_closeContainer__HSRUL",closeButton:"MobilePopup_closeButton__Bse_M",smallContentContainer:"MobilePopup_smallContentContainer__8jHeS"}},45617:(e,t,o)=>{"use strict";o.d(t,{l:()=>a});let a=300},49317:e=>{e.exports={page:"NavigatorLayout_page__JyUKu",title:"NavigatorLayout_title__Hd5xM",main:"NavigatorLayout_main__IXIlN",contentWrapper:"NavigatorLayout_contentWrapper__fzN7p",content:"NavigatorLayout_content__zfB78"}},49717:e=>{e.exports={footer:"MobileModalFooter_footer__5dRCK",footerWithoutShadow:"MobileModalFooter_footerWithoutShadow__zHKVO"}},73095:(e,t,o)=>{"use strict";o.d(t,{s:()=>h});var a=o(95155),n=o(25069),s=o(42687),r=o(12115),i=o(29427),l=o(31689),c=o(2199),d=o(74752),u=o.n(d);let p=({tabs:e,activeTab:t,setActiveTab:o})=>(0,a.jsx)("div",{className:u().tabs,"data-sentry-component":"NavigatorTabsList","data-sentry-source-file":"NavigatorTabsList.tsx",children:e.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>o(e.anchor),className:(0,i.A)(u().tab,{[u().selected]:e.anchor===t}),children:(0,a.jsx)("div",{className:u().tabTitle,children:e.title})},e.anchor))});var _=o(27290),m=o(74936),b=o.n(m);let v=({openPopup:e})=>(0,a.jsxs)("div",{className:b().titleWrapper,onClick:e,"data-sentry-component":"NavigatorTopTitle","data-sentry-source-file":"NavigatorTopTitle.tsx",children:[(0,a.jsx)("p",{className:b().title,children:"Навигатор"}),(0,a.jsx)(_.j8g,{className:b().iconMobile,"data-sentry-element":"IconFdsChevronDownO","data-sentry-source-file":"NavigatorTopTitle.tsx"})]});var f=o(75113),y=o.n(f);let g=({tabs:e,activeTab:t,setActiveTab:o})=>{let[n,s]=(0,r.useState)(!1),d=(0,r.useRef)(null),u=()=>s(!1),_=e=>{if(d.current=e,o(e),n)u();else{let t=document.getElementById(e);if(!t)return;let o=t.getBoundingClientRect().top+window.scrollY-104;window.scroll({top:o,behavior:"smooth"})}};return(0,r.useEffect)(()=>{if(!n&&d.current){let e=d.current;d.current=null;let t=document.getElementById(e);if(!t)return;let o=t.getBoundingClientRect().top+window.scrollY-104;window.scroll({top:o,behavior:"smooth"})}},[n]),(0,r.useEffect)(()=>{let t=()=>{if(d.current)return;let t=null,a=1/0;e.forEach(e=>{let o=document.getElementById(e.anchor);if(!o)return;let n=Math.abs(o.getBoundingClientRect().top-50);n<a&&(a=n,t=e)}),t&&o(t.anchor)};return window.addEventListener("scroll",t,{passive:!0}),t(),()=>window.removeEventListener("scroll",t)},[e,o]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("aside",{className:y().stickySidebar,children:(0,a.jsxs)("div",{className:y().container,children:[(0,a.jsx)(v,{"data-sentry-element":"NavigatorTopTitle","data-sentry-source-file":"NavigatorSidebar.tsx"}),(0,a.jsx)(p,{tabs:e,activeTab:t,setActiveTab:_,"data-sentry-element":"NavigatorTabsList","data-sentry-source-file":"NavigatorSidebar.tsx"})]})}),(0,a.jsxs)("div",{className:(0,i.A)(y().container,y().mobile),children:[(0,a.jsx)(v,{openPopup:()=>s(!0),"data-sentry-element":"NavigatorTopTitle","data-sentry-source-file":"NavigatorSidebar.tsx"}),(0,a.jsx)(l.Z,{"data-sentry-element":"Portal","data-sentry-source-file":"NavigatorSidebar.tsx",children:(0,a.jsx)(c.L,{className:y().popup,contentClassName:y().popupContent,isOpen:n,onClose:u,title:"Навигатор","data-sentry-element":"UiMobilePopup","data-sentry-source-file":"NavigatorSidebar.tsx",children:(0,a.jsx)(p,{tabs:e,activeTab:t,setActiveTab:_,"data-sentry-element":"NavigatorTabsList","data-sentry-source-file":"NavigatorSidebar.tsx"})})})]})]})};var N=o(49317),x=o.n(N);let h=({breadcrumbs:e,title:t,tabs:o,activeTab:r,onChangeTab:i,children:l})=>(0,a.jsx)("div",{className:x().page,"data-sentry-component":"NavigatorLayout","data-sentry-source-file":"NavigatorLayout.tsx",children:(0,a.jsxs)(s.m,{"data-sentry-element":"Container","data-sentry-source-file":"NavigatorLayout.tsx",children:[(0,a.jsx)(n.B,{items:e,style:{padding:"16px 0"},"data-sentry-element":"Breadcrumbs","data-sentry-source-file":"NavigatorLayout.tsx"}),(0,a.jsx)("h1",{className:x().title,children:t}),(0,a.jsxs)("div",{className:x().main,children:[(0,a.jsx)(g,{tabs:o,activeTab:r,setActiveTab:i,"data-sentry-element":"NavigatorSidebar","data-sentry-source-file":"NavigatorLayout.tsx"}),(0,a.jsx)("div",{className:x().contentWrapper,children:(0,a.jsx)("div",{className:x().content,children:l})})]})]})})},74752:e=>{e.exports={tabs:"NavigatorTabsList_tabs__20qYW",tab:"NavigatorTabsList_tab__Suks_",tabTitle:"NavigatorTabsList_tabTitle__i4eH9",selected:"NavigatorTabsList_selected__kYz_z"}},74936:e=>{e.exports={titleWrapper:"NavigatorTopTitle_titleWrapper__5hMgK",title:"NavigatorTopTitle_title__jrZjh",iconMobile:"NavigatorTopTitle_iconMobile__pSTvb"}},75113:e=>{e.exports={stickySidebar:"NavigatorSidebar_stickySidebar__zg3Um",container:"NavigatorSidebar_container__ZNghc",mobile:"NavigatorSidebar_mobile__gn_MU",popup:"NavigatorSidebar_popup__2l0j4",popupContent:"NavigatorSidebar_popupContent__4254T"}},81915:(e,t,o)=>{"use strict";o.d(t,{i:()=>c});var a=o(95155),n=o(12115),s=o(29427),r=o(45617),i=o(38325),l=o.n(i);let c=({onClose:e,onToucheMove:t,isOpen:o,delay:i=r.l})=>{let c=(0,n.useRef)(null),d=(0,n.useCallback)(()=>{e&&(c.current=setTimeout(()=>{e()},i))},[i,e]),u=(0,n.useCallback)(e=>{"Escape"===e.key&&d()},[d]);return(0,n.useEffect)(()=>(o&&window.addEventListener("keydown",u),()=>{c.current&&clearTimeout(c.current),window.removeEventListener("keydown",u)}),[o,u]),(0,a.jsx)("div",{className:(0,s.A)(l().overlay,{[l().open]:o,[l().close]:!o}),onTouchStart:t,onClick:d,"data-sentry-component":"ClickOutside","data-sentry-source-file":"ClickOutside.tsx"})}}}]);
//# debugId=8505b758-1a25-4189-a711-2a65b563fdfa