{"size": 1056, "ext": "js", "max_stars_repo_path": "components/corespring/widgets/src/client/instructions-toggle.js", "max_stars_repo_name": "corespring/corespring-components", "max_stars_repo_stars_event_min_datetime": "2020-07-27T00:55:55.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-27T00:55:55.000Z", "max_issues_repo_path": "components/corespring/widgets/src/client/instructions-toggle.js", "max_issues_repo_name": "corespring/corespring-components", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "components/corespring/widgets/src/client/instructions-toggle.js", "max_forks_repo_name": "corespring/corespring-components", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.3333333333, "max_line_length": 187, "alphanum_fraction": 0.6145833333}
var def = function() {
  var defaults = {
    showMessage: 'Show Information',
    hideMessage: 'Hide Information'
  };

  return {
    restrict: "AE",
    replace: true,
    scope: {
      'visible': '=',
      'toggle' : '=',
      'showMessage': '@',
      'hideMessage': '@'
    },
    link: function($scope) {
      $scope.showMessageCalculated = $scope.showMessage ? $scope.showMessage : defaults.showMessage;
      $scope.hideMessageCalculated = $scope.hideMessage ? $scope.hideMessage : defaults.hideMessage;
    },
    template: [
      '<div class="button-row btn-group-md {{class}}">',
      '  <div class="show-instructions" ng-class="{showCorrectVisible: visible, hideInstructions: toggle}">',
      '    <div icon-toggle icon-name="instructions" class="icon-toggle-correct" ng-model="toggle" closed-label="{{showMessageCalculated}}" open-label="{{hideMessageCalculated}}"></div>',
      '  </div>',
      '</div>'
    ].join('')
  };
};


exports.framework = "angular";
exports.directive = {
  name: "instructionsToggle",
  directive: def
};
