import { Component } from "@angular/core";
import * as i0 from "@angular/core";
import * as i1 from "../../services/sti-toolbox.service";
import * as i2 from "../../services/model.service";
import * as i3 from "../../services/sti-localization.service";
import * as i4 from "@angular/common";
import * as i5 from "../../toolbox/sti-toolbox-element.component";
export class NavbarGroupPreviewComponent {
    constructor(toolboxService, model, loc) {
        this.toolboxService = toolboxService;
        this.model = model;
        this.loc = loc;
    }
    ngOnInit() { }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NavbarGroupPreviewComponent, deps: [{ token: i1.StiToolboxService }, { token: i2.StiModelService }, { token: i3.StiLocalizationService }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: NavbarGroupPreviewComponent, selector: "sti-navbar-group-preview-component", ngImport: i0, template: `<div
    class="parent-group-container"
    [style.visibility]="model.showGroupPreview ? 'visible' : 'hidden'"
    [style.left.px]="toolboxService.previewX"
    [style.top.px]="toolboxService.previewY"
    [style.width]="'max-content'"
  >
    <div class="toolbox-content" *ngIf="toolboxService.currentGroup == 'Others'">
      <sti-toolbox-element
        [forGroup]="true"
        *ngFor="let element of toolboxService.otherGroup"
        [element]="element"
      ></sti-toolbox-element>
    </div>
    <div class="toolbox-content" *ngIf="toolboxService.currentGroup == 'Input'">
      <sti-toolbox-element
        [forGroup]="true"
        *ngFor="let element of toolboxService.inputGroup"
        [element]="element"
      ></sti-toolbox-element>
    </div>
    <div class="toolbox-content" *ngIf="toolboxService.currentGroup == 'Selection'">
      <sti-toolbox-element
        [forGroup]="true"
        *ngFor="let element of toolboxService.selectionGroup"
        [element]="element"
      ></sti-toolbox-element>
    </div>
  </div>`, isInline: true, styles: [".parent-group-container{position:absolute;z-index:999;background-color:var(--back-color);-webkit-touch-callout:none;-webkit-user-select:none;height:max-content;padding:1px 2px;border:1px solid lightgray;border-radius:3px;overflow:hidden;box-shadow:0 3px 6px #00000029}.toolbox-content{height:max-content;width:max-content}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.StiToolboxElementComponent, selector: "sti-toolbox-element", inputs: ["element", "forRibbon", "forGroup"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NavbarGroupPreviewComponent, decorators: [{
            type: Component,
            args: [{ selector: "sti-navbar-group-preview-component", template: `<div
    class="parent-group-container"
    [style.visibility]="model.showGroupPreview ? 'visible' : 'hidden'"
    [style.left.px]="toolboxService.previewX"
    [style.top.px]="toolboxService.previewY"
    [style.width]="'max-content'"
  >
    <div class="toolbox-content" *ngIf="toolboxService.currentGroup == 'Others'">
      <sti-toolbox-element
        [forGroup]="true"
        *ngFor="let element of toolboxService.otherGroup"
        [element]="element"
      ></sti-toolbox-element>
    </div>
    <div class="toolbox-content" *ngIf="toolboxService.currentGroup == 'Input'">
      <sti-toolbox-element
        [forGroup]="true"
        *ngFor="let element of toolboxService.inputGroup"
        [element]="element"
      ></sti-toolbox-element>
    </div>
    <div class="toolbox-content" *ngIf="toolboxService.currentGroup == 'Selection'">
      <sti-toolbox-element
        [forGroup]="true"
        *ngFor="let element of toolboxService.selectionGroup"
        [element]="element"
      ></sti-toolbox-element>
    </div>
  </div>`, styles: [".parent-group-container{position:absolute;z-index:999;background-color:var(--back-color);-webkit-touch-callout:none;-webkit-user-select:none;height:max-content;padding:1px 2px;border:1px solid lightgray;border-radius:3px;overflow:hidden;box-shadow:0 3px 6px #00000029}.toolbox-content{height:max-content;width:max-content}\n"] }]
        }], ctorParameters: () => [{ type: i1.StiToolboxService }, { type: i2.StiModelService }, { type: i3.StiLocalizationService }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9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