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