import{i as f,c as h}from"./app-DckefXYL.js";import{_ as y}from"./app-DaxonQAh.js";import{_ as v,a as c}from"./app-DntYVxd7.js";import{T as g}from"./app-CXGIPJ6G.js";import{T as k}from"./app-LqsmzyUT.js";import{_ as I}from"./app-KcnMuQGX.js";import{L as x}from"./app-DM6WPmnv.js";import{_ as V}from"./app-DezwSKU9.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-DnroACXc.js";import"./app-Do8DhyKT.js";import"./app-B8VsrFxM.js";import"./app-B09rlSqG.js";import"./app-rBrER_c4.js";import"./app-DFy7dJHP.js";import"./app-yF7sElvF.js";import"./app-CqkleIqs.js";import"./app-BJhJ7lM8.js";import"./app-Dd07dUxy.js";import"./app-CYYQ_Zep.js";import"./app-Dpl5YSiv.js";import"./app-CF8nmC-F.js";import"./app-NVAx7Sc3.js";import"./app-CF0qXH5Q.js";import"./app-xECxwo4T.js";import"./app-kBNY2ZLt.js";import"./app-zueB50zj.js";import"./app-B0NrURRk.js";import"./app-Cfmk3_-9.js";import"./app-uFawAv7F.js";import"./app-BtWF1kMA.js";import"./app-CGj1gg44.js";import"./app-B4bUdtyo.js";import"./app-BeuOvIof.js";import"./app-DSjO_8RR.js";import"./app-CZGZgDLc.js";import"./app-R-vSvFIF.js";import"./app-HaDoyrq5.js";import"./app-Cmxxk_WX.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};
