'use strict';

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

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

const popoverControlsCss = "";

let PopoverControls = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.floodteamClosePopover = index.createEvent(this, "floodteamClosePopover", 7);
    /**
     * The list of buttons to show when the material button is clicked
     */
    this.controls = [];
  }
  render() {
    return (index.h("ion-content", null, index.h("ion-list", null, this.controls.map((mb) => (index.h("ion-item", { detail: true, lines: "full", href: (mb === null || mb === void 0 ? void 0 : mb.href) || "#", onClick: (event) => {
        if (typeof (mb === null || mb === void 0 ? void 0 : mb.onClick) !== "function")
          return;
        mb.onClick(event);
        this.floodteamClosePopover.emit({ event });
      } }, index.h("ion-icon", { color: mb === null || mb === void 0 ? void 0 : mb.color, name: mb.icon.indexOf("/") === -1 ? mb.icon : null, src: mb.icon.indexOf("/") === -1 ? null : mb.icon, slot: "start" }), index.h("ion-label", { color: mb === null || mb === void 0 ? void 0 : mb.color, innerHTML: mb.label })))))));
  }
};
PopoverControls.style = popoverControlsCss;

exports.floodteam_popover_controls = PopoverControls;

//# sourceMappingURL=floodteam-popover-controls.cjs.entry.js.map