import{_ as M,__tla as Y}from"./Dialog-2be588df.js";import{_ as w,__tla as v}from"./Descriptions-4d9900b6.js";import{ar as u,f as x,d as P,r as t,S as C,o as H,x as E,w as f,g as F,a as s,y as I,h as L,Q as z,_ as A,__tla as U}from"./index-7d5b26d3.js";import{d as b,__tla as V}from"./formatTime-5152c108.js";import{b as j,__tla as k}from"./index-33de7f27.js";import{D as p,__tla as N}from"./dict-37d1dfe8.js";import{u as O,__tla as Q}from"./useCrudSchemas-b8e3006e.js";let i,r,y,h,R=Promise.all([(()=>{try{return Y}catch{}})(),(()=>{try{return v}catch{}})(),(()=>{try{return U}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return k}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return Q}catch{}})()]).then(async()=>{let m,o;h=async n=>await u.get({url:"/system/mail-log/page",params:n}),m=await j(),o=x([{label:"\u7F16\u53F7",field:"id"},{label:"\u53D1\u9001\u65F6\u95F4",field:"sendTime",formatter:b,search:{show:!0,component:"DatePicker",componentProps:{valueFormat:"YYYY-MM-DD HH:mm:ss",type:"daterange",defaultTime:[new Date("1 00:00:00"),new Date("1 23:59:59")]}},detail:{dateFormat:"YYYY-MM-DD HH:mm:ss"}},{label:"\u63A5\u6536\u90AE\u7BB1",field:"toMail"},{label:"\u7528\u6237\u7F16\u53F7",field:"userId",isSearch:!0,isTable:!1},{label:"\u7528\u6237\u7C7B\u578B",field:"userType",dictType:p.USER_TYPE,dictClass:"number",isSearch:!0,isTable:!1},{label:"\u90AE\u4EF6\u6807\u9898",field:"templateTitle"},{label:"\u90AE\u4EF6\u5185\u5BB9",field:"templateContent",isTable:!1},{label:"\u90AE\u7BB1\u53C2\u6570",field:"templateParams",isTable:!1},{label:"\u53D1\u9001\u72B6\u6001",field:"sendStatus",dictType:p.SYSTEM_MAIL_SEND_STATUS,dictClass:"string",isSearch:!0},{label:"\u90AE\u7BB1\u8D26\u53F7",field:"accountId",isTable:!1,search:{show:!0,component:"Select",api:()=>m,componentProps:{optionsAlias:{labelField:"mail",valueField:"id"}}}},{label:"\u53D1\u9001\u90AE\u7BB1\u5730\u5740",field:"fromMail",table:{label:"\u90AE\u7BB1\u8D26\u53F7"}},{label:"\u6A21\u677F\u7F16\u53F7",field:"templateId",isSearch:!0},{label:"\u6A21\u677F\u7F16\u7801",field:"templateCode",isTable:!1},{label:"\u6A21\u7248\u53D1\u9001\u4EBA\u540D\u79F0",field:"templateNickname",isTable:!1},{label:"\u53D1\u9001\u8FD4\u56DE\u7684\u6D88\u606F\u7F16\u53F7",field:"sendMessageId",isTable:!1},{label:"\u53D1\u9001\u5F02\u5E38",field:"sendException",isTable:!1},{label:"\u521B\u5EFA\u65F6\u95F4",field:"createTime",isTable:!1,formatter:b,detail:{dateFormat:"YYYY-MM-DD HH:mm:ss"}},{label:"\u64CD\u4F5C",field:"action",isDetail:!1}]),{allSchemas:r}=O(o),i=A(P({name:"SystemMailLogDetail",__name:"MailLogDetail",setup(n,{expose:T}){const e=t(!1),d=t(!1),_=t();return T({open:async c=>{e.value=!0,d.value=!0;try{_.value=await(async a=>await u.get({url:"/system/mail-log/get?id="+a}))(c)}finally{d.value=!1}}}),(c,a)=>{const g=w,S=M,D=C("dompurify-html");return H(),E(S,{modelValue:s(e),"onUpdate:modelValue":a[0]||(a[0]=l=>z(e)?e.value=l:null),"max-height":500,scroll:!0,title:"\u8BE6\u60C5"},{default:f(()=>[F(g,{data:s(_),schema:s(r).detailSchema},{templateContent:f(({row:l})=>[I(L("div",null,null,512),[[D,l.templateContent]])]),_:1},8,["data","schema"])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/system/mail/log/MailLogDetail.vue"]]),y=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))});export{i as M,R as __tla,r as a,y as b,h as g};
