PageSourceSearch

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

js jungfrau.ch collected 2026-09-24 17:44:38 UTC 6,119 bytes, 2 lines download raw bytes

1import{C as W,am as G,ag as K,ae as Q,aj as X,ak as Y,aB as ee,x as j,aA as x,ad as te,al as ae,aa as o,w as _,s as a,v,F as E,a3 as N,B as C,t as se,aC as oe,r as i,i as ne,g as re,f as le,ab as ie,a1 as ue,W as c,O as z,_ as ce,A as _e,a9 as de}from"./Bjyv-kRd.js";import{u as pe}from"./B14h8CKI.js";import{f as me}from"./DWPuRtbj.js";import{u as ve}from"./BlI-u1mh.js";import{s as ge,i as fe}from"./CBfkSXWW.js";const he={key:0,class:"layout_wrapper"},ye={key:0,class:"mod_gallery"},be={key:0,class:"pagination_button_container"},we={class:"list obj_ui_list row columns"},$e={key:1,class:"c-slide-indicator-container"},ke={class:"c-slide-indicator-dots"},xe=["aria-label","onClick"],Ce={class:"m-section-button"},Ae={class:"row"},Se={class:"columns small-centered small-20 medium-16"},Pe=W({__name:"[slug]",async setup(Be){let g,A;const M=G();K();const{locale:h,t:y}=Q(),P=i(()=>`/${h.value}${y("press_stream.all_url")}/`),{setEditUrl:T}=pe(),{setLocalizations:q,setPageTitle:I}=X(),b=i(()=>String(M.params.slug??"")),w=i(()=>String(h.value).split("-")[0]||"de"),{token:R,previewHeaders:D,withCacheBuster:H}=Y(),{data:S,error:O}=([g,A]=ee(()=>ie(()=>`news-${w.value}-${b.value}${R.value?"-preview":""}`,()=>$fetch(H(`/cp-api/news/${b.value}?site=${w.value}`),{headers:D.value}),{watch:[b,w]})),g=await g,A(),g),B=me(O.value,"News");if(B)throw j(B);if(!S.value)throw j({statusCode:404,statusMessage:"News not found",fatal:!0});const s=i(()=>S.value?.data??null);x(()=>T(s.value?.edit_url)),x(()=>q(s.value?.localizations)),x(()=>I(s.value?.title));const U=i(()=>{const e=s.value?.date;if(!e)return"";const t=String(e).match(/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/);if(!t)return e;const n=`${t[3]}.${t[2]}.${t[1]}`,r=t[4],l=t[5];if(r&&l&&(r!=="00"||l!=="00")){const f=y("press_stream.time_suffix"),m=f?`${r}:${l} ${f}`:`${r}:${l}`;return`${n}, ${m}`}return n}),V=i(()=>{const e=s.value?.category;return typeof e=="string"?e:e&&typeof e=="object"?e.value??e.key??"":""});function $(e){if(!e)return null;if(typeof e=="string")return{src:e,alt:""};if(Array.isArray(e)&&e.length)return $(e[0]);if(typeof e=="object"){const t=e.url??e.permalink??e.src??"";return t?{src:t,alt:e.alt??""}:null}return null}const k=i(()=>$(s.value?.hero_image)),d=i(()=>{const e=s.value?.gallery;return Array.isArray(e)&&e.length?e.map($).filter(t=>t!==null):k.value?[k.value]:[]}),p=ue(0);function Z(){const e=d.value.length;e&&(p.value=(p.value-1+e)%e)}function F(){const e=d.value.length;e&&(p.value=(p.value+1)%e)}const L=i(()=>(s.value?.body??[]).map((t,n)=>{if(t.type==="rich_text")return{id:`news-body-${n}`,type:"section_text",copy:t.text};if(t.type==="image"){const r=Array.isArray(t.image)?t.image[0]:t.image,l=r?.url??r?.src??r;return{id:`news-body-${n}`,type:"image_simple",src:l,caption:t.caption}}return t.type==="quote"?{id:`news-body-${n}`,type:"section_text",copy:`<blockquote><p>${t.quote}</p>${t.author?`<cite>${t.author}</cite>`:""}</blockquote>`}:null}).filter(Boolean));te({bodyAttrs:{class:"p-corporate"}});const J=ae();return ve(i(()=>{if(!s.value)return null;const e=String(s.value.title??""),t=ge(s.value.lead??s.value.summary??""),n=k.value?.src??"",r=J.href.split("?")[0],l=fe(s.value.date,90)?"noindex, follow":"index, follow";return{title:e,description:t,canonical:r,robots:l,og:{title:e,description:t,image:n,url:r,type:"article",site_name:"Jungfraujoch - Top of Europe"},twitter:{card:n?"summary_large_image":"summary",title:e,description:t,image:n},jsonLd:{"@context":"https://schema.org","@type":"NewsArticle",headline:e,...t?{description:t}:{},...n?{image:n}:{},...s.value.date?{datePublished:String(s.value.date)}:{},url:r,inLanguage:h.value,publisher:{"@type":"Organization",name:"Jungfraujoch - Top of Europe"}}}})),(e,t)=>{const n=ce,r=ne,l=re,f=le;return o(s)?(c(),_("div",he,[o(d).length?(c(),_("section",ye,[o(d).length>1?(c(),_("div",be,[a("div",{class:"row columns"},[a("div",{class:"obj_aspect_ratio var_16x9"},[a("div",null,[a("button",{class:"pagination_button var_prev",type:"button",onClick:Z},[...t[0]||(t[0]=[a("span",{class:"comp_button_circle var_hover"}
1,[a("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[a("path",{d:"M15.53 4.47a.75.75 0 0 1 0 1.06L9.06 12l6.47 6.47a.75.75 0 1 1-1.06 1.06l-7-7a.75.75 0 0 1 0-1.06l7-7a.75.75 0 0 1 1.06 0Z"})])],-1)])]),a("button",{class:"pagination_button var_next",type:"button",onClick:F},[...t[1]||(t[1]=[a("span",{class:"comp_button_circle var_hover"},[a("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[a("path",{d:"M8.47 4.47a.75.75 0 0 1 1.06 0l7 7a.75.75 0 0 1 0 1.06l-7 7a.75.75 0 1 1-1.06-1.06L14.94 12 8.47 5.53a.75.75 0 0 1 0-1.06Z"})])],-1)])])])])])])):v("",!0),a("ul",we,[(c(!0),_(E,null,N(o(d),(m,u)=>(c(),_("li",{key:u,class:z(["list_item obj_aspect_ratio var_16x9",{is_active:u===o(p)}])},[a("figure",null,[C(n,{"img-class":"img obj_full",src:m.src,alt:m.alt??"",loading:u===0?"eager":"lazy",fetchpriority:u===0?"high":"auto",sizes:"(max-width: 1200px) 95vw, 1140px",widths:[640,1024,1536],"max-width":1536},null,8,["src","alt","loading","fetchpriority"])])],2))),128))]),o(d).length>1?(c(),_("nav",$e,[a("ul",ke,[(c(!0),_(E,null,N(o(d),(m,u)=>(c(),_("li",{key:u,class:z({is_active:u===o(p)})},[a("button",{type:"button","aria-label":`Slide ${u+1}`,onClick:Le=>p.value=u},null,8,xe)],2))),128))])])):v("",!0)])):v("",!0),C(r,{title:o(s).title,copy:o(s).lead,date:o(U),category:o(V)},null,8,["title","copy","date","category"]),o(L).length?(c(),se(l,{key:1,modules:o(L)},null,8,["modules"])):v("",!0),a("section",Ce,[a("div",Ae,[a("div",Se,[C(f,{to:o(P),class:"comp_button var_white var_border_blue"},{default:oe(()=>[_e(de(o(y)("press_stream.all_link"))+" ",1),t[2]||(t[2]=a("span",{class:"icon","aria-hidden":"true"},[a("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor"},[a("path",{d:"M3 12a.75.75 0 0 1 .75-.75h13.69l-4.97-4.97a.75.75 0 1 1 1.06-1.06l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25a.75.75 0 1 1-1.06-1.06l4.97-4.97H3.75A.75.75 0 0 1 3 12Z"})])],-1))]),_:1},8,["to"])])])])])):v("",!0)}}});export{Pe as default};
2//# sourceMappingURL=DBLpEkOM.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.