import{i as f,c as h}from"./app-a6cKceqE.js";import{_ as y}from"./app-Bll4Z_Wn.js";import{_ as v,a as c}from"./app-DxbU-QrX.js";import{T as g}from"./app-CWQ1YUQz.js";import{T as k}from"./app-CrjU8lgK.js";import{_ as I}from"./app-BqeukU67.js";import{L as x}from"./app-W_y7sflh.js";import{_ as V}from"./app-uhTxLRnQ.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-BYcXwl4U.js";import"./app-iaXXZg9Y.js";import"./app-D2Wz0BUQ.js";import"./app-D3zbrzdO.js";import"./app-DwDoXV5j.js";import"./app-VC1SYszA.js";import"./app-yF7sElvF.js";import"./app-CqkleIqs.js";import"./app-Cp3gmk2J.js";import"./app--MWyBMkA.js";import"./app-BG60hdvp.js";import"./app-CNARLpXE.js";import"./app-SxAW7vhf.js";import"./app-D5k1HLu9.js";import"./app-ysQ8KbGS.js";import"./app-BDgR0DSb.js";import"./app-kBNY2ZLt.js";import"./app-BWSI2Z1R.js";import"./app-DPDEogA0.js";import"./app--dodm6tS.js";import"./app-CJCAnMrx.js";import"./app-Cc2zXvHs.js";import"./app-aSafd0Me.js";import"./app-BHl80pFw.js";import"./app-Btbk6LWy.js";import"./app-CrkKi1Ag.js";import"./app-u5shTDG_.js";import"./app-CO4sV-Ic.js";import"./app-yt37eDzA.js";import"./app-BQ5ggxk2.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};
