import { jsx as _jsx, jsxs as _jsxs } from "@stencil/core/jsx-runtime";
import { Host } from "@stencil/core";
import { useId } from "../utils";
export class Popover {
    host;
    // MARK: Props
    loading = false;
    popoverId;
    // MARK: States
    // MARK: Events
    // MARK: Lifecycle
    // MARK: Render
    render() {
        const { popoverId } = this;
        const fallbackId = useId();
        const id = popoverId || fallbackId;
        return (_jsxs(Host, { children: [_jsx("dds-button", { popovertarget: id, popovertargetaction: "toggle", children: "Toggle popover" }, '16cebe31c04db5c72f71b8c747117a031917dd60'), _jsx("div", { class: "dds-popover", id: id, popover: "auto", children: _jsx("slot", {}, 'c7972fb3ef8968958945b080ce8a0708968c6879') }, 'd77ddf49d7fc84fb849d6bc2982c118ba557854c')] }, 'd6a9e744284a6e5ad750cfb7b16a745eaedf46ba'));
    }
    static get is() { return "dds-popover"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "$": ["popover.css"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["popover.css"]
        };
    }
    static get properties() {
        return {
            "loading": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "loading",
                "defaultValue": "false"
            },
            "popoverId": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string | undefined",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "popover-id"
            }
        };
    }
    static get elementRef() { return "host"; }
}
