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 e,t,o;return(null===(e=null==checkoutState?void 0:checkoutState.checkout)||void 0===e?void 0:e.bump_amount)?h("sc-line-item",null,h("span",{slot:"description"},this.label||__("Bundle Discount","surecart")),h("span",{slot:"price"},h("sc-format-number",{type:"currency",currency:(null===(t=null==checkoutState?void 0:checkoutState.checkout)||void 0===t?void 0:t.currency)||"usd",value:null===(o=null==checkoutState?void 0:checkoutState.checkout)||void 0===o?void 0:o.bump_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}}}}