import { Component, ViewChild } from "@angular/core";
import * as i0 from "@angular/core";
import * as i1 from "../../services/sti-expression.service";
import * as i2 from "@angular/common";
export class StiExpressionDraggableContainerComponent {
    constructor(expressionService) {
        this.expressionService = expressionService;
    }
    ngAfterViewInit() {
        if (this.elementRef) {
            this.expressionService.elementRef = this.elementRef;
        }
    }
    ngOnInit() { }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StiExpressionDraggableContainerComponent, deps: [{ token: i1.StiExpressionService }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: StiExpressionDraggableContainerComponent, selector: "expression-draggable-container", viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["expressionContainer"], descendants: true }], ngImport: i0, template: `<div
    #expressionContainer
    *ngIf="expressionService.isDragging"
    class="expression-draggable-container"
    [style.left.px]="expressionService.expressionDraggableContainerX"
    [style.top.px]="expressionService.expressionDraggableContainerY"
    [style.pointer-events]="'none'"
  >
    <span>{{ expressionService.draggableExpressionObject.previewString }}</span>
  </div>`, isInline: true, styles: [".expression-draggable-container{position:absolute;padding:5px;width:-moz-fit-content;width:fit-content;height:max-content;z-index:9999;background-color:#d3d3d3;max-height:23.6px;display:flex;align-items:center;-webkit-user-select:none;user-select:none;opacity:.7}.expression-draggable-container span{font-family:Arial;color:var(--text-color);font-size:12px;cursor:default}.expression-draggable-container span:hover{cursor:default}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StiExpressionDraggableContainerComponent, decorators: [{
            type: Component,
            args: [{ selector: "expression-draggable-container", template: `<div
    #expressionContainer
    *ngIf="expressionService.isDragging"
    class="expression-draggable-container"
    [style.left.px]="expressionService.expressionDraggableContainerX"
    [style.top.px]="expressionService.expressionDraggableContainerY"
    [style.pointer-events]="'none'"
  >
    <span>{{ expressionService.draggableExpressionObject.previewString }}</span>
  </div>`, styles: [".expression-draggable-container{position:absolute;padding:5px;width:-moz-fit-content;width:fit-content;height:max-content;z-index:9999;background-color:#d3d3d3;max-height:23.6px;display:flex;align-items:center;-webkit-user-select:none;user-select:none;opacity:.7}.expression-draggable-container span{font-family:Arial;color:var(--text-color);font-size:12px;cursor:default}.expression-draggable-container span:hover{cursor:default}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.StiExpressionService }]; }, propDecorators: { elementRef: [{
                type: ViewChild,
                args: ["expressionContainer"]
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RpLWV4cHJlc3Npb24tZHJhZ2dhYmxlLWNvbnRhaW5lci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zdGltdWxzb2Z0LWZvcm1zL3NyYy9saWIvY29tcG9uZW50cy9zdGktZXhwcmVzc2lvbi1lZGl0b3Ivc3RpLWV4cHJlc3Npb24tZHJhZ2dhYmxlLWNvbnRhaW5lci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFpQixTQUFTLEVBQXNCLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7OztBQTJDeEYsTUFBTSxPQUFPLHdDQUF3QztJQUVuRCxZQUFtQixpQkFBdUM7UUFBdkMsc0JBQWlCLEdBQWpCLGlCQUFpQixDQUFzQjtJQUFHLENBQUM7SUFDOUQsZUFBZTtRQUNiLElBQUksSUFBSSxDQUFDLFVBQVUsRUFBRTtZQUNuQixJQUFJLENBQUMsaUJBQWlCLENBQUMsVUFBVSxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUM7U0FDckQ7SUFDSCxDQUFDO0lBRUQs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XNzaW9uT2JqZWN0LnByZXZpZXdTdHJpbmcgfX08L3NwYW4+XHJcbiAgPC9kaXY+YCxcclxuICBzdHlsZXM6IFtcclxuICAgIGBcclxuICAgICAgLmV4cHJlc3Npb24tZHJhZ2dhYmxlLWNvbnRhaW5lciB7XHJcbiAgICAgICAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gICAgICAgIHBhZGRpbmc6IDVweDtcclxuICAgICAgICB3aWR0aDogZml0LWNvbnRlbnQ7XHJcbiAgICAgICAgaGVpZ2h0OiBtYXgtY29udGVudDtcclxuICAgICAgICB6LWluZGV4OiA5OTk5O1xyXG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6IGxpZ2h0Z3JheTtcclxuICAgICAgICBtYXgtaGVpZ2h0OiAyMy42cHg7XHJcbiAgICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gICAgICAgIC13ZWJraXQtdXNlci1zZWxlY3Q6IG5vbmU7XHJcbiAgICAgICAgdXNlci1zZWxlY3Q6IG5vbmU7XHJcbiAgICAgICAgb3BhY2l0eTogMC43O1xyXG4gICAgICB9XHJcbiAgICAgIC5leHByZXNzaW9uLWRyYWdnYWJsZS1jb250YWluZXIgc3BhbiB7XHJcbiAgICAgICAgZm9udC1mYW1pbHk6IFwiQXJpYWxcIjtcclxuICAgICAgICBjb2xvcjogdmFyKC0tdGV4dC1jb2xvcik7XHJcbiAgICAgICAgZm9udC1zaXplOiAxMnB4O1xyXG4gICAgICAgIGN1cnNvcjogZGVmYXVsdDtcclxuICAgICAgfVxyXG4gICAgICAuZXhwcmVzc2lvbi1kcmFnZ2FibGUtY29udGFpbmVyIHNwYW46aG92ZXIge1xyXG4gICAgICAgIGN1cnNvcjogZGVmYXVsdDtcclxuICAgICAgfVxyXG4gICAgYCxcclxuICBdLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgU3RpRXhwcmVzc2lvbkRyYWdnYWJsZUNvbnRhaW5lckNv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