import{_ as y,b as $,r as c,ah as w,o as D,y as E,q as a,P as r,x as p,v as k,p as s,n as x,S as I,j as B,k as C,m as M,l as N,bv as P,D as R}from"./index.8d733f79.js";import{m as S,z as q}from"./diagnosticReport.fd129147.js";const F={class:"dialog-footer"},U={__name:"descTemplate",setup(j,{expose:d}){const{t:u}=$(),{proxy:i}=R(),l=c(!1),o=c({descriptionTemplate:""}),f=w({descriptionTemplate:[{required:!0,message:u("abstractP"),trigger:"blur"}]});function _(){l.value=!0,setTimeout(()=>{i.$refs.formRef.clearValidate()},0),o.value.descriptionTemplate="",v()}function v(){S().then(e=>{o.value.descriptionTemplate=e.data||""})}function T(){i.$refs.formRef.validate(e=>{e&&q(o.value).then(t=>{I.success(t.msg),l.value=!1})})}return d({showModal:_}),(e,t)=>{const g=B,b=C,V=M,m=N,h=P;return D(),E(h,{modelValue:l.value,"onUpdate:modelValue":t[2]||(t[2]=n=>l.value=n),width:"480","align-center":""},{header:a(()=>[r(p(e.$t("descTemplate")),1)]),footer:a(()=>[k("span",F,[s(m,{onClick:t[1]||(t[1]=n=>l.value=!1)},{default:a(()=>[r(p(e.$t("cancel")),1)]),_:1}),s(m,{type:"primary",onClick:T},{default:a(()=>[r(p(e.$t("confirm")),1)]),_:1})])]),default:a(()=>[s(V,{model:o.value,rules:x(f),ref:"formRef","label-position":"top"},{default:a(()=>[s(b,{label:e.$t("abstract"),prop:"descriptionTemplate"},{default:a(()=>[s(g,{modelValue:o.value.descriptionTemplate,"onUpdate:modelValue":t[0]||(t[0]=n=>o.value.descriptionTemplate=n),rows:4,type:"textarea",placeholder:e.$t("abstractP"),"show-word-limit":"",maxlength:"2000"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}},G=y(U,[["__scopeId","data-v-a2f38ca0"]]);export{G as default};
