import { r as registerInstance, h, g as getElement } from './index-07845439.js';
import { N as Name } from './index-aeffd5c5.js';
import { d as dist } from './index-3cc80977.js';
import './index-82c01ab3.js';
import './_commonjsHelpers-9bc404fc.js';

const sv = {
  Name: "Namn",
  Email: "Mail",
  Phone: "Telefon",
  "There is no customer information available.": "Det finns ingen kundinformation tillgänglig.",
};

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

const styleCss = ".sc-ig-order-customer-h{display:flex;width:100%;flex-direction:row;justify-content:flex-start;padding:1em;padding-left:4.5em}[hidden].sc-ig-order-customer-h{display:none}dt.sc-ig-order-customer{font-weight:bold;text-align:left;margin-bottom:.2em}dt.sc-ig-order-customer::first-letter{text-transform:capitalize}section.sc-ig-order-customer{width:30%}section.sc-ig-order-customer>dt.sc-ig-order-customer+*.sc-ig-order-customer{width:70%}";

const IntergiroOrderCustomer = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  componentWillLoad() {
    this.t = create(this.element);
  }
  render() {
    return !this.customer || Object.values(this.customer).length < 1 ? (h("p", null, this.t("There is no customer information available."))) : ([
      this.customer.name && (h("section", null, h("dt", null, this.t("Name")), h("smoothly-display", { type: "text", value: Name.get(this.customer.name) }))),
      this.customer.email && (h("section", null, h("dt", null, this.t("Email")), h("ig-email-addresses", { editable: false, value: this.customer.email }))),
      this.customer.phone && (h("section", null, h("dt", null, this.t("Phone")), h("ig-phone-numbers", { editable: false, value: this.customer.phone }))),
    ]);
  }
  get element() { return getElement(this); }
};
IntergiroOrderCustomer.style = styleCss;

export { IntergiroOrderCustomer as ig_order_customer };
