PageSourceSearch

https://beventi.co/_nuxt/Biwix4C9.js

js beventi.co collected 2026-09-25 03:54:38 UTC 2,087 bytes, 1 lines download raw bytes

1import{at as _,N as g,M as x,O as p,e as l,f as y,I as k,c as u,o as c,a as s,b as w,u as d,i as b,t as I,w as B,j as C,H as E}from"./bogGBgDk.js";const N={class:"min-h-screen flex items-center justify-center bg-gray-50"},R={class:"text-center max-w-md mx-auto px-4"},S={key:0,class:"space-y-4"},L={key:1,class:"space-y-4"},M={class:"text-gray-600"},T=_({__name:"auth-callback",setup(V){const f=g();x();const n=p(),a=l(!0),o=l(!1),r=l(""),m=["/","/events","/cart","/account","/orders","/profile","/event","/orderform"],v=t=>!t||!t.startsWith("/")||t.includes("://")||t.includes("//")?!1:m.some(e=>t.startsWith(e));return y(async()=>{const t=f.query.auth,e=f.query.redirect_url;if(!t){o.value=!0,r.value="No authentication token provided",a.value=!1;return}const i=e&&v(e)?e:"/events";try{sessionStorage.setItem("bearer_token",t),await n.refresh(!0),n.isLoggedIn?(await n.loadCarts(),await k(i,{replace:!0})):(sessionStorage.removeItem("bearer_token"),o.value=!0,r.value="Invalid authentication token",a.value=!1)}catch(h){console.error("Bearer token authentication failed:",h),sessionStorage.removeItem("bearer_token"),o.value=!0,r.value="Failed to authenticate. Please try again.",a.value=!1}}),(t,e)=>{const i=E;return c(),u("div",N,[s("div",R,[d(a)?(c(),u("div",S,[...e[0]||(e[0]=[s("div",{class:"animate-spin rounded-full h-12 w-12 border-b-2 border-beventi mx-auto"},null,-1),s("h2",{class:"text-xl font-semibold text-gray-900"},"Authenticating...",-1),s("p",{class:"text-gray-600"},"Please wait while we securely log you in",-1)])])):d(o)?(c(),u("div",L,[e[2]||(e[2]=s("div",{class:"text-red-500"},[s("svg",{class:"h-12 w-12 mx-auto",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1)),e[3]||(e[3]=s("h2",{class:"text-xl font-semibold text-gray-900"},"Authentication Failed",-1)),s("p",M,I(d(r)),1),b(i,{to:"/login",size:"md"},{default:B(()=>[...e[1]||(e[1]=[C(" Go to Login ",-1)])]),_:1})])):w("",!0)])])}}});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.