import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Identification20 = /** @class */ (function () {
    function Identification20(elementRef) {
        this.elementRef = elementRef;
    }
    Identification20.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;
            Identification20.titleIdCounter++;
            title.setAttribute("id", "identification20-" + Identification20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "identification20-" + Identification20.titleIdCounter);
        }
    };
    Identification20.titleIdCounter = 0;
    Identification20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-identification20",
                    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=\"M28 6v20H4V6h24m0-2H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z\"></path><path d=\"M6 10h7v2H6zm0 4h4v2H6zm17 4h-6a3 3 0 0 0-3 3v2h2v-2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2h2v-2a3 3 0 0 0-3-3zm-3-1a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Identification20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Identification20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Identification20;
}());
export { Identification20 };
var Identification20Module = /** @class */ (function () {
    function Identification20Module() {
    }
    Identification20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Identification20
                    ],
                    exports: [
                        Identification20
                    ]
                },] },
    ];
    return Identification20Module;
}());
export { Identification20Module };
//# sourceMappingURL=20.js.map