import{i as f,c as h}from"./app-BT68AfZ-.js";import{_ as y}from"./app-C2peMKJG.js";import{_ as v,a as c}from"./app-BHFzVhjx.js";import{T as g}from"./app-D1zN-SZ-.js";import{T as k}from"./app-Zes_jb7S.js";import{_ as I}from"./app-Dapk2SAF.js";import{L as x}from"./app-CjSxNKvA.js";import{_ as V}from"./app-BWsCS5pa.js";import{o as s,g as o,a as m,u as t,b as a,w as i,h as n,c as u,F as _,f as p,D as w,t as b}from"./app-DA7OTM4Q.js";import"./app-BQJXgoGu.js";import"./app-BkWUIifj.js";import"./app-CQwVTjAx.js";import"./app-DfyWLXQE.js";import"./app-uDv2WI9p.js";import"./app-yF7sElvF.js";import"./app-CqkleIqs.js";import"./app-C5ROEzFd.js";import"./app-Bnbo6OlJ.js";import"./app-Dxa5h-uG.js";import"./app-AbPAjGV5.js";import"./app-BqY8p2gl.js";import"./app-C-GI59rl.js";import"./app-DSiZNBrr.js";import"./app-BotiHebp.js";import"./app-kBNY2ZLt.js";import"./app-CWBL8eTX.js";import"./app-CnGe5nlE.js";import"./app-CNEAqXZN.js";import"./app-z_TsLOhk.js";import"./app-DUjqI3OV.js";import"./app-45ZaIHUI.js";import"./app-KNE_24OY.js";import"./app-SLkqftrw.js";import"./app-BxVwOz69.js";import"./app-WOreqTiW.js";import"./app-up4gT9D9.js";import"./app-D29bbm9n.js";import"./app-B_5dka6q.js";function T(){f(this),this.accessLogs.forEach(d=>{typeof this.regions[d.remoteAddr]=="string"?d.region=this.regions[d.remoteAddr]:d.region=""})}const q=["action"],B={class:"fields inline"},L={key:0},N={class:"ui field"},$={key:1,class:"mt-4"},C={key:2,class:"mt-4"},D=["href"],R={key:1,class:"disabled"},A=m("span",{class:"disabled"},"  |  ",-1),E=["href"],F={key:3,class:"disabled"},Ve={__name:"index",setup(d){const e=h(new T);return(P,l)=>(s(),o(_,null,[m("form",{method:"get",action:t(e).path,autocomplete:"off"},[m("div",B,[t(e).servers.length>0?(s(),o("div",L,[a(v,{name:"serverId",modelValue:t(e).serverId,"onUpdate:modelValue":l[0]||(l[0]=r=>t(e).serverId=r)},{default:i(()=>[a(c,{value:"0"},{default:i(()=>[p("[选择域名]")]),_:1}),(s(!0),o(_,null,w(t(e).servers,r=>(s(),u(c,{value:r.id},{default:i(()=>[p(b(r.serverName),1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue"])])):n("",!0),m("div",null,[a(g,{name:"day",maxlength:"10",placeholder:"选择日期",style:{width:"7.8em"},id:"day-input",modelValue:t(e).day,"onUpdate:modelValue":l[1]||(l[1]=r=>t(e).day=r)},null,8,["modelValue"])]),m("div",N,[a(k,{secondary:"",size:"small",type:"submit"},{default:i(()=>[p("查找")]),_:1})])])],8,q),t(e).accessLogs.length==0?(s(),u(V,{key:0},{default:i(()=>[p("暂时还没有日志。")]),_:1})):n("",!0),t(e).accessLogs.length>0?(s(),o("div",$,[a(x,{items:t(e).accessLogs,dataKey:"requestId"},{default:i(()=>[a(I,{"header-class":"hidden"},{body:i(({data:r})=>[a(y,{"v-access-log":r,"v-keyword":t(e).keyword,"v-show-server-link":!0},null,8,["v-access-log","v-keyword"])]),_:1})]),_:1},8,["items"])])):n("",!0),t(e).accessLogs.length>0?(s(),o("div",C,[t(e).hasPrev?(s(),o("a",{key:0,href:t(e).path+"?requestId="+t(e).lastRequestId+"&day="+t(e).day+"&groupId="+t(e).groupId+"&serverId="+t(e).serverId},"上一页",8,D)):(s(),o("span",R,"上一页")),A,t(e).hasMore?(s(),o("a",{key:2,href:t(e).path+"?requestId="+t(e).nextRequestId+"&day="+t(e).day+"&groupId="+t(e).groupId+"&serverId="+t(e).serverId},"下一页",8,E)):(s(),o("span",F,"下一页"))])):n("",!0)],64))}};export{Ve as default};
