import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang10.js?v=1753954525509";import{c as a}from"./public.js?v=1753954525509";import{C as s,D as i}from"./index41.js?v=1753954525509";import{a as u}from"./index.vue_vue_type_script_setup_true_lang24.js?v=1753954525509";import{k as n,$ as r,P as l,r as _,e as p,U as o,V as m,Q as d,a2 as c,X as v,j as f,a3 as x,W as y}from"./vue.js?v=1753954525509";import{c as j,O as g}from"./page_layout.js?v=1753954525509";import{c5 as h,cA as b,c1 as w,cI as S,av as C}from"./naive.js?v=1753954525509";import"./alarm.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./index98.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang12.js?v=1753954525509";import"./soft.js?v=1753954525509";import"./index161.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang15.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1753954525509";import"./index237.js?v=1753954525509";import"./index.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang4.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang11.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang9.js?v=1753954525509";import"./index96.js?v=1753954525509";import"./index102.js?v=1753954525509";import"./echarts.js?v=1753954525509";const $={class:"p-16px"},U={class:"w-250px"},k=n({__name:"risk-info-form",setup(n,{expose:k}){const H=u(),{capabilitySwitch:q}=r(H),{t:W}=l(),A=_(null),D=p({status:!0,day:1,channel:""}),I={day:{trigger:"input",type:"number",required:!0,message:W("Home.Security.index_58")},method:{trigger:"change",required:!0,message:W("Config.Safe.index_7")}},{loading:L,setLoading:O}=a();return(async()=>{try{O(!0);const{message:e}=await i();j(e)&&(D.status=1===e.status,D.day=e.cycle,D.channel=e.channel)}finally{O(!1)}})(),k({onConfirm:async()=>{var e;await(null==(e=A.value)?void 0:e.validate()),await s({status:D.status?1:0,day:D.day,channel:D.channel}),q.value.vul_scan.status=D.status}}),(a,s)=>{const i=h,u=b,n=w,r=S,l=C,_=t,p=e,j=g;return o(),m("div",$,[d(j,{show:v(L)},{default:c((()=>[d(p,{ref_key:"formRef",ref:A,model:v(D),rules:I,"label-width":150},{default:c((()=>[d(u,{label:a.$t("Home.Security.index_38")},{default:c((()=>[d(i,{value:v(D).status,"onUpdate:value":s[0]||(s[0]=e=>v(D).status=e)},null,8,["value"])])),_:1},8,["label"]),d(u,{label:a.$t("Waf.Setting.config_49"),path:"day"},{default:c((()=>[d(l,null,{default:c((()=>[d(n,{value:v(D).day,"onUpdate:value":s[1]||(s[1]=e=>v(D).day=e),class:"w-100px",min:0,"show-button":!1,placeholder:""},null,8,["value"]),d(r,{class:"min-w-52px text-center"},{default:c((()=>[f(x(a.$t("Crontab.arrange.index_41")),1)])),_:1})])),_:1})])),_:1},8,["label"]),d(u,{label:a.$t("Config.Safe.index_6"),path:"channel"},{default:c((()=>[y("div",U,[d(_,{value:v(D).channel,"onUpdate:value":s[2]||(s[2]=e=>v(D).channel=e),multiple:!1},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])),_:1},8,["show"])])}}});export{k as default};
