'use strict';

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

const index$1 = require('./index-0b1e2673.js');
require('./_commonjsHelpers-937cd5b3.js');
const index$2 = require('./index-2eb96242.js');
const index = require('./index-36cf3884.js');

const sv = {
  "Order total": "Orderbelopp",
};

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

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

const PayfuncOrderItemsTotal = 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); }
};
PayfuncOrderItemsTotal.style = styleCss;

exports.payfunc_order_items_total = PayfuncOrderItemsTotal;
