PageSourceSearch

https://www.pacifichistoricalmuseum.org/_nuxt/BLmqAfNi.js

js pacifichistoricalmuseum.org collected 2026-10-09 17:10:19 UTC 1,175 bytes, 1 lines download raw bytes

1import{d,u as l,a as p,o as x,n as c,b as s,c as a,e as _,t as v,f,w as k,g as h,h as w,r as y,i as g,_ as B}from"./CIxJSTE4.js";import{f as S}from"./CfUfye_a.js";const T={class:"mx-auto max-w-md pt-16"},b={key:0,class:"mt-2 text-sm text-red-700"},N={key:1,class:"mt-2 text-sm text-zinc-600"},V=d({__name:"accept-invite",setup(z){const n=l(),{user:u,fetch:o}=p(),t=y(""),i=g(()=>typeof n.query.token=="string"?n.query.token:"");return x(async()=>{if(!i.value){if(await o(),u.value?.mustSetPassword){await c("/admin/set-password");return}t.value="This invite link is missing a token.";return}try{await $fetch("/api/admin/accept-invite",{method:"POST",body:{token:i.value}}),await o(),await c("/admin/set-password")}catch(r){t.value=S(r,"This invite link is invalid or expired")}}),(r,e)=>{const m=B;return s(),a("div",T,[e[1]||(e[1]=_("h1",{class:"text-2xl font-semibold"},"Accept invite",-1)),t.value?(s(),a("p",b,v(t.value),1)):(s(),a("p",N,"Signing you in…")),t.value?(s(),f(m,{key:2,to:"/admin",class:"mt-6 inline-block text-sm text-zinc-600 hover:text-zinc-900"},{default:k(()=>[...e[0]||(e[0]=[h(" Back to sign in ",-1)])]),_:1})):w("",!0)])}}});export{V 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.