import{r as t,h as o}from"./p-e97fde0a.js";import{o as i}from"./p-393cb717.js";const s=":host{display:block}.total-amount{display:inline-block}";const n=s;const r=class{constructor(o){t(this,o);this.order_key={total:"total_amount",subtotal:"subtotal_amount",amount_due:"amount_due"};this.total="amount_due";this.order=undefined}render(){var t,i,s,n,r;if(!((t=this.order)===null||t===void 0?void 0:t.currency))return;if(!((n=(s=(i=this.order)===null||i===void 0?void 0:i.line_items)===null||s===void 0?void 0:s.data)===null||n===void 0?void 0:n.length))return;return o("sc-format-number",{type:"currency",currency:this.order.currency,value:(r=this.order)===null||r===void 0?void 0:r[this.order_key[this.total]]})}};i(r,["order"],false);r.style=n;export{r as sc_total};
//# sourceMappingURL=p-b909d196.entry.js.map