'use strict';

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

const index = require('./index-ee190ee0.js');
const hardwareBackButton = require('./overlays-6a64deff.js');
require('./ionic-global-542e0609.js');
require('./helpers-905b0d22.js');

const popoverAddReadingCss = "";

const PopoverAddReading = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.fireenjinFetch = index.createEvent(this, "fireenjinFetch", 7);
    this.fireenjinTrigger = index.createEvent(this, "fireenjinTrigger", 7);
    this.job = {};
  }
  async openModalAddDot() {
    this.modalEl = await hardwareBackButton.modalController.create({
      cssClass: "modal-flow-rider",
      component: "modal-flow-rider",
      componentProps: {
        headerTitle: "Add Dot",
        flowId: "3cj19bUYxPSA3VoiWnV9",
        renderId: "default",
      },
    });
    this.modalEl.present();
  }
  render() {
    return (index.h("ion-content", { style: {
        "--background": "var(--ion-color-base)",
      } }, index.h("ion-list", { lines: "full" }, index.h("ion-item", { href: "#", onClick: () => this.openModalAddDot() }, index.h("ion-icon", { name: "ellipse", slot: "start" }), index.h("ion-label", null, "Add MC Dot")), index.h("ion-item", { href: "#", onClick: (event) => this.fireenjinTrigger.emit({
        name: "addReading",
        event,
      }) }, index.h("ion-icon", { name: "create", slot: "start" }), index.h("ion-label", null, "Add Reading")))));
  }
};
PopoverAddReading.style = popoverAddReadingCss;

exports.popover_add_reading = PopoverAddReading;
