ReplyForm-107b1793.js 4.4 KB

1
  1. import{d as E,K as g,r as F,o as r,c as p,f as u,w as o,a,v as s,F as n,q,P as c,O as P,y as A,z,A as D,V as O,D as S,_ as j,__tla as Y}from"./index-6d7b82ba.js";import C,{__tla as G}from"./main-4c275b3b.js";import{M as i}from"./types-5e186e8c.js";import{d as H,D as V,a as L,__tla as N}from"./dict-efb5f3b6.js";import{__tla as Q}from"./TabNews-b25926f8.js";import{__tla as B}from"./main-6c826b4f.js";import{__tla as I}from"./el-image-afb9e567.js";import{__tla as J}from"./el-image-viewer-4a19ded4.js";import{__tla as W}from"./main-36dffe1f.js";import{__tla as X}from"./index-a786614b.js";import{__tla as Z}from"./index-e37504b6.js";import{__tla as $}from"./main-f7579312.js";import{__tla as ee}from"./main-e508158f.js";import{__tla as ae}from"./index-e60e97b2.js";import{__tla as te}from"./index-d00e2d00.js";import{__tla as re}from"./formatTime-d24faf41.js";import{__tla as le}from"./TabText-126f5e65.js";import{__tla as _e}from"./TabImage-a7ffc173.js";import{__tla as oe}from"./useUpload-917ff9fe.js";import{__tla as ue}from"./useMessage-be161634.js";import{__tla as se}from"./TabVoice-9436e3cf.js";import{__tla as me}from"./TabVideo-39eeee67.js";import{__tla as pe}from"./TabMusic-01e3ffcb.js";let M,ce=Promise.all([(()=>{try{return Y}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return W}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 re}catch{}})(),(()=>{try{return le}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=j(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(w,{expose:T,emit:k}){const f=w,h=k,d=g({get:()=>f.reply,set:t=>h("update:reply",t)}),_=g({get:()=>f.modelValue,set:t=>h("update:modelValue",t)}),y=F(null),x=["text","image","voice","video","shortvideo","location","link"],K={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 T({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,l)=>{const v=A,b=z,m=D,R=O,U=S;return r(),p("div",null,[u(U,{ref_key:"formRef",ref:y,model:a(_),rules:K,"label-width":"80px"},{default:o(()=>[t.msgType===a(i).Message?(r(),s(m,{key:0,label:"\u6D88\u606F\u7C7B\u578B",prop:"requestMessageType"},{default:o(()=>[u(b,{modelValue:a(_).requestMessageType,"onUpdate:modelValue":l[0]||(l[0]=e=>a(_).requestMessageType=e),placeholder:"\u8BF7\u9009\u62E9"},{default:o(()=>[(r(!0),p(n,null,q(a(H)(a(V).MP_MESSAGE_TYPE),e=>(r(),p(n,{key:e.value},[x.includes(e.value)?(r(),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?(r(),s(m,{key:1,label:"\u5339\u914D\u7C7B\u578B",prop:"requestMatch"},{default:o(()=>[u(b,{modelValue:a(_).requestMatch,"onUpdate:modelValue":l[1]||(l[1]=e=>a(_).requestMatch=e),placeholder:"\u8BF7\u9009\u62E9\u5339\u914D\u7C7B\u578B",clearable:""},{default:o(()=>[(r(!0),p(n,null,q(a(L)(a(V).MP_AUTO_REPLY_REQUEST_MATCH),e=>(r(),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?(r(),s(m,{key:2,label:"\u5173\u952E\u8BCD",prop:"requestKeyword"},{default:o(()=>[u(R,{modelValue:a(_).requestKeyword,"onUpdate:modelValue":l[2]||(l[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(C),{modelValue:a(d),"onUpdate:modelValue":l[3]||(l[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};