'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-1141a245.js');
const index$1 = require('./index-a2e99c85.js');
const sozlukEntries = require('./sozluk-entries-3b9686e7.js');
require('./i18n-0bcf144d.js');
require('./i18n-77d45414.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) {
    index.registerInstance(this, hostRef);
    this.showPreview = index.createEvent(this, "showPreview", 7);
    this.editAnnouncement = index.createEvent(this, "editAnnouncement", 7);
    this.deleteAnnouncement = index.createEvent(this, "deleteAnnouncement", 7);
    this.duplicateAnnouncement = index.createEvent(this, "duplicateAnnouncement", 7);
    this.isProgressing = false;
    this.setDictionaryLanguage = async () => {
      const apiSozluk = new index$1.SozlukApi().setLanguage(this.item.language).setContents(sozlukEntries.sozlukEntries);
      this.strings = await apiSozluk.getContent(sozlukEntries.MentornityAnnouncementWrapperI18nKey, sozlukEntries.mentornityAnnouncementWrapperI18nDefault);
    };
  }
  componentWillLoad() {
    this.setDictionaryLanguage();
  }
  render() {
    const { strings } = this;
    if (!strings)
      return;
    return (index.h(index.Host, { class: "d-flex align-items-center", style: { height: '30px' } }, index.h("dvn-dropdown", { placement: "bottomLeft", trigger: "click" }, index.h("dvn-icon-button", { iconName: 'uil uil-cog', class: "custom-settings-icon", iconScale: "large" }), index.h("div", { slot: "content" }, index.h("dvn-info-summary", { onClick: () => this.showPreview.emit(this.item), title: strings.preview }), index.h("dvn-info-summary", { onClick: () => this.editAnnouncement.emit(this.item), title: strings.edit }), index.h("dvn-info-summary", { onClick: () => this.duplicateAnnouncement.emit(this.item), title: strings.duplicate }), index.h("dvn-info-summary", { onClick: () => this.deleteAnnouncement.emit(this.item._id), title: strings.delete })))));
  }
};
MentornityAcceptApplicationButton.style = mentornityAnnouncementsDropdownMenuCss;

exports.mentornity_announcements_dropdown_menu = MentornityAcceptApplicationButton;
