"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[4917],{4917:function(e,t,s){s.r(t),s.d(t,{sc_order_status_badge:function(){return n}});var r=s(3029),a=s(2901),c=s(1346),n=function(){return(0,a.A)((function e(t){(0,r.A)(this,e),(0,c.r)(this,t),this.status=void 0,this.size="medium",this.pill=!1,this.clearable=!1}),[{key:"getType",value:function(){switch(this.status){case"processing":return"warning";case"paid":return"success";case"payment_failed":case"canceled":case"void":case"canceled":return"danger"}}},{key:"getText",value:function(){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":case"void":return wp.i18n.__("Canceled","surecart");case"draft":return wp.i18n.__("Draft","surecart");default:return this.status}}},{key:"render",value:function(){return(0,c.h)("sc-tag",{key:"2b9d17b7ff3d3e0fd295fae4564cc8d25c239e3c",type:this.getType(),pill:this.pill},this.getText())}}])}();n.style=":host{display:inline-block}"}}]);