'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-bae2a754.js');

const CourseSelect = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.courses = ['Mind & Body', 'Data Analytics', 'Financial Literacy'];
    this.renderOption = (course) => {
      return (index.h("div", { class: "CourseSelect-course" }, index.h("span", null, course)));
    };
  }
  componentDidLoad() { }
  redirectToCourse(course) {
    if (this.courses[1] === course) {
      window.location.href = 'https://g3da.z13.web.core.windows.net/';
    }
    else if (this.courses[2] === course) {
      window.location.href = 'https://girlsinclearning.com/Financial';
    }
  }
  render() {
    return index.h("sparkle-select", { class: "CourseSelect", options: this.courses, optionRenderer: this.renderOption, onSelection: ev => this.redirectToCourse(ev.detail) });
  }
  get el() { return index.getElement(this); }
};

exports.course_select = CourseSelect;
