import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var CopyFile20 = /** @class */ (function () {
    function CopyFile20(elementRef) {
        this.elementRef = elementRef;
    }
    CopyFile20.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;
            CopyFile20.titleIdCounter++;
            title.setAttribute("id", "copy-file20-" + CopyFile20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "copy-file20-" + CopyFile20.titleIdCounter);
        }
    };
    CopyFile20.titleIdCounter = 0;
    CopyFile20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-copy-file20",
                    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=\"M29.43 14.7l-6.05-6.12A2 2 0 0 0 22 8H9.94A2 2 0 0 0 8 10v18.1A2 2 0 0 0 9.94 30h18.12A2 2 0 0 0 30 28.05v-12a2 2 0 0 0-.57-1.35zM22 10l5.92 6H22zM10 28V10h10v6a2 2 0 0 0 2 2h6v10z\"></path><path d=\"M4 18H2V4a2 2 0 0 1 2-2h14v2H4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    CopyFile20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    CopyFile20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return CopyFile20;
}());
export { CopyFile20 };
var CopyFile20Module = /** @class */ (function () {
    function CopyFile20Module() {
    }
    CopyFile20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        CopyFile20
                    ],
                    exports: [
                        CopyFile20
                    ]
                },] },
    ];
    return CopyFile20Module;
}());
export { CopyFile20Module };
//# sourceMappingURL=20.js.map