PageSourceSearch

https://vierumaki.fi/_nuxt/Cr65elFN2.js

js vierumaki.fi collected 2026-10-03 22:58:37 UTC 7,474 bytes, 1 lines download raw bytes

1import{n as e}from"./hePW80VL.js";import{a as t}from"./BXUjck09.js";import{D as n,E as r,Ht as i,On as a,Qn as o,_ as s,b as c,bt as l,ft as u,g as d,mt as f,nr as p,o as m,qt as h,tt as ee,u as te,v as g,vn as _,y as v}from"./Ib1jYPSS.js";import{C as y}from"./BUba7gzX.js";import{d as b,p as ne}from"./f6AqWj6z.js";import{r as x}from"./C7NngeKP.js";import{t as re}from"./-axpIqae.js";import{a as S}from"./DkJnlnrX.js";import{n as C}from"./CkMz2SGH2.js";import{t as ie}from"./Ce5aSVvf2.js";import{t as ae}from"./aROhwPkD2.js";import{t as w}from"./DUVZtbnt2.js";import{t as oe}from"./CCLlHy042.js";import{i as T}from"./Do0y-QGb2.js";import{t as se}from"./BRRGhqNZ2.js";import{t as E}from"./BDNMzG2s.js";import{n as ce,r as le,t as D}from"./IaLj4BTQ2.js";var O=x(`/vierumaki-logo.svg`),k=e({default:()=>M}),ue={class:`menu-label`},de=[`aria-expanded`,`aria-hidden`],fe={class:`menu-header`},pe=[`inert`],me={class:`close-label`},he={class:`inner-content`},ge={class:`menu-item-grid`},_e={class:`list level0-list`},ve=[`tabindex`,`onClick`,`onKeydown`],ye=[`inert`],be=[`inert`],xe={key:0},Se={class:`item-languages`},A=[`tabindex`,`onKeydown`],j=[`tabindex`,`onClick`,`onKeydown`],Ce={key:0,class:`lang-select`},we={class:`inner-content`},Te=[`tabindex`],Ee={class:`list language`},De={class:`back-element`},Oe={class:`functions`},ke={key:0,class:`logged-in`},Ae=[`tabindex`],je=[`tabindex`],Me=[`tabindex`],M=E({__name:`MobileNav`,setup(e){let{$i18n:x,$paths:E}=t(),k=oe(),M=w(),Ne=ae(),Pe=se(),{loggedIn:N}=S(Ne),{searchOpen:Fe,menuOpen:P,navOne:Ie,navTwo:F,navTwoActive:I,localizedPagePaths:L,ready:Le}=S(k),{isHomeOwner:Re}=S(M),{logout:ze}=Pe,{toggleMenuOpen:R,setNavTwoActive:z,toggleLanguage:Be}=k,B=_(!1),V=_(null),H=_(null),Ve=ne(),He=d(()=>{let[e]=`${E.getPath(`login`)}`.split(`/`).reverse();return Ie.value.filter(t=>!t.url.includes(e))}),U=d(()=>x.locale.value===`fi`?`en`:`fi`);function W(){if(R(),P.value){let e=document.querySelector(`body`),t=document.querySelector(`.mobile-nav`);ce(e),le(t),ee(()=>{H.value?.focus()})}}function G(){z([]),R(),B.value=!1,V.value?.focus(),D()}function K(e){switch(e){case`logout`:ze();break;case`login`:b(E.getPath(`login`));break;case`profile`:b(E.getPath(`profile`))}R()}function q(e,t){t?(b(t),R(),z([])):e===`language`?J():z(e)}function J(){B.value=!B.value}function Y(e){x.locale.value=e;let t=L.value&&L.value[e]?.startsWith(`/`)?``:`/`;e===`sv`||e===`en`?L.value[e]===`/`?b(`/${e}`):L.value[e]?b(`/${e}${t}${L.value[e]}`):b(`/${e}`):L.value[e]===`/`?b(`/`):b(`${t}${L.value[e]}`),G(),Be()}function X(e,t){q(e,t);let n=e??[];switch(n.length){case 1:document.querySelector(`.mobile-nav .level1-list-${n[0]} li:nth-child(2) a`)?.focus();break;case 0:document.querySelector(`.mobile-nav .level0-list li:first-child a`)?.focus()}}function Z(e,t){let n=t??[];if(e.target.classList.contains(`back`)&&e.shiftKey||e.target.classList.contains(`last`)&&!e.shiftKey)switch(e.preventDefault(),n.length){case 2:z([n[0]]),document.querySelector(`.mobile-nav .level1-list .item-${n[1]} a`)?.focus();break;case 1:z([]),document.querySelector(`.mobile-nav .level0-list .item-${n[0]} a`)?.focus()}}function Q(e){(e.target.classList.contains(`close`)&&e.shiftKey||!e.target.classList.contains(`close`)&&!e.shiftKey)&&(e.preventDefault(),G())}function $(e){return typeof e.children!=`object`&&!e.url}return u(()=>{D()}),i(()=>
1Ve.path,()=>{D()}),(e,t)=>{let i=re,u=ie;return f(),c(`div`,{class:o([`menu-control`,{hidden:a(Fe)}])},[s(`button`,{ref_key:`menuLink`,ref:V,role:`button`,class:`menu-link`,tabindex:0,onClick:W,onKeydown:y(W,[`enter`])},[n(a(C),{code:`menu`,size:`xl`}),s(`span`,ue,p(e.$t(`navigation.menu`)),1)],544),n(u,null,{default:h(()=>[a(Le)?(f(),g(te,{key:0,to:`.mobile-nav`},[s(`div`,{ref_key:`menuContent`,ref:H,class:o([`menu-content`,{open:a(P)}]),"aria-expanded":a(P),"aria-hidden":!a(P)},[s(`div`,fe,[t[19]||=s(`div`,{class:`logo`},[s(`img`,{class:`black`,alt:`Vierumäki`,src:O})],-1),s(`button`,{role:`button`,class:`toggle-close`,inert:!a(P),onClick:G,onKeydown:[y(G,[`enter`]),t[0]||=y(e=>Q(e),[`tab`])]},[n(a(C),{code:`close`,size:`l`}),s(`span`,me,p(e.$t(`navigation.close`)),1)],40,pe)]),s(`div`,he,[s(`div`,ge,[s(`div`,{class:o([`level0`,{contracted:typeof a(I)[0]==`string`}])},[s(`ul`,_e,[(f(!0),c(m,null,l(a(F),e=>(f(),c(`li`,{key:`item-${e.id}`,class:o({[`item-${e.id}`]:!0})},[$(e)?v(``,!0):(f(),c(`button`,{key:0,tabindex:a(P)?0:-1,onClick:t=>q([e.id],a(T).parseUrl(e.url)),onKeydown:y(t=>X([e.id],a(T).parseUrl(e.url)),[`enter`])},[s(`span`,null,p(e.title),1),e.children?(f(),g(a(C),{key:0,code:`chevron-right`})):v(``,!0)],40,ve))],2))),128))]),s(`ul`,{class:`base-level-items`,inert:!a(P)},[(f(!0),c(m,null,l(a(He),(e,o)=>(f(),c(`li`,{key:`item-${o}`,inert:!a(P)||a(I).length>0},[n(i,{to:e.url?e.url:a(E).getPath(`landingPage`),onClick:t[1]||=e=>a(R)()},{default:h(()=>[r(p(e.title),1)]),_:2},1032,[`to`])],8,be))),128)),a(Re)?(f(),c(`li`,xe,[s(`button`,{onClick:t[2]||=e=>{a(b)(`/homeowner`),a(R)()},onKeydown:t[3]||=y(e=>{a(b)(`/homeowner`),a(R)()},[`enter`])},p(e.$t(`homeowner.pageTitle`)),33)])):v(``,!0),s(`li`,Se,[s(`button`,{onClick:t[4]||=e=>Y(a(U)),onKeydown:t[5]||=y(e=>Y(a(U)),[`enter`])},[s(`span`,null,p(a(x).t(`lang.pathText`)),1)],32)])],8,ye)],2),(f(!0),c(m,null,l(a(F),r=>(f(),c(`div`,{key:`level1-root-${r.id}`,class:o([`level1`,{open:a(I)[0]===r.id,contracted:typeof a(I)[1]==`string`}])},[r.children&&r.children.length?(f(),c(`ul`,{key:0,class:o([`list level1-list`,{[`level1-list-${r.id}`]:!0}])},[s(`li`,null,[s(`button`,{class:`back`,tabindex:a(I)[0]===r.id&&a(I).length===1?0:-1,onClick:t[6]||=e=>q([]),onKeydown:[t[7]||=y(e=>X([]),[`enter`]),y(e=>Z(e,[r.id]),[`tab`])]},[n(a(C),{code:`chevron-left`}),s(`span`,null,p(e.$t(`navigation.back`)),1)],40,A)]),(f(!0),c(m,null,l(r.children,(e,t)=>(f(),c(`li`,{key:`item2-${e.id}`,class:o({[`item-${e.id}`]:!0})},[$(e)?v(``,!0):(f(),c(`button`,{key:0,class:o({"is-link":e.url,last:t===r.children.length-1}),tabindex:a(I)[0]===r.id&&a(I).length===1?0:-1,onClick:t=>q([r.id],a(T).parseUrl(e.url)),onKeydown:[y(t=>X([r.id],a(T).parseUrl(e.url)),[`enter`]),y(e=>Z(e,[r.id]),[`tab`])]},[s(`span`,null,p(e.title),1)],42,j))],2))),128))],2)):v(``,!0)],2))),128)),a(B)?(f(),c(`div`,Ce,[s(`div`,we,[s(`button`,{role:`button`,class:`icon close`,tabindex:a(P)?0:-1,onClick:G,onKeydown:[y(G,[`enter`]),t[8]||=y(e=>Q(e),[`tab`])]},[n(a(C),{code:`close`})],40,Te),s(`ul`,Ee,[s(`li`,De,[s(`button`,{class:`back`,tabindex:0,onClick:t[9]||=e=>J(),onKeydown:t[10]||=y(e=>J(),[`enter`])},[n(a(C),{code:`chevron-left`}),s(`span`,null,p(e.$t(`lang.choose`)),1)],32)])])])])):v(``,!0)])]),s(`div`,Oe,[a(N)?(f(),c(`div`,ke,[s(`button`,{tabindex:a(P)?0:-1,class:`btn btn-primary btn-full-width`,onClick:t[11]||=e=>K(`profile`),onKeydown:t[12]||=y(e=>K(`profile`),[`enter`])},p(e.$t(`navigation.profile`)),41,Ae),s(`button`,{tabindex:a(P)?0:-1,class:`btn btn-secondary btn-full-width`,onClick:t[13]||=e=>K(`logout`),onKeydown:[t[14]||=y(e=>K(`logout`),[`enter`]),t[15]||=y(e=>Q(e),[`tab`])]},p(e.$t(`navigation.logout`)),41,je)])):v(``,!0),a(N)?v(``,!0):(f(),c(`button`,{key:1,tabindex:a(P)?0:-1,class:`btn btn-primary btn-full-width login`,onClick:t[16]||=e=>K(`login`),onKeydown:[t[17]||=y(e=>K(`login`),[`enter`]),t[18]||=y(e=>Q(e),[`tab`])]},[n(a(C),{code:`user`,size:`l`,class:`white`}),s(`span`,null,p(e.$t(`navigation.loginOrRegister`)),1)],40,Me))])],10,de)])):v(``,!0)]),_:1})],2)}}},[[`__scopeId`,`data-v-8ba6410a`]]);export{k as n,O as r,M as t};

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.