import{W as f}from"./index.17037962789732.js";import"./index.170379627897337.js";import"./index.170379627897315.js";import{_ as u}from"./index.vue_vue_type_script_setup_true_name_Timer_lang.17037962789732.js";import{h as _}from"./util.1703796278973.js";import{d as n,k as v,v as k,o as b,c as h,a as w,b as x,u as o}from"./vue.1703796278973.js";const y=n({name:"timerAddModel"}),R=n({...y,props:{value:{type:Object,default:()=>({})}},emits:["cancel","save"],setup(i,{emit:s}){const c=i,r=v(),t=k({timer:c.value}),m=async()=>{var e;if(await((e=r.value)==null?void 0:e.validateFields())){const a=_(t.timer);s("save",t.timer,a)}},l=()=>{s("cancel")};return(d,e)=>{const a=f;return b(),h(a,{title:"触发规则",visible:"",width:820,onOk:m,onCancel:l},{default:w(()=>[x(o(u),{ref_key:"timerRef",ref:r,value:o(t).timer,"onUpdate:value":e[0]||(e[0]=p=>o(t).timer=p)},null,8,["value"])]),_:1})}}});export{R as _};
