import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Camera20 = /** @class */ (function () {
    function Camera20(elementRef) {
        this.elementRef = elementRef;
    }
    Camera20.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;
            Camera20.titleIdCounter++;
            title.setAttribute("id", "camera20-" + Camera20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "camera20-" + Camera20.titleIdCounter);
        }
    };
    Camera20.titleIdCounter = 0;
    Camera20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-camera20",
                    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 26H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h6.46l1.71-2.55A1 1 0 0 1 12 4h8a1 1 0 0 1 .83.45L22.54 7H29a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1zM4 24h24V9h-6a1 1 0 0 1-.83-.45L19.46 6h-6.92l-1.71 2.55A1 1 0 0 1 10 9H4z\"></path><path d=\"M16 22a6 6 0 1 1 6-6 6 6 0 0 1-6 6zm0-10a4 4 0 1 0 4 4 4 4 0 0 0-4-4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Camera20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Camera20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Camera20;
}());
export { Camera20 };
var Camera20Module = /** @class */ (function () {
    function Camera20Module() {
    }
    Camera20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Camera20
                    ],
                    exports: [
                        Camera20
                    ]
                },] },
    ];
    return Camera20Module;
}());
export { Camera20Module };
//# sourceMappingURL=20.js.map