import{r as s,c as i,h as t,H as o}from"./p-9f21f85f.js";import{C as n}from"./p-0988b316.js";import{S as e}from"./p-c2c9e896.js";import{s as l,d as r,e as c}from"./p-cb585cde.js";import"./p-65eb3f89.js";import"./p-814af281.js";import"./p-42939000.js";import"./p-3d141e05.js";import"./p-d59ffc5b.js";const a=class{constructor(t){s(this,t),this.openSelectUsersDialog=i(this,"openSelectUsersDialog",7),this.openAnnouncementReport=i(this,"openAnnouncementReport",7),this.setDictionaryLanguage=async()=>{const s=(new e).setLanguage(this.item.language).setContents(l);this.strings=await s.getContent(r,c)}}componentWillLoad(){this.setDictionaryLanguage()}render(){var s,i,l,r,c,a,m;const{strings:p}=this;if(!p)return;const d=(null===(i=null===(s=this.item)||void 0===s?void 0:s.targetList)||void 0===i?void 0:i.length)>0,h=(null===(r=null===(l=this.item)||void 0===l?void 0:l.sentEmailsAt)||void 0===r?void 0:r.length)>0&&n.format(1e3*(null===(c=this.item)||void 0===c?void 0:c.sentEmailsAt[(null===(m=null===(a=this.item)||void 0===a?void 0:a.sentEmailsAt)||void 0===m?void 0:m.length)-1]),"DD-MM-YYYY - "+("12-hour"===n.timeFormat?"hh:mm A":"HH:mm"));return t(o,null,d?t("div",{class:"d-flex align-items-center"},t("p",{class:"m-0"},e.build(p.sentOn,{date:h})),t("strong",{class:"m-0 ml-3",style:{cursor:"pointer"},onClick:()=>this.openAnnouncementReport.emit(this.item)},t("dvn-icon",{iconName:"uil uil-envelope-check"}),p.checkReport)):t("div",{class:"d-flex align-items-center"},t("dvn-button",{tint:"primary",leaned:!0,scale:"small",onClick:()=>this.openSelectUsersDialog.emit(this.item)},p.sendNow),t("p",{class:"m-0 ml-3"},p.notSent)))}};export{a as mentornity_announcements_mailing_report}