import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var NotSent32 = /** @class */ (function () {
    function NotSent32(elementRef) {
        this.elementRef = elementRef;
    }
    NotSent32.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 32,
            height: 32,
            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;
            NotSent32.titleIdCounter++;
            title.setAttribute("id", "not-sent32-" + NotSent32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "not-sent32-" + NotSent32.titleIdCounter);
        }
    };
    NotSent32.titleIdCounter = 0;
    NotSent32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-not-sent32",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M30 28.59L3.41 2 2 3.41l8 8-7.34 2.65a1 1 0 0 0 0 1.87l9.6 3.84 3.84 9.6a1 1 0 0 0 .9.63 1 1 0 0 0 .92-.66L20.6 22l8 8zM5.8 15l5.74-2 3.05 3-1.83 1.83zM17 26.2l-2.79-7L16 17.41l3 3.05zm-1.31-14.75l7.64-2.78-2.78 7.64 1.56 1.56 3.83-10.53a1 1 0 0 0-1.28-1.28L14.13 9.89z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    NotSent32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    NotSent32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return NotSent32;
}());
export { NotSent32 };
var NotSent32Module = /** @class */ (function () {
    function NotSent32Module() {
    }
    NotSent32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        NotSent32
                    ],
                    exports: [
                        NotSent32
                    ]
                },] },
    ];
    return NotSent32Module;
}());
export { NotSent32Module };
//# sourceMappingURL=32.js.map