import{proxyCustomElement,HTMLElement}from"@stencil/core/internal/client";import{s as state}from"./mutations2.js";const scTotalCss=":host{display:block}.total-amount{display:inline-block}",ScTotalStyle0=scTotalCss,ORDER_KEYS={total:"total_display_amount",subtotal:"subtotal_display_amount",amount_due:"amount_due_display_amount"},ScTotal=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.order_key={total:"total_display_amount",subtotal:"subtotal_display_amount",amount_due:"amount_due_display_amount"},this.total="amount_due",this.checkout=void 0}render(){var t,o;const e=this.checkout||(null==state?void 0:state.checkout);if((null==e?void 0:e.currency)&&(null===(o=null===(t=null==e?void 0:e.line_items)||void 0===t?void 0:t.data)||void 0===o?void 0:o.length))return(null==e?void 0:e[ORDER_KEYS[this.total]])||""}static get style(){return ScTotalStyle0}},[0,"sc-total",{total:[1],checkout:[16]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["sc-total"].forEach((t=>{"sc-total"===t&&(customElements.get(t)||customElements.define(t,ScTotal))}))}export{ScTotal as S,defineCustomElement as d};