import{i as _,c as f}from"./app-BT68AfZ-.js";import{_ as u}from"./app-DQ7IohAF.js";import{C as v}from"./app-P70ZK_FT.js";import{T as y}from"./app-Zes_jb7S.js";import{T as I}from"./app-D1zN-SZ-.js";import{_ as k}from"./app-C2peMKJG.js";import{_ as g}from"./app-Dapk2SAF.js";import{L as x}from"./app-CjSxNKvA.js";import{_ as b}from"./app-BWsCS5pa.js";import{N as E}from"./app-scFtFqL8.js";import{N as c}from"./app-BX4pd6U-.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-DA7OTM4Q.js";import"./app-D6fSNcLx.js";import"./app-up4gT9D9.js";import"./app-D29bbm9n.js";import"./app-Dxa5h-uG.js";import"./app-B_5dka6q.js";import"./app-BqY8p2gl.js";import"./app-CQwVTjAx.js";import"./app-D5twQdhO.js";import"./app-BotiHebp.js";import"./app-kBNY2ZLt.js";import"./app-AbPAjGV5.js";import"./app-CWBL8eTX.js";import"./app-CnGe5nlE.js";import"./app-CNEAqXZN.js";import"./app-DSiZNBrr.js";import"./app-BQJXgoGu.js";import"./app-BkWUIifj.js";import"./app-DfyWLXQE.js";import"./app-uDv2WI9p.js";import"./app-yF7sElvF.js";import"./app-CqkleIqs.js";import"./app-z_TsLOhk.js";import"./app-C5ROEzFd.js";import"./app-Bnbo6OlJ.js";import"./app-C-GI59rl.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-DREBJ-ou.js";import"./app-OC5wWJiS.js";import"./app-Bhreb6Cm.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};
