PageSourceSearch

https://www.tkstairs.com/_nuxt/DzDPjXVB.js

js tkstairs.com collected 2026-10-08 12:14:23 UTC 3,110 bytes, 1 lines download raw bytes

1import{d as f,u as k,a4 as w,b as h,o as v,j as l,l as e,k as a,q as n,v as m,m as c,p as g,r as x,R as _,i,ay as C,az as B}from"./Cfb99_4d.js";const E={class:"flex flex-col items-center justify-center px-6 py-8 mx-auto h-[calc(100dvh_-_200px)] lg:py-0 rounded-xl relative"},N={class:"w-full p-6 bg-white text-brand-grey-800 shadow-lg rounded-md md:mt-0 sm:max-w-md sm:p-8 z-20"},S={key:0},T={key:1},Y={class:"mt-4"},V={key:2},j={class:"mt-4"},q={key:3},z={class:"mt-4"},M=f({__name:"change-email",setup(A){const b=k(),y=w();h({title:"Change Email",meta:[{property:"og:title",content:"Change Email"},{name:"description",content:"Confirm your new TKstairs email address."},{property:"og:description",content:"Confirm your new TKstairs email address."}]});const p=String(b.query.token??""),o=x("pending"),r=x(""),d=x("");return v(async()=>{if(!p){o.value="error",d.value="No confirmation token provided.";return}try{const s=await y.confirmEmailChange(p);r.value=s.email,o.value=s.already_changed?"already":"success"}catch(s){o.value="error",d.value=s?.data?.message??s?.message??"We couldn't confirm the change. The link may have expired."}}),(s,t)=>{const u=_;return i(),l("div",E,[e("div",N,[a(o)==="pending"?(i(),l("section",S,[...t[0]||(t[0]=[e("h2",{class:"mb-1 text-xl font-bold leading-tight tracking-tight md:text-2xl"}," Confirming your new email... ",-1)])])):a(o)==="success"?(i(),l("section",T,[t[4]||(t[4]=e("h2",{class:"mb-1 text-xl font-bold leading-tight tracking-tight md:text-2xl"}," Email updated ",-1)),e("p",Y,[t[1]||(t[1]=n(" Your account email is now ",-1)),e("strong",null,m(a(r)),1),t[2]||(t[2]=n(". Use it next time you sign in. Your password hasn't changed. ",-1))]),c(u,{to:"/account/details",class:"button bg-brand-blue-500 text-white mt-6 w-full inline-block text-center"},{default:g(()=>[...t[3]||(t[3]=[n(" Back to account ",-1)])]),_:1})])):a(o)==="already"?(i(),l("section",V,[t[8]||(t[8]=e("h2",{class:"mb-1 text-xl font-bold leading-tight tracking-tight md:text-2xl"}," Already updated ",-1)),e("p",j,[t[5]||(t[5]=n(" Your account email is already ",-1)),e("strong",null,m(a(r)),1),t[6]||(t[6]=n(". Nothing more to do. ",-1))]),c(u,{to:"/account/details",class:"button bg-brand-blue-500 text-white mt-6 w-full inline-block text-center"},{default:g(()=>[...t[7]||(t[7]=[n(" Back to account ",-1)])]),_:1})])):(i(),l("section",q,[t[10]||(t[10]=e("h2",{class:"mb-1 text-xl font-bold leading-tight tracking-tight md:text-2xl text-red-600"}," Couldn't change your email ",-1)),e("p",z,m(a(d)),1),t[11]||(t[11]=e("p",{class:"mt-2 text-sm text-gray-600"}," Your existing email and password still work, so you can sign in and try again. ",-1)),c(u,{to:"/account/details",class:"button bg-brand-blue-500 text-white mt-6 w-full inline-block text-center"},{default:g(()=>[...t[9]||(t[9]=[n(" Back to account ",-1)])]),_:1})]))]),t[12]||(t[12]=e("img",{src:C,alt:"",class:"absolute -top-12 -left-10 select-none pointer-events-none"},null,-1)),t[13]||(t[13]=e("img",{src:B,alt:"",class:"absolute -bottom-12 -right-10 select-none pointer-events-none"},null,-1))])}}});export{M 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.