define(["exports","./../modules/common/itemmanager/itemmanager.js","./../modules/common/itemmanager/genericitemcontroller.js","./../modules/common/globalize.js","./codeceditor.js"],function(_exports,_itemmanager,_genericitemcontroller,_globalize,_codeceditor){function CodecController(){_genericitemcontroller.default.apply(this,arguments)}function showCodecEditor(item,editParams){return _codeceditor.default.show(item.OriginalItem,editParams).then(function(){})}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,Object.assign(CodecController.prototype,_genericitemcontroller.default.prototype),CodecController.prototype.getTypeNames=function(){return["Codec"]},CodecController.prototype.getDisplayName=function(item,options){return item.Name},CodecController.prototype.isSingleItemFetchRequired=function(typeName){return!1},CodecController.prototype.getDefaultIcon=function(item){return"Decoder"===item.OriginalItem.Direction?"input":"output"},CodecController.prototype.canDelete=function(item,user){return!1},CodecController.prototype.canEdit=function(items,user){return 1===items.length&&!!items[0].OriginalItem.SupportsParameters},CodecController.prototype.getEditCommand=function(items){return{name:_globalize.default.translate("Settings"),id:"edit",icon:"settings"}},CodecController.prototype.editItems=function(items,options){return showCodecEditor(items[0],!0)},CodecController.prototype.getCommands=function(options){var commands=_genericitemcontroller.default.prototype.getCommands.apply(this,arguments),items=options.items;return 1===items.length&&items[0].OriginalItem.IsHardwareCodec&&commands.push({name:_globalize.default.translate("Info"),id:"codecinfo",icon:"info"}),commands},CodecController.prototype.executeCommand=function(command,items,options){return"codecinfo"!==command?_genericitemcontroller.default.prototype.executeCommand.apply(this,arguments):showCodecEditor(items[0],!1)},CodecController.prototype.moveInOrder=function(items,options){return Promise.resolve()};var instance=new CodecController;_itemmanager.default.registerItemController(instance),_exports.default=instance});