'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 = {
  Name: "Namn",
  Email: "Mail",
  Phone: "Telefon",
  "There is no contact information available.": "Det finns ingen kontaktinformation tillgänglig.",
};

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

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

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

exports.ig_order_contact = IntergiroOrderContact;
