(()=>{function e(e,o){var n=this;function t(){var e="ABCDEFGHJKLMNPQRSTUVWXYZabcdefhijkmnoprstuvwxyz123456789";return e[Math.floor(Math.random()*e.length)]}_.assign(n,{devicesWarning:"devices"===e.role.name,code:_.map(_.range(5),t).join(""),canConfirm:function(){return n.confirmString===n.code},action:e.action,$close:e.$close,$dismiss:e.$dismiss,saveLabel:o("Save"),deleteLabel:o("Delete"),saveAndLogoutUserLabel:o("Save and log out users"),deleteAndLogoutUserLabel:o("Delete and log out users"),saveTitle:o("Confirm save?"),deleteTitle:o("Confirm delete?")})}e.$inject=["$scope","gettext"],angular.module("c8y.roles").controller("GlobalRoleSaveConfirmCtrl",e)})();