import { r as registerInstance, c as createEvent, h, H as Host } from './index-ecdfb761.js';
import { S as SozlukApi } from './index-3bf9b308.js';
import { s as sozlukEntries, d as MentornityAnnouncementWrapperI18nKey, e as mentornityAnnouncementWrapperI18nDefault } from './sozluk-entries-1e8f5234.js';
import './i18n-09a07b97.js';
import './i18n-0e757ca5.js';

const mentornityAnnouncementsDropdownMenuCss = "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)}";

const MentornityAcceptApplicationButton = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.showPreview = createEvent(this, "showPreview", 7);
    this.editAnnouncement = createEvent(this, "editAnnouncement", 7);
    this.deleteAnnouncement = createEvent(this, "deleteAnnouncement", 7);
    this.duplicateAnnouncement = createEvent(this, "duplicateAnnouncement", 7);
    this.isProgressing = false;
    this.setDictionaryLanguage = async () => {
      const apiSozluk = new SozlukApi().setLanguage(this.item.language).setContents(sozlukEntries);
      this.strings = await apiSozluk.getContent(MentornityAnnouncementWrapperI18nKey, mentornityAnnouncementWrapperI18nDefault);
    };
  }
  componentWillLoad() {
    this.setDictionaryLanguage();
  }
  render() {
    const { strings } = this;
    if (!strings)
      return;
    return (h(Host, { class: "d-flex align-items-center", style: { height: '30px' } }, h("dvn-dropdown", { placement: "bottomLeft", trigger: "click" }, h("dvn-icon-button", { iconName: 'uil uil-cog', class: "custom-settings-icon", iconScale: "large" }), h("div", { slot: "content" }, h("dvn-info-summary", { onClick: () => this.showPreview.emit(this.item), title: strings.preview }), h("dvn-info-summary", { onClick: () => this.editAnnouncement.emit(this.item), title: strings.edit }), h("dvn-info-summary", { onClick: () => this.duplicateAnnouncement.emit(this.item), title: strings.duplicate }), h("dvn-info-summary", { onClick: () => this.deleteAnnouncement.emit(this.item._id), title: strings.delete })))));
  }
};
MentornityAcceptApplicationButton.style = mentornityAnnouncementsDropdownMenuCss;

export { MentornityAcceptApplicationButton as mentornity_announcements_dropdown_menu };
