import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{d as defineCustomElement$1}from"./sc-tag2.js";const scFulfillmentShippingStatusBadgeCss=":host{display:inline-block;vertical-align:middle}",ScFulfillmentShippingStatusBadgeStyle0=scFulfillmentShippingStatusBadgeCss,status={unshipped:wp.i18n.__("Not Shipped","surecart"),shipped:wp.i18n.__("Shipped","surecart"),delivered:wp.i18n.__("Delivered","surecart")},type={unshipped:"default",shipped:"info",delivered:"success"},ScOrderStatusBadge=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.status=void 0,this.size="medium",this.pill=!1,this.clearable=!1}render(){return"unshippable"===this.status?h(Host,{style:{display:"none"}}):h("sc-tag",{type:null==type?void 0:type[null==this?void 0:this.status],pill:this.pill},(null==status?void 0:status[this.status])||this.status)}static get style(){return ScFulfillmentShippingStatusBadgeStyle0}},[1,"sc-fulfillment-shipping-status-badge",{status:[1],size:[513],pill:[516],clearable:[4]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["sc-fulfillment-shipping-status-badge","sc-tag"].forEach((t=>{switch(t){case"sc-fulfillment-shipping-status-badge":customElements.get(t)||customElements.define(t,ScOrderStatusBadge);break;case"sc-tag":customElements.get(t)||defineCustomElement$1()}}))}export{ScOrderStatusBadge as S,defineCustomElement as d};