import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Password24 = /** @class */ (function () {
    function Password24(elementRef) {
        this.elementRef = elementRef;
    }
    Password24.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;
            Password24.titleIdCounter++;
            title.setAttribute("id", "password24-" + Password24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "password24-" + Password24.titleIdCounter);
        }
    };
    Password24.titleIdCounter = 0;
    Password24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-password24",
                    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=\"M21 2a9 9 0 0 0-9 9 8.87 8.87 0 0 0 .39 2.61L2 24v6h6l10.39-10.39A9 9 0 0 0 30 11.74a8.77 8.77 0 0 0-1.65-6A9 9 0 0 0 21 2zm0 16a7 7 0 0 1-2-.3l-1.15-.35-.85.85-3.18 3.18L12.41 20 11 21.41l1.38 1.38-1.59 1.59L9.41 23 8 24.41l1.38 1.38L7.17 28H4v-3.17L13.8 15l.85-.85-.29-.95a7.14 7.14 0 0 1 3.4-8.44 7 7 0 0 1 10.24 6 6.69 6.69 0 0 1-1.09 4A7 7 0 0 1 21 18z\"></path><circle cx=\"22\" cy=\"10\" r=\"2\"></circle></svg>"
                },] },
    ];
    /** @nocollapse */
    Password24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Password24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Password24;
}());
export { Password24 };
var Password24Module = /** @class */ (function () {
    function Password24Module() {
    }
    Password24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Password24
                    ],
                    exports: [
                        Password24
                    ]
                },] },
    ];
    return Password24Module;
}());
export { Password24Module };
//# sourceMappingURL=24.js.map