1import{z as C,a as M,k as d,m as y,t as $,j as o,y as s,A as B,B as D,o as W,b0 as q,n as E,x as m,f,r as L,M as J,be as Q,L as X,N as Z,e as T,b5 as ee,T as H,l as ne,O as oe,V as te,v as ae}from"./mEzNQUA2.js";import{_ as j,i as se,j as re}from"./BEtAZ_bT.js";import{_ as U}from"./BEmFJmEB.js";import{_ as ie}from"./C07Bvf6I.js";import le from"./DERje9i4.js";import ce from"./zKerzS7h.js";const pe={href:"#main-content",class:"skip-link"},ke=C({__name:"skipLink",setup(A){const{t:i,te:p}=M(),u=s(()=>p("v1.views.skipToContent")?i("v1.views.skipToContent"):"Skip to content");return(l,g)=>(d(),y("a",pe,$(o(u)),1))}}),ue=[{name:"html-div",props:{id:"top-top-row"},children:[{name:"html-div",props:{class:"container-fluid d-flex justify-content-between p-2"},children:[{name:"CustomHeaderLinks",props:{}}]}]},{name:"html-div",props:{id:"top-row"},children:[{name:"html-div",props:{class:"container px-0 p-lg-3"},children:[{name:"html-nav",props:{class:"navbar navbar-expand-lg px-0 p-sm-3","aria-label-translation-key":"v1.views.navigation.header","aria-label":"Yläpalkin toiminnot"},children:[{name:"AppHeaderLogo",props:{}},{name:"SearchInput",props:{}},{name:"CustomHeaderShoppingCart",props:{}}]}]}]},{name:"html-div",props:{id:"bottom-row",class:"d-none d-sm-block"},children:[{name:"AppHeaderNavigation",props:{}}]}],de=["data-header-style","data-header-mobile-logo","data-header-mobile-user-actions"],Ne=C({__name:"header",setup(A){const i=B(D,null),p=s(()=>i?.value?.header_style??"0"),u=s(()=>i?.value?.header_mobile_logo_own_row??!1),l=s(()=>i?.value?.header_mobile_user_actions_in_drawer??!1),g=L(!0),w=L(0);if(p.value==="2"){const c=()=>{const b=Math.max(window.scrollY,0),_=b<w.value,v=w.value<100;g.value=_||v,w.value=b};W(()=>{window.addEventListener("scroll",c)}),q(()=>{window.removeEventListener("scroll",c)})}return(c,b)=>{const _=j,v=U;return d(),y("header",{class:E(o(g)?"show-header":"hide-header"),"data-header-style":o(p),"data-header-mobile-logo":o(u)?"own-row":null,"data-header-mobile-user-actions":o(l)?"drawer":null},[m(v,null,{default:f(()=>[m(_,{content:o(ue)},null,8,["content"])]),_:1})],10,de)}}}),me=[{name:"html-div",props:{class:"container pt-5 pb-2"},children:[{name:"CustomFooterNavigation",props:{class:"container px-0 px-lg-3"}},{name:"html-div",props:{id:"footer-legal",class:"row d-flex justify-content-between align-items-center no-gutters pt-3"},children:[{name:"AppFooterDisclaimer",props:{}},{name:"html-div",props:{id:"powered",class:"col-12 text-center"},children:[{name:"AppFooterPowered",props:{}}]}]}]}],_e={class:"d-print-none"},Ce=C({__name:"footer",setup(A){return(i,p)=>{const u=j,l=U;return d(),y("footer",_e,[m(l,null,{default:f(()=>[m(u,{content:o(me)},null,8,["content"])]),_:1})])}}}),ve={class:"d-flex align-items-center cursor-pointer"},he={key:2,class:"px-2 py-2 cursor-pointer"},Ae=C({__name:"mobileNavigation",setup(A){const{locale:i,t:p,te:u}=M(),l=J(),g=s(()=>u("v1.views.navigation.main")?p("v1.views.navigation.main"):"Main navigation"),{ariaCurrent:w}=se(),c=B(D),b=Q(),{groupNavigation:_,pageHierarchy:v,showMobileNavigation:x}=X(b),k=s(()=>parseInt(c?.value?.navigation_mobile_type??2)),V=s(()=>c?.value?.navigation_mobile_position??"right"),R=s(()=>c?.value?.prevent_product_group_toplevel_navigation??!1),Y=s(()=>c?.value?.header_mobile_user_actions_in_drawer??!1),F=s(()=>(_.value?.nodes?.length??0)>0&&(k.value===0||k.value===2)),K=s(()=>(v.value?.nodes?.length??0)>0&&(k.value===1||k.value===2)),I=s(()=>{const r=[];if(F.value){const e=S(_.value.nodes,R.value);r.push(...e)}if(K.value){const e=S(v.value.nodes,!1);r.push(...e)}return r}),S=(r,e)=>r.map(n=>{const t={key:n.url,label:n.title[i.value],url:e?void 0:n.url};return n.subnodes&&n.subnodes.length>0&&(t.items=S(n.subnodes,!1)),t}),h=L();Z(x,()=>{x.value&&l.path&&O(l.path)});const O=r=>{if(h.value?.[l.path])return;const e=[];if(P(I.value,r,e),e.length>0){const n={};for(const t of e)n[t]=!0;h.value=n}},P=(r,e,n)=>{for(const t of r){if(t.url===e)return n.push(t.url),!0;if(t.items){const N=P(t.items,e,n);if(N)return n.push(t.url),N}}return!1};return(r,e)=>{const n=ie,t=te,N=ce,z=re,G=le;return d(),T(G,{id:"navbar-offscreen",visible:o(x),"onUpdate:visible":e[2]||(e[2]=a=>H(x)?x.value=a:null),header:o(g),position:o(V)},ee({default:f(()=>[m(N,{"expanded-keys":o(h),"onUpdate:expandedKeys":e[0]||(e[0]=a=>H(h)?h.value=a:null),model:o(I),multiple:!1,onPanelOpen:e[1]||(e[1]=a=>h.value=null)},{item:f(({item:a})=>[ne("div",ve,[a.url?(d(),T(n,{key:0,to:a.url,class:"flex-grow-1 px-2 py-2","aria-current":o(w)(a.url)},{default:f(()=>[oe($(a.label),1)]),_:2},1032,["to","aria-current"])):(d(),y("div",{key:1,class:E(["px-4 py-2",{"flex-grow-1 px-2 py-2":(a.items?.length??0)>0}])},$(a.label),3)),a.items?(d(),y("span",he,[m(t,{icon:"fa fa-angle-down"})])):ae("",!0)])]),_:1},8,["expanded-keys","model"])]),_:2},[o(Y)?{name:"footer",fn:f(()=>[m(z,{variant:"mobile"})]),key:"0"}:void 0]),1032,["visible","header","position"])}}});
1export{ke as _,Ne as a,Ce as b,Ae as c};
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.