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:"8d8a230f9dbec7d19a7d00bc44fa39713efdd6e5",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:"3ab5ed31f539b2b9c231be95a01e8fdfec918d3d",class:"item__image",part:"image"},h("slot",{key:"49075359b46640ae974a6dc2b2659e805532bfb1",name:"image"})),h("div",{key:"4ed02dee66320021d27720839132a68256ff96c1",class:"item__text",part:"text"},h("div",{key:"b6e99c86df81638c04bcef412e7ccf023cf9d764",class:"item__title",part:"title"},h("slot",{key:"787c1a329d370dc1fbf95a201c546c4fc49b5752",name:"title"})),h("div",{key:"5bacfb87fbe762f8d85a59fdecaf6a5ac75c04d4",class:"item__description",part:"description"},h("slot",{key:"9f04a4881e4bbf36ad560a553301bfd30a81f785",name:"description"}))),h("div",{key:"5e5c4d9f1824c1ef6d75bac4f15354f57f5a46b7",class:"item__end",part:"price"},h("div",{key:"da16d3fd7ed72e3159ceed4d80a9c28ae84560e1",class:"item__price-currency",part:"currency"},h("slot",{key:"b015963c1d99746abf63bfb3a4bb4a2e069cd888",name:"currency"})),h("div",{key:"217a5d84e49bcb5f7edf4007faa38605bff6d13f",class:"item__price-text",part:"price-text"},h("div",{key:"12b469c4c2e173a915c7ecead7b97220db7fb18a",class:"item__price",part:"price"},h("slot",{key:"751fe130ba023c9f61ad4c6356d208c71dddc9f9",name:"price"})),h("div",{key:"1b51222bad0f770f380380f6cdc85a614cbf5318",class:"item__price-description",part:"price-description"},h("slot",{key:"d54913bca34068e58f61ac8952594e7e8fa3ce27",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"}}