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"}render(){var t,o,e,l,s;if((null===(t=null==state?void 0:state.checkout)||void 0===t?void 0:t.currency)&&(null===(l=null===(e=null===(o=null==state?void 0:state.checkout)||void 0===o?void 0:o.line_items)||void 0===e?void 0:e.data)||void 0===l?void 0:l.length))return(null===(s=null==state?void 0:state.checkout)||void 0===s?void 0:s[ORDER_KEYS[this.total]])||""}static get style(){return ScTotalStyle0}},[0,"sc-total",{total:[1]}]);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};