/** @license Copyright (c) 2018 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ import { html } from '@polymer/lit-element'; import { PageViewElement } from './page-view-element.js'; import { connect } from 'pwa-helpers/connect-mixin.js'; // This element is connected to the Redux store. import { store } from '../store.js'; //These are the actions needed by this element. import { registerComp } from '../actions/firebaseFirestore.js'; // These are the shared styles needed by this element. import { SharedStyles } from './shared-styles.js'; import { ButtonSharedStyles } from './button-shared-styles.js'; // Import paper elements import '@polymer/paper-input/paper-input.js'; import '@polymer/paper-button/paper-button.js'; import '@polymer/paper-card/paper-card.js'; // Import custom elements import './competition-element.js'; import './test-element.js'; class MaoCompetitions extends connect(store)(PageViewElement) { _render(props) { return html` ${SharedStyles} ${ButtonSharedStyles}

Competitions

Competition season is far away, but when it comes, this page will be updated with the newest information.

States

Regionals

You must register for these competitions at least two weeks in advance.

To be elgible for the state or national competiton, one must participate in at least 3 regional competitons.

Other Tests

All students must register and complete two of the tests to be qualified for national and/or state competitions

For members of the Mu Alpha Theta Honors Society, they must take at least one of these tests.

`; } static get properties() { return { // This is the data from the store. registeredComps : Array, signedIn : Boolean }} _stateChanged(state) { this.signedIn = state.firebaseAuth .signedIn; this.registeredComps = state.firebaseFirestore .registeredComps; } registerNationals() { if(confirm('Are you sure you want to register for nationals?')) { store.dispatch(registerComp('nationals')); } } registerStates() { if(confirm('Are you sure you want to register for states?')) { store.dispatch(registerComp('states')); } } } window.customElements.define('mao-competitions', MaoCompetitions);