ReplyForm-3f1f4bc9.js 4.4 KB

1
  1. import{d as E,e as g,r as K,o as l,c as p,f as u,A as o,a,C as s,F as n,R as V,a3 as c,a2 as P,S as A,U as S,V as j,a9 as z,W as C,_ as D,__tla as O}from"./index-286756b9.js";import Y,{__tla as G}from"./main-a55ef504.js";import{M as i}from"./types-5e186e8c.js";import{b as H,D as q,a as L,__tla as N}from"./dict-82dca549.js";import{__tla as Q}from"./TabNews-aaea42ae.js";import{__tla as W}from"./main-2691e73f.js";import{__tla as B}from"./el-image-73c105b7.js";import{__tla as I}from"./el-image-viewer-e0e5d3be.js";import{__tla as J}from"./main-fb0230ec.js";import{__tla as X}from"./index-ed6c67a8.js";import{__tla as Z}from"./index-fb47c94c.js";import{__tla as $}from"./main-12ab9f27.js";import{__tla as ee}from"./main-53b5a2f2.js";import{__tla as ae}from"./index-dab960b4.js";import{__tla as te}from"./index-2090e37e.js";import{__tla as le}from"./formatTime-83e416ef.js";import{__tla as re}from"./TabText-b969d16a.js";import{__tla as _e}from"./TabImage-da6f1423.js";import{__tla as oe}from"./useUpload-3c8bb42c.js";import{__tla as ue}from"./useMessage-084b1e70.js";import{__tla as se}from"./TabVoice-0e9a0b66.js";import{__tla as me}from"./TabVideo-a27283f3.js";import{__tla as pe}from"./TabMusic-43e47306.js";let M,ce=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ee}catch{}})(),(()=>{try{return ae}catch{}})(),(()=>{try{return te}catch{}})(),(()=>{try{return le}catch{}})(),(()=>{try{return re}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return oe}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return se}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return pe}catch{}})()]).then(async()=>{M=D(E({name:"ReplyForm",__name:"ReplyForm",props:{modelValue:{type:null,required:!0},reply:{type:Object,required:!0},msgType:{type:Number,required:!0}},emits:["update:reply","update:modelValue"],setup(T,{expose:w,emit:k}){const f=T,h=k,d=g({get:()=>f.reply,set:t=>h("update:reply",t)}),_=g({get:()=>f.modelValue,set:t=>h("update:modelValue",t)}),y=K(null),R=["text","image","voice","video","shortvideo","location","link"],x={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 w({resetFields:()=>{var t;return(t=y.value)==null?void 0:t.resetFields()},validate:async()=>{var t;return(t=y.value)==null?void 0:t.validate()}}),(t,r)=>{const v=A,b=S,m=j,U=z,F=C;return l(),p("div",null,[u(F,{ref_key:"formRef",ref:y,model:a(_),rules:x,"label-width":"80px"},{default:o(()=>[t.msgType===a(i).Message?(l(),s(m,{key:0,label:"\u6D88\u606F\u7C7B\u578B",prop:"requestMessageType"},{default:o(()=>[u(b,{modelValue:a(_).requestMessageType,"onUpdate:modelValue":r[0]||(r[0]=e=>a(_).requestMessageType=e),placeholder:"\u8BF7\u9009\u62E9"},{default:o(()=>[(l(!0),p(n,null,V(a(H)(a(q).MP_MESSAGE_TYPE),e=>(l(),p(n,{key:e.value},[R.includes(e.value)?(l(),s(v,{key:0,label:e.label,value:e.value},null,8,["label","value"])):c("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1})):c("",!0),t.msgType===a(i).Keyword?(l(),s(m,{key:1,label:"\u5339\u914D\u7C7B\u578B",prop:"requestMatch"},{default:o(()=>[u(b,{modelValue:a(_).requestMatch,"onUpdate:modelValue":r[1]||(r[1]=e=>a(_).requestMatch=e),placeholder:"\u8BF7\u9009\u62E9\u5339\u914D\u7C7B\u578B",clearable:""},{default:o(()=>[(l(!0),p(n,null,V(a(L)(a(q).MP_AUTO_REPLY_REQUEST_MATCH),e=>(l(),s(v,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):c("",!0),t.msgType===a(i).Keyword?(l(),s(m,{key:2,label:"\u5173\u952E\u8BCD",prop:"requestKeyword"},{default:o(()=>[u(U,{modelValue:a(_).requestKeyword,"onUpdate:modelValue":r[2]||(r[2]=e=>a(_).requestKeyword=e),placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9",clearable:""},null,8,["modelValue"])]),_:1})):c("",!0),u(m,{label:"\u56DE\u590D\u6D88\u606F"},{default:o(()=>[u(a(Y),{modelValue:a(d),"onUpdate:modelValue":r[3]||(r[3]=e=>P(d)?d.value=e:null)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mp/autoReply/components/ReplyForm.vue"]])});export{ce as __tla,M as default};