import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Hotel24 = /** @class */ (function () {
    function Hotel24(elementRef) {
        this.elementRef = elementRef;
    }
    Hotel24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            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;
            Hotel24.titleIdCounter++;
            title.setAttribute("id", "hotel24-" + Hotel24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "hotel24-" + Hotel24.titleIdCounter);
        }
    };
    Hotel24.titleIdCounter = 0;
    Hotel24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-hotel24",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" 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 */
    Hotel24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Hotel24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Hotel24;
}());
export { Hotel24 };
var Hotel24Module = /** @class */ (function () {
    function Hotel24Module() {
    }
    Hotel24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Hotel24
                    ],
                    exports: [
                        Hotel24
                    ]
                },] },
    ];
    return Hotel24Module;
}());
export { Hotel24Module };
//# sourceMappingURL=24.js.map