import{d as k,u as V,s as $,o as z,c as S,w as s,a as o,b as e,_ as d,e as u,f as m,g as f,t as p,h as _,i as b,j as y,k as w,l as B}from"./index-CWMhB7z4.js";import{_ as C}from"./FieldGroup.vue_vue_type_script_setup_true_lang-DZ_H-YRf.js";import{g as D,a as N}from"./schema-meta-DWUHNP8E.js";const T={class:"grid grid-cols-2 gap-4"},M=k({name:"ShwfedAlertOperationConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(g){const n=V(g,"modelValue"),v=$(),r=l=>D(v,l)??l,i=l=>N(v,l);function c(l){const t={...n.value,...l};for(const[a,x]of Object.entries(l))x===void 0&&Reflect.deleteProperty(t,a);n.value=t}return(l,t)=>(z(),S(e(C),null,{default:s(()=>[o(e(d),{orientation:"vertical"},{default:s(()=>[o(e(u),{class:"text-xs text-zinc-500"},m({default:s(()=>[f(" "+p(r("message")),1)]),_:2},[i("message")?{name:"tooltip",fn:s(()=>[o(e(_),{source:i("message"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),o(e(b),{markdown:"","model-value":n.value.message,"onUpdate:modelValue":t[0]||(t[0]=a=>c({message:a}))},null,8,["model-value"])]),_:1}),y("div",T,[o(e(d),{orientation:"vertical"},{default:s(()=>[o(e(u),{class:"text-xs text-zinc-500"},m({default:s(()=>[f(" "+p(r("icon")),1)]),_:2},[i("icon")?{name:"tooltip",fn:s(()=>[o(e(_),{source:i("icon"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),o(e(w),{"model-value":n.value.icon??"","onUpdate:modelValue":t[1]||(t[1]=a=>c(a.trim()===""?{icon:void 0}:{icon:a}))},null,8,["model-value"])]),_:1}),o(e(d),{orientation:"vertical"},{default:s(()=>[o(e(u),{class:"text-xs text-zinc-500"},m({default:s(()=>[f(" "+p(r("color")),1)]),_:2},[i("color")?{name:"tooltip",fn:s(()=>[o(e(_),{source:i("color"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),o(e(B),{"model-value":n.value.color??"","onUpdate:modelValue":t[2]||(t[2]=a=>c(a.trim()===""?{color:void 0}:{color:a}))},null,8,["model-value"])]),_:1})])]),_:1}))}});export{M as default};
