import{r as t,h as o}from"./p-dfbe004d.js";import{o as i}from"./p-d63f2554.js";const s=class{constructor(o){t(this,o),this.total="amount_due",this.order_key={total:"total_amount",subtotal:"subtotal_amount",amount_due:"amount_due"}}render(){var t,i,s,l,u;if((null===(t=this.order)||void 0===t?void 0:t.currency)&&(null===(l=null===(s=null===(i=this.order)||void 0===i?void 0:i.line_items)||void 0===s?void 0:s.data)||void 0===l?void 0:l.length))return o("sc-format-number",{type:"currency",currency:this.order.currency,value:null===(u=this.order)||void 0===u?void 0:u[this.order_key[this.total]]})}};i(s,["order"],!1),s.style=":host{display:block}.total-amount{display:inline-block}";export{s as sc_total}