import { withHooks } from "@saasquatch/stencil-hooks";
import { Component, Prop, State } from "@stencil/core";
import { DateTime } from "luxon";
import { luxonLocale } from "../../../utils/utils";
export class RewardTableDateCell {
  constructor() {
    this.ignored = true;
    this.locale = "en";
    withHooks(this);
  }
  disconnectedCallback() { }
  render() {
    var _a, _b;
    const date = !this.date
      ? "-"
      : (_b = (_a = DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(DateTime.DATE_MED);
    return date;
  }
  static get is() { return "sqm-invoice-table-date-cell"; }
  static get encapsulation() { return "shadow"; }
  static get properties() { return {
    "date": {
      "type": "number",
      "mutable": false,
      "complexType": {
        "original": "number",
        "resolved": "number",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "date",
      "reflect": false
    },
    "locale": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "locale",
      "reflect": false,
      "defaultValue": "\"en\""
    }
  }; }
  static get states() { return {
    "ignored": {}
  }; }
}
