import{r as e,h as r}from"./p-b891c2f1.js";import{_ as t}from"./p-684c85b4.js";import"./p-aafd8ea4.js";import"./p-112455b1.js";const a=class{constructor(r){e(this,r),this.size="medium",this.pill=!1,this.clearable=!1}getType(){switch(this.status){case"draft":return"info";case"requires_approval":case"finalized":return"warning";case"paid":return"success";case"payment_intent_canceled":case"payment_failed":return"danger"}}getText(){switch(this.status){case"draft":return t("Draft","surecart");case"finalized":return t("Pending Payment","surecart");case"paid":return t("Paid","surecart");case"payment_intent_canceled":return t("Cancelled","surecart");case"payment_failed":return t("Failed","surecart");case"requires_approval":return t("Requires Approval","surecart");default:return this.status}}render(){return r("sc-tag",{type:this.getType()},this.getText())}};a.style=":host{display:inline-block}";export{a as sc_order_status_badge}