import{Host,h}from"@stencil/core";import{state}from"../../../../store/product/index";export class ScProductText{constructor(){this.text="name",this.productId=void 0}render(){var t;const e=null===(t=state[this.productId])||void 0===t?void 0:t.product;return(null==e?void 0:e[this.text])?h("span",{style:{whiteSpace:"pre-line"},innerHTML:e[this.text]}):h(Host,null,h("slot",null))}static get is(){return"sc-product-text"}static get encapsulation(){return"shadow"}static get originalStyleUrls(){return{$:["sc-product-text.css"]}}static get styleUrls(){return{$:["sc-product-text.css"]}}static get properties(){return{text:{type:"string",mutable:!1,complexType:{original:"'name' | 'description'",resolved:'"description" | "name"',references:{}},required:!1,optional:!1,docs:{tags:[],text:""},attribute:"text",reflect:!1,defaultValue:"'name'"},productId:{type:"string",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},attribute:"product-id",reflect:!1}}}}