<script src="../../node_modules/redux-thunk/dist/redux-thunk.min.js"></script>
<link rel="import" href="../../bower_components/polymer/polymer-element.html">
<link rel="import" href="../../bower_components/polymer-redux/polymer-redux.html">
<link rel="import" href="actions.html">
<link rel="import" href="selectors.html">
<link rel="import" href="constants.html">
<link rel="import" href="reducers.html">

<script>
  (() => {
    const composeEnhancers = typeof window === 'object' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
      ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({})
      : Redux.compose;

    const enhancer = composeEnhancers(Redux.applyMiddleware(ReduxThunk.default));
    const store = Redux.createStore(ExpenseManager.rootReducer, enhancer);

    store.subscribe(() => {
      const state = store.getState();
      localStorage.setItem('ExpenseManagerState', JSON.stringify(state));
      //{authenticated: state.authenticated, expenses: state.expenses}));
    });

    const reduxMixin = PolymerRedux(store);

    /* @mixinFunction */
    const actionsMixin = (superClass) => {
      return class extends reduxMixin(superClass) {
        static get actions() {
          return window.ExpenseManager.actions;
        }
      }
    }

    window.ExpenseManager = window.ExpenseManager || {};
    /* @mixinFunction */
    window.ExpenseManager.ReduxMixin = Polymer.dedupingMixin(actionsMixin);
  })();

</script>

<link rel="import" href="../../bower_components/polymer/polymer-element.html">
<link rel="import" href="../../bower_components/polymer-redux/polymer-redux.html">
<link rel="import" href="actions.html">
<link rel="import" href="selectors.html">
<link rel="import" href="constants.html">
<link rel="import" href="reducers.html">

<script>
  (() => {
    const composeEnhancers = typeof window === 'object' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
      ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({})
      : Redux.compose;

    const enhancer = composeEnhancers();
    const store = Redux.createStore(ExpenseManager.rootReducer, enhancer);

    store.subscribe(() => {
      const state = store.getState();
      localStorage.setItem('ExpenseManagerState', JSON.stringify(state));
      //{authenticated: state.authenticated, expenses: state.expenses}));
    });

    const reduxMixin = PolymerRedux(store);

    /* @mixinFunction */
    const actionsMixin = (superClass) => {
      return class extends reduxMixin(superClass) {
        static get actions() {
          return window.ExpenseManager.actions;
        }
      }
    }

    window.ExpenseManager = window.ExpenseManager || {};
    /* @mixinFunction */
    window.ExpenseManager.ReduxMixin = Polymer.dedupingMixin(actionsMixin);
  })();

</script>

Remove redux-thunk for now as it's not used
Remove redux-thunk for now as it's not used
