consthandleRefresh=async(a:Account)=>{try{awaitadminAPI.accounts.refreshCredentials(a.id);load()}catch(error){console.error('Failed to refresh credentials:',error)}}
consthandleRefresh=async(a:Account)=>{
consthandleResetStatus=async(a:Account)=>{try{awaitadminAPI.accounts.clearError(a.id);appStore.showSuccess(t('common.success'));load()}catch(error){console.error('Failed to reset status:',error)}}
try{
consthandleClearRateLimit=async(a:Account)=>{try{awaitadminAPI.accounts.clearRateLimit(a.id);appStore.showSuccess(t('common.success'));load()}catch(error){console.error('Failed to clear rate limit:',error)}}
constconfirmDelete=async()=>{if(!deletingAcc.value)return;try{awaitadminAPI.accounts.delete(deletingAcc.value.id);showDeleteDialog.value=false;deletingAcc.value=null;reload()}catch(error){console.error('Failed to delete account:',error)}}
constconfirmDelete=async()=>{if(!deletingAcc.value)return;try{awaitadminAPI.accounts.delete(deletingAcc.value.id);showDeleteDialog.value=false;deletingAcc.value=null;reload()}catch(error){console.error('Failed to delete account:',error)}}
consthandleTempUnschedReset=async()=>{if(!tempUnschedAcc.value)return;try{awaitadminAPI.accounts.clearError(tempUnschedAcc.value.id);showTempUnsched.value=false;tempUnschedAcc.value=null;load()}catch(error){console.error('Failed to reset temp unscheduled:',error)}}