File: /www/server/panel/BTPanel/static/js/index-legacy64.js
!function(){function e(n){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(n)}function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function r(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function o(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?r(Object(t),!0).forEach(function(n){l(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function l(n,t,r){return(t=function(n){var t=function(n,t){if("object"!=e(n)||!n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var o=r.call(n,t||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"==e(t)?t:t+""}(t))in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n}System.register(["./index-legacy254.js?v=1777008528","./index-legacy118.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./useController-legacy27.js?v=1777008528","./useController-legacy5.js?v=1777008528","./useStore-legacy10.js?v=1777008528","./index-legacy3.js?v=1777008528","./index-legacy119.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy116.js?v=1777008528","./index-legacy131.js?v=1777008528","./index-legacy206.js?v=1777008528","./useStore-legacy9.js?v=1777008528","./firewall-legacy.js?v=1777008528","./site-legacy.js?v=1777008528"],function(e,t){"use strict";var r,l,u,a,i,c,s,f,p,d,m,y,b,g,h,v,j,_,x,V,w,O,C,S,P,k,I,D,T,B,U,A,L,H,E,F,R,M,q,z,J,K,N,Q,$,G,W,X,Y;return{setters:[function(e){r=e._},function(e){l=e._},function(e){u=e.c,a=e.da,i=e.db,c=e.cO,s=e.K,f=e.cT},function(e){p=e.c,d=e.aI,m=e.o,y=e.j,b=e.k,g=e.p,h=e.C,v=e.v,j=e.q,_=e.e,x=e.x,V=e.Q,w=e.s,O=e.y,C=e.z,S=e.ap,P=e.ad,k=e.ab},function(e){I=e.d},function(e){D=e.getSSHInfoData,T=e.openBannedDialog,B=e.openOutLogView,U=e.clearCache,A=e.bannedStatus,L=e.onChangeBanJob,H=e.actionType,E=e.actionTypeOptions,F=e.historyType,R=e.historyTypeOptions,M=e.antiBannedForm,q=e.blastFormRef,z=e.rules,J=e.allBanned,K=e.bannedDialog,N=e.confirmBannedData,Q=e.cancelBannedData,$=e.logContent,G=e.showLogDialog,W=e.productData,X=e.onHandleIp},function(e){Y=e.L},null,null,null,null,null,null,null,null,null],execute:function(){var t={class:"flex items-center"},Z={class:"p-[2rem]"},ee={class:"mt-8px leading-8 text-small list-disc ml-20px"},ne={key:0},te={key:1},re=["innerHTML"];e("default",p({__name:"index",setup:function(e){var p=u(),oe=p.payment,le=(p.mainHeight,Y()),ue=d(le).isRefreshList,ae=le.getLogs,ie=function(){ye.value.p=1,me()},ce=a({request:function(e){return ae(o(o({},e),{},{select:H.value,historyType:F.value}))},columns:[{label:"IP地址:端口",render:function(e){return _("div",{class:e.deny_status?"line-through text-disabled":""},[_("span",{onClick:function(){return X(e)},class:"cursor-pointer ".concat(e.deny_status?"":"text-primary hover:text-primaryDark")},[e.address]),":"+e.port])}},{label:"归属地",prop:"area.info"},{label:"用户",prop:"user"},{label:"状态",prop:"status",render:function(e){return e.status?_("span",{class:"text-primary"},[x("登录成功")]):_("span",{class:"text-danger"},[x("登录失败")])}},{label:"操作时间",prop:"time",align:"right"}],extension:[f(ue)]}),se=ce.BtTable,fe=ce.BtPage,pe=ce.BtRefresh,de=ce.BtSearch,me=ce.refresh,ye=ce.param;return m(function(){D()}),function(e,o){var u=C,a=S,f=i,p=c,d=P,m=k,D=s,X=l,Y=r;return y(),b("div",null,["ltd"==g(oe).authType?(y(),h(X,{key:0},{"header-left":v(function(){return[j("div",t,[_(u,{type:"primary",onClick:o[0]||(o[0]=function(e){return g(T)(!0)})},{default:v(function(){return n(o[10]||(o[10]=[x("一键封禁爆破IP",-1)]))}),_:1}),_(u,{onClick:g(B)},{default:v(function(){return n(o[11]||(o[11]=[x("导出日志",-1)]))}),_:1},8,["onClick"]),_(u,{onClick:g(U)},{default:v(function(){return n(o[12]||(o[12]=[x("清理登录日志",-1)]))}),_:1},8,["onClick"]),o[14]||(o[14]=j("span",{class:"mx-[8px]"},"定时封禁",-1)),_(a,{modelValue:g(A),"onUpdate:modelValue":o[1]||(o[1]=function(e){return V(A)?A.value=e:null}),onChange:g(L)},null,8,["modelValue","onChange"]),j("div",{class:"flex items-center ml-[16px]",onClick:o[2]||(o[2]=function(e){return g(I)()})},n(o[13]||(o[13]=[j("i",{class:"svgtofont-desired text-medium"},null,-1),j("span",{class:"bt-link"},"需求反馈",-1)])))])]}),"header-right":v(function(){return[_(f,{type:"button",modelValue:g(H),"onUpdate:modelValue":o[3]||(o[3]=function(e){return V(H)?H.value=e:null}),options:g(E),onChange:ie,class:"mr-[1rem] !flex-nowrap"},null,8,["modelValue","options"]),_(f,{type:"button",modelValue:g(F),"onUpdate:modelValue":o[4]||(o[4]=function(e){return V(F)?F.value=e:null}),options:g(R),onChange:ie,class:"mr-[1rem] !flex-nowrap"},null,8,["modelValue","options"]),_(g(de),{class:"mr-[1rem] !w-[28rem]",placeholder:"请输入登录ip/用户名"}),_(g(pe))]}),content:v(function(){return[_(g(se))]}),"footer-right":v(function(){return[_(g(fe))]}),popup:v(function(){return[_(D,{modelValue:g(K),"onUpdate:modelValue":o[8]||(o[8]=function(e){return V(K)?K.value=e:null}),title:"".concat(g(J)?"一键":"自动","封禁爆破IP"),showFooter:"",area:46,onConfirm:g(N),onCancel:g(Q)},{default:v(function(){return[j("div",Z,[_(m,{model:g(M),ref_key:"blastFormRef",ref:q,rules:g(z)},{default:v(function(){return[_(d,{label:g(J)?"周期":"定时",prop:"hour"},{default:v(function(){return[_(p,{type:"number",modelValue:g(M).hour,"onUpdate:modelValue":o[5]||(o[5]=function(e){return g(M).hour=e}),width:"24rem"},{append:v(function(){return n(o[15]||(o[15]=[x("小时",-1)]))}),_:1},8,["modelValue"])]}),_:1},8,["label"]),_(d,{label:"失败次数",prop:"fail_count"},{default:v(function(){return[_(p,{type:"number",modelValue:g(M).fail_count,"onUpdate:modelValue":o[6]||(o[6]=function(e){return g(M).fail_count=e}),width:"24rem"},{append:v(function(){return n(o[16]||(o[16]=[x("次",-1)]))}),_:1},8,["modelValue"])]}),_:1}),_(d,{label:"封禁时间",prop:"ban_hour"},{default:v(function(){return[_(p,{type:"number",modelValue:g(M).ban_hour,"onUpdate:modelValue":o[7]||(o[7]=function(e){return g(M).ban_hour=e}),width:"24rem"},{append:v(function(){return n(o[17]||(o[17]=[x("小时",-1)]))}),_:1},8,["modelValue"])]}),_:1})]}),_:1},8,["model","rules"]),j("ul",ee,[g(J)?(y(),b("li",ne,"说明:"+w(g(M).hour||"--")+"小时前到现在失败次数超过"+w(g(M).fail_count||"--")+"次的IP,封禁"+w(g(M).ban_hour||"--")+"小时",1)):O("",!0),g(J)?O("",!0):(y(),b("li",te,"说明:"+w(g(M).hour||"--")+"小时运行一次,封禁"+w(g(M).hour||"--")+"小时内,失败次数超过"+w(g(M).fail_count||"--")+"次的IP,封禁"+w(g(M).ban_hour||"--")+"小时",1)),o[18]||(o[18]=j("li",null,"封禁IP可在安全-IP规则中查看",-1))])])]}),_:1},8,["modelValue","title","onConfirm","onCancel"]),_(D,{modelValue:g(G),"onUpdate:modelValue":o[9]||(o[9]=function(e){return V(G)?G.value=e:null}),width:"50rem",title:"任务日志",area:54},{default:v(function(){return[j("div",{class:"flex flex-col bg-[#111] text-white leading-[2.2rem] h-[30rem] overflow-y-auto p-[1rem]",innerHTML:g($)},null,8,re)]}),_:1},8,["modelValue"])]}),_:1})):(y(),h(Y,{key:1,data:g(W),class:"px-[20%] my-[8rem]"},null,8,["data"]))])}}}))}}})}();