import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/dialog";
import * as i2 from "../../modules/shared/services/shared.service";
import * as i3 from "@angular/material/snack-bar";
import * as i4 from "@angular/common";
import * as i5 from "@angular/material/legacy-card";
import * as i6 from "@angular/forms";
import * as i7 from "@angular/material/legacy-button";
import * as i8 from "@angular/material/icon";
import * as i9 from "@angular/material/legacy-checkbox";
import * as i10 from "@angular/material/progress-spinner";
export class SuggestMoreCoursesComponent {
    constructor(dialogRef, data, sharedService, snackBar) {
        this.dialogRef = dialogRef;
        this.data = data;
        this.sharedService = sharedService;
        this.snackBar = snackBar;
        this.searchText = '';
        this.suggestedCourses = [];
        this.originalData = [];
        this.selectFilterCourses = [];
        this.planData = {};
        this.loading = false;
        // Pagination properties
        this.currentPage = 0;
        this.pageSize = 12;
        this.totalCount = 0;
        this.totalPages = 0;
        this.planData = data;
    }
    ngOnInit() {
        this.loadAllCourses();
    }
    applyFilter() {
        // This method is kept for future use if needed
        // Search is now only triggered by search button click
    }
    searchData() {
        console.log('searchData called with searchText:', this.searchText);
        // Reset to first page when searching
        this.currentPage = 0;
        if (!this.searchText.trim()) {
            console.log('Search text is empty, loading all courses');
            this.loadAllCourses();
            return;
        }
        // Call the dedicated search method
        this.performSearch();
    }
    loadAllCourses() {
        this.loading = true;
        let reqBody = {
            "request": {
                "filters": {
                    "primaryCategory": [
                        "Course"
                    ],
                    "status": [
                        "Live"
                    ],
                    "courseCategory": [
                        "Course"
                    ]
                },
                "fields": [
                    "posterImage",
                    "description",
                    "name"
                ],
                "limit": this.pageSize,
                "offset": this.currentPage * this.pageSize
            }
        };
        console.log('Load all courses request body:', reqBody);
        this.sharedService.getIGOTSuggestedCourses(reqBody).subscribe({
            next: (res) => {
                this.loading = false;
                console.log('All courses loaded:', res);
                if (res && res.result) {
                    this.suggestedCourses = res.result.content || [];
                    this.originalData = res.result.content || [];
                    this.totalCount = res.result.totalHits || res.result.count || 0;
                    this.totalPages = Math.ceil(this.totalCount / this.pageSize);
                }
                else {
                    this.suggestedCourses = [];
                    this.originalData = [];
                    this.totalCount = 0;
                    this.totalPages = 0;
                }
            },
            error: (error) => {
                this.loading = false;
                console.error('Load courses error:', error);
                this.snackBar.open('Failed to load courses. Please try again.', 'X', {
                    duration: 3000,
                    panelClass: ['snackbar-error']
                });
            }
        });
    }
    cancel() {
        this.dialogRef.close();
    }
    // Pagination methods
    onPageChange(page) {
        if (page >= 0 && page < this.totalPages) {
            this.currentPage = page;
            if (this.searchText.trim()) {
                this.performSearch();
            }
            else {
                this.loadAllCourses();
            }
        }
    }
    // Separate method for performing search with query
    performSearch() {
        if (!this.searchText.trim()) {
            this.loadAllCourses();
            return;
        }
        this.loading = true;
        let reqBody = {
            "request": {
                "filters": {
                    "primaryCategory": [
                        "Course"
                    ],
                    "status": [
                        "Live"
                    ],
                    "courseCategory": [
                        "Course"
                    ]
                },
                "fields": [
                    "posterImage",
                    "description",
                    "name"
                ],
                "query": this.searchText.trim(),
                "limit": this.pageSize,
                "offset": this.currentPage * this.pageSize
            }
        };
        console.log('Perform search request body:', JSON.stringify(reqBody, null, 2));
        this.sharedService.getIGOTSuggestedCourses(reqBody).subscribe({
            next: (res) => {
                this.loading = false;
                console.log('Search results:', res);
                if (res && res.result) {
                    this.suggestedCourses = res.result.content || [];
                    this.originalData = res.result.content || [];
                    this.totalCount = res.result.totalHits || res.result.count || 0;
                    this.totalPages = Math.ceil(this.totalCount / this.pageSize);
                }
                else {
                    this.suggestedCourses = [];
                    this.originalData = [];
                    this.totalCount = 0;
                    this.totalPages = 0;
                }
            },
            error: (error) => {
                this.loading = false;
                console.error('Search error:', error);
                this.snackBar.open('Search failed. Please try again.', 'X', {
                    duration: 3000,
                    panelClass: ['snackbar-error']
                });
            }
        });
    }
    goToFirstPage() {
        this.onPageChange(0);
    }
    goToPreviousPage() {
        this.onPageChange(this.currentPage - 1);
    }
    goToNextPage() {
        this.onPageChange(this.currentPage + 1);
    }
    goToLastPage() {
        this.onPageChange(this.totalPages - 1);
    }
    clearSearch() {
        this.searchText = '';
        this.currentPage = 0;
        this.loadAllCourses();
    }
    // Helper methods for pagination UI
    get hasPreviousPage() {
        return this.currentPage > 0;
    }
    get hasNextPage() {
        return this.currentPage < this.totalPages - 1;
    }
    get startItem() {
        return this.currentPage * this.pageSize + 1;
    }
    get endItem() {
        return Math.min((this.currentPage + 1) * this.pageSize, this.totalCount);
    }
    filterData(searchText) {
        const filter = searchText.trim().toLowerCase();
        return this.originalData.filter(item => {
            const stringified = this.flattenObjectToString(item).toLowerCase();
            return stringified.includes(filter);
        });
    }
    flattenObjectToString(obj) {
        let result = '';
        for (const key in obj) {
            const value = obj[key];
            if (typeof value === 'string') {
                result += ' ' + value;
            }
            else if (Array.isArray(value)) {
                value.forEach(val => {
                    if (typeof val === 'string') {
                        result += ' ' + val;
                    }
                    else if (typeof val === 'object') {
                        result += ' ' + this.flattenObjectToString(val);
                    }
                });
            }
            else if (typeof value === 'object' && value !== null) {
                result += ' ' + this.flattenObjectToString(value);
            }
        }
        return result;
    }
    addCourses() {
        this.loading = true;
        // First, get existing suggested courses to avoid overwriting
        this.sharedService.getSuggestedCourses(this.planData.role_mapping_id).subscribe({
            next: (existingRes) => {
                console.log('Existing suggested courses:', existingRes);
                // Extract existing course identifiers
                let existingIdentifiers = [];
                if (existingRes && Array.isArray(existingRes)) {
                    existingIdentifiers = existingRes.map(course => course.identifier).filter(id => id);
                }
                // Merge existing identifiers with new selections (avoiding duplicates)
                const allIdentifiers = [...new Set([...existingIdentifiers, ...this.selectFilterCourses])];
                console.log('Existing identifiers:', existingIdentifiers);
                console.log('New selections:', this.selectFilterCourses);
                console.log('Combined identifiers:', allIdentifiers);
                // Prepare request body with combined identifiers
                let reqBody = {
                    "role_mapping_id": this.planData.role_mapping_id,
                    "course_identifiers": allIdentifiers
                };
                // Save the combined list
                this.sharedService.saveSuggestedCourse(reqBody).subscribe({
                    next: (res) => {
                        // Success handling
                        console.log('Success:', res);
                        this.loading = false;
                        this.dialogRef.close('saved');
                        this.snackBar.open('Courses Added Successfully', 'X', {
                            duration: 3000,
                            panelClass: ['snackbar-success']
                        });
                    },
                    error: (error) => {
                        console.log('Save error', error);
                        this.dialogRef.close();
                        this.snackBar.open(error?.error?.detail || 'Failed to save courses', 'X', {
                            duration: 3000,
                            panelClass: ['snackbar-error']
                        });
                        this.loading = false;
                    }
                });
            },
            error: (error) => {
                console.log('Error fetching existing courses:', error);
                // If fetching existing courses fails, proceed with just new selections
                // This could happen if no courses exist yet (404) which is normal
                if (error.status === 404) {
                    console.log('No existing suggested courses found, proceeding with new selections only');
                    let reqBody = {
                        "role_mapping_id": this.planData.role_mapping_id,
                        "course_identifiers": this.selectFilterCourses
                    };
                    this.sharedService.saveSuggestedCourse(reqBody).subscribe({
                        next: (res) => {
                            console.log('Success:', res);
                            this.loading = false;
                            this.dialogRef.close('saved');
                            this.snackBar.open('Courses Added Successfully', 'X', {
                                duration: 3000,
                                panelClass: ['snackbar-success']
                            });
                        },
                        error: (saveError) => {
                            console.log('Save error', saveError);
                            this.dialogRef.close();
                            this.snackBar.open(saveError?.error?.detail || 'Failed to save courses', 'X', {
                                duration: 3000,
                                panelClass: ['snackbar-error']
                            });
                            this.loading = false;
                        }
                    });
                }
                else {
                    // Other errors - show error message
                    console.error('Unexpected error fetching existing courses:', error);
                    this.loading = false;
                    this.snackBar.open('Failed to load existing courses. Please try again.', 'X', {
                        duration: 3000,
                        panelClass: ['snackbar-error']
                    });
                }
            }
        });
    }
    selectAllCourses(event) {
        if (event.checked) {
            for (let i = 0; i < this.suggestedCourses.length; i++) {
                this.selectFilterCourses.push(this.suggestedCourses[i].identifier);
            }
        }
        else {
            this.selectFilterCourses = [];
        }
        console.log('this.selectFilterCourses', this.selectFilterCourses);
    }
    selectedFilterCourses(event, item) {
        console.log('event', event);
        console.log('item', item);
        if (event.checked) {
            this.selectFilterCourses.push(item?.identifier);
        }
        else {
            const index = this.selectFilterCourses.indexOf(item?.identifier);
            if (index !== -1) {
                this.selectFilterCourses.splice(index, 1);
            }
        }
        console.log('this.selectFilterCourses', this.selectFilterCourses);
    }
    checkIfCourseExists(item) {
        let flag = false;
        if (this.selectFilterCourses.indexOf(item?.identifier) > -1) {
            flag = true;
        }
        return flag;
    }
    onImgError(event) {
        const imgElement = event.target;
        imgElement.src = 'assets/career/careers1.png'; // replace with your default image path
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuggestMoreCoursesComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token: i2.SharedService }, { token: i3.MatSnackBar }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuggestMoreCoursesComponent, selector: "app-suggest-more-courses", ngImport: i0, template: "<div class=\"suggest-courses-plan\">\n    <div class=\"container\">\n        <mat-card class=\"mt-2\">\n            <div class=\"suggest-courses-header\">\n                <div>\n                    <div class=\"heading\">\n                        Suggest Courses from iGOT\n                    </div>\n                    <div class=\"sub-heading-text\">\n                        <p>These courses is coming from the iGOT platform</p>\n                    </div>\n                </div>\n                <div>\n                    <div class=\"suggest-course-control\">\n                        <div>\n                            <input class=\"btn-active\" type=\"button\" value=\"Cancel\" (click)=\"cancel()\"/>\n                        </div>\n                        <div>\n                            <input [disabled]=\"selectFilterCourses?.length ? false : true\" [ngClass]=\"selectFilterCourses?.length ? 'btn-active':'btn-disable'\" type=\"button\" value=\"Add\" (click)=\"addCourses()\"/>\n                        </div>\n                    </div>\n                </div>\n            </div>\n            <div class=\"mt-4\">\n                <div class=\"search-filter-section\">\n                    <div class=\"search flex margin-right-m\">\n                        <label class=\"label\">Search</label>\n                        <div>\n                            <div class=\"search-container\">\n                                <div class=\"rsearch\">\n                                    <mat-icon\n                                        class=\"color-60 search-icon mat-icon notranslate material-icons mat-icon-no-color\">search</mat-icon>\n                                    <input style=\"border-radius: 25px; border: 1px solid #ccc; padding: 8px 35px;\"\n                                        class=\"sinput color-60 w-full\" [(ngModel)]=\"searchText\"\n                                        (keyup.enter)=\"searchData()\" label=\"\"\n                                        placeholder=\"Search Courses from iGOT\" type=\"Standard\">\n                                    <mat-icon *ngIf=\"searchText.trim().length > 0\" \n                                        class=\"color-60 clear-icon mat-icon notranslate material-icons mat-icon-no-color cursor-pointer\" \n                                        (click)=\"clearSearch()\">clear</mat-icon>\n                                </div>\n                                <div class=\"pl-2\">\n                                    <input [disabled]=\"!searchText.trim()\" [ngClass]=\"searchText.trim() ? 'btn-active':'btn-disable'\" type=\"button\" value=\"Search\" (click)=\"searchData()\" />\n                                </div>\n                            </div>\n\n\n                        </div>\n                    </div>\n                </div>\n            </div>\n            <div class=\"mt-4\">\n                <div class=\"results-header\" style=\"display: flex; justify-content: space-between; align-items: center;\">\n                    <div>\n                        <mat-checkbox [checked]=\"false\" (change)=\"selectAllCourses($event)\">Select All Courses</mat-checkbox>\n                    </div>\n                    <div class=\"results-info\" *ngIf=\"totalCount > 0\">\n                        <span class=\"text-muted\">Showing {{ startItem }} - {{ endItem }} of {{ totalCount }} courses</span>\n                    </div>\n                </div>\n            </div>\n            <div class=\"course-card-list\">\n                <div class=\"course-card-container mt-2\" *ngFor=\"let item of suggestedCourses\">\n                  <div>\n                    <div class=\"image-container\">\n                      <!-- \u2705 Checkbox -->\n                      <mat-checkbox [checked]=\"checkIfCourseExists(item)\" \n                        class=\"image-checkbox\"\n                        (change)=\"selectedFilterCourses($event, item)\">\n                      </mat-checkbox>\n              \n                      <!-- \u2705 Image -->\n                      <img [src]=\"item?.posterImage\" (error)=\"onImgError($event)\" />\n                    </div>\n              \n                    <div class=\"mt-2\" style=\"width: 100px\">\n                      <div class=\"course-pill\">\n                        <div class=\"course-pill-text\">\n                            <span><img src=\"assets/icons/course.svg\"></span>&nbsp;<span>Course</span>\n                        </div>\n                      </div>\n                    </div>\n              \n                    <div class=\"sub-heading mt-2\">\n                      <p>{{ item?.name }}</p>\n                    </div>\n                    <div class=\"mt-2 desc\">\n                      <p>{{ item?.description | slice: 0:200 }}</p>\n                    </div>\n                  </div>\n                </div>\n              </div>\n              \n              <!-- Pagination Controls -->\n              <div class=\"pagination-controls mt-4\" *ngIf=\"totalPages > 1\" style=\"display: flex; justify-content: center; align-items: center; gap: 10px;\">\n                <button mat-icon-button [disabled]=\"!hasPreviousPage\" (click)=\"goToFirstPage()\" title=\"First Page\">\n                  <mat-icon>first_page</mat-icon>\n                </button>\n                \n                <button mat-icon-button [disabled]=\"!hasPreviousPage\" (click)=\"goToPreviousPage()\" title=\"Previous Page\">\n                  <mat-icon>chevron_left</mat-icon>\n                </button>\n                \n                <span class=\"pagination-info\" style=\"margin: 0 15px;\">\n                  Page {{ currentPage + 1 }} of {{ totalPages }}\n                </span>\n                \n                <button mat-icon-button [disabled]=\"!hasNextPage\" (click)=\"goToNextPage()\" title=\"Next Page\">\n                  <mat-icon>chevron_right</mat-icon>\n                </button>\n                \n                <button mat-icon-button [disabled]=\"!hasNextPage\" (click)=\"goToLastPage()\" title=\"Last Page\">\n                  <mat-icon>last_page</mat-icon>\n                </button>\n              </div>\n\n              <!-- No Results Message -->\n              <div class=\"no-results mt-4\" *ngIf=\"!loading && suggestedCourses.length === 0\" style=\"text-align: center; padding: 20px;\">\n                <p class=\"text-muted\">{{ searchText.trim() ? 'No courses found for your search.' : 'No courses available.' }}</p>\n                <button mat-button color=\"primary\" *ngIf=\"searchText.trim()\" (click)=\"clearSearch()\">Clear Search</button>\n              </div>\n        </mat-card>\n    </div>\n</div> \n<div class=\"overlay-loader\" *ngIf=\"loading\">\n    <mat-spinner diameter=\"50\"></mat-spinner>\n</div>", styles: [".container{margin:10px auto;width:100%;max-width:1400px;overflow:hidden}.sub-heading p{color:#000;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:600;line-height:normal}.sub-heading-text p{color:#000;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:400;line-height:normal}.radio-label{color:#000;font-family:Lato;font-size:16px;font-style:normal;font-weight:400;line-height:normal}.radio-btn-group{display:flex;width:32px;height:32px;padding:2px;gap:10px}.label{color:var(--Body-Text-Body-Color, #212529);font-family:Lato;font-size:14px;font-style:normal;font-weight:700;line-height:150%}::ng-deep mat-form-field{background-color:#fff!important;border-radius:25px!important;padding-left:12px;padding-right:12px;height:42px;width:100%}::ng-deep mat-select{border-radius:25px!important;background-color:#fff!important}::ng-deep .mat-select-panel{background-color:#fff!important}::ng-deep .mat-select-panel .mat-option{border-radius:0!important}::ng-deep mat-form-field .mat-form-field-underline{display:none!important}::ng-deep mat-select .mat-select-placeholder{color:#0006;font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal}::ng-deep mat-select .mat-select-value-text{color:#000;font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal;line-height:normal!important;padding-top:0!important;padding-bottom:0!important}::ng-deep mat-select .mat-select-value{display:flex!important;align-items:center!important;height:100%!important}.additional-details textarea{display:flex;padding:16px 16px 0;flex-direction:column;align-items:flex-start;gap:10px;flex:1 0 0;align-self:stretch;width:100%;color:#000;font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal;resize:none}.section-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.btn-disable{border-radius:var(--Radius-Full-Round, 9999999px);opacity:.4;background:var(--Primary-KB-Primary-Light, #1B4CA1);color:var(--white-kb-white-100, #FFF);text-align:center;font-family:Lato;font-size:14px;font-style:normal;font-weight:700;line-height:normal;display:flex;height:32px;padding:0 16px;justify-content:center;align-items:center;gap:8px;border:none}.btn-group{display:flex;flex-direction:row;justify-content:space-between}.pl-2{padding-left:5px}.search-filter-section{display:flex;flex-direction:row;justify-content:space-between}.search .rsearch{position:relative}.search .search-icon{position:absolute;top:10px;font-size:20px;left:10px}.search .clear-icon{position:absolute;top:10px;font-size:20px;right:10px;color:#666}.search .clear-icon:hover{color:#333}.search .sinput{border-radius:32px;border:1px solid #d5d0d0;padding:15px 36px;font:400 14px Lato;width:800px}.select-map-route-container{display:flex;flex-direction:row}.selected-mapping-route p{color:#1b4ca1;font-family:Lato;font-size:20px;font-style:normal;font-weight:400;line-height:normal;text-decoration-line:underline;text-decoration-style:solid;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font}.edit-plan{display:flex;padding:4px;justify-content:center;align-items:center;gap:8px;border-radius:4px;background:#1b4ca129;color:#1b4ca1;font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal;margin-left:10px}.search-container{display:flex;flex-direction:row}.course-container{display:flex;width:100%;padding:16px;flex-direction:column;align-items:flex-start;gap:24px;grid-row:2/span 1;grid-column:1/span 1;border-radius:12px;border:1px solid var(--borders-black-border-16-black, rgba(0, 0, 0, .16));background:#fff}.course-header{display:flex;flex-direction:row;justify-content:space-between;width:100%}.course-pill{display:flex;height:24px;padding:8px;align-items:center;gap:4px;border-radius:16px;border:1px solid var(--borders-border-fill-focussed-4-light-100, #EF951E);background:#fefaf4;width:auto}.ai-recommened-pill{display:flex;padding:4px 8px;align-items:center;gap:8px;border-radius:var(--Radius-4, 4px);border:1px solid #1B4CA1;background:#1b4ca129}.igot-platform-pill{display:flex;padding:4px 8px;align-items:center;gap:8px;border-radius:var(--Radius-4, 4px);border:1px solid #EF951E;background:#ef951e29}.course-title{color:var(--Primary-KB-Primary-Light, #1B4CA1);font-family:Montserrat;font-size:20px;font-style:normal;font-weight:600;line-height:30px}.course-desc{color:#0009;font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal}.relevancy,.competencies-matched{color:var(--accessbility-shades-with-opacity-kb-greys-black-60, rgba(0, 0, 0, .6));font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal;align-items:center}.percentage{color:#1d8923;font-family:Lato;font-size:14px;font-style:normal;font-weight:800;line-height:normal}.relevancy-container,.competencies-matched-container{display:flex;flex-direction:row;align-items:center}.dash{padding:0 5px}::ng-deep .mat-radio-checked .mat-radio-inner-circle{background:#1b4ca1!important}.course-list-container{display:flex;flex-wrap:wrap;gap:16px}.course-list-item{flex:0 0 48%;box-sizing:border-box;border:1px solid #ccc;padding:16px;background-color:#fff;border-radius:8px}.checked-course-container{display:flex}.ml-2{margin-left:8px}::ng-deep .mat-checkbox-checked .mat-checkbox-background{background:#1b4ca1!important}.ai-recommened-pill-text,.igot-platform-pill-text{color:#1b4ca1;font-family:Lato;font-size:12px;font-style:normal;font-weight:700;line-height:normal}.course-pill-text{color:var(--accessbility-shades-without-opacity-kb-greys-black-87, #212121);text-align:center;font-family:Poppins;font-size:12px;font-style:normal;font-weight:400;line-height:normal}.ai-loader-icon img,.igot-platform-icon img{width:15.714px;height:15.714px;flex-shrink:0}.competency-container{display:flex;justify-content:space-between;flex-direction:row}.outside-layer-total{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:16px;border-radius:12px 4px 4px 12px;border-left:2px solid #1B4CA1;background:#edf1f8;width:132px}.outside-layer-functional{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:16px;border-radius:12px 4px 4px 12px;border-left:2px solid #E24577;background:#f8d2de;width:132px}.outside-layer-domain{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:16px;border-radius:12px 4px 4px 12px;border-left:2px solid #7B47A4;background:#dfd3e9;width:132px}.outside-layer-behavioral{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:16px;border-radius:12px 4px 4px 12px;border-left:2px solid #F8B861;background:#fde8cc;width:132px}.inside-layer{color:#1b4ca1;font-family:Lato;font-size:12px;font-style:normal;font-weight:400;line-height:normal}.count{color:#1b4ca1;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:600;line-height:normal}.suggest-courses-header{display:flex;flex-direction:row;justify-content:space-between}.suggest-course-control{display:flex;flex-direction:row;gap:16px}.course-card-container{flex:0 0 calc(25% - 12px);width:calc(25% - 12px);min-width:280px;border-radius:3.307px;border:.827px solid var(--borders-border-8-black, rgba(0, 0, 0, .08));background-color:#fff;padding:15px;min-height:320px;box-sizing:border-box;display:flex;flex-direction:column}.highlight-ai{font-family:Montserrat;font-size:24px;font-style:normal;font-weight:600;line-height:normal;background:linear-gradient(90deg,#3b27ff,#2de3d6);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;display:inline-block}.ai-loader-icon-medium img{width:40px;height:40px;flex-shrink:0}.heading{color:#000;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:600;line-height:normal;margin:10px 0}.progress-popup{display:flex;flex-direction:column;justify-content:center;align-items:center}.progress-popup .desc{color:#000000de;text-align:center;font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal}.behavioural-pill{display:flex;padding:0 8px;justify-content:center;align-items:center;gap:10px;border-radius:99px;border:1px solid #F8B861;background:linear-gradient(0deg,#f8b86152 0% 100%),#fff;margin:5px 0}.functional-pill{display:flex;padding:0 8px;justify-content:center;align-items:center;gap:10px;border-radius:99px;border:1px solid #E24577;background:linear-gradient(0deg,#e245773d 0% 100%),#fff;margin:5px 0}.domain-pill{display:flex;padding:0 8px;justify-content:center;align-items:center;gap:10px;border-radius:99px;border:1px solid #7B47A4;background:linear-gradient(0deg,#7b47a43d 0% 100%),#fff;margin:5px 0}.popup-header{display:flex;flex-direction:row;justify-content:space-between}.popup-footer{display:flex;flex-direction:row;justify-content:end}.view-cbp-plan{margin:10px;padding:10px}.view-cbp-plan-popup{padding:24px;max-height:70vh;overflow-y:auto}.section{border-radius:8px;background:#1b4ca114;padding:16px}.popup-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ddd;font-weight:700;flex-shrink:0}.popup-footer{display:flex;justify-content:flex-end;gap:16px;padding:16px 24px;border-top:1px solid #ddd;background-color:#fff;flex-shrink:0;position:sticky;bottom:0}.section-container{overflow-y:auto;flex:1 1 auto}.competency-list{display:flex;flex-direction:row;gap:16px}.competency-text{color:#000;font-family:Lato;font-size:10px;font-style:normal;font-weight:700;line-height:normal}.competency-sub-heading{color:#1b4ca1;font-family:Montserrat;font-size:12px;font-style:normal;font-weight:600;line-height:normal}.cursor-pointer{cursor:pointer}.btn-active{border-radius:var(--Radius-Full-Round, 9999999px);opacity:1;background:var(--Primary-KB-Primary-Light, #1B4CA1);color:var(--white-kb-white-100, #FFF);text-align:center;font-family:Lato;font-size:14px;font-style:normal;font-weight:700;line-height:normal;display:flex;height:32px;padding:0 16px;justify-content:center;align-items:center;gap:8px;border:none}.custom-textarea{color:#000;font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal}.overlay-loader{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#ffffffbf;z-index:9999;display:flex;justify-content:center;align-items:center}.course-card-list{display:flex;flex-wrap:wrap;flex-direction:row;gap:16px;justify-content:flex-start;align-items:stretch}@media (max-width: 1400px){.course-card-list{justify-content:center}}.image-container img{height:150px;width:100%;object-fit:cover}.image-container{position:relative;width:100%;height:auto}.image-container img{width:100%;height:150px;border-radius:6px}.image-container .image-checkbox{position:absolute;top:8px;right:8px;background:#fff;border-radius:4px;z-index:10}.desc{word-wrap:break-word}@media (max-width: 1400px){.course-card-container{flex:0 0 calc(33.333% - 10.667px);width:calc(33.333% - 10.667px);min-width:280px}}@media (max-width: 1024px){.course-card-container{flex:0 0 calc(50% - 8px);width:calc(50% - 8px);min-width:300px}}@media (max-width: 768px){.course-card-container{flex:0 0 100%;width:100%;min-width:auto}}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.MatLegacyCard, selector: "mat-card", exportAs: ["matCard"] }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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: "component", type: i8.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i9.MatLegacyCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i10.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "pipe", type: i4.SlicePipe, name: "slice" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuggestMoreCoursesComponent, decorators: [{
            type: Component,
            args: [{ selector: 'app-suggest-more-courses', template: "<div class=\"suggest-courses-plan\">\n    <div class=\"container\">\n        <mat-card class=\"mt-2\">\n            <div class=\"suggest-courses-header\">\n                <div>\n                    <div class=\"heading\">\n                        Suggest Courses from iGOT\n                    </div>\n                    <div class=\"sub-heading-text\">\n                        <p>These courses is coming from the iGOT platform</p>\n                    </div>\n                </div>\n                <div>\n                    <div class=\"suggest-course-control\">\n                        <div>\n                            <input class=\"btn-active\" type=\"button\" value=\"Cancel\" (click)=\"cancel()\"/>\n                        </div>\n                        <div>\n                            <input [disabled]=\"selectFilterCourses?.length ? false : true\" [ngClass]=\"selectFilterCourses?.length ? 'btn-active':'btn-disable'\" type=\"button\" value=\"Add\" (click)=\"addCourses()\"/>\n                        </div>\n                    </div>\n                </div>\n            </div>\n            <div class=\"mt-4\">\n                <div class=\"search-filter-section\">\n                    <div class=\"search flex margin-right-m\">\n                        <label class=\"label\">Search</label>\n                        <div>\n                            <div class=\"search-container\">\n                                <div class=\"rsearch\">\n                                    <mat-icon\n                                        class=\"color-60 search-icon mat-icon notranslate material-icons mat-icon-no-color\">search</mat-icon>\n                                    <input style=\"border-radius: 25px; border: 1px solid #ccc; padding: 8px 35px;\"\n                                        class=\"sinput color-60 w-full\" [(ngModel)]=\"searchText\"\n                                        (keyup.enter)=\"searchData()\" label=\"\"\n                                        placeholder=\"Search Courses from iGOT\" type=\"Standard\">\n                                    <mat-icon *ngIf=\"searchText.trim().length > 0\" \n                                        class=\"color-60 clear-icon mat-icon notranslate material-icons mat-icon-no-color cursor-pointer\" \n                                        (click)=\"clearSearch()\">clear</mat-icon>\n                                </div>\n                                <div class=\"pl-2\">\n                                    <input [disabled]=\"!searchText.trim()\" [ngClass]=\"searchText.trim() ? 'btn-active':'btn-disable'\" type=\"button\" value=\"Search\" (click)=\"searchData()\" />\n                                </div>\n                            </div>\n\n\n                        </div>\n                    </div>\n                </div>\n            </div>\n            <div class=\"mt-4\">\n                <div class=\"results-header\" style=\"display: flex; justify-content: space-between; align-items: center;\">\n                    <div>\n                        <mat-checkbox [checked]=\"false\" (change)=\"selectAllCourses($event)\">Select All Courses</mat-checkbox>\n                    </div>\n                    <div class=\"results-info\" *ngIf=\"totalCount > 0\">\n                        <span class=\"text-muted\">Showing {{ startItem }} - {{ endItem }} of {{ totalCount }} courses</span>\n                    </div>\n                </div>\n            </div>\n            <div class=\"course-card-list\">\n                <div class=\"course-card-container mt-2\" *ngFor=\"let item of suggestedCourses\">\n                  <div>\n                    <div class=\"image-container\">\n                      <!-- \u2705 Checkbox -->\n                      <mat-checkbox [checked]=\"checkIfCourseExists(item)\" \n                        class=\"image-checkbox\"\n                        (change)=\"selectedFilterCourses($event, item)\">\n                      </mat-checkbox>\n              \n                      <!-- \u2705 Image -->\n                      <img [src]=\"item?.posterImage\" (error)=\"onImgError($event)\" />\n                    </div>\n              \n                    <div class=\"mt-2\" style=\"width: 100px\">\n                      <div class=\"course-pill\">\n                        <div class=\"course-pill-text\">\n                            <span><img src=\"assets/icons/course.svg\"></span>&nbsp;<span>Course</span>\n                        </div>\n                      </div>\n                    </div>\n              \n                    <div class=\"sub-heading mt-2\">\n                      <p>{{ item?.name }}</p>\n                    </div>\n                    <div class=\"mt-2 desc\">\n                      <p>{{ item?.description | slice: 0:200 }}</p>\n                    </div>\n                  </div>\n                </div>\n              </div>\n              \n              <!-- Pagination Controls -->\n              <div class=\"pagination-controls mt-4\" *ngIf=\"totalPages > 1\" style=\"display: flex; justify-content: center; align-items: center; gap: 10px;\">\n                <button mat-icon-button [disabled]=\"!hasPreviousPage\" (click)=\"goToFirstPage()\" title=\"First Page\">\n                  <mat-icon>first_page</mat-icon>\n                </button>\n                \n                <button mat-icon-button [disabled]=\"!hasPreviousPage\" (click)=\"goToPreviousPage()\" title=\"Previous Page\">\n                  <mat-icon>chevron_left</mat-icon>\n                </button>\n                \n                <span class=\"pagination-info\" style=\"margin: 0 15px;\">\n                  Page {{ currentPage + 1 }} of {{ totalPages }}\n                </span>\n                \n                <button mat-icon-button [disabled]=\"!hasNextPage\" (click)=\"goToNextPage()\" title=\"Next Page\">\n                  <mat-icon>chevron_right</mat-icon>\n                </button>\n                \n                <button mat-icon-button [disabled]=\"!hasNextPage\" (click)=\"goToLastPage()\" title=\"Last Page\">\n                  <mat-icon>last_page</mat-icon>\n                </button>\n              </div>\n\n              <!-- No Results Message -->\n              <div class=\"no-results mt-4\" *ngIf=\"!loading && suggestedCourses.length === 0\" style=\"text-align: center; padding: 20px;\">\n                <p class=\"text-muted\">{{ searchText.trim() ? 'No courses found for your search.' : 'No courses available.' }}</p>\n                <button mat-button color=\"primary\" *ngIf=\"searchText.trim()\" (click)=\"clearSearch()\">Clear Search</button>\n              </div>\n        </mat-card>\n    </div>\n</div> \n<div class=\"overlay-loader\" *ngIf=\"loading\">\n    <mat-spinner diameter=\"50\"></mat-spinner>\n</div>", styles: [".container{margin:10px auto;width:100%;max-width:1400px;overflow:hidden}.sub-heading p{color:#000;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:600;line-height:normal}.sub-heading-text p{color:#000;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:400;line-height:normal}.radio-label{color:#000;font-family:Lato;font-size:16px;font-style:normal;font-weight:400;line-height:normal}.radio-btn-group{display:flex;width:32px;height:32px;padding:2px;gap:10px}.label{color:var(--Body-Text-Body-Color, #212529);font-family:Lato;font-size:14px;font-style:normal;font-weight:700;line-height:150%}::ng-deep mat-form-field{background-color:#fff!important;border-radius:25px!important;padding-left:12px;padding-right:12px;height:42px;width:100%}::ng-deep mat-select{border-radius:25px!important;background-color:#fff!important}::ng-deep .mat-select-panel{background-color:#fff!important}::ng-deep .mat-select-panel .mat-option{border-radius:0!important}::ng-deep mat-form-field .mat-form-field-underline{display:none!important}::ng-deep mat-select .mat-select-placeholder{color:#0006;font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal}::ng-deep mat-select .mat-select-value-text{color:#000;font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal;line-height:normal!important;padding-top:0!important;padding-bottom:0!important}::ng-deep mat-select .mat-select-value{display:flex!important;align-items:center!important;height:100%!important}.additional-details textarea{display:flex;padding:16px 16px 0;flex-direction:column;align-items:flex-start;gap:10px;flex:1 0 0;align-self:stretch;width:100%;color:#000;font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal;resize:none}.section-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.btn-disable{border-radius:var(--Radius-Full-Round, 9999999px);opacity:.4;background:var(--Primary-KB-Primary-Light, #1B4CA1);color:var(--white-kb-white-100, #FFF);text-align:center;font-family:Lato;font-size:14px;font-style:normal;font-weight:700;line-height:normal;display:flex;height:32px;padding:0 16px;justify-content:center;align-items:center;gap:8px;border:none}.btn-group{display:flex;flex-direction:row;justify-content:space-between}.pl-2{padding-left:5px}.search-filter-section{display:flex;flex-direction:row;justify-content:space-between}.search .rsearch{position:relative}.search .search-icon{position:absolute;top:10px;font-size:20px;left:10px}.search .clear-icon{position:absolute;top:10px;font-size:20px;right:10px;color:#666}.search .clear-icon:hover{color:#333}.search .sinput{border-radius:32px;border:1px solid #d5d0d0;padding:15px 36px;font:400 14px Lato;width:800px}.select-map-route-container{display:flex;flex-direction:row}.selected-mapping-route p{color:#1b4ca1;font-family:Lato;font-size:20px;font-style:normal;font-weight:400;line-height:normal;text-decoration-line:underline;text-decoration-style:solid;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font}.edit-plan{display:flex;padding:4px;justify-content:center;align-items:center;gap:8px;border-radius:4px;background:#1b4ca129;color:#1b4ca1;font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal;margin-left:10px}.search-container{display:flex;flex-direction:row}.course-container{display:flex;width:100%;padding:16px;flex-direction:column;align-items:flex-start;gap:24px;grid-row:2/span 1;grid-column:1/span 1;border-radius:12px;border:1px solid var(--borders-black-border-16-black, rgba(0, 0, 0, .16));background:#fff}.course-header{display:flex;flex-direction:row;justify-content:space-between;width:100%}.course-pill{display:flex;height:24px;padding:8px;align-items:center;gap:4px;border-radius:16px;border:1px solid var(--borders-border-fill-focussed-4-light-100, #EF951E);background:#fefaf4;width:auto}.ai-recommened-pill{display:flex;padding:4px 8px;align-items:center;gap:8px;border-radius:var(--Radius-4, 4px);border:1px solid #1B4CA1;background:#1b4ca129}.igot-platform-pill{display:flex;padding:4px 8px;align-items:center;gap:8px;border-radius:var(--Radius-4, 4px);border:1px solid #EF951E;background:#ef951e29}.course-title{color:var(--Primary-KB-Primary-Light, #1B4CA1);font-family:Montserrat;font-size:20px;font-style:normal;font-weight:600;line-height:30px}.course-desc{color:#0009;font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal}.relevancy,.competencies-matched{color:var(--accessbility-shades-with-opacity-kb-greys-black-60, rgba(0, 0, 0, .6));font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal;align-items:center}.percentage{color:#1d8923;font-family:Lato;font-size:14px;font-style:normal;font-weight:800;line-height:normal}.relevancy-container,.competencies-matched-container{display:flex;flex-direction:row;align-items:center}.dash{padding:0 5px}::ng-deep .mat-radio-checked .mat-radio-inner-circle{background:#1b4ca1!important}.course-list-container{display:flex;flex-wrap:wrap;gap:16px}.course-list-item{flex:0 0 48%;box-sizing:border-box;border:1px solid #ccc;padding:16px;background-color:#fff;border-radius:8px}.checked-course-container{display:flex}.ml-2{margin-left:8px}::ng-deep .mat-checkbox-checked .mat-checkbox-background{background:#1b4ca1!important}.ai-recommened-pill-text,.igot-platform-pill-text{color:#1b4ca1;font-family:Lato;font-size:12px;font-style:normal;font-weight:700;line-height:normal}.course-pill-text{color:var(--accessbility-shades-without-opacity-kb-greys-black-87, #212121);text-align:center;font-family:Poppins;font-size:12px;font-style:normal;font-weight:400;line-height:normal}.ai-loader-icon img,.igot-platform-icon img{width:15.714px;height:15.714px;flex-shrink:0}.competency-container{display:flex;justify-content:space-between;flex-direction:row}.outside-layer-total{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:16px;border-radius:12px 4px 4px 12px;border-left:2px solid #1B4CA1;background:#edf1f8;width:132px}.outside-layer-functional{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:16px;border-radius:12px 4px 4px 12px;border-left:2px solid #E24577;background:#f8d2de;width:132px}.outside-layer-domain{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:16px;border-radius:12px 4px 4px 12px;border-left:2px solid #7B47A4;background:#dfd3e9;width:132px}.outside-layer-behavioral{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:16px;border-radius:12px 4px 4px 12px;border-left:2px solid #F8B861;background:#fde8cc;width:132px}.inside-layer{color:#1b4ca1;font-family:Lato;font-size:12px;font-style:normal;font-weight:400;line-height:normal}.count{color:#1b4ca1;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:600;line-height:normal}.suggest-courses-header{display:flex;flex-direction:row;justify-content:space-between}.suggest-course-control{display:flex;flex-direction:row;gap:16px}.course-card-container{flex:0 0 calc(25% - 12px);width:calc(25% - 12px);min-width:280px;border-radius:3.307px;border:.827px solid var(--borders-border-8-black, rgba(0, 0, 0, .08));background-color:#fff;padding:15px;min-height:320px;box-sizing:border-box;display:flex;flex-direction:column}.highlight-ai{font-family:Montserrat;font-size:24px;font-style:normal;font-weight:600;line-height:normal;background:linear-gradient(90deg,#3b27ff,#2de3d6);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;display:inline-block}.ai-loader-icon-medium img{width:40px;height:40px;flex-shrink:0}.heading{color:#000;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:600;line-height:normal;margin:10px 0}.progress-popup{display:flex;flex-direction:column;justify-content:center;align-items:center}.progress-popup .desc{color:#000000de;text-align:center;font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal}.behavioural-pill{display:flex;padding:0 8px;justify-content:center;align-items:center;gap:10px;border-radius:99px;border:1px solid #F8B861;background:linear-gradient(0deg,#f8b86152 0% 100%),#fff;margin:5px 0}.functional-pill{display:flex;padding:0 8px;justify-content:center;align-items:center;gap:10px;border-radius:99px;border:1px solid #E24577;background:linear-gradient(0deg,#e245773d 0% 100%),#fff;margin:5px 0}.domain-pill{display:flex;padding:0 8px;justify-content:center;align-items:center;gap:10px;border-radius:99px;border:1px solid #7B47A4;background:linear-gradient(0deg,#7b47a43d 0% 100%),#fff;margin:5px 0}.popup-header{display:flex;flex-direction:row;justify-content:space-between}.popup-footer{display:flex;flex-direction:row;justify-content:end}.view-cbp-plan{margin:10px;padding:10px}.view-cbp-plan-popup{padding:24px;max-height:70vh;overflow-y:auto}.section{border-radius:8px;background:#1b4ca114;padding:16px}.popup-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ddd;font-weight:700;flex-shrink:0}.popup-footer{display:flex;justify-content:flex-end;gap:16px;padding:16px 24px;border-top:1px solid #ddd;background-color:#fff;flex-shrink:0;position:sticky;bottom:0}.section-container{overflow-y:auto;flex:1 1 auto}.competency-list{display:flex;flex-direction:row;gap:16px}.competency-text{color:#000;font-family:Lato;font-size:10px;font-style:normal;font-weight:700;line-height:normal}.competency-sub-heading{color:#1b4ca1;font-family:Montserrat;font-size:12px;font-style:normal;font-weight:600;line-height:normal}.cursor-pointer{cursor:pointer}.btn-active{border-radius:var(--Radius-Full-Round, 9999999px);opacity:1;background:var(--Primary-KB-Primary-Light, #1B4CA1);color:var(--white-kb-white-100, #FFF);text-align:center;font-family:Lato;font-size:14px;font-style:normal;font-weight:700;line-height:normal;display:flex;height:32px;padding:0 16px;justify-content:center;align-items:center;gap:8px;border:none}.custom-textarea{color:#000;font-family:Lato;font-size:14px;font-style:normal;font-weight:400;line-height:normal}.overlay-loader{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#ffffffbf;z-index:9999;display:flex;justify-content:center;align-items:center}.course-card-list{display:flex;flex-wrap:wrap;flex-direction:row;gap:16px;justify-content:flex-start;align-items:stretch}@media (max-width: 1400px){.course-card-list{justify-content:center}}.image-container img{height:150px;width:100%;object-fit:cover}.image-container{position:relative;width:100%;height:auto}.image-container img{width:100%;height:150px;border-radius:6px}.image-container .image-checkbox{position:absolute;top:8px;right:8px;background:#fff;border-radius:4px;z-index:10}.desc{word-wrap:break-word}@media (max-width: 1400px){.course-card-container{flex:0 0 calc(33.333% - 10.667px);width:calc(33.333% - 10.667px);min-width:280px}}@media (max-width: 1024px){.course-card-container{flex:0 0 calc(50% - 8px);width:calc(50% - 8px);min-width:300px}}@media (max-width: 768px){.course-card-container{flex:0 0 100%;width:100%;min-width:auto}}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
                    type: Inject,
                    args: [MAT_DIALOG_DATA]
                }] }, { type: i2.SharedService }, { type: i3.MatSnackBar }]; } });
//# sourceMappingURL=data:application/json;base64, 