import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var FolderAdd20 = /** @class */ (function () {
    function FolderAdd20(elementRef) {
        this.elementRef = elementRef;
    }
    FolderAdd20.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;
            FolderAdd20.titleIdCounter++;
            title.setAttribute("id", "folder-add20-" + FolderAdd20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "folder-add20-" + FolderAdd20.titleIdCounter);
        }
    };
    FolderAdd20.titleIdCounter = 0;
    FolderAdd20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-folder-add20",
                    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 20h-2v4h-4v2h4v4h2v-4h4v-2h-4v-4z\"></path><path d=\"M28 8H16l-3.41-3.41A2 2 0 0 0 11.17 4H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h12v-2H4V6h7.17l3.42 3.41.58.59H28v7h2v-7a2 2 0 0 0-2-2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    FolderAdd20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    FolderAdd20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return FolderAdd20;
}());
export { FolderAdd20 };
var FolderAdd20Module = /** @class */ (function () {
    function FolderAdd20Module() {
    }
    FolderAdd20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        FolderAdd20
                    ],
                    exports: [
                        FolderAdd20
                    ]
                },] },
    ];
    return FolderAdd20Module;
}());
export { FolderAdd20Module };
//# sourceMappingURL=20.js.map