import{i as p,c as f}from"./app-DckefXYL.js";import{_ as l}from"./app-CeaP97on.js";import{_ as u}from"./app-DaxonQAh.js";import{C as _}from"./app-B2-Q9WJQ.js";import{L as g}from"./app-DM6WPmnv.js";import{_ as L}from"./app-KcnMuQGX.js";import{_ as y}from"./app-DezwSKU9.js";import{o as i,c as n,w as a,u as e,g as h,b as r,h as m,a as x,f as v}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-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-DAKlLAys.js";import"./app-xECxwo4T.js";import"./app-BBDtZW3a.js";import"./app-uFawAv7F.js";import"./app-BJhJ7lM8.js";import"./app-Dd07dUxy.js";import"./app-Dpl5YSiv.js";import"./app-NVAx7Sc3.js";import"./app-CF0qXH5Q.js";import"./app-BtWF1kMA.js";import"./app-B0NrURRk.js";import"./app-CGj1gg44.js";import"./app-B4bUdtyo.js";import"./app-BeuOvIof.js";import"./app-DSjO_8RR.js";import"./app-CZGZgDLc.js";function k(){const{utils:d,Tea:t}=p(this);this.$delay(function(){this.load()}),this.hasMore=!1,this.accessLogs=[],this.isLoaded=!1,this.load=function(){if(d.hasPopup()){this.$delay(function(){this.load()},5e3);return}this.$post("$").params({serverId:this.serverId,requestId:this.requestId}).success(function(s){if(s.data.accessLogs.length==0)return;this.accessLogs=s.data.accessLogs.concat(this.accessLogs),this.accessLogs.forEach(function(o){typeof s.data.regions[o.remoteAddr]=="string"?o.region=s.data.regions[o.remoteAddr]:o.region=""});let c=100;this.accessLogs.length>c&&(this.accessLogs=this.accessLogs.slice(0,c)),this.hasMore=s.data.hasMore,this.requestId=s.data.requestId}).done(function(){this.isLoaded||this.$delay(function(){this.isLoaded=!0}),this.$delay(function(){this.load()},5e3)})}}const $={key:0},I={class:"ctx.featureIsOn"},w={key:1,class:"mt-4"},dt={__name:"index",setup(d){const t=f(new k);return(s,c)=>(i(),n(_,{ctx:e(t),"has-tab":!0},{default:a(()=>[e(t).featureIsOn?m("",!0):(i(),h("div",$,[r(l)])),x("div",I,[e(t).isLoaded&&e(t).accessLogs.length==0?(i(),n(y,{key:0},{default:a(()=>[v("今天暂时还没有访问日志。")]),_:1})):m("",!0),e(t).accessLogs.length>0?(i(),h("div",w,[r(g,{items:e(t).accessLogs,dataKey:"requestId"},{default:a(()=>[r(L,{"header-class":"hidden"},{body:a(({data:o})=>[r(u,{"v-access-log":o,"v-keyword":e(t).keyword,"v-show-server-link":!1},null,8,["v-access-log","v-keyword"])]),_:1})]),_:1},8,["items"])])):m("",!0)])]),_:1},8,["ctx"]))}};export{dt as default};
