PageSourceSearch

https://nuxt-assets.jungfrau.ch/_nuxt/DoIjE2Ol.js

js jungfrau.ch collected 2026-09-24 17:44:40 UTC 14,550 bytes, 2 lines download raw bytes

1import{C as oe,ae,ag as pe,ah as he,S as fe,az as ge,Q as ve,aa as o,W as m,w as p,s as a,a9 as b,v as w,O as y,B as O,aC as Y,d as ee,A as ke,F as we,a3 as be,r as te,a1 as x,N as _e,a2 as ye,K as xe,y as Ce,a as Me,b as G,T as Te,E as Ee,X as Le,Z as He,M as Be,n as ne,ad as Ne}from"./Bjyv-kRd.js";const E=[{id:"jungfraujoch",coords:[7.98217,46.54682],category:"peak",elevation:3454,claim:"Top of Europe",bestseller:!0,path:"/jungfraujoch-top-of-europe"},{id:"first",coords:[8.0545,46.6605],category:"peak",elevation:2168,claim:"Top of Adventure",path:"/grindelwaldfirst"},{id:"maennlichen",coords:[7.942706443544795,46.61126245018505],category:"peak",elevation:2343,path:"/winterwandern/royal-walk-maennlichen"},{id:"schynigeplatte",coords:[7.9111,46.6524],category:"peak",elevation:1967,claim:"Top of Swiss Tradition",path:"/schynige-platte"},{id:"harderkulm",coords:[7.85164,46.69724],category:"peak",elevation:1322,claim:"Top of Interlaken",path:"/harder-kulm"},{id:"winteregg",coords:[7.89684,46.58129],category:"peak",elevation:1578,claim:"Top of Family",path:"/winteregg-muerren"},{id:"kleinescheidegg",coords:[7.96128,46.58528],category:"activity",elevation:2061,claim:"Top of Hiking",path:"/kleine-scheidegg"},{id:"eigergletscher",coords:[7.97565,46.57537],category:"activity",elevation:2320,path:"/anreise-bahnhoefe-parking/bahnhof-eigergletscher"},{id:"grindelwaldterminal",coords:[8.01886,46.62489],category:"activity",elevation:943,path:"/grindelwald-terminal"},{id:"grindelwald",coords:[8.03601,46.62396],category:"village",elevation:1034,path:"/grindelwald"},{id:"wengen",coords:[7.92171,46.60542],category:"village",elevation:1274,path:"/wengen"},{id:"muerren",coords:[7.8929,46.5588],category:"village",elevation:1638,path:"/muerren"},{id:"lauterbrunnen",coords:[7.90765,46.59568],category:"village",elevation:795,path:"/lauterbrunnen"},{id:"interlaken",coords:[7.86638,46.68387],category:"village",elevation:567,path:"/interlaken"}],je={key:0,class:"hm-title"},Ae={key:0,class:"hm-loading",role:"status"},$e={class:"hm-loading__text"},Ie={key:0,class:"hm-failed",role:"alert"},Ve={class:"hm-failed__text"},ze={key:1,class:"hm-hint",role:"status"},Se=["aria-label"],Re=["aria-label"],Pe={key:0,class:"hm-exit-hint",role:"status"},Ge=["title","aria-label","onClick"],Oe={class:"hm-edge__count"},Ue=["title","aria-label","disabled"],De={key:0,xmlns:"http://www.w3.org/2000/svg",class:"icon",viewBox:"0 0 24 24",fill:"currentColor"},Ke={key:1,class:"hm-btn-spinner","aria-hidden":"true"},We=["title","aria-label"],Fe=["title","aria-label"],Ze=["title","aria-label"],Qe=["title","aria-label"],Xe=["title","aria-label"],qe=["title","aria-label"],Je={key:0,xmlns:"http://www.w3.org/2000/svg",class:"icon",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Ye={key:1,xmlns:"http://www.w3.org/2000/svg",class:"icon",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},et=oe({__name:"ModHighlightsMap",props:{title:{default:null},height:{default:"large"},autoLocate:{type:Boolean,default:!1},full:{type:Boolean,default:!1}},setup(v){const _=v,{t:n,te:U,locale:N}=ae(),D=pe(),se=te(()=>`is-${_.height??"large"}`),j=x(null),h=x(!1);let c=null,C=[],L=null,M=null;function le(t){const e=`highlights.items.${t.id}`;return U(e)?n(e):t.id}const A=x([]);function K(){const t=c;if(!t){A.value=[];return}const e=t.getContainer().clientWidth,s=t.getContainer().clientHeight,d={left:0,right:0,top:0,bottom:0};for(const r of E){const u=t.project(r.coords),i={left:Math.max(0,-u.x),right:Math.max(0,u.x-e),top:Math.max(0,-u.y),bottom:Math.max(0,u.y-s)};let l=null,k=0;for(const f of["left","right","top","bottom"])i[f]>k&&(k=i[f],l=f);l&&d[l]++}A.value=["left","right","top","bottom"].filter(r=>d[r]>0).map(r=>({side:r,count:d[r]}))}function ie(t){const e=c;if(!e)return;const s=e.getContainer().clientWidth,d=e.getContainer().clientHeight;let r=null;for(const u of E){const i=e.project(u.coords),l={left:Math.max(0,-i.x),right:Math.max(0,i.x-s),top:Math.max(0,-i.y),bottom:Math.max(0,i.y-d)};let k=null,f=0;for(const P of["left","right","top","bottom"])l[P]>f&&(f=l[P],k=P);if(k!==t)continue;const g=Math.hypot(i.x-s/2,i.y-d/2);(!r||g<r.dist)&&(r={coords:u.coords,dist:g})}r&&e.easeTo({center:r.coords,duration:800})}function re(t){const e=le(t),s=document.createElement("a");s.className=`hm-marker is-${t.category}`,s.href=D(t.path),s.title=t.elevation?`${e} · ${t.elevation} m ü. M.`:e,s.setAttribute("aria-label",n("highlights.open_page",{name:e})),s.addEventListener("click",i=>{i.button!==0||i.metaKey||i.ctrlKey||i.shiftKey||i.altKey||(i.preventDefault(),He({event:"userinteraction",eventType:"default",eventAction:"Click",eventCategory:"highlights_map",eventLabel:e}),Be(D(t.path)))});const d=document.createElement("span");d.className="hm-marker__pill";
1const r=document.createElement("span");if(r.className="hm-marker__label",t.bestseller){const i=document.createElement("span");i.className="hm-marker__badge",i.textContent=n("highlights.bestseller"),d.appendChild(i)}const u=document.createElement("span");if(u.className="hm-marker__name",u.textContent=e,d.appendChild(u),t.claim||t.elevation){const i=document.createElement("span");if(i.className="hm-marker__meta",t.claim){const l=document.createElement("span");l.className="hm-marker__claim",l.textContent=t.claim,i.appendChild(l)}if(t.claim&&t.elevation){const l=document.createElement("span");l.className="hm-marker__sep",l.textContent="·",l.setAttribute("aria-hidden","true"),i.appendChild(l)}if(t.elevation){const l=document.createElement("span");l.className="hm-marker__alt",l.textContent=`${t.elevation} m`,i.appendChild(l)}d.appendChild(i)}return r.appendChild(d),s.appendChild(r),s}function W(){if(!(!c||!L)){for(const t of C)t.remove();C=[];for(const t of E){const e=re(t),s=new L({element:e,anchor:"bottom"}).setLngLat(t.coords).addTo(c);C.push(s)}}}function $(){if(!c||!M)return;const t=new M;for(const e of E)t.extend(e.coords);c.fitBounds(t,{padding:{top:Le(70,c.getPitch()),bottom:120,left:80,right:80},maxZoom:12.5,duration:600})}function F(t){c&&c.easeTo({bearing:c.getBearing()+t,duration:400})}function Z(t){if(!c)return;const e=Math.min(75,Math.max(0,c.getPitch()+t));c.easeTo({pitch:e,duration:400})}const I=x(!1);let T=null;function V(){h.value=!h.value,T&&clearTimeout(T),I.value=h.value,h.value&&(T=setTimeout(()=>{I.value=!1},3e3)),_e(()=>{c?.resize(),c?.setCooperativeGestures?.(!h.value),$()})}function Q(t){t.key==="Escape"&&h.value&&V()}function ce(t){const e=c;if(!e||!M)return;const s=E.map(r=>({h:r,d:(r.coords[0]-t[0])**2+(r.coords[1]-t[1])**2})).sort((r,u)=>r.d-u.d).slice(0,6),d=new M;d.extend(t);for(const r of s)d.extend(r.h.coords);e.fitBounds(d,{padding:{top:90,bottom:90,left:90,right:90},maxZoom:11.5,duration:900})}const{state:H,locate:z,reset:X,destroy:de}=he({getMap:()=>c,getMarkerCtor:()=>L,label:n("map.your_location"),keepView:!0,onLocated:t=>ce(t)}),S=te(()=>{switch(H.value){case"outside":return n("map.locate_outside_generic");case"denied":return n("map.locate_denied");case"error":return n("map.locate_error");default:return""}}),q=x(!1),B=x(!0),R=x(!1);function J(){B.value=!1,_.full?R.value=!0:q.value=!0}function ue(){ye({persistState:!1})}async function me(){if(!j.value)return;const t=await xe();if(!t)return J();const{Map:e,NavigationControl:s,AttributionControl:d,Marker:r,LngLatBounds:u}=t;L=r,M=u;const i=j.value;if(!i)return;const l=Ce(()=>new e({container:i,style:{version:8,sources:{swissimage:{type:"raster",tiles:["https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swissimage/default/current/3857/{z}/{x}/{y}.jpeg"],tileSize:256,attribution:'© <a href="https://www.swisstopo.admin.ch" target="_blank" rel="noopener">swisstopo</a>',maxzoom:18},[G]:Te},layers:[{id:"swissimage-layer",type:"raster",source:"swissimage",paint:{"raster-opacity":1}}]},center:[7.94,46.62],zoom:10.5,pitch:Me,bearing:0,attributionControl:!1,cooperativeGestures:!0,locale:{"CooperativeGesturesHandler.MobileHelpText":n("map.gesture_mobile"),"CooperativeGesturesHandler.MacHelpText":n("map.gesture_mac"),"CooperativeGesturesHandler.WindowsHelpText":n("map.gesture_windows")}}),"highlights");if(!l)return J();c=l,l.addControl(new s({showCompass:!0,visualizePitch:!0}),"top-left"),l.addControl(new d({compact:!1}),"bottom-right"),await new Promise(g=>l.on("load",()=>g())),B.value=!1,Ee(l),W(),$();const k=()=>{for(const g of C)try{g.setLngLat(g.getLngLat())}catch{}l.triggerRepaint()},f=g=>{g.sourceId===G&&(k(),l.isSourceLoaded(G)&&l.off("sourcedata",f))};l.on("sourcedata",f),k(),l.on("render",K),K(),window.addEventListener("keydown",Q),_.autoLocate&&z()}return fe(me),ge(N,()=>W()),ve(()=>{window.removeEventListener("keydown",Q),T&&clearTimeout(T);for(const t of C)t.remove();C=[],de();try{c?.remove()}catch{}}),(t,e)=>o(q)?w("",!0):(m(),p("section",{key:0,class:y(["mod-highlights-map",{"is-full":v.full}])},[a("div",{class:y(["hm-row",{"is-full":v.full}])}
1,[v.title?(m(),p("h2",je,b(v.title),1)):w("",!0),a("div",{class:y(["hm-map-wrapper",{"is-fullscreen":o(h),"is-full":v.full,"has-hint":!!o(S)}])},[a("div",{ref_key:"mapEl",ref:j,class:y(["hm-map",[v.full?"is-full":o(se),{"is-fullscreen":o(h)}]])},null,2),O(ee,{name:"hm-fade"},{default:Y(()=>[o(B)?(m(),p("div",Ae,[e[6]||(e[6]=a("span",{class:"hm-loading__spinner","aria-hidden":"true"},null,-1)),a("span",$e,b(o(n)("map.loading")),1)])):w("",!0)]),_:1}),o(R)?(m(),p("div",Ie,[a("p",Ve,b(o(n)("map.load_failed")),1),a("button",{type:"button",class:"hm-failed__retry",onClick:ue},b(o(n)("map.retry")),1)])):w("",!0),o(S)?(m(),p("p",ze,[ke(b(o(S))+" ",1),a("button",{type:"button",class:"hm-hint__close","aria-label":o(n)("map.hint_close"),onClick:e[0]||(e[0]=(...s)=>o(X)&&o(X)(...s))},"×",8,Se)])):w("",!0),o(h)?(m(),p("button",{key:2,type:"button",class:"hm-close","aria-label":o(n)("map.fullscreen_exit"),onClick:V},[...e[7]||(e[7]=[a("svg",{class:"hm-close__icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","aria-hidden":"true"},[a("path",{d:"M6 6l12 12M18 6L6 18"})],-1)])],8,Re)):w("",!0),O(ee,{name:"hm-fade"},{default:Y(()=>[o(I)?(m(),p("p",Pe,b(o(n)("map.fullscreen_exit_hint")),1)):w("",!0)]),_:1}),(m(!0),p(we,null,be(o(A),s=>(m(),p("button",{key:s.side,type:"button",class:y(["hm-edge",`is-${s.side}`]),title:o(n)("highlights.offscreen",{count:s.count}),"aria-label":o(n)("highlights.offscreen",{count:s.count}),onClick:d=>ie(s.side)},[e[8]||(e[8]=a("svg",{class:"hm-edge__arrow",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[a("path",{d:"M9 5l7 7-7 7"})],-1)),a("span",Oe,b(s.count),1)],10,Ge))),128)),!o(B)&&!o(R)?(m(),p("div",{key:3,class:y(["hm-control
1s",{"is-fullscreen":o(h)}])},[a("button",{class:y(["hm-btn",{"is-active":o(H)==="inside"}]),type:"button",title:o(n)("map.locate"),"aria-label":o(n)("map.locate"),disabled:o(H)==="locating",onClick:e[1]||(e[1]=(...s)=>o(z)&&o(z)(...s))},[o(H)!=="locating"?(m(),p("svg",De,[...e[9]||(e[9]=[a("path",{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0 0 13 3.06V1h-2v2.06A8.994 8.994 0 0 0 3.06 11H1v2h2.06A8.994 8.994 0 0 0 11 20.94V23h2v-2.06A8.994 8.994 0 0 0 20.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"},null,-1)])])):(m(),p("span",Ke))],10,Ue),a("button",{class:"hm-btn",type:"button",title:o(n)("map.fit_all"),"aria-label":o(n)("map.fit_all"),onClick:$},[...e[10]||(e[10]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",class:"icon",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8V3h5M16 3h5v5M3 16v5h5M16 21h5v-5"}),a("circle",{cx:"12",cy:"11",r:"2.5"}),a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 13.5V17"})],-1)])],8,We),a("button",{class:"hm-btn hm-btn--tilt",type:"button",title:o(n)("map.tilt_less"),"aria-label":o(n)("map.tilt_less"),onClick:e[2]||(e[2]=s=>Z(-15))},[...e[11]||(e[11]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",class:"icon",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"})],-1)])],8,Fe),a("button",{class:"hm-btn hm-btn--tilt",type:"button",title:o(n)("map.tilt_more"),"aria-label":o(n)("map.tilt_more"),onClick:e[3]||(e[3]=s=>Z(15))},[...e[12]||(e[12]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",class:"icon",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"})],-1)])],8,Ze),a("button",{class:"hm-btn hm-btn--rotate",type:"button",title:o(n)("map.rotate_left"),"aria-label":o(n)("map.rotate_left"),onClick:e[4]||(e[4]=s=>F(-45))},[...e[13]||(e[13]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",class:"icon",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 4l-5 5 5 5M4 9h12a4 4 0 014 4v2"})],-1)])],8,Qe),a("button",{class:"hm-btn hm-btn--rotate",type:"button",title:o(n)("map.rotate_right"),"aria-label":o(n)("map.rotate_right"),onClick:e[5]||(e[5]=s=>F(45))},[...e[14]||(e[14]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",class:"icon",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 4l5 5-5 5M20 9H8a4 4 0 00-4 4v2"})],-1)])],8,Xe),a("button",{class:"hm-btn",type:"button",title:o(h)?o(n)("map.fullscreen_exit"):o(n)("map.fullscreen"),"aria-label":o(h)?o(n)("map.fullscreen_exit"):o(n)("map.fullscreen"),onClick:V},[o(h)?(m(),p("svg",Ye,[...e[16]||(e[16]=[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 4H4v4M16 4h4v4M8 20H4v-4M16 20h4v-4"},null,-1)])])):(m(),p("svg",Je,[...e[15]||(e[15]=[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 8V4h4M16 4h4v4M4 16v4h4M16 20h4v-4"},null,-1)])]))],8,qe)],2)):w("",!0)],2)],2)],2))}}),tt=Object.assign(ne(et,[["__scopeId","data-v-cd156f38"]]),{__name:"ModulesModHighlightsMap"}),ot={class:"map-page"},at={class:"sr-only"},nt=oe({__name:"karte",setup(v){const{t:_}=ae();return Ne(()=>({title:_("highlights.page_title"),meta:[{name:"description",content:_("highlights.page_lead")}]})),(n,U)=>{const N=tt;return m(),p("section",ot,[a("h1",at,b(o(_)("highlights.page_title")),1),O(N,{"auto-locate":"",full:""})])}}}),lt=ne(nt,[["__scopeId","data-v-4adf7787"]]);export{lt as default};
2//# sourceMappingURL=DoIjE2Ol.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.