import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Phone24 = /** @class */ (function () {
    function Phone24(elementRef) {
        this.elementRef = elementRef;
    }
    Phone24.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;
            Phone24.titleIdCounter++;
            title.setAttribute("id", "phone24-" + Phone24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "phone24-" + Phone24.titleIdCounter);
        }
    };
    Phone24.titleIdCounter = 0;
    Phone24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-phone24",
                    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=\"M26 29h-.17C6.18 27.87 3.39 11.29 3 6.23A3 3 0 0 1 5.76 3h5.51a2 2 0 0 1 1.86 1.26L14.65 8a2 2 0 0 1-.44 2.16l-2.13 2.15a9.37 9.37 0 0 0 7.58 7.6l2.17-2.15a2 2 0 0 1 2.17-.41l3.77 1.51A2 2 0 0 1 29 20.72V26a3 3 0 0 1-3 3zM6 5a1 1 0 0 0-1 1v.08C5.46 12 8.41 26 25.94 27a1 1 0 0 0 1.06-.94v-5.34l-3.77-1.51-2.87 2.85-.48-.06c-8.7-1.09-9.88-9.79-9.88-9.88l-.06-.48 2.84-2.87L11.28 5z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Phone24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Phone24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Phone24;
}());
export { Phone24 };
var Phone24Module = /** @class */ (function () {
    function Phone24Module() {
    }
    Phone24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Phone24
                    ],
                    exports: [
                        Phone24
                    ]
                },] },
    ];
    return Phone24Module;
}());
export { Phone24Module };
//# sourceMappingURL=24.js.map