1var R=(L,_,r)=>new Promise((k,s)=>{var u=i=>{try{m(r.next(i))}catch(d){s(d)}},p=i=>{try{m(r.throw(i))}catch(d){s(d)}},m=i=>i.done?k(i.value):Promise.resolve(i.value).then(u,p);m((r=r.apply(L,_)).next())});import{_ as O}from"./COm9A-OE.js";import{_ as U,J as V,B as F,x as G,q as I,s as q,o as t,c as a,l as w,a as e,b as h,w as f,F as C,r as S,d as g,t as M,y as x,i as A,p as E,m as j}from"./Bof-CrE0.js";import{_ as J}from"./DBIndTRu.js";import{u as W}from"./BI4nEaCI.js";import"#entry";import"./I5vsAFHI.js";import"./IP-s4Jq9.js";const $={class:"mobile-header"},K={class:"mobile-menu__header"},P=["src"],Q={class:"mobile-menu__nav"},X={class:"mobile-menu__list"},Y={key:0,class:"mobile-menu__item mobile-menu__item--has-sub"},Z={class:"mobile-menu__item-wrapper"},ee=["onClick"],oe={key:0,class:"mobile-menu__submenu"},ne={key:1},le={class:"mobile-menu__actions"},se={class:"mobile-header__bar"},te=["src"],ae={class:"mobile-header__actions"},ie={__name:"MobileHeaderEn",setup(L){return R(this,null,function*(){let _,r;const k=V(),s=E(!1),u=E(null),p=E("https://rusgolf.ru/themes/agr/images/logo_en.png"),m=l=>{const o=l.target;o.src!=="/frontend/agr/svglogo.svg"&&(o.src="/frontend/agr/svglogo.svg")},i=()=>{window.location.href="/ru"},{data:d}=([_,r]=F(()=>W()),_=yield _,r(),_),T=j(()=>{var l;return(l=d.value)!=null&&l.barMenu?d.value.barMenu.map(o=>({title:o.title,href:o.href,sub:o.sub||o.children||null})):[]});function z(){s.value=!s.value,s.value?(document.body.style.overflow="hidden",B()):document.body.style.overflow=""}function B(){{const l=document.querySelector(".modal.active");l&&(l.classList.remove("active"),document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.classList.remove("modal-open"))}}function n(){s.value=!1,u.value=null,document.body.style.overflow=""}function D(l){u.value===l?u.value=null:u.value=l}function N(){window.innerWidth>=1024&&n()}return G(()=>k.path,()=>{n()}),I(()=>{window.addEventListener("resize",N)}),q(()=>{window.removeEventListener("resize",N),document.body.style.overflow=""}),(l,o)=>{const b=O;return t(),a("header",$,[s.value?(t(),a("div",{key:0,class:"mobile-menu-overlay",onClick:n})):w("",!0),e("div",{class:A(["mobile-menu",{"mobile-menu--open":s.value}])},[e("div",K,[o[1]||(o[1]=e("div",{class:"mobile-menu__header-bg"},[e("img",{src:J,alt:"",class:"mobile-menu__header-image",width:"375",height:"200"})],-1)),h(b,{to:"/en",class:"mobile-menu__logo",onClick:n},{default:f(()=>[e("img",{src:p.value,onError:m,alt:"Russian Golf Association",width:"200",height:"60"},null,40,P)]),_:1}),e("button",{class:"mobile-menu__close",onClick:n,"aria-label":"Close menu"},[...o[0]||(o[0]=[e("span",null,null,-1),e("span",null,null,-1)])])]),e("nav",Q,[e("ul",X,[(t(!0),a(C,null,S(T.value,(c,v)=>(t(),a(C,{key:v},[c.sub&&c.sub.length>0?(t(),a("li",Y,[e("div",Z,[h(b,{to:c.href,onClick:n,class:"mobile-menu__main-link"},{default:f(()=>[g(M(c.title),1)]),_:2},1032,["to"]),e("button",{class:"mobile-menu__toggle-sub",onClick:x(y=>D(v),["stop"]),"aria-label":"Toggle submenu"},[e("span",{class:A(["mobile-menu__arrow",{"mobile-menu__arrow--open":u.value===v}])},"âº",2)],8,ee)]),u.value===v?(t(),a("ul",oe,[(t(!0),a(C,null,S(c.sub,(y,H)=>(t(),a("li",{key:H},[h(b,{to:y.href,onClick:n},{default:f(()=>[g(M(y.title),1)]),_:2},1032,["to"])]))),128))])):w("",!0)])):(t(),a("li",ne,[h(b,{to:c.href,onClick:n},{default:f(()=>[g(M(c.title),1)]),_:2},1032,["to"])]))],64))),128))]),e("div",le,[e("a",{href:"https://hcp.rusgolf.ru/login",class:"mobile-menu__link",onClick:n},"My account"),e("a",{href:"https://en.studgolf.ru/",target:"_blank",rel:"noopener",class:"mobile-menu__link",onClick:n},"STUDENT GOLF"),e("a",{href:"https://rusada.ru/en/",target:"_blank",rel:"noopener",class:"mobile-menu__link",onClick:n},"RUSADA"),h(b,{to:"/en/contacts",class:"mobile-menu__link",onClick:n},{default:f(()=>[...o[2]||(o[2]=[g("Contact us",-1)])]),_:1})])])],2),e("div",se,[s.value?w("",!0):(t(),a("button",{key:0,class:"mobile-burger",onClick:z,"aria-label":"Open menu"},[...o[3]||(o[3]=[e("span",null,null,-1),e("span",null,null,-1),e("span",null,null,-1)])])),h(b,{to:"/en",class:"mobile-header__logo",onClick:n},{default:f(()=>[e("img",{src:p.value,onError:m,alt:"Russian Golf Association",width:"200",height:"60"},null,40,te)]),_:1}),e("div",ae,[e("a",{href:"/ru",class:"mobile-header__lang",onClick:x(i,["prevent"])},"Ð ÑÑ")])])])}})}},fe=Object.assign(U(ie,[["__scopeId","data-v-ab2e6796"]]),{__name:"MobileHeaderEn"});export{fe as default};
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.