import { h, Host } from "@stencil/core";
import { arrow_right } from "pn-design-assets/pn-assets/icons.js";
export class PnProxioProductcardPricelink {
    constructor() {
        this.price = undefined;
        this.vatText = '';
        this.link = undefined;
        this.linktext = undefined;
    }
    render() {
        return this.link && this.linktext ? (h(Host, null, this.price ? (h("h3", null, this.price, " ", h("span", { class: "pn-pricelink-vat" }, this.vatText))) : null, h("pn-button", { small: "true", icon: arrow_right, appearance: "light", href: this.link, target: "_blank", rel: "noopener nofollower noreferrer" }, this.linktext))) : null;
    }
    static get is() { return "pn-proxio-productcard-pricelink"; }
    static get originalStyleUrls() {
        return {
            "$": ["pn-proxio-productcard-pricelink.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["pn-proxio-productcard-pricelink.css"]
        };
    }
    static get properties() {
        return {
            "price": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "price",
                "reflect": false
            },
            "vatText": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "vat-text",
                "reflect": false,
                "defaultValue": "''"
            },
            "link": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "link",
                "reflect": false
            },
            "linktext": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "linktext",
                "reflect": false
            }
        };
    }
}
//# sourceMappingURL=pn-proxio-productcard-pricelink.js.map
