import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Hotel32 = /** @class */ (function () {
    function Hotel32(elementRef) {
        this.elementRef = elementRef;
    }
    Hotel32.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 32,
            height: 32,
            viewBox: "0 0 32 32",
            title: this.title,
            "aria-label": this.ariaLabel,
            "aria-labelledby": this.ariaLabelledby,
            "aria-hidden": this.ariaHidden,
            focusable: this.focusable
        });
        var attrKeys = Object.keys(attributes);
        for (var i = 0; i < attrKeys.length; i++) {
            var key = attrKeys[i];
            var value = attributes[key];
            if (key === "title") {
                continue;
            }
            if (value) {
                svg.setAttribute(key, value);
            }
        }
        if (attributes.title) {
            var title = document.createElement("title");
            title.textContent = attributes.title;
            Hotel32.titleIdCounter++;
            title.setAttribute("id", "hotel32-" + Hotel32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "hotel32-" + Hotel32.titleIdCounter);
        }
    };
    Hotel32.titleIdCounter = 0;
    Hotel32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-hotel32",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M9.5 15A1.5 1.5 0 1 1 8 16.5 1.5 1.5 0 0 1 9.5 15m0-2a3.5 3.5 0 1 0 3.5 3.5A3.5 3.5 0 0 0 9.5 13z\"></path><path d=\"M25 14h-8a2 2 0 0 0-2 2v6H4V10.6l12-6.46 12.53 6.74.94-1.76-13-7a1 1 0 0 0-.94 0l-13 7A1 1 0 0 0 2 10v20h2v-6h24v6h2V19a5 5 0 0 0-5-5zm-8 8v-6h8a3 3 0 0 1 3 3v3z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Hotel32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Hotel32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Hotel32;
}());
export { Hotel32 };
var Hotel32Module = /** @class */ (function () {
    function Hotel32Module() {
    }
    Hotel32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Hotel32
                    ],
                    exports: [
                        Hotel32
                    ]
                },] },
    ];
    return Hotel32Module;
}());
export { Hotel32Module };
//# sourceMappingURL=32.js.map