import { r as registerInstance, d as createEvent, h } from './index-33e43734.js';

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

export { PopoverUserSelect as popover_user_select };

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