import{d as z,r as i,e as C,o as _,x as m,w as t,f as u,a as l,y,z as R,c as T,F as j,v as q,l as D,R as H,C as A,A as B,B as G,H as K,G as P,K as X,_ as E,__tla as I}from"./index-8dc1e40a.js";import{_ as J,__tla as L}from"./Dialog-41802231.js";import{a as M,v as N,__tla as O}from"./index-ecfe2daf.js";import{u as Q,__tla as Y}from"./useMessage-7a27dd80.js";let g,Z=Promise.all([(()=>{try{return I}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return Y}catch{}})()]).then(async()=>{g=E(z({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 M()}});const w=async()=>{if(n&&await n.value.validate()){d.value=!0;try{const o=s.value,e=await N(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=H,p=A,F=B,k=G,S=K,v=P,U=J,W=X;return _(),m(U,{modelValue:l(r),"onUpdate:modelValue":e[3]||(e[3]=a=>D(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(()=>[R((_(),m(S,{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(k,{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,q(l(c),a=>(_(),m(F,{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};
