(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 Pin20 = /** @class */ (function () {
        function Pin20(elementRef) {
            this.elementRef = elementRef;
        }
        Pin20.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;
                Pin20.titleIdCounter++;
                title.setAttribute("id", "pin20-" + Pin20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "pin20-" + Pin20.titleIdCounter);
            }
        };
        Pin20.titleIdCounter = 0;
        Pin20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-pin20",
                        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.59 13.31L30 11.9 20 2l-1.31 1.42 1.18 1.18-11.49 9.72-1.72-1.71L5.25 14l5.66 5.68L2 28.58 3.41 30l8.91-8.91L18 26.75l1.39-1.42-1.71-1.71 9.72-11.49zM16.26 22.2L9.8 15.74 21.29 6 26 10.71z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Pin20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Pin20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Pin20;
    }());
    var Pin20Module = /** @class */ (function () {
        function Pin20Module() {
        }
        Pin20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Pin20
                        ],
                        exports: [
                            Pin20
                        ]
                    },] },
        ];
        return Pin20Module;
    }());

    exports.Pin20 = Pin20;
    exports.Pin20Module = Pin20Module;

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

})));
