var e={create:`创建`,update:`更新`,delete:`删除`,login:`登录`,logout:`登出`,execute:`执行`,push:`推送`,create_server:`创建服务器`,update_server:`更新服务器`,delete_server:`删除服务器`,create_schedule:`创建调度`,update_schedule:`更新调度`,delete_schedule:`删除调度`,create_quick_command:`添加快捷命令`,update_quick_command:`更新快捷命令`,delete_quick_command:`删除快捷命令`,retry_job:`手动重试`,delete_retry:`删除重试任务`,webssh_connect:`WebSSH 连接`,webssh_disconnect:`WebSSH 断开`,chmod:`修改权限`,chown:`修改属主`,file_write:`写入文件`,file_delete:`删除文件`,sync_push:`文件推送`},t={server:`服务器`,schedule:`调度`,script:`脚本`,credential:`凭据`,admin:`管理员`,setting:`系统设置`,quick_command:`快捷命令`,retry:`重试任务`,sync:`同步`,file:`文件`,webssh:`终端会话`};function n(t){return t?e[t]??t.replace(/_/g,` `):`—`}function r(e){return e?t[e]??e.replace(/_/g,` `):`—`}function i(e){let t=e.resource_type||e.target_type||``,i=`${n(e.action)} · ${r(t)}`,a=(e.detail||``).trim();return a?`${i}（${a}）`:i}function a(e){let t=String(e.target_type??e.resource_type??``),n=e.target_id??e.resource_id;return{id:Number(e.id),admin_username:String(e.admin_username??``),action:String(e.action??``),resource_type:t,target_type:t,resource_id:n!=null&&n!==``?Number(n):null,target_id:n!=null&&n!==``?Number(n):null,detail:e.detail==null?null:String(e.detail),ip_address:e.ip_address==null?null:String(e.ip_address),created_at:e.created_at==null?null:String(e.created_at)}}function o(e){return e.map(e=>a(e))}export{r as i,n,i as r,o as t};