(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 ModelReference32 = /** @class */ (function () {
        function ModelReference32(elementRef) {
            this.elementRef = elementRef;
        }
        ModelReference32.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 32,
                height: 32,
                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;
                ModelReference32.titleIdCounter++;
                title.setAttribute("id", "model-reference32-" + ModelReference32.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "model-reference32-" + ModelReference32.titleIdCounter);
            }
        };
        ModelReference32.titleIdCounter = 0;
        ModelReference32.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-model-reference32",
                        template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M4 21v2h3.586L2 28.586 3.414 30 9 24.414V28h2v-7H4z\"></path><path d=\"M23.5 4h-15l-6 8-.784 1.045L6.877 19l1.324-1.526L5.19 14h5.112L16 29.527l14.284-16.482zm3.5 8h-5.446l-3.75-6H22.5zm-7.804 0h-6.392L16 6.887zM5 12l4.5-6h4.696l-3.75 6zm10.999 11.721L12.432 14h7.136zm1.944.51L21.698 14h5.112z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        ModelReference32.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        ModelReference32.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return ModelReference32;
    }());
    var ModelReference32Module = /** @class */ (function () {
        function ModelReference32Module() {
        }
        ModelReference32Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            ModelReference32
                        ],
                        exports: [
                            ModelReference32
                        ]
                    },] },
        ];
        return ModelReference32Module;
    }());

    exports.ModelReference32 = ModelReference32;
    exports.ModelReference32Module = ModelReference32Module;

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

})));
