import{_ as p}from"./index.vue_vue_type_script_setup_true_lang.170379627897310.js";import r from"./index.170379627897384.js";import f from"./index.170379627897382.js";import{d as v,o,x as T,c as l,y as k,B as N}from"./vue.1703796278973.js";const S=v({__name:"ActionTypeComponent",props:{branchesName:{type:Number,default:0},thenName:{type:Number,default:0},name:{type:Number,default:0},data:{type:Object},parallel:{type:Boolean},actionType:{type:String,default:""},options:{type:Object,default:()=>({})}},emits:["cancel","save"],setup(e,{emit:y}){const t=e,c=()=>{y("cancel")},i=(m,u)=>{var a;const n={type:t.actionType,executor:t.actionType,key:((a=t==null?void 0:t.data)==null?void 0:a.key)||`${t.actionType}_${new Date().getTime()}`,[t.actionType]:{...m}};y("save",{...n},u)};return(m,u)=>{var n,a,s,d;return o(),T("div",null,[e.actionType==="device"?(o(),l(f,k({key:0},t,{value:(n=e.data)==null?void 0:n.device,options:e.options,onCancel:c,onSave:i}),null,16,["value","options"])):e.actionType==="notify"?(o(),l(r,{key:1,options:(a=e.data)==null?void 0:a.options,value:(s=e.data)==null?void 0:s.notify,onCancel:c,onSave:i},null,8,["options","value"])):e.actionType==="delay"?(o(),l(p,{key:2,value:(d=e.data)==null?void 0:d.delay,onCancel:c,onSave:i},null,8,["value"])):N("",!0)])}}});export{S as _};
