import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Development20 = /** @class */ (function () {
    function Development20(elementRef) {
        this.elementRef = elementRef;
    }
    Development20.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 20,
            height: 20,
            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;
            Development20.titleIdCounter++;
            title.setAttribute("id", "development20-" + Development20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "development20-" + Development20.titleIdCounter);
        }
    };
    Development20.titleIdCounter = 0;
    Development20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-development20",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M8 4v4H4V4h4M2 2v8h8V2zm16 5v4h-4V7h4m-6-2v8h8V5zM8 16v4H4v-4h4m-6-2v8h8v-8z\"></path><path d=\"M22 10v6h-6v6h-6v8h20V10zm-4 8h4v4h-4zm-2 10h-4v-4h4zm6 0h-4v-4h4zm6 0h-4v-4h4zm0-6h-4v-4h4zm-4-6v-4h4v4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Development20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Development20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Development20;
}());
export { Development20 };
var Development20Module = /** @class */ (function () {
    function Development20Module() {
    }
    Development20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Development20
                    ],
                    exports: [
                        Development20
                    ]
                },] },
    ];
    return Development20Module;
}());
export { Development20Module };
//# sourceMappingURL=20.js.map