(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[564],{3466:function(e,t,o){"use strict";o.d(t,{h:function(){return r}});var n=o(2265),l=o(4887);let r=e=>{let{children:t,id:o="portal-root"}=e,[r,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.getElementById(o);if(e){i(e);return}let t=document.createElement("div");return t.id=o,document.body.appendChild(t),i(t),()=>{document.body.removeChild(t)}},[o]),r?(0,l.createPortal)(t,r):null}},8918:function(e,t,o){"use strict";o.d(t,{x:function(){return n}});let n="Раскрытие информации"},6034:function(e,t,o){"use strict";o.d(t,{E:function(){return M}});var n=o(7437),l=o(5461),r=o(5563),i=o(1994),s=o(2265),c=o(3466);let a=e=>{let t=(0,s.useRef)(null),o=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{if(o.current===e)return;o.current=e;let n=t.current,l=window.innerWidth-document.documentElement.clientWidth;e&&l&&!document.body.style.top&&(window.prevScrollPosition=window.scrollY||window.pageYOffset),e&&l&&(document.documentElement.style.setProperty("overflow-y","scroll"),document.body.classList.toggle("scroll-disable-windows",!0),document.body.style.setProperty("width","calc(100vw - ".concat(l,"px)")),document.body.style.setProperty("top","-".concat(window.prevScrollPosition,"px"))),e&&!l&&(document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("height","100vw")),e&&n&&n.setAttribute("data-portal","");let r=document.querySelectorAll("[data-portal]").length>1;return e||r||(document.body.classList.toggle("scroll-disable-windows",!1),document.body.style.removeProperty("overflow"),document.body.style.removeProperty("height"),document.body.style.removeProperty("width"),document.body.style.removeProperty("top")),e||r||void 0===window.prevScrollPosition||(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0),!e&&n&&n.removeAttribute("data-portal"),()=>{document.body.classList.toggle("scroll-disable-windows",!1),document.body.style.removeProperty("overflow"),document.body.style.removeProperty("height"),void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)}},[e]),t},d=e=>{let{opened:t}=e,[o,n]=(0,s.useState)(!1),l=(0,s.useRef)(null),r=(0,s.useRef)(!1);return(0,s.useEffect)(()=>(t&&!r.current?(r.current=!0,n(!0)):!t&&r.current&&(l.current=setTimeout(()=>{r.current=!1,n(!1)},300)),()=>{l.current&&clearTimeout(l.current)}),[t]),{mounted:o}};var u=o(8582),p=o.n(u);let _=e=>{let{onClose:t,onToucheMove:o,isOpen:l,delay:r=300}=e,c=(0,s.useRef)(null),a=(0,s.useCallback)(()=>{t&&(c.current=setTimeout(()=>{t()},r))},[r,t]),d=(0,s.useCallback)(e=>{"Escape"===e.key&&a()},[a]);return(0,s.useEffect)(()=>(l&&window.addEventListener("keydown",d),()=>{c.current&&clearTimeout(c.current),window.removeEventListener("keydown",d)}),[l,d]),(0,n.jsx)("div",{className:(0,i.Z)(p().overlay,{[p().open]:l,[p().close]:!l}),onTouchStart:o,onClick:a})};var m=o(3582),v=o.n(m);let b=e=>{let{footer:t,isSmallPopup:o=!1,footerClassName:l}=e;return(0,n.jsx)("div",{className:(0,i.Z)(v().footer,o&&v().footerWithoutShadow,l),children:"function"==typeof t?t():t})};var f=o(6565),h=o.n(f);let y=e=>{let{children:t,footer:o,isOpen:l,isSmallPopup:r,onClose:c,hasCloseButton:d=!0,full:u,touchDistance:p=100,withDisabledScroll:m=!0,contentClassName:v,className:f,title:y,closeButton:w,footerClassName:x}=e,[j,g]=(0,s.useState)(!1),[N,C]=(0,s.useState)(!1),[P,T]=(0,s.useState)(!0),[L,E]=(0,s.useState)("120%"),S=(0,s.useRef)(null),I=(0,s.useRef)(0),k=(0,s.useRef)(!1),M=e=>{var t,o,n;let l=null===(t=S.current)||void 0===t?void 0:t.offsetTop,r=null===(o=S.current)||void 0===o?void 0:o.offsetHeight;if(k.current=!0,T(!1),l&&r){let t=(null==e?void 0:null===(n=e.touches[0])||void 0===n?void 0:n.clientY)-l,o=0;t>=0&&t<=r+30&&(o=t),t>r+30&&(o=r+30),E("".concat(o,"px")),I.current=o}},O=()=>{k.current&&(I.current>p&&c?null==c||c():E("0"),T(!0),k.current=!1),window.removeEventListener("touchmove",M),window.removeEventListener("touchend",O)};return(0,s.useEffect)(()=>{l&&setTimeout(()=>{g(!0),C(!0),E("0")},100),!l&&N&&(E("120%"),g(!1),C(!1))},[N,l]),a(l&&m),(0,n.jsxs)("div",{"data-portal":!0,className:(0,i.Z)(h().mobilePopup,N&&h().mobilePopupOpen,f),children:[(0,n.jsx)(_,{onClose:()=>{l&&(null==c||c())},onToucheMove:()=>{l&&(g(!1),window.addEventListener("touchmove",M),window.addEventListener("touchend",O))},isOpen:l,delay:0}),(0,n.jsxs)("div",{className:(0,i.Z)(h().content,u&&h().contentFull,P&&h().contentTransition,P&&j&&h().contentTransitionOpen),ref:S,style:{transform:"translateY(".concat(L,")")},children:[(0,n.jsx)("div",{className:h().contentLine}),(0,n.jsxs)("div",{className:(0,i.Z)(h().contentContainer,r&&h().smallContentContainer,{[h().min]:!y&&!d},v),children:[!!y&&(0,n.jsx)("div",{className:h().title,children:y}),d?(0,n.jsx)("div",{className:h().closeContainer,children:d?w?"function"==typeof w?w():w:(0,n.jsx)("button",{onClick:c,className:h().closeButton,children:(0,n.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})}):null}):null,t]}),o&&(0,n.jsx)(b,{footerClassName:x,isSmallPopup:r,footer:o})]})]})},w=e=>{let{children:t,isSmallPopup:o=!1,isOpen:l=!1,...r}=e,{mounted:i}=d({opened:l});return i?(0,n.jsx)(y,{isSmallPopup:o,isOpen:l,...r,children:t}):null};w.displayName="UiMobilePopup";var x=o(6974),j=o.n(x);let g=e=>{let{tabs:t,activeTab:o,setActiveTab:l}=e;return(0,n.jsx)("div",{className:j().tabs,children:t.map(e=>(0,n.jsx)("button",{type:"button",onClick:()=>l(e.anchor),className:(0,i.Z)(j().tab,{[j().selected]:e.anchor===o}),children:(0,n.jsx)("div",{className:j().tabTitle,children:e.title})},e.anchor))})};var N=o(684),C=o(6959),P=o.n(C);let T=e=>{let{openPopup:t}=e;return(0,n.jsxs)("div",{className:P().titleWrapper,onClick:t,children:[(0,n.jsx)("p",{className:P().title,children:"Навигатор"}),(0,n.jsx)(N.IconFdsChevronDownO,{className:P().iconMobile})]})};var L=o(1475),E=o.n(L);let S=e=>{let{tabs:t,activeTab:o,setActiveTab:l}=e,[r,a]=(0,s.useState)(!1),d=(0,s.useRef)(null),u=()=>a(!1),p=e=>{if(d.current=e,l(e),r)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,s.useEffect)(()=>{if(!r&&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"})}},[r]),(0,s.useEffect)(()=>{let e=()=>{if(d.current)return;let e=null,o=1/0;t.forEach(t=>{let n=document.getElementById(t.anchor);if(!n)return;let l=Math.abs(n.getBoundingClientRect().top-50);l<o&&(o=l,e=t)}),e&&l(e.anchor)};return window.addEventListener("scroll",e,{passive:!0}),e(),()=>window.removeEventListener("scroll",e)},[t,l]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("aside",{className:E().stickySidebar,children:(0,n.jsxs)("div",{className:E().container,children:[(0,n.jsx)(T,{}),(0,n.jsx)(g,{tabs:t,activeTab:o,setActiveTab:p})]})}),(0,n.jsxs)("div",{className:(0,i.Z)(E().container,E().mobile),children:[(0,n.jsx)(T,{openPopup:()=>a(!0)}),(0,n.jsx)(c.h,{children:(0,n.jsx)(w,{className:E().popup,contentClassName:E().popupContent,isOpen:r,onClose:u,title:"Навигатор",children:(0,n.jsx)(g,{tabs:t,activeTab:o,setActiveTab:p})})})]})]})};var I=o(8272),k=o.n(I);let M=e=>{let{breadcrumbs:t,title:o,tabs:i,activeTab:s,onChangeTab:c,children:a}=e;return(0,n.jsx)("div",{className:k().page,children:(0,n.jsxs)(r.W2,{children:[(0,n.jsx)(l.Oo,{items:t,style:{padding:"16px 0"}}),(0,n.jsx)("h1",{className:k().title,children:o}),(0,n.jsxs)("div",{className:k().main,children:[(0,n.jsx)(S,{tabs:i,activeTab:s,setActiveTab:c}),(0,n.jsx)("div",{className:k().contentWrapper,children:(0,n.jsx)("div",{className:k().content,children:a})})]})]})})}},690:function(e,t,o){"use strict";o.d(t,{j:function(){return _}});var n=o(7437),l=o(5461),r=o(1994),i=o(7603),s=o(692);function c(e,t){let{format:o="dd.MM.yyyy"}=null!=t?t:{};try{if("string"==typeof e)return(0,i.Z)(new Date(e),o,{locale:s.Z});return(0,i.Z)(e,o,{locale:s.Z})}catch(t){return e}}var a=o(8356),d=o.n(a);let u=["pdf","doc","docx","xls","xlsx","txt"],p=e=>e>=1048576?"".concat(parseFloat((e/1024/1024).toFixed(1))," Мб"):"".concat(Math.round(e/1024)," Кб"),_=e=>{var t;let{title:o,fileItem:i,currentEdition:s,isDetailPage:a=!1}=e,{id:_,name:m,url:v,date_from:b,date_to:f,size:h}=i,y=null===(t=m.split(".").pop())||void 0===t?void 0:t.toLowerCase();return(0,n.jsxs)("div",{className:d().docsItem,children:[(0,n.jsxs)("div",{className:d().docsItemInfo,children:[(0,n.jsx)(l.rU,{href:v,className:d().docsItemLink,target:"_blank",children:o}),(0,n.jsxs)("p",{className:d().docsItemParams,children:[y&&u.includes(y)&&y,h?", ".concat(p(h)):""]})]}),a&&(b||f)&&(0,n.jsxs)("p",{className:(0,r.Z)(d().docsItemValid,{[d().currentEdition]:s}),children:["действует ",b?"с ".concat(c(b)):"",f?" по ".concat(c(f)):""," г."]})]},_)}},8582:function(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"}},6565:function(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"}},3582:function(e){e.exports={footer:"MobileModalFooter_footer__5dRCK",footerWithoutShadow:"MobileModalFooter_footerWithoutShadow__zHKVO"}},8272:function(e){e.exports={title:"DisclosureLayout_title__XPQrQ",page:"DisclosureLayout_page__07OC3",main:"DisclosureLayout_main__PurtL",contentWrapper:"DisclosureLayout_contentWrapper__sm_jY",content:"DisclosureLayout_content__KrTY2"}},8356:function(e){e.exports={docsItem:"FileItem_docsItem__Mb5bf",docsItemInfo:"FileItem_docsItemInfo____j2c",docsItemLink:"FileItem_docsItemLink__OKFDe",docsItemParams:"FileItem_docsItemParams__jAcp1",docsItemValid:"FileItem_docsItemValid__VyRtu",currentEdition:"FileItem_currentEdition__rHvgs"}},1475:function(e){e.exports={stickySidebar:"NavigatorSidebar_stickySidebar__KC873",container:"NavigatorSidebar_container__0y3jB",mobile:"NavigatorSidebar_mobile__b3Wpe",popup:"NavigatorSidebar_popup__3d5XU",popupContent:"NavigatorSidebar_popupContent__Tl875"}},6974:function(e){e.exports={tabs:"NavigatorTabsList_tabs__O0b_M",tab:"NavigatorTabsList_tab__F4URE",tabTitle:"NavigatorTabsList_tabTitle__mqORN",selected:"NavigatorTabsList_selected__FYl1L"}},6959:function(e){e.exports={title:"NavigatorTopTitle_title__KRL9r",titleWrapper:"NavigatorTopTitle_titleWrapper__3ruE3",iconMobile:"NavigatorTopTitle_iconMobile__6cl7C"}}}]);