import{r as e,h as r}from"./p-9add63ef.js";const s=":host{display:inline-block;vertical-align:middle}";const t=s;const a=class{constructor(r){e(this,r);this.status=undefined;this.size="medium";this.pill=false;this.clearable=false}getType(){switch(this.status){case"processing":return"warning";case"paid":return"success";case"payment_failed":return"danger";case"canceled":return"danger";case"void":return"danger";case"canceled":return"danger"}}getText(){switch(this.status){case"processing":return wp.i18n.__("Processing","surecart");case"payment_failed":return wp.i18n.__("Payment Failed","surecart");case"paid":return wp.i18n.__("Paid","surecart");case"canceled":return wp.i18n.__("Canceled","surecart");case"void":return wp.i18n.__("Canceled","surecart");case"draft":return wp.i18n.__("Draft","surecart");default:return this.status}}render(){return r("sc-tag",{key:"c26debcecaf90f85617197227d9d1cd7f4fa1e7c",type:this.getType(),pill:this.pill},this.getText())}};a.style=t;export{a as sc_order_status_badge};
//# sourceMappingURL=p-c40bc863.entry.js.map