import { LitElement, html } from "lit";
import { customElement, property } from "lit/decorators.js";
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
function _ts_decorate(decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) 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;
}
function _ts_metadata(k, v) {
    if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
}
class AtomicComponentError extends LitElement {
    firstUpdated() {
        console.error(this.error, this.element);
    }
    render() {
        return html`
      <div class="text-error">
        <p>
          <b>${this.element.nodeName.toLowerCase()} component error</b>
        </p>
        <p>Look at the developer console for more information.</p>
      </div>
    `;
    }
}
_ts_decorate([
    property({
        type: Object
    }),
    _ts_metadata("design:type", "u" < typeof HTMLElement ? Object : HTMLElement)
], AtomicComponentError.prototype, "element", void 0);
_ts_decorate([
    property({
        type: Object
    }),
    _ts_metadata("design:type", "u" < typeof Error ? Object : Error)
], AtomicComponentError.prototype, "error", void 0);
AtomicComponentError = _ts_decorate([
    customElement('atomic-component-error'),
    withTailwindStyles
], AtomicComponentError);
export { AtomicComponentError };
