import{a as g}from"./comm.1703796278973.js";import{d as c,l as m,o as n,x as i,F as v,h as y,z as a,A as o,D as r,u as f}from"./vue.1703796278973.js";const h=["onClick"],b={class:"way-item-title"},k={class:"way-item-image"},w=["src"],C=c({name:"TriggerWay"}),S=c({...C,props:{modelValue:{type:String,default:""},className:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:d}){const s=t,u=[{value:"device",label:"设备触发",tip:"适用于设备数据或行为满足触发条件时，执行指定的动作",image:g("/device-trigger.png")}],p=m(()=>({[s.className]:!0,"scene-trigger-way-warp":!0,disabled:s.disabled})),_=l=>{s.disabled||d("update:modelValue",l)};return(l,V)=>(n(),i("div",{class:r(f(p))},[(n(),i(v,null,y(u,e=>a("div",{key:e.value,class:r(["trigger-way-item",t.modelValue===e.value?"active":""]),onClick:x=>_(e.value)},[a("div",b,[a("p",null,o(e.label),1),a("span",null,o(e.tip),1)]),a("div",k,[a("img",{width:"40",src:e.image},null,8,w)])],10,h)),64))],2))}});export{S as _};
