import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ParentChild24 = /** @class */ (function () {
    function ParentChild24(elementRef) {
        this.elementRef = elementRef;
    }
    ParentChild24.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;
            ParentChild24.titleIdCounter++;
            title.setAttribute("id", "parent-child24-" + ParentChild24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "parent-child24-" + ParentChild24.titleIdCounter);
        }
    };
    ParentChild24.titleIdCounter = 0;
    ParentChild24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-parent-child24",
                    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=\"M28 12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h11v4H9a2 2 0 0 0-2 2v4H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2H9v-4h14v4h-3a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-3v-4a2 2 0 0 0-2-2h-6v-4zM12 28H4v-4h8zm16 0h-8v-4h8zM4 4h24v6H4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ParentChild24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ParentChild24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ParentChild24;
}());
export { ParentChild24 };
var ParentChild24Module = /** @class */ (function () {
    function ParentChild24Module() {
    }
    ParentChild24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ParentChild24
                    ],
                    exports: [
                        ParentChild24
                    ]
                },] },
    ];
    return ParentChild24Module;
}());
export { ParentChild24Module };
//# sourceMappingURL=24.js.map