'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index$1 = require('./index-df541290.js');
const index$2 = require('./index-c12b8888.js');
const index = require('./index-b7493032.js');
require('./index-0b6f1dd9.js');
require('./_commonjsHelpers-10109b76.js');
require('./index-fe328b96.js');

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

function create(language) {
  return index.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) {
    index$1.registerInstance(this, hostRef);
  }
  componentWillLoad() {
    this.t = create(this.element);
  }
  render() {
    const t = this.t;
    const vat = index$2.Item.vat(this.items);
    return [
      index$1.h("details", null, index$1.h("summary", null, t("details")), index$1.h("section", null, index$1.h("ig-items-list", { items: this.items, currency: this.currency }))),
      index$1.h("section", null, index$1.h("smoothly-display", { type: "price", value: index$2.Item.amount(this.items), currency: this.currency }), vat != undefined ? (index$1.h("p", { style: { fontSize: "90%", margin: "0" } }, "(", index$1.h("smoothly-display", { style: { display: "inline" }, type: "price", value: index$2.Item.amount(this.items) - vat, currency: this.currency }), "\u00A0", t("excluding VAT"), ")")) : ([])),
    ];
  }
  get element() { return index$1.getElement(this); }
};
IntergiroItemsDisplay.style = styleCss;

exports.ig_items_display = IntergiroItemsDisplay;
