System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-BWPgT9-g.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./index-legacy-DDy04nFi.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BQ2Kqzbl.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785","./index-legacy-xAbE4LTr.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DEYz4m3y.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BSBh0Le2.js?v=1773287522785","./index-legacy-DGWsVoxN.js?v=1773287522785","./check-legacy-DG4HeWug.js?v=1773287522785","./index-legacy-Cv0QQQJ6.js?v=1773287522785","./ssl-lets-progress-legacy-CoWii-V7.js?v=1773287522785","./ssl-legacy-BRxc0DyI.js?v=1773287522785","./ssh-legacy-DyU8FGQu.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,l){"use strict";var a,n,t,s,u,c,i,d,o,_,r,y,g,p,j,v,x,b,m,f,h,C;return{setters:[e=>{a=e._},e=>{n=e._},e=>{t=e.u},e=>{s=e.u},e=>{u=e.f,c=e.h},e=>{i=e.i,d=e.c},e=>{o=e.k,_=e.R,r=e.e,y=e.$,g=e.Z,p=e.a0,j=e.a9,v=e.F,x=e.P,b=e.S,m=e.a8,f=e._,h=e.aa},e=>{C=e.k},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var l=document.createElement("style");l.textContent=".stat-box[data-v-d420b8b4]{margin-bottom:16px;align-items:center;border-radius:8px;padding:16px;border:1px solid var(--color-border)}\n/*$vite$:1*/",document.head.appendChild(l);const k={class:"p-16px"},P={class:"text-2xl font-bold"};e("default",d(o({__name:"ssh-protection-log",setup(e,{expose:l}){const{t:d}=_(),o=r([{type:d("Total banned IP"),value:"-"},{type:d("Total failed connection"),value:"-"},{type:d("Current banned IP"),value:"-"},{type:d("Current failed connection"),value:"-"}]),{table:I,columns:T}=s([{title:"IP",key:"ip"},t({width:200,options:e=>[{label:d("Public.Btn.Delete"),onClick:async()=>{await u({ip:e.ip}),$()}}]})]),$=async()=>{try{I.loading=!0;const{message:e}=await c();i(e)&&(o[0].value=e.total_banned,o[1].value=e.total_failed,o[2].value=e.currently_banned,o[3].value=e.currently_failed,I.data=e.banned_ip_list.map((e=>({ip:e}))))}finally{I.loading=!1}};return $(),l({init:$}),(e,l)=>{const t=C,s=n,u=a;return y(),g("div",k,[p(t,{class:"stat-box justify-around!"},{default:j((()=>[(y(!0),g(v,null,x(b(o),((e,l)=>(y(),m(t,{class:"flex-col! items-center",key:l},{default:j((()=>[f("span",null,h(e.type),1),f("span",P,h(e.value),1)])),_:2},1024)))),128))])),_:1}),p(u,null,{table:j((()=>[p(s,{loading:b(I).loading,data:b(I).data,columns:b(T),"loading-num":3,"max-height":200},null,8,["loading","data","columns"])])),_:1})])}}}),[["__scopeId","data-v-d420b8b4"]]))}}}));
