/**
 * @license
 * Copyright ASW (A Software World) All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file
 */
import { Component, Inject } from '@angular/core';
import { Validators } from '@angular/forms';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { Constants } from '@asoftwareworld/form-builder/form-control/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/forms";
import * as i2 from "@angular/material/dialog";
import * as i3 from "@angular/material/divider";
import * as i4 from "@angular/material/form-field";
import * as i5 from "@angular/material/select";
import * as i6 from "@angular/material/core";
import * as i7 from "@angular/material/radio";
import * as i8 from "@angular/material/slide-toggle";
import * as i9 from "@angular/material/input";
import * as i10 from "@angular/material/tooltip";
import * as i11 from "@angular/common";
export class AswSelectDialog {
    constructor(formBuilder, dialogRef, control) {
        this.formBuilder = formBuilder;
        this.dialogRef = dialogRef;
        this.control = control;
        this.constants = Constants;
        this.aswEditSelectForm = this.formBuilder.group({
            tooltip: ['', [Validators.required]],
            label: ['', [Validators.required, Validators.minLength(4), Validators.maxLength(25)]],
            name: ['', [Validators.required, Validators.minLength(4), Validators.maxLength(25)]],
            style: ['', [Validators.required]],
            options: this.formBuilder.array([this.createOption()]),
            isRequired: [false],
            column: []
        });
    }
    ngOnInit() {
        this.setValue(this.control);
    }
    get options() {
        return this.aswEditSelectForm.get('options');
    }
    createOption() {
        return this.formBuilder.group({
            key: ['', [Validators.required, Validators.minLength(1), Validators.maxLength(50)]],
            value: ['', [Validators.required, Validators.minLength(1), Validators.maxLength(999)]],
            isChecked: [false]
        });
    }
    addNewOption() {
        this.options.push(this.createOption());
    }
    onNoClick() {
        this.dialogRef.close();
    }
    removeOption(index) {
        this.options.removeAt(index);
    }
    onSubmit() {
        if (this.aswEditSelectForm.invalid) {
            return;
        }
        this.aswEditSelectForm.value.options.forEach((element) => {
            if (element.isChecked) {
                this.aswEditSelectForm.value.value = element.key;
            }
        });
        this.aswEditSelectForm.value.controlType = this.control.controlType;
        this.dialogRef.close(this.aswEditSelectForm.value);
    }
    setValue(control) {
        this.aswEditSelectForm.patchValue({
            tooltip: control.tooltip,
            label: control.label,
            name: control.name,
            style: control.style,
            value: control.value,
            isRequired: control.isRequired,
            column: control.column
        });
        const optionFormGroup = control.options.map((option) => this.formBuilder.group(option));
        const optionFormArray = this.formBuilder.array(optionFormGroup);
        this.aswEditSelectForm.setControl('options', optionFormArray);
    }
    onChange(event) {
        this.status = event.checked ? true : false;
    }
    onKey(event, index) {
        let isError = false;
        this.options.controls.filter((element, elementIndex) => {
            if (element.value.key === event.target.value && index !== elementIndex) {
                isError = true;
            }
        });
        if (isError) {
            this.options.controls[index].get('key')?.setErrors({ unique: true });
        }
    }
    radioChange(event) {
        this.options.controls.filter((element) => {
            element.value.isChecked = element.value.key === event.value ? true : false;
        });
        const optionFormGroup = this.options.controls.map((option) => this.formBuilder.group(option.value));
        const optionFormArray = this.formBuilder.array(optionFormGroup);
        this.aswEditSelectForm.setControl('options', optionFormArray);
    }
}
AswSelectDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AswSelectDialog, deps: [{ token: i1.FormBuilder }, { token: i2.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
AswSelectDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: AswSelectDialog, selector: "asw-select-dialog", ngImport: i0, template: "<h4 mat-dialog-title>Edit select property</h4>\r\n<mat-divider></mat-divider>\r\n<form [formGroup]=\"aswEditSelectForm\" (ngSubmit)=\"onSubmit()\">\r\n    <mat-dialog-content class=\"mat-typography\">\r\n        <div class=\"asw-full-width\"><br>\r\n            <div class=\"row\">\r\n                <div class=\"col-md-6\">\r\n                    <mat-form-field appearance=\"outline\" class=\"asw-mat-form-field\">\r\n                        <mat-label>Label</mat-label>\r\n                        <input matInput type=\"text\"\r\n                                        placeholder=\"Enter label\"\r\n                                        matTooltip=\"Enter label\"\r\n                                        formControlName=\"label\" required>\r\n                        <mat-error class=\"asw-mat-error\" *ngFor=\"let validation of constants.accountValidationMessages.label\">\r\n                            <mat-error class=\"asw-mat-error\" *ngIf=\"aswEditSelectForm.get('label')?.hasError(validation.type) && (aswEditSelectForm.get('label')?.dirty || aswEditSelectForm.get('label')?.touched)\">\r\n                                {{validation.message}}\r\n                            </mat-error>\r\n                        </mat-error>\r\n                    </mat-form-field>\r\n                </div>\r\n                <div class=\"col-md-6\">\r\n                    <mat-form-field appearance=\"outline\" class=\"asw-mat-form-field\">\r\n                        <mat-label>Tooltip</mat-label>\r\n                        <input matInput type=\"text\"\r\n                                        placeholder=\"Enter tooltip\"\r\n                                        matTooltip=\"Enter tooltip\"\r\n                                        formControlName=\"tooltip\">\r\n                    </mat-form-field>\r\n                </div>\r\n            </div>\r\n            <div class=\"row\">\r\n                <div class=\"col-md-12\">\r\n                    <mat-form-field appearance=\"outline\" class=\"asw-mat-form-field\">\r\n                        <mat-label>Name</mat-label>\r\n                        <input matInput type=\"text\"\r\n                                        placeholder=\"Enter name\"\r\n                                        matTooltip=\"Enter name\"\r\n                                        formControlName=\"name\" required>\r\n                        <mat-error class=\"asw-mat-error\" *ngFor=\"let validation of constants.accountValidationMessages.name\">\r\n                            <mat-error class=\"asw-mat-error\" *ngIf=\"aswEditSelectForm.get('name')?.hasError(validation.type) && (aswEditSelectForm.get('name')?.dirty || aswEditSelectForm.get('name')?.touched)\">\r\n                                {{validation.message}}\r\n                            </mat-error>\r\n                        </mat-error>\r\n                    </mat-form-field>\r\n                </div>\r\n            </div>\r\n            <div class=\"row\">\r\n                <div class=\"col-md-6\">\r\n                    <mat-form-field appearance=\"outline\" class=\"asw-mat-form-field\">\r\n                        <mat-label>Column Size</mat-label>\r\n                        <mat-select formControlName=\"column\" matTooltip=\"Select column size\">\r\n                            <mat-option *ngFor=\"let column of constants.columns\" [value]=\"column.value\">\r\n                                {{column.label}}\r\n                            </mat-option>\r\n                        </mat-select>\r\n                    </mat-form-field>\r\n                </div>\r\n                <div class=\"col-md-6\">\r\n                    <mat-form-field appearance=\"outline\" class=\"asw-mat-form-field\">\r\n                        <mat-label>Textbox Style</mat-label>\r\n                        <mat-select formControlName=\"style\" matTooltip=\"Select textbox style\">\r\n                            <mat-option value=\"legacy\">Legacy</mat-option>\r\n                            <mat-option value=\"standard\">Standard</mat-option>\r\n                            <mat-option value=\"fill\">Fill</mat-option>\r\n                            <mat-option value=\"outline\">Outline</mat-option>                    \r\n                        </mat-select>\r\n                    </mat-form-field>\r\n                </div>\r\n            </div>\r\n            <ng-container formArrayName=\"options\">\r\n                <div class=\"row\" \r\n                    *ngFor=\"let option of options.controls; let index = index; let last=last;\" \r\n                    [formGroupName]=\"index\">\r\n                    <div class=\"col-md-1 mt-3\">\r\n                        <mat-radio-group formControlName=\"key\">\r\n                            <mat-radio-button  \r\n                            [value]=\"option.value.key\"\r\n                            (change)=\"radioChange($event)\"\r\n                            [checked]=\"option.value.isChecked\"></mat-radio-button>\r\n                        </mat-radio-group>\r\n                    </div>\r\n                    <div class=\"col-md-4\">\r\n                        <mat-form-field appearance=\"outline\" class=\"asw-mat-form-field\">\r\n                            <mat-label>Option key {{index+1}}</mat-label>\r\n                            <input matInput type=\"text\"\r\n                                    placeholder=\"Option key\"\r\n                                    formControlName=\"key\"\r\n                                    matTooltip=\"Option key\"\r\n                                    minlength=\"1\"\r\n                                    maxlength=\"50\"\r\n                                    (keyup)=\"onKey($event, index)\"\r\n                                    pattern=\"^[a-z0-9_-]{1,50}$\"\r\n                                    required>\r\n                                <mat-error class=\"asw-mat-error\" *ngFor=\"let validation of constants.accountValidationMessages.key\">\r\n                                    <mat-error class=\"asw-mat-error\" *ngIf=\"options.controls[index].get('key')?.hasError(validation.type) && options.controls[index].get('key')?.errors?.unique && (options.controls[index].get('key')?.dirty || options.controls[index].get('key')?.touched)\">\r\n                                        {{validation.message}}\r\n                                    </mat-error>\r\n                                </mat-error>\r\n                        </mat-form-field>\r\n                    </div>\r\n                    <div class=\"col-md-5\">\r\n                        <mat-form-field appearance=\"outline\" class=\"asw-mat-form-field\">\r\n                            <mat-label>Option value {{index+1}}</mat-label>\r\n                            <input matInput type=\"text\"\r\n                                    placeholder=\"Option value\"\r\n                                    formControlName=\"value\"\r\n                                    matTooltip=\"Option value\"\r\n                                    minlength=\"1\"\r\n                                    maxlength=\"999\"\r\n                                    required>\r\n                                <mat-error class=\"asw-mat-error\" *ngFor=\"let validation of constants.accountValidationMessages.value\">\r\n                                    <mat-error class=\"asw-mat-error\" *ngIf=\"options.controls[index].get('value')?.hasError(validation.type) && (options.controls[index].get('value')?.dirty || options.controls[index].get('value')?.touched)\">\r\n                                        {{validation.message}}\r\n                                    </mat-error>\r\n                                </mat-error>\r\n                        </mat-form-field>\r\n                    </div>\r\n                    <div class=\"col-md-2\">\r\n                        <button mat-raised-button *ngIf=\"last\"\r\n                                type=\"button\" \r\n                                matTooltip=\"Add option\" \r\n                                [matTooltipPosition]=\"'above'\"\r\n                                (click)=\"addNewOption()\" \r\n                                class=\"asw-btn btn btn-just-icon btn-sm btn-outline-success mr-2 me-2 mt-3\">\r\n                            <i class=\"material-icons asw-material-icon\">add_circle_outline</i>\r\n                        </button>\r\n                        <button mat-raised-button *ngIf=\"index != 0\"\r\n                                type=\"button\" \r\n                                matTooltip=\"Remove option\" \r\n                                [matTooltipPosition]=\"'above'\" \r\n                                (click)=\"removeOption(index)\"\r\n                                class=\"asw-btn btn btn-just-icon btn-sm btn-outline-danger mt-3\">\r\n                            <i class=\"material-icons asw-material-icon\">remove_circle_outline</i>\r\n                        </button>\r\n                    </div>\r\n                </div> \r\n            </ng-container>            \r\n            <div class=\"row\">\r\n                <div class=\"col-md-12\">\r\n                    <mat-slide-toggle color=\"primary\"\r\n                          #isActive\r\n                          name=\"isRequired\"\r\n                          formControlName=\"isRequired\"\r\n                          (change)=\"onChange($event)\">{{status? 'Required':'Not Required'}}\r\n                    </mat-slide-toggle>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </mat-dialog-content>\r\n    <mat-dialog-actions align=\"end\">\r\n        <button mat-raised-button\r\n                type=\"button\"\r\n                class=\"btn btn-danger mr-2 me-2 mb-1\"\r\n                (click)=\"onNoClick()\">\r\n            No\r\n        </button>\r\n        <button mat-raised-button type=\"submit\"\r\n                class=\"btn btn-primary mb-1\"\r\n                cdkFocusInitial>\r\n            Yes\r\n        </button>\r\n    </mat-dialog-actions>\r\n</form>", components: [{ type: i3.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { type: i4.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i5.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i6.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i7.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { type: i8.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex", "name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "checked"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }], directives: [{ type: i2.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i4.MatLabel, selector: "mat-label" }, { type: i9.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl],      input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i10.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i11.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.MatError, selector: "mat-error", inputs: ["id"] }, { type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { type: i1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { type: i7.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1.MinLengthValidator, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: ["minlength"] }, { type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { type: i1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { type: i2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AswSelectDialog, decorators: [{
            type: Component,
            args: [{ selector: 'asw-select-dialog', template: "<h4 mat-dialog-title>Edit select property</h4>\r\n<mat-divider></mat-divider>\r\n<form [formGroup]=\"aswEditSelectForm\" (ngSubmit)=\"onSubmit()\">\r\n    <mat-dialog-content class=\"mat-typography\">\r\n        <div class=\"asw-full-width\"><br>\r\n            <div class=\"row\">\r\n                <div class=\"col-md-6\">\r\n                    <mat-form-field appearance=\"outline\" class=\"asw-mat-form-field\">\r\n                        <mat-label>Label</mat-label>\r\n                        <input matInput type=\"text\"\r\n                                        placeholder=\"Enter label\"\r\n                                        matTooltip=\"Enter label\"\r\n                                        formControlName=\"label\" required>\r\n                        <mat-error class=\"asw-mat-error\" *ngFor=\"let validation of constants.accountValidationMessages.label\">\r\n                            <mat-error class=\"asw-mat-error\" *ngIf=\"aswEditSelectForm.get('label')?.hasError(validation.type) && (aswEditSelectForm.get('label')?.dirty || aswEditSelectForm.get('label')?.touched)\">\r\n                                {{validation.message}}\r\n                            </mat-error>\r\n                        </mat-error>\r\n                    </mat-form-field>\r\n                </div>\r\n                <div class=\"col-md-6\">\r\n                    <mat-form-field appearance=\"outline\" class=\"asw-mat-form-field\">\r\n                        <mat-label>Tooltip</mat-label>\r\n                        <input matInput type=\"text\"\r\n                                        placeholder=\"Enter tooltip\"\r\n                                        matTooltip=\"Enter tooltip\"\r\n                                        formControlName=\"tooltip\">\r\n                    </mat-form-field>\r\n                </div>\r\n            </div>\r\n            <div class=\"row\">\r\n                <div class=\"col-md-12\">\r\n                    <mat-form-field appearance=\"outline\" class=\"asw-mat-form-field\">\r\n                        <mat-label>Name</mat-label>\r\n                        <input matInput type=\"text\"\r\n                                        placeholder=\"Enter name\"\r\n                                        matTooltip=\"Enter name\"\r\n                                        formControlName=\"name\" required>\r\n                        <mat-error class=\"asw-mat-error\" *ngFor=\"let validation of constants.accountValidationMessages.name\">\r\n                            <mat-error class=\"asw-mat-error\" *ngIf=\"aswEditSelectForm.get('name')?.hasError(validation.type) && (aswEditSelectForm.get('name')?.dirty || aswEditSelectForm.get('name')?.touched)\">\r\n                                {{validation.message}}\r\n                            </mat-error>\r\n                        </mat-error>\r\n                    </mat-form-field>\r\n                </div>\r\n            </div>\r\n            <div class=\"row\">\r\n                <div class=\"col-md-6\">\r\n                    <mat-form-field appearance=\"outline\" class=\"asw-mat-form-field\">\r\n                        <mat-label>Column Size</mat-label>\r\n                        <mat-select formControlName=\"column\" matTooltip=\"Select column size\">\r\n                            <mat-option *ngFor=\"let column of constants.columns\" [value]=\"column.value\">\r\n                                {{column.label}}\r\n                            </mat-option>\r\n                        </mat-select>\r\n                    </mat-form-field>\r\n                </div>\r\n                <div class=\"col-md-6\">\r\n                    <mat-form-field appearance=\"outline\" class=\"asw-mat-form-field\">\r\n                        <mat-label>Textbox Style</mat-label>\r\n                        <mat-select formControlName=\"style\" matTooltip=\"Select textbox style\">\r\n                            <mat-option value=\"legacy\">Legacy</mat-option>\r\n                            <mat-option value=\"standard\">Standard</mat-option>\r\n                            <mat-option value=\"fill\">Fill</mat-option>\r\n                            <mat-option value=\"outline\">Outline</mat-option>                    \r\n                        </mat-select>\r\n                    </mat-form-field>\r\n                </div>\r\n            </div>\r\n            <ng-container formArrayName=\"options\">\r\n                <div class=\"row\" \r\n                    *ngFor=\"let option of options.controls; let index = index; let last=last;\" \r\n                    [formGroupName]=\"index\">\r\n                    <div class=\"col-md-1 mt-3\">\r\n                        <mat-radio-group formControlName=\"key\">\r\n                            <mat-radio-button  \r\n                            [value]=\"option.value.key\"\r\n                            (change)=\"radioChange($event)\"\r\n                            [checked]=\"option.value.isChecked\"></mat-radio-button>\r\n                        </mat-radio-group>\r\n                    </div>\r\n                    <div class=\"col-md-4\">\r\n                        <mat-form-field appearance=\"outline\" class=\"asw-mat-form-field\">\r\n                            <mat-label>Option key {{index+1}}</mat-label>\r\n                            <input matInput type=\"text\"\r\n                                    placeholder=\"Option key\"\r\n                                    formControlName=\"key\"\r\n                                    matTooltip=\"Option key\"\r\n                                    minlength=\"1\"\r\n                                    maxlength=\"50\"\r\n                                    (keyup)=\"onKey($event, index)\"\r\n                                    pattern=\"^[a-z0-9_-]{1,50}$\"\r\n                                    required>\r\n                                <mat-error class=\"asw-mat-error\" *ngFor=\"let validation of constants.accountValidationMessages.key\">\r\n                                    <mat-error class=\"asw-mat-error\" *ngIf=\"options.controls[index].get('key')?.hasError(validation.type) && options.controls[index].get('key')?.errors?.unique && (options.controls[index].get('key')?.dirty || options.controls[index].get('key')?.touched)\">\r\n                                        {{validation.message}}\r\n                                    </mat-error>\r\n                                </mat-error>\r\n                        </mat-form-field>\r\n                    </div>\r\n                    <div class=\"col-md-5\">\r\n                        <mat-form-field appearance=\"outline\" class=\"asw-mat-form-field\">\r\n                            <mat-label>Option value {{index+1}}</mat-label>\r\n                            <input matInput type=\"text\"\r\n                                    placeholder=\"Option value\"\r\n                                    formControlName=\"value\"\r\n                                    matTooltip=\"Option value\"\r\n                                    minlength=\"1\"\r\n                                    maxlength=\"999\"\r\n                                    required>\r\n                                <mat-error class=\"asw-mat-error\" *ngFor=\"let validation of constants.accountValidationMessages.value\">\r\n                                    <mat-error class=\"asw-mat-error\" *ngIf=\"options.controls[index].get('value')?.hasError(validation.type) && (options.controls[index].get('value')?.dirty || options.controls[index].get('value')?.touched)\">\r\n                                        {{validation.message}}\r\n                                    </mat-error>\r\n                                </mat-error>\r\n                        </mat-form-field>\r\n                    </div>\r\n                    <div class=\"col-md-2\">\r\n                        <button mat-raised-button *ngIf=\"last\"\r\n                                type=\"button\" \r\n                                matTooltip=\"Add option\" \r\n                                [matTooltipPosition]=\"'above'\"\r\n                                (click)=\"addNewOption()\" \r\n                                class=\"asw-btn btn btn-just-icon btn-sm btn-outline-success mr-2 me-2 mt-3\">\r\n                            <i class=\"material-icons asw-material-icon\">add_circle_outline</i>\r\n                        </button>\r\n                        <button mat-raised-button *ngIf=\"index != 0\"\r\n                                type=\"button\" \r\n                                matTooltip=\"Remove option\" \r\n                                [matTooltipPosition]=\"'above'\" \r\n                                (click)=\"removeOption(index)\"\r\n                                class=\"asw-btn btn btn-just-icon btn-sm btn-outline-danger mt-3\">\r\n                            <i class=\"material-icons asw-material-icon\">remove_circle_outline</i>\r\n                        </button>\r\n                    </div>\r\n                </div> \r\n            </ng-container>            \r\n            <div class=\"row\">\r\n                <div class=\"col-md-12\">\r\n                    <mat-slide-toggle color=\"primary\"\r\n                          #isActive\r\n                          name=\"isRequired\"\r\n                          formControlName=\"isRequired\"\r\n                          (change)=\"onChange($event)\">{{status? 'Required':'Not Required'}}\r\n                    </mat-slide-toggle>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </mat-dialog-content>\r\n    <mat-dialog-actions align=\"end\">\r\n        <button mat-raised-button\r\n                type=\"button\"\r\n                class=\"btn btn-danger mr-2 me-2 mb-1\"\r\n                (click)=\"onNoClick()\">\r\n            No\r\n        </button>\r\n        <button mat-raised-button type=\"submit\"\r\n                class=\"btn btn-primary mb-1\"\r\n                cdkFocusInitial>\r\n            Yes\r\n        </button>\r\n    </mat-dialog-actions>\r\n</form>" }]
        }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.MatDialogRef }, { type: undefined, decorators: [{
                    type: Inject,
                    args: [MAT_DIALOG_DATA]
                }] }]; } });
//# sourceMappingURL=data:application/json;base64, 