define(["exports","./../list/list.js","./../modules/common/globalize.js","./../modules/approuter.js","./../modules/emby-elements/emby-button/emby-button.js","./../modules/emby-elements/emby-button/paper-icon-button-light.js","./../modules/emby-elements/emby-scroller/emby-scroller.js"],function(_exports,_list,_globalize,_approuter,_embyButton,_paperIconButtonLight,_embyScroller){function showNewUserDialog(e){_approuter.default.show("users/new")}function UsersPage(view,params){params.serverId=ApiClient.serverId(),_list.default.call(this,view,params),function(view){view.querySelector(".listTotalRecordCount").insertAdjacentHTML("afterend",'<button is="emby-button" type="button" class="itemsViewSettingsContainer-button raised raised-mini btnAddUser submit" title="'+_globalize.default.translate("HeaderNewUser")+'" aria-label="'+_globalize.default.translate("HeaderNewUser")+'"><i class="md-icon button-icon button-icon-left">&#xe145;</i><span class="emby-button-text">'+_globalize.default.translate("HeaderNewUser")+"</span></button>")}(view),view.querySelector(".btnAddUser").addEventListener("click",showNewUserDialog),this.itemsContainer.setAttribute("data-monitor","Users")}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["flexStyles"]),Object.assign(UsersPage.prototype,_list.default.prototype),UsersPage.prototype.getItemTypes=function(){return["User"]},UsersPage.prototype.supportsAlphaPicker=function(){return!0},UsersPage.prototype.getItemCountText=function(numItems){return 1===numItems?_globalize.default.translate("OneUser"):_globalize.default.translate("UserCountValue",numItems)},UsersPage.prototype.getSettingsKey=function(){return"users"},UsersPage.prototype.setTitle=function(){},UsersPage.prototype.getBaseListRendererOptions=function(){var options=_list.default.prototype.getBaseListRendererOptions.apply(this,arguments);return options.draggable=!1,options.draggableXActions=!0,options};_exports.default=UsersPage});