import{d as x,e as f,r as F,o as t,c as p,f as o,B as u,a,A as d,F as i,R as h,D as _,a2 as P,S as A,U as S,V as D,a8 as Y,W as B,__tla as C}from"./index-92ad187a.js";import G,{__tla as H}from"./main-bac3c171.js";import{M as c}from"./types-5e186e8c.js";import{b as L,D as q,a as O,__tla as Q}from"./dict-221f3e01.js";let M,W=Promise.all([(()=>{try{return C}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return Q}catch{}})()]).then(async()=>{M=x({name:"ReplyForm",__name:"ReplyForm",props:{modelValue:{},reply:{},msgType:{}},emits:["update:reply","update:modelValue"],setup(T,{expose:k,emit:w}){const v=T,g=w,y=f({get:()=>v.reply,set:l=>g("update:reply",l)}),s=f({get:()=>v.modelValue,set:l=>g("update:modelValue",l)}),n=F(null),U=["text","image","voice","video","shortvideo","location","link"],E={requestKeyword:[{required:!0,message:"\u8BF7\u6C42\u7684\u5173\u952E\u5B57\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],requestMatch:[{required:!0,message:"\u8BF7\u6C42\u7684\u5173\u952E\u5B57\u7684\u5339\u914D\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]};return k({resetFields:()=>{var l;return(l=n.value)==null?void 0:l.resetFields()},validate:async()=>{var l;return(l=n.value)==null?void 0:l.validate()}}),(l,r)=>{const V=A,b=S,m=D,K=Y,R=B;return t(),p("div",null,[o(R,{ref_key:"formRef",ref:n,model:a(s),rules:E,"label-width":"80px"},{default:u(()=>[l.msgType===a(c).Message?(t(),d(m,{key:0,label:"\u6D88\u606F\u7C7B\u578B",prop:"requestMessageType"},{default:u(()=>[o(b,{modelValue:a(s).requestMessageType,"onUpdate:modelValue":r[0]||(r[0]=e=>a(s).requestMessageType=e),placeholder:"\u8BF7\u9009\u62E9"},{default:u(()=>[(t(!0),p(i,null,h(a(L)(a(q).MP_MESSAGE_TYPE),e=>(t(),p(i,{key:e.value},[U.includes(e.value)?(t(),d(V,{key:0,label:e.label,value:e.value},null,8,["label","value"])):_("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})):_("",!0),l.msgType===a(c).Keyword?(t(),d(m,{key:1,label:"\u5339\u914D\u7C7B\u578B",prop:"requestMatch"},{default:u(()=>[o(b,{modelValue:a(s).requestMatch,"onUpdate:modelValue":r[1]||(r[1]=e=>a(s).requestMatch=e),placeholder:"\u8BF7\u9009\u62E9\u5339\u914D\u7C7B\u578B",clearable:""},{default:u(()=>[(t(!0),p(i,null,h(a(O)(a(q).MP_AUTO_REPLY_REQUEST_MATCH),e=>(t(),d(V,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):_("",!0),l.msgType===a(c).Keyword?(t(),d(m,{key:2,label:"\u5173\u952E\u8BCD",prop:"requestKeyword"},{default:u(()=>[o(K,{modelValue:a(s).requestKeyword,"onUpdate:modelValue":r[2]||(r[2]=e=>a(s).requestKeyword=e),placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9",clearable:""},null,8,["modelValue"])]),_:1})):_("",!0),o(m,{label:"\u56DE\u590D\u6D88\u606F"},{default:u(()=>[o(a(G),{modelValue:a(y),"onUpdate:modelValue":r[3]||(r[3]=e=>P(y)?y.value=e:null)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])}}})});export{M as _,W as __tla};
