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

const InputMaterial = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.ionInput = createEvent(this, "ionInput", 7);
    this.ionChange = createEvent(this, "ionChange", 7);
    this.label = undefined;
    this.labelPosition = "stacked";
    this.name = "material";
    this.list = undefined;
    this.placeholder = "Choose a material";
    this.options = undefined;
    this.multiple = false;
    this.value = undefined;
  }
  render() {
    return (h("ion-item", { style: { overflow: "visible" } }, h("ion-label", { position: this.labelPosition }, this.label), h("input", { onInput: (event) => {
        var _a;
        this.value = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value;
        this.ionInput.emit({
          name: this.name,
          value: this.value,
          event,
        });
      }, onChange: (event) => {
        var _a;
        this.value = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value;
        this.ionChange.emit({
          name: this.name,
          value: this.value,
          event,
        });
      }, style: {
        border: "none",
        background: "transparent",
      }, multiple: this.multiple, list: this.list || this.name, name: this.name, placeholder: this.placeholder, value: this.value }), h("datalist", { id: this.list || this.name }, (this.options || []).map((option) => (h("option", null, option === null || option === void 0 ? void 0 : option.value))))));
  }
};

function getRoomNames() {
  return [
    {
      label: "Attic",
      value: "attic",
    },
    {
      label: "Loft",
      value: "loft",
    },
    {
      label: "Spare Room",
      value: "spare room",
    },
    {
      label: "Bedroom",
      value: "bedroom",
    },
    {
      label: "Bathroom",
      value: "bathroom",
    },
    {
      label: "Balcony",
      value: "balcony",
    },
    {
      label: "Nursery",
      value: "nursery",
    },
    {
      label: "Study",
      value: "study",
    },
    {
      label: "Utility Room",
      value: "utility room",
    },
    {
      label: "Conservatory",
      value: "conservatory",
    },
    {
      label: "Living Room",
      value: "living room",
    },
    {
      label: "Dining Room",
      value: "dining room",
    },
    {
      label: "Kitchen",
      value: "kitchen",
    },
    {
      label: "Garage",
      value: "garage",
    },
    {
      label: "Mud Room",
      value: "mud room",
    },
    {
      label: "Basement",
      value: "basement",
    },
    {
      label: "Wine Cellar",
      value: "wine cellar",
    },
    {
      label: "Hallway",
      value: "hallway",
    },
    {
      label: "Library",
      value: "library",
    },
    {
      label: "Closet",
      value: "closet",
    },
  ];
}

const InputRoom = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.ionInput = createEvent(this, "ionInput", 7);
    this.ionChange = createEvent(this, "ionChange", 7);
    this.label = undefined;
    this.labelPosition = "stacked";
    this.name = "name";
    this.list = undefined;
    this.placeholder = "Choose a Room";
    this.options = getRoomNames();
    this.multiple = false;
    this.value = undefined;
    this.required = false;
  }
  render() {
    return (h("ion-item", { style: { overflow: "visible" } }, h("ion-label", { position: this.labelPosition }, this.label), h("input", { required: this.required, onInput: (event) => {
        var _a;
        this.value = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value;
        this.ionInput.emit({
          name: this.name,
          value: this.value,
          event,
        });
      }, onChange: (event) => {
        var _a;
        this.value = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value;
        this.ionChange.emit({
          name: this.name,
          value: this.value,
          event,
        });
      }, style: {
        border: "none",
        background: "transparent",
      }, multiple: this.multiple, list: this.list || this.name, name: this.name, placeholder: this.placeholder, value: this.value }), h("datalist", { id: this.list || this.name }, (this.options || []).map((option) => (h("option", null, option === null || option === void 0 ? void 0 : option.value))))));
  }
};

export { InputMaterial as floodteam_input_material, InputRoom as floodteam_input_room };
