PageSourceSearch

https://raumfahrtakteure.de/assets/PreviewLoginView-Bnrqcqi6.js

js raumfahrtakteure.de collected 2026-10-06 08:55:06 UTC 1,451 bytes, 1 lines download raw bytes

1import{d as w,m as g,i as h,r as m,a as v,o as y,c as V,b as c,f as u,w as b,g as x,K as _,h as A,aj as p,ak as B,q as H,_ as P}from"./index-CC-6eLHP.js";import{_ as f}from"./KaraLabelledTextInput.vue_vue_type_script_setup_true_lang-C8TNy6x4.js";const R={sha256:async function(l){const i=new TextEncoder().encode(l),t=await crypto.subtle.digest("SHA-256",i);return Array.from(new Uint8Array(t)).map(s=>{let a=s.toString(16);return a.length<2&&(a="0"+a),a}).join("")}},k=w({__name:"PreviewLoginView",setup(l){const t=g(),d=h(),r=m(""),s=m("");v({title:"Testzugang"});async function a(){if(r.value!=="trenz-staging"){p.error("Falsche Zugangsdaten");return}const n=await R.sha256(s.value);if(n!==void 0){p.error("Falsche Zugangsdaten");return}B.set("preview-token",n,{expires:90}),await t.isReady();const e=await H.handleReturn(d);if(e!==null){await t.replace(e);return}await t.replace({name:"home"})}return(n,e)=>(y(),V("div",null,[c("form",{onSubmit:A(a,["prevent"])},[e[3]||(e[3]=c("h3",null,"Testzugang",-1)),u(f,{label:"Benutzername",modelValue:r.value,"onUpdate:modelValue":e[0]||(e[0]=o=>r.value=o)},null,8,["modelValue"]),u(f,{label:"Passwort",modelValue:s.value,"onUpdate:modelValue":e[1]||(e[1]=o=>s.value=o),type:"password",class:"mt-3"},null,8,["modelValue"]),u(_,{type:"submit",class:"mt-3 ml-auto",variant:"accented"},{default:b(()=>e[2]||(e[2]=[x("Login")])),_:1})],32)]))}}),T=P(k,[["__scopeId","data-v-fb75bb11"]]);export{T 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.