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();
} }
const _c0 = ["*"];
export class EllipsisMenuComponent {
    constructor() {
        this.showDropdown = false;
    }
    ngOnInit() { }
    toggleDropdown() {
        this.showDropdown = !this.showDropdown;
    }
    onClickOutsideDropdown() {
        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)}"] });
/*@__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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxsaXBzaXMtbWVudS5jb21wb25lbnQuanMi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