import{c as e,o as l,a1 as a,k as s,l as o,e as r,x as t,q as p,p as i,J as d,z as n,ag as u,ah as m,a7 as c,bW as _,a4 as b}from"./base-lib.js?v=1761009159";import{l as f}from"./utils-lib.js?v=1761009159";import{i as v,$ as x,o as h,t as V,c as g,e as j,s as C,a as k,b as w,d as y,f as U,r as E}from"./index127.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index105.js?v=1761009159";import"./useController3.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./useStore2.js?v=1761009159";import"./index15.js?v=1761009159";import"./index118.js?v=1761009159";import"./index125.js?v=1761009159";import"./index.vue_vue_type_script_setup_true_lang3.js?v=1761009159";const S={class:"p-20px"},R={class:"flex items-center"},q={class:"flex items-center"},z=e({__name:"add-event",setup:(e,{expose:z})=>(l(v),a(x),z({onConfirm:h}),(e,l)=>{const a=u,v=m,x=f,h=c,z=_,H=b;return s(),o("div",S,[r(H,{ref_key:"taskEventRef",ref:U,"label-width":"80px",model:i(V),rules:i(E)},{default:t((()=>[r(h,{label:"当执行结果"},{default:t((()=>[p("div",R,[r(v,{modelValue:i(V).operator,"onUpdate:modelValue":l[0]||(l[0]=e=>i(V).operator=e),class:"!w-[16rem]"},{default:t((()=>[r(a,{label:"包含",value:"in"}),r(a,{label:"不包含",value:"not in"}),r(a,{label:"等于",value:"="}),r(a,{label:"不等于",value:"!="}),r(a,{label:"大于",value:">"}),r(a,{label:"大于等于",value:">="}),r(a,{label:"小于",value:"<"}),r(a,{label:"小于等于",value:"<="})])),_:1},8,["modelValue"]),r(h,{label:"",prop:"op_value"},{default:t((()=>[r(x,{modelValue:i(V).op_value,"onUpdate:modelValue":l[1]||(l[1]=e=>i(V).op_value=e),class:"ml-[6px]",placeholder:"请输入比较值"},null,8,["modelValue"])])),_:1})])])),_:1}),r(h,{label:"运行",prop:"run_script_id"},{default:t((()=>[p("div",q,[r(v,{class:"mr-12px !w-[16rem]",modelValue:i(V).on,"onUpdate:modelValue":l[2]||(l[2]=e=>i(V).on=e)},{default:t((()=>[r(a,{label:"脚本库",value:"script"})])),_:1},8,["modelValue"]),r(z,{"show-all-levels":!1,onChange:i(g),onExpandChange:i(j),onVisibleChange:i(C),class:"!w-[24rem]","popper-class":"task-cascader",modelValue:i(V).run_script_id,"onUpdate:modelValue":l[3]||(l[3]=e=>i(V).run_script_id=e),ref_key:"scriptSectionRef",ref:k,props:{label:"name",value:"script_id",children:"script_list",multiple:!0,checkStrictly:!0},options:i(w),placeholder:"请选择脚本,支持搜索","collapse-tags":"","collapse-tags-tooltip":"",filterable:""},null,8,["onChange","onExpandChange","onVisibleChange","modelValue","options"])])])),_:1}),i(y).is_args?(s(),d(h,{key:0,label:i(y).args_title,prop:"args"},{default:t((()=>[r(x,{placeholder:i(y).args_holder,modelValue:i(V).args,"onUpdate:modelValue":l[4]||(l[4]=e=>i(V).args=e),width:"32.2rem"},null,8,["placeholder","modelValue"])])),_:1},8,["label"])):n("",!0)])),_:1},8,["model","rules"])])})});export{z as default};
