PageSourceSearch

https://swishablast.com/_nuxt/CbopXobd.js

js swishablast.com collected 2026-10-10 00:57:21 UTC 2,724 bytes, 1 lines download raw bytes

1import{_ as A}from"./B8SBi1q1.js";import{h as M,z as B,e as N,c as d,a,j as e,l as V,m as f,v,p as b,t as r,q,d as L,b as h,w,g as u,o as _,_ as C}from"./BzuSgc9G.js";import{u as I}from"./Dt3G4IMn.js";const R={class:"admin-home"},D={class:"admin-home__inner"},T={key:0,class:"admin-login"},E={class:"field"},U={class:"field"},j={key:0,class:"admin-login__error"},z=["disabled"],H={key:1,class:"admin-dash"},O={class:"admin-dash__header"},P={class:"admin-dash__user"},W={class:"admin-dash__email"},F={class:"admin-dash__grid"},G=M({__name:"index",setup(J){B({title:"Admin — SwishaBlast",robots:"noindex, nofollow"});const{user:m,isAuthenticated:S,login:k,logout:c,checkSession:x}=I(),n=u(""),t=u(""),o=u(!1),l=u(null);N(()=>{x()});async function y(){if(!(!n.value||!t.value)){o.value=!0,l.value=null;try{await k(n.value,t.value),t.value=""}catch(p){const s=p;l.value=s.data?.statusMessage||s.statusMessage||"Login failed"}finally{o.value=!1}}}return(p,s)=>{const g=A;return _(),d("div",R,[a("div",D,[e(S)?(_(),d("div",H,[a("div",O,[a("div",null,[s[7]||(s[7]=a("p",{class:"eyebrow"},"Logged in as",-1)),a("h1",P,[L(r(e(m)?.name)+" ",1),a("span",W,r(e(m)?.email),1)])]),a("button",{class:"admin-dash__logout",onClick:s[2]||(s[2]=(...i)=>e(c)&&e(c)(...i))},"Sign Out")]),a("div",F,[h(g,{to:"/admin/bookings",class:"admin-card"},{default:w(()=>[...s[8]||(s[8]=[a("span",{class:"admin-card__label"},"Booking Requests",-1),a("span",{class:"admin-card__desc"},"Review inquiries, update status, add notes",-1)])]),_:1}),h(g,{to:"/admin/artists",class:"admin-card"},{default:w(()=>[...s[9]||(s[9]=[a("span",{class:"admin-card__label"},"Artist Roster",-1),a("span",{class:"admin-card__desc"},"Add, edit, or remove artists from the booking page",-1)])]),_:1})])])):(_(),d("div",T,[s[5]||(s[5]=a("h1",{class:"admin-login__title"},"SWISHABLAST ADMIN",-1)),s[6]||(s[6]=a("p",{class:"admin-login__subtitle"},"Sign in to manage bookings and the artist roster.",-1)),a("form",{class:"admin-login__form",onSubmit:V(y,["prevent"])},[a("label",E,[s[3]||(s[3]=a("span",{class:"field__label"},"Email",-1)),f(a("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>b(n)?n.value=i:null),type:"email",autocomplete:"email",required:"",class:"field__input"},null,512),[[v,e(n)]])]),a("label",U,[s[4]||(s[4]=a("span",{class:"field__label"},"Password",-1)),f(a("input",{"onUpdate:modelValue":s[1]||(s[1]=i=>b(t)?t.value=i:null),type:"password",autocomplete:"current-password",required:"",class:"field__input"},null,512),[[v,e(t)]])]),e(l)?(_(),d("p",j,r(e(l)),1)):q("",!0),a("button",{type:"submit",disabled:e(o),class:"admin-login__submit"},r(e(o)?"Signing in…":"Sign In"),9,z)],32)]))])])}}}),Y=C(G,[["__scopeId","data-v-bbd6c157"]]);export{Y 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.