PageSourceSearch

https://app.cghero.com/_nuxt/IWLHFpJZ.js

js cghero.com collected 2026-10-04 15:12:36 UTC 1,814 bytes, 1 lines download raw bytes

1import{A as g}from"./BdMnbLyA.js";import{d as _,q as m,s as y,t as w,ak as b,c as n,e as x,g as r,i as s,y as u,f as A,j as c,k as i,B as S,r as k,G as v}from"./xYyMbIF_.js";const B={class:"space-y-4"},C={class:"pt-2"},F={key:0},I={key:1},q=_({__name:"account-disabled",setup(L){const a=m(),d=y(),o=k(!1);function l(e){if(!e||typeof e!="object")return!1;const t=String(e.status??"").toLowerCase();return t==="suspended"||t==="banned"?!0:!!(e.is_banned||e.banned_at||e.suspended_at)}function p(){try{return window.sessionStorage.getItem("cghero_suspended_access")==="1"}catch{return!1}}function f(){try{window.sessionStorage.removeItem("cghero_suspended_access")}catch{}}w(async()=>{await b();try{await a.fetchCurrentUser({forceFresh:!0})}catch{}const e=l(a.user),t=p();if(!e&&!t){await d.replace(a.isAuthenticated?"/":"/auth/login");return}});async function h(){o.value=!0;const e=a.logout();try{f(),await v("/auth/login",{replace:!0})}finally{await e.catch(()=>{}),o.value=!1}}return(e,t)=>(n(),x(g,{eyebrow:"Account Access",title:"Account Suspended",description:"","show-panel":!1,"panel-title":"","panel-body":"",quote:"","quote-author":""},{default:r(()=>[s("div",B,[t[0]||(t[0]=s("p",{class:"text-sm leading-6 text-[color:var(--color-text-muted)]"},[u(" Your account has been suspended. If you think this is incorrect, please contact our help team at "),s("a",{class:"underline underline-offset-2",href:"mailto:[email protected]"},"[email protected]"),u(". ")],-1)),t[1]||(t[1]=s("p",{class:"text-sm leading-6 text-[color:var(--color-text-muted)]"}," The CGHero Team ",-1)),s("div",C,[A(c(S),{type:"button",class:"h-11 rounded-full px-6",disabled:c(o),onClick:h},{default:r(()=>[c(o)?(n(),i("span",I,"Logging out...")):(n(),i("span",F,"Logout"))]),_:1},8,["disabled"])])])]),_:1}))}});export{q 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.