PageSourceSearch

https://www.klosters.ch/_nuxt/C_xyGt4h.js

js klosters.ch collected 2026-10-02 07:58:52 UTC 1,633 bytes, 1 lines download raw bytes

1import{d as h,r as i,j as A,o as g,k as L,l as f,f as u,F as M,m as T,i as s,p as k,q as v,e as E,a as x,t as R,v as V,w,u as S,c as y,g as N,b as $,h as d,M as C}from"./CqN3j-ir.js";import{u as D,a as B,b as H,c as O,_ as U}from"./CXpasbNu.js";import{$ as j,_ as F}from"./BR8E01q6.js";import{u as K,a as Y}from"./Dq4NEOGA.js";import"./_RwYmhS1.js";import"./-h2h3NH1.js";const q=h({__name:"index",setup(I){i(null);const n=A(),o=i(0),r=i(null),c=async()=>{const t=`${v().public.apiUrl}fileadmin/davos/extensions/spot_sanity/json/${n.currentLang}/alert-message.json`,e=await $fetch(t);e&&(e!=null&&e.length)&&(r.value=e.map(a=>({info:a,open:!0})),o.value++)};return g(()=>{setTimeout(()=>{c(),L(c,3e5)},2e3)}),(l,t)=>(u(),f("div",{class:k(s(j).info_wrapper)},[(u(!0),f(M,null,T(s(r),e=>(u(),E(F,{key:e.info.title,modelValue:e.open,"onUpdate:modelValue":a=>e.open=a,info:e.info},null,8,["modelValue","onUpdate:modelValue","info"]))),128))],2))}}),Z=h({__name:"index",async setup(I){var _;let n,o;const r=x().path,{isKlosters:c}=R(),{locale:l}=V(),t=l.value==="en"?"/en/klosters":"/klosters",{api:e}=$(),[a]=([n,o]=w(()=>Promise.all([c?e.page(t):e.page(r)])),n=await n,o(),n),p=i(null),{$lenis:m}=S();return D(p.value),B(a.i18n),H(O({data:a.meta})),y({link:(_=a.meta)!=null&&_.canonical?[{rel:"canonical",href:a.meta.canonical}]:[]}),K(a.i18n),Y(a.schemaOrg),g(()=>{m==null||m.scrollTo(0,{immediate:!0})}),(z,P)=>(u(),E(s(C),{ref_key:"page",ref:p,class:"main-wrapper"},{default:N(()=>[d(s(q)),d(s(U),{data:s(a).content,"data-hero":s(a),"use-hero":!1,"use-hero-home":!0},null,8,["data","data-hero"])]),_:1},512))}});export{Z 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.