import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Unlink20 = /** @class */ (function () {
    function Unlink20(elementRef) {
        this.elementRef = elementRef;
    }
    Unlink20.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;
            Unlink20.titleIdCounter++;
            title.setAttribute("id", "unlink20-" + Unlink20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "unlink20-" + Unlink20.titleIdCounter);
        }
    };
    Unlink20.titleIdCounter = 0;
    Unlink20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-unlink20",
                    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=\"M3.584 5.002l1.414-1.414 3.416 3.414L7 8.417zm19.997 19.99l1.415-1.414 3.414 3.416-1.414 1.414zM11 2h2v4h-2zm-9 9h4v2H2zm24 8h4v2h-4zm-7 7h2v4h-2zm-2.42-4.93l-3.71 3.72a4 4 0 1 1-5.66-5.66l3.72-3.72L9.51 14 5.8 17.72a6 6 0 0 0-.06 8.54A6 6 0 0 0 10 28a6.07 6.07 0 0 0 4.32-1.8L18 22.49zm-1.17-10.14l3.72-3.72a4 4 0 1 1 5.66 5.66l-3.72 3.72L22.49 18l3.71-3.72a6 6 0 0 0 .06-8.54A6 6 0 0 0 22 4a6.07 6.07 0 0 0-4.32 1.8L14 9.51z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Unlink20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Unlink20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Unlink20;
}());
export { Unlink20 };
var Unlink20Module = /** @class */ (function () {
    function Unlink20Module() {
    }
    Unlink20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Unlink20
                    ],
                    exports: [
                        Unlink20
                    ]
                },] },
    ];
    return Unlink20Module;
}());
export { Unlink20Module };
//# sourceMappingURL=20.js.map