import{h}from"@stencil/core";import{isRtl}from"../../../functions/page-align";export class ScLineItem{constructor(){this.price=void 0,this.currency=void 0,this.hasImageSlot=void 0,this.hasTitleSlot=void 0,this.hasDescriptionSlot=void 0,this.hasPriceSlot=void 0,this.hasPriceDescriptionSlot=void 0,this.hasCurrencySlot=void 0}componentWillLoad(){this.hasImageSlot=!!this.hostElement.querySelector('[slot="image"]'),this.hasTitleSlot=!!this.hostElement.querySelector('[slot="title"]'),this.hasDescriptionSlot=!!this.hostElement.querySelector('[slot="description"]'),this.hasPriceSlot=!!this.hostElement.querySelector('[slot="price"]'),this.hasPriceDescriptionSlot=!!this.hostElement.querySelector('[slot="price-description"]'),this.hasCurrencySlot=!!this.hostElement.querySelector('[slot="currency"]')}render(){return h("div",{key:"25c4d29e2997057567cd934a57a1f0ce6ed00cc0",part:"base",class:{item:!0,"item--has-image":this.hasImageSlot,"item--has-title":this.hasTitleSlot,"item--has-description":this.hasDescriptionSlot,"item--has-price":this.hasPriceSlot,"item--has-price-description":this.hasPriceDescriptionSlot,"item--has-price-currency":this.hasCurrencySlot,"item--is-rtl":isRtl()}},h("div",{key:"d3d2badb573efba37856667d90941d459eea5d0e",class:"item__image",part:"image"},h("slot",{key:"bb25f2e7208462a6cd2c148584fe61e897aab6cd",name:"image"})),h("div",{key:"47a40bc308d81afca239b85b6c7726d2d0536193",class:"item__text",part:"text"},h("div",{key:"8ece874d0a37ecee88f7998b186044a0a665ee64",class:"item__title",part:"title"},h("slot",{key:"b574c7b91127613039ca7524fc42328f86f4ca68",name:"title"})),h("div",{key:"cad82c24f0c7587b1ac5a4b3748410815c994720",class:"item__description",part:"description"},h("slot",{key:"bacd59ec6ff125674728ce83738cb9252d57e175",name:"description"}))),h("div",{key:"2957202b074019a3f01e04786814a2c05bff1073",class:"item__end",part:"price"},h("div",{key:"4e979dfb01632ea2bf33bdb6f5b4e9df2541349e",class:"item__price-currency",part:"currency"},h("slot",{key:"13a37d8aa4b6bb23f4cce3b2b15071943ef9a936",name:"currency"})),h("div",{key:"2affb45bd07a11e51c4f0905f764cba81cdd2e0f",class:"item__price-text",part:"price-text"},h("div",{key:"e5cb36e2f1aa9904615dc1eeae825a6efc7d6b10",class:"item__price",part:"price"},h("slot",{key:"409ac5293728cba1c119433a6ae2777ed5a40a61",name:"price"})),h("div",{key:"84ca08f13108a73a7fa17ba7d654431bdbb71ae5",class:"item__price-description",part:"price-description"},h("slot",{key:"e128f197b0ac57673c62fcd736ad4fa51cc20024",name:"price-description"})))))}static get is(){return"sc-line-item"}static get encapsulation(){return"shadow"}static get originalStyleUrls(){return{$:["sc-line-item.scss"]}}static get styleUrls(){return{$:["sc-line-item.css"]}}static get properties(){return{price:{type:"string",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:"Price of the item"},attribute:"price",reflect:!1},currency:{type:"string",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:"Currency symbol"},attribute:"currency",reflect:!1}}}static get states(){return{hasImageSlot:{},hasTitleSlot:{},hasDescriptionSlot:{},hasPriceSlot:{},hasPriceDescriptionSlot:{},hasCurrencySlot:{}}}static get elementRef(){return"hostElement"}}