import{o as l,c as m,w as o,b as s,a as t,g as i,D as u,t as _,u as n,F as d,d as p,e as f}from"./app-BYcXwl4U.js";import{P as h}from"./app-Doj30F-n.js";import{i as w,c as x}from"./app-a6cKceqE.js";import{_ as v}from"./app-Ufpj4Ll4.js";import{_ as c}from"./app-DwtlHtUX.js";import{_ as V}from"./app-DiDEoOb6.js";import{_ as $}from"./app-CQ-vNlMj.js";import{_ as g}from"./app-DY-0PadZ.js";import{_ as b}from"./app-CignoBaV.js";import{D as k}from"./app-7GBSHA5C.js";import"./app-Ceh-tphd.js";import"./app-ysQ8KbGS.js";import"./app-BHl80pFw.js";import"./app-BG60hdvp.js";import"./app-CrjU8lgK.js";function D(){w(this)}const y=t("td",{class:"title"},"策略名称 *",-1),B=t("p",{class:"comment"},"给策略起一个容易识别的名字。",-1),C=t("td",null,"启用预置的规则",-1),O={class:"grid grid-cols-2 gap-2"},S=t("p",{class:"comment"},"可以启用一些我们预置的规则组。",-1),P={colspan:"2"},F=t("td",null,"描述",-1),L=t("td",null,"启用当前分组",-1),Y={__name:"createPopup",setup(N){const a=x(new D);return(U,E)=>(l(),m(h,null,{default:o(()=>[s($,{action:"$",onSuccess:n(a).success},{default:o(()=>[s(k,null,{default:o(()=>[t("tbody",null,[t("tr",null,[y,t("td",null,[s(v,{name:"name",maxlength:"100",autofocus:"",class:"w-full"}),B])]),t("tr",null,[C,t("td",null,[t("div",O,[(l(!0),i(d,null,u(n(a).groups,e=>(l(),i("div",null,[s(c,{name:"groupCodes",value:e.code,modelValue:e.isOn,"onUpdate:modelValue":r=>e.isOn=r},{default:o(()=>[t("span",null,_(e.name),1)]),_:2},1032,["value","modelValue","onUpdate:modelValue"])]))),256))]),S])]),t("tr",null,[t("td",P,[s(V)])])]),p(t("tbody",null,[t("tr",null,[F,t("td",null,[s(g,{name:"description",rows:"3",class:"w-full"})])]),t("tr",null,[L,t("td",null,[s(c,{name:"isOn",value:"1",checked:"checked"})])])],512),[[f,n(a).moreOptionsVisible]])]),_:1}),s(b)]),_:1},8,["onSuccess"])]),_:1}))}};export{Y as default};
