"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[4917],{94917:function(e,t,s){s.r(t),s.d(t,{sc_order_status_badge:function(){return i}});var a=s(23029),r=s(92901),c=s(27364),i=function(){return(0,r.A)((function e(t){(0,a.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:"c26debcecaf90f85617197227d9d1cd7f4fa1e7c",type:this.getType(),pill:this.pill},this.getText())}}])}();i.style=":host{display:inline-block;vertical-align:middle}"}}]);