import{h}from"@stencil/core";import{__}from"@wordpress/i18n";import{formBusy}from"../../../../store/form/getters";import{state as checkoutState}from"../../../../store/checkout/index";export class ScLineItemInvoiceMemo{constructor(){this.text=void 0}render(){var e;const t=null==checkoutState?void 0:checkoutState.checkout,o=(null===(e=null==t?void 0:t.invoice)||void 0===e?void 0:e.memo)||null;return o?formBusy()&&!(null==t?void 0:t.invoice)?h("div",null,h("sc-skeleton",{style:{width:"100px"}}),h("sc-skeleton",{style:{width:"200px"}})):h("div",{class:"invoice-memo"},h("div",{class:"invoice-memo__title"},this.text||__("Memo","surecart")),h("div",{class:"invoice-memo__content"},o)):null}static get is(){return"sc-invoice-memo"}static get encapsulation(){return"shadow"}static get originalStyleUrls(){return{$:["sc-invoice-memo.scss"]}}static get styleUrls(){return{$:["sc-invoice-memo.css"]}}static get properties(){return{text:{type:"string",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:"Memo Label"},attribute:"text",reflect:!1}}}}