import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var SendAlt20 = /** @class */ (function () {
    function SendAlt20(elementRef) {
        this.elementRef = elementRef;
    }
    SendAlt20.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 20,
            height: 20,
            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;
            SendAlt20.titleIdCounter++;
            title.setAttribute("id", "send-alt20-" + SendAlt20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "send-alt20-" + SendAlt20.titleIdCounter);
        }
    };
    SendAlt20.titleIdCounter = 0;
    SendAlt20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-send-alt20",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M27.71 4.29a1 1 0 0 0-1.05-.23l-22 8a1 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-.66l8-22a1 1 0 0 0-.21-1.05zM19 24.2l-2.79-7L21 12.41 19.59 11l-4.83 4.83L7.8 13l17.53-6.33z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    SendAlt20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    SendAlt20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return SendAlt20;
}());
export { SendAlt20 };
var SendAlt20Module = /** @class */ (function () {
    function SendAlt20Module() {
    }
    SendAlt20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        SendAlt20
                    ],
                    exports: [
                        SendAlt20
                    ]
                },] },
    ];
    return SendAlt20Module;
}());
export { SendAlt20Module };
//# sourceMappingURL=20.js.map