import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Phone20 = /** @class */ (function () {
    function Phone20(elementRef) {
        this.elementRef = elementRef;
    }
    Phone20.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;
            Phone20.titleIdCounter++;
            title.setAttribute("id", "phone20-" + Phone20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "phone20-" + Phone20.titleIdCounter);
        }
    };
    Phone20.titleIdCounter = 0;
    Phone20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-phone20",
                    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=\"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 */
    Phone20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Phone20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Phone20;
}());
export { Phone20 };
var Phone20Module = /** @class */ (function () {
    function Phone20Module() {
    }
    Phone20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Phone20
                    ],
                    exports: [
                        Phone20
                    ]
                },] },
    ];
    return Phone20Module;
}());
export { Phone20Module };
//# sourceMappingURL=20.js.map