'use strict';

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

const index = require('./index-cd6fab62.js');
const defaultI18n = require('./default-i18n-072e75d7.js');
require('./index-20b57ec7.js');
const consumer = require('./consumer-1372755b.js');
require('./_commonjsHelpers-537d719a.js');

const scOrderConfirmationCustomerCss = ":host{display:block}";

const ScOrderConfirmationCustomer = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  render() {
    if (!this.customer) {
      return null;
    }
    return (index.h("sc-customer-details", { customer: this.customer, loading: this.loading, error: this.error }, index.h("span", { slot: "heading" }, index.h("slot", { name: "heading" }, this.heading || defaultI18n.__('Billing Details', 'surecart')))));
  }
};
consumer.openWormhole(ScOrderConfirmationCustomer, ['order', 'customer', 'loading'], false);
ScOrderConfirmationCustomer.style = scOrderConfirmationCustomerCss;

exports.sc_order_confirmation_customer = ScOrderConfirmationCustomer;
