import{r as n,c as t,h as o,H as s}from"./p-9f21f85f.js";import{S as i}from"./p-c2c9e896.js";import{s as e,d as r,e as c}from"./p-cb585cde.js";import"./p-3d141e05.js";import"./p-d59ffc5b.js";const m=class{constructor(o){n(this,o),this.showPreview=t(this,"showPreview",7),this.editAnnouncement=t(this,"editAnnouncement",7),this.deleteAnnouncement=t(this,"deleteAnnouncement",7),this.duplicateAnnouncement=t(this,"duplicateAnnouncement",7),this.isProgressing=!1,this.setDictionaryLanguage=async()=>{const n=(new i).setLanguage(this.item.language).setContents(e);this.strings=await n.getContent(r,c)}}componentWillLoad(){this.setDictionaryLanguage()}render(){const{strings:n}=this;if(n)return o(s,{class:"d-flex align-items-center",style:{height:"30px"}},o("dvn-dropdown",{placement:"bottomLeft",trigger:"click"},o("dvn-icon-button",{iconName:"uil uil-cog",class:"custom-settings-icon",iconScale:"large"}),o("div",{slot:"content"},o("dvn-info-summary",{onClick:()=>this.showPreview.emit(this.item),title:n.preview}),o("dvn-info-summary",{onClick:()=>this.editAnnouncement.emit(this.item),title:n.edit}),o("dvn-info-summary",{onClick:()=>this.duplicateAnnouncement.emit(this.item),title:n.duplicate}),o("dvn-info-summary",{onClick:()=>this.deleteAnnouncement.emit(this.item._id),title:n.delete}))))}};m.style="mentornity-announcements-dropdown-menu dvn-info-summary{cursor:pointer;width:100%}mentornity-announcements-dropdown-menu .custom-settings-icon button{background-color:var(--color-neutral-lightest);border:var(--color-neutral-lightest)}mentornity-announcements-dropdown-menu .custom-settings-icon i{color:var(--color-text-title)}mentornity-announcements-dropdown-menu dvn-info-summary:hover{background-color:var(--color-background-secondary)}";export{m as mentornity_announcements_dropdown_menu}