import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Model24 = /** @class */ (function () {
    function Model24(elementRef) {
        this.elementRef = elementRef;
    }
    Model24.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;
            Model24.titleIdCounter++;
            title.setAttribute("id", "model24-" + Model24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "model24-" + Model24.titleIdCounter);
        }
    };
    Model24.titleIdCounter = 0;
    Model24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-model24",
                    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=\"M23.5 4h-15l-6.784 9.045L16 29.527l14.284-16.482zm3.5 8h-5.446l-3.75-6H22.5zm-16.698 2l3.754 10.23L5.19 14zm2.13 0h7.136l-3.569 9.721zm.373-2L16 6.887 19.196 12zm8.893 2h5.112l-8.867 10.231zM9.5 6h4.696l-3.75 6H5z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Model24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Model24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Model24;
}());
export { Model24 };
var Model24Module = /** @class */ (function () {
    function Model24Module() {
    }
    Model24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Model24
                    ],
                    exports: [
                        Model24
                    ]
                },] },
    ];
    return Model24Module;
}());
export { Model24Module };
//# sourceMappingURL=24.js.map