"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[2948],{52948:function(t,e,s){s.r(e),s.d(e,{sc_invoice_status_badge:function(){return u}});var r=s(23029),i=s(92901),a=s(27364),u=function(){return(0,i.A)((function t(e){(0,r.A)(this,t),(0,a.r)(this,e),this.status=void 0,this.size="medium",this.pill=!1,this.clearable=!1}),[{key:"getType",value:function(){switch(this.status){case"paid":return"success";case"open":return"info";case"draft":return"default"}}},{key:"getText",value:function(){switch(this.status){case"paid":return wp.i18n.__("Paid","surecart");case"open":return wp.i18n.__("Open","surecart");case"draft":return wp.i18n.__("Draft","surecart");default:return this.status}}},{key:"render",value:function(){return(0,a.h)("sc-tag",{key:"83684cf431b83d2be2847821153fa01eb60d42f9",type:this.getType(),pill:this.pill},this.getText())}}])}();u.style=":host{display:inline-block;vertical-align:middle}"}}]);