import{r as i,h as l,F as s}from"./p-b891c2f1.js";import{s as o,_ as t}from"./p-684c85b4.js";import"./p-aafd8ea4.js";import{o as r}from"./p-494248b1.js";import"./p-112455b1.js";const n=class{constructor(l){i(this,l)}renderLabel(){var i,r,n;return l(s,null,"calculated"===(null===(i=null==this?void 0:this.order)||void 0===i?void 0:i.tax_status)?null===(r=this.order)||void 0===r?void 0:r.tax_label:o(t("Estimated %s","surecart"),null===(n=null==this?void 0:this.order)||void 0===n?void 0:n.tax_label),this.renderPercent())}renderPercent(){var i;return(null===(i=this.order)||void 0===i?void 0:i.tax_percent)?l(s,null,"(",this.order.tax_percent,"%",")"):""}render(){var i,s,o,r,n,d,u;return(null===(i=null==this?void 0:this.order)||void 0===i?void 0:i.tax_amount)?l("sc-line-item",null,l("span",{slot:"description"},this.renderLabel()),(null===(s=this.order)||void 0===s?void 0:s.tax_exclusive_amount)&&l("span",{slot:"price"},l("sc-format-number",{type:"currency",currency:(null===(o=null==this?void 0:this.order)||void 0===o?void 0:o.currency)||"usd",value:null===(r=null==this?void 0:this.order)||void 0===r?void 0:r.tax_exclusive_amount})),(null===(n=this.order)||void 0===n?void 0:n.tax_inclusive_amount)&&l("span",{slot:"price-description"},"(",l("sc-format-number",{type:"currency",currency:(null===(d=null==this?void 0:this.order)||void 0===d?void 0:d.currency)||"usd",value:null===(u=null==this?void 0:this.order)||void 0===u?void 0:u.tax_inclusive_amount})," ",t("included","surecart"),")")):null}};r(n,["order","loading"],!1),n.style=":host{display:block}";export{n as sc_line_item_tax}