import { h, Host } from "@stencil/core";
import { arrow_right } from "pn-design-assets/pn-assets/icons.js";
export class PnProductTilePrice {
    constructor() {
        this.label = undefined;
        this.amount = undefined;
        this.currency = undefined;
        this.url = undefined;
    }
    render() {
        if (!this.amount) {
            return;
        }
        return this.url ? (h(Host, null, h("h3", null, this.amount ? h("span", null, this.amount) : null, this.currency ? h("span", null, this.currency) : null), this.label ? (h("a", { href: this.url }, h("pn-button", { small: "true", icon: arrow_right }, this.label))) : null)) : (h(Host, null, h("h3", null, this.amount ? h("span", null, this.amount) : null, this.currency ? h("span", null, this.currency) : null)));
    }
    static get is() { return "pn-product-tile-price"; }
    static get originalStyleUrls() {
        return {
            "$": ["pn-product-tile-price.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["pn-product-tile-price.css"]
        };
    }
    static get properties() {
        return {
            "label": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "label",
                "reflect": false
            },
            "amount": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "amount",
                "reflect": false
            },
            "currency": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "currency",
                "reflect": false
            },
            "url": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "url",
                "reflect": false
            }
        };
    }
}
//# sourceMappingURL=pn-product-tile-price.js.map
