import{i as _,c as f}from"./app-DckefXYL.js";import{_ as u}from"./app-CeaP97on.js";import{C as v}from"./app-B2-Q9WJQ.js";import{T as y}from"./app-LqsmzyUT.js";import{T as I}from"./app-CXGIPJ6G.js";import{_ as k}from"./app-DaxonQAh.js";import{_ as g}from"./app-KcnMuQGX.js";import{L as x}from"./app-DM6WPmnv.js";import{_ as b}from"./app-DezwSKU9.js";import{N as E}from"./app-C9iVkiu5.js";import{N as c}from"./app-CUPmXIij.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-DnroACXc.js";import"./app-C7P1WxYu.js";import"./app-R-vSvFIF.js";import"./app-HaDoyrq5.js";import"./app-CYYQ_Zep.js";import"./app-Cmxxk_WX.js";import"./app-CF8nmC-F.js";import"./app-B09rlSqG.js";import"./app-DAKlLAys.js";import"./app-xECxwo4T.js";import"./app-BBDtZW3a.js";import"./app-kBNY2ZLt.js";import"./app-Dpl5YSiv.js";import"./app-zueB50zj.js";import"./app-B0NrURRk.js";import"./app-Cfmk3_-9.js";import"./app-CF0qXH5Q.js";import"./app-Do8DhyKT.js";import"./app-B8VsrFxM.js";import"./app-rBrER_c4.js";import"./app-DFy7dJHP.js";import"./app-yF7sElvF.js";import"./app-CqkleIqs.js";import"./app-uFawAv7F.js";import"./app-BJhJ7lM8.js";import"./app-Dd07dUxy.js";import"./app-NVAx7Sc3.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-DrIi-dNq.js";import"./app-Co2SIBzr.js";import"./app-Cu6FD8m8.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"},Oe={__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{Oe as default};
