import { r as registerInstance, h } from './index-f1d2a96f.js';
import { o as openWormhole } from './consumer-7a54eb9f.js';

const ScOrderPassword = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    /** The input's size. */
    this.size = 'medium';
    /** The input's value attribute. */
    this.value = '';
    /** Draws a pill-style input with rounded edges. */
    this.pill = false;
    /** Should we show the label */
    this.showLabel = true;
    /** The input's help text. */
    this.help = '';
    /** Disables the input. */
    this.disabled = false;
    /** Makes the input readonly. */
    this.readonly = false;
    /** Makes the input a required field. */
    this.required = false;
  }
  async reportValidity() {
    return this.input.reportValidity();
  }
  render() {
    if (this.loggedIn) {
      return null;
    }
    return (h("sc-input", { ref: el => (this.input = el), label: this.label, help: this.help, autofocus: this.autofocus, placeholder: this.placeholder, showLabel: this.showLabel, size: this.size ? this.size : 'medium', type: "password", name: "password", value: this.value, required: this.required, disabled: this.disabled }));
  }
};
openWormhole(ScOrderPassword, ['loggedIn'], false);

export { ScOrderPassword as sc_order_password };
