import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Compare24 = /** @class */ (function () {
    function Compare24(elementRef) {
        this.elementRef = elementRef;
    }
    Compare24.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;
            Compare24.titleIdCounter++;
            title.setAttribute("id", "compare24-" + Compare24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "compare24-" + Compare24.titleIdCounter);
        }
    };
    Compare24.titleIdCounter = 0;
    Compare24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-compare24",
                    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=\"M28 6H18V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h10v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zM4 15h6.17l-2.58 2.59L9 19l5-5-5-5-1.41 1.41L10.17 13H4V4h12v20H4zm12 13v-2a2 2 0 0 0 2-2V8h10v9h-6.17l2.58-2.59L23 13l-5 5 5 5 1.41-1.41L21.83 19H28v9z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Compare24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Compare24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Compare24;
}());
export { Compare24 };
var Compare24Module = /** @class */ (function () {
    function Compare24Module() {
    }
    Compare24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Compare24
                    ],
                    exports: [
                        Compare24
                    ]
                },] },
    ];
    return Compare24Module;
}());
export { Compare24Module };
//# sourceMappingURL=24.js.map