import { CommonModule } from '@angular/common';
import { ChangeDetectionStrategy, Component, Input, inject } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatTooltipModule } from '@angular/material/tooltip';
import { DensityDirective } from '@metad/ocap-angular/core';
import { TranslateModule } from '@ngx-translate/core';
import { NgxPopperjsModule, NgxPopperjsPlacements, NgxPopperjsTriggers } from 'ngx-popperjs';
import { NgmCopilotChatComponent } from '../chat/chat.component';
import { CopilotGlobalService } from './global.service';
import * as i0 from "@angular/core";
import * as i1 from "@ngx-translate/core";
import * as i2 from "ngx-popperjs";
import * as i3 from "@angular/material/tooltip";
export class CopilotGlobalComponent {
    constructor() {
        this.NgxPopperjsPlacements = NgxPopperjsPlacements;
        this.NgxPopperjsTriggers = NgxPopperjsTriggers;
        this.copilotGlobalService = inject(CopilotGlobalService);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: CopilotGlobalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.10", type: CopilotGlobalComponent, isStandalone: true, selector: "ngm-copilot-global", inputs: { displayDensity: "displayDensity" }, host: { classAttribute: "ngm-copilot-global" }, ngImport: i0, template: "<button mat-icon-button class=\"text-xl font-notoColorEmoji\" [displayDensity]=\"displayDensity\"\n    matTooltip=\"{{ 'PAC.Copilot.YourAIPairProgrammer' | translate: {Default: 'Your AI pair programmer'} }}\"\n    [popper]=\"copilotPopper\"\n    [popperTrigger]=\"NgxPopperjsTriggers.click\"\n    [popperHideOnClickOutside]=\"true\"\n    [popperHideOnScroll]=\"true\"\n    [popperPlacement]=\"NgxPopperjsPlacements.BOTTOMEND\"\n    >\n    <div class=\"flex justify-center items-center text-xl\">\uD83E\uDD16</div>\n</button>\n\n<popper-content #copilotPopper>\n    <ngm-copilot-chat class=\"w-[100vw] sm:w-[400px] h-[600px]\"\n        [copilotEngine]=\"copilotGlobalService.copilotEngine\"\n    ></ngm-copilot-chat>\n</popper-content>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: NgxPopperjsModule }, { kind: "component", type: i2.NgxPopperjsContentComponent, selector: "popper-content", exportAs: ["ngxPopperjsContent"] }, { kind: "directive", type: i2.NgxPopperjsDirective, selector: "[popper]", inputs: ["popperApplyClass", "popperAriaDescribeBy", "popperAriaRole", "popperBoundaries", "popperCloseOnClickOutside", "popper", "popperDisableAnimation", "popperDisabled", "popperDisableStyle", "popperHideOnClickOutside", "popperHideOnMouseLeave", "popperHideOnScroll", "popperTimeout", "popperPlacement", "popperAppendTo", "popperApplyArrowClass", "popperModifiers", "popperPositionFixed", "popperPreventOverflow", "popperDelay", "popperShowOnStart", "popperTrigger", "popperStyles", "popperTarget", "popperTimeoutAfterShow"], outputs: ["popperOnHidden", "popperOnShown", "popperOnUpdate"], exportAs: ["popper"] }, { kind: "directive", type: DensityDirective, selector: "[displayDensity]", inputs: ["displayDensity"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: NgmCopilotChatComponent, selector: "ngm-copilot-chat", inputs: ["welcomeTitle", "welcomeSubTitle", "placeholder", "thinkingAvatar", "assistantAvatar", "copilotEngine", "user", "selectedModel", "contextMenuSearch"], outputs: ["copy", "conversationsChange", "enableCopilot", "selectedModelChange", "contextMenuSearchChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: CopilotGlobalComponent, decorators: [{
            type: Component,
            args: [{ standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, selector: 'ngm-copilot-global', imports: [
                        CommonModule,
                        FormsModule,
                        ReactiveFormsModule,
                        TranslateModule,
                        NgxPopperjsModule,
                        DensityDirective,
                        MatTooltipModule,
                        NgmCopilotChatComponent
                    ], host: {
                        class: 'ngm-copilot-global'
                    }, template: "<button mat-icon-button class=\"text-xl font-notoColorEmoji\" [displayDensity]=\"displayDensity\"\n    matTooltip=\"{{ 'PAC.Copilot.YourAIPairProgrammer' | translate: {Default: 'Your AI pair programmer'} }}\"\n    [popper]=\"copilotPopper\"\n    [popperTrigger]=\"NgxPopperjsTriggers.click\"\n    [popperHideOnClickOutside]=\"true\"\n    [popperHideOnScroll]=\"true\"\n    [popperPlacement]=\"NgxPopperjsPlacements.BOTTOMEND\"\n    >\n    <div class=\"flex justify-center items-center text-xl\">\uD83E\uDD16</div>\n</button>\n\n<popper-content #copilotPopper>\n    <ngm-copilot-chat class=\"w-[100vw] sm:w-[400px] h-[600px]\"\n        [copilotEngine]=\"copilotGlobalService.copilotEngine\"\n    ></ngm-copilot-chat>\n</popper-content>" }]
        }], propDecorators: { displayDensity: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64, 