import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ViewOff16 = /** @class */ (function () {
    function ViewOff16(elementRef) {
        this.elementRef = elementRef;
    }
    ViewOff16.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 16,
            height: 16,
            viewBox: "0 0 16 16",
            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;
            ViewOff16.titleIdCounter++;
            title.setAttribute("id", "view-off16-" + ViewOff16.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "view-off16-" + ViewOff16.titleIdCounter);
        }
    };
    ViewOff16.titleIdCounter = 0;
    ViewOff16.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-view-off16",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M2.6 11.3l.7-.7C2.6 9.8 1.9 9 1.5 8c1-2.5 3.8-4.5 6.5-4.5.7 0 1.4.1 2 .4l.8-.8C9.9 2.7 9 2.5 8 2.5 4.7 2.6 1.7 4.7.5 7.8v.3c.5 1.2 1.2 2.3 2.1 3.2z\"></path><path d=\"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9c-1.5-.5-3.2.4-3.6 2-.1.5-.1 1.1 0 1.6l.9-.9zm9.5-.1c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7l-.7-.7L1 14.3l.7.7 2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3v-.4zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7c.2.3.3.6.3 1zm-2 4.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2-1.1 2.5-3.9 4.5-6.5 4.5z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ViewOff16.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ViewOff16.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ViewOff16;
}());
export { ViewOff16 };
var ViewOff16Module = /** @class */ (function () {
    function ViewOff16Module() {
    }
    ViewOff16Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ViewOff16
                    ],
                    exports: [
                        ViewOff16
                    ]
                },] },
    ];
    return ViewOff16Module;
}());
export { ViewOff16Module };
//# sourceMappingURL=16.js.map