import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Edit24 = /** @class */ (function () {
    function Edit24(elementRef) {
        this.elementRef = elementRef;
    }
    Edit24.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;
            Edit24.titleIdCounter++;
            title.setAttribute("id", "edit24-" + Edit24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "edit24-" + Edit24.titleIdCounter);
        }
    };
    Edit24.titleIdCounter = 0;
    Edit24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-edit24",
                    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=\"M2 27h28v2H2zM25.41 9a2 2 0 0 0 0-2.83l-3.58-3.58a2 2 0 0 0-2.83 0l-15 15V24h6.41zm-5-5L24 7.59l-3 3L17.41 7zM6 22v-3.59l10-10L19.59 12l-10 10z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Edit24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Edit24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Edit24;
}());
export { Edit24 };
var Edit24Module = /** @class */ (function () {
    function Edit24Module() {
    }
    Edit24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Edit24
                    ],
                    exports: [
                        Edit24
                    ]
                },] },
    ];
    return Edit24Module;
}());
export { Edit24Module };
//# sourceMappingURL=24.js.map