define(["exports","./baseitemcontroller.js","./../globalize.js"],function(_exports,_baseitemcontroller,_globalize){function GenericItemController(){_baseitemcontroller.default.apply(this,arguments)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,Object.assign(GenericItemController.prototype,_baseitemcontroller.default.prototype),GenericItemController.prototype.getTypeNames=function(){return["GenericListItem"]},GenericItemController.prototype.getDisplayName=function(item,options){return item.Name},GenericItemController.prototype.isSingleItemFetchRequired=function(typeName){return!1},GenericItemController.prototype.getDefaultIcon=function(item){return item.Icon||"folder"},GenericItemController.prototype.canDelete=function(item,user){return!0===item.CanDelete},GenericItemController.prototype.getDeleteCommand=function(items){var cmd=_baseitemcontroller.default.prototype.getDeleteCommand.apply(this,arguments),item=items[0];return"remove"===(null==item?void 0:item.DeleteType)&&(cmd.name=_globalize.default.translate("Remove"),cmd.icon="remove_circle"),cmd},GenericItemController.prototype.enableLibraryItemDeleteConfirmation=function(){return!1},GenericItemController.prototype.canRefreshMetadata=function(item,user){return!1},GenericItemController.prototype.getNameSortOption=function(itemType){return null},GenericItemController.prototype.canAddToPlaylist=function(item){return!1},GenericItemController.prototype.canAddToCollection=function(item,user){return!1},GenericItemController.prototype.canConvert=function(item,user){return!1},GenericItemController.prototype.canEdit=function(items,user){return 1===items.length&&!0===items[0].CanEdit},GenericItemController.prototype.canRate=function(item){return!1},GenericItemController.prototype.canMarkPlayed=function(item){return!1},GenericItemController.prototype.canEditImages=function(item,user){return!1},GenericItemController.prototype.canEditSubtitles=function(item,user){return!1},GenericItemController.prototype.editItems=function(items,options){return Promise.reject("nocommands")},GenericItemController.prototype.enableDeleteConfirmation=function(options){return!!this.getDeleteMessages(options.items[0])},GenericItemController.prototype.showDeleteConfirmation=function(options){return this.enableDeleteConfirmation(options)?_baseitemcontroller.default.prototype.showDeleteConfirmation.apply(this,arguments):Promise.resolve()},GenericItemController.prototype.isDeletePrimaryCommand=function(itemType){return!0},GenericItemController.prototype.getDeleteMessages=function(item){return"remove"===item.DeleteType?{single:{text:_globalize.default.translate("ConfirmRemoveItem"),title:_globalize.default.translate("Remove"),confirmText:_globalize.default.translate("Remove")},plural:{text:_globalize.default.translate("ConfirmRemoveItem"),title:_globalize.default.translate("Remove"),confirmText:_globalize.default.translate("Remove")}}:{single:{text:_globalize.default.translate("DeleteDeviceConfirmation"),title:_globalize.default.translate("HeaderDeleteItem")},plural:{text:_globalize.default.translate("DeleteDeviceConfirmation"),title:_globalize.default.translate("HeaderDeleteItems")}}},GenericItemController.prototype.deleteItemsInternal=function(options){return Promise.reject("nocommands")},GenericItemController.prototype.getCommands=function(options){return _baseitemcontroller.default.prototype.getCommands.apply(this,arguments)},GenericItemController.prototype.executeCommand=function(command,items,options){return _baseitemcontroller.default.prototype.executeCommand.apply(this,arguments)},GenericItemController.prototype.resolveField=function(item,field){return _baseitemcontroller.default.prototype.resolveField.apply(this,arguments)},GenericItemController.prototype.canReorder=function(item,user){return item.CanReorder},GenericItemController.prototype.canMoveUp=function(item,user){return!!this.canReorder(item,user)&&item.CanMoveUp},GenericItemController.prototype.canMoveDown=function(item,user){return!!this.canReorder(item,user)&&item.CanMoveDown},GenericItemController.prototype.moveInOrder=function(items,options){return Promise.reject()};_exports.default=GenericItemController});