1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t,r as n}from"./framework-C-kvl5Nm.js";import{c as r}from"./index-DJ8vc1od.js";import{t as i}from"./link-DMTbWfdQ.js";import{r as a,t as o}from"./navigation-Wm4cONpY.js";import{t as s}from"./NavigationEntry-DC7RR2Hb.js";import{HeaderCta as c}from"./HeaderCta-CI-sZTBi.js";var l=e(t(),1),u=n();function d({item:e,panelId:t,onNavigate:n}){return(0,u.jsxs)(`div`,{className:`mobile-nav-accordion-panel`,id:t,children:[(0,u.jsx)(`div`,{className:`mobile-nav-groups`,children:e.groups?.map(e=>(0,u.jsxs)(`section`,{"aria-label":e.title,children:[(0,u.jsx)(`div`,{className:`mobile-nav-group-title`,children:e.title}),e.description&&(0,u.jsx)(`p`,{children:e.description}),(0,u.jsx)(`div`,{className:`mobile-nav-links`,children:e.items.map(t=>(0,u.jsx)(s,{item:t,onNavigate:n},`${e.title}-${t.label}`))})]},e.title))}),e.status===`active`&&e.href?(0,u.jsxs)(i,{className:`mobile-nav-section-link`,href:e.href,onClick:n,children:[`СмоÑÑеÑÑ Ð²ÐµÑÑ Ñаздел `,(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`â`})]}):null]})}var f=`a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])`;function p(){let e=r()||`/`,t=o(e),n=a(),[s,p]=(0,l.useState)(!1),[m,h]=(0,l.useState)(t??null),g=(0,l.useRef)(null),_=(0,l.useRef)(null),v=(0,l.useRef)(null),y=(0,l.useCallback)(()=>{p(!1),h(t??null),window.requestAnimationFrame(()=>g.current?.focus())},[t]);return(0,l.useEffect)(()=>{if(!s)return;let e=document.body.style.overflow;document.body.style.overflow=`hidden`,_.current?.focus();let t=e=>{if(e.key===`Escape`){e.preventDefault(),y();return}if(e.key!==`Tab`||!v.current)return;let t=Array.from(v.current.querySelectorAll(f));if(t.length===0)return;let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())};return document.addEventListener(`keydown`,t),()=>{document.body.style.overflow=e,document.removeEventListener(`keydown`,t)}},[y,s]),(0,u.jsxs)(`div`,{className:`mobile-navigation`,children:[(0,u.jsxs)(`button`,{className:`mobile-menu-trigger`,type:`button`,"aria-label":`ÐÑкÑÑÑÑ Ð¼ÐµÐ½Ñ`,"aria-expanded":s,"aria-controls":`mobile-site-navigation`,ref:g,onClick:()=>p(!0),children:[(0,u.jsx)(`span`,{}),(0,u.jsx)(`span`,{}),(0,u.jsx)(`span`,{})]}),s&&(0,u.jsx)(`div`,{className:`mobile-nav-overlay`,role:`presentation`,children:(0,u.jsxs)(`div`,{className:`mobile-nav-dialog`,id:`mobile-site-navigation`,role:`dialog`,"aria-modal":`true`,"aria-label":`ÐÐµÐ½Ñ ÑайÑа`,ref:v,children:[(0,u.jsxs)(`div`,{className:`mobile-nav-top`,children:[(0,u.jsx)(`span`,{className:`mobile-nav-wordmark`,children:`ÐУТÐÐÐÐÐ Ð`}),(0,u.jsx)(`button`,{className:`mobile-nav-close`,type:`button`,"aria-label":`ÐакÑÑÑÑ Ð¼ÐµÐ½Ñ`,ref:_,onClick:y,children:`Ã`})]}),(0,u.jsxs)(`div`,{className:`mobile-nav-level mobile-nav-level-main`,children:[(0,u.jsx)(`p`,{className:`mobile-nav-eyebrow`,children:`ÐÐÐÐ ÐÐÐÐÐÐЯ РУСÐУÐÐ`}),(0,u.jsx)(`nav`,{"aria-label":`ÐобилÑÐ½Ð°Ñ Ð½Ð°Ð²Ð¸Ð³Ð°ÑиÑ`,children:n.map(e=>{let n=!!e.groups?.length,r=e.id===t,a=e.id===m;if(n){let t=[`mobile-nav-item`,r?`is-active`:``,e.status===`planned`?`is-planned-section`:``].filter(Boolean).join(` `);return(0,u.jsxs)(`div`,{className:`mobile-nav-accordion`,children:[(0,u.jsxs)(`button`,{className:t,type:`button`,"aria-expanded":a,"aria-controls":`mobile-nav-panel-${e.id}`,onClick:()=>h(a?null:e.id),children:[(0,u.jsx)(`span`,{children:e.label}),(0,u.jsx)(`span`,{className:`mobile-nav-accordion-mark`,"aria-hidden":`true`,children:`â`})]}),a&&(0,u.jsx)(d,{item:e,panelId:`mobile-nav-panel-${e.id}`,onNavigate:y})]},e.id)}return e.status===`active`&&e.href?(0,u.jsxs)(i,{className:r?`mobile-nav-item mobile-nav-direct is-active`:`mobile-nav-item mobile-nav-direct`,href:e.href,"aria-current":r?`page`:void 0,onClick:y,children:[(0,u.jsx)(`span`,{children:e.label}),(0,u.jsx)(`span`,{"aria-hidden":`true`,children:`â`})]},e.id):(0,u.jsx)(`span`,{className:`mobile-nav-item navigation-planned`,"data-nosnippet"
1:!0,children:(0,u.jsx)(`span`,{children:e.label})},e.id)})})]}),(0,u.jsx)(`div`,{className:`mobile-nav-bottom`,children:(0,u.jsx)(c,{mobile:!0,onNavigate:y})})]})})]})}export{p as MobileNavigation};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.