"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var WidgetBase_1 = require("@dojo/framework/core/WidgetBase");
var Themed_1 = require("@dojo/framework/core/mixins/Themed");
var vdom_1 = require("@dojo/framework/core/vdom");
var css = require("../theme/snackbar.m.css");
var Snackbar = /** @class */ (function (_super) {
    tslib_1.__extends(Snackbar, _super);
    function Snackbar() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Snackbar.prototype.render = function () {
        var _a = this.properties, type = _a.type, open = _a.open, leading = _a.leading, stacked = _a.stacked, messageRenderer = _a.messageRenderer, actionsRenderer = _a.actionsRenderer;
        return (vdom_1.tsx("div", { key: "root", classes: this.theme([
                css.root,
                open ? css.open : null,
                type ? css[type] : null,
                leading ? css.leading : null,
                stacked ? css.stacked : null
            ]) },
            vdom_1.tsx("div", { key: "content", classes: this.theme(css.content) },
                vdom_1.tsx("div", { key: "label", classes: this.theme(css.label), role: "status", "aria-live": "polite" }, messageRenderer()),
                actionsRenderer && (vdom_1.tsx("div", { key: "actions", classes: this.theme(css.actions) }, actionsRenderer())))));
    };
    Snackbar = tslib_1.__decorate([
        Themed_1.theme(css)
    ], Snackbar);
    return Snackbar;
}(Themed_1.ThemedMixin(WidgetBase_1.WidgetBase)));
exports.Snackbar = Snackbar;
exports.default = Snackbar;

/*# sourceMappingURL=index.js.map*/