import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1764830988434";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang15.js?v=1764830988434";import{d as a}from"./public.js?v=1764830988434";import{C as s,D as i}from"./index40.js?v=1764830988434";import{a as u}from"./index.vue_vue_type_script_setup_true_lang22.js?v=1764830988434";import{k as n,a0 as r,P as l,r as _,e as p,R as o,V as d,W as m,a3 as c,U as v,j as f,a4 as j,S as x}from"./vue.js?v=1764830988434";import{T as y,d as g}from"./page_layout.js?v=1764830988434";import{dR as h,dj as b,av as w,df as S,dZ as C}from"./naive.js?v=1764830988434";import"./alarm.js?v=1764830988434";import"./common.js?v=1764830988434";import"./__commonjsHelpers__.js?v=1764830988434";import"./index100.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang11.js?v=1764830988434";import"./soft.js?v=1764830988434";import"./site.js?v=1764830988434";import"./index169.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang13.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1764830988434";import"./index246.js?v=1764830988434";import"./index.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang9.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang10.js?v=1764830988434";import"./index96.js?v=1764830988434";import"./index107.js?v=1764830988434";import"./echarts.js?v=1764830988434";const U={class:"p-16px"},$={class:"w-250px"},k=n({__name:"risk-info-form",setup(n,{expose:k}){const H=u(),{capabilitySwitch:R}=r(H),{t:q}=l(),W=_(null),D=p({status:!0,day:1,channel:""}),L={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:P,setLoading:T}=a();return(async()=>{try{T(!0);const{message:e}=await i();g(e)&&(D.status=1===e.status,D.day=e.cycle,D.channel=e.channel)}finally{T(!1)}})(),k({onConfirm:async()=>{var e;await(null==(e=W.value)?void 0:e.validate()),await s({status:D.status?1:0,day:D.day,channel:D.channel}),R.value.vul_scan.status=D.status}}),(a,s)=>{const i=b,u=h,n=S,r=C,l=w,_=t,p=e,g=y;return d(),o("div",U,[m(g,{show:v(P)},{default:c(()=>[m(p,{ref_key:"formRef",ref:W,model:v(D),rules:L,"label-width":150},{default:c(()=>[m(u,{label:a.$t("Home.Security.index_38")},{default:c(()=>[m(i,{value:v(D).status,"onUpdate:value":s[0]||(s[0]=e=>v(D).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(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"]),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(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};
