import{h,Host}from"@stencil/core";import{__}from"@wordpress/i18n";import{state as checkoutState}from"../../../../store/checkout/index";export class ScLineItemBump{constructor(){this.label=void 0,this.loading=void 0}render(){var t,e;return(null===(t=null==checkoutState?void 0:checkoutState.checkout)||void 0===t?void 0:t.bump_amount)?h("sc-line-item",null,h("span",{slot:"description"},this.label||__("Bundle Discount","surecart")),h("span",{slot:"price"},null===(e=null==checkoutState?void 0:checkoutState.checkout)||void 0===e?void 0:e.bump_display_amount)):h(Host,{style:{display:"none"}})}static get is(){return"sc-line-item-bump"}static get encapsulation(){return"shadow"}static get originalStyleUrls(){return{$:["sc-line-item-bump.scss"]}}static get styleUrls(){return{$:["sc-line-item-bump.css"]}}static get properties(){return{label:{type:"string",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},attribute:"label",reflect:!1},loading:{type:"boolean",mutable:!1,complexType:{original:"boolean",resolved:"boolean",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},attribute:"loading",reflect:!1}}}}