import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
function LoadingDialogComponent_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r0.data.loadingMessage);
} }
function LoadingDialogComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "img", 3);
} }
export class LoadingDialogComponent {
    constructor() {
        this.data = {
            loadingMessage: ''
        };
    }
}
LoadingDialogComponent.ɵfac = function LoadingDialogComponent_Factory(t) { return new (t || LoadingDialogComponent)(); };
LoadingDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoadingDialogComponent, selectors: [["app-loading-dialog"]], inputs: { data: "data" }, decls: 4, vars: 2, consts: [[1, "loading-dialog-content"], [4, "ngIf", "ngIfElse"], ["defaultContent", ""], ["src", "assets/App_Publish.gif", "alt", "app-publish-animation.gif ", 2, "border-radius", "15px"]], template: function LoadingDialogComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "div", 0);
        i0.ɵɵtemplate(1, LoadingDialogComponent_div_1_Template, 2, 1, "div", 1);
        i0.ɵɵtemplate(2, LoadingDialogComponent_ng_template_2_Template, 1, 0, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        const _r1 = i0.ɵɵreference(3);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.data == null ? null : ctx.data.loadingMessage)("ngIfElse", _r1);
    } }, directives: [i1.NgIf], styles: [".loading-dialog-content[_ngcontent-%COMP%]{width:fit-content;border-radius:15px!important;display:flex;flex-direction:column;align-items:center;justify-content:center}"] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingDialogComponent, [{
        type: Component,
        args: [{
                selector: 'app-loading-dialog',
                template: `
    <div class="loading-dialog-content">
      <div *ngIf="data?.loadingMessage; else defaultContent">{{ data.loadingMessage }}</div>
      <ng-template #defaultContent>
      <img src="assets/App_Publish.gif" alt="app-publish-animation.gif " style="border-radius:15px">
      </ng-template>
    </div>
  `,
                styles: [`
    .loading-dialog-content {
      width: fit-content;
      border-radius:15px !important;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
  `]
            }]
    }], null, { data: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1kaWFsb2cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2F4LWNvbW1vbi11aS1saWIvc3JjL2xpYi9sb2FkaW5nLWRpYWxvZy9sb2FkaW5nLWRpYWxvZy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7SUFNM0MsMkJBQXVEO0lBQUEsWUFBeUI7SUFBQSxpQkFBTTs7O0lBQS9CLGVBQXlCO0lBQXpCLGdEQUF5Qjs7O0lBRWhGLHlCQUE4Rjs7QUFlcEcsTUFBTSxPQUFPLHNCQUFzQjtJQXJCbkM7UUFzQlcsU0FBSSxHQUErQjtZQUMxQyxjQUFjLEVBQUUsRUFBRTtTQUNuQixDQUFDO0tBQ0g7OzRGQUpZLHNCQUFzQjt5RUFBdEIsc0JBQXNCO1FBbEIvQiw4QkFBb0M7UUFDbEMsdUVBQXNGO1FBQ3RGLHdIQUVjO1FBQ2hCLGlCQUFNOzs7UUFKRSxlQUE0QjtRQUE1Qix3RUFBNEIsaUJBQUE7O3VGQWlCM0Isc0JBQXNCO2NBckJsQyxTQUFTO2VBQUM7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