define(['exports', './TopicsListComponent-90c1f1f6'], function (exports, TopicsListComponent) { 'use strict';

  /*
   * App Actions
   *
   * Actions change things in your application
   * Since this boilerplate uses a uni-directional data flow, specifically redux,
   * we have these actions which are the only way your application interacts with
   * your application state. This guarantees that your state is up to date and nobody
   * messes it up weirdly somewhere.
   *
   * To add a new Action:
   * 1) Import your constant
   * 2) Add a function like this:
   *    export function yourAction(var) {
   *        return { type: YOUR_ACTION_CONSTANT, var: var }
   *    }
   */
  /**
   * Load the repositories, this action starts the request saga
   *
   * @return {object} An action object with a type of LOAD_REPOS
   */

  function loadRepos() {
    return {
      type: TopicsListComponent.LOAD_REPOS
    };
  }
  /**
   * Dispatched when the repositories are loaded by the request saga
   *
   * @param  {array} repos The repository data
   * @param  {string} username The current username
   *
   * @return {object}      An action object with a type of LOAD_REPOS_SUCCESS passing the repos
   */

  function reposLoaded(repos, username) {
    return {
      type: TopicsListComponent.LOAD_REPOS_SUCCESS,
      repos,
      username
    };
  }
  /**
   * Dispatched when loading the repositories fails
   *
   * @param  {object} error The error
   *
   * @return {object}       An action object with a type of LOAD_REPOS_ERROR passing the error
   */

  function repoLoadingError(error) {
    return {
      type: TopicsListComponent.LOAD_REPOS_ERROR,
      error
    };
  }
  function loadSignedInUser() {
    return {
      type: TopicsListComponent.LOAD_SIGNED_IN_USER
    };
  }
  function signedInUserLoaded(signedInUser) {
    return {
      type: TopicsListComponent.LOAD_SIGNED_IN_USER_SUCCESS,
      signedInUser
    };
  }
  function signedInLoadingError(error) {
    return {
      type: TopicsListComponent.LOAD_SIGNED_IN_USER_ERROR,
      error
    };
  }

  var appActionsCreator = /*#__PURE__*/Object.freeze({
    __proto__: null,
    loadRepos: loadRepos,
    reposLoaded: reposLoaded,
    repoLoadingError: repoLoadingError,
    loadSignedInUser: loadSignedInUser,
    signedInUserLoaded: signedInUserLoaded,
    signedInLoadingError: signedInLoadingError
  });

  exports.appActionsCreator = appActionsCreator;
  exports.loadRepos = loadRepos;
  exports.repoLoadingError = repoLoadingError;
  exports.reposLoaded = reposLoaded;
  exports.signedInLoadingError = signedInLoadingError;
  exports.signedInUserLoaded = signedInUserLoaded;

});
//# sourceMappingURL=actions-8255d9bf.js.map
