System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy10.js?v=1753954525509","./public-legacy.js?v=1753954525509","./index-legacy41.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy24.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./alarm-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./index-legacy98.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy12.js?v=1753954525509","./soft-legacy.js?v=1753954525509","./index-legacy161.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy15.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1753954525509","./index-legacy237.js?v=1753954525509","./index-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy11.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy9.js?v=1753954525509","./index-legacy96.js?v=1753954525509","./index-legacy102.js?v=1753954525509","./echarts-legacy.js?v=1753954525509"],(function(e,l){"use strict";var a,t,u,n,s,_,c,i,r,y,d,g,p,v,o,x,j,f,m,h,b,w,S,C,$,U;return{setters:[e=>{a=e._},e=>{t=e._},e=>{u=e.c},e=>{n=e.C,s=e.D},e=>{_=e.a},e=>{c=e.k,i=e.$,r=e.P,y=e.r,d=e.e,g=e.U,p=e.V,v=e.Q,o=e.a2,x=e.X,j=e.j,f=e.a3,m=e.W},e=>{h=e.c,b=e.O},e=>{w=e.c5,S=e.cA,C=e.c1,$=e.cI,U=e.av},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"},k={class:"w-250px"};e("default",c({__name:"risk-info-form",setup(e,{expose:c}){const H=_(),{capabilitySwitch:q}=i(H),{t:W}=r(),A=y(null),D=d({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}=u();return(async()=>{try{O(!0);const{message:e}=await s();h(e)&&(D.status=1===e.status,D.day=e.cycle,D.channel=e.channel)}finally{O(!1)}})(),c({onConfirm:async()=>{await(A.value?.validate()),await n({status:D.status?1:0,day:D.day,channel:D.channel}),q.value.vul_scan.status=D.status}}),(e,u)=>{const n=w,s=S,_=C,c=$,i=U,r=t,y=a,d=b;return g(),p("div",l,[v(d,{show:x(L)},{default:o((()=>[v(y,{ref_key:"formRef",ref:A,model:x(D),rules:I,"label-width":150},{default:o((()=>[v(s,{label:e.$t("Home.Security.index_38")},{default:o((()=>[v(n,{value:x(D).status,"onUpdate:value":u[0]||(u[0]=e=>x(D).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:x(D).day,"onUpdate:value":u[1]||(u[1]=e=>x(D).day=e),class:"w-100px",min:0,"show-button":!1,placeholder:""},null,8,["value"]),v(c,{class:"min-w-52px text-center"},{default:o((()=>[j(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",k,[v(r,{value:x(D).channel,"onUpdate:value":u[2]||(u[2]=e=>x(D).channel=e),multiple:!1},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])),_:1},8,["show"])])}}}))}}}));
