import { r as registerInstance, h } from './index-f1d2a96f.js';
import { _ as __ } from './default-i18n-91ef32a0.js';
import './index-0a61debd.js';
import { o as openWormhole } from './consumer-7a54eb9f.js';
import './_commonjsHelpers-9943807e.js';

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

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

export { ScOrderConfirmationCustomer as sc_order_confirmation_customer };
