var __awaiter=this&&this.__awaiter||function(n,t,e,o){function r(n){return n instanceof e?n:new e((function(t){t(n)}))}return new(e||(e=Promise))((function(e,i){function c(n){try{s(o.next(n))}catch(n){i(n)}}function a(n){try{s(o["throw"](n))}catch(n){i(n)}}function s(n){n.done?e(n.value):r(n.value).then(c,a)}s((o=o.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,c;return c={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(n){return function(t){return s([n,t])}}function s(c){if(o)throw new TypeError("Generator is already executing.");while(e)try{if(o=1,r&&(i=c[0]&2?r["return"]:c[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;if(r=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:e.label++;return{value:c[1],done:false};case 5:e.label++;r=c[1];c=[0];continue;case 7:c=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){e.label=c[1];break}if(c[0]===6&&e.label<i[1]){e.label=i[1];i=c;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(c);break}if(i[2])e.ops.pop();e.trys.pop();continue}c=t.call(n,e)}catch(n){c=[6,n];r=0}finally{o=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};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";var 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)}";var MentornityAcceptApplicationButton=function(){function n(n){var t=this;registerInstance(this,n);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=function(){return __awaiter(t,void 0,void 0,(function(){var n,t;return __generator(this,(function(e){switch(e.label){case 0:n=(new SozlukApi).setLanguage(this.item.language).setContents(sozlukEntries);t=this;return[4,n.getContent(MentornityAnnouncementWrapperI18nKey,mentornityAnnouncementWrapperI18nDefault)];case 1:t.strings=e.sent();return[2]}}))}))}}n.prototype.componentWillLoad=function(){this.setDictionaryLanguage()};n.prototype.render=function(){var n=this;var t=this.strings;if(!t)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:function(){return n.showPreview.emit(n.item)},title:t.preview}),h("dvn-info-summary",{onClick:function(){return n.editAnnouncement.emit(n.item)},title:t.edit}),h("dvn-info-summary",{onClick:function(){return n.duplicateAnnouncement.emit(n.item)},title:t.duplicate}),h("dvn-info-summary",{onClick:function(){return n.deleteAnnouncement.emit(n.item._id)},title:t.delete}))))};return n}();MentornityAcceptApplicationButton.style=mentornityAnnouncementsDropdownMenuCss;export{MentornityAcceptApplicationButton as mentornity_announcements_dropdown_menu};