import { r as registerInstance, h, g as getElement } from './index-07845439.js';
import { I as Item } from './index-e20749b7.js';
import { d as dist } from './index-63517df5.js';
import './index-b6cf748e.js';
import './_commonjsHelpers-8fe71198.js';
import './index-265fba1f.js';

const sv = {
  details: "detaljer",
  "excluding VAT": "exklusive moms",
};

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

const styleCss = ".sc-ig-items-display-h{display:block}[hidden].sc-ig-items-display-h{display:none}.sc-ig-items-display-h>*.sc-ig-items-display{text-align:center;margin-bottom:1em}.sc-ig-items-display-h>section.sc-ig-items-display>smoothly-display.sc-ig-items-display{font-size:140%}.sc-ig-items-display-h>details.sc-ig-items-display>summary.sc-ig-items-display{list-style-image:none}";

const IntergiroItemsDisplay = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  componentWillLoad() {
    this.t = create(this.element);
  }
  render() {
    const t = this.t;
    const vat = Item.vat(this.items);
    return [
      h("details", null, h("summary", null, t("details")), h("section", null, h("ig-items-list", { items: this.items, currency: this.currency }))),
      h("section", null, h("smoothly-display", { type: "price", value: Item.amount(this.items), currency: this.currency }), vat != undefined ? (h("p", { style: { fontSize: "90%", margin: "0" } }, "(", h("smoothly-display", { style: { display: "inline" }, type: "price", value: Item.amount(this.items) - vat, currency: this.currency }), "\u00A0", t("excluding VAT"), ")")) : ([])),
    ];
  }
  get element() { return getElement(this); }
};
IntergiroItemsDisplay.style = styleCss;

export { IntergiroItemsDisplay as ig_items_display };
