import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{s as state}from"./mutations2.js";import{d as defineCustomElement$1}from"./sc-line-item2.js";const scLineItemTrialCss=":host{display:block}",ScLineItemTrialStyle0=scLineItemTrialCss,ScLineItemTrial=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.label=void 0}render(){var e,t;return(null===(e=null==state?void 0:state.checkout)||void 0===e?void 0:e.trial_amount)?h("sc-line-item",null,h("span",{slot:"description"},this.label||wp.i18n.__("Trial","surecart")),h("span",{slot:"price-description"},null===(t=null==state?void 0:state.checkout)||void 0===t?void 0:t.trial_display_amount)):h(Host,{style:{display:"none"}})}static get style(){return ScLineItemTrialStyle0}},[1,"sc-line-item-trial",{label:[1]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["sc-line-item-trial","sc-line-item"].forEach((e=>{switch(e){case"sc-line-item-trial":customElements.get(e)||customElements.define(e,ScLineItemTrial);break;case"sc-line-item":customElements.get(e)||defineCustomElement$1()}}))}export{ScLineItemTrial as S,defineCustomElement as d};