1import{_ as N}from"./n7btjmDU.js";import{d as V}from"./BNw9s6LR.js";import{_ as z}from"./CR93wHPv.js";import{_ as D}from"./Do_BUOR_.js";import{_ as E}from"./k_3-4Fj0.js";import{_ as F}from"./Del9T5Sj.js";import{_ as L}from"./l-Dj3w7m.js";import{_ as j}from"./DKgJiPfy.js";import{K as q,i as d,h as H,o as r,c as m,d as e,F as $,m as k,k as w,j as c,l as I,t as K,b as a,z as g,e as t,x as G,D as y,q as i}from"./Cs01i0Be.js";const J={class:"cn-header__top"},M={class:"container"},O={class:"cn-header__top-block"},P={class:"cn-header__to-main"},Q={class:"cn-header__search-modal"},R={class:"cn-header__locale-controls"},U={class:"container"},W={class:"cn-header__bottom-block"},ce=q({__name:"AppHeader",props:{menuTopbar:{},menu:{}},setup(u){const f=i(),h=i(),l=i(!0),_=i(null);let p=null;p=window;const{y:B,isScrolling:x,directions:v}=V(p);d(()=>v.bottom,s=>{s===!0&&(l.value=!1)}),d(()=>v.top,s=>{s===!0&&(l.value=!0)}),d(x,s=>{s===!0&&h.value?.close()});const C=H(()=>B.value===0);return(s,n)=>{const T=N;return r(),m("div",{class:y(["cn-header",{"cn-header--top-block-hide":!l.value}])},[e("div",J,[e("div",null,[e("div",M,[e("div",O,[e("div",P,[(r(!0),m($,null,k(u.menuTopbar,o=>(r(),w(a(g),{key:o.id||o.url,to:o.url},{default:c(()=>[I(K(o.name),1)]),_:2},1032,["to"]))),128))]),e("button",{class:"cn-header__search","aria-label":"search",onClick:n[0]||(n[0]=o=>_.value.open())},[t(a(G),{name:"search"})]),t(a(j),{ref_key:"modalSearch",ref:_,width:"980px"},{default:c(()=>[e("div",Q,[t(a(D),{onSearch:n[1]||(n[1]=o=>_.value.close())})])]),_:1},512),e("div",R,[t(T,{ref_key:"locationSwitcher",ref:h},null,512),t(a(z))])])])])]),e("div",{ref_key:"headerBottom",ref:f,class:"cn-header__bottom"},[e("div",U,[e("div",W,[e("div",{class:y(["cn-header__logo",{"cn-header__logo--bigger":C.value}])},[t(a(g),{to:"/","aria-label":"Canyon main page"},{default:c(()=>[t(a(E))]),_:1})],2),t(a(L),{"header-ref":f.value},{default:c(({activeItem:o,setActiveItem:A})=>[(r(!0),m($,null,k(u.menu,(b,S)=>(r(),w(a(F),{key:b.id,"menu-item":b,"is-active":o===S,onSetActiveItem:X=>A(S)},null,8,["menu-item","is-active","onSetActiveItem"]))),128))]),_:1},8,["header-ref"])])])],512)],2)}}});export{ce as _}; 2//# sourceMappingURL=BCgDSh7m.js.map
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.