import { r as registerInstance, h, g as getElement } from './index-07845439.js';
import { d as dist$1 } from './index-046ba252.js';
import { d as dist } from './index-63517df5.js';
import './_commonjsHelpers-8fe71198.js';

const sv = {
  "Upcoming payments": "Kommande betalningar",
};

function create(language) {
  return dist.create({
    sv,
  }, language);
}

const styleCss = ".sc-ig-future-due-dates-h{display:block}[hidden].sc-ig-future-due-dates-h{display:none}.sc-ig-future-due-dates-h>table.sc-ig-future-due-dates{border:1px solid rgb(var(--smoothly-medium-color));width:100%;height:100%}tr.sc-ig-future-due-dates:first-of-type{border-bottom:1px solid rgb(var(--smoothly-medium-color));font-weight:bold}td.sc-ig-future-due-dates{padding:.3em}";

const IntergiroFutureDueDates = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  componentWillLoad() {
    this.t = 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, dist$1.DateTime.localize(dist$1.DateTime.parse(date)).slice(0, 10)))))
        : []),
    ];
  }
  get element() { return getElement(this); }
};
IntergiroFutureDueDates.style = styleCss;

export { IntergiroFutureDueDates as ig_future_due_dates };
