import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Map24 = /** @class */ (function () {
    function Map24(elementRef) {
        this.elementRef = elementRef;
    }
    Map24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            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;
            Map24.titleIdCounter++;
            title.setAttribute("id", "map24-" + Map24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "map24-" + Map24.titleIdCounter);
        }
    };
    Map24.titleIdCounter = 0;
    Map24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-map24",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" 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 */
    Map24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Map24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Map24;
}());
export { Map24 };
var Map24Module = /** @class */ (function () {
    function Map24Module() {
    }
    Map24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Map24
                    ],
                    exports: [
                        Map24
                    ]
                },] },
    ];
    return Map24Module;
}());
export { Map24Module };
//# sourceMappingURL=24.js.map