import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Quotes24 = /** @class */ (function () {
    function Quotes24(elementRef) {
        this.elementRef = elementRef;
    }
    Quotes24.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;
            Quotes24.titleIdCounter++;
            title.setAttribute("id", "quotes24-" + Quotes24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "quotes24-" + Quotes24.titleIdCounter);
        }
    };
    Quotes24.titleIdCounter = 0;
    Quotes24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-quotes24",
                    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=\"M12 15H6.11A9 9 0 0 1 10 8.86l1.79-1.2L10.69 6 8.9 7.2A11 11 0 0 0 4 16.35V23a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm14 0h-5.89A9 9 0 0 1 24 8.86l1.79-1.2L24.7 6l-1.8 1.2a11 11 0 0 0-4.9 9.15V23a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Quotes24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Quotes24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Quotes24;
}());
export { Quotes24 };
var Quotes24Module = /** @class */ (function () {
    function Quotes24Module() {
    }
    Quotes24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Quotes24
                    ],
                    exports: [
                        Quotes24
                    ]
                },] },
    ];
    return Quotes24Module;
}());
export { Quotes24Module };
//# sourceMappingURL=24.js.map