import { Component, Element, h, Prop, State } from "@stencil/core";
import { DateTime } from "isoly";
import * as translation from "./translation";
export class IntergiroFutureDueDates {
  componentWillLoad() {
    this.t = translation.create(this.element);
  }
  render() {
    return [
      h("table", null,
        h("tr", { color: "light" },
          h("td", null, this.t("Upcoming payments"))),
        this.dates
          ? this.dates.map(date => (h("tr", null,
            h("td", null, DateTime.localize(DateTime.parse(date)).slice(0, 10)))))
          : []),
    ];
  }
  static get is() { return "ig-future-due-dates"; }
  static get encapsulation() { return "scoped"; }
  static get originalStyleUrls() { return {
    "$": ["style.css"]
  }; }
  static get styleUrls() { return {
    "$": ["style.css"]
  }; }
  static get properties() { return {
    "dates": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "string[]",
        "resolved": "string[]",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    }
  }; }
  static get states() { return {
    "t": {}
  }; }
  static get elementRef() { return "element"; }
}
