import { Component, Inject, ViewEncapsulation } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog';
import { MatIconModule } from '@angular/material/icon';
import { MatToolbarModule } from '@angular/material/toolbar';
import { Util } from '../../../util/util';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/dialog";
import * as i2 from "@angular/material/toolbar";
import * as i3 from "@angular/material/button";
import * as i4 from "@angular/material/icon";
export class OFullScreenDialogComponent {
    constructor(dialogRef, data) {
        this.dialogRef = dialogRef;
        this.data = data;
        if (Util.isDefined(data)) {
            this.imageSrc = data;
        }
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OFullScreenDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: OFullScreenDialogComponent, isStandalone: true, selector: "o-fullscreen-dialog", host: { properties: { "class.o-fullscreen-dialog": "true" } }, ngImport: i0, template: "<mat-toolbar color=\"primary\" class=\"mat-elevation-z5\">\n  <span class=\"o-flex\"></span>\n  <button type=\"button\" mat-icon-button mat-dialog-close>\n    <mat-icon>close</mat-icon>\n  </button>\n</mat-toolbar>\n<mat-dialog-content class=\"o-fullscreen-dialog-content o-layout-align-center-center\">\n  <img [src]=\"imageSrc\" alt=\"dialog image\" />\n</mat-dialog-content>\n", styles: [".o-image-fullscreen-dialog-cdk-overlay .mat-mdc-dialog-container{padding:0}.o-image-fullscreen-dialog-cdk-overlay .mat-mdc-dialog-container .o-fullscreen-dialog{height:100%;display:block}.o-image-fullscreen-dialog-cdk-overlay .mat-mdc-dialog-container .o-fullscreen-dialog .mat-mdc-dialog-content.o-fullscreen-dialog-content{margin:12px;height:100%;max-height:calc(100% - 88px)}\n"], dependencies: [{ kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i2.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], encapsulation: i0.ViewEncapsulation.None }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OFullScreenDialogComponent, decorators: [{
            type: Component,
            args: [{ standalone: true, imports: [MatToolbarModule, MatButtonModule, MatDialogModule, MatIconModule], selector: 'o-fullscreen-dialog', encapsulation: ViewEncapsulation.None, host: {
                        '[class.o-fullscreen-dialog]': 'true'
                    }, template: "<mat-toolbar color=\"primary\" class=\"mat-elevation-z5\">\n  <span class=\"o-flex\"></span>\n  <button type=\"button\" mat-icon-button mat-dialog-close>\n    <mat-icon>close</mat-icon>\n  </button>\n</mat-toolbar>\n<mat-dialog-content class=\"o-fullscreen-dialog-content o-layout-align-center-center\">\n  <img [src]=\"imageSrc\" alt=\"dialog image\" />\n</mat-dialog-content>\n", styles: [".o-image-fullscreen-dialog-cdk-overlay .mat-mdc-dialog-container{padding:0}.o-image-fullscreen-dialog-cdk-overlay .mat-mdc-dialog-container .o-fullscreen-dialog{height:100%;display:block}.o-image-fullscreen-dialog-cdk-overlay .mat-mdc-dialog-container .o-fullscreen-dialog .mat-mdc-dialog-content.o-fullscreen-dialog-content{margin:12px;height:100%;max-height:calc(100% - 88px)}\n"] }]
        }], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
                    type: Inject,
                    args: [MAT_DIALOG_DATA]
                }] }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVsbHNjcmVlbi1kaWFsb2cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvb250aW1pemUtd2ViLW5neC9zcmMvbGliL2NvbXBvbmVudHMvaW1hZ2UvZnVsbHNjcmVlbi9mdWxsc2NyZWVuLWRpYWxvZy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9vbnRpbWl6ZS13ZWItbmd4L3NyYy9saWIvY29tcG9uZW50cy9pbWFnZS9mdWxsc2NyZWVuL2Z1bGxzY3JlZW4tZGlhbG9nLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JFLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsZUFBZSxFQUFFLGVBQWUsRUFBRSxZQUFZLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUMxRixPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDdkQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFHN0QsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLG9CQUFvQixDQUFDOzs7Ozs7QUFhMUMsTUFBTSxPQUFPLDBCQUEwQjtJQUlyQyxZQUNTLFNBQW1ELEVBQzFCLElBQVM7UUFEbEMsY0FBUyxHQUFULFNBQVMsQ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