1import{_ as L}from"./CXG6jmRM.js";import{C as N,ad as M,am as S,aB as A,S as J,w as m,s as t,a9 as r,aa as o,v as P,A as u,z as b,r as i,a1 as _,ab as j,W as g}from"./CmPFTg3m.js";const D=["data-ready"],O={class:"cert-body"},R={class:"cert-title"},$={class:"cert-copy"},B={class:"cert-name-row"},F={key:0,class:"cert-photo"},U=["src"],V={class:"cert-name"},G={class:"cert-copy"},I={class:"cert-peak"},W={class:"cert-height"},H={class:"cert-copy"},Z={class:"cert-stamps"},z={class:"cert-badge"},X={class:"cert-badge-name"},K={class:"cert-badge-date"},Q={class:"cert-badge-slogan"},Y={class:"cert-stamp","aria-hidden":"true"},tt={viewBox:"0 0 200 200",class:"cert-stamp__svg",xmlns:"http://www.w3.org/2000/svg"},et={class:"cert-stamp__ink",filter:"url(#cert-stamp-ink)"},ot={class:"cert-stamp__curve",fill:"currentColor"},st={href:"#cert-stamp-top",startOffset:"50%","text-anchor":"middle"},rt={class:"cert-stamp__curve cert-stamp__curve--bottom",fill:"currentColor"},at={href:"#cert-stamp-bottom",startOffset:"50%","text-anchor":"middle"},nt={x:"100",y:"118",class:"cert-stamp__date","text-anchor":"middle",fill:"currentColor"},it={class:"cert-foot"},ct=["src"],ut=N({__name:"print",async setup(lt){let d,y;M({title:"Peak Certificate",meta:[{name:"robots",content:"noindex, nofollow"}],link:[{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:""},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap"}]});const a=S(),C=i(()=>{const s=String(a.query.locale??"de").toLowerCase();return s==="en"||s==="fr"?s:"de"}),w=i(()=>String(a.query.firstName??"")),q=i(()=>String(a.query.lastName??"")),h=i(()=>String(a.query.date??"")),c=_(null);typeof a.query.photo=="string"&&a.query.photo.startsWith("data:")?c.value=a.query.photo:typeof a.query.photoUrl=="string"&&(c.value=a.query.photoUrl);const f=i(()=>typeof a.query.photoToken=="string"?a.query.photoToken:""),k=i(()=>{if(!h.value)return"";const[s,e,p]=h.value.split("-");return!s||!e||!p?h.value:`${p}.${e}.${s}`}),T={de:{title:"Zertifikat",intro_start:"Der Bahnhofvorstand Jungfraujoch bestätigt, dass",intro_mid:"die höchstgelegene Eisenbahnstation in Europa",intro_end:"besucht hat.",peak:"Jungfraujoch",slogan:"Top of Europe",height:"3454m"},en:{title:"Certificate",intro_start:"The stationmaster of Jungfraujoch confirms that",intro_mid:"has visited the highest railway station in Europe",intro_end:"Top of Europe.",peak:"Jungfraujoch",slogan:"Top of Europe",height:"3454m"},fr:{title:"Certificat",intro_start:"Le chef de gare du Jungfraujoch confirme que",intro_mid:"a visité la plus haute gare ferroviaire d'Europe",intro_end:"Top of Europe.",peak:"Jungfraujoch",slogan:"Top of Europe",height:"3454m"}},n=i(()=>T[C.value]),v=_("/images/peakcertificate/background.png");if(f.value){const{data:s}=([d,y]=A(()=>j(()=>`peakcert-photo-${f.value}`,()=>$fetch(`/api/peak-certificate/photo/${f.value}`).catch(()=>null),"$tXwgeOe2HM")),d=await d,y(),d);typeof s.value=="string"&&s.value.startsWith("data:")&&(c.value=s.value)}const x=_(!1);return J(async()=>{try{await document.fonts?.ready}catch{}try{const s=await fetch("/images/peakcertificate/background.png");if(s.ok){const e=await s.blob();v.value=await new Promise((p,E)=>{const l=new FileReader;l.onload=()=>p(l.result),l.onerror=()=>E(l.error),l.readAsDataURL(e)})}}catch{}await new Promise(s=>requestAnimationFrame(()=>requestAnimationFrame(s))),setTimeout(()=>{x.value=!0},200)}),(s,e)=>(g(),m("div",{class:"cert-page","data-ready":o(x)?"1":"0"},[e[7]||(e[7]=t("img",{class:"cert-logo",src:L,alt:"Jungfrau Top of Europe"},null,-1)),e[8]||(e[8]=t("div",{class:"cert-frame","aria-hidden":"true"},null,-1)),t("main",O,[t("h1",R,r(o(n).title),1),t("p",$,r(o(n).intro_start),1),t("div",B,[o(c)?(g(),m("div",F,[t("img",{src:o(c),alt:""},null,8,U)])):P("",!0),t("p",V,[u(r(o(w)),1),e[0]||(e[0]=t("br",null,null,-1)),u(r(o(q)),1)])]),t("p",G,r(o(n).intro_mid),1),t("p",I,[u(r(o(n).peak),1),e[1]||(e[1]=t("br",null,null,-1)),u(r(o(n).slogan),1)]),t("p",W,r(o(n).height),1),t("p",H,r(o(n).intro_end
1),1),t("div",Z,[t("div",z,[t("p",X,r(o(n).peak),1),t("p",K,r(o(k)),1),t("p",Q,r(o(n).slogan),1)]),t("div",Y,[(g(),m("svg",tt,[e[6]||(e[6]=b('<defs><path id="cert-stamp-top" d="M 19 100 A 81 81 0 0 1 181 100" fill="none"></path><path id="cert-stamp-bottom" d="M 181 100 A 81 81 0 0 1 19 100" fill="none"></path><filter id="cert-stamp-ink" x="-5%" y="-5%" width="110%" height="110%"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" seed="3"></feTurbulence><feDisplacementMap in="SourceGraphic" scale="1.2"></feDisplacementMap></filter></defs>',1)),t("g",et,[e[2]||(e[2]=t("circle",{cx:"100",cy:"100",r:"92",fill:"none",stroke:"currentColor","stroke-width":"2.4"},null,-1)),e[3]||(e[3]=t("circle",{cx:"100",cy:"100",r:"70",fill:"none",stroke:"currentColor","stroke-width":"1.2"},null,-1)),t("text",ot,[t("textPath",st,r(o(n).peak),1)]),t("text",rt,[t("textPath",at,r(o(n).slogan),1)]),e[4]||(e[4]=b('<g transform="translate(100 72) scale(0.42) translate(-63 -44)" fill="#fff" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"><path d="M0,29.7022222 L0,55.4222222 C0,55.4222222 0,57.9422222 5.03112676,57.9422222 L114.442606,57.9422222 C119.473732,57.9422222 119.473732,60.4622222 119.473732,60.4622222 L119.473732,40.3066667 C119.473732,40.3066667 119.473732,37.7866667 114.442606,37.7866667 L5.02669014,32.2222222 C1.26,32.2222222 0,29.7022222 0,29.7022222"></path><path d="M115.077042,43.8133333 C112.135563,44.4355556 36.7307746,60.4933333 6.28669014,66.9777778 L6.28669014,87.5866667 C36.7307746,81.1066667 112.135563,65.0488889 115.077042,64.4222222 C119.473732,63.4844444 119.473732,60.9111111 119.473732,60.9111111 L119.473732,40.3022222 C119.473732,40.3022222 119.473732,42.8844444 115.077042,43.8133333 Z"></path><path d="M0,29.6577778 L0,55.4177778 C0,55.4177778 0,52.84 4.39669014,51.9066667 C6.85901408,51.3822222 125.760423,26.0666667 125.760423,26.0666667 L125.760423,0.306666667 C125.760423,0.306666667 6.76140845,25.6444444 4.34788732,26.1555556 C0,27.0755556 0,29.6577778 0,29.6577778"></path><g fill="currentColor" stroke="none" class="cert-stamp__banner-text"><text x="63" y="26" text-anchor="middle" transform="rotate(-11 63 26)" class="cert-stamp__banner-text--top">JUNGFRAU</text><text x="63" y="66" text-anchor="middle" transform="rotate(-11 63 66)">TOP OF EUROPE</text></g></g>',1)),t("text",nt,r(o(k)),1),e[5]||(e[5]=t("text",{x:"100",y:"138",class:"cert-stamp__sub","text-anchor":"middle",fill:"currentColor"}," â 3454 M â ",-1))])]))])])]),t("footer",it,[t("img",{class:"cert-bg",src:o(v),alt:""},null,8,ct)])],8,D))}});export{ut as default}; 2//# sourceMappingURL=C9oLvZYS.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.