'use strict';

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

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