import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Cut24 = /** @class */ (function () {
    function Cut24(elementRef) {
        this.elementRef = elementRef;
    }
    Cut24.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;
            Cut24.titleIdCounter++;
            title.setAttribute("id", "cut24-" + Cut24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "cut24-" + Cut24.titleIdCounter);
        }
    };
    Cut24.titleIdCounter = 0;
    Cut24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-cut24",
                    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=\"M26.5 19.63L20.24 16l6.26-3.63a5 5 0 0 0-1.21-9.2A5.19 5.19 0 0 0 24 3a5 5 0 0 0-4.33 7.53 5 5 0 0 0 2.39 2.1l-3.82 2.21L4 6.6 3 8.34 16.24 16 3 23.68l1 1.74 14.24-8.26 3.82 2.21a5 5 0 0 0-2.39 2.1A5 5 0 0 0 24 29a5.19 5.19 0 0 0 1.29-.17 5 5 0 0 0 1.21-9.2zm-5.1-10.1a3 3 0 0 1 1.1-4.12 3 3 0 0 1 4.1 1.11 3 3 0 0 1-1.1 4.11 3 3 0 0 1-4.1-1.1zm5.2 16a3 3 0 0 1-4.1 1.11 3 3 0 0 1-1.1-4.12 3 3 0 0 1 4.1-1.1 3 3 0 0 1 1.1 4.06z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Cut24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Cut24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Cut24;
}());
export { Cut24 };
var Cut24Module = /** @class */ (function () {
    function Cut24Module() {
    }
    Cut24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Cut24
                    ],
                    exports: [
                        Cut24
                    ]
                },] },
    ];
    return Cut24Module;
}());
export { Cut24Module };
//# sourceMappingURL=24.js.map