PageSourceSearch

https://panel.go54.com/_nuxt/OzrXdttx.js

js go54.com collected 2026-09-28 10:47:50 UTC 9,854 bytes, 1 lines download raw bytes

1import{_ as J}from"./BSS67al9.js";import{ba as K,b as Q,aE as W,e as Z,f as l,g as r,k as n,w as i,n as t,q as m,r as D,h as a,J as tt,z as st,a3 as et,j as u,V as C,am as lt,s as g,v as R,m as U,p as j,F as v,aX as B,D as $,ay as P,t as o,X as E,I as H,a2 as it,l as at,L as M,M as z,N as ot,O as nt}from"./DkI6cOfr.js";import{_ as dt}from"./Bq0SJq0f.js";import{u as rt}from"./Dek6Ww68.js";import{V as O}from"./C9lMfmWk.js";(function(){try{var _=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new _.Error().stack;y&&(_._sentryDebugIds=_._sentryDebugIds||{},_._sentryDebugIds[y]="be56a6db-2b7c-4985-b1c8-d980cf05005f",_._sentryDebugIdIdentifier="sentry-dbid-be56a6db-2b7c-4985-b1c8-d980cf05005f")}catch{}})();const ut={key:0,class:"d-flex justify-center align-center py-12","aria-busy":"true","aria-label":"Loading activity"},mt={class:"text-center"},ct={class:"d-flex align-center justify-space-between ga-3 mb-4"},pt={class:"text-center"},gt={class:"w-100"},ft={class:"text-body-2 mb-2"},_t={class:"text-body-2 mb-2"},bt={class:"text-body-2 mb-2"},vt={class:"text-body-2 mb-2"},yt={class:"d-flex align-center ga-2"},xt=["src"],ht={class:"text-body-2"},wt={class:"text-body-2 font-weight-regular"},kt={class:"d-flex align-center ga-2"},At=["src"],St={class:"text-center"},Vt={class:"w-100"},$t={class:"text-body-2 mb-2"},Lt={class:"text-body-2 mb-2"},Dt={class:"text-body-2 mb-2"},Ct={class:"text-body-2 mb-2"},zt={class:"d-flex align-center ga-2"},It=["src"],Tt={class:"text-body-2"},Ft={class:"text-body-2 font-weight-regular"},Nt={class:"d-flex align-center ga-2"},Rt=["src"],Ut=K({__name:"activity",setup(_){const{$apiFetch:y}=Q(),{formatDate:f}=rt(),b=M(!1),x=M(!1),{data:c,pending:h,error:I}=W("settings-security-activity",()=>y("/api/user/login-log",{method:"GET"}),{lazy:!0}),X=z(()=>!h.value&&!I.value),w=z(()=>c.value?.result==="success"&&Array.isArray(c.value?.data?.my_login_log)?c.value.data.my_login_log:c.value?.result==="success"&&Array.isArray(c.value?.data?.login_log)?c.value.data.login_log:[]),k=z(()=>c.value?.result==="success"&&Array.isArray(c.value?.data?.sub_user_access)?c.value.data.sub_user_access:[]),A=d=>{const s=String(d||"").trim();return s&&s!=="- - -"?s:"-"},S=d=>String(d||"").trim()||"-",T=d=>String(d||"").trim()||"-",F=d=>String(d||"").trim().toLowerCase()=="active"?"success":"error",N=d=>{const s=String(d.sub_user_first_name||"").trim(),L=String(d.sub_user_last_name||"").trim(),V=`${s} ${L}`.trim();return V||(d.sub_user_id?`User #${d.sub_user_id}`:"Unknown user")},Y=async()=>{x.value=!0,b.value=!1;try{await y("/api/user/revoke-all-sessions",{method:"POST"})}catch{}await ot("/logout")};return Z({title:"Security - Activity"}),(d,s)=>{const L=J,V=et,q=dt,G=it;return l(),r("div",null,[n(L,{title:"Activity",subtitle:"Review recent login sessions and sub-user access events.","show-divider":!1}),n(V,{modelValue:a(b),"onUpdate:modelValue":s[1]||(s[1]=e=>st(b)?b.value=e:null),"max-width":"560",persistent:"",title:"Log out all sessions?",type:"danger",loading:a(x),"show-close":!1},{footer:i(()=>[n(D,{color:"error",variant:"flat","min-width":"120",loading:a(x),onClick:Y},{default:i(()=>[...s[3]||(s[3]=[m(" Logout everyone ",-1)])]),_:1},8,["loading"]),n(tt),n(D,{color:"secondaryButtons",variant:"outlined","min-width":"80",disabled:a(x),onClick:s[0]||(s[0]=e=>b.value=!1)},{default:i(()=>[...s[4]||(s[4]=[m(" Cancel ",-1)])]),_:1},8,["disabled"])]),default:i(()=>[s[5]||(s[5]=t("p",{class:"text-subtitle-2 mb-0"},[m(" This signs out every browser and device currently logged in as this account, including "),t("strong",null,"this session"),m(" . You will need to sign in again. ")],-1))]),_:1},8,["modelValue","loading"]),a(h)?(l(),r("div",ut,[t("div",mt,[n(q,{name:"loader",height:"200px",width:"200px"})])])):(l(),u(at,{key:1},{default:i(()=>[n(C,{cols:"12"},{default:i(()=>[a(I)?(l(),u(lt,{key:0,type:"error",variant:"flat",class:"mb-6"},{default:i(()=>[...s[6]||(s[6]=[m(" Failed to load login activity. Please try again. ",-1)])]),_:1})):g("",!0),t("div",ct,[s[8]||(s[8]=t("h2",{class:"text-h6 font-weight-medium text-medium-emphasis mb-0"},"My logins",-1)),a(X)?(l(),u(D,{key:0,variant:"outlined",color:"error",loading:a(x),onClick:s[2]||(s[2]=e=>b.value=!0)},{default:i(()=>[...s[7]||(s[7]=[m(" Logout everyone ",-1)])]),_:1},8,["loading"])):g("",!0)]),n(R,{loading:a(h),class:"mb-6"},{default:i(()=>[a(w).length===0?(l(),u(U,{key:0,class:"d-flex align-center justify-center py-16"},{default:i(()=>[t("div",pt,[n(j,{size:"64",color:"grey-lighten-1"},{default:i(()=>[...s[9]||(s[9]=[m(" mdi-history ",-1)])]),_:1}),s[10]||(s[10]=t("p",{class:"text-h6 mt-4"},"No logins were found",-1)),s[11]||(s[11]=t("p",{class:"text-body-2 text-medium-emphasis"},"Your recent account login sessions will appear here",-1))])]),_:1})):(l(),r(v,{key:1},[d.$vuetify.display.smAndDown?(l(),u(B,{key:0,class:"py-0"},{default:i(()=>[(l(!0),r(v,null,$(a(w),(e,p)=>(l(),u(P,{key:`${e.login_time}-${e.ip}-${p}`,class:"py-4 px-4"},{default:i(()=>
1[t("div",gt,[s[12]||(s[12]=t("p",{class:"text-caption text-medium-emphasis mb-1"},"Login Time",-1)),t("p",ft,o(a(f)(e.login_time)||"-"),1),s[13]||(s[13]=t("p",{class:"text-caption text-medium-emphasis mb-1"},"Status",-1)),n(E,{color:F(e.status),label:"",density:"compact",size:"small",variant:"flat",class:"d-inline-flex align-center justify-center text-capitalize mb-2"},{default:i(()=>[m(o(T(e.status)),1)]),_:2},1032,["color"]),s[14]||(s[14]=t("p",{class:"text-caption text-medium-emphasis mb-1"},"Last Activity",-1)),t("p",_t,o(a(f)(e.last_activity)||"-"),1),s[15]||(s[15]=t("p",{class:"text-caption text-medium-emphasis mb-1"},"Device",-1)),t("p",bt,o(A(e.device)),1),s[16]||(s[16]=t("p",{class:"text-caption text-medium-emphasis mb-1"},"IP Address",-1)),t("p",vt,o(e.ip||"-"),1),s[17]||(s[17]=t("p",{class:"text-caption text-medium-emphasis mb-1"},"Location",-1)),t("div",yt,[e.flag_svg?(l(),r("img",{key:0,width:"20px",src:e.flag_svg,alt:"Flag"},null,8,xt)):g("",!0),t("span",ht,o(S(e.location)),1)])]),p<a(w).length-1?(l(),u(H,{key:0,class:"mt-4"})):g("",!0)]),_:2},1024))),128))]),_:1})):(l(),u(O,{key:1,density:"comfortable",hover:""},{default:i(()=>[s[18]||(s[18]=t("thead",null,[t("tr",{class:"text-body-2 font-weight-regular"},[t("th",null,"Login Time"),t("th",null,"Status"),t("th",null,"Last Activity"),t("th",null,"Device"),t("th",null,"IP Address"),t("th",null,"Location")])],-1)),t("tbody",wt,[(l(!0),r(v,null,$(a(w),(e,p)=>(l(),r("tr",{key:`${e.login_time}-${e.ip}-${p}`},[t("td",null,o(a(f)(e.login_time)||"-"),1),t("td",null,[n(E,{color:F(e.status),label:"",density:"compact",size:"small",variant:"flat",class:"d-flex align-center justify-center text-capitalize",style:{width:"72px"}},{default:i(()=>[m(o(T(e.status)),1)]),_:2},1032,["color"])]),t("td",null,o(a(f)(e.last_activity)||"-"),1),t("td",null,o(A(e.device)),1),t("td",null,o(e.ip||"-"),1),t("td",null,[t("div",kt,[e.flag_svg?(l(),r("img",{key:0,width:"20px",src:e.flag_svg,alt:"Flag"},null,8,At)):g("",!0),t("span",null,o(S(e.location)),1)])])]))),128))])]),_:1}))],64))]),_:1},8,["loading"])]),_:1}),n(C,{cols:"12"},{default:i(()=>[s[28]||(s[28]=t("h2",{class:"mb-1 text-h6 font-weight-medium text-medium-emphasis"},"Sub user access",-1)),s[29]||(s[29]=t("p",{class:"mb-4 text-body-2 text-medium-emphasis"},"Users who switched into your client profile",-1)),n(R,{loading:a(h)},{default:i(()=>[a(k).length===0?(l(),u(U,{key:0,class:"d-flex align-center justify-center py-16"},{default:i(()=>[t("div",St,[n(j,{size:"56",color:"grey-lighten-1"},{default:i(()=>[...s[19]||(s[19]=[m(" mdi-account-clock-outline ",-1)])]),_:1}),s[20]||(s[20]=t("p",{class:"text-h6 mt-4"},"No sub-user access found",-1)),s[21]||(s[21]=t("p",{class:"text-body-2 text-medium-emphasis"},"Access events will appear here when someone switches to your profile",-1))])]),_:1})):(l(),r(v,{key:1},[d.$vuetify.display.smAndDown?(l(),u(B,{key:0,class:"py-0"},{default:i(()=>[(l(!0),r(v,null,$(a(k),(e,p)=>(l(),u(P,{key:`${e.access_time}-${e.sub_user_id}-${p}`,class:"py-4 px-4"},{default:i(()=>[t("div",Vt,[s[22]||(s[22]=t("p",{class:"text-caption text-medium-emphasis mb-1"},"Access Time",-1)),t("p",$t,o(a(f)(e.access_time)||"-"),1),s[23]||(s[23]=t("p",{class:"text-caption text-medium-emphasis mb-1"},"Sub User",-1)),t("p",Lt,o(N(e)),1),s[24]||(s[24]=t("p",{class:"text-caption text-medium-emphasis mb-1"},"Device",-1)),t("p",Dt,o(A(e.device)),1),s[25]||(s[25]=t("p",{class:"text-caption text-medium-emphasis mb-1"},"IP Address",-1)),t("p",Ct,o(e.ip||"-"),1),s[26]||(s[26]=t("p",{class:"text-caption text-medium-emphasis mb-1"},"Location",-1)),t("div",zt,[e.flag_svg?(l(),r("img",{key:0,width:"20px",src:e.flag_svg,alt:"Flag"},null,8,It)):g("",!0),t("span",Tt,o(S(e.location)),1)])]),p<a(k).length-1?(l(),u(H,{key:0,class:"mt-4"})):g("",!0)]),_:2},1024))),128))]),_:1})):(l(),u(O,{key:1,density:"comfortable",hover:""},{default:i(()=>[s[27]||(s[27]=t("thead",null,[t("tr",{class:"text-body-2 font-weight-regular"},[t("th",null,"Access Time"),t("th",null,"Sub User"),t("th",null,"Device"),t("th",null,"IP Address"),t("th",null,"Location")])],-1)),t("tbody",Ft,[(l(!0),r(v,null,$(a(k),(e,p)=>(l(),r("tr",{key:`${e.access_time}-${e.sub_user_id}-${p}`},[t("td",null,o(a(f)(e.access_time)||"-"),1),t("td",null,o(N(e)),1),t("td",null,o(A(e.device)),1),t("td",null,o(e.ip||"-"),1),t("td",null,[t("div",Nt,[e.flag_svg?(l(),r("img",{key:0,width:"20px",src:e.flag_svg,alt:"Flag"},null,8,Rt)):g("",!0),t("span",null,o(S(e.location)),1)])])]))),128))])]),_:1}))],64))]),_:1},8,["loading"])]),_:1}),n(C,{cols:"12"},{default:i(()=>[n(G,{text:"This view displays recent sign-in activity from the last five days. Location data is provided for reference only and may not always be precise."})]),_:1})]),_:1}))])}}}),Mt=nt(Ut,[["__scopeId","data-v-c6ade127"]]);export{Mt 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.