import { Host, h } from "@stencil/core";
import { cls } from "../../utils/helpers";
export class XMedia {
    constructor() {
        this.src = undefined;
        this.width = undefined;
        this.height = undefined;
        this.description = undefined;
        this.align = undefined;
        this.rounded = false;
    }
    /**
     * Render component
     */
    render() {
        return h(Host, { key: 'efe9b9e58a3f46d5461ea29d95301bc155a1d3d3', class: cls({ 'media-rounded': this.rounded, 'media-right': this.align === 'right' }) }, this.src && h("img", { key: 'ba86c1308785fb26fe14633720585a56244c6691', style: {
                width: this.width,
                height: this.height
            }, src: this.src, alt: this.description, "aria-label": this.description }), h("div", { key: 'b8927e5f408a5961d84f2ee790529cb391513dd5', class: "media-body" }, h("slot", { key: '9c1f16a5081a8db0ad974a3d468831c73e9dac93' })));
    }
    static get is() { return "x-media"; }
    static get originalStyleUrls() {
        return {
            "$": ["./style.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["style.css"]
        };
    }
    static get properties() {
        return {
            "src": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Element media src url/path"
                },
                "attribute": "src",
                "reflect": false
            },
            "width": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": "Element CSS media width"
                },
                "attribute": "width",
                "reflect": false
            },
            "height": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": "Element CSS media height"
                },
                "attribute": "height",
                "reflect": false
            },
            "description": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": "Element media description to aria/alt label"
                },
                "attribute": "description",
                "reflect": false
            },
            "align": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "MediaAlignType",
                    "resolved": "\"left\" | \"right\"",
                    "references": {
                        "MediaAlignType": {
                            "location": "local",
                            "path": "/opt/atlassian/pipelines/agent/build/src/components/x-media/component.tsx",
                            "id": "src/components/x-media/component.tsx::MediaAlignType"
                        }
                    }
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": "Element media align"
                },
                "attribute": "align",
                "reflect": false
            },
            "rounded": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": "Element media rounded style"
                },
                "attribute": "rounded",
                "reflect": false,
                "defaultValue": "false"
            }
        };
    }
}
