'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 = {
  "Order total": "Orderbelopp",
};

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

const styleCss = ".sc-ig-order-items-total-h{display:table-row;width:100%}[hidden].sc-ig-order-items-total-h{display:none}.sc-ig-order-items-total-h>td.sc-ig-order-items-total>div.sc-ig-order-items-total{vertical-align:middle;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding-top:0.2em;padding-left:0.15em;padding-right:0.15em}.sc-ig-order-items-total-h>td.sc-ig-order-items-total>div.total.sc-ig-order-items-total{border-top:solid 1px rgb(var(--smoothly-light-color));width:6em}";

const IntergirOrderItemsTotal = class {
  constructor(hostRef) {
    index$1.registerInstance(this, hostRef);
  }
  componentWillLoad() {
    this.t = create(this.element);
  }
  render() {
    var _a;
    const t = this.t;
    return [
      index$1.h("td", null),
      index$1.h("td", null, index$1.h("div", null, t("Order total"))),
      index$1.h("td", null),
      index$2.Item.vat(this.items) ? (index$1.h("td", null, index$1.h("div", { class: "total" }, (_a = index$2.Item.vat(this.items)) === null || _a === void 0 ? void 0 : _a.toFixed(2)))) : (index$1.h("td", null, index$1.h("div", null))),
      index$1.h("td", null, index$1.h("div", { class: "total" }, index$2.Item.amount(this.items).toFixed(2), " ", this.currency)),
      index$1.h("td", null),
    ];
  }
  get element() { return index$1.getElement(this); }
};
IntergirOrderItemsTotal.style = styleCss;

exports.ig_order_items_total = IntergirOrderItemsTotal;
