import{i as _,c as f}from"./app-a6cKceqE.js";import{_ as u}from"./app-B8JChEZz.js";import{C as v}from"./app-CLawzVMq.js";import{T as y}from"./app-CrjU8lgK.js";import{T as I}from"./app-CWQ1YUQz.js";import{_ as k}from"./app-Bll4Z_Wn.js";import{_ as g}from"./app-BqeukU67.js";import{L as x}from"./app-W_y7sflh.js";import{_ as b}from"./app-uhTxLRnQ.js";import{N as E}from"./app-DCd54JMo.js";import{N as c}from"./app-CabATHnR.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-BYcXwl4U.js";import"./app-D7QVa3_6.js";import"./app-CO4sV-Ic.js";import"./app-yt37eDzA.js";import"./app-BG60hdvp.js";import"./app-BQ5ggxk2.js";import"./app-SxAW7vhf.js";import"./app-D3zbrzdO.js";import"./app-BeFNDz9n.js";import"./app-BDgR0DSb.js";import"./app-kBNY2ZLt.js";import"./app-CNARLpXE.js";import"./app-BWSI2Z1R.js";import"./app-DPDEogA0.js";import"./app--dodm6tS.js";import"./app-ysQ8KbGS.js";import"./app-iaXXZg9Y.js";import"./app-D2Wz0BUQ.js";import"./app-DwDoXV5j.js";import"./app-VC1SYszA.js";import"./app-yF7sElvF.js";import"./app-CqkleIqs.js";import"./app-CJCAnMrx.js";import"./app-Cp3gmk2J.js";import"./app--MWyBMkA.js";import"./app-D5k1HLu9.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-MrAtUXr3.js";import"./app-DxjODhok.js";import"./app-BhzV4gWo.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};
