import{d as j,r as i,f as C,o as _,l as m,w as t,i as u,a as l,j as y,C as H,c as T,F as q,k as D,y as R,U as z,H as G,D as J,G as K,K as N,J as P,N as X,_ as A,__tla as B}from"./index-b2b3c6c4.js";import{_ as E,__tla as I}from"./Dialog-70b24cbf.js";import{a as L,v as M,__tla as O}from"./index-5239dc5f.js";import{u as Q,__tla as Y}from"./useMessage-a5edbb0f.js";let g,Z=Promise.all([(()=>{try{return B}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return Y}catch{}})()]).then(async()=>{g=A(j({name:"SystemSensitiveWordTestForm",__name:"SensitiveWordTestForm",setup($,{expose:x}){const f=Q(),r=i(!1),d=i(!1),s=i({text:"",tags:[]}),h=C({text:[{required:!0,message:"\u6D4B\u8BD5\u6587\u672C\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],tags:[{required:!0,message:"\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}),n=i(),c=i([]);x({open:async()=>{r.value=!0,b(),c.value=await L()}});const w=async()=>{if(n&&await n.value.validate()){d.value=!0;try{const o=s.value,e=await M(o);if(e.length===0)return void f.success("\u4E0D\u5305\u542B\u654F\u611F\u8BCD\uFF01");f.warning("\u5305\u542B\u654F\u611F\u8BCD\uFF1A"+e.join(", ")),r.value=!1}finally{d.value=!1}}},b=()=>{var o;s.value={text:"",tags:[]},(o=n.value)==null||o.resetFields()};return(o,e)=>{const V=z,p=G,k=J,F=K,U=N,v=P,S=E,W=X;return _(),m(S,{modelValue:l(r),"onUpdate:modelValue":e[3]||(e[3]=a=>R(r)?r.value=a:null),title:"\u68C0\u6D4B\u654F\u611F\u8BCD"},{footer:t(()=>[u(v,{disabled:l(d),type:"primary",onClick:w},{default:t(()=>[y("\u68C0 \u6D4B")]),_:1},8,["disabled"]),u(v,{onClick:e[2]||(e[2]=a=>r.value=!1)},{default:t(()=>[y("\u53D6 \u6D88")]),_:1})]),default:t(()=>[H((_(),m(U,{ref_key:"formRef",ref:n,model:l(s),rules:l(h),"label-width":"80px"},{default:t(()=>[u(p,{label:"\u6587\u672C",prop:"text"},{default:t(()=>[u(V,{modelValue:l(s).text,"onUpdate:modelValue":e[0]||(e[0]=a=>l(s).text=a),placeholder:"\u8BF7\u8F93\u5165\u6D4B\u8BD5\u6587\u672C",type:"textarea"},null,8,["modelValue"])]),_:1}),u(p,{label:"\u6807\u7B7E",prop:"tags"},{default:t(()=>[u(F,{modelValue:l(s).tags,"onUpdate:modelValue":e[1]||(e[1]=a=>l(s).tags=a),"allow-create":"",filterable:"",multiple:"",placeholder:"\u8BF7\u9009\u62E9\u6807\u7B7E",style:{width:"380px"}},{default:t(()=>[(_(!0),T(q,null,D(l(c),a=>(_(),m(k,{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[W,l(d)]])]),_:1},8,["modelValue"])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/system/sensitiveWord/SensitiveWordTestForm.vue"]])});export{Z as __tla,g as default};
