import { w as i, o as resetStyles, t as i$1, u as b } from './swap-module.js';
import { n, c as customElement } from './p-Df1VvUwe.js';
import { o } from './p-lzr5ON0W.js';
import './p--7RjCJVG.js';

var styles = i `
  :host {
    position: relative;
    display: inline-block;
    width: 100%;
  }
`;

var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
let WuiEmailInput = class WuiEmailInput extends i$1 {
    constructor() {
        super(...arguments);
        this.disabled = false;
    }
    render() {
        return b `
      <wui-input-text
        type="email"
        placeholder="Email"
        icon="mail"
        size="lg"
        .disabled=${this.disabled}
        .value=${this.value}
        data-testid="wui-email-input"
        tabIdx=${o(this.tabIdx)}
      ></wui-input-text>
      ${this.templateError()}
    `;
    }
    templateError() {
        if (this.errorMessage) {
            return b `<wui-text variant="sm-regular" color="error">${this.errorMessage}</wui-text>`;
        }
        return null;
    }
};
WuiEmailInput.styles = [resetStyles, styles];
__decorate([
    n()
], WuiEmailInput.prototype, "errorMessage", void 0);
__decorate([
    n({ type: Boolean })
], WuiEmailInput.prototype, "disabled", void 0);
__decorate([
    n()
], WuiEmailInput.prototype, "value", void 0);
__decorate([
    n()
], WuiEmailInput.prototype, "tabIdx", void 0);
WuiEmailInput = __decorate([
    customElement('wui-email-input')
], WuiEmailInput);
//# sourceMappingURL=p-DKsRptoy.js.map

//# sourceMappingURL=p-DKsRptoy.js.map