import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{d as defineCustomElement$1}from"./sc-tag2.js";const scOrderShipmentBadgeCss=":host{display:inline-block}",ScOrderShipmentBadgeStyle0=scOrderShipmentBadgeCss,status={unshipped:wp.i18n.__("Not Shipped","surecart"),shipped:wp.i18n.__("Shipped","surecart"),partially_shipped:wp.i18n.__("Partially Shipped","surecart"),delivered:wp.i18n.__("Delivered","surecart")},type={unshipped:"default",shipped:"info",partially_shipped:"warning",delivered:"success"},ScOrderShipmentBadge=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 ScOrderShipmentBadgeStyle0}},[1,"sc-order-shipment-badge",{status:[1],size:[513],pill:[516],clearable:[4]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["sc-order-shipment-badge","sc-tag"].forEach((e=>{switch(e){case"sc-order-shipment-badge":customElements.get(e)||customElements.define(e,ScOrderShipmentBadge);break;case"sc-tag":customElements.get(e)||defineCustomElement$1()}}))}export{ScOrderShipmentBadge as S,defineCustomElement as d};