import { Component } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "../click-outside.directive";
import * as i2 from "@angular/common";
function EllipsisMenuComponent_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 3);
    i0.ɵɵprojection(1);
    i0.ɵɵelementEnd();
} }
var _c0 = ["*"];
var EllipsisMenuComponent = /** @class */ (function () {
    function EllipsisMenuComponent() {
        this.showDropdown = false;
    }
    EllipsisMenuComponent.prototype.ngOnInit = function () { };
    EllipsisMenuComponent.prototype.toggleDropdown = function () {
        this.showDropdown = !this.showDropdown;
    };
    EllipsisMenuComponent.prototype.onClickOutsideDropdown = function () {
        this.showDropdown = false;
    };
    EllipsisMenuComponent.ɵfac = function EllipsisMenuComponent_Factory(t) { return new (t || EllipsisMenuComponent)(); };
    EllipsisMenuComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EllipsisMenuComponent, selectors: [["ins-ellipsis-menu"]], ngContentSelectors: _c0, decls: 3, vars: 1, consts: [["id", "ellipsis-icon", 1, "ellipsis-more"], ["id", "ellipses_menu_btn", 1, "em-btn", "icn-more", 3, "click", "clickOutside"], ["class", "em-menu", 4, "ngIf"], [1, "em-menu"]], template: function EllipsisMenuComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵprojectionDef();
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "a", 1);
            i0.ɵɵlistener("click", function EllipsisMenuComponent_Template_a_click_1_listener() { return ctx.toggleDropdown(); })("clickOutside", function EllipsisMenuComponent_Template_a_clickOutside_1_listener() { return ctx.onClickOutsideDropdown(); });
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(2, EllipsisMenuComponent_div_2_Template, 2, 0, "div", 2);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.showDropdown);
        } }, directives: [i1.ClickOutsideDirective, i2.NgIf], styles: ["a[_ngcontent-%COMP%]{text-decoration:none}*[_ngcontent-%COMP%]{font-family:Lato,sans-serif;outline:0}@font-face{font-family:ins-icons;src:url(/assets/fonts/icons/ins-icons.ttf?nf14g1) format(\"truetype\"),url(/assets/fonts/icons/ins-icons.woff?nf14g1) format(\"woff\"),url(/assets/fonts/icons/ins-icons.svg?nf14g1#ins-icons) format(\"svg\");font-weight:400;font-style:normal;font-display:block}.ins-icon[_ngcontent-%COMP%], [class*=\" icn-\"][_ngcontent-%COMP%], [class^=icn-][_ngcontent-%COMP%]{font-family:ins-icons!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icn-minus-o[_ngcontent-%COMP%]:before{content:\"\\e93a\"}.icn-disclaimer[_ngcontent-%COMP%]:before{content:\"\\e934\"}.icn-leave-community[_ngcontent-%COMP%]:before{content:\"\\e935\"}.icn-stethoscope[_ngcontent-%COMP%]:before{content:\"\\e936\"}.icn-join-community[_ngcontent-%COMP%]:before{content:\"\\e937\"}.icn-resources[_ngcontent-%COMP%]:before{content:\"\\e938\"}.icn-help[_ngcontent-%COMP%]:before{content:\"\\e939\"}.icn-checked[_ngcontent-%COMP%]:before{content:\"\\e933\"}.icn-plus[_ngcontent-%COMP%]:before{content:\"\\e932\"}.icn-expand[_ngcontent-%COMP%]:before{content:\"\\e931\"}.icn-Invite[_ngcontent-%COMP%]:before{content:\"\\e930\"}.icn-report[_ngcontent-%COMP%]:before{content:\"\\e92f\"}.icn-unfollow[_ngcontent-%COMP%]:before{content:\"\\e92e\"}.icn-block[_ngcontent-%COMP%]:before{content:\"\\e92d\"}.icn-trash[_ngcontent-%COMP%]:before{content:\"\\e92b\"}.icn-follow[_ngcontent-%COMP%]:before{content:\"\\e92c\"}.icn-lock[_ngcontent-%COMP%]:before{content:\"\\e92a\"}.icn-bolt-left[_ngcontent-%COMP%]:before{content:\"\\e925\"}.icn-bolt-right[_ngcontent-%COMP%]:before{content:\"\\e926\"}.icn-bolt-down[_ngcontent-%COMP%]:before{content:\"\\e927\"}.icn-bolt-up[_ngcontent-%COMP%]:before{content:\"\\e928\"}.icn-img-o[_ngcontent-%COMP%]:before{content:\"\\e929\"}.icn-tick[_ngcontent-%COMP%]:before{content:\"\\e924\"}.icn-tick-o[_ngcontent-%COMP%]:before{content:\"\\e923\"}.icn-cross-o[_ngcontent-%COMP%]:before{content:\"\\e922\"}.icn-plus-o[_ngcontent-%COMP%]:before{content:\"\\e921\"}.icn-hide[_ngcontent-%COMP%]:before{content:\"\\e920\"}.icn-menu[_ngcontent-%COMP%]:before{content:\"\\e900\"}.icn-more[_ngcontent-%COMP%]:before{content:\"\\e901\"}.icn-msgs[_ngcontent-%COMP%]:before{content:\"\\e902\"}.icn-pin[_ngcontent-%COMP%]:before{content:\"\\e903\"}.icn-reply[_ngcontent-%COMP%]:before{content:\"\\e904\"}.icn-search[_ngcontent-%COMP%]:before{content:\"\\e905\"}.icn-settings[_ngcontent-%COMP%]:before{content:\"\\e906\"}.icn-treatment[_ngcontent-%COMP%]:before{content:\"\\e907\"}.icn-aid[_ngcontent-%COMP%]:before{content:\"\\e908\"}.icn-apple[_ngcontent-%COMP%]:before{content:\"\\e909\"}.icn-arrow-down[_ngcontent-%COMP%]:before{content:\"\\e90a\"}.icn-arrow-up[_ngcontent-%COMP%]:before{content:\"\\e91d\"}.icn-arrow-left[_ngcontent-%COMP%]:before{content:\"\\e91e\"}.icn-arrow-right[_ngcontent-%COMP%]:before{content:\"\\e91f\"}.icn-bell[_ngcontent-%COMP%]:before{content:\"\\e90b\"}.icn-bookmark-o[_ngcontent-%COMP%]:before{content:\"\\e90c\"}.icn-calendar[_ngcontent-%COMP%]:before{content:\"\\e90d\"}.icn-check[_ngcontent-%COMP%]:before{content:\"\\e90e\"}.icn-community[_ngcontent-%COMP%]:before{content:\"\\e90f\"}.icn-d-arrow-up[_ngcontent-%COMP%]:before{content:\"\\e910\"}.icn-discussion[_ngcontent-%COMP%]:before{content:\"\\e911\"}.icn-edit[_ngcontent-%COMP%]:before{content:\"\\e912\"}.icn-facebook[_ngcontent-%COMP%]:before{content:\"\\e913\"}.icn-filters[_ngcontent-%COMP%]:before{content:\"\\e914\"}.icn-friends[_ngcontent-%COMP%]:before{content:\"\\e915\"}.icn-google[_ngcontent-%COMP%]:before{content:\"\\e916\"}.icn-heart[_ngcontent-%COMP%]:before{content:\"\\e917\"}.icn-home[_ngcontent-%COMP%]:before{content:\"\\e918\"}.icn-img[_ngcontent-%COMP%]:before{content:\"\\e919\"}.icn-inspire[_ngcontent-%COMP%]:before{content:\"\\e91a\"}.icn-journal[_ngcontent-%COMP%]:before{content:\"\\e91b\"}.icn-like[_ngcontent-%COMP%]:before{content:\"\\e91c\"}[_nghost-%COMP%]     .em-link{display:flex;align-items:center;color:#000;font-size:.75rem;padding:.1875rem .9375rem;cursor:pointer}[_nghost-%COMP%]     .em-link:not(.disabled):hover{background:#eff1f1}[_nghost-%COMP%]     .em-link.disabled{color:#c6cbc9;cursor:default}[_nghost-%COMP%]     .em-link.disabled .em-icon{color:#c6cbc9}[_nghost-%COMP%]     .em-icon{margin-right:.625rem;color:#061a73;font-size:1.125rem;width:1.375rem;height:1.375rem;display:block}[_nghost-%COMP%]     .icn-msgs{font-size:1.25rem}.ellipsis-more[_ngcontent-%COMP%]{position:relative}.em-btn[_ngcontent-%COMP%]{font-size:1.125rem;margin-left:.625rem;color:#6e6f70;cursor:pointer;display:block}.em-menu[_ngcontent-%COMP%]{position:absolute;z-index:1;background:#fff;right:0;top:100%;border:1px solid #e2e5e4;border-radius:.5rem;min-width:10rem;padding:.3125rem 0;margin-top:.625rem;box-shadow:0 .125rem .3125rem 0 rgba(208,208,208,.5)}"] });
    return EllipsisMenuComponent;
}());
export { EllipsisMenuComponent };
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EllipsisMenuComponent, [{
        type: Component,
        args: [{
                selector: 'ins-ellipsis-menu',
                templateUrl: './ellipsis-menu.component.html',
                styleUrls: ['./ellipsis-menu.component.scss'],
            }]
    }], function () { return []; }, null); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxsaXBzaXMtbWVudS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9pbnNwaXJlLWxpYnJhcnkvIiwic291cmNlcyI6WyJsaWIvZWxsaXBzaXMtbWVudS9lbGxpcHNpcy1tZW51LmNvbXBvbmVudC50cyIsImxpYi9lbGxpcHNpcy1tZW51L2VsbGlwc2lzLW1lbnUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBeUIsTUFBTSxlQUFlLENBQUM7Ozs7O0lDRS9ELDhCQUNFO0lBQUEsa0JBQVk7SUFDZCxpQkFBTTs7O0FERlI7SUFRRTtRQUZBLGlCQUFZLEdBQUcsS0FBSyxDQUFDO0lBRU4sQ0FBQztJQUVoQix3Q0FBUSxHQUFSLGNBQWtCLENBQUM7SUFFbkIsOENBQWMsR0FBZDtRQUNFLElBQUksQ0FBQyxZQUFZLEdBQUcsQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDO0lBQ3pDLENBQUM7SUFFRCxzREFBc0IsR0FBdEI7UUFDRSxJQUFJLENBQUMsWUFBWSxHQUFHLEtBQUssQ0FBQztJQUM1QixDQUFDOzhGQWJVLHFCQUFxQjs4REFBckIscUJBQXFCOztZQ1BsQyw4QkFDRTtZQUFBLDRCQUEySDtZQUF6RSw2RkFBUyxvQkFBZ0IsSUFBQyw4RkFBaUIsNEJBQXdCLElBQXpDO1lBQTJDLGlCQUFJO1lBQzNILHNFQUNFO1lBRUosaUJBQU07O1lBSEMsZUFBb0I7WUFBcEIsdUNBQW9COztnQ0RGM0I7Q0FxQkMsQUFuQkQsSUFtQkM7U0FkWSxxQkFBcUI7a0RBQXJCLHFCQUFxQjtjQUxqQyxTQUFTO2VBQUM7Z0JBQ1QsUUFBUSxFQUFFLG1CQ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