import{i as _,c as f}from"./app-Ba7ZqSpq.js";import{_ as u}from"./app-rIYFLdeU.js";import{C as v}from"./app-qhR41k1m.js";import{T as y}from"./app-CNHjdV6U.js";import{T as I}from"./app-BJBSV0K6.js";import{_ as k}from"./app-DqJPA-IS.js";import{_ as g}from"./app-CWnUJ4gg.js";import{L as x}from"./app-Crd12MWL.js";import{_ as b}from"./app-D9UgVOV0.js";import{N as E}from"./app-CL60OiIv.js";import{N as c}from"./app-B2C_dtYI.js";import{o as r,c as l,w as i,u as t,g as o,b as s,h as d,a,f as h}from"./app-SC54XQDl.js";import"./app-B9xxzP2y.js";import"./app-C28obFWS.js";import"./app-CkINxBL9.js";import"./app-PPG0ZS4d.js";import"./app--Lj8zATS.js";import"./app-Ch8j4za4.js";import"./app-C2mBgI5Z.js";import"./app-CS3AUTAk.js";import"./app-CCkWSX4Q.js";import"./app-kBNY2ZLt.js";import"./app-DgoEZtNT.js";import"./app-_Ovp2dOH.js";import"./app-BjSCO7rC.js";import"./app-DmYIyyK5.js";import"./app-DnXuoh8P.js";import"./app-Ciy_QwIW.js";import"./app-DoVkxbmA.js";import"./app-CukjbZvY.js";import"./app-D3Qbxi9D.js";import"./app-yF7sElvF.js";import"./app-CqkleIqs.js";import"./app-DHsI_tns.js";import"./app-BZGObKCm.js";import"./app-BPIIxVwk.js";import"./app-Dw0jKdCD.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-D9TrJBlL.js";import"./app-Dhl-Bw0H.js";import"./app-COidJXl1.js";function w(){_(this);let m=this;this.featureIsOn&&this.accessLogs.forEach(function(e){typeof m.regions[e.remoteAddr]=="string"?e.region=m.regions[e.remoteAddr]:e.region=""})}const N={key:0},T={key:1},V=["action"],C=["value"],q={class:"ui fields inline"},B={class:"ui field"},L={class:"ui field"},$={key:1,class:"mt-4"},O={key:2,class:"mt-4"},R=["href"],A={key:1,class:"disabled"},P=a("span",{class:"disabled"},"  |  ",-1),D=["href"],K={key:3,class:"disabled"},$e={__name:"history",setup(m){const e=f(new w);return(M,p)=>(r(),l(v,{ctx:t(e),"has-tab":!0},{default:i(()=>[t(e).featureIsOn?d("",!0):(r(),o("div",N,[s(u)])),t(e).featureIsOn?(r(),o("div",T,[a("div",null,[s(E,{secondary:""},{tabs:i(()=>[s(c,{href:t(e).path+"?serverId="+t(e).serverId+"&day="+t(e).day,active:t(e).hasError==0,name:"所有日志"},null,8,["href","active"]),s(c,{href:t(e).path+"?serverId="+t(e).serverId+"&day="+t(e).day+"&hasError=1",active:t(e).hasError>0,name:"错误日志"},null,8,["href","active"])]),_:1}),a("div",null,[a("form",{method:"get",action:t(e).path,autocomplete:"off"},[a("input",{type:"hidden",name:"serverId",value:t(e).serverId},null,8,C),a("div",q,[a("div",B,[s(I,{name:"day",maxlength:"10",placeholder:"选择日期",style:{width:"7.8em"},id:"day-input",modelValue:t(e).day,"onUpdate:modelValue":p[0]||(p[0]=n=>t(e).day=n)},null,8,["modelValue"])]),a("div",L,[s(y,{secondary:"",type:"submit"},{default:i(()=>[h("查找")]),_:1})])])],8,V)])]),t(e).accessLogs.length==0?(r(),l(b,{key:0},{default:i(()=>[h("暂时还没有访问日志。")]),_:1})):d("",!0),t(e).accessLogs.length>0?(r(),o("div",$,[s(x,{items:t(e).accessLogs,dataKey:"requestId"},{default:i(()=>[s(g,{"header-class":"hidden"},{body:i(({data:n})=>[s(k,{"v-access-log":n,"v-keyword":t(e).keyword,"v-show-server-link":!1},null,8,["v-access-log","v-keyword"])]),_:1})]),_:1},8,["items"])])):d("",!0),t(e).accessLogs.length>0?(r(),o("div",O,[t(e).hasPrev?(r(),o("a",{key:0,href:t(e).path+"?serverId="+t(e).serverId+"&requestId="+t(e).lastRequestId+"&day="+t(e).day+"&hasError="+t(e).hasError},"上一页",8,R)):(r(),o("span",A,"上一页")),P,t(e).hasMore?(r(),o("a",{key:2,href:t(e).path+"?serverId="+t(e).serverId+"&requestId="+t(e).nextRequestId+"&day="+t(e).day+"&hasError="+t(e).hasError},"下一页",8,D)):(r(),o("span",K,"下一页"))])):d("",!0)])):d("",!0)]),_:1},8,["ctx"]))}};export{$e as default};
