PageSourceSearch

https://www.laakeri-center.fi/_nuxt/CB_EDCuW.js

js laakeri-center.fi collected 2026-09-30 20:31:18 UTC 4,810 bytes, 1 lines download raw bytes

1import{z as A,a as B,k as d,m as y,t as C,j as o,y as s,A as D,B as H,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 M,l as ne,O as oe,V as te,v as ae}from"./Du8bl5Fj.js";import{_ as U,i as se,j as re}from"./BjZguRZy.js";import{_ as V}from"./QWhcldM6.js";import{_ as ie}from"./XxJUwIaW.js";import le from"./DhR73H7h.js";import ce from"./CaC6QLp9.js";const pe={href:"#main-content",class:"skip-link"},ke=A({__name:"skipLink",setup($){const{t:i,te:p}=B(),u=s(()=>p("v1.views.skipToContent")?i("v1.views.skipToContent"):"Skip to content");return(l,g)=>(d(),y("a",pe,C(o(u)),1))}}),ue=[{name:"html-div",props:{id:"top-row"},children:[{name:"html-div",props:{class:"container px-0 p-lg-2"},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:"AppHeaderActionList",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=A({__name:"header",setup($){const i=D(H,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 _=U,v=V;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:"AppFooterNavigation",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"},Ae=A({__name:"footer",setup($){return(i,p)=>{const u=U,l=V;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"},$e=A({__name:"mobileNavigation",setup($){const{locale:i,t:p,te:u}=B(),l=J(),g=s(()=>u("v1.views.navigation.main")?p("v1.views.navigation.main"):"Main navigation"),{ariaCurrent:w}=se(),c=D(H),b=Q(),{groupNavigation:_,pageHierarchy:v,showMobileNavigation:x}=X(b),k=s(()=>parseInt(c?.value?.navigation_mobile_type??2)),j=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=>M(x)?x.value=a:null),header:o(g),position:o(j)},ee({default:f(()=>[m(N,{"expanded-keys":o(h),"onUpdate:expandedKeys":e[0]||(e[0]=a=>M(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(C(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}])},C(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,Ae as b,$e 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.