import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var CheckmarkFilled24 = /** @class */ (function () {
    function CheckmarkFilled24(elementRef) {
        this.elementRef = elementRef;
    }
    CheckmarkFilled24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            viewBox: "0 0 24 24",
            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;
            CheckmarkFilled24.titleIdCounter++;
            title.setAttribute("id", "checkmark-filled24-" + CheckmarkFilled24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "checkmark-filled24-" + CheckmarkFilled24.titleIdCounter);
        }
    };
    CheckmarkFilled24.titleIdCounter = 0;
    CheckmarkFilled24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-checkmark-filled24",
                    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 24 24\" aria-hidden=\"true\"><path d=\"M12 1C6 1 1 6 1 12s5 11 11 11 11-4.9 11-11S18.1 1 12 1zm-1.6 15.3l-3.9-3.9 1.3-1.2 2.7 2.7 5.8-5.8 1.3 1.3-7.2 6.9z\"></path><path d=\"M10.4 16.3l-3.9-3.9 1.3-1.2 2.7 2.7 5.8-5.8 1.3 1.3-7.2 6.9z\" data-icon-path=\"inner-path\" opacity=\"0\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    CheckmarkFilled24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    CheckmarkFilled24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return CheckmarkFilled24;
}());
export { CheckmarkFilled24 };
var CheckmarkFilled24Module = /** @class */ (function () {
    function CheckmarkFilled24Module() {
    }
    CheckmarkFilled24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        CheckmarkFilled24
                    ],
                    exports: [
                        CheckmarkFilled24
                    ]
                },] },
    ];
    return CheckmarkFilled24Module;
}());
export { CheckmarkFilled24Module };
//# sourceMappingURL=24.js.map