(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 Portfolio20 = /** @class */ (function () {
        function Portfolio20(elementRef) {
            this.elementRef = elementRef;
        }
        Portfolio20.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;
                Portfolio20.titleIdCounter++;
                title.setAttribute("id", "portfolio20-" + Portfolio20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "portfolio20-" + Portfolio20.titleIdCounter);
            }
        };
        Portfolio20.titleIdCounter = 0;
        Portfolio20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-portfolio20",
                        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 10h-6V6a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V12a2 2 0 0 0-2-2zM12 6h8v4h-8zM4 26V12h24v14z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Portfolio20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Portfolio20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Portfolio20;
    }());
    var Portfolio20Module = /** @class */ (function () {
        function Portfolio20Module() {
        }
        Portfolio20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Portfolio20
                        ],
                        exports: [
                            Portfolio20
                        ]
                    },] },
        ];
        return Portfolio20Module;
    }());

    exports.Portfolio20 = Portfolio20;
    exports.Portfolio20Module = Portfolio20Module;

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

})));
