import { Component } from "@angular/core";
import * as i0 from "@angular/core";
import * as i1 from "../../services/model.service";
import * as i2 from "../../services/sti-localization.service";
import * as i3 from "@angular/common";
import * as i4 from "./sti-file-new-content.component";
import * as i5 from "./sti-file-open-content.component";
import * as i6 from "./sti-file-save-content.component";
export class StiFileMenuContentComponent {
    constructor(model, loc) {
        this.model = model;
        this.loc = loc;
    }
    isCurrent(content) {
        return content == this.model.currentSelectedFileOption ? true : false;
    }
    ngOnInit() { }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StiFileMenuContentComponent, deps: [{ token: i1.StiModelService }, { token: i2.StiLocalizationService }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: StiFileMenuContentComponent, selector: "sti-file-menu-content", ngImport: i0, template: ` <div class="file-menu-container">
    <div class="current-option-label">
      <span>{{
        model.currentSelectedFileOption != "SaveAs"
          ? loc.getP(model.currentSelectedFileOption)
          : loc.get2("MainMenu", "menuFileSaveAs").replace("...", "")
      }}</span>
    </div>
    <sti-file-new-content *ngIf="isCurrent('New')"></sti-file-new-content>
    <sti-file-open-content *ngIf="isCurrent('Open')"></sti-file-open-content>
    <sti-file-save-content *ngIf="isCurrent('SaveAs')"></sti-file-save-content>
  </div>`, isInline: true, styles: ["sti-file-new-content,sti-file-open-content,sti-file-save-content{height:100%;width:100%}.file-menu-container{height:100%;width:100%;background-color:#fff;display:flex;flex-direction:column}.current-option-label{padding:30px;width:100%}.current-option-label span{font-size:36px;font-family:Arial;color:#8f8f8f}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.StiFileNewContentComponent, selector: "sti-file-new-content" }, { kind: "component", type: i5.StiFileOpenContentComponent, selector: "sti-file-open-content" }, { kind: "component", type: i6.StiFileSaveContentComponent, selector: "sti-file-save-content" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StiFileMenuContentComponent, decorators: [{
            type: Component,
            args: [{ selector: "sti-file-menu-content", template: ` <div class="file-menu-container">
    <div class="current-option-label">
      <span>{{
        model.currentSelectedFileOption != "SaveAs"
          ? loc.getP(model.currentSelectedFileOption)
          : loc.get2("MainMenu", "menuFileSaveAs").replace("...", "")
      }}</span>
    </div>
    <sti-file-new-content *ngIf="isCurrent('New')"></sti-file-new-content>
    <sti-file-open-content *ngIf="isCurrent('Open')"></sti-file-open-content>
    <sti-file-save-content *ngIf="isCurrent('SaveAs')"></sti-file-save-content>
  </div>`, styles: ["sti-file-new-content,sti-file-open-content,sti-file-save-content{height:100%;width:100%}.file-menu-container{height:100%;width:100%;background-color:#fff;display:flex;flex-direction:column}.current-option-label{padding:30px;width:100%}.current-option-label span{font-size:36px;font-family:Arial;color:#8f8f8f}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.StiModelService }, { type: i2.StiLocalizationService }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RpLWZpbGUtbWVudS1jb250ZW50LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3N0aW11bHNvZnQtZm9ybXMvc3JjL2xpYi9jb21wb25lbnRzL3N0aS1maWxlLW1lbnUvc3RpLWZpbGUtbWVudS1jb250ZW50LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQTZDbEQsTUFBTSxPQUFPLDJCQUEyQjtJQUN0QyxZQUFtQixLQUFzQixFQUFTLEdBQTJCO1FBQTFELFVBQUssR0FBTCxLQUFLLENBQWlCO1FBQVMsUUFBRy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