import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var _4K24 = /** @class */ (function () {
    function _4K24(elementRef) {
        this.elementRef = elementRef;
    }
    _4K24.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;
            _4K24.titleIdCounter++;
            title.setAttribute("id", "4-k24-" + _4K24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "4-k24-" + _4K24.titleIdCounter);
        }
    };
    _4K24.titleIdCounter = 0;
    _4K24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-4-k24",
                    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=\"M12 11.03v4h-2v-4H8v6h4v4h2v-10h-2zm12.19 0H22l-3 4.39v-4.39h-2v10h2V18.3l.91-1.33L22 21.03h2.19l-2.99-5.62 2.99-4.38z\"></path><path d=\"M28 26H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h24a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2zM4 8v16h24V8z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    _4K24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    _4K24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return _4K24;
}());
export { _4K24 };
var _4K24Module = /** @class */ (function () {
    function _4K24Module() {
    }
    _4K24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        _4K24
                    ],
                    exports: [
                        _4K24
                    ]
                },] },
    ];
    return _4K24Module;
}());
export { _4K24Module };
//# sourceMappingURL=24.js.map