import{i as f,c as h}from"./app-Ba7ZqSpq.js";import{_ as y}from"./app-DqJPA-IS.js";import{_ as v,a as c}from"./app-PrSv7rSt.js";import{T as g}from"./app-BJBSV0K6.js";import{T as k}from"./app-CNHjdV6U.js";import{_ as I}from"./app-CWnUJ4gg.js";import{L as x}from"./app-Crd12MWL.js";import{_ as V}from"./app-D9UgVOV0.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-SC54XQDl.js";import"./app-Ciy_QwIW.js";import"./app-DoVkxbmA.js";import"./app-C2mBgI5Z.js";import"./app-CukjbZvY.js";import"./app-D3Qbxi9D.js";import"./app-yF7sElvF.js";import"./app-CqkleIqs.js";import"./app-BZGObKCm.js";import"./app-BPIIxVwk.js";import"./app-PPG0ZS4d.js";import"./app-DgoEZtNT.js";import"./app-Ch8j4za4.js";import"./app-Dw0jKdCD.js";import"./app-DnXuoh8P.js";import"./app-CCkWSX4Q.js";import"./app-kBNY2ZLt.js";import"./app-_Ovp2dOH.js";import"./app-BjSCO7rC.js";import"./app-DmYIyyK5.js";import"./app-DHsI_tns.js";import"./app-C8HFiBxn.js";import"./app-g-bJrEAS.js";import"./app-DZaelcLs.js";import"./app-D_RBJHM6.js";import"./app-CmrRgGIA.js";import"./app-DyP4Nide.js";import"./app-C28obFWS.js";import"./app-CkINxBL9.js";import"./app--Lj8zATS.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};
