import{r as t,h as o}from"./p-b891c2f1.js";import{o as s}from"./p-494248b1.js";const i=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,s,i,r,u;if((null===(t=this.order)||void 0===t?void 0:t.currency)&&(null===(r=null===(i=null===(s=this.order)||void 0===s?void 0:s.line_items)||void 0===i?void 0:i.data)||void 0===r?void 0:r.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]]})}};s(i,["order"],!1),i.style=":host{display:block}";export{i as sc_total}