import { T as TailwindStyledElement, E, x } from '../../index-CAvOol0G.js';
import { n, s as safeCustomElement } from '../../safe-custom-element-CZzvtxkH.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 ? x`
          <lukso-sanitize
            html-content=${this.error ? this.error : E}
            class="paragraph-inter-12-regular text-red-65 pt-2"
          ></lukso-sanitize>
        ` : E;
  }
};
__decorateClass([
  n({ type: String, reflect: true })
], LuksoFormError.prototype, "error", 2);
LuksoFormError = __decorateClass([
  safeCustomElement("lukso-form-error")
], LuksoFormError);

export { LuksoFormError };
