"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 i}});var r=s(3029),a=s(2901),c=s(7364),i=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:"5e1dd014964539fc797b9ee47cbd17564e234bf9",type:this.getType(),pill:this.pill},this.getText())}}])}();i.style=":host{display:inline-block;vertical-align:middle}"}}]);