import{d as z,r as i,f as C,o as _,x as m,w as t,g as u,a as l,q as y,y as T,c as U,F as j,v as D,Q as A,X as B,B as G,z as J,A as M,G as P,D as Q,J as R,_ as X,__tla as E}from"./index-7d5b26d3.js";import{_ as H,__tla as I}from"./Dialog-2be588df.js";import{a as K,v as L,__tla as N}from"./index-4606aaf2.js";import{u as O,__tla as Y}from"./useMessage-c81eaa5b.js";let g,Z=Promise.all([(()=>{try{return E}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return Y}catch{}})()]).then(async()=>{g=X(z({name:"SystemSensitiveWordTestForm",__name:"SensitiveWordTestForm",setup($,{expose:x}){const f=O(),r=i(!1),d=i(!1),s=i({text:"",tags:[]}),b=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,w(),c.value=await K()}});const h=async()=>{if(n&&await n.value.validate()){d.value=!0;try{const o=s.value,e=await L(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}}},w=()=>{var o;s.value={text:"",tags:[]},(o=n.value)==null||o.resetFields()};return(o,e)=>{const V=B,p=G,k=J,F=M,S=P,v=Q,W=H,q=R;return _(),m(W,{modelValue:l(r),"onUpdate:modelValue":e[3]||(e[3]=a=>A(r)?r.value=a:null),title:"\u68C0\u6D4B\u654F\u611F\u8BCD"},{footer:t(()=>[u(v,{disabled:l(d),type:"primary",onClick:h},{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(()=>[T((_(),m(S,{ref_key:"formRef",ref:n,model:l(s),rules:l(b),"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),U(j,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"])),[[q,l(d)]])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/system/sensitiveWord/SensitiveWordTestForm.vue"]])});export{Z as __tla,g as default};
