'use strict';

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

const shared_tailwindElement_index = require('../../chunks/index-BxQ_0s_1.js');
const property = require('../../chunks/property-D6IL6zax.js');
const safeCustomElement = require('../../chunks/safe-custom-element-tQ-epw6h.js');

const style = ":host {\n    display: flex\n}";

var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __decorateClass = (decorators, target, key, kind) => {
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
    if (decorator = decorators[i])
      result = (kind ? decorator(target, key, result) : decorator(result)) || result;
  if (kind && result) __defProp(target, key, result);
  return result;
};
exports.LuksoFormError = class LuksoFormError extends shared_tailwindElement_index.TailwindStyledElement(style) {
  render() {
    return this.error ? shared_tailwindElement_index.x`
          <lukso-sanitize
            html-content=${this.error ? this.error : shared_tailwindElement_index.E}
            class="paragraph-inter-12-regular text-red-65 pt-2"
          ></lukso-sanitize>
        ` : shared_tailwindElement_index.E;
  }
};
__decorateClass([
  property.n({ type: String, reflect: true })
], exports.LuksoFormError.prototype, "error", 2);
exports.LuksoFormError = __decorateClass([
  safeCustomElement.safeCustomElement("lukso-form-error")
], exports.LuksoFormError);
