'use strict';

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

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

let PopoverUserSelect = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.floodteamSelect = index.createEvent(this, "floodteamSelect", 7);
    this.users = [];
    this.header = "Select a User";
    this.name = "user";
    this.loading = false;
  }
  render() {
    return (index.h("ion-content", { class: {
        "is-loading": this.loading,
      }, style: {
        "--background": "var(--ion-color-base)",
      } }, index.h("ion-list", { class: "ion-no-padding" }, index.h("ion-item-divider", null, this.header), (this.users || []).map((user) => (index.h("floodteam-item-user", { onClick: (event) => {
        this.loading = true;
        this.floodteamSelect.emit({ event, user, name: this.name });
      }, disabled: true, user: user, jobId: this.jobId }))))));
  }
};

exports.popover_user_select = PopoverUserSelect;

//# sourceMappingURL=popover-user-select.cjs.entry.js.map