PageSourceSearch

https://www.roemerholz.ch/_nuxt/CTroHRQS.js

js roemerholz.ch collected 2026-10-02 10:17:38 UTC 2,198 bytes, 1 lines download raw bytes

1import{n as m,g as x,d as _,u as A,o as s,c as w,b as e,e as i,A as T,f as u,x as y,K as V,q as f,t as p,D as b,J as S,z as L,y as E}from"./BVMTLTto.js";import{e as B,T as k,U as M}from"./DHDT4DZo.js";import{T as d}from"./LHpL2YJq.js";import{useGetToken as $}from"./l2btwsXf.js";import{useTravelAdviceLocale as C}from"./bRX65Qa-.js";const R=x();function U(c){const t=m("not-started"),r=m(null);async function o(){t.value="pending";try{await $fetch(`${B}/reisehinweise/verify`,{method:"post",headers:[["Authorization",`Bearer ${c}`]]})}catch(a){R.error("something went wrong when trying to verify travel advice",a),r.value=a}finally{t.value="finished"}}return{status:t,verify:o,error:r}}const q=_({__name:"Verify",props:{verifyAction:{},token:{},lang:{}},setup(c){const t=c,{t:r}=A(),{status:o,verify:a,error:n}=U(t.token),l=y(()=>{switch(t.verifyAction){case d.Register:return r("apps.eda.travelAdvice.verify.registerSuccessMessage");case d.RemoveVerify:return r("apps.eda.travelAdvice.verify.unsubscribeSuccessMessage");case d.Update:default:return r("apps.eda.travelAdvice.verify.updateSuccessMessage")}});return o.value==="not-started"&&a(),(v,g)=>(s(),w("div",null,[e(o)==="finished"&&!e(n)?(s(),i(e(T),{key:0,text:e(l)},null,8,["text"])):u("",!0),e(n)?(s(),i(k,{key:1,errors:[e(n)]},null,8,["errors"])):u("",!0)]))}}),z=Object.assign(q,{__name:"AppsEdaTravelAdviceVerify"}),O=_({__name:"travel-advice-verify",setup(c){const{t,locale:r}=A(),o=V(),{token:a}=$(),{travelAdviceLang:n}=C(r),l=y(()=>n.value?t("apps.eda.travelAdvice.verify.pageTitle"):t("apps.eda.travelAdvice.unsupportedLanguage.title")),v=y(()=>a.value?null:new Error("no token provided for verification")),g=o.query.action?.toString();return(D,J)=>{const h=E;return s(),i(h,null,{default:f(()=>[p(e(b),{title:l.value,type:"default"},null,8,["title"]),p(e(S),null,{default:f(()=>[p(e(L),{type:"responsive",width:"center--xs","vertical-spacing":!0},{default:f(()=>[e(a)&&e(n)?(s(),i(z,{key:0,lang:e(n),"verify-action":e(g),token:e(a)},null,8,["lang","verify-action","token"])):e(n)?u("",!0):(s(),i(M,{key:1})),v.value?(s(),i(k,{key:2,errors:[v.value]},null,8,["errors"])):u("",!0)]),_:1})]),_:1})]),_:1})}}});
1export{O 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.