(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 CloseGlyph = /** @class */ (function () {
        function CloseGlyph(elementRef) {
            this.elementRef = elementRef;
        }
        CloseGlyph.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 10,
                height: 10,
                viewBox: "0 0 10 10",
                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;
                CloseGlyph.titleIdCounter++;
                title.setAttribute("id", "close-glyph-" + CloseGlyph.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "close-glyph-" + CloseGlyph.titleIdCounter);
            }
        };
        CloseGlyph.titleIdCounter = 0;
        CloseGlyph.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-close-glyph",
                        template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" aria-hidden=\"true\"><path fill=\"#231f20\" d=\"M10 .7L9.3 0 5 4.3.7 0 0 .7 4.3 5 0 9.3l.7.7L5 5.7 9.3 10l.7-.7L5.7 5 10 .7z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        CloseGlyph.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        CloseGlyph.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return CloseGlyph;
    }());
    var CloseGlyphModule = /** @class */ (function () {
        function CloseGlyphModule() {
        }
        CloseGlyphModule.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            CloseGlyph
                        ],
                        exports: [
                            CloseGlyph
                        ]
                    },] },
        ];
        return CloseGlyphModule;
    }());

    exports.CloseGlyph = CloseGlyph;
    exports.CloseGlyphModule = CloseGlyphModule;

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

})));
