import { Component, Inject, ViewChild } from '@angular/core';
import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy-dialog';
import { UntypedFormGroup, UntypedFormControl, Validators } from '@angular/forms';
import { DateAdapter, NativeDateAdapter } from '@angular/material/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/legacy-dialog";
import * as i2 from "../../services/app-toc.service";
import * as i3 from "@angular/material/legacy-snack-bar";
import * as i4 from "@sunbird-cb/utils-v2";
import * as i5 from "@angular/common";
import * as i6 from "@angular/forms";
import * as i7 from "@angular/material/legacy-button";
import * as i8 from "@angular/material/legacy-form-field";
import * as i9 from "@angular/material/legacy-input";
import * as i10 from "@angular/material/legacy-progress-spinner";
import * as i11 from "@angular/material/legacy-select";
import * as i12 from "@angular/material/legacy-core";
import * as i13 from "@angular/material/datepicker";
/**
 * Format a date to YYYY-MM-DD format
 */
function startWithYearformat(date) {
    const year = date.getFullYear();
    const month = String(date.getMonth() + 1).padStart(2, '0');
    const day = String(date.getDate()).padStart(2, '0');
    return `${year}-${month}-${day}`;
}
export class CreateBatchDialogComponent {
    constructor(dialogRef, data, appTocService, snackBar, configSvc) {
        this.dialogRef = dialogRef;
        this.data = data;
        this.appTocService = appTocService;
        this.snackBar = snackBar;
        this.configSvc = configSvc;
        this.enrollmentTypes = ['open', 'closed'];
        this.namePatern = `^[a-zA-Z\\s\\']{1,32}$`;
        this.today = new Date();
        this.uploadSaveData = false;
        this.createBatchForm = new UntypedFormGroup({
            name: new UntypedFormControl('', [Validators.required, Validators.pattern(this.namePatern)]),
            description: new UntypedFormControl('', []),
            enrollmentType: new UntypedFormControl(this.enrollmentTypes[0], [Validators.required]),
            startDate: new UntypedFormControl('', [Validators.required]),
            endDate: new UntypedFormControl('', []),
            enrollmentEndDate: new UntypedFormControl('', []),
            // createdFor: new FormControl('', []),
            mentors: new UntypedFormControl('', []),
            courseId: new UntypedFormControl('', []),
            createdBy: new UntypedFormControl('', []),
        });
    }
    ngOnInit() {
    }
    createBatchSubmit(form) {
        this.uploadSaveData = true;
        form.value.startDate = startWithYearformat(new Date(`${form.value.startDate}`));
        if (form.value.endDate) {
            form.value.endDate = startWithYearformat(new Date(`${form.value.endDate}`));
        }
        else {
            delete form.value.endDate;
        }
        if (form.value.enrollmentEndDate) {
            form.value.enrollmentEndDate = startWithYearformat(new Date(`${form.value.enrollmentEndDate}`));
        }
        else {
            delete form.value.enrollmentEndDate;
        }
        form.value.mentors = [];
        if (this.configSvc.userProfile) {
            // form.value.createdFor = [this.configSvc.userProfile.rootOrgId]
            form.value.createdBy = this.configSvc.userProfile.userId;
        }
        if (this.data && this.data.content) {
            form.value.courseId = this.data.content.identifier;
        }
        this.appTocService.createBatch(form.value).subscribe(() => {
            this.uploadSaveData = false;
            this.openSnackbar(this.toastSuccess.nativeElement.value);
            this.dialogRef.close();
        }, err => {
            if (err && err.error && err.error.params && err.error.params.errmsg) {
                this.openSnackbar(err.error.params.errmsg);
            }
            else {
                this.openSnackbar(this.toastError.nativeElement.value);
            }
            this.uploadSaveData = false;
        });
    }
    openSnackbar(primaryMsg, duration = 5000) {
        this.snackBar.open(primaryMsg, 'X', {
            duration,
        });
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CreateBatchDialogComponent, deps: [{ token: i1.MatLegacyDialogRef }, { token: MAT_DIALOG_DATA }, { token: i2.AppTocService }, { token: i3.MatLegacySnackBar }, { token: i4.ConfigurationsService }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CreateBatchDialogComponent, selector: "ws-app-create-batch-dialog", providers: [
            { provide: DateAdapter, useClass: NativeDateAdapter },
        ], viewQueries: [{ propertyName: "toastSuccess", first: true, predicate: ["toastSuccess"], descendants: true, static: true }, { propertyName: "toastError", first: true, predicate: ["toastError"], descendants: true, static: true }], ngImport: i0, template: "<form [formGroup]=\"createBatchForm\">\n    <!-- <h2 mat-dialog-title>Install Angular</h2> -->\n    <mat-dialog-content class=\"mat-typography pad-fix\">\n        <div class=\"flex flex-1 custom\">\n            <div class=\"flex flex-4 flex-column margin-right-l\">\n\n                <div class=\"flex flex-1\">\n                    <mat-form-field appearance=\"outline\" class=\"w-full\">\n                        <label for=\"name\" class=\" margin-remove-bottom form-label required\"\n                            i18n=\"Name label|Label which explains the user to enter name\" i18n-aria-label\n                            aria-label=\"Name label\">\n                            Name\n                        </label>\n                        <input id=\"name\" matInput #name formControlName=\"name\" i18n-placeholder\n                            placeholder=\"Enter Name\" i18n-aria-label aria-label=\"Name input\" />\n                        <mat-error [hidden]=\"false\" i18n=\"Name Error|Explains name is required\" i18n-aria-label\n                            aria-label=\"Name Error|Explains name is required \"\n                            *ngIf=\"createBatchForm?.controls['name'].errors?.required\">\n                            Name is mandatory\n                        </mat-error>\n                        <mat-error [hidden]=\"false\" *ngIf=\"createBatchForm?.controls['name'].errors?.pattern\"\n                            i18n-aria-label\n                            aria-label=\"Name Error|Name fields cannot contain numbers and special characters \">\n                            Name fields cannot contain numbers and special characters  '\n                        </mat-error>\n                    </mat-form-field>\n                </div>\n                <div class=\"flex flex-1\">\n                    <mat-form-field appearance=\"outline\" class=\"w-full\">\n                        <label for=\"description\" class=\" margin-remove-bottom form-label\"\n                            i18n=\"description label|Label which explains the user to enter description\" i18n-aria-label\n                            aria-label=\"description label\">\n                            Description\n                        </label>\n                        <input id=\"description\" matInput #description formControlName=\"description\" i18n-placeholder\n                            placeholder=\"Enter Description\" i18n-aria-label aria-label=\"Description input\" />\n                        <mat-error [hidden]=\"false\" i18n=\"Description Error|Explains description is required\" i18n-aria-label\n                            aria-label=\"Description Error|Explains description is required \"\n                            *ngIf=\"createBatchForm?.controls['description'].errors?.required\">\n                            Description is mandatory\n                        </mat-error>\n                    </mat-form-field>\n                </div>\n                <div class=\"flex flex-1\">\n                    <mat-form-field appearance=\"outline\" class=\"w-full\">\n                        <label for=\"enrollmentType\" class=\" margin-remove-bottom form-label required\"\n                            i18n=\"enrollmentType label|Label which explains the user to enter enrollmentType\" i18n-aria-label\n                            aria-label=\"enrollmentType label\">\n                            Enrollment Type\n                        </label>\n                        <mat-select matInput formControlName=\"enrollmentType\" #enrollmentType >\n                            <mat-option [value]=\"c\" *ngFor=\"let c of enrollmentTypes\" [innerHTML]=\"c\"></mat-option>\n                        </mat-select>\n                        <mat-error [hidden]=\"false\" i18n=\"enrollmentType Error|Explains enrollmentType is required\" i18n-aria-label\n                            aria-label=\"enrollmentType Error|Explains enrollmentType is required \"\n                            *ngIf=\"createBatchForm?.controls['enrollmentType'].errors?.required\">\n                            Enrollment Type is mandatory\n                        </mat-error>\n                    </mat-form-field>\n                </div>\n                <div class=\"flex flex-1\">\n                    <mat-form-field appearance=\"outline\" class=\"w-full\">\n                        <input id=\"startDate\" matInput #startDate formControlName=\"startDate\" [matDatepicker]=\"picker\"\n                          i18n-placeholder (focus)=\"picker.open()\" placeholder=\"Choose startDate(dd-mm-yyyy)\"\n                          [min]=\"today\"  readonly>\n                        <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n                        <mat-datepicker #picker (closed)=\"startDate.blur()\" i18n-aria-label aria-label=\"Date picker\">\n                        </mat-datepicker>\n                        <mat-error [hidden]=\"false\" i18n=\"Start date Error|Explains name is required\">\n                          Start date is mandatory\n                        </mat-error>\n                      </mat-form-field>\n                </div>\n                <div class=\"flex flex-1\">\n                    <mat-form-field appearance=\"outline\" class=\"w-full\">\n                        <input id=\"endDate\" matInput #endDate formControlName=\"endDate\" [matDatepicker]=\"endpicker\"\n                          i18n-placeholder (focus)=\"endpicker.open()\" placeholder=\"Choose endDate(dd-mm-yyyy)\"\n                          [min]=\"today\" readonly>\n                        <mat-datepicker-toggle matSuffix [for]=\"endpicker\"></mat-datepicker-toggle>\n                        <mat-datepicker #endpicker (closed)=\"endDate.blur()\" i18n-aria-label aria-label=\"Date picker\">\n                        </mat-datepicker>\n                        <mat-error [hidden]=\"false\" i18n=\"End date Error|Explains name is required\">\n                          End date is mandatory\n                        </mat-error>\n                    </mat-form-field>\n                </div>\n                <div class=\"flex flex-1\">\n                    <mat-form-field appearance=\"outline\" class=\"w-full\">\n                        <input id=\"enrollmentEndDate\" matInput #enrollmentEndDate formControlName=\"enrollmentEndDate\" [matDatepicker]=\"enrollmentEndPicker\"\n                          i18n-placeholder (focus)=\"enrollmentEndPicker.open()\" placeholder=\"Choose enrollmentEndDate(dd-mm-yyyy)\"\n                          [min]=\"today\"  readonly>\n                        <mat-datepicker-toggle matSuffix [for]=\"enrollmentEndPicker\"></mat-datepicker-toggle>\n                        <mat-datepicker #enrollmentEndPicker (closed)=\"enrollmentEndDate.blur()\" i18n-aria-label aria-label=\"Date picker\">\n                        </mat-datepicker>\n                        <mat-error [hidden]=\"false\" i18n=\"End date Error|Explains name is required\">\n                          End date is mandatory\n                        </mat-error>\n                      </mat-form-field>\n                </div>\n                <mat-dialog-actions align=\"end\" class=\"mb-0-imp\">\n                    <button mat-raised-button type=\"button\" [mat-dialog-close]=\"true\"\n                      class=\"ws-mat-accent-border flex-auto-display\">\n                      <span class=\"ws-mat-default-text\" >Discard</span>\n                    </button>\n                    <button mat-raised-button type=\"submit\"\n                    class=\"text-white ws-mat-primary-background flex-auto-display\" \n                    [disabled]=\"uploadSaveData || createBatchForm?.invalid\" (click)=\"createBatchSubmit(createBatchForm)\">\n                    <span class=\"text-white\" >Create</span>\n                  </button>\n                  <span *ngIf=\"uploadSaveData\" class=\"px-4 flex items-center justify-center\">\n                    <mat-spinner [diameter]=\"30\"></mat-spinner>\n                  </span>\n                  </mat-dialog-actions>\n            </div>\n\n        </div>\n    </mat-dialog-content>\n</form>\n\n<input type=\"hidden\" i18-value i18-aria-value aria-value=\"Batch created successfully\"\n  value=\"Batch created successfully!\" #toastSuccess />\n<input type=\"hidden\" i18-value i18-aria-value aria-value=\"unable to create batch\"\n  value=\"Error in creating batch!\" #toastError />", styles: [".start-card{min-width:80px;margin:0 30px 30px;font-size:16px}.start-card mat-card-content{margin-top:10px}@media only screen and (max-width: 599px){.flex-auto-display{flex:auto;margin-left:0!important;margin-top:1rem}}@media only screen and (min-width: 600px) and (max-width: 959px){.flex-auto-display{flex:auto}}.similar{display:none!important}@media only screen and (max-width: 599px){.similar{display:none!important}}@media only screen and (min-width: 600px) and (max-width: 959px){.similar{display:none!important}}@media only screen and (max-width: 599px){.mob{margin-left:0!important}}@media only screen and (min-width: 600px) and (max-width: 959px){.mob{margin-left:0!important}}.custom{flex-direction:row}@media only screen and (max-width: 599px){.custom{flex-direction:column}}@media only screen and (min-width: 600px) and (max-width: 959px){.custom{flex-direction:column}}.pad-fix{padding:0 0 0 24px}.flex-4{flex:4}.flex-3{flex:3}.flex-2{flex:2}.mb-0-imp{margin-bottom:0!important}.w-full-imp{width:100%!important}\n"], dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i7.MatLegacyButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button],             button[mat-fab], button[mat-mini-fab], button[mat-stroked-button],             button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i8.MatLegacyError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i8.MatLegacyFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i8.MatLegacySuffix, selector: "[matSuffix]" }, { kind: "directive", type: i9.MatLegacyInput, selector: "input[matInput], textarea[matInput], select[matNativeControl],      input[matNativeControl], textarea[matNativeControl]", exportAs: ["matInput"] }, { kind: "component", type: i10.MatLegacyProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i1.MatLegacyDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1.MatLegacyDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1.MatLegacyDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i11.MatLegacySelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i12.MatLegacyOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i13.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i13.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i13.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CreateBatchDialogComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ws-app-create-batch-dialog', providers: [
                        { provide: DateAdapter, useClass: NativeDateAdapter },
                    ], template: "<form [formGroup]=\"createBatchForm\">\n    <!-- <h2 mat-dialog-title>Install Angular</h2> -->\n    <mat-dialog-content class=\"mat-typography pad-fix\">\n        <div class=\"flex flex-1 custom\">\n            <div class=\"flex flex-4 flex-column margin-right-l\">\n\n                <div class=\"flex flex-1\">\n                    <mat-form-field appearance=\"outline\" class=\"w-full\">\n                        <label for=\"name\" class=\" margin-remove-bottom form-label required\"\n                            i18n=\"Name label|Label which explains the user to enter name\" i18n-aria-label\n                            aria-label=\"Name label\">\n                            Name\n                        </label>\n                        <input id=\"name\" matInput #name formControlName=\"name\" i18n-placeholder\n                            placeholder=\"Enter Name\" i18n-aria-label aria-label=\"Name input\" />\n                        <mat-error [hidden]=\"false\" i18n=\"Name Error|Explains name is required\" i18n-aria-label\n                            aria-label=\"Name Error|Explains name is required \"\n                            *ngIf=\"createBatchForm?.controls['name'].errors?.required\">\n                            Name is mandatory\n                        </mat-error>\n                        <mat-error [hidden]=\"false\" *ngIf=\"createBatchForm?.controls['name'].errors?.pattern\"\n                            i18n-aria-label\n                            aria-label=\"Name Error|Name fields cannot contain numbers and special characters \">\n                            Name fields cannot contain numbers and special characters  '\n                        </mat-error>\n                    </mat-form-field>\n                </div>\n                <div class=\"flex flex-1\">\n                    <mat-form-field appearance=\"outline\" class=\"w-full\">\n                        <label for=\"description\" class=\" margin-remove-bottom form-label\"\n                            i18n=\"description label|Label which explains the user to enter description\" i18n-aria-label\n                            aria-label=\"description label\">\n                            Description\n                        </label>\n                        <input id=\"description\" matInput #description formControlName=\"description\" i18n-placeholder\n                            placeholder=\"Enter Description\" i18n-aria-label aria-label=\"Description input\" />\n                        <mat-error [hidden]=\"false\" i18n=\"Description Error|Explains description is required\" i18n-aria-label\n                            aria-label=\"Description Error|Explains description is required \"\n                            *ngIf=\"createBatchForm?.controls['description'].errors?.required\">\n                            Description is mandatory\n                        </mat-error>\n                    </mat-form-field>\n                </div>\n                <div class=\"flex flex-1\">\n                    <mat-form-field appearance=\"outline\" class=\"w-full\">\n                        <label for=\"enrollmentType\" class=\" margin-remove-bottom form-label required\"\n                            i18n=\"enrollmentType label|Label which explains the user to enter enrollmentType\" i18n-aria-label\n                            aria-label=\"enrollmentType label\">\n                            Enrollment Type\n                        </label>\n                        <mat-select matInput formControlName=\"enrollmentType\" #enrollmentType >\n                            <mat-option [value]=\"c\" *ngFor=\"let c of enrollmentTypes\" [innerHTML]=\"c\"></mat-option>\n                        </mat-select>\n                        <mat-error [hidden]=\"false\" i18n=\"enrollmentType Error|Explains enrollmentType is required\" i18n-aria-label\n                            aria-label=\"enrollmentType Error|Explains enrollmentType is required \"\n                            *ngIf=\"createBatchForm?.controls['enrollmentType'].errors?.required\">\n                            Enrollment Type is mandatory\n                        </mat-error>\n                    </mat-form-field>\n                </div>\n                <div class=\"flex flex-1\">\n                    <mat-form-field appearance=\"outline\" class=\"w-full\">\n                        <input id=\"startDate\" matInput #startDate formControlName=\"startDate\" [matDatepicker]=\"picker\"\n                          i18n-placeholder (focus)=\"picker.open()\" placeholder=\"Choose startDate(dd-mm-yyyy)\"\n                          [min]=\"today\"  readonly>\n                        <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n                        <mat-datepicker #picker (closed)=\"startDate.blur()\" i18n-aria-label aria-label=\"Date picker\">\n                        </mat-datepicker>\n                        <mat-error [hidden]=\"false\" i18n=\"Start date Error|Explains name is required\">\n                          Start date is mandatory\n                        </mat-error>\n                      </mat-form-field>\n                </div>\n                <div class=\"flex flex-1\">\n                    <mat-form-field appearance=\"outline\" class=\"w-full\">\n                        <input id=\"endDate\" matInput #endDate formControlName=\"endDate\" [matDatepicker]=\"endpicker\"\n                          i18n-placeholder (focus)=\"endpicker.open()\" placeholder=\"Choose endDate(dd-mm-yyyy)\"\n                          [min]=\"today\" readonly>\n                        <mat-datepicker-toggle matSuffix [for]=\"endpicker\"></mat-datepicker-toggle>\n                        <mat-datepicker #endpicker (closed)=\"endDate.blur()\" i18n-aria-label aria-label=\"Date picker\">\n                        </mat-datepicker>\n                        <mat-error [hidden]=\"false\" i18n=\"End date Error|Explains name is required\">\n                          End date is mandatory\n                        </mat-error>\n                    </mat-form-field>\n                </div>\n                <div class=\"flex flex-1\">\n                    <mat-form-field appearance=\"outline\" class=\"w-full\">\n                        <input id=\"enrollmentEndDate\" matInput #enrollmentEndDate formControlName=\"enrollmentEndDate\" [matDatepicker]=\"enrollmentEndPicker\"\n                          i18n-placeholder (focus)=\"enrollmentEndPicker.open()\" placeholder=\"Choose enrollmentEndDate(dd-mm-yyyy)\"\n                          [min]=\"today\"  readonly>\n                        <mat-datepicker-toggle matSuffix [for]=\"enrollmentEndPicker\"></mat-datepicker-toggle>\n                        <mat-datepicker #enrollmentEndPicker (closed)=\"enrollmentEndDate.blur()\" i18n-aria-label aria-label=\"Date picker\">\n                        </mat-datepicker>\n                        <mat-error [hidden]=\"false\" i18n=\"End date Error|Explains name is required\">\n                          End date is mandatory\n                        </mat-error>\n                      </mat-form-field>\n                </div>\n                <mat-dialog-actions align=\"end\" class=\"mb-0-imp\">\n                    <button mat-raised-button type=\"button\" [mat-dialog-close]=\"true\"\n                      class=\"ws-mat-accent-border flex-auto-display\">\n                      <span class=\"ws-mat-default-text\" >Discard</span>\n                    </button>\n                    <button mat-raised-button type=\"submit\"\n                    class=\"text-white ws-mat-primary-background flex-auto-display\" \n                    [disabled]=\"uploadSaveData || createBatchForm?.invalid\" (click)=\"createBatchSubmit(createBatchForm)\">\n                    <span class=\"text-white\" >Create</span>\n                  </button>\n                  <span *ngIf=\"uploadSaveData\" class=\"px-4 flex items-center justify-center\">\n                    <mat-spinner [diameter]=\"30\"></mat-spinner>\n                  </span>\n                  </mat-dialog-actions>\n            </div>\n\n        </div>\n    </mat-dialog-content>\n</form>\n\n<input type=\"hidden\" i18-value i18-aria-value aria-value=\"Batch created successfully\"\n  value=\"Batch created successfully!\" #toastSuccess />\n<input type=\"hidden\" i18-value i18-aria-value aria-value=\"unable to create batch\"\n  value=\"Error in creating batch!\" #toastError />", styles: [".start-card{min-width:80px;margin:0 30px 30px;font-size:16px}.start-card mat-card-content{margin-top:10px}@media only screen and (max-width: 599px){.flex-auto-display{flex:auto;margin-left:0!important;margin-top:1rem}}@media only screen and (min-width: 600px) and (max-width: 959px){.flex-auto-display{flex:auto}}.similar{display:none!important}@media only screen and (max-width: 599px){.similar{display:none!important}}@media only screen and (min-width: 600px) and (max-width: 959px){.similar{display:none!important}}@media only screen and (max-width: 599px){.mob{margin-left:0!important}}@media only screen and (min-width: 600px) and (max-width: 959px){.mob{margin-left:0!important}}.custom{flex-direction:row}@media only screen and (max-width: 599px){.custom{flex-direction:column}}@media only screen and (min-width: 600px) and (max-width: 959px){.custom{flex-direction:column}}.pad-fix{padding:0 0 0 24px}.flex-4{flex:4}.flex-3{flex:3}.flex-2{flex:2}.mb-0-imp{margin-bottom:0!important}.w-full-imp{width:100%!important}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.MatLegacyDialogRef }, { type: undefined, decorators: [{
                    type: Inject,
                    args: [MAT_DIALOG_DATA]
                }] }, { type: i2.AppTocService }, { type: i3.MatLegacySnackBar }, { type: i4.ConfigurationsService }]; }, propDecorators: { toastSuccess: [{
                type: ViewChild,
                args: ['toastSuccess', { static: true }]
            }], toastError: [{
                type: ViewChild,
                args: ['toastError', { static: true }]
            }] } });
//# sourceMappingURL=data:application/json;base64, 