import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
import { j as text } from './parts.js';
import { b as formatCurrency } from './utils2.js';
import { c as checkoutStore } from './checkout.store.js';
import { S as StyledHost } from './styled-host.js';
import './justifi-details2.js';
import './event-types.js';
import './justifi-radio-list-item2.js';

const JustifiCheckoutSummary = /*@__PURE__*/ proxyCustomElement(class JustifiCheckoutSummary extends HTMLElement {
    constructor(registerHost) {
        super();
        if (registerHost !== false) {
            this.__registerHost();
        }
        this.__attachShadow();
    }
    render() {
        return (h(StyledHost, { key: '336fa6563952ee7905c2ed4a3330d73bbb33a0eb' }, h("section", { key: '48b8798a925d618f5a2c52d743190207b78eb70a' }, h("div", { key: '81d91167c10ccc49acb039ea54a9f97f4aa6e305' }, h("div", { key: '9744242f2c2c3082e9c1a3af6e716ec4cb28f1fd', part: text }, checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.paymentDescription), h("div", { key: '438062935abd2f00495c432ef6652e3808e5215f' }, h("span", { key: 'e3f24d9c52ddae0206cbefe61bd08f24697fe28e', part: text }, "Total"), "\u00A0", h("span", { key: '9835cb60de31a2c8946b7ac2dd6d1fa82f223110', part: text }, formatCurrency(+(checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.totalAmount))))))));
    }
}, [257, "justifi-checkout-summary"]);
function defineCustomElement() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["justifi-checkout-summary"];
    components.forEach(tagName => { switch (tagName) {
        case "justifi-checkout-summary":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, JustifiCheckoutSummary);
            }
            break;
    } });
}
defineCustomElement();

export { JustifiCheckoutSummary as J, defineCustomElement as d };
