PageSourceSearch

https://panel.whogohost.com/_nuxt/HurkerDm.js

js whogohost.com collected 2026-09-25 19:43:12 UTC 2,380 bytes, 1 lines download raw bytes

1import{i as _,b as D,f as b,j as B,w as i,n as u,g as C,t as p,h as r,s as E,k as d,r as g,q as y,J as N,z as A,a3 as I,M as v,L as R}from"./Be4KCvjK.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new s.Error().stack;l&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[l]="34b03b0b-3d2e-4929-81a7-ef86b626609b",s._sentryDebugIdIdentifier="sentry-dbid-34b03b0b-3d2e-4929-81a7-ef86b626609b")}catch{}})();const T={key:0,class:"bg-grey-lighten-4 rounded pa-3 mb-4"},S={class:"text-subtitle-2 font-weight-medium mb-1"},j={class:"text-caption mb-0"},M={__name:"AccountRemoveAccessDialog",props:{modelValue:Boolean,user:{type:Object,default:null}},emits:["update:modelValue","removed"],setup(s,{emit:l}){const o=s,c=l,m=_("showSnackbar"),{$apiFetch:w}=D(),a=R(!1),n=v({get:()=>o.modelValue,set:t=>c("update:modelValue",t)}),h=v(()=>o.user&&(o.user.full_name||o.user.email)||"this user"),f=()=>{n.value=!1},k=async()=>{if(o.user){a.value=!0;try{const t=await w(`/api/user/user-management/revoke/${o.user.id}`,{method:"DELETE"});if(t.result==="success")m?.(t.message||"User access revoked successfully","success"),c("removed",o.user.id),f();else throw new Error(t.message||"Failed to revoke user access")}catch(t){console.error("Error revoking user access:",t),m?.(t?.data?.statusMessage||"Failed to revoke user access","error")}finally{a.value=!1}}};return(t,e)=>{const V=I;return b(),B(V,{"max-width":"560",modelValue:r(n),"onUpdate:modelValue":e[0]||(e[0]=x=>A(n)?n.value=x:null),title:"Remove User Access",type:"danger",loading:r(a)},{footer:i(()=>[d(g,{color:"error",variant:"flat",loading:r(a),disabled:r(a),onClick:k,"min-width":"120"},{default:i(()=>[...e[1]||(e[1]=[y(" Confirm ",-1)])]),_:1},8,["loading","disabled"]),d(N),d(g,{color:"secondaryButtons",variant:"outlined","min-width":"80",onClick:f,disabled:r(a)},{default:i(()=>[...e[2]||(e[2]=[y(" Cancel ",-1)])]),_:1},8,["disabled"])]),default:i(()=>[e[3]||(e[3]=u("p",{class:"text-subtitle-2 mb-4"},"Are you sure you want to remove this user's access?",-1)),s.user?(b(),C("div",T,[u("p",S,p(r(h)),1),u("p",j,p(s.user?.email),1)])):E("",!0),e[4]||(e[4]=u("p",{class:"text-caption text-medium-emphasis"},"This user will no longer be able to access your profile.",-1))]),_:1},8,["modelValue","loading"])}}};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.