(function () { "use strict"; angular .module('shared') .component('targetedScienceLevelRadioButtons', { templateUrl: '/shared/js/angular/targeted-resource-assignments/targeted-science-level-radio-buttons.html', controller: 'targetedScienceLevelRadioButtons', bindings: { chosenLevel: '=' } }) .controller('targetedScienceLevelRadioButtons', targetedScienceLevelRadioButtonsCtrl); targetedScienceLevelRadioButtonsCtrl.$inject = ['$scope', 'resourceHelper']; function targetedScienceLevelRadioButtonsCtrl($scope, resourceHelper) { var ctrl = this; ctrl.getResourceLevels = resourceHelper.getResourceLevels; ctrl.isSitN = resourceHelper.isSitN; ctrl.isISL = resourceHelper.isISL; ctrl.getLevelText = getLevelText; function getLevelText(level) { return level === "mid" && ctrl.isISL ? "Low/Mid" : level; } } })();