import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IconModule } from '@ironsource/fusion-ui/components/icon/v1';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@ironsource/fusion-ui/components/icon/v1";
function MenuDropComponent_li_1_fusion_icon_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "fusion-icon", 4);
} if (rf & 2) {
    const menuItem_r1 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵproperty("name", menuItem_r1.icon);
} }
function MenuDropComponent_li_1_Template(rf, ctx) { if (rf & 1) {
    const _r5 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "li", 2);
    i0.ɵɵlistener("click", function MenuDropComponent_li_1_Template_li_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r5); const menuItem_r1 = restoredCtx.$implicit; const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.itemClicked(menuItem_r1)); });
    i0.ɵɵtemplate(1, MenuDropComponent_li_1_fusion_icon_1_Template, 1, 1, "fusion-icon", 3);
    i0.ɵɵelementStart(2, "div");
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const menuItem_r1 = ctx.$implicit;
    i0.ɵɵclassProp("fu-disabled", menuItem_r1.disabled);
    i0.ɵɵadvance();
    i0.ɵɵproperty("ngIf", menuItem_r1.icon);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(menuItem_r1.label);
} }
export class MenuDropComponent {
    constructor() {
        this.menuItemClicked = new EventEmitter();
    }
    set menuItems(value) {
        if (Array.isArray(value)) {
            this._menuItems = value;
        }
    }
    get menuItems() {
        return this._menuItems;
    }
    /** @internal */
    itemClicked(menuItem) {
        this.menuItemClicked.emit(menuItem);
    }
    static { this.ɵfac = function MenuDropComponent_Factory(t) { return new (t || MenuDropComponent)(); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuDropComponent, selectors: [["fusion-menu-drop"]], inputs: { menuItems: "menuItems" }, outputs: { menuItemClicked: "menuItemClicked" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 1, consts: [[1, "fu-menu-holder"], ["class", "fu-menu-item", 3, "fu-disabled", "click", 4, "ngFor", "ngForOf"], [1, "fu-menu-item", 3, "click"], ["class", "fu-menu-item-icon", 3, "name", 4, "ngIf"], [1, "fu-menu-item-icon", 3, "name"]], template: function MenuDropComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "ul", 0);
            i0.ɵɵtemplate(1, MenuDropComponent_li_1_Template, 4, 4, "li", 1);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance();
            i0.ɵɵproperty("ngForOf", ctx.menuItems);
        } }, dependencies: [CommonModule, i1.NgForOf, i1.NgIf, IconModule, i2.IconComponent], styles: ["@font-face{font-family:NHaasGroteskDSPro;src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.eot);src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.ttf) format(\"truetype\")}@font-face{font-family:NHaasGroteskDSPro-65Md;src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.eot);src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.ttf) format(\"truetype\")}@font-face{font-family:HelveticaNeue;src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.eot);src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.ttf) format(\"truetype\")}@font-face{font-family:HelveticaNeue-Medium;src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.eot);src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.ttf) format(\"truetype\")}.font-heading-6[_ngcontent-%COMP%], .font-heading-5[_ngcontent-%COMP%], .font-heading-4[_ngcontent-%COMP%], .font-heading-3[_ngcontent-%COMP%], .font-heading-2[_ngcontent-%COMP%], .font-heading-1[_ngcontent-%COMP%]{font-family:NHaasGroteskDSPro,sans-serif}.font-heading-1[_ngcontent-%COMP%]{font-size:60px}.font-heading-2[_ngcontent-%COMP%]{font-size:32px}.font-heading-3[_ngcontent-%COMP%]{font-size:22px}.font-heading-4[_ngcontent-%COMP%]{font-size:18px}.font-heading-5[_ngcontent-%COMP%]{font-size:15px}.font-heading-6[_ngcontent-%COMP%]{font-size:13px}.font-heading-label[_ngcontent-%COMP%]{font-size:11px;font-family:NHaasGroteskDSPro-65Md,sans-serif;letter-spacing:.25px}.font-caption[_ngcontent-%COMP%], .font-bodyXSmall[_ngcontent-%COMP%], [_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]   .fu-menu-item[_ngcontent-%COMP%], .font-bodySmall[_ngcontent-%COMP%], .font-bodyMedium[_ngcontent-%COMP%], .font-bodyLarge[_ngcontent-%COMP%]{font-family:HelveticaNeue,helvetica,sans-serif;line-height:1.5}.font-bodyXSmallStrong[_ngcontent-%COMP%], .font-bodySmallStrong[_ngcontent-%COMP%], .font-bodyMediumStrong[_ngcontent-%COMP%], .font-bodyLargeStrong[_ngcontent-%COMP%]{font-family:HelveticaNeue-Medium,helvetica,sans-serif;line-height:1.5}.font-bodyLarge[_ngcontent-%COMP%], .font-bodyLargeStrong[_ngcontent-%COMP%]{font-size:16px}.font-bodyMedium[_ngcontent-%COMP%], .font-bodyMediumStrong[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]   .fu-menu-item[_ngcontent-%COMP%], .font-bodySmall[_ngcontent-%COMP%]{font-size:13px;letter-spacing:.24px}.font-bodySmallStrong[_ngcontent-%COMP%]{font-size:13px;letter-spacing:.24px}.font-bodyXSmall[_ngcontent-%COMP%], .font-bodyXSmallStrong[_ngcontent-%COMP%]{font-size:12px;letter-spacing:.24px}.font-caption[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%]   ul[_ngcontent-%COMP%], [_nghost-%COMP%]   ol[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%], [_nghost-%COMP%]   ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style:none}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:#fff;width:12px}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#fff}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#53575b4d;border-radius:13px;border:4px solid #fff}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}@keyframes _ngcontent-%COMP%_rotation{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes _ngcontent-%COMP%_shineAnimation{0%{background-position:-750px 0}to{background-position:750px 0}}[_nghost-%COMP%]{display:block;position:fixed;z-index:1001}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]{background-color:var(--fu-white, #ffffff);padding:8px;box-shadow:0 8px 24px -6px #00000029,0 0 1px #0006;border-radius:8px;width:215px;max-height:236px;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]   .fu-menu-item[_ngcontent-%COMP%]{width:100%;height:40px;padding:12px 8px;margin-top:4px;display:flex;align-items:center;gap:8px;color:var(--fu-black-900, #41454D);border-radius:8px}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]   .fu-menu-item[_ngcontent-%COMP%]:first-child{margin-top:0}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]   .fu-menu-item[_ngcontent-%COMP%]   fusion-icon.fu-menu-item-icon[_ngcontent-%COMP%]{width:16px;height:16px}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]   .fu-menu-item[_ngcontent-%COMP%]   fusion-icon.fu-menu-item-icon[_ngcontent-%COMP%]     svg{width:16px;height:16px}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]   .fu-menu-item[_ngcontent-%COMP%]   fusion-icon.fu-menu-item-icon[_ngcontent-%COMP%]     svg *{fill:var(--fu-light-600, #B7BBC0)}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]   .fu-menu-item[_ngcontent-%COMP%]:hover{background-color:var(--fu-light-50, #F7F8F9);cursor:pointer}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]   .fu-menu-item.fu-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.7}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]   .fu-menu-item.fu-disabled[_ngcontent-%COMP%]:hover{background-color:unset;cursor:default}[_nghost-%COMP%]   .fu-menu-holder[_ngcontent-%COMP%]   .fu-menu-item.fu-disabled[_ngcontent-%COMP%]   .fu-menu-item-icon[_ngcontent-%COMP%]{opacity:.7}"], changeDetection: 0 }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuDropComponent, [{
        type: Component,
        args: [{ selector: 'fusion-menu-drop', standalone: true, imports: [CommonModule, IconModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ul class=\"fu-menu-holder\">\n    <li class=\"fu-menu-item\"\n        *ngFor=\"let menuItem of menuItems\"\n        [class.fu-disabled]=\"menuItem.disabled\"\n        (click)=\"itemClicked(menuItem)\"\n    >\n        <fusion-icon class=\"fu-menu-item-icon\" *ngIf=\"menuItem.icon\" [name]=\"menuItem.icon\"></fusion-icon>\n        <div>{{menuItem.label}}</div>\n    </li>\n</ul>\n", styles: ["@font-face{font-family:NHaasGroteskDSPro;src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.eot);src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.ttf) format(\"truetype\")}@font-face{font-family:NHaasGroteskDSPro-65Md;src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.eot);src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.ttf) format(\"truetype\")}@font-face{font-family:HelveticaNeue;src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.eot);src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.ttf) format(\"truetype\")}@font-face{font-family:HelveticaNeue-Medium;src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.eot);src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.ttf) format(\"truetype\")}.font-heading-6,.font-heading-5,.font-heading-4,.font-heading-3,.font-heading-2,.font-heading-1{font-family:NHaasGroteskDSPro,sans-serif}.font-heading-1{font-size:60px}.font-heading-2{font-size:32px}.font-heading-3{font-size:22px}.font-heading-4{font-size:18px}.font-heading-5{font-size:15px}.font-heading-6{font-size:13px}.font-heading-label{font-size:11px;font-family:NHaasGroteskDSPro-65Md,sans-serif;letter-spacing:.25px}.font-caption,.font-bodyXSmall,:host .fu-menu-holder .fu-menu-item,.font-bodySmall,.font-bodyMedium,.font-bodyLarge{font-family:HelveticaNeue,helvetica,sans-serif;line-height:1.5}.font-bodyXSmallStrong,.font-bodySmallStrong,.font-bodyMediumStrong,.font-bodyLargeStrong{font-family:HelveticaNeue-Medium,helvetica,sans-serif;line-height:1.5}.font-bodyLarge,.font-bodyLargeStrong{font-size:16px}.font-bodyMedium,.font-bodyMediumStrong{font-size:14px}:host .fu-menu-holder .fu-menu-item,.font-bodySmall{font-size:13px;letter-spacing:.24px}.font-bodySmallStrong{font-size:13px;letter-spacing:.24px}.font-bodyXSmall,.font-bodyXSmallStrong{font-size:12px;letter-spacing:.24px}.font-caption{font-size:11px}:host *{box-sizing:border-box}:host ul,:host ol{padding:0;margin:0}:host ul li,:host ol li{list-style:none}:host .fu-menu-holder::-webkit-scrollbar{background-color:#fff;width:12px}:host .fu-menu-holder::-webkit-scrollbar-track{background-color:#fff}:host .fu-menu-holder::-webkit-scrollbar-thumb{background-color:#53575b4d;border-radius:13px;border:4px solid #fff}:host .fu-menu-holder::-webkit-scrollbar-button{display:none}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes shineAnimation{0%{background-position:-750px 0}to{background-position:750px 0}}:host{display:block;position:fixed;z-index:1001}:host .fu-menu-holder{background-color:var(--fu-white, #ffffff);padding:8px;box-shadow:0 8px 24px -6px #00000029,0 0 1px #0006;border-radius:8px;width:215px;max-height:236px;overflow-x:hidden;overflow-y:auto}:host .fu-menu-holder .fu-menu-item{width:100%;height:40px;padding:12px 8px;margin-top:4px;display:flex;align-items:center;gap:8px;color:var(--fu-black-900, #41454D);border-radius:8px}:host .fu-menu-holder .fu-menu-item:first-child{margin-top:0}:host .fu-menu-holder .fu-menu-item fusion-icon.fu-menu-item-icon{width:16px;height:16px}:host .fu-menu-holder .fu-menu-item fusion-icon.fu-menu-item-icon ::ng-deep svg{width:16px;height:16px}:host .fu-menu-holder .fu-menu-item fusion-icon.fu-menu-item-icon ::ng-deep svg *{fill:var(--fu-light-600, #B7BBC0)}:host .fu-menu-holder .fu-menu-item:hover{background-color:var(--fu-light-50, #F7F8F9);cursor:pointer}:host .fu-menu-holder .fu-menu-item.fu-disabled{pointer-events:none;opacity:.7}:host .fu-menu-holder .fu-menu-item.fu-disabled:hover{background-color:unset;cursor:default}:host .fu-menu-holder .fu-menu-item.fu-disabled .fu-menu-item-icon{opacity:.7}\n"] }]
    }], null, { menuItems: [{
            type: Input
        }], menuItemClicked: [{
            type: Output
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuDropComponent, { className: "MenuDropComponent", filePath: "menu-drop.component.ts", lineNumber: 15 }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS1kcm9wLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Z1c2lvbi11aS9jb21wb25lbnRzL21lbnUtZHJvcC92My9tZW51LWRyb3AuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZnVzaW9uLXVpL2NvbXBvbmVudHMvbWVudS1kcm9wL3YzL21lbnUtZHJvcC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBZSxLQUFLLEVBQUUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzNHLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sMENBQTBDLENBQUM7Ozs7O0lDRzVELGlDQUFrRzs7O0lBQXJDLHVDQUFzQjs7OztJQUx2Riw2QkFJQztJQURHLHdOQUFTLGVBQUEsK0JBQXFCLENBQUEsSUFBQztJQUUvQix1RkFBa0c7SUFDbEcsMkJBQUs7SUFBQSxZQUFrQjtJQUFBLGlCQUFNLEVBQUE7OztJQUo3QixtREFBdUM7SUFHQyxjQUFtQjtJQUFuQix1Q0FBbUI7SUFDdEQsZUFBa0I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