import { r as registerInstance, e as createEvent, h } from './index-e0adbd54.js';
import { m as modalController } from './overlays-b83a89c7.js';
import './ionic-global-3272af31.js';
import './helpers-06537f39.js';

const popoverAddReadingCss = "";

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

export { PopoverAddReading as popover_add_reading };
