/*!
 * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
 */
import { h } from "@stencil/core";
import classname from "classnames";
export class ViewerToolbar {
    constructor() {
        /**
         * Specifies where the toolbar is positioned.
         */
        this.placement = 'bottom-center';
        this.direction = 'horizontal';
    }
    render() {
        const [vertical, horizontal] = this.placement.split('-');
        return (h("vertex-viewer-layer", { key: '9a806f9d919ccd7dccdb849e8403cac35ad50e4d', class: classname('layer', {
                'position-top': vertical === 'top',
                'position-middle': vertical === 'middle',
                'position-bottom': vertical === 'bottom',
                'position-left': horizontal === 'left',
                'position-center': horizontal === 'center',
                'position-right': horizontal === 'right',
            }) }, h("div", { key: '07b21949f6065f08e78143fe664b17348f67e28f', class: classname('inner', {
                vertical: this.direction === 'vertical',
                horizontal: this.direction === 'horizontal',
            }) }, h("slot", { key: 'd5b7ee0c96e101a581c1e3d6d4e286ab843942a1' }))));
    }
    static get is() { return "vertex-viewer-toolbar"; }
    static get encapsulation() { return "shadow"; }
    static get originalStyleUrls() {
        return {
            "$": ["viewer-toolbar.css"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["viewer-toolbar.css"]
        };
    }
    static get properties() {
        return {
            "placement": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "ViewerToolbarPlacement",
                    "resolved": "\"bottom-center\" | \"bottom-left\" | \"bottom-right\" | \"middle-left\" | \"middle-right\" | \"top-center\" | \"top-left\" | \"top-right\"",
                    "references": {
                        "ViewerToolbarPlacement": {
                            "location": "import",
                            "path": "./types",
                            "id": "src/components/viewer-toolbar/types.ts::ViewerToolbarPlacement",
                            "referenceLocation": "ViewerToolbarPlacement"
                        }
                    }
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Specifies where the toolbar is positioned."
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "placement",
                "defaultValue": "'bottom-center'"
            },
            "direction": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "ViewerToolbarDirection",
                    "resolved": "\"horizontal\" | \"vertical\"",
                    "references": {
                        "ViewerToolbarDirection": {
                            "location": "import",
                            "path": "./types",
                            "id": "src/components/viewer-toolbar/types.ts::ViewerToolbarDirection",
                            "referenceLocation": "ViewerToolbarDirection"
                        }
                    }
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "direction",
                "defaultValue": "'horizontal'"
            }
        };
    }
}
//# sourceMappingURL=viewer-toolbar.js.map
