1import{ai as C,i as v,N as r,W as h,a as s,o,I as y,d as g,F as N,C as V,f as u,L as $,b as i,l as w,m as x,M as B}from"./M11_3F0Z.js";const I=["aria-label"],A={__name:"Menu",props:{isVisible:Boolean,data:{type:Object,default:null},location:{type:String,default:"header"}},emits:["onCloseMenu"],setup(t,{emit:c}){const m=C(),d=v(),l=t,p=r(()=>l.data.menuItems.nodes?l.data.menuItems.nodes.map(e=>({...e,label:e.title})):[]),_=r(()=>d?.$viewport?.width?.value>900),f=c;return h(()=>m.path,(e,n)=>{e!=n&&f("onCloseMenu")}),(e,n)=>{const k=w,b=x;return o(),s("nav",{class:B(["Menu",{"Menu--open":t.isVisible}])},[t.data.menuItems.nodes?(o(!0),s(N,{key:0},V(i(p),(a,M)=>(o(),s("div",{key:"link-"+M,class:"Menu__link-wrapper"},[u(k,$({ref_for:!0},a,{class:"Menu__link",tracking:{event:"menu",click_url:a.url,click_text:a.title,menu_item_parent:"self",menu_style:i(_)?"desktop":"mobile",nav_type:t.location||"header"}}),null,16,["tracking"])]))),128)):y("",!0),g("button",{class:"btn-close","aria-label":e.$translate("header_menu_close_label"),onClick:n[0]||(n[0]=a=>e.$emit("onCloseMenu"))},[u(b)],8,I)],2)}}};export{A 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.