System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BCiDzEG_.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BSEuMBcc.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./alarm-legacy-wcthH3Ek.js?v=1773287522785","./alarm-legacy-B0l3BTRO.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BQ2Kqzbl.js?v=1773287522785","./index-legacy-sO5zj2jA.js?v=1773287522785","./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BWPgT9-g.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BBkGleHZ.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BtQUnlS_.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BtujQJPk.js?v=1773287522785","./index-legacy-DGWsVoxN.js?v=1773287522785","./index-legacy-Cv0QQQJ6.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785","./echarts-legacy-BoTEinQo.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./useSocket-legacy-D9BDJ2id.js?v=1773287522785"],(function(e,l){"use strict";var a,t,u,n,s,_,c,i,r,y,g,d,p,v,o,j,x,f,m,h,b,w,S,C,$,k;return{setters:[e=>{a=e._},e=>{t=e._},e=>{u=e.u},e=>{n=e.b,s=e.s,_=e.c},e=>{c=e.k,i=e.a6,r=e.R,y=e.r,g=e.e,d=e.$,p=e.Z,v=e.a0,o=e.a9,j=e.S,x=e.j,f=e.aa,m=e._},e=>{h=e.i},e=>{b=e.a1,w=e.a8,S=e.au,C=e._,$=e.av,k=e.a9},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"p-16px"},R={class:"w-250px"};e("default",c({__name:"risk-info-form",setup(e,{expose:c}){const U=n(),{capabilitySwitch:Z}=i(U),{t:q}=r(),H=y(null),L=g({status:!0,day:1,channel:""}),T={day:{trigger:"input",type:"number",required:!0,message:q("Home.Security.index_58")},method:{trigger:"change",required:!0,message:q("Config.Safe.index_7")}},{loading:D,setLoading:N}=u();return(async()=>{try{N(!0);const{message:e}=await _();h(e)&&(L.status=1===e.status,L.day=e.cycle,L.channel=e.channel)}finally{N(!1)}})(),c({onConfirm:async()=>{await(H.value?.validate()),await s({status:L.status?1:0,day:L.day,channel:L.channel}),Z.value.vul_scan.status=L.status}}),(e,u)=>{const n=w,s=b,_=C,c=$,i=S,r=t,y=a,g=k;return d(),p("div",l,[v(g,{show:j(D)},{default:o((()=>[v(y,{ref_key:"formRef",ref:H,model:j(L),rules:T,"label-width":150},{default:o((()=>[v(s,{label:e.$t("Home.Security.index_38")},{default:o((()=>[v(n,{value:j(L).status,"onUpdate:value":u[0]||(u[0]=e=>j(L).status=e)},null,8,["value"])])),_:1},8,["label"]),v(s,{label:e.$t("Waf.Setting.config_49"),path:"day"},{default:o((()=>[v(i,null,{default:o((()=>[v(_,{value:j(L).day,"onUpdate:value":u[1]||(u[1]=e=>j(L).day=e),class:"w-100px",min:0,"show-button":!1,placeholder:""},null,8,["value"]),v(c,{class:"min-w-52px text-center"},{default:o((()=>[x(f(e.$t("Crontab.arrange.index_41")),1)])),_:1})])),_:1})])),_:1},8,["label"]),v(s,{label:e.$t("Config.Safe.index_6"),path:"channel"},{default:o((()=>[m("div",R,[v(r,{value:j(L).channel,"onUpdate:value":u[2]||(u[2]=e=>j(L).channel=e),multiple:!1},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])),_:1},8,["show"])])}}}))}}}));
