(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@carbon/icon-helpers')) :
    typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@carbon/icon-helpers'], factory) :
    (factory((global.CarbonIconsAngular = {}),global.ng.Core,global.CarbonIconHelpers));
}(this, (function (exports,core,iconHelpers) { 'use strict';

    var ParentChild20 = /** @class */ (function () {
        function ParentChild20(elementRef) {
            this.elementRef = elementRef;
        }
        ParentChild20.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.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;
                ParentChild20.titleIdCounter++;
                title.setAttribute("id", "parent-child20-" + ParentChild20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "parent-child20-" + ParentChild20.titleIdCounter);
            }
        };
        ParentChild20.titleIdCounter = 0;
        ParentChild20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-parent-child20",
                        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=\"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 */
        ParentChild20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        ParentChild20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return ParentChild20;
    }());
    var ParentChild20Module = /** @class */ (function () {
        function ParentChild20Module() {
        }
        ParentChild20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            ParentChild20
                        ],
                        exports: [
                            ParentChild20
                        ]
                    },] },
        ];
        return ParentChild20Module;
    }());

    exports.ParentChild20 = ParentChild20;
    exports.ParentChild20Module = ParentChild20Module;

    Object.defineProperty(exports, '__esModule', { value: true });

})));
