import { h, Host } from "@stencil/core";
export class PnBreakpoints {
    constructor() {
        this.currentWidth = window.innerWidth;
        this.breakPointClass = 'dotcom';
    }
    hostElement;
    handleViewportSizeChange(event) {
        this.currentWidth = event.target.innerWidth;
    }
    createBreakpointClass() {
        return `breakpoints--${this.breakPointClass}`;
    }
    render() {
        return (h(Host, { key: '4b63f6e7b25cc09bc329c7868d33f5bf10eadc92' }, h("div", { key: 'f88ffae449d2006027394f62bb75042acbc594fd', class: `breakpoints ${this.createBreakpointClass()} ` }, `${this.currentWidth} px`, ' min-width: ', h("span", { key: 'ab91cc7229b2cb908bfee2dea6c87ee4ba8fca94', class: "reference" }, ' px'))));
    }
    static get is() { return "pn-breakpoints"; }
    static get originalStyleUrls() {
        return {
            "$": ["pn-breakpoints.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["pn-breakpoints.css"]
        };
    }
    static get properties() {
        return {
            "breakPointClass": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "break-point-class",
                "reflect": false,
                "defaultValue": "'dotcom'"
            }
        };
    }
    static get states() {
        return {
            "currentWidth": {}
        };
    }
    static get elementRef() { return "hostElement"; }
    static get listeners() {
        return [{
                "name": "resize",
                "method": "handleViewportSizeChange",
                "target": "window",
                "capture": false,
                "passive": true
            }];
    }
}
//# sourceMappingURL=pn-breakpoints.js.map
