var __awaiter=this&&this.__awaiter||function(n,t,e,o){function i(n){return n instanceof e?n:new e((function(t){t(n)}))}return new(e||(e=Promise))((function(e,r){function u(n){try{c(o.next(n))}catch(n){r(n)}}function s(n){try{c(o["throw"](n))}catch(n){r(n)}}function c(n){n.done?e(n.value):i(n.value).then(u,s)}c((o=o.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,u;return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(n){return function(t){return c([n,t])}}function c(u){if(o)throw new TypeError("Generator is already executing.");while(e)try{if(o=1,i&&(r=u[0]&2?i["return"]:u[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;if(i=0,r)u=[u[0]&2,r.value];switch(u[0]){case 0:case 1:r=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;i=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){e.label=u[1];break}if(u[0]===6&&e.label<r[1]){e.label=r[1];r=u;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(u);break}if(r[2])e.ops.pop();e.trys.pop();continue}u=t.call(n,e)}catch(n){u=[6,n];i=0}finally{o=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-343b3b10.system.js","./p-83b75450.system.js","./p-577b99c3.system.js","./p-451fa62c.system.js","./p-520803d3.system.js"],(function(n){"use strict";var t,e,o,i,r,u,s,c;return{setters:[function(n){t=n.r;e=n.c;o=n.h;i=n.H},function(n){r=n.S},function(n){u=n.s;s=n.d;c=n.e},function(){},function(){}],execute:function(){var a="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 l=n("mentornity_announcements_dropdown_menu",function(){function n(n){var o=this;t(this,n);this.showPreview=e(this,"showPreview",7);this.editAnnouncement=e(this,"editAnnouncement",7);this.deleteAnnouncement=e(this,"deleteAnnouncement",7);this.duplicateAnnouncement=e(this,"duplicateAnnouncement",7);this.isProgressing=false;this.setDictionaryLanguage=function(){return __awaiter(o,void 0,void 0,(function(){var n,t;return __generator(this,(function(e){switch(e.label){case 0:n=(new r).setLanguage(this.item.language).setContents(u);t=this;return[4,n.getContent(s,c)];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 o(i,{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:function(){return n.showPreview.emit(n.item)},title:t.preview}),o("dvn-info-summary",{onClick:function(){return n.editAnnouncement.emit(n.item)},title:t.edit}),o("dvn-info-summary",{onClick:function(){return n.duplicateAnnouncement.emit(n.item)},title:t.duplicate}),o("dvn-info-summary",{onClick:function(){return n.deleteAnnouncement.emit(n.item._id)},title:t.delete}))))};return n}());l.style=a}}}));