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

const PopoverUserSelect = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.floodteamSelect = createEvent(this, "floodteamSelect", 7);
    this.users = [];
    this.jobId = undefined;
    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("ion-item", { href: "#", detail: true, onClick: (event) => {
        event.preventDefault();
        event.stopPropagation();
        this.loading = true;
        this.floodteamSelect.emit({ event, user, name: this.name });
      } }, h("ion-label", null, h("h2", null, (user === null || user === void 0 ? void 0 : user.firstName) || "", " ", (user === null || user === void 0 ? void 0 : user.lastName) || ""), h("p", null, (user === null || user === void 0 ? void 0 : user.email) || "No Email on File"))))))));
  }
};

export { PopoverUserSelect as popover_user_select };
