import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Map20 = /** @class */ (function () {
    function Map20(elementRef) {
        this.elementRef = elementRef;
    }
    Map20.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;
            Map20.titleIdCounter++;
            title.setAttribute("id", "map20-" + Map20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "map20-" + Map20.titleIdCounter);
        }
    };
    Map20.titleIdCounter = 0;
    Map20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-map20",
                    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=\"M16 24l-6.09-8.6A8.14 8.14 0 0 1 16 2a8.08 8.08 0 0 1 8 8.13 8.2 8.2 0 0 1-1.8 5.13zm0-20a6.07 6.07 0 0 0-6 6.13 6.19 6.19 0 0 0 1.49 4L16 20.52 20.63 14A6.24 6.24 0 0 0 22 10.13 6.07 6.07 0 0 0 16 4z\"></path><circle cx=\"16\" cy=\"9\" r=\"2\"></circle><path d=\"M28 12h-2v2h2v14H4V14h2v-2H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V14a2 2 0 0 0-2-2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Map20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Map20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Map20;
}());
export { Map20 };
var Map20Module = /** @class */ (function () {
    function Map20Module() {
    }
    Map20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Map20
                    ],
                    exports: [
                        Map20
                    ]
                },] },
    ];
    return Map20Module;
}());
export { Map20Module };
//# sourceMappingURL=20.js.map