(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 LetterWw32 = /** @class */ (function () {
        function LetterWw32(elementRef) {
            this.elementRef = elementRef;
        }
        LetterWw32.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;
                LetterWw32.titleIdCounter++;
                title.setAttribute("id", "letter-ww32-" + LetterWw32.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "letter-ww32-" + LetterWw32.titleIdCounter);
            }
        };
        LetterWw32.titleIdCounter = 0;
        LetterWw32.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-letter-ww32",
                        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=\"M24.3 13l-.91 8.61L22 13h-2l-1.39 8.61L17.7 13H16l1.36 10h2.28L21 14.63 22.36 23h2.28L26 13h-1.7zM12.21 9l-.34 8-.26 4.54L11.2 18l-.68-5.46H8.5L7.82 18l-.41 3.54L7.16 17l-.35-8h-1.8l1 14h2.27l.76-4.93L9.5 14l.01-.03.01.03.46 4.07.76 4.93h2.27l1-14h-1.8z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        LetterWw32.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        LetterWw32.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return LetterWw32;
    }());
    var LetterWw32Module = /** @class */ (function () {
        function LetterWw32Module() {
        }
        LetterWw32Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            LetterWw32
                        ],
                        exports: [
                            LetterWw32
                        ]
                    },] },
        ];
        return LetterWw32Module;
    }());

    exports.LetterWw32 = LetterWw32;
    exports.LetterWw32Module = LetterWw32Module;

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

})));
