import { nothing, html } from 'lit';
import { property } from 'lit/decorators.js';
import { a as TailwindStyledElement, s as safeCustomElement } from '../../chunks/index-DluTRl1F.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;
};
let LuksoFormError = class extends TailwindStyledElement(style) {
  render() {
    return this.error ? html`
          <lukso-sanitize
            html-content=${this.error ? this.error : nothing}
            class="paragraph-inter-12-regular text-red-65 pt-2"
          ></lukso-sanitize>
        ` : nothing;
  }
};
__decorateClass([
  property({ type: String, reflect: true })
], LuksoFormError.prototype, "error", 2);
LuksoFormError = __decorateClass([
  safeCustomElement("lukso-form-error")
], LuksoFormError);

export { LuksoFormError };
