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: 'bad90cef455ec934bed2b346ff8865bd8354dc81', class: cls({ 'media-rounded': this.rounded, 'media-right': this.align === 'right' }) }, this.src && h("img", { key: '4f962d6ed8e19ce2ffbe868df273fe70469d3f0e', style: {
                width: this.width,
                height: this.height
            }, src: this.src, alt: this.description, "aria-label": this.description }), h("div", { key: '940361a41ac0372f3ce49c5d67136ec6f78afb7d', class: "media-body" }, h("slot", { key: 'f7dbf1e1f86e472f7a93e1fc789cb986956077ae' })));
    }
    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"
            }
        };
    }
}
