System.register(["./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./useLoading-legacy-IiShPpjk.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-legacy-xAbE4LTr.js?v=1773287522785","./index-legacy-DEYz4m3y.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.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,t){"use strict";var l,i,a,n,u,s,r,o,c,d,y,p,m,_,g,x,f,b,h,j,v,S,w;return{setters:[e=>{l=e._},e=>{i=e._},e=>{a=e.u},e=>{n=e.s,u=e.e},e=>{s=e.i},e=>{r=e.k,o=e.R,c=e.r,d=e.e,y=e.$,p=e.a8,m=e.a9,_=e.a0,g=e.S,x=e.j,f=e.aa,b=e._},e=>{h=e.a1,j=e.au,v=e._,S=e.av,w=e.a9},null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const t=["textContent"];e("default",r({__name:"ssh-protection-config",setup(e,{expose:r}){const{t:R}=o(),T=c(null),$=d({maxRetry:5,period:300,prohibitionTime:86400}),C={maxRetry:{required:!0,message:R("Security.Conf.Index_28"),type:"number",trigger:["blur","input"]},period:{required:!0,message:R("Security.Conf.Index_28"),type:"number",trigger:["blur","input"]},prohibitionTime:{required:!0,message:R("Security.Conf.Index_28"),type:"number",trigger:["blur","input"]}},{loading:I,setLoading:M}=a();return(async()=>{try{M(!0);const{message:e}=await u();s(e)&&($.maxRetry=e.maxretry,$.period=e.findtime,$.prohibitionTime=e.bantime)}finally{M(!1)}})(),r({onConfirm:async()=>{await(T.value?.validate());const e={maxretry:$.maxRetry,findtime:$.period,bantime:$.prohibitionTime};await n(e)}}),(e,a)=>{const n=v,u=S,s=j,r=h,o=i,c=l,d=w;return y(),p(d,{show:g(I),class:"p-16px"},{default:m((()=>[_(o,{ref_key:"formRef",ref:T,model:g($),rules:C},{default:m((()=>[_(r,{label:e.$t("Maximum retry times"),path:"maxRetry"},{default:m((()=>[_(s,{class:"w-200px"},{default:m((()=>[_(n,{value:g($).maxRetry,"onUpdate:value":a[0]||(a[0]=e=>g($).maxRetry=e),"show-button":!1},null,8,["value"]),_(u,null,{default:m((()=>[x(f(e.$t("Waf.Site.index_35")),1)])),_:1})])),_:1})])),_:1},8,["label"]),_(r,{label:e.$t("Mail.Backup.index_3"),path:"period"},{default:m((()=>[_(s,{class:"w-200px"},{default:m((()=>[_(n,{value:g($).period,"onUpdate:value":a[1]||(a[1]=e=>g($).period=e),"show-button":!1},null,8,["value"]),_(u,null,{default:m((()=>[x(f(e.$t("Security.SiteSecurity.Metric.seconds")),1)])),_:1})])),_:1})])),_:1},8,["label"]),_(r,{label:"Prohibition time",path:"prohibitionTime"},{default:m((()=>[_(s,{class:"w-200px"},{default:m((()=>[_(n,{value:g($).prohibitionTime,"onUpdate:value":a[2]||(a[2]=e=>g($).prohibitionTime=e),"show-button":!1},null,8,["value"]),_(u,null,{default:m((()=>[x(f(e.$t("Security.SiteSecurity.Metric.seconds")),1)])),_:1})])),_:1})])),_:1})])),_:1},8,["model"]),_(c,null,{default:m((()=>[b("li",{textContent:f(e.$t("Monitor SSHD service logs, and prohibit IP access for 86400 seconds if the IP exceeds the maximum number of retries (5 times) within the set period (300 seconds)"))},null,8,t)])),_:1})])),_:1},8,["show"])}}}))}}}));
