import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var QComposerEdit32 = /** @class */ (function () {
    function QComposerEdit32(elementRef) {
        this.elementRef = elementRef;
    }
    QComposerEdit32.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;
            QComposerEdit32.titleIdCounter++;
            title.setAttribute("id", "q-composer-edit32-" + QComposerEdit32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "q-composer-edit32-" + QComposerEdit32.titleIdCounter);
        }
    };
    QComposerEdit32.titleIdCounter = 0;
    QComposerEdit32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-q-composer-edit32",
                    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=\"M25.82 10H30V8h-4.18a3 3 0 0 0-5.64 0H13V5H5v3H2v2h3v3h8v-3h7.18A3 3 0 0 0 22 11.82v7.32A4 4 0 0 0 19.14 22H2v2h17.14a4 4 0 0 0 7.72 0H30v-2h-3.14A4 4 0 0 0 24 19.14v-7.32A3 3 0 0 0 25.82 10zM11 11H7V7h4zm14 12a2 2 0 1 1-2-2 2 2 0 0 1 2 2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    QComposerEdit32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    QComposerEdit32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return QComposerEdit32;
}());
export { QComposerEdit32 };
var QComposerEdit32Module = /** @class */ (function () {
    function QComposerEdit32Module() {
    }
    QComposerEdit32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        QComposerEdit32
                    ],
                    exports: [
                        QComposerEdit32
                    ]
                },] },
    ];
    return QComposerEdit32Module;
}());
export { QComposerEdit32Module };
//# sourceMappingURL=32.js.map