import { Component, ElementRef, Input, ViewChild } from '@angular/core';
import { Subject, takeUntil } from "rxjs";
import dayjs from "dayjs";
import utc from 'dayjs/plugin/utc';
import * as i0 from "@angular/core";
import * as i1 from "@ng-bootstrap/ng-bootstrap";
import * as i2 from "../../services/trax.service";
import * as i3 from "tango-app-ui-shared";
import * as i4 from "@angular/common";
import * as i5 from "@angular/forms";
import * as i6 from "ngx-daterangepicker-material";
import * as i7 from "../custom-select/custom-select.component";
dayjs.extend(utc);
export class ExportGalleryComponent {
    activeModal;
    cd;
    traxService;
    toastService;
    type;
    payload;
    clientName;
    selectedDateRange = {};
    destroy$ = new Subject();
    maxdaysReached = false;
    previewType = 'image';
    storeList = [];
    userList = [];
    selectedStore = [];
    selectedusers = [];
    getstore = false;
    constructor(activeModal, cd, traxService, toastService) {
        this.activeModal = activeModal;
        this.cd = cd;
        this.traxService = traxService;
        this.toastService = toastService;
    }
    dateRangePickerInput;
    ngOnInit() {
        this.selectedDateRange = {
            startDate: dayjs(this.payload?.fromDate).format('DD-MM-YYYY'),
            endDate: dayjs(this.payload?.toDate).format('DD-MM-YYYY'),
        };
        console.log(this.payload);
        this.payload.previewType = this.previewType;
        if (this.type === 'Export as CSV') {
            console.log(this.payload.filtertype);
            if (this.payload.filtertype === 'Clusters') {
                this.getStoreData();
            }
            else {
                this.getuserData();
            }
        }
    }
    getStoreData() {
        this.getstore = true;
        this.traxService.getStoreslist({ clientId: this.payload.clientId, clusters: [], city: [] }).subscribe({
            next: (res) => {
                if (res && res.code == 200) {
                    let stores = res.data.storesData.map((data) => data.storeId);
                    let obj = {
                        "fromDate": dayjs(this.payload.fromDate).format('YYYY-MM-DD'),
                        "toDate": dayjs(this.payload.toDate).format('YYYY-MM-DD'),
                        "ChecklistType": 'custom',
                        "checklistName": this.payload.checklistName,
                        "checklistId": this.payload.sourceCheckList_id,
                        "storeId": stores,
                        "answerType": this.payload.answerType,
                        "viewFlag": this.payload.viewFlag,
                        "viewRedo": this.payload.viewRedo,
                        "filter": this.payload.filter,
                        "filtertype": this.payload.filtertype,
                        "questions": this.payload.questions.length > 0 && this.payload.questions[0].questions.length > 0 ? this.payload.questions[0].questions[0] : ""
                    };
                    console.log(this.payload.insertType);
                    if (this.payload.insertType === 'task') {
                        this.traxService.getQuestions(obj)?.pipe(takeUntil(this.destroy$))?.subscribe({
                            next: (res) => {
                                if (res && res.code === 200) {
                                    this.selectedStore = res.data.storesDetails;
                                    this.storeList = res.data.storesDetails;
                                    this.getstore = false;
                                }
                            }
                        });
                    }
                    else {
                        this.traxService.getchecklist(obj)?.pipe(takeUntil(this.destroy$))?.subscribe({
                            next: (res) => {
                                if (res && res.code === 200) {
                                    this.selectedStore = res.data.storesDetails;
                                    this.storeList = res.data.storesDetails;
                                    this.getstore = false;
                                }
                            }
                        });
                    }
                }
            }
        });
    }
    getuserData() {
        this.getstore = true;
        this.traxService.getusers({ clientId: this.payload.clientId, clusters: [], city: [] }).subscribe({
            next: (res) => {
                if (res && res.code == 200) {
                    let users = res.data.map((data) => data.userEmail);
                    let obj = {
                        "fromDate": this.payload.fromDate,
                        "toDate": this.payload.toDate,
                        "ChecklistType": 'custom',
                        "checklistName": this.payload.checklistName,
                        "checklistId": this.payload.sourceCheckList_id,
                        "storeId": [],
                        "userEmail": users,
                        "filtertype": this.payload.filtertype,
                        "answerType": this.payload.answerType,
                        "viewFlag": this.payload.viewFlag,
                        "viewRedo": this.payload.viewRedo,
                        "filter": this.payload.filter,
                        "questions": this.payload.questions.length > 0 && this.payload.questions[0].questions.length > 0 ? this.payload.questions[0].questions[0] : ""
                    };
                    console.log(this.payload.insertType);
                    if (this.payload.insertType === 'task') {
                        this.traxService.getQuestions(obj)?.pipe(takeUntil(this.destroy$))?.subscribe({
                            next: (res) => {
                                if (res && res.code === 200) {
                                    this.selectedusers = res.data.storesDetails;
                                    this.userList = res.data.storesDetails;
                                    this.getstore = false;
                                }
                            }
                        });
                    }
                    else {
                        this.traxService.getchecklist(obj)?.pipe(takeUntil(this.destroy$))?.subscribe({
                            next: (res) => {
                                if (res && res.code === 200) {
                                    this.selectedusers = res.data.storesDetails;
                                    this.userList = res.data.storesDetails;
                                    this.getstore = false;
                                }
                            }
                        });
                    }
                }
            }
        });
    }
    ngAfterViewInit() {
        this.dateRangePickerInput?.nativeElement?.addEventListener('focus', () => {
            setTimeout(() => {
                const datePicker = document.querySelector('.daterangepicker');
                if (datePicker) {
                    document.body.appendChild(datePicker);
                    datePicker.style.position = 'absolute';
                    datePicker.style.zIndex = '1050';
                }
            }, 0);
        });
    }
    onStoreSelect(event) {
        this.selectedStore = event;
        this.selectedusers = [];
    }
    onuserSelect(event) {
        this.selectedStore = [];
        this.selectedusers = event;
    }
    datechange(event) {
        if (!event.endDate || !event.startDate) {
            return;
        }
        this.payload.fromDate = event.startDate;
        this.payload.toDate = event.endDate;
        const start = dayjs(this.payload.fromDate);
        const end = dayjs(this.payload.toDate);
        // Calculate the difference in the specified unit
        const difference = end.diff(start, 'days');
        if (difference > 30) {
            this.maxdaysReached = true;
        }
        else {
            this.maxdaysReached = false;
        }
        this.csvheight = '';
        this.getstore = false;
        if (this.payload.filtertype === 'Clusters') {
            this.getStoreData();
        }
        else {
            this.getuserData();
        }
    }
    dayjs = dayjs;
    isCustomDate = (m) => {
        const isValidDate = m > this.dayjs();
        return isValidDate ? 'invalid-date' : false;
    };
    onStartDateChange(event) {
        if (this.dayjs(event.startDate).isValid()) {
            this.isCustomDate = (m) => {
                const isValidDate = m > this.dayjs() || m > this.dayjs(event.startDate.add(90, "days"));
                return isValidDate ? "invalid-date" : false;
            };
        }
        // this.getAllCheckLists(false)
    }
    onSelect(value) {
        this.previewType = value;
        this.payload.previewType = value;
    }
    cancel() {
        this.activeModal.close('close');
        const triggerButton = document.querySelector('#triggerButtonId');
        triggerButton?.focus();
    }
    onSubmit() {
        this.getstore = true;
        if (this.selectedStore && this.selectedStore.length > 0) {
            this.payload.storeIds = this.selectedStore.map((data) => data.storeId);
        }
        if (this.selectedusers && this.selectedusers.length > 0) {
            this.payload.userEmailList = this.selectedusers.map((data) => data.userEmail);
        }
        this.payload.fromDate = dayjs(this.payload.fromDate).format('YYYY-MM-DD');
        this.payload.toDate = dayjs(this.payload.toDate).format('YYYY-MM-DD');
        console.log(this.payload);
        this.traxService.reportTableExport(this.payload)?.pipe(takeUntil(this.destroy$))?.subscribe({
            next: (res) => {
                if (res && res.code === 200) {
                    this.getstore = false;
                    this.activeModal.close('success');
                }
                else {
                    this.getstore = false;
                    this.activeModal.close('error');
                }
            },
            error: (err) => {
                console.log(err);
                this.toastService.getErrorToast(`<div><span class="me-8" >${err?.error?.error?.error}</span></div>`);
            }
        });
    }
    csvheight = '';
    dateheight() {
        this.csvheight = "300px";
    }
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ExportGalleryComponent, deps: [{ token: i1.NgbActiveModal }, { token: i0.ChangeDetectorRef }, { token: i2.TraxService }, { token: i3.ToastService }], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ExportGalleryComponent, selector: "lib-export-gallery", inputs: { type: "type", payload: "payload", clientName: "clientName" }, viewQueries: [{ propertyName: "dateRangePickerInput", first: true, predicate: ["dateRangePickerInput"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div class=\"card group-delete py-0 scroll\">\r\n    <div class=\"card-body py-0 d-flex flex-start flex-column p-9 \">\r\n        <div class=\"my-5\">\r\n            <div class=\"symbol symbol-75px symbol-circle\">\r\n                <svg width=\"56\" height=\"56\" viewBox=\"0 0 56 56\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n                    <rect x=\"4\" y=\"4\" width=\"48\" height=\"48\" rx=\"24\" fill=\"#DAF1FF\" />\r\n                    <rect x=\"4\" y=\"4\" width=\"48\" height=\"48\" rx=\"24\" stroke=\"#EAF8FF\" stroke-width=\"8\" />\r\n                    <path\r\n                        d=\"M37 31V35C37 35.5304 36.7893 36.0391 36.4142 36.4142C36.0391 36.7893 35.5304 37 35 37H21C20.4696 37 19.9609 36.7893 19.5858 36.4142C19.2107 36.0391 19 35.5304 19 35V31M23 26L28 31M28 31L33 26M28 31V19\"\r\n                        stroke=\"#00A3FF\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n                </svg>\r\n            </div>\r\n        </div>\r\n        <a class=\"fs-4 text-gray-800 text-hover-primary fw-bold mb-0 title cursor-pointer\">{{type}}</a>\r\n\r\n        <span *ngIf=\"type ==='Export as CSV'\" class=\"fw-normal mt-2\"><span class=\"dark-line1\">One of your team has\r\n                requested edit access to your project</span> <span class=\"dark-line ms-1\">Website Design.</span></span>\r\n        <div *ngIf=\"type ==='Export as CSV'\" class=\"col-md-12 position-relative mt-3 h-350px\">\r\n            <span style=\"top: 2%;\" class=\"svg-icon svg-icon-1 position-absolute ms-3\">\r\n                <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n                    <path\r\n                        d=\"M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z\"\r\n                        stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n                </svg>\r\n            </span>\r\n            <input class=\"fx-date-range form-control ps-14 \" #dateRangePickerInput\r\n                style=\"min-width: 260px !important; z-index: 1050 !important;\" type=\"text\" matInput ngxDaterangepickerMd\r\n                [drops]=\"'down'\" [opens]=\"'right'\" [alwaysShowCalendars]=\"false\" [keepCalendarOpeningWithRange]=\"true\"\r\n                [showCancel]=\"false\" autocomplete=\"off\" [(ngModel)]=\"selectedDateRange\" (click)=\"dateheight()\"\r\n                [ngModelOptions]=\"{standalone: true}\" (datesUpdated)=\"datechange($event)\" [autoApply]=\"true\"\r\n                (startDateChanged)=\"onStartDateChange($event)\" [isCustomDate]=\"isCustomDate\"\r\n                [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n                name=\"daterange\" [readonly]=\"true\" />\r\n            <div class=\"col-md-8 mb-4 mt-4\">\r\n                <div class=\"select-wrapper\">\r\n                    <div class=\"placeholder-overlay\" *ngIf=\"this.payload.filtertype==='Clusters'\">\r\n                        Select Stores\r\n                    </div>\r\n                    <lib-stores-select *ngIf=\"this.payload.filtertype==='Clusters'\" [items]=\"storeList\"\r\n                        [disabled]=\"false\" [multi]=\"true\" [searchField]=\"'storeName'\" [idField]=\"'storeId'\"\r\n                        (selected)=\"onStoreSelect($event)\" [selectedValues]=\"selectedStore\"></lib-stores-select>\r\n\r\n                    <div class=\"placeholder-overlay\" *ngIf=\"this.payload.filtertype==='Teams'\">\r\n                        Select Users\r\n                    </div>\r\n                    <lib-stores-select *ngIf=\"this.payload.filtertype==='Teams'\" [items]=\"userList\" [disabled]=\"false\"\r\n                        [multi]=\"true\" [searchField]=\"'userName'\" [idField]=\"'userName'\"\r\n                        (selected)=\"onuserSelect($event)\" [selectedValues]=\"selectedusers\"></lib-stores-select>\r\n\r\n                </div>\r\n            </div>\r\n\r\n\r\n\r\n\r\n        </div>\r\n\r\n        <span *ngIf=\"type ==='Export as CSV'\" [ngClass]=\"maxdaysReached ? 'flagclour':''\"\r\n            class=\"dark-line1 fw-normal mt-2\">Data downloads are limited to one month at a time.</span>\r\n        <span *ngIf=\"type ==='Export as PDF'\" class=\"dark-line1 fw-normal mt-2\">This blog post has been published. Team\r\n            members will be able to edit this post and republish changes.</span>\r\n        <div *ngIf=\"type==='Export as PDF'\" class=\"col-md-12  mt-3\">\r\n            <label class=\"label\">Select checklist</label>\r\n            <select class=\"form-control\">\r\n                <option><span><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"\r\n                            fill=\"none\">\r\n                            <path\r\n                                d=\"M11.6654 1.66602H4.9987C4.55667 1.66602 4.13275 1.84161 3.82019 2.15417C3.50763 2.46673 3.33203 2.89065 3.33203 3.33268V16.666C3.33203 17.108 3.50763 17.532 3.82019 17.8445C4.13275 18.1571 4.55667 18.3327 4.9987 18.3327H14.9987C15.4407 18.3327 15.8646 18.1571 16.1772 17.8445C16.4898 17.532 16.6654 17.108 16.6654 16.666V6.66602M11.6654 1.66602L16.6654 6.66602M11.6654 1.66602V6.66602H16.6654M13.332 10.8327H6.66536M13.332 14.166H6.66536M8.33203 7.49935H6.66536\"\r\n                                stroke=\"#667085\" stroke-width=\"1.66667\" stroke-linecap=\"round\"\r\n                                stroke-linejoin=\"round\" />\r\n                        </svg></span>Store Operation checklist</option>\r\n            </select>\r\n        </div>\r\n        <div *ngIf=\"type==='Export as PDF'\" class=\"col-md-12  mt-3\">\r\n            <label class=\"label\">Select Store</label>\r\n            <select class=\"form-control\">\r\n                <option></option>\r\n            </select>\r\n        </div>\r\n\r\n        <div *ngIf=\"type==='Export as PDF'\" class=\"col-md-12 position-relative mt-5\">\r\n            <span style=\"top: 20%;\" class=\"svg-icon svg-icon-1 position-absolute ms-3\">\r\n                <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n                    <path\r\n                        d=\"M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z\"\r\n                        stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n                </svg>\r\n            </span>\r\n            <input class=\"fx-date-range form-control ps-14\" #dateRangePickerInput\r\n                style=\"min-width: 260px !important; z-index: 1050 !important;\" type=\"text\" matInput ngxDaterangepickerMd\r\n                [drops]=\"'down'\" [singleDatePicker]=\"true\" [opens]=\"'right'\" [alwaysShowCalendars]=\"false\"\r\n                [keepCalendarOpeningWithRange]=\"true\" [showCancel]=\"false\" autocomplete=\"off\"\r\n                [(ngModel)]=\"selectedDateRange\" [ngModelOptions]=\"{standalone: true}\"\r\n                (datesUpdated)=\"datechange($event)\" [autoApply]=\"true\" (startDateChanged)=\"onStartDateChange($event)\"\r\n                [isCustomDate]=\"isCustomDate\"\r\n                [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n                name=\"daterange\" [readonly]=\"true\" />\r\n            <span class=\"sub-title fw-normal mt-2\">Only 1 day data can be downloaded</span>\r\n        </div>\r\n        <div *ngIf=\"type==='Export as PPT'||type==='Export as ZIP'\">\r\n\r\n            <div class=\"d-flex flex-wrap mt-5\">\r\n                <div class=\"border rounded min-w-200px cursor-pointer py-3 px-4 me-6 mb-3\"\r\n                    [ngClass]=\"previewType === 'image' ? 'nav-line-tabs1' : 'border-gray-300'\"\r\n                    (click)=\"onSelect('image')\">\r\n                    <div class=\"d-flex align-items-center mb-5\">\r\n                        <svg *ngIf=\"previewType === 'image'\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\r\n                            viewBox=\"0 0 24 24\" fill=\"none\">\r\n                            <path\r\n                                d=\"M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21ZM5 21L16 10L21 15M10 8.5C10 9.32843 9.32843 10 8.5 10C7.67157 10 7 9.32843 7 8.5C7 7.67157 7.67157 7 8.5 7C9.32843 7 10 7.67157 10 8.5Z\"\r\n                                stroke=\"#009BF3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n                        </svg>\r\n                        <svg *ngIf=\"previewType === 'video'\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\r\n                            viewBox=\"0 0 24 24\" fill=\"none\">\r\n                            <path\r\n                                d=\"M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21ZM5 21L16 10L21 15M10 8.5C10 9.32843 9.32843 10 8.5 10C7.67157 10 7 9.32843 7 8.5C7 7.67157 7.67157 7 8.5 7C9.32843 7 10 7.67157 10 8.5Z\"\r\n                                stroke=\"#101828\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n                        </svg>\r\n                    </div>\r\n                    <div [ngClass]=\"previewType === 'image' ? 'text-border-priamry' : 'textvalue'\">Image</div>\r\n                </div>\r\n                <div class=\"border rounded min-w-200px cursor-pointer py-3 px-4  mb-3\"\r\n                    [ngClass]=\"previewType === 'video' ? 'nav-line-tabs1' : 'border-gray-300'\"\r\n                    (click)=\"onSelect('video')\">\r\n                    <div class=\"d-flex align-items-center mb-5\">\r\n                        <svg *ngIf=\"previewType === 'image'\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\r\n                            viewBox=\"0 0 24 24\" fill=\"none\">\r\n                            <path\r\n                                d=\"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z\"\r\n                                stroke=\"#101828\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n                            <path d=\"M10 8L16 12L10 16V8Z\" stroke=\"#101828\" stroke-width=\"2\" stroke-linecap=\"round\"\r\n                                stroke-linejoin=\"round\" />\r\n                        </svg>\r\n                        <svg *ngIf=\"previewType === 'video'\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\r\n                            viewBox=\"0 0 24 24\" fill=\"none\">\r\n                            <path\r\n                                d=\"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z\"\r\n                                stroke=\"#009BF3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n                            <path d=\"M10 8L16 12L10 16V8Z\" stroke=\"#009BF3\" stroke-width=\"2\" stroke-linecap=\"round\"\r\n                                stroke-linejoin=\"round\" />\r\n                        </svg>\r\n                    </div>\r\n                    <div [ngClass]=\"previewType === 'video' ? 'text-border-priamry' : 'textvalue'\">Video</div>\r\n                </div>\r\n\r\n            </div>\r\n            <!-- <label for=\"dropdown\" class=\"m-4 fs-4\">Choose an option: </label> -->\r\n            <!-- <select id=\"dropdown\" class=\"form-control\" [(ngModel)]=\"previewType\" (change)=\"onSelect($event)\">\r\n              <option [value]=\"'image'\">Image</option>\r\n              <option [value]=\"'video'\">Video</option>\r\n            </select> -->\r\n        </div>\r\n        <div *ngIf=\"type ==='Export as CSV'\" class=\"row w-100\">\r\n            <div class=\"col-md-8\"></div>\r\n            <div class=\"col-md-4 mt-2 text-end\">\r\n                <div role=\"group\" class=\"d-flex mt-3 mb-15\">\r\n                    <button class=\"btn btn-outline w-100 me-2\" (click)=\"cancel()\">Cancel</button>\r\n                    <button id=\"alert-toast\" class=\"btn btn-primary w-100 ms-2\" [disabled]=\"maxdaysReached||getstore\"\r\n                        (click)=\"onSubmit()\">Confirm</button>\r\n                </div>\r\n\r\n            </div>\r\n        </div>\r\n        <div *ngIf=\"type !=='Export as CSV'\" class=\"mt-2 w-100 text-end\">\r\n\r\n            <div role=\"group\" class=\"d-flex mt-3 mb-15\">\r\n                <button class=\"btn btn-outline w-100 me-2\" (click)=\"cancel()\">Cancel</button>\r\n                <button id=\"alert-toast\" class=\"btn btn-primary w-100 ms-2\" [disabled]=\"maxdaysReached||getstore\"\r\n                    (click)=\"onSubmit()\">Confirm</button>\r\n            </div>\r\n\r\n        </div>\r\n\r\n    </div>\r\n</div>", styles: [":host::ng-deep .md-drppicker .btn{line-height:10px!important}:host::ng-deep .md-drppicker.shown.drops-down-right{transform-origin:0 0;width:600px!important}:host::ng-deep .daterangepicker-input+.ngx-daterangepicker-material .applyBtn{display:none}:host::ng-deep .md-drppicker.drops-down-right.ltr.show-ranges.shown{top:65px!important}:host::ng-deep .md-drppicker.drops-down-right.ltr.double.show-ranges.shown{top:65px!important;right:-475px!important;left:unset!important;height:400px!important}:host::ng-deep .md-drppicker .btn{border-radius:8px!important;border:1px solid var(--Primary-600, #00A3FF)!important;background:var(--Primary-600, #00A3FF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--White, #FFF)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize}:host::ng-deep .md-drppicker .ranges ul li button{padding:12px 16px;width:160px;color:var(--Gray-700, #344054);font-size:14px;font-weight:400;line-height:20px;background:none;border:none;text-align:left;cursor:pointer}:host::ng-deep .md-drppicker td.active,:host::ng-deep .md-drppicker td.active:hover{background-color:#029cf4!important;border-radius:20px!important;color:var(--White, #FFF)!important;text-align:center!important;font-size:14px!important;font-weight:500!important;line-height:20px}:host::ng-deep .md-drppicker.ltr .ranges{float:left;margin-top:10px!important}:host::ng-deep .md-drppicker td.in-range{background:var(--Primary-50, #EAF8FF)}:host::ng-deep .md-drppicker .ranges ul li button.active{background:var(--Primary-50, #EAF8FF)!important;border-radius:8px!important;color:var(--Primary-700, #009BF3);font-size:14px!important;font-weight:500!important;line-height:20px!important}:host::ng-deep table th,:host::ng-deep table td{width:40px!important;height:40px!important;padding:10px 8px!important}:host::ng-deep .md-drppicker td.available.prev,:host::ng-deep .md-drppicker th.available.prev{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep .md-drppicker td.available.next,:host::ng-deep .md-drppicker th.available.next{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep table th{border-bottom:0px solid var(--Gray-200, #EAECF0)!important;background:transparent!important;color:var(--Gray-700, #344054)!important;text-align:center;font-size:16px!important;font-weight:500!important;line-height:24px}:host::ng-deep .md-drppicker .btn.btn-default{border-radius:8px!important;border:1px solid var(--Gray-300, #D0D5DD)!important;background:var(--White, #FFF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--Gray-700, #344054)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize;margin-right:10px!important}:host::ng-deep .md-drppicker td.available.invalid-date{text-decoration:line-through;pointer-events:none;color:#a9a9a9}:host::ng-deep .md-drppicker td.available.today:not(.invalid-date){text-decoration:unset;pointer-events:unset;color:unset}:host::ng-deep .daterangepicker{position:fixed!important;top:30%!important;left:50%!important;transform:translate(-50%);z-index:1050!important}.label{color:var(--Gray-700, #344054)!important;font-size:14px!important;font-weight:500;line-height:20px!important}.flagclour{color:red!important}.nav-line-tabs1{border-radius:8px!important;border:1px solid var(--Primary-700, #009BF3)!important;border-color:#009bf3!important;padding:16px!important;background:var(--Primary-25, #F6FCFF)!important}.border-gray-300{border-color:#101828!important;padding:16px!important}.textvalue{color:var(--Gray-900, #101828);font-size:16px!important;font-style:normal;font-weight:600!important;line-height:24px!important}.text-border-priamry{color:var(--Primary-700, #009BF3);font-size:16px!important;font-style:normal;font-weight:600!important;line-height:24px!important}.dark-line{color:var(--Gray-500, #667085)!important;font-size:14px;font-style:normal;font-weight:500!important;line-height:20px}.dark-line1{color:var(--Gray-500, #667085)!important;font-size:14px;font-style:normal;font-weight:400!important;line-height:20px}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i5.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i5.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: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i6.DaterangepickerDirective, selector: "input[ngxDaterangepickerMd]", inputs: ["minDate", "maxDate", "autoApply", "alwaysShowCalendars", "showCustomRangeLabel", "linkedCalendars", "dateLimit", "singleDatePicker", "showWeekNumbers", "showISOWeekNumbers", "showDropdowns", "isInvalidDate", "isCustomDate", "isTooltipDate", "showClearButton", "customRangeDirection", "ranges", "opens", "drops", "firstMonthDayClass", "lastMonthDayClass", "emptyWeekRowClass", "emptyWeekColumnClass", "firstDayOfNextMonthClass", "lastDayOfPreviousMonthClass", "keepCalendarOpeningWithRange", "showRangeLabelOnInput", "showCancel", "lockStartDate", "timePicker", "timePicker24Hour", "timePickerIncrement", "timePickerSeconds", "closeOnAutoApply", "endKeyHolder", "startKey", "locale", "endKey"], outputs: ["change", "rangeClicked", "datesUpdated", "startDateChanged", "endDateChanged", "clearClicked"] }, { kind: "component", type: i7.CustomSelectComponent, selector: "lib-stores-select", inputs: ["items", "searchField", "multi", "idField", "selectedValues", "disabled", "label"], outputs: ["selected"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ExportGalleryComponent, decorators: [{
            type: Component,
            args: [{ selector: 'lib-export-gallery', template: "<div class=\"card group-delete py-0 scroll\">\r\n    <div class=\"card-body py-0 d-flex flex-start flex-column p-9 \">\r\n        <div class=\"my-5\">\r\n            <div class=\"symbol symbol-75px symbol-circle\">\r\n                <svg width=\"56\" height=\"56\" viewBox=\"0 0 56 56\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n                    <rect x=\"4\" y=\"4\" width=\"48\" height=\"48\" rx=\"24\" fill=\"#DAF1FF\" />\r\n                    <rect x=\"4\" y=\"4\" width=\"48\" height=\"48\" rx=\"24\" stroke=\"#EAF8FF\" stroke-width=\"8\" />\r\n                    <path\r\n                        d=\"M37 31V35C37 35.5304 36.7893 36.0391 36.4142 36.4142C36.0391 36.7893 35.5304 37 35 37H21C20.4696 37 19.9609 36.7893 19.5858 36.4142C19.2107 36.0391 19 35.5304 19 35V31M23 26L28 31M28 31L33 26M28 31V19\"\r\n                        stroke=\"#00A3FF\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n                </svg>\r\n            </div>\r\n        </div>\r\n        <a class=\"fs-4 text-gray-800 text-hover-primary fw-bold mb-0 title cursor-pointer\">{{type}}</a>\r\n\r\n        <span *ngIf=\"type ==='Export as CSV'\" class=\"fw-normal mt-2\"><span class=\"dark-line1\">One of your team has\r\n                requested edit access to your project</span> <span class=\"dark-line ms-1\">Website Design.</span></span>\r\n        <div *ngIf=\"type ==='Export as CSV'\" class=\"col-md-12 position-relative mt-3 h-350px\">\r\n            <span style=\"top: 2%;\" class=\"svg-icon svg-icon-1 position-absolute ms-3\">\r\n                <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n                    <path\r\n                        d=\"M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z\"\r\n                        stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n                </svg>\r\n            </span>\r\n            <input class=\"fx-date-range form-control ps-14 \" #dateRangePickerInput\r\n                style=\"min-width: 260px !important; z-index: 1050 !important;\" type=\"text\" matInput ngxDaterangepickerMd\r\n                [drops]=\"'down'\" [opens]=\"'right'\" [alwaysShowCalendars]=\"false\" [keepCalendarOpeningWithRange]=\"true\"\r\n                [showCancel]=\"false\" autocomplete=\"off\" [(ngModel)]=\"selectedDateRange\" (click)=\"dateheight()\"\r\n                [ngModelOptions]=\"{standalone: true}\" (datesUpdated)=\"datechange($event)\" [autoApply]=\"true\"\r\n                (startDateChanged)=\"onStartDateChange($event)\" [isCustomDate]=\"isCustomDate\"\r\n                [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n                name=\"daterange\" [readonly]=\"true\" />\r\n            <div class=\"col-md-8 mb-4 mt-4\">\r\n                <div class=\"select-wrapper\">\r\n                    <div class=\"placeholder-overlay\" *ngIf=\"this.payload.filtertype==='Clusters'\">\r\n                        Select Stores\r\n                    </div>\r\n                    <lib-stores-select *ngIf=\"this.payload.filtertype==='Clusters'\" [items]=\"storeList\"\r\n                        [disabled]=\"false\" [multi]=\"true\" [searchField]=\"'storeName'\" [idField]=\"'storeId'\"\r\n                        (selected)=\"onStoreSelect($event)\" [selectedValues]=\"selectedStore\"></lib-stores-select>\r\n\r\n                    <div class=\"placeholder-overlay\" *ngIf=\"this.payload.filtertype==='Teams'\">\r\n                        Select Users\r\n                    </div>\r\n                    <lib-stores-select *ngIf=\"this.payload.filtertype==='Teams'\" [items]=\"userList\" [disabled]=\"false\"\r\n                        [multi]=\"true\" [searchField]=\"'userName'\" [idField]=\"'userName'\"\r\n                        (selected)=\"onuserSelect($event)\" [selectedValues]=\"selectedusers\"></lib-stores-select>\r\n\r\n                </div>\r\n            </div>\r\n\r\n\r\n\r\n\r\n        </div>\r\n\r\n        <span *ngIf=\"type ==='Export as CSV'\" [ngClass]=\"maxdaysReached ? 'flagclour':''\"\r\n            class=\"dark-line1 fw-normal mt-2\">Data downloads are limited to one month at a time.</span>\r\n        <span *ngIf=\"type ==='Export as PDF'\" class=\"dark-line1 fw-normal mt-2\">This blog post has been published. Team\r\n            members will be able to edit this post and republish changes.</span>\r\n        <div *ngIf=\"type==='Export as PDF'\" class=\"col-md-12  mt-3\">\r\n            <label class=\"label\">Select checklist</label>\r\n            <select class=\"form-control\">\r\n                <option><span><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"\r\n                            fill=\"none\">\r\n                            <path\r\n                                d=\"M11.6654 1.66602H4.9987C4.55667 1.66602 4.13275 1.84161 3.82019 2.15417C3.50763 2.46673 3.33203 2.89065 3.33203 3.33268V16.666C3.33203 17.108 3.50763 17.532 3.82019 17.8445C4.13275 18.1571 4.55667 18.3327 4.9987 18.3327H14.9987C15.4407 18.3327 15.8646 18.1571 16.1772 17.8445C16.4898 17.532 16.6654 17.108 16.6654 16.666V6.66602M11.6654 1.66602L16.6654 6.66602M11.6654 1.66602V6.66602H16.6654M13.332 10.8327H6.66536M13.332 14.166H6.66536M8.33203 7.49935H6.66536\"\r\n                                stroke=\"#667085\" stroke-width=\"1.66667\" stroke-linecap=\"round\"\r\n                                stroke-linejoin=\"round\" />\r\n                        </svg></span>Store Operation checklist</option>\r\n            </select>\r\n        </div>\r\n        <div *ngIf=\"type==='Export as PDF'\" class=\"col-md-12  mt-3\">\r\n            <label class=\"label\">Select Store</label>\r\n            <select class=\"form-control\">\r\n                <option></option>\r\n            </select>\r\n        </div>\r\n\r\n        <div *ngIf=\"type==='Export as PDF'\" class=\"col-md-12 position-relative mt-5\">\r\n            <span style=\"top: 20%;\" class=\"svg-icon svg-icon-1 position-absolute ms-3\">\r\n                <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n                    <path\r\n                        d=\"M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z\"\r\n                        stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n                </svg>\r\n            </span>\r\n            <input class=\"fx-date-range form-control ps-14\" #dateRangePickerInput\r\n                style=\"min-width: 260px !important; z-index: 1050 !important;\" type=\"text\" matInput ngxDaterangepickerMd\r\n                [drops]=\"'down'\" [singleDatePicker]=\"true\" [opens]=\"'right'\" [alwaysShowCalendars]=\"false\"\r\n                [keepCalendarOpeningWithRange]=\"true\" [showCancel]=\"false\" autocomplete=\"off\"\r\n                [(ngModel)]=\"selectedDateRange\" [ngModelOptions]=\"{standalone: true}\"\r\n                (datesUpdated)=\"datechange($event)\" [autoApply]=\"true\" (startDateChanged)=\"onStartDateChange($event)\"\r\n                [isCustomDate]=\"isCustomDate\"\r\n                [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n                name=\"daterange\" [readonly]=\"true\" />\r\n            <span class=\"sub-title fw-normal mt-2\">Only 1 day data can be downloaded</span>\r\n        </div>\r\n        <div *ngIf=\"type==='Export as PPT'||type==='Export as ZIP'\">\r\n\r\n            <div class=\"d-flex flex-wrap mt-5\">\r\n                <div class=\"border rounded min-w-200px cursor-pointer py-3 px-4 me-6 mb-3\"\r\n                    [ngClass]=\"previewType === 'image' ? 'nav-line-tabs1' : 'border-gray-300'\"\r\n                    (click)=\"onSelect('image')\">\r\n                    <div class=\"d-flex align-items-center mb-5\">\r\n                        <svg *ngIf=\"previewType === 'image'\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\r\n                            viewBox=\"0 0 24 24\" fill=\"none\">\r\n                            <path\r\n                                d=\"M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21ZM5 21L16 10L21 15M10 8.5C10 9.32843 9.32843 10 8.5 10C7.67157 10 7 9.32843 7 8.5C7 7.67157 7.67157 7 8.5 7C9.32843 7 10 7.67157 10 8.5Z\"\r\n                                stroke=\"#009BF3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n                        </svg>\r\n                        <svg *ngIf=\"previewType === 'video'\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\r\n                            viewBox=\"0 0 24 24\" fill=\"none\">\r\n                            <path\r\n                                d=\"M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21ZM5 21L16 10L21 15M10 8.5C10 9.32843 9.32843 10 8.5 10C7.67157 10 7 9.32843 7 8.5C7 7.67157 7.67157 7 8.5 7C9.32843 7 10 7.67157 10 8.5Z\"\r\n                                stroke=\"#101828\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n                        </svg>\r\n                    </div>\r\n                    <div [ngClass]=\"previewType === 'image' ? 'text-border-priamry' : 'textvalue'\">Image</div>\r\n                </div>\r\n                <div class=\"border rounded min-w-200px cursor-pointer py-3 px-4  mb-3\"\r\n                    [ngClass]=\"previewType === 'video' ? 'nav-line-tabs1' : 'border-gray-300'\"\r\n                    (click)=\"onSelect('video')\">\r\n                    <div class=\"d-flex align-items-center mb-5\">\r\n                        <svg *ngIf=\"previewType === 'image'\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\r\n                            viewBox=\"0 0 24 24\" fill=\"none\">\r\n                            <path\r\n                                d=\"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z\"\r\n                                stroke=\"#101828\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n                            <path d=\"M10 8L16 12L10 16V8Z\" stroke=\"#101828\" stroke-width=\"2\" stroke-linecap=\"round\"\r\n                                stroke-linejoin=\"round\" />\r\n                        </svg>\r\n                        <svg *ngIf=\"previewType === 'video'\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"\r\n                            viewBox=\"0 0 24 24\" fill=\"none\">\r\n                            <path\r\n                                d=\"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z\"\r\n                                stroke=\"#009BF3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n                            <path d=\"M10 8L16 12L10 16V8Z\" stroke=\"#009BF3\" stroke-width=\"2\" stroke-linecap=\"round\"\r\n                                stroke-linejoin=\"round\" />\r\n                        </svg>\r\n                    </div>\r\n                    <div [ngClass]=\"previewType === 'video' ? 'text-border-priamry' : 'textvalue'\">Video</div>\r\n                </div>\r\n\r\n            </div>\r\n            <!-- <label for=\"dropdown\" class=\"m-4 fs-4\">Choose an option: </label> -->\r\n            <!-- <select id=\"dropdown\" class=\"form-control\" [(ngModel)]=\"previewType\" (change)=\"onSelect($event)\">\r\n              <option [value]=\"'image'\">Image</option>\r\n              <option [value]=\"'video'\">Video</option>\r\n            </select> -->\r\n        </div>\r\n        <div *ngIf=\"type ==='Export as CSV'\" class=\"row w-100\">\r\n            <div class=\"col-md-8\"></div>\r\n            <div class=\"col-md-4 mt-2 text-end\">\r\n                <div role=\"group\" class=\"d-flex mt-3 mb-15\">\r\n                    <button class=\"btn btn-outline w-100 me-2\" (click)=\"cancel()\">Cancel</button>\r\n                    <button id=\"alert-toast\" class=\"btn btn-primary w-100 ms-2\" [disabled]=\"maxdaysReached||getstore\"\r\n                        (click)=\"onSubmit()\">Confirm</button>\r\n                </div>\r\n\r\n            </div>\r\n        </div>\r\n        <div *ngIf=\"type !=='Export as CSV'\" class=\"mt-2 w-100 text-end\">\r\n\r\n            <div role=\"group\" class=\"d-flex mt-3 mb-15\">\r\n                <button class=\"btn btn-outline w-100 me-2\" (click)=\"cancel()\">Cancel</button>\r\n                <button id=\"alert-toast\" class=\"btn btn-primary w-100 ms-2\" [disabled]=\"maxdaysReached||getstore\"\r\n                    (click)=\"onSubmit()\">Confirm</button>\r\n            </div>\r\n\r\n        </div>\r\n\r\n    </div>\r\n</div>", styles: [":host::ng-deep .md-drppicker .btn{line-height:10px!important}:host::ng-deep .md-drppicker.shown.drops-down-right{transform-origin:0 0;width:600px!important}:host::ng-deep .daterangepicker-input+.ngx-daterangepicker-material .applyBtn{display:none}:host::ng-deep .md-drppicker.drops-down-right.ltr.show-ranges.shown{top:65px!important}:host::ng-deep .md-drppicker.drops-down-right.ltr.double.show-ranges.shown{top:65px!important;right:-475px!important;left:unset!important;height:400px!important}:host::ng-deep .md-drppicker .btn{border-radius:8px!important;border:1px solid var(--Primary-600, #00A3FF)!important;background:var(--Primary-600, #00A3FF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--White, #FFF)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize}:host::ng-deep .md-drppicker .ranges ul li button{padding:12px 16px;width:160px;color:var(--Gray-700, #344054);font-size:14px;font-weight:400;line-height:20px;background:none;border:none;text-align:left;cursor:pointer}:host::ng-deep .md-drppicker td.active,:host::ng-deep .md-drppicker td.active:hover{background-color:#029cf4!important;border-radius:20px!important;color:var(--White, #FFF)!important;text-align:center!important;font-size:14px!important;font-weight:500!important;line-height:20px}:host::ng-deep .md-drppicker.ltr .ranges{float:left;margin-top:10px!important}:host::ng-deep .md-drppicker td.in-range{background:var(--Primary-50, #EAF8FF)}:host::ng-deep .md-drppicker .ranges ul li button.active{background:var(--Primary-50, #EAF8FF)!important;border-radius:8px!important;color:var(--Primary-700, #009BF3);font-size:14px!important;font-weight:500!important;line-height:20px!important}:host::ng-deep table th,:host::ng-deep table td{width:40px!important;height:40px!important;padding:10px 8px!important}:host::ng-deep .md-drppicker td.available.prev,:host::ng-deep .md-drppicker th.available.prev{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep .md-drppicker td.available.next,:host::ng-deep .md-drppicker th.available.next{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep table th{border-bottom:0px solid var(--Gray-200, #EAECF0)!important;background:transparent!important;color:var(--Gray-700, #344054)!important;text-align:center;font-size:16px!important;font-weight:500!important;line-height:24px}:host::ng-deep .md-drppicker .btn.btn-default{border-radius:8px!important;border:1px solid var(--Gray-300, #D0D5DD)!important;background:var(--White, #FFF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--Gray-700, #344054)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize;margin-right:10px!important}:host::ng-deep .md-drppicker td.available.invalid-date{text-decoration:line-through;pointer-events:none;color:#a9a9a9}:host::ng-deep .md-drppicker td.available.today:not(.invalid-date){text-decoration:unset;pointer-events:unset;color:unset}:host::ng-deep .daterangepicker{position:fixed!important;top:30%!important;left:50%!important;transform:translate(-50%);z-index:1050!important}.label{color:var(--Gray-700, #344054)!important;font-size:14px!important;font-weight:500;line-height:20px!important}.flagclour{color:red!important}.nav-line-tabs1{border-radius:8px!important;border:1px solid var(--Primary-700, #009BF3)!important;border-color:#009bf3!important;padding:16px!important;background:var(--Primary-25, #F6FCFF)!important}.border-gray-300{border-color:#101828!important;padding:16px!important}.textvalue{color:var(--Gray-900, #101828);font-size:16px!important;font-style:normal;font-weight:600!important;line-height:24px!important}.text-border-priamry{color:var(--Primary-700, #009BF3);font-size:16px!important;font-style:normal;font-weight:600!important;line-height:24px!important}.dark-line{color:var(--Gray-500, #667085)!important;font-size:14px;font-style:normal;font-weight:500!important;line-height:20px}.dark-line1{color:var(--Gray-500, #667085)!important;font-size:14px;font-style:normal;font-weight:400!important;line-height:20px}\n"] }]
        }], ctorParameters: () => [{ type: i1.NgbActiveModal }, { type: i0.ChangeDetectorRef }, { type: i2.TraxService }, { type: i3.ToastService }], propDecorators: { type: [{
                type: Input
            }], payload: [{
                type: Input
            }], clientName: [{
                type: Input
            }], dateRangePickerInput: [{
                type: ViewChild,
                args: ['dateRangePickerInput', { read: ElementRef }]
            }] } });
//# sourceMappingURL=data:application/json;base64, 