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