import { h, Host } from "@stencil/core";
import { align_center } from "pn-design-assets/pn-assets/icons.js";
export class PnProductCardInfo {
    constructor() {
        this.rulle = undefined;
        this.paket = undefined;
        this.label = undefined;
        this.text = undefined;
    }
    render() {
        return this.label ? (h(Host, null, h("div", { class: "cardinfocontent" }, this.text ? h("pre", { slot: "formatPre" }, this.text) : null))) : (h(Host, null, h("div", { class: "cardinfocontent" }, this.paket ? (h("div", { class: "cardinfocontent-item" }, h("strong", null, "Maxm\u00E5tt"), this.paket.split('/').map(item => item.split(':').length > 1 ? (h("p", null, h("strong", null, item.split(':')[0] + ': '), " ", item.split(':')[1])) : (h("p", null, item))))) : null, this.rulle ? (h("div", { class: "cardinfocontent-item" }, h("strong", null, "Rulle"), this.rulle.split('/').map(item => item.split(':').length > 0 ? (h("p", null, h("strong", null, item.split(':')[0] + ': '), " ", item.split(':')[1])) : (h("p", null, item))))) : null)));
    }
    static get is() { return "pn-product-card-info"; }
    static get originalStyleUrls() {
        return {
            "$": ["pn-product-card-info.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["pn-product-card-info.css"]
        };
    }
    static get properties() {
        return {
            "rulle": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "rulle",
                "reflect": false
            },
            "paket": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "paket",
                "reflect": false
            },
            "label": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "label",
                "reflect": false
            },
            "text": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "text",
                "reflect": false
            }
        };
    }
}
h("pn-icon", { icon: align_center, small: "false", color: "black" });
//# sourceMappingURL=pn-product-card-info.js.map
