import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var PhoneFilled24 = /** @class */ (function () {
    function PhoneFilled24(elementRef) {
        this.elementRef = elementRef;
    }
    PhoneFilled24.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;
            PhoneFilled24.titleIdCounter++;
            title.setAttribute("id", "phone-filled24-" + PhoneFilled24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "phone-filled24-" + PhoneFilled24.titleIdCounter);
        }
    };
    PhoneFilled24.titleIdCounter = 0;
    PhoneFilled24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-phone-filled24",
                    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=\"M20.33 21.48l2.24-2.24a2.19 2.19 0 0 1 2.34-.48l2.73 1.09a2.18 2.18 0 0 1 1.36 2v5A2.17 2.17 0 0 1 26.72 29C7.59 27.81 3.73 11.61 3 5.41A2.17 2.17 0 0 1 5.17 3H10a2.16 2.16 0 0 1 2 1.36l1.09 2.73a2.16 2.16 0 0 1-.47 2.34l-2.24 2.24s1.29 8.73 9.95 9.81z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    PhoneFilled24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    PhoneFilled24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return PhoneFilled24;
}());
export { PhoneFilled24 };
var PhoneFilled24Module = /** @class */ (function () {
    function PhoneFilled24Module() {
    }
    PhoneFilled24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        PhoneFilled24
                    ],
                    exports: [
                        PhoneFilled24
                    ]
                },] },
    ];
    return PhoneFilled24Module;
}());
export { PhoneFilled24Module };
//# sourceMappingURL=24.js.map