import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var PhoneOff20 = /** @class */ (function () {
    function PhoneOff20(elementRef) {
        this.elementRef = elementRef;
    }
    PhoneOff20.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;
            PhoneOff20.titleIdCounter++;
            title.setAttribute("id", "phone-off20-" + PhoneOff20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "phone-off20-" + PhoneOff20.titleIdCounter);
        }
    };
    PhoneOff20.titleIdCounter = 0;
    PhoneOff20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-phone-off20",
                    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=\"M9.19 18.56A25.66 25.66 0 0 1 5 6.08V6a1 1 0 0 1 1-1h5.28l1.5 3.77-2.84 2.87.06.48a13 13 0 0 0 1.46 4.17l1.46-1.46a9.34 9.34 0 0 1-.84-2.52l2.13-2.15A2 2 0 0 0 14.65 8l-1.52-3.74A2 2 0 0 0 11.27 3H5.76A3 3 0 0 0 3 6.23 28 28 0 0 0 7.79 20zm18.58.3L24 17.35a2 2 0 0 0-2.17.41l-2.17 2.15A9.17 9.17 0 0 1 15.45 18L30 3.41 28.59 2 2 28.59 3.41 30l7-7c3.38 3.18 8.28 5.62 15.39 6h.2a3 3 0 0 0 3-3v-5.28a2 2 0 0 0-1.23-1.86zM27 26v.06a1 1 0 0 1-1.06.94c-6.51-.37-11-2.54-14.11-5.42L14 19.44A10.77 10.77 0 0 0 19.88 22l.48.06 2.87-2.85L27 20.72z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    PhoneOff20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    PhoneOff20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return PhoneOff20;
}());
export { PhoneOff20 };
var PhoneOff20Module = /** @class */ (function () {
    function PhoneOff20Module() {
    }
    PhoneOff20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        PhoneOff20
                    ],
                    exports: [
                        PhoneOff20
                    ]
                },] },
    ];
    return PhoneOff20Module;
}());
export { PhoneOff20Module };
//# sourceMappingURL=20.js.map